diff --git a/CHANGELOG.md b/CHANGELOG.md index d356dbe099..5394d4423d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -41,6 +41,7 @@ Please mark all changes in change log and use the issue from GitHub - \#3514 Search failed with regex tag name - \#3533 Scheduler/Selector needs to judge the index type - \#3621 Fix crash where getting octets information +- \#3652 Proto of C++ sdk is different from milvus server ## Feature - \#2319 Redo metadata to support MVCC diff --git a/core/src/server/web_impl/handler/WebRequestHandler.cpp b/core/src/server/web_impl/handler/WebRequestHandler.cpp index b7066a39a5..c8e19e9c39 100644 --- a/core/src/server/web_impl/handler/WebRequestHandler.cpp +++ b/core/src/server/web_impl/handler/WebRequestHandler.cpp @@ -293,6 +293,7 @@ WebRequestHandler::GetCollectionMetaInfo(const std::string& collection_name, nlo if (schema.extra_params_.contains(engine::PARAM_UID_AUTOGEN)) { json_out[engine::PARAM_UID_AUTOGEN] = schema.extra_params_[engine::PARAM_UID_AUTOGEN]; } + json_out["count"] = count; return Status::OK(); } diff --git a/sdk/examples/simple/src/ClientTest.cpp b/sdk/examples/simple/src/ClientTest.cpp index 4835e40d94..cc3240b6d2 100644 --- a/sdk/examples/simple/src/ClientTest.cpp +++ b/sdk/examples/simple/src/ClientTest.cpp @@ -281,7 +281,7 @@ ClientTest::LoadCollection(const std::string& collection_name) { void ClientTest::CompactCollection(const std::string& collection_name) { milvus_sdk::TimeRecorder rc("Compact"); - milvus::Status stat = conn_->Compact(collection_name); + milvus::Status stat = conn_->Compact(collection_name, 0.1); std::cout << "CompactCollection function call status: " << stat.message() << std::endl; } diff --git a/sdk/grpc-gen/gen-milvus/milvus.grpc.pb.cc b/sdk/grpc-gen/gen-milvus/milvus.grpc.pb.cc index 6fcf6a1780..6542c6a862 100644 --- a/sdk/grpc-gen/gen-milvus/milvus.grpc.pb.cc +++ b/sdk/grpc-gen/gen-milvus/milvus.grpc.pb.cc @@ -38,12 +38,10 @@ static const char* MilvusService_method_names[] = { "/milvus.grpc.MilvusService/GetEntityByID", "/milvus.grpc.MilvusService/GetEntityIDs", "/milvus.grpc.MilvusService/Search", - "/milvus.grpc.MilvusService/SearchByID", - "/milvus.grpc.MilvusService/SearchInFiles", + "/milvus.grpc.MilvusService/SearchInSegment", "/milvus.grpc.MilvusService/Cmd", "/milvus.grpc.MilvusService/DeleteByID", "/milvus.grpc.MilvusService/PreloadCollection", - "/milvus.grpc.MilvusService/ReloadSegments", "/milvus.grpc.MilvusService/Flush", "/milvus.grpc.MilvusService/Compact", "/milvus.grpc.MilvusService/SearchPB", @@ -74,15 +72,13 @@ MilvusService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& chan , rpcmethod_GetEntityByID_(MilvusService_method_names[15], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_GetEntityIDs_(MilvusService_method_names[16], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_Search_(MilvusService_method_names[17], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_SearchByID_(MilvusService_method_names[18], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_SearchInFiles_(MilvusService_method_names[19], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_Cmd_(MilvusService_method_names[20], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DeleteByID_(MilvusService_method_names[21], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_PreloadCollection_(MilvusService_method_names[22], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ReloadSegments_(MilvusService_method_names[23], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_Flush_(MilvusService_method_names[24], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_Compact_(MilvusService_method_names[25], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_SearchPB_(MilvusService_method_names[26], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_SearchInSegment_(MilvusService_method_names[18], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Cmd_(MilvusService_method_names[19], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DeleteByID_(MilvusService_method_names[20], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_PreloadCollection_(MilvusService_method_names[21], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Flush_(MilvusService_method_names[22], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Compact_(MilvusService_method_names[23], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_SearchPB_(MilvusService_method_names[24], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status MilvusService::Stub::CreateCollection(::grpc::ClientContext* context, const ::milvus::grpc::Mapping& request, ::milvus::grpc::Status* response) { @@ -309,11 +305,11 @@ void MilvusService::Stub::experimental_async::CreateIndex(::grpc::ClientContext* return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::Status>::Create(channel_.get(), cq, rpcmethod_CreateIndex_, context, request, false); } -::grpc::Status MilvusService::Stub::DescribeIndex(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName& request, ::milvus::grpc::IndexParam* response) { +::grpc::Status MilvusService::Stub::DescribeIndex(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam& request, ::milvus::grpc::IndexParam* response) { return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DescribeIndex_, context, request, response); } -void MilvusService::Stub::experimental_async::DescribeIndex(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName* request, ::milvus::grpc::IndexParam* response, std::function f) { +void MilvusService::Stub::experimental_async::DescribeIndex(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam* request, ::milvus::grpc::IndexParam* response, std::function f) { ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DescribeIndex_, context, request, response, std::move(f)); } @@ -321,7 +317,7 @@ void MilvusService::Stub::experimental_async::DescribeIndex(::grpc::ClientContex ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DescribeIndex_, context, request, response, std::move(f)); } -void MilvusService::Stub::experimental_async::DescribeIndex(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName* request, ::milvus::grpc::IndexParam* response, ::grpc::experimental::ClientUnaryReactor* reactor) { +void MilvusService::Stub::experimental_async::DescribeIndex(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam* request, ::milvus::grpc::IndexParam* response, ::grpc::experimental::ClientUnaryReactor* reactor) { ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DescribeIndex_, context, request, response, reactor); } @@ -329,11 +325,11 @@ void MilvusService::Stub::experimental_async::DescribeIndex(::grpc::ClientContex ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DescribeIndex_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::milvus::grpc::IndexParam>* MilvusService::Stub::AsyncDescribeIndexRaw(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName& request, ::grpc::CompletionQueue* cq) { +::grpc::ClientAsyncResponseReader< ::milvus::grpc::IndexParam>* MilvusService::Stub::AsyncDescribeIndexRaw(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam& request, ::grpc::CompletionQueue* cq) { return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::IndexParam>::Create(channel_.get(), cq, rpcmethod_DescribeIndex_, context, request, true); } -::grpc::ClientAsyncResponseReader< ::milvus::grpc::IndexParam>* MilvusService::Stub::PrepareAsyncDescribeIndexRaw(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName& request, ::grpc::CompletionQueue* cq) { +::grpc::ClientAsyncResponseReader< ::milvus::grpc::IndexParam>* MilvusService::Stub::PrepareAsyncDescribeIndexRaw(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam& request, ::grpc::CompletionQueue* cq) { return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::IndexParam>::Create(channel_.get(), cq, rpcmethod_DescribeIndex_, context, request, false); } @@ -589,60 +585,32 @@ void MilvusService::Stub::experimental_async::Search(::grpc::ClientContext* cont return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::QueryResult>::Create(channel_.get(), cq, rpcmethod_Search_, context, request, false); } -::grpc::Status MilvusService::Stub::SearchByID(::grpc::ClientContext* context, const ::milvus::grpc::SearchByIDParam& request, ::milvus::grpc::QueryResult* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_SearchByID_, context, request, response); +::grpc::Status MilvusService::Stub::SearchInSegment(::grpc::ClientContext* context, const ::milvus::grpc::SearchInSegmentParam& request, ::milvus::grpc::QueryResult* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_SearchInSegment_, context, request, response); } -void MilvusService::Stub::experimental_async::SearchByID(::grpc::ClientContext* context, const ::milvus::grpc::SearchByIDParam* request, ::milvus::grpc::QueryResult* response, std::function f) { - ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SearchByID_, context, request, response, std::move(f)); +void MilvusService::Stub::experimental_async::SearchInSegment(::grpc::ClientContext* context, const ::milvus::grpc::SearchInSegmentParam* request, ::milvus::grpc::QueryResult* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SearchInSegment_, context, request, response, std::move(f)); } -void MilvusService::Stub::experimental_async::SearchByID(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::QueryResult* response, std::function f) { - ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SearchByID_, context, request, response, std::move(f)); +void MilvusService::Stub::experimental_async::SearchInSegment(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::QueryResult* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SearchInSegment_, context, request, response, std::move(f)); } -void MilvusService::Stub::experimental_async::SearchByID(::grpc::ClientContext* context, const ::milvus::grpc::SearchByIDParam* request, ::milvus::grpc::QueryResult* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SearchByID_, context, request, response, reactor); +void MilvusService::Stub::experimental_async::SearchInSegment(::grpc::ClientContext* context, const ::milvus::grpc::SearchInSegmentParam* request, ::milvus::grpc::QueryResult* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SearchInSegment_, context, request, response, reactor); } -void MilvusService::Stub::experimental_async::SearchByID(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::QueryResult* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SearchByID_, context, request, response, reactor); +void MilvusService::Stub::experimental_async::SearchInSegment(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::QueryResult* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SearchInSegment_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::milvus::grpc::QueryResult>* MilvusService::Stub::AsyncSearchByIDRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchByIDParam& request, ::grpc::CompletionQueue* cq) { - return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::QueryResult>::Create(channel_.get(), cq, rpcmethod_SearchByID_, context, request, true); +::grpc::ClientAsyncResponseReader< ::milvus::grpc::QueryResult>* MilvusService::Stub::AsyncSearchInSegmentRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchInSegmentParam& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::QueryResult>::Create(channel_.get(), cq, rpcmethod_SearchInSegment_, context, request, true); } -::grpc::ClientAsyncResponseReader< ::milvus::grpc::QueryResult>* MilvusService::Stub::PrepareAsyncSearchByIDRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchByIDParam& request, ::grpc::CompletionQueue* cq) { - return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::QueryResult>::Create(channel_.get(), cq, rpcmethod_SearchByID_, context, request, false); -} - -::grpc::Status MilvusService::Stub::SearchInFiles(::grpc::ClientContext* context, const ::milvus::grpc::SearchInFilesParam& request, ::milvus::grpc::QueryResult* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_SearchInFiles_, context, request, response); -} - -void MilvusService::Stub::experimental_async::SearchInFiles(::grpc::ClientContext* context, const ::milvus::grpc::SearchInFilesParam* request, ::milvus::grpc::QueryResult* response, std::function f) { - ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SearchInFiles_, context, request, response, std::move(f)); -} - -void MilvusService::Stub::experimental_async::SearchInFiles(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::QueryResult* response, std::function f) { - ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SearchInFiles_, context, request, response, std::move(f)); -} - -void MilvusService::Stub::experimental_async::SearchInFiles(::grpc::ClientContext* context, const ::milvus::grpc::SearchInFilesParam* request, ::milvus::grpc::QueryResult* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SearchInFiles_, context, request, response, reactor); -} - -void MilvusService::Stub::experimental_async::SearchInFiles(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::QueryResult* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SearchInFiles_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::milvus::grpc::QueryResult>* MilvusService::Stub::AsyncSearchInFilesRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchInFilesParam& request, ::grpc::CompletionQueue* cq) { - return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::QueryResult>::Create(channel_.get(), cq, rpcmethod_SearchInFiles_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::milvus::grpc::QueryResult>* MilvusService::Stub::PrepareAsyncSearchInFilesRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchInFilesParam& request, ::grpc::CompletionQueue* cq) { - return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::QueryResult>::Create(channel_.get(), cq, rpcmethod_SearchInFiles_, context, request, false); +::grpc::ClientAsyncResponseReader< ::milvus::grpc::QueryResult>* MilvusService::Stub::PrepareAsyncSearchInSegmentRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchInSegmentParam& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::QueryResult>::Create(channel_.get(), cq, rpcmethod_SearchInSegment_, context, request, false); } ::grpc::Status MilvusService::Stub::Cmd(::grpc::ClientContext* context, const ::milvus::grpc::Command& request, ::milvus::grpc::StringReply* response) { @@ -729,34 +697,6 @@ void MilvusService::Stub::experimental_async::PreloadCollection(::grpc::ClientCo return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::Status>::Create(channel_.get(), cq, rpcmethod_PreloadCollection_, context, request, false); } -::grpc::Status MilvusService::Stub::ReloadSegments(::grpc::ClientContext* context, const ::milvus::grpc::ReLoadSegmentsParam& request, ::milvus::grpc::Status* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ReloadSegments_, context, request, response); -} - -void MilvusService::Stub::experimental_async::ReloadSegments(::grpc::ClientContext* context, const ::milvus::grpc::ReLoadSegmentsParam* request, ::milvus::grpc::Status* response, std::function f) { - ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ReloadSegments_, context, request, response, std::move(f)); -} - -void MilvusService::Stub::experimental_async::ReloadSegments(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, std::function f) { - ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ReloadSegments_, context, request, response, std::move(f)); -} - -void MilvusService::Stub::experimental_async::ReloadSegments(::grpc::ClientContext* context, const ::milvus::grpc::ReLoadSegmentsParam* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ReloadSegments_, context, request, response, reactor); -} - -void MilvusService::Stub::experimental_async::ReloadSegments(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ReloadSegments_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* MilvusService::Stub::AsyncReloadSegmentsRaw(::grpc::ClientContext* context, const ::milvus::grpc::ReLoadSegmentsParam& request, ::grpc::CompletionQueue* cq) { - return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::Status>::Create(channel_.get(), cq, rpcmethod_ReloadSegments_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* MilvusService::Stub::PrepareAsyncReloadSegmentsRaw(::grpc::ClientContext* context, const ::milvus::grpc::ReLoadSegmentsParam& request, ::grpc::CompletionQueue* cq) { - return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::Status>::Create(channel_.get(), cq, rpcmethod_ReloadSegments_, context, request, false); -} - ::grpc::Status MilvusService::Stub::Flush(::grpc::ClientContext* context, const ::milvus::grpc::FlushParam& request, ::milvus::grpc::Status* response) { return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Flush_, context, request, response); } @@ -785,11 +725,11 @@ void MilvusService::Stub::experimental_async::Flush(::grpc::ClientContext* conte return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::Status>::Create(channel_.get(), cq, rpcmethod_Flush_, context, request, false); } -::grpc::Status MilvusService::Stub::Compact(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName& request, ::milvus::grpc::Status* response) { +::grpc::Status MilvusService::Stub::Compact(::grpc::ClientContext* context, const ::milvus::grpc::CompactParam& request, ::milvus::grpc::Status* response) { return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Compact_, context, request, response); } -void MilvusService::Stub::experimental_async::Compact(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName* request, ::milvus::grpc::Status* response, std::function f) { +void MilvusService::Stub::experimental_async::Compact(::grpc::ClientContext* context, const ::milvus::grpc::CompactParam* request, ::milvus::grpc::Status* response, std::function f) { ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Compact_, context, request, response, std::move(f)); } @@ -797,7 +737,7 @@ void MilvusService::Stub::experimental_async::Compact(::grpc::ClientContext* con ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Compact_, context, request, response, std::move(f)); } -void MilvusService::Stub::experimental_async::Compact(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) { +void MilvusService::Stub::experimental_async::Compact(::grpc::ClientContext* context, const ::milvus::grpc::CompactParam* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) { ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Compact_, context, request, response, reactor); } @@ -805,11 +745,11 @@ void MilvusService::Stub::experimental_async::Compact(::grpc::ClientContext* con ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Compact_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* MilvusService::Stub::AsyncCompactRaw(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName& request, ::grpc::CompletionQueue* cq) { +::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* MilvusService::Stub::AsyncCompactRaw(::grpc::ClientContext* context, const ::milvus::grpc::CompactParam& request, ::grpc::CompletionQueue* cq) { return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::Status>::Create(channel_.get(), cq, rpcmethod_Compact_, context, request, true); } -::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* MilvusService::Stub::PrepareAsyncCompactRaw(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName& request, ::grpc::CompletionQueue* cq) { +::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* MilvusService::Stub::PrepareAsyncCompactRaw(::grpc::ClientContext* context, const ::milvus::grpc::CompactParam& request, ::grpc::CompletionQueue* cq) { return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::Status>::Create(channel_.get(), cq, rpcmethod_Compact_, context, request, false); } @@ -885,7 +825,7 @@ MilvusService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MilvusService_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MilvusService::Service, ::milvus::grpc::CollectionName, ::milvus::grpc::IndexParam>( + new ::grpc::internal::RpcMethodHandler< MilvusService::Service, ::milvus::grpc::IndexParam, ::milvus::grpc::IndexParam>( std::mem_fn(&MilvusService::Service::DescribeIndex), this))); AddMethod(new ::grpc::internal::RpcServiceMethod( MilvusService_method_names[9], @@ -935,45 +875,35 @@ MilvusService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MilvusService_method_names[18], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MilvusService::Service, ::milvus::grpc::SearchByIDParam, ::milvus::grpc::QueryResult>( - std::mem_fn(&MilvusService::Service::SearchByID), this))); + new ::grpc::internal::RpcMethodHandler< MilvusService::Service, ::milvus::grpc::SearchInSegmentParam, ::milvus::grpc::QueryResult>( + std::mem_fn(&MilvusService::Service::SearchInSegment), this))); AddMethod(new ::grpc::internal::RpcServiceMethod( MilvusService_method_names[19], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MilvusService::Service, ::milvus::grpc::SearchInFilesParam, ::milvus::grpc::QueryResult>( - std::mem_fn(&MilvusService::Service::SearchInFiles), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - MilvusService_method_names[20], - ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< MilvusService::Service, ::milvus::grpc::Command, ::milvus::grpc::StringReply>( std::mem_fn(&MilvusService::Service::Cmd), this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - MilvusService_method_names[21], + MilvusService_method_names[20], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< MilvusService::Service, ::milvus::grpc::DeleteByIDParam, ::milvus::grpc::Status>( std::mem_fn(&MilvusService::Service::DeleteByID), this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - MilvusService_method_names[22], + MilvusService_method_names[21], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< MilvusService::Service, ::milvus::grpc::CollectionName, ::milvus::grpc::Status>( std::mem_fn(&MilvusService::Service::PreloadCollection), this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - MilvusService_method_names[23], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MilvusService::Service, ::milvus::grpc::ReLoadSegmentsParam, ::milvus::grpc::Status>( - std::mem_fn(&MilvusService::Service::ReloadSegments), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - MilvusService_method_names[24], + MilvusService_method_names[22], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< MilvusService::Service, ::milvus::grpc::FlushParam, ::milvus::grpc::Status>( std::mem_fn(&MilvusService::Service::Flush), this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - MilvusService_method_names[25], + MilvusService_method_names[23], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MilvusService::Service, ::milvus::grpc::CollectionName, ::milvus::grpc::Status>( + new ::grpc::internal::RpcMethodHandler< MilvusService::Service, ::milvus::grpc::CompactParam, ::milvus::grpc::Status>( std::mem_fn(&MilvusService::Service::Compact), this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - MilvusService_method_names[26], + MilvusService_method_names[24], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< MilvusService::Service, ::milvus::grpc::SearchParamPB, ::milvus::grpc::QueryResult>( std::mem_fn(&MilvusService::Service::SearchPB), this))); @@ -1038,7 +968,7 @@ MilvusService::Service::~Service() { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status MilvusService::Service::DescribeIndex(::grpc::ServerContext* context, const ::milvus::grpc::CollectionName* request, ::milvus::grpc::IndexParam* response) { +::grpc::Status MilvusService::Service::DescribeIndex(::grpc::ServerContext* context, const ::milvus::grpc::IndexParam* request, ::milvus::grpc::IndexParam* response) { (void) context; (void) request; (void) response; @@ -1108,14 +1038,7 @@ MilvusService::Service::~Service() { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status MilvusService::Service::SearchByID(::grpc::ServerContext* context, const ::milvus::grpc::SearchByIDParam* request, ::milvus::grpc::QueryResult* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status MilvusService::Service::SearchInFiles(::grpc::ServerContext* context, const ::milvus::grpc::SearchInFilesParam* request, ::milvus::grpc::QueryResult* response) { +::grpc::Status MilvusService::Service::SearchInSegment(::grpc::ServerContext* context, const ::milvus::grpc::SearchInSegmentParam* request, ::milvus::grpc::QueryResult* response) { (void) context; (void) request; (void) response; @@ -1143,13 +1066,6 @@ MilvusService::Service::~Service() { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status MilvusService::Service::ReloadSegments(::grpc::ServerContext* context, const ::milvus::grpc::ReLoadSegmentsParam* request, ::milvus::grpc::Status* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - ::grpc::Status MilvusService::Service::Flush(::grpc::ServerContext* context, const ::milvus::grpc::FlushParam* request, ::milvus::grpc::Status* response) { (void) context; (void) request; @@ -1157,7 +1073,7 @@ MilvusService::Service::~Service() { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status MilvusService::Service::Compact(::grpc::ServerContext* context, const ::milvus::grpc::CollectionName* request, ::milvus::grpc::Status* response) { +::grpc::Status MilvusService::Service::Compact(::grpc::ServerContext* context, const ::milvus::grpc::CompactParam* request, ::milvus::grpc::Status* response) { (void) context; (void) request; (void) response; diff --git a/sdk/grpc-gen/gen-milvus/milvus.grpc.pb.h b/sdk/grpc-gen/gen-milvus/milvus.grpc.pb.h index 27d6a7717e..2b771e3748 100644 --- a/sdk/grpc-gen/gen-milvus/milvus.grpc.pb.h +++ b/sdk/grpc-gen/gen-milvus/milvus.grpc.pb.h @@ -130,7 +130,7 @@ class MilvusService final { // // @param CollectionName, collection name is going to be deleted. // - // @return CollectionNameList + // @return Status virtual ::grpc::Status DropCollection(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName& request, ::milvus::grpc::Status* response) = 0; std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>> AsyncDropCollection(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>>(AsyncDropCollectionRaw(context, request, cq)); @@ -154,20 +154,20 @@ class MilvusService final { // * // @brief This method is used to describe index // - // @param CollectionName, target collection name. + // @param IndexParam, target index. // // @return IndexParam - virtual ::grpc::Status DescribeIndex(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName& request, ::milvus::grpc::IndexParam* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::IndexParam>> AsyncDescribeIndex(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName& request, ::grpc::CompletionQueue* cq) { + virtual ::grpc::Status DescribeIndex(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam& request, ::milvus::grpc::IndexParam* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::IndexParam>> AsyncDescribeIndex(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::IndexParam>>(AsyncDescribeIndexRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::IndexParam>> PrepareAsyncDescribeIndex(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName& request, ::grpc::CompletionQueue* cq) { + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::IndexParam>> PrepareAsyncDescribeIndex(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::IndexParam>>(PrepareAsyncDescribeIndexRaw(context, request, cq)); } // * // @brief This method is used to drop index // - // @param CollectionName, target collection name. + // @param IndexParam, target field. if the IndexParam.field_name is empty, will drop all index of the collection // // @return Status virtual ::grpc::Status DropIndex(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam& request, ::milvus::grpc::Status* response) = 0; @@ -282,30 +282,17 @@ class MilvusService final { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::QueryResult>>(PrepareAsyncSearchRaw(context, request, cq)); } // * - // @brief This method is used to query vector by id. - // - // @param SearchByIDParam, search parameters. - // - // @return TopKQueryResult - virtual ::grpc::Status SearchByID(::grpc::ClientContext* context, const ::milvus::grpc::SearchByIDParam& request, ::milvus::grpc::QueryResult* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::QueryResult>> AsyncSearchByID(::grpc::ClientContext* context, const ::milvus::grpc::SearchByIDParam& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::QueryResult>>(AsyncSearchByIDRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::QueryResult>> PrepareAsyncSearchByID(::grpc::ClientContext* context, const ::milvus::grpc::SearchByIDParam& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::QueryResult>>(PrepareAsyncSearchByIDRaw(context, request, cq)); - } - // * // @brief This method is used to query vector in specified files. // - // @param SearchInFilesParam, search in files paremeters. + // @param SearchInSegmentParam, target segments to search. // // @return TopKQueryResult - virtual ::grpc::Status SearchInFiles(::grpc::ClientContext* context, const ::milvus::grpc::SearchInFilesParam& request, ::milvus::grpc::QueryResult* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::QueryResult>> AsyncSearchInFiles(::grpc::ClientContext* context, const ::milvus::grpc::SearchInFilesParam& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::QueryResult>>(AsyncSearchInFilesRaw(context, request, cq)); + virtual ::grpc::Status SearchInSegment(::grpc::ClientContext* context, const ::milvus::grpc::SearchInSegmentParam& request, ::milvus::grpc::QueryResult* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::QueryResult>> AsyncSearchInSegment(::grpc::ClientContext* context, const ::milvus::grpc::SearchInSegmentParam& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::QueryResult>>(AsyncSearchInSegmentRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::QueryResult>> PrepareAsyncSearchInFiles(::grpc::ClientContext* context, const ::milvus::grpc::SearchInFilesParam& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::QueryResult>>(PrepareAsyncSearchInFilesRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::QueryResult>> PrepareAsyncSearchInSegment(::grpc::ClientContext* context, const ::milvus::grpc::SearchInSegmentParam& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::QueryResult>>(PrepareAsyncSearchInSegmentRaw(context, request, cq)); } // * // @brief This method is used to give the server status. @@ -347,19 +334,6 @@ class MilvusService final { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>>(PrepareAsyncPreloadCollectionRaw(context, request, cq)); } // * - // @brief This method is used to reload collection segments - // - // @param ReLoadSegmentsParam, target segments information. - // - // @return Status - virtual ::grpc::Status ReloadSegments(::grpc::ClientContext* context, const ::milvus::grpc::ReLoadSegmentsParam& request, ::milvus::grpc::Status* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>> AsyncReloadSegments(::grpc::ClientContext* context, const ::milvus::grpc::ReLoadSegmentsParam& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>>(AsyncReloadSegmentsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>> PrepareAsyncReloadSegments(::grpc::ClientContext* context, const ::milvus::grpc::ReLoadSegmentsParam& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>>(PrepareAsyncReloadSegmentsRaw(context, request, cq)); - } - // * // @brief This method is used to flush buffer into storage. // // @param FlushParam, flush parameters @@ -375,14 +349,14 @@ class MilvusService final { // * // @brief This method is used to compact collection // - // @param CollectionName, target collection name. + // @param CompactParam, compact parameters // // @return Status - virtual ::grpc::Status Compact(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName& request, ::milvus::grpc::Status* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>> AsyncCompact(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName& request, ::grpc::CompletionQueue* cq) { + virtual ::grpc::Status Compact(::grpc::ClientContext* context, const ::milvus::grpc::CompactParam& request, ::milvus::grpc::Status* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>> AsyncCompact(::grpc::ClientContext* context, const ::milvus::grpc::CompactParam& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>>(AsyncCompactRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>> PrepareAsyncCompact(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName& request, ::grpc::CompletionQueue* cq) { + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>> PrepareAsyncCompact(::grpc::ClientContext* context, const ::milvus::grpc::CompactParam& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>>(PrepareAsyncCompactRaw(context, request, cq)); } // *******************************New Interface******************************************* @@ -462,7 +436,7 @@ class MilvusService final { // // @param CollectionName, collection name is going to be deleted. // - // @return CollectionNameList + // @return Status virtual void DropCollection(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName* request, ::milvus::grpc::Status* response, std::function) = 0; virtual void DropCollection(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, std::function) = 0; virtual void DropCollection(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; @@ -480,17 +454,17 @@ class MilvusService final { // * // @brief This method is used to describe index // - // @param CollectionName, target collection name. + // @param IndexParam, target index. // // @return IndexParam - virtual void DescribeIndex(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName* request, ::milvus::grpc::IndexParam* response, std::function) = 0; + virtual void DescribeIndex(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam* request, ::milvus::grpc::IndexParam* response, std::function) = 0; virtual void DescribeIndex(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::IndexParam* response, std::function) = 0; - virtual void DescribeIndex(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName* request, ::milvus::grpc::IndexParam* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void DescribeIndex(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam* request, ::milvus::grpc::IndexParam* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; virtual void DescribeIndex(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::IndexParam* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; // * // @brief This method is used to drop index // - // @param CollectionName, target collection name. + // @param IndexParam, target field. if the IndexParam.field_name is empty, will drop all index of the collection // // @return Status virtual void DropIndex(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam* request, ::milvus::grpc::Status* response, std::function) = 0; @@ -578,25 +552,15 @@ class MilvusService final { virtual void Search(::grpc::ClientContext* context, const ::milvus::grpc::SearchParam* request, ::milvus::grpc::QueryResult* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; virtual void Search(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::QueryResult* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; // * - // @brief This method is used to query vector by id. - // - // @param SearchByIDParam, search parameters. - // - // @return TopKQueryResult - virtual void SearchByID(::grpc::ClientContext* context, const ::milvus::grpc::SearchByIDParam* request, ::milvus::grpc::QueryResult* response, std::function) = 0; - virtual void SearchByID(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::QueryResult* response, std::function) = 0; - virtual void SearchByID(::grpc::ClientContext* context, const ::milvus::grpc::SearchByIDParam* request, ::milvus::grpc::QueryResult* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void SearchByID(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::QueryResult* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // * // @brief This method is used to query vector in specified files. // - // @param SearchInFilesParam, search in files paremeters. + // @param SearchInSegmentParam, target segments to search. // // @return TopKQueryResult - virtual void SearchInFiles(::grpc::ClientContext* context, const ::milvus::grpc::SearchInFilesParam* request, ::milvus::grpc::QueryResult* response, std::function) = 0; - virtual void SearchInFiles(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::QueryResult* response, std::function) = 0; - virtual void SearchInFiles(::grpc::ClientContext* context, const ::milvus::grpc::SearchInFilesParam* request, ::milvus::grpc::QueryResult* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void SearchInFiles(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::QueryResult* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void SearchInSegment(::grpc::ClientContext* context, const ::milvus::grpc::SearchInSegmentParam* request, ::milvus::grpc::QueryResult* response, std::function) = 0; + virtual void SearchInSegment(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::QueryResult* response, std::function) = 0; + virtual void SearchInSegment(::grpc::ClientContext* context, const ::milvus::grpc::SearchInSegmentParam* request, ::milvus::grpc::QueryResult* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void SearchInSegment(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::QueryResult* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; // * // @brief This method is used to give the server status. // @@ -628,16 +592,6 @@ class MilvusService final { virtual void PreloadCollection(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; virtual void PreloadCollection(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; // * - // @brief This method is used to reload collection segments - // - // @param ReLoadSegmentsParam, target segments information. - // - // @return Status - virtual void ReloadSegments(::grpc::ClientContext* context, const ::milvus::grpc::ReLoadSegmentsParam* request, ::milvus::grpc::Status* response, std::function) = 0; - virtual void ReloadSegments(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, std::function) = 0; - virtual void ReloadSegments(::grpc::ClientContext* context, const ::milvus::grpc::ReLoadSegmentsParam* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void ReloadSegments(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // * // @brief This method is used to flush buffer into storage. // // @param FlushParam, flush parameters @@ -650,12 +604,12 @@ class MilvusService final { // * // @brief This method is used to compact collection // - // @param CollectionName, target collection name. + // @param CompactParam, compact parameters // // @return Status - virtual void Compact(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName* request, ::milvus::grpc::Status* response, std::function) = 0; + virtual void Compact(::grpc::ClientContext* context, const ::milvus::grpc::CompactParam* request, ::milvus::grpc::Status* response, std::function) = 0; virtual void Compact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, std::function) = 0; - virtual void Compact(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void Compact(::grpc::ClientContext* context, const ::milvus::grpc::CompactParam* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; virtual void Compact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; // *******************************New Interface******************************************* // @@ -682,8 +636,8 @@ class MilvusService final { virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>* PrepareAsyncDropCollectionRaw(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>* AsyncCreateIndexRaw(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>* PrepareAsyncCreateIndexRaw(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::IndexParam>* AsyncDescribeIndexRaw(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::IndexParam>* PrepareAsyncDescribeIndexRaw(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::IndexParam>* AsyncDescribeIndexRaw(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::IndexParam>* PrepareAsyncDescribeIndexRaw(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>* AsyncDropIndexRaw(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>* PrepareAsyncDropIndexRaw(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>* AsyncCreatePartitionRaw(::grpc::ClientContext* context, const ::milvus::grpc::PartitionParam& request, ::grpc::CompletionQueue* cq) = 0; @@ -702,22 +656,18 @@ class MilvusService final { virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::EntityIds>* PrepareAsyncGetEntityIDsRaw(::grpc::ClientContext* context, const ::milvus::grpc::GetEntityIDsParam& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::QueryResult>* AsyncSearchRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchParam& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::QueryResult>* PrepareAsyncSearchRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchParam& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::QueryResult>* AsyncSearchByIDRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchByIDParam& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::QueryResult>* PrepareAsyncSearchByIDRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchByIDParam& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::QueryResult>* AsyncSearchInFilesRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchInFilesParam& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::QueryResult>* PrepareAsyncSearchInFilesRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchInFilesParam& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::QueryResult>* AsyncSearchInSegmentRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchInSegmentParam& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::QueryResult>* PrepareAsyncSearchInSegmentRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchInSegmentParam& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::StringReply>* AsyncCmdRaw(::grpc::ClientContext* context, const ::milvus::grpc::Command& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::StringReply>* PrepareAsyncCmdRaw(::grpc::ClientContext* context, const ::milvus::grpc::Command& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>* AsyncDeleteByIDRaw(::grpc::ClientContext* context, const ::milvus::grpc::DeleteByIDParam& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>* PrepareAsyncDeleteByIDRaw(::grpc::ClientContext* context, const ::milvus::grpc::DeleteByIDParam& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>* AsyncPreloadCollectionRaw(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>* PrepareAsyncPreloadCollectionRaw(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>* AsyncReloadSegmentsRaw(::grpc::ClientContext* context, const ::milvus::grpc::ReLoadSegmentsParam& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>* PrepareAsyncReloadSegmentsRaw(::grpc::ClientContext* context, const ::milvus::grpc::ReLoadSegmentsParam& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>* AsyncFlushRaw(::grpc::ClientContext* context, const ::milvus::grpc::FlushParam& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>* PrepareAsyncFlushRaw(::grpc::ClientContext* context, const ::milvus::grpc::FlushParam& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>* AsyncCompactRaw(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>* PrepareAsyncCompactRaw(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>* AsyncCompactRaw(::grpc::ClientContext* context, const ::milvus::grpc::CompactParam& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>* PrepareAsyncCompactRaw(::grpc::ClientContext* context, const ::milvus::grpc::CompactParam& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::QueryResult>* AsyncSearchPBRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchParamPB& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::QueryResult>* PrepareAsyncSearchPBRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchParamPB& request, ::grpc::CompletionQueue* cq) = 0; }; @@ -780,11 +730,11 @@ class MilvusService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>> PrepareAsyncCreateIndex(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>>(PrepareAsyncCreateIndexRaw(context, request, cq)); } - ::grpc::Status DescribeIndex(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName& request, ::milvus::grpc::IndexParam* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::IndexParam>> AsyncDescribeIndex(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName& request, ::grpc::CompletionQueue* cq) { + ::grpc::Status DescribeIndex(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam& request, ::milvus::grpc::IndexParam* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::IndexParam>> AsyncDescribeIndex(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::IndexParam>>(AsyncDescribeIndexRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::IndexParam>> PrepareAsyncDescribeIndex(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName& request, ::grpc::CompletionQueue* cq) { + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::IndexParam>> PrepareAsyncDescribeIndex(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::IndexParam>>(PrepareAsyncDescribeIndexRaw(context, request, cq)); } ::grpc::Status DropIndex(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam& request, ::milvus::grpc::Status* response) override; @@ -850,19 +800,12 @@ class MilvusService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::QueryResult>> PrepareAsyncSearch(::grpc::ClientContext* context, const ::milvus::grpc::SearchParam& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::QueryResult>>(PrepareAsyncSearchRaw(context, request, cq)); } - ::grpc::Status SearchByID(::grpc::ClientContext* context, const ::milvus::grpc::SearchByIDParam& request, ::milvus::grpc::QueryResult* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::QueryResult>> AsyncSearchByID(::grpc::ClientContext* context, const ::milvus::grpc::SearchByIDParam& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::QueryResult>>(AsyncSearchByIDRaw(context, request, cq)); + ::grpc::Status SearchInSegment(::grpc::ClientContext* context, const ::milvus::grpc::SearchInSegmentParam& request, ::milvus::grpc::QueryResult* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::QueryResult>> AsyncSearchInSegment(::grpc::ClientContext* context, const ::milvus::grpc::SearchInSegmentParam& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::QueryResult>>(AsyncSearchInSegmentRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::QueryResult>> PrepareAsyncSearchByID(::grpc::ClientContext* context, const ::milvus::grpc::SearchByIDParam& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::QueryResult>>(PrepareAsyncSearchByIDRaw(context, request, cq)); - } - ::grpc::Status SearchInFiles(::grpc::ClientContext* context, const ::milvus::grpc::SearchInFilesParam& request, ::milvus::grpc::QueryResult* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::QueryResult>> AsyncSearchInFiles(::grpc::ClientContext* context, const ::milvus::grpc::SearchInFilesParam& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::QueryResult>>(AsyncSearchInFilesRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::QueryResult>> PrepareAsyncSearchInFiles(::grpc::ClientContext* context, const ::milvus::grpc::SearchInFilesParam& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::QueryResult>>(PrepareAsyncSearchInFilesRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::QueryResult>> PrepareAsyncSearchInSegment(::grpc::ClientContext* context, const ::milvus::grpc::SearchInSegmentParam& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::QueryResult>>(PrepareAsyncSearchInSegmentRaw(context, request, cq)); } ::grpc::Status Cmd(::grpc::ClientContext* context, const ::milvus::grpc::Command& request, ::milvus::grpc::StringReply* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::StringReply>> AsyncCmd(::grpc::ClientContext* context, const ::milvus::grpc::Command& request, ::grpc::CompletionQueue* cq) { @@ -885,13 +828,6 @@ class MilvusService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>> PrepareAsyncPreloadCollection(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>>(PrepareAsyncPreloadCollectionRaw(context, request, cq)); } - ::grpc::Status ReloadSegments(::grpc::ClientContext* context, const ::milvus::grpc::ReLoadSegmentsParam& request, ::milvus::grpc::Status* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>> AsyncReloadSegments(::grpc::ClientContext* context, const ::milvus::grpc::ReLoadSegmentsParam& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>>(AsyncReloadSegmentsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>> PrepareAsyncReloadSegments(::grpc::ClientContext* context, const ::milvus::grpc::ReLoadSegmentsParam& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>>(PrepareAsyncReloadSegmentsRaw(context, request, cq)); - } ::grpc::Status Flush(::grpc::ClientContext* context, const ::milvus::grpc::FlushParam& request, ::milvus::grpc::Status* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>> AsyncFlush(::grpc::ClientContext* context, const ::milvus::grpc::FlushParam& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>>(AsyncFlushRaw(context, request, cq)); @@ -899,11 +835,11 @@ class MilvusService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>> PrepareAsyncFlush(::grpc::ClientContext* context, const ::milvus::grpc::FlushParam& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>>(PrepareAsyncFlushRaw(context, request, cq)); } - ::grpc::Status Compact(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName& request, ::milvus::grpc::Status* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>> AsyncCompact(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName& request, ::grpc::CompletionQueue* cq) { + ::grpc::Status Compact(::grpc::ClientContext* context, const ::milvus::grpc::CompactParam& request, ::milvus::grpc::Status* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>> AsyncCompact(::grpc::ClientContext* context, const ::milvus::grpc::CompactParam& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>>(AsyncCompactRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>> PrepareAsyncCompact(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName& request, ::grpc::CompletionQueue* cq) { + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>> PrepareAsyncCompact(::grpc::ClientContext* context, const ::milvus::grpc::CompactParam& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>>(PrepareAsyncCompactRaw(context, request, cq)); } ::grpc::Status SearchPB(::grpc::ClientContext* context, const ::milvus::grpc::SearchParamPB& request, ::milvus::grpc::QueryResult* response) override; @@ -948,9 +884,9 @@ class MilvusService final { void CreateIndex(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, std::function) override; void CreateIndex(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; void CreateIndex(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void DescribeIndex(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName* request, ::milvus::grpc::IndexParam* response, std::function) override; + void DescribeIndex(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam* request, ::milvus::grpc::IndexParam* response, std::function) override; void DescribeIndex(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::IndexParam* response, std::function) override; - void DescribeIndex(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName* request, ::milvus::grpc::IndexParam* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void DescribeIndex(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam* request, ::milvus::grpc::IndexParam* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; void DescribeIndex(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::IndexParam* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; void DropIndex(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam* request, ::milvus::grpc::Status* response, std::function) override; void DropIndex(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, std::function) override; @@ -988,14 +924,10 @@ class MilvusService final { void Search(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::QueryResult* response, std::function) override; void Search(::grpc::ClientContext* context, const ::milvus::grpc::SearchParam* request, ::milvus::grpc::QueryResult* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; void Search(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::QueryResult* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void SearchByID(::grpc::ClientContext* context, const ::milvus::grpc::SearchByIDParam* request, ::milvus::grpc::QueryResult* response, std::function) override; - void SearchByID(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::QueryResult* response, std::function) override; - void SearchByID(::grpc::ClientContext* context, const ::milvus::grpc::SearchByIDParam* request, ::milvus::grpc::QueryResult* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void SearchByID(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::QueryResult* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void SearchInFiles(::grpc::ClientContext* context, const ::milvus::grpc::SearchInFilesParam* request, ::milvus::grpc::QueryResult* response, std::function) override; - void SearchInFiles(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::QueryResult* response, std::function) override; - void SearchInFiles(::grpc::ClientContext* context, const ::milvus::grpc::SearchInFilesParam* request, ::milvus::grpc::QueryResult* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void SearchInFiles(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::QueryResult* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void SearchInSegment(::grpc::ClientContext* context, const ::milvus::grpc::SearchInSegmentParam* request, ::milvus::grpc::QueryResult* response, std::function) override; + void SearchInSegment(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::QueryResult* response, std::function) override; + void SearchInSegment(::grpc::ClientContext* context, const ::milvus::grpc::SearchInSegmentParam* request, ::milvus::grpc::QueryResult* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void SearchInSegment(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::QueryResult* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; void Cmd(::grpc::ClientContext* context, const ::milvus::grpc::Command* request, ::milvus::grpc::StringReply* response, std::function) override; void Cmd(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::StringReply* response, std::function) override; void Cmd(::grpc::ClientContext* context, const ::milvus::grpc::Command* request, ::milvus::grpc::StringReply* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; @@ -1008,17 +940,13 @@ class MilvusService final { void PreloadCollection(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, std::function) override; void PreloadCollection(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; void PreloadCollection(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ReloadSegments(::grpc::ClientContext* context, const ::milvus::grpc::ReLoadSegmentsParam* request, ::milvus::grpc::Status* response, std::function) override; - void ReloadSegments(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, std::function) override; - void ReloadSegments(::grpc::ClientContext* context, const ::milvus::grpc::ReLoadSegmentsParam* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ReloadSegments(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; void Flush(::grpc::ClientContext* context, const ::milvus::grpc::FlushParam* request, ::milvus::grpc::Status* response, std::function) override; void Flush(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, std::function) override; void Flush(::grpc::ClientContext* context, const ::milvus::grpc::FlushParam* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; void Flush(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void Compact(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName* request, ::milvus::grpc::Status* response, std::function) override; + void Compact(::grpc::ClientContext* context, const ::milvus::grpc::CompactParam* request, ::milvus::grpc::Status* response, std::function) override; void Compact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, std::function) override; - void Compact(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void Compact(::grpc::ClientContext* context, const ::milvus::grpc::CompactParam* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; void Compact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; void SearchPB(::grpc::ClientContext* context, const ::milvus::grpc::SearchParamPB* request, ::milvus::grpc::QueryResult* response, std::function) override; void SearchPB(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::QueryResult* response, std::function) override; @@ -1051,8 +979,8 @@ class MilvusService final { ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* PrepareAsyncDropCollectionRaw(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* AsyncCreateIndexRaw(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* PrepareAsyncCreateIndexRaw(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::milvus::grpc::IndexParam>* AsyncDescribeIndexRaw(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::milvus::grpc::IndexParam>* PrepareAsyncDescribeIndexRaw(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::milvus::grpc::IndexParam>* AsyncDescribeIndexRaw(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::milvus::grpc::IndexParam>* PrepareAsyncDescribeIndexRaw(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* AsyncDropIndexRaw(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* PrepareAsyncDropIndexRaw(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* AsyncCreatePartitionRaw(::grpc::ClientContext* context, const ::milvus::grpc::PartitionParam& request, ::grpc::CompletionQueue* cq) override; @@ -1071,22 +999,18 @@ class MilvusService final { ::grpc::ClientAsyncResponseReader< ::milvus::grpc::EntityIds>* PrepareAsyncGetEntityIDsRaw(::grpc::ClientContext* context, const ::milvus::grpc::GetEntityIDsParam& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::milvus::grpc::QueryResult>* AsyncSearchRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchParam& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::milvus::grpc::QueryResult>* PrepareAsyncSearchRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchParam& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::milvus::grpc::QueryResult>* AsyncSearchByIDRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchByIDParam& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::milvus::grpc::QueryResult>* PrepareAsyncSearchByIDRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchByIDParam& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::milvus::grpc::QueryResult>* AsyncSearchInFilesRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchInFilesParam& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::milvus::grpc::QueryResult>* PrepareAsyncSearchInFilesRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchInFilesParam& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::milvus::grpc::QueryResult>* AsyncSearchInSegmentRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchInSegmentParam& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::milvus::grpc::QueryResult>* PrepareAsyncSearchInSegmentRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchInSegmentParam& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::milvus::grpc::StringReply>* AsyncCmdRaw(::grpc::ClientContext* context, const ::milvus::grpc::Command& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::milvus::grpc::StringReply>* PrepareAsyncCmdRaw(::grpc::ClientContext* context, const ::milvus::grpc::Command& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* AsyncDeleteByIDRaw(::grpc::ClientContext* context, const ::milvus::grpc::DeleteByIDParam& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* PrepareAsyncDeleteByIDRaw(::grpc::ClientContext* context, const ::milvus::grpc::DeleteByIDParam& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* AsyncPreloadCollectionRaw(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* PrepareAsyncPreloadCollectionRaw(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* AsyncReloadSegmentsRaw(::grpc::ClientContext* context, const ::milvus::grpc::ReLoadSegmentsParam& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* PrepareAsyncReloadSegmentsRaw(::grpc::ClientContext* context, const ::milvus::grpc::ReLoadSegmentsParam& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* AsyncFlushRaw(::grpc::ClientContext* context, const ::milvus::grpc::FlushParam& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* PrepareAsyncFlushRaw(::grpc::ClientContext* context, const ::milvus::grpc::FlushParam& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* AsyncCompactRaw(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* PrepareAsyncCompactRaw(::grpc::ClientContext* context, const ::milvus::grpc::CollectionName& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* AsyncCompactRaw(::grpc::ClientContext* context, const ::milvus::grpc::CompactParam& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* PrepareAsyncCompactRaw(::grpc::ClientContext* context, const ::milvus::grpc::CompactParam& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::milvus::grpc::QueryResult>* AsyncSearchPBRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchParamPB& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::milvus::grpc::QueryResult>* PrepareAsyncSearchPBRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchParamPB& request, ::grpc::CompletionQueue* cq) override; const ::grpc::internal::RpcMethod rpcmethod_CreateCollection_; @@ -1107,12 +1031,10 @@ class MilvusService final { const ::grpc::internal::RpcMethod rpcmethod_GetEntityByID_; const ::grpc::internal::RpcMethod rpcmethod_GetEntityIDs_; const ::grpc::internal::RpcMethod rpcmethod_Search_; - const ::grpc::internal::RpcMethod rpcmethod_SearchByID_; - const ::grpc::internal::RpcMethod rpcmethod_SearchInFiles_; + const ::grpc::internal::RpcMethod rpcmethod_SearchInSegment_; const ::grpc::internal::RpcMethod rpcmethod_Cmd_; const ::grpc::internal::RpcMethod rpcmethod_DeleteByID_; const ::grpc::internal::RpcMethod rpcmethod_PreloadCollection_; - const ::grpc::internal::RpcMethod rpcmethod_ReloadSegments_; const ::grpc::internal::RpcMethod rpcmethod_Flush_; const ::grpc::internal::RpcMethod rpcmethod_Compact_; const ::grpc::internal::RpcMethod rpcmethod_SearchPB_; @@ -1170,7 +1092,7 @@ class MilvusService final { // // @param CollectionName, collection name is going to be deleted. // - // @return CollectionNameList + // @return Status virtual ::grpc::Status DropCollection(::grpc::ServerContext* context, const ::milvus::grpc::CollectionName* request, ::milvus::grpc::Status* response); // * // @brief This method is used to build index by collection in sync mode. @@ -1182,14 +1104,14 @@ class MilvusService final { // * // @brief This method is used to describe index // - // @param CollectionName, target collection name. + // @param IndexParam, target index. // // @return IndexParam - virtual ::grpc::Status DescribeIndex(::grpc::ServerContext* context, const ::milvus::grpc::CollectionName* request, ::milvus::grpc::IndexParam* response); + virtual ::grpc::Status DescribeIndex(::grpc::ServerContext* context, const ::milvus::grpc::IndexParam* request, ::milvus::grpc::IndexParam* response); // * // @brief This method is used to drop index // - // @param CollectionName, target collection name. + // @param IndexParam, target field. if the IndexParam.field_name is empty, will drop all index of the collection // // @return Status virtual ::grpc::Status DropIndex(::grpc::ServerContext* context, const ::milvus::grpc::IndexParam* request, ::milvus::grpc::Status* response); @@ -1250,19 +1172,12 @@ class MilvusService final { // @return KQueryResult virtual ::grpc::Status Search(::grpc::ServerContext* context, const ::milvus::grpc::SearchParam* request, ::milvus::grpc::QueryResult* response); // * - // @brief This method is used to query vector by id. - // - // @param SearchByIDParam, search parameters. - // - // @return TopKQueryResult - virtual ::grpc::Status SearchByID(::grpc::ServerContext* context, const ::milvus::grpc::SearchByIDParam* request, ::milvus::grpc::QueryResult* response); - // * // @brief This method is used to query vector in specified files. // - // @param SearchInFilesParam, search in files paremeters. + // @param SearchInSegmentParam, target segments to search. // // @return TopKQueryResult - virtual ::grpc::Status SearchInFiles(::grpc::ServerContext* context, const ::milvus::grpc::SearchInFilesParam* request, ::milvus::grpc::QueryResult* response); + virtual ::grpc::Status SearchInSegment(::grpc::ServerContext* context, const ::milvus::grpc::SearchInSegmentParam* request, ::milvus::grpc::QueryResult* response); // * // @brief This method is used to give the server status. // @@ -1285,13 +1200,6 @@ class MilvusService final { // @return Status virtual ::grpc::Status PreloadCollection(::grpc::ServerContext* context, const ::milvus::grpc::CollectionName* request, ::milvus::grpc::Status* response); // * - // @brief This method is used to reload collection segments - // - // @param ReLoadSegmentsParam, target segments information. - // - // @return Status - virtual ::grpc::Status ReloadSegments(::grpc::ServerContext* context, const ::milvus::grpc::ReLoadSegmentsParam* request, ::milvus::grpc::Status* response); - // * // @brief This method is used to flush buffer into storage. // // @param FlushParam, flush parameters @@ -1301,10 +1209,10 @@ class MilvusService final { // * // @brief This method is used to compact collection // - // @param CollectionName, target collection name. + // @param CompactParam, compact parameters // // @return Status - virtual ::grpc::Status Compact(::grpc::ServerContext* context, const ::milvus::grpc::CollectionName* request, ::milvus::grpc::Status* response); + virtual ::grpc::Status Compact(::grpc::ServerContext* context, const ::milvus::grpc::CompactParam* request, ::milvus::grpc::Status* response); // *******************************New Interface******************************************* // virtual ::grpc::Status SearchPB(::grpc::ServerContext* context, const ::milvus::grpc::SearchParamPB* request, ::milvus::grpc::QueryResult* response); @@ -1481,11 +1389,11 @@ class MilvusService final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status DescribeIndex(::grpc::ServerContext* /*context*/, const ::milvus::grpc::CollectionName* /*request*/, ::milvus::grpc::IndexParam* /*response*/) override { + ::grpc::Status DescribeIndex(::grpc::ServerContext* /*context*/, const ::milvus::grpc::IndexParam* /*request*/, ::milvus::grpc::IndexParam* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestDescribeIndex(::grpc::ServerContext* context, ::milvus::grpc::CollectionName* request, ::grpc::ServerAsyncResponseWriter< ::milvus::grpc::IndexParam>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestDescribeIndex(::grpc::ServerContext* context, ::milvus::grpc::IndexParam* request, ::grpc::ServerAsyncResponseWriter< ::milvus::grpc::IndexParam>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); } }; @@ -1670,52 +1578,32 @@ class MilvusService final { } }; template - class WithAsyncMethod_SearchByID : public BaseClass { + class WithAsyncMethod_SearchInSegment : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithAsyncMethod_SearchByID() { + WithAsyncMethod_SearchInSegment() { ::grpc::Service::MarkMethodAsync(18); } - ~WithAsyncMethod_SearchByID() override { + ~WithAsyncMethod_SearchInSegment() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status SearchByID(::grpc::ServerContext* /*context*/, const ::milvus::grpc::SearchByIDParam* /*request*/, ::milvus::grpc::QueryResult* /*response*/) override { + ::grpc::Status SearchInSegment(::grpc::ServerContext* /*context*/, const ::milvus::grpc::SearchInSegmentParam* /*request*/, ::milvus::grpc::QueryResult* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestSearchByID(::grpc::ServerContext* context, ::milvus::grpc::SearchByIDParam* request, ::grpc::ServerAsyncResponseWriter< ::milvus::grpc::QueryResult>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestSearchInSegment(::grpc::ServerContext* context, ::milvus::grpc::SearchInSegmentParam* request, ::grpc::ServerAsyncResponseWriter< ::milvus::grpc::QueryResult>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(18, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_SearchInFiles : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_SearchInFiles() { - ::grpc::Service::MarkMethodAsync(19); - } - ~WithAsyncMethod_SearchInFiles() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SearchInFiles(::grpc::ServerContext* /*context*/, const ::milvus::grpc::SearchInFilesParam* /*request*/, ::milvus::grpc::QueryResult* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestSearchInFiles(::grpc::ServerContext* context, ::milvus::grpc::SearchInFilesParam* request, ::grpc::ServerAsyncResponseWriter< ::milvus::grpc::QueryResult>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(19, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template class WithAsyncMethod_Cmd : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_Cmd() { - ::grpc::Service::MarkMethodAsync(20); + ::grpc::Service::MarkMethodAsync(19); } ~WithAsyncMethod_Cmd() override { BaseClassMustBeDerivedFromService(this); @@ -1726,7 +1614,7 @@ class MilvusService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestCmd(::grpc::ServerContext* context, ::milvus::grpc::Command* request, ::grpc::ServerAsyncResponseWriter< ::milvus::grpc::StringReply>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(20, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(19, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1735,7 +1623,7 @@ class MilvusService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_DeleteByID() { - ::grpc::Service::MarkMethodAsync(21); + ::grpc::Service::MarkMethodAsync(20); } ~WithAsyncMethod_DeleteByID() override { BaseClassMustBeDerivedFromService(this); @@ -1746,7 +1634,7 @@ class MilvusService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestDeleteByID(::grpc::ServerContext* context, ::milvus::grpc::DeleteByIDParam* request, ::grpc::ServerAsyncResponseWriter< ::milvus::grpc::Status>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(21, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(20, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1755,7 +1643,7 @@ class MilvusService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_PreloadCollection() { - ::grpc::Service::MarkMethodAsync(22); + ::grpc::Service::MarkMethodAsync(21); } ~WithAsyncMethod_PreloadCollection() override { BaseClassMustBeDerivedFromService(this); @@ -1766,27 +1654,7 @@ class MilvusService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestPreloadCollection(::grpc::ServerContext* context, ::milvus::grpc::CollectionName* request, ::grpc::ServerAsyncResponseWriter< ::milvus::grpc::Status>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(22, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_ReloadSegments : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithAsyncMethod_ReloadSegments() { - ::grpc::Service::MarkMethodAsync(23); - } - ~WithAsyncMethod_ReloadSegments() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ReloadSegments(::grpc::ServerContext* /*context*/, const ::milvus::grpc::ReLoadSegmentsParam* /*request*/, ::milvus::grpc::Status* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestReloadSegments(::grpc::ServerContext* context, ::milvus::grpc::ReLoadSegmentsParam* request, ::grpc::ServerAsyncResponseWriter< ::milvus::grpc::Status>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(23, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(21, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1795,7 +1663,7 @@ class MilvusService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_Flush() { - ::grpc::Service::MarkMethodAsync(24); + ::grpc::Service::MarkMethodAsync(22); } ~WithAsyncMethod_Flush() override { BaseClassMustBeDerivedFromService(this); @@ -1806,7 +1674,7 @@ class MilvusService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestFlush(::grpc::ServerContext* context, ::milvus::grpc::FlushParam* request, ::grpc::ServerAsyncResponseWriter< ::milvus::grpc::Status>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(24, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(22, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1815,18 +1683,18 @@ class MilvusService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_Compact() { - ::grpc::Service::MarkMethodAsync(25); + ::grpc::Service::MarkMethodAsync(23); } ~WithAsyncMethod_Compact() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status Compact(::grpc::ServerContext* /*context*/, const ::milvus::grpc::CollectionName* /*request*/, ::milvus::grpc::Status* /*response*/) override { + ::grpc::Status Compact(::grpc::ServerContext* /*context*/, const ::milvus::grpc::CompactParam* /*request*/, ::milvus::grpc::Status* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestCompact(::grpc::ServerContext* context, ::milvus::grpc::CollectionName* request, ::grpc::ServerAsyncResponseWriter< ::milvus::grpc::Status>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(25, context, request, response, new_call_cq, notification_cq, tag); + void RequestCompact(::grpc::ServerContext* context, ::milvus::grpc::CompactParam* request, ::grpc::ServerAsyncResponseWriter< ::milvus::grpc::Status>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(23, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1835,7 +1703,7 @@ class MilvusService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithAsyncMethod_SearchPB() { - ::grpc::Service::MarkMethodAsync(26); + ::grpc::Service::MarkMethodAsync(24); } ~WithAsyncMethod_SearchPB() override { BaseClassMustBeDerivedFromService(this); @@ -1846,10 +1714,10 @@ class MilvusService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestSearchPB(::grpc::ServerContext* context, ::milvus::grpc::SearchParamPB* request, ::grpc::ServerAsyncResponseWriter< ::milvus::grpc::QueryResult>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(26, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(24, context, request, response, new_call_cq, notification_cq, tag); } }; - typedef WithAsyncMethod_CreateCollection > > > > > > > > > > > > > > > > > > > > > > > > > > AsyncService; + typedef WithAsyncMethod_CreateCollection > > > > > > > > > > > > > > > > > > > > > > > > AsyncService; template class ExperimentalWithCallbackMethod_CreateCollection : public BaseClass { private: @@ -2105,17 +1973,17 @@ class MilvusService final { public: ExperimentalWithCallbackMethod_DescribeIndex() { ::grpc::Service::experimental().MarkMethodCallback(8, - new ::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::CollectionName, ::milvus::grpc::IndexParam>( + new ::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::IndexParam, ::milvus::grpc::IndexParam>( [this](::grpc::ServerContext* context, - const ::milvus::grpc::CollectionName* request, + const ::milvus::grpc::IndexParam* request, ::milvus::grpc::IndexParam* response, ::grpc::experimental::ServerCallbackRpcController* controller) { return this->DescribeIndex(context, request, response, controller); })); } void SetMessageAllocatorFor_DescribeIndex( - ::grpc::experimental::MessageAllocator< ::milvus::grpc::CollectionName, ::milvus::grpc::IndexParam>* allocator) { - static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::CollectionName, ::milvus::grpc::IndexParam>*>( + ::grpc::experimental::MessageAllocator< ::milvus::grpc::IndexParam, ::milvus::grpc::IndexParam>* allocator) { + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::IndexParam, ::milvus::grpc::IndexParam>*>( ::grpc::Service::experimental().GetHandler(8)) ->SetMessageAllocator(allocator); } @@ -2123,11 +1991,11 @@ class MilvusService final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status DescribeIndex(::grpc::ServerContext* /*context*/, const ::milvus::grpc::CollectionName* /*request*/, ::milvus::grpc::IndexParam* /*response*/) override { + ::grpc::Status DescribeIndex(::grpc::ServerContext* /*context*/, const ::milvus::grpc::IndexParam* /*request*/, ::milvus::grpc::IndexParam* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual void DescribeIndex(::grpc::ServerContext* /*context*/, const ::milvus::grpc::CollectionName* /*request*/, ::milvus::grpc::IndexParam* /*response*/, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + virtual void DescribeIndex(::grpc::ServerContext* /*context*/, const ::milvus::grpc::IndexParam* /*request*/, ::milvus::grpc::IndexParam* /*response*/, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template class ExperimentalWithCallbackMethod_DropIndex : public BaseClass { @@ -2409,66 +2277,35 @@ class MilvusService final { virtual void Search(::grpc::ServerContext* /*context*/, const ::milvus::grpc::SearchParam* /*request*/, ::milvus::grpc::QueryResult* /*response*/, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template - class ExperimentalWithCallbackMethod_SearchByID : public BaseClass { + class ExperimentalWithCallbackMethod_SearchInSegment : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - ExperimentalWithCallbackMethod_SearchByID() { + ExperimentalWithCallbackMethod_SearchInSegment() { ::grpc::Service::experimental().MarkMethodCallback(18, - new ::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::SearchByIDParam, ::milvus::grpc::QueryResult>( + new ::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::SearchInSegmentParam, ::milvus::grpc::QueryResult>( [this](::grpc::ServerContext* context, - const ::milvus::grpc::SearchByIDParam* request, + const ::milvus::grpc::SearchInSegmentParam* request, ::milvus::grpc::QueryResult* response, ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->SearchByID(context, request, response, controller); + return this->SearchInSegment(context, request, response, controller); })); } - void SetMessageAllocatorFor_SearchByID( - ::grpc::experimental::MessageAllocator< ::milvus::grpc::SearchByIDParam, ::milvus::grpc::QueryResult>* allocator) { - static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::SearchByIDParam, ::milvus::grpc::QueryResult>*>( + void SetMessageAllocatorFor_SearchInSegment( + ::grpc::experimental::MessageAllocator< ::milvus::grpc::SearchInSegmentParam, ::milvus::grpc::QueryResult>* allocator) { + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::SearchInSegmentParam, ::milvus::grpc::QueryResult>*>( ::grpc::Service::experimental().GetHandler(18)) ->SetMessageAllocator(allocator); } - ~ExperimentalWithCallbackMethod_SearchByID() override { + ~ExperimentalWithCallbackMethod_SearchInSegment() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status SearchByID(::grpc::ServerContext* /*context*/, const ::milvus::grpc::SearchByIDParam* /*request*/, ::milvus::grpc::QueryResult* /*response*/) override { + ::grpc::Status SearchInSegment(::grpc::ServerContext* /*context*/, const ::milvus::grpc::SearchInSegmentParam* /*request*/, ::milvus::grpc::QueryResult* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual void SearchByID(::grpc::ServerContext* /*context*/, const ::milvus::grpc::SearchByIDParam* /*request*/, ::milvus::grpc::QueryResult* /*response*/, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_SearchInFiles : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_SearchInFiles() { - ::grpc::Service::experimental().MarkMethodCallback(19, - new ::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::SearchInFilesParam, ::milvus::grpc::QueryResult>( - [this](::grpc::ServerContext* context, - const ::milvus::grpc::SearchInFilesParam* request, - ::milvus::grpc::QueryResult* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->SearchInFiles(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_SearchInFiles( - ::grpc::experimental::MessageAllocator< ::milvus::grpc::SearchInFilesParam, ::milvus::grpc::QueryResult>* allocator) { - static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::SearchInFilesParam, ::milvus::grpc::QueryResult>*>( - ::grpc::Service::experimental().GetHandler(19)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_SearchInFiles() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SearchInFiles(::grpc::ServerContext* /*context*/, const ::milvus::grpc::SearchInFilesParam* /*request*/, ::milvus::grpc::QueryResult* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void SearchInFiles(::grpc::ServerContext* /*context*/, const ::milvus::grpc::SearchInFilesParam* /*request*/, ::milvus::grpc::QueryResult* /*response*/, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + virtual void SearchInSegment(::grpc::ServerContext* /*context*/, const ::milvus::grpc::SearchInSegmentParam* /*request*/, ::milvus::grpc::QueryResult* /*response*/, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template class ExperimentalWithCallbackMethod_Cmd : public BaseClass { @@ -2476,7 +2313,7 @@ class MilvusService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: ExperimentalWithCallbackMethod_Cmd() { - ::grpc::Service::experimental().MarkMethodCallback(20, + ::grpc::Service::experimental().MarkMethodCallback(19, new ::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::Command, ::milvus::grpc::StringReply>( [this](::grpc::ServerContext* context, const ::milvus::grpc::Command* request, @@ -2488,7 +2325,7 @@ class MilvusService final { void SetMessageAllocatorFor_Cmd( ::grpc::experimental::MessageAllocator< ::milvus::grpc::Command, ::milvus::grpc::StringReply>* allocator) { static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::Command, ::milvus::grpc::StringReply>*>( - ::grpc::Service::experimental().GetHandler(20)) + ::grpc::Service::experimental().GetHandler(19)) ->SetMessageAllocator(allocator); } ~ExperimentalWithCallbackMethod_Cmd() override { @@ -2507,7 +2344,7 @@ class MilvusService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: ExperimentalWithCallbackMethod_DeleteByID() { - ::grpc::Service::experimental().MarkMethodCallback(21, + ::grpc::Service::experimental().MarkMethodCallback(20, new ::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::DeleteByIDParam, ::milvus::grpc::Status>( [this](::grpc::ServerContext* context, const ::milvus::grpc::DeleteByIDParam* request, @@ -2519,7 +2356,7 @@ class MilvusService final { void SetMessageAllocatorFor_DeleteByID( ::grpc::experimental::MessageAllocator< ::milvus::grpc::DeleteByIDParam, ::milvus::grpc::Status>* allocator) { static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::DeleteByIDParam, ::milvus::grpc::Status>*>( - ::grpc::Service::experimental().GetHandler(21)) + ::grpc::Service::experimental().GetHandler(20)) ->SetMessageAllocator(allocator); } ~ExperimentalWithCallbackMethod_DeleteByID() override { @@ -2538,7 +2375,7 @@ class MilvusService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: ExperimentalWithCallbackMethod_PreloadCollection() { - ::grpc::Service::experimental().MarkMethodCallback(22, + ::grpc::Service::experimental().MarkMethodCallback(21, new ::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::CollectionName, ::milvus::grpc::Status>( [this](::grpc::ServerContext* context, const ::milvus::grpc::CollectionName* request, @@ -2550,7 +2387,7 @@ class MilvusService final { void SetMessageAllocatorFor_PreloadCollection( ::grpc::experimental::MessageAllocator< ::milvus::grpc::CollectionName, ::milvus::grpc::Status>* allocator) { static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::CollectionName, ::milvus::grpc::Status>*>( - ::grpc::Service::experimental().GetHandler(22)) + ::grpc::Service::experimental().GetHandler(21)) ->SetMessageAllocator(allocator); } ~ExperimentalWithCallbackMethod_PreloadCollection() override { @@ -2564,43 +2401,12 @@ class MilvusService final { virtual void PreloadCollection(::grpc::ServerContext* /*context*/, const ::milvus::grpc::CollectionName* /*request*/, ::milvus::grpc::Status* /*response*/, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template - class ExperimentalWithCallbackMethod_ReloadSegments : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithCallbackMethod_ReloadSegments() { - ::grpc::Service::experimental().MarkMethodCallback(23, - new ::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::ReLoadSegmentsParam, ::milvus::grpc::Status>( - [this](::grpc::ServerContext* context, - const ::milvus::grpc::ReLoadSegmentsParam* request, - ::milvus::grpc::Status* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->ReloadSegments(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_ReloadSegments( - ::grpc::experimental::MessageAllocator< ::milvus::grpc::ReLoadSegmentsParam, ::milvus::grpc::Status>* allocator) { - static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::ReLoadSegmentsParam, ::milvus::grpc::Status>*>( - ::grpc::Service::experimental().GetHandler(23)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_ReloadSegments() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ReloadSegments(::grpc::ServerContext* /*context*/, const ::milvus::grpc::ReLoadSegmentsParam* /*request*/, ::milvus::grpc::Status* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ReloadSegments(::grpc::ServerContext* /*context*/, const ::milvus::grpc::ReLoadSegmentsParam* /*request*/, ::milvus::grpc::Status* /*response*/, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template class ExperimentalWithCallbackMethod_Flush : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: ExperimentalWithCallbackMethod_Flush() { - ::grpc::Service::experimental().MarkMethodCallback(24, + ::grpc::Service::experimental().MarkMethodCallback(22, new ::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::FlushParam, ::milvus::grpc::Status>( [this](::grpc::ServerContext* context, const ::milvus::grpc::FlushParam* request, @@ -2612,7 +2418,7 @@ class MilvusService final { void SetMessageAllocatorFor_Flush( ::grpc::experimental::MessageAllocator< ::milvus::grpc::FlushParam, ::milvus::grpc::Status>* allocator) { static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::FlushParam, ::milvus::grpc::Status>*>( - ::grpc::Service::experimental().GetHandler(24)) + ::grpc::Service::experimental().GetHandler(22)) ->SetMessageAllocator(allocator); } ~ExperimentalWithCallbackMethod_Flush() override { @@ -2631,30 +2437,30 @@ class MilvusService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: ExperimentalWithCallbackMethod_Compact() { - ::grpc::Service::experimental().MarkMethodCallback(25, - new ::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::CollectionName, ::milvus::grpc::Status>( + ::grpc::Service::experimental().MarkMethodCallback(23, + new ::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::CompactParam, ::milvus::grpc::Status>( [this](::grpc::ServerContext* context, - const ::milvus::grpc::CollectionName* request, + const ::milvus::grpc::CompactParam* request, ::milvus::grpc::Status* response, ::grpc::experimental::ServerCallbackRpcController* controller) { return this->Compact(context, request, response, controller); })); } void SetMessageAllocatorFor_Compact( - ::grpc::experimental::MessageAllocator< ::milvus::grpc::CollectionName, ::milvus::grpc::Status>* allocator) { - static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::CollectionName, ::milvus::grpc::Status>*>( - ::grpc::Service::experimental().GetHandler(25)) + ::grpc::experimental::MessageAllocator< ::milvus::grpc::CompactParam, ::milvus::grpc::Status>* allocator) { + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::CompactParam, ::milvus::grpc::Status>*>( + ::grpc::Service::experimental().GetHandler(23)) ->SetMessageAllocator(allocator); } ~ExperimentalWithCallbackMethod_Compact() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status Compact(::grpc::ServerContext* /*context*/, const ::milvus::grpc::CollectionName* /*request*/, ::milvus::grpc::Status* /*response*/) override { + ::grpc::Status Compact(::grpc::ServerContext* /*context*/, const ::milvus::grpc::CompactParam* /*request*/, ::milvus::grpc::Status* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual void Compact(::grpc::ServerContext* /*context*/, const ::milvus::grpc::CollectionName* /*request*/, ::milvus::grpc::Status* /*response*/, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + virtual void Compact(::grpc::ServerContext* /*context*/, const ::milvus::grpc::CompactParam* /*request*/, ::milvus::grpc::Status* /*response*/, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template class ExperimentalWithCallbackMethod_SearchPB : public BaseClass { @@ -2662,7 +2468,7 @@ class MilvusService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: ExperimentalWithCallbackMethod_SearchPB() { - ::grpc::Service::experimental().MarkMethodCallback(26, + ::grpc::Service::experimental().MarkMethodCallback(24, new ::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::SearchParamPB, ::milvus::grpc::QueryResult>( [this](::grpc::ServerContext* context, const ::milvus::grpc::SearchParamPB* request, @@ -2674,7 +2480,7 @@ class MilvusService final { void SetMessageAllocatorFor_SearchPB( ::grpc::experimental::MessageAllocator< ::milvus::grpc::SearchParamPB, ::milvus::grpc::QueryResult>* allocator) { static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::SearchParamPB, ::milvus::grpc::QueryResult>*>( - ::grpc::Service::experimental().GetHandler(26)) + ::grpc::Service::experimental().GetHandler(24)) ->SetMessageAllocator(allocator); } ~ExperimentalWithCallbackMethod_SearchPB() override { @@ -2687,7 +2493,7 @@ class MilvusService final { } virtual void SearchPB(::grpc::ServerContext* /*context*/, const ::milvus::grpc::SearchParamPB* /*request*/, ::milvus::grpc::QueryResult* /*response*/, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; - typedef ExperimentalWithCallbackMethod_CreateCollection > > > > > > > > > > > > > > > > > > > > > > > > > > ExperimentalCallbackService; + typedef ExperimentalWithCallbackMethod_CreateCollection > > > > > > > > > > > > > > > > > > > > > > > > ExperimentalCallbackService; template class WithGenericMethod_CreateCollection : public BaseClass { private: @@ -2836,7 +2642,7 @@ class MilvusService final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status DescribeIndex(::grpc::ServerContext* /*context*/, const ::milvus::grpc::CollectionName* /*request*/, ::milvus::grpc::IndexParam* /*response*/) override { + ::grpc::Status DescribeIndex(::grpc::ServerContext* /*context*/, const ::milvus::grpc::IndexParam* /*request*/, ::milvus::grpc::IndexParam* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -2995,35 +2801,18 @@ class MilvusService final { } }; template - class WithGenericMethod_SearchByID : public BaseClass { + class WithGenericMethod_SearchInSegment : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithGenericMethod_SearchByID() { + WithGenericMethod_SearchInSegment() { ::grpc::Service::MarkMethodGeneric(18); } - ~WithGenericMethod_SearchByID() override { + ~WithGenericMethod_SearchInSegment() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status SearchByID(::grpc::ServerContext* /*context*/, const ::milvus::grpc::SearchByIDParam* /*request*/, ::milvus::grpc::QueryResult* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_SearchInFiles : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_SearchInFiles() { - ::grpc::Service::MarkMethodGeneric(19); - } - ~WithGenericMethod_SearchInFiles() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SearchInFiles(::grpc::ServerContext* /*context*/, const ::milvus::grpc::SearchInFilesParam* /*request*/, ::milvus::grpc::QueryResult* /*response*/) override { + ::grpc::Status SearchInSegment(::grpc::ServerContext* /*context*/, const ::milvus::grpc::SearchInSegmentParam* /*request*/, ::milvus::grpc::QueryResult* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -3034,7 +2823,7 @@ class MilvusService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_Cmd() { - ::grpc::Service::MarkMethodGeneric(20); + ::grpc::Service::MarkMethodGeneric(19); } ~WithGenericMethod_Cmd() override { BaseClassMustBeDerivedFromService(this); @@ -3051,7 +2840,7 @@ class MilvusService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_DeleteByID() { - ::grpc::Service::MarkMethodGeneric(21); + ::grpc::Service::MarkMethodGeneric(20); } ~WithGenericMethod_DeleteByID() override { BaseClassMustBeDerivedFromService(this); @@ -3068,7 +2857,7 @@ class MilvusService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_PreloadCollection() { - ::grpc::Service::MarkMethodGeneric(22); + ::grpc::Service::MarkMethodGeneric(21); } ~WithGenericMethod_PreloadCollection() override { BaseClassMustBeDerivedFromService(this); @@ -3080,29 +2869,12 @@ class MilvusService final { } }; template - class WithGenericMethod_ReloadSegments : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithGenericMethod_ReloadSegments() { - ::grpc::Service::MarkMethodGeneric(23); - } - ~WithGenericMethod_ReloadSegments() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ReloadSegments(::grpc::ServerContext* /*context*/, const ::milvus::grpc::ReLoadSegmentsParam* /*request*/, ::milvus::grpc::Status* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template class WithGenericMethod_Flush : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_Flush() { - ::grpc::Service::MarkMethodGeneric(24); + ::grpc::Service::MarkMethodGeneric(22); } ~WithGenericMethod_Flush() override { BaseClassMustBeDerivedFromService(this); @@ -3119,13 +2891,13 @@ class MilvusService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_Compact() { - ::grpc::Service::MarkMethodGeneric(25); + ::grpc::Service::MarkMethodGeneric(23); } ~WithGenericMethod_Compact() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status Compact(::grpc::ServerContext* /*context*/, const ::milvus::grpc::CollectionName* /*request*/, ::milvus::grpc::Status* /*response*/) override { + ::grpc::Status Compact(::grpc::ServerContext* /*context*/, const ::milvus::grpc::CompactParam* /*request*/, ::milvus::grpc::Status* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -3136,7 +2908,7 @@ class MilvusService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithGenericMethod_SearchPB() { - ::grpc::Service::MarkMethodGeneric(26); + ::grpc::Service::MarkMethodGeneric(24); } ~WithGenericMethod_SearchPB() override { BaseClassMustBeDerivedFromService(this); @@ -3319,7 +3091,7 @@ class MilvusService final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status DescribeIndex(::grpc::ServerContext* /*context*/, const ::milvus::grpc::CollectionName* /*request*/, ::milvus::grpc::IndexParam* /*response*/) override { + ::grpc::Status DescribeIndex(::grpc::ServerContext* /*context*/, const ::milvus::grpc::IndexParam* /*request*/, ::milvus::grpc::IndexParam* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -3508,52 +3280,32 @@ class MilvusService final { } }; template - class WithRawMethod_SearchByID : public BaseClass { + class WithRawMethod_SearchInSegment : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithRawMethod_SearchByID() { + WithRawMethod_SearchInSegment() { ::grpc::Service::MarkMethodRaw(18); } - ~WithRawMethod_SearchByID() override { + ~WithRawMethod_SearchInSegment() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status SearchByID(::grpc::ServerContext* /*context*/, const ::milvus::grpc::SearchByIDParam* /*request*/, ::milvus::grpc::QueryResult* /*response*/) override { + ::grpc::Status SearchInSegment(::grpc::ServerContext* /*context*/, const ::milvus::grpc::SearchInSegmentParam* /*request*/, ::milvus::grpc::QueryResult* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestSearchByID(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestSearchInSegment(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(18, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_SearchInFiles : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_SearchInFiles() { - ::grpc::Service::MarkMethodRaw(19); - } - ~WithRawMethod_SearchInFiles() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SearchInFiles(::grpc::ServerContext* /*context*/, const ::milvus::grpc::SearchInFilesParam* /*request*/, ::milvus::grpc::QueryResult* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestSearchInFiles(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(19, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template class WithRawMethod_Cmd : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_Cmd() { - ::grpc::Service::MarkMethodRaw(20); + ::grpc::Service::MarkMethodRaw(19); } ~WithRawMethod_Cmd() override { BaseClassMustBeDerivedFromService(this); @@ -3564,7 +3316,7 @@ class MilvusService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestCmd(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(20, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(19, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3573,7 +3325,7 @@ class MilvusService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_DeleteByID() { - ::grpc::Service::MarkMethodRaw(21); + ::grpc::Service::MarkMethodRaw(20); } ~WithRawMethod_DeleteByID() override { BaseClassMustBeDerivedFromService(this); @@ -3584,7 +3336,7 @@ class MilvusService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestDeleteByID(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(21, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(20, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3593,7 +3345,7 @@ class MilvusService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_PreloadCollection() { - ::grpc::Service::MarkMethodRaw(22); + ::grpc::Service::MarkMethodRaw(21); } ~WithRawMethod_PreloadCollection() override { BaseClassMustBeDerivedFromService(this); @@ -3604,27 +3356,7 @@ class MilvusService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestPreloadCollection(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(22, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_ReloadSegments : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithRawMethod_ReloadSegments() { - ::grpc::Service::MarkMethodRaw(23); - } - ~WithRawMethod_ReloadSegments() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ReloadSegments(::grpc::ServerContext* /*context*/, const ::milvus::grpc::ReLoadSegmentsParam* /*request*/, ::milvus::grpc::Status* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestReloadSegments(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(23, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(21, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3633,7 +3365,7 @@ class MilvusService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_Flush() { - ::grpc::Service::MarkMethodRaw(24); + ::grpc::Service::MarkMethodRaw(22); } ~WithRawMethod_Flush() override { BaseClassMustBeDerivedFromService(this); @@ -3644,7 +3376,7 @@ class MilvusService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestFlush(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(24, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(22, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3653,18 +3385,18 @@ class MilvusService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_Compact() { - ::grpc::Service::MarkMethodRaw(25); + ::grpc::Service::MarkMethodRaw(23); } ~WithRawMethod_Compact() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status Compact(::grpc::ServerContext* /*context*/, const ::milvus::grpc::CollectionName* /*request*/, ::milvus::grpc::Status* /*response*/) override { + ::grpc::Status Compact(::grpc::ServerContext* /*context*/, const ::milvus::grpc::CompactParam* /*request*/, ::milvus::grpc::Status* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestCompact(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(25, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(23, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3673,7 +3405,7 @@ class MilvusService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithRawMethod_SearchPB() { - ::grpc::Service::MarkMethodRaw(26); + ::grpc::Service::MarkMethodRaw(24); } ~WithRawMethod_SearchPB() override { BaseClassMustBeDerivedFromService(this); @@ -3684,7 +3416,7 @@ class MilvusService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestSearchPB(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(26, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(24, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -3906,7 +3638,7 @@ class MilvusService final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status DescribeIndex(::grpc::ServerContext* /*context*/, const ::milvus::grpc::CollectionName* /*request*/, ::milvus::grpc::IndexParam* /*response*/) override { + ::grpc::Status DescribeIndex(::grpc::ServerContext* /*context*/, const ::milvus::grpc::IndexParam* /*request*/, ::milvus::grpc::IndexParam* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -4138,54 +3870,29 @@ class MilvusService final { virtual void Search(::grpc::ServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template - class ExperimentalWithRawCallbackMethod_SearchByID : public BaseClass { + class ExperimentalWithRawCallbackMethod_SearchInSegment : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - ExperimentalWithRawCallbackMethod_SearchByID() { + ExperimentalWithRawCallbackMethod_SearchInSegment() { ::grpc::Service::experimental().MarkMethodRawCallback(18, new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this](::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { - this->SearchByID(context, request, response, controller); + this->SearchInSegment(context, request, response, controller); })); } - ~ExperimentalWithRawCallbackMethod_SearchByID() override { + ~ExperimentalWithRawCallbackMethod_SearchInSegment() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status SearchByID(::grpc::ServerContext* /*context*/, const ::milvus::grpc::SearchByIDParam* /*request*/, ::milvus::grpc::QueryResult* /*response*/) override { + ::grpc::Status SearchInSegment(::grpc::ServerContext* /*context*/, const ::milvus::grpc::SearchInSegmentParam* /*request*/, ::milvus::grpc::QueryResult* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual void SearchByID(::grpc::ServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_SearchInFiles : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_SearchInFiles() { - ::grpc::Service::experimental().MarkMethodRawCallback(19, - new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->SearchInFiles(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_SearchInFiles() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SearchInFiles(::grpc::ServerContext* /*context*/, const ::milvus::grpc::SearchInFilesParam* /*request*/, ::milvus::grpc::QueryResult* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void SearchInFiles(::grpc::ServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + virtual void SearchInSegment(::grpc::ServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template class ExperimentalWithRawCallbackMethod_Cmd : public BaseClass { @@ -4193,7 +3900,7 @@ class MilvusService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: ExperimentalWithRawCallbackMethod_Cmd() { - ::grpc::Service::experimental().MarkMethodRawCallback(20, + ::grpc::Service::experimental().MarkMethodRawCallback(19, new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this](::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, @@ -4218,7 +3925,7 @@ class MilvusService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: ExperimentalWithRawCallbackMethod_DeleteByID() { - ::grpc::Service::experimental().MarkMethodRawCallback(21, + ::grpc::Service::experimental().MarkMethodRawCallback(20, new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this](::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, @@ -4243,7 +3950,7 @@ class MilvusService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: ExperimentalWithRawCallbackMethod_PreloadCollection() { - ::grpc::Service::experimental().MarkMethodRawCallback(22, + ::grpc::Service::experimental().MarkMethodRawCallback(21, new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this](::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, @@ -4263,37 +3970,12 @@ class MilvusService final { virtual void PreloadCollection(::grpc::ServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template - class ExperimentalWithRawCallbackMethod_ReloadSegments : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - ExperimentalWithRawCallbackMethod_ReloadSegments() { - ::grpc::Service::experimental().MarkMethodRawCallback(23, - new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->ReloadSegments(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_ReloadSegments() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ReloadSegments(::grpc::ServerContext* /*context*/, const ::milvus::grpc::ReLoadSegmentsParam* /*request*/, ::milvus::grpc::Status* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ReloadSegments(::grpc::ServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template class ExperimentalWithRawCallbackMethod_Flush : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: ExperimentalWithRawCallbackMethod_Flush() { - ::grpc::Service::experimental().MarkMethodRawCallback(24, + ::grpc::Service::experimental().MarkMethodRawCallback(22, new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this](::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, @@ -4318,7 +4000,7 @@ class MilvusService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: ExperimentalWithRawCallbackMethod_Compact() { - ::grpc::Service::experimental().MarkMethodRawCallback(25, + ::grpc::Service::experimental().MarkMethodRawCallback(23, new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this](::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, @@ -4331,7 +4013,7 @@ class MilvusService final { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status Compact(::grpc::ServerContext* /*context*/, const ::milvus::grpc::CollectionName* /*request*/, ::milvus::grpc::Status* /*response*/) override { + ::grpc::Status Compact(::grpc::ServerContext* /*context*/, const ::milvus::grpc::CompactParam* /*request*/, ::milvus::grpc::Status* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -4343,7 +4025,7 @@ class MilvusService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: ExperimentalWithRawCallbackMethod_SearchPB() { - ::grpc::Service::experimental().MarkMethodRawCallback(26, + ::grpc::Service::experimental().MarkMethodRawCallback(24, new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this](::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, @@ -4529,18 +4211,18 @@ class MilvusService final { public: WithStreamedUnaryMethod_DescribeIndex() { ::grpc::Service::MarkMethodStreamed(8, - new ::grpc::internal::StreamedUnaryHandler< ::milvus::grpc::CollectionName, ::milvus::grpc::IndexParam>(std::bind(&WithStreamedUnaryMethod_DescribeIndex::StreamedDescribeIndex, this, std::placeholders::_1, std::placeholders::_2))); + new ::grpc::internal::StreamedUnaryHandler< ::milvus::grpc::IndexParam, ::milvus::grpc::IndexParam>(std::bind(&WithStreamedUnaryMethod_DescribeIndex::StreamedDescribeIndex, this, std::placeholders::_1, std::placeholders::_2))); } ~WithStreamedUnaryMethod_DescribeIndex() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status DescribeIndex(::grpc::ServerContext* /*context*/, const ::milvus::grpc::CollectionName* /*request*/, ::milvus::grpc::IndexParam* /*response*/) override { + ::grpc::Status DescribeIndex(::grpc::ServerContext* /*context*/, const ::milvus::grpc::IndexParam* /*request*/, ::milvus::grpc::IndexParam* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedDescribeIndex(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::milvus::grpc::CollectionName,::milvus::grpc::IndexParam>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedDescribeIndex(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::milvus::grpc::IndexParam,::milvus::grpc::IndexParam>* server_unary_streamer) = 0; }; template class WithStreamedUnaryMethod_DropIndex : public BaseClass { @@ -4723,44 +4405,24 @@ class MilvusService final { virtual ::grpc::Status StreamedSearch(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::milvus::grpc::SearchParam,::milvus::grpc::QueryResult>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_SearchByID : public BaseClass { + class WithStreamedUnaryMethod_SearchInSegment : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: - WithStreamedUnaryMethod_SearchByID() { + WithStreamedUnaryMethod_SearchInSegment() { ::grpc::Service::MarkMethodStreamed(18, - new ::grpc::internal::StreamedUnaryHandler< ::milvus::grpc::SearchByIDParam, ::milvus::grpc::QueryResult>(std::bind(&WithStreamedUnaryMethod_SearchByID::StreamedSearchByID, this, std::placeholders::_1, std::placeholders::_2))); + new ::grpc::internal::StreamedUnaryHandler< ::milvus::grpc::SearchInSegmentParam, ::milvus::grpc::QueryResult>(std::bind(&WithStreamedUnaryMethod_SearchInSegment::StreamedSearchInSegment, this, std::placeholders::_1, std::placeholders::_2))); } - ~WithStreamedUnaryMethod_SearchByID() override { + ~WithStreamedUnaryMethod_SearchInSegment() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status SearchByID(::grpc::ServerContext* /*context*/, const ::milvus::grpc::SearchByIDParam* /*request*/, ::milvus::grpc::QueryResult* /*response*/) override { + ::grpc::Status SearchInSegment(::grpc::ServerContext* /*context*/, const ::milvus::grpc::SearchInSegmentParam* /*request*/, ::milvus::grpc::QueryResult* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedSearchByID(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::milvus::grpc::SearchByIDParam,::milvus::grpc::QueryResult>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_SearchInFiles : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_SearchInFiles() { - ::grpc::Service::MarkMethodStreamed(19, - new ::grpc::internal::StreamedUnaryHandler< ::milvus::grpc::SearchInFilesParam, ::milvus::grpc::QueryResult>(std::bind(&WithStreamedUnaryMethod_SearchInFiles::StreamedSearchInFiles, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_SearchInFiles() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status SearchInFiles(::grpc::ServerContext* /*context*/, const ::milvus::grpc::SearchInFilesParam* /*request*/, ::milvus::grpc::QueryResult* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedSearchInFiles(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::milvus::grpc::SearchInFilesParam,::milvus::grpc::QueryResult>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedSearchInSegment(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::milvus::grpc::SearchInSegmentParam,::milvus::grpc::QueryResult>* server_unary_streamer) = 0; }; template class WithStreamedUnaryMethod_Cmd : public BaseClass { @@ -4768,7 +4430,7 @@ class MilvusService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_Cmd() { - ::grpc::Service::MarkMethodStreamed(20, + ::grpc::Service::MarkMethodStreamed(19, new ::grpc::internal::StreamedUnaryHandler< ::milvus::grpc::Command, ::milvus::grpc::StringReply>(std::bind(&WithStreamedUnaryMethod_Cmd::StreamedCmd, this, std::placeholders::_1, std::placeholders::_2))); } ~WithStreamedUnaryMethod_Cmd() override { @@ -4788,7 +4450,7 @@ class MilvusService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_DeleteByID() { - ::grpc::Service::MarkMethodStreamed(21, + ::grpc::Service::MarkMethodStreamed(20, new ::grpc::internal::StreamedUnaryHandler< ::milvus::grpc::DeleteByIDParam, ::milvus::grpc::Status>(std::bind(&WithStreamedUnaryMethod_DeleteByID::StreamedDeleteByID, this, std::placeholders::_1, std::placeholders::_2))); } ~WithStreamedUnaryMethod_DeleteByID() override { @@ -4808,7 +4470,7 @@ class MilvusService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_PreloadCollection() { - ::grpc::Service::MarkMethodStreamed(22, + ::grpc::Service::MarkMethodStreamed(21, new ::grpc::internal::StreamedUnaryHandler< ::milvus::grpc::CollectionName, ::milvus::grpc::Status>(std::bind(&WithStreamedUnaryMethod_PreloadCollection::StreamedPreloadCollection, this, std::placeholders::_1, std::placeholders::_2))); } ~WithStreamedUnaryMethod_PreloadCollection() override { @@ -4823,32 +4485,12 @@ class MilvusService final { virtual ::grpc::Status StreamedPreloadCollection(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::milvus::grpc::CollectionName,::milvus::grpc::Status>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_ReloadSegments : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} - public: - WithStreamedUnaryMethod_ReloadSegments() { - ::grpc::Service::MarkMethodStreamed(23, - new ::grpc::internal::StreamedUnaryHandler< ::milvus::grpc::ReLoadSegmentsParam, ::milvus::grpc::Status>(std::bind(&WithStreamedUnaryMethod_ReloadSegments::StreamedReloadSegments, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_ReloadSegments() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status ReloadSegments(::grpc::ServerContext* /*context*/, const ::milvus::grpc::ReLoadSegmentsParam* /*request*/, ::milvus::grpc::Status* /*response*/) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedReloadSegments(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::milvus::grpc::ReLoadSegmentsParam,::milvus::grpc::Status>* server_unary_streamer) = 0; - }; - template class WithStreamedUnaryMethod_Flush : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_Flush() { - ::grpc::Service::MarkMethodStreamed(24, + ::grpc::Service::MarkMethodStreamed(22, new ::grpc::internal::StreamedUnaryHandler< ::milvus::grpc::FlushParam, ::milvus::grpc::Status>(std::bind(&WithStreamedUnaryMethod_Flush::StreamedFlush, this, std::placeholders::_1, std::placeholders::_2))); } ~WithStreamedUnaryMethod_Flush() override { @@ -4868,19 +4510,19 @@ class MilvusService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_Compact() { - ::grpc::Service::MarkMethodStreamed(25, - new ::grpc::internal::StreamedUnaryHandler< ::milvus::grpc::CollectionName, ::milvus::grpc::Status>(std::bind(&WithStreamedUnaryMethod_Compact::StreamedCompact, this, std::placeholders::_1, std::placeholders::_2))); + ::grpc::Service::MarkMethodStreamed(23, + new ::grpc::internal::StreamedUnaryHandler< ::milvus::grpc::CompactParam, ::milvus::grpc::Status>(std::bind(&WithStreamedUnaryMethod_Compact::StreamedCompact, this, std::placeholders::_1, std::placeholders::_2))); } ~WithStreamedUnaryMethod_Compact() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status Compact(::grpc::ServerContext* /*context*/, const ::milvus::grpc::CollectionName* /*request*/, ::milvus::grpc::Status* /*response*/) override { + ::grpc::Status Compact(::grpc::ServerContext* /*context*/, const ::milvus::grpc::CompactParam* /*request*/, ::milvus::grpc::Status* /*response*/) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedCompact(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::milvus::grpc::CollectionName,::milvus::grpc::Status>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedCompact(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::milvus::grpc::CompactParam,::milvus::grpc::Status>* server_unary_streamer) = 0; }; template class WithStreamedUnaryMethod_SearchPB : public BaseClass { @@ -4888,7 +4530,7 @@ class MilvusService final { void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} public: WithStreamedUnaryMethod_SearchPB() { - ::grpc::Service::MarkMethodStreamed(26, + ::grpc::Service::MarkMethodStreamed(24, new ::grpc::internal::StreamedUnaryHandler< ::milvus::grpc::SearchParamPB, ::milvus::grpc::QueryResult>(std::bind(&WithStreamedUnaryMethod_SearchPB::StreamedSearchPB, this, std::placeholders::_1, std::placeholders::_2))); } ~WithStreamedUnaryMethod_SearchPB() override { @@ -4902,9 +4544,9 @@ class MilvusService final { // replace default version of method with streamed unary virtual ::grpc::Status StreamedSearchPB(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::milvus::grpc::SearchParamPB,::milvus::grpc::QueryResult>* server_unary_streamer) = 0; }; - typedef WithStreamedUnaryMethod_CreateCollection > > > > > > > > > > > > > > > > > > > > > > > > > > StreamedUnaryService; + typedef WithStreamedUnaryMethod_CreateCollection > > > > > > > > > > > > > > > > > > > > > > > > StreamedUnaryService; typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_CreateCollection > > > > > > > > > > > > > > > > > > > > > > > > > > StreamedService; + typedef WithStreamedUnaryMethod_CreateCollection > > > > > > > > > > > > > > > > > > > > > > > > StreamedService; }; } // namespace grpc diff --git a/sdk/grpc-gen/gen-milvus/milvus.pb.cc b/sdk/grpc-gen/gen-milvus/milvus.pb.cc index 866e9fb02f..a8c7560402 100644 --- a/sdk/grpc-gen/gen-milvus/milvus.pb.cc +++ b/sdk/grpc-gen/gen-milvus/milvus.pb.cc @@ -46,6 +46,10 @@ class CollectionNameListDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _CollectionNameList_default_instance_; +class FieldNameDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _FieldName_default_instance_; class MappingDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; @@ -94,18 +98,10 @@ class SearchParamDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _SearchParam_default_instance_; -class SearchInFilesParamDefaultTypeInternal { +class SearchInSegmentParamDefaultTypeInternal { public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _SearchInFilesParam_default_instance_; -class SearchByIDParamDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _SearchByIDParam_default_instance_; -class ReLoadSegmentsParamDefaultTypeInternal { - public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _ReLoadSegmentsParam_default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _SearchInSegmentParam_default_instance_; class EntitiesDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; @@ -138,6 +134,10 @@ class FlushParamDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _FlushParam_default_instance_; +class CompactParamDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _CompactParam_default_instance_; class DeleteByIDParamDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; @@ -331,6 +331,20 @@ static void InitDefaultsscc_info_Command_milvus_2eproto() { ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Command_milvus_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_Command_milvus_2eproto}, {}}; +static void InitDefaultsscc_info_CompactParam_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_CompactParam_default_instance_; + new (ptr) ::milvus::grpc::CompactParam(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::CompactParam::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CompactParam_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_CompactParam_milvus_2eproto}, {}}; + static void InitDefaultsscc_info_CompareExpr_milvus_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -404,6 +418,20 @@ static void InitDefaultsscc_info_EntityIds_milvus_2eproto() { {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_EntityIds_milvus_2eproto}, { &scc_info_Status_status_2eproto.base,}}; +static void InitDefaultsscc_info_FieldName_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_FieldName_default_instance_; + new (ptr) ::milvus::grpc::FieldName(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::FieldName::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_FieldName_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_FieldName_milvus_2eproto}, {}}; + static void InitDefaultsscc_info_FieldParam_milvus_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -619,48 +647,19 @@ static void InitDefaultsscc_info_RangeQuery_milvus_2eproto() { &scc_info_CompareExpr_milvus_2eproto.base, &scc_info_KeyValuePair_milvus_2eproto.base,}}; -static void InitDefaultsscc_info_ReLoadSegmentsParam_milvus_2eproto() { +static void InitDefaultsscc_info_SearchInSegmentParam_milvus_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::milvus::grpc::_ReLoadSegmentsParam_default_instance_; - new (ptr) ::milvus::grpc::ReLoadSegmentsParam(); + void* ptr = &::milvus::grpc::_SearchInSegmentParam_default_instance_; + new (ptr) ::milvus::grpc::SearchInSegmentParam(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::milvus::grpc::ReLoadSegmentsParam::InitAsDefaultInstance(); + ::milvus::grpc::SearchInSegmentParam::InitAsDefaultInstance(); } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ReLoadSegmentsParam_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_ReLoadSegmentsParam_milvus_2eproto}, {}}; - -static void InitDefaultsscc_info_SearchByIDParam_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_SearchByIDParam_default_instance_; - new (ptr) ::milvus::grpc::SearchByIDParam(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::SearchByIDParam::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_SearchByIDParam_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_SearchByIDParam_milvus_2eproto}, { - &scc_info_KeyValuePair_milvus_2eproto.base,}}; - -static void InitDefaultsscc_info_SearchInFilesParam_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_SearchInFilesParam_default_instance_; - new (ptr) ::milvus::grpc::SearchInFilesParam(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::SearchInFilesParam::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_SearchInFilesParam_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_SearchInFilesParam_milvus_2eproto}, { +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_SearchInSegmentParam_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_SearchInSegmentParam_milvus_2eproto}, { &scc_info_SearchParam_milvus_2eproto.base,}}; static void InitDefaultsscc_info_SearchParam_milvus_2eproto() { @@ -840,6 +839,13 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_milvus_2eproto::offsets[] PROT PROTOBUF_FIELD_OFFSET(::milvus::grpc::CollectionNameList, status_), PROTOBUF_FIELD_OFFSET(::milvus::grpc::CollectionNameList, collection_names_), ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldName, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldName, collection_name_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::FieldName, field_name_), + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::milvus::grpc::Mapping, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -935,29 +941,12 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_milvus_2eproto::offsets[] PROT PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchParam, dsl_), PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchParam, extra_params_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchInFilesParam, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchInSegmentParam, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchInFilesParam, file_id_array_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchInFilesParam, search_param_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchByIDParam, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchByIDParam, collection_name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchByIDParam, partition_tag_array_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchByIDParam, id_array_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchByIDParam, topk_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchByIDParam, extra_params_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::ReLoadSegmentsParam, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::ReLoadSegmentsParam, collection_name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::ReLoadSegmentsParam, segment_id_array_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchInSegmentParam, file_id_array_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchInSegmentParam, search_param_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::milvus::grpc::Entities, _internal_metadata_), ~0u, // no _extensions_ @@ -1022,6 +1011,13 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_milvus_2eproto::offsets[] PROT ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::milvus::grpc::FlushParam, collection_name_array_), ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::CompactParam, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::CompactParam, collection_name_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::CompactParam, threshold_), + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::milvus::grpc::DeleteByIDParam, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -1041,7 +1037,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_milvus_2eproto::offsets[] PROT ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::milvus::grpc::GetEntityIDsParam, collection_name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::GetEntityIDsParam, segment_name_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::GetEntityIDsParam, segment_id_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::milvus::grpc::EntityIdentity, _internal_metadata_), ~0u, // no _extensions_ @@ -1148,50 +1144,51 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOB { 0, -1, sizeof(::milvus::grpc::KeyValuePair)}, { 7, -1, sizeof(::milvus::grpc::CollectionName)}, { 13, -1, sizeof(::milvus::grpc::CollectionNameList)}, - { 20, -1, sizeof(::milvus::grpc::Mapping)}, - { 29, -1, sizeof(::milvus::grpc::MappingList)}, - { 36, -1, sizeof(::milvus::grpc::PartitionParam)}, - { 43, -1, sizeof(::milvus::grpc::PartitionList)}, - { 50, -1, sizeof(::milvus::grpc::VectorRowRecord)}, - { 57, -1, sizeof(::milvus::grpc::AttrRecord)}, - { 66, -1, sizeof(::milvus::grpc::VectorRecord)}, - { 72, -1, sizeof(::milvus::grpc::FieldValue)}, - { 81, -1, sizeof(::milvus::grpc::InsertParam)}, - { 91, -1, sizeof(::milvus::grpc::EntityIds)}, - { 98, -1, sizeof(::milvus::grpc::VectorParam)}, - { 105, -1, sizeof(::milvus::grpc::SearchParam)}, - { 115, -1, sizeof(::milvus::grpc::SearchInFilesParam)}, - { 122, -1, sizeof(::milvus::grpc::SearchByIDParam)}, - { 132, -1, sizeof(::milvus::grpc::ReLoadSegmentsParam)}, - { 139, -1, sizeof(::milvus::grpc::Entities)}, - { 148, -1, sizeof(::milvus::grpc::QueryResult)}, - { 159, -1, sizeof(::milvus::grpc::StringReply)}, - { 166, -1, sizeof(::milvus::grpc::BoolReply)}, - { 173, -1, sizeof(::milvus::grpc::CollectionRowCount)}, - { 180, -1, sizeof(::milvus::grpc::Command)}, - { 186, -1, sizeof(::milvus::grpc::IndexParam)}, - { 196, -1, sizeof(::milvus::grpc::FlushParam)}, - { 202, -1, sizeof(::milvus::grpc::DeleteByIDParam)}, - { 209, -1, sizeof(::milvus::grpc::CollectionInfo)}, - { 216, -1, sizeof(::milvus::grpc::GetEntityIDsParam)}, - { 223, -1, sizeof(::milvus::grpc::EntityIdentity)}, - { 231, -1, sizeof(::milvus::grpc::VectorFieldParam)}, - { 237, -1, sizeof(::milvus::grpc::FieldType)}, - { 245, -1, sizeof(::milvus::grpc::FieldParam)}, - { 255, -1, sizeof(::milvus::grpc::VectorFieldRecord)}, - { 261, -1, sizeof(::milvus::grpc::TermQuery)}, - { 272, -1, sizeof(::milvus::grpc::CompareExpr)}, - { 279, -1, sizeof(::milvus::grpc::RangeQuery)}, - { 288, -1, sizeof(::milvus::grpc::VectorQuery)}, - { 298, -1, sizeof(::milvus::grpc::BooleanQuery)}, - { 305, -1, sizeof(::milvus::grpc::GeneralQuery)}, - { 315, -1, sizeof(::milvus::grpc::SearchParamPB)}, + { 20, -1, sizeof(::milvus::grpc::FieldName)}, + { 27, -1, sizeof(::milvus::grpc::Mapping)}, + { 36, -1, sizeof(::milvus::grpc::MappingList)}, + { 43, -1, sizeof(::milvus::grpc::PartitionParam)}, + { 50, -1, sizeof(::milvus::grpc::PartitionList)}, + { 57, -1, sizeof(::milvus::grpc::VectorRowRecord)}, + { 64, -1, sizeof(::milvus::grpc::AttrRecord)}, + { 73, -1, sizeof(::milvus::grpc::VectorRecord)}, + { 79, -1, sizeof(::milvus::grpc::FieldValue)}, + { 88, -1, sizeof(::milvus::grpc::InsertParam)}, + { 98, -1, sizeof(::milvus::grpc::EntityIds)}, + { 105, -1, sizeof(::milvus::grpc::VectorParam)}, + { 112, -1, sizeof(::milvus::grpc::SearchParam)}, + { 122, -1, sizeof(::milvus::grpc::SearchInSegmentParam)}, + { 129, -1, sizeof(::milvus::grpc::Entities)}, + { 138, -1, sizeof(::milvus::grpc::QueryResult)}, + { 149, -1, sizeof(::milvus::grpc::StringReply)}, + { 156, -1, sizeof(::milvus::grpc::BoolReply)}, + { 163, -1, sizeof(::milvus::grpc::CollectionRowCount)}, + { 170, -1, sizeof(::milvus::grpc::Command)}, + { 176, -1, sizeof(::milvus::grpc::IndexParam)}, + { 186, -1, sizeof(::milvus::grpc::FlushParam)}, + { 192, -1, sizeof(::milvus::grpc::CompactParam)}, + { 199, -1, sizeof(::milvus::grpc::DeleteByIDParam)}, + { 206, -1, sizeof(::milvus::grpc::CollectionInfo)}, + { 213, -1, sizeof(::milvus::grpc::GetEntityIDsParam)}, + { 220, -1, sizeof(::milvus::grpc::EntityIdentity)}, + { 228, -1, sizeof(::milvus::grpc::VectorFieldParam)}, + { 234, -1, sizeof(::milvus::grpc::FieldType)}, + { 242, -1, sizeof(::milvus::grpc::FieldParam)}, + { 252, -1, sizeof(::milvus::grpc::VectorFieldRecord)}, + { 258, -1, sizeof(::milvus::grpc::TermQuery)}, + { 269, -1, sizeof(::milvus::grpc::CompareExpr)}, + { 276, -1, sizeof(::milvus::grpc::RangeQuery)}, + { 285, -1, sizeof(::milvus::grpc::VectorQuery)}, + { 295, -1, sizeof(::milvus::grpc::BooleanQuery)}, + { 302, -1, sizeof(::milvus::grpc::GeneralQuery)}, + { 312, -1, sizeof(::milvus::grpc::SearchParamPB)}, }; static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { reinterpret_cast(&::milvus::grpc::_KeyValuePair_default_instance_), reinterpret_cast(&::milvus::grpc::_CollectionName_default_instance_), reinterpret_cast(&::milvus::grpc::_CollectionNameList_default_instance_), + reinterpret_cast(&::milvus::grpc::_FieldName_default_instance_), reinterpret_cast(&::milvus::grpc::_Mapping_default_instance_), reinterpret_cast(&::milvus::grpc::_MappingList_default_instance_), reinterpret_cast(&::milvus::grpc::_PartitionParam_default_instance_), @@ -1204,9 +1201,7 @@ static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = reinterpret_cast(&::milvus::grpc::_EntityIds_default_instance_), reinterpret_cast(&::milvus::grpc::_VectorParam_default_instance_), reinterpret_cast(&::milvus::grpc::_SearchParam_default_instance_), - reinterpret_cast(&::milvus::grpc::_SearchInFilesParam_default_instance_), - reinterpret_cast(&::milvus::grpc::_SearchByIDParam_default_instance_), - reinterpret_cast(&::milvus::grpc::_ReLoadSegmentsParam_default_instance_), + reinterpret_cast(&::milvus::grpc::_SearchInSegmentParam_default_instance_), reinterpret_cast(&::milvus::grpc::_Entities_default_instance_), reinterpret_cast(&::milvus::grpc::_QueryResult_default_instance_), reinterpret_cast(&::milvus::grpc::_StringReply_default_instance_), @@ -1215,6 +1210,7 @@ static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = reinterpret_cast(&::milvus::grpc::_Command_default_instance_), reinterpret_cast(&::milvus::grpc::_IndexParam_default_instance_), reinterpret_cast(&::milvus::grpc::_FlushParam_default_instance_), + reinterpret_cast(&::milvus::grpc::_CompactParam_default_instance_), reinterpret_cast(&::milvus::grpc::_DeleteByIDParam_default_instance_), reinterpret_cast(&::milvus::grpc::_CollectionInfo_default_instance_), reinterpret_cast(&::milvus::grpc::_GetEntityIDsParam_default_instance_), @@ -1238,165 +1234,158 @@ const char descriptor_table_protodef_milvus_2eproto[] PROTOBUF_SECTION_VARIABLE( "\002 \001(\t\")\n\016CollectionName\022\027\n\017collection_na" "me\030\001 \001(\t\"S\n\022CollectionNameList\022#\n\006status" "\030\001 \001(\0132\023.milvus.grpc.Status\022\030\n\020collectio" - "n_names\030\002 \003(\t\"\241\001\n\007Mapping\022#\n\006status\030\001 \001(" - "\0132\023.milvus.grpc.Status\022\027\n\017collection_nam" - "e\030\002 \001(\t\022\'\n\006fields\030\003 \003(\0132\027.milvus.grpc.Fi" - "eldParam\022/\n\014extra_params\030\004 \003(\0132\031.milvus." - "grpc.KeyValuePair\"^\n\013MappingList\022#\n\006stat" - "us\030\001 \001(\0132\023.milvus.grpc.Status\022*\n\014mapping" - "_list\030\002 \003(\0132\024.milvus.grpc.Mapping\"6\n\016Par" - "titionParam\022\027\n\017collection_name\030\001 \001(\t\022\013\n\003" - "tag\030\002 \001(\t\"Q\n\rPartitionList\022#\n\006status\030\001 \001" - "(\0132\023.milvus.grpc.Status\022\033\n\023partition_tag" - "_array\030\002 \003(\t\":\n\017VectorRowRecord\022\022\n\nfloat" - "_data\030\001 \003(\002\022\023\n\013binary_data\030\002 \001(\014\"a\n\nAttr" - "Record\022\023\n\013int32_value\030\001 \003(\005\022\023\n\013int64_val" - "ue\030\002 \003(\003\022\023\n\013float_value\030\003 \003(\002\022\024\n\014double_" - "value\030\004 \003(\001\"=\n\014VectorRecord\022-\n\007records\030\001" - " \003(\0132\034.milvus.grpc.VectorRowRecord\"\245\001\n\nF" - "ieldValue\022\022\n\nfield_name\030\001 \001(\t\022#\n\004type\030\002 " - "\001(\0162\025.milvus.grpc.DataType\022,\n\013attr_recor" - "d\030\003 \001(\0132\027.milvus.grpc.AttrRecord\0220\n\rvect" - "or_record\030\004 \001(\0132\031.milvus.grpc.VectorReco" - "rd\"\260\001\n\013InsertParam\022\027\n\017collection_name\030\001 " - "\001(\t\022\'\n\006fields\030\002 \003(\0132\027.milvus.grpc.FieldV" - "alue\022\027\n\017entity_id_array\030\003 \003(\003\022\025\n\rpartiti" - "on_tag\030\004 \001(\t\022/\n\014extra_params\030\005 \003(\0132\031.mil" - "vus.grpc.KeyValuePair\"I\n\tEntityIds\022#\n\006st" - "atus\030\001 \001(\0132\023.milvus.grpc.Status\022\027\n\017entit" - "y_id_array\030\002 \003(\003\"J\n\013VectorParam\022\014\n\004json\030" - "\001 \001(\t\022-\n\nrow_record\030\002 \001(\0132\031.milvus.grpc." - "VectorRecord\"\261\001\n\013SearchParam\022\027\n\017collecti" - "on_name\030\001 \001(\t\022\033\n\023partition_tag_array\030\002 \003" - "(\t\022.\n\014vector_param\030\003 \003(\0132\030.milvus.grpc.V" - "ectorParam\022\013\n\003dsl\030\004 \001(\t\022/\n\014extra_params\030" - "\005 \003(\0132\031.milvus.grpc.KeyValuePair\"[\n\022Sear" - "chInFilesParam\022\025\n\rfile_id_array\030\001 \003(\t\022.\n" - "\014search_param\030\002 \001(\0132\030.milvus.grpc.Search" - "Param\"\230\001\n\017SearchByIDParam\022\027\n\017collection_" - "name\030\001 \001(\t\022\033\n\023partition_tag_array\030\002 \003(\t\022" - "\020\n\010id_array\030\003 \003(\003\022\014\n\004topk\030\004 \001(\003\022/\n\014extra" - "_params\030\005 \003(\0132\031.milvus.grpc.KeyValuePair" - "\"H\n\023ReLoadSegmentsParam\022\027\n\017collection_na" - "me\030\001 \001(\t\022\030\n\020segment_id_array\030\002 \003(\t\"x\n\010En" - "tities\022#\n\006status\030\001 \001(\0132\023.milvus.grpc.Sta" - "tus\022\013\n\003ids\030\002 \003(\003\022\021\n\tvalid_row\030\003 \003(\010\022\'\n\006f" - "ields\030\004 \003(\0132\027.milvus.grpc.FieldValue\"\300\001\n" - "\013QueryResult\022#\n\006status\030\001 \001(\0132\023.milvus.gr" - "pc.Status\022\'\n\010entities\030\002 \001(\0132\025.milvus.grp" - "c.Entities\022\017\n\007row_num\030\003 \001(\003\022\016\n\006scores\030\004 " - "\003(\002\022\021\n\tdistances\030\005 \003(\002\022/\n\014extra_params\030\006" - " \003(\0132\031.milvus.grpc.KeyValuePair\"H\n\013Strin" - "gReply\022#\n\006status\030\001 \001(\0132\023.milvus.grpc.Sta" - "tus\022\024\n\014string_reply\030\002 \001(\t\"D\n\tBoolReply\022#" - "\n\006status\030\001 \001(\0132\023.milvus.grpc.Status\022\022\n\nb" - "ool_reply\030\002 \001(\010\"W\n\022CollectionRowCount\022#\n" - "\006status\030\001 \001(\0132\023.milvus.grpc.Status\022\034\n\024co" - "llection_row_count\030\002 \001(\003\"\026\n\007Command\022\013\n\003c" - "md\030\001 \001(\t\"\243\001\n\nIndexParam\022#\n\006status\030\001 \001(\0132" - "\023.milvus.grpc.Status\022\027\n\017collection_name\030" - "\002 \001(\t\022\022\n\nfield_name\030\003 \001(\t\022\022\n\nindex_name\030" - "\004 \001(\t\022/\n\014extra_params\030\005 \003(\0132\031.milvus.grp" - "c.KeyValuePair\"+\n\nFlushParam\022\035\n\025collecti" - "on_name_array\030\001 \003(\t\"<\n\017DeleteByIDParam\022\027" - "\n\017collection_name\030\001 \001(\t\022\020\n\010id_array\030\002 \003(" - "\003\"H\n\016CollectionInfo\022#\n\006status\030\001 \001(\0132\023.mi" - "lvus.grpc.Status\022\021\n\tjson_info\030\002 \001(\t\"B\n\021G" - "etEntityIDsParam\022\027\n\017collection_name\030\001 \001(" - "\t\022\024\n\014segment_name\030\002 \001(\t\"P\n\016EntityIdentit" - "y\022\027\n\017collection_name\030\001 \001(\t\022\020\n\010id_array\030\002" - " \003(\003\022\023\n\013field_names\030\003 \003(\t\"%\n\020VectorField" - "Param\022\021\n\tdimension\030\001 \001(\003\"w\n\tFieldType\022*\n" - "\tdata_type\030\001 \001(\0162\025.milvus.grpc.DataTypeH" - "\000\0225\n\014vector_param\030\002 \001(\0132\035.milvus.grpc.Ve" - "ctorFieldParamH\000B\007\n\005value\"\255\001\n\nFieldParam" - "\022\n\n\002id\030\001 \001(\004\022\014\n\004name\030\002 \001(\t\022#\n\004type\030\003 \001(\016" - "2\025.milvus.grpc.DataType\022/\n\014index_params\030" - "\004 \003(\0132\031.milvus.grpc.KeyValuePair\022/\n\014extr" - "a_params\030\005 \003(\0132\031.milvus.grpc.KeyValuePai" - "r\"@\n\021VectorFieldRecord\022+\n\005value\030\001 \003(\0132\034." - "milvus.grpc.VectorRowRecord\"\233\001\n\tTermQuer" - "y\022\022\n\nfield_name\030\001 \001(\t\022\021\n\tint_value\030\002 \003(\003" - "\022\024\n\014double_value\030\003 \003(\001\022\021\n\tvalue_num\030\004 \001(" - "\003\022\r\n\005boost\030\005 \001(\002\022/\n\014extra_params\030\006 \003(\0132\031" - ".milvus.grpc.KeyValuePair\"N\n\013CompareExpr" - "\022.\n\010operator\030\001 \001(\0162\034.milvus.grpc.Compare" - "Operator\022\017\n\007operand\030\002 \001(\t\"\213\001\n\nRangeQuery" - "\022\022\n\nfield_name\030\001 \001(\t\022)\n\007operand\030\002 \003(\0132\030." - "milvus.grpc.CompareExpr\022\r\n\005boost\030\003 \001(\002\022/" - "\n\014extra_params\030\004 \003(\0132\031.milvus.grpc.KeyVa" - "luePair\"\244\001\n\013VectorQuery\022\022\n\nfield_name\030\001 " - "\001(\t\022\023\n\013query_boost\030\002 \001(\002\022-\n\007records\030\003 \003(" - "\0132\034.milvus.grpc.VectorRowRecord\022\014\n\004topk\030" - "\004 \001(\003\022/\n\014extra_params\030\005 \003(\0132\031.milvus.grp" - "c.KeyValuePair\"c\n\014BooleanQuery\022!\n\005occur\030" - "\001 \001(\0162\022.milvus.grpc.Occur\0220\n\rgeneral_que" - "ry\030\002 \003(\0132\031.milvus.grpc.GeneralQuery\"\333\001\n\014" - "GeneralQuery\0222\n\rboolean_query\030\001 \001(\0132\031.mi" - "lvus.grpc.BooleanQueryH\000\022,\n\nterm_query\030\002" - " \001(\0132\026.milvus.grpc.TermQueryH\000\022.\n\013range_" - "query\030\003 \001(\0132\027.milvus.grpc.RangeQueryH\000\0220" - "\n\014vector_query\030\004 \001(\0132\030.milvus.grpc.Vecto" - "rQueryH\000B\007\n\005query\"\250\001\n\rSearchParamPB\022\027\n\017c" - "ollection_name\030\001 \001(\t\022\033\n\023partition_tag_ar" - "ray\030\002 \003(\t\0220\n\rgeneral_query\030\003 \001(\0132\031.milvu" - "s.grpc.GeneralQuery\022/\n\014extra_params\030\004 \003(" - "\0132\031.milvus.grpc.KeyValuePair*\236\001\n\010DataTyp" - "e\022\010\n\004NONE\020\000\022\010\n\004BOOL\020\001\022\010\n\004INT8\020\002\022\t\n\005INT16" - "\020\003\022\t\n\005INT32\020\004\022\t\n\005INT64\020\005\022\t\n\005FLOAT\020\n\022\n\n\006D" - "OUBLE\020\013\022\n\n\006STRING\020\024\022\021\n\rVECTOR_BINARY\020d\022\020" - "\n\014VECTOR_FLOAT\020e\022\013\n\006VECTOR\020\310\001*C\n\017Compare" - "Operator\022\006\n\002LT\020\000\022\007\n\003LTE\020\001\022\006\n\002EQ\020\002\022\006\n\002GT\020" - "\003\022\007\n\003GTE\020\004\022\006\n\002NE\020\005*8\n\005Occur\022\013\n\007INVALID\020\000" - "\022\010\n\004MUST\020\001\022\n\n\006SHOULD\020\002\022\014\n\010MUST_NOT\020\0032\360\016\n" - "\rMilvusService\022\?\n\020CreateCollection\022\024.mil" - "vus.grpc.Mapping\032\023.milvus.grpc.Status\"\000\022" - "F\n\rHasCollection\022\033.milvus.grpc.Collectio" - "nName\032\026.milvus.grpc.BoolReply\"\000\022I\n\022Descr" - "ibeCollection\022\033.milvus.grpc.CollectionNa" - "me\032\024.milvus.grpc.Mapping\"\000\022Q\n\017CountColle" - "ction\022\033.milvus.grpc.CollectionName\032\037.mil" - "vus.grpc.CollectionRowCount\"\000\022J\n\017ShowCol" - "lections\022\024.milvus.grpc.Command\032\037.milvus." - "grpc.CollectionNameList\"\000\022P\n\022ShowCollect" - "ionInfo\022\033.milvus.grpc.CollectionName\032\033.m" - "ilvus.grpc.CollectionInfo\"\000\022D\n\016DropColle" - "ction\022\033.milvus.grpc.CollectionName\032\023.mil" - "vus.grpc.Status\"\000\022=\n\013CreateIndex\022\027.milvu" - "s.grpc.IndexParam\032\023.milvus.grpc.Status\"\000" - "\022G\n\rDescribeIndex\022\033.milvus.grpc.Collecti" - "onName\032\027.milvus.grpc.IndexParam\"\000\022;\n\tDro" - "pIndex\022\027.milvus.grpc.IndexParam\032\023.milvus" - ".grpc.Status\"\000\022E\n\017CreatePartition\022\033.milv" - "us.grpc.PartitionParam\032\023.milvus.grpc.Sta" - "tus\"\000\022E\n\014HasPartition\022\033.milvus.grpc.Part" - "itionParam\032\026.milvus.grpc.BoolReply\"\000\022K\n\016" - "ShowPartitions\022\033.milvus.grpc.CollectionN" - "ame\032\032.milvus.grpc.PartitionList\"\000\022C\n\rDro" - "pPartition\022\033.milvus.grpc.PartitionParam\032" - "\023.milvus.grpc.Status\"\000\022<\n\006Insert\022\030.milvu" - "s.grpc.InsertParam\032\026.milvus.grpc.EntityI" - "ds\"\000\022E\n\rGetEntityByID\022\033.milvus.grpc.Enti" - "tyIdentity\032\025.milvus.grpc.Entities\"\000\022H\n\014G" - "etEntityIDs\022\036.milvus.grpc.GetEntityIDsPa" - "ram\032\026.milvus.grpc.EntityIds\"\000\022>\n\006Search\022" - "\030.milvus.grpc.SearchParam\032\030.milvus.grpc." - "QueryResult\"\000\022F\n\nSearchByID\022\034.milvus.grp" - "c.SearchByIDParam\032\030.milvus.grpc.QueryRes" - "ult\"\000\022L\n\rSearchInFiles\022\037.milvus.grpc.Sea" - "rchInFilesParam\032\030.milvus.grpc.QueryResul" - "t\"\000\0227\n\003Cmd\022\024.milvus.grpc.Command\032\030.milvu" - "s.grpc.StringReply\"\000\022A\n\nDeleteByID\022\034.mil" - "vus.grpc.DeleteByIDParam\032\023.milvus.grpc.S" - "tatus\"\000\022G\n\021PreloadCollection\022\033.milvus.gr" - "pc.CollectionName\032\023.milvus.grpc.Status\"\000" - "\022I\n\016ReloadSegments\022 .milvus.grpc.ReLoadS" - "egmentsParam\032\023.milvus.grpc.Status\"\000\0227\n\005F" - "lush\022\027.milvus.grpc.FlushParam\032\023.milvus.g" - "rpc.Status\"\000\022=\n\007Compact\022\033.milvus.grpc.Co" - "llectionName\032\023.milvus.grpc.Status\"\000\022B\n\010S" - "earchPB\022\032.milvus.grpc.SearchParamPB\032\030.mi" - "lvus.grpc.QueryResult\"\000b\006proto3" + "n_names\030\002 \003(\t\"8\n\tFieldName\022\027\n\017collection" + "_name\030\001 \001(\t\022\022\n\nfield_name\030\002 \001(\t\"\241\001\n\007Mapp" + "ing\022#\n\006status\030\001 \001(\0132\023.milvus.grpc.Status" + "\022\027\n\017collection_name\030\002 \001(\t\022\'\n\006fields\030\003 \003(" + "\0132\027.milvus.grpc.FieldParam\022/\n\014extra_para" + "ms\030\004 \003(\0132\031.milvus.grpc.KeyValuePair\"^\n\013M" + "appingList\022#\n\006status\030\001 \001(\0132\023.milvus.grpc" + ".Status\022*\n\014mapping_list\030\002 \003(\0132\024.milvus.g" + "rpc.Mapping\"6\n\016PartitionParam\022\027\n\017collect" + "ion_name\030\001 \001(\t\022\013\n\003tag\030\002 \001(\t\"Q\n\rPartition" + "List\022#\n\006status\030\001 \001(\0132\023.milvus.grpc.Statu" + "s\022\033\n\023partition_tag_array\030\002 \003(\t\":\n\017Vector" + "RowRecord\022\022\n\nfloat_data\030\001 \003(\002\022\023\n\013binary_" + "data\030\002 \001(\014\"a\n\nAttrRecord\022\023\n\013int32_value\030" + "\001 \003(\005\022\023\n\013int64_value\030\002 \003(\003\022\023\n\013float_valu" + "e\030\003 \003(\002\022\024\n\014double_value\030\004 \003(\001\"=\n\014VectorR" + "ecord\022-\n\007records\030\001 \003(\0132\034.milvus.grpc.Vec" + "torRowRecord\"\245\001\n\nFieldValue\022\022\n\nfield_nam" + "e\030\001 \001(\t\022#\n\004type\030\002 \001(\0162\025.milvus.grpc.Data" + "Type\022,\n\013attr_record\030\003 \001(\0132\027.milvus.grpc." + "AttrRecord\0220\n\rvector_record\030\004 \001(\0132\031.milv" + "us.grpc.VectorRecord\"\260\001\n\013InsertParam\022\027\n\017" + "collection_name\030\001 \001(\t\022\'\n\006fields\030\002 \003(\0132\027." + "milvus.grpc.FieldValue\022\027\n\017entity_id_arra" + "y\030\003 \003(\003\022\025\n\rpartition_tag\030\004 \001(\t\022/\n\014extra_" + "params\030\005 \003(\0132\031.milvus.grpc.KeyValuePair\"" + "I\n\tEntityIds\022#\n\006status\030\001 \001(\0132\023.milvus.gr" + "pc.Status\022\027\n\017entity_id_array\030\002 \003(\003\"J\n\013Ve" + "ctorParam\022\014\n\004json\030\001 \001(\t\022-\n\nrow_record\030\002 " + "\001(\0132\031.milvus.grpc.VectorRecord\"\261\001\n\013Searc" + "hParam\022\027\n\017collection_name\030\001 \001(\t\022\033\n\023parti" + "tion_tag_array\030\002 \003(\t\022.\n\014vector_param\030\003 \003" + "(\0132\030.milvus.grpc.VectorParam\022\013\n\003dsl\030\004 \001(" + "\t\022/\n\014extra_params\030\005 \003(\0132\031.milvus.grpc.Ke" + "yValuePair\"]\n\024SearchInSegmentParam\022\025\n\rfi" + "le_id_array\030\001 \003(\t\022.\n\014search_param\030\002 \001(\0132" + "\030.milvus.grpc.SearchParam\"x\n\010Entities\022#\n" + "\006status\030\001 \001(\0132\023.milvus.grpc.Status\022\013\n\003id" + "s\030\002 \003(\003\022\021\n\tvalid_row\030\003 \003(\010\022\'\n\006fields\030\004 \003" + "(\0132\027.milvus.grpc.FieldValue\"\300\001\n\013QueryRes" + "ult\022#\n\006status\030\001 \001(\0132\023.milvus.grpc.Status" + "\022\'\n\010entities\030\002 \001(\0132\025.milvus.grpc.Entitie" + "s\022\017\n\007row_num\030\003 \001(\003\022\016\n\006scores\030\004 \003(\002\022\021\n\tdi" + "stances\030\005 \003(\002\022/\n\014extra_params\030\006 \003(\0132\031.mi" + "lvus.grpc.KeyValuePair\"H\n\013StringReply\022#\n" + "\006status\030\001 \001(\0132\023.milvus.grpc.Status\022\024\n\014st" + "ring_reply\030\002 \001(\t\"D\n\tBoolReply\022#\n\006status\030" + "\001 \001(\0132\023.milvus.grpc.Status\022\022\n\nbool_reply" + "\030\002 \001(\010\"W\n\022CollectionRowCount\022#\n\006status\030\001" + " \001(\0132\023.milvus.grpc.Status\022\034\n\024collection_" + "row_count\030\002 \001(\003\"\026\n\007Command\022\013\n\003cmd\030\001 \001(\t\"" + "\243\001\n\nIndexParam\022#\n\006status\030\001 \001(\0132\023.milvus." + "grpc.Status\022\027\n\017collection_name\030\002 \001(\t\022\022\n\n" + "field_name\030\003 \001(\t\022\022\n\nindex_name\030\004 \001(\t\022/\n\014" + "extra_params\030\005 \003(\0132\031.milvus.grpc.KeyValu" + "ePair\"+\n\nFlushParam\022\035\n\025collection_name_a" + "rray\030\001 \003(\t\":\n\014CompactParam\022\027\n\017collection" + "_name\030\001 \001(\t\022\021\n\tthreshold\030\002 \001(\001\"<\n\017Delete" + "ByIDParam\022\027\n\017collection_name\030\001 \001(\t\022\020\n\010id" + "_array\030\002 \003(\003\"H\n\016CollectionInfo\022#\n\006status" + "\030\001 \001(\0132\023.milvus.grpc.Status\022\021\n\tjson_info" + "\030\002 \001(\t\"@\n\021GetEntityIDsParam\022\027\n\017collectio" + "n_name\030\001 \001(\t\022\022\n\nsegment_id\030\002 \001(\003\"P\n\016Enti" + "tyIdentity\022\027\n\017collection_name\030\001 \001(\t\022\020\n\010i" + "d_array\030\002 \003(\003\022\023\n\013field_names\030\003 \003(\t\"%\n\020Ve" + "ctorFieldParam\022\021\n\tdimension\030\001 \001(\003\"w\n\tFie" + "ldType\022*\n\tdata_type\030\001 \001(\0162\025.milvus.grpc." + "DataTypeH\000\0225\n\014vector_param\030\002 \001(\0132\035.milvu" + "s.grpc.VectorFieldParamH\000B\007\n\005value\"\255\001\n\nF" + "ieldParam\022\n\n\002id\030\001 \001(\004\022\014\n\004name\030\002 \001(\t\022#\n\004t" + "ype\030\003 \001(\0162\025.milvus.grpc.DataType\022/\n\014inde" + "x_params\030\004 \003(\0132\031.milvus.grpc.KeyValuePai" + "r\022/\n\014extra_params\030\005 \003(\0132\031.milvus.grpc.Ke" + "yValuePair\"@\n\021VectorFieldRecord\022+\n\005value" + "\030\001 \003(\0132\034.milvus.grpc.VectorRowRecord\"\233\001\n" + "\tTermQuery\022\022\n\nfield_name\030\001 \001(\t\022\021\n\tint_va" + "lue\030\002 \003(\003\022\024\n\014double_value\030\003 \003(\001\022\021\n\tvalue" + "_num\030\004 \001(\003\022\r\n\005boost\030\005 \001(\002\022/\n\014extra_param" + "s\030\006 \003(\0132\031.milvus.grpc.KeyValuePair\"N\n\013Co" + "mpareExpr\022.\n\010operator\030\001 \001(\0162\034.milvus.grp" + "c.CompareOperator\022\017\n\007operand\030\002 \001(\t\"\213\001\n\nR" + "angeQuery\022\022\n\nfield_name\030\001 \001(\t\022)\n\007operand" + "\030\002 \003(\0132\030.milvus.grpc.CompareExpr\022\r\n\005boos" + "t\030\003 \001(\002\022/\n\014extra_params\030\004 \003(\0132\031.milvus.g" + "rpc.KeyValuePair\"\244\001\n\013VectorQuery\022\022\n\nfiel" + "d_name\030\001 \001(\t\022\023\n\013query_boost\030\002 \001(\002\022-\n\007rec" + "ords\030\003 \003(\0132\034.milvus.grpc.VectorRowRecord" + "\022\014\n\004topk\030\004 \001(\003\022/\n\014extra_params\030\005 \003(\0132\031.m" + "ilvus.grpc.KeyValuePair\"c\n\014BooleanQuery\022" + "!\n\005occur\030\001 \001(\0162\022.milvus.grpc.Occur\0220\n\rge" + "neral_query\030\002 \003(\0132\031.milvus.grpc.GeneralQ" + "uery\"\333\001\n\014GeneralQuery\0222\n\rboolean_query\030\001" + " \001(\0132\031.milvus.grpc.BooleanQueryH\000\022,\n\nter" + "m_query\030\002 \001(\0132\026.milvus.grpc.TermQueryH\000\022" + ".\n\013range_query\030\003 \001(\0132\027.milvus.grpc.Range" + "QueryH\000\0220\n\014vector_query\030\004 \001(\0132\030.milvus.g" + "rpc.VectorQueryH\000B\007\n\005query\"\250\001\n\rSearchPar" + "amPB\022\027\n\017collection_name\030\001 \001(\t\022\033\n\023partiti" + "on_tag_array\030\002 \003(\t\0220\n\rgeneral_query\030\003 \001(" + "\0132\031.milvus.grpc.GeneralQuery\022/\n\014extra_pa" + "rams\030\004 \003(\0132\031.milvus.grpc.KeyValuePair*\221\001" + "\n\010DataType\022\010\n\004NONE\020\000\022\010\n\004BOOL\020\001\022\010\n\004INT8\020\002" + "\022\t\n\005INT16\020\003\022\t\n\005INT32\020\004\022\t\n\005INT64\020\005\022\t\n\005FLO" + "AT\020\n\022\n\n\006DOUBLE\020\013\022\n\n\006STRING\020\024\022\021\n\rVECTOR_B" + "INARY\020d\022\020\n\014VECTOR_FLOAT\020e*C\n\017CompareOper" + "ator\022\006\n\002LT\020\000\022\007\n\003LTE\020\001\022\006\n\002EQ\020\002\022\006\n\002GT\020\003\022\007\n" + "\003GTE\020\004\022\006\n\002NE\020\005*8\n\005Occur\022\013\n\007INVALID\020\000\022\010\n\004" + "MUST\020\001\022\n\n\006SHOULD\020\002\022\014\n\010MUST_NOT\020\0032\333\r\n\rMil" + "vusService\022\?\n\020CreateCollection\022\024.milvus." + "grpc.Mapping\032\023.milvus.grpc.Status\"\000\022F\n\rH" + "asCollection\022\033.milvus.grpc.CollectionNam" + "e\032\026.milvus.grpc.BoolReply\"\000\022I\n\022DescribeC" + "ollection\022\033.milvus.grpc.CollectionName\032\024" + ".milvus.grpc.Mapping\"\000\022Q\n\017CountCollectio" + "n\022\033.milvus.grpc.CollectionName\032\037.milvus." + "grpc.CollectionRowCount\"\000\022J\n\017ShowCollect" + "ions\022\024.milvus.grpc.Command\032\037.milvus.grpc" + ".CollectionNameList\"\000\022P\n\022ShowCollectionI" + "nfo\022\033.milvus.grpc.CollectionName\032\033.milvu" + "s.grpc.CollectionInfo\"\000\022D\n\016DropCollectio" + "n\022\033.milvus.grpc.CollectionName\032\023.milvus." + "grpc.Status\"\000\022=\n\013CreateIndex\022\027.milvus.gr" + "pc.IndexParam\032\023.milvus.grpc.Status\"\000\022C\n\r" + "DescribeIndex\022\027.milvus.grpc.IndexParam\032\027" + ".milvus.grpc.IndexParam\"\000\022;\n\tDropIndex\022\027" + ".milvus.grpc.IndexParam\032\023.milvus.grpc.St" + "atus\"\000\022E\n\017CreatePartition\022\033.milvus.grpc." + "PartitionParam\032\023.milvus.grpc.Status\"\000\022E\n" + "\014HasPartition\022\033.milvus.grpc.PartitionPar" + "am\032\026.milvus.grpc.BoolReply\"\000\022K\n\016ShowPart" + "itions\022\033.milvus.grpc.CollectionName\032\032.mi" + "lvus.grpc.PartitionList\"\000\022C\n\rDropPartiti" + "on\022\033.milvus.grpc.PartitionParam\032\023.milvus" + ".grpc.Status\"\000\022<\n\006Insert\022\030.milvus.grpc.I" + "nsertParam\032\026.milvus.grpc.EntityIds\"\000\022E\n\r" + "GetEntityByID\022\033.milvus.grpc.EntityIdenti" + "ty\032\025.milvus.grpc.Entities\"\000\022H\n\014GetEntity" + "IDs\022\036.milvus.grpc.GetEntityIDsParam\032\026.mi" + "lvus.grpc.EntityIds\"\000\022>\n\006Search\022\030.milvus" + ".grpc.SearchParam\032\030.milvus.grpc.QueryRes" + "ult\"\000\022P\n\017SearchInSegment\022!.milvus.grpc.S" + "earchInSegmentParam\032\030.milvus.grpc.QueryR" + "esult\"\000\0227\n\003Cmd\022\024.milvus.grpc.Command\032\030.m" + "ilvus.grpc.StringReply\"\000\022A\n\nDeleteByID\022\034" + ".milvus.grpc.DeleteByIDParam\032\023.milvus.gr" + "pc.Status\"\000\022G\n\021PreloadCollection\022\033.milvu" + "s.grpc.CollectionName\032\023.milvus.grpc.Stat" + "us\"\000\0227\n\005Flush\022\027.milvus.grpc.FlushParam\032\023" + ".milvus.grpc.Status\"\000\022;\n\007Compact\022\031.milvu" + "s.grpc.CompactParam\032\023.milvus.grpc.Status" + "\"\000\022B\n\010SearchPB\022\032.milvus.grpc.SearchParam" + "PB\032\030.milvus.grpc.QueryResult\"\000b\006proto3" ; static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_milvus_2eproto_deps[1] = { &::descriptor_table_status_2eproto, @@ -1410,11 +1399,13 @@ static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_mil &scc_info_CollectionNameList_milvus_2eproto.base, &scc_info_CollectionRowCount_milvus_2eproto.base, &scc_info_Command_milvus_2eproto.base, + &scc_info_CompactParam_milvus_2eproto.base, &scc_info_CompareExpr_milvus_2eproto.base, &scc_info_DeleteByIDParam_milvus_2eproto.base, &scc_info_Entities_milvus_2eproto.base, &scc_info_EntityIdentity_milvus_2eproto.base, &scc_info_EntityIds_milvus_2eproto.base, + &scc_info_FieldName_milvus_2eproto.base, &scc_info_FieldParam_milvus_2eproto.base, &scc_info_FieldType_milvus_2eproto.base, &scc_info_FieldValue_milvus_2eproto.base, @@ -1429,9 +1420,7 @@ static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_mil &scc_info_PartitionParam_milvus_2eproto.base, &scc_info_QueryResult_milvus_2eproto.base, &scc_info_RangeQuery_milvus_2eproto.base, - &scc_info_ReLoadSegmentsParam_milvus_2eproto.base, - &scc_info_SearchByIDParam_milvus_2eproto.base, - &scc_info_SearchInFilesParam_milvus_2eproto.base, + &scc_info_SearchInSegmentParam_milvus_2eproto.base, &scc_info_SearchParam_milvus_2eproto.base, &scc_info_SearchParamPB_milvus_2eproto.base, &scc_info_StringReply_milvus_2eproto.base, @@ -1446,7 +1435,7 @@ static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_mil static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_milvus_2eproto_once; static bool descriptor_table_milvus_2eproto_initialized = false; const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_milvus_2eproto = { - &descriptor_table_milvus_2eproto_initialized, descriptor_table_protodef_milvus_2eproto, "milvus.proto", 6551, + &descriptor_table_milvus_2eproto_initialized, descriptor_table_protodef_milvus_2eproto, "milvus.proto", 6278, &descriptor_table_milvus_2eproto_once, descriptor_table_milvus_2eproto_sccs, descriptor_table_milvus_2eproto_deps, 40, 1, schemas, file_default_instances, TableStruct_milvus_2eproto::offsets, file_level_metadata_milvus_2eproto, 41, file_level_enum_descriptors_milvus_2eproto, file_level_service_descriptors_milvus_2eproto, @@ -1473,7 +1462,6 @@ bool DataType_IsValid(int value) { case 20: case 100: case 101: - case 200: return true; default: return false; @@ -2448,6 +2436,338 @@ void CollectionNameList::InternalSwap(CollectionNameList* other) { } +// =================================================================== + +void FieldName::InitAsDefaultInstance() { +} +class FieldName::_Internal { + public: +}; + +FieldName::FieldName() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.grpc.FieldName) +} +FieldName::FieldName(const FieldName& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.collection_name().empty()) { + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.field_name().empty()) { + field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); + } + // @@protoc_insertion_point(copy_constructor:milvus.grpc.FieldName) +} + +void FieldName::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_FieldName_milvus_2eproto.base); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + field_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +FieldName::~FieldName() { + // @@protoc_insertion_point(destructor:milvus.grpc.FieldName) + SharedDtor(); +} + +void FieldName::SharedDtor() { + collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + field_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void FieldName::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const FieldName& FieldName::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FieldName_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void FieldName::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.grpc.FieldName) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* FieldName::_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 collection_name = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.grpc.FieldName.collection_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string field_name = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_field_name(), ptr, ctx, "milvus.grpc.FieldName.field_name"); + 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 FieldName::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.grpc.FieldName) + 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 collection_name = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_collection_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.grpc.FieldName.collection_name")); + } else { + goto handle_unusual; + } + break; + } + + // string field_name = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_field_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->field_name().data(), static_cast(this->field_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.grpc.FieldName.field_name")); + } 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.grpc.FieldName) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.grpc.FieldName) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void FieldName::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.grpc.FieldName) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string collection_name = 1; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.grpc.FieldName.collection_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->collection_name(), output); + } + + // string field_name = 2; + if (this->field_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->field_name().data(), static_cast(this->field_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.grpc.FieldName.field_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->field_name(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.grpc.FieldName) +} + +::PROTOBUF_NAMESPACE_ID::uint8* FieldName::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.FieldName) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string collection_name = 1; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.grpc.FieldName.collection_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 1, this->collection_name(), target); + } + + // string field_name = 2; + if (this->field_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->field_name().data(), static_cast(this->field_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.grpc.FieldName.field_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 2, this->field_name(), 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.grpc.FieldName) + return target; +} + +size_t FieldName::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.FieldName) + 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; + + // string collection_name = 1; + if (this->collection_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->collection_name()); + } + + // string field_name = 2; + if (this->field_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->field_name()); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void FieldName::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.FieldName) + GOOGLE_DCHECK_NE(&from, this); + const FieldName* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.FieldName) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.FieldName) + MergeFrom(*source); + } +} + +void FieldName::MergeFrom(const FieldName& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.FieldName) + 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.collection_name().size() > 0) { + + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + if (from.field_name().size() > 0) { + + field_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.field_name_); + } +} + +void FieldName::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.FieldName) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void FieldName::CopyFrom(const FieldName& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.FieldName) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FieldName::IsInitialized() const { + return true; +} + +void FieldName::InternalSwap(FieldName* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + field_name_.Swap(&other->field_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); +} + +::PROTOBUF_NAMESPACE_ID::Metadata FieldName::GetMetadata() const { + return GetMetadataStatic(); +} + + // =================================================================== void Mapping::InitAsDefaultInstance() { @@ -7067,25 +7387,25 @@ void SearchParam::InternalSwap(SearchParam* other) { // =================================================================== -void SearchInFilesParam::InitAsDefaultInstance() { - ::milvus::grpc::_SearchInFilesParam_default_instance_._instance.get_mutable()->search_param_ = const_cast< ::milvus::grpc::SearchParam*>( +void SearchInSegmentParam::InitAsDefaultInstance() { + ::milvus::grpc::_SearchInSegmentParam_default_instance_._instance.get_mutable()->search_param_ = const_cast< ::milvus::grpc::SearchParam*>( ::milvus::grpc::SearchParam::internal_default_instance()); } -class SearchInFilesParam::_Internal { +class SearchInSegmentParam::_Internal { public: - static const ::milvus::grpc::SearchParam& search_param(const SearchInFilesParam* msg); + static const ::milvus::grpc::SearchParam& search_param(const SearchInSegmentParam* msg); }; const ::milvus::grpc::SearchParam& -SearchInFilesParam::_Internal::search_param(const SearchInFilesParam* msg) { +SearchInSegmentParam::_Internal::search_param(const SearchInSegmentParam* msg) { return *msg->search_param_; } -SearchInFilesParam::SearchInFilesParam() +SearchInSegmentParam::SearchInSegmentParam() : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.SearchInFilesParam) + // @@protoc_insertion_point(constructor:milvus.grpc.SearchInSegmentParam) } -SearchInFilesParam::SearchInFilesParam(const SearchInFilesParam& from) +SearchInSegmentParam::SearchInSegmentParam(const SearchInSegmentParam& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr), file_id_array_(from.file_id_array_) { @@ -7095,34 +7415,34 @@ SearchInFilesParam::SearchInFilesParam(const SearchInFilesParam& from) } else { search_param_ = nullptr; } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.SearchInFilesParam) + // @@protoc_insertion_point(copy_constructor:milvus.grpc.SearchInSegmentParam) } -void SearchInFilesParam::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SearchInFilesParam_milvus_2eproto.base); +void SearchInSegmentParam::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SearchInSegmentParam_milvus_2eproto.base); search_param_ = nullptr; } -SearchInFilesParam::~SearchInFilesParam() { - // @@protoc_insertion_point(destructor:milvus.grpc.SearchInFilesParam) +SearchInSegmentParam::~SearchInSegmentParam() { + // @@protoc_insertion_point(destructor:milvus.grpc.SearchInSegmentParam) SharedDtor(); } -void SearchInFilesParam::SharedDtor() { +void SearchInSegmentParam::SharedDtor() { if (this != internal_default_instance()) delete search_param_; } -void SearchInFilesParam::SetCachedSize(int size) const { +void SearchInSegmentParam::SetCachedSize(int size) const { _cached_size_.Set(size); } -const SearchInFilesParam& SearchInFilesParam::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SearchInFilesParam_milvus_2eproto.base); +const SearchInSegmentParam& SearchInSegmentParam::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SearchInSegmentParam_milvus_2eproto.base); return *internal_default_instance(); } -void SearchInFilesParam::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.SearchInFilesParam) +void SearchInSegmentParam::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.grpc.SearchInSegmentParam) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -7136,7 +7456,7 @@ void SearchInFilesParam::Clear() { } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* SearchInFilesParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* SearchInSegmentParam::_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; @@ -7149,7 +7469,7 @@ const char* SearchInFilesParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMES ptr -= 1; do { ptr += 1; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_file_id_array(), ptr, ctx, "milvus.grpc.SearchInFilesParam.file_id_array"); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_file_id_array(), ptr, ctx, "milvus.grpc.SearchInSegmentParam.file_id_array"); CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10); @@ -7182,11 +7502,11 @@ failure: #undef CHK_ } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool SearchInFilesParam::MergePartialFromCodedStream( +bool SearchInSegmentParam::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.grpc.SearchInFilesParam) + // @@protoc_insertion_point(parse_start:milvus.grpc.SearchInSegmentParam) for (;;) { ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; @@ -7201,7 +7521,7 @@ bool SearchInFilesParam::MergePartialFromCodedStream( this->file_id_array(this->file_id_array_size() - 1).data(), static_cast(this->file_id_array(this->file_id_array_size() - 1).length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.SearchInFilesParam.file_id_array")); + "milvus.grpc.SearchInSegmentParam.file_id_array")); } else { goto handle_unusual; } @@ -7231,18 +7551,18 @@ bool SearchInFilesParam::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:milvus.grpc.SearchInFilesParam) + // @@protoc_insertion_point(parse_success:milvus.grpc.SearchInSegmentParam) return true; failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.SearchInFilesParam) + // @@protoc_insertion_point(parse_failure:milvus.grpc.SearchInSegmentParam) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void SearchInFilesParam::SerializeWithCachedSizes( +void SearchInSegmentParam::SerializeWithCachedSizes( ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.SearchInFilesParam) + // @@protoc_insertion_point(serialize_start:milvus.grpc.SearchInSegmentParam) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -7251,7 +7571,7 @@ void SearchInFilesParam::SerializeWithCachedSizes( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->file_id_array(i).data(), static_cast(this->file_id_array(i).length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.SearchInFilesParam.file_id_array"); + "milvus.grpc.SearchInSegmentParam.file_id_array"); ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( 1, this->file_id_array(i), output); } @@ -7266,12 +7586,12 @@ void SearchInFilesParam::SerializeWithCachedSizes( ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:milvus.grpc.SearchInFilesParam) + // @@protoc_insertion_point(serialize_end:milvus.grpc.SearchInSegmentParam) } -::PROTOBUF_NAMESPACE_ID::uint8* SearchInFilesParam::InternalSerializeWithCachedSizesToArray( +::PROTOBUF_NAMESPACE_ID::uint8* SearchInSegmentParam::InternalSerializeWithCachedSizesToArray( ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.SearchInFilesParam) + // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.SearchInSegmentParam) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -7280,7 +7600,7 @@ void SearchInFilesParam::SerializeWithCachedSizes( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->file_id_array(i).data(), static_cast(this->file_id_array(i).length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.SearchInFilesParam.file_id_array"); + "milvus.grpc.SearchInSegmentParam.file_id_array"); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: WriteStringToArray(1, this->file_id_array(i), target); } @@ -7296,12 +7616,12 @@ void SearchInFilesParam::SerializeWithCachedSizes( target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.SearchInFilesParam) + // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.SearchInSegmentParam) return target; } -size_t SearchInFilesParam::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.SearchInFilesParam) +size_t SearchInSegmentParam::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.SearchInSegmentParam) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -7333,23 +7653,23 @@ size_t SearchInFilesParam::ByteSizeLong() const { return total_size; } -void SearchInFilesParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.SearchInFilesParam) +void SearchInSegmentParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.SearchInSegmentParam) GOOGLE_DCHECK_NE(&from, this); - const SearchInFilesParam* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + const SearchInSegmentParam* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.SearchInFilesParam) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.SearchInSegmentParam) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.SearchInFilesParam) + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.SearchInSegmentParam) MergeFrom(*source); } } -void SearchInFilesParam::MergeFrom(const SearchInFilesParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.SearchInFilesParam) +void SearchInSegmentParam::MergeFrom(const SearchInSegmentParam& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.SearchInSegmentParam) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; @@ -7361,858 +7681,32 @@ void SearchInFilesParam::MergeFrom(const SearchInFilesParam& from) { } } -void SearchInFilesParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.SearchInFilesParam) +void SearchInSegmentParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.SearchInSegmentParam) if (&from == this) return; Clear(); MergeFrom(from); } -void SearchInFilesParam::CopyFrom(const SearchInFilesParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.SearchInFilesParam) +void SearchInSegmentParam::CopyFrom(const SearchInSegmentParam& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.SearchInSegmentParam) if (&from == this) return; Clear(); MergeFrom(from); } -bool SearchInFilesParam::IsInitialized() const { +bool SearchInSegmentParam::IsInitialized() const { return true; } -void SearchInFilesParam::InternalSwap(SearchInFilesParam* other) { +void SearchInSegmentParam::InternalSwap(SearchInSegmentParam* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); file_id_array_.InternalSwap(CastToBase(&other->file_id_array_)); swap(search_param_, other->search_param_); } -::PROTOBUF_NAMESPACE_ID::Metadata SearchInFilesParam::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void SearchByIDParam::InitAsDefaultInstance() { -} -class SearchByIDParam::_Internal { - public: -}; - -SearchByIDParam::SearchByIDParam() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.SearchByIDParam) -} -SearchByIDParam::SearchByIDParam(const SearchByIDParam& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - partition_tag_array_(from.partition_tag_array_), - id_array_(from.id_array_), - extra_params_(from.extra_params_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.collection_name().empty()) { - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - topk_ = from.topk_; - // @@protoc_insertion_point(copy_constructor:milvus.grpc.SearchByIDParam) -} - -void SearchByIDParam::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SearchByIDParam_milvus_2eproto.base); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - topk_ = PROTOBUF_LONGLONG(0); -} - -SearchByIDParam::~SearchByIDParam() { - // @@protoc_insertion_point(destructor:milvus.grpc.SearchByIDParam) - SharedDtor(); -} - -void SearchByIDParam::SharedDtor() { - collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void SearchByIDParam::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const SearchByIDParam& SearchByIDParam::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SearchByIDParam_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void SearchByIDParam::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.SearchByIDParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - partition_tag_array_.Clear(); - id_array_.Clear(); - extra_params_.Clear(); - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - topk_ = PROTOBUF_LONGLONG(0); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* SearchByIDParam::_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 collection_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.grpc.SearchByIDParam.collection_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated string partition_tag_array = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_partition_tag_array(), ptr, ctx, "milvus.grpc.SearchByIDParam.partition_tag_array"); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18); - } else goto handle_unusual; - continue; - // repeated int64 id_array = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(mutable_id_array(), ptr, ctx); - CHK_(ptr); - } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24) { - add_id_array(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); - CHK_(ptr); - } else goto handle_unusual; - continue; - // int64 topk = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { - topk_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(add_extra_params(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 42); - } else goto handle_unusual; - continue; - 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 SearchByIDParam::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.grpc.SearchByIDParam) - 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 collection_name = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_collection_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.SearchByIDParam.collection_name")); - } else { - goto handle_unusual; - } - break; - } - - // repeated string partition_tag_array = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->add_partition_tag_array())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag_array(this->partition_tag_array_size() - 1).data(), - static_cast(this->partition_tag_array(this->partition_tag_array_size() - 1).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.SearchByIDParam.partition_tag_array")); - } else { - goto handle_unusual; - } - break; - } - - // repeated int64 id_array = 3; - case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( - input, this->mutable_id_array()))); - } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( - 1, 26u, input, this->mutable_id_array()))); - } else { - goto handle_unusual; - } - break; - } - - // int64 topk = 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, &topk_))); - } else { - goto handle_unusual; - } - break; - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - case 5: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, add_extra_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.grpc.SearchByIDParam) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.SearchByIDParam) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void SearchByIDParam::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.SearchByIDParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.SearchByIDParam.collection_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->collection_name(), output); - } - - // repeated string partition_tag_array = 2; - for (int i = 0, n = this->partition_tag_array_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag_array(i).data(), static_cast(this->partition_tag_array(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.SearchByIDParam.partition_tag_array"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( - 2, this->partition_tag_array(i), output); - } - - // repeated int64 id_array = 3; - if (this->id_array_size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(3, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); - output->WriteVarint32(_id_array_cached_byte_size_.load( - std::memory_order_relaxed)); - } - for (int i = 0, n = this->id_array_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64NoTag( - this->id_array(i), output); - } - - // int64 topk = 4; - if (this->topk() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(4, this->topk(), output); - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - for (unsigned int i = 0, - n = static_cast(this->extra_params_size()); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, - this->extra_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.grpc.SearchByIDParam) -} - -::PROTOBUF_NAMESPACE_ID::uint8* SearchByIDParam::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.SearchByIDParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.SearchByIDParam.collection_name"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->collection_name(), target); - } - - // repeated string partition_tag_array = 2; - for (int i = 0, n = this->partition_tag_array_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->partition_tag_array(i).data(), static_cast(this->partition_tag_array(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.SearchByIDParam.partition_tag_array"); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteStringToArray(2, this->partition_tag_array(i), target); - } - - // repeated int64 id_array = 3; - if (this->id_array_size() > 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( - 3, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( - _id_array_cached_byte_size_.load(std::memory_order_relaxed), - target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteInt64NoTagToArray(this->id_array_, target); - } - - // int64 topk = 4; - if (this->topk() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->topk(), target); - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - for (unsigned int i = 0, - n = static_cast(this->extra_params_size()); i < n; i++) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, this->extra_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.grpc.SearchByIDParam) - return target; -} - -size_t SearchByIDParam::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.SearchByIDParam) - 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 partition_tag_array = 2; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->partition_tag_array_size()); - for (int i = 0, n = this->partition_tag_array_size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->partition_tag_array(i)); - } - - // repeated int64 id_array = 3; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int64Size(this->id_array_); - 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); - _id_array_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - { - unsigned int count = static_cast(this->extra_params_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - this->extra_params(static_cast(i))); - } - } - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->collection_name()); - } - - // int64 topk = 4; - if (this->topk() != 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->topk()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void SearchByIDParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.SearchByIDParam) - GOOGLE_DCHECK_NE(&from, this); - const SearchByIDParam* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.SearchByIDParam) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.SearchByIDParam) - MergeFrom(*source); - } -} - -void SearchByIDParam::MergeFrom(const SearchByIDParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.SearchByIDParam) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - partition_tag_array_.MergeFrom(from.partition_tag_array_); - id_array_.MergeFrom(from.id_array_); - extra_params_.MergeFrom(from.extra_params_); - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - if (from.topk() != 0) { - set_topk(from.topk()); - } -} - -void SearchByIDParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.SearchByIDParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SearchByIDParam::CopyFrom(const SearchByIDParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.SearchByIDParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SearchByIDParam::IsInitialized() const { - return true; -} - -void SearchByIDParam::InternalSwap(SearchByIDParam* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - partition_tag_array_.InternalSwap(CastToBase(&other->partition_tag_array_)); - id_array_.InternalSwap(&other->id_array_); - CastToBase(&extra_params_)->InternalSwap(CastToBase(&other->extra_params_)); - collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(topk_, other->topk_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata SearchByIDParam::GetMetadata() const { - return GetMetadataStatic(); -} - - -// =================================================================== - -void ReLoadSegmentsParam::InitAsDefaultInstance() { -} -class ReLoadSegmentsParam::_Internal { - public: -}; - -ReLoadSegmentsParam::ReLoadSegmentsParam() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.ReLoadSegmentsParam) -} -ReLoadSegmentsParam::ReLoadSegmentsParam(const ReLoadSegmentsParam& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _internal_metadata_(nullptr), - segment_id_array_(from.segment_id_array_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.collection_name().empty()) { - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.ReLoadSegmentsParam) -} - -void ReLoadSegmentsParam::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ReLoadSegmentsParam_milvus_2eproto.base); - collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -ReLoadSegmentsParam::~ReLoadSegmentsParam() { - // @@protoc_insertion_point(destructor:milvus.grpc.ReLoadSegmentsParam) - SharedDtor(); -} - -void ReLoadSegmentsParam::SharedDtor() { - collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void ReLoadSegmentsParam::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ReLoadSegmentsParam& ReLoadSegmentsParam::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ReLoadSegmentsParam_milvus_2eproto.base); - return *internal_default_instance(); -} - - -void ReLoadSegmentsParam::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.ReLoadSegmentsParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - segment_id_array_.Clear(); - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ReLoadSegmentsParam::_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 collection_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.grpc.ReLoadSegmentsParam.collection_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; - // repeated string segment_id_array = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_segment_id_array(), ptr, ctx, "milvus.grpc.ReLoadSegmentsParam.segment_id_array"); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18); - } else goto handle_unusual; - continue; - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; - } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; - } - } // switch - } // while -success: - return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ReLoadSegmentsParam::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.grpc.ReLoadSegmentsParam) - 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 collection_name = 1; - case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_collection_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.ReLoadSegmentsParam.collection_name")); - } else { - goto handle_unusual; - } - break; - } - - // repeated string segment_id_array = 2; - case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->add_segment_id_array())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->segment_id_array(this->segment_id_array_size() - 1).data(), - static_cast(this->segment_id_array(this->segment_id_array_size() - 1).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.ReLoadSegmentsParam.segment_id_array")); - } 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.grpc.ReLoadSegmentsParam) - return true; -failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.ReLoadSegmentsParam) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ReLoadSegmentsParam::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.ReLoadSegmentsParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.ReLoadSegmentsParam.collection_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->collection_name(), output); - } - - // repeated string segment_id_array = 2; - for (int i = 0, n = this->segment_id_array_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->segment_id_array(i).data(), static_cast(this->segment_id_array(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.ReLoadSegmentsParam.segment_id_array"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( - 2, this->segment_id_array(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.grpc.ReLoadSegmentsParam) -} - -::PROTOBUF_NAMESPACE_ID::uint8* ReLoadSegmentsParam::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.ReLoadSegmentsParam) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->collection_name().data(), static_cast(this->collection_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.ReLoadSegmentsParam.collection_name"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 1, this->collection_name(), target); - } - - // repeated string segment_id_array = 2; - for (int i = 0, n = this->segment_id_array_size(); i < n; i++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->segment_id_array(i).data(), static_cast(this->segment_id_array(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.ReLoadSegmentsParam.segment_id_array"); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - WriteStringToArray(2, this->segment_id_array(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.grpc.ReLoadSegmentsParam) - return target; -} - -size_t ReLoadSegmentsParam::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.ReLoadSegmentsParam) - 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 segment_id_array = 2; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->segment_id_array_size()); - for (int i = 0, n = this->segment_id_array_size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->segment_id_array(i)); - } - - // string collection_name = 1; - if (this->collection_name().size() > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->collection_name()); - } - - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ReLoadSegmentsParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.ReLoadSegmentsParam) - GOOGLE_DCHECK_NE(&from, this); - const ReLoadSegmentsParam* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.ReLoadSegmentsParam) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.ReLoadSegmentsParam) - MergeFrom(*source); - } -} - -void ReLoadSegmentsParam::MergeFrom(const ReLoadSegmentsParam& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.ReLoadSegmentsParam) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - segment_id_array_.MergeFrom(from.segment_id_array_); - if (from.collection_name().size() > 0) { - - collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); - } -} - -void ReLoadSegmentsParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.ReLoadSegmentsParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ReLoadSegmentsParam::CopyFrom(const ReLoadSegmentsParam& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.ReLoadSegmentsParam) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ReLoadSegmentsParam::IsInitialized() const { - return true; -} - -void ReLoadSegmentsParam::InternalSwap(ReLoadSegmentsParam* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - segment_id_array_.InternalSwap(CastToBase(&other->segment_id_array_)); - collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::PROTOBUF_NAMESPACE_ID::Metadata ReLoadSegmentsParam::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata SearchInSegmentParam::GetMetadata() const { return GetMetadataStatic(); } @@ -11263,6 +10757,317 @@ void FlushParam::InternalSwap(FlushParam* other) { } +// =================================================================== + +void CompactParam::InitAsDefaultInstance() { +} +class CompactParam::_Internal { + public: +}; + +CompactParam::CompactParam() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.grpc.CompactParam) +} +CompactParam::CompactParam(const CompactParam& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.collection_name().empty()) { + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + threshold_ = from.threshold_; + // @@protoc_insertion_point(copy_constructor:milvus.grpc.CompactParam) +} + +void CompactParam::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_CompactParam_milvus_2eproto.base); + collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + threshold_ = 0; +} + +CompactParam::~CompactParam() { + // @@protoc_insertion_point(destructor:milvus.grpc.CompactParam) + SharedDtor(); +} + +void CompactParam::SharedDtor() { + collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void CompactParam::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const CompactParam& CompactParam::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CompactParam_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void CompactParam::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.grpc.CompactParam) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + threshold_ = 0; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* CompactParam::_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 collection_name = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_collection_name(), ptr, ctx, "milvus.grpc.CompactParam.collection_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; + // double threshold = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 17)) { + threshold_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } 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 CompactParam::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.grpc.CompactParam) + 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 collection_name = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_collection_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.grpc.CompactParam.collection_name")); + } else { + goto handle_unusual; + } + break; + } + + // double threshold = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (17 & 0xFF)) { + + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + double, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_DOUBLE>( + input, &threshold_))); + } 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.grpc.CompactParam) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.grpc.CompactParam) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void CompactParam::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.grpc.CompactParam) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string collection_name = 1; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.grpc.CompactParam.collection_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 1, this->collection_name(), output); + } + + // double threshold = 2; + if (!(this->threshold() <= 0 && this->threshold() >= 0)) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDouble(2, this->threshold(), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.grpc.CompactParam) +} + +::PROTOBUF_NAMESPACE_ID::uint8* CompactParam::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.CompactParam) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // string collection_name = 1; + if (this->collection_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->collection_name().data(), static_cast(this->collection_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.grpc.CompactParam.collection_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 1, this->collection_name(), target); + } + + // double threshold = 2; + if (!(this->threshold() <= 0 && this->threshold() >= 0)) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->threshold(), 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.grpc.CompactParam) + return target; +} + +size_t CompactParam::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.CompactParam) + 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; + + // string collection_name = 1; + if (this->collection_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->collection_name()); + } + + // double threshold = 2; + if (!(this->threshold() <= 0 && this->threshold() >= 0)) { + total_size += 1 + 8; + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void CompactParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.CompactParam) + GOOGLE_DCHECK_NE(&from, this); + const CompactParam* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.CompactParam) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.CompactParam) + MergeFrom(*source); + } +} + +void CompactParam::MergeFrom(const CompactParam& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.CompactParam) + 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.collection_name().size() > 0) { + + collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); + } + if (!(from.threshold() <= 0 && from.threshold() >= 0)) { + set_threshold(from.threshold()); + } +} + +void CompactParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.CompactParam) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void CompactParam::CopyFrom(const CompactParam& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.CompactParam) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool CompactParam::IsInitialized() const { + return true; +} + +void CompactParam::InternalSwap(CompactParam* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(threshold_, other->threshold_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata CompactParam::GetMetadata() const { + return GetMetadataStatic(); +} + + // =================================================================== void DeleteByIDParam::InitAsDefaultInstance() { @@ -11957,17 +11762,14 @@ GetEntityIDsParam::GetEntityIDsParam(const GetEntityIDsParam& from) if (!from.collection_name().empty()) { collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); } - segment_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.segment_name().empty()) { - segment_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.segment_name_); - } + segment_id_ = from.segment_id_; // @@protoc_insertion_point(copy_constructor:milvus.grpc.GetEntityIDsParam) } void GetEntityIDsParam::SharedCtor() { ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_GetEntityIDsParam_milvus_2eproto.base); collection_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - segment_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + segment_id_ = PROTOBUF_LONGLONG(0); } GetEntityIDsParam::~GetEntityIDsParam() { @@ -11977,7 +11779,6 @@ GetEntityIDsParam::~GetEntityIDsParam() { void GetEntityIDsParam::SharedDtor() { collection_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - segment_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void GetEntityIDsParam::SetCachedSize(int size) const { @@ -11996,7 +11797,7 @@ void GetEntityIDsParam::Clear() { (void) cached_has_bits; collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - segment_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + segment_id_ = PROTOBUF_LONGLONG(0); _internal_metadata_.Clear(); } @@ -12015,10 +11816,10 @@ const char* GetEntityIDsParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESP CHK_(ptr); } else goto handle_unusual; continue; - // string segment_name = 2; + // int64 segment_id = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_segment_name(), ptr, ctx, "milvus.grpc.GetEntityIDsParam.segment_name"); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + segment_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); CHK_(ptr); } else goto handle_unusual; continue; @@ -12067,15 +11868,13 @@ bool GetEntityIDsParam::MergePartialFromCodedStream( break; } - // string segment_name = 2; + // int64 segment_id = 2; case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_segment_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->segment_name().data(), static_cast(this->segment_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.GetEntityIDsParam.segment_name")); + 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, &segment_id_))); } else { goto handle_unusual; } @@ -12119,14 +11918,9 @@ void GetEntityIDsParam::SerializeWithCachedSizes( 1, this->collection_name(), output); } - // string segment_name = 2; - if (this->segment_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->segment_name().data(), static_cast(this->segment_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.GetEntityIDsParam.segment_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->segment_name(), output); + // int64 segment_id = 2; + if (this->segment_id() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->segment_id(), output); } if (_internal_metadata_.have_unknown_fields()) { @@ -12153,15 +11947,9 @@ void GetEntityIDsParam::SerializeWithCachedSizes( 1, this->collection_name(), target); } - // string segment_name = 2; - if (this->segment_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->segment_name().data(), static_cast(this->segment_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.GetEntityIDsParam.segment_name"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 2, this->segment_name(), target); + // int64 segment_id = 2; + if (this->segment_id() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->segment_id(), target); } if (_internal_metadata_.have_unknown_fields()) { @@ -12192,11 +11980,11 @@ size_t GetEntityIDsParam::ByteSizeLong() const { this->collection_name()); } - // string segment_name = 2; - if (this->segment_name().size() > 0) { + // int64 segment_id = 2; + if (this->segment_id() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->segment_name()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->segment_id()); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); @@ -12230,9 +12018,8 @@ void GetEntityIDsParam::MergeFrom(const GetEntityIDsParam& from) { collection_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.collection_name_); } - if (from.segment_name().size() > 0) { - - segment_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.segment_name_); + if (from.segment_id() != 0) { + set_segment_id(from.segment_id()); } } @@ -12259,8 +12046,7 @@ void GetEntityIDsParam::InternalSwap(GetEntityIDsParam* other) { _internal_metadata_.Swap(&other->_internal_metadata_); collection_name_.Swap(&other->collection_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - segment_name_.Swap(&other->segment_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); + swap(segment_id_, other->segment_id_); } ::PROTOBUF_NAMESPACE_ID::Metadata GetEntityIDsParam::GetMetadata() const { @@ -17056,6 +16842,9 @@ template<> PROTOBUF_NOINLINE ::milvus::grpc::CollectionName* Arena::CreateMaybeM template<> PROTOBUF_NOINLINE ::milvus::grpc::CollectionNameList* Arena::CreateMaybeMessage< ::milvus::grpc::CollectionNameList >(Arena* arena) { return Arena::CreateInternal< ::milvus::grpc::CollectionNameList >(arena); } +template<> PROTOBUF_NOINLINE ::milvus::grpc::FieldName* Arena::CreateMaybeMessage< ::milvus::grpc::FieldName >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::FieldName >(arena); +} template<> PROTOBUF_NOINLINE ::milvus::grpc::Mapping* Arena::CreateMaybeMessage< ::milvus::grpc::Mapping >(Arena* arena) { return Arena::CreateInternal< ::milvus::grpc::Mapping >(arena); } @@ -17092,14 +16881,8 @@ template<> PROTOBUF_NOINLINE ::milvus::grpc::VectorParam* Arena::CreateMaybeMess template<> PROTOBUF_NOINLINE ::milvus::grpc::SearchParam* Arena::CreateMaybeMessage< ::milvus::grpc::SearchParam >(Arena* arena) { return Arena::CreateInternal< ::milvus::grpc::SearchParam >(arena); } -template<> PROTOBUF_NOINLINE ::milvus::grpc::SearchInFilesParam* Arena::CreateMaybeMessage< ::milvus::grpc::SearchInFilesParam >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::SearchInFilesParam >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::SearchByIDParam* Arena::CreateMaybeMessage< ::milvus::grpc::SearchByIDParam >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::SearchByIDParam >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::ReLoadSegmentsParam* Arena::CreateMaybeMessage< ::milvus::grpc::ReLoadSegmentsParam >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::ReLoadSegmentsParam >(arena); +template<> PROTOBUF_NOINLINE ::milvus::grpc::SearchInSegmentParam* Arena::CreateMaybeMessage< ::milvus::grpc::SearchInSegmentParam >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::SearchInSegmentParam >(arena); } template<> PROTOBUF_NOINLINE ::milvus::grpc::Entities* Arena::CreateMaybeMessage< ::milvus::grpc::Entities >(Arena* arena) { return Arena::CreateInternal< ::milvus::grpc::Entities >(arena); @@ -17125,6 +16908,9 @@ template<> PROTOBUF_NOINLINE ::milvus::grpc::IndexParam* Arena::CreateMaybeMessa template<> PROTOBUF_NOINLINE ::milvus::grpc::FlushParam* Arena::CreateMaybeMessage< ::milvus::grpc::FlushParam >(Arena* arena) { return Arena::CreateInternal< ::milvus::grpc::FlushParam >(arena); } +template<> PROTOBUF_NOINLINE ::milvus::grpc::CompactParam* Arena::CreateMaybeMessage< ::milvus::grpc::CompactParam >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::CompactParam >(arena); +} template<> PROTOBUF_NOINLINE ::milvus::grpc::DeleteByIDParam* Arena::CreateMaybeMessage< ::milvus::grpc::DeleteByIDParam >(Arena* arena) { return Arena::CreateInternal< ::milvus::grpc::DeleteByIDParam >(arena); } diff --git a/sdk/grpc-gen/gen-milvus/milvus.pb.h b/sdk/grpc-gen/gen-milvus/milvus.pb.h index d5cb33dab4..e7d1f19122 100644 --- a/sdk/grpc-gen/gen-milvus/milvus.pb.h +++ b/sdk/grpc-gen/gen-milvus/milvus.pb.h @@ -82,6 +82,9 @@ extern CollectionRowCountDefaultTypeInternal _CollectionRowCount_default_instanc class Command; class CommandDefaultTypeInternal; extern CommandDefaultTypeInternal _Command_default_instance_; +class CompactParam; +class CompactParamDefaultTypeInternal; +extern CompactParamDefaultTypeInternal _CompactParam_default_instance_; class CompareExpr; class CompareExprDefaultTypeInternal; extern CompareExprDefaultTypeInternal _CompareExpr_default_instance_; @@ -97,6 +100,9 @@ extern EntityIdentityDefaultTypeInternal _EntityIdentity_default_instance_; class EntityIds; class EntityIdsDefaultTypeInternal; extern EntityIdsDefaultTypeInternal _EntityIds_default_instance_; +class FieldName; +class FieldNameDefaultTypeInternal; +extern FieldNameDefaultTypeInternal _FieldName_default_instance_; class FieldParam; class FieldParamDefaultTypeInternal; extern FieldParamDefaultTypeInternal _FieldParam_default_instance_; @@ -142,15 +148,9 @@ extern QueryResultDefaultTypeInternal _QueryResult_default_instance_; class RangeQuery; class RangeQueryDefaultTypeInternal; extern RangeQueryDefaultTypeInternal _RangeQuery_default_instance_; -class ReLoadSegmentsParam; -class ReLoadSegmentsParamDefaultTypeInternal; -extern ReLoadSegmentsParamDefaultTypeInternal _ReLoadSegmentsParam_default_instance_; -class SearchByIDParam; -class SearchByIDParamDefaultTypeInternal; -extern SearchByIDParamDefaultTypeInternal _SearchByIDParam_default_instance_; -class SearchInFilesParam; -class SearchInFilesParamDefaultTypeInternal; -extern SearchInFilesParamDefaultTypeInternal _SearchInFilesParam_default_instance_; +class SearchInSegmentParam; +class SearchInSegmentParamDefaultTypeInternal; +extern SearchInSegmentParamDefaultTypeInternal _SearchInSegmentParam_default_instance_; class SearchParam; class SearchParamDefaultTypeInternal; extern SearchParamDefaultTypeInternal _SearchParam_default_instance_; @@ -192,11 +192,13 @@ template<> ::milvus::grpc::CollectionName* Arena::CreateMaybeMessage<::milvus::g template<> ::milvus::grpc::CollectionNameList* Arena::CreateMaybeMessage<::milvus::grpc::CollectionNameList>(Arena*); template<> ::milvus::grpc::CollectionRowCount* Arena::CreateMaybeMessage<::milvus::grpc::CollectionRowCount>(Arena*); template<> ::milvus::grpc::Command* Arena::CreateMaybeMessage<::milvus::grpc::Command>(Arena*); +template<> ::milvus::grpc::CompactParam* Arena::CreateMaybeMessage<::milvus::grpc::CompactParam>(Arena*); template<> ::milvus::grpc::CompareExpr* Arena::CreateMaybeMessage<::milvus::grpc::CompareExpr>(Arena*); template<> ::milvus::grpc::DeleteByIDParam* Arena::CreateMaybeMessage<::milvus::grpc::DeleteByIDParam>(Arena*); template<> ::milvus::grpc::Entities* Arena::CreateMaybeMessage<::milvus::grpc::Entities>(Arena*); template<> ::milvus::grpc::EntityIdentity* Arena::CreateMaybeMessage<::milvus::grpc::EntityIdentity>(Arena*); template<> ::milvus::grpc::EntityIds* Arena::CreateMaybeMessage<::milvus::grpc::EntityIds>(Arena*); +template<> ::milvus::grpc::FieldName* Arena::CreateMaybeMessage<::milvus::grpc::FieldName>(Arena*); template<> ::milvus::grpc::FieldParam* Arena::CreateMaybeMessage<::milvus::grpc::FieldParam>(Arena*); template<> ::milvus::grpc::FieldType* Arena::CreateMaybeMessage<::milvus::grpc::FieldType>(Arena*); template<> ::milvus::grpc::FieldValue* Arena::CreateMaybeMessage<::milvus::grpc::FieldValue>(Arena*); @@ -212,9 +214,7 @@ template<> ::milvus::grpc::PartitionList* Arena::CreateMaybeMessage<::milvus::gr template<> ::milvus::grpc::PartitionParam* Arena::CreateMaybeMessage<::milvus::grpc::PartitionParam>(Arena*); template<> ::milvus::grpc::QueryResult* Arena::CreateMaybeMessage<::milvus::grpc::QueryResult>(Arena*); template<> ::milvus::grpc::RangeQuery* Arena::CreateMaybeMessage<::milvus::grpc::RangeQuery>(Arena*); -template<> ::milvus::grpc::ReLoadSegmentsParam* Arena::CreateMaybeMessage<::milvus::grpc::ReLoadSegmentsParam>(Arena*); -template<> ::milvus::grpc::SearchByIDParam* Arena::CreateMaybeMessage<::milvus::grpc::SearchByIDParam>(Arena*); -template<> ::milvus::grpc::SearchInFilesParam* Arena::CreateMaybeMessage<::milvus::grpc::SearchInFilesParam>(Arena*); +template<> ::milvus::grpc::SearchInSegmentParam* Arena::CreateMaybeMessage<::milvus::grpc::SearchInSegmentParam>(Arena*); template<> ::milvus::grpc::SearchParam* Arena::CreateMaybeMessage<::milvus::grpc::SearchParam>(Arena*); template<> ::milvus::grpc::SearchParamPB* Arena::CreateMaybeMessage<::milvus::grpc::SearchParamPB>(Arena*); template<> ::milvus::grpc::StringReply* Arena::CreateMaybeMessage<::milvus::grpc::StringReply>(Arena*); @@ -241,13 +241,12 @@ enum DataType : int { STRING = 20, VECTOR_BINARY = 100, VECTOR_FLOAT = 101, - VECTOR = 200, DataType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), DataType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() }; bool DataType_IsValid(int value); constexpr DataType DataType_MIN = NONE; -constexpr DataType DataType_MAX = VECTOR; +constexpr DataType DataType_MAX = VECTOR_FLOAT; constexpr int DataType_ARRAYSIZE = DataType_MAX + 1; const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* DataType_descriptor(); @@ -762,6 +761,156 @@ class CollectionNameList : }; // ------------------------------------------------------------------- +class FieldName : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.FieldName) */ { + public: + FieldName(); + virtual ~FieldName(); + + FieldName(const FieldName& from); + FieldName(FieldName&& from) noexcept + : FieldName() { + *this = ::std::move(from); + } + + inline FieldName& operator=(const FieldName& from) { + CopyFrom(from); + return *this; + } + inline FieldName& operator=(FieldName&& 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 FieldName& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const FieldName* internal_default_instance() { + return reinterpret_cast( + &_FieldName_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(FieldName& a, FieldName& b) { + a.Swap(&b); + } + inline void Swap(FieldName* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline FieldName* New() const final { + return CreateMaybeMessage(nullptr); + } + + FieldName* 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 FieldName& from); + void MergeFrom(const FieldName& 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(FieldName* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.FieldName"; + } + 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_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kCollectionNameFieldNumber = 1, + kFieldNameFieldNumber = 2, + }; + // string collection_name = 1; + void clear_collection_name(); + const std::string& collection_name() const; + void set_collection_name(const std::string& value); + void set_collection_name(std::string&& value); + void set_collection_name(const char* value); + void set_collection_name(const char* value, size_t size); + std::string* mutable_collection_name(); + std::string* release_collection_name(); + void set_allocated_collection_name(std::string* collection_name); + + // string field_name = 2; + void clear_field_name(); + const std::string& field_name() const; + void set_field_name(const std::string& value); + void set_field_name(std::string&& value); + void set_field_name(const char* value); + void set_field_name(const char* value, size_t size); + std::string* mutable_field_name(); + std::string* release_field_name(); + void set_allocated_field_name(std::string* field_name); + + // @@protoc_insertion_point(class_scope:milvus.grpc.FieldName) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr field_name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + class Mapping : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.Mapping) */ { public: @@ -804,7 +953,7 @@ class Mapping : &_Mapping_default_instance_); } static constexpr int kIndexInFileMessages = - 3; + 4; friend void swap(Mapping& a, Mapping& b) { a.Swap(&b); @@ -977,7 +1126,7 @@ class MappingList : &_MappingList_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 5; friend void swap(MappingList& a, MappingList& b) { a.Swap(&b); @@ -1124,7 +1273,7 @@ class PartitionParam : &_PartitionParam_default_instance_); } static constexpr int kIndexInFileMessages = - 5; + 6; friend void swap(PartitionParam& a, PartitionParam& b) { a.Swap(&b); @@ -1274,7 +1423,7 @@ class PartitionList : &_PartitionList_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 7; friend void swap(PartitionList& a, PartitionList& b) { a.Swap(&b); @@ -1427,7 +1576,7 @@ class VectorRowRecord : &_VectorRowRecord_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 8; friend void swap(VectorRowRecord& a, VectorRowRecord& b) { a.Swap(&b); @@ -1578,7 +1727,7 @@ class AttrRecord : &_AttrRecord_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 9; friend void swap(AttrRecord& a, AttrRecord& b) { a.Swap(&b); @@ -1758,7 +1907,7 @@ class VectorRecord : &_VectorRecord_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 10; friend void swap(VectorRecord& a, VectorRecord& b) { a.Swap(&b); @@ -1895,7 +2044,7 @@ class FieldValue : &_FieldValue_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 11; friend void swap(FieldValue& a, FieldValue& b) { a.Swap(&b); @@ -2059,7 +2208,7 @@ class InsertParam : &_InsertParam_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 12; friend void swap(InsertParam& a, InsertParam& b) { a.Swap(&b); @@ -2249,7 +2398,7 @@ class EntityIds : &_EntityIds_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 13; friend void swap(EntityIds& a, EntityIds& b) { a.Swap(&b); @@ -2397,7 +2546,7 @@ class VectorParam : &_VectorParam_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 14; friend void swap(VectorParam& a, VectorParam& b) { a.Swap(&b); @@ -2544,7 +2693,7 @@ class SearchParam : &_SearchParam_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 15; friend void swap(SearchParam& a, SearchParam& b) { a.Swap(&b); @@ -2697,23 +2846,23 @@ class SearchParam : }; // ------------------------------------------------------------------- -class SearchInFilesParam : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.SearchInFilesParam) */ { +class SearchInSegmentParam : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.SearchInSegmentParam) */ { public: - SearchInFilesParam(); - virtual ~SearchInFilesParam(); + SearchInSegmentParam(); + virtual ~SearchInSegmentParam(); - SearchInFilesParam(const SearchInFilesParam& from); - SearchInFilesParam(SearchInFilesParam&& from) noexcept - : SearchInFilesParam() { + SearchInSegmentParam(const SearchInSegmentParam& from); + SearchInSegmentParam(SearchInSegmentParam&& from) noexcept + : SearchInSegmentParam() { *this = ::std::move(from); } - inline SearchInFilesParam& operator=(const SearchInFilesParam& from) { + inline SearchInSegmentParam& operator=(const SearchInSegmentParam& from) { CopyFrom(from); return *this; } - inline SearchInFilesParam& operator=(SearchInFilesParam&& from) noexcept { + inline SearchInSegmentParam& operator=(SearchInSegmentParam&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -2731,37 +2880,37 @@ class SearchInFilesParam : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const SearchInFilesParam& default_instance(); + static const SearchInSegmentParam& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SearchInFilesParam* internal_default_instance() { - return reinterpret_cast( - &_SearchInFilesParam_default_instance_); + static inline const SearchInSegmentParam* internal_default_instance() { + return reinterpret_cast( + &_SearchInSegmentParam_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 16; - friend void swap(SearchInFilesParam& a, SearchInFilesParam& b) { + friend void swap(SearchInSegmentParam& a, SearchInSegmentParam& b) { a.Swap(&b); } - inline void Swap(SearchInFilesParam* other) { + inline void Swap(SearchInSegmentParam* other) { if (other == this) return; InternalSwap(other); } // implements Message ---------------------------------------------- - inline SearchInFilesParam* New() const final { - return CreateMaybeMessage(nullptr); + inline SearchInSegmentParam* New() const final { + return CreateMaybeMessage(nullptr); } - SearchInFilesParam* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + SearchInSegmentParam* 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 SearchInFilesParam& from); - void MergeFrom(const SearchInFilesParam& from); + void CopyFrom(const SearchInSegmentParam& from); + void MergeFrom(const SearchInSegmentParam& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -2782,10 +2931,10 @@ class SearchInFilesParam : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(SearchInFilesParam* other); + void InternalSwap(SearchInSegmentParam* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.SearchInFilesParam"; + return "milvus.grpc.SearchInSegmentParam"; } private: inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { @@ -2838,7 +2987,7 @@ class SearchInFilesParam : ::milvus::grpc::SearchParam* mutable_search_param(); void set_allocated_search_param(::milvus::grpc::SearchParam* search_param); - // @@protoc_insertion_point(class_scope:milvus.grpc.SearchInFilesParam) + // @@protoc_insertion_point(class_scope:milvus.grpc.SearchInSegmentParam) private: class _Internal; @@ -2850,352 +2999,6 @@ class SearchInFilesParam : }; // ------------------------------------------------------------------- -class SearchByIDParam : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.SearchByIDParam) */ { - public: - SearchByIDParam(); - virtual ~SearchByIDParam(); - - SearchByIDParam(const SearchByIDParam& from); - SearchByIDParam(SearchByIDParam&& from) noexcept - : SearchByIDParam() { - *this = ::std::move(from); - } - - inline SearchByIDParam& operator=(const SearchByIDParam& from) { - CopyFrom(from); - return *this; - } - inline SearchByIDParam& operator=(SearchByIDParam&& 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 SearchByIDParam& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SearchByIDParam* internal_default_instance() { - return reinterpret_cast( - &_SearchByIDParam_default_instance_); - } - static constexpr int kIndexInFileMessages = - 16; - - friend void swap(SearchByIDParam& a, SearchByIDParam& b) { - a.Swap(&b); - } - inline void Swap(SearchByIDParam* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline SearchByIDParam* New() const final { - return CreateMaybeMessage(nullptr); - } - - SearchByIDParam* 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 SearchByIDParam& from); - void MergeFrom(const SearchByIDParam& 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(SearchByIDParam* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.SearchByIDParam"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPartitionTagArrayFieldNumber = 2, - kIdArrayFieldNumber = 3, - kExtraParamsFieldNumber = 5, - kCollectionNameFieldNumber = 1, - kTopkFieldNumber = 4, - }; - // repeated string partition_tag_array = 2; - int partition_tag_array_size() const; - void clear_partition_tag_array(); - const std::string& partition_tag_array(int index) const; - std::string* mutable_partition_tag_array(int index); - void set_partition_tag_array(int index, const std::string& value); - void set_partition_tag_array(int index, std::string&& value); - void set_partition_tag_array(int index, const char* value); - void set_partition_tag_array(int index, const char* value, size_t size); - std::string* add_partition_tag_array(); - void add_partition_tag_array(const std::string& value); - void add_partition_tag_array(std::string&& value); - void add_partition_tag_array(const char* value); - void add_partition_tag_array(const char* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& partition_tag_array() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_partition_tag_array(); - - // repeated int64 id_array = 3; - int id_array_size() const; - void clear_id_array(); - ::PROTOBUF_NAMESPACE_ID::int64 id_array(int index) const; - void set_id_array(int index, ::PROTOBUF_NAMESPACE_ID::int64 value); - void add_id_array(::PROTOBUF_NAMESPACE_ID::int64 value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& - id_array() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* - mutable_id_array(); - - // repeated .milvus.grpc.KeyValuePair extra_params = 5; - int extra_params_size() const; - void clear_extra_params(); - ::milvus::grpc::KeyValuePair* mutable_extra_params(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* - mutable_extra_params(); - const ::milvus::grpc::KeyValuePair& extra_params(int index) const; - ::milvus::grpc::KeyValuePair* add_extra_params(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& - extra_params() const; - - // string collection_name = 1; - void clear_collection_name(); - const std::string& collection_name() const; - void set_collection_name(const std::string& value); - void set_collection_name(std::string&& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - std::string* mutable_collection_name(); - std::string* release_collection_name(); - void set_allocated_collection_name(std::string* collection_name); - - // int64 topk = 4; - void clear_topk(); - ::PROTOBUF_NAMESPACE_ID::int64 topk() const; - void set_topk(::PROTOBUF_NAMESPACE_ID::int64 value); - - // @@protoc_insertion_point(class_scope:milvus.grpc.SearchByIDParam) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField partition_tag_array_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > id_array_; - mutable std::atomic _id_array_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair > extra_params_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; - ::PROTOBUF_NAMESPACE_ID::int64 topk_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_milvus_2eproto; -}; -// ------------------------------------------------------------------- - -class ReLoadSegmentsParam : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.ReLoadSegmentsParam) */ { - public: - ReLoadSegmentsParam(); - virtual ~ReLoadSegmentsParam(); - - ReLoadSegmentsParam(const ReLoadSegmentsParam& from); - ReLoadSegmentsParam(ReLoadSegmentsParam&& from) noexcept - : ReLoadSegmentsParam() { - *this = ::std::move(from); - } - - inline ReLoadSegmentsParam& operator=(const ReLoadSegmentsParam& from) { - CopyFrom(from); - return *this; - } - inline ReLoadSegmentsParam& operator=(ReLoadSegmentsParam&& 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 ReLoadSegmentsParam& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ReLoadSegmentsParam* internal_default_instance() { - return reinterpret_cast( - &_ReLoadSegmentsParam_default_instance_); - } - static constexpr int kIndexInFileMessages = - 17; - - friend void swap(ReLoadSegmentsParam& a, ReLoadSegmentsParam& b) { - a.Swap(&b); - } - inline void Swap(ReLoadSegmentsParam* other) { - if (other == this) return; - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - inline ReLoadSegmentsParam* New() const final { - return CreateMaybeMessage(nullptr); - } - - ReLoadSegmentsParam* 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 ReLoadSegmentsParam& from); - void MergeFrom(const ReLoadSegmentsParam& 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(ReLoadSegmentsParam* other); - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.ReLoadSegmentsParam"; - } - 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_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSegmentIdArrayFieldNumber = 2, - kCollectionNameFieldNumber = 1, - }; - // repeated string segment_id_array = 2; - int segment_id_array_size() const; - void clear_segment_id_array(); - const std::string& segment_id_array(int index) const; - std::string* mutable_segment_id_array(int index); - void set_segment_id_array(int index, const std::string& value); - void set_segment_id_array(int index, std::string&& value); - void set_segment_id_array(int index, const char* value); - void set_segment_id_array(int index, const char* value, size_t size); - std::string* add_segment_id_array(); - void add_segment_id_array(const std::string& value); - void add_segment_id_array(std::string&& value); - void add_segment_id_array(const char* value); - void add_segment_id_array(const char* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& segment_id_array() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_segment_id_array(); - - // string collection_name = 1; - void clear_collection_name(); - const std::string& collection_name() const; - void set_collection_name(const std::string& value); - void set_collection_name(std::string&& value); - void set_collection_name(const char* value); - void set_collection_name(const char* value, size_t size); - std::string* mutable_collection_name(); - std::string* release_collection_name(); - void set_allocated_collection_name(std::string* collection_name); - - // @@protoc_insertion_point(class_scope:milvus.grpc.ReLoadSegmentsParam) - private: - class _Internal; - - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField segment_id_array_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_milvus_2eproto; -}; -// ------------------------------------------------------------------- - class Entities : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.Entities) */ { public: @@ -3238,7 +3041,7 @@ class Entities : &_Entities_default_instance_); } static constexpr int kIndexInFileMessages = - 18; + 17; friend void swap(Entities& a, Entities& b) { a.Swap(&b); @@ -3413,7 +3216,7 @@ class QueryResult : &_QueryResult_default_instance_); } static constexpr int kIndexInFileMessages = - 19; + 18; friend void swap(QueryResult& a, QueryResult& b) { a.Swap(&b); @@ -3605,7 +3408,7 @@ class StringReply : &_StringReply_default_instance_); } static constexpr int kIndexInFileMessages = - 20; + 19; friend void swap(StringReply& a, StringReply& b) { a.Swap(&b); @@ -3752,7 +3555,7 @@ class BoolReply : &_BoolReply_default_instance_); } static constexpr int kIndexInFileMessages = - 21; + 20; friend void swap(BoolReply& a, BoolReply& b) { a.Swap(&b); @@ -3893,7 +3696,7 @@ class CollectionRowCount : &_CollectionRowCount_default_instance_); } static constexpr int kIndexInFileMessages = - 22; + 21; friend void swap(CollectionRowCount& a, CollectionRowCount& b) { a.Swap(&b); @@ -4034,7 +3837,7 @@ class Command : &_Command_default_instance_); } static constexpr int kIndexInFileMessages = - 23; + 22; friend void swap(Command& a, Command& b) { a.Swap(&b); @@ -4171,7 +3974,7 @@ class IndexParam : &_IndexParam_default_instance_); } static constexpr int kIndexInFileMessages = - 24; + 23; friend void swap(IndexParam& a, IndexParam& b) { a.Swap(&b); @@ -4357,7 +4160,7 @@ class FlushParam : &_FlushParam_default_instance_); } static constexpr int kIndexInFileMessages = - 25; + 24; friend void swap(FlushParam& a, FlushParam& b) { a.Swap(&b); @@ -4458,6 +4261,150 @@ class FlushParam : }; // ------------------------------------------------------------------- +class CompactParam : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.CompactParam) */ { + public: + CompactParam(); + virtual ~CompactParam(); + + CompactParam(const CompactParam& from); + CompactParam(CompactParam&& from) noexcept + : CompactParam() { + *this = ::std::move(from); + } + + inline CompactParam& operator=(const CompactParam& from) { + CopyFrom(from); + return *this; + } + inline CompactParam& operator=(CompactParam&& 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 CompactParam& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const CompactParam* internal_default_instance() { + return reinterpret_cast( + &_CompactParam_default_instance_); + } + static constexpr int kIndexInFileMessages = + 25; + + friend void swap(CompactParam& a, CompactParam& b) { + a.Swap(&b); + } + inline void Swap(CompactParam* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline CompactParam* New() const final { + return CreateMaybeMessage(nullptr); + } + + CompactParam* 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 CompactParam& from); + void MergeFrom(const CompactParam& 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(CompactParam* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.CompactParam"; + } + 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_milvus_2eproto); + return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kCollectionNameFieldNumber = 1, + kThresholdFieldNumber = 2, + }; + // string collection_name = 1; + void clear_collection_name(); + const std::string& collection_name() const; + void set_collection_name(const std::string& value); + void set_collection_name(std::string&& value); + void set_collection_name(const char* value); + void set_collection_name(const char* value, size_t size); + std::string* mutable_collection_name(); + std::string* release_collection_name(); + void set_allocated_collection_name(std::string* collection_name); + + // double threshold = 2; + void clear_threshold(); + double threshold() const; + void set_threshold(double value); + + // @@protoc_insertion_point(class_scope:milvus.grpc.CompactParam) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; + double threshold_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + class DeleteByIDParam : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.DeleteByIDParam) */ { public: @@ -4870,7 +4817,7 @@ class GetEntityIDsParam : enum : int { kCollectionNameFieldNumber = 1, - kSegmentNameFieldNumber = 2, + kSegmentIdFieldNumber = 2, }; // string collection_name = 1; void clear_collection_name(); @@ -4883,16 +4830,10 @@ class GetEntityIDsParam : std::string* release_collection_name(); void set_allocated_collection_name(std::string* collection_name); - // string segment_name = 2; - void clear_segment_name(); - const std::string& segment_name() const; - void set_segment_name(const std::string& value); - void set_segment_name(std::string&& value); - void set_segment_name(const char* value); - void set_segment_name(const char* value, size_t size); - std::string* mutable_segment_name(); - std::string* release_segment_name(); - void set_allocated_segment_name(std::string* segment_name); + // int64 segment_id = 2; + void clear_segment_id(); + ::PROTOBUF_NAMESPACE_ID::int64 segment_id() const; + void set_segment_id(::PROTOBUF_NAMESPACE_ID::int64 value); // @@protoc_insertion_point(class_scope:milvus.grpc.GetEntityIDsParam) private: @@ -4900,7 +4841,7 @@ class GetEntityIDsParam : ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr collection_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr segment_name_; + ::PROTOBUF_NAMESPACE_ID::int64 segment_id_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_milvus_2eproto; }; @@ -7157,6 +7098,112 @@ CollectionNameList::mutable_collection_names() { // ------------------------------------------------------------------- +// FieldName + +// string collection_name = 1; +inline void FieldName::clear_collection_name() { + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& FieldName::collection_name() const { + // @@protoc_insertion_point(field_get:milvus.grpc.FieldName.collection_name) + return collection_name_.GetNoArena(); +} +inline void FieldName::set_collection_name(const std::string& value) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.grpc.FieldName.collection_name) +} +inline void FieldName::set_collection_name(std::string&& value) { + + collection_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.FieldName.collection_name) +} +inline void FieldName::set_collection_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.grpc.FieldName.collection_name) +} +inline void FieldName::set_collection_name(const char* value, size_t size) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.grpc.FieldName.collection_name) +} +inline std::string* FieldName::mutable_collection_name() { + + // @@protoc_insertion_point(field_mutable:milvus.grpc.FieldName.collection_name) + return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* FieldName::release_collection_name() { + // @@protoc_insertion_point(field_release:milvus.grpc.FieldName.collection_name) + + return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void FieldName::set_allocated_collection_name(std::string* collection_name) { + if (collection_name != nullptr) { + + } else { + + } + collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); + // @@protoc_insertion_point(field_set_allocated:milvus.grpc.FieldName.collection_name) +} + +// string field_name = 2; +inline void FieldName::clear_field_name() { + field_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& FieldName::field_name() const { + // @@protoc_insertion_point(field_get:milvus.grpc.FieldName.field_name) + return field_name_.GetNoArena(); +} +inline void FieldName::set_field_name(const std::string& value) { + + field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.grpc.FieldName.field_name) +} +inline void FieldName::set_field_name(std::string&& value) { + + field_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.FieldName.field_name) +} +inline void FieldName::set_field_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.grpc.FieldName.field_name) +} +inline void FieldName::set_field_name(const char* value, size_t size) { + + field_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.grpc.FieldName.field_name) +} +inline std::string* FieldName::mutable_field_name() { + + // @@protoc_insertion_point(field_mutable:milvus.grpc.FieldName.field_name) + return field_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* FieldName::release_field_name() { + // @@protoc_insertion_point(field_release:milvus.grpc.FieldName.field_name) + + return field_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void FieldName::set_allocated_field_name(std::string* field_name) { + if (field_name != nullptr) { + + } else { + + } + field_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), field_name); + // @@protoc_insertion_point(field_set_allocated:milvus.grpc.FieldName.field_name) +} + +// ------------------------------------------------------------------- + // Mapping // .milvus.grpc.Status status = 1; @@ -8642,106 +8689,106 @@ SearchParam::extra_params() const { // ------------------------------------------------------------------- -// SearchInFilesParam +// SearchInSegmentParam // repeated string file_id_array = 1; -inline int SearchInFilesParam::file_id_array_size() const { +inline int SearchInSegmentParam::file_id_array_size() const { return file_id_array_.size(); } -inline void SearchInFilesParam::clear_file_id_array() { +inline void SearchInSegmentParam::clear_file_id_array() { file_id_array_.Clear(); } -inline const std::string& SearchInFilesParam::file_id_array(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchInFilesParam.file_id_array) +inline const std::string& SearchInSegmentParam::file_id_array(int index) const { + // @@protoc_insertion_point(field_get:milvus.grpc.SearchInSegmentParam.file_id_array) return file_id_array_.Get(index); } -inline std::string* SearchInFilesParam::mutable_file_id_array(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchInFilesParam.file_id_array) +inline std::string* SearchInSegmentParam::mutable_file_id_array(int index) { + // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchInSegmentParam.file_id_array) return file_id_array_.Mutable(index); } -inline void SearchInFilesParam::set_file_id_array(int index, const std::string& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.SearchInFilesParam.file_id_array) +inline void SearchInSegmentParam::set_file_id_array(int index, const std::string& value) { + // @@protoc_insertion_point(field_set:milvus.grpc.SearchInSegmentParam.file_id_array) file_id_array_.Mutable(index)->assign(value); } -inline void SearchInFilesParam::set_file_id_array(int index, std::string&& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.SearchInFilesParam.file_id_array) +inline void SearchInSegmentParam::set_file_id_array(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:milvus.grpc.SearchInSegmentParam.file_id_array) file_id_array_.Mutable(index)->assign(std::move(value)); } -inline void SearchInFilesParam::set_file_id_array(int index, const char* value) { +inline void SearchInSegmentParam::set_file_id_array(int index, const char* value) { GOOGLE_DCHECK(value != nullptr); file_id_array_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:milvus.grpc.SearchInFilesParam.file_id_array) + // @@protoc_insertion_point(field_set_char:milvus.grpc.SearchInSegmentParam.file_id_array) } -inline void SearchInFilesParam::set_file_id_array(int index, const char* value, size_t size) { +inline void SearchInSegmentParam::set_file_id_array(int index, const char* value, size_t size) { file_id_array_.Mutable(index)->assign( reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.SearchInFilesParam.file_id_array) + // @@protoc_insertion_point(field_set_pointer:milvus.grpc.SearchInSegmentParam.file_id_array) } -inline std::string* SearchInFilesParam::add_file_id_array() { - // @@protoc_insertion_point(field_add_mutable:milvus.grpc.SearchInFilesParam.file_id_array) +inline std::string* SearchInSegmentParam::add_file_id_array() { + // @@protoc_insertion_point(field_add_mutable:milvus.grpc.SearchInSegmentParam.file_id_array) return file_id_array_.Add(); } -inline void SearchInFilesParam::add_file_id_array(const std::string& value) { +inline void SearchInSegmentParam::add_file_id_array(const std::string& value) { file_id_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add:milvus.grpc.SearchInFilesParam.file_id_array) + // @@protoc_insertion_point(field_add:milvus.grpc.SearchInSegmentParam.file_id_array) } -inline void SearchInFilesParam::add_file_id_array(std::string&& value) { +inline void SearchInSegmentParam::add_file_id_array(std::string&& value) { file_id_array_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:milvus.grpc.SearchInFilesParam.file_id_array) + // @@protoc_insertion_point(field_add:milvus.grpc.SearchInSegmentParam.file_id_array) } -inline void SearchInFilesParam::add_file_id_array(const char* value) { +inline void SearchInSegmentParam::add_file_id_array(const char* value) { GOOGLE_DCHECK(value != nullptr); file_id_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:milvus.grpc.SearchInFilesParam.file_id_array) + // @@protoc_insertion_point(field_add_char:milvus.grpc.SearchInSegmentParam.file_id_array) } -inline void SearchInFilesParam::add_file_id_array(const char* value, size_t size) { +inline void SearchInSegmentParam::add_file_id_array(const char* value, size_t size) { file_id_array_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:milvus.grpc.SearchInFilesParam.file_id_array) + // @@protoc_insertion_point(field_add_pointer:milvus.grpc.SearchInSegmentParam.file_id_array) } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -SearchInFilesParam::file_id_array() const { - // @@protoc_insertion_point(field_list:milvus.grpc.SearchInFilesParam.file_id_array) +SearchInSegmentParam::file_id_array() const { + // @@protoc_insertion_point(field_list:milvus.grpc.SearchInSegmentParam.file_id_array) return file_id_array_; } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* -SearchInFilesParam::mutable_file_id_array() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchInFilesParam.file_id_array) +SearchInSegmentParam::mutable_file_id_array() { + // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchInSegmentParam.file_id_array) return &file_id_array_; } // .milvus.grpc.SearchParam search_param = 2; -inline bool SearchInFilesParam::has_search_param() const { +inline bool SearchInSegmentParam::has_search_param() const { return this != internal_default_instance() && search_param_ != nullptr; } -inline void SearchInFilesParam::clear_search_param() { +inline void SearchInSegmentParam::clear_search_param() { if (GetArenaNoVirtual() == nullptr && search_param_ != nullptr) { delete search_param_; } search_param_ = nullptr; } -inline const ::milvus::grpc::SearchParam& SearchInFilesParam::search_param() const { +inline const ::milvus::grpc::SearchParam& SearchInSegmentParam::search_param() const { const ::milvus::grpc::SearchParam* p = search_param_; - // @@protoc_insertion_point(field_get:milvus.grpc.SearchInFilesParam.search_param) + // @@protoc_insertion_point(field_get:milvus.grpc.SearchInSegmentParam.search_param) return p != nullptr ? *p : *reinterpret_cast( &::milvus::grpc::_SearchParam_default_instance_); } -inline ::milvus::grpc::SearchParam* SearchInFilesParam::release_search_param() { - // @@protoc_insertion_point(field_release:milvus.grpc.SearchInFilesParam.search_param) +inline ::milvus::grpc::SearchParam* SearchInSegmentParam::release_search_param() { + // @@protoc_insertion_point(field_release:milvus.grpc.SearchInSegmentParam.search_param) ::milvus::grpc::SearchParam* temp = search_param_; search_param_ = nullptr; return temp; } -inline ::milvus::grpc::SearchParam* SearchInFilesParam::mutable_search_param() { +inline ::milvus::grpc::SearchParam* SearchInSegmentParam::mutable_search_param() { if (search_param_ == nullptr) { auto* p = CreateMaybeMessage<::milvus::grpc::SearchParam>(GetArenaNoVirtual()); search_param_ = p; } - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchInFilesParam.search_param) + // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchInSegmentParam.search_param) return search_param_; } -inline void SearchInFilesParam::set_allocated_search_param(::milvus::grpc::SearchParam* search_param) { +inline void SearchInSegmentParam::set_allocated_search_param(::milvus::grpc::SearchParam* search_param) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { delete search_param_; @@ -8757,321 +8804,7 @@ inline void SearchInFilesParam::set_allocated_search_param(::milvus::grpc::Searc } search_param_ = search_param; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.SearchInFilesParam.search_param) -} - -// ------------------------------------------------------------------- - -// SearchByIDParam - -// string collection_name = 1; -inline void SearchByIDParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& SearchByIDParam::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchByIDParam.collection_name) - return collection_name_.GetNoArena(); -} -inline void SearchByIDParam::set_collection_name(const std::string& value) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.SearchByIDParam.collection_name) -} -inline void SearchByIDParam::set_collection_name(std::string&& value) { - - collection_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.SearchByIDParam.collection_name) -} -inline void SearchByIDParam::set_collection_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.SearchByIDParam.collection_name) -} -inline void SearchByIDParam::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.SearchByIDParam.collection_name) -} -inline std::string* SearchByIDParam::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchByIDParam.collection_name) - return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* SearchByIDParam::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.SearchByIDParam.collection_name) - - return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void SearchByIDParam::set_allocated_collection_name(std::string* collection_name) { - if (collection_name != nullptr) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.SearchByIDParam.collection_name) -} - -// repeated string partition_tag_array = 2; -inline int SearchByIDParam::partition_tag_array_size() const { - return partition_tag_array_.size(); -} -inline void SearchByIDParam::clear_partition_tag_array() { - partition_tag_array_.Clear(); -} -inline const std::string& SearchByIDParam::partition_tag_array(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchByIDParam.partition_tag_array) - return partition_tag_array_.Get(index); -} -inline std::string* SearchByIDParam::mutable_partition_tag_array(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchByIDParam.partition_tag_array) - return partition_tag_array_.Mutable(index); -} -inline void SearchByIDParam::set_partition_tag_array(int index, const std::string& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.SearchByIDParam.partition_tag_array) - partition_tag_array_.Mutable(index)->assign(value); -} -inline void SearchByIDParam::set_partition_tag_array(int index, std::string&& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.SearchByIDParam.partition_tag_array) - partition_tag_array_.Mutable(index)->assign(std::move(value)); -} -inline void SearchByIDParam::set_partition_tag_array(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - partition_tag_array_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:milvus.grpc.SearchByIDParam.partition_tag_array) -} -inline void SearchByIDParam::set_partition_tag_array(int index, const char* value, size_t size) { - partition_tag_array_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.SearchByIDParam.partition_tag_array) -} -inline std::string* SearchByIDParam::add_partition_tag_array() { - // @@protoc_insertion_point(field_add_mutable:milvus.grpc.SearchByIDParam.partition_tag_array) - return partition_tag_array_.Add(); -} -inline void SearchByIDParam::add_partition_tag_array(const std::string& value) { - partition_tag_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add:milvus.grpc.SearchByIDParam.partition_tag_array) -} -inline void SearchByIDParam::add_partition_tag_array(std::string&& value) { - partition_tag_array_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:milvus.grpc.SearchByIDParam.partition_tag_array) -} -inline void SearchByIDParam::add_partition_tag_array(const char* value) { - GOOGLE_DCHECK(value != nullptr); - partition_tag_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:milvus.grpc.SearchByIDParam.partition_tag_array) -} -inline void SearchByIDParam::add_partition_tag_array(const char* value, size_t size) { - partition_tag_array_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:milvus.grpc.SearchByIDParam.partition_tag_array) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -SearchByIDParam::partition_tag_array() const { - // @@protoc_insertion_point(field_list:milvus.grpc.SearchByIDParam.partition_tag_array) - return partition_tag_array_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* -SearchByIDParam::mutable_partition_tag_array() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchByIDParam.partition_tag_array) - return &partition_tag_array_; -} - -// repeated int64 id_array = 3; -inline int SearchByIDParam::id_array_size() const { - return id_array_.size(); -} -inline void SearchByIDParam::clear_id_array() { - id_array_.Clear(); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 SearchByIDParam::id_array(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchByIDParam.id_array) - return id_array_.Get(index); -} -inline void SearchByIDParam::set_id_array(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) { - id_array_.Set(index, value); - // @@protoc_insertion_point(field_set:milvus.grpc.SearchByIDParam.id_array) -} -inline void SearchByIDParam::add_id_array(::PROTOBUF_NAMESPACE_ID::int64 value) { - id_array_.Add(value); - // @@protoc_insertion_point(field_add:milvus.grpc.SearchByIDParam.id_array) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& -SearchByIDParam::id_array() const { - // @@protoc_insertion_point(field_list:milvus.grpc.SearchByIDParam.id_array) - return id_array_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* -SearchByIDParam::mutable_id_array() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchByIDParam.id_array) - return &id_array_; -} - -// int64 topk = 4; -inline void SearchByIDParam::clear_topk() { - topk_ = PROTOBUF_LONGLONG(0); -} -inline ::PROTOBUF_NAMESPACE_ID::int64 SearchByIDParam::topk() const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchByIDParam.topk) - return topk_; -} -inline void SearchByIDParam::set_topk(::PROTOBUF_NAMESPACE_ID::int64 value) { - - topk_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.SearchByIDParam.topk) -} - -// repeated .milvus.grpc.KeyValuePair extra_params = 5; -inline int SearchByIDParam::extra_params_size() const { - return extra_params_.size(); -} -inline void SearchByIDParam::clear_extra_params() { - extra_params_.Clear(); -} -inline ::milvus::grpc::KeyValuePair* SearchByIDParam::mutable_extra_params(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchByIDParam.extra_params) - return extra_params_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >* -SearchByIDParam::mutable_extra_params() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchByIDParam.extra_params) - return &extra_params_; -} -inline const ::milvus::grpc::KeyValuePair& SearchByIDParam::extra_params(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchByIDParam.extra_params) - return extra_params_.Get(index); -} -inline ::milvus::grpc::KeyValuePair* SearchByIDParam::add_extra_params() { - // @@protoc_insertion_point(field_add:milvus.grpc.SearchByIDParam.extra_params) - return extra_params_.Add(); -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::KeyValuePair >& -SearchByIDParam::extra_params() const { - // @@protoc_insertion_point(field_list:milvus.grpc.SearchByIDParam.extra_params) - return extra_params_; -} - -// ------------------------------------------------------------------- - -// ReLoadSegmentsParam - -// string collection_name = 1; -inline void ReLoadSegmentsParam::clear_collection_name() { - collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline const std::string& ReLoadSegmentsParam::collection_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.ReLoadSegmentsParam.collection_name) - return collection_name_.GetNoArena(); -} -inline void ReLoadSegmentsParam::set_collection_name(const std::string& value) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.ReLoadSegmentsParam.collection_name) -} -inline void ReLoadSegmentsParam::set_collection_name(std::string&& value) { - - collection_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.ReLoadSegmentsParam.collection_name) -} -inline void ReLoadSegmentsParam::set_collection_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.ReLoadSegmentsParam.collection_name) -} -inline void ReLoadSegmentsParam::set_collection_name(const char* value, size_t size) { - - collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.ReLoadSegmentsParam.collection_name) -} -inline std::string* ReLoadSegmentsParam::mutable_collection_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.ReLoadSegmentsParam.collection_name) - return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* ReLoadSegmentsParam::release_collection_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.ReLoadSegmentsParam.collection_name) - - return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void ReLoadSegmentsParam::set_allocated_collection_name(std::string* collection_name) { - if (collection_name != nullptr) { - - } else { - - } - collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.ReLoadSegmentsParam.collection_name) -} - -// repeated string segment_id_array = 2; -inline int ReLoadSegmentsParam::segment_id_array_size() const { - return segment_id_array_.size(); -} -inline void ReLoadSegmentsParam::clear_segment_id_array() { - segment_id_array_.Clear(); -} -inline const std::string& ReLoadSegmentsParam::segment_id_array(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.ReLoadSegmentsParam.segment_id_array) - return segment_id_array_.Get(index); -} -inline std::string* ReLoadSegmentsParam::mutable_segment_id_array(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.ReLoadSegmentsParam.segment_id_array) - return segment_id_array_.Mutable(index); -} -inline void ReLoadSegmentsParam::set_segment_id_array(int index, const std::string& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.ReLoadSegmentsParam.segment_id_array) - segment_id_array_.Mutable(index)->assign(value); -} -inline void ReLoadSegmentsParam::set_segment_id_array(int index, std::string&& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.ReLoadSegmentsParam.segment_id_array) - segment_id_array_.Mutable(index)->assign(std::move(value)); -} -inline void ReLoadSegmentsParam::set_segment_id_array(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - segment_id_array_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:milvus.grpc.ReLoadSegmentsParam.segment_id_array) -} -inline void ReLoadSegmentsParam::set_segment_id_array(int index, const char* value, size_t size) { - segment_id_array_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.ReLoadSegmentsParam.segment_id_array) -} -inline std::string* ReLoadSegmentsParam::add_segment_id_array() { - // @@protoc_insertion_point(field_add_mutable:milvus.grpc.ReLoadSegmentsParam.segment_id_array) - return segment_id_array_.Add(); -} -inline void ReLoadSegmentsParam::add_segment_id_array(const std::string& value) { - segment_id_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add:milvus.grpc.ReLoadSegmentsParam.segment_id_array) -} -inline void ReLoadSegmentsParam::add_segment_id_array(std::string&& value) { - segment_id_array_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:milvus.grpc.ReLoadSegmentsParam.segment_id_array) -} -inline void ReLoadSegmentsParam::add_segment_id_array(const char* value) { - GOOGLE_DCHECK(value != nullptr); - segment_id_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:milvus.grpc.ReLoadSegmentsParam.segment_id_array) -} -inline void ReLoadSegmentsParam::add_segment_id_array(const char* value, size_t size) { - segment_id_array_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:milvus.grpc.ReLoadSegmentsParam.segment_id_array) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -ReLoadSegmentsParam::segment_id_array() const { - // @@protoc_insertion_point(field_list:milvus.grpc.ReLoadSegmentsParam.segment_id_array) - return segment_id_array_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* -ReLoadSegmentsParam::mutable_segment_id_array() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.ReLoadSegmentsParam.segment_id_array) - return &segment_id_array_; + // @@protoc_insertion_point(field_set_allocated:milvus.grpc.SearchInSegmentParam.search_param) } // ------------------------------------------------------------------- @@ -10001,6 +9734,75 @@ FlushParam::mutable_collection_name_array() { // ------------------------------------------------------------------- +// CompactParam + +// string collection_name = 1; +inline void CompactParam::clear_collection_name() { + collection_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& CompactParam::collection_name() const { + // @@protoc_insertion_point(field_get:milvus.grpc.CompactParam.collection_name) + return collection_name_.GetNoArena(); +} +inline void CompactParam::set_collection_name(const std::string& value) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.grpc.CompactParam.collection_name) +} +inline void CompactParam::set_collection_name(std::string&& value) { + + collection_name_.SetNoArena( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.CompactParam.collection_name) +} +inline void CompactParam::set_collection_name(const char* value) { + GOOGLE_DCHECK(value != nullptr); + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.grpc.CompactParam.collection_name) +} +inline void CompactParam::set_collection_name(const char* value, size_t size) { + + collection_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ::std::string(reinterpret_cast(value), size)); + // @@protoc_insertion_point(field_set_pointer:milvus.grpc.CompactParam.collection_name) +} +inline std::string* CompactParam::mutable_collection_name() { + + // @@protoc_insertion_point(field_mutable:milvus.grpc.CompactParam.collection_name) + return collection_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline std::string* CompactParam::release_collection_name() { + // @@protoc_insertion_point(field_release:milvus.grpc.CompactParam.collection_name) + + return collection_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline void CompactParam::set_allocated_collection_name(std::string* collection_name) { + if (collection_name != nullptr) { + + } else { + + } + collection_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), collection_name); + // @@protoc_insertion_point(field_set_allocated:milvus.grpc.CompactParam.collection_name) +} + +// double threshold = 2; +inline void CompactParam::clear_threshold() { + threshold_ = 0; +} +inline double CompactParam::threshold() const { + // @@protoc_insertion_point(field_get:milvus.grpc.CompactParam.threshold) + return threshold_; +} +inline void CompactParam::set_threshold(double value) { + + threshold_ = value; + // @@protoc_insertion_point(field_set:milvus.grpc.CompactParam.threshold) +} + +// ------------------------------------------------------------------- + // DeleteByIDParam // string collection_name = 1; @@ -10239,55 +10041,18 @@ inline void GetEntityIDsParam::set_allocated_collection_name(std::string* collec // @@protoc_insertion_point(field_set_allocated:milvus.grpc.GetEntityIDsParam.collection_name) } -// string segment_name = 2; -inline void GetEntityIDsParam::clear_segment_name() { - segment_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +// int64 segment_id = 2; +inline void GetEntityIDsParam::clear_segment_id() { + segment_id_ = PROTOBUF_LONGLONG(0); } -inline const std::string& GetEntityIDsParam::segment_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.GetEntityIDsParam.segment_name) - return segment_name_.GetNoArena(); +inline ::PROTOBUF_NAMESPACE_ID::int64 GetEntityIDsParam::segment_id() const { + // @@protoc_insertion_point(field_get:milvus.grpc.GetEntityIDsParam.segment_id) + return segment_id_; } -inline void GetEntityIDsParam::set_segment_name(const std::string& value) { +inline void GetEntityIDsParam::set_segment_id(::PROTOBUF_NAMESPACE_ID::int64 value) { - segment_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.GetEntityIDsParam.segment_name) -} -inline void GetEntityIDsParam::set_segment_name(std::string&& value) { - - segment_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.GetEntityIDsParam.segment_name) -} -inline void GetEntityIDsParam::set_segment_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - segment_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.GetEntityIDsParam.segment_name) -} -inline void GetEntityIDsParam::set_segment_name(const char* value, size_t size) { - - segment_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.GetEntityIDsParam.segment_name) -} -inline std::string* GetEntityIDsParam::mutable_segment_name() { - - // @@protoc_insertion_point(field_mutable:milvus.grpc.GetEntityIDsParam.segment_name) - return segment_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline std::string* GetEntityIDsParam::release_segment_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.GetEntityIDsParam.segment_name) - - return segment_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} -inline void GetEntityIDsParam::set_allocated_segment_name(std::string* segment_name) { - if (segment_name != nullptr) { - - } else { - - } - segment_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), segment_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.GetEntityIDsParam.segment_name) + segment_id_ = value; + // @@protoc_insertion_point(field_set:milvus.grpc.GetEntityIDsParam.segment_id) } // ------------------------------------------------------------------- diff --git a/sdk/grpc/ClientProxy.cpp b/sdk/grpc/ClientProxy.cpp index 351ed0ccdb..51cde23819 100644 --- a/sdk/grpc/ClientProxy.cpp +++ b/sdk/grpc/ClientProxy.cpp @@ -757,12 +757,12 @@ ClientProxy::Search(const std::string& collection_name, const std::vector& id_array) { try { ::milvus::grpc::GetEntityIDsParam param; param.set_collection_name(collection_name); - param.set_segment_name(segment_name); + param.set_segment_id(segment_id); ::milvus::grpc::EntityIds entity_ids; Status status = client_ptr_->ListIDInSegment(param, entity_ids); @@ -805,11 +805,12 @@ ClientProxy::Flush(const std::vector& collection_name_array) { } Status -ClientProxy::Compact(const std::string& collection_name) { +ClientProxy::Compact(const std::string& collection_name, const double& threshold) { try { - ::milvus::grpc::CollectionName grpc_collection_name; - grpc_collection_name.set_collection_name(collection_name); - Status status = client_ptr_->Compact(grpc_collection_name); + ::milvus::grpc::CompactParam grpc_compact_param; + grpc_compact_param.set_collection_name(collection_name); + grpc_compact_param.set_threshold(threshold); + Status status = client_ptr_->Compact(grpc_compact_param); return status; } catch (std::exception& ex) { return Status(StatusCode::UnknownError, "Failed to compact collection: " + std::string(ex.what())); diff --git a/sdk/grpc/ClientProxy.h b/sdk/grpc/ClientProxy.h index ff2979a8c7..1b394d648f 100644 --- a/sdk/grpc/ClientProxy.h +++ b/sdk/grpc/ClientProxy.h @@ -95,7 +95,7 @@ class ClientProxy : public Connection { BooleanQueryPtr& boolean_query, const std::string& extra_params, TopKQueryResult& query_result) override; Status - ListIDInSegment(const std::string& collection_name, const std::string& segment_name, + ListIDInSegment(const std::string& collection_name, const int64_t& segment_id, std::vector& id_array) override; Status @@ -105,7 +105,7 @@ class ClientProxy : public Connection { Flush(const std::vector& collection_name_array) override; Status - Compact(const std::string& collection_name) override; + Compact(const std::string& collection_name, const double& threshold) override; private: std::shared_ptr<::grpc::Channel> channel_; diff --git a/sdk/grpc/GrpcClient.cpp b/sdk/grpc/GrpcClient.cpp index c0cd5de583..337bc4eb03 100644 --- a/sdk/grpc/GrpcClient.cpp +++ b/sdk/grpc/GrpcClient.cpp @@ -318,23 +318,6 @@ GrpcClient::DeleteEntityByID(grpc::DeleteByIDParam& delete_by_id_param) { return Status::OK(); } -Status -GrpcClient::GetIndexInfo(grpc::CollectionName& collection_name, grpc::IndexParam& index_param) { - ClientContext context; - ::grpc::Status grpc_status = stub_->DescribeIndex(&context, collection_name, &index_param); - - if (!grpc_status.ok()) { - std::cerr << "DescribeIndex rpc failed!" << std::endl; - return Status(StatusCode::RPCFailed, grpc_status.error_message()); - } - if (index_param.status().error_code() != grpc::SUCCESS) { - std::cerr << index_param.status().reason() << std::endl; - return Status(StatusCode::ServerFailed, index_param.status().reason()); - } - - return Status::OK(); -} - Status GrpcClient::DropIndex(grpc::IndexParam& index_param) { ClientContext context; @@ -449,10 +432,10 @@ GrpcClient::Flush(const std::string& collection_name) { } Status -GrpcClient::Compact(milvus::grpc::CollectionName& collection_name) { +GrpcClient::Compact(milvus::grpc::CompactParam& compact_param) { ClientContext context; ::milvus::grpc::Status response; - ::grpc::Status grpc_status = stub_->Compact(&context, collection_name, &response); + ::grpc::Status grpc_status = stub_->Compact(&context, compact_param, &response); if (!grpc_status.ok()) { std::cerr << "Compact gRPC failed!" << std::endl; diff --git a/sdk/grpc/GrpcClient.h b/sdk/grpc/GrpcClient.h index f7cae141c0..665e9f5a76 100644 --- a/sdk/grpc/GrpcClient.h +++ b/sdk/grpc/GrpcClient.h @@ -80,9 +80,6 @@ class GrpcClient { Status LoadCollection(grpc::CollectionName& collection_name); - Status - GetIndexInfo(grpc::CollectionName& collection_name, grpc::IndexParam& index_param); - Status DropIndex(grpc::IndexParam& index_param); @@ -102,7 +99,7 @@ class GrpcClient { Flush(const std::string& collection_name); Status - Compact(milvus::grpc::CollectionName& collection_name); + Compact(milvus::grpc::CompactParam& compact_param); Status Disconnect(); diff --git a/sdk/include/MilvusApi.h b/sdk/include/MilvusApi.h index cdd7588661..fc595e6b8a 100644 --- a/sdk/include/MilvusApi.h +++ b/sdk/include/MilvusApi.h @@ -476,7 +476,7 @@ class Connection { * @return Indicate if the operation is succeed. */ virtual Status - ListIDInSegment(const std::string& collection_name, const std::string& segment_name, + ListIDInSegment(const std::string& collection_name, const int64_t& segment_id, std::vector& id_array) = 0; /** @@ -509,11 +509,12 @@ class Connection { * This method is used to compact collection * * @param collection_name, target collection's name. + * @param threshold * * @return Indicate if this operation is successful. */ virtual Status - Compact(const std::string& collection_name) = 0; + Compact(const std::string& collection_name, const double& threshold) = 0; }; } // namespace milvus diff --git a/sdk/interface/ConnectionImpl.cpp b/sdk/interface/ConnectionImpl.cpp index a429e56522..648ce21af4 100644 --- a/sdk/interface/ConnectionImpl.cpp +++ b/sdk/interface/ConnectionImpl.cpp @@ -146,9 +146,9 @@ ConnectionImpl::SearchPB(const std::string& collection_name, const std::vector& id_array) { - return client_proxy_->ListIDInSegment(collection_name, segment_name, id_array); + return client_proxy_->ListIDInSegment(collection_name, segment_id, id_array); } Status @@ -162,8 +162,8 @@ ConnectionImpl::Flush(const std::vector& collection_name_array) { } Status -ConnectionImpl::Compact(const std::string& collection_name) { - return client_proxy_->Compact(collection_name); +ConnectionImpl::Compact(const std::string& collection_name, const double& threshold) { + return client_proxy_->Compact(collection_name, threshold); } } // namespace milvus diff --git a/sdk/interface/ConnectionImpl.h b/sdk/interface/ConnectionImpl.h index dd47f0fee6..ae86cfbf71 100644 --- a/sdk/interface/ConnectionImpl.h +++ b/sdk/interface/ConnectionImpl.h @@ -37,20 +37,20 @@ class ConnectionImpl : public Connection { Status Disconnect() override; -// std::string -// ClientVersion() const override; -// -// std::string -// ServerVersion() const override; -// -// std::string -// ServerStatus() const override; -// -// Status -// GetConfig(const std::string& node_name, std::string& value) const override; -// -// Status -// SetConfig(const std::string& node_name, const std::string& value) const override; + // std::string + // ClientVersion() const override; + // + // std::string + // ServerVersion() const override; + // + // std::string + // ServerStatus() const override; + // + // Status + // GetConfig(const std::string& node_name, std::string& value) const override; + // + // Status + // SetConfig(const std::string& node_name, const std::string& value) const override; Status CreateCollection(const Mapping& mapping, const std::string& extra_params) override; @@ -112,7 +112,7 @@ class ConnectionImpl : public Connection { BooleanQueryPtr& boolean_query, const std::string& extra_params, TopKQueryResult& query_result) override; Status - ListIDInSegment(const std::string& collection_name, const std::string& segment_name, + ListIDInSegment(const std::string& collection_name, const int64_t& segment_id, std::vector& id_array) override; Status @@ -122,7 +122,7 @@ class ConnectionImpl : public Connection { Flush(const std::vector& collection_name_array) override; Status - Compact(const std::string& collection_name) override; + Compact(const std::string& collection_name, const double& threshold) override; private: std::shared_ptr client_proxy_;