diff --git a/internal/core/src/pb/CMakeLists.txt b/internal/core/src/pb/CMakeLists.txt index ea41a1b9de..64c1b9e632 100644 --- a/internal/core/src/pb/CMakeLists.txt +++ b/internal/core/src/pb/CMakeLists.txt @@ -13,7 +13,6 @@ set( proto_file_names segcore.proto index_cgo_msg.proto plan.proto - etcd_meta.proto milvus.proto schema.proto common.proto diff --git a/internal/core/src/pb/etcd_meta.pb.cc b/internal/core/src/pb/etcd_meta.pb.cc deleted file mode 100644 index da435975fe..0000000000 --- a/internal/core/src/pb/etcd_meta.pb.cc +++ /dev/null @@ -1,3705 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: etcd_meta.proto - -#include "etcd_meta.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include -extern PROTOBUF_INTERNAL_EXPORT_common_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Address_common_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_common_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_KeyDataPair_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_FieldIndexInfo_etcd_5fmeta_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_schema_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CollectionSchema_schema_2eproto; -namespace milvus { -namespace proto { -namespace etcd { -class TenantMetaDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _TenantMeta_default_instance_; -class ProxyMetaDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _ProxyMeta_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; -} _SegmentIndexInfo_default_instance_; -class CollectionMetaDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _CollectionMeta_default_instance_; -} // namespace etcd -} // namespace proto -} // namespace milvus -static void InitDefaultsscc_info_CollectionInfo_etcd_5fmeta_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::proto::etcd::_CollectionInfo_default_instance_; - new (ptr) ::milvus::proto::etcd::CollectionInfo(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::proto::etcd::CollectionInfo::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_CollectionInfo_etcd_5fmeta_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsscc_info_CollectionInfo_etcd_5fmeta_2eproto}, { - &scc_info_CollectionSchema_schema_2eproto.base, - &scc_info_FieldIndexInfo_etcd_5fmeta_2eproto.base, - &scc_info_KeyDataPair_common_2eproto.base,}}; - -static void InitDefaultsscc_info_CollectionMeta_etcd_5fmeta_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::proto::etcd::_CollectionMeta_default_instance_; - new (ptr) ::milvus::proto::etcd::CollectionMeta(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::proto::etcd::CollectionMeta::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_CollectionMeta_etcd_5fmeta_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_CollectionMeta_etcd_5fmeta_2eproto}, { - &scc_info_CollectionSchema_schema_2eproto.base,}}; - -static void InitDefaultsscc_info_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<0> scc_info_FieldIndexInfo_etcd_5fmeta_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_FieldIndexInfo_etcd_5fmeta_2eproto}, {}}; - -static void InitDefaultsscc_info_IndexInfo_etcd_5fmeta_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::proto::etcd::_IndexInfo_default_instance_; - new (ptr) ::milvus::proto::etcd::IndexInfo(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::proto::etcd::IndexInfo::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_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_ProxyMeta_etcd_5fmeta_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::proto::etcd::_ProxyMeta_default_instance_; - new (ptr) ::milvus::proto::etcd::ProxyMeta(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::proto::etcd::ProxyMeta::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ProxyMeta_etcd_5fmeta_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_ProxyMeta_etcd_5fmeta_2eproto}, { - &scc_info_Address_common_2eproto.base,}}; - -static void InitDefaultsscc_info_SegmentIndexInfo_etcd_5fmeta_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::proto::etcd::_SegmentIndexInfo_default_instance_; - new (ptr) ::milvus::proto::etcd::SegmentIndexInfo(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::proto::etcd::SegmentIndexInfo::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SegmentIndexInfo_etcd_5fmeta_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_SegmentIndexInfo_etcd_5fmeta_2eproto}, {}}; - -static void InitDefaultsscc_info_TenantMeta_etcd_5fmeta_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::proto::etcd::_TenantMeta_default_instance_; - new (ptr) ::milvus::proto::etcd::TenantMeta(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::proto::etcd::TenantMeta::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_TenantMeta_etcd_5fmeta_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_TenantMeta_etcd_5fmeta_2eproto}, {}}; - -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_etcd_5fmeta_2eproto[7]; -static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_etcd_5fmeta_2eproto = nullptr; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_etcd_5fmeta_2eproto = nullptr; - -const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_etcd_5fmeta_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::TenantMeta, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::TenantMeta, id_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::TenantMeta, num_query_nodes_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::TenantMeta, insert_channelids_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::TenantMeta, query_channelid_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::ProxyMeta, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::ProxyMeta, id_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::ProxyMeta, address_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::ProxyMeta, result_channelids_), - ~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_), - ~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, indexid_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::CollectionInfo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::CollectionInfo, id_), - 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, partitionnames_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::CollectionInfo, field_indexes_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::CollectionInfo, virtual_channel_names_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::CollectionInfo, physical_channel_names_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::CollectionInfo, partition_created_timestamps_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::CollectionInfo, shards_num_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::CollectionInfo, start_positions_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::SegmentIndexInfo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::SegmentIndexInfo, collectionid_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::SegmentIndexInfo, partitionid_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::SegmentIndexInfo, segmentid_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::SegmentIndexInfo, fieldid_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::SegmentIndexInfo, indexid_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::SegmentIndexInfo, buildid_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::SegmentIndexInfo, enable_index_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::CollectionMeta, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::CollectionMeta, id_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::CollectionMeta, schema_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::CollectionMeta, create_time_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::CollectionMeta, segmentids_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::CollectionMeta, partition_tags_), - PROTOBUF_FIELD_OFFSET(::milvus::proto::etcd::CollectionMeta, partitionids_), -}; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::milvus::proto::etcd::TenantMeta)}, - { 9, -1, sizeof(::milvus::proto::etcd::ProxyMeta)}, - { 17, -1, sizeof(::milvus::proto::etcd::IndexInfo)}, - { 25, -1, sizeof(::milvus::proto::etcd::FieldIndexInfo)}, - { 32, -1, sizeof(::milvus::proto::etcd::CollectionInfo)}, - { 48, -1, sizeof(::milvus::proto::etcd::SegmentIndexInfo)}, - { 60, -1, sizeof(::milvus::proto::etcd::CollectionMeta)}, -}; - -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::_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_), -}; - -const char descriptor_table_protodef_etcd_5fmeta_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n\017etcd_meta.proto\022\021milvus.proto.etcd\032\014co" - "mmon.proto\032\014schema.proto\"e\n\nTenantMeta\022\n" - "\n\002ID\030\001 \001(\003\022\027\n\017num_query_nodes\030\002 \001(\003\022\031\n\021i" - "nsert_channelIDs\030\003 \003(\t\022\027\n\017query_channelI" - "D\030\004 \001(\t\"a\n\tProxyMeta\022\n\n\002ID\030\001 \001(\003\022-\n\007addr" - "ess\030\002 \001(\0132\034.milvus.proto.common.Address\022" - "\031\n\021result_channelIDs\030\003 \003(\t\"i\n\tIndexInfo\022" - "\022\n\nindex_name\030\001 \001(\t\022\017\n\007indexID\030\002 \001(\003\0227\n\014" - "index_params\030\003 \003(\0132!.milvus.proto.common" - ".KeyValuePair\"2\n\016FieldIndexInfo\022\017\n\007filed" - "ID\030\001 \001(\003\022\017\n\007indexID\030\002 \001(\003\"\204\003\n\016Collection" - "Info\022\n\n\002ID\030\001 \001(\003\0225\n\006schema\030\002 \001(\0132%.milvu" - "s.proto.schema.CollectionSchema\022\023\n\013creat" - "e_time\030\003 \001(\004\022\024\n\014partitionIDs\030\004 \003(\003\022\026\n\016pa" - "rtitionNames\030\005 \003(\t\0228\n\rfield_indexes\030\006 \003(" - "\0132!.milvus.proto.etcd.FieldIndexInfo\022\035\n\025" - "virtual_channel_names\030\007 \003(\t\022\036\n\026physical_" - "channel_names\030\010 \003(\t\022$\n\034partition_created" - "_timestamps\030\t \003(\004\022\022\n\nshards_num\030\n \001(\005\0229\n" - "\017start_positions\030\013 \003(\0132 .milvus.proto.co" - "mmon.KeyDataPair\"\231\001\n\020SegmentIndexInfo\022\024\n" - "\014collectionID\030\001 \001(\003\022\023\n\013partitionID\030\002 \001(\003" - "\022\021\n\tsegmentID\030\003 \001(\003\022\017\n\007fieldID\030\004 \001(\003\022\017\n\007" - "indexID\030\005 \001(\003\022\017\n\007buildID\030\006 \001(\003\022\024\n\014enable" - "_index\030\007 \001(\010\"\252\001\n\016CollectionMeta\022\n\n\002ID\030\001 " - "\001(\003\0225\n\006schema\030\002 \001(\0132%.milvus.proto.schem" - "a.CollectionSchema\022\023\n\013create_time\030\003 \001(\004\022" - "\022\n\nsegmentIDs\030\004 \003(\003\022\026\n\016partition_tags\030\005 " - "\003(\t\022\024\n\014partitionIDs\030\006 \003(\003B3Z1github.com/" - "milvus-io/milvus/internal/proto/etcdpbb\006" - "proto3" - ; -static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_etcd_5fmeta_2eproto_deps[2] = { - &::descriptor_table_common_2eproto, - &::descriptor_table_schema_2eproto, -}; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_etcd_5fmeta_2eproto_sccs[7] = { - &scc_info_CollectionInfo_etcd_5fmeta_2eproto.base, - &scc_info_CollectionMeta_etcd_5fmeta_2eproto.base, - &scc_info_FieldIndexInfo_etcd_5fmeta_2eproto.base, - &scc_info_IndexInfo_etcd_5fmeta_2eproto.base, - &scc_info_ProxyMeta_etcd_5fmeta_2eproto.base, - &scc_info_SegmentIndexInfo_etcd_5fmeta_2eproto.base, - &scc_info_TenantMeta_etcd_5fmeta_2eproto.base, -}; -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", 1206, - &descriptor_table_etcd_5fmeta_2eproto_once, descriptor_table_etcd_5fmeta_2eproto_sccs, descriptor_table_etcd_5fmeta_2eproto_deps, 7, 2, - schemas, file_default_instances, TableStruct_etcd_5fmeta_2eproto::offsets, - file_level_metadata_etcd_5fmeta_2eproto, 7, file_level_enum_descriptors_etcd_5fmeta_2eproto, file_level_service_descriptors_etcd_5fmeta_2eproto, -}; - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_etcd_5fmeta_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_etcd_5fmeta_2eproto), true); -namespace milvus { -namespace proto { -namespace etcd { - -// =================================================================== - -void TenantMeta::InitAsDefaultInstance() { -} -class TenantMeta::_Internal { - public: -}; - -TenantMeta::TenantMeta() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.proto.etcd.TenantMeta) -} -TenantMeta::TenantMeta(const TenantMeta& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - insert_channelids_(from.insert_channelids_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - query_channelid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.query_channelid().empty()) { - query_channelid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_channelid_); - } - ::memcpy(&id_, &from.id_, - static_cast(reinterpret_cast(&num_query_nodes_) - - reinterpret_cast(&id_)) + sizeof(num_query_nodes_)); - // @@protoc_insertion_point(copy_constructor:milvus.proto.etcd.TenantMeta) -} - -void TenantMeta::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TenantMeta_etcd_5fmeta_2eproto.base); - query_channelid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(&id_, 0, static_cast( - reinterpret_cast(&num_query_nodes_) - - reinterpret_cast(&id_)) + sizeof(num_query_nodes_)); -} - -TenantMeta::~TenantMeta() { - // @@protoc_insertion_point(destructor:milvus.proto.etcd.TenantMeta) - SharedDtor(); -} - -void TenantMeta::SharedDtor() { - query_channelid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void TenantMeta::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TenantMeta& TenantMeta::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TenantMeta_etcd_5fmeta_2eproto.base); - return *internal_default_instance(); -} - - -void TenantMeta::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.proto.etcd.TenantMeta) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - insert_channelids_.Clear(); - query_channelid_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ::memset(&id_, 0, static_cast( - reinterpret_cast(&num_query_nodes_) - - reinterpret_cast(&id_)) + sizeof(num_query_nodes_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TenantMeta::_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; - // int64 num_query_nodes = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - num_query_nodes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated string insert_channelIDs = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr -= 1; - do { - ptr += 1; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_insert_channelids(), ptr, ctx, "milvus.proto.etcd.TenantMeta.insert_channelIDs"); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26); - } else goto handle_unusual; - continue; - // string query_channelID = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_query_channelid(), ptr, ctx, "milvus.proto.etcd.TenantMeta.query_channelID"); - 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 TenantMeta::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.TenantMeta) - 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; - } - - // int64 num_query_nodes = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { - - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( - input, &num_query_nodes_))); - } else { - goto handle_unusual; - } - break; - } - - // repeated string insert_channelIDs = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->add_insert_channelids())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->insert_channelids(this->insert_channelids_size() - 1).data(), - static_cast(this->insert_channelids(this->insert_channelids_size() - 1).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.proto.etcd.TenantMeta.insert_channelIDs")); - } else { - goto handle_unusual; - } - break; - } - - // string query_channelID = 4; - case 4: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_query_channelid())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->query_channelid().data(), static_cast(this->query_channelid().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.proto.etcd.TenantMeta.query_channelID")); - } 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.TenantMeta) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.proto.etcd.TenantMeta) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TenantMeta::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.proto.etcd.TenantMeta) - ::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); - } - - // int64 num_query_nodes = 2; - if (this->num_query_nodes() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->num_query_nodes(), output); - } - - // repeated string insert_channelIDs = 3; - for (int i = 0, n = this->insert_channelids_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->insert_channelids(i).data(), static_cast(this->insert_channelids(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.etcd.TenantMeta.insert_channelIDs"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( - 3, this->insert_channelids(i), output); - } - - // string query_channelID = 4; - if (this->query_channelid().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->query_channelid().data(), static_cast(this->query_channelid().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.etcd.TenantMeta.query_channelID"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->query_channelid(), 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.TenantMeta) -} - -::PROTOBUF_NAMESPACE_ID::uint8* TenantMeta::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.etcd.TenantMeta) - ::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); - } - - // int64 num_query_nodes = 2; - if (this->num_query_nodes() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->num_query_nodes(), target); - } - - // repeated string insert_channelIDs = 3; - for (int i = 0, n = this->insert_channelids_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->insert_channelids(i).data(), static_cast(this->insert_channelids(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.etcd.TenantMeta.insert_channelIDs"); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteStringToArray(3, this->insert_channelids(i), target); - } - - // string query_channelID = 4; - if (this->query_channelid().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->query_channelid().data(), static_cast(this->query_channelid().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.etcd.TenantMeta.query_channelID"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 4, this->query_channelid(), 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.TenantMeta) - return target; -} - -size_t TenantMeta::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.proto.etcd.TenantMeta) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated string insert_channelIDs = 3; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->insert_channelids_size()); - for (int i = 0, n = this->insert_channelids_size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->insert_channelids(i)); - } - - // string query_channelID = 4; - if (this->query_channelid().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->query_channelid()); - } - - // int64 ID = 1; - if (this->id() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->id()); - } - - // int64 num_query_nodes = 2; - if (this->num_query_nodes() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->num_query_nodes()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TenantMeta::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.etcd.TenantMeta) - GOOGLE_DCHECK_NE(&from, this); - const TenantMeta* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.etcd.TenantMeta) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.etcd.TenantMeta) - MergeFrom(*source); - } -} - -void TenantMeta::MergeFrom(const TenantMeta& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.etcd.TenantMeta) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - insert_channelids_.MergeFrom(from.insert_channelids_); - if (from.query_channelid().size() > 0) { - - query_channelid_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.query_channelid_); - } - if (from.id() != 0) { - set_id(from.id()); - } - if (from.num_query_nodes() != 0) { - set_num_query_nodes(from.num_query_nodes()); - } -} - -void TenantMeta::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.etcd.TenantMeta) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TenantMeta::CopyFrom(const TenantMeta& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.etcd.TenantMeta) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TenantMeta::IsInitialized() const { - return true; -} - -void TenantMeta::InternalSwap(TenantMeta* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - insert_channelids_.InternalSwap(CastToBase(&other->insert_channelids_)); - query_channelid_.Swap(&other->query_channelid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(id_, other->id_); - swap(num_query_nodes_, other->num_query_nodes_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata TenantMeta::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void ProxyMeta::InitAsDefaultInstance() { - ::milvus::proto::etcd::_ProxyMeta_default_instance_._instance.get_mutable()->address_ = const_cast< ::milvus::proto::common::Address*>( - ::milvus::proto::common::Address::internal_default_instance()); -} -class ProxyMeta::_Internal { - public: - static const ::milvus::proto::common::Address& address(const ProxyMeta* msg); -}; - -const ::milvus::proto::common::Address& -ProxyMeta::_Internal::address(const ProxyMeta* msg) { - return *msg->address_; -} -void ProxyMeta::clear_address() { - if (GetArenaNoVirtual() == nullptr && address_ != nullptr) { - delete address_; - } - address_ = nullptr; -} -ProxyMeta::ProxyMeta() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.proto.etcd.ProxyMeta) -} -ProxyMeta::ProxyMeta(const ProxyMeta& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - result_channelids_(from.result_channelids_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_address()) { - address_ = new ::milvus::proto::common::Address(*from.address_); - } else { - address_ = nullptr; - } - id_ = from.id_; - // @@protoc_insertion_point(copy_constructor:milvus.proto.etcd.ProxyMeta) -} - -void ProxyMeta::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ProxyMeta_etcd_5fmeta_2eproto.base); - ::memset(&address_, 0, static_cast( - reinterpret_cast(&id_) - - reinterpret_cast(&address_)) + sizeof(id_)); -} - -ProxyMeta::~ProxyMeta() { - // @@protoc_insertion_point(destructor:milvus.proto.etcd.ProxyMeta) - SharedDtor(); -} - -void ProxyMeta::SharedDtor() { - if (this != internal_default_instance()) delete address_; -} - -void ProxyMeta::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ProxyMeta& ProxyMeta::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ProxyMeta_etcd_5fmeta_2eproto.base); - return *internal_default_instance(); -} - - -void ProxyMeta::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.proto.etcd.ProxyMeta) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - result_channelids_.Clear(); - if (GetArenaNoVirtual() == nullptr && address_ != nullptr) { - delete address_; - } - address_ = nullptr; - id_ = PROTOBUF_LONGLONG(0); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ProxyMeta::_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.common.Address address = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(mutable_address(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated string result_channelIDs = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr -= 1; - do { - ptr += 1; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_result_channelids(), ptr, ctx, "milvus.proto.etcd.ProxyMeta.result_channelIDs"); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ProxyMeta::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.ProxyMeta) - 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.common.Address address = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_address())); - } else { - goto handle_unusual; - } - break; - } - - // repeated string result_channelIDs = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->add_result_channelids())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->result_channelids(this->result_channelids_size() - 1).data(), - static_cast(this->result_channelids(this->result_channelids_size() - 1).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.proto.etcd.ProxyMeta.result_channelIDs")); - } 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.ProxyMeta) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.proto.etcd.ProxyMeta) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ProxyMeta::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.proto.etcd.ProxyMeta) - ::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.common.Address address = 2; - if (this->has_address()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, _Internal::address(this), output); - } - - // repeated string result_channelIDs = 3; - for (int i = 0, n = this->result_channelids_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->result_channelids(i).data(), static_cast(this->result_channelids(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.etcd.ProxyMeta.result_channelIDs"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( - 3, this->result_channelids(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.ProxyMeta) -} - -::PROTOBUF_NAMESPACE_ID::uint8* ProxyMeta::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.etcd.ProxyMeta) - ::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.common.Address address = 2; - if (this->has_address()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, _Internal::address(this), target); - } - - // repeated string result_channelIDs = 3; - for (int i = 0, n = this->result_channelids_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->result_channelids(i).data(), static_cast(this->result_channelids(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.etcd.ProxyMeta.result_channelIDs"); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteStringToArray(3, this->result_channelids(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.ProxyMeta) - return target; -} - -size_t ProxyMeta::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.proto.etcd.ProxyMeta) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated string result_channelIDs = 3; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->result_channelids_size()); - for (int i = 0, n = this->result_channelids_size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->result_channelids(i)); - } - - // .milvus.proto.common.Address address = 2; - if (this->has_address()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *address_); - } - - // int64 ID = 1; - if (this->id() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->id()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ProxyMeta::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.etcd.ProxyMeta) - GOOGLE_DCHECK_NE(&from, this); - const ProxyMeta* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.etcd.ProxyMeta) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.etcd.ProxyMeta) - MergeFrom(*source); - } -} - -void ProxyMeta::MergeFrom(const ProxyMeta& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.etcd.ProxyMeta) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - result_channelids_.MergeFrom(from.result_channelids_); - if (from.has_address()) { - mutable_address()->::milvus::proto::common::Address::MergeFrom(from.address()); - } - if (from.id() != 0) { - set_id(from.id()); - } -} - -void ProxyMeta::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.etcd.ProxyMeta) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ProxyMeta::CopyFrom(const ProxyMeta& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.etcd.ProxyMeta) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ProxyMeta::IsInitialized() const { - return true; -} - -void ProxyMeta::InternalSwap(ProxyMeta* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - result_channelids_.InternalSwap(CastToBase(&other->result_channelids_)); - swap(address_, other->address_); - swap(id_, other->id_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata ProxyMeta::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void IndexInfo::InitAsDefaultInstance() { -} -class IndexInfo::_Internal { - public: -}; - -void IndexInfo::clear_index_params() { - index_params_.Clear(); -} -IndexInfo::IndexInfo() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.proto.etcd.IndexInfo) -} -IndexInfo::IndexInfo(const IndexInfo& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - index_params_(from.index_params_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - index_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.index_name().empty()) { - index_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.index_name_); - } - indexid_ = from.indexid_; - // @@protoc_insertion_point(copy_constructor:milvus.proto.etcd.IndexInfo) -} - -void IndexInfo::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_IndexInfo_etcd_5fmeta_2eproto.base); - index_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - indexid_ = PROTOBUF_LONGLONG(0); -} - -IndexInfo::~IndexInfo() { - // @@protoc_insertion_point(destructor:milvus.proto.etcd.IndexInfo) - SharedDtor(); -} - -void IndexInfo::SharedDtor() { - index_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void IndexInfo::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const IndexInfo& IndexInfo::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_IndexInfo_etcd_5fmeta_2eproto.base); - return *internal_default_instance(); -} - - -void IndexInfo::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.proto.etcd.IndexInfo) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - index_params_.Clear(); - index_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - indexid_ = PROTOBUF_LONGLONG(0); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* IndexInfo::_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) { - // string index_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_index_name(), ptr, ctx, "milvus.proto.etcd.IndexInfo.index_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // int64 indexID = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - indexid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .milvus.proto.common.KeyValuePair index_params = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(add_index_params(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26); - } else goto handle_unusual; - continue; - 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 IndexInfo::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.IndexInfo) - 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)) { - // string index_name = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_index_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->index_name().data(), static_cast(this->index_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.proto.etcd.IndexInfo.index_name")); - } else { - goto handle_unusual; - } - break; - } - - // int64 indexID = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { - - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( - input, &indexid_))); - } else { - goto handle_unusual; - } - break; - } - - // repeated .milvus.proto.common.KeyValuePair index_params = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 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.IndexInfo) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.proto.etcd.IndexInfo) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void IndexInfo::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.proto.etcd.IndexInfo) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string index_name = 1; - if (this->index_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->index_name().data(), static_cast(this->index_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.etcd.IndexInfo.index_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->index_name(), output); - } - - // int64 indexID = 2; - if (this->indexid() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->indexid(), output); - } - - // repeated .milvus.proto.common.KeyValuePair index_params = 3; - for (unsigned int i = 0, - n = static_cast(this->index_params_size()); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, - 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.IndexInfo) -} - -::PROTOBUF_NAMESPACE_ID::uint8* IndexInfo::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.etcd.IndexInfo) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string index_name = 1; - if (this->index_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->index_name().data(), static_cast(this->index_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.etcd.IndexInfo.index_name"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->index_name(), target); - } - - // int64 indexID = 2; - if (this->indexid() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->indexid(), target); - } - - // repeated .milvus.proto.common.KeyValuePair index_params = 3; - for (unsigned int i = 0, - n = static_cast(this->index_params_size()); i < n; i++) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, 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.IndexInfo) - return target; -} - -size_t IndexInfo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.proto.etcd.IndexInfo) - 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 = 3; - { - 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))); - } - } - - // string index_name = 1; - if (this->index_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->index_name()); - } - - // int64 indexID = 2; - if (this->indexid() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->indexid()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void IndexInfo::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.etcd.IndexInfo) - GOOGLE_DCHECK_NE(&from, this); - const IndexInfo* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.etcd.IndexInfo) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.etcd.IndexInfo) - MergeFrom(*source); - } -} - -void IndexInfo::MergeFrom(const IndexInfo& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.etcd.IndexInfo) - 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.index_name().size() > 0) { - - index_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.index_name_); - } - if (from.indexid() != 0) { - set_indexid(from.indexid()); - } -} - -void IndexInfo::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.etcd.IndexInfo) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void IndexInfo::CopyFrom(const IndexInfo& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.etcd.IndexInfo) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool IndexInfo::IsInitialized() const { - return true; -} - -void IndexInfo::InternalSwap(IndexInfo* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&index_params_)->InternalSwap(CastToBase(&other->index_params_)); - index_name_.Swap(&other->index_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(indexid_, other->indexid_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata IndexInfo::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void FieldIndexInfo::InitAsDefaultInstance() { -} -class FieldIndexInfo::_Internal { - public: -}; - -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_); - ::memcpy(&filedid_, &from.filedid_, - static_cast(reinterpret_cast(&indexid_) - - reinterpret_cast(&filedid_)) + sizeof(indexid_)); - // @@protoc_insertion_point(copy_constructor:milvus.proto.etcd.FieldIndexInfo) -} - -void FieldIndexInfo::SharedCtor() { - ::memset(&filedid_, 0, static_cast( - reinterpret_cast(&indexid_) - - reinterpret_cast(&filedid_)) + sizeof(indexid_)); -} - -FieldIndexInfo::~FieldIndexInfo() { - // @@protoc_insertion_point(destructor:milvus.proto.etcd.FieldIndexInfo) - SharedDtor(); -} - -void FieldIndexInfo::SharedDtor() { -} - -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; - - ::memset(&filedid_, 0, static_cast( - reinterpret_cast(&indexid_) - - reinterpret_cast(&filedid_)) + sizeof(indexid_)); - _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; - // int64 indexID = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - indexid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool 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; - } - - // int64 indexID = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { - - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( - input, &indexid_))); - } else { - goto handle_unusual; - } - break; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } - } - } -success: - // @@protoc_insertion_point(parse_success:milvus.proto.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); - } - - // int64 indexID = 2; - if (this->indexid() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->indexid(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:milvus.proto.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); - } - - // int64 indexID = 2; - if (this->indexid() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->indexid(), target); - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:milvus.proto.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; - - // int64 filedID = 1; - if (this->filedid() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->filedid()); - } - - // int64 indexID = 2; - if (this->indexid() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->indexid()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void 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.filedid() != 0) { - set_filedid(from.filedid()); - } - if (from.indexid() != 0) { - set_indexid(from.indexid()); - } -} - -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(filedid_, other->filedid_); - swap(indexid_, other->indexid_); -} - -::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; -} -void CollectionInfo::clear_start_positions() { - start_positions_.Clear(); -} -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_), - partitionnames_(from.partitionnames_), - field_indexes_(from.field_indexes_), - virtual_channel_names_(from.virtual_channel_names_), - physical_channel_names_(from.physical_channel_names_), - partition_created_timestamps_(from.partition_created_timestamps_), - start_positions_(from.start_positions_) { - _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(&shards_num_) - - reinterpret_cast(&id_)) + sizeof(shards_num_)); - // @@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(&shards_num_) - - reinterpret_cast(&schema_)) + sizeof(shards_num_)); -} - -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(); - partitionnames_.Clear(); - field_indexes_.Clear(); - virtual_channel_names_.Clear(); - physical_channel_names_.Clear(); - partition_created_timestamps_.Clear(); - start_positions_.Clear(); - if (GetArenaNoVirtual() == nullptr && schema_ != nullptr) { - delete schema_; - } - schema_ = nullptr; - ::memset(&id_, 0, static_cast( - reinterpret_cast(&shards_num_) - - reinterpret_cast(&id_)) + sizeof(shards_num_)); - _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 string partitionNames = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - ptr -= 1; - do { - ptr += 1; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_partitionnames(), ptr, ctx, "milvus.proto.etcd.CollectionInfo.partitionNames"); - 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 .milvus.proto.etcd.FieldIndexInfo field_indexes = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { - 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) == 50); - } else goto handle_unusual; - continue; - // repeated string virtual_channel_names = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { - ptr -= 1; - do { - ptr += 1; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_virtual_channel_names(), ptr, ctx, "milvus.proto.etcd.CollectionInfo.virtual_channel_names"); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 58); - } else goto handle_unusual; - continue; - // repeated string physical_channel_names = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { - ptr -= 1; - do { - ptr += 1; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_physical_channel_names(), ptr, ctx, "milvus.proto.etcd.CollectionInfo.physical_channel_names"); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 66); - } else goto handle_unusual; - continue; - // repeated uint64 partition_created_timestamps = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt64Parser(mutable_partition_created_timestamps(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72) { - add_partition_created_timestamps(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); - CHK_(ptr); - } else goto handle_unusual; - continue; - // int32 shards_num = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) { - shards_num_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .milvus.proto.common.KeyDataPair start_positions = 11; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(add_start_positions(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 90); - } 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 string partitionNames = 5; - case 5: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->add_partitionnames())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->partitionnames(this->partitionnames_size() - 1).data(), - static_cast(this->partitionnames(this->partitionnames_size() - 1).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.proto.etcd.CollectionInfo.partitionNames")); - } else { - goto handle_unusual; - } - break; - } - - // repeated .milvus.proto.etcd.FieldIndexInfo field_indexes = 6; - case 6: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, add_field_indexes())); - } else { - goto handle_unusual; - } - break; - } - - // repeated string virtual_channel_names = 7; - case 7: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (58 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->add_virtual_channel_names())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->virtual_channel_names(this->virtual_channel_names_size() - 1).data(), - static_cast(this->virtual_channel_names(this->virtual_channel_names_size() - 1).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.proto.etcd.CollectionInfo.virtual_channel_names")); - } else { - goto handle_unusual; - } - break; - } - - // repeated string physical_channel_names = 8; - case 8: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (66 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->add_physical_channel_names())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->physical_channel_names(this->physical_channel_names_size() - 1).data(), - static_cast(this->physical_channel_names(this->physical_channel_names_size() - 1).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.proto.etcd.CollectionInfo.physical_channel_names")); - } else { - goto handle_unusual; - } - break; - } - - // repeated uint64 partition_created_timestamps = 9; - case 9: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (74 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< - ::PROTOBUF_NAMESPACE_ID::uint64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT64>( - input, this->mutable_partition_created_timestamps()))); - } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (72 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::PROTOBUF_NAMESPACE_ID::uint64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT64>( - 1, 74u, input, this->mutable_partition_created_timestamps()))); - } else { - goto handle_unusual; - } - break; - } - - // int32 shards_num = 10; - case 10: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (80 & 0xFF)) { - - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>( - input, &shards_num_))); - } else { - goto handle_unusual; - } - break; - } - - // repeated .milvus.proto.common.KeyDataPair start_positions = 11; - case 11: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (90 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, add_start_positions())); - } 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 string partitionNames = 5; - for (int i = 0, n = this->partitionnames_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->partitionnames(i).data(), static_cast(this->partitionnames(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.etcd.CollectionInfo.partitionNames"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( - 5, this->partitionnames(i), output); - } - - // repeated .milvus.proto.etcd.FieldIndexInfo field_indexes = 6; - for (unsigned int i = 0, - n = static_cast(this->field_indexes_size()); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, - this->field_indexes(static_cast(i)), - output); - } - - // repeated string virtual_channel_names = 7; - for (int i = 0, n = this->virtual_channel_names_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->virtual_channel_names(i).data(), static_cast(this->virtual_channel_names(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.etcd.CollectionInfo.virtual_channel_names"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( - 7, this->virtual_channel_names(i), output); - } - - // repeated string physical_channel_names = 8; - for (int i = 0, n = this->physical_channel_names_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->physical_channel_names(i).data(), static_cast(this->physical_channel_names(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.etcd.CollectionInfo.physical_channel_names"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( - 8, this->physical_channel_names(i), output); - } - - // repeated uint64 partition_created_timestamps = 9; - if (this->partition_created_timestamps_size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(9, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_partition_created_timestamps_cached_byte_size_.load( - std::memory_order_relaxed)); - } - for (int i = 0, n = this->partition_created_timestamps_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64NoTag( - this->partition_created_timestamps(i), output); - } - - // int32 shards_num = 10; - if (this->shards_num() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(10, this->shards_num(), output); - } - - // repeated .milvus.proto.common.KeyDataPair start_positions = 11; - for (unsigned int i = 0, - n = static_cast(this->start_positions_size()); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 11, - this->start_positions(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 string partitionNames = 5; - for (int i = 0, n = this->partitionnames_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->partitionnames(i).data(), static_cast(this->partitionnames(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.etcd.CollectionInfo.partitionNames"); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteStringToArray(5, this->partitionnames(i), target); - } - - // repeated .milvus.proto.etcd.FieldIndexInfo field_indexes = 6; - for (unsigned int i = 0, - n = static_cast(this->field_indexes_size()); i < n; i++) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 6, this->field_indexes(static_cast(i)), target); - } - - // repeated string virtual_channel_names = 7; - for (int i = 0, n = this->virtual_channel_names_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->virtual_channel_names(i).data(), static_cast(this->virtual_channel_names(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.etcd.CollectionInfo.virtual_channel_names"); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteStringToArray(7, this->virtual_channel_names(i), target); - } - - // repeated string physical_channel_names = 8; - for (int i = 0, n = this->physical_channel_names_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->physical_channel_names(i).data(), static_cast(this->physical_channel_names(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.etcd.CollectionInfo.physical_channel_names"); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteStringToArray(8, this->physical_channel_names(i), target); - } - - // repeated uint64 partition_created_timestamps = 9; - if (this->partition_created_timestamps_size() > 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( - 9, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( - _partition_created_timestamps_cached_byte_size_.load(std::memory_order_relaxed), - target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteUInt64NoTagToArray(this->partition_created_timestamps_, target); - } - - // int32 shards_num = 10; - if (this->shards_num() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(10, this->shards_num(), target); - } - - // repeated .milvus.proto.common.KeyDataPair start_positions = 11; - for (unsigned int i = 0, - n = static_cast(this->start_positions_size()); i < n; i++) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 11, this->start_positions(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 string partitionNames = 5; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->partitionnames_size()); - for (int i = 0, n = this->partitionnames_size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->partitionnames(i)); - } - - // repeated .milvus.proto.etcd.FieldIndexInfo field_indexes = 6; - { - 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))); - } - } - - // repeated string virtual_channel_names = 7; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->virtual_channel_names_size()); - for (int i = 0, n = this->virtual_channel_names_size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->virtual_channel_names(i)); - } - - // repeated string physical_channel_names = 8; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->physical_channel_names_size()); - for (int i = 0, n = this->physical_channel_names_size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->physical_channel_names(i)); - } - - // repeated uint64 partition_created_timestamps = 9; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - UInt64Size(this->partition_created_timestamps_); - 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); - _partition_created_timestamps_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // repeated .milvus.proto.common.KeyDataPair start_positions = 11; - { - unsigned int count = static_cast(this->start_positions_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - this->start_positions(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()); - } - - // int32 shards_num = 10; - if (this->shards_num() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - this->shards_num()); - } - - 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_); - partitionnames_.MergeFrom(from.partitionnames_); - field_indexes_.MergeFrom(from.field_indexes_); - virtual_channel_names_.MergeFrom(from.virtual_channel_names_); - physical_channel_names_.MergeFrom(from.physical_channel_names_); - partition_created_timestamps_.MergeFrom(from.partition_created_timestamps_); - start_positions_.MergeFrom(from.start_positions_); - 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()); - } - if (from.shards_num() != 0) { - set_shards_num(from.shards_num()); - } -} - -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_); - partitionnames_.InternalSwap(CastToBase(&other->partitionnames_)); - CastToBase(&field_indexes_)->InternalSwap(CastToBase(&other->field_indexes_)); - virtual_channel_names_.InternalSwap(CastToBase(&other->virtual_channel_names_)); - physical_channel_names_.InternalSwap(CastToBase(&other->physical_channel_names_)); - partition_created_timestamps_.InternalSwap(&other->partition_created_timestamps_); - CastToBase(&start_positions_)->InternalSwap(CastToBase(&other->start_positions_)); - swap(schema_, other->schema_); - swap(id_, other->id_); - swap(create_time_, other->create_time_); - swap(shards_num_, other->shards_num_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata CollectionInfo::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void SegmentIndexInfo::InitAsDefaultInstance() { -} -class SegmentIndexInfo::_Internal { - public: -}; - -SegmentIndexInfo::SegmentIndexInfo() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.proto.etcd.SegmentIndexInfo) -} -SegmentIndexInfo::SegmentIndexInfo(const SegmentIndexInfo& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&collectionid_, &from.collectionid_, - static_cast(reinterpret_cast(&enable_index_) - - reinterpret_cast(&collectionid_)) + sizeof(enable_index_)); - // @@protoc_insertion_point(copy_constructor:milvus.proto.etcd.SegmentIndexInfo) -} - -void SegmentIndexInfo::SharedCtor() { - ::memset(&collectionid_, 0, static_cast( - reinterpret_cast(&enable_index_) - - reinterpret_cast(&collectionid_)) + sizeof(enable_index_)); -} - -SegmentIndexInfo::~SegmentIndexInfo() { - // @@protoc_insertion_point(destructor:milvus.proto.etcd.SegmentIndexInfo) - SharedDtor(); -} - -void SegmentIndexInfo::SharedDtor() { -} - -void SegmentIndexInfo::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const SegmentIndexInfo& SegmentIndexInfo::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SegmentIndexInfo_etcd_5fmeta_2eproto.base); - return *internal_default_instance(); -} - - -void SegmentIndexInfo::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.proto.etcd.SegmentIndexInfo) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&collectionid_, 0, static_cast( - reinterpret_cast(&enable_index_) - - reinterpret_cast(&collectionid_)) + sizeof(enable_index_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* SegmentIndexInfo::_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 collectionID = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - collectionid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // int64 partitionID = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { - partitionid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // int64 segmentID = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { - segmentid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // int64 fieldID = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { - fieldid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // int64 indexID = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { - indexid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // int64 buildID = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { - buildid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // bool enable_index = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { - enable_index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool SegmentIndexInfo::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.SegmentIndexInfo) - 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 collectionID = 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, &collectionid_))); - } else { - goto handle_unusual; - } - break; - } - - // int64 partitionID = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { - - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( - input, &partitionid_))); - } else { - goto handle_unusual; - } - break; - } - - // int64 segmentID = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) { - - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( - input, &segmentid_))); - } else { - goto handle_unusual; - } - break; - } - - // int64 fieldID = 4; - case 4: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) { - - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( - input, &fieldid_))); - } else { - goto handle_unusual; - } - break; - } - - // int64 indexID = 5; - case 5: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (40 & 0xFF)) { - - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( - input, &indexid_))); - } else { - goto handle_unusual; - } - break; - } - - // int64 buildID = 6; - case 6: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (48 & 0xFF)) { - - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( - input, &buildid_))); - } else { - goto handle_unusual; - } - break; - } - - // bool enable_index = 7; - case 7: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (56 & 0xFF)) { - - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>( - input, &enable_index_))); - } 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.SegmentIndexInfo) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.proto.etcd.SegmentIndexInfo) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void SegmentIndexInfo::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.proto.etcd.SegmentIndexInfo) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int64 collectionID = 1; - if (this->collectionid() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->collectionid(), output); - } - - // int64 partitionID = 2; - if (this->partitionid() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->partitionid(), output); - } - - // int64 segmentID = 3; - if (this->segmentid() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(3, this->segmentid(), output); - } - - // int64 fieldID = 4; - if (this->fieldid() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(4, this->fieldid(), output); - } - - // int64 indexID = 5; - if (this->indexid() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(5, this->indexid(), output); - } - - // int64 buildID = 6; - if (this->buildid() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(6, this->buildid(), output); - } - - // bool enable_index = 7; - if (this->enable_index() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(7, this->enable_index(), 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.SegmentIndexInfo) -} - -::PROTOBUF_NAMESPACE_ID::uint8* SegmentIndexInfo::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.etcd.SegmentIndexInfo) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int64 collectionID = 1; - if (this->collectionid() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->collectionid(), target); - } - - // int64 partitionID = 2; - if (this->partitionid() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->partitionid(), target); - } - - // int64 segmentID = 3; - if (this->segmentid() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->segmentid(), target); - } - - // int64 fieldID = 4; - if (this->fieldid() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->fieldid(), target); - } - - // int64 indexID = 5; - if (this->indexid() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(5, this->indexid(), target); - } - - // int64 buildID = 6; - if (this->buildid() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(6, this->buildid(), target); - } - - // bool enable_index = 7; - if (this->enable_index() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(7, this->enable_index(), 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.SegmentIndexInfo) - return target; -} - -size_t SegmentIndexInfo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.proto.etcd.SegmentIndexInfo) - size_t total_size = 0; - - if (_internal_metadata_.have_unknown_fields()) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( - _internal_metadata_.unknown_fields()); - } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // int64 collectionID = 1; - if (this->collectionid() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->collectionid()); - } - - // int64 partitionID = 2; - if (this->partitionid() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->partitionid()); - } - - // int64 segmentID = 3; - if (this->segmentid() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->segmentid()); - } - - // int64 fieldID = 4; - if (this->fieldid() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->fieldid()); - } - - // int64 indexID = 5; - if (this->indexid() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->indexid()); - } - - // int64 buildID = 6; - if (this->buildid() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->buildid()); - } - - // bool enable_index = 7; - if (this->enable_index() != 0) { - total_size += 1 + 1; - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void SegmentIndexInfo::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.etcd.SegmentIndexInfo) - GOOGLE_DCHECK_NE(&from, this); - const SegmentIndexInfo* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.etcd.SegmentIndexInfo) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.etcd.SegmentIndexInfo) - MergeFrom(*source); - } -} - -void SegmentIndexInfo::MergeFrom(const SegmentIndexInfo& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.etcd.SegmentIndexInfo) - 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.collectionid() != 0) { - set_collectionid(from.collectionid()); - } - if (from.partitionid() != 0) { - set_partitionid(from.partitionid()); - } - if (from.segmentid() != 0) { - set_segmentid(from.segmentid()); - } - if (from.fieldid() != 0) { - set_fieldid(from.fieldid()); - } - if (from.indexid() != 0) { - set_indexid(from.indexid()); - } - if (from.buildid() != 0) { - set_buildid(from.buildid()); - } - if (from.enable_index() != 0) { - set_enable_index(from.enable_index()); - } -} - -void SegmentIndexInfo::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.etcd.SegmentIndexInfo) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SegmentIndexInfo::CopyFrom(const SegmentIndexInfo& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.etcd.SegmentIndexInfo) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SegmentIndexInfo::IsInitialized() const { - return true; -} - -void SegmentIndexInfo::InternalSwap(SegmentIndexInfo* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(collectionid_, other->collectionid_); - swap(partitionid_, other->partitionid_); - swap(segmentid_, other->segmentid_); - swap(fieldid_, other->fieldid_); - swap(indexid_, other->indexid_); - swap(buildid_, other->buildid_); - swap(enable_index_, other->enable_index_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata SegmentIndexInfo::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void CollectionMeta::InitAsDefaultInstance() { - ::milvus::proto::etcd::_CollectionMeta_default_instance_._instance.get_mutable()->schema_ = const_cast< ::milvus::proto::schema::CollectionSchema*>( - ::milvus::proto::schema::CollectionSchema::internal_default_instance()); -} -class CollectionMeta::_Internal { - public: - static const ::milvus::proto::schema::CollectionSchema& schema(const CollectionMeta* msg); -}; - -const ::milvus::proto::schema::CollectionSchema& -CollectionMeta::_Internal::schema(const CollectionMeta* msg) { - return *msg->schema_; -} -void CollectionMeta::clear_schema() { - if (GetArenaNoVirtual() == nullptr && schema_ != nullptr) { - delete schema_; - } - schema_ = nullptr; -} -CollectionMeta::CollectionMeta() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.proto.etcd.CollectionMeta) -} -CollectionMeta::CollectionMeta(const CollectionMeta& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - segmentids_(from.segmentids_), - partition_tags_(from.partition_tags_), - partitionids_(from.partitionids_) { - _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.CollectionMeta) -} - -void CollectionMeta::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CollectionMeta_etcd_5fmeta_2eproto.base); - ::memset(&schema_, 0, static_cast( - reinterpret_cast(&create_time_) - - reinterpret_cast(&schema_)) + sizeof(create_time_)); -} - -CollectionMeta::~CollectionMeta() { - // @@protoc_insertion_point(destructor:milvus.proto.etcd.CollectionMeta) - SharedDtor(); -} - -void CollectionMeta::SharedDtor() { - if (this != internal_default_instance()) delete schema_; -} - -void CollectionMeta::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CollectionMeta& CollectionMeta::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CollectionMeta_etcd_5fmeta_2eproto.base); - return *internal_default_instance(); -} - - -void CollectionMeta::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.proto.etcd.CollectionMeta) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - segmentids_.Clear(); - partition_tags_.Clear(); - partitionids_.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* CollectionMeta::_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 segmentIDs = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(mutable_segmentids(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32) { - add_segmentids(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated string partition_tags = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - ptr -= 1; - do { - ptr += 1; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_partition_tags(), ptr, ctx, "milvus.proto.etcd.CollectionMeta.partition_tags"); - 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 int64 partitionIDs = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(mutable_partitionids(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48) { - add_partitionids(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); - CHK_(ptr); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool CollectionMeta::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.CollectionMeta) - 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 segmentIDs = 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_segmentids()))); - } 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_segmentids()))); - } else { - goto handle_unusual; - } - break; - } - - // repeated string partition_tags = 5; - case 5: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->add_partition_tags())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->partition_tags(this->partition_tags_size() - 1).data(), - static_cast(this->partition_tags(this->partition_tags_size() - 1).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.proto.etcd.CollectionMeta.partition_tags")); - } else { - goto handle_unusual; - } - break; - } - - // repeated int64 partitionIDs = 6; - case 6: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 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) == (48 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( - 1, 50u, input, this->mutable_partitionids()))); - } 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.CollectionMeta) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.proto.etcd.CollectionMeta) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void CollectionMeta::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.proto.etcd.CollectionMeta) - ::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 segmentIDs = 4; - if (this->segmentids_size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(4, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_segmentids_cached_byte_size_.load( - std::memory_order_relaxed)); - } - for (int i = 0, n = this->segmentids_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64NoTag( - this->segmentids(i), output); - } - - // repeated string partition_tags = 5; - for (int i = 0, n = this->partition_tags_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->partition_tags(i).data(), static_cast(this->partition_tags(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.etcd.CollectionMeta.partition_tags"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( - 5, this->partition_tags(i), output); - } - - // repeated int64 partitionIDs = 6; - if (this->partitionids_size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(6, ::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); - } - - 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.CollectionMeta) -} - -::PROTOBUF_NAMESPACE_ID::uint8* CollectionMeta::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.proto.etcd.CollectionMeta) - ::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 segmentIDs = 4; - if (this->segmentids_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( - _segmentids_cached_byte_size_.load(std::memory_order_relaxed), - target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteInt64NoTagToArray(this->segmentids_, target); - } - - // repeated string partition_tags = 5; - for (int i = 0, n = this->partition_tags_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->partition_tags(i).data(), static_cast(this->partition_tags(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.proto.etcd.CollectionMeta.partition_tags"); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteStringToArray(5, this->partition_tags(i), target); - } - - // repeated int64 partitionIDs = 6; - if (this->partitionids_size() > 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( - 6, - ::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); - } - - 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.CollectionMeta) - return target; -} - -size_t CollectionMeta::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.proto.etcd.CollectionMeta) - 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 segmentIDs = 4; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int64Size(this->segmentids_); - 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); - _segmentids_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // repeated string partition_tags = 5; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->partition_tags_size()); - for (int i = 0, n = this->partition_tags_size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->partition_tags(i)); - } - - // repeated int64 partitionIDs = 6; - { - 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; - } - - // .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 CollectionMeta::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.proto.etcd.CollectionMeta) - GOOGLE_DCHECK_NE(&from, this); - const CollectionMeta* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.proto.etcd.CollectionMeta) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.proto.etcd.CollectionMeta) - MergeFrom(*source); - } -} - -void CollectionMeta::MergeFrom(const CollectionMeta& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.proto.etcd.CollectionMeta) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - segmentids_.MergeFrom(from.segmentids_); - partition_tags_.MergeFrom(from.partition_tags_); - partitionids_.MergeFrom(from.partitionids_); - 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 CollectionMeta::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.proto.etcd.CollectionMeta) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CollectionMeta::CopyFrom(const CollectionMeta& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.proto.etcd.CollectionMeta) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CollectionMeta::IsInitialized() const { - return true; -} - -void CollectionMeta::InternalSwap(CollectionMeta* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - segmentids_.InternalSwap(&other->segmentids_); - partition_tags_.InternalSwap(CastToBase(&other->partition_tags_)); - partitionids_.InternalSwap(&other->partitionids_); - swap(schema_, other->schema_); - swap(id_, other->id_); - swap(create_time_, other->create_time_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata CollectionMeta::GetMetadata() const { - return GetMetadataStatic(); -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace etcd -} // namespace proto -} // namespace milvus -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::milvus::proto::etcd::TenantMeta* Arena::CreateMaybeMessage< ::milvus::proto::etcd::TenantMeta >(Arena* arena) { - return Arena::CreateInternal< ::milvus::proto::etcd::TenantMeta >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::proto::etcd::ProxyMeta* Arena::CreateMaybeMessage< ::milvus::proto::etcd::ProxyMeta >(Arena* arena) { - return Arena::CreateInternal< ::milvus::proto::etcd::ProxyMeta >(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::SegmentIndexInfo* Arena::CreateMaybeMessage< ::milvus::proto::etcd::SegmentIndexInfo >(Arena* arena) { - return Arena::CreateInternal< ::milvus::proto::etcd::SegmentIndexInfo >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::proto::etcd::CollectionMeta* Arena::CreateMaybeMessage< ::milvus::proto::etcd::CollectionMeta >(Arena* arena) { - return Arena::CreateInternal< ::milvus::proto::etcd::CollectionMeta >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - -// @@protoc_insertion_point(global_scope) -#include diff --git a/internal/core/src/pb/etcd_meta.pb.h b/internal/core/src/pb/etcd_meta.pb.h deleted file mode 100644 index 6c7f2f6e5a..0000000000 --- a/internal/core/src/pb/etcd_meta.pb.h +++ /dev/null @@ -1,2501 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: etcd_meta.proto - -#ifndef GOOGLE_PROTOBUF_INCLUDED_etcd_5fmeta_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_etcd_5fmeta_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3009000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3009000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include "common.pb.h" -#include "schema.pb.h" -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_etcd_5fmeta_2eproto -PROTOBUF_NAMESPACE_OPEN -namespace internal { -class AnyMetadata; -} // namespace internal -PROTOBUF_NAMESPACE_CLOSE - -// Internal implementation detail -- do not use these members. -struct TableStruct_etcd_5fmeta_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[7] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; -}; -extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_etcd_5fmeta_2eproto; -namespace milvus { -namespace proto { -namespace etcd { -class CollectionInfo; -class CollectionInfoDefaultTypeInternal; -extern CollectionInfoDefaultTypeInternal _CollectionInfo_default_instance_; -class CollectionMeta; -class CollectionMetaDefaultTypeInternal; -extern CollectionMetaDefaultTypeInternal _CollectionMeta_default_instance_; -class FieldIndexInfo; -class FieldIndexInfoDefaultTypeInternal; -extern FieldIndexInfoDefaultTypeInternal _FieldIndexInfo_default_instance_; -class IndexInfo; -class IndexInfoDefaultTypeInternal; -extern IndexInfoDefaultTypeInternal _IndexInfo_default_instance_; -class ProxyMeta; -class ProxyMetaDefaultTypeInternal; -extern ProxyMetaDefaultTypeInternal _ProxyMeta_default_instance_; -class SegmentIndexInfo; -class SegmentIndexInfoDefaultTypeInternal; -extern SegmentIndexInfoDefaultTypeInternal _SegmentIndexInfo_default_instance_; -class TenantMeta; -class TenantMetaDefaultTypeInternal; -extern TenantMetaDefaultTypeInternal _TenantMeta_default_instance_; -} // namespace etcd -} // namespace proto -} // namespace milvus -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::FieldIndexInfo* Arena::CreateMaybeMessage<::milvus::proto::etcd::FieldIndexInfo>(Arena*); -template<> ::milvus::proto::etcd::IndexInfo* Arena::CreateMaybeMessage<::milvus::proto::etcd::IndexInfo>(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*); -template<> ::milvus::proto::etcd::TenantMeta* Arena::CreateMaybeMessage<::milvus::proto::etcd::TenantMeta>(Arena*); -PROTOBUF_NAMESPACE_CLOSE -namespace milvus { -namespace proto { -namespace etcd { - -// =================================================================== - -class TenantMeta : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.etcd.TenantMeta) */ { - public: - TenantMeta(); - virtual ~TenantMeta(); - - TenantMeta(const TenantMeta& from); - TenantMeta(TenantMeta&& from) noexcept - : TenantMeta() { - *this = ::std::move(from); - } - - inline TenantMeta& operator=(const TenantMeta& from) { - CopyFrom(from); - return *this; - } - inline TenantMeta& operator=(TenantMeta&& 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 TenantMeta& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TenantMeta* internal_default_instance() { - return reinterpret_cast( - &_TenantMeta_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(TenantMeta& a, TenantMeta& b) { - a.Swap(&b); - } - inline void Swap(TenantMeta* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline TenantMeta* New() const final { - return CreateMaybeMessage(nullptr); - } - - TenantMeta* 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 TenantMeta& from); - void MergeFrom(const TenantMeta& 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(TenantMeta* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.proto.etcd.TenantMeta"; - } - 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 { - kInsertChannelIDsFieldNumber = 3, - kQueryChannelIDFieldNumber = 4, - kIDFieldNumber = 1, - kNumQueryNodesFieldNumber = 2, - }; - // repeated string insert_channelIDs = 3; - int insert_channelids_size() const; - void clear_insert_channelids(); - const std::string& insert_channelids(int index) const; - std::string* mutable_insert_channelids(int index); - void set_insert_channelids(int index, const std::string& value); - void set_insert_channelids(int index, std::string&& value); - void set_insert_channelids(int index, const char* value); - void set_insert_channelids(int index, const char* value, size_t size); - std::string* add_insert_channelids(); - void add_insert_channelids(const std::string& value); - void add_insert_channelids(std::string&& value); - void add_insert_channelids(const char* value); - void add_insert_channelids(const char* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& insert_channelids() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_insert_channelids(); - - // string query_channelID = 4; - void clear_query_channelid(); - const std::string& query_channelid() const; - void set_query_channelid(const std::string& value); - void set_query_channelid(std::string&& value); - void set_query_channelid(const char* value); - void set_query_channelid(const char* value, size_t size); - std::string* mutable_query_channelid(); - std::string* release_query_channelid(); - void set_allocated_query_channelid(std::string* query_channelid); - - // int64 ID = 1; - void clear_id(); - ::PROTOBUF_NAMESPACE_ID::int64 id() const; - void set_id(::PROTOBUF_NAMESPACE_ID::int64 value); - - // int64 num_query_nodes = 2; - void clear_num_query_nodes(); - ::PROTOBUF_NAMESPACE_ID::int64 num_query_nodes() const; - void set_num_query_nodes(::PROTOBUF_NAMESPACE_ID::int64 value); - - // @@protoc_insertion_point(class_scope:milvus.proto.etcd.TenantMeta) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField insert_channelids_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr query_channelid_; - ::PROTOBUF_NAMESPACE_ID::int64 id_; - ::PROTOBUF_NAMESPACE_ID::int64 num_query_nodes_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_etcd_5fmeta_2eproto; -}; -// ------------------------------------------------------------------- - -class ProxyMeta : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.etcd.ProxyMeta) */ { - public: - ProxyMeta(); - virtual ~ProxyMeta(); - - ProxyMeta(const ProxyMeta& from); - ProxyMeta(ProxyMeta&& from) noexcept - : ProxyMeta() { - *this = ::std::move(from); - } - - inline ProxyMeta& operator=(const ProxyMeta& from) { - CopyFrom(from); - return *this; - } - inline ProxyMeta& operator=(ProxyMeta&& 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 ProxyMeta& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ProxyMeta* internal_default_instance() { - return reinterpret_cast( - &_ProxyMeta_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(ProxyMeta& a, ProxyMeta& b) { - a.Swap(&b); - } - inline void Swap(ProxyMeta* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline ProxyMeta* New() const final { - return CreateMaybeMessage(nullptr); - } - - ProxyMeta* 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 ProxyMeta& from); - void MergeFrom(const ProxyMeta& 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(ProxyMeta* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.proto.etcd.ProxyMeta"; - } - 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 { - kResultChannelIDsFieldNumber = 3, - kAddressFieldNumber = 2, - kIDFieldNumber = 1, - }; - // repeated string result_channelIDs = 3; - int result_channelids_size() const; - void clear_result_channelids(); - const std::string& result_channelids(int index) const; - std::string* mutable_result_channelids(int index); - void set_result_channelids(int index, const std::string& value); - void set_result_channelids(int index, std::string&& value); - void set_result_channelids(int index, const char* value); - void set_result_channelids(int index, const char* value, size_t size); - std::string* add_result_channelids(); - void add_result_channelids(const std::string& value); - void add_result_channelids(std::string&& value); - void add_result_channelids(const char* value); - void add_result_channelids(const char* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& result_channelids() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_result_channelids(); - - // .milvus.proto.common.Address address = 2; - bool has_address() const; - void clear_address(); - const ::milvus::proto::common::Address& address() const; - ::milvus::proto::common::Address* release_address(); - ::milvus::proto::common::Address* mutable_address(); - void set_allocated_address(::milvus::proto::common::Address* address); - - // int64 ID = 1; - void clear_id(); - ::PROTOBUF_NAMESPACE_ID::int64 id() const; - void set_id(::PROTOBUF_NAMESPACE_ID::int64 value); - - // @@protoc_insertion_point(class_scope:milvus.proto.etcd.ProxyMeta) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField result_channelids_; - ::milvus::proto::common::Address* address_; - ::PROTOBUF_NAMESPACE_ID::int64 id_; - 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: - IndexInfo(); - virtual ~IndexInfo(); - - IndexInfo(const IndexInfo& from); - IndexInfo(IndexInfo&& from) noexcept - : IndexInfo() { - *this = ::std::move(from); - } - - inline IndexInfo& operator=(const IndexInfo& from) { - CopyFrom(from); - return *this; - } - inline IndexInfo& operator=(IndexInfo&& 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 IndexInfo& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const IndexInfo* internal_default_instance() { - return reinterpret_cast( - &_IndexInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(IndexInfo& a, IndexInfo& b) { - a.Swap(&b); - } - inline void Swap(IndexInfo* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline IndexInfo* New() const final { - return CreateMaybeMessage(nullptr); - } - - IndexInfo* 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 IndexInfo& from); - void MergeFrom(const IndexInfo& 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(IndexInfo* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.proto.etcd.IndexInfo"; - } - 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 = 3, - kIndexNameFieldNumber = 1, - kIndexIDFieldNumber = 2, - }; - // repeated .milvus.proto.common.KeyValuePair index_params = 3; - 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; - - // string index_name = 1; - void clear_index_name(); - const std::string& index_name() const; - void set_index_name(const std::string& value); - void set_index_name(std::string&& value); - void set_index_name(const char* value); - void set_index_name(const char* value, size_t size); - std::string* mutable_index_name(); - std::string* release_index_name(); - void set_allocated_index_name(std::string* index_name); - - // int64 indexID = 2; - void clear_indexid(); - ::PROTOBUF_NAMESPACE_ID::int64 indexid() const; - void set_indexid(::PROTOBUF_NAMESPACE_ID::int64 value); - - // @@protoc_insertion_point(class_scope:milvus.proto.etcd.IndexInfo) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyValuePair > index_params_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr index_name_; - ::PROTOBUF_NAMESPACE_ID::int64 indexid_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_etcd_5fmeta_2eproto; -}; -// ------------------------------------------------------------------- - -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 = - 3; - - 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 { - kFiledIDFieldNumber = 1, - kIndexIDFieldNumber = 2, - }; - // int64 filedID = 1; - void clear_filedid(); - ::PROTOBUF_NAMESPACE_ID::int64 filedid() const; - void set_filedid(::PROTOBUF_NAMESPACE_ID::int64 value); - - // int64 indexID = 2; - void clear_indexid(); - ::PROTOBUF_NAMESPACE_ID::int64 indexid() const; - void set_indexid(::PROTOBUF_NAMESPACE_ID::int64 value); - - // @@protoc_insertion_point(class_scope:milvus.proto.etcd.FieldIndexInfo) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::int64 filedid_; - ::PROTOBUF_NAMESPACE_ID::int64 indexid_; - 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, - kPartitionNamesFieldNumber = 5, - kFieldIndexesFieldNumber = 6, - kVirtualChannelNamesFieldNumber = 7, - kPhysicalChannelNamesFieldNumber = 8, - kPartitionCreatedTimestampsFieldNumber = 9, - kStartPositionsFieldNumber = 11, - kSchemaFieldNumber = 2, - kIDFieldNumber = 1, - kCreateTimeFieldNumber = 3, - kShardsNumFieldNumber = 10, - }; - // 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 string partitionNames = 5; - int partitionnames_size() const; - void clear_partitionnames(); - const std::string& partitionnames(int index) const; - std::string* mutable_partitionnames(int index); - void set_partitionnames(int index, const std::string& value); - void set_partitionnames(int index, std::string&& value); - void set_partitionnames(int index, const char* value); - void set_partitionnames(int index, const char* value, size_t size); - std::string* add_partitionnames(); - void add_partitionnames(const std::string& value); - void add_partitionnames(std::string&& value); - void add_partitionnames(const char* value); - void add_partitionnames(const char* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& partitionnames() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_partitionnames(); - - // repeated .milvus.proto.etcd.FieldIndexInfo field_indexes = 6; - 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; - - // repeated string virtual_channel_names = 7; - int virtual_channel_names_size() const; - void clear_virtual_channel_names(); - const std::string& virtual_channel_names(int index) const; - std::string* mutable_virtual_channel_names(int index); - void set_virtual_channel_names(int index, const std::string& value); - void set_virtual_channel_names(int index, std::string&& value); - void set_virtual_channel_names(int index, const char* value); - void set_virtual_channel_names(int index, const char* value, size_t size); - std::string* add_virtual_channel_names(); - void add_virtual_channel_names(const std::string& value); - void add_virtual_channel_names(std::string&& value); - void add_virtual_channel_names(const char* value); - void add_virtual_channel_names(const char* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& virtual_channel_names() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_virtual_channel_names(); - - // repeated string physical_channel_names = 8; - int physical_channel_names_size() const; - void clear_physical_channel_names(); - const std::string& physical_channel_names(int index) const; - std::string* mutable_physical_channel_names(int index); - void set_physical_channel_names(int index, const std::string& value); - void set_physical_channel_names(int index, std::string&& value); - void set_physical_channel_names(int index, const char* value); - void set_physical_channel_names(int index, const char* value, size_t size); - std::string* add_physical_channel_names(); - void add_physical_channel_names(const std::string& value); - void add_physical_channel_names(std::string&& value); - void add_physical_channel_names(const char* value); - void add_physical_channel_names(const char* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& physical_channel_names() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_physical_channel_names(); - - // repeated uint64 partition_created_timestamps = 9; - int partition_created_timestamps_size() const; - void clear_partition_created_timestamps(); - ::PROTOBUF_NAMESPACE_ID::uint64 partition_created_timestamps(int index) const; - void set_partition_created_timestamps(int index, ::PROTOBUF_NAMESPACE_ID::uint64 value); - void add_partition_created_timestamps(::PROTOBUF_NAMESPACE_ID::uint64 value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint64 >& - partition_created_timestamps() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint64 >* - mutable_partition_created_timestamps(); - - // repeated .milvus.proto.common.KeyDataPair start_positions = 11; - int start_positions_size() const; - void clear_start_positions(); - ::milvus::proto::common::KeyDataPair* mutable_start_positions(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyDataPair >* - mutable_start_positions(); - const ::milvus::proto::common::KeyDataPair& start_positions(int index) const; - ::milvus::proto::common::KeyDataPair* add_start_positions(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyDataPair >& - start_positions() 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); - - // int32 shards_num = 10; - void clear_shards_num(); - ::PROTOBUF_NAMESPACE_ID::int32 shards_num() const; - void set_shards_num(::PROTOBUF_NAMESPACE_ID::int32 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 partitionnames_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::etcd::FieldIndexInfo > field_indexes_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField virtual_channel_names_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField physical_channel_names_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint64 > partition_created_timestamps_; - mutable std::atomic _partition_created_timestamps_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyDataPair > start_positions_; - ::milvus::proto::schema::CollectionSchema* schema_; - ::PROTOBUF_NAMESPACE_ID::int64 id_; - ::PROTOBUF_NAMESPACE_ID::uint64 create_time_; - ::PROTOBUF_NAMESPACE_ID::int32 shards_num_; - 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: - SegmentIndexInfo(); - virtual ~SegmentIndexInfo(); - - SegmentIndexInfo(const SegmentIndexInfo& from); - SegmentIndexInfo(SegmentIndexInfo&& from) noexcept - : SegmentIndexInfo() { - *this = ::std::move(from); - } - - inline SegmentIndexInfo& operator=(const SegmentIndexInfo& from) { - CopyFrom(from); - return *this; - } - inline SegmentIndexInfo& operator=(SegmentIndexInfo&& 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 SegmentIndexInfo& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SegmentIndexInfo* internal_default_instance() { - return reinterpret_cast( - &_SegmentIndexInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - friend void swap(SegmentIndexInfo& a, SegmentIndexInfo& b) { - a.Swap(&b); - } - inline void Swap(SegmentIndexInfo* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline SegmentIndexInfo* New() const final { - return CreateMaybeMessage(nullptr); - } - - SegmentIndexInfo* 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 SegmentIndexInfo& from); - void MergeFrom(const SegmentIndexInfo& 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(SegmentIndexInfo* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.proto.etcd.SegmentIndexInfo"; - } - 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 { - kCollectionIDFieldNumber = 1, - kPartitionIDFieldNumber = 2, - kSegmentIDFieldNumber = 3, - kFieldIDFieldNumber = 4, - kIndexIDFieldNumber = 5, - kBuildIDFieldNumber = 6, - kEnableIndexFieldNumber = 7, - }; - // int64 collectionID = 1; - void clear_collectionid(); - ::PROTOBUF_NAMESPACE_ID::int64 collectionid() const; - void set_collectionid(::PROTOBUF_NAMESPACE_ID::int64 value); - - // int64 partitionID = 2; - void clear_partitionid(); - ::PROTOBUF_NAMESPACE_ID::int64 partitionid() const; - void set_partitionid(::PROTOBUF_NAMESPACE_ID::int64 value); - - // int64 segmentID = 3; - void clear_segmentid(); - ::PROTOBUF_NAMESPACE_ID::int64 segmentid() const; - void set_segmentid(::PROTOBUF_NAMESPACE_ID::int64 value); - - // int64 fieldID = 4; - void clear_fieldid(); - ::PROTOBUF_NAMESPACE_ID::int64 fieldid() const; - void set_fieldid(::PROTOBUF_NAMESPACE_ID::int64 value); - - // int64 indexID = 5; - void clear_indexid(); - ::PROTOBUF_NAMESPACE_ID::int64 indexid() const; - void set_indexid(::PROTOBUF_NAMESPACE_ID::int64 value); - - // int64 buildID = 6; - void clear_buildid(); - ::PROTOBUF_NAMESPACE_ID::int64 buildid() const; - void set_buildid(::PROTOBUF_NAMESPACE_ID::int64 value); - - // bool enable_index = 7; - void clear_enable_index(); - bool enable_index() const; - void set_enable_index(bool value); - - // @@protoc_insertion_point(class_scope:milvus.proto.etcd.SegmentIndexInfo) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::int64 collectionid_; - ::PROTOBUF_NAMESPACE_ID::int64 partitionid_; - ::PROTOBUF_NAMESPACE_ID::int64 segmentid_; - ::PROTOBUF_NAMESPACE_ID::int64 fieldid_; - ::PROTOBUF_NAMESPACE_ID::int64 indexid_; - ::PROTOBUF_NAMESPACE_ID::int64 buildid_; - bool enable_index_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_etcd_5fmeta_2eproto; -}; -// ------------------------------------------------------------------- - -class CollectionMeta : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.proto.etcd.CollectionMeta) */ { - public: - CollectionMeta(); - virtual ~CollectionMeta(); - - CollectionMeta(const CollectionMeta& from); - CollectionMeta(CollectionMeta&& from) noexcept - : CollectionMeta() { - *this = ::std::move(from); - } - - inline CollectionMeta& operator=(const CollectionMeta& from) { - CopyFrom(from); - return *this; - } - inline CollectionMeta& operator=(CollectionMeta&& 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 CollectionMeta& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CollectionMeta* internal_default_instance() { - return reinterpret_cast( - &_CollectionMeta_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - friend void swap(CollectionMeta& a, CollectionMeta& b) { - a.Swap(&b); - } - inline void Swap(CollectionMeta* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline CollectionMeta* New() const final { - return CreateMaybeMessage(nullptr); - } - - CollectionMeta* 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 CollectionMeta& from); - void MergeFrom(const CollectionMeta& 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(CollectionMeta* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.proto.etcd.CollectionMeta"; - } - 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 { - kSegmentIDsFieldNumber = 4, - kPartitionTagsFieldNumber = 5, - kPartitionIDsFieldNumber = 6, - kSchemaFieldNumber = 2, - kIDFieldNumber = 1, - kCreateTimeFieldNumber = 3, - }; - // repeated int64 segmentIDs = 4; - int segmentids_size() const; - void clear_segmentids(); - ::PROTOBUF_NAMESPACE_ID::int64 segmentids(int index) const; - void set_segmentids(int index, ::PROTOBUF_NAMESPACE_ID::int64 value); - void add_segmentids(::PROTOBUF_NAMESPACE_ID::int64 value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& - segmentids() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* - mutable_segmentids(); - - // repeated string partition_tags = 5; - int partition_tags_size() const; - void clear_partition_tags(); - const std::string& partition_tags(int index) const; - std::string* mutable_partition_tags(int index); - void set_partition_tags(int index, const std::string& value); - void set_partition_tags(int index, std::string&& value); - void set_partition_tags(int index, const char* value); - void set_partition_tags(int index, const char* value, size_t size); - std::string* add_partition_tags(); - void add_partition_tags(const std::string& value); - void add_partition_tags(std::string&& value); - void add_partition_tags(const char* value); - void add_partition_tags(const char* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& partition_tags() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_partition_tags(); - - // repeated int64 partitionIDs = 6; - 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(); - - // .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.CollectionMeta) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > segmentids_; - mutable std::atomic _segmentids_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField partition_tags_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > partitionids_; - mutable std::atomic _partitionids_cached_byte_size_; - ::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; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// TenantMeta - -// int64 ID = 1; -inline void TenantMeta::clear_id() { - id_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 TenantMeta::id() const { - // @@protoc_insertion_point(field_get:milvus.proto.etcd.TenantMeta.ID) - return id_; -} -inline void TenantMeta::set_id(::PROTOBUF_NAMESPACE_ID::int64 value) { - - id_ = value; - // @@protoc_insertion_point(field_set:milvus.proto.etcd.TenantMeta.ID) -} - -// int64 num_query_nodes = 2; -inline void TenantMeta::clear_num_query_nodes() { - num_query_nodes_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 TenantMeta::num_query_nodes() const { - // @@protoc_insertion_point(field_get:milvus.proto.etcd.TenantMeta.num_query_nodes) - return num_query_nodes_; -} -inline void TenantMeta::set_num_query_nodes(::PROTOBUF_NAMESPACE_ID::int64 value) { - - num_query_nodes_ = value; - // @@protoc_insertion_point(field_set:milvus.proto.etcd.TenantMeta.num_query_nodes) -} - -// repeated string insert_channelIDs = 3; -inline int TenantMeta::insert_channelids_size() const { - return insert_channelids_.size(); -} -inline void TenantMeta::clear_insert_channelids() { - insert_channelids_.Clear(); -} -inline const std::string& TenantMeta::insert_channelids(int index) const { - // @@protoc_insertion_point(field_get:milvus.proto.etcd.TenantMeta.insert_channelIDs) - return insert_channelids_.Get(index); -} -inline std::string* TenantMeta::mutable_insert_channelids(int index) { - // @@protoc_insertion_point(field_mutable:milvus.proto.etcd.TenantMeta.insert_channelIDs) - return insert_channelids_.Mutable(index); -} -inline void TenantMeta::set_insert_channelids(int index, const std::string& value) { - // @@protoc_insertion_point(field_set:milvus.proto.etcd.TenantMeta.insert_channelIDs) - insert_channelids_.Mutable(index)->assign(value); -} -inline void TenantMeta::set_insert_channelids(int index, std::string&& value) { - // @@protoc_insertion_point(field_set:milvus.proto.etcd.TenantMeta.insert_channelIDs) - insert_channelids_.Mutable(index)->assign(std::move(value)); -} -inline void TenantMeta::set_insert_channelids(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - insert_channelids_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:milvus.proto.etcd.TenantMeta.insert_channelIDs) -} -inline void TenantMeta::set_insert_channelids(int index, const char* value, size_t size) { - insert_channelids_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:milvus.proto.etcd.TenantMeta.insert_channelIDs) -} -inline std::string* TenantMeta::add_insert_channelids() { - // @@protoc_insertion_point(field_add_mutable:milvus.proto.etcd.TenantMeta.insert_channelIDs) - return insert_channelids_.Add(); -} -inline void TenantMeta::add_insert_channelids(const std::string& value) { - insert_channelids_.Add()->assign(value); - // @@protoc_insertion_point(field_add:milvus.proto.etcd.TenantMeta.insert_channelIDs) -} -inline void TenantMeta::add_insert_channelids(std::string&& value) { - insert_channelids_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:milvus.proto.etcd.TenantMeta.insert_channelIDs) -} -inline void TenantMeta::add_insert_channelids(const char* value) { - GOOGLE_DCHECK(value != nullptr); - insert_channelids_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:milvus.proto.etcd.TenantMeta.insert_channelIDs) -} -inline void TenantMeta::add_insert_channelids(const char* value, size_t size) { - insert_channelids_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:milvus.proto.etcd.TenantMeta.insert_channelIDs) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -TenantMeta::insert_channelids() const { - // @@protoc_insertion_point(field_list:milvus.proto.etcd.TenantMeta.insert_channelIDs) - return insert_channelids_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* -TenantMeta::mutable_insert_channelids() { - // @@protoc_insertion_point(field_mutable_list:milvus.proto.etcd.TenantMeta.insert_channelIDs) - return &insert_channelids_; -} - -// string query_channelID = 4; -inline void TenantMeta::clear_query_channelid() { - query_channelid_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& TenantMeta::query_channelid() const { - // @@protoc_insertion_point(field_get:milvus.proto.etcd.TenantMeta.query_channelID) - return query_channelid_.GetNoArena(); -} -inline void TenantMeta::set_query_channelid(const std::string& value) { - - query_channelid_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.proto.etcd.TenantMeta.query_channelID) -} -inline void TenantMeta::set_query_channelid(std::string&& value) { - - query_channelid_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.proto.etcd.TenantMeta.query_channelID) -} -inline void TenantMeta::set_query_channelid(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - query_channelid_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.proto.etcd.TenantMeta.query_channelID) -} -inline void TenantMeta::set_query_channelid(const char* value, size_t size) { - - query_channelid_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.proto.etcd.TenantMeta.query_channelID) -} -inline std::string* TenantMeta::mutable_query_channelid() { - - // @@protoc_insertion_point(field_mutable:milvus.proto.etcd.TenantMeta.query_channelID) - return query_channelid_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* TenantMeta::release_query_channelid() { - // @@protoc_insertion_point(field_release:milvus.proto.etcd.TenantMeta.query_channelID) - - return query_channelid_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void TenantMeta::set_allocated_query_channelid(std::string* query_channelid) { - if (query_channelid != nullptr) { - - } else { - - } - query_channelid_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), query_channelid); - // @@protoc_insertion_point(field_set_allocated:milvus.proto.etcd.TenantMeta.query_channelID) -} - -// ------------------------------------------------------------------- - -// ProxyMeta - -// int64 ID = 1; -inline void ProxyMeta::clear_id() { - id_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 ProxyMeta::id() const { - // @@protoc_insertion_point(field_get:milvus.proto.etcd.ProxyMeta.ID) - return id_; -} -inline void ProxyMeta::set_id(::PROTOBUF_NAMESPACE_ID::int64 value) { - - id_ = value; - // @@protoc_insertion_point(field_set:milvus.proto.etcd.ProxyMeta.ID) -} - -// .milvus.proto.common.Address address = 2; -inline bool ProxyMeta::has_address() const { - return this != internal_default_instance() && address_ != nullptr; -} -inline const ::milvus::proto::common::Address& ProxyMeta::address() const { - const ::milvus::proto::common::Address* p = address_; - // @@protoc_insertion_point(field_get:milvus.proto.etcd.ProxyMeta.address) - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::proto::common::_Address_default_instance_); -} -inline ::milvus::proto::common::Address* ProxyMeta::release_address() { - // @@protoc_insertion_point(field_release:milvus.proto.etcd.ProxyMeta.address) - - ::milvus::proto::common::Address* temp = address_; - address_ = nullptr; - return temp; -} -inline ::milvus::proto::common::Address* ProxyMeta::mutable_address() { - - if (address_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::proto::common::Address>(GetArenaNoVirtual()); - address_ = p; - } - // @@protoc_insertion_point(field_mutable:milvus.proto.etcd.ProxyMeta.address) - return address_; -} -inline void ProxyMeta::set_allocated_address(::milvus::proto::common::Address* address) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(address_); - } - if (address) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - address = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, address, submessage_arena); - } - - } else { - - } - address_ = address; - // @@protoc_insertion_point(field_set_allocated:milvus.proto.etcd.ProxyMeta.address) -} - -// repeated string result_channelIDs = 3; -inline int ProxyMeta::result_channelids_size() const { - return result_channelids_.size(); -} -inline void ProxyMeta::clear_result_channelids() { - result_channelids_.Clear(); -} -inline const std::string& ProxyMeta::result_channelids(int index) const { - // @@protoc_insertion_point(field_get:milvus.proto.etcd.ProxyMeta.result_channelIDs) - return result_channelids_.Get(index); -} -inline std::string* ProxyMeta::mutable_result_channelids(int index) { - // @@protoc_insertion_point(field_mutable:milvus.proto.etcd.ProxyMeta.result_channelIDs) - return result_channelids_.Mutable(index); -} -inline void ProxyMeta::set_result_channelids(int index, const std::string& value) { - // @@protoc_insertion_point(field_set:milvus.proto.etcd.ProxyMeta.result_channelIDs) - result_channelids_.Mutable(index)->assign(value); -} -inline void ProxyMeta::set_result_channelids(int index, std::string&& value) { - // @@protoc_insertion_point(field_set:milvus.proto.etcd.ProxyMeta.result_channelIDs) - result_channelids_.Mutable(index)->assign(std::move(value)); -} -inline void ProxyMeta::set_result_channelids(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - result_channelids_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:milvus.proto.etcd.ProxyMeta.result_channelIDs) -} -inline void ProxyMeta::set_result_channelids(int index, const char* value, size_t size) { - result_channelids_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:milvus.proto.etcd.ProxyMeta.result_channelIDs) -} -inline std::string* ProxyMeta::add_result_channelids() { - // @@protoc_insertion_point(field_add_mutable:milvus.proto.etcd.ProxyMeta.result_channelIDs) - return result_channelids_.Add(); -} -inline void ProxyMeta::add_result_channelids(const std::string& value) { - result_channelids_.Add()->assign(value); - // @@protoc_insertion_point(field_add:milvus.proto.etcd.ProxyMeta.result_channelIDs) -} -inline void ProxyMeta::add_result_channelids(std::string&& value) { - result_channelids_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:milvus.proto.etcd.ProxyMeta.result_channelIDs) -} -inline void ProxyMeta::add_result_channelids(const char* value) { - GOOGLE_DCHECK(value != nullptr); - result_channelids_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:milvus.proto.etcd.ProxyMeta.result_channelIDs) -} -inline void ProxyMeta::add_result_channelids(const char* value, size_t size) { - result_channelids_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:milvus.proto.etcd.ProxyMeta.result_channelIDs) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -ProxyMeta::result_channelids() const { - // @@protoc_insertion_point(field_list:milvus.proto.etcd.ProxyMeta.result_channelIDs) - return result_channelids_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* -ProxyMeta::mutable_result_channelids() { - // @@protoc_insertion_point(field_mutable_list:milvus.proto.etcd.ProxyMeta.result_channelIDs) - return &result_channelids_; -} - -// ------------------------------------------------------------------- - -// 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_; -} - -// ------------------------------------------------------------------- - -// 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) -} - -// int64 indexID = 2; -inline void FieldIndexInfo::clear_indexid() { - indexid_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 FieldIndexInfo::indexid() const { - // @@protoc_insertion_point(field_get:milvus.proto.etcd.FieldIndexInfo.indexID) - return indexid_; -} -inline void FieldIndexInfo::set_indexid(::PROTOBUF_NAMESPACE_ID::int64 value) { - - indexid_ = value; - // @@protoc_insertion_point(field_set:milvus.proto.etcd.FieldIndexInfo.indexID) -} - -// ------------------------------------------------------------------- - -// CollectionInfo - -// int64 ID = 1; -inline void CollectionInfo::clear_id() { - id_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 CollectionInfo::id() const { - // @@protoc_insertion_point(field_get:milvus.proto.etcd.CollectionInfo.ID) - return id_; -} -inline void CollectionInfo::set_id(::PROTOBUF_NAMESPACE_ID::int64 value) { - - id_ = value; - // @@protoc_insertion_point(field_set:milvus.proto.etcd.CollectionInfo.ID) -} - -// .milvus.proto.schema.CollectionSchema schema = 2; -inline bool CollectionInfo::has_schema() const { - return this != internal_default_instance() && schema_ != nullptr; -} -inline const ::milvus::proto::schema::CollectionSchema& CollectionInfo::schema() const { - const ::milvus::proto::schema::CollectionSchema* p = schema_; - // @@protoc_insertion_point(field_get:milvus.proto.etcd.CollectionInfo.schema) - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::proto::schema::_CollectionSchema_default_instance_); -} -inline ::milvus::proto::schema::CollectionSchema* CollectionInfo::release_schema() { - // @@protoc_insertion_point(field_release:milvus.proto.etcd.CollectionInfo.schema) - - ::milvus::proto::schema::CollectionSchema* temp = schema_; - schema_ = nullptr; - return temp; -} -inline ::milvus::proto::schema::CollectionSchema* CollectionInfo::mutable_schema() { - - if (schema_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::proto::schema::CollectionSchema>(GetArenaNoVirtual()); - schema_ = p; - } - // @@protoc_insertion_point(field_mutable:milvus.proto.etcd.CollectionInfo.schema) - return schema_; -} -inline void CollectionInfo::set_allocated_schema(::milvus::proto::schema::CollectionSchema* schema) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(schema_); - } - if (schema) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - schema = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, schema, submessage_arena); - } - - } else { - - } - schema_ = schema; - // @@protoc_insertion_point(field_set_allocated:milvus.proto.etcd.CollectionInfo.schema) -} - -// uint64 create_time = 3; -inline void CollectionInfo::clear_create_time() { - create_time_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 CollectionInfo::create_time() const { - // @@protoc_insertion_point(field_get:milvus.proto.etcd.CollectionInfo.create_time) - return create_time_; -} -inline void CollectionInfo::set_create_time(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - create_time_ = value; - // @@protoc_insertion_point(field_set:milvus.proto.etcd.CollectionInfo.create_time) -} - -// repeated int64 partitionIDs = 4; -inline int CollectionInfo::partitionids_size() const { - return partitionids_.size(); -} -inline void CollectionInfo::clear_partitionids() { - partitionids_.Clear(); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 CollectionInfo::partitionids(int index) const { - // @@protoc_insertion_point(field_get:milvus.proto.etcd.CollectionInfo.partitionIDs) - return partitionids_.Get(index); -} -inline void CollectionInfo::set_partitionids(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) { - partitionids_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.proto.etcd.CollectionInfo.partitionIDs) -} -inline void CollectionInfo::add_partitionids(::PROTOBUF_NAMESPACE_ID::int64 value) { - partitionids_.Add(value); - // @@protoc_insertion_point(field_add:milvus.proto.etcd.CollectionInfo.partitionIDs) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& -CollectionInfo::partitionids() const { - // @@protoc_insertion_point(field_list:milvus.proto.etcd.CollectionInfo.partitionIDs) - return partitionids_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* -CollectionInfo::mutable_partitionids() { - // @@protoc_insertion_point(field_mutable_list:milvus.proto.etcd.CollectionInfo.partitionIDs) - return &partitionids_; -} - -// repeated string partitionNames = 5; -inline int CollectionInfo::partitionnames_size() const { - return partitionnames_.size(); -} -inline void CollectionInfo::clear_partitionnames() { - partitionnames_.Clear(); -} -inline const std::string& CollectionInfo::partitionnames(int index) const { - // @@protoc_insertion_point(field_get:milvus.proto.etcd.CollectionInfo.partitionNames) - return partitionnames_.Get(index); -} -inline std::string* CollectionInfo::mutable_partitionnames(int index) { - // @@protoc_insertion_point(field_mutable:milvus.proto.etcd.CollectionInfo.partitionNames) - return partitionnames_.Mutable(index); -} -inline void CollectionInfo::set_partitionnames(int index, const std::string& value) { - // @@protoc_insertion_point(field_set:milvus.proto.etcd.CollectionInfo.partitionNames) - partitionnames_.Mutable(index)->assign(value); -} -inline void CollectionInfo::set_partitionnames(int index, std::string&& value) { - // @@protoc_insertion_point(field_set:milvus.proto.etcd.CollectionInfo.partitionNames) - partitionnames_.Mutable(index)->assign(std::move(value)); -} -inline void CollectionInfo::set_partitionnames(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - partitionnames_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:milvus.proto.etcd.CollectionInfo.partitionNames) -} -inline void CollectionInfo::set_partitionnames(int index, const char* value, size_t size) { - partitionnames_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:milvus.proto.etcd.CollectionInfo.partitionNames) -} -inline std::string* CollectionInfo::add_partitionnames() { - // @@protoc_insertion_point(field_add_mutable:milvus.proto.etcd.CollectionInfo.partitionNames) - return partitionnames_.Add(); -} -inline void CollectionInfo::add_partitionnames(const std::string& value) { - partitionnames_.Add()->assign(value); - // @@protoc_insertion_point(field_add:milvus.proto.etcd.CollectionInfo.partitionNames) -} -inline void CollectionInfo::add_partitionnames(std::string&& value) { - partitionnames_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:milvus.proto.etcd.CollectionInfo.partitionNames) -} -inline void CollectionInfo::add_partitionnames(const char* value) { - GOOGLE_DCHECK(value != nullptr); - partitionnames_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:milvus.proto.etcd.CollectionInfo.partitionNames) -} -inline void CollectionInfo::add_partitionnames(const char* value, size_t size) { - partitionnames_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:milvus.proto.etcd.CollectionInfo.partitionNames) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -CollectionInfo::partitionnames() const { - // @@protoc_insertion_point(field_list:milvus.proto.etcd.CollectionInfo.partitionNames) - return partitionnames_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* -CollectionInfo::mutable_partitionnames() { - // @@protoc_insertion_point(field_mutable_list:milvus.proto.etcd.CollectionInfo.partitionNames) - return &partitionnames_; -} - -// repeated .milvus.proto.etcd.FieldIndexInfo field_indexes = 6; -inline int CollectionInfo::field_indexes_size() const { - return field_indexes_.size(); -} -inline void CollectionInfo::clear_field_indexes() { - field_indexes_.Clear(); -} -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::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::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::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::FieldIndexInfo >& -CollectionInfo::field_indexes() const { - // @@protoc_insertion_point(field_list:milvus.proto.etcd.CollectionInfo.field_indexes) - return field_indexes_; -} - -// repeated string virtual_channel_names = 7; -inline int CollectionInfo::virtual_channel_names_size() const { - return virtual_channel_names_.size(); -} -inline void CollectionInfo::clear_virtual_channel_names() { - virtual_channel_names_.Clear(); -} -inline const std::string& CollectionInfo::virtual_channel_names(int index) const { - // @@protoc_insertion_point(field_get:milvus.proto.etcd.CollectionInfo.virtual_channel_names) - return virtual_channel_names_.Get(index); -} -inline std::string* CollectionInfo::mutable_virtual_channel_names(int index) { - // @@protoc_insertion_point(field_mutable:milvus.proto.etcd.CollectionInfo.virtual_channel_names) - return virtual_channel_names_.Mutable(index); -} -inline void CollectionInfo::set_virtual_channel_names(int index, const std::string& value) { - // @@protoc_insertion_point(field_set:milvus.proto.etcd.CollectionInfo.virtual_channel_names) - virtual_channel_names_.Mutable(index)->assign(value); -} -inline void CollectionInfo::set_virtual_channel_names(int index, std::string&& value) { - // @@protoc_insertion_point(field_set:milvus.proto.etcd.CollectionInfo.virtual_channel_names) - virtual_channel_names_.Mutable(index)->assign(std::move(value)); -} -inline void CollectionInfo::set_virtual_channel_names(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - virtual_channel_names_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:milvus.proto.etcd.CollectionInfo.virtual_channel_names) -} -inline void CollectionInfo::set_virtual_channel_names(int index, const char* value, size_t size) { - virtual_channel_names_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:milvus.proto.etcd.CollectionInfo.virtual_channel_names) -} -inline std::string* CollectionInfo::add_virtual_channel_names() { - // @@protoc_insertion_point(field_add_mutable:milvus.proto.etcd.CollectionInfo.virtual_channel_names) - return virtual_channel_names_.Add(); -} -inline void CollectionInfo::add_virtual_channel_names(const std::string& value) { - virtual_channel_names_.Add()->assign(value); - // @@protoc_insertion_point(field_add:milvus.proto.etcd.CollectionInfo.virtual_channel_names) -} -inline void CollectionInfo::add_virtual_channel_names(std::string&& value) { - virtual_channel_names_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:milvus.proto.etcd.CollectionInfo.virtual_channel_names) -} -inline void CollectionInfo::add_virtual_channel_names(const char* value) { - GOOGLE_DCHECK(value != nullptr); - virtual_channel_names_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:milvus.proto.etcd.CollectionInfo.virtual_channel_names) -} -inline void CollectionInfo::add_virtual_channel_names(const char* value, size_t size) { - virtual_channel_names_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:milvus.proto.etcd.CollectionInfo.virtual_channel_names) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -CollectionInfo::virtual_channel_names() const { - // @@protoc_insertion_point(field_list:milvus.proto.etcd.CollectionInfo.virtual_channel_names) - return virtual_channel_names_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* -CollectionInfo::mutable_virtual_channel_names() { - // @@protoc_insertion_point(field_mutable_list:milvus.proto.etcd.CollectionInfo.virtual_channel_names) - return &virtual_channel_names_; -} - -// repeated string physical_channel_names = 8; -inline int CollectionInfo::physical_channel_names_size() const { - return physical_channel_names_.size(); -} -inline void CollectionInfo::clear_physical_channel_names() { - physical_channel_names_.Clear(); -} -inline const std::string& CollectionInfo::physical_channel_names(int index) const { - // @@protoc_insertion_point(field_get:milvus.proto.etcd.CollectionInfo.physical_channel_names) - return physical_channel_names_.Get(index); -} -inline std::string* CollectionInfo::mutable_physical_channel_names(int index) { - // @@protoc_insertion_point(field_mutable:milvus.proto.etcd.CollectionInfo.physical_channel_names) - return physical_channel_names_.Mutable(index); -} -inline void CollectionInfo::set_physical_channel_names(int index, const std::string& value) { - // @@protoc_insertion_point(field_set:milvus.proto.etcd.CollectionInfo.physical_channel_names) - physical_channel_names_.Mutable(index)->assign(value); -} -inline void CollectionInfo::set_physical_channel_names(int index, std::string&& value) { - // @@protoc_insertion_point(field_set:milvus.proto.etcd.CollectionInfo.physical_channel_names) - physical_channel_names_.Mutable(index)->assign(std::move(value)); -} -inline void CollectionInfo::set_physical_channel_names(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - physical_channel_names_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:milvus.proto.etcd.CollectionInfo.physical_channel_names) -} -inline void CollectionInfo::set_physical_channel_names(int index, const char* value, size_t size) { - physical_channel_names_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:milvus.proto.etcd.CollectionInfo.physical_channel_names) -} -inline std::string* CollectionInfo::add_physical_channel_names() { - // @@protoc_insertion_point(field_add_mutable:milvus.proto.etcd.CollectionInfo.physical_channel_names) - return physical_channel_names_.Add(); -} -inline void CollectionInfo::add_physical_channel_names(const std::string& value) { - physical_channel_names_.Add()->assign(value); - // @@protoc_insertion_point(field_add:milvus.proto.etcd.CollectionInfo.physical_channel_names) -} -inline void CollectionInfo::add_physical_channel_names(std::string&& value) { - physical_channel_names_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:milvus.proto.etcd.CollectionInfo.physical_channel_names) -} -inline void CollectionInfo::add_physical_channel_names(const char* value) { - GOOGLE_DCHECK(value != nullptr); - physical_channel_names_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:milvus.proto.etcd.CollectionInfo.physical_channel_names) -} -inline void CollectionInfo::add_physical_channel_names(const char* value, size_t size) { - physical_channel_names_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:milvus.proto.etcd.CollectionInfo.physical_channel_names) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -CollectionInfo::physical_channel_names() const { - // @@protoc_insertion_point(field_list:milvus.proto.etcd.CollectionInfo.physical_channel_names) - return physical_channel_names_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* -CollectionInfo::mutable_physical_channel_names() { - // @@protoc_insertion_point(field_mutable_list:milvus.proto.etcd.CollectionInfo.physical_channel_names) - return &physical_channel_names_; -} - -// repeated uint64 partition_created_timestamps = 9; -inline int CollectionInfo::partition_created_timestamps_size() const { - return partition_created_timestamps_.size(); -} -inline void CollectionInfo::clear_partition_created_timestamps() { - partition_created_timestamps_.Clear(); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 CollectionInfo::partition_created_timestamps(int index) const { - // @@protoc_insertion_point(field_get:milvus.proto.etcd.CollectionInfo.partition_created_timestamps) - return partition_created_timestamps_.Get(index); -} -inline void CollectionInfo::set_partition_created_timestamps(int index, ::PROTOBUF_NAMESPACE_ID::uint64 value) { - partition_created_timestamps_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.proto.etcd.CollectionInfo.partition_created_timestamps) -} -inline void CollectionInfo::add_partition_created_timestamps(::PROTOBUF_NAMESPACE_ID::uint64 value) { - partition_created_timestamps_.Add(value); - // @@protoc_insertion_point(field_add:milvus.proto.etcd.CollectionInfo.partition_created_timestamps) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint64 >& -CollectionInfo::partition_created_timestamps() const { - // @@protoc_insertion_point(field_list:milvus.proto.etcd.CollectionInfo.partition_created_timestamps) - return partition_created_timestamps_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::uint64 >* -CollectionInfo::mutable_partition_created_timestamps() { - // @@protoc_insertion_point(field_mutable_list:milvus.proto.etcd.CollectionInfo.partition_created_timestamps) - return &partition_created_timestamps_; -} - -// int32 shards_num = 10; -inline void CollectionInfo::clear_shards_num() { - shards_num_ = 0; -} -inline ::PROTOBUF_NAMESPACE_ID::int32 CollectionInfo::shards_num() const { - // @@protoc_insertion_point(field_get:milvus.proto.etcd.CollectionInfo.shards_num) - return shards_num_; -} -inline void CollectionInfo::set_shards_num(::PROTOBUF_NAMESPACE_ID::int32 value) { - - shards_num_ = value; - // @@protoc_insertion_point(field_set:milvus.proto.etcd.CollectionInfo.shards_num) -} - -// repeated .milvus.proto.common.KeyDataPair start_positions = 11; -inline int CollectionInfo::start_positions_size() const { - return start_positions_.size(); -} -inline ::milvus::proto::common::KeyDataPair* CollectionInfo::mutable_start_positions(int index) { - // @@protoc_insertion_point(field_mutable:milvus.proto.etcd.CollectionInfo.start_positions) - return start_positions_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyDataPair >* -CollectionInfo::mutable_start_positions() { - // @@protoc_insertion_point(field_mutable_list:milvus.proto.etcd.CollectionInfo.start_positions) - return &start_positions_; -} -inline const ::milvus::proto::common::KeyDataPair& CollectionInfo::start_positions(int index) const { - // @@protoc_insertion_point(field_get:milvus.proto.etcd.CollectionInfo.start_positions) - return start_positions_.Get(index); -} -inline ::milvus::proto::common::KeyDataPair* CollectionInfo::add_start_positions() { - // @@protoc_insertion_point(field_add:milvus.proto.etcd.CollectionInfo.start_positions) - return start_positions_.Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::proto::common::KeyDataPair >& -CollectionInfo::start_positions() const { - // @@protoc_insertion_point(field_list:milvus.proto.etcd.CollectionInfo.start_positions) - return start_positions_; -} - -// ------------------------------------------------------------------- - -// SegmentIndexInfo - -// int64 collectionID = 1; -inline void SegmentIndexInfo::clear_collectionid() { - collectionid_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 SegmentIndexInfo::collectionid() const { - // @@protoc_insertion_point(field_get:milvus.proto.etcd.SegmentIndexInfo.collectionID) - return collectionid_; -} -inline void SegmentIndexInfo::set_collectionid(::PROTOBUF_NAMESPACE_ID::int64 value) { - - collectionid_ = value; - // @@protoc_insertion_point(field_set:milvus.proto.etcd.SegmentIndexInfo.collectionID) -} - -// int64 partitionID = 2; -inline void SegmentIndexInfo::clear_partitionid() { - partitionid_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 SegmentIndexInfo::partitionid() const { - // @@protoc_insertion_point(field_get:milvus.proto.etcd.SegmentIndexInfo.partitionID) - return partitionid_; -} -inline void SegmentIndexInfo::set_partitionid(::PROTOBUF_NAMESPACE_ID::int64 value) { - - partitionid_ = value; - // @@protoc_insertion_point(field_set:milvus.proto.etcd.SegmentIndexInfo.partitionID) -} - -// int64 segmentID = 3; -inline void SegmentIndexInfo::clear_segmentid() { - segmentid_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 SegmentIndexInfo::segmentid() const { - // @@protoc_insertion_point(field_get:milvus.proto.etcd.SegmentIndexInfo.segmentID) - return segmentid_; -} -inline void SegmentIndexInfo::set_segmentid(::PROTOBUF_NAMESPACE_ID::int64 value) { - - segmentid_ = value; - // @@protoc_insertion_point(field_set:milvus.proto.etcd.SegmentIndexInfo.segmentID) -} - -// int64 fieldID = 4; -inline void SegmentIndexInfo::clear_fieldid() { - fieldid_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 SegmentIndexInfo::fieldid() const { - // @@protoc_insertion_point(field_get:milvus.proto.etcd.SegmentIndexInfo.fieldID) - return fieldid_; -} -inline void SegmentIndexInfo::set_fieldid(::PROTOBUF_NAMESPACE_ID::int64 value) { - - fieldid_ = value; - // @@protoc_insertion_point(field_set:milvus.proto.etcd.SegmentIndexInfo.fieldID) -} - -// int64 indexID = 5; -inline void SegmentIndexInfo::clear_indexid() { - indexid_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 SegmentIndexInfo::indexid() const { - // @@protoc_insertion_point(field_get:milvus.proto.etcd.SegmentIndexInfo.indexID) - return indexid_; -} -inline void SegmentIndexInfo::set_indexid(::PROTOBUF_NAMESPACE_ID::int64 value) { - - indexid_ = value; - // @@protoc_insertion_point(field_set:milvus.proto.etcd.SegmentIndexInfo.indexID) -} - -// int64 buildID = 6; -inline void SegmentIndexInfo::clear_buildid() { - buildid_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 SegmentIndexInfo::buildid() const { - // @@protoc_insertion_point(field_get:milvus.proto.etcd.SegmentIndexInfo.buildID) - return buildid_; -} -inline void SegmentIndexInfo::set_buildid(::PROTOBUF_NAMESPACE_ID::int64 value) { - - buildid_ = value; - // @@protoc_insertion_point(field_set:milvus.proto.etcd.SegmentIndexInfo.buildID) -} - -// bool enable_index = 7; -inline void SegmentIndexInfo::clear_enable_index() { - enable_index_ = false; -} -inline bool SegmentIndexInfo::enable_index() const { - // @@protoc_insertion_point(field_get:milvus.proto.etcd.SegmentIndexInfo.enable_index) - return enable_index_; -} -inline void SegmentIndexInfo::set_enable_index(bool value) { - - enable_index_ = value; - // @@protoc_insertion_point(field_set:milvus.proto.etcd.SegmentIndexInfo.enable_index) -} - -// ------------------------------------------------------------------- - -// CollectionMeta - -// int64 ID = 1; -inline void CollectionMeta::clear_id() { - id_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 CollectionMeta::id() const { - // @@protoc_insertion_point(field_get:milvus.proto.etcd.CollectionMeta.ID) - return id_; -} -inline void CollectionMeta::set_id(::PROTOBUF_NAMESPACE_ID::int64 value) { - - id_ = value; - // @@protoc_insertion_point(field_set:milvus.proto.etcd.CollectionMeta.ID) -} - -// .milvus.proto.schema.CollectionSchema schema = 2; -inline bool CollectionMeta::has_schema() const { - return this != internal_default_instance() && schema_ != nullptr; -} -inline const ::milvus::proto::schema::CollectionSchema& CollectionMeta::schema() const { - const ::milvus::proto::schema::CollectionSchema* p = schema_; - // @@protoc_insertion_point(field_get:milvus.proto.etcd.CollectionMeta.schema) - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::proto::schema::_CollectionSchema_default_instance_); -} -inline ::milvus::proto::schema::CollectionSchema* CollectionMeta::release_schema() { - // @@protoc_insertion_point(field_release:milvus.proto.etcd.CollectionMeta.schema) - - ::milvus::proto::schema::CollectionSchema* temp = schema_; - schema_ = nullptr; - return temp; -} -inline ::milvus::proto::schema::CollectionSchema* CollectionMeta::mutable_schema() { - - if (schema_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::proto::schema::CollectionSchema>(GetArenaNoVirtual()); - schema_ = p; - } - // @@protoc_insertion_point(field_mutable:milvus.proto.etcd.CollectionMeta.schema) - return schema_; -} -inline void CollectionMeta::set_allocated_schema(::milvus::proto::schema::CollectionSchema* schema) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(schema_); - } - if (schema) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - schema = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, schema, submessage_arena); - } - - } else { - - } - schema_ = schema; - // @@protoc_insertion_point(field_set_allocated:milvus.proto.etcd.CollectionMeta.schema) -} - -// uint64 create_time = 3; -inline void CollectionMeta::clear_create_time() { - create_time_ = PROTOBUF_ULONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::uint64 CollectionMeta::create_time() const { - // @@protoc_insertion_point(field_get:milvus.proto.etcd.CollectionMeta.create_time) - return create_time_; -} -inline void CollectionMeta::set_create_time(::PROTOBUF_NAMESPACE_ID::uint64 value) { - - create_time_ = value; - // @@protoc_insertion_point(field_set:milvus.proto.etcd.CollectionMeta.create_time) -} - -// repeated int64 segmentIDs = 4; -inline int CollectionMeta::segmentids_size() const { - return segmentids_.size(); -} -inline void CollectionMeta::clear_segmentids() { - segmentids_.Clear(); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 CollectionMeta::segmentids(int index) const { - // @@protoc_insertion_point(field_get:milvus.proto.etcd.CollectionMeta.segmentIDs) - return segmentids_.Get(index); -} -inline void CollectionMeta::set_segmentids(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) { - segmentids_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.proto.etcd.CollectionMeta.segmentIDs) -} -inline void CollectionMeta::add_segmentids(::PROTOBUF_NAMESPACE_ID::int64 value) { - segmentids_.Add(value); - // @@protoc_insertion_point(field_add:milvus.proto.etcd.CollectionMeta.segmentIDs) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& -CollectionMeta::segmentids() const { - // @@protoc_insertion_point(field_list:milvus.proto.etcd.CollectionMeta.segmentIDs) - return segmentids_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* -CollectionMeta::mutable_segmentids() { - // @@protoc_insertion_point(field_mutable_list:milvus.proto.etcd.CollectionMeta.segmentIDs) - return &segmentids_; -} - -// repeated string partition_tags = 5; -inline int CollectionMeta::partition_tags_size() const { - return partition_tags_.size(); -} -inline void CollectionMeta::clear_partition_tags() { - partition_tags_.Clear(); -} -inline const std::string& CollectionMeta::partition_tags(int index) const { - // @@protoc_insertion_point(field_get:milvus.proto.etcd.CollectionMeta.partition_tags) - return partition_tags_.Get(index); -} -inline std::string* CollectionMeta::mutable_partition_tags(int index) { - // @@protoc_insertion_point(field_mutable:milvus.proto.etcd.CollectionMeta.partition_tags) - return partition_tags_.Mutable(index); -} -inline void CollectionMeta::set_partition_tags(int index, const std::string& value) { - // @@protoc_insertion_point(field_set:milvus.proto.etcd.CollectionMeta.partition_tags) - partition_tags_.Mutable(index)->assign(value); -} -inline void CollectionMeta::set_partition_tags(int index, std::string&& value) { - // @@protoc_insertion_point(field_set:milvus.proto.etcd.CollectionMeta.partition_tags) - partition_tags_.Mutable(index)->assign(std::move(value)); -} -inline void CollectionMeta::set_partition_tags(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - partition_tags_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:milvus.proto.etcd.CollectionMeta.partition_tags) -} -inline void CollectionMeta::set_partition_tags(int index, const char* value, size_t size) { - partition_tags_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:milvus.proto.etcd.CollectionMeta.partition_tags) -} -inline std::string* CollectionMeta::add_partition_tags() { - // @@protoc_insertion_point(field_add_mutable:milvus.proto.etcd.CollectionMeta.partition_tags) - return partition_tags_.Add(); -} -inline void CollectionMeta::add_partition_tags(const std::string& value) { - partition_tags_.Add()->assign(value); - // @@protoc_insertion_point(field_add:milvus.proto.etcd.CollectionMeta.partition_tags) -} -inline void CollectionMeta::add_partition_tags(std::string&& value) { - partition_tags_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:milvus.proto.etcd.CollectionMeta.partition_tags) -} -inline void CollectionMeta::add_partition_tags(const char* value) { - GOOGLE_DCHECK(value != nullptr); - partition_tags_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:milvus.proto.etcd.CollectionMeta.partition_tags) -} -inline void CollectionMeta::add_partition_tags(const char* value, size_t size) { - partition_tags_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:milvus.proto.etcd.CollectionMeta.partition_tags) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -CollectionMeta::partition_tags() const { - // @@protoc_insertion_point(field_list:milvus.proto.etcd.CollectionMeta.partition_tags) - return partition_tags_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* -CollectionMeta::mutable_partition_tags() { - // @@protoc_insertion_point(field_mutable_list:milvus.proto.etcd.CollectionMeta.partition_tags) - return &partition_tags_; -} - -// repeated int64 partitionIDs = 6; -inline int CollectionMeta::partitionids_size() const { - return partitionids_.size(); -} -inline void CollectionMeta::clear_partitionids() { - partitionids_.Clear(); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 CollectionMeta::partitionids(int index) const { - // @@protoc_insertion_point(field_get:milvus.proto.etcd.CollectionMeta.partitionIDs) - return partitionids_.Get(index); -} -inline void CollectionMeta::set_partitionids(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) { - partitionids_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.proto.etcd.CollectionMeta.partitionIDs) -} -inline void CollectionMeta::add_partitionids(::PROTOBUF_NAMESPACE_ID::int64 value) { - partitionids_.Add(value); - // @@protoc_insertion_point(field_add:milvus.proto.etcd.CollectionMeta.partitionIDs) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& -CollectionMeta::partitionids() const { - // @@protoc_insertion_point(field_list:milvus.proto.etcd.CollectionMeta.partitionIDs) - return partitionids_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* -CollectionMeta::mutable_partitionids() { - // @@protoc_insertion_point(field_mutable_list:milvus.proto.etcd.CollectionMeta.partitionIDs) - return &partitionids_; -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace etcd -} // namespace proto -} // namespace milvus - -// @@protoc_insertion_point(global_scope) - -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_etcd_5fmeta_2eproto