From 2aa483c9225c286c6751cff7ef4b928e180db98c Mon Sep 17 00:00:00 2001 From: sunby Date: Tue, 22 Dec 2020 20:16:32 +0800 Subject: [PATCH] Add index meta to meta table Signed-off-by: sunby --- internal/core/src/pb/CMakeLists.txt | 2 +- internal/core/src/pb/etcd_meta.pb.cc | 1058 +++++++- internal/core/src/pb/etcd_meta.pb.h | 693 ++++- internal/core/src/pb/index_builder.pb.cc | 2957 ++++++++++++++++++++++ internal/core/src/pb/index_builder.pb.h | 1916 ++++++++++++++ internal/master/meta_table.go | 166 +- internal/master/meta_table_test.go | 96 + internal/master/runtime_stats.go | 3 +- internal/proto/etcd_meta.proto | 16 + internal/proto/etcdpb/etcd_meta.pb.go | 248 +- internal/util/typeutil/index.go | 35 + internal/util/typeutil/index_test.go | 26 + 12 files changed, 7136 insertions(+), 80 deletions(-) create mode 100644 internal/core/src/pb/index_builder.pb.cc create mode 100644 internal/core/src/pb/index_builder.pb.h create mode 100644 internal/util/typeutil/index.go create mode 100644 internal/util/typeutil/index_test.go diff --git a/internal/core/src/pb/CMakeLists.txt b/internal/core/src/pb/CMakeLists.txt index 36d2903358..9219e834c1 100644 --- a/internal/core/src/pb/CMakeLists.txt +++ b/internal/core/src/pb/CMakeLists.txt @@ -1,7 +1,7 @@ get_property(PROTOC_EXCUTABLE GLOBAL PROPERTY PROTOC_EXCUTABLE ) -set(proto_file_names common.proto etcd_meta.proto schema.proto service_msg.proto index_cgo_msg.proto) +set(proto_file_names common.proto etcd_meta.proto schema.proto service_msg.proto index_cgo_msg.proto index_builder.proto) set( PROTO_PATH "${MILVUS_SOURCE_DIR}/../proto/" ) diff --git a/internal/core/src/pb/etcd_meta.pb.cc b/internal/core/src/pb/etcd_meta.pb.cc index a4d6f7ae63..23971f307e 100644 --- a/internal/core/src/pb/etcd_meta.pb.cc +++ b/internal/core/src/pb/etcd_meta.pb.cc @@ -16,6 +16,8 @@ // @@protoc_insertion_point(includes) #include extern PROTOBUF_INTERNAL_EXPORT_common_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Address_common_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_common_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_KeyValuePair_common_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_etcd_5fmeta_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_FieldBinlogFiles_etcd_5fmeta_2eproto; extern PROTOBUF_INTERNAL_EXPORT_schema_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CollectionSchema_schema_2eproto; namespace milvus { namespace proto { @@ -32,10 +34,18 @@ class CollectionMetaDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _CollectionMeta_default_instance_; +class FieldBinlogFilesDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _FieldBinlogFiles_default_instance_; class SegmentMetaDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _SegmentMeta_default_instance_; +class FieldIndexMetaDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _FieldIndexMeta_default_instance_; } // namespace etcd } // namespace proto } // namespace milvus @@ -54,6 +64,35 @@ static void InitDefaultsscc_info_CollectionMeta_etcd_5fmeta_2eproto() { {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_CollectionMeta_etcd_5fmeta_2eproto}, { &scc_info_CollectionSchema_schema_2eproto.base,}}; +static void InitDefaultsscc_info_FieldBinlogFiles_etcd_5fmeta_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::etcd::_FieldBinlogFiles_default_instance_; + new (ptr) ::milvus::proto::etcd::FieldBinlogFiles(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::etcd::FieldBinlogFiles::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_FieldBinlogFiles_etcd_5fmeta_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_FieldBinlogFiles_etcd_5fmeta_2eproto}, {}}; + +static void InitDefaultsscc_info_FieldIndexMeta_etcd_5fmeta_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::etcd::_FieldIndexMeta_default_instance_; + new (ptr) ::milvus::proto::etcd::FieldIndexMeta(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::etcd::FieldIndexMeta::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_FieldIndexMeta_etcd_5fmeta_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_FieldIndexMeta_etcd_5fmeta_2eproto}, { + &scc_info_KeyValuePair_common_2eproto.base,}}; + static void InitDefaultsscc_info_ProxyMeta_etcd_5fmeta_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -80,8 +119,9 @@ static void InitDefaultsscc_info_SegmentMeta_etcd_5fmeta_2eproto() { ::milvus::proto::etcd::SegmentMeta::InitAsDefaultInstance(); } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SegmentMeta_etcd_5fmeta_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_SegmentMeta_etcd_5fmeta_2eproto}, {}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_SegmentMeta_etcd_5fmeta_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_SegmentMeta_etcd_5fmeta_2eproto}, { + &scc_info_FieldBinlogFiles_etcd_5fmeta_2eproto.base,}}; static void InitDefaultsscc_info_TenantMeta_etcd_5fmeta_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -97,7 +137,7 @@ static void InitDefaultsscc_info_TenantMeta_etcd_5fmeta_2eproto() { ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TenantMeta_etcd_5fmeta_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_TenantMeta_etcd_5fmeta_2eproto}, {}}; -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_etcd_5fmeta_2eproto[4]; +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_etcd_5fmeta_2eproto[6]; static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_etcd_5fmeta_2eproto = nullptr; static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_etcd_5fmeta_2eproto = nullptr; @@ -130,6 +170,13 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_etcd_5fmeta_2eproto::offsets[] PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::CollectionMeta, segmentids_), PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::CollectionMeta, partition_tags_), ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::FieldBinlogFiles, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::FieldBinlogFiles, fieldid_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::FieldBinlogFiles, binlog_files_), + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::SegmentMeta, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -143,47 +190,76 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_etcd_5fmeta_2eproto::offsets[] PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::SegmentMeta, close_time_), PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::SegmentMeta, num_rows_), PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::SegmentMeta, mem_size_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::SegmentMeta, binlog_file_paths_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::FieldIndexMeta, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::FieldIndexMeta, segmentid_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::FieldIndexMeta, fieldid_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::FieldIndexMeta, index_type_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::FieldIndexMeta, indexid_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::FieldIndexMeta, index_params_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::FieldIndexMeta, status_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::FieldIndexMeta, index_file_paths_), }; static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::milvus::proto::etcd::TenantMeta)}, { 9, -1, sizeof(::milvus::proto::etcd::ProxyMeta)}, { 17, -1, sizeof(::milvus::proto::etcd::CollectionMeta)}, - { 27, -1, sizeof(::milvus::proto::etcd::SegmentMeta)}, + { 27, -1, sizeof(::milvus::proto::etcd::FieldBinlogFiles)}, + { 34, -1, sizeof(::milvus::proto::etcd::SegmentMeta)}, + { 49, -1, sizeof(::milvus::proto::etcd::FieldIndexMeta)}, }; static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { reinterpret_cast(&::milvus::proto::etcd::_TenantMeta_default_instance_), reinterpret_cast(&::milvus::proto::etcd::_ProxyMeta_default_instance_), reinterpret_cast(&::milvus::proto::etcd::_CollectionMeta_default_instance_), + reinterpret_cast(&::milvus::proto::etcd::_FieldBinlogFiles_default_instance_), reinterpret_cast(&::milvus::proto::etcd::_SegmentMeta_default_instance_), + reinterpret_cast(&::milvus::proto::etcd::_FieldIndexMeta_default_instance_), }; const char descriptor_table_protodef_etcd_5fmeta_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\017etcd_meta.proto\022\021milvus.proto.etcd\032\014co" - "mmon.proto\032\014schema.proto\"e\n\nTenantMeta\022\n" - "\n\002ID\030\001 \001(\003\022\027\n\017num_query_nodes\030\002 \001(\003\022\031\n\021i" - "nsert_channelIDs\030\003 \003(\t\022\027\n\017query_channelI" - "D\030\004 \001(\t\"a\n\tProxyMeta\022\n\n\002ID\030\001 \001(\003\022-\n\007addr" - "ess\030\002 \001(\0132\034.milvus.proto.common.Address\022" - "\031\n\021result_channelIDs\030\003 \003(\t\"\224\001\n\016Collectio" - "nMeta\022\n\n\002ID\030\001 \001(\003\0225\n\006schema\030\002 \001(\0132%.milv" - "us.proto.schema.CollectionSchema\022\023\n\013crea" - "te_time\030\003 \001(\004\022\022\n\nsegmentIDs\030\004 \003(\003\022\026\n\016par" - "tition_tags\030\005 \003(\t\"\304\001\n\013SegmentMeta\022\021\n\tseg" + "\n\017etcd_meta.proto\022\021milvus.proto.etcd\032\023in" + "dex_builder.proto\032\014common.proto\032\014schema." + "proto\"e\n\nTenantMeta\022\n\n\002ID\030\001 \001(\003\022\027\n\017num_q" + "uery_nodes\030\002 \001(\003\022\031\n\021insert_channelIDs\030\003 " + "\003(\t\022\027\n\017query_channelID\030\004 \001(\t\"a\n\tProxyMet" + "a\022\n\n\002ID\030\001 \001(\003\022-\n\007address\030\002 \001(\0132\034.milvus." + "proto.common.Address\022\031\n\021result_channelID" + "s\030\003 \003(\t\"\224\001\n\016CollectionMeta\022\n\n\002ID\030\001 \001(\003\0225" + "\n\006schema\030\002 \001(\0132%.milvus.proto.schema.Col" + "lectionSchema\022\023\n\013create_time\030\003 \001(\004\022\022\n\nse" + "gmentIDs\030\004 \003(\003\022\026\n\016partition_tags\030\005 \003(\t\"9" + "\n\020FieldBinlogFiles\022\017\n\007fieldID\030\001 \001(\003\022\024\n\014b" + "inlog_files\030\002 \003(\t\"\204\002\n\013SegmentMeta\022\021\n\tseg" "mentID\030\001 \001(\003\022\024\n\014collectionID\030\002 \001(\003\022\025\n\rpa" "rtition_tag\030\003 \001(\t\022\025\n\rchannel_start\030\004 \001(\005" "\022\023\n\013channel_end\030\005 \001(\005\022\021\n\topen_time\030\006 \001(\004" "\022\022\n\nclose_time\030\007 \001(\004\022\020\n\010num_rows\030\010 \001(\003\022\020" - "\n\010mem_size\030\t \001(\003B@Z>github.com/zilliztec" - "h/milvus-distributed/internal/proto/etcd" - "pbb\006proto3" + "\n\010mem_size\030\t \001(\003\022>\n\021binlog_file_paths\030\n " + "\003(\0132#.milvus.proto.etcd.FieldBinlogFiles" + "\"\337\001\n\016FieldIndexMeta\022\021\n\tsegmentID\030\001 \001(\003\022\017" + "\n\007fieldID\030\002 \001(\003\022\022\n\nindex_type\030\003 \001(\t\022\017\n\007i" + "ndexID\030\004 \001(\003\0227\n\014index_params\030\005 \003(\0132!.mil" + "vus.proto.common.KeyValuePair\0221\n\006status\030" + "\006 \001(\0162!.milvus.proto.service.IndexStatus" + "\022\030\n\020index_file_paths\030\007 \003(\tB@Z>github.com" + "/zilliztech/milvus-distributed/internal/" + "proto/etcdpbb\006proto3" ; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_etcd_5fmeta_2eproto_deps[2] = { +static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_etcd_5fmeta_2eproto_deps[3] = { &::descriptor_table_common_2eproto, + &::descriptor_table_index_5fbuilder_2eproto, &::descriptor_table_schema_2eproto, }; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_etcd_5fmeta_2eproto_sccs[4] = { +static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_etcd_5fmeta_2eproto_sccs[6] = { &scc_info_CollectionMeta_etcd_5fmeta_2eproto.base, + &scc_info_FieldBinlogFiles_etcd_5fmeta_2eproto.base, + &scc_info_FieldIndexMeta_etcd_5fmeta_2eproto.base, &scc_info_ProxyMeta_etcd_5fmeta_2eproto.base, &scc_info_SegmentMeta_etcd_5fmeta_2eproto.base, &scc_info_TenantMeta_etcd_5fmeta_2eproto.base, @@ -191,10 +267,10 @@ static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_etc static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_etcd_5fmeta_2eproto_once; static bool descriptor_table_etcd_5fmeta_2eproto_initialized = false; const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_etcd_5fmeta_2eproto = { - &descriptor_table_etcd_5fmeta_2eproto_initialized, descriptor_table_protodef_etcd_5fmeta_2eproto, "etcd_meta.proto", 690, - &descriptor_table_etcd_5fmeta_2eproto_once, descriptor_table_etcd_5fmeta_2eproto_sccs, descriptor_table_etcd_5fmeta_2eproto_deps, 4, 2, + &descriptor_table_etcd_5fmeta_2eproto_initialized, descriptor_table_protodef_etcd_5fmeta_2eproto, "etcd_meta.proto", 1060, + &descriptor_table_etcd_5fmeta_2eproto_once, descriptor_table_etcd_5fmeta_2eproto_sccs, descriptor_table_etcd_5fmeta_2eproto_deps, 6, 3, schemas, file_default_instances, TableStruct_etcd_5fmeta_2eproto::offsets, - file_level_metadata_etcd_5fmeta_2eproto, 4, file_level_enum_descriptors_etcd_5fmeta_2eproto, file_level_service_descriptors_etcd_5fmeta_2eproto, + file_level_metadata_etcd_5fmeta_2eproto, 6, file_level_enum_descriptors_etcd_5fmeta_2eproto, file_level_service_descriptors_etcd_5fmeta_2eproto, }; // Force running AddDescriptors() at dynamic initialization time. @@ -1491,6 +1567,316 @@ void CollectionMeta::InternalSwap(CollectionMeta* other) { } +// =================================================================== + +void FieldBinlogFiles::InitAsDefaultInstance() { +} +class FieldBinlogFiles::_Internal { + public: +}; + +FieldBinlogFiles::FieldBinlogFiles() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.etcd.FieldBinlogFiles) +} +FieldBinlogFiles::FieldBinlogFiles(const FieldBinlogFiles& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + binlog_files_(from.binlog_files_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + fieldid_ = from.fieldid_; + // @@protoc_insertion_point(copy_constructor:milvus.proto.etcd.FieldBinlogFiles) +} + +void FieldBinlogFiles::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_FieldBinlogFiles_etcd_5fmeta_2eproto.base); + fieldid_ = PROTOBUF_LONGLONG(0); +} + +FieldBinlogFiles::~FieldBinlogFiles() { + // @@protoc_insertion_point(destructor:milvus.proto.etcd.FieldBinlogFiles) + SharedDtor(); +} + +void FieldBinlogFiles::SharedDtor() { +} + +void FieldBinlogFiles::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const FieldBinlogFiles& FieldBinlogFiles::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FieldBinlogFiles_etcd_5fmeta_2eproto.base); + return *internal_default_instance(); +} + + +void FieldBinlogFiles::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.etcd.FieldBinlogFiles) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + binlog_files_.Clear(); + fieldid_ = PROTOBUF_LONGLONG(0); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* FieldBinlogFiles::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // int64 fieldID = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + fieldid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated string binlog_files = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_binlog_files(), ptr, ctx, "milvus.proto.etcd.FieldBinlogFiles.binlog_files"); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool FieldBinlogFiles::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.etcd.FieldBinlogFiles) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // int64 fieldID = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { + + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, &fieldid_))); + } else { + goto handle_unusual; + } + break; + } + + // repeated string binlog_files = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->add_binlog_files())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->binlog_files(this->binlog_files_size() - 1).data(), + static_cast(this->binlog_files(this->binlog_files_size() - 1).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.etcd.FieldBinlogFiles.binlog_files")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.etcd.FieldBinlogFiles) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.etcd.FieldBinlogFiles) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void FieldBinlogFiles::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.etcd.FieldBinlogFiles) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 fieldID = 1; + if (this->fieldid() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->fieldid(), output); + } + + // repeated string binlog_files = 2; + for (int i = 0, n = this->binlog_files_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->binlog_files(i).data(), static_cast(this->binlog_files(i).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.etcd.FieldBinlogFiles.binlog_files"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( + 2, this->binlog_files(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.etcd.FieldBinlogFiles) +} + +::PROTOBUF_NAMESPACE_ID::uint8* FieldBinlogFiles::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.etcd.FieldBinlogFiles) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 fieldID = 1; + if (this->fieldid() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->fieldid(), target); + } + + // repeated string binlog_files = 2; + for (int i = 0, n = this->binlog_files_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->binlog_files(i).data(), static_cast(this->binlog_files(i).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.etcd.FieldBinlogFiles.binlog_files"); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + WriteStringToArray(2, this->binlog_files(i), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.etcd.FieldBinlogFiles) + return target; +} + +size_t FieldBinlogFiles::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.etcd.FieldBinlogFiles) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string binlog_files = 2; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->binlog_files_size()); + for (int i = 0, n = this->binlog_files_size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->binlog_files(i)); + } + + // int64 fieldID = 1; + if (this->fieldid() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->fieldid()); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void FieldBinlogFiles::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.etcd.FieldBinlogFiles) + GOOGLE_DCHECK_NE(&from, this); + const FieldBinlogFiles* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.etcd.FieldBinlogFiles) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.etcd.FieldBinlogFiles) + MergeFrom(*source); + } +} + +void FieldBinlogFiles::MergeFrom(const FieldBinlogFiles& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.etcd.FieldBinlogFiles) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + binlog_files_.MergeFrom(from.binlog_files_); + if (from.fieldid() != 0) { + set_fieldid(from.fieldid()); + } +} + +void FieldBinlogFiles::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.etcd.FieldBinlogFiles) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void FieldBinlogFiles::CopyFrom(const FieldBinlogFiles& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.etcd.FieldBinlogFiles) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FieldBinlogFiles::IsInitialized() const { + return true; +} + +void FieldBinlogFiles::InternalSwap(FieldBinlogFiles* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + binlog_files_.InternalSwap(CastToBase(&other->binlog_files_)); + swap(fieldid_, other->fieldid_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata FieldBinlogFiles::GetMetadata() const { + return GetMetadataStatic(); +} + + // =================================================================== void SegmentMeta::InitAsDefaultInstance() { @@ -1506,7 +1892,8 @@ SegmentMeta::SegmentMeta() } SegmentMeta::SegmentMeta(const SegmentMeta& from) : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { + _internal_metadata_(nullptr), + binlog_file_paths_(from.binlog_file_paths_) { _internal_metadata_.MergeFrom(from._internal_metadata_); partition_tag_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (!from.partition_tag().empty()) { @@ -1550,6 +1937,7 @@ void SegmentMeta::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + binlog_file_paths_.Clear(); partition_tag_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); ::memset(&segmentid_, 0, static_cast( reinterpret_cast(&mem_size_) - @@ -1628,6 +2016,18 @@ const char* SegmentMeta::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID CHK_(ptr); } else goto handle_unusual; continue; + // repeated .milvus.proto.etcd.FieldBinlogFiles binlog_file_paths = 10; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(add_binlog_file_paths(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 82); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { @@ -1777,6 +2177,17 @@ bool SegmentMeta::MergePartialFromCodedStream( break; } + // repeated .milvus.proto.etcd.FieldBinlogFiles binlog_file_paths = 10; + case 10: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (82 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, add_binlog_file_paths())); + } else { + goto handle_unusual; + } + break; + } + default: { handle_unusual: if (tag == 0) { @@ -1854,6 +2265,15 @@ void SegmentMeta::SerializeWithCachedSizes( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(9, this->mem_size(), output); } + // repeated .milvus.proto.etcd.FieldBinlogFiles binlog_file_paths = 10; + for (unsigned int i = 0, + n = static_cast(this->binlog_file_paths_size()); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 10, + this->binlog_file_paths(static_cast(i)), + output); + } + if (_internal_metadata_.have_unknown_fields()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); @@ -1918,6 +2338,14 @@ void SegmentMeta::SerializeWithCachedSizes( target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(9, this->mem_size(), target); } + // repeated .milvus.proto.etcd.FieldBinlogFiles binlog_file_paths = 10; + for (unsigned int i = 0, + n = static_cast(this->binlog_file_paths_size()); i < n; i++) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 10, this->binlog_file_paths(static_cast(i)), target); + } + if (_internal_metadata_.have_unknown_fields()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); @@ -1939,6 +2367,17 @@ size_t SegmentMeta::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + // repeated .milvus.proto.etcd.FieldBinlogFiles binlog_file_paths = 10; + { + unsigned int count = static_cast(this->binlog_file_paths_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + this->binlog_file_paths(static_cast(i))); + } + } + // string partition_tag = 3; if (this->partition_tag().size() > 0) { total_size += 1 + @@ -2029,6 +2468,7 @@ void SegmentMeta::MergeFrom(const SegmentMeta& from) { ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; + binlog_file_paths_.MergeFrom(from.binlog_file_paths_); if (from.partition_tag().size() > 0) { partition_tag_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.partition_tag_); @@ -2080,6 +2520,7 @@ bool SegmentMeta::IsInitialized() const { void SegmentMeta::InternalSwap(SegmentMeta* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&binlog_file_paths_)->InternalSwap(CastToBase(&other->binlog_file_paths_)); partition_tag_.Swap(&other->partition_tag_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); swap(segmentid_, other->segmentid_); @@ -2097,6 +2538,569 @@ void SegmentMeta::InternalSwap(SegmentMeta* other) { } +// =================================================================== + +void FieldIndexMeta::InitAsDefaultInstance() { +} +class FieldIndexMeta::_Internal { + public: +}; + +void FieldIndexMeta::clear_index_params() { + index_params_.Clear(); +} +FieldIndexMeta::FieldIndexMeta() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.etcd.FieldIndexMeta) +} +FieldIndexMeta::FieldIndexMeta(const FieldIndexMeta& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + index_params_(from.index_params_), + index_file_paths_(from.index_file_paths_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + index_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.index_type().empty()) { + index_type_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.index_type_); + } + ::memcpy(&segmentid_, &from.segmentid_, + static_cast(reinterpret_cast(&status_) - + reinterpret_cast(&segmentid_)) + sizeof(status_)); + // @@protoc_insertion_point(copy_constructor:milvus.proto.etcd.FieldIndexMeta) +} + +void FieldIndexMeta::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_FieldIndexMeta_etcd_5fmeta_2eproto.base); + index_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::memset(&segmentid_, 0, static_cast( + reinterpret_cast(&status_) - + reinterpret_cast(&segmentid_)) + sizeof(status_)); +} + +FieldIndexMeta::~FieldIndexMeta() { + // @@protoc_insertion_point(destructor:milvus.proto.etcd.FieldIndexMeta) + SharedDtor(); +} + +void FieldIndexMeta::SharedDtor() { + index_type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void FieldIndexMeta::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const FieldIndexMeta& FieldIndexMeta::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FieldIndexMeta_etcd_5fmeta_2eproto.base); + return *internal_default_instance(); +} + + +void FieldIndexMeta::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.etcd.FieldIndexMeta) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + index_params_.Clear(); + index_file_paths_.Clear(); + index_type_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::memset(&segmentid_, 0, static_cast( + reinterpret_cast(&status_) - + reinterpret_cast(&segmentid_)) + sizeof(status_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* FieldIndexMeta::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // int64 segmentID = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + segmentid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int64 fieldID = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + fieldid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string index_type = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_index_type(), ptr, ctx, "milvus.proto.etcd.FieldIndexMeta.index_type"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int64 indexID = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + indexid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated .milvus.proto.common.KeyValuePair index_params = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(add_index_params(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 42); + } else goto handle_unusual; + continue; + // .milvus.proto.service.IndexStatus status = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + set_status(static_cast<::milvus::proto::service::IndexStatus>(val)); + } else goto handle_unusual; + continue; + // repeated string index_file_paths = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { + ptr -= 1; + do { + ptr += 1; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_index_file_paths(), ptr, ctx, "milvus.proto.etcd.FieldIndexMeta.index_file_paths"); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 58); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool FieldIndexMeta::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.etcd.FieldIndexMeta) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // int64 segmentID = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { + + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, &segmentid_))); + } else { + goto handle_unusual; + } + break; + } + + // int64 fieldID = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { + + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, &fieldid_))); + } else { + goto handle_unusual; + } + break; + } + + // string index_type = 3; + case 3: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_index_type())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->index_type().data(), static_cast(this->index_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.etcd.FieldIndexMeta.index_type")); + } else { + goto handle_unusual; + } + break; + } + + // int64 indexID = 4; + case 4: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) { + + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, &indexid_))); + } else { + goto handle_unusual; + } + break; + } + + // repeated .milvus.proto.common.KeyValuePair index_params = 5; + case 5: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, add_index_params())); + } else { + goto handle_unusual; + } + break; + } + + // .milvus.proto.service.IndexStatus status = 6; + case 6: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (48 & 0xFF)) { + int value = 0; + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_status(static_cast< ::milvus::proto::service::IndexStatus >(value)); + } else { + goto handle_unusual; + } + break; + } + + // repeated string index_file_paths = 7; + case 7: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (58 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->add_index_file_paths())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->index_file_paths(this->index_file_paths_size() - 1).data(), + static_cast(this->index_file_paths(this->index_file_paths_size() - 1).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.etcd.FieldIndexMeta.index_file_paths")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.etcd.FieldIndexMeta) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.etcd.FieldIndexMeta) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void FieldIndexMeta::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.etcd.FieldIndexMeta) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 segmentID = 1; + if (this->segmentid() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->segmentid(), output); + } + + // int64 fieldID = 2; + if (this->fieldid() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->fieldid(), output); + } + + // string index_type = 3; + if (this->index_type().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->index_type().data(), static_cast(this->index_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.etcd.FieldIndexMeta.index_type"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 3, this->index_type(), output); + } + + // int64 indexID = 4; + if (this->indexid() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(4, this->indexid(), output); + } + + // repeated .milvus.proto.common.KeyValuePair index_params = 5; + for (unsigned int i = 0, + n = static_cast(this->index_params_size()); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, + this->index_params(static_cast(i)), + output); + } + + // .milvus.proto.service.IndexStatus status = 6; + if (this->status() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum( + 6, this->status(), output); + } + + // repeated string index_file_paths = 7; + for (int i = 0, n = this->index_file_paths_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->index_file_paths(i).data(), static_cast(this->index_file_paths(i).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.etcd.FieldIndexMeta.index_file_paths"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( + 7, this->index_file_paths(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.etcd.FieldIndexMeta) +} + +::PROTOBUF_NAMESPACE_ID::uint8* FieldIndexMeta::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.etcd.FieldIndexMeta) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 segmentID = 1; + if (this->segmentid() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->segmentid(), target); + } + + // int64 fieldID = 2; + if (this->fieldid() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->fieldid(), target); + } + + // string index_type = 3; + if (this->index_type().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->index_type().data(), static_cast(this->index_type().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.etcd.FieldIndexMeta.index_type"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 3, this->index_type(), target); + } + + // int64 indexID = 4; + if (this->indexid() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->indexid(), target); + } + + // repeated .milvus.proto.common.KeyValuePair index_params = 5; + for (unsigned int i = 0, + n = static_cast(this->index_params_size()); i < n; i++) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, this->index_params(static_cast(i)), target); + } + + // .milvus.proto.service.IndexStatus status = 6; + if (this->status() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 6, this->status(), target); + } + + // repeated string index_file_paths = 7; + for (int i = 0, n = this->index_file_paths_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->index_file_paths(i).data(), static_cast(this->index_file_paths(i).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.etcd.FieldIndexMeta.index_file_paths"); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + WriteStringToArray(7, this->index_file_paths(i), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.etcd.FieldIndexMeta) + return target; +} + +size_t FieldIndexMeta::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.etcd.FieldIndexMeta) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .milvus.proto.common.KeyValuePair index_params = 5; + { + unsigned int count = static_cast(this->index_params_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + this->index_params(static_cast(i))); + } + } + + // repeated string index_file_paths = 7; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->index_file_paths_size()); + for (int i = 0, n = this->index_file_paths_size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->index_file_paths(i)); + } + + // string index_type = 3; + if (this->index_type().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->index_type()); + } + + // int64 segmentID = 1; + if (this->segmentid() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->segmentid()); + } + + // int64 fieldID = 2; + if (this->fieldid() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->fieldid()); + } + + // int64 indexID = 4; + if (this->indexid() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->indexid()); + } + + // .milvus.proto.service.IndexStatus status = 6; + if (this->status() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->status()); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void FieldIndexMeta::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.etcd.FieldIndexMeta) + GOOGLE_DCHECK_NE(&from, this); + const FieldIndexMeta* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.etcd.FieldIndexMeta) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.etcd.FieldIndexMeta) + MergeFrom(*source); + } +} + +void FieldIndexMeta::MergeFrom(const FieldIndexMeta& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.etcd.FieldIndexMeta) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + index_params_.MergeFrom(from.index_params_); + index_file_paths_.MergeFrom(from.index_file_paths_); + if (from.index_type().size() > 0) { + + index_type_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.index_type_); + } + if (from.segmentid() != 0) { + set_segmentid(from.segmentid()); + } + if (from.fieldid() != 0) { + set_fieldid(from.fieldid()); + } + if (from.indexid() != 0) { + set_indexid(from.indexid()); + } + if (from.status() != 0) { + set_status(from.status()); + } +} + +void FieldIndexMeta::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.etcd.FieldIndexMeta) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void FieldIndexMeta::CopyFrom(const FieldIndexMeta& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.etcd.FieldIndexMeta) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FieldIndexMeta::IsInitialized() const { + return true; +} + +void FieldIndexMeta::InternalSwap(FieldIndexMeta* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + CastToBase(&index_params_)->InternalSwap(CastToBase(&other->index_params_)); + index_file_paths_.InternalSwap(CastToBase(&other->index_file_paths_)); + index_type_.Swap(&other->index_type_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(segmentid_, other->segmentid_); + swap(fieldid_, other->fieldid_); + swap(indexid_, other->indexid_); + swap(status_, other->status_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata FieldIndexMeta::GetMetadata() const { + return GetMetadataStatic(); +} + + // @@protoc_insertion_point(namespace_scope) } // namespace etcd } // namespace proto @@ -2111,9 +3115,15 @@ template<> PROTOBUF_NOINLINE ::milvus::proto::etcd::ProxyMeta* Arena::CreateMayb template<> PROTOBUF_NOINLINE ::milvus::proto::etcd::CollectionMeta* Arena::CreateMaybeMessage< ::milvus::proto::etcd::CollectionMeta >(Arena* arena) { return Arena::CreateInternal< ::milvus::proto::etcd::CollectionMeta >(arena); } +template<> PROTOBUF_NOINLINE ::milvus::proto::etcd::FieldBinlogFiles* Arena::CreateMaybeMessage< ::milvus::proto::etcd::FieldBinlogFiles >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::etcd::FieldBinlogFiles >(arena); +} template<> PROTOBUF_NOINLINE ::milvus::proto::etcd::SegmentMeta* Arena::CreateMaybeMessage< ::milvus::proto::etcd::SegmentMeta >(Arena* arena) { return Arena::CreateInternal< ::milvus::proto::etcd::SegmentMeta >(arena); } +template<> PROTOBUF_NOINLINE ::milvus::proto::etcd::FieldIndexMeta* Arena::CreateMaybeMessage< ::milvus::proto::etcd::FieldIndexMeta >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::etcd::FieldIndexMeta >(arena); +} PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) diff --git a/internal/core/src/pb/etcd_meta.pb.h b/internal/core/src/pb/etcd_meta.pb.h index 4a4f02357c..678e5eb897 100644 --- a/internal/core/src/pb/etcd_meta.pb.h +++ b/internal/core/src/pb/etcd_meta.pb.h @@ -32,6 +32,7 @@ #include // IWYU pragma: export #include // IWYU pragma: export #include +#include "index_builder.pb.h" #include "common.pb.h" #include "schema.pb.h" // @@protoc_insertion_point(includes) @@ -49,7 +50,7 @@ struct TableStruct_etcd_5fmeta_2eproto { 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] + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[6] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; @@ -62,6 +63,12 @@ namespace etcd { class CollectionMeta; class CollectionMetaDefaultTypeInternal; extern CollectionMetaDefaultTypeInternal _CollectionMeta_default_instance_; +class FieldBinlogFiles; +class FieldBinlogFilesDefaultTypeInternal; +extern FieldBinlogFilesDefaultTypeInternal _FieldBinlogFiles_default_instance_; +class FieldIndexMeta; +class FieldIndexMetaDefaultTypeInternal; +extern FieldIndexMetaDefaultTypeInternal _FieldIndexMeta_default_instance_; class ProxyMeta; class ProxyMetaDefaultTypeInternal; extern ProxyMetaDefaultTypeInternal _ProxyMeta_default_instance_; @@ -76,6 +83,8 @@ extern TenantMetaDefaultTypeInternal _TenantMeta_default_instance_; } // namespace milvus PROTOBUF_NAMESPACE_OPEN template<> ::milvus::proto::etcd::CollectionMeta* Arena::CreateMaybeMessage<::milvus::proto::etcd::CollectionMeta>(Arena*); +template<> ::milvus::proto::etcd::FieldBinlogFiles* Arena::CreateMaybeMessage<::milvus::proto::etcd::FieldBinlogFiles>(Arena*); +template<> ::milvus::proto::etcd::FieldIndexMeta* Arena::CreateMaybeMessage<::milvus::proto::etcd::FieldIndexMeta>(Arena*); template<> ::milvus::proto::etcd::ProxyMeta* Arena::CreateMaybeMessage<::milvus::proto::etcd::ProxyMeta>(Arena*); template<> ::milvus::proto::etcd::SegmentMeta* Arena::CreateMaybeMessage<::milvus::proto::etcd::SegmentMeta>(Arena*); template<> ::milvus::proto::etcd::TenantMeta* Arena::CreateMaybeMessage<::milvus::proto::etcd::TenantMeta>(Arena*); @@ -597,6 +606,156 @@ class CollectionMeta : }; // ------------------------------------------------------------------- +class FieldBinlogFiles : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.etcd.FieldBinlogFiles) */ { + public: + FieldBinlogFiles(); + virtual ~FieldBinlogFiles(); + + FieldBinlogFiles(const FieldBinlogFiles& from); + FieldBinlogFiles(FieldBinlogFiles&& from) noexcept + : FieldBinlogFiles() { + *this = ::std::move(from); + } + + inline FieldBinlogFiles& operator=(const FieldBinlogFiles& from) { + CopyFrom(from); + return *this; + } + inline FieldBinlogFiles& operator=(FieldBinlogFiles&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const FieldBinlogFiles& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const FieldBinlogFiles* internal_default_instance() { + return reinterpret_cast( + &_FieldBinlogFiles_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(FieldBinlogFiles& a, FieldBinlogFiles& b) { + a.Swap(&b); + } + inline void Swap(FieldBinlogFiles* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline FieldBinlogFiles* New() const final { + return CreateMaybeMessage(nullptr); + } + + FieldBinlogFiles* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const FieldBinlogFiles& from); + void MergeFrom(const FieldBinlogFiles& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(FieldBinlogFiles* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.etcd.FieldBinlogFiles"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_etcd_5fmeta_2eproto); + return ::descriptor_table_etcd_5fmeta_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kBinlogFilesFieldNumber = 2, + kFieldIDFieldNumber = 1, + }; + // repeated string binlog_files = 2; + int binlog_files_size() const; + void clear_binlog_files(); + const std::string& binlog_files(int index) const; + std::string* mutable_binlog_files(int index); + void set_binlog_files(int index, const std::string& value); + void set_binlog_files(int index, std::string&& value); + void set_binlog_files(int index, const char* value); + void set_binlog_files(int index, const char* value, size_t size); + std::string* add_binlog_files(); + void add_binlog_files(const std::string& value); + void add_binlog_files(std::string&& value); + void add_binlog_files(const char* value); + void add_binlog_files(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& binlog_files() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_binlog_files(); + + // int64 fieldID = 1; + void clear_fieldid(); + ::PROTOBUF_NAMESPACE_ID::int64 fieldid() const; + void set_fieldid(::PROTOBUF_NAMESPACE_ID::int64 value); + + // @@protoc_insertion_point(class_scope:milvus.proto.etcd.FieldBinlogFiles) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField binlog_files_; + ::PROTOBUF_NAMESPACE_ID::int64 fieldid_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_etcd_5fmeta_2eproto; +}; +// ------------------------------------------------------------------- + class SegmentMeta : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.etcd.SegmentMeta) */ { public: @@ -639,7 +798,7 @@ class SegmentMeta : &_SegmentMeta_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 4; friend void swap(SegmentMeta& a, SegmentMeta& b) { a.Swap(&b); @@ -710,6 +869,7 @@ class SegmentMeta : // accessors ------------------------------------------------------- enum : int { + kBinlogFilePathsFieldNumber = 10, kPartitionTagFieldNumber = 3, kSegmentIDFieldNumber = 1, kCollectionIDFieldNumber = 2, @@ -720,6 +880,17 @@ class SegmentMeta : kNumRowsFieldNumber = 8, kMemSizeFieldNumber = 9, }; + // repeated .milvus.proto.etcd.FieldBinlogFiles binlog_file_paths = 10; + int binlog_file_paths_size() const; + void clear_binlog_file_paths(); + ::milvus::proto::etcd::FieldBinlogFiles* mutable_binlog_file_paths(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::etcd::FieldBinlogFiles >* + mutable_binlog_file_paths(); + const ::milvus::proto::etcd::FieldBinlogFiles& binlog_file_paths(int index) const; + ::milvus::proto::etcd::FieldBinlogFiles* add_binlog_file_paths(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::etcd::FieldBinlogFiles >& + binlog_file_paths() const; + // string partition_tag = 3; void clear_partition_tag(); const std::string& partition_tag() const; @@ -776,6 +947,7 @@ class SegmentMeta : class _Internal; ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::etcd::FieldBinlogFiles > binlog_file_paths_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr partition_tag_; ::PROTOBUF_NAMESPACE_ID::int64 segmentid_; ::PROTOBUF_NAMESPACE_ID::int64 collectionid_; @@ -788,6 +960,203 @@ class SegmentMeta : mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_etcd_5fmeta_2eproto; }; +// ------------------------------------------------------------------- + +class FieldIndexMeta : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.etcd.FieldIndexMeta) */ { + public: + FieldIndexMeta(); + virtual ~FieldIndexMeta(); + + FieldIndexMeta(const FieldIndexMeta& from); + FieldIndexMeta(FieldIndexMeta&& from) noexcept + : FieldIndexMeta() { + *this = ::std::move(from); + } + + inline FieldIndexMeta& operator=(const FieldIndexMeta& from) { + CopyFrom(from); + return *this; + } + inline FieldIndexMeta& operator=(FieldIndexMeta&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const FieldIndexMeta& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const FieldIndexMeta* internal_default_instance() { + return reinterpret_cast( + &_FieldIndexMeta_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(FieldIndexMeta& a, FieldIndexMeta& b) { + a.Swap(&b); + } + inline void Swap(FieldIndexMeta* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline FieldIndexMeta* New() const final { + return CreateMaybeMessage(nullptr); + } + + FieldIndexMeta* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const FieldIndexMeta& from); + void MergeFrom(const FieldIndexMeta& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(FieldIndexMeta* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.etcd.FieldIndexMeta"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_etcd_5fmeta_2eproto); + return ::descriptor_table_etcd_5fmeta_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kIndexParamsFieldNumber = 5, + kIndexFilePathsFieldNumber = 7, + kIndexTypeFieldNumber = 3, + kSegmentIDFieldNumber = 1, + kFieldIDFieldNumber = 2, + kIndexIDFieldNumber = 4, + kStatusFieldNumber = 6, + }; + // repeated .milvus.proto.common.KeyValuePair index_params = 5; + int index_params_size() const; + void clear_index_params(); + ::milvus::proto::common::KeyValuePair* mutable_index_params(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >* + mutable_index_params(); + const ::milvus::proto::common::KeyValuePair& index_params(int index) const; + ::milvus::proto::common::KeyValuePair* add_index_params(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >& + index_params() const; + + // repeated string index_file_paths = 7; + int index_file_paths_size() const; + void clear_index_file_paths(); + const std::string& index_file_paths(int index) const; + std::string* mutable_index_file_paths(int index); + void set_index_file_paths(int index, const std::string& value); + void set_index_file_paths(int index, std::string&& value); + void set_index_file_paths(int index, const char* value); + void set_index_file_paths(int index, const char* value, size_t size); + std::string* add_index_file_paths(); + void add_index_file_paths(const std::string& value); + void add_index_file_paths(std::string&& value); + void add_index_file_paths(const char* value); + void add_index_file_paths(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& index_file_paths() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_index_file_paths(); + + // string index_type = 3; + void clear_index_type(); + const std::string& index_type() const; + void set_index_type(const std::string& value); + void set_index_type(std::string&& value); + void set_index_type(const char* value); + void set_index_type(const char* value, size_t size); + std::string* mutable_index_type(); + std::string* release_index_type(); + void set_allocated_index_type(std::string* index_type); + + // int64 segmentID = 1; + void clear_segmentid(); + ::PROTOBUF_NAMESPACE_ID::int64 segmentid() const; + void set_segmentid(::PROTOBUF_NAMESPACE_ID::int64 value); + + // int64 fieldID = 2; + void clear_fieldid(); + ::PROTOBUF_NAMESPACE_ID::int64 fieldid() const; + void set_fieldid(::PROTOBUF_NAMESPACE_ID::int64 value); + + // int64 indexID = 4; + void clear_indexid(); + ::PROTOBUF_NAMESPACE_ID::int64 indexid() const; + void set_indexid(::PROTOBUF_NAMESPACE_ID::int64 value); + + // .milvus.proto.service.IndexStatus status = 6; + void clear_status(); + ::milvus::proto::service::IndexStatus status() const; + void set_status(::milvus::proto::service::IndexStatus value); + + // @@protoc_insertion_point(class_scope:milvus.proto.etcd.FieldIndexMeta) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair > index_params_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField index_file_paths_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr index_type_; + ::PROTOBUF_NAMESPACE_ID::int64 segmentid_; + ::PROTOBUF_NAMESPACE_ID::int64 fieldid_; + ::PROTOBUF_NAMESPACE_ID::int64 indexid_; + int status_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_etcd_5fmeta_2eproto; +}; // =================================================================== @@ -1245,6 +1614,89 @@ CollectionMeta::mutable_partition_tags() { // ------------------------------------------------------------------- +// FieldBinlogFiles + +// int64 fieldID = 1; +inline void FieldBinlogFiles::clear_fieldid() { + fieldid_ = PROTOBUF_LONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 FieldBinlogFiles::fieldid() const { + // @@protoc_insertion_point(field_get:milvus.proto.etcd.FieldBinlogFiles.fieldID) + return fieldid_; +} +inline void FieldBinlogFiles::set_fieldid(::PROTOBUF_NAMESPACE_ID::int64 value) { + + fieldid_ = value; + // @@protoc_insertion_point(field_set:milvus.proto.etcd.FieldBinlogFiles.fieldID) +} + +// repeated string binlog_files = 2; +inline int FieldBinlogFiles::binlog_files_size() const { + return binlog_files_.size(); +} +inline void FieldBinlogFiles::clear_binlog_files() { + binlog_files_.Clear(); +} +inline const std::string& FieldBinlogFiles::binlog_files(int index) const { + // @@protoc_insertion_point(field_get:milvus.proto.etcd.FieldBinlogFiles.binlog_files) + return binlog_files_.Get(index); +} +inline std::string* FieldBinlogFiles::mutable_binlog_files(int index) { + // @@protoc_insertion_point(field_mutable:milvus.proto.etcd.FieldBinlogFiles.binlog_files) + return binlog_files_.Mutable(index); +} +inline void FieldBinlogFiles::set_binlog_files(int index, const std::string& value) { + // @@protoc_insertion_point(field_set:milvus.proto.etcd.FieldBinlogFiles.binlog_files) + binlog_files_.Mutable(index)->assign(value); +} +inline void FieldBinlogFiles::set_binlog_files(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:milvus.proto.etcd.FieldBinlogFiles.binlog_files) + binlog_files_.Mutable(index)->assign(std::move(value)); +} +inline void FieldBinlogFiles::set_binlog_files(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + binlog_files_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:milvus.proto.etcd.FieldBinlogFiles.binlog_files) +} +inline void FieldBinlogFiles::set_binlog_files(int index, const char* value, size_t size) { + binlog_files_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.etcd.FieldBinlogFiles.binlog_files) +} +inline std::string* FieldBinlogFiles::add_binlog_files() { + // @@protoc_insertion_point(field_add_mutable:milvus.proto.etcd.FieldBinlogFiles.binlog_files) + return binlog_files_.Add(); +} +inline void FieldBinlogFiles::add_binlog_files(const std::string& value) { + binlog_files_.Add()->assign(value); + // @@protoc_insertion_point(field_add:milvus.proto.etcd.FieldBinlogFiles.binlog_files) +} +inline void FieldBinlogFiles::add_binlog_files(std::string&& value) { + binlog_files_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:milvus.proto.etcd.FieldBinlogFiles.binlog_files) +} +inline void FieldBinlogFiles::add_binlog_files(const char* value) { + GOOGLE_DCHECK(value != nullptr); + binlog_files_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:milvus.proto.etcd.FieldBinlogFiles.binlog_files) +} +inline void FieldBinlogFiles::add_binlog_files(const char* value, size_t size) { + binlog_files_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:milvus.proto.etcd.FieldBinlogFiles.binlog_files) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +FieldBinlogFiles::binlog_files() const { + // @@protoc_insertion_point(field_list:milvus.proto.etcd.FieldBinlogFiles.binlog_files) + return binlog_files_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +FieldBinlogFiles::mutable_binlog_files() { + // @@protoc_insertion_point(field_mutable_list:milvus.proto.etcd.FieldBinlogFiles.binlog_files) + return &binlog_files_; +} + +// ------------------------------------------------------------------- + // SegmentMeta // int64 segmentID = 1; @@ -1410,6 +1862,239 @@ inline void SegmentMeta::set_mem_size(::PROTOBUF_NAMESPACE_ID::int64 value) { // @@protoc_insertion_point(field_set:milvus.proto.etcd.SegmentMeta.mem_size) } +// repeated .milvus.proto.etcd.FieldBinlogFiles binlog_file_paths = 10; +inline int SegmentMeta::binlog_file_paths_size() const { + return binlog_file_paths_.size(); +} +inline void SegmentMeta::clear_binlog_file_paths() { + binlog_file_paths_.Clear(); +} +inline ::milvus::proto::etcd::FieldBinlogFiles* SegmentMeta::mutable_binlog_file_paths(int index) { + // @@protoc_insertion_point(field_mutable:milvus.proto.etcd.SegmentMeta.binlog_file_paths) + return binlog_file_paths_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::etcd::FieldBinlogFiles >* +SegmentMeta::mutable_binlog_file_paths() { + // @@protoc_insertion_point(field_mutable_list:milvus.proto.etcd.SegmentMeta.binlog_file_paths) + return &binlog_file_paths_; +} +inline const ::milvus::proto::etcd::FieldBinlogFiles& SegmentMeta::binlog_file_paths(int index) const { + // @@protoc_insertion_point(field_get:milvus.proto.etcd.SegmentMeta.binlog_file_paths) + return binlog_file_paths_.Get(index); +} +inline ::milvus::proto::etcd::FieldBinlogFiles* SegmentMeta::add_binlog_file_paths() { + // @@protoc_insertion_point(field_add:milvus.proto.etcd.SegmentMeta.binlog_file_paths) + return binlog_file_paths_.Add(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::etcd::FieldBinlogFiles >& +SegmentMeta::binlog_file_paths() const { + // @@protoc_insertion_point(field_list:milvus.proto.etcd.SegmentMeta.binlog_file_paths) + return binlog_file_paths_; +} + +// ------------------------------------------------------------------- + +// FieldIndexMeta + +// int64 segmentID = 1; +inline void FieldIndexMeta::clear_segmentid() { + segmentid_ = PROTOBUF_LONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 FieldIndexMeta::segmentid() const { + // @@protoc_insertion_point(field_get:milvus.proto.etcd.FieldIndexMeta.segmentID) + return segmentid_; +} +inline void FieldIndexMeta::set_segmentid(::PROTOBUF_NAMESPACE_ID::int64 value) { + + segmentid_ = value; + // @@protoc_insertion_point(field_set:milvus.proto.etcd.FieldIndexMeta.segmentID) +} + +// int64 fieldID = 2; +inline void FieldIndexMeta::clear_fieldid() { + fieldid_ = PROTOBUF_LONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 FieldIndexMeta::fieldid() const { + // @@protoc_insertion_point(field_get:milvus.proto.etcd.FieldIndexMeta.fieldID) + return fieldid_; +} +inline void FieldIndexMeta::set_fieldid(::PROTOBUF_NAMESPACE_ID::int64 value) { + + fieldid_ = value; + // @@protoc_insertion_point(field_set:milvus.proto.etcd.FieldIndexMeta.fieldID) +} + +// string index_type = 3; +inline void FieldIndexMeta::clear_index_type() { + index_type_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& FieldIndexMeta::index_type() const { + // @@protoc_insertion_point(field_get:milvus.proto.etcd.FieldIndexMeta.index_type) + return index_type_.GetNoArena(); +} +inline void FieldIndexMeta::set_index_type(const std::string& value) { + + index_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.etcd.FieldIndexMeta.index_type) +} +inline void FieldIndexMeta::set_index_type(std::string&& value) { + + index_type_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.etcd.FieldIndexMeta.index_type) +} +inline void FieldIndexMeta::set_index_type(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + index_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.etcd.FieldIndexMeta.index_type) +} +inline void FieldIndexMeta::set_index_type(const char* value, size_t size) { + + index_type_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.etcd.FieldIndexMeta.index_type) +} +inline std::string* FieldIndexMeta::mutable_index_type() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.etcd.FieldIndexMeta.index_type) + return index_type_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* FieldIndexMeta::release_index_type() { + // @@protoc_insertion_point(field_release:milvus.proto.etcd.FieldIndexMeta.index_type) + + return index_type_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void FieldIndexMeta::set_allocated_index_type(std::string* index_type) { + if (index_type != nullptr) { + + } else { + + } + index_type_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), index_type); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.etcd.FieldIndexMeta.index_type) +} + +// int64 indexID = 4; +inline void FieldIndexMeta::clear_indexid() { + indexid_ = PROTOBUF_LONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 FieldIndexMeta::indexid() const { + // @@protoc_insertion_point(field_get:milvus.proto.etcd.FieldIndexMeta.indexID) + return indexid_; +} +inline void FieldIndexMeta::set_indexid(::PROTOBUF_NAMESPACE_ID::int64 value) { + + indexid_ = value; + // @@protoc_insertion_point(field_set:milvus.proto.etcd.FieldIndexMeta.indexID) +} + +// repeated .milvus.proto.common.KeyValuePair index_params = 5; +inline int FieldIndexMeta::index_params_size() const { + return index_params_.size(); +} +inline ::milvus::proto::common::KeyValuePair* FieldIndexMeta::mutable_index_params(int index) { + // @@protoc_insertion_point(field_mutable:milvus.proto.etcd.FieldIndexMeta.index_params) + return index_params_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >* +FieldIndexMeta::mutable_index_params() { + // @@protoc_insertion_point(field_mutable_list:milvus.proto.etcd.FieldIndexMeta.index_params) + return &index_params_; +} +inline const ::milvus::proto::common::KeyValuePair& FieldIndexMeta::index_params(int index) const { + // @@protoc_insertion_point(field_get:milvus.proto.etcd.FieldIndexMeta.index_params) + return index_params_.Get(index); +} +inline ::milvus::proto::common::KeyValuePair* FieldIndexMeta::add_index_params() { + // @@protoc_insertion_point(field_add:milvus.proto.etcd.FieldIndexMeta.index_params) + return index_params_.Add(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >& +FieldIndexMeta::index_params() const { + // @@protoc_insertion_point(field_list:milvus.proto.etcd.FieldIndexMeta.index_params) + return index_params_; +} + +// .milvus.proto.service.IndexStatus status = 6; +inline void FieldIndexMeta::clear_status() { + status_ = 0; +} +inline ::milvus::proto::service::IndexStatus FieldIndexMeta::status() const { + // @@protoc_insertion_point(field_get:milvus.proto.etcd.FieldIndexMeta.status) + return static_cast< ::milvus::proto::service::IndexStatus >(status_); +} +inline void FieldIndexMeta::set_status(::milvus::proto::service::IndexStatus value) { + + status_ = value; + // @@protoc_insertion_point(field_set:milvus.proto.etcd.FieldIndexMeta.status) +} + +// repeated string index_file_paths = 7; +inline int FieldIndexMeta::index_file_paths_size() const { + return index_file_paths_.size(); +} +inline void FieldIndexMeta::clear_index_file_paths() { + index_file_paths_.Clear(); +} +inline const std::string& FieldIndexMeta::index_file_paths(int index) const { + // @@protoc_insertion_point(field_get:milvus.proto.etcd.FieldIndexMeta.index_file_paths) + return index_file_paths_.Get(index); +} +inline std::string* FieldIndexMeta::mutable_index_file_paths(int index) { + // @@protoc_insertion_point(field_mutable:milvus.proto.etcd.FieldIndexMeta.index_file_paths) + return index_file_paths_.Mutable(index); +} +inline void FieldIndexMeta::set_index_file_paths(int index, const std::string& value) { + // @@protoc_insertion_point(field_set:milvus.proto.etcd.FieldIndexMeta.index_file_paths) + index_file_paths_.Mutable(index)->assign(value); +} +inline void FieldIndexMeta::set_index_file_paths(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:milvus.proto.etcd.FieldIndexMeta.index_file_paths) + index_file_paths_.Mutable(index)->assign(std::move(value)); +} +inline void FieldIndexMeta::set_index_file_paths(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + index_file_paths_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:milvus.proto.etcd.FieldIndexMeta.index_file_paths) +} +inline void FieldIndexMeta::set_index_file_paths(int index, const char* value, size_t size) { + index_file_paths_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.etcd.FieldIndexMeta.index_file_paths) +} +inline std::string* FieldIndexMeta::add_index_file_paths() { + // @@protoc_insertion_point(field_add_mutable:milvus.proto.etcd.FieldIndexMeta.index_file_paths) + return index_file_paths_.Add(); +} +inline void FieldIndexMeta::add_index_file_paths(const std::string& value) { + index_file_paths_.Add()->assign(value); + // @@protoc_insertion_point(field_add:milvus.proto.etcd.FieldIndexMeta.index_file_paths) +} +inline void FieldIndexMeta::add_index_file_paths(std::string&& value) { + index_file_paths_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:milvus.proto.etcd.FieldIndexMeta.index_file_paths) +} +inline void FieldIndexMeta::add_index_file_paths(const char* value) { + GOOGLE_DCHECK(value != nullptr); + index_file_paths_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:milvus.proto.etcd.FieldIndexMeta.index_file_paths) +} +inline void FieldIndexMeta::add_index_file_paths(const char* value, size_t size) { + index_file_paths_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:milvus.proto.etcd.FieldIndexMeta.index_file_paths) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +FieldIndexMeta::index_file_paths() const { + // @@protoc_insertion_point(field_list:milvus.proto.etcd.FieldIndexMeta.index_file_paths) + return index_file_paths_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +FieldIndexMeta::mutable_index_file_paths() { + // @@protoc_insertion_point(field_mutable_list:milvus.proto.etcd.FieldIndexMeta.index_file_paths) + return &index_file_paths_; +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ @@ -1419,6 +2104,10 @@ inline void SegmentMeta::set_mem_size(::PROTOBUF_NAMESPACE_ID::int64 value) { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/internal/core/src/pb/index_builder.pb.cc b/internal/core/src/pb/index_builder.pb.cc new file mode 100644 index 0000000000..e6e0aae491 --- /dev/null +++ b/internal/core/src/pb/index_builder.pb.cc @@ -0,0 +1,2957 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: index_builder.proto + +#include "index_builder.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include +extern PROTOBUF_INTERNAL_EXPORT_common_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_KeyValuePair_common_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_common_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Status_common_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_index_5fbuilder_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_BuildIndexRequest_index_5fbuilder_2eproto; +namespace milvus { +namespace proto { +namespace service { +class BuildIndexRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _BuildIndexRequest_default_instance_; +class BuildIndexResponseDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _BuildIndexResponse_default_instance_; +class GetIndexFilePathsRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _GetIndexFilePathsRequest_default_instance_; +class GetIndexFilePathsResponseDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _GetIndexFilePathsResponse_default_instance_; +class DescribleIndexRequestDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _DescribleIndexRequest_default_instance_; +class DescribleIndexResponseDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _DescribleIndexResponse_default_instance_; +class IndexMetaDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _IndexMeta_default_instance_; +} // namespace service +} // namespace proto +} // namespace milvus +static void InitDefaultsscc_info_BuildIndexRequest_index_5fbuilder_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::service::_BuildIndexRequest_default_instance_; + new (ptr) ::milvus::proto::service::BuildIndexRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::service::BuildIndexRequest::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_BuildIndexRequest_index_5fbuilder_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_BuildIndexRequest_index_5fbuilder_2eproto}, { + &scc_info_KeyValuePair_common_2eproto.base,}}; + +static void InitDefaultsscc_info_BuildIndexResponse_index_5fbuilder_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::service::_BuildIndexResponse_default_instance_; + new (ptr) ::milvus::proto::service::BuildIndexResponse(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::service::BuildIndexResponse::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_BuildIndexResponse_index_5fbuilder_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_BuildIndexResponse_index_5fbuilder_2eproto}, { + &scc_info_Status_common_2eproto.base,}}; + +static void InitDefaultsscc_info_DescribleIndexRequest_index_5fbuilder_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::service::_DescribleIndexRequest_default_instance_; + new (ptr) ::milvus::proto::service::DescribleIndexRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::service::DescribleIndexRequest::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_DescribleIndexRequest_index_5fbuilder_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_DescribleIndexRequest_index_5fbuilder_2eproto}, {}}; + +static void InitDefaultsscc_info_DescribleIndexResponse_index_5fbuilder_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::service::_DescribleIndexResponse_default_instance_; + new (ptr) ::milvus::proto::service::DescribleIndexResponse(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::service::DescribleIndexResponse::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_DescribleIndexResponse_index_5fbuilder_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_DescribleIndexResponse_index_5fbuilder_2eproto}, { + &scc_info_Status_common_2eproto.base,}}; + +static void InitDefaultsscc_info_GetIndexFilePathsRequest_index_5fbuilder_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::service::_GetIndexFilePathsRequest_default_instance_; + new (ptr) ::milvus::proto::service::GetIndexFilePathsRequest(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::service::GetIndexFilePathsRequest::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_GetIndexFilePathsRequest_index_5fbuilder_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_GetIndexFilePathsRequest_index_5fbuilder_2eproto}, {}}; + +static void InitDefaultsscc_info_GetIndexFilePathsResponse_index_5fbuilder_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::service::_GetIndexFilePathsResponse_default_instance_; + new (ptr) ::milvus::proto::service::GetIndexFilePathsResponse(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::service::GetIndexFilePathsResponse::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_GetIndexFilePathsResponse_index_5fbuilder_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_GetIndexFilePathsResponse_index_5fbuilder_2eproto}, { + &scc_info_Status_common_2eproto.base,}}; + +static void InitDefaultsscc_info_IndexMeta_index_5fbuilder_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::service::_IndexMeta_default_instance_; + new (ptr) ::milvus::proto::service::IndexMeta(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::service::IndexMeta::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_IndexMeta_index_5fbuilder_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_IndexMeta_index_5fbuilder_2eproto}, { + &scc_info_BuildIndexRequest_index_5fbuilder_2eproto.base,}}; + +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_index_5fbuilder_2eproto[7]; +static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_index_5fbuilder_2eproto[1]; +static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_index_5fbuilder_2eproto = nullptr; + +const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_index_5fbuilder_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::service::BuildIndexRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::service::BuildIndexRequest, data_paths_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::service::BuildIndexRequest, type_params_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::service::BuildIndexRequest, index_params_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::service::BuildIndexResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::service::BuildIndexResponse, status_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::service::BuildIndexResponse, indexid_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::service::GetIndexFilePathsRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::service::GetIndexFilePathsRequest, indexid_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::service::GetIndexFilePathsResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::service::GetIndexFilePathsResponse, status_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::service::GetIndexFilePathsResponse, indexid_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::service::GetIndexFilePathsResponse, index_file_paths_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::service::DescribleIndexRequest, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::service::DescribleIndexRequest, indexid_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::service::DescribleIndexResponse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::service::DescribleIndexResponse, status_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::service::DescribleIndexResponse, index_status_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::service::DescribleIndexResponse, indexid_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::service::DescribleIndexResponse, enque_time_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::service::DescribleIndexResponse, schedule_time_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::service::DescribleIndexResponse, build_complete_time_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::service::IndexMeta, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::service::IndexMeta, status_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::service::IndexMeta, indexid_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::service::IndexMeta, enque_time_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::service::IndexMeta, schedule_time_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::service::IndexMeta, build_complete_time_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::service::IndexMeta, req_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::service::IndexMeta, index_file_paths_), +}; +static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, sizeof(::milvus::proto::service::BuildIndexRequest)}, + { 8, -1, sizeof(::milvus::proto::service::BuildIndexResponse)}, + { 15, -1, sizeof(::milvus::proto::service::GetIndexFilePathsRequest)}, + { 21, -1, sizeof(::milvus::proto::service::GetIndexFilePathsResponse)}, + { 29, -1, sizeof(::milvus::proto::service::DescribleIndexRequest)}, + { 35, -1, sizeof(::milvus::proto::service::DescribleIndexResponse)}, + { 46, -1, sizeof(::milvus::proto::service::IndexMeta)}, +}; + +static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { + reinterpret_cast(&::milvus::proto::service::_BuildIndexRequest_default_instance_), + reinterpret_cast(&::milvus::proto::service::_BuildIndexResponse_default_instance_), + reinterpret_cast(&::milvus::proto::service::_GetIndexFilePathsRequest_default_instance_), + reinterpret_cast(&::milvus::proto::service::_GetIndexFilePathsResponse_default_instance_), + reinterpret_cast(&::milvus::proto::service::_DescribleIndexRequest_default_instance_), + reinterpret_cast(&::milvus::proto::service::_DescribleIndexResponse_default_instance_), + reinterpret_cast(&::milvus::proto::service::_IndexMeta_default_instance_), +}; + +const char descriptor_table_protodef_index_5fbuilder_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\023index_builder.proto\022\024milvus.proto.serv" + "ice\032\014common.proto\"\230\001\n\021BuildIndexRequest\022" + "\022\n\ndata_paths\030\002 \003(\t\0226\n\013type_params\030\003 \003(\013" + "2!.milvus.proto.common.KeyValuePair\0227\n\014i" + "ndex_params\030\004 \003(\0132!.milvus.proto.common." + "KeyValuePair\"R\n\022BuildIndexResponse\022+\n\006st" + "atus\030\001 \001(\0132\033.milvus.proto.common.Status\022" + "\017\n\007indexID\030\002 \001(\003\"+\n\030GetIndexFilePathsReq" + "uest\022\017\n\007indexID\030\001 \001(\003\"s\n\031GetIndexFilePat" + "hsResponse\022+\n\006status\030\001 \001(\0132\033.milvus.prot" + "o.common.Status\022\017\n\007indexID\030\002 \001(\003\022\030\n\020inde" + "x_file_paths\030\003 \003(\t\"(\n\025DescribleIndexRequ" + "est\022\017\n\007indexID\030\001 \001(\003\"\327\001\n\026DescribleIndexR" + "esponse\022+\n\006status\030\001 \001(\0132\033.milvus.proto.c" + "ommon.Status\0227\n\014index_status\030\002 \001(\0162!.mil" + "vus.proto.service.IndexStatus\022\017\n\007indexID" + "\030\003 \001(\003\022\022\n\nenque_time\030\004 \001(\003\022\025\n\rschedule_t" + "ime\030\005 \001(\003\022\033\n\023build_complete_time\030\006 \001(\003\"\347" + "\001\n\tIndexMeta\0221\n\006status\030\001 \001(\0162!.milvus.pr" + "oto.service.IndexStatus\022\017\n\007indexID\030\002 \001(\003" + "\022\022\n\nenque_time\030\003 \001(\003\022\025\n\rschedule_time\030\004 " + "\001(\003\022\033\n\023build_complete_time\030\005 \001(\003\0224\n\003req\030" + "\006 \001(\0132\'.milvus.proto.service.BuildIndexR" + "equest\022\030\n\020index_file_paths\030\007 \003(\t*C\n\013Inde" + "xStatus\022\010\n\004NONE\020\000\022\014\n\010UNISSUED\020\001\022\016\n\nINPRO" + "GRESS\020\002\022\014\n\010FINISHED\020\0032\334\002\n\021IndexBuildServ" + "ice\022a\n\nBuildIndex\022\'.milvus.proto.service" + ".BuildIndexRequest\032(.milvus.proto.servic" + "e.BuildIndexResponse\"\000\022l\n\rDescribeIndex\022" + "+.milvus.proto.service.DescribleIndexReq" + "uest\032,.milvus.proto.service.DescribleInd" + "exResponse\"\000\022v\n\021GetIndexFilePaths\022..milv" + "us.proto.service.GetIndexFilePathsReques" + "t\032/.milvus.proto.service.GetIndexFilePat" + "hsResponse\"\000BHZFgithub.com/zilliztech/mi" + "lvus-distributed/internal/proto/indexbui" + "lderpbb\006proto3" + ; +static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_index_5fbuilder_2eproto_deps[1] = { + &::descriptor_table_common_2eproto, +}; +static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_index_5fbuilder_2eproto_sccs[7] = { + &scc_info_BuildIndexRequest_index_5fbuilder_2eproto.base, + &scc_info_BuildIndexResponse_index_5fbuilder_2eproto.base, + &scc_info_DescribleIndexRequest_index_5fbuilder_2eproto.base, + &scc_info_DescribleIndexResponse_index_5fbuilder_2eproto.base, + &scc_info_GetIndexFilePathsRequest_index_5fbuilder_2eproto.base, + &scc_info_GetIndexFilePathsResponse_index_5fbuilder_2eproto.base, + &scc_info_IndexMeta_index_5fbuilder_2eproto.base, +}; +static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_index_5fbuilder_2eproto_once; +static bool descriptor_table_index_5fbuilder_2eproto_initialized = false; +const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_index_5fbuilder_2eproto = { + &descriptor_table_index_5fbuilder_2eproto_initialized, descriptor_table_protodef_index_5fbuilder_2eproto, "index_builder.proto", 1454, + &descriptor_table_index_5fbuilder_2eproto_once, descriptor_table_index_5fbuilder_2eproto_sccs, descriptor_table_index_5fbuilder_2eproto_deps, 7, 1, + schemas, file_default_instances, TableStruct_index_5fbuilder_2eproto::offsets, + file_level_metadata_index_5fbuilder_2eproto, 7, file_level_enum_descriptors_index_5fbuilder_2eproto, file_level_service_descriptors_index_5fbuilder_2eproto, +}; + +// Force running AddDescriptors() at dynamic initialization time. +static bool dynamic_init_dummy_index_5fbuilder_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_index_5fbuilder_2eproto), true); +namespace milvus { +namespace proto { +namespace service { +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* IndexStatus_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_index_5fbuilder_2eproto); + return file_level_enum_descriptors_index_5fbuilder_2eproto[0]; +} +bool IndexStatus_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + + +// =================================================================== + +void BuildIndexRequest::InitAsDefaultInstance() { +} +class BuildIndexRequest::_Internal { + public: +}; + +void BuildIndexRequest::clear_type_params() { + type_params_.Clear(); +} +void BuildIndexRequest::clear_index_params() { + index_params_.Clear(); +} +BuildIndexRequest::BuildIndexRequest() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.service.BuildIndexRequest) +} +BuildIndexRequest::BuildIndexRequest(const BuildIndexRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + data_paths_(from.data_paths_), + type_params_(from.type_params_), + index_params_(from.index_params_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:milvus.proto.service.BuildIndexRequest) +} + +void BuildIndexRequest::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_BuildIndexRequest_index_5fbuilder_2eproto.base); +} + +BuildIndexRequest::~BuildIndexRequest() { + // @@protoc_insertion_point(destructor:milvus.proto.service.BuildIndexRequest) + SharedDtor(); +} + +void BuildIndexRequest::SharedDtor() { +} + +void BuildIndexRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const BuildIndexRequest& BuildIndexRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_BuildIndexRequest_index_5fbuilder_2eproto.base); + return *internal_default_instance(); +} + + +void BuildIndexRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.service.BuildIndexRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + data_paths_.Clear(); + type_params_.Clear(); + index_params_.Clear(); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* BuildIndexRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // repeated string data_paths = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_data_paths(), ptr, ctx, "milvus.proto.service.BuildIndexRequest.data_paths"); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18); + } else goto handle_unusual; + continue; + // repeated .milvus.proto.common.KeyValuePair type_params = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(add_type_params(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26); + } else goto handle_unusual; + continue; + // repeated .milvus.proto.common.KeyValuePair index_params = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(add_index_params(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 34); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool BuildIndexRequest::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.service.BuildIndexRequest) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // repeated string data_paths = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->add_data_paths())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->data_paths(this->data_paths_size() - 1).data(), + static_cast(this->data_paths(this->data_paths_size() - 1).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.service.BuildIndexRequest.data_paths")); + } else { + goto handle_unusual; + } + break; + } + + // repeated .milvus.proto.common.KeyValuePair type_params = 3; + case 3: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, add_type_params())); + } else { + goto handle_unusual; + } + break; + } + + // repeated .milvus.proto.common.KeyValuePair index_params = 4; + case 4: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, add_index_params())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.service.BuildIndexRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.service.BuildIndexRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void BuildIndexRequest::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.service.BuildIndexRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string data_paths = 2; + for (int i = 0, n = this->data_paths_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->data_paths(i).data(), static_cast(this->data_paths(i).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.service.BuildIndexRequest.data_paths"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( + 2, this->data_paths(i), output); + } + + // repeated .milvus.proto.common.KeyValuePair type_params = 3; + for (unsigned int i = 0, + n = static_cast(this->type_params_size()); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 3, + this->type_params(static_cast(i)), + output); + } + + // repeated .milvus.proto.common.KeyValuePair index_params = 4; + for (unsigned int i = 0, + n = static_cast(this->index_params_size()); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 4, + this->index_params(static_cast(i)), + output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.service.BuildIndexRequest) +} + +::PROTOBUF_NAMESPACE_ID::uint8* BuildIndexRequest::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.service.BuildIndexRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string data_paths = 2; + for (int i = 0, n = this->data_paths_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->data_paths(i).data(), static_cast(this->data_paths(i).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.service.BuildIndexRequest.data_paths"); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + WriteStringToArray(2, this->data_paths(i), target); + } + + // repeated .milvus.proto.common.KeyValuePair type_params = 3; + for (unsigned int i = 0, + n = static_cast(this->type_params_size()); i < n; i++) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 3, this->type_params(static_cast(i)), target); + } + + // repeated .milvus.proto.common.KeyValuePair index_params = 4; + for (unsigned int i = 0, + n = static_cast(this->index_params_size()); i < n; i++) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 4, this->index_params(static_cast(i)), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.service.BuildIndexRequest) + return target; +} + +size_t BuildIndexRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.service.BuildIndexRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string data_paths = 2; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->data_paths_size()); + for (int i = 0, n = this->data_paths_size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->data_paths(i)); + } + + // repeated .milvus.proto.common.KeyValuePair type_params = 3; + { + unsigned int count = static_cast(this->type_params_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + this->type_params(static_cast(i))); + } + } + + // repeated .milvus.proto.common.KeyValuePair index_params = 4; + { + unsigned int count = static_cast(this->index_params_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + this->index_params(static_cast(i))); + } + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BuildIndexRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.service.BuildIndexRequest) + GOOGLE_DCHECK_NE(&from, this); + const BuildIndexRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.service.BuildIndexRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.service.BuildIndexRequest) + MergeFrom(*source); + } +} + +void BuildIndexRequest::MergeFrom(const BuildIndexRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.service.BuildIndexRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + data_paths_.MergeFrom(from.data_paths_); + type_params_.MergeFrom(from.type_params_); + index_params_.MergeFrom(from.index_params_); +} + +void BuildIndexRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.service.BuildIndexRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BuildIndexRequest::CopyFrom(const BuildIndexRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.service.BuildIndexRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BuildIndexRequest::IsInitialized() const { + return true; +} + +void BuildIndexRequest::InternalSwap(BuildIndexRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + data_paths_.InternalSwap(CastToBase(&other->data_paths_)); + CastToBase(&type_params_)->InternalSwap(CastToBase(&other->type_params_)); + CastToBase(&index_params_)->InternalSwap(CastToBase(&other->index_params_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata BuildIndexRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void BuildIndexResponse::InitAsDefaultInstance() { + ::milvus::proto::service::_BuildIndexResponse_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::proto::common::Status*>( + ::milvus::proto::common::Status::internal_default_instance()); +} +class BuildIndexResponse::_Internal { + public: + static const ::milvus::proto::common::Status& status(const BuildIndexResponse* msg); +}; + +const ::milvus::proto::common::Status& +BuildIndexResponse::_Internal::status(const BuildIndexResponse* msg) { + return *msg->status_; +} +void BuildIndexResponse::clear_status() { + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} +BuildIndexResponse::BuildIndexResponse() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.service.BuildIndexResponse) +} +BuildIndexResponse::BuildIndexResponse(const BuildIndexResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_status()) { + status_ = new ::milvus::proto::common::Status(*from.status_); + } else { + status_ = nullptr; + } + indexid_ = from.indexid_; + // @@protoc_insertion_point(copy_constructor:milvus.proto.service.BuildIndexResponse) +} + +void BuildIndexResponse::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_BuildIndexResponse_index_5fbuilder_2eproto.base); + ::memset(&status_, 0, static_cast( + reinterpret_cast(&indexid_) - + reinterpret_cast(&status_)) + sizeof(indexid_)); +} + +BuildIndexResponse::~BuildIndexResponse() { + // @@protoc_insertion_point(destructor:milvus.proto.service.BuildIndexResponse) + SharedDtor(); +} + +void BuildIndexResponse::SharedDtor() { + if (this != internal_default_instance()) delete status_; +} + +void BuildIndexResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const BuildIndexResponse& BuildIndexResponse::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_BuildIndexResponse_index_5fbuilder_2eproto.base); + return *internal_default_instance(); +} + + +void BuildIndexResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.service.BuildIndexResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; + indexid_ = PROTOBUF_LONGLONG(0); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* BuildIndexResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.common.Status status = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_status(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int64 indexID = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + indexid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&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_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool BuildIndexResponse::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.service.BuildIndexResponse) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.common.Status status = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_status())); + } else { + goto handle_unusual; + } + break; + } + + // int64 indexID = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { + + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, &indexid_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.service.BuildIndexResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.service.BuildIndexResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void BuildIndexResponse::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.service.BuildIndexResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::status(this), output); + } + + // int64 indexID = 2; + if (this->indexid() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->indexid(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.service.BuildIndexResponse) +} + +::PROTOBUF_NAMESPACE_ID::uint8* BuildIndexResponse::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.service.BuildIndexResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::status(this), target); + } + + // int64 indexID = 2; + if (this->indexid() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->indexid(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.service.BuildIndexResponse) + return target; +} + +size_t BuildIndexResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.service.BuildIndexResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); + } + + // int64 indexID = 2; + if (this->indexid() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->indexid()); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void BuildIndexResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.service.BuildIndexResponse) + GOOGLE_DCHECK_NE(&from, this); + const BuildIndexResponse* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.service.BuildIndexResponse) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.service.BuildIndexResponse) + MergeFrom(*source); + } +} + +void BuildIndexResponse::MergeFrom(const BuildIndexResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.service.BuildIndexResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_status()) { + mutable_status()->::milvus::proto::common::Status::MergeFrom(from.status()); + } + if (from.indexid() != 0) { + set_indexid(from.indexid()); + } +} + +void BuildIndexResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.service.BuildIndexResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void BuildIndexResponse::CopyFrom(const BuildIndexResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.service.BuildIndexResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BuildIndexResponse::IsInitialized() const { + return true; +} + +void BuildIndexResponse::InternalSwap(BuildIndexResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(status_, other->status_); + swap(indexid_, other->indexid_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata BuildIndexResponse::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void GetIndexFilePathsRequest::InitAsDefaultInstance() { +} +class GetIndexFilePathsRequest::_Internal { + public: +}; + +GetIndexFilePathsRequest::GetIndexFilePathsRequest() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.service.GetIndexFilePathsRequest) +} +GetIndexFilePathsRequest::GetIndexFilePathsRequest(const GetIndexFilePathsRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + indexid_ = from.indexid_; + // @@protoc_insertion_point(copy_constructor:milvus.proto.service.GetIndexFilePathsRequest) +} + +void GetIndexFilePathsRequest::SharedCtor() { + indexid_ = PROTOBUF_LONGLONG(0); +} + +GetIndexFilePathsRequest::~GetIndexFilePathsRequest() { + // @@protoc_insertion_point(destructor:milvus.proto.service.GetIndexFilePathsRequest) + SharedDtor(); +} + +void GetIndexFilePathsRequest::SharedDtor() { +} + +void GetIndexFilePathsRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GetIndexFilePathsRequest& GetIndexFilePathsRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetIndexFilePathsRequest_index_5fbuilder_2eproto.base); + return *internal_default_instance(); +} + + +void GetIndexFilePathsRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.service.GetIndexFilePathsRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + indexid_ = PROTOBUF_LONGLONG(0); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* GetIndexFilePathsRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // int64 indexID = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + indexid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&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_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool GetIndexFilePathsRequest::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.service.GetIndexFilePathsRequest) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // int64 indexID = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { + + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, &indexid_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.service.GetIndexFilePathsRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.service.GetIndexFilePathsRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void GetIndexFilePathsRequest::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.service.GetIndexFilePathsRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 indexID = 1; + if (this->indexid() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->indexid(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.service.GetIndexFilePathsRequest) +} + +::PROTOBUF_NAMESPACE_ID::uint8* GetIndexFilePathsRequest::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.service.GetIndexFilePathsRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 indexID = 1; + if (this->indexid() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->indexid(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.service.GetIndexFilePathsRequest) + return target; +} + +size_t GetIndexFilePathsRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.service.GetIndexFilePathsRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // int64 indexID = 1; + if (this->indexid() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->indexid()); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GetIndexFilePathsRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.service.GetIndexFilePathsRequest) + GOOGLE_DCHECK_NE(&from, this); + const GetIndexFilePathsRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.service.GetIndexFilePathsRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.service.GetIndexFilePathsRequest) + MergeFrom(*source); + } +} + +void GetIndexFilePathsRequest::MergeFrom(const GetIndexFilePathsRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.service.GetIndexFilePathsRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.indexid() != 0) { + set_indexid(from.indexid()); + } +} + +void GetIndexFilePathsRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.service.GetIndexFilePathsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetIndexFilePathsRequest::CopyFrom(const GetIndexFilePathsRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.service.GetIndexFilePathsRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetIndexFilePathsRequest::IsInitialized() const { + return true; +} + +void GetIndexFilePathsRequest::InternalSwap(GetIndexFilePathsRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(indexid_, other->indexid_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetIndexFilePathsRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void GetIndexFilePathsResponse::InitAsDefaultInstance() { + ::milvus::proto::service::_GetIndexFilePathsResponse_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::proto::common::Status*>( + ::milvus::proto::common::Status::internal_default_instance()); +} +class GetIndexFilePathsResponse::_Internal { + public: + static const ::milvus::proto::common::Status& status(const GetIndexFilePathsResponse* msg); +}; + +const ::milvus::proto::common::Status& +GetIndexFilePathsResponse::_Internal::status(const GetIndexFilePathsResponse* msg) { + return *msg->status_; +} +void GetIndexFilePathsResponse::clear_status() { + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} +GetIndexFilePathsResponse::GetIndexFilePathsResponse() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.service.GetIndexFilePathsResponse) +} +GetIndexFilePathsResponse::GetIndexFilePathsResponse(const GetIndexFilePathsResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + index_file_paths_(from.index_file_paths_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_status()) { + status_ = new ::milvus::proto::common::Status(*from.status_); + } else { + status_ = nullptr; + } + indexid_ = from.indexid_; + // @@protoc_insertion_point(copy_constructor:milvus.proto.service.GetIndexFilePathsResponse) +} + +void GetIndexFilePathsResponse::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetIndexFilePathsResponse_index_5fbuilder_2eproto.base); + ::memset(&status_, 0, static_cast( + reinterpret_cast(&indexid_) - + reinterpret_cast(&status_)) + sizeof(indexid_)); +} + +GetIndexFilePathsResponse::~GetIndexFilePathsResponse() { + // @@protoc_insertion_point(destructor:milvus.proto.service.GetIndexFilePathsResponse) + SharedDtor(); +} + +void GetIndexFilePathsResponse::SharedDtor() { + if (this != internal_default_instance()) delete status_; +} + +void GetIndexFilePathsResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const GetIndexFilePathsResponse& GetIndexFilePathsResponse::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_GetIndexFilePathsResponse_index_5fbuilder_2eproto.base); + return *internal_default_instance(); +} + + +void GetIndexFilePathsResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.service.GetIndexFilePathsResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + index_file_paths_.Clear(); + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; + indexid_ = PROTOBUF_LONGLONG(0); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* GetIndexFilePathsResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.common.Status status = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_status(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int64 indexID = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + indexid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated string index_file_paths = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_index_file_paths(), ptr, ctx, "milvus.proto.service.GetIndexFilePathsResponse.index_file_paths"); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool GetIndexFilePathsResponse::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.service.GetIndexFilePathsResponse) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.common.Status status = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_status())); + } else { + goto handle_unusual; + } + break; + } + + // int64 indexID = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { + + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, &indexid_))); + } else { + goto handle_unusual; + } + break; + } + + // repeated string index_file_paths = 3; + case 3: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->add_index_file_paths())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->index_file_paths(this->index_file_paths_size() - 1).data(), + static_cast(this->index_file_paths(this->index_file_paths_size() - 1).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.service.GetIndexFilePathsResponse.index_file_paths")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.service.GetIndexFilePathsResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.service.GetIndexFilePathsResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void GetIndexFilePathsResponse::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.service.GetIndexFilePathsResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::status(this), output); + } + + // int64 indexID = 2; + if (this->indexid() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->indexid(), output); + } + + // repeated string index_file_paths = 3; + for (int i = 0, n = this->index_file_paths_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->index_file_paths(i).data(), static_cast(this->index_file_paths(i).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.service.GetIndexFilePathsResponse.index_file_paths"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( + 3, this->index_file_paths(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.service.GetIndexFilePathsResponse) +} + +::PROTOBUF_NAMESPACE_ID::uint8* GetIndexFilePathsResponse::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.service.GetIndexFilePathsResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::status(this), target); + } + + // int64 indexID = 2; + if (this->indexid() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->indexid(), target); + } + + // repeated string index_file_paths = 3; + for (int i = 0, n = this->index_file_paths_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->index_file_paths(i).data(), static_cast(this->index_file_paths(i).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.service.GetIndexFilePathsResponse.index_file_paths"); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + WriteStringToArray(3, this->index_file_paths(i), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.service.GetIndexFilePathsResponse) + return target; +} + +size_t GetIndexFilePathsResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.service.GetIndexFilePathsResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string index_file_paths = 3; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->index_file_paths_size()); + for (int i = 0, n = this->index_file_paths_size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->index_file_paths(i)); + } + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); + } + + // int64 indexID = 2; + if (this->indexid() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->indexid()); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void GetIndexFilePathsResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.service.GetIndexFilePathsResponse) + GOOGLE_DCHECK_NE(&from, this); + const GetIndexFilePathsResponse* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.service.GetIndexFilePathsResponse) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.service.GetIndexFilePathsResponse) + MergeFrom(*source); + } +} + +void GetIndexFilePathsResponse::MergeFrom(const GetIndexFilePathsResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.service.GetIndexFilePathsResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + index_file_paths_.MergeFrom(from.index_file_paths_); + if (from.has_status()) { + mutable_status()->::milvus::proto::common::Status::MergeFrom(from.status()); + } + if (from.indexid() != 0) { + set_indexid(from.indexid()); + } +} + +void GetIndexFilePathsResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.service.GetIndexFilePathsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void GetIndexFilePathsResponse::CopyFrom(const GetIndexFilePathsResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.service.GetIndexFilePathsResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool GetIndexFilePathsResponse::IsInitialized() const { + return true; +} + +void GetIndexFilePathsResponse::InternalSwap(GetIndexFilePathsResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + index_file_paths_.InternalSwap(CastToBase(&other->index_file_paths_)); + swap(status_, other->status_); + swap(indexid_, other->indexid_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata GetIndexFilePathsResponse::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void DescribleIndexRequest::InitAsDefaultInstance() { +} +class DescribleIndexRequest::_Internal { + public: +}; + +DescribleIndexRequest::DescribleIndexRequest() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.service.DescribleIndexRequest) +} +DescribleIndexRequest::DescribleIndexRequest(const DescribleIndexRequest& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + indexid_ = from.indexid_; + // @@protoc_insertion_point(copy_constructor:milvus.proto.service.DescribleIndexRequest) +} + +void DescribleIndexRequest::SharedCtor() { + indexid_ = PROTOBUF_LONGLONG(0); +} + +DescribleIndexRequest::~DescribleIndexRequest() { + // @@protoc_insertion_point(destructor:milvus.proto.service.DescribleIndexRequest) + SharedDtor(); +} + +void DescribleIndexRequest::SharedDtor() { +} + +void DescribleIndexRequest::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DescribleIndexRequest& DescribleIndexRequest::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DescribleIndexRequest_index_5fbuilder_2eproto.base); + return *internal_default_instance(); +} + + +void DescribleIndexRequest::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.service.DescribleIndexRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + indexid_ = PROTOBUF_LONGLONG(0); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* DescribleIndexRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // int64 indexID = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + indexid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&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_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool DescribleIndexRequest::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.service.DescribleIndexRequest) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // int64 indexID = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { + + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, &indexid_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.service.DescribleIndexRequest) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.service.DescribleIndexRequest) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void DescribleIndexRequest::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.service.DescribleIndexRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 indexID = 1; + if (this->indexid() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->indexid(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.service.DescribleIndexRequest) +} + +::PROTOBUF_NAMESPACE_ID::uint8* DescribleIndexRequest::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.service.DescribleIndexRequest) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 indexID = 1; + if (this->indexid() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->indexid(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.service.DescribleIndexRequest) + return target; +} + +size_t DescribleIndexRequest::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.service.DescribleIndexRequest) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // int64 indexID = 1; + if (this->indexid() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->indexid()); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DescribleIndexRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.service.DescribleIndexRequest) + GOOGLE_DCHECK_NE(&from, this); + const DescribleIndexRequest* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.service.DescribleIndexRequest) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.service.DescribleIndexRequest) + MergeFrom(*source); + } +} + +void DescribleIndexRequest::MergeFrom(const DescribleIndexRequest& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.service.DescribleIndexRequest) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.indexid() != 0) { + set_indexid(from.indexid()); + } +} + +void DescribleIndexRequest::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.service.DescribleIndexRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DescribleIndexRequest::CopyFrom(const DescribleIndexRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.service.DescribleIndexRequest) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DescribleIndexRequest::IsInitialized() const { + return true; +} + +void DescribleIndexRequest::InternalSwap(DescribleIndexRequest* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(indexid_, other->indexid_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DescribleIndexRequest::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void DescribleIndexResponse::InitAsDefaultInstance() { + ::milvus::proto::service::_DescribleIndexResponse_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::proto::common::Status*>( + ::milvus::proto::common::Status::internal_default_instance()); +} +class DescribleIndexResponse::_Internal { + public: + static const ::milvus::proto::common::Status& status(const DescribleIndexResponse* msg); +}; + +const ::milvus::proto::common::Status& +DescribleIndexResponse::_Internal::status(const DescribleIndexResponse* msg) { + return *msg->status_; +} +void DescribleIndexResponse::clear_status() { + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; +} +DescribleIndexResponse::DescribleIndexResponse() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.service.DescribleIndexResponse) +} +DescribleIndexResponse::DescribleIndexResponse(const DescribleIndexResponse& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_status()) { + status_ = new ::milvus::proto::common::Status(*from.status_); + } else { + status_ = nullptr; + } + ::memcpy(&indexid_, &from.indexid_, + static_cast(reinterpret_cast(&index_status_) - + reinterpret_cast(&indexid_)) + sizeof(index_status_)); + // @@protoc_insertion_point(copy_constructor:milvus.proto.service.DescribleIndexResponse) +} + +void DescribleIndexResponse::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DescribleIndexResponse_index_5fbuilder_2eproto.base); + ::memset(&status_, 0, static_cast( + reinterpret_cast(&index_status_) - + reinterpret_cast(&status_)) + sizeof(index_status_)); +} + +DescribleIndexResponse::~DescribleIndexResponse() { + // @@protoc_insertion_point(destructor:milvus.proto.service.DescribleIndexResponse) + SharedDtor(); +} + +void DescribleIndexResponse::SharedDtor() { + if (this != internal_default_instance()) delete status_; +} + +void DescribleIndexResponse::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DescribleIndexResponse& DescribleIndexResponse::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DescribleIndexResponse_index_5fbuilder_2eproto.base); + return *internal_default_instance(); +} + + +void DescribleIndexResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.service.DescribleIndexResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { + delete status_; + } + status_ = nullptr; + ::memset(&indexid_, 0, static_cast( + reinterpret_cast(&index_status_) - + reinterpret_cast(&indexid_)) + sizeof(index_status_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* DescribleIndexResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.common.Status status = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_status(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .milvus.proto.service.IndexStatus index_status = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + set_index_status(static_cast<::milvus::proto::service::IndexStatus>(val)); + } else goto handle_unusual; + continue; + // int64 indexID = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + indexid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int64 enque_time = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + enque_time_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int64 schedule_time = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { + schedule_time_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int64 build_complete_time = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { + build_complete_time_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&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_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool DescribleIndexResponse::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.service.DescribleIndexResponse) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.common.Status status = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_status())); + } else { + goto handle_unusual; + } + break; + } + + // .milvus.proto.service.IndexStatus index_status = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { + int value = 0; + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_index_status(static_cast< ::milvus::proto::service::IndexStatus >(value)); + } else { + goto handle_unusual; + } + break; + } + + // int64 indexID = 3; + case 3: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) { + + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, &indexid_))); + } else { + goto handle_unusual; + } + break; + } + + // int64 enque_time = 4; + case 4: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) { + + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, &enque_time_))); + } else { + goto handle_unusual; + } + break; + } + + // int64 schedule_time = 5; + case 5: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (40 & 0xFF)) { + + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, &schedule_time_))); + } else { + goto handle_unusual; + } + break; + } + + // int64 build_complete_time = 6; + case 6: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (48 & 0xFF)) { + + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, &build_complete_time_))); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.service.DescribleIndexResponse) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.service.DescribleIndexResponse) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void DescribleIndexResponse::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.service.DescribleIndexResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::status(this), output); + } + + // .milvus.proto.service.IndexStatus index_status = 2; + if (this->index_status() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum( + 2, this->index_status(), output); + } + + // int64 indexID = 3; + if (this->indexid() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(3, this->indexid(), output); + } + + // int64 enque_time = 4; + if (this->enque_time() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(4, this->enque_time(), output); + } + + // int64 schedule_time = 5; + if (this->schedule_time() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(5, this->schedule_time(), output); + } + + // int64 build_complete_time = 6; + if (this->build_complete_time() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(6, this->build_complete_time(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.service.DescribleIndexResponse) +} + +::PROTOBUF_NAMESPACE_ID::uint8* DescribleIndexResponse::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.service.DescribleIndexResponse) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::status(this), target); + } + + // .milvus.proto.service.IndexStatus index_status = 2; + if (this->index_status() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 2, this->index_status(), target); + } + + // int64 indexID = 3; + if (this->indexid() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->indexid(), target); + } + + // int64 enque_time = 4; + if (this->enque_time() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->enque_time(), target); + } + + // int64 schedule_time = 5; + if (this->schedule_time() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(5, this->schedule_time(), target); + } + + // int64 build_complete_time = 6; + if (this->build_complete_time() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(6, this->build_complete_time(), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.service.DescribleIndexResponse) + return target; +} + +size_t DescribleIndexResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.service.DescribleIndexResponse) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .milvus.proto.common.Status status = 1; + if (this->has_status()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *status_); + } + + // int64 indexID = 3; + if (this->indexid() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->indexid()); + } + + // int64 enque_time = 4; + if (this->enque_time() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->enque_time()); + } + + // int64 schedule_time = 5; + if (this->schedule_time() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->schedule_time()); + } + + // int64 build_complete_time = 6; + if (this->build_complete_time() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->build_complete_time()); + } + + // .milvus.proto.service.IndexStatus index_status = 2; + if (this->index_status() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->index_status()); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DescribleIndexResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.service.DescribleIndexResponse) + GOOGLE_DCHECK_NE(&from, this); + const DescribleIndexResponse* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.service.DescribleIndexResponse) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.service.DescribleIndexResponse) + MergeFrom(*source); + } +} + +void DescribleIndexResponse::MergeFrom(const DescribleIndexResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.service.DescribleIndexResponse) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_status()) { + mutable_status()->::milvus::proto::common::Status::MergeFrom(from.status()); + } + if (from.indexid() != 0) { + set_indexid(from.indexid()); + } + if (from.enque_time() != 0) { + set_enque_time(from.enque_time()); + } + if (from.schedule_time() != 0) { + set_schedule_time(from.schedule_time()); + } + if (from.build_complete_time() != 0) { + set_build_complete_time(from.build_complete_time()); + } + if (from.index_status() != 0) { + set_index_status(from.index_status()); + } +} + +void DescribleIndexResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.service.DescribleIndexResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DescribleIndexResponse::CopyFrom(const DescribleIndexResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.service.DescribleIndexResponse) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DescribleIndexResponse::IsInitialized() const { + return true; +} + +void DescribleIndexResponse::InternalSwap(DescribleIndexResponse* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(status_, other->status_); + swap(indexid_, other->indexid_); + swap(enque_time_, other->enque_time_); + swap(schedule_time_, other->schedule_time_); + swap(build_complete_time_, other->build_complete_time_); + swap(index_status_, other->index_status_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DescribleIndexResponse::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void IndexMeta::InitAsDefaultInstance() { + ::milvus::proto::service::_IndexMeta_default_instance_._instance.get_mutable()->req_ = const_cast< ::milvus::proto::service::BuildIndexRequest*>( + ::milvus::proto::service::BuildIndexRequest::internal_default_instance()); +} +class IndexMeta::_Internal { + public: + static const ::milvus::proto::service::BuildIndexRequest& req(const IndexMeta* msg); +}; + +const ::milvus::proto::service::BuildIndexRequest& +IndexMeta::_Internal::req(const IndexMeta* msg) { + return *msg->req_; +} +IndexMeta::IndexMeta() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.service.IndexMeta) +} +IndexMeta::IndexMeta(const IndexMeta& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + index_file_paths_(from.index_file_paths_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_req()) { + req_ = new ::milvus::proto::service::BuildIndexRequest(*from.req_); + } else { + req_ = nullptr; + } + ::memcpy(&indexid_, &from.indexid_, + static_cast(reinterpret_cast(&status_) - + reinterpret_cast(&indexid_)) + sizeof(status_)); + // @@protoc_insertion_point(copy_constructor:milvus.proto.service.IndexMeta) +} + +void IndexMeta::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_IndexMeta_index_5fbuilder_2eproto.base); + ::memset(&req_, 0, static_cast( + reinterpret_cast(&status_) - + reinterpret_cast(&req_)) + sizeof(status_)); +} + +IndexMeta::~IndexMeta() { + // @@protoc_insertion_point(destructor:milvus.proto.service.IndexMeta) + SharedDtor(); +} + +void IndexMeta::SharedDtor() { + if (this != internal_default_instance()) delete req_; +} + +void IndexMeta::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const IndexMeta& IndexMeta::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_IndexMeta_index_5fbuilder_2eproto.base); + return *internal_default_instance(); +} + + +void IndexMeta::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.service.IndexMeta) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + index_file_paths_.Clear(); + if (GetArenaNoVirtual() == nullptr && req_ != nullptr) { + delete req_; + } + req_ = nullptr; + ::memset(&indexid_, 0, static_cast( + reinterpret_cast(&status_) - + reinterpret_cast(&indexid_)) + sizeof(status_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* IndexMeta::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.proto.service.IndexStatus status = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + set_status(static_cast<::milvus::proto::service::IndexStatus>(val)); + } else goto handle_unusual; + continue; + // int64 indexID = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + indexid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int64 enque_time = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + enque_time_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int64 schedule_time = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + schedule_time_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int64 build_complete_time = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { + build_complete_time_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .milvus.proto.service.BuildIndexRequest req = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { + ptr = ctx->ParseMessage(mutable_req(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated string index_file_paths = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { + ptr -= 1; + do { + ptr += 1; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_index_file_paths(), ptr, ctx, "milvus.proto.service.IndexMeta.index_file_paths"); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 58); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ +} +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool IndexMeta::MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + // @@protoc_insertion_point(parse_start:milvus.proto.service.IndexMeta) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.proto.service.IndexStatus status = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { + int value = 0; + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>( + input, &value))); + set_status(static_cast< ::milvus::proto::service::IndexStatus >(value)); + } else { + goto handle_unusual; + } + break; + } + + // int64 indexID = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { + + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, &indexid_))); + } else { + goto handle_unusual; + } + break; + } + + // int64 enque_time = 3; + case 3: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) { + + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, &enque_time_))); + } else { + goto handle_unusual; + } + break; + } + + // int64 schedule_time = 4; + case 4: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) { + + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, &schedule_time_))); + } else { + goto handle_unusual; + } + break; + } + + // int64 build_complete_time = 5; + case 5: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (40 & 0xFF)) { + + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, &build_complete_time_))); + } else { + goto handle_unusual; + } + break; + } + + // .milvus.proto.service.BuildIndexRequest req = 6; + case 6: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_req())); + } else { + goto handle_unusual; + } + break; + } + + // repeated string index_file_paths = 7; + case 7: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (58 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->add_index_file_paths())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->index_file_paths(this->index_file_paths_size() - 1).data(), + static_cast(this->index_file_paths(this->index_file_paths_size() - 1).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.proto.service.IndexMeta.index_file_paths")); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.proto.service.IndexMeta) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.service.IndexMeta) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void IndexMeta::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.service.IndexMeta) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.service.IndexStatus status = 1; + if (this->status() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum( + 1, this->status(), output); + } + + // int64 indexID = 2; + if (this->indexid() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->indexid(), output); + } + + // int64 enque_time = 3; + if (this->enque_time() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(3, this->enque_time(), output); + } + + // int64 schedule_time = 4; + if (this->schedule_time() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(4, this->schedule_time(), output); + } + + // int64 build_complete_time = 5; + if (this->build_complete_time() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(5, this->build_complete_time(), output); + } + + // .milvus.proto.service.BuildIndexRequest req = 6; + if (this->has_req()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 6, _Internal::req(this), output); + } + + // repeated string index_file_paths = 7; + for (int i = 0, n = this->index_file_paths_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->index_file_paths(i).data(), static_cast(this->index_file_paths(i).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.service.IndexMeta.index_file_paths"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( + 7, this->index_file_paths(i), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.proto.service.IndexMeta) +} + +::PROTOBUF_NAMESPACE_ID::uint8* IndexMeta::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.service.IndexMeta) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.proto.service.IndexStatus status = 1; + if (this->status() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 1, this->status(), target); + } + + // int64 indexID = 2; + if (this->indexid() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->indexid(), target); + } + + // int64 enque_time = 3; + if (this->enque_time() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->enque_time(), target); + } + + // int64 schedule_time = 4; + if (this->schedule_time() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->schedule_time(), target); + } + + // int64 build_complete_time = 5; + if (this->build_complete_time() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(5, this->build_complete_time(), target); + } + + // .milvus.proto.service.BuildIndexRequest req = 6; + if (this->has_req()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 6, _Internal::req(this), target); + } + + // repeated string index_file_paths = 7; + for (int i = 0, n = this->index_file_paths_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->index_file_paths(i).data(), static_cast(this->index_file_paths(i).length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.proto.service.IndexMeta.index_file_paths"); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + WriteStringToArray(7, this->index_file_paths(i), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.service.IndexMeta) + return target; +} + +size_t IndexMeta::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.service.IndexMeta) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string index_file_paths = 7; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->index_file_paths_size()); + for (int i = 0, n = this->index_file_paths_size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->index_file_paths(i)); + } + + // .milvus.proto.service.BuildIndexRequest req = 6; + if (this->has_req()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *req_); + } + + // int64 indexID = 2; + if (this->indexid() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->indexid()); + } + + // int64 enque_time = 3; + if (this->enque_time() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->enque_time()); + } + + // int64 schedule_time = 4; + if (this->schedule_time() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->schedule_time()); + } + + // int64 build_complete_time = 5; + if (this->build_complete_time() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->build_complete_time()); + } + + // .milvus.proto.service.IndexStatus status = 1; + if (this->status() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->status()); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void IndexMeta::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.service.IndexMeta) + GOOGLE_DCHECK_NE(&from, this); + const IndexMeta* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.service.IndexMeta) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.service.IndexMeta) + MergeFrom(*source); + } +} + +void IndexMeta::MergeFrom(const IndexMeta& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.service.IndexMeta) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + index_file_paths_.MergeFrom(from.index_file_paths_); + if (from.has_req()) { + mutable_req()->::milvus::proto::service::BuildIndexRequest::MergeFrom(from.req()); + } + if (from.indexid() != 0) { + set_indexid(from.indexid()); + } + if (from.enque_time() != 0) { + set_enque_time(from.enque_time()); + } + if (from.schedule_time() != 0) { + set_schedule_time(from.schedule_time()); + } + if (from.build_complete_time() != 0) { + set_build_complete_time(from.build_complete_time()); + } + if (from.status() != 0) { + set_status(from.status()); + } +} + +void IndexMeta::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.service.IndexMeta) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void IndexMeta::CopyFrom(const IndexMeta& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.service.IndexMeta) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IndexMeta::IsInitialized() const { + return true; +} + +void IndexMeta::InternalSwap(IndexMeta* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + index_file_paths_.InternalSwap(CastToBase(&other->index_file_paths_)); + swap(req_, other->req_); + swap(indexid_, other->indexid_); + swap(enque_time_, other->enque_time_); + swap(schedule_time_, other->schedule_time_); + swap(build_complete_time_, other->build_complete_time_); + swap(status_, other->status_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata IndexMeta::GetMetadata() const { + return GetMetadataStatic(); +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace service +} // namespace proto +} // namespace milvus +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::milvus::proto::service::BuildIndexRequest* Arena::CreateMaybeMessage< ::milvus::proto::service::BuildIndexRequest >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::service::BuildIndexRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::service::BuildIndexResponse* Arena::CreateMaybeMessage< ::milvus::proto::service::BuildIndexResponse >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::service::BuildIndexResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::service::GetIndexFilePathsRequest* Arena::CreateMaybeMessage< ::milvus::proto::service::GetIndexFilePathsRequest >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::service::GetIndexFilePathsRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::service::GetIndexFilePathsResponse* Arena::CreateMaybeMessage< ::milvus::proto::service::GetIndexFilePathsResponse >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::service::GetIndexFilePathsResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::service::DescribleIndexRequest* Arena::CreateMaybeMessage< ::milvus::proto::service::DescribleIndexRequest >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::service::DescribleIndexRequest >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::service::DescribleIndexResponse* Arena::CreateMaybeMessage< ::milvus::proto::service::DescribleIndexResponse >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::service::DescribleIndexResponse >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::service::IndexMeta* Arena::CreateMaybeMessage< ::milvus::proto::service::IndexMeta >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::service::IndexMeta >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/internal/core/src/pb/index_builder.pb.h b/internal/core/src/pb/index_builder.pb.h new file mode 100644 index 0000000000..8ec08ff4a9 --- /dev/null +++ b/internal/core/src/pb/index_builder.pb.h @@ -0,0 +1,1916 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: index_builder.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_index_5fbuilder_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_index_5fbuilder_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3009000 +#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 3009000 < 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. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include +#include "common.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_index_5fbuilder_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_index_5fbuilder_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[7] + 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_index_5fbuilder_2eproto; +namespace milvus { +namespace proto { +namespace service { +class BuildIndexRequest; +class BuildIndexRequestDefaultTypeInternal; +extern BuildIndexRequestDefaultTypeInternal _BuildIndexRequest_default_instance_; +class BuildIndexResponse; +class BuildIndexResponseDefaultTypeInternal; +extern BuildIndexResponseDefaultTypeInternal _BuildIndexResponse_default_instance_; +class DescribleIndexRequest; +class DescribleIndexRequestDefaultTypeInternal; +extern DescribleIndexRequestDefaultTypeInternal _DescribleIndexRequest_default_instance_; +class DescribleIndexResponse; +class DescribleIndexResponseDefaultTypeInternal; +extern DescribleIndexResponseDefaultTypeInternal _DescribleIndexResponse_default_instance_; +class GetIndexFilePathsRequest; +class GetIndexFilePathsRequestDefaultTypeInternal; +extern GetIndexFilePathsRequestDefaultTypeInternal _GetIndexFilePathsRequest_default_instance_; +class GetIndexFilePathsResponse; +class GetIndexFilePathsResponseDefaultTypeInternal; +extern GetIndexFilePathsResponseDefaultTypeInternal _GetIndexFilePathsResponse_default_instance_; +class IndexMeta; +class IndexMetaDefaultTypeInternal; +extern IndexMetaDefaultTypeInternal _IndexMeta_default_instance_; +} // namespace service +} // namespace proto +} // namespace milvus +PROTOBUF_NAMESPACE_OPEN +template<> ::milvus::proto::service::BuildIndexRequest* Arena::CreateMaybeMessage<::milvus::proto::service::BuildIndexRequest>(Arena*); +template<> ::milvus::proto::service::BuildIndexResponse* Arena::CreateMaybeMessage<::milvus::proto::service::BuildIndexResponse>(Arena*); +template<> ::milvus::proto::service::DescribleIndexRequest* Arena::CreateMaybeMessage<::milvus::proto::service::DescribleIndexRequest>(Arena*); +template<> ::milvus::proto::service::DescribleIndexResponse* Arena::CreateMaybeMessage<::milvus::proto::service::DescribleIndexResponse>(Arena*); +template<> ::milvus::proto::service::GetIndexFilePathsRequest* Arena::CreateMaybeMessage<::milvus::proto::service::GetIndexFilePathsRequest>(Arena*); +template<> ::milvus::proto::service::GetIndexFilePathsResponse* Arena::CreateMaybeMessage<::milvus::proto::service::GetIndexFilePathsResponse>(Arena*); +template<> ::milvus::proto::service::IndexMeta* Arena::CreateMaybeMessage<::milvus::proto::service::IndexMeta>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace milvus { +namespace proto { +namespace service { + +enum IndexStatus : int { + NONE = 0, + UNISSUED = 1, + INPROGRESS = 2, + FINISHED = 3, + IndexStatus_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), + IndexStatus_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() +}; +bool IndexStatus_IsValid(int value); +constexpr IndexStatus IndexStatus_MIN = NONE; +constexpr IndexStatus IndexStatus_MAX = FINISHED; +constexpr int IndexStatus_ARRAYSIZE = IndexStatus_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* IndexStatus_descriptor(); +template +inline const std::string& IndexStatus_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function IndexStatus_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + IndexStatus_descriptor(), enum_t_value); +} +inline bool IndexStatus_Parse( + const std::string& name, IndexStatus* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + IndexStatus_descriptor(), name, value); +} +// =================================================================== + +class BuildIndexRequest : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.service.BuildIndexRequest) */ { + public: + BuildIndexRequest(); + virtual ~BuildIndexRequest(); + + BuildIndexRequest(const BuildIndexRequest& from); + BuildIndexRequest(BuildIndexRequest&& from) noexcept + : BuildIndexRequest() { + *this = ::std::move(from); + } + + inline BuildIndexRequest& operator=(const BuildIndexRequest& from) { + CopyFrom(from); + return *this; + } + inline BuildIndexRequest& operator=(BuildIndexRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const BuildIndexRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BuildIndexRequest* internal_default_instance() { + return reinterpret_cast( + &_BuildIndexRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(BuildIndexRequest& a, BuildIndexRequest& b) { + a.Swap(&b); + } + inline void Swap(BuildIndexRequest* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline BuildIndexRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + BuildIndexRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const BuildIndexRequest& from); + void MergeFrom(const BuildIndexRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BuildIndexRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.service.BuildIndexRequest"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_index_5fbuilder_2eproto); + return ::descriptor_table_index_5fbuilder_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kDataPathsFieldNumber = 2, + kTypeParamsFieldNumber = 3, + kIndexParamsFieldNumber = 4, + }; + // repeated string data_paths = 2; + int data_paths_size() const; + void clear_data_paths(); + const std::string& data_paths(int index) const; + std::string* mutable_data_paths(int index); + void set_data_paths(int index, const std::string& value); + void set_data_paths(int index, std::string&& value); + void set_data_paths(int index, const char* value); + void set_data_paths(int index, const char* value, size_t size); + std::string* add_data_paths(); + void add_data_paths(const std::string& value); + void add_data_paths(std::string&& value); + void add_data_paths(const char* value); + void add_data_paths(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& data_paths() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_data_paths(); + + // repeated .milvus.proto.common.KeyValuePair type_params = 3; + int type_params_size() const; + void clear_type_params(); + ::milvus::proto::common::KeyValuePair* mutable_type_params(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >* + mutable_type_params(); + const ::milvus::proto::common::KeyValuePair& type_params(int index) const; + ::milvus::proto::common::KeyValuePair* add_type_params(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >& + type_params() const; + + // repeated .milvus.proto.common.KeyValuePair index_params = 4; + int index_params_size() const; + void clear_index_params(); + ::milvus::proto::common::KeyValuePair* mutable_index_params(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >* + mutable_index_params(); + const ::milvus::proto::common::KeyValuePair& index_params(int index) const; + ::milvus::proto::common::KeyValuePair* add_index_params(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >& + index_params() const; + + // @@protoc_insertion_point(class_scope:milvus.proto.service.BuildIndexRequest) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField data_paths_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair > type_params_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair > index_params_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_index_5fbuilder_2eproto; +}; +// ------------------------------------------------------------------- + +class BuildIndexResponse : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.service.BuildIndexResponse) */ { + public: + BuildIndexResponse(); + virtual ~BuildIndexResponse(); + + BuildIndexResponse(const BuildIndexResponse& from); + BuildIndexResponse(BuildIndexResponse&& from) noexcept + : BuildIndexResponse() { + *this = ::std::move(from); + } + + inline BuildIndexResponse& operator=(const BuildIndexResponse& from) { + CopyFrom(from); + return *this; + } + inline BuildIndexResponse& operator=(BuildIndexResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const BuildIndexResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const BuildIndexResponse* internal_default_instance() { + return reinterpret_cast( + &_BuildIndexResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(BuildIndexResponse& a, BuildIndexResponse& b) { + a.Swap(&b); + } + inline void Swap(BuildIndexResponse* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline BuildIndexResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + BuildIndexResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const BuildIndexResponse& from); + void MergeFrom(const BuildIndexResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BuildIndexResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.service.BuildIndexResponse"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_index_5fbuilder_2eproto); + return ::descriptor_table_index_5fbuilder_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kStatusFieldNumber = 1, + kIndexIDFieldNumber = 2, + }; + // .milvus.proto.common.Status status = 1; + bool has_status() const; + void clear_status(); + const ::milvus::proto::common::Status& status() const; + ::milvus::proto::common::Status* release_status(); + ::milvus::proto::common::Status* mutable_status(); + void set_allocated_status(::milvus::proto::common::Status* status); + + // int64 indexID = 2; + void clear_indexid(); + ::PROTOBUF_NAMESPACE_ID::int64 indexid() const; + void set_indexid(::PROTOBUF_NAMESPACE_ID::int64 value); + + // @@protoc_insertion_point(class_scope:milvus.proto.service.BuildIndexResponse) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::milvus::proto::common::Status* status_; + ::PROTOBUF_NAMESPACE_ID::int64 indexid_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_index_5fbuilder_2eproto; +}; +// ------------------------------------------------------------------- + +class GetIndexFilePathsRequest : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.service.GetIndexFilePathsRequest) */ { + public: + GetIndexFilePathsRequest(); + virtual ~GetIndexFilePathsRequest(); + + GetIndexFilePathsRequest(const GetIndexFilePathsRequest& from); + GetIndexFilePathsRequest(GetIndexFilePathsRequest&& from) noexcept + : GetIndexFilePathsRequest() { + *this = ::std::move(from); + } + + inline GetIndexFilePathsRequest& operator=(const GetIndexFilePathsRequest& from) { + CopyFrom(from); + return *this; + } + inline GetIndexFilePathsRequest& operator=(GetIndexFilePathsRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const GetIndexFilePathsRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GetIndexFilePathsRequest* internal_default_instance() { + return reinterpret_cast( + &_GetIndexFilePathsRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(GetIndexFilePathsRequest& a, GetIndexFilePathsRequest& b) { + a.Swap(&b); + } + inline void Swap(GetIndexFilePathsRequest* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline GetIndexFilePathsRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + GetIndexFilePathsRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const GetIndexFilePathsRequest& from); + void MergeFrom(const GetIndexFilePathsRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetIndexFilePathsRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.service.GetIndexFilePathsRequest"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_index_5fbuilder_2eproto); + return ::descriptor_table_index_5fbuilder_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kIndexIDFieldNumber = 1, + }; + // int64 indexID = 1; + void clear_indexid(); + ::PROTOBUF_NAMESPACE_ID::int64 indexid() const; + void set_indexid(::PROTOBUF_NAMESPACE_ID::int64 value); + + // @@protoc_insertion_point(class_scope:milvus.proto.service.GetIndexFilePathsRequest) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::int64 indexid_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_index_5fbuilder_2eproto; +}; +// ------------------------------------------------------------------- + +class GetIndexFilePathsResponse : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.service.GetIndexFilePathsResponse) */ { + public: + GetIndexFilePathsResponse(); + virtual ~GetIndexFilePathsResponse(); + + GetIndexFilePathsResponse(const GetIndexFilePathsResponse& from); + GetIndexFilePathsResponse(GetIndexFilePathsResponse&& from) noexcept + : GetIndexFilePathsResponse() { + *this = ::std::move(from); + } + + inline GetIndexFilePathsResponse& operator=(const GetIndexFilePathsResponse& from) { + CopyFrom(from); + return *this; + } + inline GetIndexFilePathsResponse& operator=(GetIndexFilePathsResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const GetIndexFilePathsResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const GetIndexFilePathsResponse* internal_default_instance() { + return reinterpret_cast( + &_GetIndexFilePathsResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(GetIndexFilePathsResponse& a, GetIndexFilePathsResponse& b) { + a.Swap(&b); + } + inline void Swap(GetIndexFilePathsResponse* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline GetIndexFilePathsResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + GetIndexFilePathsResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const GetIndexFilePathsResponse& from); + void MergeFrom(const GetIndexFilePathsResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(GetIndexFilePathsResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.service.GetIndexFilePathsResponse"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_index_5fbuilder_2eproto); + return ::descriptor_table_index_5fbuilder_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kIndexFilePathsFieldNumber = 3, + kStatusFieldNumber = 1, + kIndexIDFieldNumber = 2, + }; + // repeated string index_file_paths = 3; + int index_file_paths_size() const; + void clear_index_file_paths(); + const std::string& index_file_paths(int index) const; + std::string* mutable_index_file_paths(int index); + void set_index_file_paths(int index, const std::string& value); + void set_index_file_paths(int index, std::string&& value); + void set_index_file_paths(int index, const char* value); + void set_index_file_paths(int index, const char* value, size_t size); + std::string* add_index_file_paths(); + void add_index_file_paths(const std::string& value); + void add_index_file_paths(std::string&& value); + void add_index_file_paths(const char* value); + void add_index_file_paths(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& index_file_paths() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_index_file_paths(); + + // .milvus.proto.common.Status status = 1; + bool has_status() const; + void clear_status(); + const ::milvus::proto::common::Status& status() const; + ::milvus::proto::common::Status* release_status(); + ::milvus::proto::common::Status* mutable_status(); + void set_allocated_status(::milvus::proto::common::Status* status); + + // int64 indexID = 2; + void clear_indexid(); + ::PROTOBUF_NAMESPACE_ID::int64 indexid() const; + void set_indexid(::PROTOBUF_NAMESPACE_ID::int64 value); + + // @@protoc_insertion_point(class_scope:milvus.proto.service.GetIndexFilePathsResponse) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField index_file_paths_; + ::milvus::proto::common::Status* status_; + ::PROTOBUF_NAMESPACE_ID::int64 indexid_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_index_5fbuilder_2eproto; +}; +// ------------------------------------------------------------------- + +class DescribleIndexRequest : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.service.DescribleIndexRequest) */ { + public: + DescribleIndexRequest(); + virtual ~DescribleIndexRequest(); + + DescribleIndexRequest(const DescribleIndexRequest& from); + DescribleIndexRequest(DescribleIndexRequest&& from) noexcept + : DescribleIndexRequest() { + *this = ::std::move(from); + } + + inline DescribleIndexRequest& operator=(const DescribleIndexRequest& from) { + CopyFrom(from); + return *this; + } + inline DescribleIndexRequest& operator=(DescribleIndexRequest&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const DescribleIndexRequest& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DescribleIndexRequest* internal_default_instance() { + return reinterpret_cast( + &_DescribleIndexRequest_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(DescribleIndexRequest& a, DescribleIndexRequest& b) { + a.Swap(&b); + } + inline void Swap(DescribleIndexRequest* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline DescribleIndexRequest* New() const final { + return CreateMaybeMessage(nullptr); + } + + DescribleIndexRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const DescribleIndexRequest& from); + void MergeFrom(const DescribleIndexRequest& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DescribleIndexRequest* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.service.DescribleIndexRequest"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_index_5fbuilder_2eproto); + return ::descriptor_table_index_5fbuilder_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kIndexIDFieldNumber = 1, + }; + // int64 indexID = 1; + void clear_indexid(); + ::PROTOBUF_NAMESPACE_ID::int64 indexid() const; + void set_indexid(::PROTOBUF_NAMESPACE_ID::int64 value); + + // @@protoc_insertion_point(class_scope:milvus.proto.service.DescribleIndexRequest) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::int64 indexid_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_index_5fbuilder_2eproto; +}; +// ------------------------------------------------------------------- + +class DescribleIndexResponse : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.service.DescribleIndexResponse) */ { + public: + DescribleIndexResponse(); + virtual ~DescribleIndexResponse(); + + DescribleIndexResponse(const DescribleIndexResponse& from); + DescribleIndexResponse(DescribleIndexResponse&& from) noexcept + : DescribleIndexResponse() { + *this = ::std::move(from); + } + + inline DescribleIndexResponse& operator=(const DescribleIndexResponse& from) { + CopyFrom(from); + return *this; + } + inline DescribleIndexResponse& operator=(DescribleIndexResponse&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const DescribleIndexResponse& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DescribleIndexResponse* internal_default_instance() { + return reinterpret_cast( + &_DescribleIndexResponse_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(DescribleIndexResponse& a, DescribleIndexResponse& b) { + a.Swap(&b); + } + inline void Swap(DescribleIndexResponse* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline DescribleIndexResponse* New() const final { + return CreateMaybeMessage(nullptr); + } + + DescribleIndexResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const DescribleIndexResponse& from); + void MergeFrom(const DescribleIndexResponse& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(DescribleIndexResponse* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.service.DescribleIndexResponse"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_index_5fbuilder_2eproto); + return ::descriptor_table_index_5fbuilder_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kStatusFieldNumber = 1, + kIndexIDFieldNumber = 3, + kEnqueTimeFieldNumber = 4, + kScheduleTimeFieldNumber = 5, + kBuildCompleteTimeFieldNumber = 6, + kIndexStatusFieldNumber = 2, + }; + // .milvus.proto.common.Status status = 1; + bool has_status() const; + void clear_status(); + const ::milvus::proto::common::Status& status() const; + ::milvus::proto::common::Status* release_status(); + ::milvus::proto::common::Status* mutable_status(); + void set_allocated_status(::milvus::proto::common::Status* status); + + // int64 indexID = 3; + void clear_indexid(); + ::PROTOBUF_NAMESPACE_ID::int64 indexid() const; + void set_indexid(::PROTOBUF_NAMESPACE_ID::int64 value); + + // int64 enque_time = 4; + void clear_enque_time(); + ::PROTOBUF_NAMESPACE_ID::int64 enque_time() const; + void set_enque_time(::PROTOBUF_NAMESPACE_ID::int64 value); + + // int64 schedule_time = 5; + void clear_schedule_time(); + ::PROTOBUF_NAMESPACE_ID::int64 schedule_time() const; + void set_schedule_time(::PROTOBUF_NAMESPACE_ID::int64 value); + + // int64 build_complete_time = 6; + void clear_build_complete_time(); + ::PROTOBUF_NAMESPACE_ID::int64 build_complete_time() const; + void set_build_complete_time(::PROTOBUF_NAMESPACE_ID::int64 value); + + // .milvus.proto.service.IndexStatus index_status = 2; + void clear_index_status(); + ::milvus::proto::service::IndexStatus index_status() const; + void set_index_status(::milvus::proto::service::IndexStatus value); + + // @@protoc_insertion_point(class_scope:milvus.proto.service.DescribleIndexResponse) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::milvus::proto::common::Status* status_; + ::PROTOBUF_NAMESPACE_ID::int64 indexid_; + ::PROTOBUF_NAMESPACE_ID::int64 enque_time_; + ::PROTOBUF_NAMESPACE_ID::int64 schedule_time_; + ::PROTOBUF_NAMESPACE_ID::int64 build_complete_time_; + int index_status_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_index_5fbuilder_2eproto; +}; +// ------------------------------------------------------------------- + +class IndexMeta : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.service.IndexMeta) */ { + public: + IndexMeta(); + virtual ~IndexMeta(); + + IndexMeta(const IndexMeta& from); + IndexMeta(IndexMeta&& from) noexcept + : IndexMeta() { + *this = ::std::move(from); + } + + inline IndexMeta& operator=(const IndexMeta& from) { + CopyFrom(from); + return *this; + } + inline IndexMeta& operator=(IndexMeta&& from) noexcept { + if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { + if (this != &from) InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return GetMetadataStatic().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return GetMetadataStatic().reflection; + } + static const IndexMeta& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const IndexMeta* internal_default_instance() { + return reinterpret_cast( + &_IndexMeta_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(IndexMeta& a, IndexMeta& b) { + a.Swap(&b); + } + inline void Swap(IndexMeta* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline IndexMeta* New() const final { + return CreateMaybeMessage(nullptr); + } + + IndexMeta* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const IndexMeta& from); + void MergeFrom(const IndexMeta& from); + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + #else + bool MergePartialFromCodedStream( + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + void SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; + ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + inline void SharedCtor(); + inline void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(IndexMeta* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.service.IndexMeta"; + } + private: + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + return nullptr; + } + inline void* MaybeArenaPtr() const { + return nullptr; + } + public: + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_index_5fbuilder_2eproto); + return ::descriptor_table_index_5fbuilder_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kIndexFilePathsFieldNumber = 7, + kReqFieldNumber = 6, + kIndexIDFieldNumber = 2, + kEnqueTimeFieldNumber = 3, + kScheduleTimeFieldNumber = 4, + kBuildCompleteTimeFieldNumber = 5, + kStatusFieldNumber = 1, + }; + // repeated string index_file_paths = 7; + int index_file_paths_size() const; + void clear_index_file_paths(); + const std::string& index_file_paths(int index) const; + std::string* mutable_index_file_paths(int index); + void set_index_file_paths(int index, const std::string& value); + void set_index_file_paths(int index, std::string&& value); + void set_index_file_paths(int index, const char* value); + void set_index_file_paths(int index, const char* value, size_t size); + std::string* add_index_file_paths(); + void add_index_file_paths(const std::string& value); + void add_index_file_paths(std::string&& value); + void add_index_file_paths(const char* value); + void add_index_file_paths(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& index_file_paths() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_index_file_paths(); + + // .milvus.proto.service.BuildIndexRequest req = 6; + bool has_req() const; + void clear_req(); + const ::milvus::proto::service::BuildIndexRequest& req() const; + ::milvus::proto::service::BuildIndexRequest* release_req(); + ::milvus::proto::service::BuildIndexRequest* mutable_req(); + void set_allocated_req(::milvus::proto::service::BuildIndexRequest* req); + + // int64 indexID = 2; + void clear_indexid(); + ::PROTOBUF_NAMESPACE_ID::int64 indexid() const; + void set_indexid(::PROTOBUF_NAMESPACE_ID::int64 value); + + // int64 enque_time = 3; + void clear_enque_time(); + ::PROTOBUF_NAMESPACE_ID::int64 enque_time() const; + void set_enque_time(::PROTOBUF_NAMESPACE_ID::int64 value); + + // int64 schedule_time = 4; + void clear_schedule_time(); + ::PROTOBUF_NAMESPACE_ID::int64 schedule_time() const; + void set_schedule_time(::PROTOBUF_NAMESPACE_ID::int64 value); + + // int64 build_complete_time = 5; + void clear_build_complete_time(); + ::PROTOBUF_NAMESPACE_ID::int64 build_complete_time() const; + void set_build_complete_time(::PROTOBUF_NAMESPACE_ID::int64 value); + + // .milvus.proto.service.IndexStatus status = 1; + void clear_status(); + ::milvus::proto::service::IndexStatus status() const; + void set_status(::milvus::proto::service::IndexStatus value); + + // @@protoc_insertion_point(class_scope:milvus.proto.service.IndexMeta) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField index_file_paths_; + ::milvus::proto::service::BuildIndexRequest* req_; + ::PROTOBUF_NAMESPACE_ID::int64 indexid_; + ::PROTOBUF_NAMESPACE_ID::int64 enque_time_; + ::PROTOBUF_NAMESPACE_ID::int64 schedule_time_; + ::PROTOBUF_NAMESPACE_ID::int64 build_complete_time_; + int status_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_index_5fbuilder_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// BuildIndexRequest + +// repeated string data_paths = 2; +inline int BuildIndexRequest::data_paths_size() const { + return data_paths_.size(); +} +inline void BuildIndexRequest::clear_data_paths() { + data_paths_.Clear(); +} +inline const std::string& BuildIndexRequest::data_paths(int index) const { + // @@protoc_insertion_point(field_get:milvus.proto.service.BuildIndexRequest.data_paths) + return data_paths_.Get(index); +} +inline std::string* BuildIndexRequest::mutable_data_paths(int index) { + // @@protoc_insertion_point(field_mutable:milvus.proto.service.BuildIndexRequest.data_paths) + return data_paths_.Mutable(index); +} +inline void BuildIndexRequest::set_data_paths(int index, const std::string& value) { + // @@protoc_insertion_point(field_set:milvus.proto.service.BuildIndexRequest.data_paths) + data_paths_.Mutable(index)->assign(value); +} +inline void BuildIndexRequest::set_data_paths(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:milvus.proto.service.BuildIndexRequest.data_paths) + data_paths_.Mutable(index)->assign(std::move(value)); +} +inline void BuildIndexRequest::set_data_paths(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + data_paths_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:milvus.proto.service.BuildIndexRequest.data_paths) +} +inline void BuildIndexRequest::set_data_paths(int index, const char* value, size_t size) { + data_paths_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.service.BuildIndexRequest.data_paths) +} +inline std::string* BuildIndexRequest::add_data_paths() { + // @@protoc_insertion_point(field_add_mutable:milvus.proto.service.BuildIndexRequest.data_paths) + return data_paths_.Add(); +} +inline void BuildIndexRequest::add_data_paths(const std::string& value) { + data_paths_.Add()->assign(value); + // @@protoc_insertion_point(field_add:milvus.proto.service.BuildIndexRequest.data_paths) +} +inline void BuildIndexRequest::add_data_paths(std::string&& value) { + data_paths_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:milvus.proto.service.BuildIndexRequest.data_paths) +} +inline void BuildIndexRequest::add_data_paths(const char* value) { + GOOGLE_DCHECK(value != nullptr); + data_paths_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:milvus.proto.service.BuildIndexRequest.data_paths) +} +inline void BuildIndexRequest::add_data_paths(const char* value, size_t size) { + data_paths_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:milvus.proto.service.BuildIndexRequest.data_paths) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +BuildIndexRequest::data_paths() const { + // @@protoc_insertion_point(field_list:milvus.proto.service.BuildIndexRequest.data_paths) + return data_paths_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +BuildIndexRequest::mutable_data_paths() { + // @@protoc_insertion_point(field_mutable_list:milvus.proto.service.BuildIndexRequest.data_paths) + return &data_paths_; +} + +// repeated .milvus.proto.common.KeyValuePair type_params = 3; +inline int BuildIndexRequest::type_params_size() const { + return type_params_.size(); +} +inline ::milvus::proto::common::KeyValuePair* BuildIndexRequest::mutable_type_params(int index) { + // @@protoc_insertion_point(field_mutable:milvus.proto.service.BuildIndexRequest.type_params) + return type_params_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >* +BuildIndexRequest::mutable_type_params() { + // @@protoc_insertion_point(field_mutable_list:milvus.proto.service.BuildIndexRequest.type_params) + return &type_params_; +} +inline const ::milvus::proto::common::KeyValuePair& BuildIndexRequest::type_params(int index) const { + // @@protoc_insertion_point(field_get:milvus.proto.service.BuildIndexRequest.type_params) + return type_params_.Get(index); +} +inline ::milvus::proto::common::KeyValuePair* BuildIndexRequest::add_type_params() { + // @@protoc_insertion_point(field_add:milvus.proto.service.BuildIndexRequest.type_params) + return type_params_.Add(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >& +BuildIndexRequest::type_params() const { + // @@protoc_insertion_point(field_list:milvus.proto.service.BuildIndexRequest.type_params) + return type_params_; +} + +// repeated .milvus.proto.common.KeyValuePair index_params = 4; +inline int BuildIndexRequest::index_params_size() const { + return index_params_.size(); +} +inline ::milvus::proto::common::KeyValuePair* BuildIndexRequest::mutable_index_params(int index) { + // @@protoc_insertion_point(field_mutable:milvus.proto.service.BuildIndexRequest.index_params) + return index_params_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >* +BuildIndexRequest::mutable_index_params() { + // @@protoc_insertion_point(field_mutable_list:milvus.proto.service.BuildIndexRequest.index_params) + return &index_params_; +} +inline const ::milvus::proto::common::KeyValuePair& BuildIndexRequest::index_params(int index) const { + // @@protoc_insertion_point(field_get:milvus.proto.service.BuildIndexRequest.index_params) + return index_params_.Get(index); +} +inline ::milvus::proto::common::KeyValuePair* BuildIndexRequest::add_index_params() { + // @@protoc_insertion_point(field_add:milvus.proto.service.BuildIndexRequest.index_params) + return index_params_.Add(); +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >& +BuildIndexRequest::index_params() const { + // @@protoc_insertion_point(field_list:milvus.proto.service.BuildIndexRequest.index_params) + return index_params_; +} + +// ------------------------------------------------------------------- + +// BuildIndexResponse + +// .milvus.proto.common.Status status = 1; +inline bool BuildIndexResponse::has_status() const { + return this != internal_default_instance() && status_ != nullptr; +} +inline const ::milvus::proto::common::Status& BuildIndexResponse::status() const { + const ::milvus::proto::common::Status* p = status_; + // @@protoc_insertion_point(field_get:milvus.proto.service.BuildIndexResponse.status) + return p != nullptr ? *p : *reinterpret_cast( + &::milvus::proto::common::_Status_default_instance_); +} +inline ::milvus::proto::common::Status* BuildIndexResponse::release_status() { + // @@protoc_insertion_point(field_release:milvus.proto.service.BuildIndexResponse.status) + + ::milvus::proto::common::Status* temp = status_; + status_ = nullptr; + return temp; +} +inline ::milvus::proto::common::Status* BuildIndexResponse::mutable_status() { + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::common::Status>(GetArenaNoVirtual()); + status_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.service.BuildIndexResponse.status) + return status_; +} +inline void BuildIndexResponse::set_allocated_status(::milvus::proto::common::Status* status) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + } + if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); + } + + } else { + + } + status_ = status; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.service.BuildIndexResponse.status) +} + +// int64 indexID = 2; +inline void BuildIndexResponse::clear_indexid() { + indexid_ = PROTOBUF_LONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 BuildIndexResponse::indexid() const { + // @@protoc_insertion_point(field_get:milvus.proto.service.BuildIndexResponse.indexID) + return indexid_; +} +inline void BuildIndexResponse::set_indexid(::PROTOBUF_NAMESPACE_ID::int64 value) { + + indexid_ = value; + // @@protoc_insertion_point(field_set:milvus.proto.service.BuildIndexResponse.indexID) +} + +// ------------------------------------------------------------------- + +// GetIndexFilePathsRequest + +// int64 indexID = 1; +inline void GetIndexFilePathsRequest::clear_indexid() { + indexid_ = PROTOBUF_LONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 GetIndexFilePathsRequest::indexid() const { + // @@protoc_insertion_point(field_get:milvus.proto.service.GetIndexFilePathsRequest.indexID) + return indexid_; +} +inline void GetIndexFilePathsRequest::set_indexid(::PROTOBUF_NAMESPACE_ID::int64 value) { + + indexid_ = value; + // @@protoc_insertion_point(field_set:milvus.proto.service.GetIndexFilePathsRequest.indexID) +} + +// ------------------------------------------------------------------- + +// GetIndexFilePathsResponse + +// .milvus.proto.common.Status status = 1; +inline bool GetIndexFilePathsResponse::has_status() const { + return this != internal_default_instance() && status_ != nullptr; +} +inline const ::milvus::proto::common::Status& GetIndexFilePathsResponse::status() const { + const ::milvus::proto::common::Status* p = status_; + // @@protoc_insertion_point(field_get:milvus.proto.service.GetIndexFilePathsResponse.status) + return p != nullptr ? *p : *reinterpret_cast( + &::milvus::proto::common::_Status_default_instance_); +} +inline ::milvus::proto::common::Status* GetIndexFilePathsResponse::release_status() { + // @@protoc_insertion_point(field_release:milvus.proto.service.GetIndexFilePathsResponse.status) + + ::milvus::proto::common::Status* temp = status_; + status_ = nullptr; + return temp; +} +inline ::milvus::proto::common::Status* GetIndexFilePathsResponse::mutable_status() { + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::common::Status>(GetArenaNoVirtual()); + status_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.service.GetIndexFilePathsResponse.status) + return status_; +} +inline void GetIndexFilePathsResponse::set_allocated_status(::milvus::proto::common::Status* status) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + } + if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); + } + + } else { + + } + status_ = status; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.service.GetIndexFilePathsResponse.status) +} + +// int64 indexID = 2; +inline void GetIndexFilePathsResponse::clear_indexid() { + indexid_ = PROTOBUF_LONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 GetIndexFilePathsResponse::indexid() const { + // @@protoc_insertion_point(field_get:milvus.proto.service.GetIndexFilePathsResponse.indexID) + return indexid_; +} +inline void GetIndexFilePathsResponse::set_indexid(::PROTOBUF_NAMESPACE_ID::int64 value) { + + indexid_ = value; + // @@protoc_insertion_point(field_set:milvus.proto.service.GetIndexFilePathsResponse.indexID) +} + +// repeated string index_file_paths = 3; +inline int GetIndexFilePathsResponse::index_file_paths_size() const { + return index_file_paths_.size(); +} +inline void GetIndexFilePathsResponse::clear_index_file_paths() { + index_file_paths_.Clear(); +} +inline const std::string& GetIndexFilePathsResponse::index_file_paths(int index) const { + // @@protoc_insertion_point(field_get:milvus.proto.service.GetIndexFilePathsResponse.index_file_paths) + return index_file_paths_.Get(index); +} +inline std::string* GetIndexFilePathsResponse::mutable_index_file_paths(int index) { + // @@protoc_insertion_point(field_mutable:milvus.proto.service.GetIndexFilePathsResponse.index_file_paths) + return index_file_paths_.Mutable(index); +} +inline void GetIndexFilePathsResponse::set_index_file_paths(int index, const std::string& value) { + // @@protoc_insertion_point(field_set:milvus.proto.service.GetIndexFilePathsResponse.index_file_paths) + index_file_paths_.Mutable(index)->assign(value); +} +inline void GetIndexFilePathsResponse::set_index_file_paths(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:milvus.proto.service.GetIndexFilePathsResponse.index_file_paths) + index_file_paths_.Mutable(index)->assign(std::move(value)); +} +inline void GetIndexFilePathsResponse::set_index_file_paths(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + index_file_paths_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:milvus.proto.service.GetIndexFilePathsResponse.index_file_paths) +} +inline void GetIndexFilePathsResponse::set_index_file_paths(int index, const char* value, size_t size) { + index_file_paths_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.service.GetIndexFilePathsResponse.index_file_paths) +} +inline std::string* GetIndexFilePathsResponse::add_index_file_paths() { + // @@protoc_insertion_point(field_add_mutable:milvus.proto.service.GetIndexFilePathsResponse.index_file_paths) + return index_file_paths_.Add(); +} +inline void GetIndexFilePathsResponse::add_index_file_paths(const std::string& value) { + index_file_paths_.Add()->assign(value); + // @@protoc_insertion_point(field_add:milvus.proto.service.GetIndexFilePathsResponse.index_file_paths) +} +inline void GetIndexFilePathsResponse::add_index_file_paths(std::string&& value) { + index_file_paths_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:milvus.proto.service.GetIndexFilePathsResponse.index_file_paths) +} +inline void GetIndexFilePathsResponse::add_index_file_paths(const char* value) { + GOOGLE_DCHECK(value != nullptr); + index_file_paths_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:milvus.proto.service.GetIndexFilePathsResponse.index_file_paths) +} +inline void GetIndexFilePathsResponse::add_index_file_paths(const char* value, size_t size) { + index_file_paths_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:milvus.proto.service.GetIndexFilePathsResponse.index_file_paths) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +GetIndexFilePathsResponse::index_file_paths() const { + // @@protoc_insertion_point(field_list:milvus.proto.service.GetIndexFilePathsResponse.index_file_paths) + return index_file_paths_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +GetIndexFilePathsResponse::mutable_index_file_paths() { + // @@protoc_insertion_point(field_mutable_list:milvus.proto.service.GetIndexFilePathsResponse.index_file_paths) + return &index_file_paths_; +} + +// ------------------------------------------------------------------- + +// DescribleIndexRequest + +// int64 indexID = 1; +inline void DescribleIndexRequest::clear_indexid() { + indexid_ = PROTOBUF_LONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 DescribleIndexRequest::indexid() const { + // @@protoc_insertion_point(field_get:milvus.proto.service.DescribleIndexRequest.indexID) + return indexid_; +} +inline void DescribleIndexRequest::set_indexid(::PROTOBUF_NAMESPACE_ID::int64 value) { + + indexid_ = value; + // @@protoc_insertion_point(field_set:milvus.proto.service.DescribleIndexRequest.indexID) +} + +// ------------------------------------------------------------------- + +// DescribleIndexResponse + +// .milvus.proto.common.Status status = 1; +inline bool DescribleIndexResponse::has_status() const { + return this != internal_default_instance() && status_ != nullptr; +} +inline const ::milvus::proto::common::Status& DescribleIndexResponse::status() const { + const ::milvus::proto::common::Status* p = status_; + // @@protoc_insertion_point(field_get:milvus.proto.service.DescribleIndexResponse.status) + return p != nullptr ? *p : *reinterpret_cast( + &::milvus::proto::common::_Status_default_instance_); +} +inline ::milvus::proto::common::Status* DescribleIndexResponse::release_status() { + // @@protoc_insertion_point(field_release:milvus.proto.service.DescribleIndexResponse.status) + + ::milvus::proto::common::Status* temp = status_; + status_ = nullptr; + return temp; +} +inline ::milvus::proto::common::Status* DescribleIndexResponse::mutable_status() { + + if (status_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::common::Status>(GetArenaNoVirtual()); + status_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.service.DescribleIndexResponse.status) + return status_; +} +inline void DescribleIndexResponse::set_allocated_status(::milvus::proto::common::Status* status) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + } + if (status) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, status, submessage_arena); + } + + } else { + + } + status_ = status; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.service.DescribleIndexResponse.status) +} + +// .milvus.proto.service.IndexStatus index_status = 2; +inline void DescribleIndexResponse::clear_index_status() { + index_status_ = 0; +} +inline ::milvus::proto::service::IndexStatus DescribleIndexResponse::index_status() const { + // @@protoc_insertion_point(field_get:milvus.proto.service.DescribleIndexResponse.index_status) + return static_cast< ::milvus::proto::service::IndexStatus >(index_status_); +} +inline void DescribleIndexResponse::set_index_status(::milvus::proto::service::IndexStatus value) { + + index_status_ = value; + // @@protoc_insertion_point(field_set:milvus.proto.service.DescribleIndexResponse.index_status) +} + +// int64 indexID = 3; +inline void DescribleIndexResponse::clear_indexid() { + indexid_ = PROTOBUF_LONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 DescribleIndexResponse::indexid() const { + // @@protoc_insertion_point(field_get:milvus.proto.service.DescribleIndexResponse.indexID) + return indexid_; +} +inline void DescribleIndexResponse::set_indexid(::PROTOBUF_NAMESPACE_ID::int64 value) { + + indexid_ = value; + // @@protoc_insertion_point(field_set:milvus.proto.service.DescribleIndexResponse.indexID) +} + +// int64 enque_time = 4; +inline void DescribleIndexResponse::clear_enque_time() { + enque_time_ = PROTOBUF_LONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 DescribleIndexResponse::enque_time() const { + // @@protoc_insertion_point(field_get:milvus.proto.service.DescribleIndexResponse.enque_time) + return enque_time_; +} +inline void DescribleIndexResponse::set_enque_time(::PROTOBUF_NAMESPACE_ID::int64 value) { + + enque_time_ = value; + // @@protoc_insertion_point(field_set:milvus.proto.service.DescribleIndexResponse.enque_time) +} + +// int64 schedule_time = 5; +inline void DescribleIndexResponse::clear_schedule_time() { + schedule_time_ = PROTOBUF_LONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 DescribleIndexResponse::schedule_time() const { + // @@protoc_insertion_point(field_get:milvus.proto.service.DescribleIndexResponse.schedule_time) + return schedule_time_; +} +inline void DescribleIndexResponse::set_schedule_time(::PROTOBUF_NAMESPACE_ID::int64 value) { + + schedule_time_ = value; + // @@protoc_insertion_point(field_set:milvus.proto.service.DescribleIndexResponse.schedule_time) +} + +// int64 build_complete_time = 6; +inline void DescribleIndexResponse::clear_build_complete_time() { + build_complete_time_ = PROTOBUF_LONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 DescribleIndexResponse::build_complete_time() const { + // @@protoc_insertion_point(field_get:milvus.proto.service.DescribleIndexResponse.build_complete_time) + return build_complete_time_; +} +inline void DescribleIndexResponse::set_build_complete_time(::PROTOBUF_NAMESPACE_ID::int64 value) { + + build_complete_time_ = value; + // @@protoc_insertion_point(field_set:milvus.proto.service.DescribleIndexResponse.build_complete_time) +} + +// ------------------------------------------------------------------- + +// IndexMeta + +// .milvus.proto.service.IndexStatus status = 1; +inline void IndexMeta::clear_status() { + status_ = 0; +} +inline ::milvus::proto::service::IndexStatus IndexMeta::status() const { + // @@protoc_insertion_point(field_get:milvus.proto.service.IndexMeta.status) + return static_cast< ::milvus::proto::service::IndexStatus >(status_); +} +inline void IndexMeta::set_status(::milvus::proto::service::IndexStatus value) { + + status_ = value; + // @@protoc_insertion_point(field_set:milvus.proto.service.IndexMeta.status) +} + +// int64 indexID = 2; +inline void IndexMeta::clear_indexid() { + indexid_ = PROTOBUF_LONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 IndexMeta::indexid() const { + // @@protoc_insertion_point(field_get:milvus.proto.service.IndexMeta.indexID) + return indexid_; +} +inline void IndexMeta::set_indexid(::PROTOBUF_NAMESPACE_ID::int64 value) { + + indexid_ = value; + // @@protoc_insertion_point(field_set:milvus.proto.service.IndexMeta.indexID) +} + +// int64 enque_time = 3; +inline void IndexMeta::clear_enque_time() { + enque_time_ = PROTOBUF_LONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 IndexMeta::enque_time() const { + // @@protoc_insertion_point(field_get:milvus.proto.service.IndexMeta.enque_time) + return enque_time_; +} +inline void IndexMeta::set_enque_time(::PROTOBUF_NAMESPACE_ID::int64 value) { + + enque_time_ = value; + // @@protoc_insertion_point(field_set:milvus.proto.service.IndexMeta.enque_time) +} + +// int64 schedule_time = 4; +inline void IndexMeta::clear_schedule_time() { + schedule_time_ = PROTOBUF_LONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 IndexMeta::schedule_time() const { + // @@protoc_insertion_point(field_get:milvus.proto.service.IndexMeta.schedule_time) + return schedule_time_; +} +inline void IndexMeta::set_schedule_time(::PROTOBUF_NAMESPACE_ID::int64 value) { + + schedule_time_ = value; + // @@protoc_insertion_point(field_set:milvus.proto.service.IndexMeta.schedule_time) +} + +// int64 build_complete_time = 5; +inline void IndexMeta::clear_build_complete_time() { + build_complete_time_ = PROTOBUF_LONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 IndexMeta::build_complete_time() const { + // @@protoc_insertion_point(field_get:milvus.proto.service.IndexMeta.build_complete_time) + return build_complete_time_; +} +inline void IndexMeta::set_build_complete_time(::PROTOBUF_NAMESPACE_ID::int64 value) { + + build_complete_time_ = value; + // @@protoc_insertion_point(field_set:milvus.proto.service.IndexMeta.build_complete_time) +} + +// .milvus.proto.service.BuildIndexRequest req = 6; +inline bool IndexMeta::has_req() const { + return this != internal_default_instance() && req_ != nullptr; +} +inline void IndexMeta::clear_req() { + if (GetArenaNoVirtual() == nullptr && req_ != nullptr) { + delete req_; + } + req_ = nullptr; +} +inline const ::milvus::proto::service::BuildIndexRequest& IndexMeta::req() const { + const ::milvus::proto::service::BuildIndexRequest* p = req_; + // @@protoc_insertion_point(field_get:milvus.proto.service.IndexMeta.req) + return p != nullptr ? *p : *reinterpret_cast( + &::milvus::proto::service::_BuildIndexRequest_default_instance_); +} +inline ::milvus::proto::service::BuildIndexRequest* IndexMeta::release_req() { + // @@protoc_insertion_point(field_release:milvus.proto.service.IndexMeta.req) + + ::milvus::proto::service::BuildIndexRequest* temp = req_; + req_ = nullptr; + return temp; +} +inline ::milvus::proto::service::BuildIndexRequest* IndexMeta::mutable_req() { + + if (req_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::service::BuildIndexRequest>(GetArenaNoVirtual()); + req_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.service.IndexMeta.req) + return req_; +} +inline void IndexMeta::set_allocated_req(::milvus::proto::service::BuildIndexRequest* req) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete req_; + } + if (req) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + req = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, req, submessage_arena); + } + + } else { + + } + req_ = req; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.service.IndexMeta.req) +} + +// repeated string index_file_paths = 7; +inline int IndexMeta::index_file_paths_size() const { + return index_file_paths_.size(); +} +inline void IndexMeta::clear_index_file_paths() { + index_file_paths_.Clear(); +} +inline const std::string& IndexMeta::index_file_paths(int index) const { + // @@protoc_insertion_point(field_get:milvus.proto.service.IndexMeta.index_file_paths) + return index_file_paths_.Get(index); +} +inline std::string* IndexMeta::mutable_index_file_paths(int index) { + // @@protoc_insertion_point(field_mutable:milvus.proto.service.IndexMeta.index_file_paths) + return index_file_paths_.Mutable(index); +} +inline void IndexMeta::set_index_file_paths(int index, const std::string& value) { + // @@protoc_insertion_point(field_set:milvus.proto.service.IndexMeta.index_file_paths) + index_file_paths_.Mutable(index)->assign(value); +} +inline void IndexMeta::set_index_file_paths(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:milvus.proto.service.IndexMeta.index_file_paths) + index_file_paths_.Mutable(index)->assign(std::move(value)); +} +inline void IndexMeta::set_index_file_paths(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + index_file_paths_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:milvus.proto.service.IndexMeta.index_file_paths) +} +inline void IndexMeta::set_index_file_paths(int index, const char* value, size_t size) { + index_file_paths_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.service.IndexMeta.index_file_paths) +} +inline std::string* IndexMeta::add_index_file_paths() { + // @@protoc_insertion_point(field_add_mutable:milvus.proto.service.IndexMeta.index_file_paths) + return index_file_paths_.Add(); +} +inline void IndexMeta::add_index_file_paths(const std::string& value) { + index_file_paths_.Add()->assign(value); + // @@protoc_insertion_point(field_add:milvus.proto.service.IndexMeta.index_file_paths) +} +inline void IndexMeta::add_index_file_paths(std::string&& value) { + index_file_paths_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:milvus.proto.service.IndexMeta.index_file_paths) +} +inline void IndexMeta::add_index_file_paths(const char* value) { + GOOGLE_DCHECK(value != nullptr); + index_file_paths_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:milvus.proto.service.IndexMeta.index_file_paths) +} +inline void IndexMeta::add_index_file_paths(const char* value, size_t size) { + index_file_paths_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:milvus.proto.service.IndexMeta.index_file_paths) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +IndexMeta::index_file_paths() const { + // @@protoc_insertion_point(field_list:milvus.proto.service.IndexMeta.index_file_paths) + return index_file_paths_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +IndexMeta::mutable_index_file_paths() { + // @@protoc_insertion_point(field_mutable_list:milvus.proto.service.IndexMeta.index_file_paths) + return &index_file_paths_; +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace service +} // namespace proto +} // namespace milvus + +PROTOBUF_NAMESPACE_OPEN + +template <> struct is_proto_enum< ::milvus::proto::service::IndexStatus> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::milvus::proto::service::IndexStatus>() { + return ::milvus::proto::service::IndexStatus_descriptor(); +} + +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_index_5fbuilder_2eproto diff --git a/internal/master/meta_table.go b/internal/master/meta_table.go index ab6ad71492..ba8df0be6b 100644 --- a/internal/master/meta_table.go +++ b/internal/master/meta_table.go @@ -1,9 +1,14 @@ package master import ( + "fmt" "strconv" "sync" + "github.com/zilliztech/milvus-distributed/internal/proto/commonpb" + + "github.com/zilliztech/milvus-distributed/internal/util/typeutil" + "github.com/golang/protobuf/proto" "github.com/zilliztech/milvus-distributed/internal/errors" "github.com/zilliztech/milvus-distributed/internal/kv" @@ -11,16 +16,18 @@ import ( ) type metaTable struct { - client kv.TxnBase // client of a reliable kv service, i.e. etcd client - tenantID2Meta map[UniqueID]pb.TenantMeta // tenant id to tenant meta - proxyID2Meta map[UniqueID]pb.ProxyMeta // proxy id to proxy meta - collID2Meta map[UniqueID]pb.CollectionMeta // collection id to collection meta - collName2ID map[string]UniqueID // collection name to collection id - segID2Meta map[UniqueID]pb.SegmentMeta // segment id to segment meta + client kv.TxnBase // client of a reliable kv service, i.e. etcd client + tenantID2Meta map[UniqueID]pb.TenantMeta // tenant id to tenant meta + proxyID2Meta map[UniqueID]pb.ProxyMeta // proxy id to proxy meta + collID2Meta map[UniqueID]pb.CollectionMeta // collection id to collection meta + collName2ID map[string]UniqueID // collection name to collection id + segID2Meta map[UniqueID]pb.SegmentMeta // segment id to segment meta + segID2IndexMetas map[UniqueID][]pb.FieldIndexMeta // segment id to array of field index meta tenantLock sync.RWMutex proxyLock sync.RWMutex ddLock sync.RWMutex + indexLock sync.RWMutex } func NewMetaTable(kv kv.TxnBase) (*metaTable, error) { @@ -44,6 +51,7 @@ func (mt *metaTable) reloadFromKV() error { mt.collID2Meta = make(map[UniqueID]pb.CollectionMeta) mt.collName2ID = make(map[string]UniqueID) mt.segID2Meta = make(map[UniqueID]pb.SegmentMeta) + mt.segID2IndexMetas = make(map[UniqueID][]pb.FieldIndexMeta) _, values, err := mt.client.LoadWithPrefix("tenant") if err != nil { @@ -102,6 +110,19 @@ func (mt *metaTable) reloadFromKV() error { mt.segID2Meta[segmentMeta.SegmentID] = segmentMeta } + _, values, err = mt.client.LoadWithPrefix("indexmeta") + if err != nil { + return err + } + + for _, v := range values { + indexMeta := pb.FieldIndexMeta{} + err = proto.UnmarshalText(v, &indexMeta) + if err != nil { + return err + } + mt.segID2IndexMetas[indexMeta.SegmentID] = append(mt.segID2IndexMetas[indexMeta.SegmentID], indexMeta) + } return nil } @@ -235,6 +256,13 @@ func (mt *metaTable) DeleteCollection(collID UniqueID) error { _ = mt.reloadFromKV() return err } + + // remove index meta + for _, v := range collMeta.SegmentIDs { + if err := mt.removeSegmentIndexMeta(v); err != nil { + return err + } + } return nil } @@ -446,8 +474,8 @@ func (mt *metaTable) DeleteSegment(segID UniqueID) error { _ = mt.reloadFromKV() return err } - return nil + return mt.removeSegmentIndexMeta(segID) } func (mt *metaTable) CloseSegment(segID UniqueID, closeTs Timestamp) error { mt.ddLock.Lock() @@ -467,3 +495,127 @@ func (mt *metaTable) CloseSegment(segID UniqueID, closeTs Timestamp) error { } return nil } + +func (mt *metaTable) AddFieldIndexMeta(meta *pb.FieldIndexMeta) error { + mt.indexLock.Lock() + defer mt.indexLock.Unlock() + + segID := meta.SegmentID + if _, ok := mt.segID2IndexMetas[segID]; !ok { + mt.segID2IndexMetas[segID] = make([]pb.FieldIndexMeta, 0) + } + for _, v := range mt.segID2IndexMetas[segID] { + if v.FieldID == meta.FieldID && v.IndexType == meta.IndexType && typeutil.CompareIndexParams(v.IndexParams, meta.IndexParams) { + return fmt.Errorf("segment %d field id %d's index meta already exist", segID, meta.FieldID) + } + } + mt.segID2IndexMetas[segID] = append(mt.segID2IndexMetas[segID], *meta) + err := mt.saveFieldIndexMetaToEtcd(meta) + if err != nil { + _ = mt.reloadFromKV() + return err + } + return nil +} + +func (mt *metaTable) saveFieldIndexMetaToEtcd(meta *pb.FieldIndexMeta) error { + key := "/indexmeta/" + strconv.FormatInt(meta.SegmentID, 10) + strconv.FormatInt(meta.FieldID, 10) + strconv.FormatInt(meta.IndexID, 10) + marshaledMeta := proto.MarshalTextString(meta) + return mt.client.Save(key, marshaledMeta) +} + +func (mt *metaTable) DeleteFieldIndexMeta(segID UniqueID, fieldID UniqueID, indexType string, indexParams []*commonpb.KeyValuePair) error { + mt.indexLock.Lock() + defer mt.indexLock.Unlock() + + if _, ok := mt.segID2IndexMetas[segID]; !ok { + return fmt.Errorf("can not find index meta of segment %d", segID) + } + + for i, v := range mt.segID2IndexMetas[segID] { + if v.FieldID == fieldID && v.IndexType == indexType && typeutil.CompareIndexParams(v.IndexParams, indexParams) { + mt.segID2IndexMetas[segID] = append(mt.segID2IndexMetas[segID][:i], mt.segID2IndexMetas[segID][i+1:]...) + err := mt.deleteFieldIndexMetaToEtcd(segID, fieldID, v.IndexID) + if err != nil { + _ = mt.reloadFromKV() + return err + } + return nil + } + } + + return fmt.Errorf("can not find index meta of field %d", fieldID) +} + +func (mt *metaTable) deleteFieldIndexMetaToEtcd(segID UniqueID, fieldID UniqueID, indexID UniqueID) error { + key := "/indexmeta/" + strconv.FormatInt(segID, 10) + strconv.FormatInt(fieldID, 10) + strconv.FormatInt(indexID, 10) + return mt.client.Remove(key) +} + +func (mt *metaTable) HasFieldIndexMeta(segID UniqueID, fieldID UniqueID, indexType string, indexParams []*commonpb.KeyValuePair) (bool, error) { + mt.indexLock.RLock() + defer mt.indexLock.RUnlock() + + if _, ok := mt.segID2IndexMetas[segID]; !ok { + return false, nil + } + + for _, v := range mt.segID2IndexMetas[segID] { + if v.FieldID == fieldID && v.IndexType == indexType && typeutil.CompareIndexParams(v.IndexParams, indexParams) { + return true, nil + } + } + return false, nil +} + +func (mt *metaTable) UpdateFieldIndexMeta(meta *pb.FieldIndexMeta) error { + mt.indexLock.Lock() + defer mt.indexLock.Unlock() + + segID := meta.SegmentID + if _, ok := mt.segID2IndexMetas[segID]; !ok { + mt.segID2IndexMetas[segID] = make([]pb.FieldIndexMeta, 0) + } + for i, v := range mt.segID2IndexMetas[segID] { + if v.FieldID == meta.FieldID && v.IndexType == meta.IndexType && typeutil.CompareIndexParams(v.IndexParams, meta.IndexParams) { + mt.segID2IndexMetas[segID][i] = *meta + err := mt.deleteFieldIndexMetaToEtcd(segID, v.FieldID, v.IndexID) + if err != nil { + _ = mt.reloadFromKV() + return err + } + err = mt.saveFieldIndexMetaToEtcd(meta) + if err != nil { + _ = mt.reloadFromKV() + return err + } + return nil + } + } + + mt.segID2IndexMetas[segID] = append(mt.segID2IndexMetas[segID], *meta) + err := mt.saveFieldIndexMetaToEtcd(meta) + if err != nil { + _ = mt.reloadFromKV() + return err + } + return nil +} + +func (mt *metaTable) removeSegmentIndexMeta(segID UniqueID) error { + mt.indexLock.Lock() + defer mt.indexLock.Unlock() + + delete(mt.segID2IndexMetas, segID) + keys, _, err := mt.client.LoadWithPrefix("indexmeta/" + strconv.FormatInt(segID, 10)) + if err != nil { + _ = mt.reloadFromKV() + return err + } + if err = mt.client.MultiRemove(keys); err != nil { + _ = mt.reloadFromKV() + return err + } + + return nil +} diff --git a/internal/master/meta_table_test.go b/internal/master/meta_table_test.go index c923a895a3..11c183794d 100644 --- a/internal/master/meta_table_test.go +++ b/internal/master/meta_table_test.go @@ -6,6 +6,11 @@ import ( "strconv" "testing" + "github.com/golang/protobuf/proto" + + "github.com/zilliztech/milvus-distributed/internal/proto/commonpb" + "github.com/zilliztech/milvus-distributed/internal/proto/indexbuilderpb" + "github.com/stretchr/testify/assert" etcdkv "github.com/zilliztech/milvus-distributed/internal/kv/etcd" pb "github.com/zilliztech/milvus-distributed/internal/proto/etcdpb" @@ -411,3 +416,94 @@ func TestMetaTable_AddPartition_Limit(t *testing.T) { err = meta.AddPartition(100, "partition_limit") assert.NotNil(t, err) } + +func TestMetaTable_LoadIndexMetaFromKv(t *testing.T) { + Init() + etcdAddr := Params.EtcdAddress + + cli, err := clientv3.New(clientv3.Config{Endpoints: []string{etcdAddr}}) + assert.Nil(t, err) + kv := etcdkv.NewEtcdKV(cli, "/etcd/test/root") + + _, err = cli.Delete(context.TODO(), "/etcd/test/root", clientv3.WithPrefix()) + assert.Nil(t, err) + + meta := pb.FieldIndexMeta{ + SegmentID: 1, + FieldID: 100, + IndexType: "type1", + IndexID: 1000, + IndexParams: []*commonpb.KeyValuePair{{Key: "k1", Value: "v1"}}, + Status: indexbuilderpb.IndexStatus_FINISHED, + IndexFilePaths: []string{"path1"}, + } + marshalRes := proto.MarshalTextString(&meta) + err = kv.Save("/indexmeta/"+strconv.FormatInt(meta.SegmentID, 10)+strconv.FormatInt(meta.FieldID, 10)+strconv.FormatInt(meta.IndexID, 10), marshalRes) + assert.Nil(t, err) + + metaTable, err := NewMetaTable(kv) + assert.Nil(t, err) + res, err := metaTable.HasFieldIndexMeta(1, 100, "type1", []*commonpb.KeyValuePair{{Key: "k1", Value: "v1"}}) + assert.Nil(t, err) + assert.True(t, res) +} + +func TestMetaTable_IndexMeta(t *testing.T) { + Init() + etcdAddr := Params.EtcdAddress + + cli, err := clientv3.New(clientv3.Config{Endpoints: []string{etcdAddr}}) + assert.Nil(t, err) + etcdKV := etcdkv.NewEtcdKV(cli, "/etcd/test/root") + + _, err = cli.Delete(context.TODO(), "/etcd/test/root", clientv3.WithPrefix()) + assert.Nil(t, err) + + meta, err := NewMetaTable(etcdKV) + assert.Nil(t, err) + + err = meta.AddFieldIndexMeta(&pb.FieldIndexMeta{ + SegmentID: 1, + FieldID: 100, + IndexType: "type1", + IndexID: 1000, + IndexParams: []*commonpb.KeyValuePair{{Key: "k1", Value: "v1"}}, + Status: indexbuilderpb.IndexStatus_INPROGRESS, + IndexFilePaths: []string{}, + }) + assert.Nil(t, err) + err = meta.AddFieldIndexMeta(&pb.FieldIndexMeta{ + SegmentID: 1, + FieldID: 100, + IndexType: "type1", + IndexID: 1000, + IndexParams: []*commonpb.KeyValuePair{{Key: "k1", Value: "v1"}}, + Status: indexbuilderpb.IndexStatus_INPROGRESS, + IndexFilePaths: []string{}, + }) + assert.NotNil(t, err) + + res, err := meta.HasFieldIndexMeta(1, 100, "type1", []*commonpb.KeyValuePair{{Key: "k1", Value: "v1"}}) + assert.Nil(t, err) + assert.True(t, res) + res, err = meta.HasFieldIndexMeta(1, 100, "type2", []*commonpb.KeyValuePair{{Key: "k1", Value: "v1"}}) + assert.Nil(t, err) + assert.False(t, res) + + err = meta.UpdateFieldIndexMeta(&pb.FieldIndexMeta{ + SegmentID: 1, + FieldID: 100, + IndexType: "type1", + IndexID: 1000, + IndexParams: []*commonpb.KeyValuePair{{Key: "k1", Value: "v1"}}, + Status: indexbuilderpb.IndexStatus_FINISHED, + IndexFilePaths: []string{}, + }) + assert.Nil(t, err) + assert.EqualValues(t, indexbuilderpb.IndexStatus_FINISHED, meta.segID2IndexMetas[1][0].Status) + err = meta.DeleteFieldIndexMeta(1, 100, "type1", []*commonpb.KeyValuePair{{Key: "k1", Value: "v1"}}) + assert.Nil(t, err) + res, err = meta.HasFieldIndexMeta(1, 100, "type1", []*commonpb.KeyValuePair{{Key: "k1", Value: "v1"}}) + assert.Nil(t, err) + assert.False(t, res) +} diff --git a/internal/master/runtime_stats.go b/internal/master/runtime_stats.go index c13f258123..b0cfaa65b5 100644 --- a/internal/master/runtime_stats.go +++ b/internal/master/runtime_stats.go @@ -2,6 +2,7 @@ package master import ( "github.com/zilliztech/milvus-distributed/internal/proto/commonpb" + "github.com/zilliztech/milvus-distributed/internal/util/typeutil" ) type RuntimeStats struct { @@ -20,7 +21,7 @@ func (rs *RuntimeStats) UpdateFieldStat(collID UniqueID, fieldID UniqueID, stats collRuntimeStats := rs.collStats[collID] fieldStats := collRuntimeStats.fieldStats[fieldID] for i, v := range fieldStats { - if v.peerID == peerID { // todo compare index params + if v.peerID == peerID && typeutil.CompareIndexParams(v.indexParams, stats.indexParams) { fieldStats[i] = stats return nil } diff --git a/internal/proto/etcd_meta.proto b/internal/proto/etcd_meta.proto index 1627b9d246..686dab6ef6 100644 --- a/internal/proto/etcd_meta.proto +++ b/internal/proto/etcd_meta.proto @@ -2,6 +2,7 @@ syntax = "proto3"; package milvus.proto.etcd; option go_package="github.com/zilliztech/milvus-distributed/internal/proto/etcdpb"; +import "index_builder.proto"; import "common.proto"; import "schema.proto"; @@ -28,6 +29,10 @@ message CollectionMeta { repeated string partition_tags=5; } +message FieldBinlogFiles { + int64 fieldID = 1; + repeated string binlog_files = 2; +} message SegmentMeta { int64 segmentID=1; @@ -39,4 +44,15 @@ message SegmentMeta { uint64 close_time=7; int64 num_rows=8; int64 mem_size=9; + repeated FieldBinlogFiles binlog_file_paths = 10; } + +message FieldIndexMeta { + int64 segmentID = 1; + int64 fieldID = 2; + string index_type = 3; + int64 indexID = 4; + repeated common.KeyValuePair index_params = 5; + service.IndexStatus status = 6; + repeated string index_file_paths = 7; +} \ No newline at end of file diff --git a/internal/proto/etcdpb/etcd_meta.pb.go b/internal/proto/etcdpb/etcd_meta.pb.go index cb0269923e..72df3f7a50 100644 --- a/internal/proto/etcdpb/etcd_meta.pb.go +++ b/internal/proto/etcdpb/etcd_meta.pb.go @@ -7,6 +7,7 @@ import ( fmt "fmt" proto "github.com/golang/protobuf/proto" commonpb "github.com/zilliztech/milvus-distributed/internal/proto/commonpb" + indexbuilderpb "github.com/zilliztech/milvus-distributed/internal/proto/indexbuilderpb" schemapb "github.com/zilliztech/milvus-distributed/internal/proto/schemapb" math "math" ) @@ -211,26 +212,74 @@ func (m *CollectionMeta) GetPartitionTags() []string { return nil } -type SegmentMeta struct { - SegmentID int64 `protobuf:"varint,1,opt,name=segmentID,proto3" json:"segmentID,omitempty"` - CollectionID int64 `protobuf:"varint,2,opt,name=collectionID,proto3" json:"collectionID,omitempty"` - PartitionTag string `protobuf:"bytes,3,opt,name=partition_tag,json=partitionTag,proto3" json:"partition_tag,omitempty"` - ChannelStart int32 `protobuf:"varint,4,opt,name=channel_start,json=channelStart,proto3" json:"channel_start,omitempty"` - ChannelEnd int32 `protobuf:"varint,5,opt,name=channel_end,json=channelEnd,proto3" json:"channel_end,omitempty"` - OpenTime uint64 `protobuf:"varint,6,opt,name=open_time,json=openTime,proto3" json:"open_time,omitempty"` - CloseTime uint64 `protobuf:"varint,7,opt,name=close_time,json=closeTime,proto3" json:"close_time,omitempty"` - NumRows int64 `protobuf:"varint,8,opt,name=num_rows,json=numRows,proto3" json:"num_rows,omitempty"` - MemSize int64 `protobuf:"varint,9,opt,name=mem_size,json=memSize,proto3" json:"mem_size,omitempty"` +type FieldBinlogFiles struct { + FieldID int64 `protobuf:"varint,1,opt,name=fieldID,proto3" json:"fieldID,omitempty"` + BinlogFiles []string `protobuf:"bytes,2,rep,name=binlog_files,json=binlogFiles,proto3" json:"binlog_files,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } +func (m *FieldBinlogFiles) Reset() { *m = FieldBinlogFiles{} } +func (m *FieldBinlogFiles) String() string { return proto.CompactTextString(m) } +func (*FieldBinlogFiles) ProtoMessage() {} +func (*FieldBinlogFiles) Descriptor() ([]byte, []int) { + return fileDescriptor_975d306d62b73e88, []int{3} +} + +func (m *FieldBinlogFiles) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FieldBinlogFiles.Unmarshal(m, b) +} +func (m *FieldBinlogFiles) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FieldBinlogFiles.Marshal(b, m, deterministic) +} +func (m *FieldBinlogFiles) XXX_Merge(src proto.Message) { + xxx_messageInfo_FieldBinlogFiles.Merge(m, src) +} +func (m *FieldBinlogFiles) XXX_Size() int { + return xxx_messageInfo_FieldBinlogFiles.Size(m) +} +func (m *FieldBinlogFiles) XXX_DiscardUnknown() { + xxx_messageInfo_FieldBinlogFiles.DiscardUnknown(m) +} + +var xxx_messageInfo_FieldBinlogFiles proto.InternalMessageInfo + +func (m *FieldBinlogFiles) GetFieldID() int64 { + if m != nil { + return m.FieldID + } + return 0 +} + +func (m *FieldBinlogFiles) GetBinlogFiles() []string { + if m != nil { + return m.BinlogFiles + } + return nil +} + +type SegmentMeta struct { + SegmentID int64 `protobuf:"varint,1,opt,name=segmentID,proto3" json:"segmentID,omitempty"` + CollectionID int64 `protobuf:"varint,2,opt,name=collectionID,proto3" json:"collectionID,omitempty"` + PartitionTag string `protobuf:"bytes,3,opt,name=partition_tag,json=partitionTag,proto3" json:"partition_tag,omitempty"` + ChannelStart int32 `protobuf:"varint,4,opt,name=channel_start,json=channelStart,proto3" json:"channel_start,omitempty"` + ChannelEnd int32 `protobuf:"varint,5,opt,name=channel_end,json=channelEnd,proto3" json:"channel_end,omitempty"` + OpenTime uint64 `protobuf:"varint,6,opt,name=open_time,json=openTime,proto3" json:"open_time,omitempty"` + CloseTime uint64 `protobuf:"varint,7,opt,name=close_time,json=closeTime,proto3" json:"close_time,omitempty"` + NumRows int64 `protobuf:"varint,8,opt,name=num_rows,json=numRows,proto3" json:"num_rows,omitempty"` + MemSize int64 `protobuf:"varint,9,opt,name=mem_size,json=memSize,proto3" json:"mem_size,omitempty"` + BinlogFilePaths []*FieldBinlogFiles `protobuf:"bytes,10,rep,name=binlog_file_paths,json=binlogFilePaths,proto3" json:"binlog_file_paths,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + func (m *SegmentMeta) Reset() { *m = SegmentMeta{} } func (m *SegmentMeta) String() string { return proto.CompactTextString(m) } func (*SegmentMeta) ProtoMessage() {} func (*SegmentMeta) Descriptor() ([]byte, []int) { - return fileDescriptor_975d306d62b73e88, []int{3} + return fileDescriptor_975d306d62b73e88, []int{4} } func (m *SegmentMeta) XXX_Unmarshal(b []byte) error { @@ -314,48 +363,157 @@ func (m *SegmentMeta) GetMemSize() int64 { return 0 } +func (m *SegmentMeta) GetBinlogFilePaths() []*FieldBinlogFiles { + if m != nil { + return m.BinlogFilePaths + } + return nil +} + +type FieldIndexMeta struct { + SegmentID int64 `protobuf:"varint,1,opt,name=segmentID,proto3" json:"segmentID,omitempty"` + FieldID int64 `protobuf:"varint,2,opt,name=fieldID,proto3" json:"fieldID,omitempty"` + IndexType string `protobuf:"bytes,3,opt,name=index_type,json=indexType,proto3" json:"index_type,omitempty"` + IndexID int64 `protobuf:"varint,4,opt,name=indexID,proto3" json:"indexID,omitempty"` + IndexParams []*commonpb.KeyValuePair `protobuf:"bytes,5,rep,name=index_params,json=indexParams,proto3" json:"index_params,omitempty"` + Status indexbuilderpb.IndexStatus `protobuf:"varint,6,opt,name=status,proto3,enum=milvus.proto.service.IndexStatus" json:"status,omitempty"` + IndexFilePaths []string `protobuf:"bytes,7,rep,name=index_file_paths,json=indexFilePaths,proto3" json:"index_file_paths,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FieldIndexMeta) Reset() { *m = FieldIndexMeta{} } +func (m *FieldIndexMeta) String() string { return proto.CompactTextString(m) } +func (*FieldIndexMeta) ProtoMessage() {} +func (*FieldIndexMeta) Descriptor() ([]byte, []int) { + return fileDescriptor_975d306d62b73e88, []int{5} +} + +func (m *FieldIndexMeta) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FieldIndexMeta.Unmarshal(m, b) +} +func (m *FieldIndexMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FieldIndexMeta.Marshal(b, m, deterministic) +} +func (m *FieldIndexMeta) XXX_Merge(src proto.Message) { + xxx_messageInfo_FieldIndexMeta.Merge(m, src) +} +func (m *FieldIndexMeta) XXX_Size() int { + return xxx_messageInfo_FieldIndexMeta.Size(m) +} +func (m *FieldIndexMeta) XXX_DiscardUnknown() { + xxx_messageInfo_FieldIndexMeta.DiscardUnknown(m) +} + +var xxx_messageInfo_FieldIndexMeta proto.InternalMessageInfo + +func (m *FieldIndexMeta) GetSegmentID() int64 { + if m != nil { + return m.SegmentID + } + return 0 +} + +func (m *FieldIndexMeta) GetFieldID() int64 { + if m != nil { + return m.FieldID + } + return 0 +} + +func (m *FieldIndexMeta) GetIndexType() string { + if m != nil { + return m.IndexType + } + return "" +} + +func (m *FieldIndexMeta) GetIndexID() int64 { + if m != nil { + return m.IndexID + } + return 0 +} + +func (m *FieldIndexMeta) GetIndexParams() []*commonpb.KeyValuePair { + if m != nil { + return m.IndexParams + } + return nil +} + +func (m *FieldIndexMeta) GetStatus() indexbuilderpb.IndexStatus { + if m != nil { + return m.Status + } + return indexbuilderpb.IndexStatus_NONE +} + +func (m *FieldIndexMeta) GetIndexFilePaths() []string { + if m != nil { + return m.IndexFilePaths + } + return nil +} + func init() { proto.RegisterType((*TenantMeta)(nil), "milvus.proto.etcd.TenantMeta") proto.RegisterType((*ProxyMeta)(nil), "milvus.proto.etcd.ProxyMeta") proto.RegisterType((*CollectionMeta)(nil), "milvus.proto.etcd.CollectionMeta") + proto.RegisterType((*FieldBinlogFiles)(nil), "milvus.proto.etcd.FieldBinlogFiles") proto.RegisterType((*SegmentMeta)(nil), "milvus.proto.etcd.SegmentMeta") + proto.RegisterType((*FieldIndexMeta)(nil), "milvus.proto.etcd.FieldIndexMeta") } func init() { proto.RegisterFile("etcd_meta.proto", fileDescriptor_975d306d62b73e88) } var fileDescriptor_975d306d62b73e88 = []byte{ - // 521 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x93, 0xcd, 0x8e, 0xd3, 0x30, - 0x14, 0x85, 0x95, 0x66, 0xfa, 0x93, 0xdb, 0x3f, 0x26, 0xab, 0x30, 0x0c, 0x50, 0x15, 0x0d, 0x54, - 0x42, 0xb4, 0x12, 0x48, 0xec, 0x40, 0xc0, 0x94, 0x45, 0x17, 0x20, 0x48, 0xbb, 0x62, 0x13, 0xb9, - 0xc9, 0x55, 0x6b, 0x29, 0xb6, 0x8b, 0xed, 0x30, 0x4c, 0x57, 0x3c, 0x07, 0xcf, 0xc0, 0x7b, 0xf0, - 0x5a, 0xc8, 0x3f, 0xa4, 0x53, 0xa9, 0xcb, 0x7c, 0xe7, 0xc4, 0x39, 0xf7, 0x5c, 0x07, 0x86, 0xa8, - 0xf3, 0x22, 0x63, 0xa8, 0xc9, 0x74, 0x27, 0x85, 0x16, 0xf1, 0x39, 0xa3, 0xe5, 0x8f, 0x4a, 0xb9, - 0xa7, 0xa9, 0x51, 0x2f, 0x7a, 0xb9, 0x60, 0x4c, 0x70, 0x87, 0x2e, 0x7a, 0x2a, 0xdf, 0x22, 0xf3, - 0xf6, 0xf1, 0xef, 0x00, 0x60, 0x85, 0x9c, 0x70, 0xfd, 0x09, 0x35, 0x89, 0x07, 0xd0, 0x58, 0xcc, - 0x93, 0x60, 0x14, 0x4c, 0xc2, 0xb4, 0xb1, 0x98, 0xc7, 0x4f, 0x61, 0xc8, 0x2b, 0x96, 0x7d, 0xaf, - 0x50, 0xde, 0x66, 0x5c, 0x14, 0xa8, 0x92, 0x86, 0x15, 0xfb, 0xbc, 0x62, 0x5f, 0x0d, 0xfd, 0x6c, - 0x60, 0xfc, 0x1c, 0xce, 0x29, 0x57, 0x28, 0x75, 0x96, 0x6f, 0x09, 0xe7, 0x58, 0x2e, 0xe6, 0x2a, - 0x09, 0x47, 0xe1, 0x24, 0x4a, 0xef, 0x39, 0xe1, 0xba, 0xe6, 0xf1, 0x33, 0x18, 0xba, 0x03, 0x6b, - 0x6f, 0x72, 0x36, 0x0a, 0x26, 0x51, 0x3a, 0xb0, 0xb8, 0x76, 0x8e, 0x7f, 0x05, 0x10, 0x7d, 0x91, - 0xe2, 0xe7, 0xed, 0xc9, 0x6c, 0xaf, 0xa1, 0x4d, 0x8a, 0x42, 0xa2, 0x72, 0x99, 0xba, 0x2f, 0x2f, - 0xa7, 0x47, 0xb3, 0xfb, 0xa9, 0xdf, 0x3b, 0x4f, 0xfa, 0xdf, 0x6c, 0xb2, 0x4a, 0x54, 0x55, 0x79, - 0x2a, 0xab, 0x13, 0x0e, 0x59, 0xc7, 0x7f, 0x03, 0x18, 0x5c, 0x8b, 0xb2, 0xc4, 0x5c, 0x53, 0xc1, - 0x4f, 0xe6, 0x78, 0x03, 0x2d, 0x57, 0xa9, 0x8f, 0x71, 0x75, 0x1c, 0xc3, 0xd7, 0x7d, 0x38, 0x64, - 0x69, 0x41, 0xea, 0x5f, 0x8a, 0x1f, 0x43, 0x37, 0x97, 0x48, 0x34, 0x66, 0x9a, 0x32, 0x4c, 0xc2, - 0x51, 0x30, 0x39, 0x4b, 0xc1, 0xa1, 0x15, 0x65, 0x18, 0x3f, 0x02, 0x50, 0xb8, 0x61, 0xc8, 0xb5, - 0x09, 0x7a, 0x36, 0x0a, 0x27, 0x61, 0x7a, 0x87, 0xc4, 0x57, 0x30, 0xd8, 0x11, 0xa9, 0xa9, 0x39, - 0x3b, 0xd3, 0x64, 0xa3, 0x92, 0xa6, 0x1d, 0xa6, 0x5f, 0xd3, 0x15, 0xd9, 0xa8, 0xf1, 0x9f, 0x06, - 0x74, 0x97, 0xee, 0x2d, 0x3b, 0xc6, 0x25, 0x44, 0xf5, 0x21, 0x7e, 0x9a, 0x03, 0x88, 0xc7, 0xd0, - 0xcb, 0xeb, 0xc4, 0x8b, 0xb9, 0xdf, 0xfa, 0x11, 0x8b, 0x9f, 0x40, 0xff, 0xe8, 0xc3, 0x36, 0x7b, - 0x94, 0xf6, 0xee, 0x7e, 0xd7, 0x98, 0x7c, 0xcd, 0x99, 0xd2, 0x44, 0x6a, 0xbb, 0xea, 0x66, 0xda, - 0xf3, 0x70, 0x69, 0x98, 0xed, 0xc0, 0x9b, 0x90, 0x17, 0x49, 0xd3, 0x5a, 0xc0, 0xa3, 0x8f, 0xbc, - 0x88, 0x1f, 0x40, 0x24, 0x76, 0xc8, 0x5d, 0x45, 0x2d, 0x5b, 0x51, 0xc7, 0x00, 0x5b, 0xd0, 0x43, - 0x80, 0xbc, 0x14, 0xca, 0x17, 0xd8, 0xb6, 0x6a, 0x64, 0x89, 0x95, 0xef, 0x43, 0xc7, 0xdc, 0x61, - 0x29, 0x6e, 0x54, 0xd2, 0xb1, 0x63, 0xb4, 0x79, 0xc5, 0x52, 0x71, 0xa3, 0x8c, 0xc4, 0x90, 0x65, - 0x8a, 0xee, 0x31, 0x89, 0x9c, 0xc4, 0x90, 0x2d, 0xe9, 0x1e, 0x3f, 0xbc, 0xfb, 0xf6, 0x76, 0x43, - 0xf5, 0xb6, 0x5a, 0x9b, 0x7b, 0x34, 0xdb, 0xd3, 0xb2, 0xa4, 0x7b, 0x8d, 0xf9, 0x76, 0xe6, 0x96, - 0xfb, 0xa2, 0xa0, 0x4a, 0x4b, 0xba, 0xae, 0x34, 0x16, 0x33, 0xca, 0x35, 0x4a, 0x4e, 0xca, 0x99, - 0xdd, 0xf8, 0xcc, 0xfc, 0x74, 0xbb, 0xf5, 0xba, 0x65, 0x9f, 0x5e, 0xfd, 0x0b, 0x00, 0x00, 0xff, - 0xff, 0x59, 0xd6, 0xe1, 0xfb, 0xa3, 0x03, 0x00, 0x00, + // 725 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xd1, 0x6e, 0xeb, 0x44, + 0x10, 0x55, 0xe2, 0x36, 0xa9, 0x27, 0x69, 0xd2, 0x2e, 0x2f, 0xe6, 0x72, 0x2f, 0xe4, 0xa6, 0x2a, + 0x44, 0x42, 0x24, 0x52, 0x91, 0x90, 0x78, 0x00, 0x41, 0x1b, 0x2a, 0x45, 0x08, 0x1a, 0x9c, 0x88, + 0x07, 0x5e, 0xac, 0x8d, 0x3d, 0x4d, 0x56, 0xf2, 0xae, 0xcd, 0xee, 0xba, 0x6d, 0xf2, 0xc4, 0x77, + 0xf0, 0x0d, 0xfc, 0x07, 0x5f, 0x85, 0x84, 0x76, 0xd7, 0x71, 0x92, 0x92, 0x07, 0x1e, 0xe7, 0xcc, + 0x99, 0xf1, 0x99, 0x33, 0x3b, 0x86, 0x2e, 0xea, 0x38, 0x89, 0x38, 0x6a, 0x3a, 0xcc, 0x65, 0xa6, + 0x33, 0x72, 0xc9, 0x59, 0xfa, 0x54, 0x28, 0x17, 0x0d, 0x4d, 0xf6, 0xcd, 0x07, 0x4c, 0x24, 0xf8, + 0x12, 0x2d, 0x0a, 0x96, 0x26, 0x28, 0x5d, 0xe6, 0x4d, 0x3b, 0xce, 0x38, 0xcf, 0xc4, 0x36, 0x52, + 0xf1, 0x0a, 0x79, 0xd9, 0xa3, 0xff, 0x67, 0x0d, 0x60, 0x8e, 0x82, 0x0a, 0xfd, 0x13, 0x6a, 0x4a, + 0x3a, 0x50, 0x9f, 0x8c, 0x83, 0x5a, 0xaf, 0x36, 0xf0, 0xc2, 0xfa, 0x64, 0x4c, 0x3e, 0x85, 0xae, + 0x28, 0x78, 0xf4, 0x7b, 0x81, 0x72, 0x1d, 0x89, 0x2c, 0x41, 0x15, 0xd4, 0x6d, 0xf2, 0x5c, 0x14, + 0xfc, 0x17, 0x83, 0xfe, 0x6c, 0x40, 0xf2, 0x39, 0x5c, 0x32, 0xa1, 0x50, 0xea, 0x28, 0x5e, 0x51, + 0x21, 0x30, 0x9d, 0x8c, 0x55, 0xe0, 0xf5, 0xbc, 0x81, 0x1f, 0x5e, 0xb8, 0xc4, 0x5d, 0x85, 0x93, + 0xcf, 0xa0, 0xeb, 0x1a, 0x56, 0xdc, 0xe0, 0xa4, 0x57, 0x1b, 0xf8, 0x61, 0xc7, 0xc2, 0x15, 0xb3, + 0xff, 0x47, 0x0d, 0xfc, 0xa9, 0xcc, 0x5e, 0xd6, 0x47, 0xb5, 0x7d, 0x05, 0x4d, 0x9a, 0x24, 0x12, + 0x95, 0xd3, 0xd4, 0xba, 0x79, 0x3b, 0x3c, 0x30, 0xa4, 0x9c, 0xfa, 0x7b, 0xc7, 0x09, 0xb7, 0x64, + 0xa3, 0x55, 0xa2, 0x2a, 0xd2, 0x63, 0x5a, 0x5d, 0x62, 0xa7, 0xb5, 0xff, 0x77, 0x0d, 0x3a, 0x77, + 0x59, 0x9a, 0x62, 0xac, 0x59, 0x26, 0x8e, 0xea, 0xf8, 0x06, 0x1a, 0xce, 0xd2, 0x52, 0xc6, 0xf5, + 0xa1, 0x8c, 0xd2, 0xee, 0x5d, 0x93, 0x99, 0x05, 0xc2, 0xb2, 0x88, 0x7c, 0x02, 0xad, 0x58, 0x22, + 0xd5, 0x18, 0x69, 0xc6, 0x31, 0xf0, 0x7a, 0xb5, 0xc1, 0x49, 0x08, 0x0e, 0x9a, 0x33, 0x8e, 0xe4, + 0x63, 0x00, 0x85, 0x4b, 0x8e, 0x42, 0x1b, 0xa1, 0x27, 0x3d, 0x6f, 0xe0, 0x85, 0x7b, 0x08, 0xb9, + 0x86, 0x4e, 0x4e, 0xa5, 0x66, 0xa6, 0x77, 0xa4, 0xe9, 0x52, 0x05, 0xa7, 0x76, 0x98, 0xf3, 0x0a, + 0x9d, 0xd3, 0xa5, 0xea, 0x3f, 0xc0, 0xc5, 0x3d, 0xc3, 0x34, 0xb9, 0x65, 0x22, 0xcd, 0x96, 0xf7, + 0x2c, 0x45, 0x45, 0x02, 0x68, 0x3e, 0x1a, 0xac, 0x9a, 0x67, 0x1b, 0x92, 0xf7, 0xd0, 0x5e, 0x58, + 0x62, 0xf4, 0x68, 0x98, 0x41, 0xdd, 0xb6, 0x6c, 0x2d, 0x76, 0xc5, 0xfd, 0x7f, 0xea, 0xd0, 0x9a, + 0x39, 0x19, 0xd6, 0x97, 0xb7, 0xe0, 0x57, 0xaa, 0xca, 0x76, 0x3b, 0x80, 0xf4, 0xa1, 0x1d, 0x57, + 0x16, 0x4c, 0xc6, 0xe5, 0x33, 0x3a, 0xc0, 0xc8, 0x15, 0x9c, 0x1f, 0x4c, 0x62, 0xcd, 0xf0, 0xc3, + 0xf6, 0xfe, 0x20, 0x86, 0x54, 0xee, 0x2d, 0x52, 0x9a, 0x4a, 0x6d, 0xdf, 0xce, 0x69, 0xd8, 0x2e, + 0xc1, 0x99, 0xc1, 0xac, 0xa9, 0x25, 0x09, 0x45, 0x12, 0x9c, 0x5a, 0x0a, 0x94, 0xd0, 0x0f, 0x22, + 0x21, 0x1f, 0x81, 0x9f, 0xe5, 0x28, 0x9c, 0xe7, 0x0d, 0xeb, 0xf9, 0x99, 0x01, 0xac, 0xe3, 0xef, + 0x00, 0xe2, 0x34, 0x53, 0xe5, 0x46, 0x9a, 0x36, 0xeb, 0x5b, 0xc4, 0xa6, 0x3f, 0x84, 0x33, 0x73, + 0x14, 0x32, 0x7b, 0x56, 0xc1, 0x99, 0xb3, 0x4d, 0x14, 0x3c, 0xcc, 0x9e, 0x95, 0x49, 0x71, 0xe4, + 0x91, 0x62, 0x1b, 0x0c, 0x7c, 0x97, 0xe2, 0xc8, 0x67, 0x6c, 0x83, 0xe4, 0x01, 0x2e, 0xf7, 0x1c, + 0x8d, 0x72, 0xaa, 0x57, 0x2a, 0x80, 0x9e, 0x37, 0x68, 0xdd, 0x5c, 0x0d, 0xff, 0x73, 0xc9, 0xc3, + 0xd7, 0xbb, 0x0a, 0xbb, 0x3b, 0xef, 0xa7, 0xa6, 0xb6, 0xff, 0x57, 0x1d, 0x3a, 0x96, 0x35, 0x31, + 0x37, 0xff, 0x3f, 0x56, 0xb0, 0xb7, 0xed, 0xfa, 0xe1, 0xb6, 0xdf, 0x01, 0xb8, 0x1f, 0x87, 0x5e, + 0xe7, 0x58, 0xba, 0xee, 0x5b, 0x64, 0xbe, 0xce, 0xd1, 0x14, 0xda, 0xa0, 0x3c, 0x54, 0x2f, 0xdc, + 0x86, 0x64, 0x0c, 0x6d, 0x57, 0x98, 0x53, 0x49, 0xb9, 0x7b, 0x79, 0xad, 0x9b, 0xf7, 0x47, 0x0f, + 0xf1, 0x47, 0x5c, 0xff, 0x4a, 0xd3, 0x02, 0xa7, 0x94, 0xc9, 0xb0, 0x65, 0xcb, 0xa6, 0xb6, 0x8a, + 0x7c, 0x0d, 0x0d, 0xa5, 0xa9, 0x2e, 0x94, 0xdd, 0x44, 0xe7, 0x75, 0xbd, 0x42, 0xf9, 0xc4, 0x62, + 0x1c, 0xda, 0x39, 0x67, 0x96, 0x18, 0x96, 0x05, 0x64, 0x00, 0x17, 0x4e, 0xc0, 0x9e, 0xa9, 0x4d, + 0xfb, 0x56, 0x3b, 0x16, 0xaf, 0xec, 0xba, 0xfd, 0xee, 0xb7, 0x6f, 0x97, 0x4c, 0xaf, 0x8a, 0x85, + 0xd1, 0x33, 0xda, 0xb0, 0x34, 0x65, 0x1b, 0x8d, 0xf1, 0x6a, 0xe4, 0xbe, 0xf5, 0x45, 0xc2, 0x94, + 0x96, 0x6c, 0x51, 0x68, 0x4c, 0x46, 0x4c, 0x68, 0x94, 0x82, 0xa6, 0x23, 0x2b, 0x60, 0x64, 0x16, + 0x92, 0x2f, 0x16, 0x0d, 0x1b, 0x7d, 0xf9, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x1c, 0xb6, 0x88, + 0xc7, 0x89, 0x05, 0x00, 0x00, } diff --git a/internal/util/typeutil/index.go b/internal/util/typeutil/index.go new file mode 100644 index 0000000000..cbbf258ea7 --- /dev/null +++ b/internal/util/typeutil/index.go @@ -0,0 +1,35 @@ +package typeutil + +import "github.com/zilliztech/milvus-distributed/internal/proto/commonpb" + +func CompareIndexParams(indexParam1 []*commonpb.KeyValuePair, indexParam2 []*commonpb.KeyValuePair) bool { + if indexParam1 == nil && indexParam2 == nil { + return true + } + if indexParam1 == nil || indexParam2 == nil { + return false + } + if len(indexParam1) != len(indexParam2) { + return false + } + paramMap1 := make(map[string]string) + paramMap2 := make(map[string]string) + + for _, kv := range indexParam1 { + paramMap1[kv.Key] = kv.Value + } + for _, kv := range indexParam2 { + paramMap2[kv.Key] = kv.Value + } + + for k, v := range paramMap1 { + if _, ok := paramMap2[k]; !ok { + return false + } + if v != paramMap2[k] { + return false + } + } + + return true +} diff --git a/internal/util/typeutil/index_test.go b/internal/util/typeutil/index_test.go new file mode 100644 index 0000000000..c151a4d186 --- /dev/null +++ b/internal/util/typeutil/index_test.go @@ -0,0 +1,26 @@ +package typeutil + +import ( + "testing" + + "github.com/stretchr/testify/assert" + "github.com/zilliztech/milvus-distributed/internal/proto/commonpb" +) + +func TestCompareIndexParams(t *testing.T) { + cases := []*struct { + param1 []*commonpb.KeyValuePair + param2 []*commonpb.KeyValuePair + result bool + }{ + {param1: nil, param2: nil, result: true}, + {param1: nil, param2: []*commonpb.KeyValuePair{}, result: false}, + {param1: []*commonpb.KeyValuePair{}, param2: []*commonpb.KeyValuePair{}, result: true}, + {param1: []*commonpb.KeyValuePair{{Key: "k1", Value: "v1"}}, param2: []*commonpb.KeyValuePair{}, result: false}, + {param1: []*commonpb.KeyValuePair{{Key: "k1", Value: "v1"}}, param2: []*commonpb.KeyValuePair{{Key: "k1", Value: "v1"}}, result: true}, + } + + for _, testcase := range cases { + assert.EqualValues(t, testcase.result, CompareIndexParams(testcase.param1, testcase.param2)) + } +}