From 80425839b2a002e683e6de0d93af2b7ae85c0f01 Mon Sep 17 00:00:00 2001 From: sunby Date: Mon, 22 Apr 2024 14:53:26 +0800 Subject: [PATCH 01/13] compile pass Signed-off-by: sunby --- cpp/CMakeLists.txt | 26 +- cpp/src/proto/manifest.pb.cc | 1292 ++++++------- cpp/src/proto/manifest.pb.h | 924 +++++----- cpp/src/proto/schema_arrow.pb.cc | 2917 ++++++++++++++++-------------- cpp/src/proto/schema_arrow.pb.h | 2004 ++++++++++---------- cpp/test/CMakeLists.txt | 4 +- cpp/test/manifest_test.cpp | 2 +- 7 files changed, 3718 insertions(+), 3451 deletions(-) diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index 8111a2a..9036233 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -15,20 +15,25 @@ if (WITH_OPENDAL) include(libopendal) endif() -find_package(Boost REQUIRED) -find_package(Arrow REQUIRED) -find_package(protobuf REQUIRED) -find_package(glog REQUIRED) +add_subdirectory(thirdparty) +get_target_property(arrow_INCLUDE_DIR libarrow INCLUDE_DIRECTORIES) +get_target_property(parquet_INCLUDE_DIR libparquet INCLUDE_DIRECTORIES) +get_target_property(glog_INCLUDE_DIR libglog INCLUDE_DIRECTORIES) file(GLOB_RECURSE SRC_FILES src/*.cpp src/*.cc) add_library(milvus-storage ${SRC_FILES}) -target_include_directories(milvus-storage PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include/milvus-storage ${CMAKE_CURRENT_SOURCE_DIR}/src ${CMAKE_CURRENT_SOURCE_DIR}/test/include) +add_dependencies(milvus-storage arrow_ep) +add_dependencies(milvus-storage glog_ep) +target_include_directories(milvus-storage PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include/milvus-storage ${CMAKE_CURRENT_SOURCE_DIR}/src ${CMAKE_CURRENT_SOURCE_DIR}/test/include ${arrow_INCLUDE_DIR} ${parquet_INCLUDE_DIR} ${glog_INCLUDE_DIR}) set(LINK_LIBS - arrow::libarrow - arrow::libparquet - Boost::boost - protobuf::protobuf - glog::glog) + libarrow + libparquet + Boost::uuid + Boost::algorithm + protobuf + Boost::filesystem + libglog + ) if (WITH_OPENDAL) list(APPEND LINK_LIBS opendal) @@ -37,6 +42,5 @@ endif() target_link_libraries(milvus-storage PUBLIC ${LINK_LIBS}) if (WITH_UT) - enable_testing() add_subdirectory(test) endif() diff --git a/cpp/src/proto/manifest.pb.cc b/cpp/src/proto/manifest.pb.cc index e0dade0..1391f81 100644 --- a/cpp/src/proto/manifest.pb.cc +++ b/cpp/src/proto/manifest.pb.cc @@ -14,130 +14,139 @@ #include // @@protoc_insertion_point(includes) #include +extern PROTOBUF_INTERNAL_EXPORT_manifest_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Blob_manifest_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_manifest_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Fragment_manifest_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_manifest_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Options_manifest_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_schema_5farrow_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Schema_schema_5farrow_2eproto; +namespace manifest_proto { +class OptionsDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _Options_default_instance_; +class ManifestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _Manifest_default_instance_; +class FragmentDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _Fragment_default_instance_; +class BlobDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _Blob_default_instance_; +} // namespace manifest_proto +static void InitDefaultsscc_info_Blob_manifest_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; -PROTOBUF_PRAGMA_INIT_SEG + { + void* ptr = &::manifest_proto::_Blob_default_instance_; + new (ptr) ::manifest_proto::Blob(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::manifest_proto::Blob::InitAsDefaultInstance(); +} -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = _pb::internal; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Blob_manifest_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Blob_manifest_2eproto}, {}}; -namespace manifest_proto { -PROTOBUF_CONSTEXPR Options::Options( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.uri_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct OptionsDefaultTypeInternal { - PROTOBUF_CONSTEXPR OptionsDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~OptionsDefaultTypeInternal() {} - union { - Options _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OptionsDefaultTypeInternal _Options_default_instance_; -PROTOBUF_CONSTEXPR Manifest::Manifest( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.scalar_fragments_)*/{} - , /*decltype(_impl_.vector_fragments_)*/{} - , /*decltype(_impl_.delete_fragments_)*/{} - , /*decltype(_impl_.blobs_)*/{} - , /*decltype(_impl_.options_)*/nullptr - , /*decltype(_impl_.schema_)*/nullptr - , /*decltype(_impl_.version_)*/int64_t{0} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct ManifestDefaultTypeInternal { - PROTOBUF_CONSTEXPR ManifestDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~ManifestDefaultTypeInternal() {} - union { - Manifest _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ManifestDefaultTypeInternal _Manifest_default_instance_; -PROTOBUF_CONSTEXPR Fragment::Fragment( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.files_)*/{} - , /*decltype(_impl_.id_)*/int64_t{0} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct FragmentDefaultTypeInternal { - PROTOBUF_CONSTEXPR FragmentDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~FragmentDefaultTypeInternal() {} - union { - Fragment _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FragmentDefaultTypeInternal _Fragment_default_instance_; -PROTOBUF_CONSTEXPR Blob::Blob( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.file_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.size_)*/int64_t{0} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct BlobDefaultTypeInternal { - PROTOBUF_CONSTEXPR BlobDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~BlobDefaultTypeInternal() {} - union { - Blob _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BlobDefaultTypeInternal _Blob_default_instance_; -} // namespace manifest_proto -static ::_pb::Metadata file_level_metadata_manifest_2eproto[4]; -static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_manifest_2eproto = nullptr; -static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_manifest_2eproto = nullptr; +static void InitDefaultsscc_info_Fragment_manifest_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::manifest_proto::_Fragment_default_instance_; + new (ptr) ::manifest_proto::Fragment(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::manifest_proto::Fragment::InitAsDefaultInstance(); +} -const uint32_t TableStruct_manifest_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Fragment_manifest_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Fragment_manifest_2eproto}, {}}; + +static void InitDefaultsscc_info_Manifest_manifest_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::manifest_proto::_Manifest_default_instance_; + new (ptr) ::manifest_proto::Manifest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::manifest_proto::Manifest::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<4> scc_info_Manifest_manifest_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 4, 0, InitDefaultsscc_info_Manifest_manifest_2eproto}, { + &scc_info_Options_manifest_2eproto.base, + &scc_info_Schema_schema_5farrow_2eproto.base, + &scc_info_Fragment_manifest_2eproto.base, + &scc_info_Blob_manifest_2eproto.base,}}; + +static void InitDefaultsscc_info_Options_manifest_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::manifest_proto::_Options_default_instance_; + new (ptr) ::manifest_proto::Options(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::manifest_proto::Options::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Options_manifest_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Options_manifest_2eproto}, {}}; + +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_manifest_2eproto[4]; +static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_manifest_2eproto = nullptr; +static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_manifest_2eproto = nullptr; + +const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_manifest_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::manifest_proto::Options, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::manifest_proto::Options, _impl_.uri_), + PROTOBUF_FIELD_OFFSET(::manifest_proto::Options, uri_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::manifest_proto::Manifest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::manifest_proto::Manifest, _impl_.version_), - PROTOBUF_FIELD_OFFSET(::manifest_proto::Manifest, _impl_.options_), - PROTOBUF_FIELD_OFFSET(::manifest_proto::Manifest, _impl_.schema_), - PROTOBUF_FIELD_OFFSET(::manifest_proto::Manifest, _impl_.scalar_fragments_), - PROTOBUF_FIELD_OFFSET(::manifest_proto::Manifest, _impl_.vector_fragments_), - PROTOBUF_FIELD_OFFSET(::manifest_proto::Manifest, _impl_.delete_fragments_), - PROTOBUF_FIELD_OFFSET(::manifest_proto::Manifest, _impl_.blobs_), + PROTOBUF_FIELD_OFFSET(::manifest_proto::Manifest, version_), + PROTOBUF_FIELD_OFFSET(::manifest_proto::Manifest, options_), + PROTOBUF_FIELD_OFFSET(::manifest_proto::Manifest, schema_), + PROTOBUF_FIELD_OFFSET(::manifest_proto::Manifest, scalar_fragments_), + PROTOBUF_FIELD_OFFSET(::manifest_proto::Manifest, vector_fragments_), + PROTOBUF_FIELD_OFFSET(::manifest_proto::Manifest, delete_fragments_), + PROTOBUF_FIELD_OFFSET(::manifest_proto::Manifest, blobs_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::manifest_proto::Fragment, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::manifest_proto::Fragment, _impl_.id_), - PROTOBUF_FIELD_OFFSET(::manifest_proto::Fragment, _impl_.files_), + PROTOBUF_FIELD_OFFSET(::manifest_proto::Fragment, id_), + PROTOBUF_FIELD_OFFSET(::manifest_proto::Fragment, files_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::manifest_proto::Blob, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::manifest_proto::Blob, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::manifest_proto::Blob, _impl_.size_), - PROTOBUF_FIELD_OFFSET(::manifest_proto::Blob, _impl_.file_), + PROTOBUF_FIELD_OFFSET(::manifest_proto::Blob, name_), + PROTOBUF_FIELD_OFFSET(::manifest_proto::Blob, size_), + PROTOBUF_FIELD_OFFSET(::manifest_proto::Blob, file_), }; -static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, -1, sizeof(::manifest_proto::Options)}, - { 7, -1, -1, sizeof(::manifest_proto::Manifest)}, - { 20, -1, -1, sizeof(::manifest_proto::Fragment)}, - { 28, -1, -1, sizeof(::manifest_proto::Blob)}, +static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::manifest_proto::Options)}, + { 6, -1, sizeof(::manifest_proto::Manifest)}, + { 18, -1, sizeof(::manifest_proto::Fragment)}, + { 25, -1, sizeof(::manifest_proto::Blob)}, }; -static const ::_pb::Message* const file_default_instances[] = { - &::manifest_proto::_Options_default_instance_._instance, - &::manifest_proto::_Manifest_default_instance_._instance, - &::manifest_proto::_Fragment_default_instance_._instance, - &::manifest_proto::_Blob_default_instance_._instance, +static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { + reinterpret_cast(&::manifest_proto::_Options_default_instance_), + reinterpret_cast(&::manifest_proto::_Manifest_default_instance_), + reinterpret_cast(&::manifest_proto::_Fragment_default_instance_), + reinterpret_cast(&::manifest_proto::_Blob_default_instance_), }; const char descriptor_table_protodef_manifest_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = @@ -154,146 +163,140 @@ const char descriptor_table_protodef_manifest_2eproto[] PROTOBUF_SECTION_VARIABL "\001(\003\022\r\n\005files\030\002 \003(\t\"0\n\004Blob\022\014\n\004name\030\001 \001(\t" "\022\014\n\004size\030\002 \001(\003\022\014\n\004file\030\003 \001(\tb\006proto3" ; -static const ::_pbi::DescriptorTable* const descriptor_table_manifest_2eproto_deps[1] = { +static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_manifest_2eproto_deps[1] = { &::descriptor_table_schema_5farrow_2eproto, }; -static ::_pbi::once_flag descriptor_table_manifest_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_manifest_2eproto = { - false, false, 476, descriptor_table_protodef_manifest_2eproto, - "manifest.proto", - &descriptor_table_manifest_2eproto_once, descriptor_table_manifest_2eproto_deps, 1, 4, - schemas, file_default_instances, TableStruct_manifest_2eproto::offsets, - file_level_metadata_manifest_2eproto, file_level_enum_descriptors_manifest_2eproto, - file_level_service_descriptors_manifest_2eproto, +static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_manifest_2eproto_sccs[4] = { + &scc_info_Blob_manifest_2eproto.base, + &scc_info_Fragment_manifest_2eproto.base, + &scc_info_Manifest_manifest_2eproto.base, + &scc_info_Options_manifest_2eproto.base, +}; +static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_manifest_2eproto_once; +const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_manifest_2eproto = { + false, false, descriptor_table_protodef_manifest_2eproto, "manifest.proto", 476, + &descriptor_table_manifest_2eproto_once, descriptor_table_manifest_2eproto_sccs, descriptor_table_manifest_2eproto_deps, 4, 1, + schemas, file_default_instances, TableStruct_manifest_2eproto::offsets, + file_level_metadata_manifest_2eproto, 4, file_level_enum_descriptors_manifest_2eproto, file_level_service_descriptors_manifest_2eproto, }; -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_manifest_2eproto_getter() { - return &descriptor_table_manifest_2eproto; -} // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_manifest_2eproto(&descriptor_table_manifest_2eproto); +static bool dynamic_init_dummy_manifest_2eproto = (static_cast(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_manifest_2eproto)), true); namespace manifest_proto { // =================================================================== +void Options::InitAsDefaultInstance() { +} class Options::_Internal { public: }; -Options::Options(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +Options::Options(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:manifest_proto.Options) } Options::Options(const Options& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - Options* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.uri_){} - , /*decltype(_impl_._cached_size_)*/{}}; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.uri_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.uri_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + uri_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_uri().empty()) { - _this->_impl_.uri_.Set(from._internal_uri(), - _this->GetArenaForAllocation()); + uri_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_uri(), + GetArena()); } // @@protoc_insertion_point(copy_constructor:manifest_proto.Options) } -inline void Options::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.uri_){} - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.uri_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.uri_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +void Options::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Options_manifest_2eproto.base); + uri_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } Options::~Options() { // @@protoc_insertion_point(destructor:manifest_proto.Options) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -inline void Options::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.uri_.Destroy(); +void Options::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + uri_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } +void Options::ArenaDtor(void* object) { + Options* _this = reinterpret_cast< Options* >(object); + (void)_this; +} +void Options::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} void Options::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + _cached_size_.Set(size); } +const Options& Options::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Options_manifest_2eproto.base); + return *internal_default_instance(); +} + void Options::Clear() { // @@protoc_insertion_point(message_clear_start:manifest_proto.Options) - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.uri_.ClearToEmpty(); + uri_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* Options::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* Options::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); switch (tag >> 3) { // string uri = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_uri(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "manifest_proto.Options.uri")); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "manifest_proto.Options.uri")); - } else - goto handle_unusual; + } else goto handle_unusual; continue; - default: - goto handle_unusual; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); } // while -message_done: +success: return ptr; failure: ptr = nullptr; - goto message_done; + goto success; #undef CHK_ } -uint8_t* Options::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::PROTOBUF_NAMESPACE_ID::uint8* Options::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:manifest_proto.Options) - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // string uri = 1; - if (!this->_internal_uri().empty()) { + if (this->uri().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_uri().data(), static_cast(this->_internal_uri().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -303,7 +306,7 @@ uint8_t* Options::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:manifest_proto.Options) @@ -314,39 +317,58 @@ size_t Options::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:manifest_proto.Options) size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string uri = 1; - if (!this->_internal_uri().empty()) { + if (this->uri().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_uri()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Options::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:manifest_proto.Options) + GOOGLE_DCHECK_NE(&from, this); + const Options* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:manifest_proto.Options) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:manifest_proto.Options) + MergeFrom(*source); + } } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Options::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - Options::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Options::GetClassData() const { return &_class_data_; } - - -void Options::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:manifest_proto.Options) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; +void Options::MergeFrom(const Options& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:manifest_proto.Options) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_uri().empty()) { - _this->_internal_set_uri(from._internal_uri()); + if (from.uri().size() > 0) { + _internal_set_uri(from._internal_uri()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Options::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:manifest_proto.Options) + if (&from == this) return; + Clear(); + MergeFrom(from); } void Options::CopyFrom(const Options& from) { @@ -362,23 +384,23 @@ bool Options::IsInitialized() const { void Options::InternalSwap(Options* other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.uri_, lhs_arena, - &other->_impl_.uri_, rhs_arena - ); + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + uri_.Swap(&other->uri_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } ::PROTOBUF_NAMESPACE_ID::Metadata Options::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_manifest_2eproto_getter, &descriptor_table_manifest_2eproto_once, - file_level_metadata_manifest_2eproto[0]); + return GetMetadataStatic(); } + // =================================================================== +void Manifest::InitAsDefaultInstance() { + ::manifest_proto::_Manifest_default_instance_._instance.get_mutable()->options_ = const_cast< ::manifest_proto::Options*>( + ::manifest_proto::Options::internal_default_instance()); + ::manifest_proto::_Manifest_default_instance_._instance.get_mutable()->schema_ = const_cast< ::schema_proto::Schema*>( + ::schema_proto::Schema::internal_default_instance()); +} class Manifest::_Internal { public: static const ::manifest_proto::Options& options(const Manifest* msg); @@ -387,142 +409,137 @@ class Manifest::_Internal { const ::manifest_proto::Options& Manifest::_Internal::options(const Manifest* msg) { - return *msg->_impl_.options_; + return *msg->options_; } const ::schema_proto::Schema& Manifest::_Internal::schema(const Manifest* msg) { - return *msg->_impl_.schema_; + return *msg->schema_; } void Manifest::clear_schema() { - if (GetArenaForAllocation() == nullptr && _impl_.schema_ != nullptr) { - delete _impl_.schema_; + if (GetArena() == nullptr && schema_ != nullptr) { + delete schema_; } - _impl_.schema_ = nullptr; -} -Manifest::Manifest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); + schema_ = nullptr; +} +Manifest::Manifest(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + scalar_fragments_(arena), + vector_fragments_(arena), + delete_fragments_(arena), + blobs_(arena) { + SharedCtor(); + RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:manifest_proto.Manifest) } Manifest::Manifest(const Manifest& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - Manifest* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.scalar_fragments_){from._impl_.scalar_fragments_} - , decltype(_impl_.vector_fragments_){from._impl_.vector_fragments_} - , decltype(_impl_.delete_fragments_){from._impl_.delete_fragments_} - , decltype(_impl_.blobs_){from._impl_.blobs_} - , decltype(_impl_.options_){nullptr} - , decltype(_impl_.schema_){nullptr} - , decltype(_impl_.version_){} - , /*decltype(_impl_._cached_size_)*/{}}; - + : ::PROTOBUF_NAMESPACE_ID::Message(), + scalar_fragments_(from.scalar_fragments_), + vector_fragments_(from.vector_fragments_), + delete_fragments_(from.delete_fragments_), + blobs_(from.blobs_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_options()) { - _this->_impl_.options_ = new ::manifest_proto::Options(*from._impl_.options_); + options_ = new ::manifest_proto::Options(*from.options_); + } else { + options_ = nullptr; } if (from._internal_has_schema()) { - _this->_impl_.schema_ = new ::schema_proto::Schema(*from._impl_.schema_); + schema_ = new ::schema_proto::Schema(*from.schema_); + } else { + schema_ = nullptr; } - _this->_impl_.version_ = from._impl_.version_; + version_ = from.version_; // @@protoc_insertion_point(copy_constructor:manifest_proto.Manifest) } -inline void Manifest::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.scalar_fragments_){arena} - , decltype(_impl_.vector_fragments_){arena} - , decltype(_impl_.delete_fragments_){arena} - , decltype(_impl_.blobs_){arena} - , decltype(_impl_.options_){nullptr} - , decltype(_impl_.schema_){nullptr} - , decltype(_impl_.version_){int64_t{0}} - , /*decltype(_impl_._cached_size_)*/{} - }; +void Manifest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Manifest_manifest_2eproto.base); + ::memset(&options_, 0, static_cast( + reinterpret_cast(&version_) - + reinterpret_cast(&options_)) + sizeof(version_)); } Manifest::~Manifest() { // @@protoc_insertion_point(destructor:manifest_proto.Manifest) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -inline void Manifest::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.scalar_fragments_.~RepeatedPtrField(); - _impl_.vector_fragments_.~RepeatedPtrField(); - _impl_.delete_fragments_.~RepeatedPtrField(); - _impl_.blobs_.~RepeatedPtrField(); - if (this != internal_default_instance()) delete _impl_.options_; - if (this != internal_default_instance()) delete _impl_.schema_; +void Manifest::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + if (this != internal_default_instance()) delete options_; + if (this != internal_default_instance()) delete schema_; } +void Manifest::ArenaDtor(void* object) { + Manifest* _this = reinterpret_cast< Manifest* >(object); + (void)_this; +} +void Manifest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} void Manifest::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + _cached_size_.Set(size); } +const Manifest& Manifest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Manifest_manifest_2eproto.base); + return *internal_default_instance(); +} + void Manifest::Clear() { // @@protoc_insertion_point(message_clear_start:manifest_proto.Manifest) - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.scalar_fragments_.Clear(); - _impl_.vector_fragments_.Clear(); - _impl_.delete_fragments_.Clear(); - _impl_.blobs_.Clear(); - if (GetArenaForAllocation() == nullptr && _impl_.options_ != nullptr) { - delete _impl_.options_; + scalar_fragments_.Clear(); + vector_fragments_.Clear(); + delete_fragments_.Clear(); + blobs_.Clear(); + if (GetArena() == nullptr && options_ != nullptr) { + delete options_; } - _impl_.options_ = nullptr; - if (GetArenaForAllocation() == nullptr && _impl_.schema_ != nullptr) { - delete _impl_.schema_; + options_ = nullptr; + if (GetArena() == nullptr && schema_ != nullptr) { + delete schema_; } - _impl_.schema_ = nullptr; - _impl_.version_ = int64_t{0}; + schema_ = nullptr; + version_ = PROTOBUF_LONGLONG(0); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* Manifest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* Manifest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); switch (tag >> 3) { // int64 version = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _impl_.version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else - goto handle_unusual; + } else goto handle_unusual; continue; // .manifest_proto.Options options = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_options(), ptr); CHK_(ptr); - } else - goto handle_unusual; + } else goto handle_unusual; continue; // .schema_proto.Schema schema = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { ptr = ctx->ParseMessage(_internal_mutable_schema(), ptr); CHK_(ptr); - } else - goto handle_unusual; + } else goto handle_unusual; continue; // repeated .manifest_proto.Fragment scalar_fragments = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { ptr -= 1; do { ptr += 1; @@ -530,12 +547,11 @@ const char* Manifest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); - } else - goto handle_unusual; + } else goto handle_unusual; continue; // repeated .manifest_proto.Fragment vector_fragments = 5; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { ptr -= 1; do { ptr += 1; @@ -543,12 +559,11 @@ const char* Manifest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr)); - } else - goto handle_unusual; + } else goto handle_unusual; continue; // repeated .manifest_proto.Fragment delete_fragments = 6; case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { ptr -= 1; do { ptr += 1; @@ -556,12 +571,11 @@ const char* Manifest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr)); - } else - goto handle_unusual; + } else goto handle_unusual; continue; // repeated .manifest_proto.Blob blobs = 7; case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { ptr -= 1; do { ptr += 1; @@ -569,92 +583,92 @@ const char* Manifest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<58>(ptr)); - } else - goto handle_unusual; + } else goto handle_unusual; continue; - default: - goto handle_unusual; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); } // while -message_done: +success: return ptr; failure: ptr = nullptr; - goto message_done; + goto success; #undef CHK_ } -uint8_t* Manifest::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::PROTOBUF_NAMESPACE_ID::uint8* Manifest::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:manifest_proto.Manifest) - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // int64 version = 1; - if (this->_internal_version() != 0) { + if (this->version() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_version(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_version(), target); } // .manifest_proto.Options options = 2; - if (this->_internal_has_options()) { + if (this->has_options()) { + target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::options(this), - _Internal::options(this).GetCachedSize(), target, stream); + InternalWriteMessage( + 2, _Internal::options(this), target, stream); } // .schema_proto.Schema schema = 3; - if (this->_internal_has_schema()) { + if (this->has_schema()) { + target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(3, _Internal::schema(this), - _Internal::schema(this).GetCachedSize(), target, stream); + InternalWriteMessage( + 3, _Internal::schema(this), target, stream); } // repeated .manifest_proto.Fragment scalar_fragments = 4; - for (unsigned i = 0, - n = static_cast(this->_internal_scalar_fragments_size()); i < n; i++) { - const auto& repfield = this->_internal_scalar_fragments(i); + for (unsigned int i = 0, + n = static_cast(this->_internal_scalar_fragments_size()); i < n; i++) { + target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream); + InternalWriteMessage(4, this->_internal_scalar_fragments(i), target, stream); } // repeated .manifest_proto.Fragment vector_fragments = 5; - for (unsigned i = 0, - n = static_cast(this->_internal_vector_fragments_size()); i < n; i++) { - const auto& repfield = this->_internal_vector_fragments(i); + for (unsigned int i = 0, + n = static_cast(this->_internal_vector_fragments_size()); i < n; i++) { + target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(5, repfield, repfield.GetCachedSize(), target, stream); + InternalWriteMessage(5, this->_internal_vector_fragments(i), target, stream); } // repeated .manifest_proto.Fragment delete_fragments = 6; - for (unsigned i = 0, - n = static_cast(this->_internal_delete_fragments_size()); i < n; i++) { - const auto& repfield = this->_internal_delete_fragments(i); + for (unsigned int i = 0, + n = static_cast(this->_internal_delete_fragments_size()); i < n; i++) { + target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(6, repfield, repfield.GetCachedSize(), target, stream); + InternalWriteMessage(6, this->_internal_delete_fragments(i), target, stream); } // repeated .manifest_proto.Blob blobs = 7; - for (unsigned i = 0, - n = static_cast(this->_internal_blobs_size()); i < n; i++) { - const auto& repfield = this->_internal_blobs(i); + for (unsigned int i = 0, + n = static_cast(this->_internal_blobs_size()); i < n; i++) { + target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(7, repfield, repfield.GetCachedSize(), target, stream); + InternalWriteMessage(7, this->_internal_blobs(i), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:manifest_proto.Manifest) @@ -665,91 +679,110 @@ size_t Manifest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:manifest_proto.Manifest) size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .manifest_proto.Fragment scalar_fragments = 4; total_size += 1UL * this->_internal_scalar_fragments_size(); - for (const auto& msg : this->_impl_.scalar_fragments_) { + for (const auto& msg : this->scalar_fragments_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } // repeated .manifest_proto.Fragment vector_fragments = 5; total_size += 1UL * this->_internal_vector_fragments_size(); - for (const auto& msg : this->_impl_.vector_fragments_) { + for (const auto& msg : this->vector_fragments_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } // repeated .manifest_proto.Fragment delete_fragments = 6; total_size += 1UL * this->_internal_delete_fragments_size(); - for (const auto& msg : this->_impl_.delete_fragments_) { + for (const auto& msg : this->delete_fragments_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } // repeated .manifest_proto.Blob blobs = 7; total_size += 1UL * this->_internal_blobs_size(); - for (const auto& msg : this->_impl_.blobs_) { + for (const auto& msg : this->blobs_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } // .manifest_proto.Options options = 2; - if (this->_internal_has_options()) { + if (this->has_options()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.options_); + *options_); } // .schema_proto.Schema schema = 3; - if (this->_internal_has_schema()) { + if (this->has_schema()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.schema_); + *schema_); } // int64 version = 1; - if (this->_internal_version() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_version()); + if (this->version() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->_internal_version()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Manifest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:manifest_proto.Manifest) + GOOGLE_DCHECK_NE(&from, this); + const Manifest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:manifest_proto.Manifest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:manifest_proto.Manifest) + MergeFrom(*source); + } } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Manifest::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - Manifest::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Manifest::GetClassData() const { return &_class_data_; } - - -void Manifest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:manifest_proto.Manifest) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; +void Manifest::MergeFrom(const Manifest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:manifest_proto.Manifest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.scalar_fragments_.MergeFrom(from._impl_.scalar_fragments_); - _this->_impl_.vector_fragments_.MergeFrom(from._impl_.vector_fragments_); - _this->_impl_.delete_fragments_.MergeFrom(from._impl_.delete_fragments_); - _this->_impl_.blobs_.MergeFrom(from._impl_.blobs_); - if (from._internal_has_options()) { - _this->_internal_mutable_options()->::manifest_proto::Options::MergeFrom( - from._internal_options()); + scalar_fragments_.MergeFrom(from.scalar_fragments_); + vector_fragments_.MergeFrom(from.vector_fragments_); + delete_fragments_.MergeFrom(from.delete_fragments_); + blobs_.MergeFrom(from.blobs_); + if (from.has_options()) { + _internal_mutable_options()->::manifest_proto::Options::MergeFrom(from._internal_options()); } - if (from._internal_has_schema()) { - _this->_internal_mutable_schema()->::schema_proto::Schema::MergeFrom( - from._internal_schema()); + if (from.has_schema()) { + _internal_mutable_schema()->::schema_proto::Schema::MergeFrom(from._internal_schema()); } - if (from._internal_version() != 0) { - _this->_internal_set_version(from._internal_version()); + if (from.version() != 0) { + _internal_set_version(from._internal_version()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Manifest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:manifest_proto.Manifest) + if (&from == this) return; + Clear(); + MergeFrom(from); } void Manifest::CopyFrom(const Manifest& from) { @@ -765,152 +798,149 @@ bool Manifest::IsInitialized() const { void Manifest::InternalSwap(Manifest* other) { using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.scalar_fragments_.InternalSwap(&other->_impl_.scalar_fragments_); - _impl_.vector_fragments_.InternalSwap(&other->_impl_.vector_fragments_); - _impl_.delete_fragments_.InternalSwap(&other->_impl_.delete_fragments_); - _impl_.blobs_.InternalSwap(&other->_impl_.blobs_); + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + scalar_fragments_.InternalSwap(&other->scalar_fragments_); + vector_fragments_.InternalSwap(&other->vector_fragments_); + delete_fragments_.InternalSwap(&other->delete_fragments_); + blobs_.InternalSwap(&other->blobs_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(Manifest, _impl_.version_) - + sizeof(Manifest::_impl_.version_) - - PROTOBUF_FIELD_OFFSET(Manifest, _impl_.options_)>( - reinterpret_cast(&_impl_.options_), - reinterpret_cast(&other->_impl_.options_)); + PROTOBUF_FIELD_OFFSET(Manifest, version_) + + sizeof(Manifest::version_) + - PROTOBUF_FIELD_OFFSET(Manifest, options_)>( + reinterpret_cast(&options_), + reinterpret_cast(&other->options_)); } ::PROTOBUF_NAMESPACE_ID::Metadata Manifest::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_manifest_2eproto_getter, &descriptor_table_manifest_2eproto_once, - file_level_metadata_manifest_2eproto[1]); + return GetMetadataStatic(); } + // =================================================================== +void Fragment::InitAsDefaultInstance() { +} class Fragment::_Internal { public: }; -Fragment::Fragment(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +Fragment::Fragment(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + files_(arena) { + SharedCtor(); + RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:manifest_proto.Fragment) } Fragment::Fragment(const Fragment& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - Fragment* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.files_){from._impl_.files_} - , decltype(_impl_.id_){} - , /*decltype(_impl_._cached_size_)*/{}}; - + : ::PROTOBUF_NAMESPACE_ID::Message(), + files_(from.files_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.id_ = from._impl_.id_; + id_ = from.id_; // @@protoc_insertion_point(copy_constructor:manifest_proto.Fragment) } -inline void Fragment::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.files_){arena} - , decltype(_impl_.id_){int64_t{0}} - , /*decltype(_impl_._cached_size_)*/{} - }; +void Fragment::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Fragment_manifest_2eproto.base); + id_ = PROTOBUF_LONGLONG(0); } Fragment::~Fragment() { // @@protoc_insertion_point(destructor:manifest_proto.Fragment) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -inline void Fragment::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.files_.~RepeatedPtrField(); +void Fragment::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); } +void Fragment::ArenaDtor(void* object) { + Fragment* _this = reinterpret_cast< Fragment* >(object); + (void)_this; +} +void Fragment::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} void Fragment::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + _cached_size_.Set(size); } +const Fragment& Fragment::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Fragment_manifest_2eproto.base); + return *internal_default_instance(); +} + void Fragment::Clear() { // @@protoc_insertion_point(message_clear_start:manifest_proto.Fragment) - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.files_.Clear(); - _impl_.id_ = int64_t{0}; + files_.Clear(); + id_ = PROTOBUF_LONGLONG(0); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* Fragment::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* Fragment::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); switch (tag >> 3) { // int64 id = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else - goto handle_unusual; + } else goto handle_unusual; continue; // repeated string files = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { ptr -= 1; do { ptr += 1; auto str = _internal_add_files(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "manifest_proto.Fragment.files")); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "manifest_proto.Fragment.files")); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); - } else - goto handle_unusual; + } else goto handle_unusual; continue; - default: - goto handle_unusual; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); } // while -message_done: +success: return ptr; failure: ptr = nullptr; - goto message_done; + goto success; #undef CHK_ } -uint8_t* Fragment::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::PROTOBUF_NAMESPACE_ID::uint8* Fragment::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:manifest_proto.Fragment) - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // int64 id = 1; - if (this->_internal_id() != 0) { + if (this->id() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_id(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_id(), target); } // repeated string files = 2; @@ -924,7 +954,7 @@ uint8_t* Fragment::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:manifest_proto.Fragment) @@ -935,46 +965,67 @@ size_t Fragment::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:manifest_proto.Fragment) size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string files = 2; total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.files_.size()); - for (int i = 0, n = _impl_.files_.size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(files_.size()); + for (int i = 0, n = files_.size(); i < n; i++) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - _impl_.files_.Get(i)); + files_.Get(i)); } // int64 id = 1; - if (this->_internal_id() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_id()); + if (this->id() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->_internal_id()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Fragment::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:manifest_proto.Fragment) + GOOGLE_DCHECK_NE(&from, this); + const Fragment* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:manifest_proto.Fragment) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:manifest_proto.Fragment) + MergeFrom(*source); + } } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Fragment::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - Fragment::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Fragment::GetClassData() const { return &_class_data_; } - - -void Fragment::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:manifest_proto.Fragment) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; +void Fragment::MergeFrom(const Fragment& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:manifest_proto.Fragment) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.files_.MergeFrom(from._impl_.files_); - if (from._internal_id() != 0) { - _this->_internal_set_id(from._internal_id()); + files_.MergeFrom(from.files_); + if (from.id() != 0) { + _internal_set_id(from._internal_id()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Fragment::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:manifest_proto.Fragment) + if (&from == this) return; + Clear(); + MergeFrom(from); } void Fragment::CopyFrom(const Fragment& from) { @@ -990,175 +1041,156 @@ bool Fragment::IsInitialized() const { void Fragment::InternalSwap(Fragment* other) { using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.files_.InternalSwap(&other->_impl_.files_); - swap(_impl_.id_, other->_impl_.id_); + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + files_.InternalSwap(&other->files_); + swap(id_, other->id_); } ::PROTOBUF_NAMESPACE_ID::Metadata Fragment::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_manifest_2eproto_getter, &descriptor_table_manifest_2eproto_once, - file_level_metadata_manifest_2eproto[2]); + return GetMetadataStatic(); } + // =================================================================== +void Blob::InitAsDefaultInstance() { +} class Blob::_Internal { public: }; -Blob::Blob(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +Blob::Blob(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:manifest_proto.Blob) } Blob::Blob(const Blob& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - Blob* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.name_){} - , decltype(_impl_.file_){} - , decltype(_impl_.size_){} - , /*decltype(_impl_._cached_size_)*/{}}; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_name().empty()) { - _this->_impl_.name_.Set(from._internal_name(), - _this->GetArenaForAllocation()); + name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_name(), + GetArena()); } - _impl_.file_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.file_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + file_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_file().empty()) { - _this->_impl_.file_.Set(from._internal_file(), - _this->GetArenaForAllocation()); + file_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_file(), + GetArena()); } - _this->_impl_.size_ = from._impl_.size_; + size_ = from.size_; // @@protoc_insertion_point(copy_constructor:manifest_proto.Blob) } -inline void Blob::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.name_){} - , decltype(_impl_.file_){} - , decltype(_impl_.size_){int64_t{0}} - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.file_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.file_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +void Blob::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Blob_manifest_2eproto.base); + name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + file_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + size_ = PROTOBUF_LONGLONG(0); } Blob::~Blob() { // @@protoc_insertion_point(destructor:manifest_proto.Blob) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -inline void Blob::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.name_.Destroy(); - _impl_.file_.Destroy(); +void Blob::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + file_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } +void Blob::ArenaDtor(void* object) { + Blob* _this = reinterpret_cast< Blob* >(object); + (void)_this; +} +void Blob::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} void Blob::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + _cached_size_.Set(size); +} +const Blob& Blob::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Blob_manifest_2eproto.base); + return *internal_default_instance(); } + void Blob::Clear() { // @@protoc_insertion_point(message_clear_start:manifest_proto.Blob) - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _impl_.file_.ClearToEmpty(); - _impl_.size_ = int64_t{0}; + name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + file_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + size_ = PROTOBUF_LONGLONG(0); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* Blob::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* Blob::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); switch (tag >> 3) { // string name = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "manifest_proto.Blob.name")); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "manifest_proto.Blob.name")); - } else - goto handle_unusual; + } else goto handle_unusual; continue; // int64 size = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _impl_.size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else - goto handle_unusual; + } else goto handle_unusual; continue; // string file = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { auto str = _internal_mutable_file(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "manifest_proto.Blob.file")); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "manifest_proto.Blob.file")); - } else - goto handle_unusual; + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); continue; - default: - goto handle_unusual; + } } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); } // while -message_done: +success: return ptr; failure: ptr = nullptr; - goto message_done; + goto success; #undef CHK_ } -uint8_t* Blob::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::PROTOBUF_NAMESPACE_ID::uint8* Blob::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:manifest_proto.Blob) - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // string name = 1; - if (!this->_internal_name().empty()) { + if (this->name().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_name().data(), static_cast(this->_internal_name().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -1168,13 +1200,13 @@ uint8_t* Blob::_InternalSerialize( } // int64 size = 2; - if (this->_internal_size() != 0) { + if (this->size() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_size(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_size(), target); } // string file = 3; - if (!this->_internal_file().empty()) { + if (this->file().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_file().data(), static_cast(this->_internal_file().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -1184,7 +1216,7 @@ uint8_t* Blob::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:manifest_proto.Blob) @@ -1195,57 +1227,78 @@ size_t Blob::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:manifest_proto.Blob) size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string name = 1; - if (!this->_internal_name().empty()) { + if (this->name().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_name()); } // string file = 3; - if (!this->_internal_file().empty()) { + if (this->file().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_file()); } // int64 size = 2; - if (this->_internal_size() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_size()); + if (this->size() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->_internal_size()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void Blob::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:manifest_proto.Blob) + GOOGLE_DCHECK_NE(&from, this); + const Blob* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:manifest_proto.Blob) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:manifest_proto.Blob) + MergeFrom(*source); + } } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Blob::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - Blob::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Blob::GetClassData() const { return &_class_data_; } - - -void Blob::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:manifest_proto.Blob) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; +void Blob::MergeFrom(const Blob& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:manifest_proto.Blob) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + if (from.name().size() > 0) { + _internal_set_name(from._internal_name()); } - if (!from._internal_file().empty()) { - _this->_internal_set_file(from._internal_file()); + if (from.file().size() > 0) { + _internal_set_file(from._internal_file()); } - if (from._internal_size() != 0) { - _this->_internal_set_size(from._internal_size()); + if (from.size() != 0) { + _internal_set_size(from._internal_size()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Blob::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:manifest_proto.Blob) + if (&from == this) return; + Clear(); + MergeFrom(from); } void Blob::CopyFrom(const Blob& from) { @@ -1261,43 +1314,30 @@ bool Blob::IsInitialized() const { void Blob::InternalSwap(Blob* other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.file_, lhs_arena, - &other->_impl_.file_, rhs_arena - ); - swap(_impl_.size_, other->_impl_.size_); + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + file_.Swap(&other->file_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + swap(size_, other->size_); } ::PROTOBUF_NAMESPACE_ID::Metadata Blob::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_manifest_2eproto_getter, &descriptor_table_manifest_2eproto_once, - file_level_metadata_manifest_2eproto[3]); + return GetMetadataStatic(); } + // @@protoc_insertion_point(namespace_scope) } // namespace manifest_proto PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::manifest_proto::Options* -Arena::CreateMaybeMessage< ::manifest_proto::Options >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::manifest_proto::Options* Arena::CreateMaybeMessage< ::manifest_proto::Options >(Arena* arena) { return Arena::CreateMessageInternal< ::manifest_proto::Options >(arena); } -template<> PROTOBUF_NOINLINE ::manifest_proto::Manifest* -Arena::CreateMaybeMessage< ::manifest_proto::Manifest >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::manifest_proto::Manifest* Arena::CreateMaybeMessage< ::manifest_proto::Manifest >(Arena* arena) { return Arena::CreateMessageInternal< ::manifest_proto::Manifest >(arena); } -template<> PROTOBUF_NOINLINE ::manifest_proto::Fragment* -Arena::CreateMaybeMessage< ::manifest_proto::Fragment >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::manifest_proto::Fragment* Arena::CreateMaybeMessage< ::manifest_proto::Fragment >(Arena* arena) { return Arena::CreateMessageInternal< ::manifest_proto::Fragment >(arena); } -template<> PROTOBUF_NOINLINE ::manifest_proto::Blob* -Arena::CreateMaybeMessage< ::manifest_proto::Blob >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::manifest_proto::Blob* Arena::CreateMaybeMessage< ::manifest_proto::Blob >(Arena* arena) { return Arena::CreateMessageInternal< ::manifest_proto::Blob >(arena); } PROTOBUF_NAMESPACE_CLOSE diff --git a/cpp/src/proto/manifest.pb.h b/cpp/src/proto/manifest.pb.h index bb357ab..910c64c 100644 --- a/cpp/src/proto/manifest.pb.h +++ b/cpp/src/proto/manifest.pb.h @@ -8,12 +8,12 @@ #include #include -#if PROTOBUF_VERSION < 3021000 +#if PROTOBUF_VERSION < 3012000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3021004 < PROTOBUF_MIN_PROTOC_VERSION +#if 3012004 < PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. @@ -23,7 +23,9 @@ #include #include #include +#include #include +#include #include #include #include @@ -42,21 +44,29 @@ PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_manifest_2eproto { - static const uint32_t offsets[]; + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[4] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; + static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; + static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; }; extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_manifest_2eproto; namespace manifest_proto { class Blob; -struct BlobDefaultTypeInternal; +class BlobDefaultTypeInternal; extern BlobDefaultTypeInternal _Blob_default_instance_; class Fragment; -struct FragmentDefaultTypeInternal; +class FragmentDefaultTypeInternal; extern FragmentDefaultTypeInternal _Fragment_default_instance_; class Manifest; -struct ManifestDefaultTypeInternal; +class ManifestDefaultTypeInternal; extern ManifestDefaultTypeInternal _Manifest_default_instance_; class Options; -struct OptionsDefaultTypeInternal; +class OptionsDefaultTypeInternal; extern OptionsDefaultTypeInternal _Options_default_instance_; } // namespace manifest_proto PROTOBUF_NAMESPACE_OPEN @@ -69,12 +79,11 @@ namespace manifest_proto { // =================================================================== -class Options final : +class Options PROTOBUF_FINAL : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:manifest_proto.Options) */ { public: - inline Options() : Options(nullptr) {} - ~Options() override; - explicit PROTOBUF_CONSTEXPR Options(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline Options() : Options(nullptr) {}; + virtual ~Options(); Options(const Options& from); Options(Options&& from) noexcept @@ -87,13 +96,8 @@ class Options final : return *this; } inline Options& operator=(Options&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } @@ -104,14 +108,14 @@ class Options final : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; + return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Options& default_instance() { - return *internal_default_instance(); + return GetMetadataStatic().reflection; } + static const Options& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const Options* internal_default_instance() { return reinterpret_cast( &_Options_default_instance_); @@ -124,12 +128,7 @@ class Options final : } inline void Swap(Options* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -137,53 +136,56 @@ class Options final : } void UnsafeArenaSwap(Options* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Options* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + inline Options* New() const final { + return CreateMaybeMessage(nullptr); + } + + Options* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const Options& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const Options& from) { - Options::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: + void MergeFrom(const Options& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Options* other); - - private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "manifest_proto.Options"; } protected: - explicit Options(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit Options(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_manifest_2eproto); + return ::descriptor_table_manifest_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- @@ -195,14 +197,25 @@ class Options final : // string uri = 1; void clear_uri(); const std::string& uri() const; - template - void set_uri(ArgT0&& arg0, ArgT... args); + void set_uri(const std::string& value); + void set_uri(std::string&& value); + void set_uri(const char* value); + void set_uri(const char* value, size_t size); std::string* mutable_uri(); - PROTOBUF_NODISCARD std::string* release_uri(); + std::string* release_uri(); void set_allocated_uri(std::string* uri); + GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + std::string* unsafe_arena_release_uri(); + GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + void unsafe_arena_set_allocated_uri( + std::string* uri); private: const std::string& _internal_uri() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_uri(const std::string& value); + void _internal_set_uri(const std::string& value); std::string* _internal_mutable_uri(); public: @@ -213,21 +226,17 @@ class Options final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr uri_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr uri_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_manifest_2eproto; }; // ------------------------------------------------------------------- -class Manifest final : +class Manifest PROTOBUF_FINAL : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:manifest_proto.Manifest) */ { public: - inline Manifest() : Manifest(nullptr) {} - ~Manifest() override; - explicit PROTOBUF_CONSTEXPR Manifest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline Manifest() : Manifest(nullptr) {}; + virtual ~Manifest(); Manifest(const Manifest& from); Manifest(Manifest&& from) noexcept @@ -240,13 +249,8 @@ class Manifest final : return *this; } inline Manifest& operator=(Manifest&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } @@ -257,14 +261,14 @@ class Manifest final : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; + return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Manifest& default_instance() { - return *internal_default_instance(); + return GetMetadataStatic().reflection; } + static const Manifest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const Manifest* internal_default_instance() { return reinterpret_cast( &_Manifest_default_instance_); @@ -277,12 +281,7 @@ class Manifest final : } inline void Swap(Manifest* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -290,53 +289,56 @@ class Manifest final : } void UnsafeArenaSwap(Manifest* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Manifest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + inline Manifest* New() const final { + return CreateMaybeMessage(nullptr); + } + + Manifest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const Manifest& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const Manifest& from) { - Manifest::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: + void MergeFrom(const Manifest& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Manifest* other); - - private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "manifest_proto.Manifest"; } protected: - explicit Manifest(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit Manifest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_manifest_2eproto); + return ::descriptor_table_manifest_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- @@ -430,7 +432,7 @@ class Manifest final : public: void clear_options(); const ::manifest_proto::Options& options() const; - PROTOBUF_NODISCARD ::manifest_proto::Options* release_options(); + ::manifest_proto::Options* release_options(); ::manifest_proto::Options* mutable_options(); void set_allocated_options(::manifest_proto::Options* options); private: @@ -448,7 +450,7 @@ class Manifest final : public: void clear_schema(); const ::schema_proto::Schema& schema() const; - PROTOBUF_NODISCARD ::schema_proto::Schema* release_schema(); + ::schema_proto::Schema* release_schema(); ::schema_proto::Schema* mutable_schema(); void set_allocated_schema(::schema_proto::Schema* schema); private: @@ -461,11 +463,11 @@ class Manifest final : // int64 version = 1; void clear_version(); - int64_t version() const; - void set_version(int64_t value); + ::PROTOBUF_NAMESPACE_ID::int64 version() const; + void set_version(::PROTOBUF_NAMESPACE_ID::int64 value); private: - int64_t _internal_version() const; - void _internal_set_version(int64_t value); + ::PROTOBUF_NAMESPACE_ID::int64 _internal_version() const; + void _internal_set_version(::PROTOBUF_NAMESPACE_ID::int64 value); public: // @@protoc_insertion_point(class_scope:manifest_proto.Manifest) @@ -475,27 +477,23 @@ class Manifest final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::manifest_proto::Fragment > scalar_fragments_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::manifest_proto::Fragment > vector_fragments_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::manifest_proto::Fragment > delete_fragments_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::manifest_proto::Blob > blobs_; - ::manifest_proto::Options* options_; - ::schema_proto::Schema* schema_; - int64_t version_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::manifest_proto::Fragment > scalar_fragments_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::manifest_proto::Fragment > vector_fragments_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::manifest_proto::Fragment > delete_fragments_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::manifest_proto::Blob > blobs_; + ::manifest_proto::Options* options_; + ::schema_proto::Schema* schema_; + ::PROTOBUF_NAMESPACE_ID::int64 version_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_manifest_2eproto; }; // ------------------------------------------------------------------- -class Fragment final : +class Fragment PROTOBUF_FINAL : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:manifest_proto.Fragment) */ { public: - inline Fragment() : Fragment(nullptr) {} - ~Fragment() override; - explicit PROTOBUF_CONSTEXPR Fragment(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline Fragment() : Fragment(nullptr) {}; + virtual ~Fragment(); Fragment(const Fragment& from); Fragment(Fragment&& from) noexcept @@ -508,13 +506,8 @@ class Fragment final : return *this; } inline Fragment& operator=(Fragment&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } @@ -525,14 +518,14 @@ class Fragment final : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; + return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Fragment& default_instance() { - return *internal_default_instance(); + return GetMetadataStatic().reflection; } + static const Fragment& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const Fragment* internal_default_instance() { return reinterpret_cast( &_Fragment_default_instance_); @@ -545,12 +538,7 @@ class Fragment final : } inline void Swap(Fragment* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -558,53 +546,56 @@ class Fragment final : } void UnsafeArenaSwap(Fragment* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Fragment* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + inline Fragment* New() const final { + return CreateMaybeMessage(nullptr); + } + + Fragment* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const Fragment& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const Fragment& from) { - Fragment::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: + void MergeFrom(const Fragment& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Fragment* other); - - private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "manifest_proto.Fragment"; } protected: - explicit Fragment(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit Fragment(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_manifest_2eproto); + return ::descriptor_table_manifest_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- @@ -640,11 +631,11 @@ class Fragment final : // int64 id = 1; void clear_id(); - int64_t id() const; - void set_id(int64_t value); + ::PROTOBUF_NAMESPACE_ID::int64 id() const; + void set_id(::PROTOBUF_NAMESPACE_ID::int64 value); private: - int64_t _internal_id() const; - void _internal_set_id(int64_t value); + ::PROTOBUF_NAMESPACE_ID::int64 _internal_id() const; + void _internal_set_id(::PROTOBUF_NAMESPACE_ID::int64 value); public: // @@protoc_insertion_point(class_scope:manifest_proto.Fragment) @@ -654,22 +645,18 @@ class Fragment final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField files_; - int64_t id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField files_; + ::PROTOBUF_NAMESPACE_ID::int64 id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_manifest_2eproto; }; // ------------------------------------------------------------------- -class Blob final : +class Blob PROTOBUF_FINAL : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:manifest_proto.Blob) */ { public: - inline Blob() : Blob(nullptr) {} - ~Blob() override; - explicit PROTOBUF_CONSTEXPR Blob(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline Blob() : Blob(nullptr) {}; + virtual ~Blob(); Blob(const Blob& from); Blob(Blob&& from) noexcept @@ -682,13 +669,8 @@ class Blob final : return *this; } inline Blob& operator=(Blob&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } @@ -699,14 +681,14 @@ class Blob final : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; + return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Blob& default_instance() { - return *internal_default_instance(); + return GetMetadataStatic().reflection; } + static const Blob& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const Blob* internal_default_instance() { return reinterpret_cast( &_Blob_default_instance_); @@ -719,12 +701,7 @@ class Blob final : } inline void Swap(Blob* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -732,53 +709,56 @@ class Blob final : } void UnsafeArenaSwap(Blob* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Blob* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + inline Blob* New() const final { + return CreateMaybeMessage(nullptr); + } + + Blob* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const Blob& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const Blob& from) { - Blob::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: + void MergeFrom(const Blob& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Blob* other); - - private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "manifest_proto.Blob"; } protected: - explicit Blob(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit Blob(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_manifest_2eproto); + return ::descriptor_table_manifest_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- @@ -792,38 +772,60 @@ class Blob final : // string name = 1; void clear_name(); const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); + void set_name(const std::string& value); + void set_name(std::string&& value); + void set_name(const char* value); + void set_name(const char* value, size_t size); std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); + std::string* release_name(); void set_allocated_name(std::string* name); + GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + std::string* unsafe_arena_release_name(); + GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + void unsafe_arena_set_allocated_name( + std::string* name); private: const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); public: // string file = 3; void clear_file(); const std::string& file() const; - template - void set_file(ArgT0&& arg0, ArgT... args); + void set_file(const std::string& value); + void set_file(std::string&& value); + void set_file(const char* value); + void set_file(const char* value, size_t size); std::string* mutable_file(); - PROTOBUF_NODISCARD std::string* release_file(); + std::string* release_file(); void set_allocated_file(std::string* file); + GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + std::string* unsafe_arena_release_file(); + GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + void unsafe_arena_set_allocated_file( + std::string* file); private: const std::string& _internal_file() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_file(const std::string& value); + void _internal_set_file(const std::string& value); std::string* _internal_mutable_file(); public: // int64 size = 2; void clear_size(); - int64_t size() const; - void set_size(int64_t value); + ::PROTOBUF_NAMESPACE_ID::int64 size() const; + void set_size(::PROTOBUF_NAMESPACE_ID::int64 value); private: - int64_t _internal_size() const; - void _internal_set_size(int64_t value); + ::PROTOBUF_NAMESPACE_ID::int64 _internal_size() const; + void _internal_set_size(::PROTOBUF_NAMESPACE_ID::int64 value); public: // @@protoc_insertion_point(class_scope:manifest_proto.Blob) @@ -833,13 +835,10 @@ class Blob final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr file_; - int64_t size_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr file_; + ::PROTOBUF_NAMESPACE_ID::int64 size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_manifest_2eproto; }; // =================================================================== @@ -855,38 +854,54 @@ class Blob final : // string uri = 1; inline void Options::clear_uri() { - _impl_.uri_.ClearToEmpty(); + uri_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline const std::string& Options::uri() const { // @@protoc_insertion_point(field_get:manifest_proto.Options.uri) return _internal_uri(); } -template -inline PROTOBUF_ALWAYS_INLINE -void Options::set_uri(ArgT0&& arg0, ArgT... args) { - - _impl_.uri_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +inline void Options::set_uri(const std::string& value) { + _internal_set_uri(value); // @@protoc_insertion_point(field_set:manifest_proto.Options.uri) } inline std::string* Options::mutable_uri() { - std::string* _s = _internal_mutable_uri(); // @@protoc_insertion_point(field_mutable:manifest_proto.Options.uri) - return _s; + return _internal_mutable_uri(); } inline const std::string& Options::_internal_uri() const { - return _impl_.uri_.Get(); + return uri_.Get(); } inline void Options::_internal_set_uri(const std::string& value) { - _impl_.uri_.Set(value, GetArenaForAllocation()); + uri_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void Options::set_uri(std::string&& value) { + + uri_.Set( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:manifest_proto.Options.uri) +} +inline void Options::set_uri(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + uri_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:manifest_proto.Options.uri) +} +inline void Options::set_uri(const char* value, + size_t size) { + + uri_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:manifest_proto.Options.uri) } inline std::string* Options::_internal_mutable_uri() { - return _impl_.uri_.Mutable(GetArenaForAllocation()); + return uri_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline std::string* Options::release_uri() { // @@protoc_insertion_point(field_release:manifest_proto.Options.uri) - return _impl_.uri_.Release(); + return uri_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline void Options::set_allocated_uri(std::string* uri) { if (uri != nullptr) { @@ -894,14 +909,29 @@ inline void Options::set_allocated_uri(std::string* uri) { } else { } - _impl_.uri_.SetAllocated(uri, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.uri_.IsDefault()) { - _impl_.uri_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + uri_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), uri, + GetArena()); // @@protoc_insertion_point(field_set_allocated:manifest_proto.Options.uri) } +inline std::string* Options::unsafe_arena_release_uri() { + // @@protoc_insertion_point(field_unsafe_arena_release:manifest_proto.Options.uri) + GOOGLE_DCHECK(GetArena() != nullptr); + + return uri_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void Options::unsafe_arena_set_allocated_uri( + std::string* uri) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (uri != nullptr) { + + } else { + + } + uri_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + uri, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:manifest_proto.Options.uri) +} // ------------------------------------------------------------------- @@ -909,41 +939,41 @@ inline void Options::set_allocated_uri(std::string* uri) { // int64 version = 1; inline void Manifest::clear_version() { - _impl_.version_ = int64_t{0}; + version_ = PROTOBUF_LONGLONG(0); } -inline int64_t Manifest::_internal_version() const { - return _impl_.version_; +inline ::PROTOBUF_NAMESPACE_ID::int64 Manifest::_internal_version() const { + return version_; } -inline int64_t Manifest::version() const { +inline ::PROTOBUF_NAMESPACE_ID::int64 Manifest::version() const { // @@protoc_insertion_point(field_get:manifest_proto.Manifest.version) return _internal_version(); } -inline void Manifest::_internal_set_version(int64_t value) { +inline void Manifest::_internal_set_version(::PROTOBUF_NAMESPACE_ID::int64 value) { - _impl_.version_ = value; + version_ = value; } -inline void Manifest::set_version(int64_t value) { +inline void Manifest::set_version(::PROTOBUF_NAMESPACE_ID::int64 value) { _internal_set_version(value); // @@protoc_insertion_point(field_set:manifest_proto.Manifest.version) } // .manifest_proto.Options options = 2; inline bool Manifest::_internal_has_options() const { - return this != internal_default_instance() && _impl_.options_ != nullptr; + return this != internal_default_instance() && options_ != nullptr; } inline bool Manifest::has_options() const { return _internal_has_options(); } inline void Manifest::clear_options() { - if (GetArenaForAllocation() == nullptr && _impl_.options_ != nullptr) { - delete _impl_.options_; + if (GetArena() == nullptr && options_ != nullptr) { + delete options_; } - _impl_.options_ = nullptr; + options_ = nullptr; } inline const ::manifest_proto::Options& Manifest::_internal_options() const { - const ::manifest_proto::Options* p = _impl_.options_; - return p != nullptr ? *p : reinterpret_cast( - ::manifest_proto::_Options_default_instance_); + const ::manifest_proto::Options* p = options_; + return p != nullptr ? *p : *reinterpret_cast( + &::manifest_proto::_Options_default_instance_); } inline const ::manifest_proto::Options& Manifest::options() const { // @@protoc_insertion_point(field_get:manifest_proto.Manifest.options) @@ -951,10 +981,10 @@ inline const ::manifest_proto::Options& Manifest::options() const { } inline void Manifest::unsafe_arena_set_allocated_options( ::manifest_proto::Options* options) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.options_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(options_); } - _impl_.options_ = options; + options_ = options; if (options) { } else { @@ -963,48 +993,39 @@ inline void Manifest::unsafe_arena_set_allocated_options( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:manifest_proto.Manifest.options) } inline ::manifest_proto::Options* Manifest::release_options() { - - ::manifest_proto::Options* temp = _impl_.options_; - _impl_.options_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { + auto temp = unsafe_arena_release_options(); + if (GetArena() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::manifest_proto::Options* Manifest::unsafe_arena_release_options() { // @@protoc_insertion_point(field_release:manifest_proto.Manifest.options) - ::manifest_proto::Options* temp = _impl_.options_; - _impl_.options_ = nullptr; + ::manifest_proto::Options* temp = options_; + options_ = nullptr; return temp; } inline ::manifest_proto::Options* Manifest::_internal_mutable_options() { - if (_impl_.options_ == nullptr) { - auto* p = CreateMaybeMessage<::manifest_proto::Options>(GetArenaForAllocation()); - _impl_.options_ = p; + if (options_ == nullptr) { + auto* p = CreateMaybeMessage<::manifest_proto::Options>(GetArena()); + options_ = p; } - return _impl_.options_; + return options_; } inline ::manifest_proto::Options* Manifest::mutable_options() { - ::manifest_proto::Options* _msg = _internal_mutable_options(); // @@protoc_insertion_point(field_mutable:manifest_proto.Manifest.options) - return _msg; + return _internal_mutable_options(); } inline void Manifest::set_allocated_options(::manifest_proto::Options* options) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); if (message_arena == nullptr) { - delete _impl_.options_; + delete options_; } if (options) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(options); + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(options); if (message_arena != submessage_arena) { options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, options, submessage_arena); @@ -1013,21 +1034,21 @@ inline void Manifest::set_allocated_options(::manifest_proto::Options* options) } else { } - _impl_.options_ = options; + options_ = options; // @@protoc_insertion_point(field_set_allocated:manifest_proto.Manifest.options) } // .schema_proto.Schema schema = 3; inline bool Manifest::_internal_has_schema() const { - return this != internal_default_instance() && _impl_.schema_ != nullptr; + return this != internal_default_instance() && schema_ != nullptr; } inline bool Manifest::has_schema() const { return _internal_has_schema(); } inline const ::schema_proto::Schema& Manifest::_internal_schema() const { - const ::schema_proto::Schema* p = _impl_.schema_; - return p != nullptr ? *p : reinterpret_cast( - ::schema_proto::_Schema_default_instance_); + const ::schema_proto::Schema* p = schema_; + return p != nullptr ? *p : *reinterpret_cast( + &::schema_proto::_Schema_default_instance_); } inline const ::schema_proto::Schema& Manifest::schema() const { // @@protoc_insertion_point(field_get:manifest_proto.Manifest.schema) @@ -1035,10 +1056,10 @@ inline const ::schema_proto::Schema& Manifest::schema() const { } inline void Manifest::unsafe_arena_set_allocated_schema( ::schema_proto::Schema* schema) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.schema_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(schema_); } - _impl_.schema_ = schema; + schema_ = schema; if (schema) { } else { @@ -1047,49 +1068,39 @@ inline void Manifest::unsafe_arena_set_allocated_schema( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:manifest_proto.Manifest.schema) } inline ::schema_proto::Schema* Manifest::release_schema() { - - ::schema_proto::Schema* temp = _impl_.schema_; - _impl_.schema_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { + auto temp = unsafe_arena_release_schema(); + if (GetArena() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::schema_proto::Schema* Manifest::unsafe_arena_release_schema() { // @@protoc_insertion_point(field_release:manifest_proto.Manifest.schema) - ::schema_proto::Schema* temp = _impl_.schema_; - _impl_.schema_ = nullptr; + ::schema_proto::Schema* temp = schema_; + schema_ = nullptr; return temp; } inline ::schema_proto::Schema* Manifest::_internal_mutable_schema() { - if (_impl_.schema_ == nullptr) { - auto* p = CreateMaybeMessage<::schema_proto::Schema>(GetArenaForAllocation()); - _impl_.schema_ = p; + if (schema_ == nullptr) { + auto* p = CreateMaybeMessage<::schema_proto::Schema>(GetArena()); + schema_ = p; } - return _impl_.schema_; + return schema_; } inline ::schema_proto::Schema* Manifest::mutable_schema() { - ::schema_proto::Schema* _msg = _internal_mutable_schema(); // @@protoc_insertion_point(field_mutable:manifest_proto.Manifest.schema) - return _msg; + return _internal_mutable_schema(); } inline void Manifest::set_allocated_schema(::schema_proto::Schema* schema) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.schema_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(schema_); } if (schema) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(schema)); + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(schema)->GetArena(); if (message_arena != submessage_arena) { schema = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, schema, submessage_arena); @@ -1098,168 +1109,164 @@ inline void Manifest::set_allocated_schema(::schema_proto::Schema* schema) { } else { } - _impl_.schema_ = schema; + schema_ = schema; // @@protoc_insertion_point(field_set_allocated:manifest_proto.Manifest.schema) } // repeated .manifest_proto.Fragment scalar_fragments = 4; inline int Manifest::_internal_scalar_fragments_size() const { - return _impl_.scalar_fragments_.size(); + return scalar_fragments_.size(); } inline int Manifest::scalar_fragments_size() const { return _internal_scalar_fragments_size(); } inline void Manifest::clear_scalar_fragments() { - _impl_.scalar_fragments_.Clear(); + scalar_fragments_.Clear(); } inline ::manifest_proto::Fragment* Manifest::mutable_scalar_fragments(int index) { // @@protoc_insertion_point(field_mutable:manifest_proto.Manifest.scalar_fragments) - return _impl_.scalar_fragments_.Mutable(index); + return scalar_fragments_.Mutable(index); } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::manifest_proto::Fragment >* Manifest::mutable_scalar_fragments() { // @@protoc_insertion_point(field_mutable_list:manifest_proto.Manifest.scalar_fragments) - return &_impl_.scalar_fragments_; + return &scalar_fragments_; } inline const ::manifest_proto::Fragment& Manifest::_internal_scalar_fragments(int index) const { - return _impl_.scalar_fragments_.Get(index); + return scalar_fragments_.Get(index); } inline const ::manifest_proto::Fragment& Manifest::scalar_fragments(int index) const { // @@protoc_insertion_point(field_get:manifest_proto.Manifest.scalar_fragments) return _internal_scalar_fragments(index); } inline ::manifest_proto::Fragment* Manifest::_internal_add_scalar_fragments() { - return _impl_.scalar_fragments_.Add(); + return scalar_fragments_.Add(); } inline ::manifest_proto::Fragment* Manifest::add_scalar_fragments() { - ::manifest_proto::Fragment* _add = _internal_add_scalar_fragments(); // @@protoc_insertion_point(field_add:manifest_proto.Manifest.scalar_fragments) - return _add; + return _internal_add_scalar_fragments(); } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::manifest_proto::Fragment >& Manifest::scalar_fragments() const { // @@protoc_insertion_point(field_list:manifest_proto.Manifest.scalar_fragments) - return _impl_.scalar_fragments_; + return scalar_fragments_; } // repeated .manifest_proto.Fragment vector_fragments = 5; inline int Manifest::_internal_vector_fragments_size() const { - return _impl_.vector_fragments_.size(); + return vector_fragments_.size(); } inline int Manifest::vector_fragments_size() const { return _internal_vector_fragments_size(); } inline void Manifest::clear_vector_fragments() { - _impl_.vector_fragments_.Clear(); + vector_fragments_.Clear(); } inline ::manifest_proto::Fragment* Manifest::mutable_vector_fragments(int index) { // @@protoc_insertion_point(field_mutable:manifest_proto.Manifest.vector_fragments) - return _impl_.vector_fragments_.Mutable(index); + return vector_fragments_.Mutable(index); } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::manifest_proto::Fragment >* Manifest::mutable_vector_fragments() { // @@protoc_insertion_point(field_mutable_list:manifest_proto.Manifest.vector_fragments) - return &_impl_.vector_fragments_; + return &vector_fragments_; } inline const ::manifest_proto::Fragment& Manifest::_internal_vector_fragments(int index) const { - return _impl_.vector_fragments_.Get(index); + return vector_fragments_.Get(index); } inline const ::manifest_proto::Fragment& Manifest::vector_fragments(int index) const { // @@protoc_insertion_point(field_get:manifest_proto.Manifest.vector_fragments) return _internal_vector_fragments(index); } inline ::manifest_proto::Fragment* Manifest::_internal_add_vector_fragments() { - return _impl_.vector_fragments_.Add(); + return vector_fragments_.Add(); } inline ::manifest_proto::Fragment* Manifest::add_vector_fragments() { - ::manifest_proto::Fragment* _add = _internal_add_vector_fragments(); // @@protoc_insertion_point(field_add:manifest_proto.Manifest.vector_fragments) - return _add; + return _internal_add_vector_fragments(); } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::manifest_proto::Fragment >& Manifest::vector_fragments() const { // @@protoc_insertion_point(field_list:manifest_proto.Manifest.vector_fragments) - return _impl_.vector_fragments_; + return vector_fragments_; } // repeated .manifest_proto.Fragment delete_fragments = 6; inline int Manifest::_internal_delete_fragments_size() const { - return _impl_.delete_fragments_.size(); + return delete_fragments_.size(); } inline int Manifest::delete_fragments_size() const { return _internal_delete_fragments_size(); } inline void Manifest::clear_delete_fragments() { - _impl_.delete_fragments_.Clear(); + delete_fragments_.Clear(); } inline ::manifest_proto::Fragment* Manifest::mutable_delete_fragments(int index) { // @@protoc_insertion_point(field_mutable:manifest_proto.Manifest.delete_fragments) - return _impl_.delete_fragments_.Mutable(index); + return delete_fragments_.Mutable(index); } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::manifest_proto::Fragment >* Manifest::mutable_delete_fragments() { // @@protoc_insertion_point(field_mutable_list:manifest_proto.Manifest.delete_fragments) - return &_impl_.delete_fragments_; + return &delete_fragments_; } inline const ::manifest_proto::Fragment& Manifest::_internal_delete_fragments(int index) const { - return _impl_.delete_fragments_.Get(index); + return delete_fragments_.Get(index); } inline const ::manifest_proto::Fragment& Manifest::delete_fragments(int index) const { // @@protoc_insertion_point(field_get:manifest_proto.Manifest.delete_fragments) return _internal_delete_fragments(index); } inline ::manifest_proto::Fragment* Manifest::_internal_add_delete_fragments() { - return _impl_.delete_fragments_.Add(); + return delete_fragments_.Add(); } inline ::manifest_proto::Fragment* Manifest::add_delete_fragments() { - ::manifest_proto::Fragment* _add = _internal_add_delete_fragments(); // @@protoc_insertion_point(field_add:manifest_proto.Manifest.delete_fragments) - return _add; + return _internal_add_delete_fragments(); } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::manifest_proto::Fragment >& Manifest::delete_fragments() const { // @@protoc_insertion_point(field_list:manifest_proto.Manifest.delete_fragments) - return _impl_.delete_fragments_; + return delete_fragments_; } // repeated .manifest_proto.Blob blobs = 7; inline int Manifest::_internal_blobs_size() const { - return _impl_.blobs_.size(); + return blobs_.size(); } inline int Manifest::blobs_size() const { return _internal_blobs_size(); } inline void Manifest::clear_blobs() { - _impl_.blobs_.Clear(); + blobs_.Clear(); } inline ::manifest_proto::Blob* Manifest::mutable_blobs(int index) { // @@protoc_insertion_point(field_mutable:manifest_proto.Manifest.blobs) - return _impl_.blobs_.Mutable(index); + return blobs_.Mutable(index); } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::manifest_proto::Blob >* Manifest::mutable_blobs() { // @@protoc_insertion_point(field_mutable_list:manifest_proto.Manifest.blobs) - return &_impl_.blobs_; + return &blobs_; } inline const ::manifest_proto::Blob& Manifest::_internal_blobs(int index) const { - return _impl_.blobs_.Get(index); + return blobs_.Get(index); } inline const ::manifest_proto::Blob& Manifest::blobs(int index) const { // @@protoc_insertion_point(field_get:manifest_proto.Manifest.blobs) return _internal_blobs(index); } inline ::manifest_proto::Blob* Manifest::_internal_add_blobs() { - return _impl_.blobs_.Add(); + return blobs_.Add(); } inline ::manifest_proto::Blob* Manifest::add_blobs() { - ::manifest_proto::Blob* _add = _internal_add_blobs(); // @@protoc_insertion_point(field_add:manifest_proto.Manifest.blobs) - return _add; + return _internal_add_blobs(); } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::manifest_proto::Blob >& Manifest::blobs() const { // @@protoc_insertion_point(field_list:manifest_proto.Manifest.blobs) - return _impl_.blobs_; + return blobs_; } // ------------------------------------------------------------------- @@ -1268,41 +1275,40 @@ Manifest::blobs() const { // int64 id = 1; inline void Fragment::clear_id() { - _impl_.id_ = int64_t{0}; + id_ = PROTOBUF_LONGLONG(0); } -inline int64_t Fragment::_internal_id() const { - return _impl_.id_; +inline ::PROTOBUF_NAMESPACE_ID::int64 Fragment::_internal_id() const { + return id_; } -inline int64_t Fragment::id() const { +inline ::PROTOBUF_NAMESPACE_ID::int64 Fragment::id() const { // @@protoc_insertion_point(field_get:manifest_proto.Fragment.id) return _internal_id(); } -inline void Fragment::_internal_set_id(int64_t value) { +inline void Fragment::_internal_set_id(::PROTOBUF_NAMESPACE_ID::int64 value) { - _impl_.id_ = value; + id_ = value; } -inline void Fragment::set_id(int64_t value) { +inline void Fragment::set_id(::PROTOBUF_NAMESPACE_ID::int64 value) { _internal_set_id(value); // @@protoc_insertion_point(field_set:manifest_proto.Fragment.id) } // repeated string files = 2; inline int Fragment::_internal_files_size() const { - return _impl_.files_.size(); + return files_.size(); } inline int Fragment::files_size() const { return _internal_files_size(); } inline void Fragment::clear_files() { - _impl_.files_.Clear(); + files_.Clear(); } inline std::string* Fragment::add_files() { - std::string* _s = _internal_add_files(); // @@protoc_insertion_point(field_add_mutable:manifest_proto.Fragment.files) - return _s; + return _internal_add_files(); } inline const std::string& Fragment::_internal_files(int index) const { - return _impl_.files_.Get(index); + return files_.Get(index); } inline const std::string& Fragment::files(int index) const { // @@protoc_insertion_point(field_get:manifest_proto.Fragment.files) @@ -1310,55 +1316,55 @@ inline const std::string& Fragment::files(int index) const { } inline std::string* Fragment::mutable_files(int index) { // @@protoc_insertion_point(field_mutable:manifest_proto.Fragment.files) - return _impl_.files_.Mutable(index); + return files_.Mutable(index); } inline void Fragment::set_files(int index, const std::string& value) { - _impl_.files_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:manifest_proto.Fragment.files) + files_.Mutable(index)->assign(value); } inline void Fragment::set_files(int index, std::string&& value) { - _impl_.files_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:manifest_proto.Fragment.files) + files_.Mutable(index)->assign(std::move(value)); } inline void Fragment::set_files(int index, const char* value) { GOOGLE_DCHECK(value != nullptr); - _impl_.files_.Mutable(index)->assign(value); + files_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:manifest_proto.Fragment.files) } inline void Fragment::set_files(int index, const char* value, size_t size) { - _impl_.files_.Mutable(index)->assign( + files_.Mutable(index)->assign( reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:manifest_proto.Fragment.files) } inline std::string* Fragment::_internal_add_files() { - return _impl_.files_.Add(); + return files_.Add(); } inline void Fragment::add_files(const std::string& value) { - _impl_.files_.Add()->assign(value); + files_.Add()->assign(value); // @@protoc_insertion_point(field_add:manifest_proto.Fragment.files) } inline void Fragment::add_files(std::string&& value) { - _impl_.files_.Add(std::move(value)); + files_.Add(std::move(value)); // @@protoc_insertion_point(field_add:manifest_proto.Fragment.files) } inline void Fragment::add_files(const char* value) { GOOGLE_DCHECK(value != nullptr); - _impl_.files_.Add()->assign(value); + files_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:manifest_proto.Fragment.files) } inline void Fragment::add_files(const char* value, size_t size) { - _impl_.files_.Add()->assign(reinterpret_cast(value), size); + files_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:manifest_proto.Fragment.files) } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& Fragment::files() const { // @@protoc_insertion_point(field_list:manifest_proto.Fragment.files) - return _impl_.files_; + return files_; } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* Fragment::mutable_files() { // @@protoc_insertion_point(field_mutable_list:manifest_proto.Fragment.files) - return &_impl_.files_; + return &files_; } // ------------------------------------------------------------------- @@ -1367,38 +1373,54 @@ Fragment::mutable_files() { // string name = 1; inline void Blob::clear_name() { - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline const std::string& Blob::name() const { // @@protoc_insertion_point(field_get:manifest_proto.Blob.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void Blob::set_name(ArgT0&& arg0, ArgT... args) { - - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +inline void Blob::set_name(const std::string& value) { + _internal_set_name(value); // @@protoc_insertion_point(field_set:manifest_proto.Blob.name) } inline std::string* Blob::mutable_name() { - std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:manifest_proto.Blob.name) - return _s; + return _internal_mutable_name(); } inline const std::string& Blob::_internal_name() const { - return _impl_.name_.Get(); + return name_.Get(); } inline void Blob::_internal_set_name(const std::string& value) { - _impl_.name_.Set(value, GetArenaForAllocation()); + name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void Blob::set_name(std::string&& value) { + + name_.Set( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:manifest_proto.Blob.name) +} +inline void Blob::set_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:manifest_proto.Blob.name) +} +inline void Blob::set_name(const char* value, + size_t size) { + + name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:manifest_proto.Blob.name) } inline std::string* Blob::_internal_mutable_name() { - return _impl_.name_.Mutable(GetArenaForAllocation()); + return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline std::string* Blob::release_name() { // @@protoc_insertion_point(field_release:manifest_proto.Blob.name) - return _impl_.name_.Release(); + return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline void Blob::set_allocated_name(std::string* name) { if (name != nullptr) { @@ -1406,69 +1428,100 @@ inline void Blob::set_allocated_name(std::string* name) { } else { } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name, + GetArena()); // @@protoc_insertion_point(field_set_allocated:manifest_proto.Blob.name) } +inline std::string* Blob::unsafe_arena_release_name() { + // @@protoc_insertion_point(field_unsafe_arena_release:manifest_proto.Blob.name) + GOOGLE_DCHECK(GetArena() != nullptr); + + return name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void Blob::unsafe_arena_set_allocated_name( + std::string* name) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (name != nullptr) { + + } else { + + } + name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + name, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:manifest_proto.Blob.name) +} // int64 size = 2; inline void Blob::clear_size() { - _impl_.size_ = int64_t{0}; + size_ = PROTOBUF_LONGLONG(0); } -inline int64_t Blob::_internal_size() const { - return _impl_.size_; +inline ::PROTOBUF_NAMESPACE_ID::int64 Blob::_internal_size() const { + return size_; } -inline int64_t Blob::size() const { +inline ::PROTOBUF_NAMESPACE_ID::int64 Blob::size() const { // @@protoc_insertion_point(field_get:manifest_proto.Blob.size) return _internal_size(); } -inline void Blob::_internal_set_size(int64_t value) { +inline void Blob::_internal_set_size(::PROTOBUF_NAMESPACE_ID::int64 value) { - _impl_.size_ = value; + size_ = value; } -inline void Blob::set_size(int64_t value) { +inline void Blob::set_size(::PROTOBUF_NAMESPACE_ID::int64 value) { _internal_set_size(value); // @@protoc_insertion_point(field_set:manifest_proto.Blob.size) } // string file = 3; inline void Blob::clear_file() { - _impl_.file_.ClearToEmpty(); + file_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline const std::string& Blob::file() const { // @@protoc_insertion_point(field_get:manifest_proto.Blob.file) return _internal_file(); } -template -inline PROTOBUF_ALWAYS_INLINE -void Blob::set_file(ArgT0&& arg0, ArgT... args) { - - _impl_.file_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +inline void Blob::set_file(const std::string& value) { + _internal_set_file(value); // @@protoc_insertion_point(field_set:manifest_proto.Blob.file) } inline std::string* Blob::mutable_file() { - std::string* _s = _internal_mutable_file(); // @@protoc_insertion_point(field_mutable:manifest_proto.Blob.file) - return _s; + return _internal_mutable_file(); } inline const std::string& Blob::_internal_file() const { - return _impl_.file_.Get(); + return file_.Get(); } inline void Blob::_internal_set_file(const std::string& value) { - _impl_.file_.Set(value, GetArenaForAllocation()); + file_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void Blob::set_file(std::string&& value) { + + file_.Set( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:manifest_proto.Blob.file) +} +inline void Blob::set_file(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + file_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:manifest_proto.Blob.file) +} +inline void Blob::set_file(const char* value, + size_t size) { + + file_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:manifest_proto.Blob.file) } inline std::string* Blob::_internal_mutable_file() { - return _impl_.file_.Mutable(GetArenaForAllocation()); + return file_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline std::string* Blob::release_file() { // @@protoc_insertion_point(field_release:manifest_proto.Blob.file) - return _impl_.file_.Release(); + return file_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline void Blob::set_allocated_file(std::string* file) { if (file != nullptr) { @@ -1476,14 +1529,29 @@ inline void Blob::set_allocated_file(std::string* file) { } else { } - _impl_.file_.SetAllocated(file, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.file_.IsDefault()) { - _impl_.file_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + file_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), file, + GetArena()); // @@protoc_insertion_point(field_set_allocated:manifest_proto.Blob.file) } +inline std::string* Blob::unsafe_arena_release_file() { + // @@protoc_insertion_point(field_unsafe_arena_release:manifest_proto.Blob.file) + GOOGLE_DCHECK(GetArena() != nullptr); + + return file_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void Blob::unsafe_arena_set_allocated_file( + std::string* file) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (file != nullptr) { + + } else { + + } + file_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + file, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:manifest_proto.Blob.file) +} #ifdef __GNUC__ #pragma GCC diagnostic pop diff --git a/cpp/src/proto/schema_arrow.pb.cc b/cpp/src/proto/schema_arrow.pb.cc index a5f699d..aef6e85 100644 --- a/cpp/src/proto/schema_arrow.pb.cc +++ b/cpp/src/proto/schema_arrow.pb.cc @@ -14,275 +14,298 @@ #include // @@protoc_insertion_point(includes) #include +extern PROTOBUF_INTERNAL_EXPORT_schema_5farrow_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_ArrowSchema_schema_5farrow_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_schema_5farrow_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<4> scc_info_DataType_schema_5farrow_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_schema_5farrow_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_FixedSizeBinaryType_schema_5farrow_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_schema_5farrow_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_FixedSizeListType_schema_5farrow_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_schema_5farrow_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_KeyValueMetadata_schema_5farrow_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_schema_5farrow_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_MapType_schema_5farrow_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_schema_5farrow_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SchemaOptions_schema_5farrow_2eproto; +namespace schema_proto { +class FixedSizeBinaryTypeDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _FixedSizeBinaryType_default_instance_; +class FixedSizeListTypeDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _FixedSizeListType_default_instance_; +class DictionaryTypeDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _DictionaryType_default_instance_; +class MapTypeDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _MapType_default_instance_; +class DataTypeDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; + const ::schema_proto::FixedSizeBinaryType* fixed_size_binary_type_; + const ::schema_proto::FixedSizeListType* fixed_size_list_type_; + const ::schema_proto::DictionaryType* dictionary_type_; + const ::schema_proto::MapType* map_type_; +} _DataType_default_instance_; +class KeyValueMetadataDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _KeyValueMetadata_default_instance_; +class FieldDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _Field_default_instance_; +class SchemaOptionsDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _SchemaOptions_default_instance_; +class ArrowSchemaDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _ArrowSchema_default_instance_; +class SchemaDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _Schema_default_instance_; +} // namespace schema_proto +static void InitDefaultsscc_info_ArrowSchema_schema_5farrow_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; -PROTOBUF_PRAGMA_INIT_SEG + { + void* ptr = &::schema_proto::_ArrowSchema_default_instance_; + new (ptr) ::schema_proto::ArrowSchema(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::schema_proto::ArrowSchema::InitAsDefaultInstance(); +} -namespace _pb = ::PROTOBUF_NAMESPACE_ID; -namespace _pbi = _pb::internal; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_ArrowSchema_schema_5farrow_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_ArrowSchema_schema_5farrow_2eproto}, { + &scc_info_DataType_schema_5farrow_2eproto.base, + &scc_info_KeyValueMetadata_schema_5farrow_2eproto.base,}}; -namespace schema_proto { -PROTOBUF_CONSTEXPR FixedSizeBinaryType::FixedSizeBinaryType( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.byte_width_)*/0 - , /*decltype(_impl_._cached_size_)*/{}} {} -struct FixedSizeBinaryTypeDefaultTypeInternal { - PROTOBUF_CONSTEXPR FixedSizeBinaryTypeDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~FixedSizeBinaryTypeDefaultTypeInternal() {} - union { - FixedSizeBinaryType _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FixedSizeBinaryTypeDefaultTypeInternal _FixedSizeBinaryType_default_instance_; -PROTOBUF_CONSTEXPR FixedSizeListType::FixedSizeListType( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.list_size_)*/0 - , /*decltype(_impl_._cached_size_)*/{}} {} -struct FixedSizeListTypeDefaultTypeInternal { - PROTOBUF_CONSTEXPR FixedSizeListTypeDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~FixedSizeListTypeDefaultTypeInternal() {} - union { - FixedSizeListType _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FixedSizeListTypeDefaultTypeInternal _FixedSizeListType_default_instance_; -PROTOBUF_CONSTEXPR DictionaryType::DictionaryType( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.index_type_)*/nullptr - , /*decltype(_impl_.value_type_)*/nullptr - , /*decltype(_impl_.ordered_)*/false - , /*decltype(_impl_._cached_size_)*/{}} {} -struct DictionaryTypeDefaultTypeInternal { - PROTOBUF_CONSTEXPR DictionaryTypeDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~DictionaryTypeDefaultTypeInternal() {} - union { - DictionaryType _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DictionaryTypeDefaultTypeInternal _DictionaryType_default_instance_; -PROTOBUF_CONSTEXPR MapType::MapType( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.keys_sorted_)*/false - , /*decltype(_impl_._cached_size_)*/{}} {} -struct MapTypeDefaultTypeInternal { - PROTOBUF_CONSTEXPR MapTypeDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~MapTypeDefaultTypeInternal() {} - union { - MapType _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MapTypeDefaultTypeInternal _MapType_default_instance_; -PROTOBUF_CONSTEXPR DataType::DataType( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.children_)*/{} - , /*decltype(_impl_.logic_type_)*/0 - , /*decltype(_impl_.type_related_values_)*/{} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_._oneof_case_)*/{}} {} -struct DataTypeDefaultTypeInternal { - PROTOBUF_CONSTEXPR DataTypeDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~DataTypeDefaultTypeInternal() {} - union { - DataType _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DataTypeDefaultTypeInternal _DataType_default_instance_; -PROTOBUF_CONSTEXPR KeyValueMetadata::KeyValueMetadata( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.keys_)*/{} - , /*decltype(_impl_.values_)*/{} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct KeyValueMetadataDefaultTypeInternal { - PROTOBUF_CONSTEXPR KeyValueMetadataDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~KeyValueMetadataDefaultTypeInternal() {} - union { - KeyValueMetadata _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KeyValueMetadataDefaultTypeInternal _KeyValueMetadata_default_instance_; -PROTOBUF_CONSTEXPR Field::Field( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.data_type_)*/nullptr - , /*decltype(_impl_.metadata_)*/nullptr - , /*decltype(_impl_.nullable_)*/false - , /*decltype(_impl_._cached_size_)*/{}} {} -struct FieldDefaultTypeInternal { - PROTOBUF_CONSTEXPR FieldDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~FieldDefaultTypeInternal() {} - union { - Field _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FieldDefaultTypeInternal _Field_default_instance_; -PROTOBUF_CONSTEXPR SchemaOptions::SchemaOptions( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.primary_column_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.version_column_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.vector_column_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct SchemaOptionsDefaultTypeInternal { - PROTOBUF_CONSTEXPR SchemaOptionsDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~SchemaOptionsDefaultTypeInternal() {} - union { - SchemaOptions _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SchemaOptionsDefaultTypeInternal _SchemaOptions_default_instance_; -PROTOBUF_CONSTEXPR ArrowSchema::ArrowSchema( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.fields_)*/{} - , /*decltype(_impl_.metadata_)*/nullptr - , /*decltype(_impl_.endianness_)*/0 - , /*decltype(_impl_._cached_size_)*/{}} {} -struct ArrowSchemaDefaultTypeInternal { - PROTOBUF_CONSTEXPR ArrowSchemaDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~ArrowSchemaDefaultTypeInternal() {} - union { - ArrowSchema _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ArrowSchemaDefaultTypeInternal _ArrowSchema_default_instance_; -PROTOBUF_CONSTEXPR Schema::Schema( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.arrow_schema_)*/nullptr - , /*decltype(_impl_.schema_options_)*/nullptr - , /*decltype(_impl_._cached_size_)*/{}} {} -struct SchemaDefaultTypeInternal { - PROTOBUF_CONSTEXPR SchemaDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~SchemaDefaultTypeInternal() {} - union { - Schema _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SchemaDefaultTypeInternal _Schema_default_instance_; -} // namespace schema_proto -static ::_pb::Metadata file_level_metadata_schema_5farrow_2eproto[10]; -static const ::_pb::EnumDescriptor* file_level_enum_descriptors_schema_5farrow_2eproto[2]; -static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_schema_5farrow_2eproto = nullptr; +static void InitDefaultsscc_info_DataType_schema_5farrow_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::schema_proto::_DictionaryType_default_instance_; + new (ptr) ::schema_proto::DictionaryType(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + { + void* ptr = &::schema_proto::_DataType_default_instance_; + new (ptr) ::schema_proto::DataType(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + { + void* ptr = &::schema_proto::_Field_default_instance_; + new (ptr) ::schema_proto::Field(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::schema_proto::DictionaryType::InitAsDefaultInstance(); + ::schema_proto::DataType::InitAsDefaultInstance(); + ::schema_proto::Field::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<4> scc_info_DataType_schema_5farrow_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 4, 0, InitDefaultsscc_info_DataType_schema_5farrow_2eproto}, { + &scc_info_FixedSizeBinaryType_schema_5farrow_2eproto.base, + &scc_info_FixedSizeListType_schema_5farrow_2eproto.base, + &scc_info_MapType_schema_5farrow_2eproto.base, + &scc_info_KeyValueMetadata_schema_5farrow_2eproto.base,}}; + +static void InitDefaultsscc_info_FixedSizeBinaryType_schema_5farrow_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::schema_proto::_FixedSizeBinaryType_default_instance_; + new (ptr) ::schema_proto::FixedSizeBinaryType(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::schema_proto::FixedSizeBinaryType::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_FixedSizeBinaryType_schema_5farrow_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_FixedSizeBinaryType_schema_5farrow_2eproto}, {}}; + +static void InitDefaultsscc_info_FixedSizeListType_schema_5farrow_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::schema_proto::_FixedSizeListType_default_instance_; + new (ptr) ::schema_proto::FixedSizeListType(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::schema_proto::FixedSizeListType::InitAsDefaultInstance(); +} -const uint32_t TableStruct_schema_5farrow_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_FixedSizeListType_schema_5farrow_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_FixedSizeListType_schema_5farrow_2eproto}, {}}; + +static void InitDefaultsscc_info_KeyValueMetadata_schema_5farrow_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::schema_proto::_KeyValueMetadata_default_instance_; + new (ptr) ::schema_proto::KeyValueMetadata(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::schema_proto::KeyValueMetadata::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_KeyValueMetadata_schema_5farrow_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_KeyValueMetadata_schema_5farrow_2eproto}, {}}; + +static void InitDefaultsscc_info_MapType_schema_5farrow_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::schema_proto::_MapType_default_instance_; + new (ptr) ::schema_proto::MapType(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::schema_proto::MapType::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_MapType_schema_5farrow_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_MapType_schema_5farrow_2eproto}, {}}; + +static void InitDefaultsscc_info_Schema_schema_5farrow_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::schema_proto::_Schema_default_instance_; + new (ptr) ::schema_proto::Schema(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::schema_proto::Schema::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Schema_schema_5farrow_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_Schema_schema_5farrow_2eproto}, { + &scc_info_ArrowSchema_schema_5farrow_2eproto.base, + &scc_info_SchemaOptions_schema_5farrow_2eproto.base,}}; + +static void InitDefaultsscc_info_SchemaOptions_schema_5farrow_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::schema_proto::_SchemaOptions_default_instance_; + new (ptr) ::schema_proto::SchemaOptions(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::schema_proto::SchemaOptions::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SchemaOptions_schema_5farrow_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_SchemaOptions_schema_5farrow_2eproto}, {}}; + +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_schema_5farrow_2eproto[10]; +static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_schema_5farrow_2eproto[2]; +static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_schema_5farrow_2eproto = nullptr; + +const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_schema_5farrow_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::schema_proto::FixedSizeBinaryType, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::schema_proto::FixedSizeBinaryType, _impl_.byte_width_), + PROTOBUF_FIELD_OFFSET(::schema_proto::FixedSizeBinaryType, byte_width_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::schema_proto::FixedSizeListType, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::schema_proto::FixedSizeListType, _impl_.list_size_), + PROTOBUF_FIELD_OFFSET(::schema_proto::FixedSizeListType, list_size_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::schema_proto::DictionaryType, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::schema_proto::DictionaryType, _impl_.index_type_), - PROTOBUF_FIELD_OFFSET(::schema_proto::DictionaryType, _impl_.value_type_), - PROTOBUF_FIELD_OFFSET(::schema_proto::DictionaryType, _impl_.ordered_), + PROTOBUF_FIELD_OFFSET(::schema_proto::DictionaryType, index_type_), + PROTOBUF_FIELD_OFFSET(::schema_proto::DictionaryType, value_type_), + PROTOBUF_FIELD_OFFSET(::schema_proto::DictionaryType, ordered_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::schema_proto::MapType, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::schema_proto::MapType, _impl_.keys_sorted_), + PROTOBUF_FIELD_OFFSET(::schema_proto::MapType, keys_sorted_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::schema_proto::DataType, _internal_metadata_), ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::schema_proto::DataType, _impl_._oneof_case_[0]), + PROTOBUF_FIELD_OFFSET(::schema_proto::DataType, _oneof_case_[0]), ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - ::_pbi::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::schema_proto::DataType, _impl_.logic_type_), - PROTOBUF_FIELD_OFFSET(::schema_proto::DataType, _impl_.children_), - PROTOBUF_FIELD_OFFSET(::schema_proto::DataType, _impl_.type_related_values_), + offsetof(::schema_proto::DataTypeDefaultTypeInternal, fixed_size_binary_type_), + offsetof(::schema_proto::DataTypeDefaultTypeInternal, fixed_size_list_type_), + offsetof(::schema_proto::DataTypeDefaultTypeInternal, dictionary_type_), + offsetof(::schema_proto::DataTypeDefaultTypeInternal, map_type_), + PROTOBUF_FIELD_OFFSET(::schema_proto::DataType, logic_type_), + PROTOBUF_FIELD_OFFSET(::schema_proto::DataType, children_), + PROTOBUF_FIELD_OFFSET(::schema_proto::DataType, type_related_values_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::schema_proto::KeyValueMetadata, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::schema_proto::KeyValueMetadata, _impl_.keys_), - PROTOBUF_FIELD_OFFSET(::schema_proto::KeyValueMetadata, _impl_.values_), + PROTOBUF_FIELD_OFFSET(::schema_proto::KeyValueMetadata, keys_), + PROTOBUF_FIELD_OFFSET(::schema_proto::KeyValueMetadata, values_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::schema_proto::Field, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::schema_proto::Field, _impl_.name_), - PROTOBUF_FIELD_OFFSET(::schema_proto::Field, _impl_.nullable_), - PROTOBUF_FIELD_OFFSET(::schema_proto::Field, _impl_.data_type_), - PROTOBUF_FIELD_OFFSET(::schema_proto::Field, _impl_.metadata_), + PROTOBUF_FIELD_OFFSET(::schema_proto::Field, name_), + PROTOBUF_FIELD_OFFSET(::schema_proto::Field, nullable_), + PROTOBUF_FIELD_OFFSET(::schema_proto::Field, data_type_), + PROTOBUF_FIELD_OFFSET(::schema_proto::Field, metadata_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::schema_proto::SchemaOptions, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::schema_proto::SchemaOptions, _impl_.primary_column_), - PROTOBUF_FIELD_OFFSET(::schema_proto::SchemaOptions, _impl_.version_column_), - PROTOBUF_FIELD_OFFSET(::schema_proto::SchemaOptions, _impl_.vector_column_), + PROTOBUF_FIELD_OFFSET(::schema_proto::SchemaOptions, primary_column_), + PROTOBUF_FIELD_OFFSET(::schema_proto::SchemaOptions, version_column_), + PROTOBUF_FIELD_OFFSET(::schema_proto::SchemaOptions, vector_column_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::schema_proto::ArrowSchema, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::schema_proto::ArrowSchema, _impl_.fields_), - PROTOBUF_FIELD_OFFSET(::schema_proto::ArrowSchema, _impl_.endianness_), - PROTOBUF_FIELD_OFFSET(::schema_proto::ArrowSchema, _impl_.metadata_), + PROTOBUF_FIELD_OFFSET(::schema_proto::ArrowSchema, fields_), + PROTOBUF_FIELD_OFFSET(::schema_proto::ArrowSchema, endianness_), + PROTOBUF_FIELD_OFFSET(::schema_proto::ArrowSchema, metadata_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::schema_proto::Schema, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::schema_proto::Schema, _impl_.arrow_schema_), - PROTOBUF_FIELD_OFFSET(::schema_proto::Schema, _impl_.schema_options_), + PROTOBUF_FIELD_OFFSET(::schema_proto::Schema, arrow_schema_), + PROTOBUF_FIELD_OFFSET(::schema_proto::Schema, schema_options_), }; -static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, -1, sizeof(::schema_proto::FixedSizeBinaryType)}, - { 7, -1, -1, sizeof(::schema_proto::FixedSizeListType)}, - { 14, -1, -1, sizeof(::schema_proto::DictionaryType)}, - { 23, -1, -1, sizeof(::schema_proto::MapType)}, - { 30, -1, -1, sizeof(::schema_proto::DataType)}, - { 43, -1, -1, sizeof(::schema_proto::KeyValueMetadata)}, - { 51, -1, -1, sizeof(::schema_proto::Field)}, - { 61, -1, -1, sizeof(::schema_proto::SchemaOptions)}, - { 70, -1, -1, sizeof(::schema_proto::ArrowSchema)}, - { 79, -1, -1, sizeof(::schema_proto::Schema)}, +static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::schema_proto::FixedSizeBinaryType)}, + { 6, -1, sizeof(::schema_proto::FixedSizeListType)}, + { 12, -1, sizeof(::schema_proto::DictionaryType)}, + { 20, -1, sizeof(::schema_proto::MapType)}, + { 26, -1, sizeof(::schema_proto::DataType)}, + { 38, -1, sizeof(::schema_proto::KeyValueMetadata)}, + { 45, -1, sizeof(::schema_proto::Field)}, + { 54, -1, sizeof(::schema_proto::SchemaOptions)}, + { 62, -1, sizeof(::schema_proto::ArrowSchema)}, + { 70, -1, sizeof(::schema_proto::Schema)}, }; -static const ::_pb::Message* const file_default_instances[] = { - &::schema_proto::_FixedSizeBinaryType_default_instance_._instance, - &::schema_proto::_FixedSizeListType_default_instance_._instance, - &::schema_proto::_DictionaryType_default_instance_._instance, - &::schema_proto::_MapType_default_instance_._instance, - &::schema_proto::_DataType_default_instance_._instance, - &::schema_proto::_KeyValueMetadata_default_instance_._instance, - &::schema_proto::_Field_default_instance_._instance, - &::schema_proto::_SchemaOptions_default_instance_._instance, - &::schema_proto::_ArrowSchema_default_instance_._instance, - &::schema_proto::_Schema_default_instance_._instance, +static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { + reinterpret_cast(&::schema_proto::_FixedSizeBinaryType_default_instance_), + reinterpret_cast(&::schema_proto::_FixedSizeListType_default_instance_), + reinterpret_cast(&::schema_proto::_DictionaryType_default_instance_), + reinterpret_cast(&::schema_proto::_MapType_default_instance_), + reinterpret_cast(&::schema_proto::_DataType_default_instance_), + reinterpret_cast(&::schema_proto::_KeyValueMetadata_default_instance_), + reinterpret_cast(&::schema_proto::_Field_default_instance_), + reinterpret_cast(&::schema_proto::_SchemaOptions_default_instance_), + reinterpret_cast(&::schema_proto::_ArrowSchema_default_instance_), + reinterpret_cast(&::schema_proto::_Schema_default_instance_), }; const char descriptor_table_protodef_schema_5farrow_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = @@ -325,21 +348,28 @@ const char descriptor_table_protodef_schema_5farrow_2eproto[] PROTOBUF_SECTION_V "MAX_ID\020\'*!\n\nEndianness\022\n\n\006Little\020\000\022\007\n\003Bi" "g\020\001b\006proto3" ; -static ::_pbi::once_flag descriptor_table_schema_5farrow_2eproto_once; -const ::_pbi::DescriptorTable descriptor_table_schema_5farrow_2eproto = { - false, false, 1491, descriptor_table_protodef_schema_5farrow_2eproto, - "schema_arrow.proto", - &descriptor_table_schema_5farrow_2eproto_once, nullptr, 0, 10, - schemas, file_default_instances, TableStruct_schema_5farrow_2eproto::offsets, - file_level_metadata_schema_5farrow_2eproto, file_level_enum_descriptors_schema_5farrow_2eproto, - file_level_service_descriptors_schema_5farrow_2eproto, +static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_schema_5farrow_2eproto_deps[1] = { +}; +static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_schema_5farrow_2eproto_sccs[8] = { + &scc_info_ArrowSchema_schema_5farrow_2eproto.base, + &scc_info_DataType_schema_5farrow_2eproto.base, + &scc_info_FixedSizeBinaryType_schema_5farrow_2eproto.base, + &scc_info_FixedSizeListType_schema_5farrow_2eproto.base, + &scc_info_KeyValueMetadata_schema_5farrow_2eproto.base, + &scc_info_MapType_schema_5farrow_2eproto.base, + &scc_info_Schema_schema_5farrow_2eproto.base, + &scc_info_SchemaOptions_schema_5farrow_2eproto.base, +}; +static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_schema_5farrow_2eproto_once; +const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_schema_5farrow_2eproto = { + false, false, descriptor_table_protodef_schema_5farrow_2eproto, "schema_arrow.proto", 1491, + &descriptor_table_schema_5farrow_2eproto_once, descriptor_table_schema_5farrow_2eproto_sccs, descriptor_table_schema_5farrow_2eproto_deps, 8, 0, + schemas, file_default_instances, TableStruct_schema_5farrow_2eproto::offsets, + file_level_metadata_schema_5farrow_2eproto, 10, file_level_enum_descriptors_schema_5farrow_2eproto, file_level_service_descriptors_schema_5farrow_2eproto, }; -PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_schema_5farrow_2eproto_getter() { - return &descriptor_table_schema_5farrow_2eproto; -} // Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_schema_5farrow_2eproto(&descriptor_table_schema_5farrow_2eproto); +static bool dynamic_init_dummy_schema_5farrow_2eproto = (static_cast(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_schema_5farrow_2eproto)), true); namespace schema_proto { const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* LogicType_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_schema_5farrow_2eproto); @@ -392,116 +422,115 @@ bool Endianness_IsValid(int value) { // =================================================================== +void FixedSizeBinaryType::InitAsDefaultInstance() { +} class FixedSizeBinaryType::_Internal { public: }; -FixedSizeBinaryType::FixedSizeBinaryType(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +FixedSizeBinaryType::FixedSizeBinaryType(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:schema_proto.FixedSizeBinaryType) } FixedSizeBinaryType::FixedSizeBinaryType(const FixedSizeBinaryType& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - FixedSizeBinaryType* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.byte_width_){} - , /*decltype(_impl_._cached_size_)*/{}}; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.byte_width_ = from._impl_.byte_width_; + byte_width_ = from.byte_width_; // @@protoc_insertion_point(copy_constructor:schema_proto.FixedSizeBinaryType) } -inline void FixedSizeBinaryType::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.byte_width_){0} - , /*decltype(_impl_._cached_size_)*/{} - }; +void FixedSizeBinaryType::SharedCtor() { + byte_width_ = 0; } FixedSizeBinaryType::~FixedSizeBinaryType() { // @@protoc_insertion_point(destructor:schema_proto.FixedSizeBinaryType) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -inline void FixedSizeBinaryType::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +void FixedSizeBinaryType::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); } +void FixedSizeBinaryType::ArenaDtor(void* object) { + FixedSizeBinaryType* _this = reinterpret_cast< FixedSizeBinaryType* >(object); + (void)_this; +} +void FixedSizeBinaryType::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} void FixedSizeBinaryType::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + _cached_size_.Set(size); +} +const FixedSizeBinaryType& FixedSizeBinaryType::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FixedSizeBinaryType_schema_5farrow_2eproto.base); + return *internal_default_instance(); } + void FixedSizeBinaryType::Clear() { // @@protoc_insertion_point(message_clear_start:schema_proto.FixedSizeBinaryType) - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.byte_width_ = 0; + byte_width_ = 0; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* FixedSizeBinaryType::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* FixedSizeBinaryType::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); switch (tag >> 3) { // int32 byte_width = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _impl_.byte_width_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + byte_width_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else - goto handle_unusual; + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); continue; - default: - goto handle_unusual; + } } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); } // while -message_done: +success: return ptr; failure: ptr = nullptr; - goto message_done; + goto success; #undef CHK_ } -uint8_t* FixedSizeBinaryType::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::PROTOBUF_NAMESPACE_ID::uint8* FixedSizeBinaryType::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:schema_proto.FixedSizeBinaryType) - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // int32 byte_width = 1; - if (this->_internal_byte_width() != 0) { + if (this->byte_width() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_byte_width(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_byte_width(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:schema_proto.FixedSizeBinaryType) @@ -512,37 +541,58 @@ size_t FixedSizeBinaryType::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:schema_proto.FixedSizeBinaryType) size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // int32 byte_width = 1; - if (this->_internal_byte_width() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_byte_width()); + if (this->byte_width() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + this->_internal_byte_width()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FixedSizeBinaryType::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - FixedSizeBinaryType::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FixedSizeBinaryType::GetClassData() const { return &_class_data_; } - +void FixedSizeBinaryType::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:schema_proto.FixedSizeBinaryType) + GOOGLE_DCHECK_NE(&from, this); + const FixedSizeBinaryType* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:schema_proto.FixedSizeBinaryType) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:schema_proto.FixedSizeBinaryType) + MergeFrom(*source); + } +} -void FixedSizeBinaryType::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:schema_proto.FixedSizeBinaryType) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; +void FixedSizeBinaryType::MergeFrom(const FixedSizeBinaryType& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:schema_proto.FixedSizeBinaryType) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_byte_width() != 0) { - _this->_internal_set_byte_width(from._internal_byte_width()); + if (from.byte_width() != 0) { + _internal_set_byte_width(from._internal_byte_width()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void FixedSizeBinaryType::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:schema_proto.FixedSizeBinaryType) + if (&from == this) return; + Clear(); + MergeFrom(from); } void FixedSizeBinaryType::CopyFrom(const FixedSizeBinaryType& from) { @@ -558,128 +608,126 @@ bool FixedSizeBinaryType::IsInitialized() const { void FixedSizeBinaryType::InternalSwap(FixedSizeBinaryType* other) { using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.byte_width_, other->_impl_.byte_width_); + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + swap(byte_width_, other->byte_width_); } ::PROTOBUF_NAMESPACE_ID::Metadata FixedSizeBinaryType::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_schema_5farrow_2eproto_getter, &descriptor_table_schema_5farrow_2eproto_once, - file_level_metadata_schema_5farrow_2eproto[0]); + return GetMetadataStatic(); } + // =================================================================== +void FixedSizeListType::InitAsDefaultInstance() { +} class FixedSizeListType::_Internal { public: }; -FixedSizeListType::FixedSizeListType(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +FixedSizeListType::FixedSizeListType(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:schema_proto.FixedSizeListType) } FixedSizeListType::FixedSizeListType(const FixedSizeListType& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - FixedSizeListType* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.list_size_){} - , /*decltype(_impl_._cached_size_)*/{}}; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.list_size_ = from._impl_.list_size_; + list_size_ = from.list_size_; // @@protoc_insertion_point(copy_constructor:schema_proto.FixedSizeListType) } -inline void FixedSizeListType::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.list_size_){0} - , /*decltype(_impl_._cached_size_)*/{} - }; +void FixedSizeListType::SharedCtor() { + list_size_ = 0; } FixedSizeListType::~FixedSizeListType() { // @@protoc_insertion_point(destructor:schema_proto.FixedSizeListType) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -inline void FixedSizeListType::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +void FixedSizeListType::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); } +void FixedSizeListType::ArenaDtor(void* object) { + FixedSizeListType* _this = reinterpret_cast< FixedSizeListType* >(object); + (void)_this; +} +void FixedSizeListType::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} void FixedSizeListType::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + _cached_size_.Set(size); +} +const FixedSizeListType& FixedSizeListType::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FixedSizeListType_schema_5farrow_2eproto.base); + return *internal_default_instance(); } + void FixedSizeListType::Clear() { // @@protoc_insertion_point(message_clear_start:schema_proto.FixedSizeListType) - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.list_size_ = 0; + list_size_ = 0; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* FixedSizeListType::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* FixedSizeListType::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); switch (tag >> 3) { // int32 list_size = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _impl_.list_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + list_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else - goto handle_unusual; + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); continue; - default: - goto handle_unusual; + } } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); } // while -message_done: +success: return ptr; failure: ptr = nullptr; - goto message_done; + goto success; #undef CHK_ } -uint8_t* FixedSizeListType::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::PROTOBUF_NAMESPACE_ID::uint8* FixedSizeListType::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:schema_proto.FixedSizeListType) - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // int32 list_size = 1; - if (this->_internal_list_size() != 0) { + if (this->list_size() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_list_size(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_list_size(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:schema_proto.FixedSizeListType) @@ -690,37 +738,58 @@ size_t FixedSizeListType::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:schema_proto.FixedSizeListType) size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // int32 list_size = 1; - if (this->_internal_list_size() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_list_size()); + if (this->list_size() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + this->_internal_list_size()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FixedSizeListType::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - FixedSizeListType::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FixedSizeListType::GetClassData() const { return &_class_data_; } - +void FixedSizeListType::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:schema_proto.FixedSizeListType) + GOOGLE_DCHECK_NE(&from, this); + const FixedSizeListType* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:schema_proto.FixedSizeListType) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:schema_proto.FixedSizeListType) + MergeFrom(*source); + } +} -void FixedSizeListType::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:schema_proto.FixedSizeListType) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; +void FixedSizeListType::MergeFrom(const FixedSizeListType& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:schema_proto.FixedSizeListType) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_list_size() != 0) { - _this->_internal_set_list_size(from._internal_list_size()); + if (from.list_size() != 0) { + _internal_set_list_size(from._internal_list_size()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void FixedSizeListType::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:schema_proto.FixedSizeListType) + if (&from == this) return; + Clear(); + MergeFrom(from); } void FixedSizeListType::CopyFrom(const FixedSizeListType& from) { @@ -736,18 +805,23 @@ bool FixedSizeListType::IsInitialized() const { void FixedSizeListType::InternalSwap(FixedSizeListType* other) { using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.list_size_, other->_impl_.list_size_); + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + swap(list_size_, other->list_size_); } ::PROTOBUF_NAMESPACE_ID::Metadata FixedSizeListType::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_schema_5farrow_2eproto_getter, &descriptor_table_schema_5farrow_2eproto_once, - file_level_metadata_schema_5farrow_2eproto[1]); + return GetMetadataStatic(); } + // =================================================================== +void DictionaryType::InitAsDefaultInstance() { + ::schema_proto::_DictionaryType_default_instance_._instance.get_mutable()->index_type_ = const_cast< ::schema_proto::DataType*>( + ::schema_proto::DataType::internal_default_instance()); + ::schema_proto::_DictionaryType_default_instance_._instance.get_mutable()->value_type_ = const_cast< ::schema_proto::DataType*>( + ::schema_proto::DataType::internal_default_instance()); +} class DictionaryType::_Internal { public: static const ::schema_proto::DataType& index_type(const DictionaryType* msg); @@ -756,168 +830,168 @@ class DictionaryType::_Internal { const ::schema_proto::DataType& DictionaryType::_Internal::index_type(const DictionaryType* msg) { - return *msg->_impl_.index_type_; + return *msg->index_type_; } const ::schema_proto::DataType& DictionaryType::_Internal::value_type(const DictionaryType* msg) { - return *msg->_impl_.value_type_; + return *msg->value_type_; } -DictionaryType::DictionaryType(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +DictionaryType::DictionaryType(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:schema_proto.DictionaryType) } DictionaryType::DictionaryType(const DictionaryType& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - DictionaryType* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.index_type_){nullptr} - , decltype(_impl_.value_type_){nullptr} - , decltype(_impl_.ordered_){} - , /*decltype(_impl_._cached_size_)*/{}}; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_index_type()) { - _this->_impl_.index_type_ = new ::schema_proto::DataType(*from._impl_.index_type_); + index_type_ = new ::schema_proto::DataType(*from.index_type_); + } else { + index_type_ = nullptr; } if (from._internal_has_value_type()) { - _this->_impl_.value_type_ = new ::schema_proto::DataType(*from._impl_.value_type_); + value_type_ = new ::schema_proto::DataType(*from.value_type_); + } else { + value_type_ = nullptr; } - _this->_impl_.ordered_ = from._impl_.ordered_; + ordered_ = from.ordered_; // @@protoc_insertion_point(copy_constructor:schema_proto.DictionaryType) } -inline void DictionaryType::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.index_type_){nullptr} - , decltype(_impl_.value_type_){nullptr} - , decltype(_impl_.ordered_){false} - , /*decltype(_impl_._cached_size_)*/{} - }; +void DictionaryType::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DataType_schema_5farrow_2eproto.base); + ::memset(&index_type_, 0, static_cast( + reinterpret_cast(&ordered_) - + reinterpret_cast(&index_type_)) + sizeof(ordered_)); } DictionaryType::~DictionaryType() { // @@protoc_insertion_point(destructor:schema_proto.DictionaryType) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -inline void DictionaryType::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.index_type_; - if (this != internal_default_instance()) delete _impl_.value_type_; +void DictionaryType::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + if (this != internal_default_instance()) delete index_type_; + if (this != internal_default_instance()) delete value_type_; } +void DictionaryType::ArenaDtor(void* object) { + DictionaryType* _this = reinterpret_cast< DictionaryType* >(object); + (void)_this; +} +void DictionaryType::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} void DictionaryType::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + _cached_size_.Set(size); +} +const DictionaryType& DictionaryType::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DataType_schema_5farrow_2eproto.base); + return *internal_default_instance(); } + void DictionaryType::Clear() { // @@protoc_insertion_point(message_clear_start:schema_proto.DictionaryType) - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && _impl_.index_type_ != nullptr) { - delete _impl_.index_type_; + if (GetArena() == nullptr && index_type_ != nullptr) { + delete index_type_; } - _impl_.index_type_ = nullptr; - if (GetArenaForAllocation() == nullptr && _impl_.value_type_ != nullptr) { - delete _impl_.value_type_; + index_type_ = nullptr; + if (GetArena() == nullptr && value_type_ != nullptr) { + delete value_type_; } - _impl_.value_type_ = nullptr; - _impl_.ordered_ = false; + value_type_ = nullptr; + ordered_ = false; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* DictionaryType::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* DictionaryType::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); switch (tag >> 3) { // .schema_proto.DataType index_type = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_index_type(), ptr); CHK_(ptr); - } else - goto handle_unusual; + } else goto handle_unusual; continue; // .schema_proto.DataType value_type = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_value_type(), ptr); CHK_(ptr); - } else - goto handle_unusual; + } else goto handle_unusual; continue; // bool ordered = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _impl_.ordered_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + ordered_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else - goto handle_unusual; + } else goto handle_unusual; continue; - default: - goto handle_unusual; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); } // while -message_done: +success: return ptr; failure: ptr = nullptr; - goto message_done; + goto success; #undef CHK_ } -uint8_t* DictionaryType::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::PROTOBUF_NAMESPACE_ID::uint8* DictionaryType::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:schema_proto.DictionaryType) - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // .schema_proto.DataType index_type = 1; - if (this->_internal_has_index_type()) { + if (this->has_index_type()) { + target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::index_type(this), - _Internal::index_type(this).GetCachedSize(), target, stream); + InternalWriteMessage( + 1, _Internal::index_type(this), target, stream); } // .schema_proto.DataType value_type = 2; - if (this->_internal_has_value_type()) { + if (this->has_value_type()) { + target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::value_type(this), - _Internal::value_type(this).GetCachedSize(), target, stream); + InternalWriteMessage( + 2, _Internal::value_type(this), target, stream); } // bool ordered = 3; - if (this->_internal_ordered() != 0) { + if (this->ordered() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_ordered(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->_internal_ordered(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:schema_proto.DictionaryType) @@ -928,59 +1002,76 @@ size_t DictionaryType::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:schema_proto.DictionaryType) size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .schema_proto.DataType index_type = 1; - if (this->_internal_has_index_type()) { + if (this->has_index_type()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.index_type_); + *index_type_); } // .schema_proto.DataType value_type = 2; - if (this->_internal_has_value_type()) { + if (this->has_value_type()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.value_type_); + *value_type_); } // bool ordered = 3; - if (this->_internal_ordered() != 0) { + if (this->ordered() != 0) { total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DictionaryType::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - DictionaryType::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DictionaryType::GetClassData() const { return &_class_data_; } - +void DictionaryType::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:schema_proto.DictionaryType) + GOOGLE_DCHECK_NE(&from, this); + const DictionaryType* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:schema_proto.DictionaryType) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:schema_proto.DictionaryType) + MergeFrom(*source); + } +} -void DictionaryType::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:schema_proto.DictionaryType) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; +void DictionaryType::MergeFrom(const DictionaryType& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:schema_proto.DictionaryType) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_index_type()) { - _this->_internal_mutable_index_type()->::schema_proto::DataType::MergeFrom( - from._internal_index_type()); + if (from.has_index_type()) { + _internal_mutable_index_type()->::schema_proto::DataType::MergeFrom(from._internal_index_type()); } - if (from._internal_has_value_type()) { - _this->_internal_mutable_value_type()->::schema_proto::DataType::MergeFrom( - from._internal_value_type()); + if (from.has_value_type()) { + _internal_mutable_value_type()->::schema_proto::DataType::MergeFrom(from._internal_value_type()); } - if (from._internal_ordered() != 0) { - _this->_internal_set_ordered(from._internal_ordered()); + if (from.ordered() != 0) { + _internal_set_ordered(from._internal_ordered()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void DictionaryType::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:schema_proto.DictionaryType) + if (&from == this) return; + Clear(); + MergeFrom(from); } void DictionaryType::CopyFrom(const DictionaryType& from) { @@ -996,133 +1087,131 @@ bool DictionaryType::IsInitialized() const { void DictionaryType::InternalSwap(DictionaryType* other) { using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(DictionaryType, _impl_.ordered_) - + sizeof(DictionaryType::_impl_.ordered_) - - PROTOBUF_FIELD_OFFSET(DictionaryType, _impl_.index_type_)>( - reinterpret_cast(&_impl_.index_type_), - reinterpret_cast(&other->_impl_.index_type_)); + PROTOBUF_FIELD_OFFSET(DictionaryType, ordered_) + + sizeof(DictionaryType::ordered_) + - PROTOBUF_FIELD_OFFSET(DictionaryType, index_type_)>( + reinterpret_cast(&index_type_), + reinterpret_cast(&other->index_type_)); } ::PROTOBUF_NAMESPACE_ID::Metadata DictionaryType::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_schema_5farrow_2eproto_getter, &descriptor_table_schema_5farrow_2eproto_once, - file_level_metadata_schema_5farrow_2eproto[2]); + return GetMetadataStatic(); } + // =================================================================== +void MapType::InitAsDefaultInstance() { +} class MapType::_Internal { public: }; -MapType::MapType(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +MapType::MapType(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:schema_proto.MapType) } MapType::MapType(const MapType& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - MapType* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.keys_sorted_){} - , /*decltype(_impl_._cached_size_)*/{}}; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.keys_sorted_ = from._impl_.keys_sorted_; + keys_sorted_ = from.keys_sorted_; // @@protoc_insertion_point(copy_constructor:schema_proto.MapType) } -inline void MapType::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.keys_sorted_){false} - , /*decltype(_impl_._cached_size_)*/{} - }; +void MapType::SharedCtor() { + keys_sorted_ = false; } MapType::~MapType() { // @@protoc_insertion_point(destructor:schema_proto.MapType) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -inline void MapType::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +void MapType::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); } +void MapType::ArenaDtor(void* object) { + MapType* _this = reinterpret_cast< MapType* >(object); + (void)_this; +} +void MapType::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} void MapType::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + _cached_size_.Set(size); } +const MapType& MapType::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MapType_schema_5farrow_2eproto.base); + return *internal_default_instance(); +} + void MapType::Clear() { // @@protoc_insertion_point(message_clear_start:schema_proto.MapType) - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.keys_sorted_ = false; + keys_sorted_ = false; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* MapType::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* MapType::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); switch (tag >> 3) { // bool keys_sorted = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _impl_.keys_sorted_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + keys_sorted_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else - goto handle_unusual; + } else goto handle_unusual; continue; - default: - goto handle_unusual; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); } // while -message_done: +success: return ptr; failure: ptr = nullptr; - goto message_done; + goto success; #undef CHK_ } -uint8_t* MapType::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::PROTOBUF_NAMESPACE_ID::uint8* MapType::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:schema_proto.MapType) - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // bool keys_sorted = 1; - if (this->_internal_keys_sorted() != 0) { + if (this->keys_sorted() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_keys_sorted(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_keys_sorted(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:schema_proto.MapType) @@ -1133,37 +1222,56 @@ size_t MapType::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:schema_proto.MapType) size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // bool keys_sorted = 1; - if (this->_internal_keys_sorted() != 0) { + if (this->keys_sorted() != 0) { total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MapType::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - MapType::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MapType::GetClassData() const { return &_class_data_; } - +void MapType::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:schema_proto.MapType) + GOOGLE_DCHECK_NE(&from, this); + const MapType* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:schema_proto.MapType) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:schema_proto.MapType) + MergeFrom(*source); + } +} -void MapType::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:schema_proto.MapType) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; +void MapType::MergeFrom(const MapType& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:schema_proto.MapType) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_keys_sorted() != 0) { - _this->_internal_set_keys_sorted(from._internal_keys_sorted()); + if (from.keys_sorted() != 0) { + _internal_set_keys_sorted(from._internal_keys_sorted()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void MapType::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:schema_proto.MapType) + if (&from == this) return; + Clear(); + MergeFrom(from); } void MapType::CopyFrom(const MapType& from) { @@ -1179,18 +1287,27 @@ bool MapType::IsInitialized() const { void MapType::InternalSwap(MapType* other) { using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.keys_sorted_, other->_impl_.keys_sorted_); + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + swap(keys_sorted_, other->keys_sorted_); } ::PROTOBUF_NAMESPACE_ID::Metadata MapType::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_schema_5farrow_2eproto_getter, &descriptor_table_schema_5farrow_2eproto_once, - file_level_metadata_schema_5farrow_2eproto[3]); + return GetMetadataStatic(); } + // =================================================================== +void DataType::InitAsDefaultInstance() { + ::schema_proto::_DataType_default_instance_.fixed_size_binary_type_ = const_cast< ::schema_proto::FixedSizeBinaryType*>( + ::schema_proto::FixedSizeBinaryType::internal_default_instance()); + ::schema_proto::_DataType_default_instance_.fixed_size_list_type_ = const_cast< ::schema_proto::FixedSizeListType*>( + ::schema_proto::FixedSizeListType::internal_default_instance()); + ::schema_proto::_DataType_default_instance_.dictionary_type_ = const_cast< ::schema_proto::DictionaryType*>( + ::schema_proto::DictionaryType::internal_default_instance()); + ::schema_proto::_DataType_default_instance_.map_type_ = const_cast< ::schema_proto::MapType*>( + ::schema_proto::MapType::internal_default_instance()); +} class DataType::_Internal { public: static const ::schema_proto::FixedSizeBinaryType& fixed_size_binary_type(const DataType* msg); @@ -1201,118 +1318,108 @@ class DataType::_Internal { const ::schema_proto::FixedSizeBinaryType& DataType::_Internal::fixed_size_binary_type(const DataType* msg) { - return *msg->_impl_.type_related_values_.fixed_size_binary_type_; + return *msg->type_related_values_.fixed_size_binary_type_; } const ::schema_proto::FixedSizeListType& DataType::_Internal::fixed_size_list_type(const DataType* msg) { - return *msg->_impl_.type_related_values_.fixed_size_list_type_; + return *msg->type_related_values_.fixed_size_list_type_; } const ::schema_proto::DictionaryType& DataType::_Internal::dictionary_type(const DataType* msg) { - return *msg->_impl_.type_related_values_.dictionary_type_; + return *msg->type_related_values_.dictionary_type_; } const ::schema_proto::MapType& DataType::_Internal::map_type(const DataType* msg) { - return *msg->_impl_.type_related_values_.map_type_; + return *msg->type_related_values_.map_type_; } void DataType::set_allocated_fixed_size_binary_type(::schema_proto::FixedSizeBinaryType* fixed_size_binary_type) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); clear_type_related_values(); if (fixed_size_binary_type) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(fixed_size_binary_type); + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(fixed_size_binary_type); if (message_arena != submessage_arena) { fixed_size_binary_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, fixed_size_binary_type, submessage_arena); } set_has_fixed_size_binary_type(); - _impl_.type_related_values_.fixed_size_binary_type_ = fixed_size_binary_type; + type_related_values_.fixed_size_binary_type_ = fixed_size_binary_type; } // @@protoc_insertion_point(field_set_allocated:schema_proto.DataType.fixed_size_binary_type) } void DataType::set_allocated_fixed_size_list_type(::schema_proto::FixedSizeListType* fixed_size_list_type) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); clear_type_related_values(); if (fixed_size_list_type) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(fixed_size_list_type); + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(fixed_size_list_type); if (message_arena != submessage_arena) { fixed_size_list_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, fixed_size_list_type, submessage_arena); } set_has_fixed_size_list_type(); - _impl_.type_related_values_.fixed_size_list_type_ = fixed_size_list_type; + type_related_values_.fixed_size_list_type_ = fixed_size_list_type; } // @@protoc_insertion_point(field_set_allocated:schema_proto.DataType.fixed_size_list_type) } void DataType::set_allocated_dictionary_type(::schema_proto::DictionaryType* dictionary_type) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); clear_type_related_values(); if (dictionary_type) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(dictionary_type); + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(dictionary_type); if (message_arena != submessage_arena) { dictionary_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, dictionary_type, submessage_arena); } set_has_dictionary_type(); - _impl_.type_related_values_.dictionary_type_ = dictionary_type; + type_related_values_.dictionary_type_ = dictionary_type; } // @@protoc_insertion_point(field_set_allocated:schema_proto.DataType.dictionary_type) } void DataType::set_allocated_map_type(::schema_proto::MapType* map_type) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); clear_type_related_values(); if (map_type) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(map_type); + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(map_type); if (message_arena != submessage_arena) { map_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, map_type, submessage_arena); } set_has_map_type(); - _impl_.type_related_values_.map_type_ = map_type; + type_related_values_.map_type_ = map_type; } // @@protoc_insertion_point(field_set_allocated:schema_proto.DataType.map_type) } -DataType::DataType(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +DataType::DataType(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + children_(arena) { + SharedCtor(); + RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:schema_proto.DataType) } DataType::DataType(const DataType& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - DataType* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.children_){from._impl_.children_} - , decltype(_impl_.logic_type_){} - , decltype(_impl_.type_related_values_){} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_._oneof_case_)*/{}}; - + : ::PROTOBUF_NAMESPACE_ID::Message(), + children_(from.children_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.logic_type_ = from._impl_.logic_type_; + logic_type_ = from.logic_type_; clear_has_type_related_values(); switch (from.type_related_values_case()) { case kFixedSizeBinaryType: { - _this->_internal_mutable_fixed_size_binary_type()->::schema_proto::FixedSizeBinaryType::MergeFrom( - from._internal_fixed_size_binary_type()); + _internal_mutable_fixed_size_binary_type()->::schema_proto::FixedSizeBinaryType::MergeFrom(from._internal_fixed_size_binary_type()); break; } case kFixedSizeListType: { - _this->_internal_mutable_fixed_size_list_type()->::schema_proto::FixedSizeListType::MergeFrom( - from._internal_fixed_size_list_type()); + _internal_mutable_fixed_size_list_type()->::schema_proto::FixedSizeListType::MergeFrom(from._internal_fixed_size_list_type()); break; } case kDictionaryType: { - _this->_internal_mutable_dictionary_type()->::schema_proto::DictionaryType::MergeFrom( - from._internal_dictionary_type()); + _internal_mutable_dictionary_type()->::schema_proto::DictionaryType::MergeFrom(from._internal_dictionary_type()); break; } case kMapType: { - _this->_internal_mutable_map_type()->::schema_proto::MapType::MergeFrom( - from._internal_map_type()); + _internal_mutable_map_type()->::schema_proto::MapType::MergeFrom(from._internal_map_type()); break; } case TYPE_RELATED_VALUES_NOT_SET: { @@ -1322,65 +1429,64 @@ DataType::DataType(const DataType& from) // @@protoc_insertion_point(copy_constructor:schema_proto.DataType) } -inline void DataType::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.children_){arena} - , decltype(_impl_.logic_type_){0} - , decltype(_impl_.type_related_values_){} - , /*decltype(_impl_._cached_size_)*/{} - , /*decltype(_impl_._oneof_case_)*/{} - }; +void DataType::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DataType_schema_5farrow_2eproto.base); + logic_type_ = 0; clear_has_type_related_values(); } DataType::~DataType() { // @@protoc_insertion_point(destructor:schema_proto.DataType) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -inline void DataType::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.children_.~RepeatedPtrField(); +void DataType::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); if (has_type_related_values()) { clear_type_related_values(); } } +void DataType::ArenaDtor(void* object) { + DataType* _this = reinterpret_cast< DataType* >(object); + (void)_this; +} +void DataType::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} void DataType::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + _cached_size_.Set(size); +} +const DataType& DataType::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DataType_schema_5farrow_2eproto.base); + return *internal_default_instance(); } + void DataType::clear_type_related_values() { // @@protoc_insertion_point(one_of_clear_start:schema_proto.DataType) switch (type_related_values_case()) { case kFixedSizeBinaryType: { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.type_related_values_.fixed_size_binary_type_; + if (GetArena() == nullptr) { + delete type_related_values_.fixed_size_binary_type_; } break; } case kFixedSizeListType: { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.type_related_values_.fixed_size_list_type_; + if (GetArena() == nullptr) { + delete type_related_values_.fixed_size_list_type_; } break; } case kDictionaryType: { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.type_related_values_.dictionary_type_; + if (GetArena() == nullptr) { + delete type_related_values_.dictionary_type_; } break; } case kMapType: { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.type_related_values_.map_type_; + if (GetArena() == nullptr) { + delete type_related_values_.map_type_; } break; } @@ -1388,72 +1494,69 @@ void DataType::clear_type_related_values() { break; } } - _impl_._oneof_case_[0] = TYPE_RELATED_VALUES_NOT_SET; + _oneof_case_[0] = TYPE_RELATED_VALUES_NOT_SET; } void DataType::Clear() { // @@protoc_insertion_point(message_clear_start:schema_proto.DataType) - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.children_.Clear(); - _impl_.logic_type_ = 0; + children_.Clear(); + logic_type_ = 0; clear_type_related_values(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* DataType::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* DataType::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); switch (tag >> 3) { // .schema_proto.FixedSizeBinaryType fixed_size_binary_type = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_fixed_size_binary_type(), ptr); CHK_(ptr); - } else - goto handle_unusual; + } else goto handle_unusual; continue; // .schema_proto.FixedSizeListType fixed_size_list_type = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_fixed_size_list_type(), ptr); CHK_(ptr); - } else - goto handle_unusual; + } else goto handle_unusual; continue; // .schema_proto.DictionaryType dictionary_type = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { ptr = ctx->ParseMessage(_internal_mutable_dictionary_type(), ptr); CHK_(ptr); - } else - goto handle_unusual; + } else goto handle_unusual; continue; // .schema_proto.MapType map_type = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { ptr = ctx->ParseMessage(_internal_mutable_map_type(), ptr); CHK_(ptr); - } else - goto handle_unusual; + } else goto handle_unusual; continue; // .schema_proto.LogicType logic_type = 100; case 100: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); _internal_set_logic_type(static_cast<::schema_proto::LogicType>(val)); - } else - goto handle_unusual; + } else goto handle_unusual; continue; // repeated .schema_proto.Field children = 101; case 101: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { ptr -= 2; do { ptr += 2; @@ -1461,83 +1564,85 @@ const char* DataType::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<810>(ptr)); - } else - goto handle_unusual; + } else goto handle_unusual; continue; - default: - goto handle_unusual; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); } // while -message_done: +success: return ptr; failure: ptr = nullptr; - goto message_done; + goto success; #undef CHK_ } -uint8_t* DataType::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::PROTOBUF_NAMESPACE_ID::uint8* DataType::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:schema_proto.DataType) - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // .schema_proto.FixedSizeBinaryType fixed_size_binary_type = 1; if (_internal_has_fixed_size_binary_type()) { + target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::fixed_size_binary_type(this), - _Internal::fixed_size_binary_type(this).GetCachedSize(), target, stream); + InternalWriteMessage( + 1, _Internal::fixed_size_binary_type(this), target, stream); } // .schema_proto.FixedSizeListType fixed_size_list_type = 2; if (_internal_has_fixed_size_list_type()) { + target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::fixed_size_list_type(this), - _Internal::fixed_size_list_type(this).GetCachedSize(), target, stream); + InternalWriteMessage( + 2, _Internal::fixed_size_list_type(this), target, stream); } // .schema_proto.DictionaryType dictionary_type = 3; if (_internal_has_dictionary_type()) { + target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(3, _Internal::dictionary_type(this), - _Internal::dictionary_type(this).GetCachedSize(), target, stream); + InternalWriteMessage( + 3, _Internal::dictionary_type(this), target, stream); } // .schema_proto.MapType map_type = 4; if (_internal_has_map_type()) { + target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(4, _Internal::map_type(this), - _Internal::map_type(this).GetCachedSize(), target, stream); + InternalWriteMessage( + 4, _Internal::map_type(this), target, stream); } // .schema_proto.LogicType logic_type = 100; - if (this->_internal_logic_type() != 0) { + if (this->logic_type() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( 100, this->_internal_logic_type(), target); } // repeated .schema_proto.Field children = 101; - for (unsigned i = 0, - n = static_cast(this->_internal_children_size()); i < n; i++) { - const auto& repfield = this->_internal_children(i); + for (unsigned int i = 0, + n = static_cast(this->_internal_children_size()); i < n; i++) { + target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(101, repfield, repfield.GetCachedSize(), target, stream); + InternalWriteMessage(101, this->_internal_children(i), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:schema_proto.DataType) @@ -1548,21 +1653,21 @@ size_t DataType::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:schema_proto.DataType) size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .schema_proto.Field children = 101; total_size += 2UL * this->_internal_children_size(); - for (const auto& msg : this->_impl_.children_) { + for (const auto& msg : this->children_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } // .schema_proto.LogicType logic_type = 100; - if (this->_internal_logic_type() != 0) { + if (this->logic_type() != 0) { total_size += 2 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_logic_type()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_logic_type()); } switch (type_related_values_case()) { @@ -1570,82 +1675,97 @@ size_t DataType::ByteSizeLong() const { case kFixedSizeBinaryType: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.type_related_values_.fixed_size_binary_type_); + *type_related_values_.fixed_size_binary_type_); break; } // .schema_proto.FixedSizeListType fixed_size_list_type = 2; case kFixedSizeListType: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.type_related_values_.fixed_size_list_type_); + *type_related_values_.fixed_size_list_type_); break; } // .schema_proto.DictionaryType dictionary_type = 3; case kDictionaryType: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.type_related_values_.dictionary_type_); + *type_related_values_.dictionary_type_); break; } // .schema_proto.MapType map_type = 4; case kMapType: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.type_related_values_.map_type_); + *type_related_values_.map_type_); break; } case TYPE_RELATED_VALUES_NOT_SET: { break; } } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DataType::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - DataType::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DataType::GetClassData() const { return &_class_data_; } - +void DataType::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:schema_proto.DataType) + GOOGLE_DCHECK_NE(&from, this); + const DataType* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:schema_proto.DataType) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:schema_proto.DataType) + MergeFrom(*source); + } +} -void DataType::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:schema_proto.DataType) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; +void DataType::MergeFrom(const DataType& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:schema_proto.DataType) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.children_.MergeFrom(from._impl_.children_); - if (from._internal_logic_type() != 0) { - _this->_internal_set_logic_type(from._internal_logic_type()); + children_.MergeFrom(from.children_); + if (from.logic_type() != 0) { + _internal_set_logic_type(from._internal_logic_type()); } switch (from.type_related_values_case()) { case kFixedSizeBinaryType: { - _this->_internal_mutable_fixed_size_binary_type()->::schema_proto::FixedSizeBinaryType::MergeFrom( - from._internal_fixed_size_binary_type()); + _internal_mutable_fixed_size_binary_type()->::schema_proto::FixedSizeBinaryType::MergeFrom(from._internal_fixed_size_binary_type()); break; } case kFixedSizeListType: { - _this->_internal_mutable_fixed_size_list_type()->::schema_proto::FixedSizeListType::MergeFrom( - from._internal_fixed_size_list_type()); + _internal_mutable_fixed_size_list_type()->::schema_proto::FixedSizeListType::MergeFrom(from._internal_fixed_size_list_type()); break; } case kDictionaryType: { - _this->_internal_mutable_dictionary_type()->::schema_proto::DictionaryType::MergeFrom( - from._internal_dictionary_type()); + _internal_mutable_dictionary_type()->::schema_proto::DictionaryType::MergeFrom(from._internal_dictionary_type()); break; } case kMapType: { - _this->_internal_mutable_map_type()->::schema_proto::MapType::MergeFrom( - from._internal_map_type()); + _internal_mutable_map_type()->::schema_proto::MapType::MergeFrom(from._internal_map_type()); break; } case TYPE_RELATED_VALUES_NOT_SET: { break; } } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void DataType::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:schema_proto.DataType) + if (&from == this) return; + Clear(); + MergeFrom(from); } void DataType::CopyFrom(const DataType& from) { @@ -1661,147 +1781,144 @@ bool DataType::IsInitialized() const { void DataType::InternalSwap(DataType* other) { using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.children_.InternalSwap(&other->_impl_.children_); - swap(_impl_.logic_type_, other->_impl_.logic_type_); - swap(_impl_.type_related_values_, other->_impl_.type_related_values_); - swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + children_.InternalSwap(&other->children_); + swap(logic_type_, other->logic_type_); + swap(type_related_values_, other->type_related_values_); + swap(_oneof_case_[0], other->_oneof_case_[0]); } ::PROTOBUF_NAMESPACE_ID::Metadata DataType::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_schema_5farrow_2eproto_getter, &descriptor_table_schema_5farrow_2eproto_once, - file_level_metadata_schema_5farrow_2eproto[4]); + return GetMetadataStatic(); } + // =================================================================== +void KeyValueMetadata::InitAsDefaultInstance() { +} class KeyValueMetadata::_Internal { public: }; -KeyValueMetadata::KeyValueMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +KeyValueMetadata::KeyValueMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + keys_(arena), + values_(arena) { + SharedCtor(); + RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:schema_proto.KeyValueMetadata) } KeyValueMetadata::KeyValueMetadata(const KeyValueMetadata& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - KeyValueMetadata* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.keys_){from._impl_.keys_} - , decltype(_impl_.values_){from._impl_.values_} - , /*decltype(_impl_._cached_size_)*/{}}; - + : ::PROTOBUF_NAMESPACE_ID::Message(), + keys_(from.keys_), + values_(from.values_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:schema_proto.KeyValueMetadata) } -inline void KeyValueMetadata::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.keys_){arena} - , decltype(_impl_.values_){arena} - , /*decltype(_impl_._cached_size_)*/{} - }; +void KeyValueMetadata::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_KeyValueMetadata_schema_5farrow_2eproto.base); } KeyValueMetadata::~KeyValueMetadata() { // @@protoc_insertion_point(destructor:schema_proto.KeyValueMetadata) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -inline void KeyValueMetadata::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.keys_.~RepeatedPtrField(); - _impl_.values_.~RepeatedPtrField(); +void KeyValueMetadata::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); } +void KeyValueMetadata::ArenaDtor(void* object) { + KeyValueMetadata* _this = reinterpret_cast< KeyValueMetadata* >(object); + (void)_this; +} +void KeyValueMetadata::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} void KeyValueMetadata::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + _cached_size_.Set(size); } +const KeyValueMetadata& KeyValueMetadata::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_KeyValueMetadata_schema_5farrow_2eproto.base); + return *internal_default_instance(); +} + void KeyValueMetadata::Clear() { // @@protoc_insertion_point(message_clear_start:schema_proto.KeyValueMetadata) - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.keys_.Clear(); - _impl_.values_.Clear(); + keys_.Clear(); + values_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* KeyValueMetadata::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* KeyValueMetadata::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); switch (tag >> 3) { // repeated string keys = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { ptr -= 1; do { ptr += 1; auto str = _internal_add_keys(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "schema_proto.KeyValueMetadata.keys")); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "schema_proto.KeyValueMetadata.keys")); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else - goto handle_unusual; + } else goto handle_unusual; continue; // repeated string values = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { ptr -= 1; do { ptr += 1; auto str = _internal_add_values(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "schema_proto.KeyValueMetadata.values")); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "schema_proto.KeyValueMetadata.values")); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); - } else - goto handle_unusual; + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); continue; - default: - goto handle_unusual; + } } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); } // while -message_done: +success: return ptr; failure: ptr = nullptr; - goto message_done; + goto success; #undef CHK_ } -uint8_t* KeyValueMetadata::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::PROTOBUF_NAMESPACE_ID::uint8* KeyValueMetadata::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:schema_proto.KeyValueMetadata) - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // repeated string keys = 1; @@ -1825,7 +1942,7 @@ uint8_t* KeyValueMetadata::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:schema_proto.KeyValueMetadata) @@ -1836,47 +1953,66 @@ size_t KeyValueMetadata::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:schema_proto.KeyValueMetadata) size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string keys = 1; total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.keys_.size()); - for (int i = 0, n = _impl_.keys_.size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(keys_.size()); + for (int i = 0, n = keys_.size(); i < n; i++) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - _impl_.keys_.Get(i)); + keys_.Get(i)); } // repeated string values = 2; total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.values_.size()); - for (int i = 0, n = _impl_.values_.size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(values_.size()); + for (int i = 0, n = values_.size(); i < n; i++) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - _impl_.values_.Get(i)); + values_.Get(i)); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData KeyValueMetadata::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - KeyValueMetadata::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*KeyValueMetadata::GetClassData() const { return &_class_data_; } - +void KeyValueMetadata::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:schema_proto.KeyValueMetadata) + GOOGLE_DCHECK_NE(&from, this); + const KeyValueMetadata* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:schema_proto.KeyValueMetadata) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:schema_proto.KeyValueMetadata) + MergeFrom(*source); + } +} -void KeyValueMetadata::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:schema_proto.KeyValueMetadata) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; +void KeyValueMetadata::MergeFrom(const KeyValueMetadata& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:schema_proto.KeyValueMetadata) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.keys_.MergeFrom(from._impl_.keys_); - _this->_impl_.values_.MergeFrom(from._impl_.values_); - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + keys_.MergeFrom(from.keys_); + values_.MergeFrom(from.values_); +} + +void KeyValueMetadata::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:schema_proto.KeyValueMetadata) + if (&from == this) return; + Clear(); + MergeFrom(from); } void KeyValueMetadata::CopyFrom(const KeyValueMetadata& from) { @@ -1892,19 +2028,24 @@ bool KeyValueMetadata::IsInitialized() const { void KeyValueMetadata::InternalSwap(KeyValueMetadata* other) { using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.keys_.InternalSwap(&other->_impl_.keys_); - _impl_.values_.InternalSwap(&other->_impl_.values_); + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + keys_.InternalSwap(&other->keys_); + values_.InternalSwap(&other->values_); } ::PROTOBUF_NAMESPACE_ID::Metadata KeyValueMetadata::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_schema_5farrow_2eproto_getter, &descriptor_table_schema_5farrow_2eproto_once, - file_level_metadata_schema_5farrow_2eproto[5]); + return GetMetadataStatic(); } + // =================================================================== +void Field::InitAsDefaultInstance() { + ::schema_proto::_Field_default_instance_._instance.get_mutable()->data_type_ = const_cast< ::schema_proto::DataType*>( + ::schema_proto::DataType::internal_default_instance()); + ::schema_proto::_Field_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::schema_proto::KeyValueMetadata*>( + ::schema_proto::KeyValueMetadata::internal_default_instance()); +} class Field::_Internal { public: static const ::schema_proto::DataType& data_type(const Field* msg); @@ -1913,174 +2054,163 @@ class Field::_Internal { const ::schema_proto::DataType& Field::_Internal::data_type(const Field* msg) { - return *msg->_impl_.data_type_; + return *msg->data_type_; } const ::schema_proto::KeyValueMetadata& Field::_Internal::metadata(const Field* msg) { - return *msg->_impl_.metadata_; + return *msg->metadata_; } -Field::Field(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +Field::Field(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:schema_proto.Field) } Field::Field(const Field& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - Field* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.name_){} - , decltype(_impl_.data_type_){nullptr} - , decltype(_impl_.metadata_){nullptr} - , decltype(_impl_.nullable_){} - , /*decltype(_impl_._cached_size_)*/{}}; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_name().empty()) { - _this->_impl_.name_.Set(from._internal_name(), - _this->GetArenaForAllocation()); + name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_name(), + GetArena()); } if (from._internal_has_data_type()) { - _this->_impl_.data_type_ = new ::schema_proto::DataType(*from._impl_.data_type_); + data_type_ = new ::schema_proto::DataType(*from.data_type_); + } else { + data_type_ = nullptr; } if (from._internal_has_metadata()) { - _this->_impl_.metadata_ = new ::schema_proto::KeyValueMetadata(*from._impl_.metadata_); + metadata_ = new ::schema_proto::KeyValueMetadata(*from.metadata_); + } else { + metadata_ = nullptr; } - _this->_impl_.nullable_ = from._impl_.nullable_; + nullable_ = from.nullable_; // @@protoc_insertion_point(copy_constructor:schema_proto.Field) } -inline void Field::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.name_){} - , decltype(_impl_.data_type_){nullptr} - , decltype(_impl_.metadata_){nullptr} - , decltype(_impl_.nullable_){false} - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +void Field::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DataType_schema_5farrow_2eproto.base); + name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::memset(&data_type_, 0, static_cast( + reinterpret_cast(&nullable_) - + reinterpret_cast(&data_type_)) + sizeof(nullable_)); } Field::~Field() { // @@protoc_insertion_point(destructor:schema_proto.Field) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -inline void Field::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.name_.Destroy(); - if (this != internal_default_instance()) delete _impl_.data_type_; - if (this != internal_default_instance()) delete _impl_.metadata_; +void Field::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete data_type_; + if (this != internal_default_instance()) delete metadata_; } +void Field::ArenaDtor(void* object) { + Field* _this = reinterpret_cast< Field* >(object); + (void)_this; +} +void Field::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} void Field::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + _cached_size_.Set(size); } +const Field& Field::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DataType_schema_5farrow_2eproto.base); + return *internal_default_instance(); +} + void Field::Clear() { // @@protoc_insertion_point(message_clear_start:schema_proto.Field) - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - if (GetArenaForAllocation() == nullptr && _impl_.data_type_ != nullptr) { - delete _impl_.data_type_; + name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + if (GetArena() == nullptr && data_type_ != nullptr) { + delete data_type_; } - _impl_.data_type_ = nullptr; - if (GetArenaForAllocation() == nullptr && _impl_.metadata_ != nullptr) { - delete _impl_.metadata_; + data_type_ = nullptr; + if (GetArena() == nullptr && metadata_ != nullptr) { + delete metadata_; } - _impl_.metadata_ = nullptr; - _impl_.nullable_ = false; + metadata_ = nullptr; + nullable_ = false; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* Field::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* Field::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); switch (tag >> 3) { // string name = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "schema_proto.Field.name")); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "schema_proto.Field.name")); - } else - goto handle_unusual; + } else goto handle_unusual; continue; // bool nullable = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _impl_.nullable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + nullable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else - goto handle_unusual; + } else goto handle_unusual; continue; // .schema_proto.DataType data_type = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { ptr = ctx->ParseMessage(_internal_mutable_data_type(), ptr); CHK_(ptr); - } else - goto handle_unusual; + } else goto handle_unusual; continue; // .schema_proto.KeyValueMetadata metadata = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { ptr = ctx->ParseMessage(_internal_mutable_metadata(), ptr); CHK_(ptr); - } else - goto handle_unusual; + } else goto handle_unusual; continue; - default: - goto handle_unusual; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); } // while -message_done: +success: return ptr; failure: ptr = nullptr; - goto message_done; + goto success; #undef CHK_ } -uint8_t* Field::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::PROTOBUF_NAMESPACE_ID::uint8* Field::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:schema_proto.Field) - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // string name = 1; - if (!this->_internal_name().empty()) { + if (this->name().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_name().data(), static_cast(this->_internal_name().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -2090,27 +2220,29 @@ uint8_t* Field::_InternalSerialize( } // bool nullable = 2; - if (this->_internal_nullable() != 0) { + if (this->nullable() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_nullable(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->_internal_nullable(), target); } // .schema_proto.DataType data_type = 3; - if (this->_internal_has_data_type()) { + if (this->has_data_type()) { + target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(3, _Internal::data_type(this), - _Internal::data_type(this).GetCachedSize(), target, stream); + InternalWriteMessage( + 3, _Internal::data_type(this), target, stream); } // .schema_proto.KeyValueMetadata metadata = 4; - if (this->_internal_has_metadata()) { + if (this->has_metadata()) { + target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(4, _Internal::metadata(this), - _Internal::metadata(this).GetCachedSize(), target, stream); + InternalWriteMessage( + 4, _Internal::metadata(this), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:schema_proto.Field) @@ -2121,69 +2253,86 @@ size_t Field::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:schema_proto.Field) size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string name = 1; - if (!this->_internal_name().empty()) { + if (this->name().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_name()); } // .schema_proto.DataType data_type = 3; - if (this->_internal_has_data_type()) { + if (this->has_data_type()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.data_type_); + *data_type_); } // .schema_proto.KeyValueMetadata metadata = 4; - if (this->_internal_has_metadata()) { + if (this->has_metadata()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.metadata_); + *metadata_); } // bool nullable = 2; - if (this->_internal_nullable() != 0) { + if (this->nullable() != 0) { total_size += 1 + 1; } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Field::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - Field::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Field::GetClassData() const { return &_class_data_; } - +void Field::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:schema_proto.Field) + GOOGLE_DCHECK_NE(&from, this); + const Field* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:schema_proto.Field) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:schema_proto.Field) + MergeFrom(*source); + } +} -void Field::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:schema_proto.Field) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; +void Field::MergeFrom(const Field& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:schema_proto.Field) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); + if (from.name().size() > 0) { + _internal_set_name(from._internal_name()); } - if (from._internal_has_data_type()) { - _this->_internal_mutable_data_type()->::schema_proto::DataType::MergeFrom( - from._internal_data_type()); + if (from.has_data_type()) { + _internal_mutable_data_type()->::schema_proto::DataType::MergeFrom(from._internal_data_type()); } - if (from._internal_has_metadata()) { - _this->_internal_mutable_metadata()->::schema_proto::KeyValueMetadata::MergeFrom( - from._internal_metadata()); + if (from.has_metadata()) { + _internal_mutable_metadata()->::schema_proto::KeyValueMetadata::MergeFrom(from._internal_metadata()); } - if (from._internal_nullable() != 0) { - _this->_internal_set_nullable(from._internal_nullable()); + if (from.nullable() != 0) { + _internal_set_nullable(from._internal_nullable()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Field::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:schema_proto.Field) + if (&from == this) return; + Clear(); + MergeFrom(from); } void Field::CopyFrom(const Field& from) { @@ -2199,199 +2348,168 @@ bool Field::IsInitialized() const { void Field::InternalSwap(Field* other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena - ); + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(Field, _impl_.nullable_) - + sizeof(Field::_impl_.nullable_) - - PROTOBUF_FIELD_OFFSET(Field, _impl_.data_type_)>( - reinterpret_cast(&_impl_.data_type_), - reinterpret_cast(&other->_impl_.data_type_)); + PROTOBUF_FIELD_OFFSET(Field, nullable_) + + sizeof(Field::nullable_) + - PROTOBUF_FIELD_OFFSET(Field, data_type_)>( + reinterpret_cast(&data_type_), + reinterpret_cast(&other->data_type_)); } ::PROTOBUF_NAMESPACE_ID::Metadata Field::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_schema_5farrow_2eproto_getter, &descriptor_table_schema_5farrow_2eproto_once, - file_level_metadata_schema_5farrow_2eproto[6]); + return GetMetadataStatic(); } + // =================================================================== +void SchemaOptions::InitAsDefaultInstance() { +} class SchemaOptions::_Internal { public: }; -SchemaOptions::SchemaOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +SchemaOptions::SchemaOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:schema_proto.SchemaOptions) } SchemaOptions::SchemaOptions(const SchemaOptions& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - SchemaOptions* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.primary_column_){} - , decltype(_impl_.version_column_){} - , decltype(_impl_.vector_column_){} - , /*decltype(_impl_._cached_size_)*/{}}; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.primary_column_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.primary_column_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + primary_column_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_primary_column().empty()) { - _this->_impl_.primary_column_.Set(from._internal_primary_column(), - _this->GetArenaForAllocation()); + primary_column_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_primary_column(), + GetArena()); } - _impl_.version_column_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.version_column_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + version_column_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_version_column().empty()) { - _this->_impl_.version_column_.Set(from._internal_version_column(), - _this->GetArenaForAllocation()); + version_column_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_version_column(), + GetArena()); } - _impl_.vector_column_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.vector_column_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + vector_column_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from._internal_vector_column().empty()) { - _this->_impl_.vector_column_.Set(from._internal_vector_column(), - _this->GetArenaForAllocation()); + vector_column_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_vector_column(), + GetArena()); } // @@protoc_insertion_point(copy_constructor:schema_proto.SchemaOptions) } -inline void SchemaOptions::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.primary_column_){} - , decltype(_impl_.version_column_){} - , decltype(_impl_.vector_column_){} - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.primary_column_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.primary_column_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.version_column_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.version_column_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.vector_column_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.vector_column_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +void SchemaOptions::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SchemaOptions_schema_5farrow_2eproto.base); + primary_column_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + version_column_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + vector_column_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } SchemaOptions::~SchemaOptions() { // @@protoc_insertion_point(destructor:schema_proto.SchemaOptions) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -inline void SchemaOptions::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.primary_column_.Destroy(); - _impl_.version_column_.Destroy(); - _impl_.vector_column_.Destroy(); +void SchemaOptions::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + primary_column_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + version_column_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + vector_column_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } +void SchemaOptions::ArenaDtor(void* object) { + SchemaOptions* _this = reinterpret_cast< SchemaOptions* >(object); + (void)_this; +} +void SchemaOptions::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} void SchemaOptions::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + _cached_size_.Set(size); } +const SchemaOptions& SchemaOptions::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SchemaOptions_schema_5farrow_2eproto.base); + return *internal_default_instance(); +} + void SchemaOptions::Clear() { // @@protoc_insertion_point(message_clear_start:schema_proto.SchemaOptions) - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.primary_column_.ClearToEmpty(); - _impl_.version_column_.ClearToEmpty(); - _impl_.vector_column_.ClearToEmpty(); + primary_column_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + version_column_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + vector_column_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* SchemaOptions::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* SchemaOptions::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); switch (tag >> 3) { // string primary_column = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { auto str = _internal_mutable_primary_column(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "schema_proto.SchemaOptions.primary_column")); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "schema_proto.SchemaOptions.primary_column")); - } else - goto handle_unusual; + } else goto handle_unusual; continue; // string version_column = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { auto str = _internal_mutable_version_column(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "schema_proto.SchemaOptions.version_column")); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "schema_proto.SchemaOptions.version_column")); - } else - goto handle_unusual; + } else goto handle_unusual; continue; // string vector_column = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { auto str = _internal_mutable_vector_column(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "schema_proto.SchemaOptions.vector_column")); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "schema_proto.SchemaOptions.vector_column")); - } else - goto handle_unusual; + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); continue; - default: - goto handle_unusual; + } } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); } // while -message_done: +success: return ptr; failure: ptr = nullptr; - goto message_done; + goto success; #undef CHK_ } -uint8_t* SchemaOptions::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::PROTOBUF_NAMESPACE_ID::uint8* SchemaOptions::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:schema_proto.SchemaOptions) - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // string primary_column = 1; - if (!this->_internal_primary_column().empty()) { + if (this->primary_column().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_primary_column().data(), static_cast(this->_internal_primary_column().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -2401,7 +2519,7 @@ uint8_t* SchemaOptions::_InternalSerialize( } // string version_column = 2; - if (!this->_internal_version_column().empty()) { + if (this->version_column().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_version_column().data(), static_cast(this->_internal_version_column().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -2411,7 +2529,7 @@ uint8_t* SchemaOptions::_InternalSerialize( } // string vector_column = 3; - if (!this->_internal_vector_column().empty()) { + if (this->vector_column().size() > 0) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_vector_column().data(), static_cast(this->_internal_vector_column().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -2421,7 +2539,7 @@ uint8_t* SchemaOptions::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:schema_proto.SchemaOptions) @@ -2432,59 +2550,78 @@ size_t SchemaOptions::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:schema_proto.SchemaOptions) size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string primary_column = 1; - if (!this->_internal_primary_column().empty()) { + if (this->primary_column().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_primary_column()); } // string version_column = 2; - if (!this->_internal_version_column().empty()) { + if (this->version_column().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_version_column()); } // string vector_column = 3; - if (!this->_internal_vector_column().empty()) { + if (this->vector_column().size() > 0) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_vector_column()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SchemaOptions::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - SchemaOptions::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SchemaOptions::GetClassData() const { return &_class_data_; } - +void SchemaOptions::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:schema_proto.SchemaOptions) + GOOGLE_DCHECK_NE(&from, this); + const SchemaOptions* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:schema_proto.SchemaOptions) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:schema_proto.SchemaOptions) + MergeFrom(*source); + } +} -void SchemaOptions::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:schema_proto.SchemaOptions) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; +void SchemaOptions::MergeFrom(const SchemaOptions& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:schema_proto.SchemaOptions) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_primary_column().empty()) { - _this->_internal_set_primary_column(from._internal_primary_column()); + if (from.primary_column().size() > 0) { + _internal_set_primary_column(from._internal_primary_column()); } - if (!from._internal_version_column().empty()) { - _this->_internal_set_version_column(from._internal_version_column()); + if (from.version_column().size() > 0) { + _internal_set_version_column(from._internal_version_column()); } - if (!from._internal_vector_column().empty()) { - _this->_internal_set_vector_column(from._internal_vector_column()); + if (from.vector_column().size() > 0) { + _internal_set_vector_column(from._internal_vector_column()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void SchemaOptions::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:schema_proto.SchemaOptions) + if (&from == this) return; + Clear(); + MergeFrom(from); } void SchemaOptions::CopyFrom(const SchemaOptions& from) { @@ -2500,31 +2637,23 @@ bool SchemaOptions::IsInitialized() const { void SchemaOptions::InternalSwap(SchemaOptions* other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.primary_column_, lhs_arena, - &other->_impl_.primary_column_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.version_column_, lhs_arena, - &other->_impl_.version_column_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.vector_column_, lhs_arena, - &other->_impl_.vector_column_, rhs_arena - ); + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + primary_column_.Swap(&other->primary_column_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + version_column_.Swap(&other->version_column_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + vector_column_.Swap(&other->vector_column_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } ::PROTOBUF_NAMESPACE_ID::Metadata SchemaOptions::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_schema_5farrow_2eproto_getter, &descriptor_table_schema_5farrow_2eproto_once, - file_level_metadata_schema_5farrow_2eproto[7]); + return GetMetadataStatic(); } + // =================================================================== +void ArrowSchema::InitAsDefaultInstance() { + ::schema_proto::_ArrowSchema_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::schema_proto::KeyValueMetadata*>( + ::schema_proto::KeyValueMetadata::internal_default_instance()); +} class ArrowSchema::_Internal { public: static const ::schema_proto::KeyValueMetadata& metadata(const ArrowSchema* msg); @@ -2532,86 +2661,87 @@ class ArrowSchema::_Internal { const ::schema_proto::KeyValueMetadata& ArrowSchema::_Internal::metadata(const ArrowSchema* msg) { - return *msg->_impl_.metadata_; + return *msg->metadata_; } -ArrowSchema::ArrowSchema(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +ArrowSchema::ArrowSchema(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena), + fields_(arena) { + SharedCtor(); + RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:schema_proto.ArrowSchema) } ArrowSchema::ArrowSchema(const ArrowSchema& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - ArrowSchema* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.fields_){from._impl_.fields_} - , decltype(_impl_.metadata_){nullptr} - , decltype(_impl_.endianness_){} - , /*decltype(_impl_._cached_size_)*/{}}; - + : ::PROTOBUF_NAMESPACE_ID::Message(), + fields_(from.fields_) { _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_metadata()) { - _this->_impl_.metadata_ = new ::schema_proto::KeyValueMetadata(*from._impl_.metadata_); + metadata_ = new ::schema_proto::KeyValueMetadata(*from.metadata_); + } else { + metadata_ = nullptr; } - _this->_impl_.endianness_ = from._impl_.endianness_; + endianness_ = from.endianness_; // @@protoc_insertion_point(copy_constructor:schema_proto.ArrowSchema) } -inline void ArrowSchema::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.fields_){arena} - , decltype(_impl_.metadata_){nullptr} - , decltype(_impl_.endianness_){0} - , /*decltype(_impl_._cached_size_)*/{} - }; +void ArrowSchema::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ArrowSchema_schema_5farrow_2eproto.base); + ::memset(&metadata_, 0, static_cast( + reinterpret_cast(&endianness_) - + reinterpret_cast(&metadata_)) + sizeof(endianness_)); } ArrowSchema::~ArrowSchema() { // @@protoc_insertion_point(destructor:schema_proto.ArrowSchema) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -inline void ArrowSchema::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.fields_.~RepeatedPtrField(); - if (this != internal_default_instance()) delete _impl_.metadata_; +void ArrowSchema::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + if (this != internal_default_instance()) delete metadata_; } +void ArrowSchema::ArenaDtor(void* object) { + ArrowSchema* _this = reinterpret_cast< ArrowSchema* >(object); + (void)_this; +} +void ArrowSchema::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} void ArrowSchema::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + _cached_size_.Set(size); +} +const ArrowSchema& ArrowSchema::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ArrowSchema_schema_5farrow_2eproto.base); + return *internal_default_instance(); } + void ArrowSchema::Clear() { // @@protoc_insertion_point(message_clear_start:schema_proto.ArrowSchema) - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.fields_.Clear(); - if (GetArenaForAllocation() == nullptr && _impl_.metadata_ != nullptr) { - delete _impl_.metadata_; + fields_.Clear(); + if (GetArena() == nullptr && metadata_ != nullptr) { + delete metadata_; } - _impl_.metadata_ = nullptr; - _impl_.endianness_ = 0; + metadata_ = nullptr; + endianness_ = 0; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* ArrowSchema::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* ArrowSchema::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); switch (tag >> 3) { // repeated .schema_proto.Field fields = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { ptr -= 1; do { ptr += 1; @@ -2619,79 +2749,76 @@ const char* ArrowSchema::_InternalParse(const char* ptr, ::_pbi::ParseContext* c CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else - goto handle_unusual; + } else goto handle_unusual; continue; // .schema_proto.Endianness endianness = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); _internal_set_endianness(static_cast<::schema_proto::Endianness>(val)); - } else - goto handle_unusual; + } else goto handle_unusual; continue; // .schema_proto.KeyValueMetadata metadata = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { ptr = ctx->ParseMessage(_internal_mutable_metadata(), ptr); CHK_(ptr); - } else - goto handle_unusual; + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); continue; - default: - goto handle_unusual; + } } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); } // while -message_done: +success: return ptr; failure: ptr = nullptr; - goto message_done; + goto success; #undef CHK_ } -uint8_t* ArrowSchema::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::PROTOBUF_NAMESPACE_ID::uint8* ArrowSchema::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:schema_proto.ArrowSchema) - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // repeated .schema_proto.Field fields = 1; - for (unsigned i = 0, - n = static_cast(this->_internal_fields_size()); i < n; i++) { - const auto& repfield = this->_internal_fields(i); + for (unsigned int i = 0, + n = static_cast(this->_internal_fields_size()); i < n; i++) { + target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + InternalWriteMessage(1, this->_internal_fields(i), target, stream); } // .schema_proto.Endianness endianness = 2; - if (this->_internal_endianness() != 0) { + if (this->endianness() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( 2, this->_internal_endianness(), target); } // .schema_proto.KeyValueMetadata metadata = 3; - if (this->_internal_has_metadata()) { + if (this->has_metadata()) { + target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(3, _Internal::metadata(this), - _Internal::metadata(this).GetCachedSize(), target, stream); + InternalWriteMessage( + 3, _Internal::metadata(this), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:schema_proto.ArrowSchema) @@ -2702,57 +2829,75 @@ size_t ArrowSchema::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:schema_proto.ArrowSchema) size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .schema_proto.Field fields = 1; total_size += 1UL * this->_internal_fields_size(); - for (const auto& msg : this->_impl_.fields_) { + for (const auto& msg : this->fields_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } // .schema_proto.KeyValueMetadata metadata = 3; - if (this->_internal_has_metadata()) { + if (this->has_metadata()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.metadata_); + *metadata_); } // .schema_proto.Endianness endianness = 2; - if (this->_internal_endianness() != 0) { + if (this->endianness() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_endianness()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_endianness()); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ArrowSchema::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ArrowSchema::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ArrowSchema::GetClassData() const { return &_class_data_; } - +void ArrowSchema::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:schema_proto.ArrowSchema) + GOOGLE_DCHECK_NE(&from, this); + const ArrowSchema* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:schema_proto.ArrowSchema) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:schema_proto.ArrowSchema) + MergeFrom(*source); + } +} -void ArrowSchema::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:schema_proto.ArrowSchema) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; +void ArrowSchema::MergeFrom(const ArrowSchema& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:schema_proto.ArrowSchema) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.fields_.MergeFrom(from._impl_.fields_); - if (from._internal_has_metadata()) { - _this->_internal_mutable_metadata()->::schema_proto::KeyValueMetadata::MergeFrom( - from._internal_metadata()); + fields_.MergeFrom(from.fields_); + if (from.has_metadata()) { + _internal_mutable_metadata()->::schema_proto::KeyValueMetadata::MergeFrom(from._internal_metadata()); } - if (from._internal_endianness() != 0) { - _this->_internal_set_endianness(from._internal_endianness()); + if (from.endianness() != 0) { + _internal_set_endianness(from._internal_endianness()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ArrowSchema::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:schema_proto.ArrowSchema) + if (&from == this) return; + Clear(); + MergeFrom(from); } void ArrowSchema::CopyFrom(const ArrowSchema& from) { @@ -2768,24 +2913,29 @@ bool ArrowSchema::IsInitialized() const { void ArrowSchema::InternalSwap(ArrowSchema* other) { using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.fields_.InternalSwap(&other->_impl_.fields_); + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + fields_.InternalSwap(&other->fields_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ArrowSchema, _impl_.endianness_) - + sizeof(ArrowSchema::_impl_.endianness_) - - PROTOBUF_FIELD_OFFSET(ArrowSchema, _impl_.metadata_)>( - reinterpret_cast(&_impl_.metadata_), - reinterpret_cast(&other->_impl_.metadata_)); + PROTOBUF_FIELD_OFFSET(ArrowSchema, endianness_) + + sizeof(ArrowSchema::endianness_) + - PROTOBUF_FIELD_OFFSET(ArrowSchema, metadata_)>( + reinterpret_cast(&metadata_), + reinterpret_cast(&other->metadata_)); } ::PROTOBUF_NAMESPACE_ID::Metadata ArrowSchema::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_schema_5farrow_2eproto_getter, &descriptor_table_schema_5farrow_2eproto_once, - file_level_metadata_schema_5farrow_2eproto[8]); + return GetMetadataStatic(); } + // =================================================================== +void Schema::InitAsDefaultInstance() { + ::schema_proto::_Schema_default_instance_._instance.get_mutable()->arrow_schema_ = const_cast< ::schema_proto::ArrowSchema*>( + ::schema_proto::ArrowSchema::internal_default_instance()); + ::schema_proto::_Schema_default_instance_._instance.get_mutable()->schema_options_ = const_cast< ::schema_proto::SchemaOptions*>( + ::schema_proto::SchemaOptions::internal_default_instance()); +} class Schema::_Internal { public: static const ::schema_proto::ArrowSchema& arrow_schema(const Schema* msg); @@ -2794,150 +2944,153 @@ class Schema::_Internal { const ::schema_proto::ArrowSchema& Schema::_Internal::arrow_schema(const Schema* msg) { - return *msg->_impl_.arrow_schema_; + return *msg->arrow_schema_; } const ::schema_proto::SchemaOptions& Schema::_Internal::schema_options(const Schema* msg) { - return *msg->_impl_.schema_options_; + return *msg->schema_options_; } -Schema::Schema(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); +Schema::Schema(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : ::PROTOBUF_NAMESPACE_ID::Message(arena) { + SharedCtor(); + RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:schema_proto.Schema) } Schema::Schema(const Schema& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - Schema* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.arrow_schema_){nullptr} - , decltype(_impl_.schema_options_){nullptr} - , /*decltype(_impl_._cached_size_)*/{}}; - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_arrow_schema()) { - _this->_impl_.arrow_schema_ = new ::schema_proto::ArrowSchema(*from._impl_.arrow_schema_); + arrow_schema_ = new ::schema_proto::ArrowSchema(*from.arrow_schema_); + } else { + arrow_schema_ = nullptr; } if (from._internal_has_schema_options()) { - _this->_impl_.schema_options_ = new ::schema_proto::SchemaOptions(*from._impl_.schema_options_); + schema_options_ = new ::schema_proto::SchemaOptions(*from.schema_options_); + } else { + schema_options_ = nullptr; } // @@protoc_insertion_point(copy_constructor:schema_proto.Schema) } -inline void Schema::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.arrow_schema_){nullptr} - , decltype(_impl_.schema_options_){nullptr} - , /*decltype(_impl_._cached_size_)*/{} - }; +void Schema::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Schema_schema_5farrow_2eproto.base); + ::memset(&arrow_schema_, 0, static_cast( + reinterpret_cast(&schema_options_) - + reinterpret_cast(&arrow_schema_)) + sizeof(schema_options_)); } Schema::~Schema() { // @@protoc_insertion_point(destructor:schema_proto.Schema) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -inline void Schema::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.arrow_schema_; - if (this != internal_default_instance()) delete _impl_.schema_options_; +void Schema::SharedDtor() { + GOOGLE_DCHECK(GetArena() == nullptr); + if (this != internal_default_instance()) delete arrow_schema_; + if (this != internal_default_instance()) delete schema_options_; } +void Schema::ArenaDtor(void* object) { + Schema* _this = reinterpret_cast< Schema* >(object); + (void)_this; +} +void Schema::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} void Schema::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); + _cached_size_.Set(size); } +const Schema& Schema::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Schema_schema_5farrow_2eproto.base); + return *internal_default_instance(); +} + void Schema::Clear() { // @@protoc_insertion_point(message_clear_start:schema_proto.Schema) - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && _impl_.arrow_schema_ != nullptr) { - delete _impl_.arrow_schema_; + if (GetArena() == nullptr && arrow_schema_ != nullptr) { + delete arrow_schema_; } - _impl_.arrow_schema_ = nullptr; - if (GetArenaForAllocation() == nullptr && _impl_.schema_options_ != nullptr) { - delete _impl_.schema_options_; + arrow_schema_ = nullptr; + if (GetArena() == nullptr && schema_options_ != nullptr) { + delete schema_options_; } - _impl_.schema_options_ = nullptr; + schema_options_ = nullptr; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* Schema::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* Schema::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); switch (tag >> 3) { // .schema_proto.ArrowSchema arrow_schema = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_arrow_schema(), ptr); CHK_(ptr); - } else - goto handle_unusual; + } else goto handle_unusual; continue; // .schema_proto.SchemaOptions schema_options = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_schema_options(), ptr); CHK_(ptr); - } else - goto handle_unusual; + } else goto handle_unusual; continue; - default: - goto handle_unusual; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + continue; + } } // switch - handle_unusual: - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); } // while -message_done: +success: return ptr; failure: ptr = nullptr; - goto message_done; + goto success; #undef CHK_ } -uint8_t* Schema::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +::PROTOBUF_NAMESPACE_ID::uint8* Schema::_InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:schema_proto.Schema) - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // .schema_proto.ArrowSchema arrow_schema = 1; - if (this->_internal_has_arrow_schema()) { + if (this->has_arrow_schema()) { + target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::arrow_schema(this), - _Internal::arrow_schema(this).GetCachedSize(), target, stream); + InternalWriteMessage( + 1, _Internal::arrow_schema(this), target, stream); } // .schema_proto.SchemaOptions schema_options = 2; - if (this->_internal_has_schema_options()) { + if (this->has_schema_options()) { + target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(2, _Internal::schema_options(this), - _Internal::schema_options(this).GetCachedSize(), target, stream); + InternalWriteMessage( + 2, _Internal::schema_options(this), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:schema_proto.Schema) @@ -2948,51 +3101,68 @@ size_t Schema::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:schema_proto.Schema) size_t total_size = 0; - uint32_t cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .schema_proto.ArrowSchema arrow_schema = 1; - if (this->_internal_has_arrow_schema()) { + if (this->has_arrow_schema()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.arrow_schema_); + *arrow_schema_); } // .schema_proto.SchemaOptions schema_options = 2; - if (this->_internal_has_schema_options()) { + if (this->has_schema_options()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.schema_options_); + *schema_options_); } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( + _internal_metadata_, total_size, &_cached_size_); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Schema::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - Schema::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Schema::GetClassData() const { return &_class_data_; } - +void Schema::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:schema_proto.Schema) + GOOGLE_DCHECK_NE(&from, this); + const Schema* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:schema_proto.Schema) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:schema_proto.Schema) + MergeFrom(*source); + } +} -void Schema::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:schema_proto.Schema) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; +void Schema::MergeFrom(const Schema& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:schema_proto.Schema) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_arrow_schema()) { - _this->_internal_mutable_arrow_schema()->::schema_proto::ArrowSchema::MergeFrom( - from._internal_arrow_schema()); + if (from.has_arrow_schema()) { + _internal_mutable_arrow_schema()->::schema_proto::ArrowSchema::MergeFrom(from._internal_arrow_schema()); } - if (from._internal_has_schema_options()) { - _this->_internal_mutable_schema_options()->::schema_proto::SchemaOptions::MergeFrom( - from._internal_schema_options()); + if (from.has_schema_options()) { + _internal_mutable_schema_options()->::schema_proto::SchemaOptions::MergeFrom(from._internal_schema_options()); } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Schema::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:schema_proto.Schema) + if (&from == this) return; + Clear(); + MergeFrom(from); } void Schema::CopyFrom(const Schema& from) { @@ -3008,62 +3178,51 @@ bool Schema::IsInitialized() const { void Schema::InternalSwap(Schema* other) { using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(Schema, _impl_.schema_options_) - + sizeof(Schema::_impl_.schema_options_) - - PROTOBUF_FIELD_OFFSET(Schema, _impl_.arrow_schema_)>( - reinterpret_cast(&_impl_.arrow_schema_), - reinterpret_cast(&other->_impl_.arrow_schema_)); + PROTOBUF_FIELD_OFFSET(Schema, schema_options_) + + sizeof(Schema::schema_options_) + - PROTOBUF_FIELD_OFFSET(Schema, arrow_schema_)>( + reinterpret_cast(&arrow_schema_), + reinterpret_cast(&other->arrow_schema_)); } ::PROTOBUF_NAMESPACE_ID::Metadata Schema::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_schema_5farrow_2eproto_getter, &descriptor_table_schema_5farrow_2eproto_once, - file_level_metadata_schema_5farrow_2eproto[9]); + return GetMetadataStatic(); } + // @@protoc_insertion_point(namespace_scope) } // namespace schema_proto PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::schema_proto::FixedSizeBinaryType* -Arena::CreateMaybeMessage< ::schema_proto::FixedSizeBinaryType >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::schema_proto::FixedSizeBinaryType* Arena::CreateMaybeMessage< ::schema_proto::FixedSizeBinaryType >(Arena* arena) { return Arena::CreateMessageInternal< ::schema_proto::FixedSizeBinaryType >(arena); } -template<> PROTOBUF_NOINLINE ::schema_proto::FixedSizeListType* -Arena::CreateMaybeMessage< ::schema_proto::FixedSizeListType >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::schema_proto::FixedSizeListType* Arena::CreateMaybeMessage< ::schema_proto::FixedSizeListType >(Arena* arena) { return Arena::CreateMessageInternal< ::schema_proto::FixedSizeListType >(arena); } -template<> PROTOBUF_NOINLINE ::schema_proto::DictionaryType* -Arena::CreateMaybeMessage< ::schema_proto::DictionaryType >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::schema_proto::DictionaryType* Arena::CreateMaybeMessage< ::schema_proto::DictionaryType >(Arena* arena) { return Arena::CreateMessageInternal< ::schema_proto::DictionaryType >(arena); } -template<> PROTOBUF_NOINLINE ::schema_proto::MapType* -Arena::CreateMaybeMessage< ::schema_proto::MapType >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::schema_proto::MapType* Arena::CreateMaybeMessage< ::schema_proto::MapType >(Arena* arena) { return Arena::CreateMessageInternal< ::schema_proto::MapType >(arena); } -template<> PROTOBUF_NOINLINE ::schema_proto::DataType* -Arena::CreateMaybeMessage< ::schema_proto::DataType >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::schema_proto::DataType* Arena::CreateMaybeMessage< ::schema_proto::DataType >(Arena* arena) { return Arena::CreateMessageInternal< ::schema_proto::DataType >(arena); } -template<> PROTOBUF_NOINLINE ::schema_proto::KeyValueMetadata* -Arena::CreateMaybeMessage< ::schema_proto::KeyValueMetadata >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::schema_proto::KeyValueMetadata* Arena::CreateMaybeMessage< ::schema_proto::KeyValueMetadata >(Arena* arena) { return Arena::CreateMessageInternal< ::schema_proto::KeyValueMetadata >(arena); } -template<> PROTOBUF_NOINLINE ::schema_proto::Field* -Arena::CreateMaybeMessage< ::schema_proto::Field >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::schema_proto::Field* Arena::CreateMaybeMessage< ::schema_proto::Field >(Arena* arena) { return Arena::CreateMessageInternal< ::schema_proto::Field >(arena); } -template<> PROTOBUF_NOINLINE ::schema_proto::SchemaOptions* -Arena::CreateMaybeMessage< ::schema_proto::SchemaOptions >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::schema_proto::SchemaOptions* Arena::CreateMaybeMessage< ::schema_proto::SchemaOptions >(Arena* arena) { return Arena::CreateMessageInternal< ::schema_proto::SchemaOptions >(arena); } -template<> PROTOBUF_NOINLINE ::schema_proto::ArrowSchema* -Arena::CreateMaybeMessage< ::schema_proto::ArrowSchema >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::schema_proto::ArrowSchema* Arena::CreateMaybeMessage< ::schema_proto::ArrowSchema >(Arena* arena) { return Arena::CreateMessageInternal< ::schema_proto::ArrowSchema >(arena); } -template<> PROTOBUF_NOINLINE ::schema_proto::Schema* -Arena::CreateMaybeMessage< ::schema_proto::Schema >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::schema_proto::Schema* Arena::CreateMaybeMessage< ::schema_proto::Schema >(Arena* arena) { return Arena::CreateMessageInternal< ::schema_proto::Schema >(arena); } PROTOBUF_NAMESPACE_CLOSE diff --git a/cpp/src/proto/schema_arrow.pb.h b/cpp/src/proto/schema_arrow.pb.h index 8357546..83d5371 100644 --- a/cpp/src/proto/schema_arrow.pb.h +++ b/cpp/src/proto/schema_arrow.pb.h @@ -8,12 +8,12 @@ #include #include -#if PROTOBUF_VERSION < 3021000 +#if PROTOBUF_VERSION < 3012000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3021004 < PROTOBUF_MIN_PROTOC_VERSION +#if 3012004 < PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. @@ -23,7 +23,9 @@ #include #include #include +#include #include +#include #include #include #include @@ -42,39 +44,47 @@ PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_schema_5farrow_2eproto { - static const uint32_t offsets[]; + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[10] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; + static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; + static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; }; extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_schema_5farrow_2eproto; namespace schema_proto { class ArrowSchema; -struct ArrowSchemaDefaultTypeInternal; +class ArrowSchemaDefaultTypeInternal; extern ArrowSchemaDefaultTypeInternal _ArrowSchema_default_instance_; class DataType; -struct DataTypeDefaultTypeInternal; +class DataTypeDefaultTypeInternal; extern DataTypeDefaultTypeInternal _DataType_default_instance_; class DictionaryType; -struct DictionaryTypeDefaultTypeInternal; +class DictionaryTypeDefaultTypeInternal; extern DictionaryTypeDefaultTypeInternal _DictionaryType_default_instance_; class Field; -struct FieldDefaultTypeInternal; +class FieldDefaultTypeInternal; extern FieldDefaultTypeInternal _Field_default_instance_; class FixedSizeBinaryType; -struct FixedSizeBinaryTypeDefaultTypeInternal; +class FixedSizeBinaryTypeDefaultTypeInternal; extern FixedSizeBinaryTypeDefaultTypeInternal _FixedSizeBinaryType_default_instance_; class FixedSizeListType; -struct FixedSizeListTypeDefaultTypeInternal; +class FixedSizeListTypeDefaultTypeInternal; extern FixedSizeListTypeDefaultTypeInternal _FixedSizeListType_default_instance_; class KeyValueMetadata; -struct KeyValueMetadataDefaultTypeInternal; +class KeyValueMetadataDefaultTypeInternal; extern KeyValueMetadataDefaultTypeInternal _KeyValueMetadata_default_instance_; class MapType; -struct MapTypeDefaultTypeInternal; +class MapTypeDefaultTypeInternal; extern MapTypeDefaultTypeInternal _MapType_default_instance_; class Schema; -struct SchemaDefaultTypeInternal; +class SchemaDefaultTypeInternal; extern SchemaDefaultTypeInternal _Schema_default_instance_; class SchemaOptions; -struct SchemaOptionsDefaultTypeInternal; +class SchemaOptionsDefaultTypeInternal; extern SchemaOptionsDefaultTypeInternal _SchemaOptions_default_instance_; } // namespace schema_proto PROTOBUF_NAMESPACE_OPEN @@ -114,8 +124,8 @@ enum LogicType : int { MAP = 30, FIXED_SIZE_LIST = 32, MAX_ID = 39, - LogicType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - LogicType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() + LogicType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), + LogicType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() }; bool LogicType_IsValid(int value); constexpr LogicType LogicType_MIN = NA; @@ -132,15 +142,15 @@ inline const std::string& LogicType_Name(T enum_t_value) { LogicType_descriptor(), enum_t_value); } inline bool LogicType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, LogicType* value) { + const std::string& name, LogicType* value) { return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( LogicType_descriptor(), name, value); } enum Endianness : int { Little = 0, Big = 1, - Endianness_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), - Endianness_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() + Endianness_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), + Endianness_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() }; bool Endianness_IsValid(int value); constexpr Endianness Endianness_MIN = Little; @@ -157,18 +167,17 @@ inline const std::string& Endianness_Name(T enum_t_value) { Endianness_descriptor(), enum_t_value); } inline bool Endianness_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Endianness* value) { + const std::string& name, Endianness* value) { return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( Endianness_descriptor(), name, value); } // =================================================================== -class FixedSizeBinaryType final : +class FixedSizeBinaryType PROTOBUF_FINAL : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:schema_proto.FixedSizeBinaryType) */ { public: - inline FixedSizeBinaryType() : FixedSizeBinaryType(nullptr) {} - ~FixedSizeBinaryType() override; - explicit PROTOBUF_CONSTEXPR FixedSizeBinaryType(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline FixedSizeBinaryType() : FixedSizeBinaryType(nullptr) {}; + virtual ~FixedSizeBinaryType(); FixedSizeBinaryType(const FixedSizeBinaryType& from); FixedSizeBinaryType(FixedSizeBinaryType&& from) noexcept @@ -181,13 +190,8 @@ class FixedSizeBinaryType final : return *this; } inline FixedSizeBinaryType& operator=(FixedSizeBinaryType&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } @@ -198,14 +202,14 @@ class FixedSizeBinaryType final : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; + return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const FixedSizeBinaryType& default_instance() { - return *internal_default_instance(); + return GetMetadataStatic().reflection; } + static const FixedSizeBinaryType& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const FixedSizeBinaryType* internal_default_instance() { return reinterpret_cast( &_FixedSizeBinaryType_default_instance_); @@ -218,12 +222,7 @@ class FixedSizeBinaryType final : } inline void Swap(FixedSizeBinaryType* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -231,53 +230,56 @@ class FixedSizeBinaryType final : } void UnsafeArenaSwap(FixedSizeBinaryType* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - FixedSizeBinaryType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + inline FixedSizeBinaryType* New() const final { + return CreateMaybeMessage(nullptr); + } + + FixedSizeBinaryType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const FixedSizeBinaryType& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const FixedSizeBinaryType& from) { - FixedSizeBinaryType::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: + void MergeFrom(const FixedSizeBinaryType& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(FixedSizeBinaryType* other); - - private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "schema_proto.FixedSizeBinaryType"; } protected: - explicit FixedSizeBinaryType(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit FixedSizeBinaryType(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_schema_5farrow_2eproto); + return ::descriptor_table_schema_5farrow_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- @@ -288,11 +290,11 @@ class FixedSizeBinaryType final : }; // int32 byte_width = 1; void clear_byte_width(); - int32_t byte_width() const; - void set_byte_width(int32_t value); + ::PROTOBUF_NAMESPACE_ID::int32 byte_width() const; + void set_byte_width(::PROTOBUF_NAMESPACE_ID::int32 value); private: - int32_t _internal_byte_width() const; - void _internal_set_byte_width(int32_t value); + ::PROTOBUF_NAMESPACE_ID::int32 _internal_byte_width() const; + void _internal_set_byte_width(::PROTOBUF_NAMESPACE_ID::int32 value); public: // @@protoc_insertion_point(class_scope:schema_proto.FixedSizeBinaryType) @@ -302,21 +304,17 @@ class FixedSizeBinaryType final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { - int32_t byte_width_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; + ::PROTOBUF_NAMESPACE_ID::int32 byte_width_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_schema_5farrow_2eproto; }; // ------------------------------------------------------------------- -class FixedSizeListType final : +class FixedSizeListType PROTOBUF_FINAL : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:schema_proto.FixedSizeListType) */ { public: - inline FixedSizeListType() : FixedSizeListType(nullptr) {} - ~FixedSizeListType() override; - explicit PROTOBUF_CONSTEXPR FixedSizeListType(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline FixedSizeListType() : FixedSizeListType(nullptr) {}; + virtual ~FixedSizeListType(); FixedSizeListType(const FixedSizeListType& from); FixedSizeListType(FixedSizeListType&& from) noexcept @@ -329,13 +327,8 @@ class FixedSizeListType final : return *this; } inline FixedSizeListType& operator=(FixedSizeListType&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } @@ -346,14 +339,14 @@ class FixedSizeListType final : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; + return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const FixedSizeListType& default_instance() { - return *internal_default_instance(); + return GetMetadataStatic().reflection; } + static const FixedSizeListType& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const FixedSizeListType* internal_default_instance() { return reinterpret_cast( &_FixedSizeListType_default_instance_); @@ -366,12 +359,7 @@ class FixedSizeListType final : } inline void Swap(FixedSizeListType* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -379,53 +367,56 @@ class FixedSizeListType final : } void UnsafeArenaSwap(FixedSizeListType* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - FixedSizeListType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + inline FixedSizeListType* New() const final { + return CreateMaybeMessage(nullptr); + } + + FixedSizeListType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const FixedSizeListType& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const FixedSizeListType& from) { - FixedSizeListType::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: + void MergeFrom(const FixedSizeListType& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(FixedSizeListType* other); - - private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "schema_proto.FixedSizeListType"; } protected: - explicit FixedSizeListType(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit FixedSizeListType(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_schema_5farrow_2eproto); + return ::descriptor_table_schema_5farrow_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- @@ -436,11 +427,11 @@ class FixedSizeListType final : }; // int32 list_size = 1; void clear_list_size(); - int32_t list_size() const; - void set_list_size(int32_t value); + ::PROTOBUF_NAMESPACE_ID::int32 list_size() const; + void set_list_size(::PROTOBUF_NAMESPACE_ID::int32 value); private: - int32_t _internal_list_size() const; - void _internal_set_list_size(int32_t value); + ::PROTOBUF_NAMESPACE_ID::int32 _internal_list_size() const; + void _internal_set_list_size(::PROTOBUF_NAMESPACE_ID::int32 value); public: // @@protoc_insertion_point(class_scope:schema_proto.FixedSizeListType) @@ -450,21 +441,17 @@ class FixedSizeListType final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { - int32_t list_size_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; + ::PROTOBUF_NAMESPACE_ID::int32 list_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_schema_5farrow_2eproto; }; // ------------------------------------------------------------------- -class DictionaryType final : +class DictionaryType PROTOBUF_FINAL : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:schema_proto.DictionaryType) */ { public: - inline DictionaryType() : DictionaryType(nullptr) {} - ~DictionaryType() override; - explicit PROTOBUF_CONSTEXPR DictionaryType(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline DictionaryType() : DictionaryType(nullptr) {}; + virtual ~DictionaryType(); DictionaryType(const DictionaryType& from); DictionaryType(DictionaryType&& from) noexcept @@ -477,13 +464,8 @@ class DictionaryType final : return *this; } inline DictionaryType& operator=(DictionaryType&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } @@ -494,14 +476,14 @@ class DictionaryType final : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; + return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const DictionaryType& default_instance() { - return *internal_default_instance(); + return GetMetadataStatic().reflection; } + static const DictionaryType& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const DictionaryType* internal_default_instance() { return reinterpret_cast( &_DictionaryType_default_instance_); @@ -514,12 +496,7 @@ class DictionaryType final : } inline void Swap(DictionaryType* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -527,53 +504,56 @@ class DictionaryType final : } void UnsafeArenaSwap(DictionaryType* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DictionaryType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + inline DictionaryType* New() const final { + return CreateMaybeMessage(nullptr); + } + + DictionaryType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const DictionaryType& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const DictionaryType& from) { - DictionaryType::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: + void MergeFrom(const DictionaryType& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(DictionaryType* other); - - private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "schema_proto.DictionaryType"; } protected: - explicit DictionaryType(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit DictionaryType(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_schema_5farrow_2eproto); + return ::descriptor_table_schema_5farrow_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- @@ -591,7 +571,7 @@ class DictionaryType final : public: void clear_index_type(); const ::schema_proto::DataType& index_type() const; - PROTOBUF_NODISCARD ::schema_proto::DataType* release_index_type(); + ::schema_proto::DataType* release_index_type(); ::schema_proto::DataType* mutable_index_type(); void set_allocated_index_type(::schema_proto::DataType* index_type); private: @@ -609,7 +589,7 @@ class DictionaryType final : public: void clear_value_type(); const ::schema_proto::DataType& value_type() const; - PROTOBUF_NODISCARD ::schema_proto::DataType* release_value_type(); + ::schema_proto::DataType* release_value_type(); ::schema_proto::DataType* mutable_value_type(); void set_allocated_value_type(::schema_proto::DataType* value_type); private: @@ -636,23 +616,19 @@ class DictionaryType final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { - ::schema_proto::DataType* index_type_; - ::schema_proto::DataType* value_type_; - bool ordered_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; + ::schema_proto::DataType* index_type_; + ::schema_proto::DataType* value_type_; + bool ordered_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_schema_5farrow_2eproto; }; // ------------------------------------------------------------------- -class MapType final : +class MapType PROTOBUF_FINAL : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:schema_proto.MapType) */ { public: - inline MapType() : MapType(nullptr) {} - ~MapType() override; - explicit PROTOBUF_CONSTEXPR MapType(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline MapType() : MapType(nullptr) {}; + virtual ~MapType(); MapType(const MapType& from); MapType(MapType&& from) noexcept @@ -665,13 +641,8 @@ class MapType final : return *this; } inline MapType& operator=(MapType&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } @@ -682,14 +653,14 @@ class MapType final : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; + return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const MapType& default_instance() { - return *internal_default_instance(); + return GetMetadataStatic().reflection; } + static const MapType& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const MapType* internal_default_instance() { return reinterpret_cast( &_MapType_default_instance_); @@ -702,12 +673,7 @@ class MapType final : } inline void Swap(MapType* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -715,53 +681,56 @@ class MapType final : } void UnsafeArenaSwap(MapType* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - MapType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + inline MapType* New() const final { + return CreateMaybeMessage(nullptr); + } + + MapType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const MapType& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const MapType& from) { - MapType::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: + void MergeFrom(const MapType& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MapType* other); - - private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "schema_proto.MapType"; } protected: - explicit MapType(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit MapType(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_schema_5farrow_2eproto); + return ::descriptor_table_schema_5farrow_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- @@ -786,21 +755,17 @@ class MapType final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { - bool keys_sorted_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; + bool keys_sorted_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_schema_5farrow_2eproto; }; // ------------------------------------------------------------------- -class DataType final : +class DataType PROTOBUF_FINAL : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:schema_proto.DataType) */ { public: - inline DataType() : DataType(nullptr) {} - ~DataType() override; - explicit PROTOBUF_CONSTEXPR DataType(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline DataType() : DataType(nullptr) {}; + virtual ~DataType(); DataType(const DataType& from); DataType(DataType&& from) noexcept @@ -813,13 +778,8 @@ class DataType final : return *this; } inline DataType& operator=(DataType&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } @@ -830,14 +790,13 @@ class DataType final : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; + return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const DataType& default_instance() { - return *internal_default_instance(); + return GetMetadataStatic().reflection; } + static const DataType& default_instance(); + enum TypeRelatedValuesCase { kFixedSizeBinaryType = 1, kFixedSizeListType = 2, @@ -846,6 +805,7 @@ class DataType final : TYPE_RELATED_VALUES_NOT_SET = 0, }; + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const DataType* internal_default_instance() { return reinterpret_cast( &_DataType_default_instance_); @@ -858,12 +818,7 @@ class DataType final : } inline void Swap(DataType* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -871,53 +826,56 @@ class DataType final : } void UnsafeArenaSwap(DataType* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - DataType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + inline DataType* New() const final { + return CreateMaybeMessage(nullptr); + } + + DataType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const DataType& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const DataType& from) { - DataType::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: + void MergeFrom(const DataType& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(DataType* other); - - private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "schema_proto.DataType"; } protected: - explicit DataType(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit DataType(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_schema_5farrow_2eproto); + return ::descriptor_table_schema_5farrow_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- @@ -965,7 +923,7 @@ class DataType final : public: void clear_fixed_size_binary_type(); const ::schema_proto::FixedSizeBinaryType& fixed_size_binary_type() const; - PROTOBUF_NODISCARD ::schema_proto::FixedSizeBinaryType* release_fixed_size_binary_type(); + ::schema_proto::FixedSizeBinaryType* release_fixed_size_binary_type(); ::schema_proto::FixedSizeBinaryType* mutable_fixed_size_binary_type(); void set_allocated_fixed_size_binary_type(::schema_proto::FixedSizeBinaryType* fixed_size_binary_type); private: @@ -983,7 +941,7 @@ class DataType final : public: void clear_fixed_size_list_type(); const ::schema_proto::FixedSizeListType& fixed_size_list_type() const; - PROTOBUF_NODISCARD ::schema_proto::FixedSizeListType* release_fixed_size_list_type(); + ::schema_proto::FixedSizeListType* release_fixed_size_list_type(); ::schema_proto::FixedSizeListType* mutable_fixed_size_list_type(); void set_allocated_fixed_size_list_type(::schema_proto::FixedSizeListType* fixed_size_list_type); private: @@ -1001,7 +959,7 @@ class DataType final : public: void clear_dictionary_type(); const ::schema_proto::DictionaryType& dictionary_type() const; - PROTOBUF_NODISCARD ::schema_proto::DictionaryType* release_dictionary_type(); + ::schema_proto::DictionaryType* release_dictionary_type(); ::schema_proto::DictionaryType* mutable_dictionary_type(); void set_allocated_dictionary_type(::schema_proto::DictionaryType* dictionary_type); private: @@ -1019,7 +977,7 @@ class DataType final : public: void clear_map_type(); const ::schema_proto::MapType& map_type() const; - PROTOBUF_NODISCARD ::schema_proto::MapType* release_map_type(); + ::schema_proto::MapType* release_map_type(); ::schema_proto::MapType* mutable_map_type(); void set_allocated_map_type(::schema_proto::MapType* map_type); private: @@ -1046,32 +1004,27 @@ class DataType final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::schema_proto::Field > children_; - int logic_type_; - union TypeRelatedValuesUnion { - constexpr TypeRelatedValuesUnion() : _constinit_{} {} - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; - ::schema_proto::FixedSizeBinaryType* fixed_size_binary_type_; - ::schema_proto::FixedSizeListType* fixed_size_list_type_; - ::schema_proto::DictionaryType* dictionary_type_; - ::schema_proto::MapType* map_type_; - } type_related_values_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - uint32_t _oneof_case_[1]; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::schema_proto::Field > children_; + int logic_type_; + union TypeRelatedValuesUnion { + TypeRelatedValuesUnion() {} + ::schema_proto::FixedSizeBinaryType* fixed_size_binary_type_; + ::schema_proto::FixedSizeListType* fixed_size_list_type_; + ::schema_proto::DictionaryType* dictionary_type_; + ::schema_proto::MapType* map_type_; + } type_related_values_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; - }; - union { Impl_ _impl_; }; friend struct ::TableStruct_schema_5farrow_2eproto; }; // ------------------------------------------------------------------- -class KeyValueMetadata final : +class KeyValueMetadata PROTOBUF_FINAL : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:schema_proto.KeyValueMetadata) */ { public: - inline KeyValueMetadata() : KeyValueMetadata(nullptr) {} - ~KeyValueMetadata() override; - explicit PROTOBUF_CONSTEXPR KeyValueMetadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline KeyValueMetadata() : KeyValueMetadata(nullptr) {}; + virtual ~KeyValueMetadata(); KeyValueMetadata(const KeyValueMetadata& from); KeyValueMetadata(KeyValueMetadata&& from) noexcept @@ -1084,13 +1037,8 @@ class KeyValueMetadata final : return *this; } inline KeyValueMetadata& operator=(KeyValueMetadata&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } @@ -1101,14 +1049,14 @@ class KeyValueMetadata final : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; + return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const KeyValueMetadata& default_instance() { - return *internal_default_instance(); + return GetMetadataStatic().reflection; } + static const KeyValueMetadata& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const KeyValueMetadata* internal_default_instance() { return reinterpret_cast( &_KeyValueMetadata_default_instance_); @@ -1121,12 +1069,7 @@ class KeyValueMetadata final : } inline void Swap(KeyValueMetadata* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -1134,53 +1077,56 @@ class KeyValueMetadata final : } void UnsafeArenaSwap(KeyValueMetadata* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - KeyValueMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + inline KeyValueMetadata* New() const final { + return CreateMaybeMessage(nullptr); + } + + KeyValueMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const KeyValueMetadata& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const KeyValueMetadata& from) { - KeyValueMetadata::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: + void MergeFrom(const KeyValueMetadata& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(KeyValueMetadata* other); - - private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "schema_proto.KeyValueMetadata"; } protected: - explicit KeyValueMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit KeyValueMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_schema_5farrow_2eproto); + return ::descriptor_table_schema_5farrow_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- @@ -1245,22 +1191,18 @@ class KeyValueMetadata final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField keys_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField values_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField keys_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField values_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_schema_5farrow_2eproto; }; // ------------------------------------------------------------------- -class Field final : +class Field PROTOBUF_FINAL : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:schema_proto.Field) */ { public: - inline Field() : Field(nullptr) {} - ~Field() override; - explicit PROTOBUF_CONSTEXPR Field(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline Field() : Field(nullptr) {}; + virtual ~Field(); Field(const Field& from); Field(Field&& from) noexcept @@ -1273,13 +1215,8 @@ class Field final : return *this; } inline Field& operator=(Field&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } @@ -1290,14 +1227,14 @@ class Field final : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; + return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Field& default_instance() { - return *internal_default_instance(); + return GetMetadataStatic().reflection; } + static const Field& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const Field* internal_default_instance() { return reinterpret_cast( &_Field_default_instance_); @@ -1310,12 +1247,7 @@ class Field final : } inline void Swap(Field* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -1323,53 +1255,56 @@ class Field final : } void UnsafeArenaSwap(Field* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Field* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + inline Field* New() const final { + return CreateMaybeMessage(nullptr); + } + + Field* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const Field& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const Field& from) { - Field::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: + void MergeFrom(const Field& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Field* other); - - private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "schema_proto.Field"; } protected: - explicit Field(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit Field(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_schema_5farrow_2eproto); + return ::descriptor_table_schema_5farrow_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- @@ -1384,14 +1319,25 @@ class Field final : // string name = 1; void clear_name(); const std::string& name() const; - template - void set_name(ArgT0&& arg0, ArgT... args); + void set_name(const std::string& value); + void set_name(std::string&& value); + void set_name(const char* value); + void set_name(const char* value, size_t size); std::string* mutable_name(); - PROTOBUF_NODISCARD std::string* release_name(); + std::string* release_name(); void set_allocated_name(std::string* name); + GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + std::string* unsafe_arena_release_name(); + GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + void unsafe_arena_set_allocated_name( + std::string* name); private: const std::string& _internal_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); public: @@ -1402,7 +1348,7 @@ class Field final : public: void clear_data_type(); const ::schema_proto::DataType& data_type() const; - PROTOBUF_NODISCARD ::schema_proto::DataType* release_data_type(); + ::schema_proto::DataType* release_data_type(); ::schema_proto::DataType* mutable_data_type(); void set_allocated_data_type(::schema_proto::DataType* data_type); private: @@ -1420,7 +1366,7 @@ class Field final : public: void clear_metadata(); const ::schema_proto::KeyValueMetadata& metadata() const; - PROTOBUF_NODISCARD ::schema_proto::KeyValueMetadata* release_metadata(); + ::schema_proto::KeyValueMetadata* release_metadata(); ::schema_proto::KeyValueMetadata* mutable_metadata(); void set_allocated_metadata(::schema_proto::KeyValueMetadata* metadata); private: @@ -1447,24 +1393,20 @@ class Field final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::schema_proto::DataType* data_type_; - ::schema_proto::KeyValueMetadata* metadata_; - bool nullable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::schema_proto::DataType* data_type_; + ::schema_proto::KeyValueMetadata* metadata_; + bool nullable_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_schema_5farrow_2eproto; }; // ------------------------------------------------------------------- -class SchemaOptions final : +class SchemaOptions PROTOBUF_FINAL : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:schema_proto.SchemaOptions) */ { public: - inline SchemaOptions() : SchemaOptions(nullptr) {} - ~SchemaOptions() override; - explicit PROTOBUF_CONSTEXPR SchemaOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline SchemaOptions() : SchemaOptions(nullptr) {}; + virtual ~SchemaOptions(); SchemaOptions(const SchemaOptions& from); SchemaOptions(SchemaOptions&& from) noexcept @@ -1477,13 +1419,8 @@ class SchemaOptions final : return *this; } inline SchemaOptions& operator=(SchemaOptions&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } @@ -1494,14 +1431,14 @@ class SchemaOptions final : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; + return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const SchemaOptions& default_instance() { - return *internal_default_instance(); + return GetMetadataStatic().reflection; } + static const SchemaOptions& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const SchemaOptions* internal_default_instance() { return reinterpret_cast( &_SchemaOptions_default_instance_); @@ -1514,12 +1451,7 @@ class SchemaOptions final : } inline void Swap(SchemaOptions* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -1527,53 +1459,56 @@ class SchemaOptions final : } void UnsafeArenaSwap(SchemaOptions* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - SchemaOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + inline SchemaOptions* New() const final { + return CreateMaybeMessage(nullptr); + } + + SchemaOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const SchemaOptions& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const SchemaOptions& from) { - SchemaOptions::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: + void MergeFrom(const SchemaOptions& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(SchemaOptions* other); - - private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "schema_proto.SchemaOptions"; } protected: - explicit SchemaOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit SchemaOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_schema_5farrow_2eproto); + return ::descriptor_table_schema_5farrow_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- @@ -1587,42 +1522,75 @@ class SchemaOptions final : // string primary_column = 1; void clear_primary_column(); const std::string& primary_column() const; - template - void set_primary_column(ArgT0&& arg0, ArgT... args); + void set_primary_column(const std::string& value); + void set_primary_column(std::string&& value); + void set_primary_column(const char* value); + void set_primary_column(const char* value, size_t size); std::string* mutable_primary_column(); - PROTOBUF_NODISCARD std::string* release_primary_column(); + std::string* release_primary_column(); void set_allocated_primary_column(std::string* primary_column); + GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + std::string* unsafe_arena_release_primary_column(); + GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + void unsafe_arena_set_allocated_primary_column( + std::string* primary_column); private: const std::string& _internal_primary_column() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_primary_column(const std::string& value); + void _internal_set_primary_column(const std::string& value); std::string* _internal_mutable_primary_column(); public: // string version_column = 2; void clear_version_column(); const std::string& version_column() const; - template - void set_version_column(ArgT0&& arg0, ArgT... args); + void set_version_column(const std::string& value); + void set_version_column(std::string&& value); + void set_version_column(const char* value); + void set_version_column(const char* value, size_t size); std::string* mutable_version_column(); - PROTOBUF_NODISCARD std::string* release_version_column(); + std::string* release_version_column(); void set_allocated_version_column(std::string* version_column); + GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + std::string* unsafe_arena_release_version_column(); + GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + void unsafe_arena_set_allocated_version_column( + std::string* version_column); private: const std::string& _internal_version_column() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_version_column(const std::string& value); + void _internal_set_version_column(const std::string& value); std::string* _internal_mutable_version_column(); public: // string vector_column = 3; void clear_vector_column(); const std::string& vector_column() const; - template - void set_vector_column(ArgT0&& arg0, ArgT... args); + void set_vector_column(const std::string& value); + void set_vector_column(std::string&& value); + void set_vector_column(const char* value); + void set_vector_column(const char* value, size_t size); std::string* mutable_vector_column(); - PROTOBUF_NODISCARD std::string* release_vector_column(); + std::string* release_vector_column(); void set_allocated_vector_column(std::string* vector_column); + GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + std::string* unsafe_arena_release_vector_column(); + GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" + " string fields are deprecated and will be removed in a" + " future release.") + void unsafe_arena_set_allocated_vector_column( + std::string* vector_column); private: const std::string& _internal_vector_column() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_vector_column(const std::string& value); + void _internal_set_vector_column(const std::string& value); std::string* _internal_mutable_vector_column(); public: @@ -1633,23 +1601,19 @@ class SchemaOptions final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr primary_column_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr version_column_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr vector_column_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr primary_column_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr version_column_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr vector_column_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_schema_5farrow_2eproto; }; // ------------------------------------------------------------------- -class ArrowSchema final : +class ArrowSchema PROTOBUF_FINAL : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:schema_proto.ArrowSchema) */ { public: - inline ArrowSchema() : ArrowSchema(nullptr) {} - ~ArrowSchema() override; - explicit PROTOBUF_CONSTEXPR ArrowSchema(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline ArrowSchema() : ArrowSchema(nullptr) {}; + virtual ~ArrowSchema(); ArrowSchema(const ArrowSchema& from); ArrowSchema(ArrowSchema&& from) noexcept @@ -1662,13 +1626,8 @@ class ArrowSchema final : return *this; } inline ArrowSchema& operator=(ArrowSchema&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } @@ -1679,14 +1638,14 @@ class ArrowSchema final : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; + return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ArrowSchema& default_instance() { - return *internal_default_instance(); + return GetMetadataStatic().reflection; } + static const ArrowSchema& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const ArrowSchema* internal_default_instance() { return reinterpret_cast( &_ArrowSchema_default_instance_); @@ -1699,12 +1658,7 @@ class ArrowSchema final : } inline void Swap(ArrowSchema* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -1712,53 +1666,56 @@ class ArrowSchema final : } void UnsafeArenaSwap(ArrowSchema* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - ArrowSchema* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + inline ArrowSchema* New() const final { + return CreateMaybeMessage(nullptr); + } + + ArrowSchema* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const ArrowSchema& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ArrowSchema& from) { - ArrowSchema::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: + void MergeFrom(const ArrowSchema& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(ArrowSchema* other); - - private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "schema_proto.ArrowSchema"; } protected: - explicit ArrowSchema(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit ArrowSchema(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_schema_5farrow_2eproto); + return ::descriptor_table_schema_5farrow_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- @@ -1794,7 +1751,7 @@ class ArrowSchema final : public: void clear_metadata(); const ::schema_proto::KeyValueMetadata& metadata() const; - PROTOBUF_NODISCARD ::schema_proto::KeyValueMetadata* release_metadata(); + ::schema_proto::KeyValueMetadata* release_metadata(); ::schema_proto::KeyValueMetadata* mutable_metadata(); void set_allocated_metadata(::schema_proto::KeyValueMetadata* metadata); private: @@ -1821,23 +1778,19 @@ class ArrowSchema final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::schema_proto::Field > fields_; - ::schema_proto::KeyValueMetadata* metadata_; - int endianness_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::schema_proto::Field > fields_; + ::schema_proto::KeyValueMetadata* metadata_; + int endianness_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_schema_5farrow_2eproto; }; // ------------------------------------------------------------------- -class Schema final : +class Schema PROTOBUF_FINAL : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:schema_proto.Schema) */ { public: - inline Schema() : Schema(nullptr) {} - ~Schema() override; - explicit PROTOBUF_CONSTEXPR Schema(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline Schema() : Schema(nullptr) {}; + virtual ~Schema(); Schema(const Schema& from); Schema(Schema&& from) noexcept @@ -1850,13 +1803,8 @@ class Schema final : return *this; } inline Schema& operator=(Schema&& from) noexcept { - if (this == &from) return *this; - if (GetOwningArena() == from.GetOwningArena() - #ifdef PROTOBUF_FORCE_COPY_IN_MOVE - && GetOwningArena() != nullptr - #endif // !PROTOBUF_FORCE_COPY_IN_MOVE - ) { - InternalSwap(&from); + if (GetArena() == from.GetArena()) { + if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } @@ -1867,14 +1815,14 @@ class Schema final : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; + return GetMetadataStatic().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const Schema& default_instance() { - return *internal_default_instance(); + return GetMetadataStatic().reflection; } + static const Schema& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const Schema* internal_default_instance() { return reinterpret_cast( &_Schema_default_instance_); @@ -1887,12 +1835,7 @@ class Schema final : } inline void Swap(Schema* other) { if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + if (GetArena() == other->GetArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -1900,53 +1843,56 @@ class Schema final : } void UnsafeArenaSwap(Schema* other) { if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + GOOGLE_DCHECK(GetArena() == other->GetArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - Schema* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + inline Schema* New() const final { + return CreateMaybeMessage(nullptr); + } + + Schema* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const Schema& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const Schema& from) { - Schema::MergeImpl(*this, from); - } - private: - static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); - public: + void MergeFrom(const Schema& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( + ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } private: - void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Schema* other); - - private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "schema_proto.Schema"; } protected: - explicit Schema(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); + explicit Schema(::PROTOBUF_NAMESPACE_ID::Arena* arena); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); public: - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_schema_5farrow_2eproto); + return ::descriptor_table_schema_5farrow_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- @@ -1963,7 +1909,7 @@ class Schema final : public: void clear_arrow_schema(); const ::schema_proto::ArrowSchema& arrow_schema() const; - PROTOBUF_NODISCARD ::schema_proto::ArrowSchema* release_arrow_schema(); + ::schema_proto::ArrowSchema* release_arrow_schema(); ::schema_proto::ArrowSchema* mutable_arrow_schema(); void set_allocated_arrow_schema(::schema_proto::ArrowSchema* arrow_schema); private: @@ -1981,7 +1927,7 @@ class Schema final : public: void clear_schema_options(); const ::schema_proto::SchemaOptions& schema_options() const; - PROTOBUF_NODISCARD ::schema_proto::SchemaOptions* release_schema_options(); + ::schema_proto::SchemaOptions* release_schema_options(); ::schema_proto::SchemaOptions* mutable_schema_options(); void set_allocated_schema_options(::schema_proto::SchemaOptions* schema_options); private: @@ -1999,12 +1945,9 @@ class Schema final : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - struct Impl_ { - ::schema_proto::ArrowSchema* arrow_schema_; - ::schema_proto::SchemaOptions* schema_options_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; + ::schema_proto::ArrowSchema* arrow_schema_; + ::schema_proto::SchemaOptions* schema_options_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_schema_5farrow_2eproto; }; // =================================================================== @@ -2020,20 +1963,20 @@ class Schema final : // int32 byte_width = 1; inline void FixedSizeBinaryType::clear_byte_width() { - _impl_.byte_width_ = 0; + byte_width_ = 0; } -inline int32_t FixedSizeBinaryType::_internal_byte_width() const { - return _impl_.byte_width_; +inline ::PROTOBUF_NAMESPACE_ID::int32 FixedSizeBinaryType::_internal_byte_width() const { + return byte_width_; } -inline int32_t FixedSizeBinaryType::byte_width() const { +inline ::PROTOBUF_NAMESPACE_ID::int32 FixedSizeBinaryType::byte_width() const { // @@protoc_insertion_point(field_get:schema_proto.FixedSizeBinaryType.byte_width) return _internal_byte_width(); } -inline void FixedSizeBinaryType::_internal_set_byte_width(int32_t value) { +inline void FixedSizeBinaryType::_internal_set_byte_width(::PROTOBUF_NAMESPACE_ID::int32 value) { - _impl_.byte_width_ = value; + byte_width_ = value; } -inline void FixedSizeBinaryType::set_byte_width(int32_t value) { +inline void FixedSizeBinaryType::set_byte_width(::PROTOBUF_NAMESPACE_ID::int32 value) { _internal_set_byte_width(value); // @@protoc_insertion_point(field_set:schema_proto.FixedSizeBinaryType.byte_width) } @@ -2044,20 +1987,20 @@ inline void FixedSizeBinaryType::set_byte_width(int32_t value) { // int32 list_size = 1; inline void FixedSizeListType::clear_list_size() { - _impl_.list_size_ = 0; + list_size_ = 0; } -inline int32_t FixedSizeListType::_internal_list_size() const { - return _impl_.list_size_; +inline ::PROTOBUF_NAMESPACE_ID::int32 FixedSizeListType::_internal_list_size() const { + return list_size_; } -inline int32_t FixedSizeListType::list_size() const { +inline ::PROTOBUF_NAMESPACE_ID::int32 FixedSizeListType::list_size() const { // @@protoc_insertion_point(field_get:schema_proto.FixedSizeListType.list_size) return _internal_list_size(); } -inline void FixedSizeListType::_internal_set_list_size(int32_t value) { +inline void FixedSizeListType::_internal_set_list_size(::PROTOBUF_NAMESPACE_ID::int32 value) { - _impl_.list_size_ = value; + list_size_ = value; } -inline void FixedSizeListType::set_list_size(int32_t value) { +inline void FixedSizeListType::set_list_size(::PROTOBUF_NAMESPACE_ID::int32 value) { _internal_set_list_size(value); // @@protoc_insertion_point(field_set:schema_proto.FixedSizeListType.list_size) } @@ -2068,21 +2011,21 @@ inline void FixedSizeListType::set_list_size(int32_t value) { // .schema_proto.DataType index_type = 1; inline bool DictionaryType::_internal_has_index_type() const { - return this != internal_default_instance() && _impl_.index_type_ != nullptr; + return this != internal_default_instance() && index_type_ != nullptr; } inline bool DictionaryType::has_index_type() const { return _internal_has_index_type(); } inline void DictionaryType::clear_index_type() { - if (GetArenaForAllocation() == nullptr && _impl_.index_type_ != nullptr) { - delete _impl_.index_type_; + if (GetArena() == nullptr && index_type_ != nullptr) { + delete index_type_; } - _impl_.index_type_ = nullptr; + index_type_ = nullptr; } inline const ::schema_proto::DataType& DictionaryType::_internal_index_type() const { - const ::schema_proto::DataType* p = _impl_.index_type_; - return p != nullptr ? *p : reinterpret_cast( - ::schema_proto::_DataType_default_instance_); + const ::schema_proto::DataType* p = index_type_; + return p != nullptr ? *p : *reinterpret_cast( + &::schema_proto::_DataType_default_instance_); } inline const ::schema_proto::DataType& DictionaryType::index_type() const { // @@protoc_insertion_point(field_get:schema_proto.DictionaryType.index_type) @@ -2090,10 +2033,10 @@ inline const ::schema_proto::DataType& DictionaryType::index_type() const { } inline void DictionaryType::unsafe_arena_set_allocated_index_type( ::schema_proto::DataType* index_type) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.index_type_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(index_type_); } - _impl_.index_type_ = index_type; + index_type_ = index_type; if (index_type) { } else { @@ -2102,48 +2045,39 @@ inline void DictionaryType::unsafe_arena_set_allocated_index_type( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:schema_proto.DictionaryType.index_type) } inline ::schema_proto::DataType* DictionaryType::release_index_type() { - - ::schema_proto::DataType* temp = _impl_.index_type_; - _impl_.index_type_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { + auto temp = unsafe_arena_release_index_type(); + if (GetArena() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::schema_proto::DataType* DictionaryType::unsafe_arena_release_index_type() { // @@protoc_insertion_point(field_release:schema_proto.DictionaryType.index_type) - ::schema_proto::DataType* temp = _impl_.index_type_; - _impl_.index_type_ = nullptr; + ::schema_proto::DataType* temp = index_type_; + index_type_ = nullptr; return temp; } inline ::schema_proto::DataType* DictionaryType::_internal_mutable_index_type() { - if (_impl_.index_type_ == nullptr) { - auto* p = CreateMaybeMessage<::schema_proto::DataType>(GetArenaForAllocation()); - _impl_.index_type_ = p; + if (index_type_ == nullptr) { + auto* p = CreateMaybeMessage<::schema_proto::DataType>(GetArena()); + index_type_ = p; } - return _impl_.index_type_; + return index_type_; } inline ::schema_proto::DataType* DictionaryType::mutable_index_type() { - ::schema_proto::DataType* _msg = _internal_mutable_index_type(); // @@protoc_insertion_point(field_mutable:schema_proto.DictionaryType.index_type) - return _msg; + return _internal_mutable_index_type(); } inline void DictionaryType::set_allocated_index_type(::schema_proto::DataType* index_type) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); if (message_arena == nullptr) { - delete _impl_.index_type_; + delete index_type_; } if (index_type) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(index_type); + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(index_type); if (message_arena != submessage_arena) { index_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, index_type, submessage_arena); @@ -2152,27 +2086,27 @@ inline void DictionaryType::set_allocated_index_type(::schema_proto::DataType* i } else { } - _impl_.index_type_ = index_type; + index_type_ = index_type; // @@protoc_insertion_point(field_set_allocated:schema_proto.DictionaryType.index_type) } // .schema_proto.DataType value_type = 2; inline bool DictionaryType::_internal_has_value_type() const { - return this != internal_default_instance() && _impl_.value_type_ != nullptr; + return this != internal_default_instance() && value_type_ != nullptr; } inline bool DictionaryType::has_value_type() const { return _internal_has_value_type(); } inline void DictionaryType::clear_value_type() { - if (GetArenaForAllocation() == nullptr && _impl_.value_type_ != nullptr) { - delete _impl_.value_type_; + if (GetArena() == nullptr && value_type_ != nullptr) { + delete value_type_; } - _impl_.value_type_ = nullptr; + value_type_ = nullptr; } inline const ::schema_proto::DataType& DictionaryType::_internal_value_type() const { - const ::schema_proto::DataType* p = _impl_.value_type_; - return p != nullptr ? *p : reinterpret_cast( - ::schema_proto::_DataType_default_instance_); + const ::schema_proto::DataType* p = value_type_; + return p != nullptr ? *p : *reinterpret_cast( + &::schema_proto::_DataType_default_instance_); } inline const ::schema_proto::DataType& DictionaryType::value_type() const { // @@protoc_insertion_point(field_get:schema_proto.DictionaryType.value_type) @@ -2180,10 +2114,10 @@ inline const ::schema_proto::DataType& DictionaryType::value_type() const { } inline void DictionaryType::unsafe_arena_set_allocated_value_type( ::schema_proto::DataType* value_type) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.value_type_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(value_type_); } - _impl_.value_type_ = value_type; + value_type_ = value_type; if (value_type) { } else { @@ -2192,48 +2126,39 @@ inline void DictionaryType::unsafe_arena_set_allocated_value_type( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:schema_proto.DictionaryType.value_type) } inline ::schema_proto::DataType* DictionaryType::release_value_type() { - - ::schema_proto::DataType* temp = _impl_.value_type_; - _impl_.value_type_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { + auto temp = unsafe_arena_release_value_type(); + if (GetArena() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::schema_proto::DataType* DictionaryType::unsafe_arena_release_value_type() { // @@protoc_insertion_point(field_release:schema_proto.DictionaryType.value_type) - ::schema_proto::DataType* temp = _impl_.value_type_; - _impl_.value_type_ = nullptr; + ::schema_proto::DataType* temp = value_type_; + value_type_ = nullptr; return temp; } inline ::schema_proto::DataType* DictionaryType::_internal_mutable_value_type() { - if (_impl_.value_type_ == nullptr) { - auto* p = CreateMaybeMessage<::schema_proto::DataType>(GetArenaForAllocation()); - _impl_.value_type_ = p; + if (value_type_ == nullptr) { + auto* p = CreateMaybeMessage<::schema_proto::DataType>(GetArena()); + value_type_ = p; } - return _impl_.value_type_; + return value_type_; } inline ::schema_proto::DataType* DictionaryType::mutable_value_type() { - ::schema_proto::DataType* _msg = _internal_mutable_value_type(); // @@protoc_insertion_point(field_mutable:schema_proto.DictionaryType.value_type) - return _msg; + return _internal_mutable_value_type(); } inline void DictionaryType::set_allocated_value_type(::schema_proto::DataType* value_type) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); if (message_arena == nullptr) { - delete _impl_.value_type_; + delete value_type_; } if (value_type) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(value_type); + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(value_type); if (message_arena != submessage_arena) { value_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, value_type, submessage_arena); @@ -2242,16 +2167,16 @@ inline void DictionaryType::set_allocated_value_type(::schema_proto::DataType* v } else { } - _impl_.value_type_ = value_type; + value_type_ = value_type; // @@protoc_insertion_point(field_set_allocated:schema_proto.DictionaryType.value_type) } // bool ordered = 3; inline void DictionaryType::clear_ordered() { - _impl_.ordered_ = false; + ordered_ = false; } inline bool DictionaryType::_internal_ordered() const { - return _impl_.ordered_; + return ordered_; } inline bool DictionaryType::ordered() const { // @@protoc_insertion_point(field_get:schema_proto.DictionaryType.ordered) @@ -2259,7 +2184,7 @@ inline bool DictionaryType::ordered() const { } inline void DictionaryType::_internal_set_ordered(bool value) { - _impl_.ordered_ = value; + ordered_ = value; } inline void DictionaryType::set_ordered(bool value) { _internal_set_ordered(value); @@ -2272,10 +2197,10 @@ inline void DictionaryType::set_ordered(bool value) { // bool keys_sorted = 1; inline void MapType::clear_keys_sorted() { - _impl_.keys_sorted_ = false; + keys_sorted_ = false; } inline bool MapType::_internal_keys_sorted() const { - return _impl_.keys_sorted_; + return keys_sorted_; } inline bool MapType::keys_sorted() const { // @@protoc_insertion_point(field_get:schema_proto.MapType.keys_sorted) @@ -2283,7 +2208,7 @@ inline bool MapType::keys_sorted() const { } inline void MapType::_internal_set_keys_sorted(bool value) { - _impl_.keys_sorted_ = value; + keys_sorted_ = value; } inline void MapType::set_keys_sorted(bool value) { _internal_set_keys_sorted(value); @@ -2302,12 +2227,12 @@ inline bool DataType::has_fixed_size_binary_type() const { return _internal_has_fixed_size_binary_type(); } inline void DataType::set_has_fixed_size_binary_type() { - _impl_._oneof_case_[0] = kFixedSizeBinaryType; + _oneof_case_[0] = kFixedSizeBinaryType; } inline void DataType::clear_fixed_size_binary_type() { if (_internal_has_fixed_size_binary_type()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.type_related_values_.fixed_size_binary_type_; + if (GetArena() == nullptr) { + delete type_related_values_.fixed_size_binary_type_; } clear_has_type_related_values(); } @@ -2316,11 +2241,11 @@ inline ::schema_proto::FixedSizeBinaryType* DataType::release_fixed_size_binary_ // @@protoc_insertion_point(field_release:schema_proto.DataType.fixed_size_binary_type) if (_internal_has_fixed_size_binary_type()) { clear_has_type_related_values(); - ::schema_proto::FixedSizeBinaryType* temp = _impl_.type_related_values_.fixed_size_binary_type_; - if (GetArenaForAllocation() != nullptr) { + ::schema_proto::FixedSizeBinaryType* temp = type_related_values_.fixed_size_binary_type_; + if (GetArena() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.type_related_values_.fixed_size_binary_type_ = nullptr; + type_related_values_.fixed_size_binary_type_ = nullptr; return temp; } else { return nullptr; @@ -2328,8 +2253,8 @@ inline ::schema_proto::FixedSizeBinaryType* DataType::release_fixed_size_binary_ } inline const ::schema_proto::FixedSizeBinaryType& DataType::_internal_fixed_size_binary_type() const { return _internal_has_fixed_size_binary_type() - ? *_impl_.type_related_values_.fixed_size_binary_type_ - : reinterpret_cast< ::schema_proto::FixedSizeBinaryType&>(::schema_proto::_FixedSizeBinaryType_default_instance_); + ? *type_related_values_.fixed_size_binary_type_ + : *reinterpret_cast< ::schema_proto::FixedSizeBinaryType*>(&::schema_proto::_FixedSizeBinaryType_default_instance_); } inline const ::schema_proto::FixedSizeBinaryType& DataType::fixed_size_binary_type() const { // @@protoc_insertion_point(field_get:schema_proto.DataType.fixed_size_binary_type) @@ -2339,8 +2264,8 @@ inline ::schema_proto::FixedSizeBinaryType* DataType::unsafe_arena_release_fixed // @@protoc_insertion_point(field_unsafe_arena_release:schema_proto.DataType.fixed_size_binary_type) if (_internal_has_fixed_size_binary_type()) { clear_has_type_related_values(); - ::schema_proto::FixedSizeBinaryType* temp = _impl_.type_related_values_.fixed_size_binary_type_; - _impl_.type_related_values_.fixed_size_binary_type_ = nullptr; + ::schema_proto::FixedSizeBinaryType* temp = type_related_values_.fixed_size_binary_type_; + type_related_values_.fixed_size_binary_type_ = nullptr; return temp; } else { return nullptr; @@ -2350,7 +2275,7 @@ inline void DataType::unsafe_arena_set_allocated_fixed_size_binary_type(::schema clear_type_related_values(); if (fixed_size_binary_type) { set_has_fixed_size_binary_type(); - _impl_.type_related_values_.fixed_size_binary_type_ = fixed_size_binary_type; + type_related_values_.fixed_size_binary_type_ = fixed_size_binary_type; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:schema_proto.DataType.fixed_size_binary_type) } @@ -2358,14 +2283,13 @@ inline ::schema_proto::FixedSizeBinaryType* DataType::_internal_mutable_fixed_si if (!_internal_has_fixed_size_binary_type()) { clear_type_related_values(); set_has_fixed_size_binary_type(); - _impl_.type_related_values_.fixed_size_binary_type_ = CreateMaybeMessage< ::schema_proto::FixedSizeBinaryType >(GetArenaForAllocation()); + type_related_values_.fixed_size_binary_type_ = CreateMaybeMessage< ::schema_proto::FixedSizeBinaryType >(GetArena()); } - return _impl_.type_related_values_.fixed_size_binary_type_; + return type_related_values_.fixed_size_binary_type_; } inline ::schema_proto::FixedSizeBinaryType* DataType::mutable_fixed_size_binary_type() { - ::schema_proto::FixedSizeBinaryType* _msg = _internal_mutable_fixed_size_binary_type(); // @@protoc_insertion_point(field_mutable:schema_proto.DataType.fixed_size_binary_type) - return _msg; + return _internal_mutable_fixed_size_binary_type(); } // .schema_proto.FixedSizeListType fixed_size_list_type = 2; @@ -2376,12 +2300,12 @@ inline bool DataType::has_fixed_size_list_type() const { return _internal_has_fixed_size_list_type(); } inline void DataType::set_has_fixed_size_list_type() { - _impl_._oneof_case_[0] = kFixedSizeListType; + _oneof_case_[0] = kFixedSizeListType; } inline void DataType::clear_fixed_size_list_type() { if (_internal_has_fixed_size_list_type()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.type_related_values_.fixed_size_list_type_; + if (GetArena() == nullptr) { + delete type_related_values_.fixed_size_list_type_; } clear_has_type_related_values(); } @@ -2390,11 +2314,11 @@ inline ::schema_proto::FixedSizeListType* DataType::release_fixed_size_list_type // @@protoc_insertion_point(field_release:schema_proto.DataType.fixed_size_list_type) if (_internal_has_fixed_size_list_type()) { clear_has_type_related_values(); - ::schema_proto::FixedSizeListType* temp = _impl_.type_related_values_.fixed_size_list_type_; - if (GetArenaForAllocation() != nullptr) { + ::schema_proto::FixedSizeListType* temp = type_related_values_.fixed_size_list_type_; + if (GetArena() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.type_related_values_.fixed_size_list_type_ = nullptr; + type_related_values_.fixed_size_list_type_ = nullptr; return temp; } else { return nullptr; @@ -2402,8 +2326,8 @@ inline ::schema_proto::FixedSizeListType* DataType::release_fixed_size_list_type } inline const ::schema_proto::FixedSizeListType& DataType::_internal_fixed_size_list_type() const { return _internal_has_fixed_size_list_type() - ? *_impl_.type_related_values_.fixed_size_list_type_ - : reinterpret_cast< ::schema_proto::FixedSizeListType&>(::schema_proto::_FixedSizeListType_default_instance_); + ? *type_related_values_.fixed_size_list_type_ + : *reinterpret_cast< ::schema_proto::FixedSizeListType*>(&::schema_proto::_FixedSizeListType_default_instance_); } inline const ::schema_proto::FixedSizeListType& DataType::fixed_size_list_type() const { // @@protoc_insertion_point(field_get:schema_proto.DataType.fixed_size_list_type) @@ -2413,8 +2337,8 @@ inline ::schema_proto::FixedSizeListType* DataType::unsafe_arena_release_fixed_s // @@protoc_insertion_point(field_unsafe_arena_release:schema_proto.DataType.fixed_size_list_type) if (_internal_has_fixed_size_list_type()) { clear_has_type_related_values(); - ::schema_proto::FixedSizeListType* temp = _impl_.type_related_values_.fixed_size_list_type_; - _impl_.type_related_values_.fixed_size_list_type_ = nullptr; + ::schema_proto::FixedSizeListType* temp = type_related_values_.fixed_size_list_type_; + type_related_values_.fixed_size_list_type_ = nullptr; return temp; } else { return nullptr; @@ -2424,7 +2348,7 @@ inline void DataType::unsafe_arena_set_allocated_fixed_size_list_type(::schema_p clear_type_related_values(); if (fixed_size_list_type) { set_has_fixed_size_list_type(); - _impl_.type_related_values_.fixed_size_list_type_ = fixed_size_list_type; + type_related_values_.fixed_size_list_type_ = fixed_size_list_type; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:schema_proto.DataType.fixed_size_list_type) } @@ -2432,14 +2356,13 @@ inline ::schema_proto::FixedSizeListType* DataType::_internal_mutable_fixed_size if (!_internal_has_fixed_size_list_type()) { clear_type_related_values(); set_has_fixed_size_list_type(); - _impl_.type_related_values_.fixed_size_list_type_ = CreateMaybeMessage< ::schema_proto::FixedSizeListType >(GetArenaForAllocation()); + type_related_values_.fixed_size_list_type_ = CreateMaybeMessage< ::schema_proto::FixedSizeListType >(GetArena()); } - return _impl_.type_related_values_.fixed_size_list_type_; + return type_related_values_.fixed_size_list_type_; } inline ::schema_proto::FixedSizeListType* DataType::mutable_fixed_size_list_type() { - ::schema_proto::FixedSizeListType* _msg = _internal_mutable_fixed_size_list_type(); // @@protoc_insertion_point(field_mutable:schema_proto.DataType.fixed_size_list_type) - return _msg; + return _internal_mutable_fixed_size_list_type(); } // .schema_proto.DictionaryType dictionary_type = 3; @@ -2450,12 +2373,12 @@ inline bool DataType::has_dictionary_type() const { return _internal_has_dictionary_type(); } inline void DataType::set_has_dictionary_type() { - _impl_._oneof_case_[0] = kDictionaryType; + _oneof_case_[0] = kDictionaryType; } inline void DataType::clear_dictionary_type() { if (_internal_has_dictionary_type()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.type_related_values_.dictionary_type_; + if (GetArena() == nullptr) { + delete type_related_values_.dictionary_type_; } clear_has_type_related_values(); } @@ -2464,11 +2387,11 @@ inline ::schema_proto::DictionaryType* DataType::release_dictionary_type() { // @@protoc_insertion_point(field_release:schema_proto.DataType.dictionary_type) if (_internal_has_dictionary_type()) { clear_has_type_related_values(); - ::schema_proto::DictionaryType* temp = _impl_.type_related_values_.dictionary_type_; - if (GetArenaForAllocation() != nullptr) { + ::schema_proto::DictionaryType* temp = type_related_values_.dictionary_type_; + if (GetArena() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.type_related_values_.dictionary_type_ = nullptr; + type_related_values_.dictionary_type_ = nullptr; return temp; } else { return nullptr; @@ -2476,8 +2399,8 @@ inline ::schema_proto::DictionaryType* DataType::release_dictionary_type() { } inline const ::schema_proto::DictionaryType& DataType::_internal_dictionary_type() const { return _internal_has_dictionary_type() - ? *_impl_.type_related_values_.dictionary_type_ - : reinterpret_cast< ::schema_proto::DictionaryType&>(::schema_proto::_DictionaryType_default_instance_); + ? *type_related_values_.dictionary_type_ + : *reinterpret_cast< ::schema_proto::DictionaryType*>(&::schema_proto::_DictionaryType_default_instance_); } inline const ::schema_proto::DictionaryType& DataType::dictionary_type() const { // @@protoc_insertion_point(field_get:schema_proto.DataType.dictionary_type) @@ -2487,8 +2410,8 @@ inline ::schema_proto::DictionaryType* DataType::unsafe_arena_release_dictionary // @@protoc_insertion_point(field_unsafe_arena_release:schema_proto.DataType.dictionary_type) if (_internal_has_dictionary_type()) { clear_has_type_related_values(); - ::schema_proto::DictionaryType* temp = _impl_.type_related_values_.dictionary_type_; - _impl_.type_related_values_.dictionary_type_ = nullptr; + ::schema_proto::DictionaryType* temp = type_related_values_.dictionary_type_; + type_related_values_.dictionary_type_ = nullptr; return temp; } else { return nullptr; @@ -2498,7 +2421,7 @@ inline void DataType::unsafe_arena_set_allocated_dictionary_type(::schema_proto: clear_type_related_values(); if (dictionary_type) { set_has_dictionary_type(); - _impl_.type_related_values_.dictionary_type_ = dictionary_type; + type_related_values_.dictionary_type_ = dictionary_type; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:schema_proto.DataType.dictionary_type) } @@ -2506,14 +2429,13 @@ inline ::schema_proto::DictionaryType* DataType::_internal_mutable_dictionary_ty if (!_internal_has_dictionary_type()) { clear_type_related_values(); set_has_dictionary_type(); - _impl_.type_related_values_.dictionary_type_ = CreateMaybeMessage< ::schema_proto::DictionaryType >(GetArenaForAllocation()); + type_related_values_.dictionary_type_ = CreateMaybeMessage< ::schema_proto::DictionaryType >(GetArena()); } - return _impl_.type_related_values_.dictionary_type_; + return type_related_values_.dictionary_type_; } inline ::schema_proto::DictionaryType* DataType::mutable_dictionary_type() { - ::schema_proto::DictionaryType* _msg = _internal_mutable_dictionary_type(); // @@protoc_insertion_point(field_mutable:schema_proto.DataType.dictionary_type) - return _msg; + return _internal_mutable_dictionary_type(); } // .schema_proto.MapType map_type = 4; @@ -2524,12 +2446,12 @@ inline bool DataType::has_map_type() const { return _internal_has_map_type(); } inline void DataType::set_has_map_type() { - _impl_._oneof_case_[0] = kMapType; + _oneof_case_[0] = kMapType; } inline void DataType::clear_map_type() { if (_internal_has_map_type()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.type_related_values_.map_type_; + if (GetArena() == nullptr) { + delete type_related_values_.map_type_; } clear_has_type_related_values(); } @@ -2538,11 +2460,11 @@ inline ::schema_proto::MapType* DataType::release_map_type() { // @@protoc_insertion_point(field_release:schema_proto.DataType.map_type) if (_internal_has_map_type()) { clear_has_type_related_values(); - ::schema_proto::MapType* temp = _impl_.type_related_values_.map_type_; - if (GetArenaForAllocation() != nullptr) { + ::schema_proto::MapType* temp = type_related_values_.map_type_; + if (GetArena() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.type_related_values_.map_type_ = nullptr; + type_related_values_.map_type_ = nullptr; return temp; } else { return nullptr; @@ -2550,8 +2472,8 @@ inline ::schema_proto::MapType* DataType::release_map_type() { } inline const ::schema_proto::MapType& DataType::_internal_map_type() const { return _internal_has_map_type() - ? *_impl_.type_related_values_.map_type_ - : reinterpret_cast< ::schema_proto::MapType&>(::schema_proto::_MapType_default_instance_); + ? *type_related_values_.map_type_ + : *reinterpret_cast< ::schema_proto::MapType*>(&::schema_proto::_MapType_default_instance_); } inline const ::schema_proto::MapType& DataType::map_type() const { // @@protoc_insertion_point(field_get:schema_proto.DataType.map_type) @@ -2561,8 +2483,8 @@ inline ::schema_proto::MapType* DataType::unsafe_arena_release_map_type() { // @@protoc_insertion_point(field_unsafe_arena_release:schema_proto.DataType.map_type) if (_internal_has_map_type()) { clear_has_type_related_values(); - ::schema_proto::MapType* temp = _impl_.type_related_values_.map_type_; - _impl_.type_related_values_.map_type_ = nullptr; + ::schema_proto::MapType* temp = type_related_values_.map_type_; + type_related_values_.map_type_ = nullptr; return temp; } else { return nullptr; @@ -2572,7 +2494,7 @@ inline void DataType::unsafe_arena_set_allocated_map_type(::schema_proto::MapTyp clear_type_related_values(); if (map_type) { set_has_map_type(); - _impl_.type_related_values_.map_type_ = map_type; + type_related_values_.map_type_ = map_type; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:schema_proto.DataType.map_type) } @@ -2580,22 +2502,21 @@ inline ::schema_proto::MapType* DataType::_internal_mutable_map_type() { if (!_internal_has_map_type()) { clear_type_related_values(); set_has_map_type(); - _impl_.type_related_values_.map_type_ = CreateMaybeMessage< ::schema_proto::MapType >(GetArenaForAllocation()); + type_related_values_.map_type_ = CreateMaybeMessage< ::schema_proto::MapType >(GetArena()); } - return _impl_.type_related_values_.map_type_; + return type_related_values_.map_type_; } inline ::schema_proto::MapType* DataType::mutable_map_type() { - ::schema_proto::MapType* _msg = _internal_mutable_map_type(); // @@protoc_insertion_point(field_mutable:schema_proto.DataType.map_type) - return _msg; + return _internal_mutable_map_type(); } // .schema_proto.LogicType logic_type = 100; inline void DataType::clear_logic_type() { - _impl_.logic_type_ = 0; + logic_type_ = 0; } inline ::schema_proto::LogicType DataType::_internal_logic_type() const { - return static_cast< ::schema_proto::LogicType >(_impl_.logic_type_); + return static_cast< ::schema_proto::LogicType >(logic_type_); } inline ::schema_proto::LogicType DataType::logic_type() const { // @@protoc_insertion_point(field_get:schema_proto.DataType.logic_type) @@ -2603,7 +2524,7 @@ inline ::schema_proto::LogicType DataType::logic_type() const { } inline void DataType::_internal_set_logic_type(::schema_proto::LogicType value) { - _impl_.logic_type_ = value; + logic_type_ = value; } inline void DataType::set_logic_type(::schema_proto::LogicType value) { _internal_set_logic_type(value); @@ -2612,52 +2533,51 @@ inline void DataType::set_logic_type(::schema_proto::LogicType value) { // repeated .schema_proto.Field children = 101; inline int DataType::_internal_children_size() const { - return _impl_.children_.size(); + return children_.size(); } inline int DataType::children_size() const { return _internal_children_size(); } inline void DataType::clear_children() { - _impl_.children_.Clear(); + children_.Clear(); } inline ::schema_proto::Field* DataType::mutable_children(int index) { // @@protoc_insertion_point(field_mutable:schema_proto.DataType.children) - return _impl_.children_.Mutable(index); + return children_.Mutable(index); } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::schema_proto::Field >* DataType::mutable_children() { // @@protoc_insertion_point(field_mutable_list:schema_proto.DataType.children) - return &_impl_.children_; + return &children_; } inline const ::schema_proto::Field& DataType::_internal_children(int index) const { - return _impl_.children_.Get(index); + return children_.Get(index); } inline const ::schema_proto::Field& DataType::children(int index) const { // @@protoc_insertion_point(field_get:schema_proto.DataType.children) return _internal_children(index); } inline ::schema_proto::Field* DataType::_internal_add_children() { - return _impl_.children_.Add(); + return children_.Add(); } inline ::schema_proto::Field* DataType::add_children() { - ::schema_proto::Field* _add = _internal_add_children(); // @@protoc_insertion_point(field_add:schema_proto.DataType.children) - return _add; + return _internal_add_children(); } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::schema_proto::Field >& DataType::children() const { // @@protoc_insertion_point(field_list:schema_proto.DataType.children) - return _impl_.children_; + return children_; } inline bool DataType::has_type_related_values() const { return type_related_values_case() != TYPE_RELATED_VALUES_NOT_SET; } inline void DataType::clear_has_type_related_values() { - _impl_._oneof_case_[0] = TYPE_RELATED_VALUES_NOT_SET; + _oneof_case_[0] = TYPE_RELATED_VALUES_NOT_SET; } inline DataType::TypeRelatedValuesCase DataType::type_related_values_case() const { - return DataType::TypeRelatedValuesCase(_impl_._oneof_case_[0]); + return DataType::TypeRelatedValuesCase(_oneof_case_[0]); } // ------------------------------------------------------------------- @@ -2665,21 +2585,20 @@ inline DataType::TypeRelatedValuesCase DataType::type_related_values_case() cons // repeated string keys = 1; inline int KeyValueMetadata::_internal_keys_size() const { - return _impl_.keys_.size(); + return keys_.size(); } inline int KeyValueMetadata::keys_size() const { return _internal_keys_size(); } inline void KeyValueMetadata::clear_keys() { - _impl_.keys_.Clear(); + keys_.Clear(); } inline std::string* KeyValueMetadata::add_keys() { - std::string* _s = _internal_add_keys(); // @@protoc_insertion_point(field_add_mutable:schema_proto.KeyValueMetadata.keys) - return _s; + return _internal_add_keys(); } inline const std::string& KeyValueMetadata::_internal_keys(int index) const { - return _impl_.keys_.Get(index); + return keys_.Get(index); } inline const std::string& KeyValueMetadata::keys(int index) const { // @@protoc_insertion_point(field_get:schema_proto.KeyValueMetadata.keys) @@ -2687,74 +2606,73 @@ inline const std::string& KeyValueMetadata::keys(int index) const { } inline std::string* KeyValueMetadata::mutable_keys(int index) { // @@protoc_insertion_point(field_mutable:schema_proto.KeyValueMetadata.keys) - return _impl_.keys_.Mutable(index); + return keys_.Mutable(index); } inline void KeyValueMetadata::set_keys(int index, const std::string& value) { - _impl_.keys_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:schema_proto.KeyValueMetadata.keys) + keys_.Mutable(index)->assign(value); } inline void KeyValueMetadata::set_keys(int index, std::string&& value) { - _impl_.keys_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:schema_proto.KeyValueMetadata.keys) + keys_.Mutable(index)->assign(std::move(value)); } inline void KeyValueMetadata::set_keys(int index, const char* value) { GOOGLE_DCHECK(value != nullptr); - _impl_.keys_.Mutable(index)->assign(value); + keys_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:schema_proto.KeyValueMetadata.keys) } inline void KeyValueMetadata::set_keys(int index, const char* value, size_t size) { - _impl_.keys_.Mutable(index)->assign( + keys_.Mutable(index)->assign( reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:schema_proto.KeyValueMetadata.keys) } inline std::string* KeyValueMetadata::_internal_add_keys() { - return _impl_.keys_.Add(); + return keys_.Add(); } inline void KeyValueMetadata::add_keys(const std::string& value) { - _impl_.keys_.Add()->assign(value); + keys_.Add()->assign(value); // @@protoc_insertion_point(field_add:schema_proto.KeyValueMetadata.keys) } inline void KeyValueMetadata::add_keys(std::string&& value) { - _impl_.keys_.Add(std::move(value)); + keys_.Add(std::move(value)); // @@protoc_insertion_point(field_add:schema_proto.KeyValueMetadata.keys) } inline void KeyValueMetadata::add_keys(const char* value) { GOOGLE_DCHECK(value != nullptr); - _impl_.keys_.Add()->assign(value); + keys_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:schema_proto.KeyValueMetadata.keys) } inline void KeyValueMetadata::add_keys(const char* value, size_t size) { - _impl_.keys_.Add()->assign(reinterpret_cast(value), size); + keys_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:schema_proto.KeyValueMetadata.keys) } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& KeyValueMetadata::keys() const { // @@protoc_insertion_point(field_list:schema_proto.KeyValueMetadata.keys) - return _impl_.keys_; + return keys_; } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* KeyValueMetadata::mutable_keys() { // @@protoc_insertion_point(field_mutable_list:schema_proto.KeyValueMetadata.keys) - return &_impl_.keys_; + return &keys_; } // repeated string values = 2; inline int KeyValueMetadata::_internal_values_size() const { - return _impl_.values_.size(); + return values_.size(); } inline int KeyValueMetadata::values_size() const { return _internal_values_size(); } inline void KeyValueMetadata::clear_values() { - _impl_.values_.Clear(); + values_.Clear(); } inline std::string* KeyValueMetadata::add_values() { - std::string* _s = _internal_add_values(); // @@protoc_insertion_point(field_add_mutable:schema_proto.KeyValueMetadata.values) - return _s; + return _internal_add_values(); } inline const std::string& KeyValueMetadata::_internal_values(int index) const { - return _impl_.values_.Get(index); + return values_.Get(index); } inline const std::string& KeyValueMetadata::values(int index) const { // @@protoc_insertion_point(field_get:schema_proto.KeyValueMetadata.values) @@ -2762,55 +2680,55 @@ inline const std::string& KeyValueMetadata::values(int index) const { } inline std::string* KeyValueMetadata::mutable_values(int index) { // @@protoc_insertion_point(field_mutable:schema_proto.KeyValueMetadata.values) - return _impl_.values_.Mutable(index); + return values_.Mutable(index); } inline void KeyValueMetadata::set_values(int index, const std::string& value) { - _impl_.values_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:schema_proto.KeyValueMetadata.values) + values_.Mutable(index)->assign(value); } inline void KeyValueMetadata::set_values(int index, std::string&& value) { - _impl_.values_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:schema_proto.KeyValueMetadata.values) + values_.Mutable(index)->assign(std::move(value)); } inline void KeyValueMetadata::set_values(int index, const char* value) { GOOGLE_DCHECK(value != nullptr); - _impl_.values_.Mutable(index)->assign(value); + values_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:schema_proto.KeyValueMetadata.values) } inline void KeyValueMetadata::set_values(int index, const char* value, size_t size) { - _impl_.values_.Mutable(index)->assign( + values_.Mutable(index)->assign( reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:schema_proto.KeyValueMetadata.values) } inline std::string* KeyValueMetadata::_internal_add_values() { - return _impl_.values_.Add(); + return values_.Add(); } inline void KeyValueMetadata::add_values(const std::string& value) { - _impl_.values_.Add()->assign(value); + values_.Add()->assign(value); // @@protoc_insertion_point(field_add:schema_proto.KeyValueMetadata.values) } inline void KeyValueMetadata::add_values(std::string&& value) { - _impl_.values_.Add(std::move(value)); + values_.Add(std::move(value)); // @@protoc_insertion_point(field_add:schema_proto.KeyValueMetadata.values) } inline void KeyValueMetadata::add_values(const char* value) { GOOGLE_DCHECK(value != nullptr); - _impl_.values_.Add()->assign(value); + values_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:schema_proto.KeyValueMetadata.values) } inline void KeyValueMetadata::add_values(const char* value, size_t size) { - _impl_.values_.Add()->assign(reinterpret_cast(value), size); + values_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:schema_proto.KeyValueMetadata.values) } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& KeyValueMetadata::values() const { // @@protoc_insertion_point(field_list:schema_proto.KeyValueMetadata.values) - return _impl_.values_; + return values_; } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* KeyValueMetadata::mutable_values() { // @@protoc_insertion_point(field_mutable_list:schema_proto.KeyValueMetadata.values) - return &_impl_.values_; + return &values_; } // ------------------------------------------------------------------- @@ -2819,38 +2737,54 @@ KeyValueMetadata::mutable_values() { // string name = 1; inline void Field::clear_name() { - _impl_.name_.ClearToEmpty(); + name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline const std::string& Field::name() const { // @@protoc_insertion_point(field_get:schema_proto.Field.name) return _internal_name(); } -template -inline PROTOBUF_ALWAYS_INLINE -void Field::set_name(ArgT0&& arg0, ArgT... args) { - - _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +inline void Field::set_name(const std::string& value) { + _internal_set_name(value); // @@protoc_insertion_point(field_set:schema_proto.Field.name) } inline std::string* Field::mutable_name() { - std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:schema_proto.Field.name) - return _s; + return _internal_mutable_name(); } inline const std::string& Field::_internal_name() const { - return _impl_.name_.Get(); + return name_.Get(); } inline void Field::_internal_set_name(const std::string& value) { - _impl_.name_.Set(value, GetArenaForAllocation()); + name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void Field::set_name(std::string&& value) { + + name_.Set( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:schema_proto.Field.name) +} +inline void Field::set_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:schema_proto.Field.name) +} +inline void Field::set_name(const char* value, + size_t size) { + + name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:schema_proto.Field.name) } inline std::string* Field::_internal_mutable_name() { - return _impl_.name_.Mutable(GetArenaForAllocation()); + return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline std::string* Field::release_name() { // @@protoc_insertion_point(field_release:schema_proto.Field.name) - return _impl_.name_.Release(); + return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline void Field::set_allocated_name(std::string* name) { if (name != nullptr) { @@ -2858,21 +2792,36 @@ inline void Field::set_allocated_name(std::string* name) { } else { } - _impl_.name_.SetAllocated(name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.name_.IsDefault()) { - _impl_.name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name, + GetArena()); // @@protoc_insertion_point(field_set_allocated:schema_proto.Field.name) } +inline std::string* Field::unsafe_arena_release_name() { + // @@protoc_insertion_point(field_unsafe_arena_release:schema_proto.Field.name) + GOOGLE_DCHECK(GetArena() != nullptr); + + return name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void Field::unsafe_arena_set_allocated_name( + std::string* name) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (name != nullptr) { + + } else { + + } + name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + name, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:schema_proto.Field.name) +} // bool nullable = 2; inline void Field::clear_nullable() { - _impl_.nullable_ = false; + nullable_ = false; } inline bool Field::_internal_nullable() const { - return _impl_.nullable_; + return nullable_; } inline bool Field::nullable() const { // @@protoc_insertion_point(field_get:schema_proto.Field.nullable) @@ -2880,7 +2829,7 @@ inline bool Field::nullable() const { } inline void Field::_internal_set_nullable(bool value) { - _impl_.nullable_ = value; + nullable_ = value; } inline void Field::set_nullable(bool value) { _internal_set_nullable(value); @@ -2889,21 +2838,21 @@ inline void Field::set_nullable(bool value) { // .schema_proto.DataType data_type = 3; inline bool Field::_internal_has_data_type() const { - return this != internal_default_instance() && _impl_.data_type_ != nullptr; + return this != internal_default_instance() && data_type_ != nullptr; } inline bool Field::has_data_type() const { return _internal_has_data_type(); } inline void Field::clear_data_type() { - if (GetArenaForAllocation() == nullptr && _impl_.data_type_ != nullptr) { - delete _impl_.data_type_; + if (GetArena() == nullptr && data_type_ != nullptr) { + delete data_type_; } - _impl_.data_type_ = nullptr; + data_type_ = nullptr; } inline const ::schema_proto::DataType& Field::_internal_data_type() const { - const ::schema_proto::DataType* p = _impl_.data_type_; - return p != nullptr ? *p : reinterpret_cast( - ::schema_proto::_DataType_default_instance_); + const ::schema_proto::DataType* p = data_type_; + return p != nullptr ? *p : *reinterpret_cast( + &::schema_proto::_DataType_default_instance_); } inline const ::schema_proto::DataType& Field::data_type() const { // @@protoc_insertion_point(field_get:schema_proto.Field.data_type) @@ -2911,10 +2860,10 @@ inline const ::schema_proto::DataType& Field::data_type() const { } inline void Field::unsafe_arena_set_allocated_data_type( ::schema_proto::DataType* data_type) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.data_type_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(data_type_); } - _impl_.data_type_ = data_type; + data_type_ = data_type; if (data_type) { } else { @@ -2923,48 +2872,39 @@ inline void Field::unsafe_arena_set_allocated_data_type( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:schema_proto.Field.data_type) } inline ::schema_proto::DataType* Field::release_data_type() { - - ::schema_proto::DataType* temp = _impl_.data_type_; - _impl_.data_type_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { + auto temp = unsafe_arena_release_data_type(); + if (GetArena() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::schema_proto::DataType* Field::unsafe_arena_release_data_type() { // @@protoc_insertion_point(field_release:schema_proto.Field.data_type) - ::schema_proto::DataType* temp = _impl_.data_type_; - _impl_.data_type_ = nullptr; + ::schema_proto::DataType* temp = data_type_; + data_type_ = nullptr; return temp; } inline ::schema_proto::DataType* Field::_internal_mutable_data_type() { - if (_impl_.data_type_ == nullptr) { - auto* p = CreateMaybeMessage<::schema_proto::DataType>(GetArenaForAllocation()); - _impl_.data_type_ = p; + if (data_type_ == nullptr) { + auto* p = CreateMaybeMessage<::schema_proto::DataType>(GetArena()); + data_type_ = p; } - return _impl_.data_type_; + return data_type_; } inline ::schema_proto::DataType* Field::mutable_data_type() { - ::schema_proto::DataType* _msg = _internal_mutable_data_type(); // @@protoc_insertion_point(field_mutable:schema_proto.Field.data_type) - return _msg; + return _internal_mutable_data_type(); } inline void Field::set_allocated_data_type(::schema_proto::DataType* data_type) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); if (message_arena == nullptr) { - delete _impl_.data_type_; + delete data_type_; } if (data_type) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(data_type); + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(data_type); if (message_arena != submessage_arena) { data_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, data_type, submessage_arena); @@ -2973,27 +2913,27 @@ inline void Field::set_allocated_data_type(::schema_proto::DataType* data_type) } else { } - _impl_.data_type_ = data_type; + data_type_ = data_type; // @@protoc_insertion_point(field_set_allocated:schema_proto.Field.data_type) } // .schema_proto.KeyValueMetadata metadata = 4; inline bool Field::_internal_has_metadata() const { - return this != internal_default_instance() && _impl_.metadata_ != nullptr; + return this != internal_default_instance() && metadata_ != nullptr; } inline bool Field::has_metadata() const { return _internal_has_metadata(); } inline void Field::clear_metadata() { - if (GetArenaForAllocation() == nullptr && _impl_.metadata_ != nullptr) { - delete _impl_.metadata_; + if (GetArena() == nullptr && metadata_ != nullptr) { + delete metadata_; } - _impl_.metadata_ = nullptr; + metadata_ = nullptr; } inline const ::schema_proto::KeyValueMetadata& Field::_internal_metadata() const { - const ::schema_proto::KeyValueMetadata* p = _impl_.metadata_; - return p != nullptr ? *p : reinterpret_cast( - ::schema_proto::_KeyValueMetadata_default_instance_); + const ::schema_proto::KeyValueMetadata* p = metadata_; + return p != nullptr ? *p : *reinterpret_cast( + &::schema_proto::_KeyValueMetadata_default_instance_); } inline const ::schema_proto::KeyValueMetadata& Field::metadata() const { // @@protoc_insertion_point(field_get:schema_proto.Field.metadata) @@ -3001,10 +2941,10 @@ inline const ::schema_proto::KeyValueMetadata& Field::metadata() const { } inline void Field::unsafe_arena_set_allocated_metadata( ::schema_proto::KeyValueMetadata* metadata) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.metadata_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(metadata_); } - _impl_.metadata_ = metadata; + metadata_ = metadata; if (metadata) { } else { @@ -3013,48 +2953,39 @@ inline void Field::unsafe_arena_set_allocated_metadata( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:schema_proto.Field.metadata) } inline ::schema_proto::KeyValueMetadata* Field::release_metadata() { - - ::schema_proto::KeyValueMetadata* temp = _impl_.metadata_; - _impl_.metadata_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { + auto temp = unsafe_arena_release_metadata(); + if (GetArena() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::schema_proto::KeyValueMetadata* Field::unsafe_arena_release_metadata() { // @@protoc_insertion_point(field_release:schema_proto.Field.metadata) - ::schema_proto::KeyValueMetadata* temp = _impl_.metadata_; - _impl_.metadata_ = nullptr; + ::schema_proto::KeyValueMetadata* temp = metadata_; + metadata_ = nullptr; return temp; } inline ::schema_proto::KeyValueMetadata* Field::_internal_mutable_metadata() { - if (_impl_.metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::schema_proto::KeyValueMetadata>(GetArenaForAllocation()); - _impl_.metadata_ = p; + if (metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::schema_proto::KeyValueMetadata>(GetArena()); + metadata_ = p; } - return _impl_.metadata_; + return metadata_; } inline ::schema_proto::KeyValueMetadata* Field::mutable_metadata() { - ::schema_proto::KeyValueMetadata* _msg = _internal_mutable_metadata(); // @@protoc_insertion_point(field_mutable:schema_proto.Field.metadata) - return _msg; + return _internal_mutable_metadata(); } inline void Field::set_allocated_metadata(::schema_proto::KeyValueMetadata* metadata) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); if (message_arena == nullptr) { - delete _impl_.metadata_; + delete metadata_; } if (metadata) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(metadata); + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(metadata); if (message_arena != submessage_arena) { metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, metadata, submessage_arena); @@ -3063,7 +2994,7 @@ inline void Field::set_allocated_metadata(::schema_proto::KeyValueMetadata* meta } else { } - _impl_.metadata_ = metadata; + metadata_ = metadata; // @@protoc_insertion_point(field_set_allocated:schema_proto.Field.metadata) } @@ -3073,38 +3004,54 @@ inline void Field::set_allocated_metadata(::schema_proto::KeyValueMetadata* meta // string primary_column = 1; inline void SchemaOptions::clear_primary_column() { - _impl_.primary_column_.ClearToEmpty(); + primary_column_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline const std::string& SchemaOptions::primary_column() const { // @@protoc_insertion_point(field_get:schema_proto.SchemaOptions.primary_column) return _internal_primary_column(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SchemaOptions::set_primary_column(ArgT0&& arg0, ArgT... args) { - - _impl_.primary_column_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +inline void SchemaOptions::set_primary_column(const std::string& value) { + _internal_set_primary_column(value); // @@protoc_insertion_point(field_set:schema_proto.SchemaOptions.primary_column) } inline std::string* SchemaOptions::mutable_primary_column() { - std::string* _s = _internal_mutable_primary_column(); // @@protoc_insertion_point(field_mutable:schema_proto.SchemaOptions.primary_column) - return _s; + return _internal_mutable_primary_column(); } inline const std::string& SchemaOptions::_internal_primary_column() const { - return _impl_.primary_column_.Get(); + return primary_column_.Get(); } inline void SchemaOptions::_internal_set_primary_column(const std::string& value) { - _impl_.primary_column_.Set(value, GetArenaForAllocation()); + primary_column_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void SchemaOptions::set_primary_column(std::string&& value) { + + primary_column_.Set( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:schema_proto.SchemaOptions.primary_column) +} +inline void SchemaOptions::set_primary_column(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + primary_column_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:schema_proto.SchemaOptions.primary_column) +} +inline void SchemaOptions::set_primary_column(const char* value, + size_t size) { + + primary_column_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:schema_proto.SchemaOptions.primary_column) } inline std::string* SchemaOptions::_internal_mutable_primary_column() { - return _impl_.primary_column_.Mutable(GetArenaForAllocation()); + return primary_column_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline std::string* SchemaOptions::release_primary_column() { // @@protoc_insertion_point(field_release:schema_proto.SchemaOptions.primary_column) - return _impl_.primary_column_.Release(); + return primary_column_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline void SchemaOptions::set_allocated_primary_column(std::string* primary_column) { if (primary_column != nullptr) { @@ -3112,49 +3059,80 @@ inline void SchemaOptions::set_allocated_primary_column(std::string* primary_col } else { } - _impl_.primary_column_.SetAllocated(primary_column, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.primary_column_.IsDefault()) { - _impl_.primary_column_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + primary_column_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), primary_column, + GetArena()); // @@protoc_insertion_point(field_set_allocated:schema_proto.SchemaOptions.primary_column) } +inline std::string* SchemaOptions::unsafe_arena_release_primary_column() { + // @@protoc_insertion_point(field_unsafe_arena_release:schema_proto.SchemaOptions.primary_column) + GOOGLE_DCHECK(GetArena() != nullptr); + + return primary_column_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void SchemaOptions::unsafe_arena_set_allocated_primary_column( + std::string* primary_column) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (primary_column != nullptr) { + + } else { + + } + primary_column_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + primary_column, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:schema_proto.SchemaOptions.primary_column) +} // string version_column = 2; inline void SchemaOptions::clear_version_column() { - _impl_.version_column_.ClearToEmpty(); + version_column_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline const std::string& SchemaOptions::version_column() const { // @@protoc_insertion_point(field_get:schema_proto.SchemaOptions.version_column) return _internal_version_column(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SchemaOptions::set_version_column(ArgT0&& arg0, ArgT... args) { - - _impl_.version_column_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +inline void SchemaOptions::set_version_column(const std::string& value) { + _internal_set_version_column(value); // @@protoc_insertion_point(field_set:schema_proto.SchemaOptions.version_column) } inline std::string* SchemaOptions::mutable_version_column() { - std::string* _s = _internal_mutable_version_column(); // @@protoc_insertion_point(field_mutable:schema_proto.SchemaOptions.version_column) - return _s; + return _internal_mutable_version_column(); } inline const std::string& SchemaOptions::_internal_version_column() const { - return _impl_.version_column_.Get(); + return version_column_.Get(); } inline void SchemaOptions::_internal_set_version_column(const std::string& value) { - _impl_.version_column_.Set(value, GetArenaForAllocation()); + version_column_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void SchemaOptions::set_version_column(std::string&& value) { + + version_column_.Set( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:schema_proto.SchemaOptions.version_column) +} +inline void SchemaOptions::set_version_column(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + version_column_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:schema_proto.SchemaOptions.version_column) +} +inline void SchemaOptions::set_version_column(const char* value, + size_t size) { + + version_column_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:schema_proto.SchemaOptions.version_column) } inline std::string* SchemaOptions::_internal_mutable_version_column() { - return _impl_.version_column_.Mutable(GetArenaForAllocation()); + return version_column_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline std::string* SchemaOptions::release_version_column() { // @@protoc_insertion_point(field_release:schema_proto.SchemaOptions.version_column) - return _impl_.version_column_.Release(); + return version_column_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline void SchemaOptions::set_allocated_version_column(std::string* version_column) { if (version_column != nullptr) { @@ -3162,49 +3140,80 @@ inline void SchemaOptions::set_allocated_version_column(std::string* version_col } else { } - _impl_.version_column_.SetAllocated(version_column, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.version_column_.IsDefault()) { - _impl_.version_column_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + version_column_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), version_column, + GetArena()); // @@protoc_insertion_point(field_set_allocated:schema_proto.SchemaOptions.version_column) } +inline std::string* SchemaOptions::unsafe_arena_release_version_column() { + // @@protoc_insertion_point(field_unsafe_arena_release:schema_proto.SchemaOptions.version_column) + GOOGLE_DCHECK(GetArena() != nullptr); + + return version_column_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void SchemaOptions::unsafe_arena_set_allocated_version_column( + std::string* version_column) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (version_column != nullptr) { + + } else { + + } + version_column_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + version_column, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:schema_proto.SchemaOptions.version_column) +} // string vector_column = 3; inline void SchemaOptions::clear_vector_column() { - _impl_.vector_column_.ClearToEmpty(); + vector_column_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline const std::string& SchemaOptions::vector_column() const { // @@protoc_insertion_point(field_get:schema_proto.SchemaOptions.vector_column) return _internal_vector_column(); } -template -inline PROTOBUF_ALWAYS_INLINE -void SchemaOptions::set_vector_column(ArgT0&& arg0, ArgT... args) { - - _impl_.vector_column_.Set(static_cast(arg0), args..., GetArenaForAllocation()); +inline void SchemaOptions::set_vector_column(const std::string& value) { + _internal_set_vector_column(value); // @@protoc_insertion_point(field_set:schema_proto.SchemaOptions.vector_column) } inline std::string* SchemaOptions::mutable_vector_column() { - std::string* _s = _internal_mutable_vector_column(); // @@protoc_insertion_point(field_mutable:schema_proto.SchemaOptions.vector_column) - return _s; + return _internal_mutable_vector_column(); } inline const std::string& SchemaOptions::_internal_vector_column() const { - return _impl_.vector_column_.Get(); + return vector_column_.Get(); } inline void SchemaOptions::_internal_set_vector_column(const std::string& value) { - _impl_.vector_column_.Set(value, GetArenaForAllocation()); + vector_column_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); +} +inline void SchemaOptions::set_vector_column(std::string&& value) { + + vector_column_.Set( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); + // @@protoc_insertion_point(field_set_rvalue:schema_proto.SchemaOptions.vector_column) +} +inline void SchemaOptions::set_vector_column(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + vector_column_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), + GetArena()); + // @@protoc_insertion_point(field_set_char:schema_proto.SchemaOptions.vector_column) +} +inline void SchemaOptions::set_vector_column(const char* value, + size_t size) { + + vector_column_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( + reinterpret_cast(value), size), GetArena()); + // @@protoc_insertion_point(field_set_pointer:schema_proto.SchemaOptions.vector_column) } inline std::string* SchemaOptions::_internal_mutable_vector_column() { - return _impl_.vector_column_.Mutable(GetArenaForAllocation()); + return vector_column_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline std::string* SchemaOptions::release_vector_column() { // @@protoc_insertion_point(field_release:schema_proto.SchemaOptions.vector_column) - return _impl_.vector_column_.Release(); + return vector_column_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); } inline void SchemaOptions::set_allocated_vector_column(std::string* vector_column) { if (vector_column != nullptr) { @@ -3212,14 +3221,29 @@ inline void SchemaOptions::set_allocated_vector_column(std::string* vector_colum } else { } - _impl_.vector_column_.SetAllocated(vector_column, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.vector_column_.IsDefault()) { - _impl_.vector_column_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + vector_column_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), vector_column, + GetArena()); // @@protoc_insertion_point(field_set_allocated:schema_proto.SchemaOptions.vector_column) } +inline std::string* SchemaOptions::unsafe_arena_release_vector_column() { + // @@protoc_insertion_point(field_unsafe_arena_release:schema_proto.SchemaOptions.vector_column) + GOOGLE_DCHECK(GetArena() != nullptr); + + return vector_column_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArena()); +} +inline void SchemaOptions::unsafe_arena_set_allocated_vector_column( + std::string* vector_column) { + GOOGLE_DCHECK(GetArena() != nullptr); + if (vector_column != nullptr) { + + } else { + + } + vector_column_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + vector_column, GetArena()); + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:schema_proto.SchemaOptions.vector_column) +} // ------------------------------------------------------------------- @@ -3227,50 +3251,49 @@ inline void SchemaOptions::set_allocated_vector_column(std::string* vector_colum // repeated .schema_proto.Field fields = 1; inline int ArrowSchema::_internal_fields_size() const { - return _impl_.fields_.size(); + return fields_.size(); } inline int ArrowSchema::fields_size() const { return _internal_fields_size(); } inline void ArrowSchema::clear_fields() { - _impl_.fields_.Clear(); + fields_.Clear(); } inline ::schema_proto::Field* ArrowSchema::mutable_fields(int index) { // @@protoc_insertion_point(field_mutable:schema_proto.ArrowSchema.fields) - return _impl_.fields_.Mutable(index); + return fields_.Mutable(index); } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::schema_proto::Field >* ArrowSchema::mutable_fields() { // @@protoc_insertion_point(field_mutable_list:schema_proto.ArrowSchema.fields) - return &_impl_.fields_; + return &fields_; } inline const ::schema_proto::Field& ArrowSchema::_internal_fields(int index) const { - return _impl_.fields_.Get(index); + return fields_.Get(index); } inline const ::schema_proto::Field& ArrowSchema::fields(int index) const { // @@protoc_insertion_point(field_get:schema_proto.ArrowSchema.fields) return _internal_fields(index); } inline ::schema_proto::Field* ArrowSchema::_internal_add_fields() { - return _impl_.fields_.Add(); + return fields_.Add(); } inline ::schema_proto::Field* ArrowSchema::add_fields() { - ::schema_proto::Field* _add = _internal_add_fields(); // @@protoc_insertion_point(field_add:schema_proto.ArrowSchema.fields) - return _add; + return _internal_add_fields(); } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::schema_proto::Field >& ArrowSchema::fields() const { // @@protoc_insertion_point(field_list:schema_proto.ArrowSchema.fields) - return _impl_.fields_; + return fields_; } // .schema_proto.Endianness endianness = 2; inline void ArrowSchema::clear_endianness() { - _impl_.endianness_ = 0; + endianness_ = 0; } inline ::schema_proto::Endianness ArrowSchema::_internal_endianness() const { - return static_cast< ::schema_proto::Endianness >(_impl_.endianness_); + return static_cast< ::schema_proto::Endianness >(endianness_); } inline ::schema_proto::Endianness ArrowSchema::endianness() const { // @@protoc_insertion_point(field_get:schema_proto.ArrowSchema.endianness) @@ -3278,7 +3301,7 @@ inline ::schema_proto::Endianness ArrowSchema::endianness() const { } inline void ArrowSchema::_internal_set_endianness(::schema_proto::Endianness value) { - _impl_.endianness_ = value; + endianness_ = value; } inline void ArrowSchema::set_endianness(::schema_proto::Endianness value) { _internal_set_endianness(value); @@ -3287,21 +3310,21 @@ inline void ArrowSchema::set_endianness(::schema_proto::Endianness value) { // .schema_proto.KeyValueMetadata metadata = 3; inline bool ArrowSchema::_internal_has_metadata() const { - return this != internal_default_instance() && _impl_.metadata_ != nullptr; + return this != internal_default_instance() && metadata_ != nullptr; } inline bool ArrowSchema::has_metadata() const { return _internal_has_metadata(); } inline void ArrowSchema::clear_metadata() { - if (GetArenaForAllocation() == nullptr && _impl_.metadata_ != nullptr) { - delete _impl_.metadata_; + if (GetArena() == nullptr && metadata_ != nullptr) { + delete metadata_; } - _impl_.metadata_ = nullptr; + metadata_ = nullptr; } inline const ::schema_proto::KeyValueMetadata& ArrowSchema::_internal_metadata() const { - const ::schema_proto::KeyValueMetadata* p = _impl_.metadata_; - return p != nullptr ? *p : reinterpret_cast( - ::schema_proto::_KeyValueMetadata_default_instance_); + const ::schema_proto::KeyValueMetadata* p = metadata_; + return p != nullptr ? *p : *reinterpret_cast( + &::schema_proto::_KeyValueMetadata_default_instance_); } inline const ::schema_proto::KeyValueMetadata& ArrowSchema::metadata() const { // @@protoc_insertion_point(field_get:schema_proto.ArrowSchema.metadata) @@ -3309,10 +3332,10 @@ inline const ::schema_proto::KeyValueMetadata& ArrowSchema::metadata() const { } inline void ArrowSchema::unsafe_arena_set_allocated_metadata( ::schema_proto::KeyValueMetadata* metadata) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.metadata_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(metadata_); } - _impl_.metadata_ = metadata; + metadata_ = metadata; if (metadata) { } else { @@ -3321,48 +3344,39 @@ inline void ArrowSchema::unsafe_arena_set_allocated_metadata( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:schema_proto.ArrowSchema.metadata) } inline ::schema_proto::KeyValueMetadata* ArrowSchema::release_metadata() { - - ::schema_proto::KeyValueMetadata* temp = _impl_.metadata_; - _impl_.metadata_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { + auto temp = unsafe_arena_release_metadata(); + if (GetArena() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::schema_proto::KeyValueMetadata* ArrowSchema::unsafe_arena_release_metadata() { // @@protoc_insertion_point(field_release:schema_proto.ArrowSchema.metadata) - ::schema_proto::KeyValueMetadata* temp = _impl_.metadata_; - _impl_.metadata_ = nullptr; + ::schema_proto::KeyValueMetadata* temp = metadata_; + metadata_ = nullptr; return temp; } inline ::schema_proto::KeyValueMetadata* ArrowSchema::_internal_mutable_metadata() { - if (_impl_.metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::schema_proto::KeyValueMetadata>(GetArenaForAllocation()); - _impl_.metadata_ = p; + if (metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::schema_proto::KeyValueMetadata>(GetArena()); + metadata_ = p; } - return _impl_.metadata_; + return metadata_; } inline ::schema_proto::KeyValueMetadata* ArrowSchema::mutable_metadata() { - ::schema_proto::KeyValueMetadata* _msg = _internal_mutable_metadata(); // @@protoc_insertion_point(field_mutable:schema_proto.ArrowSchema.metadata) - return _msg; + return _internal_mutable_metadata(); } inline void ArrowSchema::set_allocated_metadata(::schema_proto::KeyValueMetadata* metadata) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); if (message_arena == nullptr) { - delete _impl_.metadata_; + delete metadata_; } if (metadata) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(metadata); + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(metadata); if (message_arena != submessage_arena) { metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, metadata, submessage_arena); @@ -3371,7 +3385,7 @@ inline void ArrowSchema::set_allocated_metadata(::schema_proto::KeyValueMetadata } else { } - _impl_.metadata_ = metadata; + metadata_ = metadata; // @@protoc_insertion_point(field_set_allocated:schema_proto.ArrowSchema.metadata) } @@ -3381,21 +3395,21 @@ inline void ArrowSchema::set_allocated_metadata(::schema_proto::KeyValueMetadata // .schema_proto.ArrowSchema arrow_schema = 1; inline bool Schema::_internal_has_arrow_schema() const { - return this != internal_default_instance() && _impl_.arrow_schema_ != nullptr; + return this != internal_default_instance() && arrow_schema_ != nullptr; } inline bool Schema::has_arrow_schema() const { return _internal_has_arrow_schema(); } inline void Schema::clear_arrow_schema() { - if (GetArenaForAllocation() == nullptr && _impl_.arrow_schema_ != nullptr) { - delete _impl_.arrow_schema_; + if (GetArena() == nullptr && arrow_schema_ != nullptr) { + delete arrow_schema_; } - _impl_.arrow_schema_ = nullptr; + arrow_schema_ = nullptr; } inline const ::schema_proto::ArrowSchema& Schema::_internal_arrow_schema() const { - const ::schema_proto::ArrowSchema* p = _impl_.arrow_schema_; - return p != nullptr ? *p : reinterpret_cast( - ::schema_proto::_ArrowSchema_default_instance_); + const ::schema_proto::ArrowSchema* p = arrow_schema_; + return p != nullptr ? *p : *reinterpret_cast( + &::schema_proto::_ArrowSchema_default_instance_); } inline const ::schema_proto::ArrowSchema& Schema::arrow_schema() const { // @@protoc_insertion_point(field_get:schema_proto.Schema.arrow_schema) @@ -3403,10 +3417,10 @@ inline const ::schema_proto::ArrowSchema& Schema::arrow_schema() const { } inline void Schema::unsafe_arena_set_allocated_arrow_schema( ::schema_proto::ArrowSchema* arrow_schema) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.arrow_schema_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(arrow_schema_); } - _impl_.arrow_schema_ = arrow_schema; + arrow_schema_ = arrow_schema; if (arrow_schema) { } else { @@ -3415,48 +3429,39 @@ inline void Schema::unsafe_arena_set_allocated_arrow_schema( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:schema_proto.Schema.arrow_schema) } inline ::schema_proto::ArrowSchema* Schema::release_arrow_schema() { - - ::schema_proto::ArrowSchema* temp = _impl_.arrow_schema_; - _impl_.arrow_schema_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { + auto temp = unsafe_arena_release_arrow_schema(); + if (GetArena() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::schema_proto::ArrowSchema* Schema::unsafe_arena_release_arrow_schema() { // @@protoc_insertion_point(field_release:schema_proto.Schema.arrow_schema) - ::schema_proto::ArrowSchema* temp = _impl_.arrow_schema_; - _impl_.arrow_schema_ = nullptr; + ::schema_proto::ArrowSchema* temp = arrow_schema_; + arrow_schema_ = nullptr; return temp; } inline ::schema_proto::ArrowSchema* Schema::_internal_mutable_arrow_schema() { - if (_impl_.arrow_schema_ == nullptr) { - auto* p = CreateMaybeMessage<::schema_proto::ArrowSchema>(GetArenaForAllocation()); - _impl_.arrow_schema_ = p; + if (arrow_schema_ == nullptr) { + auto* p = CreateMaybeMessage<::schema_proto::ArrowSchema>(GetArena()); + arrow_schema_ = p; } - return _impl_.arrow_schema_; + return arrow_schema_; } inline ::schema_proto::ArrowSchema* Schema::mutable_arrow_schema() { - ::schema_proto::ArrowSchema* _msg = _internal_mutable_arrow_schema(); // @@protoc_insertion_point(field_mutable:schema_proto.Schema.arrow_schema) - return _msg; + return _internal_mutable_arrow_schema(); } inline void Schema::set_allocated_arrow_schema(::schema_proto::ArrowSchema* arrow_schema) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); if (message_arena == nullptr) { - delete _impl_.arrow_schema_; + delete arrow_schema_; } if (arrow_schema) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(arrow_schema); + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(arrow_schema); if (message_arena != submessage_arena) { arrow_schema = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, arrow_schema, submessage_arena); @@ -3465,27 +3470,27 @@ inline void Schema::set_allocated_arrow_schema(::schema_proto::ArrowSchema* arro } else { } - _impl_.arrow_schema_ = arrow_schema; + arrow_schema_ = arrow_schema; // @@protoc_insertion_point(field_set_allocated:schema_proto.Schema.arrow_schema) } // .schema_proto.SchemaOptions schema_options = 2; inline bool Schema::_internal_has_schema_options() const { - return this != internal_default_instance() && _impl_.schema_options_ != nullptr; + return this != internal_default_instance() && schema_options_ != nullptr; } inline bool Schema::has_schema_options() const { return _internal_has_schema_options(); } inline void Schema::clear_schema_options() { - if (GetArenaForAllocation() == nullptr && _impl_.schema_options_ != nullptr) { - delete _impl_.schema_options_; + if (GetArena() == nullptr && schema_options_ != nullptr) { + delete schema_options_; } - _impl_.schema_options_ = nullptr; + schema_options_ = nullptr; } inline const ::schema_proto::SchemaOptions& Schema::_internal_schema_options() const { - const ::schema_proto::SchemaOptions* p = _impl_.schema_options_; - return p != nullptr ? *p : reinterpret_cast( - ::schema_proto::_SchemaOptions_default_instance_); + const ::schema_proto::SchemaOptions* p = schema_options_; + return p != nullptr ? *p : *reinterpret_cast( + &::schema_proto::_SchemaOptions_default_instance_); } inline const ::schema_proto::SchemaOptions& Schema::schema_options() const { // @@protoc_insertion_point(field_get:schema_proto.Schema.schema_options) @@ -3493,10 +3498,10 @@ inline const ::schema_proto::SchemaOptions& Schema::schema_options() const { } inline void Schema::unsafe_arena_set_allocated_schema_options( ::schema_proto::SchemaOptions* schema_options) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.schema_options_); + if (GetArena() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(schema_options_); } - _impl_.schema_options_ = schema_options; + schema_options_ = schema_options; if (schema_options) { } else { @@ -3505,48 +3510,39 @@ inline void Schema::unsafe_arena_set_allocated_schema_options( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:schema_proto.Schema.schema_options) } inline ::schema_proto::SchemaOptions* Schema::release_schema_options() { - - ::schema_proto::SchemaOptions* temp = _impl_.schema_options_; - _impl_.schema_options_ = nullptr; -#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE - auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - if (GetArenaForAllocation() == nullptr) { delete old; } -#else // PROTOBUF_FORCE_COPY_IN_RELEASE - if (GetArenaForAllocation() != nullptr) { + auto temp = unsafe_arena_release_schema_options(); + if (GetArena() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } -#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::schema_proto::SchemaOptions* Schema::unsafe_arena_release_schema_options() { // @@protoc_insertion_point(field_release:schema_proto.Schema.schema_options) - ::schema_proto::SchemaOptions* temp = _impl_.schema_options_; - _impl_.schema_options_ = nullptr; + ::schema_proto::SchemaOptions* temp = schema_options_; + schema_options_ = nullptr; return temp; } inline ::schema_proto::SchemaOptions* Schema::_internal_mutable_schema_options() { - if (_impl_.schema_options_ == nullptr) { - auto* p = CreateMaybeMessage<::schema_proto::SchemaOptions>(GetArenaForAllocation()); - _impl_.schema_options_ = p; + if (schema_options_ == nullptr) { + auto* p = CreateMaybeMessage<::schema_proto::SchemaOptions>(GetArena()); + schema_options_ = p; } - return _impl_.schema_options_; + return schema_options_; } inline ::schema_proto::SchemaOptions* Schema::mutable_schema_options() { - ::schema_proto::SchemaOptions* _msg = _internal_mutable_schema_options(); // @@protoc_insertion_point(field_mutable:schema_proto.Schema.schema_options) - return _msg; + return _internal_mutable_schema_options(); } inline void Schema::set_allocated_schema_options(::schema_proto::SchemaOptions* schema_options) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); if (message_arena == nullptr) { - delete _impl_.schema_options_; + delete schema_options_; } if (schema_options) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(schema_options); + ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(schema_options); if (message_arena != submessage_arena) { schema_options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, schema_options, submessage_arena); @@ -3555,7 +3551,7 @@ inline void Schema::set_allocated_schema_options(::schema_proto::SchemaOptions* } else { } - _impl_.schema_options_ = schema_options; + schema_options_ = schema_options; // @@protoc_insertion_point(field_set_allocated:schema_proto.Schema.schema_options) } diff --git a/cpp/test/CMakeLists.txt b/cpp/test/CMakeLists.txt index 5ad9cb2..4092758 100644 --- a/cpp/test/CMakeLists.txt +++ b/cpp/test/CMakeLists.txt @@ -1,4 +1,4 @@ -find_package(GTest REQUIRED) +enable_testing() file(GLOB_RECURSE BUSTUB_TEST_SOURCES "${PROJECT_SOURCE_DIR}/test/*.cpp") @@ -8,7 +8,7 @@ add_executable( ) target_link_libraries( - milvus_test milvus-storage GTest::gtest_main + milvus_test milvus-storage GTest::gtest_main GTest::gmock_main ) include(GoogleTest) diff --git a/cpp/test/manifest_test.cpp b/cpp/test/manifest_test.cpp index e4b315b..2d0f6c5 100644 --- a/cpp/test/manifest_test.cpp +++ b/cpp/test/manifest_test.cpp @@ -17,9 +17,9 @@ #include #include "gtest/gtest.h" #include "storage/manifest.h" -#include "gmock/gmock.h" #include "google/protobuf/util/message_differencer.h" #include +#include "gmock/gmock.h" using ::testing::ElementsAre; From 5910d91406b2992d11777538c37c82543ec013a5 Mon Sep 17 00:00:00 2001 From: sunby Date: Mon, 22 Apr 2024 15:58:22 +0800 Subject: [PATCH 02/13] optimize compile Signed-off-by: sunby --- cpp/CMakeLists.txt | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index 9036233..9167769 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -9,22 +9,19 @@ option(WITH_OPENDAL "Build with opendal." OFF) set(CMAKE_CXX_STANDARD 17) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) +list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") if (WITH_OPENDAL) add_compile_definitions(MILVUS_OPENDAL) - list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") include(libopendal) endif() +include(libarrow) +include(libglog) add_subdirectory(thirdparty) -get_target_property(arrow_INCLUDE_DIR libarrow INCLUDE_DIRECTORIES) -get_target_property(parquet_INCLUDE_DIR libparquet INCLUDE_DIRECTORIES) -get_target_property(glog_INCLUDE_DIR libglog INCLUDE_DIRECTORIES) file(GLOB_RECURSE SRC_FILES src/*.cpp src/*.cc) add_library(milvus-storage ${SRC_FILES}) -add_dependencies(milvus-storage arrow_ep) -add_dependencies(milvus-storage glog_ep) -target_include_directories(milvus-storage PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include/milvus-storage ${CMAKE_CURRENT_SOURCE_DIR}/src ${CMAKE_CURRENT_SOURCE_DIR}/test/include ${arrow_INCLUDE_DIR} ${parquet_INCLUDE_DIR} ${glog_INCLUDE_DIR}) +target_include_directories(milvus-storage PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include/milvus-storage ${CMAKE_CURRENT_SOURCE_DIR}/src ${CMAKE_CURRENT_SOURCE_DIR}/test/include ) set(LINK_LIBS libarrow libparquet From ae0e08ca7eb3d5050f57a683d6c819473ab2ec55 Mon Sep 17 00:00:00 2001 From: sunby Date: Mon, 22 Apr 2024 15:59:20 +0800 Subject: [PATCH 03/13] compile Signed-off-by: sunby --- cpp/cmake/libarrow.cmake | 46 ++++++++++++++++++++++++++ cpp/cmake/libglog.cmake | 32 ++++++++++++++++++ cpp/thirdparty/CMakeLists.txt | 3 ++ cpp/thirdparty/boost/CMakeLists.txt | 12 +++++++ cpp/thirdparty/gtest/CMakeLists.txt | 10 ++++++ cpp/thirdparty/protobuf/CMakeLists.txt | 11 ++++++ 6 files changed, 114 insertions(+) create mode 100644 cpp/cmake/libarrow.cmake create mode 100644 cpp/cmake/libglog.cmake create mode 100644 cpp/thirdparty/CMakeLists.txt create mode 100644 cpp/thirdparty/boost/CMakeLists.txt create mode 100644 cpp/thirdparty/gtest/CMakeLists.txt create mode 100644 cpp/thirdparty/protobuf/CMakeLists.txt diff --git a/cpp/cmake/libarrow.cmake b/cpp/cmake/libarrow.cmake new file mode 100644 index 0000000..3498d31 --- /dev/null +++ b/cpp/cmake/libarrow.cmake @@ -0,0 +1,46 @@ +function(build_arrow) + include(ExternalProject) + set(ARROW_PREFIX ${CMAKE_CURRENT_BINARY_DIR}/thirdparty/arrow-ep) + + file(MAKE_DIRECTORY + ${ARROW_PREFIX} + "${ARROW_PREFIX}/include" + "${ARROW_PREFIX}/lib" + ) + ExternalProject_Add( + arrow_ep + GIT_REPOSITORY git@github.com:apache/arrow.git + GIT_TAG 740889f + CMAKE_ARGS + -DARROW_PARQUET=ON + -DARROW_FILESYSTEM=ON + -DARROW_S3=ON + -DCMAKE_INSTALL_PREFIX:PATH= + SOURCE_SUBDIR cpp + INSTALL_DIR ${ARROW_PREFIX} + ) + + ExternalProject_Get_Property(arrow_ep install_dir) + + message(STATUS ${CMAKE_CURRENT_BINARY_DIR}/arrow_ep-prefix/src/arrow_ep-build/release/libparquet.so) + add_library(libarrow SHARED IMPORTED) + set_target_properties(libarrow + PROPERTIES + IMPORTED_GLOBAL TRUE + IMPORTED_LOCATION ${ARROW_PREFIX}/lib/libarrow.so + INTERFACE_INCLUDE_DIRECTORIES ${install_dir}/include/ + ) + + add_library(libparquet SHARED IMPORTED) + set_target_properties(libparquet + PROPERTIES + IMPORTED_GLOBAL TRUE + IMPORTED_LOCATION ${ARROW_PREFIX}/lib/libparquet.so + INTERFACE_INCLUDE_DIRECTORIES ${install_dir}/include/ + ) + + add_dependencies(libarrow arrow_ep) + add_dependencies(libparquet arrow_ep) +endfunction() + +build_arrow() diff --git a/cpp/cmake/libglog.cmake b/cpp/cmake/libglog.cmake new file mode 100644 index 0000000..26bdb20 --- /dev/null +++ b/cpp/cmake/libglog.cmake @@ -0,0 +1,32 @@ +function(build_glog) + include(ExternalProject) + set(GLOG_PREFIX ${CMAKE_CURRENT_BINARY_DIR}/thirdparty/glog-ep) + + file(MAKE_DIRECTORY + ${GLOG_PREFIX} + "${GLOG_PREFIX}/include" + "${GLOG_PREFIX}/lib" + ) + ExternalProject_Add( + glog_ep + GIT_REPOSITORY git@github.com:google/glog.git + GIT_TAG v0.6.0 + CMAKE_ARGS + -DCMAKE_INSTALL_PREFIX:PATH= + INSTALL_DIR ${GLOG_PREFIX} + ) + + ExternalProject_Get_Property(glog_ep install_dir) + + add_library(libglog SHARED IMPORTED) + set_target_properties(libglog + PROPERTIES + IMPORTED_GLOBAL TRUE + IMPORTED_LOCATION ${GLOG_PREFIX}/lib/libglog.so + INTERFACE_INCLUDE_DIRECTORIES ${install_dir}/include/ + ) + + add_dependencies(libglog glog_ep) +endfunction() + +build_glog() \ No newline at end of file diff --git a/cpp/thirdparty/CMakeLists.txt b/cpp/thirdparty/CMakeLists.txt new file mode 100644 index 0000000..8f1456f --- /dev/null +++ b/cpp/thirdparty/CMakeLists.txt @@ -0,0 +1,3 @@ +add_subdirectory(gtest) +add_subdirectory(boost) +add_subdirectory(protobuf) \ No newline at end of file diff --git a/cpp/thirdparty/boost/CMakeLists.txt b/cpp/thirdparty/boost/CMakeLists.txt new file mode 100644 index 0000000..b85cefd --- /dev/null +++ b/cpp/thirdparty/boost/CMakeLists.txt @@ -0,0 +1,12 @@ +include(FetchContent) + +message(STATUS "Fetching Boost 1.84.0") +FetchContent_Declare( + Boost + URL https://github.com/boostorg/boost/releases/download/boost-1.84.0/boost-1.84.0.tar.xz + URL_MD5 893b5203b862eb9bbd08553e24ff146a + DOWNLOAD_EXTRACT_TIMESTAMP ON +) + +set(BOOST_INCLUDE_LIBRARIES uuid algorithm filesystem) +FetchContent_MakeAvailable(Boost) diff --git a/cpp/thirdparty/gtest/CMakeLists.txt b/cpp/thirdparty/gtest/CMakeLists.txt new file mode 100644 index 0000000..074abfe --- /dev/null +++ b/cpp/thirdparty/gtest/CMakeLists.txt @@ -0,0 +1,10 @@ +include(FetchContent) + +message(STATUS "Fetching googletest") +FetchContent_Declare( + googletest + GIT_REPOSITORY git@github.com:google/googletest.git + GIT_TAG v1.13.0 +) + +FetchContent_MakeAvailable(googletest) diff --git a/cpp/thirdparty/protobuf/CMakeLists.txt b/cpp/thirdparty/protobuf/CMakeLists.txt new file mode 100644 index 0000000..334d88d --- /dev/null +++ b/cpp/thirdparty/protobuf/CMakeLists.txt @@ -0,0 +1,11 @@ +include(FetchContent) + +message(STATUS "Fetching protobuf") +FetchContent_Declare(protobuf + GIT_REPOSITORY git@github.com:protocolbuffers/protobuf.git + GIT_TAG v3.21.4 +) + +set(protobuf_BUILD_TESTS OFF) +set(protobuf_BUILD_PROTOC_BINARIES OFF) +FetchContent_MakeAvailable(protobuf) \ No newline at end of file From de9596cb4d1278c29bccf91659779cbb73614d6e Mon Sep 17 00:00:00 2001 From: sunby Date: Thu, 25 Apr 2024 10:44:58 +0800 Subject: [PATCH 04/13] compile using cmake Signed-off-by: sunby --- .github/workflows/cpp-ci.yml | 2 +- cpp/CMakeLists.txt | 1 + cpp/Makefile | 16 ++++++++-------- cpp/cmake/libarrow.cmake | 2 +- cpp/cmake/libglog.cmake | 2 +- cpp/test/CMakeLists.txt | 4 ++-- cpp/thirdparty/gtest/CMakeLists.txt | 2 +- cpp/thirdparty/protobuf/CMakeLists.txt | 6 +++--- 8 files changed, 18 insertions(+), 17 deletions(-) diff --git a/.github/workflows/cpp-ci.yml b/.github/workflows/cpp-ci.yml index ab5e863..0362506 100644 --- a/.github/workflows/cpp-ci.yml +++ b/.github/workflows/cpp-ci.yml @@ -52,7 +52,7 @@ jobs: make check-tidy - name : Test - working-directory: ./cpp/build/Release + working-directory: ./cpp/build/test run: ctest . diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index 9167769..ef2c798 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -7,6 +7,7 @@ option(WITH_ASAN "Build with address sanitizer." OFF) option(WITH_OPENDAL "Build with opendal." OFF) set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") diff --git a/cpp/Makefile b/cpp/Makefile index 39818f6..3f03fb6 100644 --- a/cpp/Makefile +++ b/cpp/Makefile @@ -6,20 +6,20 @@ ifneq ($(TIDY_THREADS),) endif build: - mkdir -p build && cd build && \ - conan install .. --build=missing && \ - conan build .. + mkdir -p build/release && cd build/release && \ + cmake ../.. && \ + make -j 8 debug: mkdir -p build && cd build && \ - conan install .. --build=missing -s build_type=Debug && \ - conan build .. + cmake -DCMAKE_BUILD_TYPE=Debug .. && \ + make -j 8 clean: rm -rf build test: build - cd build/Release && ctest . -j ${TEST_THREADS} --output-on-failure + cd build/test && ctest . -j ${TEST_THREADS} --output-on-failure fix-format: find ./src -type f ! -name "*.pb.h" -iname *.h -o -iname *.cpp | xargs clang-format -i @@ -32,10 +32,10 @@ check-format: find ./test -type f ! -name "*.pb.h" -iname *.h -o -iname *.cpp | xargs clang-format --dry-run --Werror check-tidy: - python3 ./scripts/run-clang-tidy.py -p build/Release + python3 ./scripts/run-clang-tidy.py -p build fix-tidy: - python3 ./scripts/run-clang-tidy.py -fix -p build/Release + python3 ./scripts/run-clang-tidy.py -fix -p build proto: protoc -I="src/proto" --cpp_out="src/proto" src/proto/*.proto diff --git a/cpp/cmake/libarrow.cmake b/cpp/cmake/libarrow.cmake index 3498d31..4975353 100644 --- a/cpp/cmake/libarrow.cmake +++ b/cpp/cmake/libarrow.cmake @@ -9,7 +9,7 @@ function(build_arrow) ) ExternalProject_Add( arrow_ep - GIT_REPOSITORY git@github.com:apache/arrow.git + GIT_REPOSITORY https://github.com/apache/arrow.git GIT_TAG 740889f CMAKE_ARGS -DARROW_PARQUET=ON diff --git a/cpp/cmake/libglog.cmake b/cpp/cmake/libglog.cmake index 26bdb20..cb0776a 100644 --- a/cpp/cmake/libglog.cmake +++ b/cpp/cmake/libglog.cmake @@ -9,7 +9,7 @@ function(build_glog) ) ExternalProject_Add( glog_ep - GIT_REPOSITORY git@github.com:google/glog.git + GIT_REPOSITORY https://github.com/google/glog.git GIT_TAG v0.6.0 CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH= diff --git a/cpp/test/CMakeLists.txt b/cpp/test/CMakeLists.txt index 4092758..b4c8192 100644 --- a/cpp/test/CMakeLists.txt +++ b/cpp/test/CMakeLists.txt @@ -1,10 +1,10 @@ enable_testing() -file(GLOB_RECURSE BUSTUB_TEST_SOURCES "${PROJECT_SOURCE_DIR}/test/*.cpp") +file(GLOB_RECURSE MILVUS_TEST_SOURCES "${PROJECT_SOURCE_DIR}/test/*.cpp") add_executable( milvus_test - ${BUSTUB_TEST_SOURCES} + ${MILVUS_TEST_SOURCES} ) target_link_libraries( diff --git a/cpp/thirdparty/gtest/CMakeLists.txt b/cpp/thirdparty/gtest/CMakeLists.txt index 074abfe..72c16a8 100644 --- a/cpp/thirdparty/gtest/CMakeLists.txt +++ b/cpp/thirdparty/gtest/CMakeLists.txt @@ -3,7 +3,7 @@ include(FetchContent) message(STATUS "Fetching googletest") FetchContent_Declare( googletest - GIT_REPOSITORY git@github.com:google/googletest.git + GIT_REPOSITORY https://github.com/google/googletest.git GIT_TAG v1.13.0 ) diff --git a/cpp/thirdparty/protobuf/CMakeLists.txt b/cpp/thirdparty/protobuf/CMakeLists.txt index 334d88d..c795d88 100644 --- a/cpp/thirdparty/protobuf/CMakeLists.txt +++ b/cpp/thirdparty/protobuf/CMakeLists.txt @@ -2,10 +2,10 @@ include(FetchContent) message(STATUS "Fetching protobuf") FetchContent_Declare(protobuf - GIT_REPOSITORY git@github.com:protocolbuffers/protobuf.git + GIT_REPOSITORY https://github.com/protocolbuffers/protobuf.git GIT_TAG v3.21.4 ) -set(protobuf_BUILD_TESTS OFF) -set(protobuf_BUILD_PROTOC_BINARIES OFF) +set(protobuf_BUILD_TESTS OFF CACHE INTERNAL "") +set(protobuf_BUILD_PROTOC_BINARIES OFF CACHE INTERNAL "") FetchContent_MakeAvailable(protobuf) \ No newline at end of file From ca06618126735ae2e252ab127b058fbe8f02b7ad Mon Sep 17 00:00:00 2001 From: sunby Date: Thu, 25 Apr 2024 11:02:24 +0800 Subject: [PATCH 05/13] a Signed-off-by: sunby --- cpp/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/Makefile b/cpp/Makefile index 3f03fb6..8f458f8 100644 --- a/cpp/Makefile +++ b/cpp/Makefile @@ -6,7 +6,7 @@ ifneq ($(TIDY_THREADS),) endif build: - mkdir -p build/release && cd build/release && \ + mkdir -p build && cd build && \ cmake ../.. && \ make -j 8 From cd58ca766ab7c6132f4f28527f2dd95d9db563e4 Mon Sep 17 00:00:00 2001 From: sunby Date: Thu, 25 Apr 2024 11:03:59 +0800 Subject: [PATCH 06/13] aa Signed-off-by: sunby --- cpp/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/Makefile b/cpp/Makefile index 8f458f8..f7f079e 100644 --- a/cpp/Makefile +++ b/cpp/Makefile @@ -7,7 +7,7 @@ endif build: mkdir -p build && cd build && \ - cmake ../.. && \ + cmake .. && \ make -j 8 debug: From 75742720b70d50271c2326b84a5f074e4422f6cb Mon Sep 17 00:00:00 2001 From: sunby Date: Thu, 25 Apr 2024 11:08:45 +0800 Subject: [PATCH 07/13] a Signed-off-by: sunby --- .github/workflows/cpp-ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/cpp-ci.yml b/.github/workflows/cpp-ci.yml index 0362506..fa04dc0 100644 --- a/.github/workflows/cpp-ci.yml +++ b/.github/workflows/cpp-ci.yml @@ -21,6 +21,11 @@ jobs: conan: 1.58.0 cmake: true + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install curl + - name: setup conan run: conan remote add default-conan-local https://milvus01.jfrog.io/artifactory/api/conan/default-conan-local From 22a276df37188bd18e317d32fbe56f3d61c91947 Mon Sep 17 00:00:00 2001 From: sunby Date: Thu, 25 Apr 2024 11:11:38 +0800 Subject: [PATCH 08/13] aa Signed-off-by: sunby --- .github/workflows/cpp-ci.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/cpp-ci.yml b/.github/workflows/cpp-ci.yml index fa04dc0..2ee0002 100644 --- a/.github/workflows/cpp-ci.yml +++ b/.github/workflows/cpp-ci.yml @@ -24,18 +24,19 @@ jobs: - name: Install dependencies run: | sudo apt-get update - sudo apt-get install curl + sudo apt-get install curl + sudo apt-get install libcurl4-openssl-dev - - name: setup conan - run: - conan remote add default-conan-local https://milvus01.jfrog.io/artifactory/api/conan/default-conan-local + # - name: setup conan + # run: + # conan remote add default-conan-local https://milvus01.jfrog.io/artifactory/api/conan/default-conan-local - - name: conan package cache - uses: actions/cache@v3 - with: - path: ~/.conan - key: conan-${{ hashFiles('./cpp/conanfile.py') }} - restore-keys: conan- + # - name: conan package cache + # uses: actions/cache@v3 + # with: + # path: ~/.conan + # key: conan-${{ hashFiles('./cpp/conanfile.py') }} + # restore-keys: conan- - name: Build working-directory: ./cpp From 4dd1a9949c2074b1989063a68ad445f922a446ef Mon Sep 17 00:00:00 2001 From: sunby Date: Sun, 28 Apr 2024 16:25:05 +0800 Subject: [PATCH 09/13] update arrow version Signed-off-by: sunby --- .github/workflows/cpp-ci.yml | 3 +-- cpp/cmake/libarrow.cmake | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cpp-ci.yml b/.github/workflows/cpp-ci.yml index 2ee0002..84fe572 100644 --- a/.github/workflows/cpp-ci.yml +++ b/.github/workflows/cpp-ci.yml @@ -18,13 +18,12 @@ jobs: - name: Install dependencies uses: aminya/setup-cpp@v1 with: - conan: 1.58.0 + # conan: 1.58.0 cmake: true - name: Install dependencies run: | sudo apt-get update - sudo apt-get install curl sudo apt-get install libcurl4-openssl-dev # - name: setup conan diff --git a/cpp/cmake/libarrow.cmake b/cpp/cmake/libarrow.cmake index 4975353..640bd94 100644 --- a/cpp/cmake/libarrow.cmake +++ b/cpp/cmake/libarrow.cmake @@ -10,7 +10,7 @@ function(build_arrow) ExternalProject_Add( arrow_ep GIT_REPOSITORY https://github.com/apache/arrow.git - GIT_TAG 740889f + GIT_TAG apache-arrow-16.0.0 CMAKE_ARGS -DARROW_PARQUET=ON -DARROW_FILESYSTEM=ON From 40cdf3c6988ad2d714717455d1a1ff130ea6c067 Mon Sep 17 00:00:00 2001 From: sunby Date: Sun, 28 Apr 2024 16:45:33 +0800 Subject: [PATCH 10/13] enable protobuf libprotoc Signed-off-by: sunby --- cpp/thirdparty/protobuf/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/thirdparty/protobuf/CMakeLists.txt b/cpp/thirdparty/protobuf/CMakeLists.txt index c795d88..c169739 100644 --- a/cpp/thirdparty/protobuf/CMakeLists.txt +++ b/cpp/thirdparty/protobuf/CMakeLists.txt @@ -7,5 +7,5 @@ FetchContent_Declare(protobuf ) set(protobuf_BUILD_TESTS OFF CACHE INTERNAL "") -set(protobuf_BUILD_PROTOC_BINARIES OFF CACHE INTERNAL "") +# set(protobuf_BUILD_PROTOC_BINARIES OFF CACHE INTERNAL "") FetchContent_MakeAvailable(protobuf) \ No newline at end of file From cb17ba7c78d758081d26f42bc374617a7c3e32d0 Mon Sep 17 00:00:00 2001 From: sunby Date: Sun, 28 Apr 2024 16:59:45 +0800 Subject: [PATCH 11/13] a Signed-off-by: sunby --- cpp/thirdparty/protobuf/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/thirdparty/protobuf/CMakeLists.txt b/cpp/thirdparty/protobuf/CMakeLists.txt index c169739..f76e01a 100644 --- a/cpp/thirdparty/protobuf/CMakeLists.txt +++ b/cpp/thirdparty/protobuf/CMakeLists.txt @@ -7,5 +7,5 @@ FetchContent_Declare(protobuf ) set(protobuf_BUILD_TESTS OFF CACHE INTERNAL "") -# set(protobuf_BUILD_PROTOC_BINARIES OFF CACHE INTERNAL "") +set(protobuf_BUILD_PROTOC_BINARIES ON CACHE INTERNAL "") FetchContent_MakeAvailable(protobuf) \ No newline at end of file From 0722a7b29b62635fa7feb1bff91f1f6f1b231197 Mon Sep 17 00:00:00 2001 From: sunby Date: Sun, 28 Apr 2024 17:06:04 +0800 Subject: [PATCH 12/13] update proto generated files Signed-off-by: sunby --- cpp/src/proto/manifest.pb.cc | 1292 +++++++------ cpp/src/proto/manifest.pb.h | 924 +++++----- cpp/src/proto/schema_arrow.pb.cc | 2917 ++++++++++++++---------------- cpp/src/proto/schema_arrow.pb.h | 2004 ++++++++++---------- 4 files changed, 3437 insertions(+), 3700 deletions(-) diff --git a/cpp/src/proto/manifest.pb.cc b/cpp/src/proto/manifest.pb.cc index 1391f81..e0dade0 100644 --- a/cpp/src/proto/manifest.pb.cc +++ b/cpp/src/proto/manifest.pb.cc @@ -14,139 +14,130 @@ #include // @@protoc_insertion_point(includes) #include -extern PROTOBUF_INTERNAL_EXPORT_manifest_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Blob_manifest_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_manifest_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Fragment_manifest_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_manifest_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Options_manifest_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_schema_5farrow_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Schema_schema_5farrow_2eproto; -namespace manifest_proto { -class OptionsDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _Options_default_instance_; -class ManifestDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _Manifest_default_instance_; -class FragmentDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _Fragment_default_instance_; -class BlobDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _Blob_default_instance_; -} // namespace manifest_proto -static void InitDefaultsscc_info_Blob_manifest_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::manifest_proto::_Blob_default_instance_; - new (ptr) ::manifest_proto::Blob(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::manifest_proto::Blob::InitAsDefaultInstance(); -} -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Blob_manifest_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Blob_manifest_2eproto}, {}}; +PROTOBUF_PRAGMA_INIT_SEG -static void InitDefaultsscc_info_Fragment_manifest_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::manifest_proto::_Fragment_default_instance_; - new (ptr) ::manifest_proto::Fragment(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::manifest_proto::Fragment::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Fragment_manifest_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Fragment_manifest_2eproto}, {}}; - -static void InitDefaultsscc_info_Manifest_manifest_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::manifest_proto::_Manifest_default_instance_; - new (ptr) ::manifest_proto::Manifest(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::manifest_proto::Manifest::InitAsDefaultInstance(); -} +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<4> scc_info_Manifest_manifest_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 4, 0, InitDefaultsscc_info_Manifest_manifest_2eproto}, { - &scc_info_Options_manifest_2eproto.base, - &scc_info_Schema_schema_5farrow_2eproto.base, - &scc_info_Fragment_manifest_2eproto.base, - &scc_info_Blob_manifest_2eproto.base,}}; - -static void InitDefaultsscc_info_Options_manifest_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::manifest_proto::_Options_default_instance_; - new (ptr) ::manifest_proto::Options(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::manifest_proto::Options::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Options_manifest_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Options_manifest_2eproto}, {}}; - -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_manifest_2eproto[4]; -static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_manifest_2eproto = nullptr; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_manifest_2eproto = nullptr; +namespace manifest_proto { +PROTOBUF_CONSTEXPR Options::Options( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.uri_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct OptionsDefaultTypeInternal { + PROTOBUF_CONSTEXPR OptionsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~OptionsDefaultTypeInternal() {} + union { + Options _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OptionsDefaultTypeInternal _Options_default_instance_; +PROTOBUF_CONSTEXPR Manifest::Manifest( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.scalar_fragments_)*/{} + , /*decltype(_impl_.vector_fragments_)*/{} + , /*decltype(_impl_.delete_fragments_)*/{} + , /*decltype(_impl_.blobs_)*/{} + , /*decltype(_impl_.options_)*/nullptr + , /*decltype(_impl_.schema_)*/nullptr + , /*decltype(_impl_.version_)*/int64_t{0} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ManifestDefaultTypeInternal { + PROTOBUF_CONSTEXPR ManifestDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ManifestDefaultTypeInternal() {} + union { + Manifest _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ManifestDefaultTypeInternal _Manifest_default_instance_; +PROTOBUF_CONSTEXPR Fragment::Fragment( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.files_)*/{} + , /*decltype(_impl_.id_)*/int64_t{0} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct FragmentDefaultTypeInternal { + PROTOBUF_CONSTEXPR FragmentDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~FragmentDefaultTypeInternal() {} + union { + Fragment _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FragmentDefaultTypeInternal _Fragment_default_instance_; +PROTOBUF_CONSTEXPR Blob::Blob( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.file_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.size_)*/int64_t{0} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct BlobDefaultTypeInternal { + PROTOBUF_CONSTEXPR BlobDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~BlobDefaultTypeInternal() {} + union { + Blob _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 BlobDefaultTypeInternal _Blob_default_instance_; +} // namespace manifest_proto +static ::_pb::Metadata file_level_metadata_manifest_2eproto[4]; +static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_manifest_2eproto = nullptr; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_manifest_2eproto = nullptr; -const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_manifest_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const uint32_t TableStruct_manifest_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::manifest_proto::Options, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::manifest_proto::Options, uri_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::manifest_proto::Options, _impl_.uri_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::manifest_proto::Manifest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::manifest_proto::Manifest, version_), - PROTOBUF_FIELD_OFFSET(::manifest_proto::Manifest, options_), - PROTOBUF_FIELD_OFFSET(::manifest_proto::Manifest, schema_), - PROTOBUF_FIELD_OFFSET(::manifest_proto::Manifest, scalar_fragments_), - PROTOBUF_FIELD_OFFSET(::manifest_proto::Manifest, vector_fragments_), - PROTOBUF_FIELD_OFFSET(::manifest_proto::Manifest, delete_fragments_), - PROTOBUF_FIELD_OFFSET(::manifest_proto::Manifest, blobs_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::manifest_proto::Manifest, _impl_.version_), + PROTOBUF_FIELD_OFFSET(::manifest_proto::Manifest, _impl_.options_), + PROTOBUF_FIELD_OFFSET(::manifest_proto::Manifest, _impl_.schema_), + PROTOBUF_FIELD_OFFSET(::manifest_proto::Manifest, _impl_.scalar_fragments_), + PROTOBUF_FIELD_OFFSET(::manifest_proto::Manifest, _impl_.vector_fragments_), + PROTOBUF_FIELD_OFFSET(::manifest_proto::Manifest, _impl_.delete_fragments_), + PROTOBUF_FIELD_OFFSET(::manifest_proto::Manifest, _impl_.blobs_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::manifest_proto::Fragment, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::manifest_proto::Fragment, id_), - PROTOBUF_FIELD_OFFSET(::manifest_proto::Fragment, files_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::manifest_proto::Fragment, _impl_.id_), + PROTOBUF_FIELD_OFFSET(::manifest_proto::Fragment, _impl_.files_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::manifest_proto::Blob, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::manifest_proto::Blob, name_), - PROTOBUF_FIELD_OFFSET(::manifest_proto::Blob, size_), - PROTOBUF_FIELD_OFFSET(::manifest_proto::Blob, file_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::manifest_proto::Blob, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::manifest_proto::Blob, _impl_.size_), + PROTOBUF_FIELD_OFFSET(::manifest_proto::Blob, _impl_.file_), }; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::manifest_proto::Options)}, - { 6, -1, sizeof(::manifest_proto::Manifest)}, - { 18, -1, sizeof(::manifest_proto::Fragment)}, - { 25, -1, sizeof(::manifest_proto::Blob)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::manifest_proto::Options)}, + { 7, -1, -1, sizeof(::manifest_proto::Manifest)}, + { 20, -1, -1, sizeof(::manifest_proto::Fragment)}, + { 28, -1, -1, sizeof(::manifest_proto::Blob)}, }; -static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { - reinterpret_cast(&::manifest_proto::_Options_default_instance_), - reinterpret_cast(&::manifest_proto::_Manifest_default_instance_), - reinterpret_cast(&::manifest_proto::_Fragment_default_instance_), - reinterpret_cast(&::manifest_proto::_Blob_default_instance_), +static const ::_pb::Message* const file_default_instances[] = { + &::manifest_proto::_Options_default_instance_._instance, + &::manifest_proto::_Manifest_default_instance_._instance, + &::manifest_proto::_Fragment_default_instance_._instance, + &::manifest_proto::_Blob_default_instance_._instance, }; const char descriptor_table_protodef_manifest_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = @@ -163,140 +154,146 @@ const char descriptor_table_protodef_manifest_2eproto[] PROTOBUF_SECTION_VARIABL "\001(\003\022\r\n\005files\030\002 \003(\t\"0\n\004Blob\022\014\n\004name\030\001 \001(\t" "\022\014\n\004size\030\002 \001(\003\022\014\n\004file\030\003 \001(\tb\006proto3" ; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_manifest_2eproto_deps[1] = { +static const ::_pbi::DescriptorTable* const descriptor_table_manifest_2eproto_deps[1] = { &::descriptor_table_schema_5farrow_2eproto, }; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_manifest_2eproto_sccs[4] = { - &scc_info_Blob_manifest_2eproto.base, - &scc_info_Fragment_manifest_2eproto.base, - &scc_info_Manifest_manifest_2eproto.base, - &scc_info_Options_manifest_2eproto.base, -}; -static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_manifest_2eproto_once; -const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_manifest_2eproto = { - false, false, descriptor_table_protodef_manifest_2eproto, "manifest.proto", 476, - &descriptor_table_manifest_2eproto_once, descriptor_table_manifest_2eproto_sccs, descriptor_table_manifest_2eproto_deps, 4, 1, - schemas, file_default_instances, TableStruct_manifest_2eproto::offsets, - file_level_metadata_manifest_2eproto, 4, file_level_enum_descriptors_manifest_2eproto, file_level_service_descriptors_manifest_2eproto, +static ::_pbi::once_flag descriptor_table_manifest_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_manifest_2eproto = { + false, false, 476, descriptor_table_protodef_manifest_2eproto, + "manifest.proto", + &descriptor_table_manifest_2eproto_once, descriptor_table_manifest_2eproto_deps, 1, 4, + schemas, file_default_instances, TableStruct_manifest_2eproto::offsets, + file_level_metadata_manifest_2eproto, file_level_enum_descriptors_manifest_2eproto, + file_level_service_descriptors_manifest_2eproto, }; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_manifest_2eproto_getter() { + return &descriptor_table_manifest_2eproto; +} // Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_manifest_2eproto = (static_cast(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_manifest_2eproto)), true); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_manifest_2eproto(&descriptor_table_manifest_2eproto); namespace manifest_proto { // =================================================================== -void Options::InitAsDefaultInstance() { -} class Options::_Internal { public: }; -Options::Options(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +Options::Options(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:manifest_proto.Options) } Options::Options(const Options& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + Options* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.uri_){} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - uri_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.uri_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.uri_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_uri().empty()) { - uri_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_uri(), - GetArena()); + _this->_impl_.uri_.Set(from._internal_uri(), + _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:manifest_proto.Options) } -void Options::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Options_manifest_2eproto.base); - uri_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void Options::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.uri_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.uri_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.uri_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } Options::~Options() { // @@protoc_insertion_point(destructor:manifest_proto.Options) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void Options::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - uri_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void Options::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.uri_.Destroy(); } -void Options::ArenaDtor(void* object) { - Options* _this = reinterpret_cast< Options* >(object); - (void)_this; -} -void Options::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void Options::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } -const Options& Options::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Options_manifest_2eproto.base); - return *internal_default_instance(); -} - void Options::Clear() { // @@protoc_insertion_point(message_clear_start:manifest_proto.Options) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - uri_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _impl_.uri_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* Options::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* Options::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // string uri = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { auto str = _internal_mutable_uri(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "manifest_proto.Options.uri")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "manifest_proto.Options.uri")); + } else + goto handle_unusual; continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* Options::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* Options::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:manifest_proto.Options) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // string uri = 1; - if (this->uri().size() > 0) { + if (!this->_internal_uri().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_uri().data(), static_cast(this->_internal_uri().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -306,7 +303,7 @@ ::PROTOBUF_NAMESPACE_ID::uint8* Options::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:manifest_proto.Options) @@ -317,58 +314,39 @@ size_t Options::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:manifest_proto.Options) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string uri = 1; - if (this->uri().size() > 0) { + if (!this->_internal_uri().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_uri()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Options::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:manifest_proto.Options) - GOOGLE_DCHECK_NE(&from, this); - const Options* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:manifest_proto.Options) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:manifest_proto.Options) - MergeFrom(*source); - } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void Options::MergeFrom(const Options& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:manifest_proto.Options) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Options::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Options::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Options::GetClassData() const { return &_class_data_; } + + +void Options::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:manifest_proto.Options) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.uri().size() > 0) { - _internal_set_uri(from._internal_uri()); + if (!from._internal_uri().empty()) { + _this->_internal_set_uri(from._internal_uri()); } -} - -void Options::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:manifest_proto.Options) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Options::CopyFrom(const Options& from) { @@ -384,23 +362,23 @@ bool Options::IsInitialized() const { void Options::InternalSwap(Options* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - uri_.Swap(&other->uri_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.uri_, lhs_arena, + &other->_impl_.uri_, rhs_arena + ); } ::PROTOBUF_NAMESPACE_ID::Metadata Options::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_manifest_2eproto_getter, &descriptor_table_manifest_2eproto_once, + file_level_metadata_manifest_2eproto[0]); } - // =================================================================== -void Manifest::InitAsDefaultInstance() { - ::manifest_proto::_Manifest_default_instance_._instance.get_mutable()->options_ = const_cast< ::manifest_proto::Options*>( - ::manifest_proto::Options::internal_default_instance()); - ::manifest_proto::_Manifest_default_instance_._instance.get_mutable()->schema_ = const_cast< ::schema_proto::Schema*>( - ::schema_proto::Schema::internal_default_instance()); -} class Manifest::_Internal { public: static const ::manifest_proto::Options& options(const Manifest* msg); @@ -409,137 +387,142 @@ class Manifest::_Internal { const ::manifest_proto::Options& Manifest::_Internal::options(const Manifest* msg) { - return *msg->options_; + return *msg->_impl_.options_; } const ::schema_proto::Schema& Manifest::_Internal::schema(const Manifest* msg) { - return *msg->schema_; + return *msg->_impl_.schema_; } void Manifest::clear_schema() { - if (GetArena() == nullptr && schema_ != nullptr) { - delete schema_; + if (GetArenaForAllocation() == nullptr && _impl_.schema_ != nullptr) { + delete _impl_.schema_; } - schema_ = nullptr; -} -Manifest::Manifest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - scalar_fragments_(arena), - vector_fragments_(arena), - delete_fragments_(arena), - blobs_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); + _impl_.schema_ = nullptr; +} +Manifest::Manifest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:manifest_proto.Manifest) } Manifest::Manifest(const Manifest& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - scalar_fragments_(from.scalar_fragments_), - vector_fragments_(from.vector_fragments_), - delete_fragments_(from.delete_fragments_), - blobs_(from.blobs_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + Manifest* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.scalar_fragments_){from._impl_.scalar_fragments_} + , decltype(_impl_.vector_fragments_){from._impl_.vector_fragments_} + , decltype(_impl_.delete_fragments_){from._impl_.delete_fragments_} + , decltype(_impl_.blobs_){from._impl_.blobs_} + , decltype(_impl_.options_){nullptr} + , decltype(_impl_.schema_){nullptr} + , decltype(_impl_.version_){} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_options()) { - options_ = new ::manifest_proto::Options(*from.options_); - } else { - options_ = nullptr; + _this->_impl_.options_ = new ::manifest_proto::Options(*from._impl_.options_); } if (from._internal_has_schema()) { - schema_ = new ::schema_proto::Schema(*from.schema_); - } else { - schema_ = nullptr; + _this->_impl_.schema_ = new ::schema_proto::Schema(*from._impl_.schema_); } - version_ = from.version_; + _this->_impl_.version_ = from._impl_.version_; // @@protoc_insertion_point(copy_constructor:manifest_proto.Manifest) } -void Manifest::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Manifest_manifest_2eproto.base); - ::memset(&options_, 0, static_cast( - reinterpret_cast(&version_) - - reinterpret_cast(&options_)) + sizeof(version_)); +inline void Manifest::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.scalar_fragments_){arena} + , decltype(_impl_.vector_fragments_){arena} + , decltype(_impl_.delete_fragments_){arena} + , decltype(_impl_.blobs_){arena} + , decltype(_impl_.options_){nullptr} + , decltype(_impl_.schema_){nullptr} + , decltype(_impl_.version_){int64_t{0}} + , /*decltype(_impl_._cached_size_)*/{} + }; } Manifest::~Manifest() { // @@protoc_insertion_point(destructor:manifest_proto.Manifest) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void Manifest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete options_; - if (this != internal_default_instance()) delete schema_; +inline void Manifest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.scalar_fragments_.~RepeatedPtrField(); + _impl_.vector_fragments_.~RepeatedPtrField(); + _impl_.delete_fragments_.~RepeatedPtrField(); + _impl_.blobs_.~RepeatedPtrField(); + if (this != internal_default_instance()) delete _impl_.options_; + if (this != internal_default_instance()) delete _impl_.schema_; } -void Manifest::ArenaDtor(void* object) { - Manifest* _this = reinterpret_cast< Manifest* >(object); - (void)_this; -} -void Manifest::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void Manifest::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } -const Manifest& Manifest::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Manifest_manifest_2eproto.base); - return *internal_default_instance(); -} - void Manifest::Clear() { // @@protoc_insertion_point(message_clear_start:manifest_proto.Manifest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - scalar_fragments_.Clear(); - vector_fragments_.Clear(); - delete_fragments_.Clear(); - blobs_.Clear(); - if (GetArena() == nullptr && options_ != nullptr) { - delete options_; + _impl_.scalar_fragments_.Clear(); + _impl_.vector_fragments_.Clear(); + _impl_.delete_fragments_.Clear(); + _impl_.blobs_.Clear(); + if (GetArenaForAllocation() == nullptr && _impl_.options_ != nullptr) { + delete _impl_.options_; } - options_ = nullptr; - if (GetArena() == nullptr && schema_ != nullptr) { - delete schema_; + _impl_.options_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.schema_ != nullptr) { + delete _impl_.schema_; } - schema_ = nullptr; - version_ = PROTOBUF_LONGLONG(0); + _impl_.schema_ = nullptr; + _impl_.version_ = int64_t{0}; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* Manifest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* Manifest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // int64 version = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // .manifest_proto.Options options = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_options(), ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // .schema_proto.Schema schema = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { ptr = ctx->ParseMessage(_internal_mutable_schema(), ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // repeated .manifest_proto.Fragment scalar_fragments = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { ptr -= 1; do { ptr += 1; @@ -547,11 +530,12 @@ const char* Manifest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::i CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // repeated .manifest_proto.Fragment vector_fragments = 5; case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { ptr -= 1; do { ptr += 1; @@ -559,11 +543,12 @@ const char* Manifest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::i CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr)); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // repeated .manifest_proto.Fragment delete_fragments = 6; case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { ptr -= 1; do { ptr += 1; @@ -571,11 +556,12 @@ const char* Manifest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::i CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr)); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // repeated .manifest_proto.Blob blobs = 7; case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { ptr -= 1; do { ptr += 1; @@ -583,92 +569,92 @@ const char* Manifest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::i CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<58>(ptr)); - } else goto handle_unusual; + } else + goto handle_unusual; continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* Manifest::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* Manifest::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:manifest_proto.Manifest) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // int64 version = 1; - if (this->version() != 0) { + if (this->_internal_version() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_version(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_version(), target); } // .manifest_proto.Options options = 2; - if (this->has_options()) { - target = stream->EnsureSpace(target); + if (this->_internal_has_options()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::options(this), target, stream); + InternalWriteMessage(2, _Internal::options(this), + _Internal::options(this).GetCachedSize(), target, stream); } // .schema_proto.Schema schema = 3; - if (this->has_schema()) { - target = stream->EnsureSpace(target); + if (this->_internal_has_schema()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::schema(this), target, stream); + InternalWriteMessage(3, _Internal::schema(this), + _Internal::schema(this).GetCachedSize(), target, stream); } // repeated .manifest_proto.Fragment scalar_fragments = 4; - for (unsigned int i = 0, - n = static_cast(this->_internal_scalar_fragments_size()); i < n; i++) { - target = stream->EnsureSpace(target); + for (unsigned i = 0, + n = static_cast(this->_internal_scalar_fragments_size()); i < n; i++) { + const auto& repfield = this->_internal_scalar_fragments(i); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(4, this->_internal_scalar_fragments(i), target, stream); + InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream); } // repeated .manifest_proto.Fragment vector_fragments = 5; - for (unsigned int i = 0, - n = static_cast(this->_internal_vector_fragments_size()); i < n; i++) { - target = stream->EnsureSpace(target); + for (unsigned i = 0, + n = static_cast(this->_internal_vector_fragments_size()); i < n; i++) { + const auto& repfield = this->_internal_vector_fragments(i); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(5, this->_internal_vector_fragments(i), target, stream); + InternalWriteMessage(5, repfield, repfield.GetCachedSize(), target, stream); } // repeated .manifest_proto.Fragment delete_fragments = 6; - for (unsigned int i = 0, - n = static_cast(this->_internal_delete_fragments_size()); i < n; i++) { - target = stream->EnsureSpace(target); + for (unsigned i = 0, + n = static_cast(this->_internal_delete_fragments_size()); i < n; i++) { + const auto& repfield = this->_internal_delete_fragments(i); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(6, this->_internal_delete_fragments(i), target, stream); + InternalWriteMessage(6, repfield, repfield.GetCachedSize(), target, stream); } // repeated .manifest_proto.Blob blobs = 7; - for (unsigned int i = 0, - n = static_cast(this->_internal_blobs_size()); i < n; i++) { - target = stream->EnsureSpace(target); + for (unsigned i = 0, + n = static_cast(this->_internal_blobs_size()); i < n; i++) { + const auto& repfield = this->_internal_blobs(i); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(7, this->_internal_blobs(i), target, stream); + InternalWriteMessage(7, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:manifest_proto.Manifest) @@ -679,110 +665,91 @@ size_t Manifest::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:manifest_proto.Manifest) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .manifest_proto.Fragment scalar_fragments = 4; total_size += 1UL * this->_internal_scalar_fragments_size(); - for (const auto& msg : this->scalar_fragments_) { + for (const auto& msg : this->_impl_.scalar_fragments_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } // repeated .manifest_proto.Fragment vector_fragments = 5; total_size += 1UL * this->_internal_vector_fragments_size(); - for (const auto& msg : this->vector_fragments_) { + for (const auto& msg : this->_impl_.vector_fragments_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } // repeated .manifest_proto.Fragment delete_fragments = 6; total_size += 1UL * this->_internal_delete_fragments_size(); - for (const auto& msg : this->delete_fragments_) { + for (const auto& msg : this->_impl_.delete_fragments_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } // repeated .manifest_proto.Blob blobs = 7; total_size += 1UL * this->_internal_blobs_size(); - for (const auto& msg : this->blobs_) { + for (const auto& msg : this->_impl_.blobs_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } // .manifest_proto.Options options = 2; - if (this->has_options()) { + if (this->_internal_has_options()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *options_); + *_impl_.options_); } // .schema_proto.Schema schema = 3; - if (this->has_schema()) { + if (this->_internal_has_schema()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *schema_); + *_impl_.schema_); } // int64 version = 1; - if (this->version() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_version()); + if (this->_internal_version() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_version()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Manifest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:manifest_proto.Manifest) - GOOGLE_DCHECK_NE(&from, this); - const Manifest* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:manifest_proto.Manifest) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:manifest_proto.Manifest) - MergeFrom(*source); - } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void Manifest::MergeFrom(const Manifest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:manifest_proto.Manifest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Manifest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Manifest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Manifest::GetClassData() const { return &_class_data_; } + + +void Manifest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:manifest_proto.Manifest) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - scalar_fragments_.MergeFrom(from.scalar_fragments_); - vector_fragments_.MergeFrom(from.vector_fragments_); - delete_fragments_.MergeFrom(from.delete_fragments_); - blobs_.MergeFrom(from.blobs_); - if (from.has_options()) { - _internal_mutable_options()->::manifest_proto::Options::MergeFrom(from._internal_options()); + _this->_impl_.scalar_fragments_.MergeFrom(from._impl_.scalar_fragments_); + _this->_impl_.vector_fragments_.MergeFrom(from._impl_.vector_fragments_); + _this->_impl_.delete_fragments_.MergeFrom(from._impl_.delete_fragments_); + _this->_impl_.blobs_.MergeFrom(from._impl_.blobs_); + if (from._internal_has_options()) { + _this->_internal_mutable_options()->::manifest_proto::Options::MergeFrom( + from._internal_options()); } - if (from.has_schema()) { - _internal_mutable_schema()->::schema_proto::Schema::MergeFrom(from._internal_schema()); + if (from._internal_has_schema()) { + _this->_internal_mutable_schema()->::schema_proto::Schema::MergeFrom( + from._internal_schema()); } - if (from.version() != 0) { - _internal_set_version(from._internal_version()); + if (from._internal_version() != 0) { + _this->_internal_set_version(from._internal_version()); } -} - -void Manifest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:manifest_proto.Manifest) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Manifest::CopyFrom(const Manifest& from) { @@ -798,149 +765,152 @@ bool Manifest::IsInitialized() const { void Manifest::InternalSwap(Manifest* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - scalar_fragments_.InternalSwap(&other->scalar_fragments_); - vector_fragments_.InternalSwap(&other->vector_fragments_); - delete_fragments_.InternalSwap(&other->delete_fragments_); - blobs_.InternalSwap(&other->blobs_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.scalar_fragments_.InternalSwap(&other->_impl_.scalar_fragments_); + _impl_.vector_fragments_.InternalSwap(&other->_impl_.vector_fragments_); + _impl_.delete_fragments_.InternalSwap(&other->_impl_.delete_fragments_); + _impl_.blobs_.InternalSwap(&other->_impl_.blobs_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(Manifest, version_) - + sizeof(Manifest::version_) - - PROTOBUF_FIELD_OFFSET(Manifest, options_)>( - reinterpret_cast(&options_), - reinterpret_cast(&other->options_)); + PROTOBUF_FIELD_OFFSET(Manifest, _impl_.version_) + + sizeof(Manifest::_impl_.version_) + - PROTOBUF_FIELD_OFFSET(Manifest, _impl_.options_)>( + reinterpret_cast(&_impl_.options_), + reinterpret_cast(&other->_impl_.options_)); } ::PROTOBUF_NAMESPACE_ID::Metadata Manifest::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_manifest_2eproto_getter, &descriptor_table_manifest_2eproto_once, + file_level_metadata_manifest_2eproto[1]); } - // =================================================================== -void Fragment::InitAsDefaultInstance() { -} class Fragment::_Internal { public: }; -Fragment::Fragment(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - files_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +Fragment::Fragment(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:manifest_proto.Fragment) } Fragment::Fragment(const Fragment& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - files_(from.files_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + Fragment* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.files_){from._impl_.files_} + , decltype(_impl_.id_){} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - id_ = from.id_; + _this->_impl_.id_ = from._impl_.id_; // @@protoc_insertion_point(copy_constructor:manifest_proto.Fragment) } -void Fragment::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Fragment_manifest_2eproto.base); - id_ = PROTOBUF_LONGLONG(0); +inline void Fragment::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.files_){arena} + , decltype(_impl_.id_){int64_t{0}} + , /*decltype(_impl_._cached_size_)*/{} + }; } Fragment::~Fragment() { // @@protoc_insertion_point(destructor:manifest_proto.Fragment) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void Fragment::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void Fragment::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.files_.~RepeatedPtrField(); } -void Fragment::ArenaDtor(void* object) { - Fragment* _this = reinterpret_cast< Fragment* >(object); - (void)_this; -} -void Fragment::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void Fragment::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } -const Fragment& Fragment::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Fragment_manifest_2eproto.base); - return *internal_default_instance(); -} - void Fragment::Clear() { // @@protoc_insertion_point(message_clear_start:manifest_proto.Fragment) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - files_.Clear(); - id_ = PROTOBUF_LONGLONG(0); + _impl_.files_.Clear(); + _impl_.id_ = int64_t{0}; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* Fragment::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* Fragment::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // int64 id = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // repeated string files = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { ptr -= 1; do { ptr += 1; auto str = _internal_add_files(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "manifest_proto.Fragment.files")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "manifest_proto.Fragment.files")); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); - } else goto handle_unusual; + } else + goto handle_unusual; continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* Fragment::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* Fragment::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:manifest_proto.Fragment) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // int64 id = 1; - if (this->id() != 0) { + if (this->_internal_id() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_id(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_id(), target); } // repeated string files = 2; @@ -954,7 +924,7 @@ ::PROTOBUF_NAMESPACE_ID::uint8* Fragment::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:manifest_proto.Fragment) @@ -965,67 +935,46 @@ size_t Fragment::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:manifest_proto.Fragment) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string files = 2; total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(files_.size()); - for (int i = 0, n = files_.size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.files_.size()); + for (int i = 0, n = _impl_.files_.size(); i < n; i++) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - files_.Get(i)); + _impl_.files_.Get(i)); } // int64 id = 1; - if (this->id() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_id()); + if (this->_internal_id() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_id()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Fragment::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:manifest_proto.Fragment) - GOOGLE_DCHECK_NE(&from, this); - const Fragment* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:manifest_proto.Fragment) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:manifest_proto.Fragment) - MergeFrom(*source); - } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void Fragment::MergeFrom(const Fragment& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:manifest_proto.Fragment) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Fragment::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Fragment::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Fragment::GetClassData() const { return &_class_data_; } + + +void Fragment::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:manifest_proto.Fragment) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - files_.MergeFrom(from.files_); - if (from.id() != 0) { - _internal_set_id(from._internal_id()); + _this->_impl_.files_.MergeFrom(from._impl_.files_); + if (from._internal_id() != 0) { + _this->_internal_set_id(from._internal_id()); } -} - -void Fragment::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:manifest_proto.Fragment) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Fragment::CopyFrom(const Fragment& from) { @@ -1041,156 +990,175 @@ bool Fragment::IsInitialized() const { void Fragment::InternalSwap(Fragment* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - files_.InternalSwap(&other->files_); - swap(id_, other->id_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.files_.InternalSwap(&other->_impl_.files_); + swap(_impl_.id_, other->_impl_.id_); } ::PROTOBUF_NAMESPACE_ID::Metadata Fragment::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_manifest_2eproto_getter, &descriptor_table_manifest_2eproto_once, + file_level_metadata_manifest_2eproto[2]); } - // =================================================================== -void Blob::InitAsDefaultInstance() { -} class Blob::_Internal { public: }; -Blob::Blob(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +Blob::Blob(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:manifest_proto.Blob) } Blob::Blob(const Blob& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + Blob* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.file_){} + , decltype(_impl_.size_){} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_name().empty()) { - name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_name(), - GetArena()); + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); } - file_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.file_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.file_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_file().empty()) { - file_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_file(), - GetArena()); + _this->_impl_.file_.Set(from._internal_file(), + _this->GetArenaForAllocation()); } - size_ = from.size_; + _this->_impl_.size_ = from._impl_.size_; // @@protoc_insertion_point(copy_constructor:manifest_proto.Blob) } -void Blob::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Blob_manifest_2eproto.base); - name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - file_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - size_ = PROTOBUF_LONGLONG(0); +inline void Blob::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.file_){} + , decltype(_impl_.size_){int64_t{0}} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.file_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.file_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } Blob::~Blob() { // @@protoc_insertion_point(destructor:manifest_proto.Blob) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void Blob::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - file_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void Blob::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + _impl_.file_.Destroy(); } -void Blob::ArenaDtor(void* object) { - Blob* _this = reinterpret_cast< Blob* >(object); - (void)_this; -} -void Blob::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void Blob::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Blob& Blob::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Blob_manifest_2eproto.base); - return *internal_default_instance(); + _impl_._cached_size_.Set(size); } - void Blob::Clear() { // @@protoc_insertion_point(message_clear_start:manifest_proto.Blob) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - file_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - size_ = PROTOBUF_LONGLONG(0); + _impl_.name_.ClearToEmpty(); + _impl_.file_.ClearToEmpty(); + _impl_.size_ = int64_t{0}; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* Blob::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* Blob::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // string name = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { auto str = _internal_mutable_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "manifest_proto.Blob.name")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "manifest_proto.Blob.name")); + } else + goto handle_unusual; continue; // int64 size = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // string file = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { auto str = _internal_mutable_file(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "manifest_proto.Blob.file")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); + CHK_(::_pbi::VerifyUTF8(str, "manifest_proto.Blob.file")); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* Blob::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* Blob::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:manifest_proto.Blob) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // string name = 1; - if (this->name().size() > 0) { + if (!this->_internal_name().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_name().data(), static_cast(this->_internal_name().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -1200,13 +1168,13 @@ ::PROTOBUF_NAMESPACE_ID::uint8* Blob::_InternalSerialize( } // int64 size = 2; - if (this->size() != 0) { + if (this->_internal_size() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_size(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_size(), target); } // string file = 3; - if (this->file().size() > 0) { + if (!this->_internal_file().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_file().data(), static_cast(this->_internal_file().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -1216,7 +1184,7 @@ ::PROTOBUF_NAMESPACE_ID::uint8* Blob::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:manifest_proto.Blob) @@ -1227,78 +1195,57 @@ size_t Blob::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:manifest_proto.Blob) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string name = 1; - if (this->name().size() > 0) { + if (!this->_internal_name().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_name()); } // string file = 3; - if (this->file().size() > 0) { + if (!this->_internal_file().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_file()); } // int64 size = 2; - if (this->size() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_size()); + if (this->_internal_size() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_size()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Blob::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:manifest_proto.Blob) - GOOGLE_DCHECK_NE(&from, this); - const Blob* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:manifest_proto.Blob) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:manifest_proto.Blob) - MergeFrom(*source); - } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void Blob::MergeFrom(const Blob& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:manifest_proto.Blob) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Blob::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Blob::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Blob::GetClassData() const { return &_class_data_; } + + +void Blob::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:manifest_proto.Blob) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.name().size() > 0) { - _internal_set_name(from._internal_name()); + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); } - if (from.file().size() > 0) { - _internal_set_file(from._internal_file()); + if (!from._internal_file().empty()) { + _this->_internal_set_file(from._internal_file()); } - if (from.size() != 0) { - _internal_set_size(from._internal_size()); + if (from._internal_size() != 0) { + _this->_internal_set_size(from._internal_size()); } -} - -void Blob::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:manifest_proto.Blob) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Blob::CopyFrom(const Blob& from) { @@ -1314,30 +1261,43 @@ bool Blob::IsInitialized() const { void Blob::InternalSwap(Blob* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - file_.Swap(&other->file_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - swap(size_, other->size_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.file_, lhs_arena, + &other->_impl_.file_, rhs_arena + ); + swap(_impl_.size_, other->_impl_.size_); } ::PROTOBUF_NAMESPACE_ID::Metadata Blob::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_manifest_2eproto_getter, &descriptor_table_manifest_2eproto_once, + file_level_metadata_manifest_2eproto[3]); } - // @@protoc_insertion_point(namespace_scope) } // namespace manifest_proto PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::manifest_proto::Options* Arena::CreateMaybeMessage< ::manifest_proto::Options >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::manifest_proto::Options* +Arena::CreateMaybeMessage< ::manifest_proto::Options >(Arena* arena) { return Arena::CreateMessageInternal< ::manifest_proto::Options >(arena); } -template<> PROTOBUF_NOINLINE ::manifest_proto::Manifest* Arena::CreateMaybeMessage< ::manifest_proto::Manifest >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::manifest_proto::Manifest* +Arena::CreateMaybeMessage< ::manifest_proto::Manifest >(Arena* arena) { return Arena::CreateMessageInternal< ::manifest_proto::Manifest >(arena); } -template<> PROTOBUF_NOINLINE ::manifest_proto::Fragment* Arena::CreateMaybeMessage< ::manifest_proto::Fragment >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::manifest_proto::Fragment* +Arena::CreateMaybeMessage< ::manifest_proto::Fragment >(Arena* arena) { return Arena::CreateMessageInternal< ::manifest_proto::Fragment >(arena); } -template<> PROTOBUF_NOINLINE ::manifest_proto::Blob* Arena::CreateMaybeMessage< ::manifest_proto::Blob >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::manifest_proto::Blob* +Arena::CreateMaybeMessage< ::manifest_proto::Blob >(Arena* arena) { return Arena::CreateMessageInternal< ::manifest_proto::Blob >(arena); } PROTOBUF_NAMESPACE_CLOSE diff --git a/cpp/src/proto/manifest.pb.h b/cpp/src/proto/manifest.pb.h index 910c64c..bb357ab 100644 --- a/cpp/src/proto/manifest.pb.h +++ b/cpp/src/proto/manifest.pb.h @@ -8,12 +8,12 @@ #include #include -#if PROTOBUF_VERSION < 3012000 +#if PROTOBUF_VERSION < 3021000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3012004 < PROTOBUF_MIN_PROTOC_VERSION +#if 3021004 < PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. @@ -23,9 +23,7 @@ #include #include #include -#include #include -#include #include #include #include @@ -44,29 +42,21 @@ PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_manifest_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[4] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; + static const uint32_t offsets[]; }; extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_manifest_2eproto; namespace manifest_proto { class Blob; -class BlobDefaultTypeInternal; +struct BlobDefaultTypeInternal; extern BlobDefaultTypeInternal _Blob_default_instance_; class Fragment; -class FragmentDefaultTypeInternal; +struct FragmentDefaultTypeInternal; extern FragmentDefaultTypeInternal _Fragment_default_instance_; class Manifest; -class ManifestDefaultTypeInternal; +struct ManifestDefaultTypeInternal; extern ManifestDefaultTypeInternal _Manifest_default_instance_; class Options; -class OptionsDefaultTypeInternal; +struct OptionsDefaultTypeInternal; extern OptionsDefaultTypeInternal _Options_default_instance_; } // namespace manifest_proto PROTOBUF_NAMESPACE_OPEN @@ -79,11 +69,12 @@ namespace manifest_proto { // =================================================================== -class Options PROTOBUF_FINAL : +class Options final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:manifest_proto.Options) */ { public: - inline Options() : Options(nullptr) {}; - virtual ~Options(); + inline Options() : Options(nullptr) {} + ~Options() override; + explicit PROTOBUF_CONSTEXPR Options(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); Options(const Options& from); Options(Options&& from) noexcept @@ -96,8 +87,13 @@ class Options PROTOBUF_FINAL : return *this; } inline Options& operator=(Options&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -108,14 +104,14 @@ class Options PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; + } + static const Options& default_instance() { + return *internal_default_instance(); } - static const Options& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const Options* internal_default_instance() { return reinterpret_cast( &_Options_default_instance_); @@ -128,7 +124,12 @@ class Options PROTOBUF_FINAL : } inline void Swap(Options* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -136,56 +137,53 @@ class Options PROTOBUF_FINAL : } void UnsafeArenaSwap(Options* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline Options* New() const final { - return CreateMaybeMessage(nullptr); - } - - Options* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + Options* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const Options& from); - void MergeFrom(const Options& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Options& from) { + Options::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Options* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "manifest_proto.Options"; } protected: - explicit Options(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit Options(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_manifest_2eproto); - return ::descriptor_table_manifest_2eproto.file_level_metadata[kIndexInFileMessages]; - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -197,25 +195,14 @@ class Options PROTOBUF_FINAL : // string uri = 1; void clear_uri(); const std::string& uri() const; - void set_uri(const std::string& value); - void set_uri(std::string&& value); - void set_uri(const char* value); - void set_uri(const char* value, size_t size); + template + void set_uri(ArgT0&& arg0, ArgT... args); std::string* mutable_uri(); - std::string* release_uri(); + PROTOBUF_NODISCARD std::string* release_uri(); void set_allocated_uri(std::string* uri); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - std::string* unsafe_arena_release_uri(); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_uri( - std::string* uri); private: const std::string& _internal_uri() const; - void _internal_set_uri(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_uri(const std::string& value); std::string* _internal_mutable_uri(); public: @@ -226,17 +213,21 @@ class Options PROTOBUF_FINAL : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr uri_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr uri_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_manifest_2eproto; }; // ------------------------------------------------------------------- -class Manifest PROTOBUF_FINAL : +class Manifest final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:manifest_proto.Manifest) */ { public: - inline Manifest() : Manifest(nullptr) {}; - virtual ~Manifest(); + inline Manifest() : Manifest(nullptr) {} + ~Manifest() override; + explicit PROTOBUF_CONSTEXPR Manifest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); Manifest(const Manifest& from); Manifest(Manifest&& from) noexcept @@ -249,8 +240,13 @@ class Manifest PROTOBUF_FINAL : return *this; } inline Manifest& operator=(Manifest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -261,14 +257,14 @@ class Manifest PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; + } + static const Manifest& default_instance() { + return *internal_default_instance(); } - static const Manifest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const Manifest* internal_default_instance() { return reinterpret_cast( &_Manifest_default_instance_); @@ -281,7 +277,12 @@ class Manifest PROTOBUF_FINAL : } inline void Swap(Manifest* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -289,56 +290,53 @@ class Manifest PROTOBUF_FINAL : } void UnsafeArenaSwap(Manifest* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline Manifest* New() const final { - return CreateMaybeMessage(nullptr); - } - - Manifest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + Manifest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const Manifest& from); - void MergeFrom(const Manifest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Manifest& from) { + Manifest::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Manifest* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "manifest_proto.Manifest"; } protected: - explicit Manifest(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit Manifest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_manifest_2eproto); - return ::descriptor_table_manifest_2eproto.file_level_metadata[kIndexInFileMessages]; - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -432,7 +430,7 @@ class Manifest PROTOBUF_FINAL : public: void clear_options(); const ::manifest_proto::Options& options() const; - ::manifest_proto::Options* release_options(); + PROTOBUF_NODISCARD ::manifest_proto::Options* release_options(); ::manifest_proto::Options* mutable_options(); void set_allocated_options(::manifest_proto::Options* options); private: @@ -450,7 +448,7 @@ class Manifest PROTOBUF_FINAL : public: void clear_schema(); const ::schema_proto::Schema& schema() const; - ::schema_proto::Schema* release_schema(); + PROTOBUF_NODISCARD ::schema_proto::Schema* release_schema(); ::schema_proto::Schema* mutable_schema(); void set_allocated_schema(::schema_proto::Schema* schema); private: @@ -463,11 +461,11 @@ class Manifest PROTOBUF_FINAL : // int64 version = 1; void clear_version(); - ::PROTOBUF_NAMESPACE_ID::int64 version() const; - void set_version(::PROTOBUF_NAMESPACE_ID::int64 value); + int64_t version() const; + void set_version(int64_t value); private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_version() const; - void _internal_set_version(::PROTOBUF_NAMESPACE_ID::int64 value); + int64_t _internal_version() const; + void _internal_set_version(int64_t value); public: // @@protoc_insertion_point(class_scope:manifest_proto.Manifest) @@ -477,23 +475,27 @@ class Manifest PROTOBUF_FINAL : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::manifest_proto::Fragment > scalar_fragments_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::manifest_proto::Fragment > vector_fragments_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::manifest_proto::Fragment > delete_fragments_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::manifest_proto::Blob > blobs_; - ::manifest_proto::Options* options_; - ::schema_proto::Schema* schema_; - ::PROTOBUF_NAMESPACE_ID::int64 version_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::manifest_proto::Fragment > scalar_fragments_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::manifest_proto::Fragment > vector_fragments_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::manifest_proto::Fragment > delete_fragments_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::manifest_proto::Blob > blobs_; + ::manifest_proto::Options* options_; + ::schema_proto::Schema* schema_; + int64_t version_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_manifest_2eproto; }; // ------------------------------------------------------------------- -class Fragment PROTOBUF_FINAL : +class Fragment final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:manifest_proto.Fragment) */ { public: - inline Fragment() : Fragment(nullptr) {}; - virtual ~Fragment(); + inline Fragment() : Fragment(nullptr) {} + ~Fragment() override; + explicit PROTOBUF_CONSTEXPR Fragment(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); Fragment(const Fragment& from); Fragment(Fragment&& from) noexcept @@ -506,8 +508,13 @@ class Fragment PROTOBUF_FINAL : return *this; } inline Fragment& operator=(Fragment&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -518,14 +525,14 @@ class Fragment PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; + } + static const Fragment& default_instance() { + return *internal_default_instance(); } - static const Fragment& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const Fragment* internal_default_instance() { return reinterpret_cast( &_Fragment_default_instance_); @@ -538,7 +545,12 @@ class Fragment PROTOBUF_FINAL : } inline void Swap(Fragment* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -546,56 +558,53 @@ class Fragment PROTOBUF_FINAL : } void UnsafeArenaSwap(Fragment* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline Fragment* New() const final { - return CreateMaybeMessage(nullptr); - } - - Fragment* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + Fragment* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const Fragment& from); - void MergeFrom(const Fragment& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Fragment& from) { + Fragment::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Fragment* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "manifest_proto.Fragment"; } protected: - explicit Fragment(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit Fragment(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_manifest_2eproto); - return ::descriptor_table_manifest_2eproto.file_level_metadata[kIndexInFileMessages]; - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -631,11 +640,11 @@ class Fragment PROTOBUF_FINAL : // int64 id = 1; void clear_id(); - ::PROTOBUF_NAMESPACE_ID::int64 id() const; - void set_id(::PROTOBUF_NAMESPACE_ID::int64 value); + int64_t id() const; + void set_id(int64_t value); private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_id() const; - void _internal_set_id(::PROTOBUF_NAMESPACE_ID::int64 value); + int64_t _internal_id() const; + void _internal_set_id(int64_t value); public: // @@protoc_insertion_point(class_scope:manifest_proto.Fragment) @@ -645,18 +654,22 @@ class Fragment PROTOBUF_FINAL : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField files_; - ::PROTOBUF_NAMESPACE_ID::int64 id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField files_; + int64_t id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_manifest_2eproto; }; // ------------------------------------------------------------------- -class Blob PROTOBUF_FINAL : +class Blob final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:manifest_proto.Blob) */ { public: - inline Blob() : Blob(nullptr) {}; - virtual ~Blob(); + inline Blob() : Blob(nullptr) {} + ~Blob() override; + explicit PROTOBUF_CONSTEXPR Blob(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); Blob(const Blob& from); Blob(Blob&& from) noexcept @@ -669,8 +682,13 @@ class Blob PROTOBUF_FINAL : return *this; } inline Blob& operator=(Blob&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -681,14 +699,14 @@ class Blob PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; + } + static const Blob& default_instance() { + return *internal_default_instance(); } - static const Blob& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const Blob* internal_default_instance() { return reinterpret_cast( &_Blob_default_instance_); @@ -701,7 +719,12 @@ class Blob PROTOBUF_FINAL : } inline void Swap(Blob* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -709,56 +732,53 @@ class Blob PROTOBUF_FINAL : } void UnsafeArenaSwap(Blob* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline Blob* New() const final { - return CreateMaybeMessage(nullptr); - } - - Blob* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + Blob* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const Blob& from); - void MergeFrom(const Blob& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Blob& from) { + Blob::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Blob* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "manifest_proto.Blob"; } protected: - explicit Blob(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit Blob(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_manifest_2eproto); - return ::descriptor_table_manifest_2eproto.file_level_metadata[kIndexInFileMessages]; - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -772,60 +792,38 @@ class Blob PROTOBUF_FINAL : // string name = 1; void clear_name(); const std::string& name() const; - void set_name(const std::string& value); - void set_name(std::string&& value); - void set_name(const char* value); - void set_name(const char* value, size_t size); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); - std::string* release_name(); + PROTOBUF_NODISCARD std::string* release_name(); void set_allocated_name(std::string* name); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - std::string* unsafe_arena_release_name(); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_name( - std::string* name); private: const std::string& _internal_name() const; - void _internal_set_name(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); public: // string file = 3; void clear_file(); const std::string& file() const; - void set_file(const std::string& value); - void set_file(std::string&& value); - void set_file(const char* value); - void set_file(const char* value, size_t size); + template + void set_file(ArgT0&& arg0, ArgT... args); std::string* mutable_file(); - std::string* release_file(); + PROTOBUF_NODISCARD std::string* release_file(); void set_allocated_file(std::string* file); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - std::string* unsafe_arena_release_file(); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_file( - std::string* file); private: const std::string& _internal_file() const; - void _internal_set_file(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_file(const std::string& value); std::string* _internal_mutable_file(); public: // int64 size = 2; void clear_size(); - ::PROTOBUF_NAMESPACE_ID::int64 size() const; - void set_size(::PROTOBUF_NAMESPACE_ID::int64 value); + int64_t size() const; + void set_size(int64_t value); private: - ::PROTOBUF_NAMESPACE_ID::int64 _internal_size() const; - void _internal_set_size(::PROTOBUF_NAMESPACE_ID::int64 value); + int64_t _internal_size() const; + void _internal_set_size(int64_t value); public: // @@protoc_insertion_point(class_scope:manifest_proto.Blob) @@ -835,10 +833,13 @@ class Blob PROTOBUF_FINAL : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr file_; - ::PROTOBUF_NAMESPACE_ID::int64 size_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr file_; + int64_t size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_manifest_2eproto; }; // =================================================================== @@ -854,54 +855,38 @@ class Blob PROTOBUF_FINAL : // string uri = 1; inline void Options::clear_uri() { - uri_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _impl_.uri_.ClearToEmpty(); } inline const std::string& Options::uri() const { // @@protoc_insertion_point(field_get:manifest_proto.Options.uri) return _internal_uri(); } -inline void Options::set_uri(const std::string& value) { - _internal_set_uri(value); +template +inline PROTOBUF_ALWAYS_INLINE +void Options::set_uri(ArgT0&& arg0, ArgT... args) { + + _impl_.uri_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:manifest_proto.Options.uri) } inline std::string* Options::mutable_uri() { + std::string* _s = _internal_mutable_uri(); // @@protoc_insertion_point(field_mutable:manifest_proto.Options.uri) - return _internal_mutable_uri(); + return _s; } inline const std::string& Options::_internal_uri() const { - return uri_.Get(); + return _impl_.uri_.Get(); } inline void Options::_internal_set_uri(const std::string& value) { - uri_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); -} -inline void Options::set_uri(std::string&& value) { - - uri_.Set( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:manifest_proto.Options.uri) -} -inline void Options::set_uri(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - uri_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArena()); - // @@protoc_insertion_point(field_set_char:manifest_proto.Options.uri) -} -inline void Options::set_uri(const char* value, - size_t size) { - - uri_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:manifest_proto.Options.uri) + _impl_.uri_.Set(value, GetArenaForAllocation()); } inline std::string* Options::_internal_mutable_uri() { - return uri_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.uri_.Mutable(GetArenaForAllocation()); } inline std::string* Options::release_uri() { // @@protoc_insertion_point(field_release:manifest_proto.Options.uri) - return uri_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.uri_.Release(); } inline void Options::set_allocated_uri(std::string* uri) { if (uri != nullptr) { @@ -909,28 +894,13 @@ inline void Options::set_allocated_uri(std::string* uri) { } else { } - uri_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), uri, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:manifest_proto.Options.uri) -} -inline std::string* Options::unsafe_arena_release_uri() { - // @@protoc_insertion_point(field_unsafe_arena_release:manifest_proto.Options.uri) - GOOGLE_DCHECK(GetArena() != nullptr); - - return uri_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArena()); -} -inline void Options::unsafe_arena_set_allocated_uri( - std::string* uri) { - GOOGLE_DCHECK(GetArena() != nullptr); - if (uri != nullptr) { - - } else { - + _impl_.uri_.SetAllocated(uri, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.uri_.IsDefault()) { + _impl_.uri_.Set("", GetArenaForAllocation()); } - uri_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - uri, GetArena()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:manifest_proto.Options.uri) +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:manifest_proto.Options.uri) } // ------------------------------------------------------------------- @@ -939,41 +909,41 @@ inline void Options::unsafe_arena_set_allocated_uri( // int64 version = 1; inline void Manifest::clear_version() { - version_ = PROTOBUF_LONGLONG(0); + _impl_.version_ = int64_t{0}; } -inline ::PROTOBUF_NAMESPACE_ID::int64 Manifest::_internal_version() const { - return version_; +inline int64_t Manifest::_internal_version() const { + return _impl_.version_; } -inline ::PROTOBUF_NAMESPACE_ID::int64 Manifest::version() const { +inline int64_t Manifest::version() const { // @@protoc_insertion_point(field_get:manifest_proto.Manifest.version) return _internal_version(); } -inline void Manifest::_internal_set_version(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline void Manifest::_internal_set_version(int64_t value) { - version_ = value; + _impl_.version_ = value; } -inline void Manifest::set_version(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline void Manifest::set_version(int64_t value) { _internal_set_version(value); // @@protoc_insertion_point(field_set:manifest_proto.Manifest.version) } // .manifest_proto.Options options = 2; inline bool Manifest::_internal_has_options() const { - return this != internal_default_instance() && options_ != nullptr; + return this != internal_default_instance() && _impl_.options_ != nullptr; } inline bool Manifest::has_options() const { return _internal_has_options(); } inline void Manifest::clear_options() { - if (GetArena() == nullptr && options_ != nullptr) { - delete options_; + if (GetArenaForAllocation() == nullptr && _impl_.options_ != nullptr) { + delete _impl_.options_; } - options_ = nullptr; + _impl_.options_ = nullptr; } inline const ::manifest_proto::Options& Manifest::_internal_options() const { - const ::manifest_proto::Options* p = options_; - return p != nullptr ? *p : *reinterpret_cast( - &::manifest_proto::_Options_default_instance_); + const ::manifest_proto::Options* p = _impl_.options_; + return p != nullptr ? *p : reinterpret_cast( + ::manifest_proto::_Options_default_instance_); } inline const ::manifest_proto::Options& Manifest::options() const { // @@protoc_insertion_point(field_get:manifest_proto.Manifest.options) @@ -981,10 +951,10 @@ inline const ::manifest_proto::Options& Manifest::options() const { } inline void Manifest::unsafe_arena_set_allocated_options( ::manifest_proto::Options* options) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(options_); + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.options_); } - options_ = options; + _impl_.options_ = options; if (options) { } else { @@ -993,39 +963,48 @@ inline void Manifest::unsafe_arena_set_allocated_options( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:manifest_proto.Manifest.options) } inline ::manifest_proto::Options* Manifest::release_options() { - auto temp = unsafe_arena_release_options(); - if (GetArena() != nullptr) { + + ::manifest_proto::Options* temp = _impl_.options_; + _impl_.options_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::manifest_proto::Options* Manifest::unsafe_arena_release_options() { // @@protoc_insertion_point(field_release:manifest_proto.Manifest.options) - ::manifest_proto::Options* temp = options_; - options_ = nullptr; + ::manifest_proto::Options* temp = _impl_.options_; + _impl_.options_ = nullptr; return temp; } inline ::manifest_proto::Options* Manifest::_internal_mutable_options() { - if (options_ == nullptr) { - auto* p = CreateMaybeMessage<::manifest_proto::Options>(GetArena()); - options_ = p; + if (_impl_.options_ == nullptr) { + auto* p = CreateMaybeMessage<::manifest_proto::Options>(GetArenaForAllocation()); + _impl_.options_ = p; } - return options_; + return _impl_.options_; } inline ::manifest_proto::Options* Manifest::mutable_options() { + ::manifest_proto::Options* _msg = _internal_mutable_options(); // @@protoc_insertion_point(field_mutable:manifest_proto.Manifest.options) - return _internal_mutable_options(); + return _msg; } inline void Manifest::set_allocated_options(::manifest_proto::Options* options) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete options_; + delete _impl_.options_; } if (options) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(options); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(options); if (message_arena != submessage_arena) { options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, options, submessage_arena); @@ -1034,21 +1013,21 @@ inline void Manifest::set_allocated_options(::manifest_proto::Options* options) } else { } - options_ = options; + _impl_.options_ = options; // @@protoc_insertion_point(field_set_allocated:manifest_proto.Manifest.options) } // .schema_proto.Schema schema = 3; inline bool Manifest::_internal_has_schema() const { - return this != internal_default_instance() && schema_ != nullptr; + return this != internal_default_instance() && _impl_.schema_ != nullptr; } inline bool Manifest::has_schema() const { return _internal_has_schema(); } inline const ::schema_proto::Schema& Manifest::_internal_schema() const { - const ::schema_proto::Schema* p = schema_; - return p != nullptr ? *p : *reinterpret_cast( - &::schema_proto::_Schema_default_instance_); + const ::schema_proto::Schema* p = _impl_.schema_; + return p != nullptr ? *p : reinterpret_cast( + ::schema_proto::_Schema_default_instance_); } inline const ::schema_proto::Schema& Manifest::schema() const { // @@protoc_insertion_point(field_get:manifest_proto.Manifest.schema) @@ -1056,10 +1035,10 @@ inline const ::schema_proto::Schema& Manifest::schema() const { } inline void Manifest::unsafe_arena_set_allocated_schema( ::schema_proto::Schema* schema) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(schema_); + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.schema_); } - schema_ = schema; + _impl_.schema_ = schema; if (schema) { } else { @@ -1068,39 +1047,49 @@ inline void Manifest::unsafe_arena_set_allocated_schema( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:manifest_proto.Manifest.schema) } inline ::schema_proto::Schema* Manifest::release_schema() { - auto temp = unsafe_arena_release_schema(); - if (GetArena() != nullptr) { + + ::schema_proto::Schema* temp = _impl_.schema_; + _impl_.schema_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::schema_proto::Schema* Manifest::unsafe_arena_release_schema() { // @@protoc_insertion_point(field_release:manifest_proto.Manifest.schema) - ::schema_proto::Schema* temp = schema_; - schema_ = nullptr; + ::schema_proto::Schema* temp = _impl_.schema_; + _impl_.schema_ = nullptr; return temp; } inline ::schema_proto::Schema* Manifest::_internal_mutable_schema() { - if (schema_ == nullptr) { - auto* p = CreateMaybeMessage<::schema_proto::Schema>(GetArena()); - schema_ = p; + if (_impl_.schema_ == nullptr) { + auto* p = CreateMaybeMessage<::schema_proto::Schema>(GetArenaForAllocation()); + _impl_.schema_ = p; } - return schema_; + return _impl_.schema_; } inline ::schema_proto::Schema* Manifest::mutable_schema() { + ::schema_proto::Schema* _msg = _internal_mutable_schema(); // @@protoc_insertion_point(field_mutable:manifest_proto.Manifest.schema) - return _internal_mutable_schema(); + return _msg; } inline void Manifest::set_allocated_schema(::schema_proto::Schema* schema) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(schema_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.schema_); } if (schema) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(schema)->GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(schema)); if (message_arena != submessage_arena) { schema = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, schema, submessage_arena); @@ -1109,164 +1098,168 @@ inline void Manifest::set_allocated_schema(::schema_proto::Schema* schema) { } else { } - schema_ = schema; + _impl_.schema_ = schema; // @@protoc_insertion_point(field_set_allocated:manifest_proto.Manifest.schema) } // repeated .manifest_proto.Fragment scalar_fragments = 4; inline int Manifest::_internal_scalar_fragments_size() const { - return scalar_fragments_.size(); + return _impl_.scalar_fragments_.size(); } inline int Manifest::scalar_fragments_size() const { return _internal_scalar_fragments_size(); } inline void Manifest::clear_scalar_fragments() { - scalar_fragments_.Clear(); + _impl_.scalar_fragments_.Clear(); } inline ::manifest_proto::Fragment* Manifest::mutable_scalar_fragments(int index) { // @@protoc_insertion_point(field_mutable:manifest_proto.Manifest.scalar_fragments) - return scalar_fragments_.Mutable(index); + return _impl_.scalar_fragments_.Mutable(index); } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::manifest_proto::Fragment >* Manifest::mutable_scalar_fragments() { // @@protoc_insertion_point(field_mutable_list:manifest_proto.Manifest.scalar_fragments) - return &scalar_fragments_; + return &_impl_.scalar_fragments_; } inline const ::manifest_proto::Fragment& Manifest::_internal_scalar_fragments(int index) const { - return scalar_fragments_.Get(index); + return _impl_.scalar_fragments_.Get(index); } inline const ::manifest_proto::Fragment& Manifest::scalar_fragments(int index) const { // @@protoc_insertion_point(field_get:manifest_proto.Manifest.scalar_fragments) return _internal_scalar_fragments(index); } inline ::manifest_proto::Fragment* Manifest::_internal_add_scalar_fragments() { - return scalar_fragments_.Add(); + return _impl_.scalar_fragments_.Add(); } inline ::manifest_proto::Fragment* Manifest::add_scalar_fragments() { + ::manifest_proto::Fragment* _add = _internal_add_scalar_fragments(); // @@protoc_insertion_point(field_add:manifest_proto.Manifest.scalar_fragments) - return _internal_add_scalar_fragments(); + return _add; } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::manifest_proto::Fragment >& Manifest::scalar_fragments() const { // @@protoc_insertion_point(field_list:manifest_proto.Manifest.scalar_fragments) - return scalar_fragments_; + return _impl_.scalar_fragments_; } // repeated .manifest_proto.Fragment vector_fragments = 5; inline int Manifest::_internal_vector_fragments_size() const { - return vector_fragments_.size(); + return _impl_.vector_fragments_.size(); } inline int Manifest::vector_fragments_size() const { return _internal_vector_fragments_size(); } inline void Manifest::clear_vector_fragments() { - vector_fragments_.Clear(); + _impl_.vector_fragments_.Clear(); } inline ::manifest_proto::Fragment* Manifest::mutable_vector_fragments(int index) { // @@protoc_insertion_point(field_mutable:manifest_proto.Manifest.vector_fragments) - return vector_fragments_.Mutable(index); + return _impl_.vector_fragments_.Mutable(index); } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::manifest_proto::Fragment >* Manifest::mutable_vector_fragments() { // @@protoc_insertion_point(field_mutable_list:manifest_proto.Manifest.vector_fragments) - return &vector_fragments_; + return &_impl_.vector_fragments_; } inline const ::manifest_proto::Fragment& Manifest::_internal_vector_fragments(int index) const { - return vector_fragments_.Get(index); + return _impl_.vector_fragments_.Get(index); } inline const ::manifest_proto::Fragment& Manifest::vector_fragments(int index) const { // @@protoc_insertion_point(field_get:manifest_proto.Manifest.vector_fragments) return _internal_vector_fragments(index); } inline ::manifest_proto::Fragment* Manifest::_internal_add_vector_fragments() { - return vector_fragments_.Add(); + return _impl_.vector_fragments_.Add(); } inline ::manifest_proto::Fragment* Manifest::add_vector_fragments() { + ::manifest_proto::Fragment* _add = _internal_add_vector_fragments(); // @@protoc_insertion_point(field_add:manifest_proto.Manifest.vector_fragments) - return _internal_add_vector_fragments(); + return _add; } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::manifest_proto::Fragment >& Manifest::vector_fragments() const { // @@protoc_insertion_point(field_list:manifest_proto.Manifest.vector_fragments) - return vector_fragments_; + return _impl_.vector_fragments_; } // repeated .manifest_proto.Fragment delete_fragments = 6; inline int Manifest::_internal_delete_fragments_size() const { - return delete_fragments_.size(); + return _impl_.delete_fragments_.size(); } inline int Manifest::delete_fragments_size() const { return _internal_delete_fragments_size(); } inline void Manifest::clear_delete_fragments() { - delete_fragments_.Clear(); + _impl_.delete_fragments_.Clear(); } inline ::manifest_proto::Fragment* Manifest::mutable_delete_fragments(int index) { // @@protoc_insertion_point(field_mutable:manifest_proto.Manifest.delete_fragments) - return delete_fragments_.Mutable(index); + return _impl_.delete_fragments_.Mutable(index); } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::manifest_proto::Fragment >* Manifest::mutable_delete_fragments() { // @@protoc_insertion_point(field_mutable_list:manifest_proto.Manifest.delete_fragments) - return &delete_fragments_; + return &_impl_.delete_fragments_; } inline const ::manifest_proto::Fragment& Manifest::_internal_delete_fragments(int index) const { - return delete_fragments_.Get(index); + return _impl_.delete_fragments_.Get(index); } inline const ::manifest_proto::Fragment& Manifest::delete_fragments(int index) const { // @@protoc_insertion_point(field_get:manifest_proto.Manifest.delete_fragments) return _internal_delete_fragments(index); } inline ::manifest_proto::Fragment* Manifest::_internal_add_delete_fragments() { - return delete_fragments_.Add(); + return _impl_.delete_fragments_.Add(); } inline ::manifest_proto::Fragment* Manifest::add_delete_fragments() { + ::manifest_proto::Fragment* _add = _internal_add_delete_fragments(); // @@protoc_insertion_point(field_add:manifest_proto.Manifest.delete_fragments) - return _internal_add_delete_fragments(); + return _add; } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::manifest_proto::Fragment >& Manifest::delete_fragments() const { // @@protoc_insertion_point(field_list:manifest_proto.Manifest.delete_fragments) - return delete_fragments_; + return _impl_.delete_fragments_; } // repeated .manifest_proto.Blob blobs = 7; inline int Manifest::_internal_blobs_size() const { - return blobs_.size(); + return _impl_.blobs_.size(); } inline int Manifest::blobs_size() const { return _internal_blobs_size(); } inline void Manifest::clear_blobs() { - blobs_.Clear(); + _impl_.blobs_.Clear(); } inline ::manifest_proto::Blob* Manifest::mutable_blobs(int index) { // @@protoc_insertion_point(field_mutable:manifest_proto.Manifest.blobs) - return blobs_.Mutable(index); + return _impl_.blobs_.Mutable(index); } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::manifest_proto::Blob >* Manifest::mutable_blobs() { // @@protoc_insertion_point(field_mutable_list:manifest_proto.Manifest.blobs) - return &blobs_; + return &_impl_.blobs_; } inline const ::manifest_proto::Blob& Manifest::_internal_blobs(int index) const { - return blobs_.Get(index); + return _impl_.blobs_.Get(index); } inline const ::manifest_proto::Blob& Manifest::blobs(int index) const { // @@protoc_insertion_point(field_get:manifest_proto.Manifest.blobs) return _internal_blobs(index); } inline ::manifest_proto::Blob* Manifest::_internal_add_blobs() { - return blobs_.Add(); + return _impl_.blobs_.Add(); } inline ::manifest_proto::Blob* Manifest::add_blobs() { + ::manifest_proto::Blob* _add = _internal_add_blobs(); // @@protoc_insertion_point(field_add:manifest_proto.Manifest.blobs) - return _internal_add_blobs(); + return _add; } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::manifest_proto::Blob >& Manifest::blobs() const { // @@protoc_insertion_point(field_list:manifest_proto.Manifest.blobs) - return blobs_; + return _impl_.blobs_; } // ------------------------------------------------------------------- @@ -1275,40 +1268,41 @@ Manifest::blobs() const { // int64 id = 1; inline void Fragment::clear_id() { - id_ = PROTOBUF_LONGLONG(0); + _impl_.id_ = int64_t{0}; } -inline ::PROTOBUF_NAMESPACE_ID::int64 Fragment::_internal_id() const { - return id_; +inline int64_t Fragment::_internal_id() const { + return _impl_.id_; } -inline ::PROTOBUF_NAMESPACE_ID::int64 Fragment::id() const { +inline int64_t Fragment::id() const { // @@protoc_insertion_point(field_get:manifest_proto.Fragment.id) return _internal_id(); } -inline void Fragment::_internal_set_id(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline void Fragment::_internal_set_id(int64_t value) { - id_ = value; + _impl_.id_ = value; } -inline void Fragment::set_id(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline void Fragment::set_id(int64_t value) { _internal_set_id(value); // @@protoc_insertion_point(field_set:manifest_proto.Fragment.id) } // repeated string files = 2; inline int Fragment::_internal_files_size() const { - return files_.size(); + return _impl_.files_.size(); } inline int Fragment::files_size() const { return _internal_files_size(); } inline void Fragment::clear_files() { - files_.Clear(); + _impl_.files_.Clear(); } inline std::string* Fragment::add_files() { + std::string* _s = _internal_add_files(); // @@protoc_insertion_point(field_add_mutable:manifest_proto.Fragment.files) - return _internal_add_files(); + return _s; } inline const std::string& Fragment::_internal_files(int index) const { - return files_.Get(index); + return _impl_.files_.Get(index); } inline const std::string& Fragment::files(int index) const { // @@protoc_insertion_point(field_get:manifest_proto.Fragment.files) @@ -1316,55 +1310,55 @@ inline const std::string& Fragment::files(int index) const { } inline std::string* Fragment::mutable_files(int index) { // @@protoc_insertion_point(field_mutable:manifest_proto.Fragment.files) - return files_.Mutable(index); + return _impl_.files_.Mutable(index); } inline void Fragment::set_files(int index, const std::string& value) { + _impl_.files_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:manifest_proto.Fragment.files) - files_.Mutable(index)->assign(value); } inline void Fragment::set_files(int index, std::string&& value) { + _impl_.files_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:manifest_proto.Fragment.files) - files_.Mutable(index)->assign(std::move(value)); } inline void Fragment::set_files(int index, const char* value) { GOOGLE_DCHECK(value != nullptr); - files_.Mutable(index)->assign(value); + _impl_.files_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:manifest_proto.Fragment.files) } inline void Fragment::set_files(int index, const char* value, size_t size) { - files_.Mutable(index)->assign( + _impl_.files_.Mutable(index)->assign( reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:manifest_proto.Fragment.files) } inline std::string* Fragment::_internal_add_files() { - return files_.Add(); + return _impl_.files_.Add(); } inline void Fragment::add_files(const std::string& value) { - files_.Add()->assign(value); + _impl_.files_.Add()->assign(value); // @@protoc_insertion_point(field_add:manifest_proto.Fragment.files) } inline void Fragment::add_files(std::string&& value) { - files_.Add(std::move(value)); + _impl_.files_.Add(std::move(value)); // @@protoc_insertion_point(field_add:manifest_proto.Fragment.files) } inline void Fragment::add_files(const char* value) { GOOGLE_DCHECK(value != nullptr); - files_.Add()->assign(value); + _impl_.files_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:manifest_proto.Fragment.files) } inline void Fragment::add_files(const char* value, size_t size) { - files_.Add()->assign(reinterpret_cast(value), size); + _impl_.files_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:manifest_proto.Fragment.files) } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& Fragment::files() const { // @@protoc_insertion_point(field_list:manifest_proto.Fragment.files) - return files_; + return _impl_.files_; } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* Fragment::mutable_files() { // @@protoc_insertion_point(field_mutable_list:manifest_proto.Fragment.files) - return &files_; + return &_impl_.files_; } // ------------------------------------------------------------------- @@ -1373,54 +1367,38 @@ Fragment::mutable_files() { // string name = 1; inline void Blob::clear_name() { - name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _impl_.name_.ClearToEmpty(); } inline const std::string& Blob::name() const { // @@protoc_insertion_point(field_get:manifest_proto.Blob.name) return _internal_name(); } -inline void Blob::set_name(const std::string& value) { - _internal_set_name(value); +template +inline PROTOBUF_ALWAYS_INLINE +void Blob::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:manifest_proto.Blob.name) } inline std::string* Blob::mutable_name() { + std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:manifest_proto.Blob.name) - return _internal_mutable_name(); + return _s; } inline const std::string& Blob::_internal_name() const { - return name_.Get(); + return _impl_.name_.Get(); } inline void Blob::_internal_set_name(const std::string& value) { - name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); -} -inline void Blob::set_name(std::string&& value) { - - name_.Set( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:manifest_proto.Blob.name) -} -inline void Blob::set_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArena()); - // @@protoc_insertion_point(field_set_char:manifest_proto.Blob.name) -} -inline void Blob::set_name(const char* value, - size_t size) { - - name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:manifest_proto.Blob.name) + _impl_.name_.Set(value, GetArenaForAllocation()); } inline std::string* Blob::_internal_mutable_name() { - return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.name_.Mutable(GetArenaForAllocation()); } inline std::string* Blob::release_name() { // @@protoc_insertion_point(field_release:manifest_proto.Blob.name) - return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.name_.Release(); } inline void Blob::set_allocated_name(std::string* name) { if (name != nullptr) { @@ -1428,100 +1406,69 @@ inline void Blob::set_allocated_name(std::string* name) { } else { } - name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:manifest_proto.Blob.name) -} -inline std::string* Blob::unsafe_arena_release_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:manifest_proto.Blob.name) - GOOGLE_DCHECK(GetArena() != nullptr); - - return name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArena()); -} -inline void Blob::unsafe_arena_set_allocated_name( - std::string* name) { - GOOGLE_DCHECK(GetArena() != nullptr); - if (name != nullptr) { - - } else { - + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); } - name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - name, GetArena()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:manifest_proto.Blob.name) +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:manifest_proto.Blob.name) } // int64 size = 2; inline void Blob::clear_size() { - size_ = PROTOBUF_LONGLONG(0); + _impl_.size_ = int64_t{0}; } -inline ::PROTOBUF_NAMESPACE_ID::int64 Blob::_internal_size() const { - return size_; +inline int64_t Blob::_internal_size() const { + return _impl_.size_; } -inline ::PROTOBUF_NAMESPACE_ID::int64 Blob::size() const { +inline int64_t Blob::size() const { // @@protoc_insertion_point(field_get:manifest_proto.Blob.size) return _internal_size(); } -inline void Blob::_internal_set_size(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline void Blob::_internal_set_size(int64_t value) { - size_ = value; + _impl_.size_ = value; } -inline void Blob::set_size(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline void Blob::set_size(int64_t value) { _internal_set_size(value); // @@protoc_insertion_point(field_set:manifest_proto.Blob.size) } // string file = 3; inline void Blob::clear_file() { - file_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _impl_.file_.ClearToEmpty(); } inline const std::string& Blob::file() const { // @@protoc_insertion_point(field_get:manifest_proto.Blob.file) return _internal_file(); } -inline void Blob::set_file(const std::string& value) { - _internal_set_file(value); +template +inline PROTOBUF_ALWAYS_INLINE +void Blob::set_file(ArgT0&& arg0, ArgT... args) { + + _impl_.file_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:manifest_proto.Blob.file) } inline std::string* Blob::mutable_file() { + std::string* _s = _internal_mutable_file(); // @@protoc_insertion_point(field_mutable:manifest_proto.Blob.file) - return _internal_mutable_file(); + return _s; } inline const std::string& Blob::_internal_file() const { - return file_.Get(); + return _impl_.file_.Get(); } inline void Blob::_internal_set_file(const std::string& value) { - file_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); -} -inline void Blob::set_file(std::string&& value) { - - file_.Set( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:manifest_proto.Blob.file) -} -inline void Blob::set_file(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - file_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArena()); - // @@protoc_insertion_point(field_set_char:manifest_proto.Blob.file) -} -inline void Blob::set_file(const char* value, - size_t size) { - - file_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:manifest_proto.Blob.file) + _impl_.file_.Set(value, GetArenaForAllocation()); } inline std::string* Blob::_internal_mutable_file() { - return file_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.file_.Mutable(GetArenaForAllocation()); } inline std::string* Blob::release_file() { // @@protoc_insertion_point(field_release:manifest_proto.Blob.file) - return file_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.file_.Release(); } inline void Blob::set_allocated_file(std::string* file) { if (file != nullptr) { @@ -1529,28 +1476,13 @@ inline void Blob::set_allocated_file(std::string* file) { } else { } - file_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), file, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:manifest_proto.Blob.file) -} -inline std::string* Blob::unsafe_arena_release_file() { - // @@protoc_insertion_point(field_unsafe_arena_release:manifest_proto.Blob.file) - GOOGLE_DCHECK(GetArena() != nullptr); - - return file_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArena()); -} -inline void Blob::unsafe_arena_set_allocated_file( - std::string* file) { - GOOGLE_DCHECK(GetArena() != nullptr); - if (file != nullptr) { - - } else { - + _impl_.file_.SetAllocated(file, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.file_.IsDefault()) { + _impl_.file_.Set("", GetArenaForAllocation()); } - file_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - file, GetArena()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:manifest_proto.Blob.file) +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:manifest_proto.Blob.file) } #ifdef __GNUC__ diff --git a/cpp/src/proto/schema_arrow.pb.cc b/cpp/src/proto/schema_arrow.pb.cc index aef6e85..a5f699d 100644 --- a/cpp/src/proto/schema_arrow.pb.cc +++ b/cpp/src/proto/schema_arrow.pb.cc @@ -14,298 +14,275 @@ #include // @@protoc_insertion_point(includes) #include -extern PROTOBUF_INTERNAL_EXPORT_schema_5farrow_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_ArrowSchema_schema_5farrow_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_schema_5farrow_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<4> scc_info_DataType_schema_5farrow_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_schema_5farrow_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_FixedSizeBinaryType_schema_5farrow_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_schema_5farrow_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_FixedSizeListType_schema_5farrow_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_schema_5farrow_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_KeyValueMetadata_schema_5farrow_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_schema_5farrow_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_MapType_schema_5farrow_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_schema_5farrow_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SchemaOptions_schema_5farrow_2eproto; -namespace schema_proto { -class FixedSizeBinaryTypeDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _FixedSizeBinaryType_default_instance_; -class FixedSizeListTypeDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _FixedSizeListType_default_instance_; -class DictionaryTypeDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _DictionaryType_default_instance_; -class MapTypeDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _MapType_default_instance_; -class DataTypeDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; - const ::schema_proto::FixedSizeBinaryType* fixed_size_binary_type_; - const ::schema_proto::FixedSizeListType* fixed_size_list_type_; - const ::schema_proto::DictionaryType* dictionary_type_; - const ::schema_proto::MapType* map_type_; -} _DataType_default_instance_; -class KeyValueMetadataDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _KeyValueMetadata_default_instance_; -class FieldDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _Field_default_instance_; -class SchemaOptionsDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _SchemaOptions_default_instance_; -class ArrowSchemaDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _ArrowSchema_default_instance_; -class SchemaDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _Schema_default_instance_; -} // namespace schema_proto -static void InitDefaultsscc_info_ArrowSchema_schema_5farrow_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::schema_proto::_ArrowSchema_default_instance_; - new (ptr) ::schema_proto::ArrowSchema(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::schema_proto::ArrowSchema::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_ArrowSchema_schema_5farrow_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_ArrowSchema_schema_5farrow_2eproto}, { - &scc_info_DataType_schema_5farrow_2eproto.base, - &scc_info_KeyValueMetadata_schema_5farrow_2eproto.base,}}; - -static void InitDefaultsscc_info_DataType_schema_5farrow_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::schema_proto::_DictionaryType_default_instance_; - new (ptr) ::schema_proto::DictionaryType(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - { - void* ptr = &::schema_proto::_DataType_default_instance_; - new (ptr) ::schema_proto::DataType(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - { - void* ptr = &::schema_proto::_Field_default_instance_; - new (ptr) ::schema_proto::Field(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::schema_proto::DictionaryType::InitAsDefaultInstance(); - ::schema_proto::DataType::InitAsDefaultInstance(); - ::schema_proto::Field::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<4> scc_info_DataType_schema_5farrow_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 4, 0, InitDefaultsscc_info_DataType_schema_5farrow_2eproto}, { - &scc_info_FixedSizeBinaryType_schema_5farrow_2eproto.base, - &scc_info_FixedSizeListType_schema_5farrow_2eproto.base, - &scc_info_MapType_schema_5farrow_2eproto.base, - &scc_info_KeyValueMetadata_schema_5farrow_2eproto.base,}}; - -static void InitDefaultsscc_info_FixedSizeBinaryType_schema_5farrow_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::schema_proto::_FixedSizeBinaryType_default_instance_; - new (ptr) ::schema_proto::FixedSizeBinaryType(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::schema_proto::FixedSizeBinaryType::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_FixedSizeBinaryType_schema_5farrow_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_FixedSizeBinaryType_schema_5farrow_2eproto}, {}}; - -static void InitDefaultsscc_info_FixedSizeListType_schema_5farrow_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::schema_proto::_FixedSizeListType_default_instance_; - new (ptr) ::schema_proto::FixedSizeListType(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::schema_proto::FixedSizeListType::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_FixedSizeListType_schema_5farrow_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_FixedSizeListType_schema_5farrow_2eproto}, {}}; - -static void InitDefaultsscc_info_KeyValueMetadata_schema_5farrow_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::schema_proto::_KeyValueMetadata_default_instance_; - new (ptr) ::schema_proto::KeyValueMetadata(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::schema_proto::KeyValueMetadata::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_KeyValueMetadata_schema_5farrow_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_KeyValueMetadata_schema_5farrow_2eproto}, {}}; - -static void InitDefaultsscc_info_MapType_schema_5farrow_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::schema_proto::_MapType_default_instance_; - new (ptr) ::schema_proto::MapType(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::schema_proto::MapType::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_MapType_schema_5farrow_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_MapType_schema_5farrow_2eproto}, {}}; - -static void InitDefaultsscc_info_Schema_schema_5farrow_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::schema_proto::_Schema_default_instance_; - new (ptr) ::schema_proto::Schema(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::schema_proto::Schema::InitAsDefaultInstance(); -} -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Schema_schema_5farrow_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, 0, InitDefaultsscc_info_Schema_schema_5farrow_2eproto}, { - &scc_info_ArrowSchema_schema_5farrow_2eproto.base, - &scc_info_SchemaOptions_schema_5farrow_2eproto.base,}}; +PROTOBUF_PRAGMA_INIT_SEG -static void InitDefaultsscc_info_SchemaOptions_schema_5farrow_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; +namespace _pb = ::PROTOBUF_NAMESPACE_ID; +namespace _pbi = _pb::internal; - { - void* ptr = &::schema_proto::_SchemaOptions_default_instance_; - new (ptr) ::schema_proto::SchemaOptions(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::schema_proto::SchemaOptions::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SchemaOptions_schema_5farrow_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_SchemaOptions_schema_5farrow_2eproto}, {}}; - -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_schema_5farrow_2eproto[10]; -static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_schema_5farrow_2eproto[2]; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_schema_5farrow_2eproto = nullptr; +namespace schema_proto { +PROTOBUF_CONSTEXPR FixedSizeBinaryType::FixedSizeBinaryType( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.byte_width_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct FixedSizeBinaryTypeDefaultTypeInternal { + PROTOBUF_CONSTEXPR FixedSizeBinaryTypeDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~FixedSizeBinaryTypeDefaultTypeInternal() {} + union { + FixedSizeBinaryType _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FixedSizeBinaryTypeDefaultTypeInternal _FixedSizeBinaryType_default_instance_; +PROTOBUF_CONSTEXPR FixedSizeListType::FixedSizeListType( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.list_size_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct FixedSizeListTypeDefaultTypeInternal { + PROTOBUF_CONSTEXPR FixedSizeListTypeDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~FixedSizeListTypeDefaultTypeInternal() {} + union { + FixedSizeListType _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FixedSizeListTypeDefaultTypeInternal _FixedSizeListType_default_instance_; +PROTOBUF_CONSTEXPR DictionaryType::DictionaryType( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.index_type_)*/nullptr + , /*decltype(_impl_.value_type_)*/nullptr + , /*decltype(_impl_.ordered_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct DictionaryTypeDefaultTypeInternal { + PROTOBUF_CONSTEXPR DictionaryTypeDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DictionaryTypeDefaultTypeInternal() {} + union { + DictionaryType _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DictionaryTypeDefaultTypeInternal _DictionaryType_default_instance_; +PROTOBUF_CONSTEXPR MapType::MapType( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.keys_sorted_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct MapTypeDefaultTypeInternal { + PROTOBUF_CONSTEXPR MapTypeDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~MapTypeDefaultTypeInternal() {} + union { + MapType _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MapTypeDefaultTypeInternal _MapType_default_instance_; +PROTOBUF_CONSTEXPR DataType::DataType( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.children_)*/{} + , /*decltype(_impl_.logic_type_)*/0 + , /*decltype(_impl_.type_related_values_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} +struct DataTypeDefaultTypeInternal { + PROTOBUF_CONSTEXPR DataTypeDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DataTypeDefaultTypeInternal() {} + union { + DataType _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DataTypeDefaultTypeInternal _DataType_default_instance_; +PROTOBUF_CONSTEXPR KeyValueMetadata::KeyValueMetadata( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.keys_)*/{} + , /*decltype(_impl_.values_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct KeyValueMetadataDefaultTypeInternal { + PROTOBUF_CONSTEXPR KeyValueMetadataDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~KeyValueMetadataDefaultTypeInternal() {} + union { + KeyValueMetadata _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KeyValueMetadataDefaultTypeInternal _KeyValueMetadata_default_instance_; +PROTOBUF_CONSTEXPR Field::Field( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.data_type_)*/nullptr + , /*decltype(_impl_.metadata_)*/nullptr + , /*decltype(_impl_.nullable_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct FieldDefaultTypeInternal { + PROTOBUF_CONSTEXPR FieldDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~FieldDefaultTypeInternal() {} + union { + Field _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FieldDefaultTypeInternal _Field_default_instance_; +PROTOBUF_CONSTEXPR SchemaOptions::SchemaOptions( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.primary_column_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.version_column_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.vector_column_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct SchemaOptionsDefaultTypeInternal { + PROTOBUF_CONSTEXPR SchemaOptionsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SchemaOptionsDefaultTypeInternal() {} + union { + SchemaOptions _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SchemaOptionsDefaultTypeInternal _SchemaOptions_default_instance_; +PROTOBUF_CONSTEXPR ArrowSchema::ArrowSchema( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.fields_)*/{} + , /*decltype(_impl_.metadata_)*/nullptr + , /*decltype(_impl_.endianness_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ArrowSchemaDefaultTypeInternal { + PROTOBUF_CONSTEXPR ArrowSchemaDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ArrowSchemaDefaultTypeInternal() {} + union { + ArrowSchema _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ArrowSchemaDefaultTypeInternal _ArrowSchema_default_instance_; +PROTOBUF_CONSTEXPR Schema::Schema( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.arrow_schema_)*/nullptr + , /*decltype(_impl_.schema_options_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct SchemaDefaultTypeInternal { + PROTOBUF_CONSTEXPR SchemaDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SchemaDefaultTypeInternal() {} + union { + Schema _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SchemaDefaultTypeInternal _Schema_default_instance_; +} // namespace schema_proto +static ::_pb::Metadata file_level_metadata_schema_5farrow_2eproto[10]; +static const ::_pb::EnumDescriptor* file_level_enum_descriptors_schema_5farrow_2eproto[2]; +static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_schema_5farrow_2eproto = nullptr; -const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_schema_5farrow_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const uint32_t TableStruct_schema_5farrow_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::schema_proto::FixedSizeBinaryType, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::schema_proto::FixedSizeBinaryType, byte_width_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::schema_proto::FixedSizeBinaryType, _impl_.byte_width_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::schema_proto::FixedSizeListType, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::schema_proto::FixedSizeListType, list_size_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::schema_proto::FixedSizeListType, _impl_.list_size_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::schema_proto::DictionaryType, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::schema_proto::DictionaryType, index_type_), - PROTOBUF_FIELD_OFFSET(::schema_proto::DictionaryType, value_type_), - PROTOBUF_FIELD_OFFSET(::schema_proto::DictionaryType, ordered_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::schema_proto::DictionaryType, _impl_.index_type_), + PROTOBUF_FIELD_OFFSET(::schema_proto::DictionaryType, _impl_.value_type_), + PROTOBUF_FIELD_OFFSET(::schema_proto::DictionaryType, _impl_.ordered_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::schema_proto::MapType, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::schema_proto::MapType, keys_sorted_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::schema_proto::MapType, _impl_.keys_sorted_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::schema_proto::DataType, _internal_metadata_), ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::schema_proto::DataType, _oneof_case_[0]), + PROTOBUF_FIELD_OFFSET(::schema_proto::DataType, _impl_._oneof_case_[0]), ~0u, // no _weak_field_map_ - offsetof(::schema_proto::DataTypeDefaultTypeInternal, fixed_size_binary_type_), - offsetof(::schema_proto::DataTypeDefaultTypeInternal, fixed_size_list_type_), - offsetof(::schema_proto::DataTypeDefaultTypeInternal, dictionary_type_), - offsetof(::schema_proto::DataTypeDefaultTypeInternal, map_type_), - PROTOBUF_FIELD_OFFSET(::schema_proto::DataType, logic_type_), - PROTOBUF_FIELD_OFFSET(::schema_proto::DataType, children_), - PROTOBUF_FIELD_OFFSET(::schema_proto::DataType, type_related_values_), + ~0u, // no _inlined_string_donated_ + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::schema_proto::DataType, _impl_.logic_type_), + PROTOBUF_FIELD_OFFSET(::schema_proto::DataType, _impl_.children_), + PROTOBUF_FIELD_OFFSET(::schema_proto::DataType, _impl_.type_related_values_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::schema_proto::KeyValueMetadata, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::schema_proto::KeyValueMetadata, keys_), - PROTOBUF_FIELD_OFFSET(::schema_proto::KeyValueMetadata, values_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::schema_proto::KeyValueMetadata, _impl_.keys_), + PROTOBUF_FIELD_OFFSET(::schema_proto::KeyValueMetadata, _impl_.values_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::schema_proto::Field, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::schema_proto::Field, name_), - PROTOBUF_FIELD_OFFSET(::schema_proto::Field, nullable_), - PROTOBUF_FIELD_OFFSET(::schema_proto::Field, data_type_), - PROTOBUF_FIELD_OFFSET(::schema_proto::Field, metadata_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::schema_proto::Field, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::schema_proto::Field, _impl_.nullable_), + PROTOBUF_FIELD_OFFSET(::schema_proto::Field, _impl_.data_type_), + PROTOBUF_FIELD_OFFSET(::schema_proto::Field, _impl_.metadata_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::schema_proto::SchemaOptions, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::schema_proto::SchemaOptions, primary_column_), - PROTOBUF_FIELD_OFFSET(::schema_proto::SchemaOptions, version_column_), - PROTOBUF_FIELD_OFFSET(::schema_proto::SchemaOptions, vector_column_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::schema_proto::SchemaOptions, _impl_.primary_column_), + PROTOBUF_FIELD_OFFSET(::schema_proto::SchemaOptions, _impl_.version_column_), + PROTOBUF_FIELD_OFFSET(::schema_proto::SchemaOptions, _impl_.vector_column_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::schema_proto::ArrowSchema, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::schema_proto::ArrowSchema, fields_), - PROTOBUF_FIELD_OFFSET(::schema_proto::ArrowSchema, endianness_), - PROTOBUF_FIELD_OFFSET(::schema_proto::ArrowSchema, metadata_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::schema_proto::ArrowSchema, _impl_.fields_), + PROTOBUF_FIELD_OFFSET(::schema_proto::ArrowSchema, _impl_.endianness_), + PROTOBUF_FIELD_OFFSET(::schema_proto::ArrowSchema, _impl_.metadata_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::schema_proto::Schema, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::schema_proto::Schema, arrow_schema_), - PROTOBUF_FIELD_OFFSET(::schema_proto::Schema, schema_options_), + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::schema_proto::Schema, _impl_.arrow_schema_), + PROTOBUF_FIELD_OFFSET(::schema_proto::Schema, _impl_.schema_options_), }; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::schema_proto::FixedSizeBinaryType)}, - { 6, -1, sizeof(::schema_proto::FixedSizeListType)}, - { 12, -1, sizeof(::schema_proto::DictionaryType)}, - { 20, -1, sizeof(::schema_proto::MapType)}, - { 26, -1, sizeof(::schema_proto::DataType)}, - { 38, -1, sizeof(::schema_proto::KeyValueMetadata)}, - { 45, -1, sizeof(::schema_proto::Field)}, - { 54, -1, sizeof(::schema_proto::SchemaOptions)}, - { 62, -1, sizeof(::schema_proto::ArrowSchema)}, - { 70, -1, sizeof(::schema_proto::Schema)}, +static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::schema_proto::FixedSizeBinaryType)}, + { 7, -1, -1, sizeof(::schema_proto::FixedSizeListType)}, + { 14, -1, -1, sizeof(::schema_proto::DictionaryType)}, + { 23, -1, -1, sizeof(::schema_proto::MapType)}, + { 30, -1, -1, sizeof(::schema_proto::DataType)}, + { 43, -1, -1, sizeof(::schema_proto::KeyValueMetadata)}, + { 51, -1, -1, sizeof(::schema_proto::Field)}, + { 61, -1, -1, sizeof(::schema_proto::SchemaOptions)}, + { 70, -1, -1, sizeof(::schema_proto::ArrowSchema)}, + { 79, -1, -1, sizeof(::schema_proto::Schema)}, }; -static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { - reinterpret_cast(&::schema_proto::_FixedSizeBinaryType_default_instance_), - reinterpret_cast(&::schema_proto::_FixedSizeListType_default_instance_), - reinterpret_cast(&::schema_proto::_DictionaryType_default_instance_), - reinterpret_cast(&::schema_proto::_MapType_default_instance_), - reinterpret_cast(&::schema_proto::_DataType_default_instance_), - reinterpret_cast(&::schema_proto::_KeyValueMetadata_default_instance_), - reinterpret_cast(&::schema_proto::_Field_default_instance_), - reinterpret_cast(&::schema_proto::_SchemaOptions_default_instance_), - reinterpret_cast(&::schema_proto::_ArrowSchema_default_instance_), - reinterpret_cast(&::schema_proto::_Schema_default_instance_), +static const ::_pb::Message* const file_default_instances[] = { + &::schema_proto::_FixedSizeBinaryType_default_instance_._instance, + &::schema_proto::_FixedSizeListType_default_instance_._instance, + &::schema_proto::_DictionaryType_default_instance_._instance, + &::schema_proto::_MapType_default_instance_._instance, + &::schema_proto::_DataType_default_instance_._instance, + &::schema_proto::_KeyValueMetadata_default_instance_._instance, + &::schema_proto::_Field_default_instance_._instance, + &::schema_proto::_SchemaOptions_default_instance_._instance, + &::schema_proto::_ArrowSchema_default_instance_._instance, + &::schema_proto::_Schema_default_instance_._instance, }; const char descriptor_table_protodef_schema_5farrow_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = @@ -348,28 +325,21 @@ const char descriptor_table_protodef_schema_5farrow_2eproto[] PROTOBUF_SECTION_V "MAX_ID\020\'*!\n\nEndianness\022\n\n\006Little\020\000\022\007\n\003Bi" "g\020\001b\006proto3" ; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_schema_5farrow_2eproto_deps[1] = { -}; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_schema_5farrow_2eproto_sccs[8] = { - &scc_info_ArrowSchema_schema_5farrow_2eproto.base, - &scc_info_DataType_schema_5farrow_2eproto.base, - &scc_info_FixedSizeBinaryType_schema_5farrow_2eproto.base, - &scc_info_FixedSizeListType_schema_5farrow_2eproto.base, - &scc_info_KeyValueMetadata_schema_5farrow_2eproto.base, - &scc_info_MapType_schema_5farrow_2eproto.base, - &scc_info_Schema_schema_5farrow_2eproto.base, - &scc_info_SchemaOptions_schema_5farrow_2eproto.base, -}; -static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_schema_5farrow_2eproto_once; -const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_schema_5farrow_2eproto = { - false, false, descriptor_table_protodef_schema_5farrow_2eproto, "schema_arrow.proto", 1491, - &descriptor_table_schema_5farrow_2eproto_once, descriptor_table_schema_5farrow_2eproto_sccs, descriptor_table_schema_5farrow_2eproto_deps, 8, 0, - schemas, file_default_instances, TableStruct_schema_5farrow_2eproto::offsets, - file_level_metadata_schema_5farrow_2eproto, 10, file_level_enum_descriptors_schema_5farrow_2eproto, file_level_service_descriptors_schema_5farrow_2eproto, +static ::_pbi::once_flag descriptor_table_schema_5farrow_2eproto_once; +const ::_pbi::DescriptorTable descriptor_table_schema_5farrow_2eproto = { + false, false, 1491, descriptor_table_protodef_schema_5farrow_2eproto, + "schema_arrow.proto", + &descriptor_table_schema_5farrow_2eproto_once, nullptr, 0, 10, + schemas, file_default_instances, TableStruct_schema_5farrow_2eproto::offsets, + file_level_metadata_schema_5farrow_2eproto, file_level_enum_descriptors_schema_5farrow_2eproto, + file_level_service_descriptors_schema_5farrow_2eproto, }; +PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_schema_5farrow_2eproto_getter() { + return &descriptor_table_schema_5farrow_2eproto; +} // Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_schema_5farrow_2eproto = (static_cast(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_schema_5farrow_2eproto)), true); +PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_schema_5farrow_2eproto(&descriptor_table_schema_5farrow_2eproto); namespace schema_proto { const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* LogicType_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_schema_5farrow_2eproto); @@ -422,115 +392,116 @@ bool Endianness_IsValid(int value) { // =================================================================== -void FixedSizeBinaryType::InitAsDefaultInstance() { -} class FixedSizeBinaryType::_Internal { public: }; -FixedSizeBinaryType::FixedSizeBinaryType(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +FixedSizeBinaryType::FixedSizeBinaryType(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:schema_proto.FixedSizeBinaryType) } FixedSizeBinaryType::FixedSizeBinaryType(const FixedSizeBinaryType& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + FixedSizeBinaryType* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.byte_width_){} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - byte_width_ = from.byte_width_; + _this->_impl_.byte_width_ = from._impl_.byte_width_; // @@protoc_insertion_point(copy_constructor:schema_proto.FixedSizeBinaryType) } -void FixedSizeBinaryType::SharedCtor() { - byte_width_ = 0; +inline void FixedSizeBinaryType::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.byte_width_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; } FixedSizeBinaryType::~FixedSizeBinaryType() { // @@protoc_insertion_point(destructor:schema_proto.FixedSizeBinaryType) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void FixedSizeBinaryType::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void FixedSizeBinaryType::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -void FixedSizeBinaryType::ArenaDtor(void* object) { - FixedSizeBinaryType* _this = reinterpret_cast< FixedSizeBinaryType* >(object); - (void)_this; -} -void FixedSizeBinaryType::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void FixedSizeBinaryType::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const FixedSizeBinaryType& FixedSizeBinaryType::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FixedSizeBinaryType_schema_5farrow_2eproto.base); - return *internal_default_instance(); + _impl_._cached_size_.Set(size); } - void FixedSizeBinaryType::Clear() { // @@protoc_insertion_point(message_clear_start:schema_proto.FixedSizeBinaryType) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - byte_width_ = 0; + _impl_.byte_width_ = 0; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* FixedSizeBinaryType::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* FixedSizeBinaryType::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // int32 byte_width = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - byte_width_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.byte_width_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* FixedSizeBinaryType::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* FixedSizeBinaryType::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:schema_proto.FixedSizeBinaryType) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // int32 byte_width = 1; - if (this->byte_width() != 0) { + if (this->_internal_byte_width() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_byte_width(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_byte_width(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:schema_proto.FixedSizeBinaryType) @@ -541,58 +512,37 @@ size_t FixedSizeBinaryType::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:schema_proto.FixedSizeBinaryType) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // int32 byte_width = 1; - if (this->byte_width() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - this->_internal_byte_width()); + if (this->_internal_byte_width() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_byte_width()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void FixedSizeBinaryType::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:schema_proto.FixedSizeBinaryType) - GOOGLE_DCHECK_NE(&from, this); - const FixedSizeBinaryType* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:schema_proto.FixedSizeBinaryType) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:schema_proto.FixedSizeBinaryType) - MergeFrom(*source); - } -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FixedSizeBinaryType::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + FixedSizeBinaryType::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FixedSizeBinaryType::GetClassData() const { return &_class_data_; } -void FixedSizeBinaryType::MergeFrom(const FixedSizeBinaryType& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:schema_proto.FixedSizeBinaryType) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + +void FixedSizeBinaryType::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:schema_proto.FixedSizeBinaryType) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.byte_width() != 0) { - _internal_set_byte_width(from._internal_byte_width()); + if (from._internal_byte_width() != 0) { + _this->_internal_set_byte_width(from._internal_byte_width()); } -} - -void FixedSizeBinaryType::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:schema_proto.FixedSizeBinaryType) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void FixedSizeBinaryType::CopyFrom(const FixedSizeBinaryType& from) { @@ -608,126 +558,128 @@ bool FixedSizeBinaryType::IsInitialized() const { void FixedSizeBinaryType::InternalSwap(FixedSizeBinaryType* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(byte_width_, other->byte_width_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.byte_width_, other->_impl_.byte_width_); } ::PROTOBUF_NAMESPACE_ID::Metadata FixedSizeBinaryType::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_schema_5farrow_2eproto_getter, &descriptor_table_schema_5farrow_2eproto_once, + file_level_metadata_schema_5farrow_2eproto[0]); } - // =================================================================== -void FixedSizeListType::InitAsDefaultInstance() { -} class FixedSizeListType::_Internal { public: }; -FixedSizeListType::FixedSizeListType(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +FixedSizeListType::FixedSizeListType(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:schema_proto.FixedSizeListType) } FixedSizeListType::FixedSizeListType(const FixedSizeListType& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + FixedSizeListType* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.list_size_){} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - list_size_ = from.list_size_; + _this->_impl_.list_size_ = from._impl_.list_size_; // @@protoc_insertion_point(copy_constructor:schema_proto.FixedSizeListType) } -void FixedSizeListType::SharedCtor() { - list_size_ = 0; +inline void FixedSizeListType::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.list_size_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; } FixedSizeListType::~FixedSizeListType() { // @@protoc_insertion_point(destructor:schema_proto.FixedSizeListType) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void FixedSizeListType::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void FixedSizeListType::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -void FixedSizeListType::ArenaDtor(void* object) { - FixedSizeListType* _this = reinterpret_cast< FixedSizeListType* >(object); - (void)_this; -} -void FixedSizeListType::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void FixedSizeListType::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const FixedSizeListType& FixedSizeListType::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FixedSizeListType_schema_5farrow_2eproto.base); - return *internal_default_instance(); + _impl_._cached_size_.Set(size); } - void FixedSizeListType::Clear() { // @@protoc_insertion_point(message_clear_start:schema_proto.FixedSizeListType) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - list_size_ = 0; + _impl_.list_size_ = 0; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* FixedSizeListType::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* FixedSizeListType::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // int32 list_size = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - list_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.list_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* FixedSizeListType::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* FixedSizeListType::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:schema_proto.FixedSizeListType) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // int32 list_size = 1; - if (this->list_size() != 0) { + if (this->_internal_list_size() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_list_size(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_list_size(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:schema_proto.FixedSizeListType) @@ -738,58 +690,37 @@ size_t FixedSizeListType::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:schema_proto.FixedSizeListType) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // int32 list_size = 1; - if (this->list_size() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - this->_internal_list_size()); + if (this->_internal_list_size() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_list_size()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void FixedSizeListType::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:schema_proto.FixedSizeListType) - GOOGLE_DCHECK_NE(&from, this); - const FixedSizeListType* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:schema_proto.FixedSizeListType) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:schema_proto.FixedSizeListType) - MergeFrom(*source); - } -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FixedSizeListType::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + FixedSizeListType::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FixedSizeListType::GetClassData() const { return &_class_data_; } -void FixedSizeListType::MergeFrom(const FixedSizeListType& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:schema_proto.FixedSizeListType) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + +void FixedSizeListType::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:schema_proto.FixedSizeListType) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.list_size() != 0) { - _internal_set_list_size(from._internal_list_size()); + if (from._internal_list_size() != 0) { + _this->_internal_set_list_size(from._internal_list_size()); } -} - -void FixedSizeListType::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:schema_proto.FixedSizeListType) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void FixedSizeListType::CopyFrom(const FixedSizeListType& from) { @@ -805,23 +736,18 @@ bool FixedSizeListType::IsInitialized() const { void FixedSizeListType::InternalSwap(FixedSizeListType* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(list_size_, other->list_size_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.list_size_, other->_impl_.list_size_); } ::PROTOBUF_NAMESPACE_ID::Metadata FixedSizeListType::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_schema_5farrow_2eproto_getter, &descriptor_table_schema_5farrow_2eproto_once, + file_level_metadata_schema_5farrow_2eproto[1]); } - // =================================================================== -void DictionaryType::InitAsDefaultInstance() { - ::schema_proto::_DictionaryType_default_instance_._instance.get_mutable()->index_type_ = const_cast< ::schema_proto::DataType*>( - ::schema_proto::DataType::internal_default_instance()); - ::schema_proto::_DictionaryType_default_instance_._instance.get_mutable()->value_type_ = const_cast< ::schema_proto::DataType*>( - ::schema_proto::DataType::internal_default_instance()); -} class DictionaryType::_Internal { public: static const ::schema_proto::DataType& index_type(const DictionaryType* msg); @@ -830,168 +756,168 @@ class DictionaryType::_Internal { const ::schema_proto::DataType& DictionaryType::_Internal::index_type(const DictionaryType* msg) { - return *msg->index_type_; + return *msg->_impl_.index_type_; } const ::schema_proto::DataType& DictionaryType::_Internal::value_type(const DictionaryType* msg) { - return *msg->value_type_; + return *msg->_impl_.value_type_; } -DictionaryType::DictionaryType(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +DictionaryType::DictionaryType(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:schema_proto.DictionaryType) } DictionaryType::DictionaryType(const DictionaryType& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + DictionaryType* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.index_type_){nullptr} + , decltype(_impl_.value_type_){nullptr} + , decltype(_impl_.ordered_){} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_index_type()) { - index_type_ = new ::schema_proto::DataType(*from.index_type_); - } else { - index_type_ = nullptr; + _this->_impl_.index_type_ = new ::schema_proto::DataType(*from._impl_.index_type_); } if (from._internal_has_value_type()) { - value_type_ = new ::schema_proto::DataType(*from.value_type_); - } else { - value_type_ = nullptr; + _this->_impl_.value_type_ = new ::schema_proto::DataType(*from._impl_.value_type_); } - ordered_ = from.ordered_; + _this->_impl_.ordered_ = from._impl_.ordered_; // @@protoc_insertion_point(copy_constructor:schema_proto.DictionaryType) } -void DictionaryType::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DataType_schema_5farrow_2eproto.base); - ::memset(&index_type_, 0, static_cast( - reinterpret_cast(&ordered_) - - reinterpret_cast(&index_type_)) + sizeof(ordered_)); +inline void DictionaryType::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.index_type_){nullptr} + , decltype(_impl_.value_type_){nullptr} + , decltype(_impl_.ordered_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; } DictionaryType::~DictionaryType() { // @@protoc_insertion_point(destructor:schema_proto.DictionaryType) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void DictionaryType::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete index_type_; - if (this != internal_default_instance()) delete value_type_; +inline void DictionaryType::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.index_type_; + if (this != internal_default_instance()) delete _impl_.value_type_; } -void DictionaryType::ArenaDtor(void* object) { - DictionaryType* _this = reinterpret_cast< DictionaryType* >(object); - (void)_this; -} -void DictionaryType::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void DictionaryType::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const DictionaryType& DictionaryType::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DataType_schema_5farrow_2eproto.base); - return *internal_default_instance(); + _impl_._cached_size_.Set(size); } - void DictionaryType::Clear() { // @@protoc_insertion_point(message_clear_start:schema_proto.DictionaryType) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArena() == nullptr && index_type_ != nullptr) { - delete index_type_; + if (GetArenaForAllocation() == nullptr && _impl_.index_type_ != nullptr) { + delete _impl_.index_type_; } - index_type_ = nullptr; - if (GetArena() == nullptr && value_type_ != nullptr) { - delete value_type_; + _impl_.index_type_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.value_type_ != nullptr) { + delete _impl_.value_type_; } - value_type_ = nullptr; - ordered_ = false; + _impl_.value_type_ = nullptr; + _impl_.ordered_ = false; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* DictionaryType::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* DictionaryType::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .schema_proto.DataType index_type = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_index_type(), ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // .schema_proto.DataType value_type = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_value_type(), ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // bool ordered = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - ordered_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _impl_.ordered_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* DictionaryType::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* DictionaryType::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:schema_proto.DictionaryType) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // .schema_proto.DataType index_type = 1; - if (this->has_index_type()) { - target = stream->EnsureSpace(target); + if (this->_internal_has_index_type()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::index_type(this), target, stream); + InternalWriteMessage(1, _Internal::index_type(this), + _Internal::index_type(this).GetCachedSize(), target, stream); } // .schema_proto.DataType value_type = 2; - if (this->has_value_type()) { - target = stream->EnsureSpace(target); + if (this->_internal_has_value_type()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::value_type(this), target, stream); + InternalWriteMessage(2, _Internal::value_type(this), + _Internal::value_type(this).GetCachedSize(), target, stream); } // bool ordered = 3; - if (this->ordered() != 0) { + if (this->_internal_ordered() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->_internal_ordered(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_ordered(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:schema_proto.DictionaryType) @@ -1002,76 +928,59 @@ size_t DictionaryType::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:schema_proto.DictionaryType) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .schema_proto.DataType index_type = 1; - if (this->has_index_type()) { + if (this->_internal_has_index_type()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *index_type_); + *_impl_.index_type_); } // .schema_proto.DataType value_type = 2; - if (this->has_value_type()) { + if (this->_internal_has_value_type()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *value_type_); + *_impl_.value_type_); } // bool ordered = 3; - if (this->ordered() != 0) { + if (this->_internal_ordered() != 0) { total_size += 1 + 1; } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void DictionaryType::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:schema_proto.DictionaryType) - GOOGLE_DCHECK_NE(&from, this); - const DictionaryType* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:schema_proto.DictionaryType) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:schema_proto.DictionaryType) - MergeFrom(*source); - } -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DictionaryType::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + DictionaryType::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DictionaryType::GetClassData() const { return &_class_data_; } -void DictionaryType::MergeFrom(const DictionaryType& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:schema_proto.DictionaryType) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + +void DictionaryType::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:schema_proto.DictionaryType) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.has_index_type()) { - _internal_mutable_index_type()->::schema_proto::DataType::MergeFrom(from._internal_index_type()); + if (from._internal_has_index_type()) { + _this->_internal_mutable_index_type()->::schema_proto::DataType::MergeFrom( + from._internal_index_type()); } - if (from.has_value_type()) { - _internal_mutable_value_type()->::schema_proto::DataType::MergeFrom(from._internal_value_type()); + if (from._internal_has_value_type()) { + _this->_internal_mutable_value_type()->::schema_proto::DataType::MergeFrom( + from._internal_value_type()); } - if (from.ordered() != 0) { - _internal_set_ordered(from._internal_ordered()); + if (from._internal_ordered() != 0) { + _this->_internal_set_ordered(from._internal_ordered()); } -} - -void DictionaryType::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:schema_proto.DictionaryType) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void DictionaryType::CopyFrom(const DictionaryType& from) { @@ -1087,131 +996,133 @@ bool DictionaryType::IsInitialized() const { void DictionaryType::InternalSwap(DictionaryType* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(DictionaryType, ordered_) - + sizeof(DictionaryType::ordered_) - - PROTOBUF_FIELD_OFFSET(DictionaryType, index_type_)>( - reinterpret_cast(&index_type_), - reinterpret_cast(&other->index_type_)); + PROTOBUF_FIELD_OFFSET(DictionaryType, _impl_.ordered_) + + sizeof(DictionaryType::_impl_.ordered_) + - PROTOBUF_FIELD_OFFSET(DictionaryType, _impl_.index_type_)>( + reinterpret_cast(&_impl_.index_type_), + reinterpret_cast(&other->_impl_.index_type_)); } ::PROTOBUF_NAMESPACE_ID::Metadata DictionaryType::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_schema_5farrow_2eproto_getter, &descriptor_table_schema_5farrow_2eproto_once, + file_level_metadata_schema_5farrow_2eproto[2]); } - // =================================================================== -void MapType::InitAsDefaultInstance() { -} class MapType::_Internal { public: }; -MapType::MapType(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +MapType::MapType(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:schema_proto.MapType) } MapType::MapType(const MapType& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + MapType* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.keys_sorted_){} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - keys_sorted_ = from.keys_sorted_; + _this->_impl_.keys_sorted_ = from._impl_.keys_sorted_; // @@protoc_insertion_point(copy_constructor:schema_proto.MapType) } -void MapType::SharedCtor() { - keys_sorted_ = false; +inline void MapType::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.keys_sorted_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; } MapType::~MapType() { // @@protoc_insertion_point(destructor:schema_proto.MapType) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void MapType::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void MapType::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -void MapType::ArenaDtor(void* object) { - MapType* _this = reinterpret_cast< MapType* >(object); - (void)_this; -} -void MapType::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void MapType::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } -const MapType& MapType::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MapType_schema_5farrow_2eproto.base); - return *internal_default_instance(); -} - void MapType::Clear() { // @@protoc_insertion_point(message_clear_start:schema_proto.MapType) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - keys_sorted_ = false; + _impl_.keys_sorted_ = false; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* MapType::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* MapType::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // bool keys_sorted = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - keys_sorted_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.keys_sorted_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* MapType::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* MapType::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:schema_proto.MapType) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // bool keys_sorted = 1; - if (this->keys_sorted() != 0) { + if (this->_internal_keys_sorted() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_keys_sorted(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_keys_sorted(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:schema_proto.MapType) @@ -1222,56 +1133,37 @@ size_t MapType::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:schema_proto.MapType) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // bool keys_sorted = 1; - if (this->keys_sorted() != 0) { + if (this->_internal_keys_sorted() != 0) { total_size += 1 + 1; } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void MapType::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:schema_proto.MapType) - GOOGLE_DCHECK_NE(&from, this); - const MapType* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:schema_proto.MapType) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:schema_proto.MapType) - MergeFrom(*source); - } -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MapType::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + MapType::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MapType::GetClassData() const { return &_class_data_; } -void MapType::MergeFrom(const MapType& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:schema_proto.MapType) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + +void MapType::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:schema_proto.MapType) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.keys_sorted() != 0) { - _internal_set_keys_sorted(from._internal_keys_sorted()); + if (from._internal_keys_sorted() != 0) { + _this->_internal_set_keys_sorted(from._internal_keys_sorted()); } -} - -void MapType::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:schema_proto.MapType) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MapType::CopyFrom(const MapType& from) { @@ -1287,27 +1179,18 @@ bool MapType::IsInitialized() const { void MapType::InternalSwap(MapType* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - swap(keys_sorted_, other->keys_sorted_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.keys_sorted_, other->_impl_.keys_sorted_); } ::PROTOBUF_NAMESPACE_ID::Metadata MapType::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_schema_5farrow_2eproto_getter, &descriptor_table_schema_5farrow_2eproto_once, + file_level_metadata_schema_5farrow_2eproto[3]); } - // =================================================================== -void DataType::InitAsDefaultInstance() { - ::schema_proto::_DataType_default_instance_.fixed_size_binary_type_ = const_cast< ::schema_proto::FixedSizeBinaryType*>( - ::schema_proto::FixedSizeBinaryType::internal_default_instance()); - ::schema_proto::_DataType_default_instance_.fixed_size_list_type_ = const_cast< ::schema_proto::FixedSizeListType*>( - ::schema_proto::FixedSizeListType::internal_default_instance()); - ::schema_proto::_DataType_default_instance_.dictionary_type_ = const_cast< ::schema_proto::DictionaryType*>( - ::schema_proto::DictionaryType::internal_default_instance()); - ::schema_proto::_DataType_default_instance_.map_type_ = const_cast< ::schema_proto::MapType*>( - ::schema_proto::MapType::internal_default_instance()); -} class DataType::_Internal { public: static const ::schema_proto::FixedSizeBinaryType& fixed_size_binary_type(const DataType* msg); @@ -1318,108 +1201,118 @@ class DataType::_Internal { const ::schema_proto::FixedSizeBinaryType& DataType::_Internal::fixed_size_binary_type(const DataType* msg) { - return *msg->type_related_values_.fixed_size_binary_type_; + return *msg->_impl_.type_related_values_.fixed_size_binary_type_; } const ::schema_proto::FixedSizeListType& DataType::_Internal::fixed_size_list_type(const DataType* msg) { - return *msg->type_related_values_.fixed_size_list_type_; + return *msg->_impl_.type_related_values_.fixed_size_list_type_; } const ::schema_proto::DictionaryType& DataType::_Internal::dictionary_type(const DataType* msg) { - return *msg->type_related_values_.dictionary_type_; + return *msg->_impl_.type_related_values_.dictionary_type_; } const ::schema_proto::MapType& DataType::_Internal::map_type(const DataType* msg) { - return *msg->type_related_values_.map_type_; + return *msg->_impl_.type_related_values_.map_type_; } void DataType::set_allocated_fixed_size_binary_type(::schema_proto::FixedSizeBinaryType* fixed_size_binary_type) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_type_related_values(); if (fixed_size_binary_type) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(fixed_size_binary_type); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(fixed_size_binary_type); if (message_arena != submessage_arena) { fixed_size_binary_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, fixed_size_binary_type, submessage_arena); } set_has_fixed_size_binary_type(); - type_related_values_.fixed_size_binary_type_ = fixed_size_binary_type; + _impl_.type_related_values_.fixed_size_binary_type_ = fixed_size_binary_type; } // @@protoc_insertion_point(field_set_allocated:schema_proto.DataType.fixed_size_binary_type) } void DataType::set_allocated_fixed_size_list_type(::schema_proto::FixedSizeListType* fixed_size_list_type) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_type_related_values(); if (fixed_size_list_type) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(fixed_size_list_type); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(fixed_size_list_type); if (message_arena != submessage_arena) { fixed_size_list_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, fixed_size_list_type, submessage_arena); } set_has_fixed_size_list_type(); - type_related_values_.fixed_size_list_type_ = fixed_size_list_type; + _impl_.type_related_values_.fixed_size_list_type_ = fixed_size_list_type; } // @@protoc_insertion_point(field_set_allocated:schema_proto.DataType.fixed_size_list_type) } void DataType::set_allocated_dictionary_type(::schema_proto::DictionaryType* dictionary_type) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_type_related_values(); if (dictionary_type) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(dictionary_type); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(dictionary_type); if (message_arena != submessage_arena) { dictionary_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, dictionary_type, submessage_arena); } set_has_dictionary_type(); - type_related_values_.dictionary_type_ = dictionary_type; + _impl_.type_related_values_.dictionary_type_ = dictionary_type; } // @@protoc_insertion_point(field_set_allocated:schema_proto.DataType.dictionary_type) } void DataType::set_allocated_map_type(::schema_proto::MapType* map_type) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_type_related_values(); if (map_type) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(map_type); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(map_type); if (message_arena != submessage_arena) { map_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, map_type, submessage_arena); } set_has_map_type(); - type_related_values_.map_type_ = map_type; + _impl_.type_related_values_.map_type_ = map_type; } // @@protoc_insertion_point(field_set_allocated:schema_proto.DataType.map_type) } -DataType::DataType(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - children_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +DataType::DataType(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:schema_proto.DataType) } DataType::DataType(const DataType& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - children_(from.children_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + DataType* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.children_){from._impl_.children_} + , decltype(_impl_.logic_type_){} + , decltype(_impl_.type_related_values_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - logic_type_ = from.logic_type_; + _this->_impl_.logic_type_ = from._impl_.logic_type_; clear_has_type_related_values(); switch (from.type_related_values_case()) { case kFixedSizeBinaryType: { - _internal_mutable_fixed_size_binary_type()->::schema_proto::FixedSizeBinaryType::MergeFrom(from._internal_fixed_size_binary_type()); + _this->_internal_mutable_fixed_size_binary_type()->::schema_proto::FixedSizeBinaryType::MergeFrom( + from._internal_fixed_size_binary_type()); break; } case kFixedSizeListType: { - _internal_mutable_fixed_size_list_type()->::schema_proto::FixedSizeListType::MergeFrom(from._internal_fixed_size_list_type()); + _this->_internal_mutable_fixed_size_list_type()->::schema_proto::FixedSizeListType::MergeFrom( + from._internal_fixed_size_list_type()); break; } case kDictionaryType: { - _internal_mutable_dictionary_type()->::schema_proto::DictionaryType::MergeFrom(from._internal_dictionary_type()); + _this->_internal_mutable_dictionary_type()->::schema_proto::DictionaryType::MergeFrom( + from._internal_dictionary_type()); break; } case kMapType: { - _internal_mutable_map_type()->::schema_proto::MapType::MergeFrom(from._internal_map_type()); + _this->_internal_mutable_map_type()->::schema_proto::MapType::MergeFrom( + from._internal_map_type()); break; } case TYPE_RELATED_VALUES_NOT_SET: { @@ -1429,64 +1322,65 @@ DataType::DataType(const DataType& from) // @@protoc_insertion_point(copy_constructor:schema_proto.DataType) } -void DataType::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DataType_schema_5farrow_2eproto.base); - logic_type_ = 0; +inline void DataType::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.children_){arena} + , decltype(_impl_.logic_type_){0} + , decltype(_impl_.type_related_values_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{} + }; clear_has_type_related_values(); } DataType::~DataType() { // @@protoc_insertion_point(destructor:schema_proto.DataType) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void DataType::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void DataType::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.children_.~RepeatedPtrField(); if (has_type_related_values()) { clear_type_related_values(); } } -void DataType::ArenaDtor(void* object) { - DataType* _this = reinterpret_cast< DataType* >(object); - (void)_this; -} -void DataType::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void DataType::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const DataType& DataType::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DataType_schema_5farrow_2eproto.base); - return *internal_default_instance(); + _impl_._cached_size_.Set(size); } - void DataType::clear_type_related_values() { // @@protoc_insertion_point(one_of_clear_start:schema_proto.DataType) switch (type_related_values_case()) { case kFixedSizeBinaryType: { - if (GetArena() == nullptr) { - delete type_related_values_.fixed_size_binary_type_; + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_related_values_.fixed_size_binary_type_; } break; } case kFixedSizeListType: { - if (GetArena() == nullptr) { - delete type_related_values_.fixed_size_list_type_; + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_related_values_.fixed_size_list_type_; } break; } case kDictionaryType: { - if (GetArena() == nullptr) { - delete type_related_values_.dictionary_type_; + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_related_values_.dictionary_type_; } break; } case kMapType: { - if (GetArena() == nullptr) { - delete type_related_values_.map_type_; + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_related_values_.map_type_; } break; } @@ -1494,69 +1388,72 @@ void DataType::clear_type_related_values() { break; } } - _oneof_case_[0] = TYPE_RELATED_VALUES_NOT_SET; + _impl_._oneof_case_[0] = TYPE_RELATED_VALUES_NOT_SET; } void DataType::Clear() { // @@protoc_insertion_point(message_clear_start:schema_proto.DataType) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - children_.Clear(); - logic_type_ = 0; + _impl_.children_.Clear(); + _impl_.logic_type_ = 0; clear_type_related_values(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* DataType::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* DataType::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .schema_proto.FixedSizeBinaryType fixed_size_binary_type = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_fixed_size_binary_type(), ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // .schema_proto.FixedSizeListType fixed_size_list_type = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_fixed_size_list_type(), ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // .schema_proto.DictionaryType dictionary_type = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { ptr = ctx->ParseMessage(_internal_mutable_dictionary_type(), ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // .schema_proto.MapType map_type = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { ptr = ctx->ParseMessage(_internal_mutable_map_type(), ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // .schema_proto.LogicType logic_type = 100; case 100: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); _internal_set_logic_type(static_cast<::schema_proto::LogicType>(val)); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // repeated .schema_proto.Field children = 101; case 101: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { ptr -= 2; do { ptr += 2; @@ -1564,85 +1461,83 @@ const char* DataType::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::i CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<810>(ptr)); - } else goto handle_unusual; + } else + goto handle_unusual; continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* DataType::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* DataType::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:schema_proto.DataType) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // .schema_proto.FixedSizeBinaryType fixed_size_binary_type = 1; if (_internal_has_fixed_size_binary_type()) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::fixed_size_binary_type(this), target, stream); + InternalWriteMessage(1, _Internal::fixed_size_binary_type(this), + _Internal::fixed_size_binary_type(this).GetCachedSize(), target, stream); } // .schema_proto.FixedSizeListType fixed_size_list_type = 2; if (_internal_has_fixed_size_list_type()) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::fixed_size_list_type(this), target, stream); + InternalWriteMessage(2, _Internal::fixed_size_list_type(this), + _Internal::fixed_size_list_type(this).GetCachedSize(), target, stream); } // .schema_proto.DictionaryType dictionary_type = 3; if (_internal_has_dictionary_type()) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::dictionary_type(this), target, stream); + InternalWriteMessage(3, _Internal::dictionary_type(this), + _Internal::dictionary_type(this).GetCachedSize(), target, stream); } // .schema_proto.MapType map_type = 4; if (_internal_has_map_type()) { - target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 4, _Internal::map_type(this), target, stream); + InternalWriteMessage(4, _Internal::map_type(this), + _Internal::map_type(this).GetCachedSize(), target, stream); } // .schema_proto.LogicType logic_type = 100; - if (this->logic_type() != 0) { + if (this->_internal_logic_type() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 100, this->_internal_logic_type(), target); } // repeated .schema_proto.Field children = 101; - for (unsigned int i = 0, - n = static_cast(this->_internal_children_size()); i < n; i++) { - target = stream->EnsureSpace(target); + for (unsigned i = 0, + n = static_cast(this->_internal_children_size()); i < n; i++) { + const auto& repfield = this->_internal_children(i); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(101, this->_internal_children(i), target, stream); + InternalWriteMessage(101, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:schema_proto.DataType) @@ -1653,21 +1548,21 @@ size_t DataType::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:schema_proto.DataType) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .schema_proto.Field children = 101; total_size += 2UL * this->_internal_children_size(); - for (const auto& msg : this->children_) { + for (const auto& msg : this->_impl_.children_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } // .schema_proto.LogicType logic_type = 100; - if (this->logic_type() != 0) { + if (this->_internal_logic_type() != 0) { total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_logic_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_logic_type()); } switch (type_related_values_case()) { @@ -1675,97 +1570,82 @@ size_t DataType::ByteSizeLong() const { case kFixedSizeBinaryType: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *type_related_values_.fixed_size_binary_type_); + *_impl_.type_related_values_.fixed_size_binary_type_); break; } // .schema_proto.FixedSizeListType fixed_size_list_type = 2; case kFixedSizeListType: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *type_related_values_.fixed_size_list_type_); + *_impl_.type_related_values_.fixed_size_list_type_); break; } // .schema_proto.DictionaryType dictionary_type = 3; case kDictionaryType: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *type_related_values_.dictionary_type_); + *_impl_.type_related_values_.dictionary_type_); break; } // .schema_proto.MapType map_type = 4; case kMapType: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *type_related_values_.map_type_); + *_impl_.type_related_values_.map_type_); break; } case TYPE_RELATED_VALUES_NOT_SET: { break; } } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void DataType::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:schema_proto.DataType) - GOOGLE_DCHECK_NE(&from, this); - const DataType* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:schema_proto.DataType) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:schema_proto.DataType) - MergeFrom(*source); - } -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DataType::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + DataType::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DataType::GetClassData() const { return &_class_data_; } -void DataType::MergeFrom(const DataType& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:schema_proto.DataType) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + +void DataType::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:schema_proto.DataType) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - children_.MergeFrom(from.children_); - if (from.logic_type() != 0) { - _internal_set_logic_type(from._internal_logic_type()); + _this->_impl_.children_.MergeFrom(from._impl_.children_); + if (from._internal_logic_type() != 0) { + _this->_internal_set_logic_type(from._internal_logic_type()); } switch (from.type_related_values_case()) { case kFixedSizeBinaryType: { - _internal_mutable_fixed_size_binary_type()->::schema_proto::FixedSizeBinaryType::MergeFrom(from._internal_fixed_size_binary_type()); + _this->_internal_mutable_fixed_size_binary_type()->::schema_proto::FixedSizeBinaryType::MergeFrom( + from._internal_fixed_size_binary_type()); break; } case kFixedSizeListType: { - _internal_mutable_fixed_size_list_type()->::schema_proto::FixedSizeListType::MergeFrom(from._internal_fixed_size_list_type()); + _this->_internal_mutable_fixed_size_list_type()->::schema_proto::FixedSizeListType::MergeFrom( + from._internal_fixed_size_list_type()); break; } case kDictionaryType: { - _internal_mutable_dictionary_type()->::schema_proto::DictionaryType::MergeFrom(from._internal_dictionary_type()); + _this->_internal_mutable_dictionary_type()->::schema_proto::DictionaryType::MergeFrom( + from._internal_dictionary_type()); break; } case kMapType: { - _internal_mutable_map_type()->::schema_proto::MapType::MergeFrom(from._internal_map_type()); + _this->_internal_mutable_map_type()->::schema_proto::MapType::MergeFrom( + from._internal_map_type()); break; } case TYPE_RELATED_VALUES_NOT_SET: { break; } } -} - -void DataType::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:schema_proto.DataType) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void DataType::CopyFrom(const DataType& from) { @@ -1781,144 +1661,147 @@ bool DataType::IsInitialized() const { void DataType::InternalSwap(DataType* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - children_.InternalSwap(&other->children_); - swap(logic_type_, other->logic_type_); - swap(type_related_values_, other->type_related_values_); - swap(_oneof_case_[0], other->_oneof_case_[0]); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.children_.InternalSwap(&other->_impl_.children_); + swap(_impl_.logic_type_, other->_impl_.logic_type_); + swap(_impl_.type_related_values_, other->_impl_.type_related_values_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } ::PROTOBUF_NAMESPACE_ID::Metadata DataType::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_schema_5farrow_2eproto_getter, &descriptor_table_schema_5farrow_2eproto_once, + file_level_metadata_schema_5farrow_2eproto[4]); } - // =================================================================== -void KeyValueMetadata::InitAsDefaultInstance() { -} class KeyValueMetadata::_Internal { public: }; -KeyValueMetadata::KeyValueMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - keys_(arena), - values_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +KeyValueMetadata::KeyValueMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:schema_proto.KeyValueMetadata) } KeyValueMetadata::KeyValueMetadata(const KeyValueMetadata& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - keys_(from.keys_), - values_(from.values_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + KeyValueMetadata* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.keys_){from._impl_.keys_} + , decltype(_impl_.values_){from._impl_.values_} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:schema_proto.KeyValueMetadata) } -void KeyValueMetadata::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_KeyValueMetadata_schema_5farrow_2eproto.base); +inline void KeyValueMetadata::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.keys_){arena} + , decltype(_impl_.values_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; } KeyValueMetadata::~KeyValueMetadata() { // @@protoc_insertion_point(destructor:schema_proto.KeyValueMetadata) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void KeyValueMetadata::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void KeyValueMetadata::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.keys_.~RepeatedPtrField(); + _impl_.values_.~RepeatedPtrField(); } -void KeyValueMetadata::ArenaDtor(void* object) { - KeyValueMetadata* _this = reinterpret_cast< KeyValueMetadata* >(object); - (void)_this; -} -void KeyValueMetadata::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void KeyValueMetadata::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } -const KeyValueMetadata& KeyValueMetadata::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_KeyValueMetadata_schema_5farrow_2eproto.base); - return *internal_default_instance(); -} - void KeyValueMetadata::Clear() { // @@protoc_insertion_point(message_clear_start:schema_proto.KeyValueMetadata) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - keys_.Clear(); - values_.Clear(); + _impl_.keys_.Clear(); + _impl_.values_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* KeyValueMetadata::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* KeyValueMetadata::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // repeated string keys = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { ptr -= 1; do { ptr += 1; auto str = _internal_add_keys(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "schema_proto.KeyValueMetadata.keys")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "schema_proto.KeyValueMetadata.keys")); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // repeated string values = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { ptr -= 1; do { ptr += 1; auto str = _internal_add_values(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "schema_proto.KeyValueMetadata.values")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "schema_proto.KeyValueMetadata.values")); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* KeyValueMetadata::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* KeyValueMetadata::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:schema_proto.KeyValueMetadata) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // repeated string keys = 1; @@ -1942,7 +1825,7 @@ ::PROTOBUF_NAMESPACE_ID::uint8* KeyValueMetadata::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:schema_proto.KeyValueMetadata) @@ -1953,66 +1836,47 @@ size_t KeyValueMetadata::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:schema_proto.KeyValueMetadata) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string keys = 1; total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(keys_.size()); - for (int i = 0, n = keys_.size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.keys_.size()); + for (int i = 0, n = _impl_.keys_.size(); i < n; i++) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - keys_.Get(i)); + _impl_.keys_.Get(i)); } // repeated string values = 2; total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(values_.size()); - for (int i = 0, n = values_.size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.values_.size()); + for (int i = 0, n = _impl_.values_.size(); i < n; i++) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - values_.Get(i)); + _impl_.values_.Get(i)); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void KeyValueMetadata::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:schema_proto.KeyValueMetadata) - GOOGLE_DCHECK_NE(&from, this); - const KeyValueMetadata* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:schema_proto.KeyValueMetadata) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:schema_proto.KeyValueMetadata) - MergeFrom(*source); - } -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData KeyValueMetadata::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + KeyValueMetadata::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*KeyValueMetadata::GetClassData() const { return &_class_data_; } -void KeyValueMetadata::MergeFrom(const KeyValueMetadata& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:schema_proto.KeyValueMetadata) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - keys_.MergeFrom(from.keys_); - values_.MergeFrom(from.values_); -} +void KeyValueMetadata::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:schema_proto.KeyValueMetadata) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; -void KeyValueMetadata::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:schema_proto.KeyValueMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_impl_.keys_.MergeFrom(from._impl_.keys_); + _this->_impl_.values_.MergeFrom(from._impl_.values_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void KeyValueMetadata::CopyFrom(const KeyValueMetadata& from) { @@ -2028,24 +1892,19 @@ bool KeyValueMetadata::IsInitialized() const { void KeyValueMetadata::InternalSwap(KeyValueMetadata* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - keys_.InternalSwap(&other->keys_); - values_.InternalSwap(&other->values_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.keys_.InternalSwap(&other->_impl_.keys_); + _impl_.values_.InternalSwap(&other->_impl_.values_); } ::PROTOBUF_NAMESPACE_ID::Metadata KeyValueMetadata::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_schema_5farrow_2eproto_getter, &descriptor_table_schema_5farrow_2eproto_once, + file_level_metadata_schema_5farrow_2eproto[5]); } - // =================================================================== -void Field::InitAsDefaultInstance() { - ::schema_proto::_Field_default_instance_._instance.get_mutable()->data_type_ = const_cast< ::schema_proto::DataType*>( - ::schema_proto::DataType::internal_default_instance()); - ::schema_proto::_Field_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::schema_proto::KeyValueMetadata*>( - ::schema_proto::KeyValueMetadata::internal_default_instance()); -} class Field::_Internal { public: static const ::schema_proto::DataType& data_type(const Field* msg); @@ -2054,163 +1913,174 @@ class Field::_Internal { const ::schema_proto::DataType& Field::_Internal::data_type(const Field* msg) { - return *msg->data_type_; + return *msg->_impl_.data_type_; } const ::schema_proto::KeyValueMetadata& Field::_Internal::metadata(const Field* msg) { - return *msg->metadata_; + return *msg->_impl_.metadata_; } -Field::Field(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +Field::Field(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:schema_proto.Field) } Field::Field(const Field& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + Field* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.data_type_){nullptr} + , decltype(_impl_.metadata_){nullptr} + , decltype(_impl_.nullable_){} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_name().empty()) { - name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_name(), - GetArena()); + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); } if (from._internal_has_data_type()) { - data_type_ = new ::schema_proto::DataType(*from.data_type_); - } else { - data_type_ = nullptr; + _this->_impl_.data_type_ = new ::schema_proto::DataType(*from._impl_.data_type_); } if (from._internal_has_metadata()) { - metadata_ = new ::schema_proto::KeyValueMetadata(*from.metadata_); - } else { - metadata_ = nullptr; + _this->_impl_.metadata_ = new ::schema_proto::KeyValueMetadata(*from._impl_.metadata_); } - nullable_ = from.nullable_; + _this->_impl_.nullable_ = from._impl_.nullable_; // @@protoc_insertion_point(copy_constructor:schema_proto.Field) } -void Field::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DataType_schema_5farrow_2eproto.base); - name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(&data_type_, 0, static_cast( - reinterpret_cast(&nullable_) - - reinterpret_cast(&data_type_)) + sizeof(nullable_)); +inline void Field::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.data_type_){nullptr} + , decltype(_impl_.metadata_){nullptr} + , decltype(_impl_.nullable_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } Field::~Field() { // @@protoc_insertion_point(destructor:schema_proto.Field) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void Field::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete data_type_; - if (this != internal_default_instance()) delete metadata_; +inline void Field::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.data_type_; + if (this != internal_default_instance()) delete _impl_.metadata_; } -void Field::ArenaDtor(void* object) { - Field* _this = reinterpret_cast< Field* >(object); - (void)_this; -} -void Field::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void Field::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } -const Field& Field::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DataType_schema_5farrow_2eproto.base); - return *internal_default_instance(); -} - void Field::Clear() { // @@protoc_insertion_point(message_clear_start:schema_proto.Field) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - if (GetArena() == nullptr && data_type_ != nullptr) { - delete data_type_; + _impl_.name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.data_type_ != nullptr) { + delete _impl_.data_type_; } - data_type_ = nullptr; - if (GetArena() == nullptr && metadata_ != nullptr) { - delete metadata_; + _impl_.data_type_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.metadata_ != nullptr) { + delete _impl_.metadata_; } - metadata_ = nullptr; - nullable_ = false; + _impl_.metadata_ = nullptr; + _impl_.nullable_ = false; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* Field::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* Field::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // string name = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { auto str = _internal_mutable_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "schema_proto.Field.name")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "schema_proto.Field.name")); + } else + goto handle_unusual; continue; // bool nullable = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - nullable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.nullable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // .schema_proto.DataType data_type = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { ptr = ctx->ParseMessage(_internal_mutable_data_type(), ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // .schema_proto.KeyValueMetadata metadata = 4; case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { ptr = ctx->ParseMessage(_internal_mutable_metadata(), ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* Field::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* Field::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:schema_proto.Field) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // string name = 1; - if (this->name().size() > 0) { + if (!this->_internal_name().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_name().data(), static_cast(this->_internal_name().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -2220,29 +2090,27 @@ ::PROTOBUF_NAMESPACE_ID::uint8* Field::_InternalSerialize( } // bool nullable = 2; - if (this->nullable() != 0) { + if (this->_internal_nullable() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->_internal_nullable(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_nullable(), target); } // .schema_proto.DataType data_type = 3; - if (this->has_data_type()) { - target = stream->EnsureSpace(target); + if (this->_internal_has_data_type()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::data_type(this), target, stream); + InternalWriteMessage(3, _Internal::data_type(this), + _Internal::data_type(this).GetCachedSize(), target, stream); } // .schema_proto.KeyValueMetadata metadata = 4; - if (this->has_metadata()) { - target = stream->EnsureSpace(target); + if (this->_internal_has_metadata()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 4, _Internal::metadata(this), target, stream); + InternalWriteMessage(4, _Internal::metadata(this), + _Internal::metadata(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:schema_proto.Field) @@ -2253,86 +2121,69 @@ size_t Field::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:schema_proto.Field) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string name = 1; - if (this->name().size() > 0) { + if (!this->_internal_name().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_name()); } // .schema_proto.DataType data_type = 3; - if (this->has_data_type()) { + if (this->_internal_has_data_type()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *data_type_); + *_impl_.data_type_); } // .schema_proto.KeyValueMetadata metadata = 4; - if (this->has_metadata()) { + if (this->_internal_has_metadata()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *metadata_); + *_impl_.metadata_); } // bool nullable = 2; - if (this->nullable() != 0) { + if (this->_internal_nullable() != 0) { total_size += 1 + 1; } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void Field::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:schema_proto.Field) - GOOGLE_DCHECK_NE(&from, this); - const Field* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:schema_proto.Field) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:schema_proto.Field) - MergeFrom(*source); - } -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Field::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Field::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Field::GetClassData() const { return &_class_data_; } -void Field::MergeFrom(const Field& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:schema_proto.Field) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + +void Field::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:schema_proto.Field) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.name().size() > 0) { - _internal_set_name(from._internal_name()); + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); } - if (from.has_data_type()) { - _internal_mutable_data_type()->::schema_proto::DataType::MergeFrom(from._internal_data_type()); + if (from._internal_has_data_type()) { + _this->_internal_mutable_data_type()->::schema_proto::DataType::MergeFrom( + from._internal_data_type()); } - if (from.has_metadata()) { - _internal_mutable_metadata()->::schema_proto::KeyValueMetadata::MergeFrom(from._internal_metadata()); + if (from._internal_has_metadata()) { + _this->_internal_mutable_metadata()->::schema_proto::KeyValueMetadata::MergeFrom( + from._internal_metadata()); } - if (from.nullable() != 0) { - _internal_set_nullable(from._internal_nullable()); + if (from._internal_nullable() != 0) { + _this->_internal_set_nullable(from._internal_nullable()); } -} - -void Field::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:schema_proto.Field) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Field::CopyFrom(const Field& from) { @@ -2348,168 +2199,199 @@ bool Field::IsInitialized() const { void Field::InternalSwap(Field* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(Field, nullable_) - + sizeof(Field::nullable_) - - PROTOBUF_FIELD_OFFSET(Field, data_type_)>( - reinterpret_cast(&data_type_), - reinterpret_cast(&other->data_type_)); + PROTOBUF_FIELD_OFFSET(Field, _impl_.nullable_) + + sizeof(Field::_impl_.nullable_) + - PROTOBUF_FIELD_OFFSET(Field, _impl_.data_type_)>( + reinterpret_cast(&_impl_.data_type_), + reinterpret_cast(&other->_impl_.data_type_)); } ::PROTOBUF_NAMESPACE_ID::Metadata Field::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_schema_5farrow_2eproto_getter, &descriptor_table_schema_5farrow_2eproto_once, + file_level_metadata_schema_5farrow_2eproto[6]); } - // =================================================================== -void SchemaOptions::InitAsDefaultInstance() { -} class SchemaOptions::_Internal { public: }; -SchemaOptions::SchemaOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +SchemaOptions::SchemaOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:schema_proto.SchemaOptions) } SchemaOptions::SchemaOptions(const SchemaOptions& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + SchemaOptions* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.primary_column_){} + , decltype(_impl_.version_column_){} + , decltype(_impl_.vector_column_){} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - primary_column_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.primary_column_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.primary_column_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_primary_column().empty()) { - primary_column_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_primary_column(), - GetArena()); + _this->_impl_.primary_column_.Set(from._internal_primary_column(), + _this->GetArenaForAllocation()); } - version_column_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.version_column_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.version_column_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_version_column().empty()) { - version_column_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_version_column(), - GetArena()); + _this->_impl_.version_column_.Set(from._internal_version_column(), + _this->GetArenaForAllocation()); } - vector_column_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _impl_.vector_column_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.vector_column_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING if (!from._internal_vector_column().empty()) { - vector_column_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_vector_column(), - GetArena()); + _this->_impl_.vector_column_.Set(from._internal_vector_column(), + _this->GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:schema_proto.SchemaOptions) } -void SchemaOptions::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SchemaOptions_schema_5farrow_2eproto.base); - primary_column_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - version_column_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - vector_column_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void SchemaOptions::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.primary_column_){} + , decltype(_impl_.version_column_){} + , decltype(_impl_.vector_column_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.primary_column_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.primary_column_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.version_column_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.version_column_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.vector_column_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.vector_column_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } SchemaOptions::~SchemaOptions() { // @@protoc_insertion_point(destructor:schema_proto.SchemaOptions) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void SchemaOptions::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - primary_column_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - version_column_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - vector_column_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +inline void SchemaOptions::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.primary_column_.Destroy(); + _impl_.version_column_.Destroy(); + _impl_.vector_column_.Destroy(); } -void SchemaOptions::ArenaDtor(void* object) { - SchemaOptions* _this = reinterpret_cast< SchemaOptions* >(object); - (void)_this; -} -void SchemaOptions::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void SchemaOptions::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } -const SchemaOptions& SchemaOptions::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SchemaOptions_schema_5farrow_2eproto.base); - return *internal_default_instance(); -} - void SchemaOptions::Clear() { // @@protoc_insertion_point(message_clear_start:schema_proto.SchemaOptions) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - primary_column_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - version_column_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - vector_column_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _impl_.primary_column_.ClearToEmpty(); + _impl_.version_column_.ClearToEmpty(); + _impl_.vector_column_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* SchemaOptions::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* SchemaOptions::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // string primary_column = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { auto str = _internal_mutable_primary_column(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "schema_proto.SchemaOptions.primary_column")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "schema_proto.SchemaOptions.primary_column")); + } else + goto handle_unusual; continue; // string version_column = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { auto str = _internal_mutable_version_column(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "schema_proto.SchemaOptions.version_column")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + CHK_(::_pbi::VerifyUTF8(str, "schema_proto.SchemaOptions.version_column")); + } else + goto handle_unusual; continue; // string vector_column = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { auto str = _internal_mutable_vector_column(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "schema_proto.SchemaOptions.vector_column")); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); + CHK_(::_pbi::VerifyUTF8(str, "schema_proto.SchemaOptions.vector_column")); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* SchemaOptions::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* SchemaOptions::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:schema_proto.SchemaOptions) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // string primary_column = 1; - if (this->primary_column().size() > 0) { + if (!this->_internal_primary_column().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_primary_column().data(), static_cast(this->_internal_primary_column().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -2519,7 +2401,7 @@ ::PROTOBUF_NAMESPACE_ID::uint8* SchemaOptions::_InternalSerialize( } // string version_column = 2; - if (this->version_column().size() > 0) { + if (!this->_internal_version_column().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_version_column().data(), static_cast(this->_internal_version_column().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -2529,7 +2411,7 @@ ::PROTOBUF_NAMESPACE_ID::uint8* SchemaOptions::_InternalSerialize( } // string vector_column = 3; - if (this->vector_column().size() > 0) { + if (!this->_internal_vector_column().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_vector_column().data(), static_cast(this->_internal_vector_column().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, @@ -2539,7 +2421,7 @@ ::PROTOBUF_NAMESPACE_ID::uint8* SchemaOptions::_InternalSerialize( } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:schema_proto.SchemaOptions) @@ -2550,78 +2432,59 @@ size_t SchemaOptions::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:schema_proto.SchemaOptions) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string primary_column = 1; - if (this->primary_column().size() > 0) { + if (!this->_internal_primary_column().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_primary_column()); } // string version_column = 2; - if (this->version_column().size() > 0) { + if (!this->_internal_version_column().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_version_column()); } // string vector_column = 3; - if (this->vector_column().size() > 0) { + if (!this->_internal_vector_column().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->_internal_vector_column()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void SchemaOptions::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:schema_proto.SchemaOptions) - GOOGLE_DCHECK_NE(&from, this); - const SchemaOptions* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:schema_proto.SchemaOptions) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:schema_proto.SchemaOptions) - MergeFrom(*source); - } -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SchemaOptions::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + SchemaOptions::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SchemaOptions::GetClassData() const { return &_class_data_; } -void SchemaOptions::MergeFrom(const SchemaOptions& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:schema_proto.SchemaOptions) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + +void SchemaOptions::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:schema_proto.SchemaOptions) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.primary_column().size() > 0) { - _internal_set_primary_column(from._internal_primary_column()); + if (!from._internal_primary_column().empty()) { + _this->_internal_set_primary_column(from._internal_primary_column()); } - if (from.version_column().size() > 0) { - _internal_set_version_column(from._internal_version_column()); + if (!from._internal_version_column().empty()) { + _this->_internal_set_version_column(from._internal_version_column()); } - if (from.vector_column().size() > 0) { - _internal_set_vector_column(from._internal_vector_column()); + if (!from._internal_vector_column().empty()) { + _this->_internal_set_vector_column(from._internal_vector_column()); } -} - -void SchemaOptions::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:schema_proto.SchemaOptions) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SchemaOptions::CopyFrom(const SchemaOptions& from) { @@ -2637,23 +2500,31 @@ bool SchemaOptions::IsInitialized() const { void SchemaOptions::InternalSwap(SchemaOptions* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - primary_column_.Swap(&other->primary_column_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - version_column_.Swap(&other->version_column_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - vector_column_.Swap(&other->vector_column_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.primary_column_, lhs_arena, + &other->_impl_.primary_column_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.version_column_, lhs_arena, + &other->_impl_.version_column_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.vector_column_, lhs_arena, + &other->_impl_.vector_column_, rhs_arena + ); } ::PROTOBUF_NAMESPACE_ID::Metadata SchemaOptions::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_schema_5farrow_2eproto_getter, &descriptor_table_schema_5farrow_2eproto_once, + file_level_metadata_schema_5farrow_2eproto[7]); } - // =================================================================== -void ArrowSchema::InitAsDefaultInstance() { - ::schema_proto::_ArrowSchema_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::schema_proto::KeyValueMetadata*>( - ::schema_proto::KeyValueMetadata::internal_default_instance()); -} class ArrowSchema::_Internal { public: static const ::schema_proto::KeyValueMetadata& metadata(const ArrowSchema* msg); @@ -2661,87 +2532,86 @@ class ArrowSchema::_Internal { const ::schema_proto::KeyValueMetadata& ArrowSchema::_Internal::metadata(const ArrowSchema* msg) { - return *msg->metadata_; + return *msg->_impl_.metadata_; } -ArrowSchema::ArrowSchema(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), - fields_(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +ArrowSchema::ArrowSchema(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:schema_proto.ArrowSchema) } ArrowSchema::ArrowSchema(const ArrowSchema& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - fields_(from.fields_) { + : ::PROTOBUF_NAMESPACE_ID::Message() { + ArrowSchema* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.fields_){from._impl_.fields_} + , decltype(_impl_.metadata_){nullptr} + , decltype(_impl_.endianness_){} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_metadata()) { - metadata_ = new ::schema_proto::KeyValueMetadata(*from.metadata_); - } else { - metadata_ = nullptr; + _this->_impl_.metadata_ = new ::schema_proto::KeyValueMetadata(*from._impl_.metadata_); } - endianness_ = from.endianness_; + _this->_impl_.endianness_ = from._impl_.endianness_; // @@protoc_insertion_point(copy_constructor:schema_proto.ArrowSchema) } -void ArrowSchema::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ArrowSchema_schema_5farrow_2eproto.base); - ::memset(&metadata_, 0, static_cast( - reinterpret_cast(&endianness_) - - reinterpret_cast(&metadata_)) + sizeof(endianness_)); +inline void ArrowSchema::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.fields_){arena} + , decltype(_impl_.metadata_){nullptr} + , decltype(_impl_.endianness_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; } ArrowSchema::~ArrowSchema() { // @@protoc_insertion_point(destructor:schema_proto.ArrowSchema) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void ArrowSchema::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete metadata_; +inline void ArrowSchema::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.fields_.~RepeatedPtrField(); + if (this != internal_default_instance()) delete _impl_.metadata_; } -void ArrowSchema::ArenaDtor(void* object) { - ArrowSchema* _this = reinterpret_cast< ArrowSchema* >(object); - (void)_this; -} -void ArrowSchema::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void ArrowSchema::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ArrowSchema& ArrowSchema::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ArrowSchema_schema_5farrow_2eproto.base); - return *internal_default_instance(); + _impl_._cached_size_.Set(size); } - void ArrowSchema::Clear() { // @@protoc_insertion_point(message_clear_start:schema_proto.ArrowSchema) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - fields_.Clear(); - if (GetArena() == nullptr && metadata_ != nullptr) { - delete metadata_; + _impl_.fields_.Clear(); + if (GetArenaForAllocation() == nullptr && _impl_.metadata_ != nullptr) { + delete _impl_.metadata_; } - metadata_ = nullptr; - endianness_ = 0; + _impl_.metadata_ = nullptr; + _impl_.endianness_ = 0; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* ArrowSchema::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* ArrowSchema::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // repeated .schema_proto.Field fields = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { ptr -= 1; do { ptr += 1; @@ -2749,76 +2619,79 @@ const char* ArrowSchema::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // .schema_proto.Endianness endianness = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); _internal_set_endianness(static_cast<::schema_proto::Endianness>(val)); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // .schema_proto.KeyValueMetadata metadata = 3; case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { ptr = ctx->ParseMessage(_internal_mutable_metadata(), ptr); CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* ArrowSchema::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* ArrowSchema::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:schema_proto.ArrowSchema) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // repeated .schema_proto.Field fields = 1; - for (unsigned int i = 0, - n = static_cast(this->_internal_fields_size()); i < n; i++) { - target = stream->EnsureSpace(target); + for (unsigned i = 0, + n = static_cast(this->_internal_fields_size()); i < n; i++) { + const auto& repfield = this->_internal_fields(i); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, this->_internal_fields(i), target, stream); + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } // .schema_proto.Endianness endianness = 2; - if (this->endianness() != 0) { + if (this->_internal_endianness() != 0) { target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::_pbi::WireFormatLite::WriteEnumToArray( 2, this->_internal_endianness(), target); } // .schema_proto.KeyValueMetadata metadata = 3; - if (this->has_metadata()) { - target = stream->EnsureSpace(target); + if (this->_internal_has_metadata()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::metadata(this), target, stream); + InternalWriteMessage(3, _Internal::metadata(this), + _Internal::metadata(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:schema_proto.ArrowSchema) @@ -2829,75 +2702,57 @@ size_t ArrowSchema::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:schema_proto.ArrowSchema) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated .schema_proto.Field fields = 1; total_size += 1UL * this->_internal_fields_size(); - for (const auto& msg : this->fields_) { + for (const auto& msg : this->_impl_.fields_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } // .schema_proto.KeyValueMetadata metadata = 3; - if (this->has_metadata()) { + if (this->_internal_has_metadata()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *metadata_); + *_impl_.metadata_); } // .schema_proto.Endianness endianness = 2; - if (this->endianness() != 0) { + if (this->_internal_endianness() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_endianness()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_endianness()); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void ArrowSchema::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:schema_proto.ArrowSchema) - GOOGLE_DCHECK_NE(&from, this); - const ArrowSchema* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:schema_proto.ArrowSchema) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:schema_proto.ArrowSchema) - MergeFrom(*source); - } -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ArrowSchema::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ArrowSchema::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ArrowSchema::GetClassData() const { return &_class_data_; } -void ArrowSchema::MergeFrom(const ArrowSchema& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:schema_proto.ArrowSchema) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + +void ArrowSchema::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:schema_proto.ArrowSchema) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - fields_.MergeFrom(from.fields_); - if (from.has_metadata()) { - _internal_mutable_metadata()->::schema_proto::KeyValueMetadata::MergeFrom(from._internal_metadata()); + _this->_impl_.fields_.MergeFrom(from._impl_.fields_); + if (from._internal_has_metadata()) { + _this->_internal_mutable_metadata()->::schema_proto::KeyValueMetadata::MergeFrom( + from._internal_metadata()); } - if (from.endianness() != 0) { - _internal_set_endianness(from._internal_endianness()); + if (from._internal_endianness() != 0) { + _this->_internal_set_endianness(from._internal_endianness()); } -} - -void ArrowSchema::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:schema_proto.ArrowSchema) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ArrowSchema::CopyFrom(const ArrowSchema& from) { @@ -2913,29 +2768,24 @@ bool ArrowSchema::IsInitialized() const { void ArrowSchema::InternalSwap(ArrowSchema* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); - fields_.InternalSwap(&other->fields_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.fields_.InternalSwap(&other->_impl_.fields_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ArrowSchema, endianness_) - + sizeof(ArrowSchema::endianness_) - - PROTOBUF_FIELD_OFFSET(ArrowSchema, metadata_)>( - reinterpret_cast(&metadata_), - reinterpret_cast(&other->metadata_)); + PROTOBUF_FIELD_OFFSET(ArrowSchema, _impl_.endianness_) + + sizeof(ArrowSchema::_impl_.endianness_) + - PROTOBUF_FIELD_OFFSET(ArrowSchema, _impl_.metadata_)>( + reinterpret_cast(&_impl_.metadata_), + reinterpret_cast(&other->_impl_.metadata_)); } ::PROTOBUF_NAMESPACE_ID::Metadata ArrowSchema::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_schema_5farrow_2eproto_getter, &descriptor_table_schema_5farrow_2eproto_once, + file_level_metadata_schema_5farrow_2eproto[8]); } - // =================================================================== -void Schema::InitAsDefaultInstance() { - ::schema_proto::_Schema_default_instance_._instance.get_mutable()->arrow_schema_ = const_cast< ::schema_proto::ArrowSchema*>( - ::schema_proto::ArrowSchema::internal_default_instance()); - ::schema_proto::_Schema_default_instance_._instance.get_mutable()->schema_options_ = const_cast< ::schema_proto::SchemaOptions*>( - ::schema_proto::SchemaOptions::internal_default_instance()); -} class Schema::_Internal { public: static const ::schema_proto::ArrowSchema& arrow_schema(const Schema* msg); @@ -2944,153 +2794,150 @@ class Schema::_Internal { const ::schema_proto::ArrowSchema& Schema::_Internal::arrow_schema(const Schema* msg) { - return *msg->arrow_schema_; + return *msg->_impl_.arrow_schema_; } const ::schema_proto::SchemaOptions& Schema::_Internal::schema_options(const Schema* msg) { - return *msg->schema_options_; + return *msg->_impl_.schema_options_; } -Schema::Schema(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { - SharedCtor(); - RegisterArenaDtor(arena); +Schema::Schema(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); // @@protoc_insertion_point(arena_constructor:schema_proto.Schema) } Schema::Schema(const Schema& from) : ::PROTOBUF_NAMESPACE_ID::Message() { + Schema* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.arrow_schema_){nullptr} + , decltype(_impl_.schema_options_){nullptr} + , /*decltype(_impl_._cached_size_)*/{}}; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); if (from._internal_has_arrow_schema()) { - arrow_schema_ = new ::schema_proto::ArrowSchema(*from.arrow_schema_); - } else { - arrow_schema_ = nullptr; + _this->_impl_.arrow_schema_ = new ::schema_proto::ArrowSchema(*from._impl_.arrow_schema_); } if (from._internal_has_schema_options()) { - schema_options_ = new ::schema_proto::SchemaOptions(*from.schema_options_); - } else { - schema_options_ = nullptr; + _this->_impl_.schema_options_ = new ::schema_proto::SchemaOptions(*from._impl_.schema_options_); } // @@protoc_insertion_point(copy_constructor:schema_proto.Schema) } -void Schema::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Schema_schema_5farrow_2eproto.base); - ::memset(&arrow_schema_, 0, static_cast( - reinterpret_cast(&schema_options_) - - reinterpret_cast(&arrow_schema_)) + sizeof(schema_options_)); +inline void Schema::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.arrow_schema_){nullptr} + , decltype(_impl_.schema_options_){nullptr} + , /*decltype(_impl_._cached_size_)*/{} + }; } Schema::~Schema() { // @@protoc_insertion_point(destructor:schema_proto.Schema) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void Schema::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); - if (this != internal_default_instance()) delete arrow_schema_; - if (this != internal_default_instance()) delete schema_options_; +inline void Schema::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.arrow_schema_; + if (this != internal_default_instance()) delete _impl_.schema_options_; } -void Schema::ArenaDtor(void* object) { - Schema* _this = reinterpret_cast< Schema* >(object); - (void)_this; -} -void Schema::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} void Schema::SetCachedSize(int size) const { - _cached_size_.Set(size); + _impl_._cached_size_.Set(size); } -const Schema& Schema::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Schema_schema_5farrow_2eproto.base); - return *internal_default_instance(); -} - void Schema::Clear() { // @@protoc_insertion_point(message_clear_start:schema_proto.Schema) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArena() == nullptr && arrow_schema_ != nullptr) { - delete arrow_schema_; + if (GetArenaForAllocation() == nullptr && _impl_.arrow_schema_ != nullptr) { + delete _impl_.arrow_schema_; } - arrow_schema_ = nullptr; - if (GetArena() == nullptr && schema_options_ != nullptr) { - delete schema_options_; + _impl_.arrow_schema_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.schema_options_ != nullptr) { + delete _impl_.schema_options_; } - schema_options_ = nullptr; + _impl_.schema_options_ = nullptr; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* Schema::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* Schema::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena; while (!ctx->Done(&ptr)) { - ::PROTOBUF_NAMESPACE_ID::uint32 tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - CHK_(ptr); + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // .schema_proto.ArrowSchema arrow_schema = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { ptr = ctx->ParseMessage(_internal_mutable_arrow_schema(), ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // .schema_proto.SchemaOptions schema_options = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_schema_options(), ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, - _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), - ptr, ctx); - CHK_(ptr != nullptr); - continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } -::PROTOBUF_NAMESPACE_ID::uint8* Schema::_InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { +uint8_t* Schema::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { // @@protoc_insertion_point(serialize_to_array_start:schema_proto.Schema) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; (void) cached_has_bits; // .schema_proto.ArrowSchema arrow_schema = 1; - if (this->has_arrow_schema()) { - target = stream->EnsureSpace(target); + if (this->_internal_has_arrow_schema()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::arrow_schema(this), target, stream); + InternalWriteMessage(1, _Internal::arrow_schema(this), + _Internal::arrow_schema(this).GetCachedSize(), target, stream); } // .schema_proto.SchemaOptions schema_options = 2; - if (this->has_schema_options()) { - target = stream->EnsureSpace(target); + if (this->_internal_has_schema_options()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::schema_options(this), target, stream); + InternalWriteMessage(2, _Internal::schema_options(this), + _Internal::schema_options(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } // @@protoc_insertion_point(serialize_to_array_end:schema_proto.Schema) @@ -3101,68 +2948,51 @@ size_t Schema::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:schema_proto.Schema) size_t total_size = 0; - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .schema_proto.ArrowSchema arrow_schema = 1; - if (this->has_arrow_schema()) { + if (this->_internal_has_arrow_schema()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *arrow_schema_); + *_impl_.arrow_schema_); } // .schema_proto.SchemaOptions schema_options = 2; - if (this->has_schema_options()) { + if (this->_internal_has_schema_options()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *schema_options_); + *_impl_.schema_options_); } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( - _internal_metadata_, total_size, &_cached_size_); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -void Schema::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:schema_proto.Schema) - GOOGLE_DCHECK_NE(&from, this); - const Schema* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:schema_proto.Schema) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:schema_proto.Schema) - MergeFrom(*source); - } -} +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Schema::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Schema::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Schema::GetClassData() const { return &_class_data_; } -void Schema::MergeFrom(const Schema& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:schema_proto.Schema) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + +void Schema::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:schema_proto.Schema) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from.has_arrow_schema()) { - _internal_mutable_arrow_schema()->::schema_proto::ArrowSchema::MergeFrom(from._internal_arrow_schema()); + if (from._internal_has_arrow_schema()) { + _this->_internal_mutable_arrow_schema()->::schema_proto::ArrowSchema::MergeFrom( + from._internal_arrow_schema()); } - if (from.has_schema_options()) { - _internal_mutable_schema_options()->::schema_proto::SchemaOptions::MergeFrom(from._internal_schema_options()); + if (from._internal_has_schema_options()) { + _this->_internal_mutable_schema_options()->::schema_proto::SchemaOptions::MergeFrom( + from._internal_schema_options()); } -} - -void Schema::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:schema_proto.Schema) - if (&from == this) return; - Clear(); - MergeFrom(from); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Schema::CopyFrom(const Schema& from) { @@ -3178,51 +3008,62 @@ bool Schema::IsInitialized() const { void Schema::InternalSwap(Schema* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(Schema, schema_options_) - + sizeof(Schema::schema_options_) - - PROTOBUF_FIELD_OFFSET(Schema, arrow_schema_)>( - reinterpret_cast(&arrow_schema_), - reinterpret_cast(&other->arrow_schema_)); + PROTOBUF_FIELD_OFFSET(Schema, _impl_.schema_options_) + + sizeof(Schema::_impl_.schema_options_) + - PROTOBUF_FIELD_OFFSET(Schema, _impl_.arrow_schema_)>( + reinterpret_cast(&_impl_.arrow_schema_), + reinterpret_cast(&other->_impl_.arrow_schema_)); } ::PROTOBUF_NAMESPACE_ID::Metadata Schema::GetMetadata() const { - return GetMetadataStatic(); + return ::_pbi::AssignDescriptors( + &descriptor_table_schema_5farrow_2eproto_getter, &descriptor_table_schema_5farrow_2eproto_once, + file_level_metadata_schema_5farrow_2eproto[9]); } - // @@protoc_insertion_point(namespace_scope) } // namespace schema_proto PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::schema_proto::FixedSizeBinaryType* Arena::CreateMaybeMessage< ::schema_proto::FixedSizeBinaryType >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::schema_proto::FixedSizeBinaryType* +Arena::CreateMaybeMessage< ::schema_proto::FixedSizeBinaryType >(Arena* arena) { return Arena::CreateMessageInternal< ::schema_proto::FixedSizeBinaryType >(arena); } -template<> PROTOBUF_NOINLINE ::schema_proto::FixedSizeListType* Arena::CreateMaybeMessage< ::schema_proto::FixedSizeListType >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::schema_proto::FixedSizeListType* +Arena::CreateMaybeMessage< ::schema_proto::FixedSizeListType >(Arena* arena) { return Arena::CreateMessageInternal< ::schema_proto::FixedSizeListType >(arena); } -template<> PROTOBUF_NOINLINE ::schema_proto::DictionaryType* Arena::CreateMaybeMessage< ::schema_proto::DictionaryType >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::schema_proto::DictionaryType* +Arena::CreateMaybeMessage< ::schema_proto::DictionaryType >(Arena* arena) { return Arena::CreateMessageInternal< ::schema_proto::DictionaryType >(arena); } -template<> PROTOBUF_NOINLINE ::schema_proto::MapType* Arena::CreateMaybeMessage< ::schema_proto::MapType >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::schema_proto::MapType* +Arena::CreateMaybeMessage< ::schema_proto::MapType >(Arena* arena) { return Arena::CreateMessageInternal< ::schema_proto::MapType >(arena); } -template<> PROTOBUF_NOINLINE ::schema_proto::DataType* Arena::CreateMaybeMessage< ::schema_proto::DataType >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::schema_proto::DataType* +Arena::CreateMaybeMessage< ::schema_proto::DataType >(Arena* arena) { return Arena::CreateMessageInternal< ::schema_proto::DataType >(arena); } -template<> PROTOBUF_NOINLINE ::schema_proto::KeyValueMetadata* Arena::CreateMaybeMessage< ::schema_proto::KeyValueMetadata >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::schema_proto::KeyValueMetadata* +Arena::CreateMaybeMessage< ::schema_proto::KeyValueMetadata >(Arena* arena) { return Arena::CreateMessageInternal< ::schema_proto::KeyValueMetadata >(arena); } -template<> PROTOBUF_NOINLINE ::schema_proto::Field* Arena::CreateMaybeMessage< ::schema_proto::Field >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::schema_proto::Field* +Arena::CreateMaybeMessage< ::schema_proto::Field >(Arena* arena) { return Arena::CreateMessageInternal< ::schema_proto::Field >(arena); } -template<> PROTOBUF_NOINLINE ::schema_proto::SchemaOptions* Arena::CreateMaybeMessage< ::schema_proto::SchemaOptions >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::schema_proto::SchemaOptions* +Arena::CreateMaybeMessage< ::schema_proto::SchemaOptions >(Arena* arena) { return Arena::CreateMessageInternal< ::schema_proto::SchemaOptions >(arena); } -template<> PROTOBUF_NOINLINE ::schema_proto::ArrowSchema* Arena::CreateMaybeMessage< ::schema_proto::ArrowSchema >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::schema_proto::ArrowSchema* +Arena::CreateMaybeMessage< ::schema_proto::ArrowSchema >(Arena* arena) { return Arena::CreateMessageInternal< ::schema_proto::ArrowSchema >(arena); } -template<> PROTOBUF_NOINLINE ::schema_proto::Schema* Arena::CreateMaybeMessage< ::schema_proto::Schema >(Arena* arena) { +template<> PROTOBUF_NOINLINE ::schema_proto::Schema* +Arena::CreateMaybeMessage< ::schema_proto::Schema >(Arena* arena) { return Arena::CreateMessageInternal< ::schema_proto::Schema >(arena); } PROTOBUF_NAMESPACE_CLOSE diff --git a/cpp/src/proto/schema_arrow.pb.h b/cpp/src/proto/schema_arrow.pb.h index 83d5371..8357546 100644 --- a/cpp/src/proto/schema_arrow.pb.h +++ b/cpp/src/proto/schema_arrow.pb.h @@ -8,12 +8,12 @@ #include #include -#if PROTOBUF_VERSION < 3012000 +#if PROTOBUF_VERSION < 3021000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3012004 < PROTOBUF_MIN_PROTOC_VERSION +#if 3021004 < PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. @@ -23,9 +23,7 @@ #include #include #include -#include #include -#include #include #include #include @@ -44,47 +42,39 @@ PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_schema_5farrow_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[10] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; + static const uint32_t offsets[]; }; extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_schema_5farrow_2eproto; namespace schema_proto { class ArrowSchema; -class ArrowSchemaDefaultTypeInternal; +struct ArrowSchemaDefaultTypeInternal; extern ArrowSchemaDefaultTypeInternal _ArrowSchema_default_instance_; class DataType; -class DataTypeDefaultTypeInternal; +struct DataTypeDefaultTypeInternal; extern DataTypeDefaultTypeInternal _DataType_default_instance_; class DictionaryType; -class DictionaryTypeDefaultTypeInternal; +struct DictionaryTypeDefaultTypeInternal; extern DictionaryTypeDefaultTypeInternal _DictionaryType_default_instance_; class Field; -class FieldDefaultTypeInternal; +struct FieldDefaultTypeInternal; extern FieldDefaultTypeInternal _Field_default_instance_; class FixedSizeBinaryType; -class FixedSizeBinaryTypeDefaultTypeInternal; +struct FixedSizeBinaryTypeDefaultTypeInternal; extern FixedSizeBinaryTypeDefaultTypeInternal _FixedSizeBinaryType_default_instance_; class FixedSizeListType; -class FixedSizeListTypeDefaultTypeInternal; +struct FixedSizeListTypeDefaultTypeInternal; extern FixedSizeListTypeDefaultTypeInternal _FixedSizeListType_default_instance_; class KeyValueMetadata; -class KeyValueMetadataDefaultTypeInternal; +struct KeyValueMetadataDefaultTypeInternal; extern KeyValueMetadataDefaultTypeInternal _KeyValueMetadata_default_instance_; class MapType; -class MapTypeDefaultTypeInternal; +struct MapTypeDefaultTypeInternal; extern MapTypeDefaultTypeInternal _MapType_default_instance_; class Schema; -class SchemaDefaultTypeInternal; +struct SchemaDefaultTypeInternal; extern SchemaDefaultTypeInternal _Schema_default_instance_; class SchemaOptions; -class SchemaOptionsDefaultTypeInternal; +struct SchemaOptionsDefaultTypeInternal; extern SchemaOptionsDefaultTypeInternal _SchemaOptions_default_instance_; } // namespace schema_proto PROTOBUF_NAMESPACE_OPEN @@ -124,8 +114,8 @@ enum LogicType : int { MAP = 30, FIXED_SIZE_LIST = 32, MAX_ID = 39, - LogicType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), - LogicType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() + LogicType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + LogicType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; bool LogicType_IsValid(int value); constexpr LogicType LogicType_MIN = NA; @@ -142,15 +132,15 @@ inline const std::string& LogicType_Name(T enum_t_value) { LogicType_descriptor(), enum_t_value); } inline bool LogicType_Parse( - const std::string& name, LogicType* value) { + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, LogicType* value) { return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( LogicType_descriptor(), name, value); } enum Endianness : int { Little = 0, Big = 1, - Endianness_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), - Endianness_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() + Endianness_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + Endianness_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; bool Endianness_IsValid(int value); constexpr Endianness Endianness_MIN = Little; @@ -167,17 +157,18 @@ inline const std::string& Endianness_Name(T enum_t_value) { Endianness_descriptor(), enum_t_value); } inline bool Endianness_Parse( - const std::string& name, Endianness* value) { + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Endianness* value) { return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( Endianness_descriptor(), name, value); } // =================================================================== -class FixedSizeBinaryType PROTOBUF_FINAL : +class FixedSizeBinaryType final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:schema_proto.FixedSizeBinaryType) */ { public: - inline FixedSizeBinaryType() : FixedSizeBinaryType(nullptr) {}; - virtual ~FixedSizeBinaryType(); + inline FixedSizeBinaryType() : FixedSizeBinaryType(nullptr) {} + ~FixedSizeBinaryType() override; + explicit PROTOBUF_CONSTEXPR FixedSizeBinaryType(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); FixedSizeBinaryType(const FixedSizeBinaryType& from); FixedSizeBinaryType(FixedSizeBinaryType&& from) noexcept @@ -190,8 +181,13 @@ class FixedSizeBinaryType PROTOBUF_FINAL : return *this; } inline FixedSizeBinaryType& operator=(FixedSizeBinaryType&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -202,14 +198,14 @@ class FixedSizeBinaryType PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; + } + static const FixedSizeBinaryType& default_instance() { + return *internal_default_instance(); } - static const FixedSizeBinaryType& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const FixedSizeBinaryType* internal_default_instance() { return reinterpret_cast( &_FixedSizeBinaryType_default_instance_); @@ -222,7 +218,12 @@ class FixedSizeBinaryType PROTOBUF_FINAL : } inline void Swap(FixedSizeBinaryType* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -230,56 +231,53 @@ class FixedSizeBinaryType PROTOBUF_FINAL : } void UnsafeArenaSwap(FixedSizeBinaryType* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline FixedSizeBinaryType* New() const final { - return CreateMaybeMessage(nullptr); - } - - FixedSizeBinaryType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + FixedSizeBinaryType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const FixedSizeBinaryType& from); - void MergeFrom(const FixedSizeBinaryType& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const FixedSizeBinaryType& from) { + FixedSizeBinaryType::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(FixedSizeBinaryType* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "schema_proto.FixedSizeBinaryType"; } protected: - explicit FixedSizeBinaryType(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit FixedSizeBinaryType(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_schema_5farrow_2eproto); - return ::descriptor_table_schema_5farrow_2eproto.file_level_metadata[kIndexInFileMessages]; - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -290,11 +288,11 @@ class FixedSizeBinaryType PROTOBUF_FINAL : }; // int32 byte_width = 1; void clear_byte_width(); - ::PROTOBUF_NAMESPACE_ID::int32 byte_width() const; - void set_byte_width(::PROTOBUF_NAMESPACE_ID::int32 value); + int32_t byte_width() const; + void set_byte_width(int32_t value); private: - ::PROTOBUF_NAMESPACE_ID::int32 _internal_byte_width() const; - void _internal_set_byte_width(::PROTOBUF_NAMESPACE_ID::int32 value); + int32_t _internal_byte_width() const; + void _internal_set_byte_width(int32_t value); public: // @@protoc_insertion_point(class_scope:schema_proto.FixedSizeBinaryType) @@ -304,17 +302,21 @@ class FixedSizeBinaryType PROTOBUF_FINAL : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::int32 byte_width_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + int32_t byte_width_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_schema_5farrow_2eproto; }; // ------------------------------------------------------------------- -class FixedSizeListType PROTOBUF_FINAL : +class FixedSizeListType final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:schema_proto.FixedSizeListType) */ { public: - inline FixedSizeListType() : FixedSizeListType(nullptr) {}; - virtual ~FixedSizeListType(); + inline FixedSizeListType() : FixedSizeListType(nullptr) {} + ~FixedSizeListType() override; + explicit PROTOBUF_CONSTEXPR FixedSizeListType(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); FixedSizeListType(const FixedSizeListType& from); FixedSizeListType(FixedSizeListType&& from) noexcept @@ -327,8 +329,13 @@ class FixedSizeListType PROTOBUF_FINAL : return *this; } inline FixedSizeListType& operator=(FixedSizeListType&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -339,14 +346,14 @@ class FixedSizeListType PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; + } + static const FixedSizeListType& default_instance() { + return *internal_default_instance(); } - static const FixedSizeListType& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const FixedSizeListType* internal_default_instance() { return reinterpret_cast( &_FixedSizeListType_default_instance_); @@ -359,7 +366,12 @@ class FixedSizeListType PROTOBUF_FINAL : } inline void Swap(FixedSizeListType* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -367,56 +379,53 @@ class FixedSizeListType PROTOBUF_FINAL : } void UnsafeArenaSwap(FixedSizeListType* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline FixedSizeListType* New() const final { - return CreateMaybeMessage(nullptr); - } - - FixedSizeListType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + FixedSizeListType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const FixedSizeListType& from); - void MergeFrom(const FixedSizeListType& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const FixedSizeListType& from) { + FixedSizeListType::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(FixedSizeListType* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "schema_proto.FixedSizeListType"; } protected: - explicit FixedSizeListType(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit FixedSizeListType(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_schema_5farrow_2eproto); - return ::descriptor_table_schema_5farrow_2eproto.file_level_metadata[kIndexInFileMessages]; - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -427,11 +436,11 @@ class FixedSizeListType PROTOBUF_FINAL : }; // int32 list_size = 1; void clear_list_size(); - ::PROTOBUF_NAMESPACE_ID::int32 list_size() const; - void set_list_size(::PROTOBUF_NAMESPACE_ID::int32 value); + int32_t list_size() const; + void set_list_size(int32_t value); private: - ::PROTOBUF_NAMESPACE_ID::int32 _internal_list_size() const; - void _internal_set_list_size(::PROTOBUF_NAMESPACE_ID::int32 value); + int32_t _internal_list_size() const; + void _internal_set_list_size(int32_t value); public: // @@protoc_insertion_point(class_scope:schema_proto.FixedSizeListType) @@ -441,17 +450,21 @@ class FixedSizeListType PROTOBUF_FINAL : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::int32 list_size_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + int32_t list_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_schema_5farrow_2eproto; }; // ------------------------------------------------------------------- -class DictionaryType PROTOBUF_FINAL : +class DictionaryType final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:schema_proto.DictionaryType) */ { public: - inline DictionaryType() : DictionaryType(nullptr) {}; - virtual ~DictionaryType(); + inline DictionaryType() : DictionaryType(nullptr) {} + ~DictionaryType() override; + explicit PROTOBUF_CONSTEXPR DictionaryType(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); DictionaryType(const DictionaryType& from); DictionaryType(DictionaryType&& from) noexcept @@ -464,8 +477,13 @@ class DictionaryType PROTOBUF_FINAL : return *this; } inline DictionaryType& operator=(DictionaryType&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -476,14 +494,14 @@ class DictionaryType PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; + } + static const DictionaryType& default_instance() { + return *internal_default_instance(); } - static const DictionaryType& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const DictionaryType* internal_default_instance() { return reinterpret_cast( &_DictionaryType_default_instance_); @@ -496,7 +514,12 @@ class DictionaryType PROTOBUF_FINAL : } inline void Swap(DictionaryType* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -504,56 +527,53 @@ class DictionaryType PROTOBUF_FINAL : } void UnsafeArenaSwap(DictionaryType* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline DictionaryType* New() const final { - return CreateMaybeMessage(nullptr); - } - - DictionaryType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + DictionaryType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const DictionaryType& from); - void MergeFrom(const DictionaryType& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const DictionaryType& from) { + DictionaryType::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(DictionaryType* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "schema_proto.DictionaryType"; } protected: - explicit DictionaryType(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit DictionaryType(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_schema_5farrow_2eproto); - return ::descriptor_table_schema_5farrow_2eproto.file_level_metadata[kIndexInFileMessages]; - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -571,7 +591,7 @@ class DictionaryType PROTOBUF_FINAL : public: void clear_index_type(); const ::schema_proto::DataType& index_type() const; - ::schema_proto::DataType* release_index_type(); + PROTOBUF_NODISCARD ::schema_proto::DataType* release_index_type(); ::schema_proto::DataType* mutable_index_type(); void set_allocated_index_type(::schema_proto::DataType* index_type); private: @@ -589,7 +609,7 @@ class DictionaryType PROTOBUF_FINAL : public: void clear_value_type(); const ::schema_proto::DataType& value_type() const; - ::schema_proto::DataType* release_value_type(); + PROTOBUF_NODISCARD ::schema_proto::DataType* release_value_type(); ::schema_proto::DataType* mutable_value_type(); void set_allocated_value_type(::schema_proto::DataType* value_type); private: @@ -616,19 +636,23 @@ class DictionaryType PROTOBUF_FINAL : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::schema_proto::DataType* index_type_; - ::schema_proto::DataType* value_type_; - bool ordered_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::schema_proto::DataType* index_type_; + ::schema_proto::DataType* value_type_; + bool ordered_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_schema_5farrow_2eproto; }; // ------------------------------------------------------------------- -class MapType PROTOBUF_FINAL : +class MapType final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:schema_proto.MapType) */ { public: - inline MapType() : MapType(nullptr) {}; - virtual ~MapType(); + inline MapType() : MapType(nullptr) {} + ~MapType() override; + explicit PROTOBUF_CONSTEXPR MapType(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MapType(const MapType& from); MapType(MapType&& from) noexcept @@ -641,8 +665,13 @@ class MapType PROTOBUF_FINAL : return *this; } inline MapType& operator=(MapType&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -653,14 +682,14 @@ class MapType PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; + } + static const MapType& default_instance() { + return *internal_default_instance(); } - static const MapType& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const MapType* internal_default_instance() { return reinterpret_cast( &_MapType_default_instance_); @@ -673,7 +702,12 @@ class MapType PROTOBUF_FINAL : } inline void Swap(MapType* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -681,56 +715,53 @@ class MapType PROTOBUF_FINAL : } void UnsafeArenaSwap(MapType* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline MapType* New() const final { - return CreateMaybeMessage(nullptr); - } - - MapType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + MapType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MapType& from); - void MergeFrom(const MapType& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const MapType& from) { + MapType::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MapType* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "schema_proto.MapType"; } protected: - explicit MapType(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit MapType(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_schema_5farrow_2eproto); - return ::descriptor_table_schema_5farrow_2eproto.file_level_metadata[kIndexInFileMessages]; - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -755,17 +786,21 @@ class MapType PROTOBUF_FINAL : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - bool keys_sorted_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + bool keys_sorted_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_schema_5farrow_2eproto; }; // ------------------------------------------------------------------- -class DataType PROTOBUF_FINAL : +class DataType final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:schema_proto.DataType) */ { public: - inline DataType() : DataType(nullptr) {}; - virtual ~DataType(); + inline DataType() : DataType(nullptr) {} + ~DataType() override; + explicit PROTOBUF_CONSTEXPR DataType(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); DataType(const DataType& from); DataType(DataType&& from) noexcept @@ -778,8 +813,13 @@ class DataType PROTOBUF_FINAL : return *this; } inline DataType& operator=(DataType&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -790,13 +830,14 @@ class DataType PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; + } + static const DataType& default_instance() { + return *internal_default_instance(); } - static const DataType& default_instance(); - enum TypeRelatedValuesCase { kFixedSizeBinaryType = 1, kFixedSizeListType = 2, @@ -805,7 +846,6 @@ class DataType PROTOBUF_FINAL : TYPE_RELATED_VALUES_NOT_SET = 0, }; - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const DataType* internal_default_instance() { return reinterpret_cast( &_DataType_default_instance_); @@ -818,7 +858,12 @@ class DataType PROTOBUF_FINAL : } inline void Swap(DataType* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -826,56 +871,53 @@ class DataType PROTOBUF_FINAL : } void UnsafeArenaSwap(DataType* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline DataType* New() const final { - return CreateMaybeMessage(nullptr); - } - - DataType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + DataType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const DataType& from); - void MergeFrom(const DataType& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const DataType& from) { + DataType::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(DataType* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "schema_proto.DataType"; } protected: - explicit DataType(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit DataType(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_schema_5farrow_2eproto); - return ::descriptor_table_schema_5farrow_2eproto.file_level_metadata[kIndexInFileMessages]; - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -923,7 +965,7 @@ class DataType PROTOBUF_FINAL : public: void clear_fixed_size_binary_type(); const ::schema_proto::FixedSizeBinaryType& fixed_size_binary_type() const; - ::schema_proto::FixedSizeBinaryType* release_fixed_size_binary_type(); + PROTOBUF_NODISCARD ::schema_proto::FixedSizeBinaryType* release_fixed_size_binary_type(); ::schema_proto::FixedSizeBinaryType* mutable_fixed_size_binary_type(); void set_allocated_fixed_size_binary_type(::schema_proto::FixedSizeBinaryType* fixed_size_binary_type); private: @@ -941,7 +983,7 @@ class DataType PROTOBUF_FINAL : public: void clear_fixed_size_list_type(); const ::schema_proto::FixedSizeListType& fixed_size_list_type() const; - ::schema_proto::FixedSizeListType* release_fixed_size_list_type(); + PROTOBUF_NODISCARD ::schema_proto::FixedSizeListType* release_fixed_size_list_type(); ::schema_proto::FixedSizeListType* mutable_fixed_size_list_type(); void set_allocated_fixed_size_list_type(::schema_proto::FixedSizeListType* fixed_size_list_type); private: @@ -959,7 +1001,7 @@ class DataType PROTOBUF_FINAL : public: void clear_dictionary_type(); const ::schema_proto::DictionaryType& dictionary_type() const; - ::schema_proto::DictionaryType* release_dictionary_type(); + PROTOBUF_NODISCARD ::schema_proto::DictionaryType* release_dictionary_type(); ::schema_proto::DictionaryType* mutable_dictionary_type(); void set_allocated_dictionary_type(::schema_proto::DictionaryType* dictionary_type); private: @@ -977,7 +1019,7 @@ class DataType PROTOBUF_FINAL : public: void clear_map_type(); const ::schema_proto::MapType& map_type() const; - ::schema_proto::MapType* release_map_type(); + PROTOBUF_NODISCARD ::schema_proto::MapType* release_map_type(); ::schema_proto::MapType* mutable_map_type(); void set_allocated_map_type(::schema_proto::MapType* map_type); private: @@ -1004,27 +1046,32 @@ class DataType PROTOBUF_FINAL : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::schema_proto::Field > children_; - int logic_type_; - union TypeRelatedValuesUnion { - TypeRelatedValuesUnion() {} - ::schema_proto::FixedSizeBinaryType* fixed_size_binary_type_; - ::schema_proto::FixedSizeListType* fixed_size_list_type_; - ::schema_proto::DictionaryType* dictionary_type_; - ::schema_proto::MapType* map_type_; - } type_related_values_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::schema_proto::Field > children_; + int logic_type_; + union TypeRelatedValuesUnion { + constexpr TypeRelatedValuesUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::schema_proto::FixedSizeBinaryType* fixed_size_binary_type_; + ::schema_proto::FixedSizeListType* fixed_size_list_type_; + ::schema_proto::DictionaryType* dictionary_type_; + ::schema_proto::MapType* map_type_; + } type_related_values_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_schema_5farrow_2eproto; }; // ------------------------------------------------------------------- -class KeyValueMetadata PROTOBUF_FINAL : +class KeyValueMetadata final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:schema_proto.KeyValueMetadata) */ { public: - inline KeyValueMetadata() : KeyValueMetadata(nullptr) {}; - virtual ~KeyValueMetadata(); + inline KeyValueMetadata() : KeyValueMetadata(nullptr) {} + ~KeyValueMetadata() override; + explicit PROTOBUF_CONSTEXPR KeyValueMetadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); KeyValueMetadata(const KeyValueMetadata& from); KeyValueMetadata(KeyValueMetadata&& from) noexcept @@ -1037,8 +1084,13 @@ class KeyValueMetadata PROTOBUF_FINAL : return *this; } inline KeyValueMetadata& operator=(KeyValueMetadata&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -1049,14 +1101,14 @@ class KeyValueMetadata PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; + } + static const KeyValueMetadata& default_instance() { + return *internal_default_instance(); } - static const KeyValueMetadata& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const KeyValueMetadata* internal_default_instance() { return reinterpret_cast( &_KeyValueMetadata_default_instance_); @@ -1069,7 +1121,12 @@ class KeyValueMetadata PROTOBUF_FINAL : } inline void Swap(KeyValueMetadata* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -1077,56 +1134,53 @@ class KeyValueMetadata PROTOBUF_FINAL : } void UnsafeArenaSwap(KeyValueMetadata* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline KeyValueMetadata* New() const final { - return CreateMaybeMessage(nullptr); - } - - KeyValueMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + KeyValueMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const KeyValueMetadata& from); - void MergeFrom(const KeyValueMetadata& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const KeyValueMetadata& from) { + KeyValueMetadata::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(KeyValueMetadata* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "schema_proto.KeyValueMetadata"; } protected: - explicit KeyValueMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit KeyValueMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_schema_5farrow_2eproto); - return ::descriptor_table_schema_5farrow_2eproto.file_level_metadata[kIndexInFileMessages]; - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1191,18 +1245,22 @@ class KeyValueMetadata PROTOBUF_FINAL : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField keys_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField values_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField keys_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField values_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_schema_5farrow_2eproto; }; // ------------------------------------------------------------------- -class Field PROTOBUF_FINAL : +class Field final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:schema_proto.Field) */ { public: - inline Field() : Field(nullptr) {}; - virtual ~Field(); + inline Field() : Field(nullptr) {} + ~Field() override; + explicit PROTOBUF_CONSTEXPR Field(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); Field(const Field& from); Field(Field&& from) noexcept @@ -1215,8 +1273,13 @@ class Field PROTOBUF_FINAL : return *this; } inline Field& operator=(Field&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -1227,14 +1290,14 @@ class Field PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; + } + static const Field& default_instance() { + return *internal_default_instance(); } - static const Field& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const Field* internal_default_instance() { return reinterpret_cast( &_Field_default_instance_); @@ -1247,7 +1310,12 @@ class Field PROTOBUF_FINAL : } inline void Swap(Field* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -1255,56 +1323,53 @@ class Field PROTOBUF_FINAL : } void UnsafeArenaSwap(Field* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline Field* New() const final { - return CreateMaybeMessage(nullptr); - } - - Field* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + Field* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const Field& from); - void MergeFrom(const Field& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Field& from) { + Field::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Field* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "schema_proto.Field"; } protected: - explicit Field(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit Field(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_schema_5farrow_2eproto); - return ::descriptor_table_schema_5farrow_2eproto.file_level_metadata[kIndexInFileMessages]; - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1319,25 +1384,14 @@ class Field PROTOBUF_FINAL : // string name = 1; void clear_name(); const std::string& name() const; - void set_name(const std::string& value); - void set_name(std::string&& value); - void set_name(const char* value); - void set_name(const char* value, size_t size); + template + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); - std::string* release_name(); + PROTOBUF_NODISCARD std::string* release_name(); void set_allocated_name(std::string* name); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - std::string* unsafe_arena_release_name(); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_name( - std::string* name); private: const std::string& _internal_name() const; - void _internal_set_name(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); public: @@ -1348,7 +1402,7 @@ class Field PROTOBUF_FINAL : public: void clear_data_type(); const ::schema_proto::DataType& data_type() const; - ::schema_proto::DataType* release_data_type(); + PROTOBUF_NODISCARD ::schema_proto::DataType* release_data_type(); ::schema_proto::DataType* mutable_data_type(); void set_allocated_data_type(::schema_proto::DataType* data_type); private: @@ -1366,7 +1420,7 @@ class Field PROTOBUF_FINAL : public: void clear_metadata(); const ::schema_proto::KeyValueMetadata& metadata() const; - ::schema_proto::KeyValueMetadata* release_metadata(); + PROTOBUF_NODISCARD ::schema_proto::KeyValueMetadata* release_metadata(); ::schema_proto::KeyValueMetadata* mutable_metadata(); void set_allocated_metadata(::schema_proto::KeyValueMetadata* metadata); private: @@ -1393,20 +1447,24 @@ class Field PROTOBUF_FINAL : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; - ::schema_proto::DataType* data_type_; - ::schema_proto::KeyValueMetadata* metadata_; - bool nullable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::schema_proto::DataType* data_type_; + ::schema_proto::KeyValueMetadata* metadata_; + bool nullable_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_schema_5farrow_2eproto; }; // ------------------------------------------------------------------- -class SchemaOptions PROTOBUF_FINAL : +class SchemaOptions final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:schema_proto.SchemaOptions) */ { public: - inline SchemaOptions() : SchemaOptions(nullptr) {}; - virtual ~SchemaOptions(); + inline SchemaOptions() : SchemaOptions(nullptr) {} + ~SchemaOptions() override; + explicit PROTOBUF_CONSTEXPR SchemaOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SchemaOptions(const SchemaOptions& from); SchemaOptions(SchemaOptions&& from) noexcept @@ -1419,8 +1477,13 @@ class SchemaOptions PROTOBUF_FINAL : return *this; } inline SchemaOptions& operator=(SchemaOptions&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -1431,14 +1494,14 @@ class SchemaOptions PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; + } + static const SchemaOptions& default_instance() { + return *internal_default_instance(); } - static const SchemaOptions& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const SchemaOptions* internal_default_instance() { return reinterpret_cast( &_SchemaOptions_default_instance_); @@ -1451,7 +1514,12 @@ class SchemaOptions PROTOBUF_FINAL : } inline void Swap(SchemaOptions* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -1459,56 +1527,53 @@ class SchemaOptions PROTOBUF_FINAL : } void UnsafeArenaSwap(SchemaOptions* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline SchemaOptions* New() const final { - return CreateMaybeMessage(nullptr); - } - - SchemaOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + SchemaOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const SchemaOptions& from); - void MergeFrom(const SchemaOptions& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const SchemaOptions& from) { + SchemaOptions::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(SchemaOptions* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "schema_proto.SchemaOptions"; } protected: - explicit SchemaOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SchemaOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_schema_5farrow_2eproto); - return ::descriptor_table_schema_5farrow_2eproto.file_level_metadata[kIndexInFileMessages]; - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1522,75 +1587,42 @@ class SchemaOptions PROTOBUF_FINAL : // string primary_column = 1; void clear_primary_column(); const std::string& primary_column() const; - void set_primary_column(const std::string& value); - void set_primary_column(std::string&& value); - void set_primary_column(const char* value); - void set_primary_column(const char* value, size_t size); + template + void set_primary_column(ArgT0&& arg0, ArgT... args); std::string* mutable_primary_column(); - std::string* release_primary_column(); + PROTOBUF_NODISCARD std::string* release_primary_column(); void set_allocated_primary_column(std::string* primary_column); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - std::string* unsafe_arena_release_primary_column(); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_primary_column( - std::string* primary_column); private: const std::string& _internal_primary_column() const; - void _internal_set_primary_column(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_primary_column(const std::string& value); std::string* _internal_mutable_primary_column(); public: // string version_column = 2; void clear_version_column(); const std::string& version_column() const; - void set_version_column(const std::string& value); - void set_version_column(std::string&& value); - void set_version_column(const char* value); - void set_version_column(const char* value, size_t size); + template + void set_version_column(ArgT0&& arg0, ArgT... args); std::string* mutable_version_column(); - std::string* release_version_column(); + PROTOBUF_NODISCARD std::string* release_version_column(); void set_allocated_version_column(std::string* version_column); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - std::string* unsafe_arena_release_version_column(); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_version_column( - std::string* version_column); private: const std::string& _internal_version_column() const; - void _internal_set_version_column(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_version_column(const std::string& value); std::string* _internal_mutable_version_column(); public: // string vector_column = 3; void clear_vector_column(); const std::string& vector_column() const; - void set_vector_column(const std::string& value); - void set_vector_column(std::string&& value); - void set_vector_column(const char* value); - void set_vector_column(const char* value, size_t size); + template + void set_vector_column(ArgT0&& arg0, ArgT... args); std::string* mutable_vector_column(); - std::string* release_vector_column(); + PROTOBUF_NODISCARD std::string* release_vector_column(); void set_allocated_vector_column(std::string* vector_column); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - std::string* unsafe_arena_release_vector_column(); - GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_vector_column( - std::string* vector_column); private: const std::string& _internal_vector_column() const; - void _internal_set_vector_column(const std::string& value); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_vector_column(const std::string& value); std::string* _internal_mutable_vector_column(); public: @@ -1601,19 +1633,23 @@ class SchemaOptions PROTOBUF_FINAL : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr primary_column_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr version_column_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr vector_column_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr primary_column_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr version_column_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr vector_column_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_schema_5farrow_2eproto; }; // ------------------------------------------------------------------- -class ArrowSchema PROTOBUF_FINAL : +class ArrowSchema final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:schema_proto.ArrowSchema) */ { public: - inline ArrowSchema() : ArrowSchema(nullptr) {}; - virtual ~ArrowSchema(); + inline ArrowSchema() : ArrowSchema(nullptr) {} + ~ArrowSchema() override; + explicit PROTOBUF_CONSTEXPR ArrowSchema(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); ArrowSchema(const ArrowSchema& from); ArrowSchema(ArrowSchema&& from) noexcept @@ -1626,8 +1662,13 @@ class ArrowSchema PROTOBUF_FINAL : return *this; } inline ArrowSchema& operator=(ArrowSchema&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -1638,14 +1679,14 @@ class ArrowSchema PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; + } + static const ArrowSchema& default_instance() { + return *internal_default_instance(); } - static const ArrowSchema& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const ArrowSchema* internal_default_instance() { return reinterpret_cast( &_ArrowSchema_default_instance_); @@ -1658,7 +1699,12 @@ class ArrowSchema PROTOBUF_FINAL : } inline void Swap(ArrowSchema* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -1666,56 +1712,53 @@ class ArrowSchema PROTOBUF_FINAL : } void UnsafeArenaSwap(ArrowSchema* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline ArrowSchema* New() const final { - return CreateMaybeMessage(nullptr); - } - - ArrowSchema* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + ArrowSchema* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const ArrowSchema& from); - void MergeFrom(const ArrowSchema& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ArrowSchema& from) { + ArrowSchema::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(ArrowSchema* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "schema_proto.ArrowSchema"; } protected: - explicit ArrowSchema(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit ArrowSchema(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_schema_5farrow_2eproto); - return ::descriptor_table_schema_5farrow_2eproto.file_level_metadata[kIndexInFileMessages]; - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1751,7 +1794,7 @@ class ArrowSchema PROTOBUF_FINAL : public: void clear_metadata(); const ::schema_proto::KeyValueMetadata& metadata() const; - ::schema_proto::KeyValueMetadata* release_metadata(); + PROTOBUF_NODISCARD ::schema_proto::KeyValueMetadata* release_metadata(); ::schema_proto::KeyValueMetadata* mutable_metadata(); void set_allocated_metadata(::schema_proto::KeyValueMetadata* metadata); private: @@ -1778,19 +1821,23 @@ class ArrowSchema PROTOBUF_FINAL : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::schema_proto::Field > fields_; - ::schema_proto::KeyValueMetadata* metadata_; - int endianness_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::schema_proto::Field > fields_; + ::schema_proto::KeyValueMetadata* metadata_; + int endianness_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_schema_5farrow_2eproto; }; // ------------------------------------------------------------------- -class Schema PROTOBUF_FINAL : +class Schema final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:schema_proto.Schema) */ { public: - inline Schema() : Schema(nullptr) {}; - virtual ~Schema(); + inline Schema() : Schema(nullptr) {} + ~Schema() override; + explicit PROTOBUF_CONSTEXPR Schema(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); Schema(const Schema& from); Schema(Schema&& from) noexcept @@ -1803,8 +1850,13 @@ class Schema PROTOBUF_FINAL : return *this; } inline Schema& operator=(Schema&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -1815,14 +1867,14 @@ class Schema PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; + } + static const Schema& default_instance() { + return *internal_default_instance(); } - static const Schema& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const Schema* internal_default_instance() { return reinterpret_cast( &_Schema_default_instance_); @@ -1835,7 +1887,12 @@ class Schema PROTOBUF_FINAL : } inline void Swap(Schema* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -1843,56 +1900,53 @@ class Schema PROTOBUF_FINAL : } void UnsafeArenaSwap(Schema* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- - inline Schema* New() const final { - return CreateMaybeMessage(nullptr); - } - - Schema* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + Schema* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const Schema& from); - void MergeFrom(const Schema& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Schema& from) { + Schema::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize( - ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Schema* other); + + private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { return "schema_proto.Schema"; } protected: - explicit Schema(::PROTOBUF_NAMESPACE_ID::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit Schema(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_schema_5farrow_2eproto); - return ::descriptor_table_schema_5farrow_2eproto.file_level_metadata[kIndexInFileMessages]; - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1909,7 +1963,7 @@ class Schema PROTOBUF_FINAL : public: void clear_arrow_schema(); const ::schema_proto::ArrowSchema& arrow_schema() const; - ::schema_proto::ArrowSchema* release_arrow_schema(); + PROTOBUF_NODISCARD ::schema_proto::ArrowSchema* release_arrow_schema(); ::schema_proto::ArrowSchema* mutable_arrow_schema(); void set_allocated_arrow_schema(::schema_proto::ArrowSchema* arrow_schema); private: @@ -1927,7 +1981,7 @@ class Schema PROTOBUF_FINAL : public: void clear_schema_options(); const ::schema_proto::SchemaOptions& schema_options() const; - ::schema_proto::SchemaOptions* release_schema_options(); + PROTOBUF_NODISCARD ::schema_proto::SchemaOptions* release_schema_options(); ::schema_proto::SchemaOptions* mutable_schema_options(); void set_allocated_schema_options(::schema_proto::SchemaOptions* schema_options); private: @@ -1945,9 +1999,12 @@ class Schema PROTOBUF_FINAL : template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; - ::schema_proto::ArrowSchema* arrow_schema_; - ::schema_proto::SchemaOptions* schema_options_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + struct Impl_ { + ::schema_proto::ArrowSchema* arrow_schema_; + ::schema_proto::SchemaOptions* schema_options_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; friend struct ::TableStruct_schema_5farrow_2eproto; }; // =================================================================== @@ -1963,20 +2020,20 @@ class Schema PROTOBUF_FINAL : // int32 byte_width = 1; inline void FixedSizeBinaryType::clear_byte_width() { - byte_width_ = 0; + _impl_.byte_width_ = 0; } -inline ::PROTOBUF_NAMESPACE_ID::int32 FixedSizeBinaryType::_internal_byte_width() const { - return byte_width_; +inline int32_t FixedSizeBinaryType::_internal_byte_width() const { + return _impl_.byte_width_; } -inline ::PROTOBUF_NAMESPACE_ID::int32 FixedSizeBinaryType::byte_width() const { +inline int32_t FixedSizeBinaryType::byte_width() const { // @@protoc_insertion_point(field_get:schema_proto.FixedSizeBinaryType.byte_width) return _internal_byte_width(); } -inline void FixedSizeBinaryType::_internal_set_byte_width(::PROTOBUF_NAMESPACE_ID::int32 value) { +inline void FixedSizeBinaryType::_internal_set_byte_width(int32_t value) { - byte_width_ = value; + _impl_.byte_width_ = value; } -inline void FixedSizeBinaryType::set_byte_width(::PROTOBUF_NAMESPACE_ID::int32 value) { +inline void FixedSizeBinaryType::set_byte_width(int32_t value) { _internal_set_byte_width(value); // @@protoc_insertion_point(field_set:schema_proto.FixedSizeBinaryType.byte_width) } @@ -1987,20 +2044,20 @@ inline void FixedSizeBinaryType::set_byte_width(::PROTOBUF_NAMESPACE_ID::int32 v // int32 list_size = 1; inline void FixedSizeListType::clear_list_size() { - list_size_ = 0; + _impl_.list_size_ = 0; } -inline ::PROTOBUF_NAMESPACE_ID::int32 FixedSizeListType::_internal_list_size() const { - return list_size_; +inline int32_t FixedSizeListType::_internal_list_size() const { + return _impl_.list_size_; } -inline ::PROTOBUF_NAMESPACE_ID::int32 FixedSizeListType::list_size() const { +inline int32_t FixedSizeListType::list_size() const { // @@protoc_insertion_point(field_get:schema_proto.FixedSizeListType.list_size) return _internal_list_size(); } -inline void FixedSizeListType::_internal_set_list_size(::PROTOBUF_NAMESPACE_ID::int32 value) { +inline void FixedSizeListType::_internal_set_list_size(int32_t value) { - list_size_ = value; + _impl_.list_size_ = value; } -inline void FixedSizeListType::set_list_size(::PROTOBUF_NAMESPACE_ID::int32 value) { +inline void FixedSizeListType::set_list_size(int32_t value) { _internal_set_list_size(value); // @@protoc_insertion_point(field_set:schema_proto.FixedSizeListType.list_size) } @@ -2011,21 +2068,21 @@ inline void FixedSizeListType::set_list_size(::PROTOBUF_NAMESPACE_ID::int32 valu // .schema_proto.DataType index_type = 1; inline bool DictionaryType::_internal_has_index_type() const { - return this != internal_default_instance() && index_type_ != nullptr; + return this != internal_default_instance() && _impl_.index_type_ != nullptr; } inline bool DictionaryType::has_index_type() const { return _internal_has_index_type(); } inline void DictionaryType::clear_index_type() { - if (GetArena() == nullptr && index_type_ != nullptr) { - delete index_type_; + if (GetArenaForAllocation() == nullptr && _impl_.index_type_ != nullptr) { + delete _impl_.index_type_; } - index_type_ = nullptr; + _impl_.index_type_ = nullptr; } inline const ::schema_proto::DataType& DictionaryType::_internal_index_type() const { - const ::schema_proto::DataType* p = index_type_; - return p != nullptr ? *p : *reinterpret_cast( - &::schema_proto::_DataType_default_instance_); + const ::schema_proto::DataType* p = _impl_.index_type_; + return p != nullptr ? *p : reinterpret_cast( + ::schema_proto::_DataType_default_instance_); } inline const ::schema_proto::DataType& DictionaryType::index_type() const { // @@protoc_insertion_point(field_get:schema_proto.DictionaryType.index_type) @@ -2033,10 +2090,10 @@ inline const ::schema_proto::DataType& DictionaryType::index_type() const { } inline void DictionaryType::unsafe_arena_set_allocated_index_type( ::schema_proto::DataType* index_type) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(index_type_); + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.index_type_); } - index_type_ = index_type; + _impl_.index_type_ = index_type; if (index_type) { } else { @@ -2045,39 +2102,48 @@ inline void DictionaryType::unsafe_arena_set_allocated_index_type( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:schema_proto.DictionaryType.index_type) } inline ::schema_proto::DataType* DictionaryType::release_index_type() { - auto temp = unsafe_arena_release_index_type(); - if (GetArena() != nullptr) { + + ::schema_proto::DataType* temp = _impl_.index_type_; + _impl_.index_type_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::schema_proto::DataType* DictionaryType::unsafe_arena_release_index_type() { // @@protoc_insertion_point(field_release:schema_proto.DictionaryType.index_type) - ::schema_proto::DataType* temp = index_type_; - index_type_ = nullptr; + ::schema_proto::DataType* temp = _impl_.index_type_; + _impl_.index_type_ = nullptr; return temp; } inline ::schema_proto::DataType* DictionaryType::_internal_mutable_index_type() { - if (index_type_ == nullptr) { - auto* p = CreateMaybeMessage<::schema_proto::DataType>(GetArena()); - index_type_ = p; + if (_impl_.index_type_ == nullptr) { + auto* p = CreateMaybeMessage<::schema_proto::DataType>(GetArenaForAllocation()); + _impl_.index_type_ = p; } - return index_type_; + return _impl_.index_type_; } inline ::schema_proto::DataType* DictionaryType::mutable_index_type() { + ::schema_proto::DataType* _msg = _internal_mutable_index_type(); // @@protoc_insertion_point(field_mutable:schema_proto.DictionaryType.index_type) - return _internal_mutable_index_type(); + return _msg; } inline void DictionaryType::set_allocated_index_type(::schema_proto::DataType* index_type) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete index_type_; + delete _impl_.index_type_; } if (index_type) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(index_type); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(index_type); if (message_arena != submessage_arena) { index_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, index_type, submessage_arena); @@ -2086,27 +2152,27 @@ inline void DictionaryType::set_allocated_index_type(::schema_proto::DataType* i } else { } - index_type_ = index_type; + _impl_.index_type_ = index_type; // @@protoc_insertion_point(field_set_allocated:schema_proto.DictionaryType.index_type) } // .schema_proto.DataType value_type = 2; inline bool DictionaryType::_internal_has_value_type() const { - return this != internal_default_instance() && value_type_ != nullptr; + return this != internal_default_instance() && _impl_.value_type_ != nullptr; } inline bool DictionaryType::has_value_type() const { return _internal_has_value_type(); } inline void DictionaryType::clear_value_type() { - if (GetArena() == nullptr && value_type_ != nullptr) { - delete value_type_; + if (GetArenaForAllocation() == nullptr && _impl_.value_type_ != nullptr) { + delete _impl_.value_type_; } - value_type_ = nullptr; + _impl_.value_type_ = nullptr; } inline const ::schema_proto::DataType& DictionaryType::_internal_value_type() const { - const ::schema_proto::DataType* p = value_type_; - return p != nullptr ? *p : *reinterpret_cast( - &::schema_proto::_DataType_default_instance_); + const ::schema_proto::DataType* p = _impl_.value_type_; + return p != nullptr ? *p : reinterpret_cast( + ::schema_proto::_DataType_default_instance_); } inline const ::schema_proto::DataType& DictionaryType::value_type() const { // @@protoc_insertion_point(field_get:schema_proto.DictionaryType.value_type) @@ -2114,10 +2180,10 @@ inline const ::schema_proto::DataType& DictionaryType::value_type() const { } inline void DictionaryType::unsafe_arena_set_allocated_value_type( ::schema_proto::DataType* value_type) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(value_type_); + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.value_type_); } - value_type_ = value_type; + _impl_.value_type_ = value_type; if (value_type) { } else { @@ -2126,39 +2192,48 @@ inline void DictionaryType::unsafe_arena_set_allocated_value_type( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:schema_proto.DictionaryType.value_type) } inline ::schema_proto::DataType* DictionaryType::release_value_type() { - auto temp = unsafe_arena_release_value_type(); - if (GetArena() != nullptr) { + + ::schema_proto::DataType* temp = _impl_.value_type_; + _impl_.value_type_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::schema_proto::DataType* DictionaryType::unsafe_arena_release_value_type() { // @@protoc_insertion_point(field_release:schema_proto.DictionaryType.value_type) - ::schema_proto::DataType* temp = value_type_; - value_type_ = nullptr; + ::schema_proto::DataType* temp = _impl_.value_type_; + _impl_.value_type_ = nullptr; return temp; } inline ::schema_proto::DataType* DictionaryType::_internal_mutable_value_type() { - if (value_type_ == nullptr) { - auto* p = CreateMaybeMessage<::schema_proto::DataType>(GetArena()); - value_type_ = p; + if (_impl_.value_type_ == nullptr) { + auto* p = CreateMaybeMessage<::schema_proto::DataType>(GetArenaForAllocation()); + _impl_.value_type_ = p; } - return value_type_; + return _impl_.value_type_; } inline ::schema_proto::DataType* DictionaryType::mutable_value_type() { + ::schema_proto::DataType* _msg = _internal_mutable_value_type(); // @@protoc_insertion_point(field_mutable:schema_proto.DictionaryType.value_type) - return _internal_mutable_value_type(); + return _msg; } inline void DictionaryType::set_allocated_value_type(::schema_proto::DataType* value_type) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete value_type_; + delete _impl_.value_type_; } if (value_type) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(value_type); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(value_type); if (message_arena != submessage_arena) { value_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, value_type, submessage_arena); @@ -2167,16 +2242,16 @@ inline void DictionaryType::set_allocated_value_type(::schema_proto::DataType* v } else { } - value_type_ = value_type; + _impl_.value_type_ = value_type; // @@protoc_insertion_point(field_set_allocated:schema_proto.DictionaryType.value_type) } // bool ordered = 3; inline void DictionaryType::clear_ordered() { - ordered_ = false; + _impl_.ordered_ = false; } inline bool DictionaryType::_internal_ordered() const { - return ordered_; + return _impl_.ordered_; } inline bool DictionaryType::ordered() const { // @@protoc_insertion_point(field_get:schema_proto.DictionaryType.ordered) @@ -2184,7 +2259,7 @@ inline bool DictionaryType::ordered() const { } inline void DictionaryType::_internal_set_ordered(bool value) { - ordered_ = value; + _impl_.ordered_ = value; } inline void DictionaryType::set_ordered(bool value) { _internal_set_ordered(value); @@ -2197,10 +2272,10 @@ inline void DictionaryType::set_ordered(bool value) { // bool keys_sorted = 1; inline void MapType::clear_keys_sorted() { - keys_sorted_ = false; + _impl_.keys_sorted_ = false; } inline bool MapType::_internal_keys_sorted() const { - return keys_sorted_; + return _impl_.keys_sorted_; } inline bool MapType::keys_sorted() const { // @@protoc_insertion_point(field_get:schema_proto.MapType.keys_sorted) @@ -2208,7 +2283,7 @@ inline bool MapType::keys_sorted() const { } inline void MapType::_internal_set_keys_sorted(bool value) { - keys_sorted_ = value; + _impl_.keys_sorted_ = value; } inline void MapType::set_keys_sorted(bool value) { _internal_set_keys_sorted(value); @@ -2227,12 +2302,12 @@ inline bool DataType::has_fixed_size_binary_type() const { return _internal_has_fixed_size_binary_type(); } inline void DataType::set_has_fixed_size_binary_type() { - _oneof_case_[0] = kFixedSizeBinaryType; + _impl_._oneof_case_[0] = kFixedSizeBinaryType; } inline void DataType::clear_fixed_size_binary_type() { if (_internal_has_fixed_size_binary_type()) { - if (GetArena() == nullptr) { - delete type_related_values_.fixed_size_binary_type_; + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_related_values_.fixed_size_binary_type_; } clear_has_type_related_values(); } @@ -2241,11 +2316,11 @@ inline ::schema_proto::FixedSizeBinaryType* DataType::release_fixed_size_binary_ // @@protoc_insertion_point(field_release:schema_proto.DataType.fixed_size_binary_type) if (_internal_has_fixed_size_binary_type()) { clear_has_type_related_values(); - ::schema_proto::FixedSizeBinaryType* temp = type_related_values_.fixed_size_binary_type_; - if (GetArena() != nullptr) { + ::schema_proto::FixedSizeBinaryType* temp = _impl_.type_related_values_.fixed_size_binary_type_; + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - type_related_values_.fixed_size_binary_type_ = nullptr; + _impl_.type_related_values_.fixed_size_binary_type_ = nullptr; return temp; } else { return nullptr; @@ -2253,8 +2328,8 @@ inline ::schema_proto::FixedSizeBinaryType* DataType::release_fixed_size_binary_ } inline const ::schema_proto::FixedSizeBinaryType& DataType::_internal_fixed_size_binary_type() const { return _internal_has_fixed_size_binary_type() - ? *type_related_values_.fixed_size_binary_type_ - : *reinterpret_cast< ::schema_proto::FixedSizeBinaryType*>(&::schema_proto::_FixedSizeBinaryType_default_instance_); + ? *_impl_.type_related_values_.fixed_size_binary_type_ + : reinterpret_cast< ::schema_proto::FixedSizeBinaryType&>(::schema_proto::_FixedSizeBinaryType_default_instance_); } inline const ::schema_proto::FixedSizeBinaryType& DataType::fixed_size_binary_type() const { // @@protoc_insertion_point(field_get:schema_proto.DataType.fixed_size_binary_type) @@ -2264,8 +2339,8 @@ inline ::schema_proto::FixedSizeBinaryType* DataType::unsafe_arena_release_fixed // @@protoc_insertion_point(field_unsafe_arena_release:schema_proto.DataType.fixed_size_binary_type) if (_internal_has_fixed_size_binary_type()) { clear_has_type_related_values(); - ::schema_proto::FixedSizeBinaryType* temp = type_related_values_.fixed_size_binary_type_; - type_related_values_.fixed_size_binary_type_ = nullptr; + ::schema_proto::FixedSizeBinaryType* temp = _impl_.type_related_values_.fixed_size_binary_type_; + _impl_.type_related_values_.fixed_size_binary_type_ = nullptr; return temp; } else { return nullptr; @@ -2275,7 +2350,7 @@ inline void DataType::unsafe_arena_set_allocated_fixed_size_binary_type(::schema clear_type_related_values(); if (fixed_size_binary_type) { set_has_fixed_size_binary_type(); - type_related_values_.fixed_size_binary_type_ = fixed_size_binary_type; + _impl_.type_related_values_.fixed_size_binary_type_ = fixed_size_binary_type; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:schema_proto.DataType.fixed_size_binary_type) } @@ -2283,13 +2358,14 @@ inline ::schema_proto::FixedSizeBinaryType* DataType::_internal_mutable_fixed_si if (!_internal_has_fixed_size_binary_type()) { clear_type_related_values(); set_has_fixed_size_binary_type(); - type_related_values_.fixed_size_binary_type_ = CreateMaybeMessage< ::schema_proto::FixedSizeBinaryType >(GetArena()); + _impl_.type_related_values_.fixed_size_binary_type_ = CreateMaybeMessage< ::schema_proto::FixedSizeBinaryType >(GetArenaForAllocation()); } - return type_related_values_.fixed_size_binary_type_; + return _impl_.type_related_values_.fixed_size_binary_type_; } inline ::schema_proto::FixedSizeBinaryType* DataType::mutable_fixed_size_binary_type() { + ::schema_proto::FixedSizeBinaryType* _msg = _internal_mutable_fixed_size_binary_type(); // @@protoc_insertion_point(field_mutable:schema_proto.DataType.fixed_size_binary_type) - return _internal_mutable_fixed_size_binary_type(); + return _msg; } // .schema_proto.FixedSizeListType fixed_size_list_type = 2; @@ -2300,12 +2376,12 @@ inline bool DataType::has_fixed_size_list_type() const { return _internal_has_fixed_size_list_type(); } inline void DataType::set_has_fixed_size_list_type() { - _oneof_case_[0] = kFixedSizeListType; + _impl_._oneof_case_[0] = kFixedSizeListType; } inline void DataType::clear_fixed_size_list_type() { if (_internal_has_fixed_size_list_type()) { - if (GetArena() == nullptr) { - delete type_related_values_.fixed_size_list_type_; + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_related_values_.fixed_size_list_type_; } clear_has_type_related_values(); } @@ -2314,11 +2390,11 @@ inline ::schema_proto::FixedSizeListType* DataType::release_fixed_size_list_type // @@protoc_insertion_point(field_release:schema_proto.DataType.fixed_size_list_type) if (_internal_has_fixed_size_list_type()) { clear_has_type_related_values(); - ::schema_proto::FixedSizeListType* temp = type_related_values_.fixed_size_list_type_; - if (GetArena() != nullptr) { + ::schema_proto::FixedSizeListType* temp = _impl_.type_related_values_.fixed_size_list_type_; + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - type_related_values_.fixed_size_list_type_ = nullptr; + _impl_.type_related_values_.fixed_size_list_type_ = nullptr; return temp; } else { return nullptr; @@ -2326,8 +2402,8 @@ inline ::schema_proto::FixedSizeListType* DataType::release_fixed_size_list_type } inline const ::schema_proto::FixedSizeListType& DataType::_internal_fixed_size_list_type() const { return _internal_has_fixed_size_list_type() - ? *type_related_values_.fixed_size_list_type_ - : *reinterpret_cast< ::schema_proto::FixedSizeListType*>(&::schema_proto::_FixedSizeListType_default_instance_); + ? *_impl_.type_related_values_.fixed_size_list_type_ + : reinterpret_cast< ::schema_proto::FixedSizeListType&>(::schema_proto::_FixedSizeListType_default_instance_); } inline const ::schema_proto::FixedSizeListType& DataType::fixed_size_list_type() const { // @@protoc_insertion_point(field_get:schema_proto.DataType.fixed_size_list_type) @@ -2337,8 +2413,8 @@ inline ::schema_proto::FixedSizeListType* DataType::unsafe_arena_release_fixed_s // @@protoc_insertion_point(field_unsafe_arena_release:schema_proto.DataType.fixed_size_list_type) if (_internal_has_fixed_size_list_type()) { clear_has_type_related_values(); - ::schema_proto::FixedSizeListType* temp = type_related_values_.fixed_size_list_type_; - type_related_values_.fixed_size_list_type_ = nullptr; + ::schema_proto::FixedSizeListType* temp = _impl_.type_related_values_.fixed_size_list_type_; + _impl_.type_related_values_.fixed_size_list_type_ = nullptr; return temp; } else { return nullptr; @@ -2348,7 +2424,7 @@ inline void DataType::unsafe_arena_set_allocated_fixed_size_list_type(::schema_p clear_type_related_values(); if (fixed_size_list_type) { set_has_fixed_size_list_type(); - type_related_values_.fixed_size_list_type_ = fixed_size_list_type; + _impl_.type_related_values_.fixed_size_list_type_ = fixed_size_list_type; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:schema_proto.DataType.fixed_size_list_type) } @@ -2356,13 +2432,14 @@ inline ::schema_proto::FixedSizeListType* DataType::_internal_mutable_fixed_size if (!_internal_has_fixed_size_list_type()) { clear_type_related_values(); set_has_fixed_size_list_type(); - type_related_values_.fixed_size_list_type_ = CreateMaybeMessage< ::schema_proto::FixedSizeListType >(GetArena()); + _impl_.type_related_values_.fixed_size_list_type_ = CreateMaybeMessage< ::schema_proto::FixedSizeListType >(GetArenaForAllocation()); } - return type_related_values_.fixed_size_list_type_; + return _impl_.type_related_values_.fixed_size_list_type_; } inline ::schema_proto::FixedSizeListType* DataType::mutable_fixed_size_list_type() { + ::schema_proto::FixedSizeListType* _msg = _internal_mutable_fixed_size_list_type(); // @@protoc_insertion_point(field_mutable:schema_proto.DataType.fixed_size_list_type) - return _internal_mutable_fixed_size_list_type(); + return _msg; } // .schema_proto.DictionaryType dictionary_type = 3; @@ -2373,12 +2450,12 @@ inline bool DataType::has_dictionary_type() const { return _internal_has_dictionary_type(); } inline void DataType::set_has_dictionary_type() { - _oneof_case_[0] = kDictionaryType; + _impl_._oneof_case_[0] = kDictionaryType; } inline void DataType::clear_dictionary_type() { if (_internal_has_dictionary_type()) { - if (GetArena() == nullptr) { - delete type_related_values_.dictionary_type_; + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_related_values_.dictionary_type_; } clear_has_type_related_values(); } @@ -2387,11 +2464,11 @@ inline ::schema_proto::DictionaryType* DataType::release_dictionary_type() { // @@protoc_insertion_point(field_release:schema_proto.DataType.dictionary_type) if (_internal_has_dictionary_type()) { clear_has_type_related_values(); - ::schema_proto::DictionaryType* temp = type_related_values_.dictionary_type_; - if (GetArena() != nullptr) { + ::schema_proto::DictionaryType* temp = _impl_.type_related_values_.dictionary_type_; + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - type_related_values_.dictionary_type_ = nullptr; + _impl_.type_related_values_.dictionary_type_ = nullptr; return temp; } else { return nullptr; @@ -2399,8 +2476,8 @@ inline ::schema_proto::DictionaryType* DataType::release_dictionary_type() { } inline const ::schema_proto::DictionaryType& DataType::_internal_dictionary_type() const { return _internal_has_dictionary_type() - ? *type_related_values_.dictionary_type_ - : *reinterpret_cast< ::schema_proto::DictionaryType*>(&::schema_proto::_DictionaryType_default_instance_); + ? *_impl_.type_related_values_.dictionary_type_ + : reinterpret_cast< ::schema_proto::DictionaryType&>(::schema_proto::_DictionaryType_default_instance_); } inline const ::schema_proto::DictionaryType& DataType::dictionary_type() const { // @@protoc_insertion_point(field_get:schema_proto.DataType.dictionary_type) @@ -2410,8 +2487,8 @@ inline ::schema_proto::DictionaryType* DataType::unsafe_arena_release_dictionary // @@protoc_insertion_point(field_unsafe_arena_release:schema_proto.DataType.dictionary_type) if (_internal_has_dictionary_type()) { clear_has_type_related_values(); - ::schema_proto::DictionaryType* temp = type_related_values_.dictionary_type_; - type_related_values_.dictionary_type_ = nullptr; + ::schema_proto::DictionaryType* temp = _impl_.type_related_values_.dictionary_type_; + _impl_.type_related_values_.dictionary_type_ = nullptr; return temp; } else { return nullptr; @@ -2421,7 +2498,7 @@ inline void DataType::unsafe_arena_set_allocated_dictionary_type(::schema_proto: clear_type_related_values(); if (dictionary_type) { set_has_dictionary_type(); - type_related_values_.dictionary_type_ = dictionary_type; + _impl_.type_related_values_.dictionary_type_ = dictionary_type; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:schema_proto.DataType.dictionary_type) } @@ -2429,13 +2506,14 @@ inline ::schema_proto::DictionaryType* DataType::_internal_mutable_dictionary_ty if (!_internal_has_dictionary_type()) { clear_type_related_values(); set_has_dictionary_type(); - type_related_values_.dictionary_type_ = CreateMaybeMessage< ::schema_proto::DictionaryType >(GetArena()); + _impl_.type_related_values_.dictionary_type_ = CreateMaybeMessage< ::schema_proto::DictionaryType >(GetArenaForAllocation()); } - return type_related_values_.dictionary_type_; + return _impl_.type_related_values_.dictionary_type_; } inline ::schema_proto::DictionaryType* DataType::mutable_dictionary_type() { + ::schema_proto::DictionaryType* _msg = _internal_mutable_dictionary_type(); // @@protoc_insertion_point(field_mutable:schema_proto.DataType.dictionary_type) - return _internal_mutable_dictionary_type(); + return _msg; } // .schema_proto.MapType map_type = 4; @@ -2446,12 +2524,12 @@ inline bool DataType::has_map_type() const { return _internal_has_map_type(); } inline void DataType::set_has_map_type() { - _oneof_case_[0] = kMapType; + _impl_._oneof_case_[0] = kMapType; } inline void DataType::clear_map_type() { if (_internal_has_map_type()) { - if (GetArena() == nullptr) { - delete type_related_values_.map_type_; + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_related_values_.map_type_; } clear_has_type_related_values(); } @@ -2460,11 +2538,11 @@ inline ::schema_proto::MapType* DataType::release_map_type() { // @@protoc_insertion_point(field_release:schema_proto.DataType.map_type) if (_internal_has_map_type()) { clear_has_type_related_values(); - ::schema_proto::MapType* temp = type_related_values_.map_type_; - if (GetArena() != nullptr) { + ::schema_proto::MapType* temp = _impl_.type_related_values_.map_type_; + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - type_related_values_.map_type_ = nullptr; + _impl_.type_related_values_.map_type_ = nullptr; return temp; } else { return nullptr; @@ -2472,8 +2550,8 @@ inline ::schema_proto::MapType* DataType::release_map_type() { } inline const ::schema_proto::MapType& DataType::_internal_map_type() const { return _internal_has_map_type() - ? *type_related_values_.map_type_ - : *reinterpret_cast< ::schema_proto::MapType*>(&::schema_proto::_MapType_default_instance_); + ? *_impl_.type_related_values_.map_type_ + : reinterpret_cast< ::schema_proto::MapType&>(::schema_proto::_MapType_default_instance_); } inline const ::schema_proto::MapType& DataType::map_type() const { // @@protoc_insertion_point(field_get:schema_proto.DataType.map_type) @@ -2483,8 +2561,8 @@ inline ::schema_proto::MapType* DataType::unsafe_arena_release_map_type() { // @@protoc_insertion_point(field_unsafe_arena_release:schema_proto.DataType.map_type) if (_internal_has_map_type()) { clear_has_type_related_values(); - ::schema_proto::MapType* temp = type_related_values_.map_type_; - type_related_values_.map_type_ = nullptr; + ::schema_proto::MapType* temp = _impl_.type_related_values_.map_type_; + _impl_.type_related_values_.map_type_ = nullptr; return temp; } else { return nullptr; @@ -2494,7 +2572,7 @@ inline void DataType::unsafe_arena_set_allocated_map_type(::schema_proto::MapTyp clear_type_related_values(); if (map_type) { set_has_map_type(); - type_related_values_.map_type_ = map_type; + _impl_.type_related_values_.map_type_ = map_type; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:schema_proto.DataType.map_type) } @@ -2502,21 +2580,22 @@ inline ::schema_proto::MapType* DataType::_internal_mutable_map_type() { if (!_internal_has_map_type()) { clear_type_related_values(); set_has_map_type(); - type_related_values_.map_type_ = CreateMaybeMessage< ::schema_proto::MapType >(GetArena()); + _impl_.type_related_values_.map_type_ = CreateMaybeMessage< ::schema_proto::MapType >(GetArenaForAllocation()); } - return type_related_values_.map_type_; + return _impl_.type_related_values_.map_type_; } inline ::schema_proto::MapType* DataType::mutable_map_type() { + ::schema_proto::MapType* _msg = _internal_mutable_map_type(); // @@protoc_insertion_point(field_mutable:schema_proto.DataType.map_type) - return _internal_mutable_map_type(); + return _msg; } // .schema_proto.LogicType logic_type = 100; inline void DataType::clear_logic_type() { - logic_type_ = 0; + _impl_.logic_type_ = 0; } inline ::schema_proto::LogicType DataType::_internal_logic_type() const { - return static_cast< ::schema_proto::LogicType >(logic_type_); + return static_cast< ::schema_proto::LogicType >(_impl_.logic_type_); } inline ::schema_proto::LogicType DataType::logic_type() const { // @@protoc_insertion_point(field_get:schema_proto.DataType.logic_type) @@ -2524,7 +2603,7 @@ inline ::schema_proto::LogicType DataType::logic_type() const { } inline void DataType::_internal_set_logic_type(::schema_proto::LogicType value) { - logic_type_ = value; + _impl_.logic_type_ = value; } inline void DataType::set_logic_type(::schema_proto::LogicType value) { _internal_set_logic_type(value); @@ -2533,51 +2612,52 @@ inline void DataType::set_logic_type(::schema_proto::LogicType value) { // repeated .schema_proto.Field children = 101; inline int DataType::_internal_children_size() const { - return children_.size(); + return _impl_.children_.size(); } inline int DataType::children_size() const { return _internal_children_size(); } inline void DataType::clear_children() { - children_.Clear(); + _impl_.children_.Clear(); } inline ::schema_proto::Field* DataType::mutable_children(int index) { // @@protoc_insertion_point(field_mutable:schema_proto.DataType.children) - return children_.Mutable(index); + return _impl_.children_.Mutable(index); } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::schema_proto::Field >* DataType::mutable_children() { // @@protoc_insertion_point(field_mutable_list:schema_proto.DataType.children) - return &children_; + return &_impl_.children_; } inline const ::schema_proto::Field& DataType::_internal_children(int index) const { - return children_.Get(index); + return _impl_.children_.Get(index); } inline const ::schema_proto::Field& DataType::children(int index) const { // @@protoc_insertion_point(field_get:schema_proto.DataType.children) return _internal_children(index); } inline ::schema_proto::Field* DataType::_internal_add_children() { - return children_.Add(); + return _impl_.children_.Add(); } inline ::schema_proto::Field* DataType::add_children() { + ::schema_proto::Field* _add = _internal_add_children(); // @@protoc_insertion_point(field_add:schema_proto.DataType.children) - return _internal_add_children(); + return _add; } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::schema_proto::Field >& DataType::children() const { // @@protoc_insertion_point(field_list:schema_proto.DataType.children) - return children_; + return _impl_.children_; } inline bool DataType::has_type_related_values() const { return type_related_values_case() != TYPE_RELATED_VALUES_NOT_SET; } inline void DataType::clear_has_type_related_values() { - _oneof_case_[0] = TYPE_RELATED_VALUES_NOT_SET; + _impl_._oneof_case_[0] = TYPE_RELATED_VALUES_NOT_SET; } inline DataType::TypeRelatedValuesCase DataType::type_related_values_case() const { - return DataType::TypeRelatedValuesCase(_oneof_case_[0]); + return DataType::TypeRelatedValuesCase(_impl_._oneof_case_[0]); } // ------------------------------------------------------------------- @@ -2585,20 +2665,21 @@ inline DataType::TypeRelatedValuesCase DataType::type_related_values_case() cons // repeated string keys = 1; inline int KeyValueMetadata::_internal_keys_size() const { - return keys_.size(); + return _impl_.keys_.size(); } inline int KeyValueMetadata::keys_size() const { return _internal_keys_size(); } inline void KeyValueMetadata::clear_keys() { - keys_.Clear(); + _impl_.keys_.Clear(); } inline std::string* KeyValueMetadata::add_keys() { + std::string* _s = _internal_add_keys(); // @@protoc_insertion_point(field_add_mutable:schema_proto.KeyValueMetadata.keys) - return _internal_add_keys(); + return _s; } inline const std::string& KeyValueMetadata::_internal_keys(int index) const { - return keys_.Get(index); + return _impl_.keys_.Get(index); } inline const std::string& KeyValueMetadata::keys(int index) const { // @@protoc_insertion_point(field_get:schema_proto.KeyValueMetadata.keys) @@ -2606,73 +2687,74 @@ inline const std::string& KeyValueMetadata::keys(int index) const { } inline std::string* KeyValueMetadata::mutable_keys(int index) { // @@protoc_insertion_point(field_mutable:schema_proto.KeyValueMetadata.keys) - return keys_.Mutable(index); + return _impl_.keys_.Mutable(index); } inline void KeyValueMetadata::set_keys(int index, const std::string& value) { + _impl_.keys_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:schema_proto.KeyValueMetadata.keys) - keys_.Mutable(index)->assign(value); } inline void KeyValueMetadata::set_keys(int index, std::string&& value) { + _impl_.keys_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:schema_proto.KeyValueMetadata.keys) - keys_.Mutable(index)->assign(std::move(value)); } inline void KeyValueMetadata::set_keys(int index, const char* value) { GOOGLE_DCHECK(value != nullptr); - keys_.Mutable(index)->assign(value); + _impl_.keys_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:schema_proto.KeyValueMetadata.keys) } inline void KeyValueMetadata::set_keys(int index, const char* value, size_t size) { - keys_.Mutable(index)->assign( + _impl_.keys_.Mutable(index)->assign( reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:schema_proto.KeyValueMetadata.keys) } inline std::string* KeyValueMetadata::_internal_add_keys() { - return keys_.Add(); + return _impl_.keys_.Add(); } inline void KeyValueMetadata::add_keys(const std::string& value) { - keys_.Add()->assign(value); + _impl_.keys_.Add()->assign(value); // @@protoc_insertion_point(field_add:schema_proto.KeyValueMetadata.keys) } inline void KeyValueMetadata::add_keys(std::string&& value) { - keys_.Add(std::move(value)); + _impl_.keys_.Add(std::move(value)); // @@protoc_insertion_point(field_add:schema_proto.KeyValueMetadata.keys) } inline void KeyValueMetadata::add_keys(const char* value) { GOOGLE_DCHECK(value != nullptr); - keys_.Add()->assign(value); + _impl_.keys_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:schema_proto.KeyValueMetadata.keys) } inline void KeyValueMetadata::add_keys(const char* value, size_t size) { - keys_.Add()->assign(reinterpret_cast(value), size); + _impl_.keys_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:schema_proto.KeyValueMetadata.keys) } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& KeyValueMetadata::keys() const { // @@protoc_insertion_point(field_list:schema_proto.KeyValueMetadata.keys) - return keys_; + return _impl_.keys_; } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* KeyValueMetadata::mutable_keys() { // @@protoc_insertion_point(field_mutable_list:schema_proto.KeyValueMetadata.keys) - return &keys_; + return &_impl_.keys_; } // repeated string values = 2; inline int KeyValueMetadata::_internal_values_size() const { - return values_.size(); + return _impl_.values_.size(); } inline int KeyValueMetadata::values_size() const { return _internal_values_size(); } inline void KeyValueMetadata::clear_values() { - values_.Clear(); + _impl_.values_.Clear(); } inline std::string* KeyValueMetadata::add_values() { + std::string* _s = _internal_add_values(); // @@protoc_insertion_point(field_add_mutable:schema_proto.KeyValueMetadata.values) - return _internal_add_values(); + return _s; } inline const std::string& KeyValueMetadata::_internal_values(int index) const { - return values_.Get(index); + return _impl_.values_.Get(index); } inline const std::string& KeyValueMetadata::values(int index) const { // @@protoc_insertion_point(field_get:schema_proto.KeyValueMetadata.values) @@ -2680,55 +2762,55 @@ inline const std::string& KeyValueMetadata::values(int index) const { } inline std::string* KeyValueMetadata::mutable_values(int index) { // @@protoc_insertion_point(field_mutable:schema_proto.KeyValueMetadata.values) - return values_.Mutable(index); + return _impl_.values_.Mutable(index); } inline void KeyValueMetadata::set_values(int index, const std::string& value) { + _impl_.values_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set:schema_proto.KeyValueMetadata.values) - values_.Mutable(index)->assign(value); } inline void KeyValueMetadata::set_values(int index, std::string&& value) { + _impl_.values_.Mutable(index)->assign(std::move(value)); // @@protoc_insertion_point(field_set:schema_proto.KeyValueMetadata.values) - values_.Mutable(index)->assign(std::move(value)); } inline void KeyValueMetadata::set_values(int index, const char* value) { GOOGLE_DCHECK(value != nullptr); - values_.Mutable(index)->assign(value); + _impl_.values_.Mutable(index)->assign(value); // @@protoc_insertion_point(field_set_char:schema_proto.KeyValueMetadata.values) } inline void KeyValueMetadata::set_values(int index, const char* value, size_t size) { - values_.Mutable(index)->assign( + _impl_.values_.Mutable(index)->assign( reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:schema_proto.KeyValueMetadata.values) } inline std::string* KeyValueMetadata::_internal_add_values() { - return values_.Add(); + return _impl_.values_.Add(); } inline void KeyValueMetadata::add_values(const std::string& value) { - values_.Add()->assign(value); + _impl_.values_.Add()->assign(value); // @@protoc_insertion_point(field_add:schema_proto.KeyValueMetadata.values) } inline void KeyValueMetadata::add_values(std::string&& value) { - values_.Add(std::move(value)); + _impl_.values_.Add(std::move(value)); // @@protoc_insertion_point(field_add:schema_proto.KeyValueMetadata.values) } inline void KeyValueMetadata::add_values(const char* value) { GOOGLE_DCHECK(value != nullptr); - values_.Add()->assign(value); + _impl_.values_.Add()->assign(value); // @@protoc_insertion_point(field_add_char:schema_proto.KeyValueMetadata.values) } inline void KeyValueMetadata::add_values(const char* value, size_t size) { - values_.Add()->assign(reinterpret_cast(value), size); + _impl_.values_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:schema_proto.KeyValueMetadata.values) } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& KeyValueMetadata::values() const { // @@protoc_insertion_point(field_list:schema_proto.KeyValueMetadata.values) - return values_; + return _impl_.values_; } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* KeyValueMetadata::mutable_values() { // @@protoc_insertion_point(field_mutable_list:schema_proto.KeyValueMetadata.values) - return &values_; + return &_impl_.values_; } // ------------------------------------------------------------------- @@ -2737,54 +2819,38 @@ KeyValueMetadata::mutable_values() { // string name = 1; inline void Field::clear_name() { - name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _impl_.name_.ClearToEmpty(); } inline const std::string& Field::name() const { // @@protoc_insertion_point(field_get:schema_proto.Field.name) return _internal_name(); } -inline void Field::set_name(const std::string& value) { - _internal_set_name(value); +template +inline PROTOBUF_ALWAYS_INLINE +void Field::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:schema_proto.Field.name) } inline std::string* Field::mutable_name() { + std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:schema_proto.Field.name) - return _internal_mutable_name(); + return _s; } inline const std::string& Field::_internal_name() const { - return name_.Get(); + return _impl_.name_.Get(); } inline void Field::_internal_set_name(const std::string& value) { - name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); -} -inline void Field::set_name(std::string&& value) { - - name_.Set( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:schema_proto.Field.name) -} -inline void Field::set_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArena()); - // @@protoc_insertion_point(field_set_char:schema_proto.Field.name) -} -inline void Field::set_name(const char* value, - size_t size) { - - name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:schema_proto.Field.name) + _impl_.name_.Set(value, GetArenaForAllocation()); } inline std::string* Field::_internal_mutable_name() { - return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.name_.Mutable(GetArenaForAllocation()); } inline std::string* Field::release_name() { // @@protoc_insertion_point(field_release:schema_proto.Field.name) - return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.name_.Release(); } inline void Field::set_allocated_name(std::string* name) { if (name != nullptr) { @@ -2792,36 +2858,21 @@ inline void Field::set_allocated_name(std::string* name) { } else { } - name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:schema_proto.Field.name) -} -inline std::string* Field::unsafe_arena_release_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:schema_proto.Field.name) - GOOGLE_DCHECK(GetArena() != nullptr); - - return name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArena()); -} -inline void Field::unsafe_arena_set_allocated_name( - std::string* name) { - GOOGLE_DCHECK(GetArena() != nullptr); - if (name != nullptr) { - - } else { - + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); } - name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - name, GetArena()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:schema_proto.Field.name) +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:schema_proto.Field.name) } // bool nullable = 2; inline void Field::clear_nullable() { - nullable_ = false; + _impl_.nullable_ = false; } inline bool Field::_internal_nullable() const { - return nullable_; + return _impl_.nullable_; } inline bool Field::nullable() const { // @@protoc_insertion_point(field_get:schema_proto.Field.nullable) @@ -2829,7 +2880,7 @@ inline bool Field::nullable() const { } inline void Field::_internal_set_nullable(bool value) { - nullable_ = value; + _impl_.nullable_ = value; } inline void Field::set_nullable(bool value) { _internal_set_nullable(value); @@ -2838,21 +2889,21 @@ inline void Field::set_nullable(bool value) { // .schema_proto.DataType data_type = 3; inline bool Field::_internal_has_data_type() const { - return this != internal_default_instance() && data_type_ != nullptr; + return this != internal_default_instance() && _impl_.data_type_ != nullptr; } inline bool Field::has_data_type() const { return _internal_has_data_type(); } inline void Field::clear_data_type() { - if (GetArena() == nullptr && data_type_ != nullptr) { - delete data_type_; + if (GetArenaForAllocation() == nullptr && _impl_.data_type_ != nullptr) { + delete _impl_.data_type_; } - data_type_ = nullptr; + _impl_.data_type_ = nullptr; } inline const ::schema_proto::DataType& Field::_internal_data_type() const { - const ::schema_proto::DataType* p = data_type_; - return p != nullptr ? *p : *reinterpret_cast( - &::schema_proto::_DataType_default_instance_); + const ::schema_proto::DataType* p = _impl_.data_type_; + return p != nullptr ? *p : reinterpret_cast( + ::schema_proto::_DataType_default_instance_); } inline const ::schema_proto::DataType& Field::data_type() const { // @@protoc_insertion_point(field_get:schema_proto.Field.data_type) @@ -2860,10 +2911,10 @@ inline const ::schema_proto::DataType& Field::data_type() const { } inline void Field::unsafe_arena_set_allocated_data_type( ::schema_proto::DataType* data_type) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(data_type_); + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.data_type_); } - data_type_ = data_type; + _impl_.data_type_ = data_type; if (data_type) { } else { @@ -2872,39 +2923,48 @@ inline void Field::unsafe_arena_set_allocated_data_type( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:schema_proto.Field.data_type) } inline ::schema_proto::DataType* Field::release_data_type() { - auto temp = unsafe_arena_release_data_type(); - if (GetArena() != nullptr) { + + ::schema_proto::DataType* temp = _impl_.data_type_; + _impl_.data_type_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::schema_proto::DataType* Field::unsafe_arena_release_data_type() { // @@protoc_insertion_point(field_release:schema_proto.Field.data_type) - ::schema_proto::DataType* temp = data_type_; - data_type_ = nullptr; + ::schema_proto::DataType* temp = _impl_.data_type_; + _impl_.data_type_ = nullptr; return temp; } inline ::schema_proto::DataType* Field::_internal_mutable_data_type() { - if (data_type_ == nullptr) { - auto* p = CreateMaybeMessage<::schema_proto::DataType>(GetArena()); - data_type_ = p; + if (_impl_.data_type_ == nullptr) { + auto* p = CreateMaybeMessage<::schema_proto::DataType>(GetArenaForAllocation()); + _impl_.data_type_ = p; } - return data_type_; + return _impl_.data_type_; } inline ::schema_proto::DataType* Field::mutable_data_type() { + ::schema_proto::DataType* _msg = _internal_mutable_data_type(); // @@protoc_insertion_point(field_mutable:schema_proto.Field.data_type) - return _internal_mutable_data_type(); + return _msg; } inline void Field::set_allocated_data_type(::schema_proto::DataType* data_type) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete data_type_; + delete _impl_.data_type_; } if (data_type) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(data_type); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(data_type); if (message_arena != submessage_arena) { data_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, data_type, submessage_arena); @@ -2913,27 +2973,27 @@ inline void Field::set_allocated_data_type(::schema_proto::DataType* data_type) } else { } - data_type_ = data_type; + _impl_.data_type_ = data_type; // @@protoc_insertion_point(field_set_allocated:schema_proto.Field.data_type) } // .schema_proto.KeyValueMetadata metadata = 4; inline bool Field::_internal_has_metadata() const { - return this != internal_default_instance() && metadata_ != nullptr; + return this != internal_default_instance() && _impl_.metadata_ != nullptr; } inline bool Field::has_metadata() const { return _internal_has_metadata(); } inline void Field::clear_metadata() { - if (GetArena() == nullptr && metadata_ != nullptr) { - delete metadata_; + if (GetArenaForAllocation() == nullptr && _impl_.metadata_ != nullptr) { + delete _impl_.metadata_; } - metadata_ = nullptr; + _impl_.metadata_ = nullptr; } inline const ::schema_proto::KeyValueMetadata& Field::_internal_metadata() const { - const ::schema_proto::KeyValueMetadata* p = metadata_; - return p != nullptr ? *p : *reinterpret_cast( - &::schema_proto::_KeyValueMetadata_default_instance_); + const ::schema_proto::KeyValueMetadata* p = _impl_.metadata_; + return p != nullptr ? *p : reinterpret_cast( + ::schema_proto::_KeyValueMetadata_default_instance_); } inline const ::schema_proto::KeyValueMetadata& Field::metadata() const { // @@protoc_insertion_point(field_get:schema_proto.Field.metadata) @@ -2941,10 +3001,10 @@ inline const ::schema_proto::KeyValueMetadata& Field::metadata() const { } inline void Field::unsafe_arena_set_allocated_metadata( ::schema_proto::KeyValueMetadata* metadata) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(metadata_); + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.metadata_); } - metadata_ = metadata; + _impl_.metadata_ = metadata; if (metadata) { } else { @@ -2953,39 +3013,48 @@ inline void Field::unsafe_arena_set_allocated_metadata( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:schema_proto.Field.metadata) } inline ::schema_proto::KeyValueMetadata* Field::release_metadata() { - auto temp = unsafe_arena_release_metadata(); - if (GetArena() != nullptr) { + + ::schema_proto::KeyValueMetadata* temp = _impl_.metadata_; + _impl_.metadata_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::schema_proto::KeyValueMetadata* Field::unsafe_arena_release_metadata() { // @@protoc_insertion_point(field_release:schema_proto.Field.metadata) - ::schema_proto::KeyValueMetadata* temp = metadata_; - metadata_ = nullptr; + ::schema_proto::KeyValueMetadata* temp = _impl_.metadata_; + _impl_.metadata_ = nullptr; return temp; } inline ::schema_proto::KeyValueMetadata* Field::_internal_mutable_metadata() { - if (metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::schema_proto::KeyValueMetadata>(GetArena()); - metadata_ = p; + if (_impl_.metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::schema_proto::KeyValueMetadata>(GetArenaForAllocation()); + _impl_.metadata_ = p; } - return metadata_; + return _impl_.metadata_; } inline ::schema_proto::KeyValueMetadata* Field::mutable_metadata() { + ::schema_proto::KeyValueMetadata* _msg = _internal_mutable_metadata(); // @@protoc_insertion_point(field_mutable:schema_proto.Field.metadata) - return _internal_mutable_metadata(); + return _msg; } inline void Field::set_allocated_metadata(::schema_proto::KeyValueMetadata* metadata) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete metadata_; + delete _impl_.metadata_; } if (metadata) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(metadata); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(metadata); if (message_arena != submessage_arena) { metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, metadata, submessage_arena); @@ -2994,7 +3063,7 @@ inline void Field::set_allocated_metadata(::schema_proto::KeyValueMetadata* meta } else { } - metadata_ = metadata; + _impl_.metadata_ = metadata; // @@protoc_insertion_point(field_set_allocated:schema_proto.Field.metadata) } @@ -3004,54 +3073,38 @@ inline void Field::set_allocated_metadata(::schema_proto::KeyValueMetadata* meta // string primary_column = 1; inline void SchemaOptions::clear_primary_column() { - primary_column_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _impl_.primary_column_.ClearToEmpty(); } inline const std::string& SchemaOptions::primary_column() const { // @@protoc_insertion_point(field_get:schema_proto.SchemaOptions.primary_column) return _internal_primary_column(); } -inline void SchemaOptions::set_primary_column(const std::string& value) { - _internal_set_primary_column(value); +template +inline PROTOBUF_ALWAYS_INLINE +void SchemaOptions::set_primary_column(ArgT0&& arg0, ArgT... args) { + + _impl_.primary_column_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:schema_proto.SchemaOptions.primary_column) } inline std::string* SchemaOptions::mutable_primary_column() { + std::string* _s = _internal_mutable_primary_column(); // @@protoc_insertion_point(field_mutable:schema_proto.SchemaOptions.primary_column) - return _internal_mutable_primary_column(); + return _s; } inline const std::string& SchemaOptions::_internal_primary_column() const { - return primary_column_.Get(); + return _impl_.primary_column_.Get(); } inline void SchemaOptions::_internal_set_primary_column(const std::string& value) { - primary_column_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); -} -inline void SchemaOptions::set_primary_column(std::string&& value) { - - primary_column_.Set( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:schema_proto.SchemaOptions.primary_column) -} -inline void SchemaOptions::set_primary_column(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - primary_column_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArena()); - // @@protoc_insertion_point(field_set_char:schema_proto.SchemaOptions.primary_column) -} -inline void SchemaOptions::set_primary_column(const char* value, - size_t size) { - - primary_column_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:schema_proto.SchemaOptions.primary_column) + _impl_.primary_column_.Set(value, GetArenaForAllocation()); } inline std::string* SchemaOptions::_internal_mutable_primary_column() { - return primary_column_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.primary_column_.Mutable(GetArenaForAllocation()); } inline std::string* SchemaOptions::release_primary_column() { // @@protoc_insertion_point(field_release:schema_proto.SchemaOptions.primary_column) - return primary_column_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.primary_column_.Release(); } inline void SchemaOptions::set_allocated_primary_column(std::string* primary_column) { if (primary_column != nullptr) { @@ -3059,80 +3112,49 @@ inline void SchemaOptions::set_allocated_primary_column(std::string* primary_col } else { } - primary_column_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), primary_column, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:schema_proto.SchemaOptions.primary_column) -} -inline std::string* SchemaOptions::unsafe_arena_release_primary_column() { - // @@protoc_insertion_point(field_unsafe_arena_release:schema_proto.SchemaOptions.primary_column) - GOOGLE_DCHECK(GetArena() != nullptr); - - return primary_column_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArena()); -} -inline void SchemaOptions::unsafe_arena_set_allocated_primary_column( - std::string* primary_column) { - GOOGLE_DCHECK(GetArena() != nullptr); - if (primary_column != nullptr) { - - } else { - + _impl_.primary_column_.SetAllocated(primary_column, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.primary_column_.IsDefault()) { + _impl_.primary_column_.Set("", GetArenaForAllocation()); } - primary_column_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - primary_column, GetArena()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:schema_proto.SchemaOptions.primary_column) +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:schema_proto.SchemaOptions.primary_column) } // string version_column = 2; inline void SchemaOptions::clear_version_column() { - version_column_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _impl_.version_column_.ClearToEmpty(); } inline const std::string& SchemaOptions::version_column() const { // @@protoc_insertion_point(field_get:schema_proto.SchemaOptions.version_column) return _internal_version_column(); } -inline void SchemaOptions::set_version_column(const std::string& value) { - _internal_set_version_column(value); +template +inline PROTOBUF_ALWAYS_INLINE +void SchemaOptions::set_version_column(ArgT0&& arg0, ArgT... args) { + + _impl_.version_column_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:schema_proto.SchemaOptions.version_column) } inline std::string* SchemaOptions::mutable_version_column() { + std::string* _s = _internal_mutable_version_column(); // @@protoc_insertion_point(field_mutable:schema_proto.SchemaOptions.version_column) - return _internal_mutable_version_column(); + return _s; } inline const std::string& SchemaOptions::_internal_version_column() const { - return version_column_.Get(); + return _impl_.version_column_.Get(); } inline void SchemaOptions::_internal_set_version_column(const std::string& value) { - version_column_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); -} -inline void SchemaOptions::set_version_column(std::string&& value) { - - version_column_.Set( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:schema_proto.SchemaOptions.version_column) -} -inline void SchemaOptions::set_version_column(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - version_column_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArena()); - // @@protoc_insertion_point(field_set_char:schema_proto.SchemaOptions.version_column) -} -inline void SchemaOptions::set_version_column(const char* value, - size_t size) { - - version_column_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:schema_proto.SchemaOptions.version_column) + _impl_.version_column_.Set(value, GetArenaForAllocation()); } inline std::string* SchemaOptions::_internal_mutable_version_column() { - return version_column_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.version_column_.Mutable(GetArenaForAllocation()); } inline std::string* SchemaOptions::release_version_column() { // @@protoc_insertion_point(field_release:schema_proto.SchemaOptions.version_column) - return version_column_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.version_column_.Release(); } inline void SchemaOptions::set_allocated_version_column(std::string* version_column) { if (version_column != nullptr) { @@ -3140,80 +3162,49 @@ inline void SchemaOptions::set_allocated_version_column(std::string* version_col } else { } - version_column_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), version_column, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:schema_proto.SchemaOptions.version_column) -} -inline std::string* SchemaOptions::unsafe_arena_release_version_column() { - // @@protoc_insertion_point(field_unsafe_arena_release:schema_proto.SchemaOptions.version_column) - GOOGLE_DCHECK(GetArena() != nullptr); - - return version_column_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArena()); -} -inline void SchemaOptions::unsafe_arena_set_allocated_version_column( - std::string* version_column) { - GOOGLE_DCHECK(GetArena() != nullptr); - if (version_column != nullptr) { - - } else { - + _impl_.version_column_.SetAllocated(version_column, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.version_column_.IsDefault()) { + _impl_.version_column_.Set("", GetArenaForAllocation()); } - version_column_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - version_column, GetArena()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:schema_proto.SchemaOptions.version_column) +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:schema_proto.SchemaOptions.version_column) } // string vector_column = 3; inline void SchemaOptions::clear_vector_column() { - vector_column_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + _impl_.vector_column_.ClearToEmpty(); } inline const std::string& SchemaOptions::vector_column() const { // @@protoc_insertion_point(field_get:schema_proto.SchemaOptions.vector_column) return _internal_vector_column(); } -inline void SchemaOptions::set_vector_column(const std::string& value) { - _internal_set_vector_column(value); +template +inline PROTOBUF_ALWAYS_INLINE +void SchemaOptions::set_vector_column(ArgT0&& arg0, ArgT... args) { + + _impl_.vector_column_.Set(static_cast(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:schema_proto.SchemaOptions.vector_column) } inline std::string* SchemaOptions::mutable_vector_column() { + std::string* _s = _internal_mutable_vector_column(); // @@protoc_insertion_point(field_mutable:schema_proto.SchemaOptions.vector_column) - return _internal_mutable_vector_column(); + return _s; } inline const std::string& SchemaOptions::_internal_vector_column() const { - return vector_column_.Get(); + return _impl_.vector_column_.Get(); } inline void SchemaOptions::_internal_set_vector_column(const std::string& value) { - vector_column_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena()); -} -inline void SchemaOptions::set_vector_column(std::string&& value) { - - vector_column_.Set( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena()); - // @@protoc_insertion_point(field_set_rvalue:schema_proto.SchemaOptions.vector_column) -} -inline void SchemaOptions::set_vector_column(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - vector_column_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArena()); - // @@protoc_insertion_point(field_set_char:schema_proto.SchemaOptions.vector_column) -} -inline void SchemaOptions::set_vector_column(const char* value, - size_t size) { - - vector_column_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArena()); - // @@protoc_insertion_point(field_set_pointer:schema_proto.SchemaOptions.vector_column) + _impl_.vector_column_.Set(value, GetArenaForAllocation()); } inline std::string* SchemaOptions::_internal_mutable_vector_column() { - return vector_column_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.vector_column_.Mutable(GetArenaForAllocation()); } inline std::string* SchemaOptions::release_vector_column() { // @@protoc_insertion_point(field_release:schema_proto.SchemaOptions.vector_column) - return vector_column_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return _impl_.vector_column_.Release(); } inline void SchemaOptions::set_allocated_vector_column(std::string* vector_column) { if (vector_column != nullptr) { @@ -3221,28 +3212,13 @@ inline void SchemaOptions::set_allocated_vector_column(std::string* vector_colum } else { } - vector_column_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), vector_column, - GetArena()); - // @@protoc_insertion_point(field_set_allocated:schema_proto.SchemaOptions.vector_column) -} -inline std::string* SchemaOptions::unsafe_arena_release_vector_column() { - // @@protoc_insertion_point(field_unsafe_arena_release:schema_proto.SchemaOptions.vector_column) - GOOGLE_DCHECK(GetArena() != nullptr); - - return vector_column_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArena()); -} -inline void SchemaOptions::unsafe_arena_set_allocated_vector_column( - std::string* vector_column) { - GOOGLE_DCHECK(GetArena() != nullptr); - if (vector_column != nullptr) { - - } else { - + _impl_.vector_column_.SetAllocated(vector_column, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.vector_column_.IsDefault()) { + _impl_.vector_column_.Set("", GetArenaForAllocation()); } - vector_column_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - vector_column, GetArena()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:schema_proto.SchemaOptions.vector_column) +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:schema_proto.SchemaOptions.vector_column) } // ------------------------------------------------------------------- @@ -3251,49 +3227,50 @@ inline void SchemaOptions::unsafe_arena_set_allocated_vector_column( // repeated .schema_proto.Field fields = 1; inline int ArrowSchema::_internal_fields_size() const { - return fields_.size(); + return _impl_.fields_.size(); } inline int ArrowSchema::fields_size() const { return _internal_fields_size(); } inline void ArrowSchema::clear_fields() { - fields_.Clear(); + _impl_.fields_.Clear(); } inline ::schema_proto::Field* ArrowSchema::mutable_fields(int index) { // @@protoc_insertion_point(field_mutable:schema_proto.ArrowSchema.fields) - return fields_.Mutable(index); + return _impl_.fields_.Mutable(index); } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::schema_proto::Field >* ArrowSchema::mutable_fields() { // @@protoc_insertion_point(field_mutable_list:schema_proto.ArrowSchema.fields) - return &fields_; + return &_impl_.fields_; } inline const ::schema_proto::Field& ArrowSchema::_internal_fields(int index) const { - return fields_.Get(index); + return _impl_.fields_.Get(index); } inline const ::schema_proto::Field& ArrowSchema::fields(int index) const { // @@protoc_insertion_point(field_get:schema_proto.ArrowSchema.fields) return _internal_fields(index); } inline ::schema_proto::Field* ArrowSchema::_internal_add_fields() { - return fields_.Add(); + return _impl_.fields_.Add(); } inline ::schema_proto::Field* ArrowSchema::add_fields() { + ::schema_proto::Field* _add = _internal_add_fields(); // @@protoc_insertion_point(field_add:schema_proto.ArrowSchema.fields) - return _internal_add_fields(); + return _add; } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::schema_proto::Field >& ArrowSchema::fields() const { // @@protoc_insertion_point(field_list:schema_proto.ArrowSchema.fields) - return fields_; + return _impl_.fields_; } // .schema_proto.Endianness endianness = 2; inline void ArrowSchema::clear_endianness() { - endianness_ = 0; + _impl_.endianness_ = 0; } inline ::schema_proto::Endianness ArrowSchema::_internal_endianness() const { - return static_cast< ::schema_proto::Endianness >(endianness_); + return static_cast< ::schema_proto::Endianness >(_impl_.endianness_); } inline ::schema_proto::Endianness ArrowSchema::endianness() const { // @@protoc_insertion_point(field_get:schema_proto.ArrowSchema.endianness) @@ -3301,7 +3278,7 @@ inline ::schema_proto::Endianness ArrowSchema::endianness() const { } inline void ArrowSchema::_internal_set_endianness(::schema_proto::Endianness value) { - endianness_ = value; + _impl_.endianness_ = value; } inline void ArrowSchema::set_endianness(::schema_proto::Endianness value) { _internal_set_endianness(value); @@ -3310,21 +3287,21 @@ inline void ArrowSchema::set_endianness(::schema_proto::Endianness value) { // .schema_proto.KeyValueMetadata metadata = 3; inline bool ArrowSchema::_internal_has_metadata() const { - return this != internal_default_instance() && metadata_ != nullptr; + return this != internal_default_instance() && _impl_.metadata_ != nullptr; } inline bool ArrowSchema::has_metadata() const { return _internal_has_metadata(); } inline void ArrowSchema::clear_metadata() { - if (GetArena() == nullptr && metadata_ != nullptr) { - delete metadata_; + if (GetArenaForAllocation() == nullptr && _impl_.metadata_ != nullptr) { + delete _impl_.metadata_; } - metadata_ = nullptr; + _impl_.metadata_ = nullptr; } inline const ::schema_proto::KeyValueMetadata& ArrowSchema::_internal_metadata() const { - const ::schema_proto::KeyValueMetadata* p = metadata_; - return p != nullptr ? *p : *reinterpret_cast( - &::schema_proto::_KeyValueMetadata_default_instance_); + const ::schema_proto::KeyValueMetadata* p = _impl_.metadata_; + return p != nullptr ? *p : reinterpret_cast( + ::schema_proto::_KeyValueMetadata_default_instance_); } inline const ::schema_proto::KeyValueMetadata& ArrowSchema::metadata() const { // @@protoc_insertion_point(field_get:schema_proto.ArrowSchema.metadata) @@ -3332,10 +3309,10 @@ inline const ::schema_proto::KeyValueMetadata& ArrowSchema::metadata() const { } inline void ArrowSchema::unsafe_arena_set_allocated_metadata( ::schema_proto::KeyValueMetadata* metadata) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(metadata_); + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.metadata_); } - metadata_ = metadata; + _impl_.metadata_ = metadata; if (metadata) { } else { @@ -3344,39 +3321,48 @@ inline void ArrowSchema::unsafe_arena_set_allocated_metadata( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:schema_proto.ArrowSchema.metadata) } inline ::schema_proto::KeyValueMetadata* ArrowSchema::release_metadata() { - auto temp = unsafe_arena_release_metadata(); - if (GetArena() != nullptr) { + + ::schema_proto::KeyValueMetadata* temp = _impl_.metadata_; + _impl_.metadata_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::schema_proto::KeyValueMetadata* ArrowSchema::unsafe_arena_release_metadata() { // @@protoc_insertion_point(field_release:schema_proto.ArrowSchema.metadata) - ::schema_proto::KeyValueMetadata* temp = metadata_; - metadata_ = nullptr; + ::schema_proto::KeyValueMetadata* temp = _impl_.metadata_; + _impl_.metadata_ = nullptr; return temp; } inline ::schema_proto::KeyValueMetadata* ArrowSchema::_internal_mutable_metadata() { - if (metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::schema_proto::KeyValueMetadata>(GetArena()); - metadata_ = p; + if (_impl_.metadata_ == nullptr) { + auto* p = CreateMaybeMessage<::schema_proto::KeyValueMetadata>(GetArenaForAllocation()); + _impl_.metadata_ = p; } - return metadata_; + return _impl_.metadata_; } inline ::schema_proto::KeyValueMetadata* ArrowSchema::mutable_metadata() { + ::schema_proto::KeyValueMetadata* _msg = _internal_mutable_metadata(); // @@protoc_insertion_point(field_mutable:schema_proto.ArrowSchema.metadata) - return _internal_mutable_metadata(); + return _msg; } inline void ArrowSchema::set_allocated_metadata(::schema_proto::KeyValueMetadata* metadata) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete metadata_; + delete _impl_.metadata_; } if (metadata) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(metadata); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(metadata); if (message_arena != submessage_arena) { metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, metadata, submessage_arena); @@ -3385,7 +3371,7 @@ inline void ArrowSchema::set_allocated_metadata(::schema_proto::KeyValueMetadata } else { } - metadata_ = metadata; + _impl_.metadata_ = metadata; // @@protoc_insertion_point(field_set_allocated:schema_proto.ArrowSchema.metadata) } @@ -3395,21 +3381,21 @@ inline void ArrowSchema::set_allocated_metadata(::schema_proto::KeyValueMetadata // .schema_proto.ArrowSchema arrow_schema = 1; inline bool Schema::_internal_has_arrow_schema() const { - return this != internal_default_instance() && arrow_schema_ != nullptr; + return this != internal_default_instance() && _impl_.arrow_schema_ != nullptr; } inline bool Schema::has_arrow_schema() const { return _internal_has_arrow_schema(); } inline void Schema::clear_arrow_schema() { - if (GetArena() == nullptr && arrow_schema_ != nullptr) { - delete arrow_schema_; + if (GetArenaForAllocation() == nullptr && _impl_.arrow_schema_ != nullptr) { + delete _impl_.arrow_schema_; } - arrow_schema_ = nullptr; + _impl_.arrow_schema_ = nullptr; } inline const ::schema_proto::ArrowSchema& Schema::_internal_arrow_schema() const { - const ::schema_proto::ArrowSchema* p = arrow_schema_; - return p != nullptr ? *p : *reinterpret_cast( - &::schema_proto::_ArrowSchema_default_instance_); + const ::schema_proto::ArrowSchema* p = _impl_.arrow_schema_; + return p != nullptr ? *p : reinterpret_cast( + ::schema_proto::_ArrowSchema_default_instance_); } inline const ::schema_proto::ArrowSchema& Schema::arrow_schema() const { // @@protoc_insertion_point(field_get:schema_proto.Schema.arrow_schema) @@ -3417,10 +3403,10 @@ inline const ::schema_proto::ArrowSchema& Schema::arrow_schema() const { } inline void Schema::unsafe_arena_set_allocated_arrow_schema( ::schema_proto::ArrowSchema* arrow_schema) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(arrow_schema_); + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.arrow_schema_); } - arrow_schema_ = arrow_schema; + _impl_.arrow_schema_ = arrow_schema; if (arrow_schema) { } else { @@ -3429,39 +3415,48 @@ inline void Schema::unsafe_arena_set_allocated_arrow_schema( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:schema_proto.Schema.arrow_schema) } inline ::schema_proto::ArrowSchema* Schema::release_arrow_schema() { - auto temp = unsafe_arena_release_arrow_schema(); - if (GetArena() != nullptr) { + + ::schema_proto::ArrowSchema* temp = _impl_.arrow_schema_; + _impl_.arrow_schema_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::schema_proto::ArrowSchema* Schema::unsafe_arena_release_arrow_schema() { // @@protoc_insertion_point(field_release:schema_proto.Schema.arrow_schema) - ::schema_proto::ArrowSchema* temp = arrow_schema_; - arrow_schema_ = nullptr; + ::schema_proto::ArrowSchema* temp = _impl_.arrow_schema_; + _impl_.arrow_schema_ = nullptr; return temp; } inline ::schema_proto::ArrowSchema* Schema::_internal_mutable_arrow_schema() { - if (arrow_schema_ == nullptr) { - auto* p = CreateMaybeMessage<::schema_proto::ArrowSchema>(GetArena()); - arrow_schema_ = p; + if (_impl_.arrow_schema_ == nullptr) { + auto* p = CreateMaybeMessage<::schema_proto::ArrowSchema>(GetArenaForAllocation()); + _impl_.arrow_schema_ = p; } - return arrow_schema_; + return _impl_.arrow_schema_; } inline ::schema_proto::ArrowSchema* Schema::mutable_arrow_schema() { + ::schema_proto::ArrowSchema* _msg = _internal_mutable_arrow_schema(); // @@protoc_insertion_point(field_mutable:schema_proto.Schema.arrow_schema) - return _internal_mutable_arrow_schema(); + return _msg; } inline void Schema::set_allocated_arrow_schema(::schema_proto::ArrowSchema* arrow_schema) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete arrow_schema_; + delete _impl_.arrow_schema_; } if (arrow_schema) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(arrow_schema); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(arrow_schema); if (message_arena != submessage_arena) { arrow_schema = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, arrow_schema, submessage_arena); @@ -3470,27 +3465,27 @@ inline void Schema::set_allocated_arrow_schema(::schema_proto::ArrowSchema* arro } else { } - arrow_schema_ = arrow_schema; + _impl_.arrow_schema_ = arrow_schema; // @@protoc_insertion_point(field_set_allocated:schema_proto.Schema.arrow_schema) } // .schema_proto.SchemaOptions schema_options = 2; inline bool Schema::_internal_has_schema_options() const { - return this != internal_default_instance() && schema_options_ != nullptr; + return this != internal_default_instance() && _impl_.schema_options_ != nullptr; } inline bool Schema::has_schema_options() const { return _internal_has_schema_options(); } inline void Schema::clear_schema_options() { - if (GetArena() == nullptr && schema_options_ != nullptr) { - delete schema_options_; + if (GetArenaForAllocation() == nullptr && _impl_.schema_options_ != nullptr) { + delete _impl_.schema_options_; } - schema_options_ = nullptr; + _impl_.schema_options_ = nullptr; } inline const ::schema_proto::SchemaOptions& Schema::_internal_schema_options() const { - const ::schema_proto::SchemaOptions* p = schema_options_; - return p != nullptr ? *p : *reinterpret_cast( - &::schema_proto::_SchemaOptions_default_instance_); + const ::schema_proto::SchemaOptions* p = _impl_.schema_options_; + return p != nullptr ? *p : reinterpret_cast( + ::schema_proto::_SchemaOptions_default_instance_); } inline const ::schema_proto::SchemaOptions& Schema::schema_options() const { // @@protoc_insertion_point(field_get:schema_proto.Schema.schema_options) @@ -3498,10 +3493,10 @@ inline const ::schema_proto::SchemaOptions& Schema::schema_options() const { } inline void Schema::unsafe_arena_set_allocated_schema_options( ::schema_proto::SchemaOptions* schema_options) { - if (GetArena() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(schema_options_); + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.schema_options_); } - schema_options_ = schema_options; + _impl_.schema_options_ = schema_options; if (schema_options) { } else { @@ -3510,39 +3505,48 @@ inline void Schema::unsafe_arena_set_allocated_schema_options( // @@protoc_insertion_point(field_unsafe_arena_set_allocated:schema_proto.Schema.schema_options) } inline ::schema_proto::SchemaOptions* Schema::release_schema_options() { - auto temp = unsafe_arena_release_schema_options(); - if (GetArena() != nullptr) { + + ::schema_proto::SchemaOptions* temp = _impl_.schema_options_; + _impl_.schema_options_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::schema_proto::SchemaOptions* Schema::unsafe_arena_release_schema_options() { // @@protoc_insertion_point(field_release:schema_proto.Schema.schema_options) - ::schema_proto::SchemaOptions* temp = schema_options_; - schema_options_ = nullptr; + ::schema_proto::SchemaOptions* temp = _impl_.schema_options_; + _impl_.schema_options_ = nullptr; return temp; } inline ::schema_proto::SchemaOptions* Schema::_internal_mutable_schema_options() { - if (schema_options_ == nullptr) { - auto* p = CreateMaybeMessage<::schema_proto::SchemaOptions>(GetArena()); - schema_options_ = p; + if (_impl_.schema_options_ == nullptr) { + auto* p = CreateMaybeMessage<::schema_proto::SchemaOptions>(GetArenaForAllocation()); + _impl_.schema_options_ = p; } - return schema_options_; + return _impl_.schema_options_; } inline ::schema_proto::SchemaOptions* Schema::mutable_schema_options() { + ::schema_proto::SchemaOptions* _msg = _internal_mutable_schema_options(); // @@protoc_insertion_point(field_mutable:schema_proto.Schema.schema_options) - return _internal_mutable_schema_options(); + return _msg; } inline void Schema::set_allocated_schema_options(::schema_proto::SchemaOptions* schema_options) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete schema_options_; + delete _impl_.schema_options_; } if (schema_options) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(schema_options); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(schema_options); if (message_arena != submessage_arena) { schema_options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, schema_options, submessage_arena); @@ -3551,7 +3555,7 @@ inline void Schema::set_allocated_schema_options(::schema_proto::SchemaOptions* } else { } - schema_options_ = schema_options; + _impl_.schema_options_ = schema_options; // @@protoc_insertion_point(field_set_allocated:schema_proto.Schema.schema_options) } From 4e0cc9272708ac63a91459fbac2a7ebfda26092b Mon Sep 17 00:00:00 2001 From: sunby Date: Sun, 28 Apr 2024 17:47:56 +0800 Subject: [PATCH 13/13] fix protobuf header Signed-off-by: sunby --- cpp/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index ef2c798..b8b9c96 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -20,6 +20,8 @@ include(libarrow) include(libglog) add_subdirectory(thirdparty) +find_package(Protobuf REQUIRED) +include_directories(${protobuf_INCLUDE_DIR}) file(GLOB_RECURSE SRC_FILES src/*.cpp src/*.cc) add_library(milvus-storage ${SRC_FILES}) target_include_directories(milvus-storage PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include/milvus-storage ${CMAKE_CURRENT_SOURCE_DIR}/src ${CMAKE_CURRENT_SOURCE_DIR}/test/include )