From e2d8358cb474dc813348b9020861be41f49a25b7 Mon Sep 17 00:00:00 2001 From: neza2017 Date: Tue, 9 Feb 2021 13:11:55 +0800 Subject: [PATCH] Refactor master:index ids Signed-off-by: neza2017 --- internal/core/src/pb/etcd_meta.pb.cc | 1826 ++++++++--------- internal/core/src/pb/etcd_meta.pb.h | 1033 +++++----- .../masterservice/masterservice_test.go | 4 +- internal/masterservice/master_service.go | 5 +- internal/masterservice/master_service_test.go | 10 +- internal/masterservice/meta_table.go | 44 +- internal/masterservice/meta_table_test.go | 12 +- internal/masterservice/task.go | 43 +- internal/proto/etcd_meta.proto | 19 +- internal/proto/etcdpb/etcd_meta.pb.go | 282 ++- 10 files changed, 1586 insertions(+), 1692 deletions(-) diff --git a/internal/core/src/pb/etcd_meta.pb.cc b/internal/core/src/pb/etcd_meta.pb.cc index 360e82ee4c..dd75346d21 100644 --- a/internal/core/src/pb/etcd_meta.pb.cc +++ b/internal/core/src/pb/etcd_meta.pb.cc @@ -18,7 +18,8 @@ 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_etcd_5fmeta_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_IndexParamsInfo_etcd_5fmeta_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_etcd_5fmeta_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_FieldIndexInfo_etcd_5fmeta_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_etcd_5fmeta_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_IndexInfo_etcd_5fmeta_2eproto; extern PROTOBUF_INTERNAL_EXPORT_schema_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CollectionSchema_schema_2eproto; namespace milvus { namespace proto { @@ -35,18 +36,18 @@ class PartitionInfoDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _PartitionInfo_default_instance_; -class IndexParamsInfoDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _IndexParamsInfo_default_instance_; -class CollectionInfoDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _CollectionInfo_default_instance_; class IndexInfoDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _IndexInfo_default_instance_; +class FieldIndexInfoDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _FieldIndexInfo_default_instance_; +class CollectionInfoDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _CollectionInfo_default_instance_; class SegmentIndexInfoDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; @@ -84,7 +85,7 @@ static void InitDefaultsscc_info_CollectionInfo_etcd_5fmeta_2eproto() { ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_CollectionInfo_etcd_5fmeta_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_CollectionInfo_etcd_5fmeta_2eproto}, { &scc_info_CollectionSchema_schema_2eproto.base, - &scc_info_IndexParamsInfo_etcd_5fmeta_2eproto.base,}}; + &scc_info_FieldIndexInfo_etcd_5fmeta_2eproto.base,}}; static void InitDefaultsscc_info_CollectionMeta_etcd_5fmeta_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -115,6 +116,21 @@ static void InitDefaultsscc_info_FieldBinlogFiles_etcd_5fmeta_2eproto() { ::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_FieldIndexInfo_etcd_5fmeta_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::proto::etcd::_FieldIndexInfo_default_instance_; + new (ptr) ::milvus::proto::etcd::FieldIndexInfo(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::proto::etcd::FieldIndexInfo::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_FieldIndexInfo_etcd_5fmeta_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_FieldIndexInfo_etcd_5fmeta_2eproto}, { + &scc_info_IndexInfo_etcd_5fmeta_2eproto.base,}}; + static void InitDefaultsscc_info_FieldIndexMeta_etcd_5fmeta_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -145,21 +161,6 @@ static void InitDefaultsscc_info_IndexInfo_etcd_5fmeta_2eproto() { {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_IndexInfo_etcd_5fmeta_2eproto}, { &scc_info_KeyValuePair_common_2eproto.base,}}; -static void InitDefaultsscc_info_IndexParamsInfo_etcd_5fmeta_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::proto::etcd::_IndexParamsInfo_default_instance_; - new (ptr) ::milvus::proto::etcd::IndexParamsInfo(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::proto::etcd::IndexParamsInfo::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_IndexParamsInfo_etcd_5fmeta_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_IndexParamsInfo_etcd_5fmeta_2eproto}, { - &scc_info_KeyValuePair_common_2eproto.base,}}; - static void InitDefaultsscc_info_PartitionInfo_etcd_5fmeta_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -263,12 +264,20 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_etcd_5fmeta_2eproto::offsets[] PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::PartitionInfo, partitionid_), PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::PartitionInfo, segmentids_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::IndexParamsInfo, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::IndexInfo, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::IndexParamsInfo, filedid_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::IndexParamsInfo, index_params_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::IndexInfo, index_name_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::IndexInfo, indexid_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::IndexInfo, index_params_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::FieldIndexInfo, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::FieldIndexInfo, filedid_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::FieldIndexInfo, index_info_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::CollectionInfo, _internal_metadata_), ~0u, // no _extensions_ @@ -278,16 +287,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_etcd_5fmeta_2eproto::offsets[] PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::CollectionInfo, schema_), PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::CollectionInfo, create_time_), PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::CollectionInfo, partitionids_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::CollectionInfo, index_params_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::CollectionInfo, index_names_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::IndexInfo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::IndexInfo, index_name_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::IndexInfo, indexid_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::IndexInfo, index_params_), + PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::CollectionInfo, field_indexes_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::SegmentIndexInfo, _internal_metadata_), ~0u, // no _extensions_ @@ -346,23 +346,23 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOB { 0, -1, sizeof(::milvus::proto::etcd::TenantMeta)}, { 9, -1, sizeof(::milvus::proto::etcd::ProxyMeta)}, { 17, -1, sizeof(::milvus::proto::etcd::PartitionInfo)}, - { 25, -1, sizeof(::milvus::proto::etcd::IndexParamsInfo)}, - { 32, -1, sizeof(::milvus::proto::etcd::CollectionInfo)}, - { 43, -1, sizeof(::milvus::proto::etcd::IndexInfo)}, - { 51, -1, sizeof(::milvus::proto::etcd::SegmentIndexInfo)}, - { 60, -1, sizeof(::milvus::proto::etcd::CollectionMeta)}, - { 71, -1, sizeof(::milvus::proto::etcd::FieldBinlogFiles)}, - { 78, -1, sizeof(::milvus::proto::etcd::SegmentMeta)}, - { 93, -1, sizeof(::milvus::proto::etcd::FieldIndexMeta)}, + { 25, -1, sizeof(::milvus::proto::etcd::IndexInfo)}, + { 33, -1, sizeof(::milvus::proto::etcd::FieldIndexInfo)}, + { 40, -1, sizeof(::milvus::proto::etcd::CollectionInfo)}, + { 50, -1, sizeof(::milvus::proto::etcd::SegmentIndexInfo)}, + { 59, -1, sizeof(::milvus::proto::etcd::CollectionMeta)}, + { 70, -1, sizeof(::milvus::proto::etcd::FieldBinlogFiles)}, + { 77, -1, sizeof(::milvus::proto::etcd::SegmentMeta)}, + { 92, -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::_PartitionInfo_default_instance_), - reinterpret_cast(&::milvus::proto::etcd::_IndexParamsInfo_default_instance_), - reinterpret_cast(&::milvus::proto::etcd::_CollectionInfo_default_instance_), reinterpret_cast(&::milvus::proto::etcd::_IndexInfo_default_instance_), + reinterpret_cast(&::milvus::proto::etcd::_FieldIndexInfo_default_instance_), + reinterpret_cast(&::milvus::proto::etcd::_CollectionInfo_default_instance_), reinterpret_cast(&::milvus::proto::etcd::_SegmentIndexInfo_default_instance_), reinterpret_cast(&::milvus::proto::etcd::_CollectionMeta_default_instance_), reinterpret_cast(&::milvus::proto::etcd::_FieldBinlogFiles_default_instance_), @@ -379,39 +379,38 @@ const char descriptor_table_protodef_etcd_5fmeta_2eproto[] PROTOBUF_SECTION_VARI "ess\030\002 \001(\0132\034.milvus.proto.common.Address\022" "\031\n\021result_channelIDs\030\003 \003(\t\"P\n\rPartitionI" "nfo\022\026\n\016partition_name\030\001 \001(\t\022\023\n\013partition" - "ID\030\002 \001(\003\022\022\n\nsegmentIDs\030\003 \003(\003\"[\n\017IndexPar" - "amsInfo\022\017\n\007filedID\030\001 \001(\003\0227\n\014index_params" - "\030\002 \003(\0132!.milvus.proto.common.KeyValuePai" - "r\"\315\001\n\016CollectionInfo\022\n\n\002ID\030\001 \001(\003\0225\n\006sche" - "ma\030\002 \001(\0132%.milvus.proto.schema.Collectio" - "nSchema\022\023\n\013create_time\030\003 \001(\004\022\024\n\014partitio" - "nIDs\030\004 \003(\003\0228\n\014index_params\030\005 \003(\0132\".milvu" - "s.proto.etcd.IndexParamsInfo\022\023\n\013index_na" - "mes\030\006 \003(\t\"i\n\tIndexInfo\022\022\n\nindex_name\030\001 \001" - "(\t\022\017\n\007indexID\030\002 \001(\003\0227\n\014index_params\030\003 \003(" - "\0132!.milvus.proto.common.KeyValuePair\"X\n\020" - "SegmentIndexInfo\022\021\n\tsegmentID\030\001 \001(\003\022\017\n\007f" - "ieldID\030\002 \001(\003\022\017\n\007indexID\030\003 \001(\003\022\017\n\007buildID" - "\030\004 \001(\003\"\252\001\n\016CollectionMeta\022\n\n\002ID\030\001 \001(\003\0225\n" - "\006schema\030\002 \001(\0132%.milvus.proto.schema.Coll" - "ectionSchema\022\023\n\013create_time\030\003 \001(\004\022\022\n\nseg" - "mentIDs\030\004 \003(\003\022\026\n\016partition_tags\030\005 \003(\t\022\024\n" - "\014partitionIDs\030\006 \003(\003\"9\n\020FieldBinlogFiles\022" - "\017\n\007fieldID\030\001 \001(\003\022\024\n\014binlog_files\030\002 \003(\t\"\204" - "\002\n\013SegmentMeta\022\021\n\tsegmentID\030\001 \001(\003\022\024\n\014col" - "lectionID\030\002 \001(\003\022\025\n\rpartition_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(\003\022>\n" - "\021binlog_file_paths\030\n \003(\0132#.milvus.proto." - "etcd.FieldBinlogFiles\"\310\001\n\016FieldIndexMeta" - "\022\021\n\tsegmentID\030\001 \001(\003\022\017\n\007fieldID\030\002 \001(\003\022\017\n\007" - "indexID\030\003 \001(\003\0227\n\014index_params\030\004 \003(\0132!.mi" - "lvus.proto.common.KeyValuePair\022.\n\005state\030" - "\005 \001(\0162\037.milvus.proto.common.IndexState\022\030" - "\n\020index_file_paths\030\006 \003(\tB@Z>github.com/z" - "illiztech/milvus-distributed/internal/pr" - "oto/etcdpbb\006proto3" + "ID\030\002 \001(\003\022\022\n\nsegmentIDs\030\003 \003(\003\"i\n\tIndexInf" + "o\022\022\n\nindex_name\030\001 \001(\t\022\017\n\007indexID\030\002 \001(\003\0227" + "\n\014index_params\030\003 \003(\0132!.milvus.proto.comm" + "on.KeyValuePair\"S\n\016FieldIndexInfo\022\017\n\007fil" + "edID\030\001 \001(\003\0220\n\nindex_info\030\002 \001(\0132\034.milvus." + "proto.etcd.IndexInfo\"\270\001\n\016CollectionInfo\022" + "\n\n\002ID\030\001 \001(\003\0225\n\006schema\030\002 \001(\0132%.milvus.pro" + "to.schema.CollectionSchema\022\023\n\013create_tim" + "e\030\003 \001(\004\022\024\n\014partitionIDs\030\004 \003(\003\0228\n\rfield_i" + "ndexes\030\005 \003(\0132!.milvus.proto.etcd.FieldIn" + "dexInfo\"X\n\020SegmentIndexInfo\022\021\n\tsegmentID" + "\030\001 \001(\003\022\017\n\007fieldID\030\002 \001(\003\022\017\n\007indexID\030\003 \001(\003" + "\022\017\n\007buildID\030\004 \001(\003\"\252\001\n\016CollectionMeta\022\n\n\002" + "ID\030\001 \001(\003\0225\n\006schema\030\002 \001(\0132%.milvus.proto." + "schema.CollectionSchema\022\023\n\013create_time\030\003" + " \001(\004\022\022\n\nsegmentIDs\030\004 \003(\003\022\026\n\016partition_ta" + "gs\030\005 \003(\t\022\024\n\014partitionIDs\030\006 \003(\003\"9\n\020FieldB" + "inlogFiles\022\017\n\007fieldID\030\001 \001(\003\022\024\n\014binlog_fi" + "les\030\002 \003(\t\"\204\002\n\013SegmentMeta\022\021\n\tsegmentID\030\001" + " \001(\003\022\024\n\014collectionID\030\002 \001(\003\022\025\n\rpartition_" + "tag\030\003 \001(\t\022\025\n\rchannel_start\030\004 \001(\005\022\023\n\013chan" + "nel_end\030\005 \001(\005\022\021\n\topen_time\030\006 \001(\004\022\022\n\nclos" + "e_time\030\007 \001(\004\022\020\n\010num_rows\030\010 \001(\003\022\020\n\010mem_si" + "ze\030\t \001(\003\022>\n\021binlog_file_paths\030\n \003(\0132#.mi" + "lvus.proto.etcd.FieldBinlogFiles\"\310\001\n\016Fie" + "ldIndexMeta\022\021\n\tsegmentID\030\001 \001(\003\022\017\n\007fieldI" + "D\030\002 \001(\003\022\017\n\007indexID\030\003 \001(\003\0227\n\014index_params" + "\030\004 \003(\0132!.milvus.proto.common.KeyValuePai" + "r\022.\n\005state\030\005 \001(\0162\037.milvus.proto.common.I" + "ndexState\022\030\n\020index_file_paths\030\006 \003(\tB@Z>g" + "ithub.com/zilliztech/milvus-distributed/" + "internal/proto/etcdpbb\006proto3" ; static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_etcd_5fmeta_2eproto_deps[2] = { &::descriptor_table_common_2eproto, @@ -421,9 +420,9 @@ static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_etc &scc_info_CollectionInfo_etcd_5fmeta_2eproto.base, &scc_info_CollectionMeta_etcd_5fmeta_2eproto.base, &scc_info_FieldBinlogFiles_etcd_5fmeta_2eproto.base, + &scc_info_FieldIndexInfo_etcd_5fmeta_2eproto.base, &scc_info_FieldIndexMeta_etcd_5fmeta_2eproto.base, &scc_info_IndexInfo_etcd_5fmeta_2eproto.base, - &scc_info_IndexParamsInfo_etcd_5fmeta_2eproto.base, &scc_info_PartitionInfo_etcd_5fmeta_2eproto.base, &scc_info_ProxyMeta_etcd_5fmeta_2eproto.base, &scc_info_SegmentIndexInfo_etcd_5fmeta_2eproto.base, @@ -433,7 +432,7 @@ 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", 1618, + &descriptor_table_etcd_5fmeta_2eproto_initialized, descriptor_table_protodef_etcd_5fmeta_2eproto, "etcd_meta.proto", 1589, &descriptor_table_etcd_5fmeta_2eproto_once, descriptor_table_etcd_5fmeta_2eproto_sccs, descriptor_table_etcd_5fmeta_2eproto_deps, 11, 2, schemas, file_default_instances, TableStruct_etcd_5fmeta_2eproto::offsets, file_level_metadata_etcd_5fmeta_2eproto, 11, file_level_enum_descriptors_etcd_5fmeta_2eproto, file_level_service_descriptors_etcd_5fmeta_2eproto, @@ -1624,860 +1623,6 @@ void PartitionInfo::InternalSwap(PartitionInfo* other) { } -// =================================================================== - -void IndexParamsInfo::InitAsDefaultInstance() { -} -class IndexParamsInfo::_Internal { - public: -}; - -void IndexParamsInfo::clear_index_params() { - index_params_.Clear(); -} -IndexParamsInfo::IndexParamsInfo() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.proto.etcd.IndexParamsInfo) -} -IndexParamsInfo::IndexParamsInfo(const IndexParamsInfo& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - index_params_(from.index_params_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - filedid_ = from.filedid_; - // @@protoc_insertion_point(copy_constructor:milvus.proto.etcd.IndexParamsInfo) -} - -void IndexParamsInfo::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_IndexParamsInfo_etcd_5fmeta_2eproto.base); - filedid_ = PROTOBUF_LONGLONG(0); -} - -IndexParamsInfo::~IndexParamsInfo() { - // @@protoc_insertion_point(destructor:milvus.proto.etcd.IndexParamsInfo) - SharedDtor(); -} - -void IndexParamsInfo::SharedDtor() { -} - -void IndexParamsInfo::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const IndexParamsInfo& IndexParamsInfo::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_IndexParamsInfo_etcd_5fmeta_2eproto.base); - return *internal_default_instance(); -} - - -void IndexParamsInfo::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.proto.etcd.IndexParamsInfo) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - index_params_.Clear(); - filedid_ = PROTOBUF_LONGLONG(0); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* IndexParamsInfo::_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 filedID = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - filedid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .milvus.proto.common.KeyValuePair index_params = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - 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) == 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 IndexParamsInfo::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.IndexParamsInfo) - 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 filedID = 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, &filedid_))); - } else { - goto handle_unusual; - } - break; - } - - // repeated .milvus.proto.common.KeyValuePair index_params = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 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.etcd.IndexParamsInfo) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.proto.etcd.IndexParamsInfo) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void IndexParamsInfo::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.proto.etcd.IndexParamsInfo) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int64 filedID = 1; - if (this->filedid() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->filedid(), output); - } - - // repeated .milvus.proto.common.KeyValuePair index_params = 2; - for (unsigned int i = 0, - n = static_cast(this->index_params_size()); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, - 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.etcd.IndexParamsInfo) -} - -::PROTOBUF_NAMESPACE_ID::uint8* IndexParamsInfo::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.etcd.IndexParamsInfo) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int64 filedID = 1; - if (this->filedid() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->filedid(), target); - } - - // repeated .milvus.proto.common.KeyValuePair index_params = 2; - for (unsigned int i = 0, - n = static_cast(this->index_params_size()); i < n; i++) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, 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.etcd.IndexParamsInfo) - return target; -} - -size_t IndexParamsInfo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.proto.etcd.IndexParamsInfo) - 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 = 2; - { - 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))); - } - } - - // int64 filedID = 1; - if (this->filedid() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->filedid()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void IndexParamsInfo::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.etcd.IndexParamsInfo) - GOOGLE_DCHECK_NE(&from, this); - const IndexParamsInfo* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.etcd.IndexParamsInfo) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.etcd.IndexParamsInfo) - MergeFrom(*source); - } -} - -void IndexParamsInfo::MergeFrom(const IndexParamsInfo& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.etcd.IndexParamsInfo) - 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_); - if (from.filedid() != 0) { - set_filedid(from.filedid()); - } -} - -void IndexParamsInfo::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.etcd.IndexParamsInfo) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void IndexParamsInfo::CopyFrom(const IndexParamsInfo& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.etcd.IndexParamsInfo) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool IndexParamsInfo::IsInitialized() const { - return true; -} - -void IndexParamsInfo::InternalSwap(IndexParamsInfo* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&index_params_)->InternalSwap(CastToBase(&other->index_params_)); - swap(filedid_, other->filedid_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata IndexParamsInfo::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void CollectionInfo::InitAsDefaultInstance() { - ::milvus::proto::etcd::_CollectionInfo_default_instance_._instance.get_mutable()->schema_ = const_cast< ::milvus::proto::schema::CollectionSchema*>( - ::milvus::proto::schema::CollectionSchema::internal_default_instance()); -} -class CollectionInfo::_Internal { - public: - static const ::milvus::proto::schema::CollectionSchema& schema(const CollectionInfo* msg); -}; - -const ::milvus::proto::schema::CollectionSchema& -CollectionInfo::_Internal::schema(const CollectionInfo* msg) { - return *msg->schema_; -} -void CollectionInfo::clear_schema() { - if (GetArenaNoVirtual() == nullptr && schema_ != nullptr) { - delete schema_; - } - schema_ = nullptr; -} -CollectionInfo::CollectionInfo() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.proto.etcd.CollectionInfo) -} -CollectionInfo::CollectionInfo(const CollectionInfo& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - partitionids_(from.partitionids_), - index_params_(from.index_params_), - index_names_(from.index_names_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_schema()) { - schema_ = new ::milvus::proto::schema::CollectionSchema(*from.schema_); - } else { - schema_ = nullptr; - } - ::memcpy(&id_, &from.id_, - static_cast(reinterpret_cast(&create_time_) - - reinterpret_cast(&id_)) + sizeof(create_time_)); - // @@protoc_insertion_point(copy_constructor:milvus.proto.etcd.CollectionInfo) -} - -void CollectionInfo::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CollectionInfo_etcd_5fmeta_2eproto.base); - ::memset(&schema_, 0, static_cast( - reinterpret_cast(&create_time_) - - reinterpret_cast(&schema_)) + sizeof(create_time_)); -} - -CollectionInfo::~CollectionInfo() { - // @@protoc_insertion_point(destructor:milvus.proto.etcd.CollectionInfo) - SharedDtor(); -} - -void CollectionInfo::SharedDtor() { - if (this != internal_default_instance()) delete schema_; -} - -void CollectionInfo::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CollectionInfo& CollectionInfo::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CollectionInfo_etcd_5fmeta_2eproto.base); - return *internal_default_instance(); -} - - -void CollectionInfo::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.proto.etcd.CollectionInfo) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - partitionids_.Clear(); - index_params_.Clear(); - index_names_.Clear(); - if (GetArenaNoVirtual() == nullptr && schema_ != nullptr) { - delete schema_; - } - schema_ = nullptr; - ::memset(&id_, 0, static_cast( - reinterpret_cast(&create_time_) - - reinterpret_cast(&id_)) + sizeof(create_time_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CollectionInfo::_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 ID = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // .milvus.proto.schema.CollectionSchema schema = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(mutable_schema(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // uint64 create_time = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - create_time_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated int64 partitionIDs = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(mutable_partitionids(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32) { - add_partitionids(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .milvus.proto.etcd.IndexParamsInfo 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; - // repeated string index_names = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { - ptr -= 1; - do { - ptr += 1; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_index_names(), ptr, ctx, "milvus.proto.etcd.CollectionInfo.index_names"); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 50); - } 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 CollectionInfo::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.CollectionInfo) - 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 ID = 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, &id_))); - } else { - goto handle_unusual; - } - break; - } - - // .milvus.proto.schema.CollectionSchema schema = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_schema())); - } else { - goto handle_unusual; - } - break; - } - - // uint64 create_time = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) { - - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - ::PROTOBUF_NAMESPACE_ID::uint64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT64>( - input, &create_time_))); - } else { - goto handle_unusual; - } - break; - } - - // repeated int64 partitionIDs = 4; - case 4: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( - input, this->mutable_partitionids()))); - } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( - 1, 34u, input, this->mutable_partitionids()))); - } else { - goto handle_unusual; - } - break; - } - - // repeated .milvus.proto.etcd.IndexParamsInfo 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; - } - - // repeated string index_names = 6; - case 6: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->add_index_names())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->index_names(this->index_names_size() - 1).data(), - static_cast(this->index_names(this->index_names_size() - 1).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.proto.etcd.CollectionInfo.index_names")); - } 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.CollectionInfo) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.proto.etcd.CollectionInfo) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void CollectionInfo::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.proto.etcd.CollectionInfo) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int64 ID = 1; - if (this->id() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->id(), output); - } - - // .milvus.proto.schema.CollectionSchema schema = 2; - if (this->has_schema()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, _Internal::schema(this), output); - } - - // uint64 create_time = 3; - if (this->create_time() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64(3, this->create_time(), output); - } - - // repeated int64 partitionIDs = 4; - if (this->partitionids_size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(4, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_partitionids_cached_byte_size_.load( - std::memory_order_relaxed)); - } - for (int i = 0, n = this->partitionids_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64NoTag( - this->partitionids(i), output); - } - - // repeated .milvus.proto.etcd.IndexParamsInfo 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); - } - - // repeated string index_names = 6; - for (int i = 0, n = this->index_names_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->index_names(i).data(), static_cast(this->index_names(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.etcd.CollectionInfo.index_names"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( - 6, this->index_names(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.CollectionInfo) -} - -::PROTOBUF_NAMESPACE_ID::uint8* CollectionInfo::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.etcd.CollectionInfo) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int64 ID = 1; - if (this->id() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->id(), target); - } - - // .milvus.proto.schema.CollectionSchema schema = 2; - if (this->has_schema()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, _Internal::schema(this), target); - } - - // uint64 create_time = 3; - if (this->create_time() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(3, this->create_time(), target); - } - - // repeated int64 partitionIDs = 4; - if (this->partitionids_size() > 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( - 4, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( - _partitionids_cached_byte_size_.load(std::memory_order_relaxed), - target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteInt64NoTagToArray(this->partitionids_, target); - } - - // repeated .milvus.proto.etcd.IndexParamsInfo 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); - } - - // repeated string index_names = 6; - for (int i = 0, n = this->index_names_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->index_names(i).data(), static_cast(this->index_names(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.etcd.CollectionInfo.index_names"); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteStringToArray(6, this->index_names(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.CollectionInfo) - return target; -} - -size_t CollectionInfo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.proto.etcd.CollectionInfo) - 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 int64 partitionIDs = 4; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int64Size(this->partitionids_); - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _partitionids_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // repeated .milvus.proto.etcd.IndexParamsInfo 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_names = 6; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->index_names_size()); - for (int i = 0, n = this->index_names_size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->index_names(i)); - } - - // .milvus.proto.schema.CollectionSchema schema = 2; - if (this->has_schema()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *schema_); - } - - // int64 ID = 1; - if (this->id() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->id()); - } - - // uint64 create_time = 3; - if (this->create_time() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->create_time()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CollectionInfo::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.etcd.CollectionInfo) - GOOGLE_DCHECK_NE(&from, this); - const CollectionInfo* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.etcd.CollectionInfo) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.etcd.CollectionInfo) - MergeFrom(*source); - } -} - -void CollectionInfo::MergeFrom(const CollectionInfo& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.etcd.CollectionInfo) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - partitionids_.MergeFrom(from.partitionids_); - index_params_.MergeFrom(from.index_params_); - index_names_.MergeFrom(from.index_names_); - if (from.has_schema()) { - mutable_schema()->::milvus::proto::schema::CollectionSchema::MergeFrom(from.schema()); - } - if (from.id() != 0) { - set_id(from.id()); - } - if (from.create_time() != 0) { - set_create_time(from.create_time()); - } -} - -void CollectionInfo::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.etcd.CollectionInfo) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CollectionInfo::CopyFrom(const CollectionInfo& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.etcd.CollectionInfo) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CollectionInfo::IsInitialized() const { - return true; -} - -void CollectionInfo::InternalSwap(CollectionInfo* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - partitionids_.InternalSwap(&other->partitionids_); - CastToBase(&index_params_)->InternalSwap(CastToBase(&other->index_params_)); - index_names_.InternalSwap(CastToBase(&other->index_names_)); - swap(schema_, other->schema_); - swap(id_, other->id_); - swap(create_time_, other->create_time_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata CollectionInfo::GetMetadata() const { - return GetMetadataStatic(); -} - - // =================================================================== void IndexInfo::InitAsDefaultInstance() { @@ -2849,6 +1994,803 @@ void IndexInfo::InternalSwap(IndexInfo* other) { } +// =================================================================== + +void FieldIndexInfo::InitAsDefaultInstance() { + ::milvus::proto::etcd::_FieldIndexInfo_default_instance_._instance.get_mutable()->index_info_ = const_cast< ::milvus::proto::etcd::IndexInfo*>( + ::milvus::proto::etcd::IndexInfo::internal_default_instance()); +} +class FieldIndexInfo::_Internal { + public: + static const ::milvus::proto::etcd::IndexInfo& index_info(const FieldIndexInfo* msg); +}; + +const ::milvus::proto::etcd::IndexInfo& +FieldIndexInfo::_Internal::index_info(const FieldIndexInfo* msg) { + return *msg->index_info_; +} +FieldIndexInfo::FieldIndexInfo() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.etcd.FieldIndexInfo) +} +FieldIndexInfo::FieldIndexInfo(const FieldIndexInfo& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_index_info()) { + index_info_ = new ::milvus::proto::etcd::IndexInfo(*from.index_info_); + } else { + index_info_ = nullptr; + } + filedid_ = from.filedid_; + // @@protoc_insertion_point(copy_constructor:milvus.proto.etcd.FieldIndexInfo) +} + +void FieldIndexInfo::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_FieldIndexInfo_etcd_5fmeta_2eproto.base); + ::memset(&index_info_, 0, static_cast( + reinterpret_cast(&filedid_) - + reinterpret_cast(&index_info_)) + sizeof(filedid_)); +} + +FieldIndexInfo::~FieldIndexInfo() { + // @@protoc_insertion_point(destructor:milvus.proto.etcd.FieldIndexInfo) + SharedDtor(); +} + +void FieldIndexInfo::SharedDtor() { + if (this != internal_default_instance()) delete index_info_; +} + +void FieldIndexInfo::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const FieldIndexInfo& FieldIndexInfo::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FieldIndexInfo_etcd_5fmeta_2eproto.base); + return *internal_default_instance(); +} + + +void FieldIndexInfo::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.etcd.FieldIndexInfo) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && index_info_ != nullptr) { + delete index_info_; + } + index_info_ = nullptr; + filedid_ = PROTOBUF_LONGLONG(0); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* FieldIndexInfo::_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 filedID = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + filedid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .milvus.proto.etcd.IndexInfo index_info = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(mutable_index_info(), 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 FieldIndexInfo::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.FieldIndexInfo) + 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 filedID = 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, &filedid_))); + } else { + goto handle_unusual; + } + break; + } + + // .milvus.proto.etcd.IndexInfo index_info = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_index_info())); + } 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.FieldIndexInfo) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.etcd.FieldIndexInfo) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void FieldIndexInfo::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.etcd.FieldIndexInfo) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 filedID = 1; + if (this->filedid() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->filedid(), output); + } + + // .milvus.proto.etcd.IndexInfo index_info = 2; + if (this->has_index_info()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, _Internal::index_info(this), 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.FieldIndexInfo) +} + +::PROTOBUF_NAMESPACE_ID::uint8* FieldIndexInfo::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.etcd.FieldIndexInfo) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 filedID = 1; + if (this->filedid() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->filedid(), target); + } + + // .milvus.proto.etcd.IndexInfo index_info = 2; + if (this->has_index_info()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, _Internal::index_info(this), 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.FieldIndexInfo) + return target; +} + +size_t FieldIndexInfo::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.etcd.FieldIndexInfo) + 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.etcd.IndexInfo index_info = 2; + if (this->has_index_info()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *index_info_); + } + + // int64 filedID = 1; + if (this->filedid() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->filedid()); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void FieldIndexInfo::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.etcd.FieldIndexInfo) + GOOGLE_DCHECK_NE(&from, this); + const FieldIndexInfo* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.etcd.FieldIndexInfo) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.etcd.FieldIndexInfo) + MergeFrom(*source); + } +} + +void FieldIndexInfo::MergeFrom(const FieldIndexInfo& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.etcd.FieldIndexInfo) + 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_index_info()) { + mutable_index_info()->::milvus::proto::etcd::IndexInfo::MergeFrom(from.index_info()); + } + if (from.filedid() != 0) { + set_filedid(from.filedid()); + } +} + +void FieldIndexInfo::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.etcd.FieldIndexInfo) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void FieldIndexInfo::CopyFrom(const FieldIndexInfo& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.etcd.FieldIndexInfo) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FieldIndexInfo::IsInitialized() const { + return true; +} + +void FieldIndexInfo::InternalSwap(FieldIndexInfo* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(index_info_, other->index_info_); + swap(filedid_, other->filedid_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata FieldIndexInfo::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void CollectionInfo::InitAsDefaultInstance() { + ::milvus::proto::etcd::_CollectionInfo_default_instance_._instance.get_mutable()->schema_ = const_cast< ::milvus::proto::schema::CollectionSchema*>( + ::milvus::proto::schema::CollectionSchema::internal_default_instance()); +} +class CollectionInfo::_Internal { + public: + static const ::milvus::proto::schema::CollectionSchema& schema(const CollectionInfo* msg); +}; + +const ::milvus::proto::schema::CollectionSchema& +CollectionInfo::_Internal::schema(const CollectionInfo* msg) { + return *msg->schema_; +} +void CollectionInfo::clear_schema() { + if (GetArenaNoVirtual() == nullptr && schema_ != nullptr) { + delete schema_; + } + schema_ = nullptr; +} +CollectionInfo::CollectionInfo() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.proto.etcd.CollectionInfo) +} +CollectionInfo::CollectionInfo(const CollectionInfo& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr), + partitionids_(from.partitionids_), + field_indexes_(from.field_indexes_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_schema()) { + schema_ = new ::milvus::proto::schema::CollectionSchema(*from.schema_); + } else { + schema_ = nullptr; + } + ::memcpy(&id_, &from.id_, + static_cast(reinterpret_cast(&create_time_) - + reinterpret_cast(&id_)) + sizeof(create_time_)); + // @@protoc_insertion_point(copy_constructor:milvus.proto.etcd.CollectionInfo) +} + +void CollectionInfo::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CollectionInfo_etcd_5fmeta_2eproto.base); + ::memset(&schema_, 0, static_cast( + reinterpret_cast(&create_time_) - + reinterpret_cast(&schema_)) + sizeof(create_time_)); +} + +CollectionInfo::~CollectionInfo() { + // @@protoc_insertion_point(destructor:milvus.proto.etcd.CollectionInfo) + SharedDtor(); +} + +void CollectionInfo::SharedDtor() { + if (this != internal_default_instance()) delete schema_; +} + +void CollectionInfo::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CollectionInfo& CollectionInfo::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CollectionInfo_etcd_5fmeta_2eproto.base); + return *internal_default_instance(); +} + + +void CollectionInfo::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.proto.etcd.CollectionInfo) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + partitionids_.Clear(); + field_indexes_.Clear(); + if (GetArenaNoVirtual() == nullptr && schema_ != nullptr) { + delete schema_; + } + schema_ = nullptr; + ::memset(&id_, 0, static_cast( + reinterpret_cast(&create_time_) - + reinterpret_cast(&id_)) + sizeof(create_time_)); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CollectionInfo::_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 ID = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .milvus.proto.schema.CollectionSchema schema = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(mutable_schema(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // uint64 create_time = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + create_time_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated int64 partitionIDs = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(mutable_partitionids(), ptr, ctx); + CHK_(ptr); + } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32) { + add_partitionids(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); + CHK_(ptr); + } else goto handle_unusual; + continue; + // repeated .milvus.proto.etcd.FieldIndexInfo field_indexes = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(add_field_indexes(), 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; + 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 CollectionInfo::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.CollectionInfo) + 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 ID = 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, &id_))); + } else { + goto handle_unusual; + } + break; + } + + // .milvus.proto.schema.CollectionSchema schema = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_schema())); + } else { + goto handle_unusual; + } + break; + } + + // uint64 create_time = 3; + case 3: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) { + + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::uint64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT64>( + input, &create_time_))); + } else { + goto handle_unusual; + } + break; + } + + // repeated int64 partitionIDs = 4; + case 4: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + input, this->mutable_partitionids()))); + } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + 1, 34u, input, this->mutable_partitionids()))); + } else { + goto handle_unusual; + } + break; + } + + // repeated .milvus.proto.etcd.FieldIndexInfo field_indexes = 5; + case 5: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, add_field_indexes())); + } 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.CollectionInfo) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.proto.etcd.CollectionInfo) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void CollectionInfo::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.proto.etcd.CollectionInfo) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 ID = 1; + if (this->id() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->id(), output); + } + + // .milvus.proto.schema.CollectionSchema schema = 2; + if (this->has_schema()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, _Internal::schema(this), output); + } + + // uint64 create_time = 3; + if (this->create_time() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64(3, this->create_time(), output); + } + + // repeated int64 partitionIDs = 4; + if (this->partitionids_size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(4, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); + output->WriteVarint32(_partitionids_cached_byte_size_.load( + std::memory_order_relaxed)); + } + for (int i = 0, n = this->partitionids_size(); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64NoTag( + this->partitionids(i), output); + } + + // repeated .milvus.proto.etcd.FieldIndexInfo field_indexes = 5; + for (unsigned int i = 0, + n = static_cast(this->field_indexes_size()); i < n; i++) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 5, + this->field_indexes(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.etcd.CollectionInfo) +} + +::PROTOBUF_NAMESPACE_ID::uint8* CollectionInfo::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.etcd.CollectionInfo) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // int64 ID = 1; + if (this->id() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->id(), target); + } + + // .milvus.proto.schema.CollectionSchema schema = 2; + if (this->has_schema()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, _Internal::schema(this), target); + } + + // uint64 create_time = 3; + if (this->create_time() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(3, this->create_time(), target); + } + + // repeated int64 partitionIDs = 4; + if (this->partitionids_size() > 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( + 4, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + target); + target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( + _partitionids_cached_byte_size_.load(std::memory_order_relaxed), + target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + WriteInt64NoTagToArray(this->partitionids_, target); + } + + // repeated .milvus.proto.etcd.FieldIndexInfo field_indexes = 5; + for (unsigned int i = 0, + n = static_cast(this->field_indexes_size()); i < n; i++) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 5, this->field_indexes(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.etcd.CollectionInfo) + return target; +} + +size_t CollectionInfo::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.proto.etcd.CollectionInfo) + 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 int64 partitionIDs = 4; + { + size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + Int64Size(this->partitionids_); + if (data_size > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); + _partitionids_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; + } + + // repeated .milvus.proto.etcd.FieldIndexInfo field_indexes = 5; + { + unsigned int count = static_cast(this->field_indexes_size()); + total_size += 1UL * count; + for (unsigned int i = 0; i < count; i++) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + this->field_indexes(static_cast(i))); + } + } + + // .milvus.proto.schema.CollectionSchema schema = 2; + if (this->has_schema()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *schema_); + } + + // int64 ID = 1; + if (this->id() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->id()); + } + + // uint64 create_time = 3; + if (this->create_time() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( + this->create_time()); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CollectionInfo::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.etcd.CollectionInfo) + GOOGLE_DCHECK_NE(&from, this); + const CollectionInfo* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.etcd.CollectionInfo) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.etcd.CollectionInfo) + MergeFrom(*source); + } +} + +void CollectionInfo::MergeFrom(const CollectionInfo& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.etcd.CollectionInfo) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + partitionids_.MergeFrom(from.partitionids_); + field_indexes_.MergeFrom(from.field_indexes_); + if (from.has_schema()) { + mutable_schema()->::milvus::proto::schema::CollectionSchema::MergeFrom(from.schema()); + } + if (from.id() != 0) { + set_id(from.id()); + } + if (from.create_time() != 0) { + set_create_time(from.create_time()); + } +} + +void CollectionInfo::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.etcd.CollectionInfo) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CollectionInfo::CopyFrom(const CollectionInfo& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.etcd.CollectionInfo) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CollectionInfo::IsInitialized() const { + return true; +} + +void CollectionInfo::InternalSwap(CollectionInfo* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + partitionids_.InternalSwap(&other->partitionids_); + CastToBase(&field_indexes_)->InternalSwap(CastToBase(&other->field_indexes_)); + swap(schema_, other->schema_); + swap(id_, other->id_); + swap(create_time_, other->create_time_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CollectionInfo::GetMetadata() const { + return GetMetadataStatic(); +} + + // =================================================================== void SegmentIndexInfo::InitAsDefaultInstance() { @@ -5272,15 +5214,15 @@ template<> PROTOBUF_NOINLINE ::milvus::proto::etcd::ProxyMeta* Arena::CreateMayb template<> PROTOBUF_NOINLINE ::milvus::proto::etcd::PartitionInfo* Arena::CreateMaybeMessage< ::milvus::proto::etcd::PartitionInfo >(Arena* arena) { return Arena::CreateInternal< ::milvus::proto::etcd::PartitionInfo >(arena); } -template<> PROTOBUF_NOINLINE ::milvus::proto::etcd::IndexParamsInfo* Arena::CreateMaybeMessage< ::milvus::proto::etcd::IndexParamsInfo >(Arena* arena) { - return Arena::CreateInternal< ::milvus::proto::etcd::IndexParamsInfo >(arena); +template<> PROTOBUF_NOINLINE ::milvus::proto::etcd::IndexInfo* Arena::CreateMaybeMessage< ::milvus::proto::etcd::IndexInfo >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::etcd::IndexInfo >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::proto::etcd::FieldIndexInfo* Arena::CreateMaybeMessage< ::milvus::proto::etcd::FieldIndexInfo >(Arena* arena) { + return Arena::CreateInternal< ::milvus::proto::etcd::FieldIndexInfo >(arena); } template<> PROTOBUF_NOINLINE ::milvus::proto::etcd::CollectionInfo* Arena::CreateMaybeMessage< ::milvus::proto::etcd::CollectionInfo >(Arena* arena) { return Arena::CreateInternal< ::milvus::proto::etcd::CollectionInfo >(arena); } -template<> PROTOBUF_NOINLINE ::milvus::proto::etcd::IndexInfo* Arena::CreateMaybeMessage< ::milvus::proto::etcd::IndexInfo >(Arena* arena) { - return Arena::CreateInternal< ::milvus::proto::etcd::IndexInfo >(arena); -} template<> PROTOBUF_NOINLINE ::milvus::proto::etcd::SegmentIndexInfo* Arena::CreateMaybeMessage< ::milvus::proto::etcd::SegmentIndexInfo >(Arena* arena) { return Arena::CreateInternal< ::milvus::proto::etcd::SegmentIndexInfo >(arena); } diff --git a/internal/core/src/pb/etcd_meta.pb.h b/internal/core/src/pb/etcd_meta.pb.h index d81298c6fb..642ff7261a 100644 --- a/internal/core/src/pb/etcd_meta.pb.h +++ b/internal/core/src/pb/etcd_meta.pb.h @@ -68,15 +68,15 @@ extern CollectionMetaDefaultTypeInternal _CollectionMeta_default_instance_; class FieldBinlogFiles; class FieldBinlogFilesDefaultTypeInternal; extern FieldBinlogFilesDefaultTypeInternal _FieldBinlogFiles_default_instance_; +class FieldIndexInfo; +class FieldIndexInfoDefaultTypeInternal; +extern FieldIndexInfoDefaultTypeInternal _FieldIndexInfo_default_instance_; class FieldIndexMeta; class FieldIndexMetaDefaultTypeInternal; extern FieldIndexMetaDefaultTypeInternal _FieldIndexMeta_default_instance_; class IndexInfo; class IndexInfoDefaultTypeInternal; extern IndexInfoDefaultTypeInternal _IndexInfo_default_instance_; -class IndexParamsInfo; -class IndexParamsInfoDefaultTypeInternal; -extern IndexParamsInfoDefaultTypeInternal _IndexParamsInfo_default_instance_; class PartitionInfo; class PartitionInfoDefaultTypeInternal; extern PartitionInfoDefaultTypeInternal _PartitionInfo_default_instance_; @@ -99,9 +99,9 @@ PROTOBUF_NAMESPACE_OPEN template<> ::milvus::proto::etcd::CollectionInfo* Arena::CreateMaybeMessage<::milvus::proto::etcd::CollectionInfo>(Arena*); 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::FieldIndexInfo* Arena::CreateMaybeMessage<::milvus::proto::etcd::FieldIndexInfo>(Arena*); template<> ::milvus::proto::etcd::FieldIndexMeta* Arena::CreateMaybeMessage<::milvus::proto::etcd::FieldIndexMeta>(Arena*); template<> ::milvus::proto::etcd::IndexInfo* Arena::CreateMaybeMessage<::milvus::proto::etcd::IndexInfo>(Arena*); -template<> ::milvus::proto::etcd::IndexParamsInfo* Arena::CreateMaybeMessage<::milvus::proto::etcd::IndexParamsInfo>(Arena*); template<> ::milvus::proto::etcd::PartitionInfo* Arena::CreateMaybeMessage<::milvus::proto::etcd::PartitionInfo>(Arena*); template<> ::milvus::proto::etcd::ProxyMeta* Arena::CreateMaybeMessage<::milvus::proto::etcd::ProxyMeta>(Arena*); template<> ::milvus::proto::etcd::SegmentIndexInfo* Arena::CreateMaybeMessage<::milvus::proto::etcd::SegmentIndexInfo>(Arena*); @@ -602,344 +602,6 @@ class PartitionInfo : }; // ------------------------------------------------------------------- -class IndexParamsInfo : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.etcd.IndexParamsInfo) */ { - public: - IndexParamsInfo(); - virtual ~IndexParamsInfo(); - - IndexParamsInfo(const IndexParamsInfo& from); - IndexParamsInfo(IndexParamsInfo&& from) noexcept - : IndexParamsInfo() { - *this = ::std::move(from); - } - - inline IndexParamsInfo& operator=(const IndexParamsInfo& from) { - CopyFrom(from); - return *this; - } - inline IndexParamsInfo& operator=(IndexParamsInfo&& 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 IndexParamsInfo& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const IndexParamsInfo* internal_default_instance() { - return reinterpret_cast( - &_IndexParamsInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(IndexParamsInfo& a, IndexParamsInfo& b) { - a.Swap(&b); - } - inline void Swap(IndexParamsInfo* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline IndexParamsInfo* New() const final { - return CreateMaybeMessage(nullptr); - } - - IndexParamsInfo* 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 IndexParamsInfo& from); - void MergeFrom(const IndexParamsInfo& 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(IndexParamsInfo* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.proto.etcd.IndexParamsInfo"; - } - 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 = 2, - kFiledIDFieldNumber = 1, - }; - // repeated .milvus.proto.common.KeyValuePair index_params = 2; - 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; - - // int64 filedID = 1; - void clear_filedid(); - ::PROTOBUF_NAMESPACE_ID::int64 filedid() const; - void set_filedid(::PROTOBUF_NAMESPACE_ID::int64 value); - - // @@protoc_insertion_point(class_scope:milvus.proto.etcd.IndexParamsInfo) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair > index_params_; - ::PROTOBUF_NAMESPACE_ID::int64 filedid_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_etcd_5fmeta_2eproto; -}; -// ------------------------------------------------------------------- - -class CollectionInfo : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.etcd.CollectionInfo) */ { - public: - CollectionInfo(); - virtual ~CollectionInfo(); - - CollectionInfo(const CollectionInfo& from); - CollectionInfo(CollectionInfo&& from) noexcept - : CollectionInfo() { - *this = ::std::move(from); - } - - inline CollectionInfo& operator=(const CollectionInfo& from) { - CopyFrom(from); - return *this; - } - inline CollectionInfo& operator=(CollectionInfo&& 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 CollectionInfo& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CollectionInfo* internal_default_instance() { - return reinterpret_cast( - &_CollectionInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - friend void swap(CollectionInfo& a, CollectionInfo& b) { - a.Swap(&b); - } - inline void Swap(CollectionInfo* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline CollectionInfo* New() const final { - return CreateMaybeMessage(nullptr); - } - - CollectionInfo* 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 CollectionInfo& from); - void MergeFrom(const CollectionInfo& 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(CollectionInfo* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.proto.etcd.CollectionInfo"; - } - 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 { - kPartitionIDsFieldNumber = 4, - kIndexParamsFieldNumber = 5, - kIndexNamesFieldNumber = 6, - kSchemaFieldNumber = 2, - kIDFieldNumber = 1, - kCreateTimeFieldNumber = 3, - }; - // repeated int64 partitionIDs = 4; - int partitionids_size() const; - void clear_partitionids(); - ::PROTOBUF_NAMESPACE_ID::int64 partitionids(int index) const; - void set_partitionids(int index, ::PROTOBUF_NAMESPACE_ID::int64 value); - void add_partitionids(::PROTOBUF_NAMESPACE_ID::int64 value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& - partitionids() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* - mutable_partitionids(); - - // repeated .milvus.proto.etcd.IndexParamsInfo index_params = 5; - int index_params_size() const; - void clear_index_params(); - ::milvus::proto::etcd::IndexParamsInfo* mutable_index_params(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::etcd::IndexParamsInfo >* - mutable_index_params(); - const ::milvus::proto::etcd::IndexParamsInfo& index_params(int index) const; - ::milvus::proto::etcd::IndexParamsInfo* add_index_params(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::etcd::IndexParamsInfo >& - index_params() const; - - // repeated string index_names = 6; - int index_names_size() const; - void clear_index_names(); - const std::string& index_names(int index) const; - std::string* mutable_index_names(int index); - void set_index_names(int index, const std::string& value); - void set_index_names(int index, std::string&& value); - void set_index_names(int index, const char* value); - void set_index_names(int index, const char* value, size_t size); - std::string* add_index_names(); - void add_index_names(const std::string& value); - void add_index_names(std::string&& value); - void add_index_names(const char* value); - void add_index_names(const char* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& index_names() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_index_names(); - - // .milvus.proto.schema.CollectionSchema schema = 2; - bool has_schema() const; - void clear_schema(); - const ::milvus::proto::schema::CollectionSchema& schema() const; - ::milvus::proto::schema::CollectionSchema* release_schema(); - ::milvus::proto::schema::CollectionSchema* mutable_schema(); - void set_allocated_schema(::milvus::proto::schema::CollectionSchema* schema); - - // int64 ID = 1; - void clear_id(); - ::PROTOBUF_NAMESPACE_ID::int64 id() const; - void set_id(::PROTOBUF_NAMESPACE_ID::int64 value); - - // uint64 create_time = 3; - void clear_create_time(); - ::PROTOBUF_NAMESPACE_ID::uint64 create_time() const; - void set_create_time(::PROTOBUF_NAMESPACE_ID::uint64 value); - - // @@protoc_insertion_point(class_scope:milvus.proto.etcd.CollectionInfo) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > partitionids_; - mutable std::atomic _partitionids_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::etcd::IndexParamsInfo > index_params_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField index_names_; - ::milvus::proto::schema::CollectionSchema* schema_; - ::PROTOBUF_NAMESPACE_ID::int64 id_; - ::PROTOBUF_NAMESPACE_ID::uint64 create_time_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_etcd_5fmeta_2eproto; -}; -// ------------------------------------------------------------------- - class IndexInfo : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.etcd.IndexInfo) */ { public: @@ -982,7 +644,7 @@ class IndexInfo : &_IndexInfo_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 3; friend void swap(IndexInfo& a, IndexInfo& b) { a.Swap(&b); @@ -1097,6 +759,322 @@ class IndexInfo : }; // ------------------------------------------------------------------- +class FieldIndexInfo : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.etcd.FieldIndexInfo) */ { + public: + FieldIndexInfo(); + virtual ~FieldIndexInfo(); + + FieldIndexInfo(const FieldIndexInfo& from); + FieldIndexInfo(FieldIndexInfo&& from) noexcept + : FieldIndexInfo() { + *this = ::std::move(from); + } + + inline FieldIndexInfo& operator=(const FieldIndexInfo& from) { + CopyFrom(from); + return *this; + } + inline FieldIndexInfo& operator=(FieldIndexInfo&& 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 FieldIndexInfo& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const FieldIndexInfo* internal_default_instance() { + return reinterpret_cast( + &_FieldIndexInfo_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(FieldIndexInfo& a, FieldIndexInfo& b) { + a.Swap(&b); + } + inline void Swap(FieldIndexInfo* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline FieldIndexInfo* New() const final { + return CreateMaybeMessage(nullptr); + } + + FieldIndexInfo* 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 FieldIndexInfo& from); + void MergeFrom(const FieldIndexInfo& 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(FieldIndexInfo* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.etcd.FieldIndexInfo"; + } + 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 { + kIndexInfoFieldNumber = 2, + kFiledIDFieldNumber = 1, + }; + // .milvus.proto.etcd.IndexInfo index_info = 2; + bool has_index_info() const; + void clear_index_info(); + const ::milvus::proto::etcd::IndexInfo& index_info() const; + ::milvus::proto::etcd::IndexInfo* release_index_info(); + ::milvus::proto::etcd::IndexInfo* mutable_index_info(); + void set_allocated_index_info(::milvus::proto::etcd::IndexInfo* index_info); + + // int64 filedID = 1; + void clear_filedid(); + ::PROTOBUF_NAMESPACE_ID::int64 filedid() const; + void set_filedid(::PROTOBUF_NAMESPACE_ID::int64 value); + + // @@protoc_insertion_point(class_scope:milvus.proto.etcd.FieldIndexInfo) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::milvus::proto::etcd::IndexInfo* index_info_; + ::PROTOBUF_NAMESPACE_ID::int64 filedid_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_etcd_5fmeta_2eproto; +}; +// ------------------------------------------------------------------- + +class CollectionInfo : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.etcd.CollectionInfo) */ { + public: + CollectionInfo(); + virtual ~CollectionInfo(); + + CollectionInfo(const CollectionInfo& from); + CollectionInfo(CollectionInfo&& from) noexcept + : CollectionInfo() { + *this = ::std::move(from); + } + + inline CollectionInfo& operator=(const CollectionInfo& from) { + CopyFrom(from); + return *this; + } + inline CollectionInfo& operator=(CollectionInfo&& 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 CollectionInfo& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CollectionInfo* internal_default_instance() { + return reinterpret_cast( + &_CollectionInfo_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(CollectionInfo& a, CollectionInfo& b) { + a.Swap(&b); + } + inline void Swap(CollectionInfo* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline CollectionInfo* New() const final { + return CreateMaybeMessage(nullptr); + } + + CollectionInfo* 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 CollectionInfo& from); + void MergeFrom(const CollectionInfo& 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(CollectionInfo* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.proto.etcd.CollectionInfo"; + } + 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 { + kPartitionIDsFieldNumber = 4, + kFieldIndexesFieldNumber = 5, + kSchemaFieldNumber = 2, + kIDFieldNumber = 1, + kCreateTimeFieldNumber = 3, + }; + // repeated int64 partitionIDs = 4; + int partitionids_size() const; + void clear_partitionids(); + ::PROTOBUF_NAMESPACE_ID::int64 partitionids(int index) const; + void set_partitionids(int index, ::PROTOBUF_NAMESPACE_ID::int64 value); + void add_partitionids(::PROTOBUF_NAMESPACE_ID::int64 value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& + partitionids() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* + mutable_partitionids(); + + // repeated .milvus.proto.etcd.FieldIndexInfo field_indexes = 5; + int field_indexes_size() const; + void clear_field_indexes(); + ::milvus::proto::etcd::FieldIndexInfo* mutable_field_indexes(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::etcd::FieldIndexInfo >* + mutable_field_indexes(); + const ::milvus::proto::etcd::FieldIndexInfo& field_indexes(int index) const; + ::milvus::proto::etcd::FieldIndexInfo* add_field_indexes(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::etcd::FieldIndexInfo >& + field_indexes() const; + + // .milvus.proto.schema.CollectionSchema schema = 2; + bool has_schema() const; + void clear_schema(); + const ::milvus::proto::schema::CollectionSchema& schema() const; + ::milvus::proto::schema::CollectionSchema* release_schema(); + ::milvus::proto::schema::CollectionSchema* mutable_schema(); + void set_allocated_schema(::milvus::proto::schema::CollectionSchema* schema); + + // int64 ID = 1; + void clear_id(); + ::PROTOBUF_NAMESPACE_ID::int64 id() const; + void set_id(::PROTOBUF_NAMESPACE_ID::int64 value); + + // uint64 create_time = 3; + void clear_create_time(); + ::PROTOBUF_NAMESPACE_ID::uint64 create_time() const; + void set_create_time(::PROTOBUF_NAMESPACE_ID::uint64 value); + + // @@protoc_insertion_point(class_scope:milvus.proto.etcd.CollectionInfo) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > partitionids_; + mutable std::atomic _partitionids_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::etcd::FieldIndexInfo > field_indexes_; + ::milvus::proto::schema::CollectionSchema* schema_; + ::PROTOBUF_NAMESPACE_ID::int64 id_; + ::PROTOBUF_NAMESPACE_ID::uint64 create_time_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_etcd_5fmeta_2eproto; +}; +// ------------------------------------------------------------------- + class SegmentIndexInfo : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.etcd.SegmentIndexInfo) */ { public: @@ -2366,51 +2344,171 @@ PartitionInfo::mutable_segmentids() { // ------------------------------------------------------------------- -// IndexParamsInfo +// IndexInfo -// int64 filedID = 1; -inline void IndexParamsInfo::clear_filedid() { - filedid_ = PROTOBUF_LONGLONG(0); +// string index_name = 1; +inline void IndexInfo::clear_index_name() { + index_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::PROTOBUF_NAMESPACE_ID::int64 IndexParamsInfo::filedid() const { - // @@protoc_insertion_point(field_get:milvus.proto.etcd.IndexParamsInfo.filedID) - return filedid_; +inline const std::string& IndexInfo::index_name() const { + // @@protoc_insertion_point(field_get:milvus.proto.etcd.IndexInfo.index_name) + return index_name_.GetNoArena(); } -inline void IndexParamsInfo::set_filedid(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline void IndexInfo::set_index_name(const std::string& value) { - filedid_ = value; - // @@protoc_insertion_point(field_set:milvus.proto.etcd.IndexParamsInfo.filedID) + index_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.proto.etcd.IndexInfo.index_name) +} +inline void IndexInfo::set_index_name(std::string&& value) { + + index_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.proto.etcd.IndexInfo.index_name) +} +inline void IndexInfo::set_index_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + index_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.proto.etcd.IndexInfo.index_name) +} +inline void IndexInfo::set_index_name(const char* value, size_t size) { + + index_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.proto.etcd.IndexInfo.index_name) +} +inline std::string* IndexInfo::mutable_index_name() { + + // @@protoc_insertion_point(field_mutable:milvus.proto.etcd.IndexInfo.index_name) + return index_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* IndexInfo::release_index_name() { + // @@protoc_insertion_point(field_release:milvus.proto.etcd.IndexInfo.index_name) + + return index_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void IndexInfo::set_allocated_index_name(std::string* index_name) { + if (index_name != nullptr) { + + } else { + + } + index_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), index_name); + // @@protoc_insertion_point(field_set_allocated:milvus.proto.etcd.IndexInfo.index_name) } -// repeated .milvus.proto.common.KeyValuePair index_params = 2; -inline int IndexParamsInfo::index_params_size() const { +// int64 indexID = 2; +inline void IndexInfo::clear_indexid() { + indexid_ = PROTOBUF_LONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 IndexInfo::indexid() const { + // @@protoc_insertion_point(field_get:milvus.proto.etcd.IndexInfo.indexID) + return indexid_; +} +inline void IndexInfo::set_indexid(::PROTOBUF_NAMESPACE_ID::int64 value) { + + indexid_ = value; + // @@protoc_insertion_point(field_set:milvus.proto.etcd.IndexInfo.indexID) +} + +// repeated .milvus.proto.common.KeyValuePair index_params = 3; +inline int IndexInfo::index_params_size() const { return index_params_.size(); } -inline ::milvus::proto::common::KeyValuePair* IndexParamsInfo::mutable_index_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.proto.etcd.IndexParamsInfo.index_params) +inline ::milvus::proto::common::KeyValuePair* IndexInfo::mutable_index_params(int index) { + // @@protoc_insertion_point(field_mutable:milvus.proto.etcd.IndexInfo.index_params) return index_params_.Mutable(index); } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >* -IndexParamsInfo::mutable_index_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.proto.etcd.IndexParamsInfo.index_params) +IndexInfo::mutable_index_params() { + // @@protoc_insertion_point(field_mutable_list:milvus.proto.etcd.IndexInfo.index_params) return &index_params_; } -inline const ::milvus::proto::common::KeyValuePair& IndexParamsInfo::index_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.proto.etcd.IndexParamsInfo.index_params) +inline const ::milvus::proto::common::KeyValuePair& IndexInfo::index_params(int index) const { + // @@protoc_insertion_point(field_get:milvus.proto.etcd.IndexInfo.index_params) return index_params_.Get(index); } -inline ::milvus::proto::common::KeyValuePair* IndexParamsInfo::add_index_params() { - // @@protoc_insertion_point(field_add:milvus.proto.etcd.IndexParamsInfo.index_params) +inline ::milvus::proto::common::KeyValuePair* IndexInfo::add_index_params() { + // @@protoc_insertion_point(field_add:milvus.proto.etcd.IndexInfo.index_params) return index_params_.Add(); } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >& -IndexParamsInfo::index_params() const { - // @@protoc_insertion_point(field_list:milvus.proto.etcd.IndexParamsInfo.index_params) +IndexInfo::index_params() const { + // @@protoc_insertion_point(field_list:milvus.proto.etcd.IndexInfo.index_params) return index_params_; } // ------------------------------------------------------------------- +// FieldIndexInfo + +// int64 filedID = 1; +inline void FieldIndexInfo::clear_filedid() { + filedid_ = PROTOBUF_LONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 FieldIndexInfo::filedid() const { + // @@protoc_insertion_point(field_get:milvus.proto.etcd.FieldIndexInfo.filedID) + return filedid_; +} +inline void FieldIndexInfo::set_filedid(::PROTOBUF_NAMESPACE_ID::int64 value) { + + filedid_ = value; + // @@protoc_insertion_point(field_set:milvus.proto.etcd.FieldIndexInfo.filedID) +} + +// .milvus.proto.etcd.IndexInfo index_info = 2; +inline bool FieldIndexInfo::has_index_info() const { + return this != internal_default_instance() && index_info_ != nullptr; +} +inline void FieldIndexInfo::clear_index_info() { + if (GetArenaNoVirtual() == nullptr && index_info_ != nullptr) { + delete index_info_; + } + index_info_ = nullptr; +} +inline const ::milvus::proto::etcd::IndexInfo& FieldIndexInfo::index_info() const { + const ::milvus::proto::etcd::IndexInfo* p = index_info_; + // @@protoc_insertion_point(field_get:milvus.proto.etcd.FieldIndexInfo.index_info) + return p != nullptr ? *p : *reinterpret_cast( + &::milvus::proto::etcd::_IndexInfo_default_instance_); +} +inline ::milvus::proto::etcd::IndexInfo* FieldIndexInfo::release_index_info() { + // @@protoc_insertion_point(field_release:milvus.proto.etcd.FieldIndexInfo.index_info) + + ::milvus::proto::etcd::IndexInfo* temp = index_info_; + index_info_ = nullptr; + return temp; +} +inline ::milvus::proto::etcd::IndexInfo* FieldIndexInfo::mutable_index_info() { + + if (index_info_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::proto::etcd::IndexInfo>(GetArenaNoVirtual()); + index_info_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.proto.etcd.FieldIndexInfo.index_info) + return index_info_; +} +inline void FieldIndexInfo::set_allocated_index_info(::milvus::proto::etcd::IndexInfo* index_info) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete index_info_; + } + if (index_info) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + index_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, index_info, submessage_arena); + } + + } else { + + } + index_info_ = index_info; + // @@protoc_insertion_point(field_set_allocated:milvus.proto.etcd.FieldIndexInfo.index_info) +} + +// ------------------------------------------------------------------- + // CollectionInfo // int64 ID = 1; @@ -2516,195 +2614,34 @@ CollectionInfo::mutable_partitionids() { return &partitionids_; } -// repeated .milvus.proto.etcd.IndexParamsInfo index_params = 5; -inline int CollectionInfo::index_params_size() const { - return index_params_.size(); +// repeated .milvus.proto.etcd.FieldIndexInfo field_indexes = 5; +inline int CollectionInfo::field_indexes_size() const { + return field_indexes_.size(); } -inline void CollectionInfo::clear_index_params() { - index_params_.Clear(); +inline void CollectionInfo::clear_field_indexes() { + field_indexes_.Clear(); } -inline ::milvus::proto::etcd::IndexParamsInfo* CollectionInfo::mutable_index_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.proto.etcd.CollectionInfo.index_params) - return index_params_.Mutable(index); +inline ::milvus::proto::etcd::FieldIndexInfo* CollectionInfo::mutable_field_indexes(int index) { + // @@protoc_insertion_point(field_mutable:milvus.proto.etcd.CollectionInfo.field_indexes) + return field_indexes_.Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::etcd::IndexParamsInfo >* -CollectionInfo::mutable_index_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.proto.etcd.CollectionInfo.index_params) - return &index_params_; +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::etcd::FieldIndexInfo >* +CollectionInfo::mutable_field_indexes() { + // @@protoc_insertion_point(field_mutable_list:milvus.proto.etcd.CollectionInfo.field_indexes) + return &field_indexes_; } -inline const ::milvus::proto::etcd::IndexParamsInfo& CollectionInfo::index_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.proto.etcd.CollectionInfo.index_params) - return index_params_.Get(index); +inline const ::milvus::proto::etcd::FieldIndexInfo& CollectionInfo::field_indexes(int index) const { + // @@protoc_insertion_point(field_get:milvus.proto.etcd.CollectionInfo.field_indexes) + return field_indexes_.Get(index); } -inline ::milvus::proto::etcd::IndexParamsInfo* CollectionInfo::add_index_params() { - // @@protoc_insertion_point(field_add:milvus.proto.etcd.CollectionInfo.index_params) - return index_params_.Add(); +inline ::milvus::proto::etcd::FieldIndexInfo* CollectionInfo::add_field_indexes() { + // @@protoc_insertion_point(field_add:milvus.proto.etcd.CollectionInfo.field_indexes) + return field_indexes_.Add(); } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::etcd::IndexParamsInfo >& -CollectionInfo::index_params() const { - // @@protoc_insertion_point(field_list:milvus.proto.etcd.CollectionInfo.index_params) - return index_params_; -} - -// repeated string index_names = 6; -inline int CollectionInfo::index_names_size() const { - return index_names_.size(); -} -inline void CollectionInfo::clear_index_names() { - index_names_.Clear(); -} -inline const std::string& CollectionInfo::index_names(int index) const { - // @@protoc_insertion_point(field_get:milvus.proto.etcd.CollectionInfo.index_names) - return index_names_.Get(index); -} -inline std::string* CollectionInfo::mutable_index_names(int index) { - // @@protoc_insertion_point(field_mutable:milvus.proto.etcd.CollectionInfo.index_names) - return index_names_.Mutable(index); -} -inline void CollectionInfo::set_index_names(int index, const std::string& value) { - // @@protoc_insertion_point(field_set:milvus.proto.etcd.CollectionInfo.index_names) - index_names_.Mutable(index)->assign(value); -} -inline void CollectionInfo::set_index_names(int index, std::string&& value) { - // @@protoc_insertion_point(field_set:milvus.proto.etcd.CollectionInfo.index_names) - index_names_.Mutable(index)->assign(std::move(value)); -} -inline void CollectionInfo::set_index_names(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - index_names_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:milvus.proto.etcd.CollectionInfo.index_names) -} -inline void CollectionInfo::set_index_names(int index, const char* value, size_t size) { - index_names_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:milvus.proto.etcd.CollectionInfo.index_names) -} -inline std::string* CollectionInfo::add_index_names() { - // @@protoc_insertion_point(field_add_mutable:milvus.proto.etcd.CollectionInfo.index_names) - return index_names_.Add(); -} -inline void CollectionInfo::add_index_names(const std::string& value) { - index_names_.Add()->assign(value); - // @@protoc_insertion_point(field_add:milvus.proto.etcd.CollectionInfo.index_names) -} -inline void CollectionInfo::add_index_names(std::string&& value) { - index_names_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:milvus.proto.etcd.CollectionInfo.index_names) -} -inline void CollectionInfo::add_index_names(const char* value) { - GOOGLE_DCHECK(value != nullptr); - index_names_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:milvus.proto.etcd.CollectionInfo.index_names) -} -inline void CollectionInfo::add_index_names(const char* value, size_t size) { - index_names_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:milvus.proto.etcd.CollectionInfo.index_names) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -CollectionInfo::index_names() const { - // @@protoc_insertion_point(field_list:milvus.proto.etcd.CollectionInfo.index_names) - return index_names_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* -CollectionInfo::mutable_index_names() { - // @@protoc_insertion_point(field_mutable_list:milvus.proto.etcd.CollectionInfo.index_names) - return &index_names_; -} - -// ------------------------------------------------------------------- - -// IndexInfo - -// string index_name = 1; -inline void IndexInfo::clear_index_name() { - index_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& IndexInfo::index_name() const { - // @@protoc_insertion_point(field_get:milvus.proto.etcd.IndexInfo.index_name) - return index_name_.GetNoArena(); -} -inline void IndexInfo::set_index_name(const std::string& value) { - - index_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.proto.etcd.IndexInfo.index_name) -} -inline void IndexInfo::set_index_name(std::string&& value) { - - index_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.proto.etcd.IndexInfo.index_name) -} -inline void IndexInfo::set_index_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - index_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.proto.etcd.IndexInfo.index_name) -} -inline void IndexInfo::set_index_name(const char* value, size_t size) { - - index_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.proto.etcd.IndexInfo.index_name) -} -inline std::string* IndexInfo::mutable_index_name() { - - // @@protoc_insertion_point(field_mutable:milvus.proto.etcd.IndexInfo.index_name) - return index_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* IndexInfo::release_index_name() { - // @@protoc_insertion_point(field_release:milvus.proto.etcd.IndexInfo.index_name) - - return index_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void IndexInfo::set_allocated_index_name(std::string* index_name) { - if (index_name != nullptr) { - - } else { - - } - index_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), index_name); - // @@protoc_insertion_point(field_set_allocated:milvus.proto.etcd.IndexInfo.index_name) -} - -// int64 indexID = 2; -inline void IndexInfo::clear_indexid() { - indexid_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 IndexInfo::indexid() const { - // @@protoc_insertion_point(field_get:milvus.proto.etcd.IndexInfo.indexID) - return indexid_; -} -inline void IndexInfo::set_indexid(::PROTOBUF_NAMESPACE_ID::int64 value) { - - indexid_ = value; - // @@protoc_insertion_point(field_set:milvus.proto.etcd.IndexInfo.indexID) -} - -// repeated .milvus.proto.common.KeyValuePair index_params = 3; -inline int IndexInfo::index_params_size() const { - return index_params_.size(); -} -inline ::milvus::proto::common::KeyValuePair* IndexInfo::mutable_index_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.proto.etcd.IndexInfo.index_params) - return index_params_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >* -IndexInfo::mutable_index_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.proto.etcd.IndexInfo.index_params) - return &index_params_; -} -inline const ::milvus::proto::common::KeyValuePair& IndexInfo::index_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.proto.etcd.IndexInfo.index_params) - return index_params_.Get(index); -} -inline ::milvus::proto::common::KeyValuePair* IndexInfo::add_index_params() { - // @@protoc_insertion_point(field_add:milvus.proto.etcd.IndexInfo.index_params) - return index_params_.Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair >& -IndexInfo::index_params() const { - // @@protoc_insertion_point(field_list:milvus.proto.etcd.IndexInfo.index_params) - return index_params_; +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::etcd::FieldIndexInfo >& +CollectionInfo::field_indexes() const { + // @@protoc_insertion_point(field_list:milvus.proto.etcd.CollectionInfo.field_indexes) + return field_indexes_; } // ------------------------------------------------------------------- diff --git a/internal/distributed/masterservice/masterservice_test.go b/internal/distributed/masterservice/masterservice_test.go index 47ce375ec3..3215117272 100644 --- a/internal/distributed/masterservice/masterservice_test.go +++ b/internal/distributed/masterservice/masterservice_test.go @@ -423,13 +423,13 @@ func TestGrpcService(t *testing.T) { } collMeta, err := core.MetaTable.GetCollectionByName("testColl") assert.Nil(t, err) - assert.Equal(t, len(collMeta.IndexParams), 1) + assert.Equal(t, len(collMeta.FieldIndexes), 1) rsp, err := cli.CreateIndex(req) assert.Nil(t, err) assert.Equal(t, rsp.ErrorCode, commonpb.ErrorCode_SUCCESS) collMeta, err = core.MetaTable.GetCollectionByName("testColl") assert.Nil(t, err) - assert.Equal(t, len(collMeta.IndexParams), 1) + assert.Equal(t, len(collMeta.FieldIndexes), 1) binlogLock.Lock() defer binlogLock.Unlock() diff --git a/internal/masterservice/master_service.go b/internal/masterservice/master_service.go index 9f6ffa6adc..59e7b741af 100644 --- a/internal/masterservice/master_service.go +++ b/internal/masterservice/master_service.go @@ -375,13 +375,14 @@ func (c *Core) startSegmentFlushCompletedLoop() { if err != nil { log.Printf("GetCollectionBySegmentID, error = %s ", err.Error()) } - for i, f := range coll.IndexParams { + for _, f := range coll.FieldIndexes { fieldSch, err := GetFieldSchemaByID(coll, f.FiledID) if err == nil { t := &CreateIndexTask{ core: c, segmentID: seg, - indexName: coll.IndexNames[i], + indexName: f.IndexInfo.IndexName, + indexID: f.IndexInfo.IndexID, fieldSchema: fieldSch, indexParams: nil, } diff --git a/internal/masterservice/master_service_test.go b/internal/masterservice/master_service_test.go index 94fe38471d..12ff1f1f5e 100644 --- a/internal/masterservice/master_service_test.go +++ b/internal/masterservice/master_service_test.go @@ -591,8 +591,8 @@ func TestMasterService(t *testing.T) { } collMeta, err := core.MetaTable.GetCollectionByName("testColl") assert.Nil(t, err) - assert.Equal(t, len(collMeta.IndexParams), 1) - assert.Equal(t, len(collMeta.IndexNames), 1) + assert.Equal(t, len(collMeta.FieldIndexes), 1) + assert.Equal(t, len(collMeta.FieldIndexes), 1) rsp, err := core.CreateIndex(req) assert.Nil(t, err) @@ -603,9 +603,9 @@ func TestMasterService(t *testing.T) { assert.ElementsMatch(t, files, []string{"file0-100", "file1-100", "file2-100"}) collMeta, err = core.MetaTable.GetCollectionByName("testColl") assert.Nil(t, err) - assert.Equal(t, len(collMeta.IndexParams), 2) - assert.Equal(t, len(collMeta.IndexNames), 2) - assert.Equal(t, collMeta.IndexNames[1], Params.DefaultIndexName) + assert.Equal(t, len(collMeta.FieldIndexes), 2) + assert.Equal(t, len(collMeta.FieldIndexes), 2) + assert.Equal(t, collMeta.FieldIndexes[1].IndexInfo.IndexName, Params.DefaultIndexName) req.FieldName = "no field" rsp, err = core.CreateIndex(req) diff --git a/internal/masterservice/meta_table.go b/internal/masterservice/meta_table.go index 230422f24a..75ec8a6269 100644 --- a/internal/masterservice/meta_table.go +++ b/internal/masterservice/meta_table.go @@ -524,17 +524,19 @@ func (mt *metaTable) AddIndex(seg *pb.SegmentIndexInfo, idx *pb.IndexInfo) error return errors.Errorf("index id = %d exist", seg.IndexID) } } - _, ok = mt.indexID2Meta[idx.IndexID] - if ok { - return errors.Errorf("index id = %d exist", idx.IndexID) - } + var k1, k2, v1, v2 string (*(mt.segID2IndexMeta[seg.SegmentID]))[seg.IndexID] = *seg - mt.indexID2Meta[idx.IndexID] = *idx - k1 := path.Join(SegmentIndexMetaPrefix, strconv.FormatInt(seg.SegmentID, 10), strconv.FormatInt(seg.IndexID, 10)) - v1 := proto.MarshalTextString(seg) - k2 := path.Join(IndexMetaPrefix, strconv.FormatInt(idx.IndexID, 10)) - v2 := proto.MarshalTextString(idx) - meta := map[string]string{k1: v1, k2: v2} + k1 = path.Join(SegmentIndexMetaPrefix, strconv.FormatInt(seg.SegmentID, 10), strconv.FormatInt(seg.IndexID, 10)) + v1 = proto.MarshalTextString(seg) + meta := map[string]string{k1: v1} + + _, ok = mt.indexID2Meta[idx.IndexID] + if !ok { + mt.indexID2Meta[idx.IndexID] = *idx + k2 = path.Join(IndexMetaPrefix, strconv.FormatInt(idx.IndexID, 10)) + v2 = proto.MarshalTextString(idx) + meta[k2] = v2 + } err := mt.client.MultiSave(meta) if err != nil { @@ -635,7 +637,7 @@ func (mt *metaTable) unlockIsSegmentIndexed(segID typeutil.UniqueID, fieldSchema } // return segment ids, type params, error -func (mt *metaTable) GetNotIndexedSegments(collName string, fieldName string, indexParams []*commonpb.KeyValuePair, indexName string) ([]typeutil.UniqueID, schemapb.FieldSchema, error) { +func (mt *metaTable) GetNotIndexedSegments(collName string, fieldName string, idxInfo *pb.IndexInfo) ([]typeutil.UniqueID, schemapb.FieldSchema, error) { mt.ddLock.Lock() defer mt.ddLock.Unlock() @@ -653,23 +655,23 @@ func (mt *metaTable) GetNotIndexedSegments(collName string, fieldName string, in } exist := false - if indexParams != nil { - for _, f := range collMeta.IndexParams { + if idxInfo.IndexParams != nil { + for _, f := range collMeta.FieldIndexes { if f.FiledID == fieldSchema.FieldID { // (collMeta.IndexNames[i] == indexName) - if EqualKeyPairArray(f.IndexParams, indexParams) { + if EqualKeyPairArray(f.IndexInfo.IndexParams, idxInfo.IndexParams) { exist = true break } } } } - if !exist && indexParams != nil { - collMeta.IndexParams = append(collMeta.IndexParams, &pb.IndexParamsInfo{ - FiledID: fieldSchema.FieldID, - IndexParams: indexParams, - }) - collMeta.IndexNames = append(collMeta.IndexNames, indexName) + if !exist && idxInfo.IndexParams != nil { + idx := &pb.FieldIndexInfo{ + FiledID: fieldSchema.FieldID, + IndexInfo: idxInfo, + } + collMeta.FieldIndexes = append(collMeta.FieldIndexes, idx) mt.collID2Meta[collMeta.ID] = collMeta k1 := path.Join(CollectionMetaPrefix, strconv.FormatInt(collMeta.ID, 10)) v1 := proto.MarshalTextString(&collMeta) @@ -687,7 +689,7 @@ func (mt *metaTable) GetNotIndexedSegments(collName string, fieldName string, in partMeta, ok := mt.partitionID2Meta[partID] if ok { for _, segID := range partMeta.SegmentIDs { - if exist := mt.unlockIsSegmentIndexed(segID, &fieldSchema, indexParams); !exist { + if exist := mt.unlockIsSegmentIndexed(segID, &fieldSchema, idxInfo.IndexParams); !exist { rstID = append(rstID, segID) } } diff --git a/internal/masterservice/meta_table_test.go b/internal/masterservice/meta_table_test.go index da8ccdcdce..165422fbc5 100644 --- a/internal/masterservice/meta_table_test.go +++ b/internal/masterservice/meta_table_test.go @@ -150,10 +150,15 @@ func TestMetaTable(t *testing.T) { Value: "field110-v2", }, } + idxInfo := &pb.IndexInfo{ + IndexName: "field110", + IndexID: 2000, + IndexParams: params, + } - _, field, err := mt.GetNotIndexedSegments("collTest", "field110", params, "field110-idx") + _, field, err := mt.GetNotIndexedSegments("collTest", "field110", idxInfo) assert.NotNil(t, err) - seg, field, err := mt.GetNotIndexedSegments("testColl", "field110", params, "field110-idx") + seg, field, err := mt.GetNotIndexedSegments("testColl", "field110", idxInfo) assert.Nil(t, err) assert.Equal(t, len(seg), 1) assert.Equal(t, seg[0], int64(101)) @@ -165,8 +170,9 @@ func TestMetaTable(t *testing.T) { Value: "field110-v1", }, } + idxInfo.IndexParams = params - seg, field, err = mt.GetNotIndexedSegments("testColl", "field110", params, "field110-idx") + seg, field, err = mt.GetNotIndexedSegments("testColl", "field110", idxInfo) assert.Nil(t, err) assert.Equal(t, len(seg), 2) assert.Equal(t, seg[0], int64(100)) diff --git a/internal/masterservice/task.go b/internal/masterservice/task.go index b378e1b02a..63388f5839 100644 --- a/internal/masterservice/task.go +++ b/internal/masterservice/task.go @@ -108,8 +108,7 @@ func (t *CreateCollectionReqTask) Execute() error { Schema: &schema, CreateTime: collTs, PartitionIDs: make([]typeutil.UniqueID, 0, 16), - IndexParams: make([]*etcdpb.IndexParamsInfo, 0, 16), - IndexNames: make([]string, 0, 16), + FieldIndexes: make([]*etcdpb.FieldIndexInfo, 0, 16), } partMeta := etcdpb.PartitionInfo{ PartitionName: Params.DefaultPartitionName, @@ -119,12 +118,19 @@ func (t *CreateCollectionReqTask) Execute() error { for _, field := range schema.Fields { if field.DataType == schemapb.DataType_VECTOR_FLOAT || field.DataType == schemapb.DataType_VECTOR_BINARY { if len(field.IndexParams) > 0 { - indexParam := &etcdpb.IndexParamsInfo{ - FiledID: field.FieldID, - IndexParams: field.IndexParams, + idxID, err := t.core.idAllocator.AllocOne() + if err != nil { + return err } - collMeta.IndexParams = append(collMeta.IndexParams, indexParam) - collMeta.IndexNames = append(collMeta.IndexNames, fmt.Sprintf("%s_index_%d", collMeta.Schema.Name, field.FieldID)) + filedIdx := &etcdpb.FieldIndexInfo{ + FiledID: field.FieldID, + IndexInfo: &etcdpb.IndexInfo{ + IndexName: fmt.Sprintf("%s_index_%d", collMeta.Schema.Name, field.FieldID), + IndexID: idxID, + IndexParams: field.IndexParams, + }, + } + collMeta.FieldIndexes = append(collMeta.FieldIndexes, filedIdx) } } } @@ -585,7 +591,16 @@ func (t *CreateIndexReqTask) IgnoreTimeStamp() bool { func (t *CreateIndexReqTask) Execute() error { indexName := Params.DefaultIndexName //TODO, get name from request - segIDs, field, err := t.core.MetaTable.GetNotIndexedSegments(t.Req.CollectionName, t.Req.FieldName, t.Req.ExtraParams, indexName) + indexID, err := t.core.idAllocator.AllocOne() + if err != nil { + return err + } + idxInfo := &etcdpb.IndexInfo{ + IndexName: indexName, + IndexID: indexID, + IndexParams: t.Req.ExtraParams, + } + segIDs, field, err := t.core.MetaTable.GetNotIndexedSegments(t.Req.CollectionName, t.Req.FieldName, idxInfo) if err != nil { return err } @@ -597,6 +612,7 @@ func (t *CreateIndexReqTask) Execute() error { core: t.core, segmentID: seg, indexName: indexName, + indexID: indexID, fieldSchema: &field, indexParams: t.Req.ExtraParams, } @@ -644,6 +660,7 @@ type CreateIndexTask struct { core *Core segmentID typeutil.UniqueID indexName string + indexID typeutil.UniqueID fieldSchema *schemapb.FieldSchema indexParams []*commonpb.KeyValuePair } @@ -652,10 +669,6 @@ func (t *CreateIndexTask) BuildIndex() error { if t.core.MetaTable.IsSegmentIndexed(t.segmentID, t.fieldSchema, t.indexParams) { return nil } - idxID, err := t.core.idAllocator.AllocOne() - if err != nil { - return err - } binlogs, err := t.core.GetBinlogFilePathsFromDataServiceReq(t.segmentID, t.fieldSchema.FieldID) if err != nil { return err @@ -671,19 +684,19 @@ func (t *CreateIndexTask) BuildIndex() error { }) } } - bldID, err = t.core.BuildIndexReq(binlogs, t.fieldSchema.TypeParams, t.indexParams, idxID, t.indexName) + bldID, err = t.core.BuildIndexReq(binlogs, t.fieldSchema.TypeParams, t.indexParams, t.indexID, t.indexName) if err != nil { return err } seg := etcdpb.SegmentIndexInfo{ SegmentID: t.segmentID, FieldID: t.fieldSchema.FieldID, - IndexID: idxID, + IndexID: t.indexID, BuildID: bldID, } idx := etcdpb.IndexInfo{ IndexName: t.indexName, - IndexID: idxID, + IndexID: t.indexID, IndexParams: t.indexParams, } err = t.core.MetaTable.AddIndex(&seg, &idx) diff --git a/internal/proto/etcd_meta.proto b/internal/proto/etcd_meta.proto index d23129eb64..960c944c6b 100644 --- a/internal/proto/etcd_meta.proto +++ b/internal/proto/etcd_meta.proto @@ -24,9 +24,15 @@ message PartitionInfo { repeated int64 segmentIDs = 3; } -message IndexParamsInfo{ +message IndexInfo { + string index_name = 1; + int64 indexID = 2; + repeated common.KeyValuePair index_params = 3; +} + +message FieldIndexInfo{ int64 filedID = 1; - repeated common.KeyValuePair index_params = 2; + IndexInfo index_info = 2; } message CollectionInfo { @@ -34,15 +40,10 @@ message CollectionInfo { schema.CollectionSchema schema = 2; uint64 create_time = 3; repeated int64 partitionIDs = 4; - repeated IndexParamsInfo index_params = 5; - repeated string index_names = 6; + repeated FieldIndexInfo field_indexes = 5; } -message IndexInfo { - string index_name = 1; - int64 indexID = 2; - repeated common.KeyValuePair index_params = 3; -} + message SegmentIndexInfo { int64 segmentID = 1; diff --git a/internal/proto/etcdpb/etcd_meta.pb.go b/internal/proto/etcdpb/etcd_meta.pb.go index 4f8a24d3c9..a80d91a12a 100644 --- a/internal/proto/etcdpb/etcd_meta.pb.go +++ b/internal/proto/etcdpb/etcd_meta.pb.go @@ -195,49 +195,104 @@ func (m *PartitionInfo) GetSegmentIDs() []int64 { return nil } -type IndexParamsInfo struct { - FiledID int64 `protobuf:"varint,1,opt,name=filedID,proto3" json:"filedID,omitempty"` - IndexParams []*commonpb.KeyValuePair `protobuf:"bytes,2,rep,name=index_params,json=indexParams,proto3" json:"index_params,omitempty"` +type IndexInfo struct { + IndexName string `protobuf:"bytes,1,opt,name=index_name,json=indexName,proto3" json:"index_name,omitempty"` + IndexID int64 `protobuf:"varint,2,opt,name=indexID,proto3" json:"indexID,omitempty"` + IndexParams []*commonpb.KeyValuePair `protobuf:"bytes,3,rep,name=index_params,json=indexParams,proto3" json:"index_params,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *IndexParamsInfo) Reset() { *m = IndexParamsInfo{} } -func (m *IndexParamsInfo) String() string { return proto.CompactTextString(m) } -func (*IndexParamsInfo) ProtoMessage() {} -func (*IndexParamsInfo) Descriptor() ([]byte, []int) { +func (m *IndexInfo) Reset() { *m = IndexInfo{} } +func (m *IndexInfo) String() string { return proto.CompactTextString(m) } +func (*IndexInfo) ProtoMessage() {} +func (*IndexInfo) Descriptor() ([]byte, []int) { return fileDescriptor_975d306d62b73e88, []int{3} } -func (m *IndexParamsInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IndexParamsInfo.Unmarshal(m, b) +func (m *IndexInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_IndexInfo.Unmarshal(m, b) } -func (m *IndexParamsInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IndexParamsInfo.Marshal(b, m, deterministic) +func (m *IndexInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_IndexInfo.Marshal(b, m, deterministic) } -func (m *IndexParamsInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_IndexParamsInfo.Merge(m, src) +func (m *IndexInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_IndexInfo.Merge(m, src) } -func (m *IndexParamsInfo) XXX_Size() int { - return xxx_messageInfo_IndexParamsInfo.Size(m) +func (m *IndexInfo) XXX_Size() int { + return xxx_messageInfo_IndexInfo.Size(m) } -func (m *IndexParamsInfo) XXX_DiscardUnknown() { - xxx_messageInfo_IndexParamsInfo.DiscardUnknown(m) +func (m *IndexInfo) XXX_DiscardUnknown() { + xxx_messageInfo_IndexInfo.DiscardUnknown(m) } -var xxx_messageInfo_IndexParamsInfo proto.InternalMessageInfo +var xxx_messageInfo_IndexInfo proto.InternalMessageInfo -func (m *IndexParamsInfo) GetFiledID() int64 { +func (m *IndexInfo) GetIndexName() string { + if m != nil { + return m.IndexName + } + return "" +} + +func (m *IndexInfo) GetIndexID() int64 { + if m != nil { + return m.IndexID + } + return 0 +} + +func (m *IndexInfo) GetIndexParams() []*commonpb.KeyValuePair { + if m != nil { + return m.IndexParams + } + return nil +} + +type FieldIndexInfo struct { + FiledID int64 `protobuf:"varint,1,opt,name=filedID,proto3" json:"filedID,omitempty"` + IndexInfo *IndexInfo `protobuf:"bytes,2,opt,name=index_info,json=indexInfo,proto3" json:"index_info,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *FieldIndexInfo) Reset() { *m = FieldIndexInfo{} } +func (m *FieldIndexInfo) String() string { return proto.CompactTextString(m) } +func (*FieldIndexInfo) ProtoMessage() {} +func (*FieldIndexInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_975d306d62b73e88, []int{4} +} + +func (m *FieldIndexInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_FieldIndexInfo.Unmarshal(m, b) +} +func (m *FieldIndexInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_FieldIndexInfo.Marshal(b, m, deterministic) +} +func (m *FieldIndexInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_FieldIndexInfo.Merge(m, src) +} +func (m *FieldIndexInfo) XXX_Size() int { + return xxx_messageInfo_FieldIndexInfo.Size(m) +} +func (m *FieldIndexInfo) XXX_DiscardUnknown() { + xxx_messageInfo_FieldIndexInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_FieldIndexInfo proto.InternalMessageInfo + +func (m *FieldIndexInfo) GetFiledID() int64 { if m != nil { return m.FiledID } return 0 } -func (m *IndexParamsInfo) GetIndexParams() []*commonpb.KeyValuePair { +func (m *FieldIndexInfo) GetIndexInfo() *IndexInfo { if m != nil { - return m.IndexParams + return m.IndexInfo } return nil } @@ -247,8 +302,7 @@ type CollectionInfo struct { Schema *schemapb.CollectionSchema `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"` CreateTime uint64 `protobuf:"varint,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` PartitionIDs []int64 `protobuf:"varint,4,rep,packed,name=partitionIDs,proto3" json:"partitionIDs,omitempty"` - IndexParams []*IndexParamsInfo `protobuf:"bytes,5,rep,name=index_params,json=indexParams,proto3" json:"index_params,omitempty"` - IndexNames []string `protobuf:"bytes,6,rep,name=index_names,json=indexNames,proto3" json:"index_names,omitempty"` + FieldIndexes []*FieldIndexInfo `protobuf:"bytes,5,rep,name=field_indexes,json=fieldIndexes,proto3" json:"field_indexes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -258,7 +312,7 @@ func (m *CollectionInfo) Reset() { *m = CollectionInfo{} } func (m *CollectionInfo) String() string { return proto.CompactTextString(m) } func (*CollectionInfo) ProtoMessage() {} func (*CollectionInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_975d306d62b73e88, []int{4} + return fileDescriptor_975d306d62b73e88, []int{5} } func (m *CollectionInfo) XXX_Unmarshal(b []byte) error { @@ -307,71 +361,9 @@ func (m *CollectionInfo) GetPartitionIDs() []int64 { return nil } -func (m *CollectionInfo) GetIndexParams() []*IndexParamsInfo { +func (m *CollectionInfo) GetFieldIndexes() []*FieldIndexInfo { if m != nil { - return m.IndexParams - } - return nil -} - -func (m *CollectionInfo) GetIndexNames() []string { - if m != nil { - return m.IndexNames - } - return nil -} - -type IndexInfo struct { - IndexName string `protobuf:"bytes,1,opt,name=index_name,json=indexName,proto3" json:"index_name,omitempty"` - IndexID int64 `protobuf:"varint,2,opt,name=indexID,proto3" json:"indexID,omitempty"` - IndexParams []*commonpb.KeyValuePair `protobuf:"bytes,3,rep,name=index_params,json=indexParams,proto3" json:"index_params,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IndexInfo) Reset() { *m = IndexInfo{} } -func (m *IndexInfo) String() string { return proto.CompactTextString(m) } -func (*IndexInfo) ProtoMessage() {} -func (*IndexInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_975d306d62b73e88, []int{5} -} - -func (m *IndexInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IndexInfo.Unmarshal(m, b) -} -func (m *IndexInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IndexInfo.Marshal(b, m, deterministic) -} -func (m *IndexInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_IndexInfo.Merge(m, src) -} -func (m *IndexInfo) XXX_Size() int { - return xxx_messageInfo_IndexInfo.Size(m) -} -func (m *IndexInfo) XXX_DiscardUnknown() { - xxx_messageInfo_IndexInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_IndexInfo proto.InternalMessageInfo - -func (m *IndexInfo) GetIndexName() string { - if m != nil { - return m.IndexName - } - return "" -} - -func (m *IndexInfo) GetIndexID() int64 { - if m != nil { - return m.IndexID - } - return 0 -} - -func (m *IndexInfo) GetIndexParams() []*commonpb.KeyValuePair { - if m != nil { - return m.IndexParams + return m.FieldIndexes } return nil } @@ -759,9 +751,9 @@ func init() { proto.RegisterType((*TenantMeta)(nil), "milvus.proto.etcd.TenantMeta") proto.RegisterType((*ProxyMeta)(nil), "milvus.proto.etcd.ProxyMeta") proto.RegisterType((*PartitionInfo)(nil), "milvus.proto.etcd.PartitionInfo") - proto.RegisterType((*IndexParamsInfo)(nil), "milvus.proto.etcd.IndexParamsInfo") - proto.RegisterType((*CollectionInfo)(nil), "milvus.proto.etcd.CollectionInfo") proto.RegisterType((*IndexInfo)(nil), "milvus.proto.etcd.IndexInfo") + proto.RegisterType((*FieldIndexInfo)(nil), "milvus.proto.etcd.FieldIndexInfo") + proto.RegisterType((*CollectionInfo)(nil), "milvus.proto.etcd.CollectionInfo") proto.RegisterType((*SegmentIndexInfo)(nil), "milvus.proto.etcd.SegmentIndexInfo") proto.RegisterType((*CollectionMeta)(nil), "milvus.proto.etcd.CollectionMeta") proto.RegisterType((*FieldBinlogFiles)(nil), "milvus.proto.etcd.FieldBinlogFiles") @@ -772,59 +764,59 @@ func init() { func init() { proto.RegisterFile("etcd_meta.proto", fileDescriptor_975d306d62b73e88) } var fileDescriptor_975d306d62b73e88 = []byte{ - // 861 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0x5d, 0x8f, 0xdb, 0x44, - 0x14, 0x95, 0x93, 0x6c, 0x76, 0x7d, 0x93, 0x4d, 0x76, 0xfd, 0x64, 0x4a, 0x4b, 0x53, 0x57, 0x85, - 0x48, 0x88, 0x44, 0x5a, 0x04, 0x6f, 0x20, 0x68, 0xd3, 0x4a, 0x11, 0xa2, 0x0d, 0xce, 0x8a, 0x07, - 0x5e, 0xac, 0x89, 0x7d, 0x9b, 0x8c, 0xe4, 0x19, 0xa7, 0x9e, 0x31, 0xdd, 0xdd, 0x07, 0xc4, 0x2b, - 0x88, 0x5f, 0xc0, 0x5f, 0xe4, 0x37, 0x20, 0xa1, 0xf9, 0x88, 0x3f, 0x92, 0x08, 0xa1, 0x95, 0x78, - 0x9c, 0x73, 0xcf, 0xcc, 0xbd, 0xf7, 0x9c, 0x7b, 0x6d, 0x18, 0xa2, 0x8c, 0x93, 0x88, 0xa1, 0x24, - 0x93, 0x6d, 0x9e, 0xc9, 0xcc, 0xbb, 0x64, 0x34, 0xfd, 0xb9, 0x10, 0xe6, 0x34, 0x51, 0xd1, 0x07, - 0xfd, 0x38, 0x63, 0x2c, 0xe3, 0x06, 0x7a, 0xd0, 0x17, 0xf1, 0x06, 0x99, 0xa5, 0x07, 0x7f, 0x3a, - 0x00, 0xd7, 0xc8, 0x09, 0x97, 0xdf, 0xa3, 0x24, 0xde, 0x00, 0x5a, 0xf3, 0x99, 0xef, 0x8c, 0x9c, - 0x71, 0x3b, 0x6c, 0xcd, 0x67, 0xde, 0xc7, 0x30, 0xe4, 0x05, 0x8b, 0xde, 0x15, 0x98, 0xdf, 0x46, - 0x3c, 0x4b, 0x50, 0xf8, 0x2d, 0x1d, 0x3c, 0xe7, 0x05, 0xfb, 0x41, 0xa1, 0xaf, 0x15, 0xe8, 0x7d, - 0x0a, 0x97, 0x94, 0x0b, 0xcc, 0x65, 0x14, 0x6f, 0x08, 0xe7, 0x98, 0xce, 0x67, 0xc2, 0x6f, 0x8f, - 0xda, 0x63, 0x37, 0xbc, 0x30, 0x81, 0x17, 0x25, 0xee, 0x7d, 0x02, 0x43, 0xf3, 0x60, 0xc9, 0xf5, - 0x3b, 0x23, 0x67, 0xec, 0x86, 0x03, 0x0d, 0x97, 0xcc, 0xe0, 0x57, 0x07, 0xdc, 0x45, 0x9e, 0xdd, - 0xdc, 0x1e, 0xad, 0xed, 0x4b, 0x38, 0x25, 0x49, 0x92, 0xa3, 0x30, 0x35, 0xf5, 0xae, 0x1e, 0x4e, - 0x1a, 0xbd, 0xdb, 0xae, 0xbf, 0x35, 0x9c, 0x70, 0x47, 0x56, 0xb5, 0xe6, 0x28, 0x8a, 0xf4, 0x58, - 0xad, 0x26, 0x50, 0xd5, 0x1a, 0xdc, 0xc0, 0xf9, 0x82, 0xe4, 0x92, 0x4a, 0x9a, 0xf1, 0x39, 0x7f, - 0x9b, 0x79, 0xcf, 0x60, 0xb0, 0xdd, 0x01, 0x11, 0x27, 0x0c, 0x75, 0x45, 0x6e, 0x78, 0x5e, 0xa2, - 0xaf, 0x09, 0x43, 0x6f, 0x04, 0xbd, 0x12, 0x98, 0xcf, 0xac, 0x68, 0x75, 0xc8, 0xfb, 0x08, 0x40, - 0xe0, 0x9a, 0x21, 0x97, 0xbb, 0xfc, 0xed, 0xb0, 0x86, 0x04, 0xef, 0x60, 0x38, 0xe7, 0x09, 0xde, - 0x2c, 0x48, 0x4e, 0x98, 0xd0, 0xb9, 0x7d, 0x38, 0x7d, 0x4b, 0x53, 0x4c, 0x4a, 0x19, 0x76, 0x47, - 0x6f, 0x06, 0x7d, 0xaa, 0xc8, 0xd1, 0x56, 0xb3, 0xfd, 0xd6, 0xa8, 0x3d, 0xee, 0x5d, 0x3d, 0x39, - 0x2a, 0xc8, 0x77, 0x78, 0xfb, 0x23, 0x49, 0x0b, 0x5c, 0x10, 0x9a, 0x87, 0x3d, 0x5a, 0xe5, 0x08, - 0xfe, 0x68, 0xc1, 0xe0, 0x45, 0x96, 0xa6, 0x18, 0x97, 0xed, 0xee, 0x8b, 0xfe, 0x15, 0x74, 0xcd, - 0xfc, 0x58, 0xcd, 0x9f, 0x35, 0x53, 0xd8, 0xd9, 0xaa, 0x1e, 0x59, 0x6a, 0x20, 0xb4, 0x97, 0xbc, - 0xc7, 0xd0, 0x8b, 0x73, 0x24, 0x12, 0x23, 0x49, 0x19, 0xfa, 0xed, 0x91, 0x33, 0xee, 0x84, 0x60, - 0xa0, 0x6b, 0xca, 0xd0, 0x0b, 0xa0, 0x5f, 0x13, 0x49, 0xf8, 0x1d, 0xad, 0x4b, 0x03, 0xf3, 0x5e, - 0xee, 0x35, 0x7b, 0xa2, 0x9b, 0x0d, 0x26, 0x07, 0x93, 0x3f, 0xd9, 0x13, 0xb0, 0xd1, 0xad, 0xaa, - 0xc5, 0x3c, 0xa3, 0x5c, 0x14, 0x7e, 0x57, 0x4f, 0x00, 0x68, 0x48, 0x59, 0x28, 0x82, 0xdf, 0x1d, - 0x70, 0xf5, 0x0b, 0x5a, 0x89, 0x47, 0x00, 0x15, 0xdd, 0x9a, 0xee, 0x96, 0x6c, 0xe5, 0x8d, 0x3e, - 0x94, 0x66, 0xef, 0x8e, 0x07, 0xde, 0xb4, 0xef, 0xe5, 0xcd, 0x2f, 0x70, 0xb1, 0xb4, 0xc3, 0x51, - 0x96, 0xf4, 0x10, 0xdc, 0x72, 0x60, 0xac, 0x47, 0x15, 0x60, 0xa6, 0x05, 0xd3, 0xa4, 0xaa, 0xc8, - 0x1e, 0xeb, 0xb5, 0xb6, 0x9b, 0xb5, 0xfa, 0x70, 0xba, 0x2a, 0xa8, 0xbe, 0xd3, 0x31, 0x11, 0x7b, - 0x0c, 0xfe, 0x72, 0xea, 0xb3, 0x71, 0x74, 0x21, 0xff, 0xef, 0xd9, 0x68, 0x6e, 0x4c, 0x67, 0x7f, - 0x63, 0x9a, 0xab, 0x29, 0xc9, 0xda, 0x4c, 0x46, 0x7d, 0x35, 0xaf, 0xc9, 0x5a, 0x1c, 0x8c, 0x58, - 0xf7, 0x70, 0xc4, 0x82, 0x37, 0x70, 0xf1, 0x4a, 0x89, 0xf5, 0x9c, 0xf2, 0x34, 0x5b, 0xbf, 0xa2, - 0x29, 0x8a, 0xba, 0x9e, 0x4e, 0x53, 0xcf, 0x27, 0xd0, 0x5f, 0x69, 0x62, 0xa4, 0xf6, 0xd1, 0x6c, - 0x9f, 0x1b, 0xf6, 0x56, 0xd5, 0xe5, 0xe0, 0xef, 0x16, 0xf4, 0xac, 0x7f, 0x5a, 0xbb, 0x7f, 0xb7, - 0x2e, 0x80, 0x7e, 0x5c, 0xed, 0xe1, 0xce, 0xbf, 0x06, 0xe6, 0x3d, 0x85, 0xf3, 0x46, 0xb7, 0x5a, - 0x30, 0xb7, 0xd6, 0xc7, 0x35, 0x59, 0x2b, 0x92, 0xfd, 0xc8, 0x45, 0x42, 0x92, 0x5c, 0x6a, 0x57, - 0x4f, 0xc2, 0xbe, 0x05, 0x97, 0x0a, 0xd3, 0xc2, 0x5b, 0x12, 0xf2, 0xc4, 0x3f, 0xd1, 0x14, 0xb0, - 0xd0, 0x4b, 0x9e, 0x78, 0x1f, 0x82, 0x9b, 0x6d, 0x91, 0x1b, 0x5f, 0xba, 0xda, 0x97, 0x33, 0x05, - 0x68, 0x57, 0x1e, 0x01, 0xc4, 0x69, 0x26, 0xac, 0x6b, 0xa7, 0x3a, 0xea, 0x6a, 0x44, 0x87, 0x3f, - 0x80, 0x33, 0xf5, 0x07, 0xc9, 0xb3, 0xf7, 0xc2, 0x3f, 0x33, 0xb2, 0xf1, 0x82, 0x85, 0xd9, 0x7b, - 0xa1, 0x42, 0x0c, 0x59, 0x24, 0xe8, 0x1d, 0xfa, 0xae, 0x09, 0x31, 0x64, 0x4b, 0x7a, 0x87, 0xde, - 0x1b, 0xb8, 0xac, 0x29, 0x1a, 0x6d, 0x89, 0xdc, 0x08, 0x1f, 0xf4, 0xe2, 0x3c, 0x3d, 0xb2, 0xe7, - 0xfb, 0x5e, 0x85, 0xc3, 0x4a, 0xfb, 0x85, 0xba, 0x1b, 0xfc, 0xd6, 0x82, 0x81, 0x66, 0xe9, 0xed, - 0xf9, 0x0f, 0x16, 0xdc, 0x67, 0x7b, 0xf6, 0x37, 0xbd, 0x73, 0x9f, 0x4d, 0xf7, 0xbe, 0x80, 0x13, - 0x21, 0x89, 0x44, 0x6d, 0xc4, 0xe0, 0xea, 0xf1, 0xd1, 0xeb, 0xba, 0x8d, 0xa5, 0xa2, 0x85, 0x86, - 0xed, 0x8d, 0xe1, 0xc2, 0x24, 0xaf, 0x29, 0x66, 0xbe, 0x69, 0x03, 0x8d, 0x97, 0x5a, 0x3c, 0xff, - 0xe6, 0xa7, 0xaf, 0xd7, 0x54, 0x6e, 0x8a, 0x95, 0x7a, 0x6c, 0x7a, 0x47, 0xd3, 0x94, 0xde, 0x49, - 0x8c, 0x37, 0x53, 0x93, 0xe8, 0xb3, 0x84, 0x0a, 0x99, 0xd3, 0x55, 0x21, 0x31, 0x99, 0x52, 0x2e, - 0x31, 0xe7, 0x24, 0x9d, 0xea, 0xec, 0x53, 0xa5, 0xf6, 0x76, 0xb5, 0xea, 0xea, 0xd3, 0xe7, 0xff, - 0x04, 0x00, 0x00, 0xff, 0xff, 0x85, 0x45, 0xd7, 0x1c, 0x7e, 0x08, 0x00, 0x00, + // 862 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xcd, 0x8e, 0xe3, 0x44, + 0x10, 0x96, 0x27, 0x99, 0x64, 0x5c, 0xf9, 0x99, 0x99, 0x3e, 0x99, 0x65, 0x97, 0xcd, 0x7a, 0xb5, + 0x10, 0x09, 0x31, 0x91, 0x06, 0xc1, 0x05, 0x81, 0x60, 0x37, 0x8c, 0x14, 0x21, 0x76, 0x83, 0x33, + 0xe2, 0xc0, 0xc5, 0xea, 0xd8, 0x95, 0xa4, 0x25, 0x77, 0x3b, 0xb8, 0xdb, 0xec, 0xcc, 0x1c, 0x10, + 0x57, 0x78, 0x04, 0x5e, 0x11, 0x5e, 0x01, 0x09, 0xf5, 0x4f, 0x1c, 0x7b, 0x36, 0x20, 0xb4, 0x12, + 0xb7, 0xd4, 0x57, 0x55, 0x5d, 0x55, 0xdf, 0x57, 0xe5, 0xc0, 0x29, 0xaa, 0x24, 0x8d, 0x39, 0x2a, + 0x7a, 0xb1, 0x2d, 0x72, 0x95, 0x93, 0x73, 0xce, 0xb2, 0x9f, 0x4a, 0x69, 0xad, 0x0b, 0xed, 0x7d, + 0xd0, 0x4f, 0x72, 0xce, 0x73, 0x61, 0xa1, 0x07, 0x7d, 0x99, 0x6c, 0x90, 0xbb, 0xf0, 0xf0, 0x77, + 0x0f, 0xe0, 0x1a, 0x05, 0x15, 0xea, 0x5b, 0x54, 0x94, 0x0c, 0xe1, 0x68, 0x36, 0x0d, 0xbc, 0x91, + 0x37, 0x6e, 0x45, 0x47, 0xb3, 0x29, 0x79, 0x1f, 0x4e, 0x45, 0xc9, 0xe3, 0x1f, 0x4b, 0x2c, 0x6e, + 0x63, 0x91, 0xa7, 0x28, 0x83, 0x23, 0xe3, 0x1c, 0x88, 0x92, 0x7f, 0xa7, 0xd1, 0x97, 0x1a, 0x24, + 0x1f, 0xc2, 0x39, 0x13, 0x12, 0x0b, 0x15, 0x27, 0x1b, 0x2a, 0x04, 0x66, 0xb3, 0xa9, 0x0c, 0x5a, + 0xa3, 0xd6, 0xd8, 0x8f, 0xce, 0xac, 0xe3, 0x45, 0x85, 0x93, 0x0f, 0xe0, 0xd4, 0x3e, 0x58, 0xc5, + 0x06, 0xed, 0x91, 0x37, 0xf6, 0xa3, 0xa1, 0x81, 0xab, 0xc8, 0xf0, 0x17, 0x0f, 0xfc, 0x79, 0x91, + 0xdf, 0xdc, 0x1e, 0xec, 0xed, 0x53, 0xe8, 0xd2, 0x34, 0x2d, 0x50, 0xda, 0x9e, 0x7a, 0x97, 0x0f, + 0x2f, 0x1a, 0xb3, 0xbb, 0xa9, 0xbf, 0xb2, 0x31, 0xd1, 0x2e, 0x58, 0xf7, 0x5a, 0xa0, 0x2c, 0xb3, + 0x43, 0xbd, 0x5a, 0xc7, 0xbe, 0xd7, 0xf0, 0x06, 0x06, 0x73, 0x5a, 0x28, 0xa6, 0x58, 0x2e, 0x66, + 0x62, 0x95, 0x93, 0x67, 0x30, 0xdc, 0xee, 0x80, 0x58, 0x50, 0x8e, 0xa6, 0x23, 0x3f, 0x1a, 0x54, + 0xe8, 0x4b, 0xca, 0x91, 0x8c, 0xa0, 0x57, 0x01, 0xb3, 0xa9, 0x23, 0xad, 0x0e, 0x91, 0xf7, 0x00, + 0x24, 0xae, 0x39, 0x0a, 0xb5, 0xab, 0xdf, 0x8a, 0x6a, 0x48, 0xf8, 0x9b, 0x07, 0xfe, 0x4c, 0xa4, + 0x78, 0x63, 0xca, 0x3e, 0x02, 0x60, 0xda, 0xa8, 0x97, 0xf4, 0x0d, 0x62, 0xca, 0x05, 0xd0, 0x35, + 0x46, 0x55, 0x6a, 0x67, 0x92, 0x29, 0xf4, 0x6d, 0xe2, 0x96, 0x16, 0x94, 0xdb, 0x42, 0xbd, 0xcb, + 0x27, 0x07, 0xa9, 0xfa, 0x06, 0x6f, 0xbf, 0xa7, 0x59, 0x89, 0x73, 0xca, 0x8a, 0xa8, 0x67, 0xd2, + 0xe6, 0x26, 0x2b, 0x5c, 0xc3, 0xf0, 0x8a, 0x61, 0x96, 0xee, 0x1b, 0x0a, 0xa0, 0xbb, 0x62, 0x19, + 0xa6, 0x95, 0x24, 0x3b, 0x93, 0x7c, 0xb6, 0x6b, 0x95, 0x89, 0x55, 0x7e, 0x58, 0x1a, 0xbd, 0x96, + 0x17, 0xd5, 0x5b, 0x6e, 0x10, 0xfd, 0x33, 0xfc, 0xd3, 0x83, 0xe1, 0x8b, 0x3c, 0xcb, 0x30, 0xa9, + 0x18, 0xbf, 0xaf, 0xfb, 0xe7, 0xd0, 0xb1, 0x2b, 0xec, 0xde, 0x7e, 0xd6, 0x7c, 0xdb, 0xad, 0xf7, + 0xfe, 0x91, 0x85, 0x01, 0x22, 0x97, 0x44, 0x1e, 0x43, 0x2f, 0x29, 0x90, 0x2a, 0x8c, 0x15, 0xe3, + 0x18, 0xb4, 0x46, 0xde, 0xb8, 0x1d, 0x81, 0x85, 0xae, 0x19, 0x47, 0x12, 0x42, 0xbf, 0xa6, 0x93, + 0x0c, 0xda, 0x46, 0x9a, 0x06, 0x46, 0xae, 0x60, 0xb0, 0xd2, 0x7c, 0xc4, 0xa6, 0x73, 0x94, 0xc1, + 0xf1, 0x21, 0x5a, 0xcd, 0x98, 0x4d, 0xde, 0xa2, 0xfe, 0xaa, 0xb2, 0x51, 0x86, 0x3f, 0xc3, 0xd9, + 0xc2, 0x49, 0x5e, 0x31, 0xfb, 0x10, 0xfc, 0x6a, 0x0d, 0xdc, 0xd8, 0x7b, 0xc0, 0xf2, 0xae, 0x5f, + 0xa8, 0x94, 0x76, 0x66, 0x7d, 0x07, 0x5a, 0xcd, 0x1d, 0x08, 0xa0, 0xbb, 0x2c, 0x99, 0xc9, 0x69, + 0x5b, 0x8f, 0x33, 0xc3, 0x3f, 0x1a, 0x74, 0x1f, 0x3c, 0xb3, 0xff, 0x9b, 0xee, 0xe6, 0x1d, 0xb4, + 0xef, 0xdf, 0x41, 0xf3, 0xe0, 0x14, 0x5d, 0x5b, 0xae, 0xeb, 0x07, 0x77, 0x4d, 0xd7, 0xf2, 0x0d, + 0xd5, 0x3a, 0x6f, 0xaa, 0x16, 0xbe, 0x82, 0x33, 0xa3, 0xc6, 0x73, 0x26, 0xb2, 0x7c, 0x7d, 0xc5, + 0x32, 0x94, 0x75, 0x3e, 0xbd, 0x26, 0x9f, 0x4f, 0xa0, 0xbf, 0x34, 0x81, 0xb1, 0xde, 0x6c, 0xfd, + 0x91, 0xd1, 0x65, 0x7b, 0xcb, 0x7d, 0x72, 0xf8, 0xd7, 0x11, 0xf4, 0x9c, 0x7e, 0x86, 0xbb, 0x7f, + 0x97, 0x2e, 0x84, 0x7e, 0xb2, 0x5f, 0xed, 0x9d, 0x7e, 0x0d, 0x8c, 0x3c, 0x85, 0x41, 0x63, 0x5a, + 0x43, 0x98, 0x5f, 0x9b, 0xe3, 0x9a, 0xae, 0x75, 0x90, 0xfb, 0x74, 0xc5, 0x52, 0xd1, 0x42, 0x19, + 0x55, 0x8f, 0xa3, 0xbe, 0x03, 0x17, 0x1a, 0x33, 0xc4, 0xbb, 0x20, 0x14, 0x69, 0x70, 0x6c, 0x42, + 0xc0, 0x41, 0x5f, 0x8b, 0x94, 0xbc, 0x0b, 0x7e, 0xbe, 0x45, 0x61, 0x75, 0xe9, 0x18, 0x5d, 0x4e, + 0x34, 0x60, 0x54, 0x79, 0x04, 0x90, 0x64, 0xb9, 0x74, 0xaa, 0x75, 0x8d, 0xd7, 0x37, 0x88, 0x71, + 0xbf, 0x03, 0x27, 0xfa, 0x7f, 0xa1, 0xc8, 0x5f, 0xcb, 0xe0, 0xc4, 0xd2, 0x26, 0x4a, 0x1e, 0xe5, + 0xaf, 0xa5, 0x76, 0x71, 0xe4, 0xb1, 0x64, 0x77, 0x18, 0xf8, 0xd6, 0xc5, 0x91, 0x2f, 0xd8, 0x1d, + 0x92, 0x57, 0x70, 0x5e, 0x63, 0x34, 0xde, 0x52, 0xb5, 0x91, 0x01, 0x98, 0xcb, 0x79, 0xfa, 0x4f, + 0x97, 0x53, 0xd3, 0x2a, 0x3a, 0xdd, 0x73, 0x3f, 0xd7, 0xb9, 0xe1, 0xaf, 0x47, 0xf5, 0xef, 0xd2, + 0x7f, 0x90, 0xe0, 0x6d, 0xae, 0xe7, 0xfe, 0x17, 0xb4, 0xfd, 0x36, 0x5f, 0x50, 0xf2, 0x09, 0x1c, + 0x4b, 0x45, 0x15, 0x1a, 0x21, 0x86, 0x97, 0x8f, 0x0f, 0xa6, 0x9b, 0x31, 0x16, 0x3a, 0x2c, 0xb2, + 0xd1, 0x64, 0x0c, 0x67, 0xb6, 0x78, 0x8d, 0xb1, 0x8e, 0x59, 0xc4, 0xa1, 0xc1, 0x2b, 0x2e, 0x9e, + 0x7f, 0xf9, 0xc3, 0x17, 0x6b, 0xa6, 0x36, 0xe5, 0x52, 0x3f, 0x36, 0xb9, 0x63, 0x59, 0xc6, 0xee, + 0x14, 0x26, 0x9b, 0x89, 0x2d, 0xf4, 0x51, 0xca, 0xa4, 0x2a, 0xd8, 0xb2, 0x54, 0x98, 0x4e, 0x98, + 0x50, 0x58, 0x08, 0x9a, 0x4d, 0x4c, 0xf5, 0x89, 0x66, 0x7b, 0xbb, 0x5c, 0x76, 0x8c, 0xf5, 0xf1, + 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x3c, 0x8d, 0xb6, 0x6d, 0x54, 0x08, 0x00, 0x00, }