diff --git a/cpp/CHANGELOG.md b/cpp/CHANGELOG.md index a562c4ea040895366d4abe5f5961357ca9c50e18..b5c0575b60d29c42495032786a7d9603e6089554 100644 --- a/cpp/CHANGELOG.md +++ b/cpp/CHANGELOG.md @@ -13,6 +13,7 @@ Please mark all change in change log and use the ticket from JIRA. - MS-327 - Clean code for milvus ## New Feature +- MS-343 - Implement ResourceMgr ## Task - MS-297 - disable mysql unit test diff --git a/cpp/build.sh b/cpp/build.sh index 42a7d714a612d3b0f33456ee0fe87acbadc1654d..1279725162ff059f44ee708168ab359b4e0c137a 100755 --- a/cpp/build.sh +++ b/cpp/build.sh @@ -11,7 +11,7 @@ PROFILING="OFF" BUILD_FAISS_WITH_MKL="OFF" USE_JFROG_CACHE="OFF" KNOWHERE_OPTS="" -MILVUS_WITH_THRIFT="ON" +MILVUS_WITH_THRIFT="OFF" while getopts "p:d:t:uhlrcgmj" arg do diff --git a/cpp/cmake/DefineOptions.cmake b/cpp/cmake/DefineOptions.cmake index af89dccb4bb5762de3acc8187959fe336d2d512f..d0624bd0fdd0d6cbe3711f037826d824695c7820 100644 --- a/cpp/cmake/DefineOptions.cmake +++ b/cpp/cmake/DefineOptions.cmake @@ -90,7 +90,7 @@ define_option(MILVUS_WITH_SQLITE_ORM "Build with SQLite ORM library" ON) define_option(MILVUS_WITH_MYSQLPP "Build with MySQL++" ON) -define_option(MILVUS_WITH_THRIFT "Build with Apache Thrift library" ON) +define_option(MILVUS_WITH_THRIFT "Build with Apache Thrift library" OFF) define_option(MILVUS_WITH_YAMLCPP "Build with yaml-cpp library" ON) diff --git a/cpp/cmake/ThirdPartyPackages.cmake b/cpp/cmake/ThirdPartyPackages.cmake index 13039d5856348bd262f4e12a38b5fa79a087fc3e..61e393af7a0987719a648e92ba08b3a1b68cfd33 100644 --- a/cpp/cmake/ThirdPartyPackages.cmake +++ b/cpp/cmake/ThirdPartyPackages.cmake @@ -2679,7 +2679,7 @@ macro(build_grpc) add_dependencies(grpc_protoc grpc_ep) endmacro() -#if(NOT MILVUS_WITH_THRIFT STREQUAL "ON") +if(NOT MILVUS_WITH_THRIFT STREQUAL "ON") resolve_dependency(GRPC) get_target_property(GRPC_INCLUDE_DIR grpc INTERFACE_INCLUDE_DIRECTORIES) @@ -2690,4 +2690,4 @@ endmacro() include_directories(SYSTEM ${GRPC_THIRD_PARTY_DIR}/protobuf/src) link_directories(SYSTEM ${GRPC_PROTOBUF_LIB_DIR}) -#endif() +endif() diff --git a/cpp/scripts/start_server.sh b/cpp/scripts/start_server.sh index 312cef86d6f1cd0714b1e948489a8f8514b5a36f..72e120f2ce2c43a04b7913494e9ab493c18ae1c2 100755 --- a/cpp/scripts/start_server.sh +++ b/cpp/scripts/start_server.sh @@ -1,4 +1,4 @@ #!/bin/bash -../bin/milvus_server -c ../conf/server_config.yaml -l ../conf/log_config.conf +../bin/milvus_grpc_server -c ../conf/server_config.yaml -l ../conf/log_config.conf diff --git a/cpp/src/CMakeLists.txt b/cpp/src/CMakeLists.txt index 63edcd3993f4ef0ae2514182d5876f28057b8532..9182ff9d9a71c23e4e842aafa4c2e7d5c129d51a 100644 --- a/cpp/src/CMakeLists.txt +++ b/cpp/src/CMakeLists.txt @@ -35,6 +35,7 @@ set(license_generator_files license/LicenseLibrary.cpp ) +if (MILVUS_WITH_THRIFT STREQUAL "ON") set(thrift_service_files thrift/gen-cpp/MilvusService.cpp thrift/gen-cpp/milvus_constants.cpp @@ -44,7 +45,7 @@ set(thrift_service_files server/thrift_impl/ThreadPoolServer.cpp server/thrift_impl/ThreadPoolServer.h ) - +else() set(grpc_service_files metrics/SystemInfo.cpp metrics/SystemInfo.h @@ -53,6 +54,7 @@ set(grpc_service_files grpc/gen-status/status.grpc.pb.cc grpc/gen-status/status.pb.cc ) +endif() set(db_files ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp @@ -77,17 +79,17 @@ include_directories(/usr/include/mysql) include_directories(grpc/gen-status) include_directories(grpc/gen-milvus) -#if (MILVUS_WITH_THRIFT STREQUAL "ON") +if (MILVUS_WITH_THRIFT STREQUAL "ON") set(client_thrift_lib thrift) -#else() +else() set(client_grpc_lib grpcpp_channelz grpc++ grpc grpc_protobuf grpc_protoc) -#endif() +endif() set(third_party_libs knowhere @@ -197,34 +199,25 @@ set(knowhere_libs tbb ) -#if (MILVUS_WITH_THRIFT STREQUAL "ON") -# add_executable(milvus_thrift_server -# ${config_files} -# ${server_files} -# ${thriftserver_files} -# ${utils_files} -# ${thrift_service_files} -# ${metrics_files} -# ) -#else() -# add_executable(milvus_grpc_server -# ${config_files} -# ${server_files} -# ${grpcserver_files} -# ${utils_files} -# ${grpc_service_files} -# ${metrics_files} -# ) -#endif() -add_executable(milvus_server - ${config_files} - ${server_files} - ${thriftserver_files} - ${grpcserver_files} - ${utils_files} - ${thrift_service_files} - ${grpc_service_files} - ${metrics_files}) +if (MILVUS_WITH_THRIFT STREQUAL "ON") + add_executable(milvus_thrift_server + ${config_files} + ${server_files} + ${thriftserver_files} + ${utils_files} + ${thrift_service_files} + ${metrics_files} + ) +else() + add_executable(milvus_grpc_server + ${config_files} + ${server_files} + ${grpcserver_files} + ${utils_files} + ${grpc_service_files} + ${metrics_files} + ) +endif() if (ENABLE_LICENSE STREQUAL "ON") add_executable(get_sys_info ${get_sys_info_files}) @@ -233,28 +226,25 @@ if (ENABLE_LICENSE STREQUAL "ON") target_link_libraries(get_sys_info ${license_libs} license_check ${third_party_libs}) target_link_libraries(license_generator ${license_libs} ${third_party_libs}) -# if(MILVUS_WITH_THRIFT STREQUAL "ON") -# target_link_libraries(milvus_thrift_server ${server_libs} license_check ${knowhere_libs} ${third_party_libs}) -# else() -# target_link_libraries(milvus_grpc_server ${server_libs} license_check ${knowhere_libs} ${third_party_libs}) -# endif() - target_link_libraries(milvus_server ${server_libs} license_check ${knowhere_libs} ${third_party_libs}) + if(MILVUS_WITH_THRIFT STREQUAL "ON") + target_link_libraries(milvus_thrift_server ${server_libs} license_check ${knowhere_libs} ${third_party_libs}) + else() + target_link_libraries(milvus_grpc_server ${server_libs} license_check ${knowhere_libs} ${third_party_libs}) + endif() else () -# if(MILVUS_WITH_THRIFT STREQUAL "ON") -# target_link_libraries(milvus_thrift_server ${server_libs} ${knowhere_libs} ${third_party_libs}) -# else() -# target_link_libraries(milvus_grpc_server ${server_libs} ${knowhere_libs} ${third_party_libs}) -# endif() - target_link_libraries(milvus_server ${server_libs} ${knowhere_libs} ${third_party_libs}) + if(MILVUS_WITH_THRIFT STREQUAL "ON") + target_link_libraries(milvus_thrift_server ${server_libs} ${knowhere_libs} ${third_party_libs}) + else() + target_link_libraries(milvus_grpc_server ${server_libs} ${knowhere_libs} ${third_party_libs}) + endif() endif() -#if (MILVUS_WITH_THRIFT STREQUAL "ON") -# install(TARGETS milvus_thrift_server DESTINATION bin) -#else() -# install(TARGETS milvus_grpc_server DESTINATION bin) -#endif() - install(TARGETS milvus_server DESTINATION bin) +if (MILVUS_WITH_THRIFT STREQUAL "ON") + install(TARGETS milvus_thrift_server DESTINATION bin) +else() + install(TARGETS milvus_grpc_server DESTINATION bin) +endif() install(FILES ${KNOWHERE_BUILD_DIR}/lib/${CMAKE_SHARED_LIBRARY_PREFIX}tbb${CMAKE_SHARED_LIBRARY_SUFFIX} diff --git a/cpp/src/grpc/cpp_gen.sh b/cpp/src/grpc/cpp_gen.sh old mode 100644 new mode 100755 index 91cbc907a60c8b6929ce2e7b6feb5aef875a8749..c441783e7b853d923b1e18f45ddeebbf5c172038 --- a/cpp/src/grpc/cpp_gen.sh +++ b/cpp/src/grpc/cpp_gen.sh @@ -1,9 +1,9 @@ #!/bin/bash -protoc -I . --grpc_out=./gen-status --plugin=protoc-gen-grpc=`which grpc_cpp_plugin` status.proto +/home/yukun/test/milvus/cpp/cmake-build-debug/grpc_ep-prefix/src/grpc_ep/bins/opt/protobuf/protoc -I . --grpc_out=./gen-status --plugin=protoc-gen-grpc="/home/yukun/test/milvus/cpp/cmake-build-debug/grpc_ep-prefix/src/grpc_ep/bins/opt/grpc_cpp_plugin" status.proto -protoc -I . --cpp_out=./gen-status status.proto +/home/yukun/test/milvus/cpp/cmake-build-debug/grpc_ep-prefix/src/grpc_ep/bins/opt/protobuf/protoc -I . --cpp_out=./gen-status status.proto -protoc -I . --grpc_out=./gen-milvus --plugin=protoc-gen-grpc=`which grpc_cpp_plugin` milvus.proto +/home/yukun/test/milvus/cpp/cmake-build-debug/grpc_ep-prefix/src/grpc_ep/bins/opt/protobuf/protoc -I . --grpc_out=./gen-milvus --plugin=protoc-gen-grpc="/home/yukun/test/milvus/cpp/cmake-build-debug/grpc_ep-prefix/src/grpc_ep/bins/opt/grpc_cpp_plugin" milvus.proto -protoc -I . --cpp_out=./gen-milvus milvus.proto \ No newline at end of file +/home/yukun/test/milvus/cpp/cmake-build-debug/grpc_ep-prefix/src/grpc_ep/bins/opt/protobuf/protoc -I . --cpp_out=./gen-milvus milvus.proto \ No newline at end of file diff --git a/cpp/src/grpc/gen-milvus/milvus.grpc.pb.cc b/cpp/src/grpc/gen-milvus/milvus.grpc.pb.cc index 96feaaf014b19b81bc2a7174b37e106be4dc4bd3..2ef7baf5518c3730db612250ccfe364a25e142fa 100644 --- a/cpp/src/grpc/gen-milvus/milvus.grpc.pb.cc +++ b/cpp/src/grpc/gen-milvus/milvus.grpc.pb.cc @@ -23,14 +23,18 @@ static const char* MilvusService_method_names[] = { "/milvus.grpc.MilvusService/CreateTable", "/milvus.grpc.MilvusService/HasTable", "/milvus.grpc.MilvusService/DropTable", - "/milvus.grpc.MilvusService/BuildIndex", - "/milvus.grpc.MilvusService/InsertVector", - "/milvus.grpc.MilvusService/SearchVector", - "/milvus.grpc.MilvusService/SearchVectorInFiles", + "/milvus.grpc.MilvusService/CreateIndex", + "/milvus.grpc.MilvusService/Insert", + "/milvus.grpc.MilvusService/Search", + "/milvus.grpc.MilvusService/SearchInFiles", "/milvus.grpc.MilvusService/DescribeTable", - "/milvus.grpc.MilvusService/GetTableRowCount", + "/milvus.grpc.MilvusService/CountTable", "/milvus.grpc.MilvusService/ShowTables", - "/milvus.grpc.MilvusService/Ping", + "/milvus.grpc.MilvusService/Cmd", + "/milvus.grpc.MilvusService/DeleteByRange", + "/milvus.grpc.MilvusService/PreloadTable", + "/milvus.grpc.MilvusService/DescribeIndex", + "/milvus.grpc.MilvusService/DropIndex", }; std::unique_ptr< MilvusService::Stub> MilvusService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { @@ -43,14 +47,18 @@ MilvusService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& chan : channel_(channel), rpcmethod_CreateTable_(MilvusService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_HasTable_(MilvusService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_DropTable_(MilvusService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_BuildIndex_(MilvusService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_InsertVector_(MilvusService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_SearchVector_(MilvusService_method_names[5], ::grpc::internal::RpcMethod::SERVER_STREAMING, channel) - , rpcmethod_SearchVectorInFiles_(MilvusService_method_names[6], ::grpc::internal::RpcMethod::SERVER_STREAMING, channel) + , rpcmethod_CreateIndex_(MilvusService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Insert_(MilvusService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Search_(MilvusService_method_names[5], ::grpc::internal::RpcMethod::SERVER_STREAMING, channel) + , rpcmethod_SearchInFiles_(MilvusService_method_names[6], ::grpc::internal::RpcMethod::SERVER_STREAMING, channel) , rpcmethod_DescribeTable_(MilvusService_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetTableRowCount_(MilvusService_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_CountTable_(MilvusService_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_ShowTables_(MilvusService_method_names[9], ::grpc::internal::RpcMethod::SERVER_STREAMING, channel) - , rpcmethod_Ping_(MilvusService_method_names[10], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_Cmd_(MilvusService_method_names[10], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DeleteByRange_(MilvusService_method_names[11], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_PreloadTable_(MilvusService_method_names[12], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DescribeIndex_(MilvusService_method_names[13], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_DropIndex_(MilvusService_method_names[14], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status MilvusService::Stub::CreateTable(::grpc::ClientContext* context, const ::milvus::grpc::TableSchema& request, ::milvus::grpc::Status* response) { @@ -137,92 +145,92 @@ void MilvusService::Stub::experimental_async::DropTable(::grpc::ClientContext* c return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::Status>::Create(channel_.get(), cq, rpcmethod_DropTable_, context, request, false); } -::grpc::Status MilvusService::Stub::BuildIndex(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::milvus::grpc::Status* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_BuildIndex_, context, request, response); +::grpc::Status MilvusService::Stub::CreateIndex(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam& request, ::milvus::grpc::Status* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateIndex_, context, request, response); } -void MilvusService::Stub::experimental_async::BuildIndex(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response, std::function f) { - ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_BuildIndex_, context, request, response, std::move(f)); +void MilvusService::Stub::experimental_async::CreateIndex(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam* request, ::milvus::grpc::Status* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateIndex_, context, request, response, std::move(f)); } -void MilvusService::Stub::experimental_async::BuildIndex(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, std::function f) { - ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_BuildIndex_, context, request, response, std::move(f)); +void MilvusService::Stub::experimental_async::CreateIndex(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateIndex_, context, request, response, std::move(f)); } -void MilvusService::Stub::experimental_async::BuildIndex(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_BuildIndex_, context, request, response, reactor); +void MilvusService::Stub::experimental_async::CreateIndex(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateIndex_, context, request, response, reactor); } -void MilvusService::Stub::experimental_async::BuildIndex(::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_BuildIndex_, context, request, response, reactor); +void MilvusService::Stub::experimental_async::CreateIndex(::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_CreateIndex_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* MilvusService::Stub::AsyncBuildIndexRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { - return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::Status>::Create(channel_.get(), cq, rpcmethod_BuildIndex_, context, request, true); +::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* MilvusService::Stub::AsyncCreateIndexRaw(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::Status>::Create(channel_.get(), cq, rpcmethod_CreateIndex_, context, request, true); } -::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* MilvusService::Stub::PrepareAsyncBuildIndexRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { - return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::Status>::Create(channel_.get(), cq, rpcmethod_BuildIndex_, context, request, false); +::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* MilvusService::Stub::PrepareAsyncCreateIndexRaw(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::Status>::Create(channel_.get(), cq, rpcmethod_CreateIndex_, context, request, false); } -::grpc::Status MilvusService::Stub::InsertVector(::grpc::ClientContext* context, const ::milvus::grpc::InsertInfos& request, ::milvus::grpc::VectorIds* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_InsertVector_, context, request, response); +::grpc::Status MilvusService::Stub::Insert(::grpc::ClientContext* context, const ::milvus::grpc::InsertParam& request, ::milvus::grpc::VectorIds* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Insert_, context, request, response); } -void MilvusService::Stub::experimental_async::InsertVector(::grpc::ClientContext* context, const ::milvus::grpc::InsertInfos* request, ::milvus::grpc::VectorIds* response, std::function f) { - ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_InsertVector_, context, request, response, std::move(f)); +void MilvusService::Stub::experimental_async::Insert(::grpc::ClientContext* context, const ::milvus::grpc::InsertParam* request, ::milvus::grpc::VectorIds* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Insert_, context, request, response, std::move(f)); } -void MilvusService::Stub::experimental_async::InsertVector(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::VectorIds* response, std::function f) { - ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_InsertVector_, context, request, response, std::move(f)); +void MilvusService::Stub::experimental_async::Insert(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::VectorIds* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Insert_, context, request, response, std::move(f)); } -void MilvusService::Stub::experimental_async::InsertVector(::grpc::ClientContext* context, const ::milvus::grpc::InsertInfos* request, ::milvus::grpc::VectorIds* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_InsertVector_, context, request, response, reactor); +void MilvusService::Stub::experimental_async::Insert(::grpc::ClientContext* context, const ::milvus::grpc::InsertParam* request, ::milvus::grpc::VectorIds* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Insert_, context, request, response, reactor); } -void MilvusService::Stub::experimental_async::InsertVector(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::VectorIds* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_InsertVector_, context, request, response, reactor); +void MilvusService::Stub::experimental_async::Insert(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::VectorIds* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Insert_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::milvus::grpc::VectorIds>* MilvusService::Stub::AsyncInsertVectorRaw(::grpc::ClientContext* context, const ::milvus::grpc::InsertInfos& request, ::grpc::CompletionQueue* cq) { - return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::VectorIds>::Create(channel_.get(), cq, rpcmethod_InsertVector_, context, request, true); +::grpc::ClientAsyncResponseReader< ::milvus::grpc::VectorIds>* MilvusService::Stub::AsyncInsertRaw(::grpc::ClientContext* context, const ::milvus::grpc::InsertParam& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::VectorIds>::Create(channel_.get(), cq, rpcmethod_Insert_, context, request, true); } -::grpc::ClientAsyncResponseReader< ::milvus::grpc::VectorIds>* MilvusService::Stub::PrepareAsyncInsertVectorRaw(::grpc::ClientContext* context, const ::milvus::grpc::InsertInfos& request, ::grpc::CompletionQueue* cq) { - return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::VectorIds>::Create(channel_.get(), cq, rpcmethod_InsertVector_, context, request, false); +::grpc::ClientAsyncResponseReader< ::milvus::grpc::VectorIds>* MilvusService::Stub::PrepareAsyncInsertRaw(::grpc::ClientContext* context, const ::milvus::grpc::InsertParam& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::VectorIds>::Create(channel_.get(), cq, rpcmethod_Insert_, context, request, false); } -::grpc::ClientReader< ::milvus::grpc::TopKQueryResult>* MilvusService::Stub::SearchVectorRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchVectorInfos& request) { - return ::grpc_impl::internal::ClientReaderFactory< ::milvus::grpc::TopKQueryResult>::Create(channel_.get(), rpcmethod_SearchVector_, context, request); +::grpc::ClientReader< ::milvus::grpc::TopKQueryResult>* MilvusService::Stub::SearchRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchParam& request) { + return ::grpc_impl::internal::ClientReaderFactory< ::milvus::grpc::TopKQueryResult>::Create(channel_.get(), rpcmethod_Search_, context, request); } -void MilvusService::Stub::experimental_async::SearchVector(::grpc::ClientContext* context, ::milvus::grpc::SearchVectorInfos* request, ::grpc::experimental::ClientReadReactor< ::milvus::grpc::TopKQueryResult>* reactor) { - ::grpc_impl::internal::ClientCallbackReaderFactory< ::milvus::grpc::TopKQueryResult>::Create(stub_->channel_.get(), stub_->rpcmethod_SearchVector_, context, request, reactor); +void MilvusService::Stub::experimental_async::Search(::grpc::ClientContext* context, ::milvus::grpc::SearchParam* request, ::grpc::experimental::ClientReadReactor< ::milvus::grpc::TopKQueryResult>* reactor) { + ::grpc_impl::internal::ClientCallbackReaderFactory< ::milvus::grpc::TopKQueryResult>::Create(stub_->channel_.get(), stub_->rpcmethod_Search_, context, request, reactor); } -::grpc::ClientAsyncReader< ::milvus::grpc::TopKQueryResult>* MilvusService::Stub::AsyncSearchVectorRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchVectorInfos& request, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc_impl::internal::ClientAsyncReaderFactory< ::milvus::grpc::TopKQueryResult>::Create(channel_.get(), cq, rpcmethod_SearchVector_, context, request, true, tag); +::grpc::ClientAsyncReader< ::milvus::grpc::TopKQueryResult>* MilvusService::Stub::AsyncSearchRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchParam& request, ::grpc::CompletionQueue* cq, void* tag) { + return ::grpc_impl::internal::ClientAsyncReaderFactory< ::milvus::grpc::TopKQueryResult>::Create(channel_.get(), cq, rpcmethod_Search_, context, request, true, tag); } -::grpc::ClientAsyncReader< ::milvus::grpc::TopKQueryResult>* MilvusService::Stub::PrepareAsyncSearchVectorRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchVectorInfos& request, ::grpc::CompletionQueue* cq) { - return ::grpc_impl::internal::ClientAsyncReaderFactory< ::milvus::grpc::TopKQueryResult>::Create(channel_.get(), cq, rpcmethod_SearchVector_, context, request, false, nullptr); +::grpc::ClientAsyncReader< ::milvus::grpc::TopKQueryResult>* MilvusService::Stub::PrepareAsyncSearchRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchParam& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncReaderFactory< ::milvus::grpc::TopKQueryResult>::Create(channel_.get(), cq, rpcmethod_Search_, context, request, false, nullptr); } -::grpc::ClientReader< ::milvus::grpc::TopKQueryResult>* MilvusService::Stub::SearchVectorInFilesRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchVectorInFilesInfos& request) { - return ::grpc_impl::internal::ClientReaderFactory< ::milvus::grpc::TopKQueryResult>::Create(channel_.get(), rpcmethod_SearchVectorInFiles_, context, request); +::grpc::ClientReader< ::milvus::grpc::TopKQueryResult>* MilvusService::Stub::SearchInFilesRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchInFilesParam& request) { + return ::grpc_impl::internal::ClientReaderFactory< ::milvus::grpc::TopKQueryResult>::Create(channel_.get(), rpcmethod_SearchInFiles_, context, request); } -void MilvusService::Stub::experimental_async::SearchVectorInFiles(::grpc::ClientContext* context, ::milvus::grpc::SearchVectorInFilesInfos* request, ::grpc::experimental::ClientReadReactor< ::milvus::grpc::TopKQueryResult>* reactor) { - ::grpc_impl::internal::ClientCallbackReaderFactory< ::milvus::grpc::TopKQueryResult>::Create(stub_->channel_.get(), stub_->rpcmethod_SearchVectorInFiles_, context, request, reactor); +void MilvusService::Stub::experimental_async::SearchInFiles(::grpc::ClientContext* context, ::milvus::grpc::SearchInFilesParam* request, ::grpc::experimental::ClientReadReactor< ::milvus::grpc::TopKQueryResult>* reactor) { + ::grpc_impl::internal::ClientCallbackReaderFactory< ::milvus::grpc::TopKQueryResult>::Create(stub_->channel_.get(), stub_->rpcmethod_SearchInFiles_, context, request, reactor); } -::grpc::ClientAsyncReader< ::milvus::grpc::TopKQueryResult>* MilvusService::Stub::AsyncSearchVectorInFilesRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchVectorInFilesInfos& request, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc_impl::internal::ClientAsyncReaderFactory< ::milvus::grpc::TopKQueryResult>::Create(channel_.get(), cq, rpcmethod_SearchVectorInFiles_, context, request, true, tag); +::grpc::ClientAsyncReader< ::milvus::grpc::TopKQueryResult>* MilvusService::Stub::AsyncSearchInFilesRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchInFilesParam& request, ::grpc::CompletionQueue* cq, void* tag) { + return ::grpc_impl::internal::ClientAsyncReaderFactory< ::milvus::grpc::TopKQueryResult>::Create(channel_.get(), cq, rpcmethod_SearchInFiles_, context, request, true, tag); } -::grpc::ClientAsyncReader< ::milvus::grpc::TopKQueryResult>* MilvusService::Stub::PrepareAsyncSearchVectorInFilesRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchVectorInFilesInfos& request, ::grpc::CompletionQueue* cq) { - return ::grpc_impl::internal::ClientAsyncReaderFactory< ::milvus::grpc::TopKQueryResult>::Create(channel_.get(), cq, rpcmethod_SearchVectorInFiles_, context, request, false, nullptr); +::grpc::ClientAsyncReader< ::milvus::grpc::TopKQueryResult>* MilvusService::Stub::PrepareAsyncSearchInFilesRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchInFilesParam& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncReaderFactory< ::milvus::grpc::TopKQueryResult>::Create(channel_.get(), cq, rpcmethod_SearchInFiles_, context, request, false, nullptr); } ::grpc::Status MilvusService::Stub::DescribeTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::milvus::grpc::TableSchema* response) { @@ -253,32 +261,32 @@ void MilvusService::Stub::experimental_async::DescribeTable(::grpc::ClientContex return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::TableSchema>::Create(channel_.get(), cq, rpcmethod_DescribeTable_, context, request, false); } -::grpc::Status MilvusService::Stub::GetTableRowCount(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::milvus::grpc::TableRowCount* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetTableRowCount_, context, request, response); +::grpc::Status MilvusService::Stub::CountTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::milvus::grpc::TableRowCount* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CountTable_, context, request, response); } -void MilvusService::Stub::experimental_async::GetTableRowCount(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::TableRowCount* response, std::function f) { - ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTableRowCount_, context, request, response, std::move(f)); +void MilvusService::Stub::experimental_async::CountTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::TableRowCount* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CountTable_, context, request, response, std::move(f)); } -void MilvusService::Stub::experimental_async::GetTableRowCount(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::TableRowCount* response, std::function f) { - ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTableRowCount_, context, request, response, std::move(f)); +void MilvusService::Stub::experimental_async::CountTable(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::TableRowCount* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CountTable_, context, request, response, std::move(f)); } -void MilvusService::Stub::experimental_async::GetTableRowCount(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::TableRowCount* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetTableRowCount_, context, request, response, reactor); +void MilvusService::Stub::experimental_async::CountTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::TableRowCount* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CountTable_, context, request, response, reactor); } -void MilvusService::Stub::experimental_async::GetTableRowCount(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::TableRowCount* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetTableRowCount_, context, request, response, reactor); +void MilvusService::Stub::experimental_async::CountTable(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::TableRowCount* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CountTable_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::milvus::grpc::TableRowCount>* MilvusService::Stub::AsyncGetTableRowCountRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { - return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::TableRowCount>::Create(channel_.get(), cq, rpcmethod_GetTableRowCount_, context, request, true); +::grpc::ClientAsyncResponseReader< ::milvus::grpc::TableRowCount>* MilvusService::Stub::AsyncCountTableRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::TableRowCount>::Create(channel_.get(), cq, rpcmethod_CountTable_, context, request, true); } -::grpc::ClientAsyncResponseReader< ::milvus::grpc::TableRowCount>* MilvusService::Stub::PrepareAsyncGetTableRowCountRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { - return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::TableRowCount>::Create(channel_.get(), cq, rpcmethod_GetTableRowCount_, context, request, false); +::grpc::ClientAsyncResponseReader< ::milvus::grpc::TableRowCount>* MilvusService::Stub::PrepareAsyncCountTableRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::TableRowCount>::Create(channel_.get(), cq, rpcmethod_CountTable_, context, request, false); } ::grpc::ClientReader< ::milvus::grpc::TableName>* MilvusService::Stub::ShowTablesRaw(::grpc::ClientContext* context, const ::milvus::grpc::Command& request) { @@ -297,32 +305,144 @@ void MilvusService::Stub::experimental_async::ShowTables(::grpc::ClientContext* return ::grpc_impl::internal::ClientAsyncReaderFactory< ::milvus::grpc::TableName>::Create(channel_.get(), cq, rpcmethod_ShowTables_, context, request, false, nullptr); } -::grpc::Status MilvusService::Stub::Ping(::grpc::ClientContext* context, const ::milvus::grpc::Command& request, ::milvus::grpc::ServerStatus* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Ping_, context, request, response); +::grpc::Status MilvusService::Stub::Cmd(::grpc::ClientContext* context, const ::milvus::grpc::Command& request, ::milvus::grpc::StringReply* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_Cmd_, context, request, response); } -void MilvusService::Stub::experimental_async::Ping(::grpc::ClientContext* context, const ::milvus::grpc::Command* request, ::milvus::grpc::ServerStatus* response, std::function f) { - ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Ping_, context, request, response, std::move(f)); +void MilvusService::Stub::experimental_async::Cmd(::grpc::ClientContext* context, const ::milvus::grpc::Command* request, ::milvus::grpc::StringReply* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Cmd_, context, request, response, std::move(f)); } -void MilvusService::Stub::experimental_async::Ping(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::ServerStatus* response, std::function f) { - ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Ping_, context, request, response, std::move(f)); +void MilvusService::Stub::experimental_async::Cmd(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::StringReply* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Cmd_, context, request, response, std::move(f)); } -void MilvusService::Stub::experimental_async::Ping(::grpc::ClientContext* context, const ::milvus::grpc::Command* request, ::milvus::grpc::ServerStatus* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Ping_, context, request, response, reactor); +void MilvusService::Stub::experimental_async::Cmd(::grpc::ClientContext* context, const ::milvus::grpc::Command* request, ::milvus::grpc::StringReply* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Cmd_, context, request, response, reactor); } -void MilvusService::Stub::experimental_async::Ping(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::ServerStatus* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Ping_, context, request, response, reactor); +void MilvusService::Stub::experimental_async::Cmd(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::StringReply* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Cmd_, context, request, response, reactor); } -::grpc::ClientAsyncResponseReader< ::milvus::grpc::ServerStatus>* MilvusService::Stub::AsyncPingRaw(::grpc::ClientContext* context, const ::milvus::grpc::Command& request, ::grpc::CompletionQueue* cq) { - return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::ServerStatus>::Create(channel_.get(), cq, rpcmethod_Ping_, context, request, true); +::grpc::ClientAsyncResponseReader< ::milvus::grpc::StringReply>* MilvusService::Stub::AsyncCmdRaw(::grpc::ClientContext* context, const ::milvus::grpc::Command& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::StringReply>::Create(channel_.get(), cq, rpcmethod_Cmd_, context, request, true); } -::grpc::ClientAsyncResponseReader< ::milvus::grpc::ServerStatus>* MilvusService::Stub::PrepareAsyncPingRaw(::grpc::ClientContext* context, const ::milvus::grpc::Command& request, ::grpc::CompletionQueue* cq) { - return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::ServerStatus>::Create(channel_.get(), cq, rpcmethod_Ping_, context, request, false); +::grpc::ClientAsyncResponseReader< ::milvus::grpc::StringReply>* MilvusService::Stub::PrepareAsyncCmdRaw(::grpc::ClientContext* context, const ::milvus::grpc::Command& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::StringReply>::Create(channel_.get(), cq, rpcmethod_Cmd_, context, request, false); +} + +::grpc::Status MilvusService::Stub::DeleteByRange(::grpc::ClientContext* context, const ::milvus::grpc::DeleteByRangeParam& request, ::milvus::grpc::Status* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DeleteByRange_, context, request, response); +} + +void MilvusService::Stub::experimental_async::DeleteByRange(::grpc::ClientContext* context, const ::milvus::grpc::DeleteByRangeParam* request, ::milvus::grpc::Status* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteByRange_, context, request, response, std::move(f)); +} + +void MilvusService::Stub::experimental_async::DeleteByRange(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteByRange_, context, request, response, std::move(f)); +} + +void MilvusService::Stub::experimental_async::DeleteByRange(::grpc::ClientContext* context, const ::milvus::grpc::DeleteByRangeParam* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteByRange_, context, request, response, reactor); +} + +void MilvusService::Stub::experimental_async::DeleteByRange(::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_DeleteByRange_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* MilvusService::Stub::AsyncDeleteByRangeRaw(::grpc::ClientContext* context, const ::milvus::grpc::DeleteByRangeParam& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::Status>::Create(channel_.get(), cq, rpcmethod_DeleteByRange_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* MilvusService::Stub::PrepareAsyncDeleteByRangeRaw(::grpc::ClientContext* context, const ::milvus::grpc::DeleteByRangeParam& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::Status>::Create(channel_.get(), cq, rpcmethod_DeleteByRange_, context, request, false); +} + +::grpc::Status MilvusService::Stub::PreloadTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::milvus::grpc::Status* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_PreloadTable_, context, request, response); +} + +void MilvusService::Stub::experimental_async::PreloadTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_PreloadTable_, context, request, response, std::move(f)); +} + +void MilvusService::Stub::experimental_async::PreloadTable(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_PreloadTable_, context, request, response, std::move(f)); +} + +void MilvusService::Stub::experimental_async::PreloadTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_PreloadTable_, context, request, response, reactor); +} + +void MilvusService::Stub::experimental_async::PreloadTable(::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_PreloadTable_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* MilvusService::Stub::AsyncPreloadTableRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::Status>::Create(channel_.get(), cq, rpcmethod_PreloadTable_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* MilvusService::Stub::PrepareAsyncPreloadTableRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::Status>::Create(channel_.get(), cq, rpcmethod_PreloadTable_, context, request, false); +} + +::grpc::Status MilvusService::Stub::DescribeIndex(::grpc::ClientContext* context, const ::milvus::grpc::TableName& 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::TableName* request, ::milvus::grpc::IndexParam* response, std::function f) { + ::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 ::grpc::ByteBuffer* request, ::milvus::grpc::IndexParam* response, std::function f) { + ::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::TableName* request, ::milvus::grpc::IndexParam* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DescribeIndex_, context, request, response, reactor); +} + +void MilvusService::Stub::experimental_async::DescribeIndex(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::IndexParam* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::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::TableName& 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::TableName& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::IndexParam>::Create(channel_.get(), cq, rpcmethod_DescribeIndex_, context, request, false); +} + +::grpc::Status MilvusService::Stub::DropIndex(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::milvus::grpc::Status* response) { + return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DropIndex_, context, request, response); +} + +void MilvusService::Stub::experimental_async::DropIndex(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DropIndex_, context, request, response, std::move(f)); +} + +void MilvusService::Stub::experimental_async::DropIndex(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, std::function f) { + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DropIndex_, context, request, response, std::move(f)); +} + +void MilvusService::Stub::experimental_async::DropIndex(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DropIndex_, context, request, response, reactor); +} + +void MilvusService::Stub::experimental_async::DropIndex(::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_DropIndex_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* MilvusService::Stub::AsyncDropIndexRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::Status>::Create(channel_.get(), cq, rpcmethod_DropIndex_, context, request, true); +} + +::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* MilvusService::Stub::PrepareAsyncDropIndexRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::Status>::Create(channel_.get(), cq, rpcmethod_DropIndex_, context, request, false); } MilvusService::Service::Service() { @@ -344,23 +464,23 @@ MilvusService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MilvusService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MilvusService::Service, ::milvus::grpc::TableName, ::milvus::grpc::Status>( - std::mem_fn(&MilvusService::Service::BuildIndex), this))); + new ::grpc::internal::RpcMethodHandler< MilvusService::Service, ::milvus::grpc::IndexParam, ::milvus::grpc::Status>( + std::mem_fn(&MilvusService::Service::CreateIndex), this))); AddMethod(new ::grpc::internal::RpcServiceMethod( MilvusService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MilvusService::Service, ::milvus::grpc::InsertInfos, ::milvus::grpc::VectorIds>( - std::mem_fn(&MilvusService::Service::InsertVector), this))); + new ::grpc::internal::RpcMethodHandler< MilvusService::Service, ::milvus::grpc::InsertParam, ::milvus::grpc::VectorIds>( + std::mem_fn(&MilvusService::Service::Insert), this))); AddMethod(new ::grpc::internal::RpcServiceMethod( MilvusService_method_names[5], ::grpc::internal::RpcMethod::SERVER_STREAMING, - new ::grpc::internal::ServerStreamingHandler< MilvusService::Service, ::milvus::grpc::SearchVectorInfos, ::milvus::grpc::TopKQueryResult>( - std::mem_fn(&MilvusService::Service::SearchVector), this))); + new ::grpc::internal::ServerStreamingHandler< MilvusService::Service, ::milvus::grpc::SearchParam, ::milvus::grpc::TopKQueryResult>( + std::mem_fn(&MilvusService::Service::Search), this))); AddMethod(new ::grpc::internal::RpcServiceMethod( MilvusService_method_names[6], ::grpc::internal::RpcMethod::SERVER_STREAMING, - new ::grpc::internal::ServerStreamingHandler< MilvusService::Service, ::milvus::grpc::SearchVectorInFilesInfos, ::milvus::grpc::TopKQueryResult>( - std::mem_fn(&MilvusService::Service::SearchVectorInFiles), this))); + new ::grpc::internal::ServerStreamingHandler< MilvusService::Service, ::milvus::grpc::SearchInFilesParam, ::milvus::grpc::TopKQueryResult>( + std::mem_fn(&MilvusService::Service::SearchInFiles), this))); AddMethod(new ::grpc::internal::RpcServiceMethod( MilvusService_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, @@ -370,7 +490,7 @@ MilvusService::Service::Service() { MilvusService_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< MilvusService::Service, ::milvus::grpc::TableName, ::milvus::grpc::TableRowCount>( - std::mem_fn(&MilvusService::Service::GetTableRowCount), this))); + std::mem_fn(&MilvusService::Service::CountTable), this))); AddMethod(new ::grpc::internal::RpcServiceMethod( MilvusService_method_names[9], ::grpc::internal::RpcMethod::SERVER_STREAMING, @@ -379,8 +499,28 @@ MilvusService::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( MilvusService_method_names[10], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< MilvusService::Service, ::milvus::grpc::Command, ::milvus::grpc::ServerStatus>( - std::mem_fn(&MilvusService::Service::Ping), this))); + 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[11], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< MilvusService::Service, ::milvus::grpc::DeleteByRangeParam, ::milvus::grpc::Status>( + std::mem_fn(&MilvusService::Service::DeleteByRange), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + MilvusService_method_names[12], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< MilvusService::Service, ::milvus::grpc::TableName, ::milvus::grpc::Status>( + std::mem_fn(&MilvusService::Service::PreloadTable), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + MilvusService_method_names[13], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< MilvusService::Service, ::milvus::grpc::TableName, ::milvus::grpc::IndexParam>( + std::mem_fn(&MilvusService::Service::DescribeIndex), this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + MilvusService_method_names[14], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< MilvusService::Service, ::milvus::grpc::TableName, ::milvus::grpc::Status>( + std::mem_fn(&MilvusService::Service::DropIndex), this))); } MilvusService::Service::~Service() { @@ -407,28 +547,28 @@ MilvusService::Service::~Service() { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status MilvusService::Service::BuildIndex(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response) { +::grpc::Status MilvusService::Service::CreateIndex(::grpc::ServerContext* context, const ::milvus::grpc::IndexParam* request, ::milvus::grpc::Status* response) { (void) context; (void) request; (void) response; return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status MilvusService::Service::InsertVector(::grpc::ServerContext* context, const ::milvus::grpc::InsertInfos* request, ::milvus::grpc::VectorIds* response) { +::grpc::Status MilvusService::Service::Insert(::grpc::ServerContext* context, const ::milvus::grpc::InsertParam* request, ::milvus::grpc::VectorIds* response) { (void) context; (void) request; (void) response; return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status MilvusService::Service::SearchVector(::grpc::ServerContext* context, const ::milvus::grpc::SearchVectorInfos* request, ::grpc::ServerWriter< ::milvus::grpc::TopKQueryResult>* writer) { +::grpc::Status MilvusService::Service::Search(::grpc::ServerContext* context, const ::milvus::grpc::SearchParam* request, ::grpc::ServerWriter< ::milvus::grpc::TopKQueryResult>* writer) { (void) context; (void) request; (void) writer; return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status MilvusService::Service::SearchVectorInFiles(::grpc::ServerContext* context, const ::milvus::grpc::SearchVectorInFilesInfos* request, ::grpc::ServerWriter< ::milvus::grpc::TopKQueryResult>* writer) { +::grpc::Status MilvusService::Service::SearchInFiles(::grpc::ServerContext* context, const ::milvus::grpc::SearchInFilesParam* request, ::grpc::ServerWriter< ::milvus::grpc::TopKQueryResult>* writer) { (void) context; (void) request; (void) writer; @@ -442,7 +582,7 @@ MilvusService::Service::~Service() { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status MilvusService::Service::GetTableRowCount(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::TableRowCount* response) { +::grpc::Status MilvusService::Service::CountTable(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::TableRowCount* response) { (void) context; (void) request; (void) response; @@ -456,7 +596,35 @@ MilvusService::Service::~Service() { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status MilvusService::Service::Ping(::grpc::ServerContext* context, const ::milvus::grpc::Command* request, ::milvus::grpc::ServerStatus* response) { +::grpc::Status MilvusService::Service::Cmd(::grpc::ServerContext* context, const ::milvus::grpc::Command* request, ::milvus::grpc::StringReply* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status MilvusService::Service::DeleteByRange(::grpc::ServerContext* context, const ::milvus::grpc::DeleteByRangeParam* request, ::milvus::grpc::Status* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status MilvusService::Service::PreloadTable(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status MilvusService::Service::DescribeIndex(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::IndexParam* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status MilvusService::Service::DropIndex(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response) { (void) context; (void) request; (void) response; diff --git a/cpp/src/grpc/gen-milvus/milvus.grpc.pb.h b/cpp/src/grpc/gen-milvus/milvus.grpc.pb.h index 10a972aa9088239d5e5d9d3af3c9e10e411ac210..163ffa92179f6342989431c6af67749cccae47a8 100644 --- a/cpp/src/grpc/gen-milvus/milvus.grpc.pb.h +++ b/cpp/src/grpc/gen-milvus/milvus.grpc.pb.h @@ -96,12 +96,12 @@ class MilvusService final { // // @param table_name, table is going to be built index. // - virtual ::grpc::Status BuildIndex(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::milvus::grpc::Status* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>> AsyncBuildIndex(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>>(AsyncBuildIndexRaw(context, request, cq)); + virtual ::grpc::Status CreateIndex(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam& request, ::milvus::grpc::Status* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>> AsyncCreateIndex(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>>(AsyncCreateIndexRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>> PrepareAsyncBuildIndex(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>>(PrepareAsyncBuildIndexRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>> PrepareAsyncCreateIndex(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>>(PrepareAsyncCreateIndexRaw(context, request, cq)); } // * // @brief Add vector array to table @@ -112,12 +112,12 @@ class MilvusService final { // @param record_array, vector array is inserted. // // @return vector id array - virtual ::grpc::Status InsertVector(::grpc::ClientContext* context, const ::milvus::grpc::InsertInfos& request, ::milvus::grpc::VectorIds* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::VectorIds>> AsyncInsertVector(::grpc::ClientContext* context, const ::milvus::grpc::InsertInfos& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::VectorIds>>(AsyncInsertVectorRaw(context, request, cq)); + virtual ::grpc::Status Insert(::grpc::ClientContext* context, const ::milvus::grpc::InsertParam& request, ::milvus::grpc::VectorIds* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::VectorIds>> AsyncInsert(::grpc::ClientContext* context, const ::milvus::grpc::InsertParam& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::VectorIds>>(AsyncInsertRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::VectorIds>> PrepareAsyncInsertVector(::grpc::ClientContext* context, const ::milvus::grpc::InsertInfos& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::VectorIds>>(PrepareAsyncInsertVectorRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::VectorIds>> PrepareAsyncInsert(::grpc::ClientContext* context, const ::milvus::grpc::InsertParam& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::VectorIds>>(PrepareAsyncInsertRaw(context, request, cq)); } // * // @brief Query vector @@ -130,14 +130,14 @@ class MilvusService final { // @param topk, how many similarity vectors will be searched. // // @return query result array. - std::unique_ptr< ::grpc::ClientReaderInterface< ::milvus::grpc::TopKQueryResult>> SearchVector(::grpc::ClientContext* context, const ::milvus::grpc::SearchVectorInfos& request) { - return std::unique_ptr< ::grpc::ClientReaderInterface< ::milvus::grpc::TopKQueryResult>>(SearchVectorRaw(context, request)); + std::unique_ptr< ::grpc::ClientReaderInterface< ::milvus::grpc::TopKQueryResult>> Search(::grpc::ClientContext* context, const ::milvus::grpc::SearchParam& request) { + return std::unique_ptr< ::grpc::ClientReaderInterface< ::milvus::grpc::TopKQueryResult>>(SearchRaw(context, request)); } - std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::milvus::grpc::TopKQueryResult>> AsyncSearchVector(::grpc::ClientContext* context, const ::milvus::grpc::SearchVectorInfos& request, ::grpc::CompletionQueue* cq, void* tag) { - return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::milvus::grpc::TopKQueryResult>>(AsyncSearchVectorRaw(context, request, cq, tag)); + std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::milvus::grpc::TopKQueryResult>> AsyncSearch(::grpc::ClientContext* context, const ::milvus::grpc::SearchParam& request, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::milvus::grpc::TopKQueryResult>>(AsyncSearchRaw(context, request, cq, tag)); } - std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::milvus::grpc::TopKQueryResult>> PrepareAsyncSearchVector(::grpc::ClientContext* context, const ::milvus::grpc::SearchVectorInfos& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::milvus::grpc::TopKQueryResult>>(PrepareAsyncSearchVectorRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::milvus::grpc::TopKQueryResult>> PrepareAsyncSearch(::grpc::ClientContext* context, const ::milvus::grpc::SearchParam& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::milvus::grpc::TopKQueryResult>>(PrepareAsyncSearchRaw(context, request, cq)); } // * // @brief Internal use query interface @@ -150,14 +150,14 @@ class MilvusService final { // @param topk, how many similarity vectors will be searched. // // @return query result array. - std::unique_ptr< ::grpc::ClientReaderInterface< ::milvus::grpc::TopKQueryResult>> SearchVectorInFiles(::grpc::ClientContext* context, const ::milvus::grpc::SearchVectorInFilesInfos& request) { - return std::unique_ptr< ::grpc::ClientReaderInterface< ::milvus::grpc::TopKQueryResult>>(SearchVectorInFilesRaw(context, request)); + std::unique_ptr< ::grpc::ClientReaderInterface< ::milvus::grpc::TopKQueryResult>> SearchInFiles(::grpc::ClientContext* context, const ::milvus::grpc::SearchInFilesParam& request) { + return std::unique_ptr< ::grpc::ClientReaderInterface< ::milvus::grpc::TopKQueryResult>>(SearchInFilesRaw(context, request)); } - std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::milvus::grpc::TopKQueryResult>> AsyncSearchVectorInFiles(::grpc::ClientContext* context, const ::milvus::grpc::SearchVectorInFilesInfos& request, ::grpc::CompletionQueue* cq, void* tag) { - return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::milvus::grpc::TopKQueryResult>>(AsyncSearchVectorInFilesRaw(context, request, cq, tag)); + std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::milvus::grpc::TopKQueryResult>> AsyncSearchInFiles(::grpc::ClientContext* context, const ::milvus::grpc::SearchInFilesParam& request, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::milvus::grpc::TopKQueryResult>>(AsyncSearchInFilesRaw(context, request, cq, tag)); } - std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::milvus::grpc::TopKQueryResult>> PrepareAsyncSearchVectorInFiles(::grpc::ClientContext* context, const ::milvus::grpc::SearchVectorInFilesInfos& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::milvus::grpc::TopKQueryResult>>(PrepareAsyncSearchVectorInFilesRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::milvus::grpc::TopKQueryResult>> PrepareAsyncSearchInFiles(::grpc::ClientContext* context, const ::milvus::grpc::SearchInFilesParam& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::milvus::grpc::TopKQueryResult>>(PrepareAsyncSearchInFilesRaw(context, request, cq)); } // * // @brief Get table schema @@ -182,12 +182,12 @@ class MilvusService final { // @param table_name, target table name. // // @return table schema - virtual ::grpc::Status GetTableRowCount(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::milvus::grpc::TableRowCount* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::TableRowCount>> AsyncGetTableRowCount(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::TableRowCount>>(AsyncGetTableRowCountRaw(context, request, cq)); + virtual ::grpc::Status CountTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::milvus::grpc::TableRowCount* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::TableRowCount>> AsyncCountTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::TableRowCount>>(AsyncCountTableRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::TableRowCount>> PrepareAsyncGetTableRowCount(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::TableRowCount>>(PrepareAsyncGetTableRowCountRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::TableRowCount>> PrepareAsyncCountTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::TableRowCount>>(PrepareAsyncCountTableRaw(context, request, cq)); } // * // @brief List all tables in database @@ -211,12 +211,64 @@ class MilvusService final { // This method is used to give the server status. // // @return Server status. - virtual ::grpc::Status Ping(::grpc::ClientContext* context, const ::milvus::grpc::Command& request, ::milvus::grpc::ServerStatus* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::ServerStatus>> AsyncPing(::grpc::ClientContext* context, const ::milvus::grpc::Command& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::ServerStatus>>(AsyncPingRaw(context, request, cq)); + virtual ::grpc::Status Cmd(::grpc::ClientContext* context, const ::milvus::grpc::Command& request, ::milvus::grpc::StringReply* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::StringReply>> AsyncCmd(::grpc::ClientContext* context, const ::milvus::grpc::Command& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::StringReply>>(AsyncCmdRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::ServerStatus>> PrepareAsyncPing(::grpc::ClientContext* context, const ::milvus::grpc::Command& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::ServerStatus>>(PrepareAsyncPingRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::StringReply>> PrepareAsyncCmd(::grpc::ClientContext* context, const ::milvus::grpc::Command& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::StringReply>>(PrepareAsyncCmdRaw(context, request, cq)); + } + // * + // @brief delete table by range + // + // This method is used to delete vector by range + // + // @return rpc status. + virtual ::grpc::Status DeleteByRange(::grpc::ClientContext* context, const ::milvus::grpc::DeleteByRangeParam& request, ::milvus::grpc::Status* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>> AsyncDeleteByRange(::grpc::ClientContext* context, const ::milvus::grpc::DeleteByRangeParam& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>>(AsyncDeleteByRangeRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>> PrepareAsyncDeleteByRange(::grpc::ClientContext* context, const ::milvus::grpc::DeleteByRangeParam& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>>(PrepareAsyncDeleteByRangeRaw(context, request, cq)); + } + // * + // @brief preload table + // + // This method is used to preload table + // + // @return Status. + virtual ::grpc::Status PreloadTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::milvus::grpc::Status* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>> AsyncPreloadTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>>(AsyncPreloadTableRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>> PrepareAsyncPreloadTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>>(PrepareAsyncPreloadTableRaw(context, request, cq)); + } + // * + // @brief describe index + // + // This method is used to describe index + // + // @return Status. + virtual ::grpc::Status DescribeIndex(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::milvus::grpc::IndexParam* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::IndexParam>> AsyncDescribeIndex(::grpc::ClientContext* context, const ::milvus::grpc::TableName& 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::TableName& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::IndexParam>>(PrepareAsyncDescribeIndexRaw(context, request, cq)); + } + // * + // @brief drop index + // + // This method is used to drop index + // + // @return Status. + virtual ::grpc::Status DropIndex(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::milvus::grpc::Status* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>> AsyncDropIndex(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>>(AsyncDropIndexRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>> PrepareAsyncDropIndex(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>>(PrepareAsyncDropIndexRaw(context, request, cq)); } class experimental_async_interface { public: @@ -261,10 +313,10 @@ class MilvusService final { // // @param table_name, table is going to be built index. // - virtual void BuildIndex(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response, std::function) = 0; - virtual void BuildIndex(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, std::function) = 0; - virtual void BuildIndex(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void BuildIndex(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void CreateIndex(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam* request, ::milvus::grpc::Status* response, std::function) = 0; + virtual void CreateIndex(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, std::function) = 0; + virtual void CreateIndex(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void CreateIndex(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; // * // @brief Add vector array to table // @@ -274,10 +326,10 @@ class MilvusService final { // @param record_array, vector array is inserted. // // @return vector id array - virtual void InsertVector(::grpc::ClientContext* context, const ::milvus::grpc::InsertInfos* request, ::milvus::grpc::VectorIds* response, std::function) = 0; - virtual void InsertVector(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::VectorIds* response, std::function) = 0; - virtual void InsertVector(::grpc::ClientContext* context, const ::milvus::grpc::InsertInfos* request, ::milvus::grpc::VectorIds* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void InsertVector(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::VectorIds* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void Insert(::grpc::ClientContext* context, const ::milvus::grpc::InsertParam* request, ::milvus::grpc::VectorIds* response, std::function) = 0; + virtual void Insert(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::VectorIds* response, std::function) = 0; + virtual void Insert(::grpc::ClientContext* context, const ::milvus::grpc::InsertParam* request, ::milvus::grpc::VectorIds* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void Insert(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::VectorIds* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; // * // @brief Query vector // @@ -289,7 +341,7 @@ class MilvusService final { // @param topk, how many similarity vectors will be searched. // // @return query result array. - virtual void SearchVector(::grpc::ClientContext* context, ::milvus::grpc::SearchVectorInfos* request, ::grpc::experimental::ClientReadReactor< ::milvus::grpc::TopKQueryResult>* reactor) = 0; + virtual void Search(::grpc::ClientContext* context, ::milvus::grpc::SearchParam* request, ::grpc::experimental::ClientReadReactor< ::milvus::grpc::TopKQueryResult>* reactor) = 0; // * // @brief Internal use query interface // @@ -301,7 +353,7 @@ class MilvusService final { // @param topk, how many similarity vectors will be searched. // // @return query result array. - virtual void SearchVectorInFiles(::grpc::ClientContext* context, ::milvus::grpc::SearchVectorInFilesInfos* request, ::grpc::experimental::ClientReadReactor< ::milvus::grpc::TopKQueryResult>* reactor) = 0; + virtual void SearchInFiles(::grpc::ClientContext* context, ::milvus::grpc::SearchInFilesParam* request, ::grpc::experimental::ClientReadReactor< ::milvus::grpc::TopKQueryResult>* reactor) = 0; // * // @brief Get table schema // @@ -322,10 +374,10 @@ class MilvusService final { // @param table_name, target table name. // // @return table schema - virtual void GetTableRowCount(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::TableRowCount* response, std::function) = 0; - virtual void GetTableRowCount(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::TableRowCount* response, std::function) = 0; - virtual void GetTableRowCount(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::TableRowCount* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void GetTableRowCount(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::TableRowCount* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void CountTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::TableRowCount* response, std::function) = 0; + virtual void CountTable(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::TableRowCount* response, std::function) = 0; + virtual void CountTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::TableRowCount* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void CountTable(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::TableRowCount* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; // * // @brief List all tables in database // @@ -340,10 +392,50 @@ class MilvusService final { // This method is used to give the server status. // // @return Server status. - virtual void Ping(::grpc::ClientContext* context, const ::milvus::grpc::Command* request, ::milvus::grpc::ServerStatus* response, std::function) = 0; - virtual void Ping(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::ServerStatus* response, std::function) = 0; - virtual void Ping(::grpc::ClientContext* context, const ::milvus::grpc::Command* request, ::milvus::grpc::ServerStatus* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void Ping(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::ServerStatus* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void Cmd(::grpc::ClientContext* context, const ::milvus::grpc::Command* request, ::milvus::grpc::StringReply* response, std::function) = 0; + virtual void Cmd(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::StringReply* response, std::function) = 0; + virtual void Cmd(::grpc::ClientContext* context, const ::milvus::grpc::Command* request, ::milvus::grpc::StringReply* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void Cmd(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::StringReply* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // * + // @brief delete table by range + // + // This method is used to delete vector by range + // + // @return rpc status. + virtual void DeleteByRange(::grpc::ClientContext* context, const ::milvus::grpc::DeleteByRangeParam* request, ::milvus::grpc::Status* response, std::function) = 0; + virtual void DeleteByRange(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, std::function) = 0; + virtual void DeleteByRange(::grpc::ClientContext* context, const ::milvus::grpc::DeleteByRangeParam* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void DeleteByRange(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // * + // @brief preload table + // + // This method is used to preload table + // + // @return Status. + virtual void PreloadTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response, std::function) = 0; + virtual void PreloadTable(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, std::function) = 0; + virtual void PreloadTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void PreloadTable(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + // * + // @brief describe index + // + // This method is used to describe index + // + // @return Status. + virtual void DescribeIndex(::grpc::ClientContext* context, const ::milvus::grpc::TableName* 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::TableName* 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 drop index + // + // This method is used to drop index + // + // @return Status. + virtual void DropIndex(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response, std::function) = 0; + virtual void DropIndex(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, std::function) = 0; + virtual void DropIndex(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void DropIndex(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; }; virtual class experimental_async_interface* experimental_async() { return nullptr; } private: @@ -353,25 +445,33 @@ class MilvusService final { virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::BoolReply>* PrepareAsyncHasTableRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>* AsyncDropTableRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>* PrepareAsyncDropTableRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>* AsyncBuildIndexRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>* PrepareAsyncBuildIndexRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::VectorIds>* AsyncInsertVectorRaw(::grpc::ClientContext* context, const ::milvus::grpc::InsertInfos& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::VectorIds>* PrepareAsyncInsertVectorRaw(::grpc::ClientContext* context, const ::milvus::grpc::InsertInfos& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientReaderInterface< ::milvus::grpc::TopKQueryResult>* SearchVectorRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchVectorInfos& request) = 0; - virtual ::grpc::ClientAsyncReaderInterface< ::milvus::grpc::TopKQueryResult>* AsyncSearchVectorRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchVectorInfos& request, ::grpc::CompletionQueue* cq, void* tag) = 0; - virtual ::grpc::ClientAsyncReaderInterface< ::milvus::grpc::TopKQueryResult>* PrepareAsyncSearchVectorRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchVectorInfos& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientReaderInterface< ::milvus::grpc::TopKQueryResult>* SearchVectorInFilesRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchVectorInFilesInfos& request) = 0; - virtual ::grpc::ClientAsyncReaderInterface< ::milvus::grpc::TopKQueryResult>* AsyncSearchVectorInFilesRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchVectorInFilesInfos& request, ::grpc::CompletionQueue* cq, void* tag) = 0; - virtual ::grpc::ClientAsyncReaderInterface< ::milvus::grpc::TopKQueryResult>* PrepareAsyncSearchVectorInFilesRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchVectorInFilesInfos& 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::VectorIds>* AsyncInsertRaw(::grpc::ClientContext* context, const ::milvus::grpc::InsertParam& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::VectorIds>* PrepareAsyncInsertRaw(::grpc::ClientContext* context, const ::milvus::grpc::InsertParam& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientReaderInterface< ::milvus::grpc::TopKQueryResult>* SearchRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchParam& request) = 0; + virtual ::grpc::ClientAsyncReaderInterface< ::milvus::grpc::TopKQueryResult>* AsyncSearchRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchParam& request, ::grpc::CompletionQueue* cq, void* tag) = 0; + virtual ::grpc::ClientAsyncReaderInterface< ::milvus::grpc::TopKQueryResult>* PrepareAsyncSearchRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchParam& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientReaderInterface< ::milvus::grpc::TopKQueryResult>* SearchInFilesRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchInFilesParam& request) = 0; + virtual ::grpc::ClientAsyncReaderInterface< ::milvus::grpc::TopKQueryResult>* AsyncSearchInFilesRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchInFilesParam& request, ::grpc::CompletionQueue* cq, void* tag) = 0; + virtual ::grpc::ClientAsyncReaderInterface< ::milvus::grpc::TopKQueryResult>* PrepareAsyncSearchInFilesRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchInFilesParam& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::TableSchema>* AsyncDescribeTableRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::TableSchema>* PrepareAsyncDescribeTableRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::TableRowCount>* AsyncGetTableRowCountRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::TableRowCount>* PrepareAsyncGetTableRowCountRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::TableRowCount>* AsyncCountTableRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::TableRowCount>* PrepareAsyncCountTableRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientReaderInterface< ::milvus::grpc::TableName>* ShowTablesRaw(::grpc::ClientContext* context, const ::milvus::grpc::Command& request) = 0; virtual ::grpc::ClientAsyncReaderInterface< ::milvus::grpc::TableName>* AsyncShowTablesRaw(::grpc::ClientContext* context, const ::milvus::grpc::Command& request, ::grpc::CompletionQueue* cq, void* tag) = 0; virtual ::grpc::ClientAsyncReaderInterface< ::milvus::grpc::TableName>* PrepareAsyncShowTablesRaw(::grpc::ClientContext* context, const ::milvus::grpc::Command& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::ServerStatus>* AsyncPingRaw(::grpc::ClientContext* context, const ::milvus::grpc::Command& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::ServerStatus>* PrepareAsyncPingRaw(::grpc::ClientContext* context, const ::milvus::grpc::Command& 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>* AsyncDeleteByRangeRaw(::grpc::ClientContext* context, const ::milvus::grpc::DeleteByRangeParam& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>* PrepareAsyncDeleteByRangeRaw(::grpc::ClientContext* context, const ::milvus::grpc::DeleteByRangeParam& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>* AsyncPreloadTableRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>* PrepareAsyncPreloadTableRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::IndexParam>* AsyncDescribeIndexRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::IndexParam>* PrepareAsyncDescribeIndexRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>* AsyncDropIndexRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::milvus::grpc::Status>* PrepareAsyncDropIndexRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) = 0; }; class Stub final : public StubInterface { public: @@ -397,37 +497,37 @@ class MilvusService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>> PrepareAsyncDropTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>>(PrepareAsyncDropTableRaw(context, request, cq)); } - ::grpc::Status BuildIndex(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::milvus::grpc::Status* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>> AsyncBuildIndex(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>>(AsyncBuildIndexRaw(context, request, cq)); + ::grpc::Status CreateIndex(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam& request, ::milvus::grpc::Status* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>> AsyncCreateIndex(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>>(AsyncCreateIndexRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>> PrepareAsyncBuildIndex(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>>(PrepareAsyncBuildIndexRaw(context, request, cq)); + 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 InsertVector(::grpc::ClientContext* context, const ::milvus::grpc::InsertInfos& request, ::milvus::grpc::VectorIds* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::VectorIds>> AsyncInsertVector(::grpc::ClientContext* context, const ::milvus::grpc::InsertInfos& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::VectorIds>>(AsyncInsertVectorRaw(context, request, cq)); + ::grpc::Status Insert(::grpc::ClientContext* context, const ::milvus::grpc::InsertParam& request, ::milvus::grpc::VectorIds* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::VectorIds>> AsyncInsert(::grpc::ClientContext* context, const ::milvus::grpc::InsertParam& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::VectorIds>>(AsyncInsertRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::VectorIds>> PrepareAsyncInsertVector(::grpc::ClientContext* context, const ::milvus::grpc::InsertInfos& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::VectorIds>>(PrepareAsyncInsertVectorRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::VectorIds>> PrepareAsyncInsert(::grpc::ClientContext* context, const ::milvus::grpc::InsertParam& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::VectorIds>>(PrepareAsyncInsertRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientReader< ::milvus::grpc::TopKQueryResult>> SearchVector(::grpc::ClientContext* context, const ::milvus::grpc::SearchVectorInfos& request) { - return std::unique_ptr< ::grpc::ClientReader< ::milvus::grpc::TopKQueryResult>>(SearchVectorRaw(context, request)); + std::unique_ptr< ::grpc::ClientReader< ::milvus::grpc::TopKQueryResult>> Search(::grpc::ClientContext* context, const ::milvus::grpc::SearchParam& request) { + return std::unique_ptr< ::grpc::ClientReader< ::milvus::grpc::TopKQueryResult>>(SearchRaw(context, request)); } - std::unique_ptr< ::grpc::ClientAsyncReader< ::milvus::grpc::TopKQueryResult>> AsyncSearchVector(::grpc::ClientContext* context, const ::milvus::grpc::SearchVectorInfos& request, ::grpc::CompletionQueue* cq, void* tag) { - return std::unique_ptr< ::grpc::ClientAsyncReader< ::milvus::grpc::TopKQueryResult>>(AsyncSearchVectorRaw(context, request, cq, tag)); + std::unique_ptr< ::grpc::ClientAsyncReader< ::milvus::grpc::TopKQueryResult>> AsyncSearch(::grpc::ClientContext* context, const ::milvus::grpc::SearchParam& request, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReader< ::milvus::grpc::TopKQueryResult>>(AsyncSearchRaw(context, request, cq, tag)); } - std::unique_ptr< ::grpc::ClientAsyncReader< ::milvus::grpc::TopKQueryResult>> PrepareAsyncSearchVector(::grpc::ClientContext* context, const ::milvus::grpc::SearchVectorInfos& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncReader< ::milvus::grpc::TopKQueryResult>>(PrepareAsyncSearchVectorRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncReader< ::milvus::grpc::TopKQueryResult>> PrepareAsyncSearch(::grpc::ClientContext* context, const ::milvus::grpc::SearchParam& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReader< ::milvus::grpc::TopKQueryResult>>(PrepareAsyncSearchRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientReader< ::milvus::grpc::TopKQueryResult>> SearchVectorInFiles(::grpc::ClientContext* context, const ::milvus::grpc::SearchVectorInFilesInfos& request) { - return std::unique_ptr< ::grpc::ClientReader< ::milvus::grpc::TopKQueryResult>>(SearchVectorInFilesRaw(context, request)); + std::unique_ptr< ::grpc::ClientReader< ::milvus::grpc::TopKQueryResult>> SearchInFiles(::grpc::ClientContext* context, const ::milvus::grpc::SearchInFilesParam& request) { + return std::unique_ptr< ::grpc::ClientReader< ::milvus::grpc::TopKQueryResult>>(SearchInFilesRaw(context, request)); } - std::unique_ptr< ::grpc::ClientAsyncReader< ::milvus::grpc::TopKQueryResult>> AsyncSearchVectorInFiles(::grpc::ClientContext* context, const ::milvus::grpc::SearchVectorInFilesInfos& request, ::grpc::CompletionQueue* cq, void* tag) { - return std::unique_ptr< ::grpc::ClientAsyncReader< ::milvus::grpc::TopKQueryResult>>(AsyncSearchVectorInFilesRaw(context, request, cq, tag)); + std::unique_ptr< ::grpc::ClientAsyncReader< ::milvus::grpc::TopKQueryResult>> AsyncSearchInFiles(::grpc::ClientContext* context, const ::milvus::grpc::SearchInFilesParam& request, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReader< ::milvus::grpc::TopKQueryResult>>(AsyncSearchInFilesRaw(context, request, cq, tag)); } - std::unique_ptr< ::grpc::ClientAsyncReader< ::milvus::grpc::TopKQueryResult>> PrepareAsyncSearchVectorInFiles(::grpc::ClientContext* context, const ::milvus::grpc::SearchVectorInFilesInfos& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncReader< ::milvus::grpc::TopKQueryResult>>(PrepareAsyncSearchVectorInFilesRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncReader< ::milvus::grpc::TopKQueryResult>> PrepareAsyncSearchInFiles(::grpc::ClientContext* context, const ::milvus::grpc::SearchInFilesParam& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReader< ::milvus::grpc::TopKQueryResult>>(PrepareAsyncSearchInFilesRaw(context, request, cq)); } ::grpc::Status DescribeTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::milvus::grpc::TableSchema* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::TableSchema>> AsyncDescribeTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { @@ -436,12 +536,12 @@ class MilvusService final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::TableSchema>> PrepareAsyncDescribeTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::TableSchema>>(PrepareAsyncDescribeTableRaw(context, request, cq)); } - ::grpc::Status GetTableRowCount(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::milvus::grpc::TableRowCount* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::TableRowCount>> AsyncGetTableRowCount(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::TableRowCount>>(AsyncGetTableRowCountRaw(context, request, cq)); + ::grpc::Status CountTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::milvus::grpc::TableRowCount* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::TableRowCount>> AsyncCountTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::TableRowCount>>(AsyncCountTableRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::TableRowCount>> PrepareAsyncGetTableRowCount(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::TableRowCount>>(PrepareAsyncGetTableRowCountRaw(context, request, cq)); + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::TableRowCount>> PrepareAsyncCountTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::TableRowCount>>(PrepareAsyncCountTableRaw(context, request, cq)); } std::unique_ptr< ::grpc::ClientReader< ::milvus::grpc::TableName>> ShowTables(::grpc::ClientContext* context, const ::milvus::grpc::Command& request) { return std::unique_ptr< ::grpc::ClientReader< ::milvus::grpc::TableName>>(ShowTablesRaw(context, request)); @@ -452,12 +552,40 @@ class MilvusService final { std::unique_ptr< ::grpc::ClientAsyncReader< ::milvus::grpc::TableName>> PrepareAsyncShowTables(::grpc::ClientContext* context, const ::milvus::grpc::Command& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncReader< ::milvus::grpc::TableName>>(PrepareAsyncShowTablesRaw(context, request, cq)); } - ::grpc::Status Ping(::grpc::ClientContext* context, const ::milvus::grpc::Command& request, ::milvus::grpc::ServerStatus* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::ServerStatus>> AsyncPing(::grpc::ClientContext* context, const ::milvus::grpc::Command& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::ServerStatus>>(AsyncPingRaw(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) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::StringReply>>(AsyncCmdRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::StringReply>> PrepareAsyncCmd(::grpc::ClientContext* context, const ::milvus::grpc::Command& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::StringReply>>(PrepareAsyncCmdRaw(context, request, cq)); + } + ::grpc::Status DeleteByRange(::grpc::ClientContext* context, const ::milvus::grpc::DeleteByRangeParam& request, ::milvus::grpc::Status* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>> AsyncDeleteByRange(::grpc::ClientContext* context, const ::milvus::grpc::DeleteByRangeParam& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>>(AsyncDeleteByRangeRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>> PrepareAsyncDeleteByRange(::grpc::ClientContext* context, const ::milvus::grpc::DeleteByRangeParam& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>>(PrepareAsyncDeleteByRangeRaw(context, request, cq)); + } + ::grpc::Status PreloadTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::milvus::grpc::Status* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>> AsyncPreloadTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>>(AsyncPreloadTableRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>> PrepareAsyncPreloadTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>>(PrepareAsyncPreloadTableRaw(context, request, cq)); + } + ::grpc::Status DescribeIndex(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::milvus::grpc::IndexParam* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::IndexParam>> AsyncDescribeIndex(::grpc::ClientContext* context, const ::milvus::grpc::TableName& 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::TableName& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::IndexParam>>(PrepareAsyncDescribeIndexRaw(context, request, cq)); } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::ServerStatus>> PrepareAsyncPing(::grpc::ClientContext* context, const ::milvus::grpc::Command& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::ServerStatus>>(PrepareAsyncPingRaw(context, request, cq)); + ::grpc::Status DropIndex(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::milvus::grpc::Status* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>> AsyncDropIndex(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>>(AsyncDropIndexRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>> PrepareAsyncDropIndex(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>>(PrepareAsyncDropIndexRaw(context, request, cq)); } class experimental_async final : public StubInterface::experimental_async_interface { @@ -474,29 +602,45 @@ class MilvusService final { void DropTable(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, std::function) override; void DropTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; void DropTable(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void BuildIndex(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response, std::function) override; - void BuildIndex(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, std::function) override; - void BuildIndex(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void BuildIndex(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void InsertVector(::grpc::ClientContext* context, const ::milvus::grpc::InsertInfos* request, ::milvus::grpc::VectorIds* response, std::function) override; - void InsertVector(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::VectorIds* response, std::function) override; - void InsertVector(::grpc::ClientContext* context, const ::milvus::grpc::InsertInfos* request, ::milvus::grpc::VectorIds* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void InsertVector(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::VectorIds* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void SearchVector(::grpc::ClientContext* context, ::milvus::grpc::SearchVectorInfos* request, ::grpc::experimental::ClientReadReactor< ::milvus::grpc::TopKQueryResult>* reactor) override; - void SearchVectorInFiles(::grpc::ClientContext* context, ::milvus::grpc::SearchVectorInFilesInfos* request, ::grpc::experimental::ClientReadReactor< ::milvus::grpc::TopKQueryResult>* reactor) override; + void CreateIndex(::grpc::ClientContext* context, const ::milvus::grpc::IndexParam* request, ::milvus::grpc::Status* response, std::function) override; + 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 Insert(::grpc::ClientContext* context, const ::milvus::grpc::InsertParam* request, ::milvus::grpc::VectorIds* response, std::function) override; + void Insert(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::VectorIds* response, std::function) override; + void Insert(::grpc::ClientContext* context, const ::milvus::grpc::InsertParam* request, ::milvus::grpc::VectorIds* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void Insert(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::VectorIds* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void Search(::grpc::ClientContext* context, ::milvus::grpc::SearchParam* request, ::grpc::experimental::ClientReadReactor< ::milvus::grpc::TopKQueryResult>* reactor) override; + void SearchInFiles(::grpc::ClientContext* context, ::milvus::grpc::SearchInFilesParam* request, ::grpc::experimental::ClientReadReactor< ::milvus::grpc::TopKQueryResult>* reactor) override; void DescribeTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::TableSchema* response, std::function) override; void DescribeTable(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::TableSchema* response, std::function) override; void DescribeTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::TableSchema* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; void DescribeTable(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::TableSchema* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetTableRowCount(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::TableRowCount* response, std::function) override; - void GetTableRowCount(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::TableRowCount* response, std::function) override; - void GetTableRowCount(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::TableRowCount* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetTableRowCount(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::TableRowCount* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void CountTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::TableRowCount* response, std::function) override; + void CountTable(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::TableRowCount* response, std::function) override; + void CountTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::TableRowCount* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void CountTable(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::TableRowCount* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; void ShowTables(::grpc::ClientContext* context, ::milvus::grpc::Command* request, ::grpc::experimental::ClientReadReactor< ::milvus::grpc::TableName>* reactor) override; - void Ping(::grpc::ClientContext* context, const ::milvus::grpc::Command* request, ::milvus::grpc::ServerStatus* response, std::function) override; - void Ping(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::ServerStatus* response, std::function) override; - void Ping(::grpc::ClientContext* context, const ::milvus::grpc::Command* request, ::milvus::grpc::ServerStatus* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void Ping(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::ServerStatus* 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; + void Cmd(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::StringReply* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void DeleteByRange(::grpc::ClientContext* context, const ::milvus::grpc::DeleteByRangeParam* request, ::milvus::grpc::Status* response, std::function) override; + void DeleteByRange(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, std::function) override; + void DeleteByRange(::grpc::ClientContext* context, const ::milvus::grpc::DeleteByRangeParam* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void DeleteByRange(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void PreloadTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response, std::function) override; + void PreloadTable(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, std::function) override; + void PreloadTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void PreloadTable(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void DescribeIndex(::grpc::ClientContext* context, const ::milvus::grpc::TableName* 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::TableName* 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::TableName* request, ::milvus::grpc::Status* response, std::function) override; + void DropIndex(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, std::function) override; + void DropIndex(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void DropIndex(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; private: friend class Stub; explicit experimental_async(Stub* stub): stub_(stub) { } @@ -514,36 +658,48 @@ class MilvusService final { ::grpc::ClientAsyncResponseReader< ::milvus::grpc::BoolReply>* PrepareAsyncHasTableRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* AsyncDropTableRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* PrepareAsyncDropTableRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* AsyncBuildIndexRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* PrepareAsyncBuildIndexRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::milvus::grpc::VectorIds>* AsyncInsertVectorRaw(::grpc::ClientContext* context, const ::milvus::grpc::InsertInfos& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::milvus::grpc::VectorIds>* PrepareAsyncInsertVectorRaw(::grpc::ClientContext* context, const ::milvus::grpc::InsertInfos& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientReader< ::milvus::grpc::TopKQueryResult>* SearchVectorRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchVectorInfos& request) override; - ::grpc::ClientAsyncReader< ::milvus::grpc::TopKQueryResult>* AsyncSearchVectorRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchVectorInfos& request, ::grpc::CompletionQueue* cq, void* tag) override; - ::grpc::ClientAsyncReader< ::milvus::grpc::TopKQueryResult>* PrepareAsyncSearchVectorRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchVectorInfos& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientReader< ::milvus::grpc::TopKQueryResult>* SearchVectorInFilesRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchVectorInFilesInfos& request) override; - ::grpc::ClientAsyncReader< ::milvus::grpc::TopKQueryResult>* AsyncSearchVectorInFilesRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchVectorInFilesInfos& request, ::grpc::CompletionQueue* cq, void* tag) override; - ::grpc::ClientAsyncReader< ::milvus::grpc::TopKQueryResult>* PrepareAsyncSearchVectorInFilesRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchVectorInFilesInfos& 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::VectorIds>* AsyncInsertRaw(::grpc::ClientContext* context, const ::milvus::grpc::InsertParam& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::milvus::grpc::VectorIds>* PrepareAsyncInsertRaw(::grpc::ClientContext* context, const ::milvus::grpc::InsertParam& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientReader< ::milvus::grpc::TopKQueryResult>* SearchRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchParam& request) override; + ::grpc::ClientAsyncReader< ::milvus::grpc::TopKQueryResult>* AsyncSearchRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchParam& request, ::grpc::CompletionQueue* cq, void* tag) override; + ::grpc::ClientAsyncReader< ::milvus::grpc::TopKQueryResult>* PrepareAsyncSearchRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchParam& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientReader< ::milvus::grpc::TopKQueryResult>* SearchInFilesRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchInFilesParam& request) override; + ::grpc::ClientAsyncReader< ::milvus::grpc::TopKQueryResult>* AsyncSearchInFilesRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchInFilesParam& request, ::grpc::CompletionQueue* cq, void* tag) override; + ::grpc::ClientAsyncReader< ::milvus::grpc::TopKQueryResult>* PrepareAsyncSearchInFilesRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchInFilesParam& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::milvus::grpc::TableSchema>* AsyncDescribeTableRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::milvus::grpc::TableSchema>* PrepareAsyncDescribeTableRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::milvus::grpc::TableRowCount>* AsyncGetTableRowCountRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::milvus::grpc::TableRowCount>* PrepareAsyncGetTableRowCountRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::milvus::grpc::TableRowCount>* AsyncCountTableRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::milvus::grpc::TableRowCount>* PrepareAsyncCountTableRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientReader< ::milvus::grpc::TableName>* ShowTablesRaw(::grpc::ClientContext* context, const ::milvus::grpc::Command& request) override; ::grpc::ClientAsyncReader< ::milvus::grpc::TableName>* AsyncShowTablesRaw(::grpc::ClientContext* context, const ::milvus::grpc::Command& request, ::grpc::CompletionQueue* cq, void* tag) override; ::grpc::ClientAsyncReader< ::milvus::grpc::TableName>* PrepareAsyncShowTablesRaw(::grpc::ClientContext* context, const ::milvus::grpc::Command& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::milvus::grpc::ServerStatus>* AsyncPingRaw(::grpc::ClientContext* context, const ::milvus::grpc::Command& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::milvus::grpc::ServerStatus>* PrepareAsyncPingRaw(::grpc::ClientContext* context, const ::milvus::grpc::Command& 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>* AsyncDeleteByRangeRaw(::grpc::ClientContext* context, const ::milvus::grpc::DeleteByRangeParam& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* PrepareAsyncDeleteByRangeRaw(::grpc::ClientContext* context, const ::milvus::grpc::DeleteByRangeParam& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* AsyncPreloadTableRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* PrepareAsyncPreloadTableRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::milvus::grpc::IndexParam>* AsyncDescribeIndexRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::milvus::grpc::IndexParam>* PrepareAsyncDescribeIndexRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* AsyncDropIndexRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* PrepareAsyncDropIndexRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) override; const ::grpc::internal::RpcMethod rpcmethod_CreateTable_; const ::grpc::internal::RpcMethod rpcmethod_HasTable_; const ::grpc::internal::RpcMethod rpcmethod_DropTable_; - const ::grpc::internal::RpcMethod rpcmethod_BuildIndex_; - const ::grpc::internal::RpcMethod rpcmethod_InsertVector_; - const ::grpc::internal::RpcMethod rpcmethod_SearchVector_; - const ::grpc::internal::RpcMethod rpcmethod_SearchVectorInFiles_; + const ::grpc::internal::RpcMethod rpcmethod_CreateIndex_; + const ::grpc::internal::RpcMethod rpcmethod_Insert_; + const ::grpc::internal::RpcMethod rpcmethod_Search_; + const ::grpc::internal::RpcMethod rpcmethod_SearchInFiles_; const ::grpc::internal::RpcMethod rpcmethod_DescribeTable_; - const ::grpc::internal::RpcMethod rpcmethod_GetTableRowCount_; + const ::grpc::internal::RpcMethod rpcmethod_CountTable_; const ::grpc::internal::RpcMethod rpcmethod_ShowTables_; - const ::grpc::internal::RpcMethod rpcmethod_Ping_; + const ::grpc::internal::RpcMethod rpcmethod_Cmd_; + const ::grpc::internal::RpcMethod rpcmethod_DeleteByRange_; + const ::grpc::internal::RpcMethod rpcmethod_PreloadTable_; + const ::grpc::internal::RpcMethod rpcmethod_DescribeIndex_; + const ::grpc::internal::RpcMethod rpcmethod_DropIndex_; }; static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); @@ -582,7 +738,7 @@ class MilvusService final { // // @param table_name, table is going to be built index. // - virtual ::grpc::Status BuildIndex(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response); + virtual ::grpc::Status CreateIndex(::grpc::ServerContext* context, const ::milvus::grpc::IndexParam* request, ::milvus::grpc::Status* response); // * // @brief Add vector array to table // @@ -592,7 +748,7 @@ class MilvusService final { // @param record_array, vector array is inserted. // // @return vector id array - virtual ::grpc::Status InsertVector(::grpc::ServerContext* context, const ::milvus::grpc::InsertInfos* request, ::milvus::grpc::VectorIds* response); + virtual ::grpc::Status Insert(::grpc::ServerContext* context, const ::milvus::grpc::InsertParam* request, ::milvus::grpc::VectorIds* response); // * // @brief Query vector // @@ -604,7 +760,7 @@ class MilvusService final { // @param topk, how many similarity vectors will be searched. // // @return query result array. - virtual ::grpc::Status SearchVector(::grpc::ServerContext* context, const ::milvus::grpc::SearchVectorInfos* request, ::grpc::ServerWriter< ::milvus::grpc::TopKQueryResult>* writer); + virtual ::grpc::Status Search(::grpc::ServerContext* context, const ::milvus::grpc::SearchParam* request, ::grpc::ServerWriter< ::milvus::grpc::TopKQueryResult>* writer); // * // @brief Internal use query interface // @@ -616,7 +772,7 @@ class MilvusService final { // @param topk, how many similarity vectors will be searched. // // @return query result array. - virtual ::grpc::Status SearchVectorInFiles(::grpc::ServerContext* context, const ::milvus::grpc::SearchVectorInFilesInfos* request, ::grpc::ServerWriter< ::milvus::grpc::TopKQueryResult>* writer); + virtual ::grpc::Status SearchInFiles(::grpc::ServerContext* context, const ::milvus::grpc::SearchInFilesParam* request, ::grpc::ServerWriter< ::milvus::grpc::TopKQueryResult>* writer); // * // @brief Get table schema // @@ -634,7 +790,7 @@ class MilvusService final { // @param table_name, target table name. // // @return table schema - virtual ::grpc::Status GetTableRowCount(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::TableRowCount* response); + virtual ::grpc::Status CountTable(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::TableRowCount* response); // * // @brief List all tables in database // @@ -649,7 +805,35 @@ class MilvusService final { // This method is used to give the server status. // // @return Server status. - virtual ::grpc::Status Ping(::grpc::ServerContext* context, const ::milvus::grpc::Command* request, ::milvus::grpc::ServerStatus* response); + virtual ::grpc::Status Cmd(::grpc::ServerContext* context, const ::milvus::grpc::Command* request, ::milvus::grpc::StringReply* response); + // * + // @brief delete table by range + // + // This method is used to delete vector by range + // + // @return rpc status. + virtual ::grpc::Status DeleteByRange(::grpc::ServerContext* context, const ::milvus::grpc::DeleteByRangeParam* request, ::milvus::grpc::Status* response); + // * + // @brief preload table + // + // This method is used to preload table + // + // @return Status. + virtual ::grpc::Status PreloadTable(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response); + // * + // @brief describe index + // + // This method is used to describe index + // + // @return Status. + virtual ::grpc::Status DescribeIndex(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::IndexParam* response); + // * + // @brief drop index + // + // This method is used to drop index + // + // @return Status. + virtual ::grpc::Status DropIndex(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response); }; template class WithAsyncMethod_CreateTable : public BaseClass { @@ -712,82 +896,82 @@ class MilvusService final { } }; template - class WithAsyncMethod_BuildIndex : public BaseClass { + class WithAsyncMethod_CreateIndex : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithAsyncMethod_BuildIndex() { + WithAsyncMethod_CreateIndex() { ::grpc::Service::MarkMethodAsync(3); } - ~WithAsyncMethod_BuildIndex() override { + ~WithAsyncMethod_CreateIndex() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status BuildIndex(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response) override { + ::grpc::Status CreateIndex(::grpc::ServerContext* context, const ::milvus::grpc::IndexParam* request, ::milvus::grpc::Status* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestBuildIndex(::grpc::ServerContext* context, ::milvus::grpc::TableName* request, ::grpc::ServerAsyncResponseWriter< ::milvus::grpc::Status>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestCreateIndex(::grpc::ServerContext* context, ::milvus::grpc::IndexParam* request, ::grpc::ServerAsyncResponseWriter< ::milvus::grpc::Status>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_InsertVector : public BaseClass { + class WithAsyncMethod_Insert : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithAsyncMethod_InsertVector() { + WithAsyncMethod_Insert() { ::grpc::Service::MarkMethodAsync(4); } - ~WithAsyncMethod_InsertVector() override { + ~WithAsyncMethod_Insert() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status InsertVector(::grpc::ServerContext* context, const ::milvus::grpc::InsertInfos* request, ::milvus::grpc::VectorIds* response) override { + ::grpc::Status Insert(::grpc::ServerContext* context, const ::milvus::grpc::InsertParam* request, ::milvus::grpc::VectorIds* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestInsertVector(::grpc::ServerContext* context, ::milvus::grpc::InsertInfos* request, ::grpc::ServerAsyncResponseWriter< ::milvus::grpc::VectorIds>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestInsert(::grpc::ServerContext* context, ::milvus::grpc::InsertParam* request, ::grpc::ServerAsyncResponseWriter< ::milvus::grpc::VectorIds>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_SearchVector : public BaseClass { + class WithAsyncMethod_Search : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithAsyncMethod_SearchVector() { + WithAsyncMethod_Search() { ::grpc::Service::MarkMethodAsync(5); } - ~WithAsyncMethod_SearchVector() override { + ~WithAsyncMethod_Search() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status SearchVector(::grpc::ServerContext* context, const ::milvus::grpc::SearchVectorInfos* request, ::grpc::ServerWriter< ::milvus::grpc::TopKQueryResult>* writer) override { + ::grpc::Status Search(::grpc::ServerContext* context, const ::milvus::grpc::SearchParam* request, ::grpc::ServerWriter< ::milvus::grpc::TopKQueryResult>* writer) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestSearchVector(::grpc::ServerContext* context, ::milvus::grpc::SearchVectorInfos* request, ::grpc::ServerAsyncWriter< ::milvus::grpc::TopKQueryResult>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestSearch(::grpc::ServerContext* context, ::milvus::grpc::SearchParam* request, ::grpc::ServerAsyncWriter< ::milvus::grpc::TopKQueryResult>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncServerStreaming(5, context, request, writer, new_call_cq, notification_cq, tag); } }; template - class WithAsyncMethod_SearchVectorInFiles : public BaseClass { + class WithAsyncMethod_SearchInFiles : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithAsyncMethod_SearchVectorInFiles() { + WithAsyncMethod_SearchInFiles() { ::grpc::Service::MarkMethodAsync(6); } - ~WithAsyncMethod_SearchVectorInFiles() override { + ~WithAsyncMethod_SearchInFiles() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status SearchVectorInFiles(::grpc::ServerContext* context, const ::milvus::grpc::SearchVectorInFilesInfos* request, ::grpc::ServerWriter< ::milvus::grpc::TopKQueryResult>* writer) override { + ::grpc::Status SearchInFiles(::grpc::ServerContext* context, const ::milvus::grpc::SearchInFilesParam* request, ::grpc::ServerWriter< ::milvus::grpc::TopKQueryResult>* writer) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestSearchVectorInFiles(::grpc::ServerContext* context, ::milvus::grpc::SearchVectorInFilesInfos* request, ::grpc::ServerAsyncWriter< ::milvus::grpc::TopKQueryResult>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestSearchInFiles(::grpc::ServerContext* context, ::milvus::grpc::SearchInFilesParam* request, ::grpc::ServerAsyncWriter< ::milvus::grpc::TopKQueryResult>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncServerStreaming(6, context, request, writer, new_call_cq, notification_cq, tag); } }; @@ -812,22 +996,22 @@ class MilvusService final { } }; template - class WithAsyncMethod_GetTableRowCount : public BaseClass { + class WithAsyncMethod_CountTable : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithAsyncMethod_GetTableRowCount() { + WithAsyncMethod_CountTable() { ::grpc::Service::MarkMethodAsync(8); } - ~WithAsyncMethod_GetTableRowCount() override { + ~WithAsyncMethod_CountTable() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetTableRowCount(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::TableRowCount* response) override { + ::grpc::Status CountTable(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::TableRowCount* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestGetTableRowCount(::grpc::ServerContext* context, ::milvus::grpc::TableName* request, ::grpc::ServerAsyncResponseWriter< ::milvus::grpc::TableRowCount>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestCountTable(::grpc::ServerContext* context, ::milvus::grpc::TableName* request, ::grpc::ServerAsyncResponseWriter< ::milvus::grpc::TableRowCount>* 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); } }; @@ -852,26 +1036,106 @@ class MilvusService final { } }; template - class WithAsyncMethod_Ping : public BaseClass { + class WithAsyncMethod_Cmd : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithAsyncMethod_Ping() { + WithAsyncMethod_Cmd() { ::grpc::Service::MarkMethodAsync(10); } - ~WithAsyncMethod_Ping() override { + ~WithAsyncMethod_Cmd() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status Ping(::grpc::ServerContext* context, const ::milvus::grpc::Command* request, ::milvus::grpc::ServerStatus* response) override { + ::grpc::Status Cmd(::grpc::ServerContext* context, const ::milvus::grpc::Command* request, ::milvus::grpc::StringReply* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestPing(::grpc::ServerContext* context, ::milvus::grpc::Command* request, ::grpc::ServerAsyncResponseWriter< ::milvus::grpc::ServerStatus>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + 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(10, context, request, response, new_call_cq, notification_cq, tag); } }; - typedef WithAsyncMethod_CreateTable > > > > > > > > > > AsyncService; + template + class WithAsyncMethod_DeleteByRange : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_DeleteByRange() { + ::grpc::Service::MarkMethodAsync(11); + } + ~WithAsyncMethod_DeleteByRange() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteByRange(::grpc::ServerContext* context, const ::milvus::grpc::DeleteByRangeParam* request, ::milvus::grpc::Status* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDeleteByRange(::grpc::ServerContext* context, ::milvus::grpc::DeleteByRangeParam* request, ::grpc::ServerAsyncResponseWriter< ::milvus::grpc::Status>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_PreloadTable : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_PreloadTable() { + ::grpc::Service::MarkMethodAsync(12); + } + ~WithAsyncMethod_PreloadTable() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PreloadTable(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestPreloadTable(::grpc::ServerContext* context, ::milvus::grpc::TableName* request, ::grpc::ServerAsyncResponseWriter< ::milvus::grpc::Status>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(12, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_DescribeIndex : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_DescribeIndex() { + ::grpc::Service::MarkMethodAsync(13); + } + ~WithAsyncMethod_DescribeIndex() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DescribeIndex(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::IndexParam* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDescribeIndex(::grpc::ServerContext* context, ::milvus::grpc::TableName* request, ::grpc::ServerAsyncResponseWriter< ::milvus::grpc::IndexParam>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(13, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_DropIndex : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithAsyncMethod_DropIndex() { + ::grpc::Service::MarkMethodAsync(14); + } + ~WithAsyncMethod_DropIndex() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DropIndex(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDropIndex(::grpc::ServerContext* context, ::milvus::grpc::TableName* request, ::grpc::ServerAsyncResponseWriter< ::milvus::grpc::Status>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(14, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_CreateTable > > > > > > > > > > > > > > AsyncService; template class ExperimentalWithCallbackMethod_CreateTable : public BaseClass { private: @@ -966,110 +1230,110 @@ class MilvusService final { virtual void DropTable(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template - class ExperimentalWithCallbackMethod_BuildIndex : public BaseClass { + class ExperimentalWithCallbackMethod_CreateIndex : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - ExperimentalWithCallbackMethod_BuildIndex() { + ExperimentalWithCallbackMethod_CreateIndex() { ::grpc::Service::experimental().MarkMethodCallback(3, - new ::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::TableName, ::milvus::grpc::Status>( + new ::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::IndexParam, ::milvus::grpc::Status>( [this](::grpc::ServerContext* context, - const ::milvus::grpc::TableName* request, + const ::milvus::grpc::IndexParam* request, ::milvus::grpc::Status* response, ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->BuildIndex(context, request, response, controller); + return this->CreateIndex(context, request, response, controller); })); } - void SetMessageAllocatorFor_BuildIndex( - ::grpc::experimental::MessageAllocator< ::milvus::grpc::TableName, ::milvus::grpc::Status>* allocator) { - static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::TableName, ::milvus::grpc::Status>*>( + void SetMessageAllocatorFor_CreateIndex( + ::grpc::experimental::MessageAllocator< ::milvus::grpc::IndexParam, ::milvus::grpc::Status>* allocator) { + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::IndexParam, ::milvus::grpc::Status>*>( ::grpc::Service::experimental().GetHandler(3)) ->SetMessageAllocator(allocator); } - ~ExperimentalWithCallbackMethod_BuildIndex() override { + ~ExperimentalWithCallbackMethod_CreateIndex() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status BuildIndex(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response) override { + ::grpc::Status CreateIndex(::grpc::ServerContext* context, const ::milvus::grpc::IndexParam* request, ::milvus::grpc::Status* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual void BuildIndex(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + virtual void CreateIndex(::grpc::ServerContext* context, const ::milvus::grpc::IndexParam* request, ::milvus::grpc::Status* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template - class ExperimentalWithCallbackMethod_InsertVector : public BaseClass { + class ExperimentalWithCallbackMethod_Insert : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - ExperimentalWithCallbackMethod_InsertVector() { + ExperimentalWithCallbackMethod_Insert() { ::grpc::Service::experimental().MarkMethodCallback(4, - new ::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::InsertInfos, ::milvus::grpc::VectorIds>( + new ::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::InsertParam, ::milvus::grpc::VectorIds>( [this](::grpc::ServerContext* context, - const ::milvus::grpc::InsertInfos* request, + const ::milvus::grpc::InsertParam* request, ::milvus::grpc::VectorIds* response, ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->InsertVector(context, request, response, controller); + return this->Insert(context, request, response, controller); })); } - void SetMessageAllocatorFor_InsertVector( - ::grpc::experimental::MessageAllocator< ::milvus::grpc::InsertInfos, ::milvus::grpc::VectorIds>* allocator) { - static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::InsertInfos, ::milvus::grpc::VectorIds>*>( + void SetMessageAllocatorFor_Insert( + ::grpc::experimental::MessageAllocator< ::milvus::grpc::InsertParam, ::milvus::grpc::VectorIds>* allocator) { + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::InsertParam, ::milvus::grpc::VectorIds>*>( ::grpc::Service::experimental().GetHandler(4)) ->SetMessageAllocator(allocator); } - ~ExperimentalWithCallbackMethod_InsertVector() override { + ~ExperimentalWithCallbackMethod_Insert() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status InsertVector(::grpc::ServerContext* context, const ::milvus::grpc::InsertInfos* request, ::milvus::grpc::VectorIds* response) override { + ::grpc::Status Insert(::grpc::ServerContext* context, const ::milvus::grpc::InsertParam* request, ::milvus::grpc::VectorIds* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual void InsertVector(::grpc::ServerContext* context, const ::milvus::grpc::InsertInfos* request, ::milvus::grpc::VectorIds* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + virtual void Insert(::grpc::ServerContext* context, const ::milvus::grpc::InsertParam* request, ::milvus::grpc::VectorIds* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template - class ExperimentalWithCallbackMethod_SearchVector : public BaseClass { + class ExperimentalWithCallbackMethod_Search : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - ExperimentalWithCallbackMethod_SearchVector() { + ExperimentalWithCallbackMethod_Search() { ::grpc::Service::experimental().MarkMethodCallback(5, - new ::grpc_impl::internal::CallbackServerStreamingHandler< ::milvus::grpc::SearchVectorInfos, ::milvus::grpc::TopKQueryResult>( - [this] { return this->SearchVector(); })); + new ::grpc_impl::internal::CallbackServerStreamingHandler< ::milvus::grpc::SearchParam, ::milvus::grpc::TopKQueryResult>( + [this] { return this->Search(); })); } - ~ExperimentalWithCallbackMethod_SearchVector() override { + ~ExperimentalWithCallbackMethod_Search() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status SearchVector(::grpc::ServerContext* context, const ::milvus::grpc::SearchVectorInfos* request, ::grpc::ServerWriter< ::milvus::grpc::TopKQueryResult>* writer) override { + ::grpc::Status Search(::grpc::ServerContext* context, const ::milvus::grpc::SearchParam* request, ::grpc::ServerWriter< ::milvus::grpc::TopKQueryResult>* writer) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual ::grpc::experimental::ServerWriteReactor< ::milvus::grpc::SearchVectorInfos, ::milvus::grpc::TopKQueryResult>* SearchVector() { + virtual ::grpc::experimental::ServerWriteReactor< ::milvus::grpc::SearchParam, ::milvus::grpc::TopKQueryResult>* Search() { return new ::grpc_impl::internal::UnimplementedWriteReactor< - ::milvus::grpc::SearchVectorInfos, ::milvus::grpc::TopKQueryResult>;} + ::milvus::grpc::SearchParam, ::milvus::grpc::TopKQueryResult>;} }; template - class ExperimentalWithCallbackMethod_SearchVectorInFiles : public BaseClass { + class ExperimentalWithCallbackMethod_SearchInFiles : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - ExperimentalWithCallbackMethod_SearchVectorInFiles() { + ExperimentalWithCallbackMethod_SearchInFiles() { ::grpc::Service::experimental().MarkMethodCallback(6, - new ::grpc_impl::internal::CallbackServerStreamingHandler< ::milvus::grpc::SearchVectorInFilesInfos, ::milvus::grpc::TopKQueryResult>( - [this] { return this->SearchVectorInFiles(); })); + new ::grpc_impl::internal::CallbackServerStreamingHandler< ::milvus::grpc::SearchInFilesParam, ::milvus::grpc::TopKQueryResult>( + [this] { return this->SearchInFiles(); })); } - ~ExperimentalWithCallbackMethod_SearchVectorInFiles() override { + ~ExperimentalWithCallbackMethod_SearchInFiles() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status SearchVectorInFiles(::grpc::ServerContext* context, const ::milvus::grpc::SearchVectorInFilesInfos* request, ::grpc::ServerWriter< ::milvus::grpc::TopKQueryResult>* writer) override { + ::grpc::Status SearchInFiles(::grpc::ServerContext* context, const ::milvus::grpc::SearchInFilesParam* request, ::grpc::ServerWriter< ::milvus::grpc::TopKQueryResult>* writer) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual ::grpc::experimental::ServerWriteReactor< ::milvus::grpc::SearchVectorInFilesInfos, ::milvus::grpc::TopKQueryResult>* SearchVectorInFiles() { + virtual ::grpc::experimental::ServerWriteReactor< ::milvus::grpc::SearchInFilesParam, ::milvus::grpc::TopKQueryResult>* SearchInFiles() { return new ::grpc_impl::internal::UnimplementedWriteReactor< - ::milvus::grpc::SearchVectorInFilesInfos, ::milvus::grpc::TopKQueryResult>;} + ::milvus::grpc::SearchInFilesParam, ::milvus::grpc::TopKQueryResult>;} }; template class ExperimentalWithCallbackMethod_DescribeTable : public BaseClass { @@ -1103,35 +1367,35 @@ class MilvusService final { virtual void DescribeTable(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::TableSchema* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template - class ExperimentalWithCallbackMethod_GetTableRowCount : public BaseClass { + class ExperimentalWithCallbackMethod_CountTable : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - ExperimentalWithCallbackMethod_GetTableRowCount() { + ExperimentalWithCallbackMethod_CountTable() { ::grpc::Service::experimental().MarkMethodCallback(8, new ::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::TableName, ::milvus::grpc::TableRowCount>( [this](::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::TableRowCount* response, ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->GetTableRowCount(context, request, response, controller); + return this->CountTable(context, request, response, controller); })); } - void SetMessageAllocatorFor_GetTableRowCount( + void SetMessageAllocatorFor_CountTable( ::grpc::experimental::MessageAllocator< ::milvus::grpc::TableName, ::milvus::grpc::TableRowCount>* allocator) { static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::TableName, ::milvus::grpc::TableRowCount>*>( ::grpc::Service::experimental().GetHandler(8)) ->SetMessageAllocator(allocator); } - ~ExperimentalWithCallbackMethod_GetTableRowCount() override { + ~ExperimentalWithCallbackMethod_CountTable() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetTableRowCount(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::TableRowCount* response) override { + ::grpc::Status CountTable(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::TableRowCount* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual void GetTableRowCount(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::TableRowCount* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + virtual void CountTable(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::TableRowCount* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template class ExperimentalWithCallbackMethod_ShowTables : public BaseClass { @@ -1156,37 +1420,161 @@ class MilvusService final { ::milvus::grpc::Command, ::milvus::grpc::TableName>;} }; template - class ExperimentalWithCallbackMethod_Ping : public BaseClass { + class ExperimentalWithCallbackMethod_Cmd : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - ExperimentalWithCallbackMethod_Ping() { + ExperimentalWithCallbackMethod_Cmd() { ::grpc::Service::experimental().MarkMethodCallback(10, - new ::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::Command, ::milvus::grpc::ServerStatus>( + new ::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::Command, ::milvus::grpc::StringReply>( [this](::grpc::ServerContext* context, const ::milvus::grpc::Command* request, - ::milvus::grpc::ServerStatus* response, + ::milvus::grpc::StringReply* response, ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->Ping(context, request, response, controller); + return this->Cmd(context, request, response, controller); })); } - void SetMessageAllocatorFor_Ping( - ::grpc::experimental::MessageAllocator< ::milvus::grpc::Command, ::milvus::grpc::ServerStatus>* allocator) { - static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::Command, ::milvus::grpc::ServerStatus>*>( + 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(10)) ->SetMessageAllocator(allocator); } - ~ExperimentalWithCallbackMethod_Ping() override { + ~ExperimentalWithCallbackMethod_Cmd() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Cmd(::grpc::ServerContext* context, const ::milvus::grpc::Command* request, ::milvus::grpc::StringReply* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void Cmd(::grpc::ServerContext* context, const ::milvus::grpc::Command* request, ::milvus::grpc::StringReply* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_DeleteByRange : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_DeleteByRange() { + ::grpc::Service::experimental().MarkMethodCallback(11, + new ::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::DeleteByRangeParam, ::milvus::grpc::Status>( + [this](::grpc::ServerContext* context, + const ::milvus::grpc::DeleteByRangeParam* request, + ::milvus::grpc::Status* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->DeleteByRange(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_DeleteByRange( + ::grpc::experimental::MessageAllocator< ::milvus::grpc::DeleteByRangeParam, ::milvus::grpc::Status>* allocator) { + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::DeleteByRangeParam, ::milvus::grpc::Status>*>( + ::grpc::Service::experimental().GetHandler(11)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_DeleteByRange() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteByRange(::grpc::ServerContext* context, const ::milvus::grpc::DeleteByRangeParam* request, ::milvus::grpc::Status* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void DeleteByRange(::grpc::ServerContext* context, const ::milvus::grpc::DeleteByRangeParam* request, ::milvus::grpc::Status* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_PreloadTable : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_PreloadTable() { + ::grpc::Service::experimental().MarkMethodCallback(12, + new ::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::TableName, ::milvus::grpc::Status>( + [this](::grpc::ServerContext* context, + const ::milvus::grpc::TableName* request, + ::milvus::grpc::Status* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->PreloadTable(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_PreloadTable( + ::grpc::experimental::MessageAllocator< ::milvus::grpc::TableName, ::milvus::grpc::Status>* allocator) { + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::TableName, ::milvus::grpc::Status>*>( + ::grpc::Service::experimental().GetHandler(12)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_PreloadTable() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status Ping(::grpc::ServerContext* context, const ::milvus::grpc::Command* request, ::milvus::grpc::ServerStatus* response) override { + ::grpc::Status PreloadTable(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual void Ping(::grpc::ServerContext* context, const ::milvus::grpc::Command* request, ::milvus::grpc::ServerStatus* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + virtual void PreloadTable(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; - typedef ExperimentalWithCallbackMethod_CreateTable > > > > > > > > > > ExperimentalCallbackService; + template + class ExperimentalWithCallbackMethod_DescribeIndex : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_DescribeIndex() { + ::grpc::Service::experimental().MarkMethodCallback(13, + new ::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::TableName, ::milvus::grpc::IndexParam>( + [this](::grpc::ServerContext* context, + const ::milvus::grpc::TableName* request, + ::milvus::grpc::IndexParam* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->DescribeIndex(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_DescribeIndex( + ::grpc::experimental::MessageAllocator< ::milvus::grpc::TableName, ::milvus::grpc::IndexParam>* allocator) { + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::TableName, ::milvus::grpc::IndexParam>*>( + ::grpc::Service::experimental().GetHandler(13)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_DescribeIndex() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DescribeIndex(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::IndexParam* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void DescribeIndex(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::IndexParam* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithCallbackMethod_DropIndex : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithCallbackMethod_DropIndex() { + ::grpc::Service::experimental().MarkMethodCallback(14, + new ::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::TableName, ::milvus::grpc::Status>( + [this](::grpc::ServerContext* context, + const ::milvus::grpc::TableName* request, + ::milvus::grpc::Status* response, + ::grpc::experimental::ServerCallbackRpcController* controller) { + return this->DropIndex(context, request, response, controller); + })); + } + void SetMessageAllocatorFor_DropIndex( + ::grpc::experimental::MessageAllocator< ::milvus::grpc::TableName, ::milvus::grpc::Status>* allocator) { + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::TableName, ::milvus::grpc::Status>*>( + ::grpc::Service::experimental().GetHandler(14)) + ->SetMessageAllocator(allocator); + } + ~ExperimentalWithCallbackMethod_DropIndex() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DropIndex(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void DropIndex(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + typedef ExperimentalWithCallbackMethod_CreateTable > > > > > > > > > > > > > > ExperimentalCallbackService; template class WithGenericMethod_CreateTable : public BaseClass { private: @@ -1239,69 +1627,69 @@ class MilvusService final { } }; template - class WithGenericMethod_BuildIndex : public BaseClass { + class WithGenericMethod_CreateIndex : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithGenericMethod_BuildIndex() { + WithGenericMethod_CreateIndex() { ::grpc::Service::MarkMethodGeneric(3); } - ~WithGenericMethod_BuildIndex() override { + ~WithGenericMethod_CreateIndex() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status BuildIndex(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response) override { + ::grpc::Status CreateIndex(::grpc::ServerContext* context, const ::milvus::grpc::IndexParam* request, ::milvus::grpc::Status* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } }; template - class WithGenericMethod_InsertVector : public BaseClass { + class WithGenericMethod_Insert : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithGenericMethod_InsertVector() { + WithGenericMethod_Insert() { ::grpc::Service::MarkMethodGeneric(4); } - ~WithGenericMethod_InsertVector() override { + ~WithGenericMethod_Insert() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status InsertVector(::grpc::ServerContext* context, const ::milvus::grpc::InsertInfos* request, ::milvus::grpc::VectorIds* response) override { + ::grpc::Status Insert(::grpc::ServerContext* context, const ::milvus::grpc::InsertParam* request, ::milvus::grpc::VectorIds* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } }; template - class WithGenericMethod_SearchVector : public BaseClass { + class WithGenericMethod_Search : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithGenericMethod_SearchVector() { + WithGenericMethod_Search() { ::grpc::Service::MarkMethodGeneric(5); } - ~WithGenericMethod_SearchVector() override { + ~WithGenericMethod_Search() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status SearchVector(::grpc::ServerContext* context, const ::milvus::grpc::SearchVectorInfos* request, ::grpc::ServerWriter< ::milvus::grpc::TopKQueryResult>* writer) override { + ::grpc::Status Search(::grpc::ServerContext* context, const ::milvus::grpc::SearchParam* request, ::grpc::ServerWriter< ::milvus::grpc::TopKQueryResult>* writer) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } }; template - class WithGenericMethod_SearchVectorInFiles : public BaseClass { + class WithGenericMethod_SearchInFiles : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithGenericMethod_SearchVectorInFiles() { + WithGenericMethod_SearchInFiles() { ::grpc::Service::MarkMethodGeneric(6); } - ~WithGenericMethod_SearchVectorInFiles() override { + ~WithGenericMethod_SearchInFiles() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status SearchVectorInFiles(::grpc::ServerContext* context, const ::milvus::grpc::SearchVectorInFilesInfos* request, ::grpc::ServerWriter< ::milvus::grpc::TopKQueryResult>* writer) override { + ::grpc::Status SearchInFiles(::grpc::ServerContext* context, const ::milvus::grpc::SearchInFilesParam* request, ::grpc::ServerWriter< ::milvus::grpc::TopKQueryResult>* writer) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -1324,18 +1712,18 @@ class MilvusService final { } }; template - class WithGenericMethod_GetTableRowCount : public BaseClass { + class WithGenericMethod_CountTable : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithGenericMethod_GetTableRowCount() { + WithGenericMethod_CountTable() { ::grpc::Service::MarkMethodGeneric(8); } - ~WithGenericMethod_GetTableRowCount() override { + ~WithGenericMethod_CountTable() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetTableRowCount(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::TableRowCount* response) override { + ::grpc::Status CountTable(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::TableRowCount* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -1358,18 +1746,86 @@ class MilvusService final { } }; template - class WithGenericMethod_Ping : public BaseClass { + class WithGenericMethod_Cmd : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithGenericMethod_Ping() { + WithGenericMethod_Cmd() { ::grpc::Service::MarkMethodGeneric(10); } - ~WithGenericMethod_Ping() override { + ~WithGenericMethod_Cmd() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Cmd(::grpc::ServerContext* context, const ::milvus::grpc::Command* request, ::milvus::grpc::StringReply* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_DeleteByRange : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_DeleteByRange() { + ::grpc::Service::MarkMethodGeneric(11); + } + ~WithGenericMethod_DeleteByRange() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteByRange(::grpc::ServerContext* context, const ::milvus::grpc::DeleteByRangeParam* request, ::milvus::grpc::Status* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_PreloadTable : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_PreloadTable() { + ::grpc::Service::MarkMethodGeneric(12); + } + ~WithGenericMethod_PreloadTable() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PreloadTable(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_DescribeIndex : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_DescribeIndex() { + ::grpc::Service::MarkMethodGeneric(13); + } + ~WithGenericMethod_DescribeIndex() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DescribeIndex(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::IndexParam* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_DropIndex : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithGenericMethod_DropIndex() { + ::grpc::Service::MarkMethodGeneric(14); + } + ~WithGenericMethod_DropIndex() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status Ping(::grpc::ServerContext* context, const ::milvus::grpc::Command* request, ::milvus::grpc::ServerStatus* response) override { + ::grpc::Status DropIndex(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } @@ -1435,82 +1891,82 @@ class MilvusService final { } }; template - class WithRawMethod_BuildIndex : public BaseClass { + class WithRawMethod_CreateIndex : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithRawMethod_BuildIndex() { + WithRawMethod_CreateIndex() { ::grpc::Service::MarkMethodRaw(3); } - ~WithRawMethod_BuildIndex() override { + ~WithRawMethod_CreateIndex() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status BuildIndex(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response) override { + ::grpc::Status CreateIndex(::grpc::ServerContext* context, const ::milvus::grpc::IndexParam* request, ::milvus::grpc::Status* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestBuildIndex(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestCreateIndex(::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(3, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_InsertVector : public BaseClass { + class WithRawMethod_Insert : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithRawMethod_InsertVector() { + WithRawMethod_Insert() { ::grpc::Service::MarkMethodRaw(4); } - ~WithRawMethod_InsertVector() override { + ~WithRawMethod_Insert() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status InsertVector(::grpc::ServerContext* context, const ::milvus::grpc::InsertInfos* request, ::milvus::grpc::VectorIds* response) override { + ::grpc::Status Insert(::grpc::ServerContext* context, const ::milvus::grpc::InsertParam* request, ::milvus::grpc::VectorIds* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestInsertVector(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestInsert(::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(4, context, request, response, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_SearchVector : public BaseClass { + class WithRawMethod_Search : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithRawMethod_SearchVector() { + WithRawMethod_Search() { ::grpc::Service::MarkMethodRaw(5); } - ~WithRawMethod_SearchVector() override { + ~WithRawMethod_Search() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status SearchVector(::grpc::ServerContext* context, const ::milvus::grpc::SearchVectorInfos* request, ::grpc::ServerWriter< ::milvus::grpc::TopKQueryResult>* writer) override { + ::grpc::Status Search(::grpc::ServerContext* context, const ::milvus::grpc::SearchParam* request, ::grpc::ServerWriter< ::milvus::grpc::TopKQueryResult>* writer) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestSearchVector(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter< ::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestSearch(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter< ::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncServerStreaming(5, context, request, writer, new_call_cq, notification_cq, tag); } }; template - class WithRawMethod_SearchVectorInFiles : public BaseClass { + class WithRawMethod_SearchInFiles : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithRawMethod_SearchVectorInFiles() { + WithRawMethod_SearchInFiles() { ::grpc::Service::MarkMethodRaw(6); } - ~WithRawMethod_SearchVectorInFiles() override { + ~WithRawMethod_SearchInFiles() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status SearchVectorInFiles(::grpc::ServerContext* context, const ::milvus::grpc::SearchVectorInFilesInfos* request, ::grpc::ServerWriter< ::milvus::grpc::TopKQueryResult>* writer) override { + ::grpc::Status SearchInFiles(::grpc::ServerContext* context, const ::milvus::grpc::SearchInFilesParam* request, ::grpc::ServerWriter< ::milvus::grpc::TopKQueryResult>* writer) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestSearchVectorInFiles(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter< ::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestSearchInFiles(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter< ::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { ::grpc::Service::RequestAsyncServerStreaming(6, context, request, writer, new_call_cq, notification_cq, tag); } }; @@ -1535,22 +1991,22 @@ class MilvusService final { } }; template - class WithRawMethod_GetTableRowCount : public BaseClass { + class WithRawMethod_CountTable : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithRawMethod_GetTableRowCount() { + WithRawMethod_CountTable() { ::grpc::Service::MarkMethodRaw(8); } - ~WithRawMethod_GetTableRowCount() override { + ~WithRawMethod_CountTable() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetTableRowCount(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::TableRowCount* response) override { + ::grpc::Status CountTable(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::TableRowCount* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestGetTableRowCount(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + void RequestCountTable(::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(8, context, request, response, new_call_cq, notification_cq, tag); } }; @@ -1575,26 +2031,106 @@ class MilvusService final { } }; template - class WithRawMethod_Ping : public BaseClass { + class WithRawMethod_Cmd : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithRawMethod_Ping() { + WithRawMethod_Cmd() { ::grpc::Service::MarkMethodRaw(10); } - ~WithRawMethod_Ping() override { + ~WithRawMethod_Cmd() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status Ping(::grpc::ServerContext* context, const ::milvus::grpc::Command* request, ::milvus::grpc::ServerStatus* response) override { + ::grpc::Status Cmd(::grpc::ServerContext* context, const ::milvus::grpc::Command* request, ::milvus::grpc::StringReply* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - void RequestPing(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + 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(10, context, request, response, new_call_cq, notification_cq, tag); } }; template + class WithRawMethod_DeleteByRange : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_DeleteByRange() { + ::grpc::Service::MarkMethodRaw(11); + } + ~WithRawMethod_DeleteByRange() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteByRange(::grpc::ServerContext* context, const ::milvus::grpc::DeleteByRangeParam* request, ::milvus::grpc::Status* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDeleteByRange(::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(11, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_PreloadTable : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_PreloadTable() { + ::grpc::Service::MarkMethodRaw(12); + } + ~WithRawMethod_PreloadTable() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PreloadTable(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestPreloadTable(::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(12, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_DescribeIndex : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_DescribeIndex() { + ::grpc::Service::MarkMethodRaw(13); + } + ~WithRawMethod_DescribeIndex() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DescribeIndex(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::IndexParam* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDescribeIndex(::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(13, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_DropIndex : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithRawMethod_DropIndex() { + ::grpc::Service::MarkMethodRaw(14); + } + ~WithRawMethod_DropIndex() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DropIndex(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestDropIndex(::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(14, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template class ExperimentalWithRawCallbackMethod_CreateTable : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} @@ -1670,96 +2206,96 @@ class MilvusService final { virtual void DropTable(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template - class ExperimentalWithRawCallbackMethod_BuildIndex : public BaseClass { + class ExperimentalWithRawCallbackMethod_CreateIndex : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - ExperimentalWithRawCallbackMethod_BuildIndex() { + ExperimentalWithRawCallbackMethod_CreateIndex() { ::grpc::Service::experimental().MarkMethodRawCallback(3, 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->BuildIndex(context, request, response, controller); + this->CreateIndex(context, request, response, controller); })); } - ~ExperimentalWithRawCallbackMethod_BuildIndex() override { + ~ExperimentalWithRawCallbackMethod_CreateIndex() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status BuildIndex(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response) override { + ::grpc::Status CreateIndex(::grpc::ServerContext* context, const ::milvus::grpc::IndexParam* request, ::milvus::grpc::Status* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual void BuildIndex(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + virtual void CreateIndex(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template - class ExperimentalWithRawCallbackMethod_InsertVector : public BaseClass { + class ExperimentalWithRawCallbackMethod_Insert : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - ExperimentalWithRawCallbackMethod_InsertVector() { + ExperimentalWithRawCallbackMethod_Insert() { ::grpc::Service::experimental().MarkMethodRawCallback(4, 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->InsertVector(context, request, response, controller); + this->Insert(context, request, response, controller); })); } - ~ExperimentalWithRawCallbackMethod_InsertVector() override { + ~ExperimentalWithRawCallbackMethod_Insert() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status InsertVector(::grpc::ServerContext* context, const ::milvus::grpc::InsertInfos* request, ::milvus::grpc::VectorIds* response) override { + ::grpc::Status Insert(::grpc::ServerContext* context, const ::milvus::grpc::InsertParam* request, ::milvus::grpc::VectorIds* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual void InsertVector(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + virtual void Insert(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template - class ExperimentalWithRawCallbackMethod_SearchVector : public BaseClass { + class ExperimentalWithRawCallbackMethod_Search : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - ExperimentalWithRawCallbackMethod_SearchVector() { + ExperimentalWithRawCallbackMethod_Search() { ::grpc::Service::experimental().MarkMethodRawCallback(5, new ::grpc_impl::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this] { return this->SearchVector(); })); + [this] { return this->Search(); })); } - ~ExperimentalWithRawCallbackMethod_SearchVector() override { + ~ExperimentalWithRawCallbackMethod_Search() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status SearchVector(::grpc::ServerContext* context, const ::milvus::grpc::SearchVectorInfos* request, ::grpc::ServerWriter< ::milvus::grpc::TopKQueryResult>* writer) override { + ::grpc::Status Search(::grpc::ServerContext* context, const ::milvus::grpc::SearchParam* request, ::grpc::ServerWriter< ::milvus::grpc::TopKQueryResult>* writer) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* SearchVector() { + virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* Search() { return new ::grpc_impl::internal::UnimplementedWriteReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>;} }; template - class ExperimentalWithRawCallbackMethod_SearchVectorInFiles : public BaseClass { + class ExperimentalWithRawCallbackMethod_SearchInFiles : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - ExperimentalWithRawCallbackMethod_SearchVectorInFiles() { + ExperimentalWithRawCallbackMethod_SearchInFiles() { ::grpc::Service::experimental().MarkMethodRawCallback(6, new ::grpc_impl::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this] { return this->SearchVectorInFiles(); })); + [this] { return this->SearchInFiles(); })); } - ~ExperimentalWithRawCallbackMethod_SearchVectorInFiles() override { + ~ExperimentalWithRawCallbackMethod_SearchInFiles() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status SearchVectorInFiles(::grpc::ServerContext* context, const ::milvus::grpc::SearchVectorInFilesInfos* request, ::grpc::ServerWriter< ::milvus::grpc::TopKQueryResult>* writer) override { + ::grpc::Status SearchInFiles(::grpc::ServerContext* context, const ::milvus::grpc::SearchInFilesParam* request, ::grpc::ServerWriter< ::milvus::grpc::TopKQueryResult>* writer) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* SearchVectorInFiles() { + virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* SearchInFiles() { return new ::grpc_impl::internal::UnimplementedWriteReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>;} }; @@ -1789,29 +2325,29 @@ class MilvusService final { virtual void DescribeTable(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template - class ExperimentalWithRawCallbackMethod_GetTableRowCount : public BaseClass { + class ExperimentalWithRawCallbackMethod_CountTable : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - ExperimentalWithRawCallbackMethod_GetTableRowCount() { + ExperimentalWithRawCallbackMethod_CountTable() { ::grpc::Service::experimental().MarkMethodRawCallback(8, 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->GetTableRowCount(context, request, response, controller); + this->CountTable(context, request, response, controller); })); } - ~ExperimentalWithRawCallbackMethod_GetTableRowCount() override { + ~ExperimentalWithRawCallbackMethod_CountTable() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status GetTableRowCount(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::TableRowCount* response) override { + ::grpc::Status CountTable(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::TableRowCount* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual void GetTableRowCount(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + virtual void CountTable(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template class ExperimentalWithRawCallbackMethod_ShowTables : public BaseClass { @@ -1836,29 +2372,129 @@ class MilvusService final { ::grpc::ByteBuffer, ::grpc::ByteBuffer>;} }; template - class ExperimentalWithRawCallbackMethod_Ping : public BaseClass { + class ExperimentalWithRawCallbackMethod_Cmd : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - ExperimentalWithRawCallbackMethod_Ping() { + ExperimentalWithRawCallbackMethod_Cmd() { ::grpc::Service::experimental().MarkMethodRawCallback(10, 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->Ping(context, request, response, controller); + this->Cmd(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_Cmd() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Cmd(::grpc::ServerContext* context, const ::milvus::grpc::Command* request, ::milvus::grpc::StringReply* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void Cmd(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_DeleteByRange : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_DeleteByRange() { + ::grpc::Service::experimental().MarkMethodRawCallback(11, + 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->DeleteByRange(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_DeleteByRange() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DeleteByRange(::grpc::ServerContext* context, const ::milvus::grpc::DeleteByRangeParam* request, ::milvus::grpc::Status* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void DeleteByRange(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_PreloadTable : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_PreloadTable() { + ::grpc::Service::experimental().MarkMethodRawCallback(12, + 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->PreloadTable(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_PreloadTable() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PreloadTable(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void PreloadTable(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_DescribeIndex : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_DescribeIndex() { + ::grpc::Service::experimental().MarkMethodRawCallback(13, + 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->DescribeIndex(context, request, response, controller); + })); + } + ~ExperimentalWithRawCallbackMethod_DescribeIndex() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status DescribeIndex(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::IndexParam* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual void DescribeIndex(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + }; + template + class ExperimentalWithRawCallbackMethod_DropIndex : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + ExperimentalWithRawCallbackMethod_DropIndex() { + ::grpc::Service::experimental().MarkMethodRawCallback(14, + 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->DropIndex(context, request, response, controller); })); } - ~ExperimentalWithRawCallbackMethod_Ping() override { + ~ExperimentalWithRawCallbackMethod_DropIndex() override { BaseClassMustBeDerivedFromService(this); } // disable synchronous version of this method - ::grpc::Status Ping(::grpc::ServerContext* context, const ::milvus::grpc::Command* request, ::milvus::grpc::ServerStatus* response) override { + ::grpc::Status DropIndex(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } - virtual void Ping(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } + virtual void DropIndex(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template class WithStreamedUnaryMethod_CreateTable : public BaseClass { @@ -1921,44 +2557,44 @@ class MilvusService final { virtual ::grpc::Status StreamedDropTable(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::milvus::grpc::TableName,::milvus::grpc::Status>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_BuildIndex : public BaseClass { + class WithStreamedUnaryMethod_CreateIndex : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithStreamedUnaryMethod_BuildIndex() { + WithStreamedUnaryMethod_CreateIndex() { ::grpc::Service::MarkMethodStreamed(3, - new ::grpc::internal::StreamedUnaryHandler< ::milvus::grpc::TableName, ::milvus::grpc::Status>(std::bind(&WithStreamedUnaryMethod_BuildIndex::StreamedBuildIndex, this, std::placeholders::_1, std::placeholders::_2))); + new ::grpc::internal::StreamedUnaryHandler< ::milvus::grpc::IndexParam, ::milvus::grpc::Status>(std::bind(&WithStreamedUnaryMethod_CreateIndex::StreamedCreateIndex, this, std::placeholders::_1, std::placeholders::_2))); } - ~WithStreamedUnaryMethod_BuildIndex() override { + ~WithStreamedUnaryMethod_CreateIndex() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status BuildIndex(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response) override { + ::grpc::Status CreateIndex(::grpc::ServerContext* context, const ::milvus::grpc::IndexParam* request, ::milvus::grpc::Status* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedBuildIndex(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::milvus::grpc::TableName,::milvus::grpc::Status>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedCreateIndex(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::milvus::grpc::IndexParam,::milvus::grpc::Status>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_InsertVector : public BaseClass { + class WithStreamedUnaryMethod_Insert : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithStreamedUnaryMethod_InsertVector() { + WithStreamedUnaryMethod_Insert() { ::grpc::Service::MarkMethodStreamed(4, - new ::grpc::internal::StreamedUnaryHandler< ::milvus::grpc::InsertInfos, ::milvus::grpc::VectorIds>(std::bind(&WithStreamedUnaryMethod_InsertVector::StreamedInsertVector, this, std::placeholders::_1, std::placeholders::_2))); + new ::grpc::internal::StreamedUnaryHandler< ::milvus::grpc::InsertParam, ::milvus::grpc::VectorIds>(std::bind(&WithStreamedUnaryMethod_Insert::StreamedInsert, this, std::placeholders::_1, std::placeholders::_2))); } - ~WithStreamedUnaryMethod_InsertVector() override { + ~WithStreamedUnaryMethod_Insert() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status InsertVector(::grpc::ServerContext* context, const ::milvus::grpc::InsertInfos* request, ::milvus::grpc::VectorIds* response) override { + ::grpc::Status Insert(::grpc::ServerContext* context, const ::milvus::grpc::InsertParam* request, ::milvus::grpc::VectorIds* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedInsertVector(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::milvus::grpc::InsertInfos,::milvus::grpc::VectorIds>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedInsert(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::milvus::grpc::InsertParam,::milvus::grpc::VectorIds>* server_unary_streamer) = 0; }; template class WithStreamedUnaryMethod_DescribeTable : public BaseClass { @@ -1981,85 +2617,165 @@ class MilvusService final { virtual ::grpc::Status StreamedDescribeTable(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::milvus::grpc::TableName,::milvus::grpc::TableSchema>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_GetTableRowCount : public BaseClass { + class WithStreamedUnaryMethod_CountTable : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithStreamedUnaryMethod_GetTableRowCount() { + WithStreamedUnaryMethod_CountTable() { ::grpc::Service::MarkMethodStreamed(8, - new ::grpc::internal::StreamedUnaryHandler< ::milvus::grpc::TableName, ::milvus::grpc::TableRowCount>(std::bind(&WithStreamedUnaryMethod_GetTableRowCount::StreamedGetTableRowCount, this, std::placeholders::_1, std::placeholders::_2))); + new ::grpc::internal::StreamedUnaryHandler< ::milvus::grpc::TableName, ::milvus::grpc::TableRowCount>(std::bind(&WithStreamedUnaryMethod_CountTable::StreamedCountTable, this, std::placeholders::_1, std::placeholders::_2))); } - ~WithStreamedUnaryMethod_GetTableRowCount() override { + ~WithStreamedUnaryMethod_CountTable() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status GetTableRowCount(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::TableRowCount* response) override { + ::grpc::Status CountTable(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::TableRowCount* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetTableRowCount(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::milvus::grpc::TableName,::milvus::grpc::TableRowCount>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedCountTable(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::milvus::grpc::TableName,::milvus::grpc::TableRowCount>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_Ping : public BaseClass { + class WithStreamedUnaryMethod_Cmd : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithStreamedUnaryMethod_Ping() { + WithStreamedUnaryMethod_Cmd() { ::grpc::Service::MarkMethodStreamed(10, - new ::grpc::internal::StreamedUnaryHandler< ::milvus::grpc::Command, ::milvus::grpc::ServerStatus>(std::bind(&WithStreamedUnaryMethod_Ping::StreamedPing, this, std::placeholders::_1, std::placeholders::_2))); + 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 { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status Cmd(::grpc::ServerContext* context, const ::milvus::grpc::Command* request, ::milvus::grpc::StringReply* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedCmd(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::milvus::grpc::Command,::milvus::grpc::StringReply>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_DeleteByRange : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_DeleteByRange() { + ::grpc::Service::MarkMethodStreamed(11, + new ::grpc::internal::StreamedUnaryHandler< ::milvus::grpc::DeleteByRangeParam, ::milvus::grpc::Status>(std::bind(&WithStreamedUnaryMethod_DeleteByRange::StreamedDeleteByRange, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_DeleteByRange() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status DeleteByRange(::grpc::ServerContext* context, const ::milvus::grpc::DeleteByRangeParam* request, ::milvus::grpc::Status* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedDeleteByRange(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::milvus::grpc::DeleteByRangeParam,::milvus::grpc::Status>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_PreloadTable : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_PreloadTable() { + ::grpc::Service::MarkMethodStreamed(12, + new ::grpc::internal::StreamedUnaryHandler< ::milvus::grpc::TableName, ::milvus::grpc::Status>(std::bind(&WithStreamedUnaryMethod_PreloadTable::StreamedPreloadTable, this, std::placeholders::_1, std::placeholders::_2))); + } + ~WithStreamedUnaryMethod_PreloadTable() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status PreloadTable(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedPreloadTable(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::milvus::grpc::TableName,::milvus::grpc::Status>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_DescribeIndex : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_DescribeIndex() { + ::grpc::Service::MarkMethodStreamed(13, + new ::grpc::internal::StreamedUnaryHandler< ::milvus::grpc::TableName, ::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::TableName* 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::TableName,::milvus::grpc::IndexParam>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_DropIndex : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service *service) {} + public: + WithStreamedUnaryMethod_DropIndex() { + ::grpc::Service::MarkMethodStreamed(14, + new ::grpc::internal::StreamedUnaryHandler< ::milvus::grpc::TableName, ::milvus::grpc::Status>(std::bind(&WithStreamedUnaryMethod_DropIndex::StreamedDropIndex, this, std::placeholders::_1, std::placeholders::_2))); } - ~WithStreamedUnaryMethod_Ping() override { + ~WithStreamedUnaryMethod_DropIndex() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status Ping(::grpc::ServerContext* context, const ::milvus::grpc::Command* request, ::milvus::grpc::ServerStatus* response) override { + ::grpc::Status DropIndex(::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with streamed unary - virtual ::grpc::Status StreamedPing(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::milvus::grpc::Command,::milvus::grpc::ServerStatus>* server_unary_streamer) = 0; + virtual ::grpc::Status StreamedDropIndex(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::milvus::grpc::TableName,::milvus::grpc::Status>* server_unary_streamer) = 0; }; - typedef WithStreamedUnaryMethod_CreateTable > > > > > > > StreamedUnaryService; + typedef WithStreamedUnaryMethod_CreateTable > > > > > > > > > > > StreamedUnaryService; template - class WithSplitStreamingMethod_SearchVector : public BaseClass { + class WithSplitStreamingMethod_Search : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithSplitStreamingMethod_SearchVector() { + WithSplitStreamingMethod_Search() { ::grpc::Service::MarkMethodStreamed(5, - new ::grpc::internal::SplitServerStreamingHandler< ::milvus::grpc::SearchVectorInfos, ::milvus::grpc::TopKQueryResult>(std::bind(&WithSplitStreamingMethod_SearchVector::StreamedSearchVector, this, std::placeholders::_1, std::placeholders::_2))); + new ::grpc::internal::SplitServerStreamingHandler< ::milvus::grpc::SearchParam, ::milvus::grpc::TopKQueryResult>(std::bind(&WithSplitStreamingMethod_Search::StreamedSearch, this, std::placeholders::_1, std::placeholders::_2))); } - ~WithSplitStreamingMethod_SearchVector() override { + ~WithSplitStreamingMethod_Search() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status SearchVector(::grpc::ServerContext* context, const ::milvus::grpc::SearchVectorInfos* request, ::grpc::ServerWriter< ::milvus::grpc::TopKQueryResult>* writer) override { + ::grpc::Status Search(::grpc::ServerContext* context, const ::milvus::grpc::SearchParam* request, ::grpc::ServerWriter< ::milvus::grpc::TopKQueryResult>* writer) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with split streamed - virtual ::grpc::Status StreamedSearchVector(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::milvus::grpc::SearchVectorInfos,::milvus::grpc::TopKQueryResult>* server_split_streamer) = 0; + virtual ::grpc::Status StreamedSearch(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::milvus::grpc::SearchParam,::milvus::grpc::TopKQueryResult>* server_split_streamer) = 0; }; template - class WithSplitStreamingMethod_SearchVectorInFiles : public BaseClass { + class WithSplitStreamingMethod_SearchInFiles : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: - WithSplitStreamingMethod_SearchVectorInFiles() { + WithSplitStreamingMethod_SearchInFiles() { ::grpc::Service::MarkMethodStreamed(6, - new ::grpc::internal::SplitServerStreamingHandler< ::milvus::grpc::SearchVectorInFilesInfos, ::milvus::grpc::TopKQueryResult>(std::bind(&WithSplitStreamingMethod_SearchVectorInFiles::StreamedSearchVectorInFiles, this, std::placeholders::_1, std::placeholders::_2))); + new ::grpc::internal::SplitServerStreamingHandler< ::milvus::grpc::SearchInFilesParam, ::milvus::grpc::TopKQueryResult>(std::bind(&WithSplitStreamingMethod_SearchInFiles::StreamedSearchInFiles, this, std::placeholders::_1, std::placeholders::_2))); } - ~WithSplitStreamingMethod_SearchVectorInFiles() override { + ~WithSplitStreamingMethod_SearchInFiles() override { BaseClassMustBeDerivedFromService(this); } // disable regular version of this method - ::grpc::Status SearchVectorInFiles(::grpc::ServerContext* context, const ::milvus::grpc::SearchVectorInFilesInfos* request, ::grpc::ServerWriter< ::milvus::grpc::TopKQueryResult>* writer) override { + ::grpc::Status SearchInFiles(::grpc::ServerContext* context, const ::milvus::grpc::SearchInFilesParam* request, ::grpc::ServerWriter< ::milvus::grpc::TopKQueryResult>* writer) override { abort(); return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } // replace default version of method with split streamed - virtual ::grpc::Status StreamedSearchVectorInFiles(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::milvus::grpc::SearchVectorInFilesInfos,::milvus::grpc::TopKQueryResult>* server_split_streamer) = 0; + virtual ::grpc::Status StreamedSearchInFiles(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::milvus::grpc::SearchInFilesParam,::milvus::grpc::TopKQueryResult>* server_split_streamer) = 0; }; template class WithSplitStreamingMethod_ShowTables : public BaseClass { @@ -2081,8 +2797,8 @@ class MilvusService final { // replace default version of method with split streamed virtual ::grpc::Status StreamedShowTables(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::milvus::grpc::Command,::milvus::grpc::TableName>* server_split_streamer) = 0; }; - typedef WithSplitStreamingMethod_SearchVector > > SplitStreamedService; - typedef WithStreamedUnaryMethod_CreateTable > > > > > > > > > > StreamedService; + typedef WithSplitStreamingMethod_Search > > SplitStreamedService; + typedef WithStreamedUnaryMethod_CreateTable > > > > > > > > > > > > > > StreamedService; }; } // namespace grpc diff --git a/cpp/src/grpc/gen-milvus/milvus.pb.cc b/cpp/src/grpc/gen-milvus/milvus.pb.cc index 885e1ee9d39d7a3e5ea8a1d10fd7fb53a8da3339..9d3cb9604ea4f32736fee28232c1c7dcfc9aa4e2 100644 --- a/cpp/src/grpc/gen-milvus/milvus.pb.cc +++ b/cpp/src/grpc/gen-milvus/milvus.pb.cc @@ -15,10 +15,11 @@ #include // @@protoc_insertion_point(includes) #include +extern PROTOBUF_INTERNAL_EXPORT_milvus_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Index_milvus_2eproto; extern PROTOBUF_INTERNAL_EXPORT_milvus_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_QueryResult_milvus_2eproto; extern PROTOBUF_INTERNAL_EXPORT_milvus_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Range_milvus_2eproto; extern PROTOBUF_INTERNAL_EXPORT_milvus_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_RowRecord_milvus_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_milvus_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_SearchVectorInfos_milvus_2eproto; +extern PROTOBUF_INTERNAL_EXPORT_milvus_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_SearchParam_milvus_2eproto; extern PROTOBUF_INTERNAL_EXPORT_status_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Status_status_2eproto; extern PROTOBUF_INTERNAL_EXPORT_milvus_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TableName_milvus_2eproto; namespace milvus { @@ -39,22 +40,22 @@ class RowRecordDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _RowRecord_default_instance_; -class InsertInfosDefaultTypeInternal { +class InsertParamDefaultTypeInternal { public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _InsertInfos_default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _InsertParam_default_instance_; class VectorIdsDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _VectorIds_default_instance_; -class SearchVectorInfosDefaultTypeInternal { +class SearchParamDefaultTypeInternal { public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _SearchVectorInfos_default_instance_; -class SearchVectorInFilesInfosDefaultTypeInternal { + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _SearchParam_default_instance_; +class SearchInFilesParamDefaultTypeInternal { public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _SearchVectorInFilesInfos_default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _SearchInFilesParam_default_instance_; class QueryResultDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; @@ -79,10 +80,18 @@ class CommandDefaultTypeInternal { public: ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _Command_default_instance_; -class ServerStatusDefaultTypeInternal { +class IndexDefaultTypeInternal { public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; -} _ServerStatus_default_instance_; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _Index_default_instance_; +class IndexParamDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _IndexParam_default_instance_; +class DeleteByRangeParamDefaultTypeInternal { + public: + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; +} _DeleteByRangeParam_default_instance_; } // namespace grpc } // namespace milvus static void InitDefaultsscc_info_BoolReply_milvus_2eproto() { @@ -114,19 +123,64 @@ 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_InsertInfos_milvus_2eproto() { +static void InitDefaultsscc_info_DeleteByRangeParam_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_DeleteByRangeParam_default_instance_; + new (ptr) ::milvus::grpc::DeleteByRangeParam(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::DeleteByRangeParam::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_DeleteByRangeParam_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_DeleteByRangeParam_milvus_2eproto}, { + &scc_info_Range_milvus_2eproto.base,}}; + +static void InitDefaultsscc_info_Index_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_Index_default_instance_; + new (ptr) ::milvus::grpc::Index(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::Index::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Index_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_Index_milvus_2eproto}, {}}; + +static void InitDefaultsscc_info_IndexParam_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_IndexParam_default_instance_; + new (ptr) ::milvus::grpc::IndexParam(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::IndexParam::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_IndexParam_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_IndexParam_milvus_2eproto}, { + &scc_info_TableName_milvus_2eproto.base, + &scc_info_Index_milvus_2eproto.base,}}; + +static void InitDefaultsscc_info_InsertParam_milvus_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::milvus::grpc::_InsertInfos_default_instance_; - new (ptr) ::milvus::grpc::InsertInfos(); + void* ptr = &::milvus::grpc::_InsertParam_default_instance_; + new (ptr) ::milvus::grpc::InsertParam(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::milvus::grpc::InsertInfos::InitAsDefaultInstance(); + ::milvus::grpc::InsertParam::InitAsDefaultInstance(); } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_InsertInfos_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_InsertInfos_milvus_2eproto}, { +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_InsertParam_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_InsertParam_milvus_2eproto}, { &scc_info_RowRecord_milvus_2eproto.base,}}; static void InitDefaultsscc_info_QueryResult_milvus_2eproto() { @@ -171,52 +225,37 @@ static void InitDefaultsscc_info_RowRecord_milvus_2eproto() { ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_RowRecord_milvus_2eproto = {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_RowRecord_milvus_2eproto}, {}}; -static void InitDefaultsscc_info_SearchVectorInFilesInfos_milvus_2eproto() { +static void InitDefaultsscc_info_SearchInFilesParam_milvus_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::milvus::grpc::_SearchVectorInFilesInfos_default_instance_; - new (ptr) ::milvus::grpc::SearchVectorInFilesInfos(); + void* ptr = &::milvus::grpc::_SearchInFilesParam_default_instance_; + new (ptr) ::milvus::grpc::SearchInFilesParam(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::milvus::grpc::SearchVectorInFilesInfos::InitAsDefaultInstance(); + ::milvus::grpc::SearchInFilesParam::InitAsDefaultInstance(); } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_SearchVectorInFilesInfos_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_SearchVectorInFilesInfos_milvus_2eproto}, { - &scc_info_SearchVectorInfos_milvus_2eproto.base,}}; +::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}, { + &scc_info_SearchParam_milvus_2eproto.base,}}; -static void InitDefaultsscc_info_SearchVectorInfos_milvus_2eproto() { +static void InitDefaultsscc_info_SearchParam_milvus_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::milvus::grpc::_SearchVectorInfos_default_instance_; - new (ptr) ::milvus::grpc::SearchVectorInfos(); + void* ptr = &::milvus::grpc::_SearchParam_default_instance_; + new (ptr) ::milvus::grpc::SearchParam(); ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::milvus::grpc::SearchVectorInfos::InitAsDefaultInstance(); + ::milvus::grpc::SearchParam::InitAsDefaultInstance(); } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_SearchVectorInfos_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_SearchVectorInfos_milvus_2eproto}, { +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_SearchParam_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_SearchParam_milvus_2eproto}, { &scc_info_RowRecord_milvus_2eproto.base, &scc_info_Range_milvus_2eproto.base,}}; -static void InitDefaultsscc_info_ServerStatus_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_ServerStatus_default_instance_; - new (ptr) ::milvus::grpc::ServerStatus(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::ServerStatus::InitAsDefaultInstance(); -} - -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ServerStatus_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_ServerStatus_milvus_2eproto}, { - &scc_info_Status_status_2eproto.base,}}; - static void InitDefaultsscc_info_StringReply_milvus_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -308,7 +347,7 @@ static void InitDefaultsscc_info_VectorIds_milvus_2eproto() { {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_VectorIds_milvus_2eproto}, { &scc_info_Status_status_2eproto.base,}}; -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_milvus_2eproto[15]; +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_milvus_2eproto[17]; static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_milvus_2eproto = nullptr; static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_milvus_2eproto = nullptr; @@ -343,12 +382,12 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_milvus_2eproto::offsets[] PROT ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::milvus::grpc::RowRecord, vector_data_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertInfos, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertParam, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertInfos, table_name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertInfos, row_record_array_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertParam, table_name_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::InsertParam, row_record_array_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorIds, _internal_metadata_), ~0u, // no _extensions_ @@ -357,21 +396,21 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_milvus_2eproto::offsets[] PROT PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorIds, status_), PROTOBUF_FIELD_OFFSET(::milvus::grpc::VectorIds, vector_id_array_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchVectorInfos, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchParam, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchVectorInfos, table_name_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchVectorInfos, query_record_array_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchVectorInfos, query_range_array_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchVectorInfos, topk_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchParam, table_name_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchParam, query_record_array_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchParam, query_range_array_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchParam, topk_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchVectorInFilesInfos, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchInFilesParam, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchVectorInFilesInfos, file_id_array_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::SearchVectorInFilesInfos, search_vector_infos_), + 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::QueryResult, _internal_metadata_), ~0u, // no _extensions_ @@ -414,29 +453,46 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_milvus_2eproto::offsets[] PROT ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::milvus::grpc::Command, cmd_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::ServerStatus, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::Index, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::Index, index_type_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::Index, nlist_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::Index, index_file_size_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::IndexParam, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::milvus::grpc::ServerStatus, status_), - PROTOBUF_FIELD_OFFSET(::milvus::grpc::ServerStatus, info_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::IndexParam, table_name_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::IndexParam, index_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::DeleteByRangeParam, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + PROTOBUF_FIELD_OFFSET(::milvus::grpc::DeleteByRangeParam, range_), + PROTOBUF_FIELD_OFFSET(::milvus::grpc::DeleteByRangeParam, table_name_), }; static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::milvus::grpc::TableName)}, { 7, -1, sizeof(::milvus::grpc::TableSchema)}, { 16, -1, sizeof(::milvus::grpc::Range)}, { 23, -1, sizeof(::milvus::grpc::RowRecord)}, - { 29, -1, sizeof(::milvus::grpc::InsertInfos)}, + { 29, -1, sizeof(::milvus::grpc::InsertParam)}, { 36, -1, sizeof(::milvus::grpc::VectorIds)}, - { 43, -1, sizeof(::milvus::grpc::SearchVectorInfos)}, - { 52, -1, sizeof(::milvus::grpc::SearchVectorInFilesInfos)}, + { 43, -1, sizeof(::milvus::grpc::SearchParam)}, + { 52, -1, sizeof(::milvus::grpc::SearchInFilesParam)}, { 59, -1, sizeof(::milvus::grpc::QueryResult)}, { 66, -1, sizeof(::milvus::grpc::TopKQueryResult)}, { 73, -1, sizeof(::milvus::grpc::StringReply)}, { 80, -1, sizeof(::milvus::grpc::BoolReply)}, { 87, -1, sizeof(::milvus::grpc::TableRowCount)}, { 94, -1, sizeof(::milvus::grpc::Command)}, - { 100, -1, sizeof(::milvus::grpc::ServerStatus)}, + { 100, -1, sizeof(::milvus::grpc::Index)}, + { 108, -1, sizeof(::milvus::grpc::IndexParam)}, + { 115, -1, sizeof(::milvus::grpc::DeleteByRangeParam)}, }; static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { @@ -444,17 +500,19 @@ static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = reinterpret_cast(&::milvus::grpc::_TableSchema_default_instance_), reinterpret_cast(&::milvus::grpc::_Range_default_instance_), reinterpret_cast(&::milvus::grpc::_RowRecord_default_instance_), - reinterpret_cast(&::milvus::grpc::_InsertInfos_default_instance_), + reinterpret_cast(&::milvus::grpc::_InsertParam_default_instance_), reinterpret_cast(&::milvus::grpc::_VectorIds_default_instance_), - reinterpret_cast(&::milvus::grpc::_SearchVectorInfos_default_instance_), - reinterpret_cast(&::milvus::grpc::_SearchVectorInFilesInfos_default_instance_), + reinterpret_cast(&::milvus::grpc::_SearchParam_default_instance_), + reinterpret_cast(&::milvus::grpc::_SearchInFilesParam_default_instance_), reinterpret_cast(&::milvus::grpc::_QueryResult_default_instance_), reinterpret_cast(&::milvus::grpc::_TopKQueryResult_default_instance_), reinterpret_cast(&::milvus::grpc::_StringReply_default_instance_), reinterpret_cast(&::milvus::grpc::_BoolReply_default_instance_), reinterpret_cast(&::milvus::grpc::_TableRowCount_default_instance_), reinterpret_cast(&::milvus::grpc::_Command_default_instance_), - reinterpret_cast(&::milvus::grpc::_ServerStatus_default_instance_), + reinterpret_cast(&::milvus::grpc::_Index_default_instance_), + reinterpret_cast(&::milvus::grpc::_IndexParam_default_instance_), + reinterpret_cast(&::milvus::grpc::_DeleteByRangeParam_default_instance_), }; const char descriptor_table_protodef_milvus_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = @@ -466,62 +524,74 @@ const char descriptor_table_protodef_milvus_2eproto[] PROTOBUF_SECTION_VARIABLE( "ion\030\003 \001(\003\022\030\n\020store_raw_vector\030\004 \001(\010\"/\n\005R" "ange\022\023\n\013start_value\030\001 \001(\t\022\021\n\tend_value\030\002" " \001(\t\" \n\tRowRecord\022\023\n\013vector_data\030\001 \003(\002\"S" - "\n\013InsertInfos\022\022\n\ntable_name\030\001 \001(\t\0220\n\020row" + "\n\013InsertParam\022\022\n\ntable_name\030\001 \001(\t\0220\n\020row" "_record_array\030\002 \003(\0132\026.milvus.grpc.RowRec" "ord\"I\n\tVectorIds\022#\n\006status\030\001 \001(\0132\023.milvu" - "s.grpc.Status\022\027\n\017vector_id_array\030\002 \003(\003\"\230" - "\001\n\021SearchVectorInfos\022\022\n\ntable_name\030\001 \001(\t" - "\0222\n\022query_record_array\030\002 \003(\0132\026.milvus.gr" - "pc.RowRecord\022-\n\021query_range_array\030\003 \003(\0132" - "\022.milvus.grpc.Range\022\014\n\004topk\030\004 \001(\003\"n\n\030Sea" - "rchVectorInFilesInfos\022\025\n\rfile_id_array\030\001" - " \003(\t\022;\n\023search_vector_infos\030\002 \001(\0132\036.milv" - "us.grpc.SearchVectorInfos\"+\n\013QueryResult" - "\022\n\n\002id\030\001 \001(\003\022\020\n\010distance\030\002 \001(\001\"m\n\017TopKQu" - "eryResult\022#\n\006status\030\001 \001(\0132\023.milvus.grpc." - "Status\0225\n\023query_result_arrays\030\002 \003(\0132\030.mi" - "lvus.grpc.QueryResult\"H\n\013StringReply\022#\n\006" - "status\030\001 \001(\0132\023.milvus.grpc.Status\022\024\n\014str" - "ing_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\"M\n\rTableRowCount\022#\n\006status\030\001 \001(\0132\023" - ".milvus.grpc.Status\022\027\n\017table_row_count\030\002" - " \001(\003\"\026\n\007Command\022\013\n\003cmd\030\001 \001(\t\"A\n\014ServerSt" - "atus\022#\n\006status\030\001 \001(\0132\023.milvus.grpc.Statu" - "s\022\014\n\004info\030\002 \001(\t2\206\006\n\rMilvusService\022>\n\013Cre" - "ateTable\022\030.milvus.grpc.TableSchema\032\023.mil" - "vus.grpc.Status\"\000\022<\n\010HasTable\022\026.milvus.g" - "rpc.TableName\032\026.milvus.grpc.BoolReply\"\000\022" - ":\n\tDropTable\022\026.milvus.grpc.TableName\032\023.m" - "ilvus.grpc.Status\"\000\022;\n\nBuildIndex\022\026.milv" - "us.grpc.TableName\032\023.milvus.grpc.Status\"\000" - "\022B\n\014InsertVector\022\030.milvus.grpc.InsertInf" - "os\032\026.milvus.grpc.VectorIds\"\000\022P\n\014SearchVe" - "ctor\022\036.milvus.grpc.SearchVectorInfos\032\034.m" - "ilvus.grpc.TopKQueryResult\"\0000\001\022^\n\023Search" - "VectorInFiles\022%.milvus.grpc.SearchVector" - "InFilesInfos\032\034.milvus.grpc.TopKQueryResu" - "lt\"\0000\001\022C\n\rDescribeTable\022\026.milvus.grpc.Ta" - "bleName\032\030.milvus.grpc.TableSchema\"\000\022H\n\020G" - "etTableRowCount\022\026.milvus.grpc.TableName\032" - "\032.milvus.grpc.TableRowCount\"\000\022>\n\nShowTab" - "les\022\024.milvus.grpc.Command\032\026.milvus.grpc." - "TableName\"\0000\001\0229\n\004Ping\022\024.milvus.grpc.Comm" - "and\032\031.milvus.grpc.ServerStatus\"\000b\006proto3" + "s.grpc.Status\022\027\n\017vector_id_array\030\002 \003(\003\"\222" + "\001\n\013SearchParam\022\022\n\ntable_name\030\001 \001(\t\0222\n\022qu" + "ery_record_array\030\002 \003(\0132\026.milvus.grpc.Row" + "Record\022-\n\021query_range_array\030\003 \003(\0132\022.milv" + "us.grpc.Range\022\014\n\004topk\030\004 \001(\003\"[\n\022SearchInF" + "ilesParam\022\025\n\rfile_id_array\030\001 \003(\t\022.\n\014sear" + "ch_param\030\002 \001(\0132\030.milvus.grpc.SearchParam" + "\"+\n\013QueryResult\022\n\n\002id\030\001 \001(\003\022\020\n\010distance\030" + "\002 \001(\001\"m\n\017TopKQueryResult\022#\n\006status\030\001 \001(\013" + "2\023.milvus.grpc.Status\0225\n\023query_result_ar" + "rays\030\002 \003(\0132\030.milvus.grpc.QueryResult\"H\n\013" + "StringReply\022#\n\006status\030\001 \001(\0132\023.milvus.grp" + "c.Status\022\024\n\014string_reply\030\002 \001(\t\"D\n\tBoolRe" + "ply\022#\n\006status\030\001 \001(\0132\023.milvus.grpc.Status" + "\022\022\n\nbool_reply\030\002 \001(\010\"M\n\rTableRowCount\022#\n" + "\006status\030\001 \001(\0132\023.milvus.grpc.Status\022\027\n\017ta" + "ble_row_count\030\002 \001(\003\"\026\n\007Command\022\013\n\003cmd\030\001 " + "\001(\t\"C\n\005Index\022\022\n\nindex_type\030\001 \001(\005\022\r\n\005nlis" + "t\030\002 \001(\003\022\027\n\017index_file_size\030\003 \001(\005\"[\n\nInde" + "xParam\022*\n\ntable_name\030\001 \001(\0132\026.milvus.grpc" + ".TableName\022!\n\005index\030\002 \001(\0132\022.milvus.grpc." + "Index\"K\n\022DeleteByRangeParam\022!\n\005range\030\001 \001" + "(\0132\022.milvus.grpc.Range\022\022\n\ntable_name\030\002 \001" + "(\t2\352\007\n\rMilvusService\022>\n\013CreateTable\022\030.mi" + "lvus.grpc.TableSchema\032\023.milvus.grpc.Stat" + "us\"\000\022<\n\010HasTable\022\026.milvus.grpc.TableName" + "\032\026.milvus.grpc.BoolReply\"\000\022:\n\tDropTable\022" + "\026.milvus.grpc.TableName\032\023.milvus.grpc.St" + "atus\"\000\022=\n\013CreateIndex\022\027.milvus.grpc.Inde" + "xParam\032\023.milvus.grpc.Status\"\000\022<\n\006Insert\022" + "\030.milvus.grpc.InsertParam\032\026.milvus.grpc." + "VectorIds\"\000\022D\n\006Search\022\030.milvus.grpc.Sear" + "chParam\032\034.milvus.grpc.TopKQueryResult\"\0000" + "\001\022R\n\rSearchInFiles\022\037.milvus.grpc.SearchI" + "nFilesParam\032\034.milvus.grpc.TopKQueryResul" + "t\"\0000\001\022C\n\rDescribeTable\022\026.milvus.grpc.Tab" + "leName\032\030.milvus.grpc.TableSchema\"\000\022B\n\nCo" + "untTable\022\026.milvus.grpc.TableName\032\032.milvu" + "s.grpc.TableRowCount\"\000\022>\n\nShowTables\022\024.m" + "ilvus.grpc.Command\032\026.milvus.grpc.TableNa" + "me\"\0000\001\0227\n\003Cmd\022\024.milvus.grpc.Command\032\030.mi" + "lvus.grpc.StringReply\"\000\022G\n\rDeleteByRange" + "\022\037.milvus.grpc.DeleteByRangeParam\032\023.milv" + "us.grpc.Status\"\000\022=\n\014PreloadTable\022\026.milvu" + "s.grpc.TableName\032\023.milvus.grpc.Status\"\000\022" + "B\n\rDescribeIndex\022\026.milvus.grpc.TableName" + "\032\027.milvus.grpc.IndexParam\"\000\022:\n\tDropIndex" + "\022\026.milvus.grpc.TableName\032\023.milvus.grpc.S" + "tatus\"\000b\006proto3" ; static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_milvus_2eproto_deps[1] = { &::descriptor_table_status_2eproto, }; -static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_milvus_2eproto_sccs[15] = { +static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_milvus_2eproto_sccs[17] = { &scc_info_BoolReply_milvus_2eproto.base, &scc_info_Command_milvus_2eproto.base, - &scc_info_InsertInfos_milvus_2eproto.base, + &scc_info_DeleteByRangeParam_milvus_2eproto.base, + &scc_info_Index_milvus_2eproto.base, + &scc_info_IndexParam_milvus_2eproto.base, + &scc_info_InsertParam_milvus_2eproto.base, &scc_info_QueryResult_milvus_2eproto.base, &scc_info_Range_milvus_2eproto.base, &scc_info_RowRecord_milvus_2eproto.base, - &scc_info_SearchVectorInFilesInfos_milvus_2eproto.base, - &scc_info_SearchVectorInfos_milvus_2eproto.base, - &scc_info_ServerStatus_milvus_2eproto.base, + &scc_info_SearchInFilesParam_milvus_2eproto.base, + &scc_info_SearchParam_milvus_2eproto.base, &scc_info_StringReply_milvus_2eproto.base, &scc_info_TableName_milvus_2eproto.base, &scc_info_TableRowCount_milvus_2eproto.base, @@ -532,10 +602,10 @@ 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", 2000, - &descriptor_table_milvus_2eproto_once, descriptor_table_milvus_2eproto_sccs, descriptor_table_milvus_2eproto_deps, 15, 1, + &descriptor_table_milvus_2eproto_initialized, descriptor_table_protodef_milvus_2eproto, "milvus.proto", 2375, + &descriptor_table_milvus_2eproto_once, descriptor_table_milvus_2eproto_sccs, descriptor_table_milvus_2eproto_deps, 17, 1, schemas, file_default_instances, TableStruct_milvus_2eproto::offsets, - file_level_metadata_milvus_2eproto, 15, file_level_enum_descriptors_milvus_2eproto, file_level_service_descriptors_milvus_2eproto, + file_level_metadata_milvus_2eproto, 17, file_level_enum_descriptors_milvus_2eproto, file_level_service_descriptors_milvus_2eproto, }; // Force running AddDescriptors() at dynamic initialization time. @@ -1879,18 +1949,18 @@ void RowRecord::InternalSwap(RowRecord* other) { // =================================================================== -void InsertInfos::InitAsDefaultInstance() { +void InsertParam::InitAsDefaultInstance() { } -class InsertInfos::_Internal { +class InsertParam::_Internal { public: }; -InsertInfos::InsertInfos() +InsertParam::InsertParam() : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.InsertInfos) + // @@protoc_insertion_point(constructor:milvus.grpc.InsertParam) } -InsertInfos::InsertInfos(const InsertInfos& from) +InsertParam::InsertParam(const InsertParam& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr), row_record_array_(from.row_record_array_) { @@ -1899,34 +1969,34 @@ InsertInfos::InsertInfos(const InsertInfos& from) if (!from.table_name().empty()) { table_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.table_name_); } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.InsertInfos) + // @@protoc_insertion_point(copy_constructor:milvus.grpc.InsertParam) } -void InsertInfos::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_InsertInfos_milvus_2eproto.base); +void InsertParam::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_InsertParam_milvus_2eproto.base); table_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -InsertInfos::~InsertInfos() { - // @@protoc_insertion_point(destructor:milvus.grpc.InsertInfos) +InsertParam::~InsertParam() { + // @@protoc_insertion_point(destructor:milvus.grpc.InsertParam) SharedDtor(); } -void InsertInfos::SharedDtor() { +void InsertParam::SharedDtor() { table_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -void InsertInfos::SetCachedSize(int size) const { +void InsertParam::SetCachedSize(int size) const { _cached_size_.Set(size); } -const InsertInfos& InsertInfos::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_InsertInfos_milvus_2eproto.base); +const InsertParam& InsertParam::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_InsertParam_milvus_2eproto.base); return *internal_default_instance(); } -void InsertInfos::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.InsertInfos) +void InsertParam::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.grpc.InsertParam) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -1937,7 +2007,7 @@ void InsertInfos::Clear() { } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* InsertInfos::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* InsertParam::_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; @@ -1947,7 +2017,7 @@ const char* InsertInfos::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID // string table_name = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_table_name(), ptr, ctx, "milvus.grpc.InsertInfos.table_name"); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_table_name(), ptr, ctx, "milvus.grpc.InsertParam.table_name"); CHK_(ptr); } else goto handle_unusual; continue; @@ -1983,11 +2053,11 @@ failure: #undef CHK_ } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool InsertInfos::MergePartialFromCodedStream( +bool InsertParam::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.InsertInfos) + // @@protoc_insertion_point(parse_start:milvus.grpc.InsertParam) for (;;) { ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; @@ -2001,7 +2071,7 @@ bool InsertInfos::MergePartialFromCodedStream( DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->table_name().data(), static_cast(this->table_name().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.InsertInfos.table_name")); + "milvus.grpc.InsertParam.table_name")); } else { goto handle_unusual; } @@ -2031,18 +2101,18 @@ bool InsertInfos::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:milvus.grpc.InsertInfos) + // @@protoc_insertion_point(parse_success:milvus.grpc.InsertParam) return true; failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.InsertInfos) + // @@protoc_insertion_point(parse_failure:milvus.grpc.InsertParam) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void InsertInfos::SerializeWithCachedSizes( +void InsertParam::SerializeWithCachedSizes( ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.InsertInfos) + // @@protoc_insertion_point(serialize_start:milvus.grpc.InsertParam) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -2051,7 +2121,7 @@ void InsertInfos::SerializeWithCachedSizes( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->table_name().data(), static_cast(this->table_name().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.InsertInfos.table_name"); + "milvus.grpc.InsertParam.table_name"); ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->table_name(), output); } @@ -2069,12 +2139,12 @@ void InsertInfos::SerializeWithCachedSizes( ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:milvus.grpc.InsertInfos) + // @@protoc_insertion_point(serialize_end:milvus.grpc.InsertParam) } -::PROTOBUF_NAMESPACE_ID::uint8* InsertInfos::InternalSerializeWithCachedSizesToArray( +::PROTOBUF_NAMESPACE_ID::uint8* InsertParam::InternalSerializeWithCachedSizesToArray( ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.InsertInfos) + // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.InsertParam) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -2083,7 +2153,7 @@ void InsertInfos::SerializeWithCachedSizes( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->table_name().data(), static_cast(this->table_name().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.InsertInfos.table_name"); + "milvus.grpc.InsertParam.table_name"); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 1, this->table_name(), target); @@ -2101,12 +2171,12 @@ void InsertInfos::SerializeWithCachedSizes( target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.InsertInfos) + // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.InsertParam) return target; } -size_t InsertInfos::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.InsertInfos) +size_t InsertParam::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.InsertParam) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -2141,23 +2211,23 @@ size_t InsertInfos::ByteSizeLong() const { return total_size; } -void InsertInfos::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.InsertInfos) +void InsertParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.InsertParam) GOOGLE_DCHECK_NE(&from, this); - const InsertInfos* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + const InsertParam* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.InsertInfos) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.InsertParam) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.InsertInfos) + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.InsertParam) MergeFrom(*source); } } -void InsertInfos::MergeFrom(const InsertInfos& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.InsertInfos) +void InsertParam::MergeFrom(const InsertParam& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.InsertParam) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; @@ -2170,25 +2240,25 @@ void InsertInfos::MergeFrom(const InsertInfos& from) { } } -void InsertInfos::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.InsertInfos) +void InsertParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.InsertParam) if (&from == this) return; Clear(); MergeFrom(from); } -void InsertInfos::CopyFrom(const InsertInfos& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.InsertInfos) +void InsertParam::CopyFrom(const InsertParam& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.InsertParam) if (&from == this) return; Clear(); MergeFrom(from); } -bool InsertInfos::IsInitialized() const { +bool InsertParam::IsInitialized() const { return true; } -void InsertInfos::InternalSwap(InsertInfos* other) { +void InsertParam::InternalSwap(InsertParam* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); CastToBase(&row_record_array_)->InternalSwap(CastToBase(&other->row_record_array_)); @@ -2196,7 +2266,7 @@ void InsertInfos::InternalSwap(InsertInfos* other) { GetArenaNoVirtual()); } -::PROTOBUF_NAMESPACE_ID::Metadata InsertInfos::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata InsertParam::GetMetadata() const { return GetMetadataStatic(); } @@ -2544,18 +2614,18 @@ void VectorIds::InternalSwap(VectorIds* other) { // =================================================================== -void SearchVectorInfos::InitAsDefaultInstance() { +void SearchParam::InitAsDefaultInstance() { } -class SearchVectorInfos::_Internal { +class SearchParam::_Internal { public: }; -SearchVectorInfos::SearchVectorInfos() +SearchParam::SearchParam() : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.SearchVectorInfos) + // @@protoc_insertion_point(constructor:milvus.grpc.SearchParam) } -SearchVectorInfos::SearchVectorInfos(const SearchVectorInfos& from) +SearchParam::SearchParam(const SearchParam& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr), query_record_array_(from.query_record_array_), @@ -2566,35 +2636,35 @@ SearchVectorInfos::SearchVectorInfos(const SearchVectorInfos& from) table_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.table_name_); } topk_ = from.topk_; - // @@protoc_insertion_point(copy_constructor:milvus.grpc.SearchVectorInfos) + // @@protoc_insertion_point(copy_constructor:milvus.grpc.SearchParam) } -void SearchVectorInfos::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SearchVectorInfos_milvus_2eproto.base); +void SearchParam::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SearchParam_milvus_2eproto.base); table_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); topk_ = PROTOBUF_LONGLONG(0); } -SearchVectorInfos::~SearchVectorInfos() { - // @@protoc_insertion_point(destructor:milvus.grpc.SearchVectorInfos) +SearchParam::~SearchParam() { + // @@protoc_insertion_point(destructor:milvus.grpc.SearchParam) SharedDtor(); } -void SearchVectorInfos::SharedDtor() { +void SearchParam::SharedDtor() { table_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -void SearchVectorInfos::SetCachedSize(int size) const { +void SearchParam::SetCachedSize(int size) const { _cached_size_.Set(size); } -const SearchVectorInfos& SearchVectorInfos::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SearchVectorInfos_milvus_2eproto.base); +const SearchParam& SearchParam::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SearchParam_milvus_2eproto.base); return *internal_default_instance(); } -void SearchVectorInfos::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.SearchVectorInfos) +void SearchParam::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.grpc.SearchParam) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -2607,7 +2677,7 @@ void SearchVectorInfos::Clear() { } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* SearchVectorInfos::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* SearchParam::_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; @@ -2617,7 +2687,7 @@ const char* SearchVectorInfos::_InternalParse(const char* ptr, ::PROTOBUF_NAMESP // string table_name = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_table_name(), ptr, ctx, "milvus.grpc.SearchVectorInfos.table_name"); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_table_name(), ptr, ctx, "milvus.grpc.SearchParam.table_name"); CHK_(ptr); } else goto handle_unusual; continue; @@ -2672,11 +2742,11 @@ failure: #undef CHK_ } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool SearchVectorInfos::MergePartialFromCodedStream( +bool SearchParam::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.SearchVectorInfos) + // @@protoc_insertion_point(parse_start:milvus.grpc.SearchParam) for (;;) { ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; @@ -2690,7 +2760,7 @@ bool SearchVectorInfos::MergePartialFromCodedStream( DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->table_name().data(), static_cast(this->table_name().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.SearchVectorInfos.table_name")); + "milvus.grpc.SearchParam.table_name")); } else { goto handle_unusual; } @@ -2744,18 +2814,18 @@ bool SearchVectorInfos::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:milvus.grpc.SearchVectorInfos) + // @@protoc_insertion_point(parse_success:milvus.grpc.SearchParam) return true; failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.SearchVectorInfos) + // @@protoc_insertion_point(parse_failure:milvus.grpc.SearchParam) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void SearchVectorInfos::SerializeWithCachedSizes( +void SearchParam::SerializeWithCachedSizes( ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.SearchVectorInfos) + // @@protoc_insertion_point(serialize_start:milvus.grpc.SearchParam) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -2764,7 +2834,7 @@ void SearchVectorInfos::SerializeWithCachedSizes( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->table_name().data(), static_cast(this->table_name().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.SearchVectorInfos.table_name"); + "milvus.grpc.SearchParam.table_name"); ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->table_name(), output); } @@ -2796,12 +2866,12 @@ void SearchVectorInfos::SerializeWithCachedSizes( ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:milvus.grpc.SearchVectorInfos) + // @@protoc_insertion_point(serialize_end:milvus.grpc.SearchParam) } -::PROTOBUF_NAMESPACE_ID::uint8* SearchVectorInfos::InternalSerializeWithCachedSizesToArray( +::PROTOBUF_NAMESPACE_ID::uint8* SearchParam::InternalSerializeWithCachedSizesToArray( ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.SearchVectorInfos) + // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.SearchParam) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -2810,7 +2880,7 @@ void SearchVectorInfos::SerializeWithCachedSizes( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->table_name().data(), static_cast(this->table_name().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.SearchVectorInfos.table_name"); + "milvus.grpc.SearchParam.table_name"); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 1, this->table_name(), target); @@ -2841,12 +2911,12 @@ void SearchVectorInfos::SerializeWithCachedSizes( target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.SearchVectorInfos) + // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.SearchParam) return target; } -size_t SearchVectorInfos::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.SearchVectorInfos) +size_t SearchParam::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.SearchParam) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -2899,23 +2969,23 @@ size_t SearchVectorInfos::ByteSizeLong() const { return total_size; } -void SearchVectorInfos::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.SearchVectorInfos) +void SearchParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.SearchParam) GOOGLE_DCHECK_NE(&from, this); - const SearchVectorInfos* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + const SearchParam* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.SearchVectorInfos) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.SearchParam) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.SearchVectorInfos) + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.SearchParam) MergeFrom(*source); } } -void SearchVectorInfos::MergeFrom(const SearchVectorInfos& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.SearchVectorInfos) +void SearchParam::MergeFrom(const SearchParam& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.SearchParam) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; @@ -2932,25 +3002,25 @@ void SearchVectorInfos::MergeFrom(const SearchVectorInfos& from) { } } -void SearchVectorInfos::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.SearchVectorInfos) +void SearchParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.SearchParam) if (&from == this) return; Clear(); MergeFrom(from); } -void SearchVectorInfos::CopyFrom(const SearchVectorInfos& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.SearchVectorInfos) +void SearchParam::CopyFrom(const SearchParam& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.SearchParam) if (&from == this) return; Clear(); MergeFrom(from); } -bool SearchVectorInfos::IsInitialized() const { +bool SearchParam::IsInitialized() const { return true; } -void SearchVectorInfos::InternalSwap(SearchVectorInfos* other) { +void SearchParam::InternalSwap(SearchParam* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); CastToBase(&query_record_array_)->InternalSwap(CastToBase(&other->query_record_array_)); @@ -2960,83 +3030,83 @@ void SearchVectorInfos::InternalSwap(SearchVectorInfos* other) { swap(topk_, other->topk_); } -::PROTOBUF_NAMESPACE_ID::Metadata SearchVectorInfos::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata SearchParam::GetMetadata() const { return GetMetadataStatic(); } // =================================================================== -void SearchVectorInFilesInfos::InitAsDefaultInstance() { - ::milvus::grpc::_SearchVectorInFilesInfos_default_instance_._instance.get_mutable()->search_vector_infos_ = const_cast< ::milvus::grpc::SearchVectorInfos*>( - ::milvus::grpc::SearchVectorInfos::internal_default_instance()); +void SearchInFilesParam::InitAsDefaultInstance() { + ::milvus::grpc::_SearchInFilesParam_default_instance_._instance.get_mutable()->search_param_ = const_cast< ::milvus::grpc::SearchParam*>( + ::milvus::grpc::SearchParam::internal_default_instance()); } -class SearchVectorInFilesInfos::_Internal { +class SearchInFilesParam::_Internal { public: - static const ::milvus::grpc::SearchVectorInfos& search_vector_infos(const SearchVectorInFilesInfos* msg); + static const ::milvus::grpc::SearchParam& search_param(const SearchInFilesParam* msg); }; -const ::milvus::grpc::SearchVectorInfos& -SearchVectorInFilesInfos::_Internal::search_vector_infos(const SearchVectorInFilesInfos* msg) { - return *msg->search_vector_infos_; +const ::milvus::grpc::SearchParam& +SearchInFilesParam::_Internal::search_param(const SearchInFilesParam* msg) { + return *msg->search_param_; } -SearchVectorInFilesInfos::SearchVectorInFilesInfos() +SearchInFilesParam::SearchInFilesParam() : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.SearchVectorInFilesInfos) + // @@protoc_insertion_point(constructor:milvus.grpc.SearchInFilesParam) } -SearchVectorInFilesInfos::SearchVectorInFilesInfos(const SearchVectorInFilesInfos& from) +SearchInFilesParam::SearchInFilesParam(const SearchInFilesParam& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr), file_id_array_(from.file_id_array_) { _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_search_vector_infos()) { - search_vector_infos_ = new ::milvus::grpc::SearchVectorInfos(*from.search_vector_infos_); + if (from.has_search_param()) { + search_param_ = new ::milvus::grpc::SearchParam(*from.search_param_); } else { - search_vector_infos_ = nullptr; + search_param_ = nullptr; } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.SearchVectorInFilesInfos) + // @@protoc_insertion_point(copy_constructor:milvus.grpc.SearchInFilesParam) } -void SearchVectorInFilesInfos::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SearchVectorInFilesInfos_milvus_2eproto.base); - search_vector_infos_ = nullptr; +void SearchInFilesParam::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SearchInFilesParam_milvus_2eproto.base); + search_param_ = nullptr; } -SearchVectorInFilesInfos::~SearchVectorInFilesInfos() { - // @@protoc_insertion_point(destructor:milvus.grpc.SearchVectorInFilesInfos) +SearchInFilesParam::~SearchInFilesParam() { + // @@protoc_insertion_point(destructor:milvus.grpc.SearchInFilesParam) SharedDtor(); } -void SearchVectorInFilesInfos::SharedDtor() { - if (this != internal_default_instance()) delete search_vector_infos_; +void SearchInFilesParam::SharedDtor() { + if (this != internal_default_instance()) delete search_param_; } -void SearchVectorInFilesInfos::SetCachedSize(int size) const { +void SearchInFilesParam::SetCachedSize(int size) const { _cached_size_.Set(size); } -const SearchVectorInFilesInfos& SearchVectorInFilesInfos::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SearchVectorInFilesInfos_milvus_2eproto.base); +const SearchInFilesParam& SearchInFilesParam::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SearchInFilesParam_milvus_2eproto.base); return *internal_default_instance(); } -void SearchVectorInFilesInfos::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.SearchVectorInFilesInfos) +void SearchInFilesParam::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.grpc.SearchInFilesParam) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; file_id_array_.Clear(); - if (GetArenaNoVirtual() == nullptr && search_vector_infos_ != nullptr) { - delete search_vector_infos_; + if (GetArenaNoVirtual() == nullptr && search_param_ != nullptr) { + delete search_param_; } - search_vector_infos_ = nullptr; + search_param_ = nullptr; _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* SearchVectorInFilesInfos::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* SearchInFilesParam::_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; @@ -3049,16 +3119,16 @@ const char* SearchVectorInFilesInfos::_InternalParse(const char* ptr, ::PROTOBUF ptr -= 1; do { ptr += 1; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_file_id_array(), ptr, ctx, "milvus.grpc.SearchVectorInFilesInfos.file_id_array"); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_file_id_array(), ptr, ctx, "milvus.grpc.SearchInFilesParam.file_id_array"); CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10); } else goto handle_unusual; continue; - // .milvus.grpc.SearchVectorInfos search_vector_infos = 2; + // .milvus.grpc.SearchParam search_param = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ctx->ParseMessage(mutable_search_vector_infos(), ptr); + ptr = ctx->ParseMessage(mutable_search_param(), ptr); CHK_(ptr); } else goto handle_unusual; continue; @@ -3082,11 +3152,11 @@ failure: #undef CHK_ } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool SearchVectorInFilesInfos::MergePartialFromCodedStream( +bool SearchInFilesParam::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.SearchVectorInFilesInfos) + // @@protoc_insertion_point(parse_start:milvus.grpc.SearchInFilesParam) for (;;) { ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; @@ -3101,18 +3171,18 @@ bool SearchVectorInFilesInfos::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.SearchVectorInFilesInfos.file_id_array")); + "milvus.grpc.SearchInFilesParam.file_id_array")); } else { goto handle_unusual; } break; } - // .milvus.grpc.SearchVectorInfos search_vector_infos = 2; + // .milvus.grpc.SearchParam search_param = 2; case 2: { if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_search_vector_infos())); + input, mutable_search_param())); } else { goto handle_unusual; } @@ -3131,18 +3201,18 @@ bool SearchVectorInFilesInfos::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:milvus.grpc.SearchVectorInFilesInfos) + // @@protoc_insertion_point(parse_success:milvus.grpc.SearchInFilesParam) return true; failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.SearchVectorInFilesInfos) + // @@protoc_insertion_point(parse_failure:milvus.grpc.SearchInFilesParam) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void SearchVectorInFilesInfos::SerializeWithCachedSizes( +void SearchInFilesParam::SerializeWithCachedSizes( ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.SearchVectorInFilesInfos) + // @@protoc_insertion_point(serialize_start:milvus.grpc.SearchInFilesParam) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -3151,27 +3221,27 @@ void SearchVectorInFilesInfos::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.SearchVectorInFilesInfos.file_id_array"); + "milvus.grpc.SearchInFilesParam.file_id_array"); ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( 1, this->file_id_array(i), output); } - // .milvus.grpc.SearchVectorInfos search_vector_infos = 2; - if (this->has_search_vector_infos()) { + // .milvus.grpc.SearchParam search_param = 2; + if (this->has_search_param()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, _Internal::search_vector_infos(this), output); + 2, _Internal::search_param(this), output); } if (_internal_metadata_.have_unknown_fields()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:milvus.grpc.SearchVectorInFilesInfos) + // @@protoc_insertion_point(serialize_end:milvus.grpc.SearchInFilesParam) } -::PROTOBUF_NAMESPACE_ID::uint8* SearchVectorInFilesInfos::InternalSerializeWithCachedSizesToArray( +::PROTOBUF_NAMESPACE_ID::uint8* SearchInFilesParam::InternalSerializeWithCachedSizesToArray( ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.SearchVectorInFilesInfos) + // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.SearchInFilesParam) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -3180,28 +3250,28 @@ void SearchVectorInFilesInfos::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.SearchVectorInFilesInfos.file_id_array"); + "milvus.grpc.SearchInFilesParam.file_id_array"); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: WriteStringToArray(1, this->file_id_array(i), target); } - // .milvus.grpc.SearchVectorInfos search_vector_infos = 2; - if (this->has_search_vector_infos()) { + // .milvus.grpc.SearchParam search_param = 2; + if (this->has_search_param()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessageToArray( - 2, _Internal::search_vector_infos(this), target); + 2, _Internal::search_param(this), target); } if (_internal_metadata_.have_unknown_fields()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } - // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.SearchVectorInFilesInfos) + // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.SearchInFilesParam) return target; } -size_t SearchVectorInFilesInfos::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.SearchVectorInFilesInfos) +size_t SearchInFilesParam::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.SearchInFilesParam) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -3221,11 +3291,11 @@ size_t SearchVectorInFilesInfos::ByteSizeLong() const { this->file_id_array(i)); } - // .milvus.grpc.SearchVectorInfos search_vector_infos = 2; - if (this->has_search_vector_infos()) { + // .milvus.grpc.SearchParam search_param = 2; + if (this->has_search_param()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *search_vector_infos_); + *search_param_); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); @@ -3233,60 +3303,60 @@ size_t SearchVectorInFilesInfos::ByteSizeLong() const { return total_size; } -void SearchVectorInFilesInfos::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.SearchVectorInFilesInfos) +void SearchInFilesParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.SearchInFilesParam) GOOGLE_DCHECK_NE(&from, this); - const SearchVectorInFilesInfos* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + const SearchInFilesParam* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.SearchVectorInFilesInfos) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.SearchInFilesParam) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.SearchVectorInFilesInfos) + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.SearchInFilesParam) MergeFrom(*source); } } -void SearchVectorInFilesInfos::MergeFrom(const SearchVectorInFilesInfos& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.SearchVectorInFilesInfos) +void SearchInFilesParam::MergeFrom(const SearchInFilesParam& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.SearchInFilesParam) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; file_id_array_.MergeFrom(from.file_id_array_); - if (from.has_search_vector_infos()) { - mutable_search_vector_infos()->::milvus::grpc::SearchVectorInfos::MergeFrom(from.search_vector_infos()); + if (from.has_search_param()) { + mutable_search_param()->::milvus::grpc::SearchParam::MergeFrom(from.search_param()); } } -void SearchVectorInFilesInfos::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.SearchVectorInFilesInfos) +void SearchInFilesParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.SearchInFilesParam) if (&from == this) return; Clear(); MergeFrom(from); } -void SearchVectorInFilesInfos::CopyFrom(const SearchVectorInFilesInfos& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.SearchVectorInFilesInfos) +void SearchInFilesParam::CopyFrom(const SearchInFilesParam& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.SearchInFilesParam) if (&from == this) return; Clear(); MergeFrom(from); } -bool SearchVectorInFilesInfos::IsInitialized() const { +bool SearchInFilesParam::IsInitialized() const { return true; } -void SearchVectorInFilesInfos::InternalSwap(SearchVectorInFilesInfos* other) { +void SearchInFilesParam::InternalSwap(SearchInFilesParam* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); file_id_array_.InternalSwap(CastToBase(&other->file_id_array_)); - swap(search_vector_infos_, other->search_vector_infos_); + swap(search_param_, other->search_param_); } -::PROTOBUF_NAMESPACE_ID::Metadata SearchVectorInFilesInfos::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata SearchInFilesParam::GetMetadata() const { return GetMetadataStatic(); } @@ -5150,104 +5220,88 @@ void Command::InternalSwap(Command* other) { // =================================================================== -void ServerStatus::InitAsDefaultInstance() { - ::milvus::grpc::_ServerStatus_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( - ::milvus::grpc::Status::internal_default_instance()); +void Index::InitAsDefaultInstance() { } -class ServerStatus::_Internal { +class Index::_Internal { public: - static const ::milvus::grpc::Status& status(const ServerStatus* msg); }; -const ::milvus::grpc::Status& -ServerStatus::_Internal::status(const ServerStatus* msg) { - return *msg->status_; -} -void ServerStatus::clear_status() { - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; -} -ServerStatus::ServerStatus() +Index::Index() : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:milvus.grpc.ServerStatus) + // @@protoc_insertion_point(constructor:milvus.grpc.Index) } -ServerStatus::ServerStatus(const ServerStatus& from) +Index::Index(const Index& from) : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - info_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (!from.info().empty()) { - info_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.info_); - } - if (from.has_status()) { - status_ = new ::milvus::grpc::Status(*from.status_); - } else { - status_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:milvus.grpc.ServerStatus) + ::memcpy(&nlist_, &from.nlist_, + static_cast(reinterpret_cast(&index_file_size_) - + reinterpret_cast(&nlist_)) + sizeof(index_file_size_)); + // @@protoc_insertion_point(copy_constructor:milvus.grpc.Index) } -void ServerStatus::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ServerStatus_milvus_2eproto.base); - info_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - status_ = nullptr; +void Index::SharedCtor() { + ::memset(&nlist_, 0, static_cast( + reinterpret_cast(&index_file_size_) - + reinterpret_cast(&nlist_)) + sizeof(index_file_size_)); } -ServerStatus::~ServerStatus() { - // @@protoc_insertion_point(destructor:milvus.grpc.ServerStatus) +Index::~Index() { + // @@protoc_insertion_point(destructor:milvus.grpc.Index) SharedDtor(); } -void ServerStatus::SharedDtor() { - info_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete status_; +void Index::SharedDtor() { } -void ServerStatus::SetCachedSize(int size) const { +void Index::SetCachedSize(int size) const { _cached_size_.Set(size); } -const ServerStatus& ServerStatus::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ServerStatus_milvus_2eproto.base); +const Index& Index::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Index_milvus_2eproto.base); return *internal_default_instance(); } -void ServerStatus::Clear() { -// @@protoc_insertion_point(message_clear_start:milvus.grpc.ServerStatus) +void Index::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.grpc.Index) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - info_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { - delete status_; - } - status_ = nullptr; + ::memset(&nlist_, 0, static_cast( + reinterpret_cast(&index_file_size_) - + reinterpret_cast(&nlist_)) + sizeof(index_file_size_)); _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ServerStatus::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +const char* Index::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { ::PROTOBUF_NAMESPACE_ID::uint32 tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); CHK_(ptr); switch (tag >> 3) { - // .milvus.grpc.Status status = 1; + // int32 index_type = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(mutable_status(), ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + index_type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); CHK_(ptr); } else goto handle_unusual; continue; - // string info = 2; + // int64 nlist = 2; case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_info(), ptr, ctx, "milvus.grpc.ServerStatus.info"); + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + nlist_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // int32 index_file_size = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + index_file_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); CHK_(ptr); } else goto handle_unusual; continue; @@ -5271,36 +5325,49 @@ failure: #undef CHK_ } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ServerStatus::MergePartialFromCodedStream( +bool Index::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.ServerStatus) + // @@protoc_insertion_point(parse_start:milvus.grpc.Index) for (;;) { ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .milvus.grpc.Status status = 1; + // int32 index_type = 1; case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( - input, mutable_status())); + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { + + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>( + input, &index_type_))); } else { goto handle_unusual; } break; } - // string info = 2; + // int64 nlist = 2; case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( - input, this->mutable_info())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->info().data(), static_cast(this->info().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, - "milvus.grpc.ServerStatus.info")); + 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, &nlist_))); + } else { + goto handle_unusual; + } + break; + } + + // int32 index_file_size = 3; + case 3: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) { + + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>( + input, &index_file_size_))); } else { goto handle_unusual; } @@ -5319,78 +5386,74 @@ bool ServerStatus::MergePartialFromCodedStream( } } success: - // @@protoc_insertion_point(parse_success:milvus.grpc.ServerStatus) + // @@protoc_insertion_point(parse_success:milvus.grpc.Index) return true; failure: - // @@protoc_insertion_point(parse_failure:milvus.grpc.ServerStatus) + // @@protoc_insertion_point(parse_failure:milvus.grpc.Index) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void ServerStatus::SerializeWithCachedSizes( +void Index::SerializeWithCachedSizes( ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:milvus.grpc.ServerStatus) + // @@protoc_insertion_point(serialize_start:milvus.grpc.Index) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, _Internal::status(this), output); + // int32 index_type = 1; + if (this->index_type() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(1, this->index_type(), output); } - // string info = 2; - if (this->info().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->info().data(), static_cast(this->info().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.ServerStatus.info"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->info(), output); + // int64 nlist = 2; + if (this->nlist() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->nlist(), output); + } + + // int32 index_file_size = 3; + if (this->index_file_size() != 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(3, this->index_file_size(), 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.ServerStatus) + // @@protoc_insertion_point(serialize_end:milvus.grpc.Index) } -::PROTOBUF_NAMESPACE_ID::uint8* ServerStatus::InternalSerializeWithCachedSizesToArray( +::PROTOBUF_NAMESPACE_ID::uint8* Index::InternalSerializeWithCachedSizesToArray( ::PROTOBUF_NAMESPACE_ID::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.ServerStatus) + // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.Index) ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .milvus.grpc.Status status = 1; - if (this->has_status()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, _Internal::status(this), target); + // int32 index_type = 1; + if (this->index_type() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->index_type(), target); } - // string info = 2; - if (this->info().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->info().data(), static_cast(this->info().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "milvus.grpc.ServerStatus.info"); - target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( - 2, this->info(), target); + // int64 nlist = 2; + if (this->nlist() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->nlist(), target); + } + + // int32 index_file_size = 3; + if (this->index_file_size() != 0) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->index_file_size(), 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.ServerStatus) + // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.Index) return target; } -size_t ServerStatus::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.ServerStatus) +size_t Index::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.Index) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -5402,18 +5465,25 @@ size_t ServerStatus::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string info = 2; - if (this->info().size() > 0) { + // int64 nlist = 2; + if (this->nlist() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->info()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + this->nlist()); } - // .milvus.grpc.Status status = 1; - if (this->has_status()) { + // int32 index_type = 1; + if (this->index_type() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *status_); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + this->index_type()); + } + + // int32 index_file_size = 3; + if (this->index_file_size() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + this->index_file_size()); } int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); @@ -5421,116 +5491,780 @@ size_t ServerStatus::ByteSizeLong() const { return total_size; } -void ServerStatus::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.ServerStatus) +void Index::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.Index) GOOGLE_DCHECK_NE(&from, this); - const ServerStatus* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + const Index* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.ServerStatus) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.Index) ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.ServerStatus) + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.Index) MergeFrom(*source); } } -void ServerStatus::MergeFrom(const ServerStatus& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.ServerStatus) +void Index::MergeFrom(const Index& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.Index) 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.info().size() > 0) { - - info_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.info_); + if (from.nlist() != 0) { + set_nlist(from.nlist()); } - if (from.has_status()) { - mutable_status()->::milvus::grpc::Status::MergeFrom(from.status()); + if (from.index_type() != 0) { + set_index_type(from.index_type()); + } + if (from.index_file_size() != 0) { + set_index_file_size(from.index_file_size()); } } -void ServerStatus::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.ServerStatus) +void Index::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.Index) if (&from == this) return; Clear(); MergeFrom(from); } -void ServerStatus::CopyFrom(const ServerStatus& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.ServerStatus) +void Index::CopyFrom(const Index& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.Index) if (&from == this) return; Clear(); MergeFrom(from); } -bool ServerStatus::IsInitialized() const { +bool Index::IsInitialized() const { return true; } -void ServerStatus::InternalSwap(ServerStatus* other) { +void Index::InternalSwap(Index* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - info_.Swap(&other->info_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(status_, other->status_); + swap(nlist_, other->nlist_); + swap(index_type_, other->index_type_); + swap(index_file_size_, other->index_file_size_); } -::PROTOBUF_NAMESPACE_ID::Metadata ServerStatus::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Index::GetMetadata() const { return GetMetadataStatic(); } -// @@protoc_insertion_point(namespace_scope) -} // namespace grpc -} // namespace milvus -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::milvus::grpc::TableName* Arena::CreateMaybeMessage< ::milvus::grpc::TableName >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::TableName >(arena); -} -template<> PROTOBUF_NOINLINE ::milvus::grpc::TableSchema* Arena::CreateMaybeMessage< ::milvus::grpc::TableSchema >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::TableSchema >(arena); +// =================================================================== + +void IndexParam::InitAsDefaultInstance() { + ::milvus::grpc::_IndexParam_default_instance_._instance.get_mutable()->table_name_ = const_cast< ::milvus::grpc::TableName*>( + ::milvus::grpc::TableName::internal_default_instance()); + ::milvus::grpc::_IndexParam_default_instance_._instance.get_mutable()->index_ = const_cast< ::milvus::grpc::Index*>( + ::milvus::grpc::Index::internal_default_instance()); } -template<> PROTOBUF_NOINLINE ::milvus::grpc::Range* Arena::CreateMaybeMessage< ::milvus::grpc::Range >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::Range >(arena); +class IndexParam::_Internal { + public: + static const ::milvus::grpc::TableName& table_name(const IndexParam* msg); + static const ::milvus::grpc::Index& index(const IndexParam* msg); +}; + +const ::milvus::grpc::TableName& +IndexParam::_Internal::table_name(const IndexParam* msg) { + return *msg->table_name_; } -template<> PROTOBUF_NOINLINE ::milvus::grpc::RowRecord* Arena::CreateMaybeMessage< ::milvus::grpc::RowRecord >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::RowRecord >(arena); +const ::milvus::grpc::Index& +IndexParam::_Internal::index(const IndexParam* msg) { + return *msg->index_; } -template<> PROTOBUF_NOINLINE ::milvus::grpc::InsertInfos* Arena::CreateMaybeMessage< ::milvus::grpc::InsertInfos >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::InsertInfos >(arena); +IndexParam::IndexParam() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.grpc.IndexParam) } -template<> PROTOBUF_NOINLINE ::milvus::grpc::VectorIds* Arena::CreateMaybeMessage< ::milvus::grpc::VectorIds >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::VectorIds >(arena); +IndexParam::IndexParam(const IndexParam& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + if (from.has_table_name()) { + table_name_ = new ::milvus::grpc::TableName(*from.table_name_); + } else { + table_name_ = nullptr; + } + if (from.has_index()) { + index_ = new ::milvus::grpc::Index(*from.index_); + } else { + index_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:milvus.grpc.IndexParam) } -template<> PROTOBUF_NOINLINE ::milvus::grpc::SearchVectorInfos* Arena::CreateMaybeMessage< ::milvus::grpc::SearchVectorInfos >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::SearchVectorInfos >(arena); + +void IndexParam::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_IndexParam_milvus_2eproto.base); + ::memset(&table_name_, 0, static_cast( + reinterpret_cast(&index_) - + reinterpret_cast(&table_name_)) + sizeof(index_)); } -template<> PROTOBUF_NOINLINE ::milvus::grpc::SearchVectorInFilesInfos* Arena::CreateMaybeMessage< ::milvus::grpc::SearchVectorInFilesInfos >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::SearchVectorInFilesInfos >(arena); + +IndexParam::~IndexParam() { + // @@protoc_insertion_point(destructor:milvus.grpc.IndexParam) + SharedDtor(); } -template<> PROTOBUF_NOINLINE ::milvus::grpc::QueryResult* Arena::CreateMaybeMessage< ::milvus::grpc::QueryResult >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::QueryResult >(arena); + +void IndexParam::SharedDtor() { + if (this != internal_default_instance()) delete table_name_; + if (this != internal_default_instance()) delete index_; } -template<> PROTOBUF_NOINLINE ::milvus::grpc::TopKQueryResult* Arena::CreateMaybeMessage< ::milvus::grpc::TopKQueryResult >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::TopKQueryResult >(arena); + +void IndexParam::SetCachedSize(int size) const { + _cached_size_.Set(size); } -template<> PROTOBUF_NOINLINE ::milvus::grpc::StringReply* Arena::CreateMaybeMessage< ::milvus::grpc::StringReply >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::StringReply >(arena); +const IndexParam& IndexParam::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_IndexParam_milvus_2eproto.base); + return *internal_default_instance(); } -template<> PROTOBUF_NOINLINE ::milvus::grpc::BoolReply* Arena::CreateMaybeMessage< ::milvus::grpc::BoolReply >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::BoolReply >(arena); + + +void IndexParam::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.grpc.IndexParam) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaNoVirtual() == nullptr && table_name_ != nullptr) { + delete table_name_; + } + table_name_ = nullptr; + if (GetArenaNoVirtual() == nullptr && index_ != nullptr) { + delete index_; + } + index_ = nullptr; + _internal_metadata_.Clear(); } -template<> PROTOBUF_NOINLINE ::milvus::grpc::TableRowCount* Arena::CreateMaybeMessage< ::milvus::grpc::TableRowCount >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::TableRowCount >(arena); + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* IndexParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.grpc.TableName table_name = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_table_name(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // .milvus.grpc.Index index = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(mutable_index(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + default: { + handle_unusual: + if ((tag & 7) == 4 || tag == 0) { + ctx->SetLastTag(tag); + goto success; + } + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; + } + } // switch + } // while +success: + return ptr; +failure: + ptr = nullptr; + goto success; +#undef CHK_ } -template<> PROTOBUF_NOINLINE ::milvus::grpc::Command* Arena::CreateMaybeMessage< ::milvus::grpc::Command >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::Command >(arena); +#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +bool IndexParam::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.IndexParam) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.grpc.TableName table_name = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_table_name())); + } else { + goto handle_unusual; + } + break; + } + + // .milvus.grpc.Index index = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_index())); + } else { + goto handle_unusual; + } + break; + } + + default: { + handle_unusual: + if (tag == 0) { + goto success; + } + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + input, tag, _internal_metadata_.mutable_unknown_fields())); + break; + } + } + } +success: + // @@protoc_insertion_point(parse_success:milvus.grpc.IndexParam) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.grpc.IndexParam) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void IndexParam::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.grpc.IndexParam) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.grpc.TableName table_name = 1; + if (this->has_table_name()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::table_name(this), output); + } + + // .milvus.grpc.Index index = 2; + if (this->has_index()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, _Internal::index(this), output); + } + + if (_internal_metadata_.have_unknown_fields()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + _internal_metadata_.unknown_fields(), output); + } + // @@protoc_insertion_point(serialize_end:milvus.grpc.IndexParam) +} + +::PROTOBUF_NAMESPACE_ID::uint8* IndexParam::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.IndexParam) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.grpc.TableName table_name = 1; + if (this->has_table_name()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::table_name(this), target); + } + + // .milvus.grpc.Index index = 2; + if (this->has_index()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 2, _Internal::index(this), target); + } + + if (_internal_metadata_.have_unknown_fields()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields(), target); + } + // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.IndexParam) + return target; +} + +size_t IndexParam::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.IndexParam) + size_t total_size = 0; + + if (_internal_metadata_.have_unknown_fields()) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + _internal_metadata_.unknown_fields()); + } + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .milvus.grpc.TableName table_name = 1; + if (this->has_table_name()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *table_name_); + } + + // .milvus.grpc.Index index = 2; + if (this->has_index()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *index_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void IndexParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.IndexParam) + GOOGLE_DCHECK_NE(&from, this); + const IndexParam* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.IndexParam) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.IndexParam) + MergeFrom(*source); + } +} + +void IndexParam::MergeFrom(const IndexParam& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.IndexParam) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + if (from.has_table_name()) { + mutable_table_name()->::milvus::grpc::TableName::MergeFrom(from.table_name()); + } + if (from.has_index()) { + mutable_index()->::milvus::grpc::Index::MergeFrom(from.index()); + } +} + +void IndexParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.IndexParam) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void IndexParam::CopyFrom(const IndexParam& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.IndexParam) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IndexParam::IsInitialized() const { + return true; +} + +void IndexParam::InternalSwap(IndexParam* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + swap(table_name_, other->table_name_); + swap(index_, other->index_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata IndexParam::GetMetadata() const { + return GetMetadataStatic(); +} + + +// =================================================================== + +void DeleteByRangeParam::InitAsDefaultInstance() { + ::milvus::grpc::_DeleteByRangeParam_default_instance_._instance.get_mutable()->range_ = const_cast< ::milvus::grpc::Range*>( + ::milvus::grpc::Range::internal_default_instance()); +} +class DeleteByRangeParam::_Internal { + public: + static const ::milvus::grpc::Range& range(const DeleteByRangeParam* msg); +}; + +const ::milvus::grpc::Range& +DeleteByRangeParam::_Internal::range(const DeleteByRangeParam* msg) { + return *msg->range_; +} +DeleteByRangeParam::DeleteByRangeParam() + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + SharedCtor(); + // @@protoc_insertion_point(constructor:milvus.grpc.DeleteByRangeParam) +} +DeleteByRangeParam::DeleteByRangeParam(const DeleteByRangeParam& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + _internal_metadata_(nullptr) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + table_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.table_name().empty()) { + table_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.table_name_); + } + if (from.has_range()) { + range_ = new ::milvus::grpc::Range(*from.range_); + } else { + range_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:milvus.grpc.DeleteByRangeParam) +} + +void DeleteByRangeParam::SharedCtor() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_DeleteByRangeParam_milvus_2eproto.base); + table_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + range_ = nullptr; +} + +DeleteByRangeParam::~DeleteByRangeParam() { + // @@protoc_insertion_point(destructor:milvus.grpc.DeleteByRangeParam) + SharedDtor(); +} + +void DeleteByRangeParam::SharedDtor() { + table_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete range_; +} + +void DeleteByRangeParam::SetCachedSize(int size) const { + _cached_size_.Set(size); +} +const DeleteByRangeParam& DeleteByRangeParam::default_instance() { + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_DeleteByRangeParam_milvus_2eproto.base); + return *internal_default_instance(); +} + + +void DeleteByRangeParam::Clear() { +// @@protoc_insertion_point(message_clear_start:milvus.grpc.DeleteByRangeParam) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + table_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && range_ != nullptr) { + delete range_; + } + range_ = nullptr; + _internal_metadata_.Clear(); +} + +#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER +const char* DeleteByRangeParam::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); + switch (tag >> 3) { + // .milvus.grpc.Range range = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_range(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; + // string table_name = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_table_name(), ptr, ctx, "milvus.grpc.DeleteByRangeParam.table_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 DeleteByRangeParam::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.DeleteByRangeParam) + for (;;) { + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + tag = p.first; + if (!p.second) goto handle_unusual; + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + // .milvus.grpc.Range range = 1; + case 1: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + input, mutable_range())); + } else { + goto handle_unusual; + } + break; + } + + // string table_name = 2; + case 2: { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + input, this->mutable_table_name())); + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->table_name().data(), static_cast(this->table_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + "milvus.grpc.DeleteByRangeParam.table_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.DeleteByRangeParam) + return true; +failure: + // @@protoc_insertion_point(parse_failure:milvus.grpc.DeleteByRangeParam) + return false; +#undef DO_ +} +#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER + +void DeleteByRangeParam::SerializeWithCachedSizes( + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + // @@protoc_insertion_point(serialize_start:milvus.grpc.DeleteByRangeParam) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.grpc.Range range = 1; + if (this->has_range()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::range(this), output); + } + + // string table_name = 2; + if (this->table_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->table_name().data(), static_cast(this->table_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.grpc.DeleteByRangeParam.table_name"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + 2, this->table_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.DeleteByRangeParam) +} + +::PROTOBUF_NAMESPACE_ID::uint8* DeleteByRangeParam::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { + // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.DeleteByRangeParam) + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + (void) cached_has_bits; + + // .milvus.grpc.Range range = 1; + if (this->has_range()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessageToArray( + 1, _Internal::range(this), target); + } + + // string table_name = 2; + if (this->table_name().size() > 0) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->table_name().data(), static_cast(this->table_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "milvus.grpc.DeleteByRangeParam.table_name"); + target = + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + 2, this->table_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.DeleteByRangeParam) + return target; +} + +size_t DeleteByRangeParam::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:milvus.grpc.DeleteByRangeParam) + 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 table_name = 2; + if (this->table_name().size() > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->table_name()); + } + + // .milvus.grpc.Range range = 1; + if (this->has_range()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *range_); + } + + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); + return total_size; +} + +void DeleteByRangeParam::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.DeleteByRangeParam) + GOOGLE_DCHECK_NE(&from, this); + const DeleteByRangeParam* source = + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + &from); + if (source == nullptr) { + // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.DeleteByRangeParam) + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + } else { + // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.DeleteByRangeParam) + MergeFrom(*source); + } +} + +void DeleteByRangeParam::MergeFrom(const DeleteByRangeParam& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.DeleteByRangeParam) + 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.table_name().size() > 0) { + + table_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.table_name_); + } + if (from.has_range()) { + mutable_range()->::milvus::grpc::Range::MergeFrom(from.range()); + } +} + +void DeleteByRangeParam::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.DeleteByRangeParam) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +void DeleteByRangeParam::CopyFrom(const DeleteByRangeParam& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:milvus.grpc.DeleteByRangeParam) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DeleteByRangeParam::IsInitialized() const { + return true; +} + +void DeleteByRangeParam::InternalSwap(DeleteByRangeParam* other) { + using std::swap; + _internal_metadata_.Swap(&other->_internal_metadata_); + table_name_.Swap(&other->table_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(range_, other->range_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DeleteByRangeParam::GetMetadata() const { + return GetMetadataStatic(); +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace grpc +} // namespace milvus +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::milvus::grpc::TableName* Arena::CreateMaybeMessage< ::milvus::grpc::TableName >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::TableName >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::TableSchema* Arena::CreateMaybeMessage< ::milvus::grpc::TableSchema >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::TableSchema >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::Range* Arena::CreateMaybeMessage< ::milvus::grpc::Range >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::Range >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::RowRecord* Arena::CreateMaybeMessage< ::milvus::grpc::RowRecord >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::RowRecord >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::InsertParam* Arena::CreateMaybeMessage< ::milvus::grpc::InsertParam >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::InsertParam >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::VectorIds* Arena::CreateMaybeMessage< ::milvus::grpc::VectorIds >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::VectorIds >(arena); +} +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::QueryResult* Arena::CreateMaybeMessage< ::milvus::grpc::QueryResult >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::QueryResult >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::TopKQueryResult* Arena::CreateMaybeMessage< ::milvus::grpc::TopKQueryResult >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::TopKQueryResult >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::StringReply* Arena::CreateMaybeMessage< ::milvus::grpc::StringReply >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::StringReply >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::BoolReply* Arena::CreateMaybeMessage< ::milvus::grpc::BoolReply >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::BoolReply >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::TableRowCount* Arena::CreateMaybeMessage< ::milvus::grpc::TableRowCount >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::TableRowCount >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::Command* Arena::CreateMaybeMessage< ::milvus::grpc::Command >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::Command >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::Index* Arena::CreateMaybeMessage< ::milvus::grpc::Index >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::Index >(arena); +} +template<> PROTOBUF_NOINLINE ::milvus::grpc::IndexParam* Arena::CreateMaybeMessage< ::milvus::grpc::IndexParam >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::IndexParam >(arena); } -template<> PROTOBUF_NOINLINE ::milvus::grpc::ServerStatus* Arena::CreateMaybeMessage< ::milvus::grpc::ServerStatus >(Arena* arena) { - return Arena::CreateInternal< ::milvus::grpc::ServerStatus >(arena); +template<> PROTOBUF_NOINLINE ::milvus::grpc::DeleteByRangeParam* Arena::CreateMaybeMessage< ::milvus::grpc::DeleteByRangeParam >(Arena* arena) { + return Arena::CreateInternal< ::milvus::grpc::DeleteByRangeParam >(arena); } PROTOBUF_NAMESPACE_CLOSE diff --git a/cpp/src/grpc/gen-milvus/milvus.pb.h b/cpp/src/grpc/gen-milvus/milvus.pb.h index c6529f4bc64b6c9f3fbbacc3dc0a874121f230c3..92708e1852492e720ca26b93ca3ed98422caecad 100644 --- a/cpp/src/grpc/gen-milvus/milvus.pb.h +++ b/cpp/src/grpc/gen-milvus/milvus.pb.h @@ -48,7 +48,7 @@ struct TableStruct_milvus_2eproto { PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[15] + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[17] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; @@ -63,9 +63,18 @@ extern BoolReplyDefaultTypeInternal _BoolReply_default_instance_; class Command; class CommandDefaultTypeInternal; extern CommandDefaultTypeInternal _Command_default_instance_; -class InsertInfos; -class InsertInfosDefaultTypeInternal; -extern InsertInfosDefaultTypeInternal _InsertInfos_default_instance_; +class DeleteByRangeParam; +class DeleteByRangeParamDefaultTypeInternal; +extern DeleteByRangeParamDefaultTypeInternal _DeleteByRangeParam_default_instance_; +class Index; +class IndexDefaultTypeInternal; +extern IndexDefaultTypeInternal _Index_default_instance_; +class IndexParam; +class IndexParamDefaultTypeInternal; +extern IndexParamDefaultTypeInternal _IndexParam_default_instance_; +class InsertParam; +class InsertParamDefaultTypeInternal; +extern InsertParamDefaultTypeInternal _InsertParam_default_instance_; class QueryResult; class QueryResultDefaultTypeInternal; extern QueryResultDefaultTypeInternal _QueryResult_default_instance_; @@ -75,15 +84,12 @@ extern RangeDefaultTypeInternal _Range_default_instance_; class RowRecord; class RowRecordDefaultTypeInternal; extern RowRecordDefaultTypeInternal _RowRecord_default_instance_; -class SearchVectorInFilesInfos; -class SearchVectorInFilesInfosDefaultTypeInternal; -extern SearchVectorInFilesInfosDefaultTypeInternal _SearchVectorInFilesInfos_default_instance_; -class SearchVectorInfos; -class SearchVectorInfosDefaultTypeInternal; -extern SearchVectorInfosDefaultTypeInternal _SearchVectorInfos_default_instance_; -class ServerStatus; -class ServerStatusDefaultTypeInternal; -extern ServerStatusDefaultTypeInternal _ServerStatus_default_instance_; +class SearchInFilesParam; +class SearchInFilesParamDefaultTypeInternal; +extern SearchInFilesParamDefaultTypeInternal _SearchInFilesParam_default_instance_; +class SearchParam; +class SearchParamDefaultTypeInternal; +extern SearchParamDefaultTypeInternal _SearchParam_default_instance_; class StringReply; class StringReplyDefaultTypeInternal; extern StringReplyDefaultTypeInternal _StringReply_default_instance_; @@ -107,13 +113,15 @@ extern VectorIdsDefaultTypeInternal _VectorIds_default_instance_; PROTOBUF_NAMESPACE_OPEN template<> ::milvus::grpc::BoolReply* Arena::CreateMaybeMessage<::milvus::grpc::BoolReply>(Arena*); template<> ::milvus::grpc::Command* Arena::CreateMaybeMessage<::milvus::grpc::Command>(Arena*); -template<> ::milvus::grpc::InsertInfos* Arena::CreateMaybeMessage<::milvus::grpc::InsertInfos>(Arena*); +template<> ::milvus::grpc::DeleteByRangeParam* Arena::CreateMaybeMessage<::milvus::grpc::DeleteByRangeParam>(Arena*); +template<> ::milvus::grpc::Index* Arena::CreateMaybeMessage<::milvus::grpc::Index>(Arena*); +template<> ::milvus::grpc::IndexParam* Arena::CreateMaybeMessage<::milvus::grpc::IndexParam>(Arena*); +template<> ::milvus::grpc::InsertParam* Arena::CreateMaybeMessage<::milvus::grpc::InsertParam>(Arena*); template<> ::milvus::grpc::QueryResult* Arena::CreateMaybeMessage<::milvus::grpc::QueryResult>(Arena*); template<> ::milvus::grpc::Range* Arena::CreateMaybeMessage<::milvus::grpc::Range>(Arena*); template<> ::milvus::grpc::RowRecord* Arena::CreateMaybeMessage<::milvus::grpc::RowRecord>(Arena*); -template<> ::milvus::grpc::SearchVectorInFilesInfos* Arena::CreateMaybeMessage<::milvus::grpc::SearchVectorInFilesInfos>(Arena*); -template<> ::milvus::grpc::SearchVectorInfos* Arena::CreateMaybeMessage<::milvus::grpc::SearchVectorInfos>(Arena*); -template<> ::milvus::grpc::ServerStatus* Arena::CreateMaybeMessage<::milvus::grpc::ServerStatus>(Arena*); +template<> ::milvus::grpc::SearchInFilesParam* Arena::CreateMaybeMessage<::milvus::grpc::SearchInFilesParam>(Arena*); +template<> ::milvus::grpc::SearchParam* Arena::CreateMaybeMessage<::milvus::grpc::SearchParam>(Arena*); template<> ::milvus::grpc::StringReply* Arena::CreateMaybeMessage<::milvus::grpc::StringReply>(Arena*); template<> ::milvus::grpc::TableName* Arena::CreateMaybeMessage<::milvus::grpc::TableName>(Arena*); template<> ::milvus::grpc::TableRowCount* Arena::CreateMaybeMessage<::milvus::grpc::TableRowCount>(Arena*); @@ -716,23 +724,23 @@ class RowRecord : }; // ------------------------------------------------------------------- -class InsertInfos : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.InsertInfos) */ { +class InsertParam : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.InsertParam) */ { public: - InsertInfos(); - virtual ~InsertInfos(); + InsertParam(); + virtual ~InsertParam(); - InsertInfos(const InsertInfos& from); - InsertInfos(InsertInfos&& from) noexcept - : InsertInfos() { + InsertParam(const InsertParam& from); + InsertParam(InsertParam&& from) noexcept + : InsertParam() { *this = ::std::move(from); } - inline InsertInfos& operator=(const InsertInfos& from) { + inline InsertParam& operator=(const InsertParam& from) { CopyFrom(from); return *this; } - inline InsertInfos& operator=(InsertInfos&& from) noexcept { + inline InsertParam& operator=(InsertParam&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -750,37 +758,37 @@ class InsertInfos : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const InsertInfos& default_instance(); + static const InsertParam& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const InsertInfos* internal_default_instance() { - return reinterpret_cast( - &_InsertInfos_default_instance_); + static inline const InsertParam* internal_default_instance() { + return reinterpret_cast( + &_InsertParam_default_instance_); } static constexpr int kIndexInFileMessages = 4; - friend void swap(InsertInfos& a, InsertInfos& b) { + friend void swap(InsertParam& a, InsertParam& b) { a.Swap(&b); } - inline void Swap(InsertInfos* other) { + inline void Swap(InsertParam* other) { if (other == this) return; InternalSwap(other); } // implements Message ---------------------------------------------- - inline InsertInfos* New() const final { - return CreateMaybeMessage(nullptr); + inline InsertParam* New() const final { + return CreateMaybeMessage(nullptr); } - InsertInfos* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + InsertParam* 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 InsertInfos& from); - void MergeFrom(const InsertInfos& from); + void CopyFrom(const InsertParam& from); + void MergeFrom(const InsertParam& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -801,10 +809,10 @@ class InsertInfos : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(InsertInfos* other); + void InternalSwap(InsertParam* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.InsertInfos"; + return "milvus.grpc.InsertParam"; } private: inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { @@ -854,7 +862,7 @@ class InsertInfos : std::string* release_table_name(); void set_allocated_table_name(std::string* table_name); - // @@protoc_insertion_point(class_scope:milvus.grpc.InsertInfos) + // @@protoc_insertion_point(class_scope:milvus.grpc.InsertParam) private: class _Internal; @@ -1014,23 +1022,23 @@ class VectorIds : }; // ------------------------------------------------------------------- -class SearchVectorInfos : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.SearchVectorInfos) */ { +class SearchParam : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.SearchParam) */ { public: - SearchVectorInfos(); - virtual ~SearchVectorInfos(); + SearchParam(); + virtual ~SearchParam(); - SearchVectorInfos(const SearchVectorInfos& from); - SearchVectorInfos(SearchVectorInfos&& from) noexcept - : SearchVectorInfos() { + SearchParam(const SearchParam& from); + SearchParam(SearchParam&& from) noexcept + : SearchParam() { *this = ::std::move(from); } - inline SearchVectorInfos& operator=(const SearchVectorInfos& from) { + inline SearchParam& operator=(const SearchParam& from) { CopyFrom(from); return *this; } - inline SearchVectorInfos& operator=(SearchVectorInfos&& from) noexcept { + inline SearchParam& operator=(SearchParam&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -1048,37 +1056,37 @@ class SearchVectorInfos : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const SearchVectorInfos& default_instance(); + static const SearchParam& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SearchVectorInfos* internal_default_instance() { - return reinterpret_cast( - &_SearchVectorInfos_default_instance_); + static inline const SearchParam* internal_default_instance() { + return reinterpret_cast( + &_SearchParam_default_instance_); } static constexpr int kIndexInFileMessages = 6; - friend void swap(SearchVectorInfos& a, SearchVectorInfos& b) { + friend void swap(SearchParam& a, SearchParam& b) { a.Swap(&b); } - inline void Swap(SearchVectorInfos* other) { + inline void Swap(SearchParam* other) { if (other == this) return; InternalSwap(other); } // implements Message ---------------------------------------------- - inline SearchVectorInfos* New() const final { - return CreateMaybeMessage(nullptr); + inline SearchParam* New() const final { + return CreateMaybeMessage(nullptr); } - SearchVectorInfos* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + SearchParam* 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 SearchVectorInfos& from); - void MergeFrom(const SearchVectorInfos& from); + void CopyFrom(const SearchParam& from); + void MergeFrom(const SearchParam& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -1099,10 +1107,10 @@ class SearchVectorInfos : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(SearchVectorInfos* other); + void InternalSwap(SearchParam* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.SearchVectorInfos"; + return "milvus.grpc.SearchParam"; } private: inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { @@ -1170,7 +1178,7 @@ class SearchVectorInfos : ::PROTOBUF_NAMESPACE_ID::int64 topk() const; void set_topk(::PROTOBUF_NAMESPACE_ID::int64 value); - // @@protoc_insertion_point(class_scope:milvus.grpc.SearchVectorInfos) + // @@protoc_insertion_point(class_scope:milvus.grpc.SearchParam) private: class _Internal; @@ -1184,23 +1192,23 @@ class SearchVectorInfos : }; // ------------------------------------------------------------------- -class SearchVectorInFilesInfos : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.SearchVectorInFilesInfos) */ { +class SearchInFilesParam : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.SearchInFilesParam) */ { public: - SearchVectorInFilesInfos(); - virtual ~SearchVectorInFilesInfos(); + SearchInFilesParam(); + virtual ~SearchInFilesParam(); - SearchVectorInFilesInfos(const SearchVectorInFilesInfos& from); - SearchVectorInFilesInfos(SearchVectorInFilesInfos&& from) noexcept - : SearchVectorInFilesInfos() { + SearchInFilesParam(const SearchInFilesParam& from); + SearchInFilesParam(SearchInFilesParam&& from) noexcept + : SearchInFilesParam() { *this = ::std::move(from); } - inline SearchVectorInFilesInfos& operator=(const SearchVectorInFilesInfos& from) { + inline SearchInFilesParam& operator=(const SearchInFilesParam& from) { CopyFrom(from); return *this; } - inline SearchVectorInFilesInfos& operator=(SearchVectorInFilesInfos&& from) noexcept { + inline SearchInFilesParam& operator=(SearchInFilesParam&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -1218,37 +1226,37 @@ class SearchVectorInFilesInfos : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const SearchVectorInFilesInfos& default_instance(); + static const SearchInFilesParam& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SearchVectorInFilesInfos* internal_default_instance() { - return reinterpret_cast( - &_SearchVectorInFilesInfos_default_instance_); + static inline const SearchInFilesParam* internal_default_instance() { + return reinterpret_cast( + &_SearchInFilesParam_default_instance_); } static constexpr int kIndexInFileMessages = 7; - friend void swap(SearchVectorInFilesInfos& a, SearchVectorInFilesInfos& b) { + friend void swap(SearchInFilesParam& a, SearchInFilesParam& b) { a.Swap(&b); } - inline void Swap(SearchVectorInFilesInfos* other) { + inline void Swap(SearchInFilesParam* other) { if (other == this) return; InternalSwap(other); } // implements Message ---------------------------------------------- - inline SearchVectorInFilesInfos* New() const final { - return CreateMaybeMessage(nullptr); + inline SearchInFilesParam* New() const final { + return CreateMaybeMessage(nullptr); } - SearchVectorInFilesInfos* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + SearchInFilesParam* 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 SearchVectorInFilesInfos& from); - void MergeFrom(const SearchVectorInFilesInfos& from); + void CopyFrom(const SearchInFilesParam& from); + void MergeFrom(const SearchInFilesParam& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -1269,10 +1277,10 @@ class SearchVectorInFilesInfos : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(SearchVectorInFilesInfos* other); + void InternalSwap(SearchInFilesParam* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.SearchVectorInFilesInfos"; + return "milvus.grpc.SearchInFilesParam"; } private: inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { @@ -1298,7 +1306,7 @@ class SearchVectorInFilesInfos : enum : int { kFileIdArrayFieldNumber = 1, - kSearchVectorInfosFieldNumber = 2, + kSearchParamFieldNumber = 2, }; // repeated string file_id_array = 1; int file_id_array_size() const; @@ -1317,21 +1325,21 @@ class SearchVectorInFilesInfos : const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& file_id_array() const; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_file_id_array(); - // .milvus.grpc.SearchVectorInfos search_vector_infos = 2; - bool has_search_vector_infos() const; - void clear_search_vector_infos(); - const ::milvus::grpc::SearchVectorInfos& search_vector_infos() const; - ::milvus::grpc::SearchVectorInfos* release_search_vector_infos(); - ::milvus::grpc::SearchVectorInfos* mutable_search_vector_infos(); - void set_allocated_search_vector_infos(::milvus::grpc::SearchVectorInfos* search_vector_infos); + // .milvus.grpc.SearchParam search_param = 2; + bool has_search_param() const; + void clear_search_param(); + const ::milvus::grpc::SearchParam& search_param() const; + ::milvus::grpc::SearchParam* release_search_param(); + ::milvus::grpc::SearchParam* mutable_search_param(); + void set_allocated_search_param(::milvus::grpc::SearchParam* search_param); - // @@protoc_insertion_point(class_scope:milvus.grpc.SearchVectorInFilesInfos) + // @@protoc_insertion_point(class_scope:milvus.grpc.SearchInFilesParam) private: class _Internal; ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField file_id_array_; - ::milvus::grpc::SearchVectorInfos* search_vector_infos_; + ::milvus::grpc::SearchParam* search_param_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_milvus_2eproto; }; @@ -2188,23 +2196,23 @@ class Command : }; // ------------------------------------------------------------------- -class ServerStatus : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.ServerStatus) */ { +class Index : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.Index) */ { public: - ServerStatus(); - virtual ~ServerStatus(); + Index(); + virtual ~Index(); - ServerStatus(const ServerStatus& from); - ServerStatus(ServerStatus&& from) noexcept - : ServerStatus() { + Index(const Index& from); + Index(Index&& from) noexcept + : Index() { *this = ::std::move(from); } - inline ServerStatus& operator=(const ServerStatus& from) { + inline Index& operator=(const Index& from) { CopyFrom(from); return *this; } - inline ServerStatus& operator=(ServerStatus&& from) noexcept { + inline Index& operator=(Index&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { @@ -2222,37 +2230,37 @@ class ServerStatus : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return GetMetadataStatic().reflection; } - static const ServerStatus& default_instance(); + static const Index& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ServerStatus* internal_default_instance() { - return reinterpret_cast( - &_ServerStatus_default_instance_); + static inline const Index* internal_default_instance() { + return reinterpret_cast( + &_Index_default_instance_); } static constexpr int kIndexInFileMessages = 14; - friend void swap(ServerStatus& a, ServerStatus& b) { + friend void swap(Index& a, Index& b) { a.Swap(&b); } - inline void Swap(ServerStatus* other) { + inline void Swap(Index* other) { if (other == this) return; InternalSwap(other); } // implements Message ---------------------------------------------- - inline ServerStatus* New() const final { - return CreateMaybeMessage(nullptr); + inline Index* New() const final { + return CreateMaybeMessage(nullptr); } - ServerStatus* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { - return CreateMaybeMessage(arena); + Index* 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 ServerStatus& from); - void MergeFrom(const ServerStatus& from); + void CopyFrom(const Index& from); + void MergeFrom(const Index& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -2273,10 +2281,10 @@ class ServerStatus : inline void SharedCtor(); inline void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(ServerStatus* other); + void InternalSwap(Index* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "milvus.grpc.ServerStatus"; + return "milvus.grpc.Index"; } private: inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { @@ -2301,35 +2309,324 @@ class ServerStatus : // accessors ------------------------------------------------------- enum : int { - kInfoFieldNumber = 2, - kStatusFieldNumber = 1, + kNlistFieldNumber = 2, + kIndexTypeFieldNumber = 1, + kIndexFileSizeFieldNumber = 3, }; - // string info = 2; - void clear_info(); - const std::string& info() const; - void set_info(const std::string& value); - void set_info(std::string&& value); - void set_info(const char* value); - void set_info(const char* value, size_t size); - std::string* mutable_info(); - std::string* release_info(); - void set_allocated_info(std::string* info); + // int64 nlist = 2; + void clear_nlist(); + ::PROTOBUF_NAMESPACE_ID::int64 nlist() const; + void set_nlist(::PROTOBUF_NAMESPACE_ID::int64 value); - // .milvus.grpc.Status status = 1; - bool has_status() const; - void clear_status(); - const ::milvus::grpc::Status& status() const; - ::milvus::grpc::Status* release_status(); - ::milvus::grpc::Status* mutable_status(); - void set_allocated_status(::milvus::grpc::Status* status); + // int32 index_type = 1; + void clear_index_type(); + ::PROTOBUF_NAMESPACE_ID::int32 index_type() const; + void set_index_type(::PROTOBUF_NAMESPACE_ID::int32 value); + + // int32 index_file_size = 3; + void clear_index_file_size(); + ::PROTOBUF_NAMESPACE_ID::int32 index_file_size() const; + void set_index_file_size(::PROTOBUF_NAMESPACE_ID::int32 value); - // @@protoc_insertion_point(class_scope:milvus.grpc.ServerStatus) + // @@protoc_insertion_point(class_scope:milvus.grpc.Index) private: class _Internal; ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr info_; - ::milvus::grpc::Status* status_; + ::PROTOBUF_NAMESPACE_ID::int64 nlist_; + ::PROTOBUF_NAMESPACE_ID::int32 index_type_; + ::PROTOBUF_NAMESPACE_ID::int32 index_file_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class IndexParam : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.IndexParam) */ { + public: + IndexParam(); + virtual ~IndexParam(); + + IndexParam(const IndexParam& from); + IndexParam(IndexParam&& from) noexcept + : IndexParam() { + *this = ::std::move(from); + } + + inline IndexParam& operator=(const IndexParam& from) { + CopyFrom(from); + return *this; + } + inline IndexParam& operator=(IndexParam&& 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 IndexParam& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const IndexParam* internal_default_instance() { + return reinterpret_cast( + &_IndexParam_default_instance_); + } + static constexpr int kIndexInFileMessages = + 15; + + friend void swap(IndexParam& a, IndexParam& b) { + a.Swap(&b); + } + inline void Swap(IndexParam* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline IndexParam* New() const final { + return CreateMaybeMessage(nullptr); + } + + IndexParam* 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 IndexParam& from); + void MergeFrom(const IndexParam& 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(IndexParam* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.IndexParam"; + } + 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 { + kTableNameFieldNumber = 1, + kIndexFieldNumber = 2, + }; + // .milvus.grpc.TableName table_name = 1; + bool has_table_name() const; + void clear_table_name(); + const ::milvus::grpc::TableName& table_name() const; + ::milvus::grpc::TableName* release_table_name(); + ::milvus::grpc::TableName* mutable_table_name(); + void set_allocated_table_name(::milvus::grpc::TableName* table_name); + + // .milvus.grpc.Index index = 2; + bool has_index() const; + void clear_index(); + const ::milvus::grpc::Index& index() const; + ::milvus::grpc::Index* release_index(); + ::milvus::grpc::Index* mutable_index(); + void set_allocated_index(::milvus::grpc::Index* index); + + // @@protoc_insertion_point(class_scope:milvus.grpc.IndexParam) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::milvus::grpc::TableName* table_name_; + ::milvus::grpc::Index* index_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_milvus_2eproto; +}; +// ------------------------------------------------------------------- + +class DeleteByRangeParam : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.DeleteByRangeParam) */ { + public: + DeleteByRangeParam(); + virtual ~DeleteByRangeParam(); + + DeleteByRangeParam(const DeleteByRangeParam& from); + DeleteByRangeParam(DeleteByRangeParam&& from) noexcept + : DeleteByRangeParam() { + *this = ::std::move(from); + } + + inline DeleteByRangeParam& operator=(const DeleteByRangeParam& from) { + CopyFrom(from); + return *this; + } + inline DeleteByRangeParam& operator=(DeleteByRangeParam&& 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 DeleteByRangeParam& default_instance(); + + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY + static inline const DeleteByRangeParam* internal_default_instance() { + return reinterpret_cast( + &_DeleteByRangeParam_default_instance_); + } + static constexpr int kIndexInFileMessages = + 16; + + friend void swap(DeleteByRangeParam& a, DeleteByRangeParam& b) { + a.Swap(&b); + } + inline void Swap(DeleteByRangeParam* other) { + if (other == this) return; + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + inline DeleteByRangeParam* New() const final { + return CreateMaybeMessage(nullptr); + } + + DeleteByRangeParam* 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 DeleteByRangeParam& from); + void MergeFrom(const DeleteByRangeParam& 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(DeleteByRangeParam* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.DeleteByRangeParam"; + } + 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 { + kTableNameFieldNumber = 2, + kRangeFieldNumber = 1, + }; + // string table_name = 2; + void clear_table_name(); + const std::string& table_name() const; + void set_table_name(const std::string& value); + void set_table_name(std::string&& value); + void set_table_name(const char* value); + void set_table_name(const char* value, size_t size); + std::string* mutable_table_name(); + std::string* release_table_name(); + void set_allocated_table_name(std::string* table_name); + + // .milvus.grpc.Range range = 1; + bool has_range() const; + void clear_range(); + const ::milvus::grpc::Range& range() const; + ::milvus::grpc::Range* release_range(); + ::milvus::grpc::Range* mutable_range(); + void set_allocated_range(::milvus::grpc::Range* range); + + // @@protoc_insertion_point(class_scope:milvus.grpc.DeleteByRangeParam) + private: + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_name_; + ::milvus::grpc::Range* range_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_milvus_2eproto; }; @@ -2679,86 +2976,86 @@ RowRecord::mutable_vector_data() { // ------------------------------------------------------------------- -// InsertInfos +// InsertParam // string table_name = 1; -inline void InsertInfos::clear_table_name() { +inline void InsertParam::clear_table_name() { table_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& InsertInfos::table_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertInfos.table_name) +inline const std::string& InsertParam::table_name() const { + // @@protoc_insertion_point(field_get:milvus.grpc.InsertParam.table_name) return table_name_.GetNoArena(); } -inline void InsertInfos::set_table_name(const std::string& value) { +inline void InsertParam::set_table_name(const std::string& value) { table_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.InsertInfos.table_name) + // @@protoc_insertion_point(field_set:milvus.grpc.InsertParam.table_name) } -inline void InsertInfos::set_table_name(std::string&& value) { +inline void InsertParam::set_table_name(std::string&& value) { table_name_.SetNoArena( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.InsertInfos.table_name) + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.InsertParam.table_name) } -inline void InsertInfos::set_table_name(const char* value) { +inline void InsertParam::set_table_name(const char* value) { GOOGLE_DCHECK(value != nullptr); table_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.InsertInfos.table_name) + // @@protoc_insertion_point(field_set_char:milvus.grpc.InsertParam.table_name) } -inline void InsertInfos::set_table_name(const char* value, size_t size) { +inline void InsertParam::set_table_name(const char* value, size_t size) { table_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.InsertInfos.table_name) + // @@protoc_insertion_point(field_set_pointer:milvus.grpc.InsertParam.table_name) } -inline std::string* InsertInfos::mutable_table_name() { +inline std::string* InsertParam::mutable_table_name() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.InsertInfos.table_name) + // @@protoc_insertion_point(field_mutable:milvus.grpc.InsertParam.table_name) return table_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline std::string* InsertInfos::release_table_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.InsertInfos.table_name) +inline std::string* InsertParam::release_table_name() { + // @@protoc_insertion_point(field_release:milvus.grpc.InsertParam.table_name) return table_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void InsertInfos::set_allocated_table_name(std::string* table_name) { +inline void InsertParam::set_allocated_table_name(std::string* table_name) { if (table_name != nullptr) { } else { } table_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), table_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.InsertInfos.table_name) + // @@protoc_insertion_point(field_set_allocated:milvus.grpc.InsertParam.table_name) } // repeated .milvus.grpc.RowRecord row_record_array = 2; -inline int InsertInfos::row_record_array_size() const { +inline int InsertParam::row_record_array_size() const { return row_record_array_.size(); } -inline void InsertInfos::clear_row_record_array() { +inline void InsertParam::clear_row_record_array() { row_record_array_.Clear(); } -inline ::milvus::grpc::RowRecord* InsertInfos::mutable_row_record_array(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.InsertInfos.row_record_array) +inline ::milvus::grpc::RowRecord* InsertParam::mutable_row_record_array(int index) { + // @@protoc_insertion_point(field_mutable:milvus.grpc.InsertParam.row_record_array) return row_record_array_.Mutable(index); } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::RowRecord >* -InsertInfos::mutable_row_record_array() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.InsertInfos.row_record_array) +InsertParam::mutable_row_record_array() { + // @@protoc_insertion_point(field_mutable_list:milvus.grpc.InsertParam.row_record_array) return &row_record_array_; } -inline const ::milvus::grpc::RowRecord& InsertInfos::row_record_array(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.InsertInfos.row_record_array) +inline const ::milvus::grpc::RowRecord& InsertParam::row_record_array(int index) const { + // @@protoc_insertion_point(field_get:milvus.grpc.InsertParam.row_record_array) return row_record_array_.Get(index); } -inline ::milvus::grpc::RowRecord* InsertInfos::add_row_record_array() { - // @@protoc_insertion_point(field_add:milvus.grpc.InsertInfos.row_record_array) +inline ::milvus::grpc::RowRecord* InsertParam::add_row_record_array() { + // @@protoc_insertion_point(field_add:milvus.grpc.InsertParam.row_record_array) return row_record_array_.Add(); } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::RowRecord >& -InsertInfos::row_record_array() const { - // @@protoc_insertion_point(field_list:milvus.grpc.InsertInfos.row_record_array) +InsertParam::row_record_array() const { + // @@protoc_insertion_point(field_list:milvus.grpc.InsertParam.row_record_array) return row_record_array_; } @@ -2843,251 +3140,251 @@ VectorIds::mutable_vector_id_array() { // ------------------------------------------------------------------- -// SearchVectorInfos +// SearchParam // string table_name = 1; -inline void SearchVectorInfos::clear_table_name() { +inline void SearchParam::clear_table_name() { table_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const std::string& SearchVectorInfos::table_name() const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchVectorInfos.table_name) +inline const std::string& SearchParam::table_name() const { + // @@protoc_insertion_point(field_get:milvus.grpc.SearchParam.table_name) return table_name_.GetNoArena(); } -inline void SearchVectorInfos::set_table_name(const std::string& value) { +inline void SearchParam::set_table_name(const std::string& value) { table_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.SearchVectorInfos.table_name) + // @@protoc_insertion_point(field_set:milvus.grpc.SearchParam.table_name) } -inline void SearchVectorInfos::set_table_name(std::string&& value) { +inline void SearchParam::set_table_name(std::string&& value) { table_name_.SetNoArena( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.SearchVectorInfos.table_name) + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.SearchParam.table_name) } -inline void SearchVectorInfos::set_table_name(const char* value) { +inline void SearchParam::set_table_name(const char* value) { GOOGLE_DCHECK(value != nullptr); table_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.SearchVectorInfos.table_name) + // @@protoc_insertion_point(field_set_char:milvus.grpc.SearchParam.table_name) } -inline void SearchVectorInfos::set_table_name(const char* value, size_t size) { +inline void SearchParam::set_table_name(const char* value, size_t size) { table_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.SearchVectorInfos.table_name) + // @@protoc_insertion_point(field_set_pointer:milvus.grpc.SearchParam.table_name) } -inline std::string* SearchVectorInfos::mutable_table_name() { +inline std::string* SearchParam::mutable_table_name() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchVectorInfos.table_name) + // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchParam.table_name) return table_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline std::string* SearchVectorInfos::release_table_name() { - // @@protoc_insertion_point(field_release:milvus.grpc.SearchVectorInfos.table_name) +inline std::string* SearchParam::release_table_name() { + // @@protoc_insertion_point(field_release:milvus.grpc.SearchParam.table_name) return table_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void SearchVectorInfos::set_allocated_table_name(std::string* table_name) { +inline void SearchParam::set_allocated_table_name(std::string* table_name) { if (table_name != nullptr) { } else { } table_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), table_name); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.SearchVectorInfos.table_name) + // @@protoc_insertion_point(field_set_allocated:milvus.grpc.SearchParam.table_name) } // repeated .milvus.grpc.RowRecord query_record_array = 2; -inline int SearchVectorInfos::query_record_array_size() const { +inline int SearchParam::query_record_array_size() const { return query_record_array_.size(); } -inline void SearchVectorInfos::clear_query_record_array() { +inline void SearchParam::clear_query_record_array() { query_record_array_.Clear(); } -inline ::milvus::grpc::RowRecord* SearchVectorInfos::mutable_query_record_array(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchVectorInfos.query_record_array) +inline ::milvus::grpc::RowRecord* SearchParam::mutable_query_record_array(int index) { + // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchParam.query_record_array) return query_record_array_.Mutable(index); } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::RowRecord >* -SearchVectorInfos::mutable_query_record_array() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchVectorInfos.query_record_array) +SearchParam::mutable_query_record_array() { + // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchParam.query_record_array) return &query_record_array_; } -inline const ::milvus::grpc::RowRecord& SearchVectorInfos::query_record_array(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchVectorInfos.query_record_array) +inline const ::milvus::grpc::RowRecord& SearchParam::query_record_array(int index) const { + // @@protoc_insertion_point(field_get:milvus.grpc.SearchParam.query_record_array) return query_record_array_.Get(index); } -inline ::milvus::grpc::RowRecord* SearchVectorInfos::add_query_record_array() { - // @@protoc_insertion_point(field_add:milvus.grpc.SearchVectorInfos.query_record_array) +inline ::milvus::grpc::RowRecord* SearchParam::add_query_record_array() { + // @@protoc_insertion_point(field_add:milvus.grpc.SearchParam.query_record_array) return query_record_array_.Add(); } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::RowRecord >& -SearchVectorInfos::query_record_array() const { - // @@protoc_insertion_point(field_list:milvus.grpc.SearchVectorInfos.query_record_array) +SearchParam::query_record_array() const { + // @@protoc_insertion_point(field_list:milvus.grpc.SearchParam.query_record_array) return query_record_array_; } // repeated .milvus.grpc.Range query_range_array = 3; -inline int SearchVectorInfos::query_range_array_size() const { +inline int SearchParam::query_range_array_size() const { return query_range_array_.size(); } -inline void SearchVectorInfos::clear_query_range_array() { +inline void SearchParam::clear_query_range_array() { query_range_array_.Clear(); } -inline ::milvus::grpc::Range* SearchVectorInfos::mutable_query_range_array(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchVectorInfos.query_range_array) +inline ::milvus::grpc::Range* SearchParam::mutable_query_range_array(int index) { + // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchParam.query_range_array) return query_range_array_.Mutable(index); } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::Range >* -SearchVectorInfos::mutable_query_range_array() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchVectorInfos.query_range_array) +SearchParam::mutable_query_range_array() { + // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchParam.query_range_array) return &query_range_array_; } -inline const ::milvus::grpc::Range& SearchVectorInfos::query_range_array(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchVectorInfos.query_range_array) +inline const ::milvus::grpc::Range& SearchParam::query_range_array(int index) const { + // @@protoc_insertion_point(field_get:milvus.grpc.SearchParam.query_range_array) return query_range_array_.Get(index); } -inline ::milvus::grpc::Range* SearchVectorInfos::add_query_range_array() { - // @@protoc_insertion_point(field_add:milvus.grpc.SearchVectorInfos.query_range_array) +inline ::milvus::grpc::Range* SearchParam::add_query_range_array() { + // @@protoc_insertion_point(field_add:milvus.grpc.SearchParam.query_range_array) return query_range_array_.Add(); } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::Range >& -SearchVectorInfos::query_range_array() const { - // @@protoc_insertion_point(field_list:milvus.grpc.SearchVectorInfos.query_range_array) +SearchParam::query_range_array() const { + // @@protoc_insertion_point(field_list:milvus.grpc.SearchParam.query_range_array) return query_range_array_; } // int64 topk = 4; -inline void SearchVectorInfos::clear_topk() { +inline void SearchParam::clear_topk() { topk_ = PROTOBUF_LONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::int64 SearchVectorInfos::topk() const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchVectorInfos.topk) +inline ::PROTOBUF_NAMESPACE_ID::int64 SearchParam::topk() const { + // @@protoc_insertion_point(field_get:milvus.grpc.SearchParam.topk) return topk_; } -inline void SearchVectorInfos::set_topk(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline void SearchParam::set_topk(::PROTOBUF_NAMESPACE_ID::int64 value) { topk_ = value; - // @@protoc_insertion_point(field_set:milvus.grpc.SearchVectorInfos.topk) + // @@protoc_insertion_point(field_set:milvus.grpc.SearchParam.topk) } // ------------------------------------------------------------------- -// SearchVectorInFilesInfos +// SearchInFilesParam // repeated string file_id_array = 1; -inline int SearchVectorInFilesInfos::file_id_array_size() const { +inline int SearchInFilesParam::file_id_array_size() const { return file_id_array_.size(); } -inline void SearchVectorInFilesInfos::clear_file_id_array() { +inline void SearchInFilesParam::clear_file_id_array() { file_id_array_.Clear(); } -inline const std::string& SearchVectorInFilesInfos::file_id_array(int index) const { - // @@protoc_insertion_point(field_get:milvus.grpc.SearchVectorInFilesInfos.file_id_array) +inline const std::string& SearchInFilesParam::file_id_array(int index) const { + // @@protoc_insertion_point(field_get:milvus.grpc.SearchInFilesParam.file_id_array) return file_id_array_.Get(index); } -inline std::string* SearchVectorInFilesInfos::mutable_file_id_array(int index) { - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchVectorInFilesInfos.file_id_array) +inline std::string* SearchInFilesParam::mutable_file_id_array(int index) { + // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchInFilesParam.file_id_array) return file_id_array_.Mutable(index); } -inline void SearchVectorInFilesInfos::set_file_id_array(int index, const std::string& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.SearchVectorInFilesInfos.file_id_array) +inline void SearchInFilesParam::set_file_id_array(int index, const std::string& value) { + // @@protoc_insertion_point(field_set:milvus.grpc.SearchInFilesParam.file_id_array) file_id_array_.Mutable(index)->assign(value); } -inline void SearchVectorInFilesInfos::set_file_id_array(int index, std::string&& value) { - // @@protoc_insertion_point(field_set:milvus.grpc.SearchVectorInFilesInfos.file_id_array) +inline void SearchInFilesParam::set_file_id_array(int index, std::string&& value) { + // @@protoc_insertion_point(field_set:milvus.grpc.SearchInFilesParam.file_id_array) file_id_array_.Mutable(index)->assign(std::move(value)); } -inline void SearchVectorInFilesInfos::set_file_id_array(int index, const char* value) { +inline void SearchInFilesParam::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.SearchVectorInFilesInfos.file_id_array) + // @@protoc_insertion_point(field_set_char:milvus.grpc.SearchInFilesParam.file_id_array) } -inline void SearchVectorInFilesInfos::set_file_id_array(int index, const char* value, size_t size) { +inline void SearchInFilesParam::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.SearchVectorInFilesInfos.file_id_array) + // @@protoc_insertion_point(field_set_pointer:milvus.grpc.SearchInFilesParam.file_id_array) } -inline std::string* SearchVectorInFilesInfos::add_file_id_array() { - // @@protoc_insertion_point(field_add_mutable:milvus.grpc.SearchVectorInFilesInfos.file_id_array) +inline std::string* SearchInFilesParam::add_file_id_array() { + // @@protoc_insertion_point(field_add_mutable:milvus.grpc.SearchInFilesParam.file_id_array) return file_id_array_.Add(); } -inline void SearchVectorInFilesInfos::add_file_id_array(const std::string& value) { +inline void SearchInFilesParam::add_file_id_array(const std::string& value) { file_id_array_.Add()->assign(value); - // @@protoc_insertion_point(field_add:milvus.grpc.SearchVectorInFilesInfos.file_id_array) + // @@protoc_insertion_point(field_add:milvus.grpc.SearchInFilesParam.file_id_array) } -inline void SearchVectorInFilesInfos::add_file_id_array(std::string&& value) { +inline void SearchInFilesParam::add_file_id_array(std::string&& value) { file_id_array_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:milvus.grpc.SearchVectorInFilesInfos.file_id_array) + // @@protoc_insertion_point(field_add:milvus.grpc.SearchInFilesParam.file_id_array) } -inline void SearchVectorInFilesInfos::add_file_id_array(const char* value) { +inline void SearchInFilesParam::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.SearchVectorInFilesInfos.file_id_array) + // @@protoc_insertion_point(field_add_char:milvus.grpc.SearchInFilesParam.file_id_array) } -inline void SearchVectorInFilesInfos::add_file_id_array(const char* value, size_t size) { +inline void SearchInFilesParam::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.SearchVectorInFilesInfos.file_id_array) + // @@protoc_insertion_point(field_add_pointer:milvus.grpc.SearchInFilesParam.file_id_array) } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& -SearchVectorInFilesInfos::file_id_array() const { - // @@protoc_insertion_point(field_list:milvus.grpc.SearchVectorInFilesInfos.file_id_array) +SearchInFilesParam::file_id_array() const { + // @@protoc_insertion_point(field_list:milvus.grpc.SearchInFilesParam.file_id_array) return file_id_array_; } inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* -SearchVectorInFilesInfos::mutable_file_id_array() { - // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchVectorInFilesInfos.file_id_array) +SearchInFilesParam::mutable_file_id_array() { + // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchInFilesParam.file_id_array) return &file_id_array_; } -// .milvus.grpc.SearchVectorInfos search_vector_infos = 2; -inline bool SearchVectorInFilesInfos::has_search_vector_infos() const { - return this != internal_default_instance() && search_vector_infos_ != nullptr; +// .milvus.grpc.SearchParam search_param = 2; +inline bool SearchInFilesParam::has_search_param() const { + return this != internal_default_instance() && search_param_ != nullptr; } -inline void SearchVectorInFilesInfos::clear_search_vector_infos() { - if (GetArenaNoVirtual() == nullptr && search_vector_infos_ != nullptr) { - delete search_vector_infos_; +inline void SearchInFilesParam::clear_search_param() { + if (GetArenaNoVirtual() == nullptr && search_param_ != nullptr) { + delete search_param_; } - search_vector_infos_ = nullptr; + search_param_ = nullptr; } -inline const ::milvus::grpc::SearchVectorInfos& SearchVectorInFilesInfos::search_vector_infos() const { - const ::milvus::grpc::SearchVectorInfos* p = search_vector_infos_; - // @@protoc_insertion_point(field_get:milvus.grpc.SearchVectorInFilesInfos.search_vector_infos) - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::grpc::_SearchVectorInfos_default_instance_); +inline const ::milvus::grpc::SearchParam& SearchInFilesParam::search_param() const { + const ::milvus::grpc::SearchParam* p = search_param_; + // @@protoc_insertion_point(field_get:milvus.grpc.SearchInFilesParam.search_param) + return p != nullptr ? *p : *reinterpret_cast( + &::milvus::grpc::_SearchParam_default_instance_); } -inline ::milvus::grpc::SearchVectorInfos* SearchVectorInFilesInfos::release_search_vector_infos() { - // @@protoc_insertion_point(field_release:milvus.grpc.SearchVectorInFilesInfos.search_vector_infos) +inline ::milvus::grpc::SearchParam* SearchInFilesParam::release_search_param() { + // @@protoc_insertion_point(field_release:milvus.grpc.SearchInFilesParam.search_param) - ::milvus::grpc::SearchVectorInfos* temp = search_vector_infos_; - search_vector_infos_ = nullptr; + ::milvus::grpc::SearchParam* temp = search_param_; + search_param_ = nullptr; return temp; } -inline ::milvus::grpc::SearchVectorInfos* SearchVectorInFilesInfos::mutable_search_vector_infos() { +inline ::milvus::grpc::SearchParam* SearchInFilesParam::mutable_search_param() { - if (search_vector_infos_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::grpc::SearchVectorInfos>(GetArenaNoVirtual()); - search_vector_infos_ = p; + if (search_param_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::grpc::SearchParam>(GetArenaNoVirtual()); + search_param_ = p; } - // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchVectorInFilesInfos.search_vector_infos) - return search_vector_infos_; + // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchInFilesParam.search_param) + return search_param_; } -inline void SearchVectorInFilesInfos::set_allocated_search_vector_infos(::milvus::grpc::SearchVectorInfos* search_vector_infos) { +inline void SearchInFilesParam::set_allocated_search_param(::milvus::grpc::SearchParam* search_param) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete search_vector_infos_; + delete search_param_; } - if (search_vector_infos) { + if (search_param) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - search_vector_infos = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, search_vector_infos, submessage_arena); + search_param = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, search_param, submessage_arena); } } else { } - search_vector_infos_ = search_vector_infos; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.SearchVectorInFilesInfos.search_vector_infos) + search_param_ = search_param; + // @@protoc_insertion_point(field_set_allocated:milvus.grpc.SearchInFilesParam.search_param) } // ------------------------------------------------------------------- @@ -3484,102 +3781,260 @@ inline void Command::set_allocated_cmd(std::string* cmd) { // ------------------------------------------------------------------- -// ServerStatus +// Index -// .milvus.grpc.Status status = 1; -inline bool ServerStatus::has_status() const { - return this != internal_default_instance() && status_ != nullptr; +// int32 index_type = 1; +inline void Index::clear_index_type() { + index_type_ = 0; } -inline const ::milvus::grpc::Status& ServerStatus::status() const { - const ::milvus::grpc::Status* p = status_; - // @@protoc_insertion_point(field_get:milvus.grpc.ServerStatus.status) - return p != nullptr ? *p : *reinterpret_cast( - &::milvus::grpc::_Status_default_instance_); +inline ::PROTOBUF_NAMESPACE_ID::int32 Index::index_type() const { + // @@protoc_insertion_point(field_get:milvus.grpc.Index.index_type) + return index_type_; } -inline ::milvus::grpc::Status* ServerStatus::release_status() { - // @@protoc_insertion_point(field_release:milvus.grpc.ServerStatus.status) +inline void Index::set_index_type(::PROTOBUF_NAMESPACE_ID::int32 value) { - ::milvus::grpc::Status* temp = status_; - status_ = nullptr; + index_type_ = value; + // @@protoc_insertion_point(field_set:milvus.grpc.Index.index_type) +} + +// int64 nlist = 2; +inline void Index::clear_nlist() { + nlist_ = PROTOBUF_LONGLONG(0); +} +inline ::PROTOBUF_NAMESPACE_ID::int64 Index::nlist() const { + // @@protoc_insertion_point(field_get:milvus.grpc.Index.nlist) + return nlist_; +} +inline void Index::set_nlist(::PROTOBUF_NAMESPACE_ID::int64 value) { + + nlist_ = value; + // @@protoc_insertion_point(field_set:milvus.grpc.Index.nlist) +} + +// int32 index_file_size = 3; +inline void Index::clear_index_file_size() { + index_file_size_ = 0; +} +inline ::PROTOBUF_NAMESPACE_ID::int32 Index::index_file_size() const { + // @@protoc_insertion_point(field_get:milvus.grpc.Index.index_file_size) + return index_file_size_; +} +inline void Index::set_index_file_size(::PROTOBUF_NAMESPACE_ID::int32 value) { + + index_file_size_ = value; + // @@protoc_insertion_point(field_set:milvus.grpc.Index.index_file_size) +} + +// ------------------------------------------------------------------- + +// IndexParam + +// .milvus.grpc.TableName table_name = 1; +inline bool IndexParam::has_table_name() const { + return this != internal_default_instance() && table_name_ != nullptr; +} +inline void IndexParam::clear_table_name() { + if (GetArenaNoVirtual() == nullptr && table_name_ != nullptr) { + delete table_name_; + } + table_name_ = nullptr; +} +inline const ::milvus::grpc::TableName& IndexParam::table_name() const { + const ::milvus::grpc::TableName* p = table_name_; + // @@protoc_insertion_point(field_get:milvus.grpc.IndexParam.table_name) + return p != nullptr ? *p : *reinterpret_cast( + &::milvus::grpc::_TableName_default_instance_); +} +inline ::milvus::grpc::TableName* IndexParam::release_table_name() { + // @@protoc_insertion_point(field_release:milvus.grpc.IndexParam.table_name) + + ::milvus::grpc::TableName* temp = table_name_; + table_name_ = nullptr; return temp; } -inline ::milvus::grpc::Status* ServerStatus::mutable_status() { +inline ::milvus::grpc::TableName* IndexParam::mutable_table_name() { - if (status_ == nullptr) { - auto* p = CreateMaybeMessage<::milvus::grpc::Status>(GetArenaNoVirtual()); - status_ = p; + if (table_name_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::grpc::TableName>(GetArenaNoVirtual()); + table_name_ = p; } - // @@protoc_insertion_point(field_mutable:milvus.grpc.ServerStatus.status) - return status_; + // @@protoc_insertion_point(field_mutable:milvus.grpc.IndexParam.table_name) + return table_name_; } -inline void ServerStatus::set_allocated_status(::milvus::grpc::Status* status) { +inline void IndexParam::set_allocated_table_name(::milvus::grpc::TableName* table_name) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + delete table_name_; } - if (status) { + if (table_name) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, status, submessage_arena); + table_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, table_name, submessage_arena); } } else { } - status_ = status; - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.ServerStatus.status) + table_name_ = table_name; + // @@protoc_insertion_point(field_set_allocated:milvus.grpc.IndexParam.table_name) } -// string info = 2; -inline void ServerStatus::clear_info() { - info_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +// .milvus.grpc.Index index = 2; +inline bool IndexParam::has_index() const { + return this != internal_default_instance() && index_ != nullptr; +} +inline void IndexParam::clear_index() { + if (GetArenaNoVirtual() == nullptr && index_ != nullptr) { + delete index_; + } + index_ = nullptr; } -inline const std::string& ServerStatus::info() const { - // @@protoc_insertion_point(field_get:milvus.grpc.ServerStatus.info) - return info_.GetNoArena(); +inline const ::milvus::grpc::Index& IndexParam::index() const { + const ::milvus::grpc::Index* p = index_; + // @@protoc_insertion_point(field_get:milvus.grpc.IndexParam.index) + return p != nullptr ? *p : *reinterpret_cast( + &::milvus::grpc::_Index_default_instance_); } -inline void ServerStatus::set_info(const std::string& value) { +inline ::milvus::grpc::Index* IndexParam::release_index() { + // @@protoc_insertion_point(field_release:milvus.grpc.IndexParam.index) - info_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:milvus.grpc.ServerStatus.info) + ::milvus::grpc::Index* temp = index_; + index_ = nullptr; + return temp; } -inline void ServerStatus::set_info(std::string&& value) { +inline ::milvus::grpc::Index* IndexParam::mutable_index() { - info_.SetNoArena( + if (index_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::grpc::Index>(GetArenaNoVirtual()); + index_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.grpc.IndexParam.index) + return index_; +} +inline void IndexParam::set_allocated_index(::milvus::grpc::Index* index) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete index_; + } + if (index) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + index = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, index, submessage_arena); + } + + } else { + + } + index_ = index; + // @@protoc_insertion_point(field_set_allocated:milvus.grpc.IndexParam.index) +} + +// ------------------------------------------------------------------- + +// DeleteByRangeParam + +// .milvus.grpc.Range range = 1; +inline bool DeleteByRangeParam::has_range() const { + return this != internal_default_instance() && range_ != nullptr; +} +inline void DeleteByRangeParam::clear_range() { + if (GetArenaNoVirtual() == nullptr && range_ != nullptr) { + delete range_; + } + range_ = nullptr; +} +inline const ::milvus::grpc::Range& DeleteByRangeParam::range() const { + const ::milvus::grpc::Range* p = range_; + // @@protoc_insertion_point(field_get:milvus.grpc.DeleteByRangeParam.range) + return p != nullptr ? *p : *reinterpret_cast( + &::milvus::grpc::_Range_default_instance_); +} +inline ::milvus::grpc::Range* DeleteByRangeParam::release_range() { + // @@protoc_insertion_point(field_release:milvus.grpc.DeleteByRangeParam.range) + + ::milvus::grpc::Range* temp = range_; + range_ = nullptr; + return temp; +} +inline ::milvus::grpc::Range* DeleteByRangeParam::mutable_range() { + + if (range_ == nullptr) { + auto* p = CreateMaybeMessage<::milvus::grpc::Range>(GetArenaNoVirtual()); + range_ = p; + } + // @@protoc_insertion_point(field_mutable:milvus.grpc.DeleteByRangeParam.range) + return range_; +} +inline void DeleteByRangeParam::set_allocated_range(::milvus::grpc::Range* range) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + if (message_arena == nullptr) { + delete range_; + } + if (range) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + if (message_arena != submessage_arena) { + range = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, range, submessage_arena); + } + + } else { + + } + range_ = range; + // @@protoc_insertion_point(field_set_allocated:milvus.grpc.DeleteByRangeParam.range) +} + +// string table_name = 2; +inline void DeleteByRangeParam::clear_table_name() { + table_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} +inline const std::string& DeleteByRangeParam::table_name() const { + // @@protoc_insertion_point(field_get:milvus.grpc.DeleteByRangeParam.table_name) + return table_name_.GetNoArena(); +} +inline void DeleteByRangeParam::set_table_name(const std::string& value) { + + table_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + // @@protoc_insertion_point(field_set:milvus.grpc.DeleteByRangeParam.table_name) +} +inline void DeleteByRangeParam::set_table_name(std::string&& value) { + + table_name_.SetNoArena( &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.ServerStatus.info) + // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.DeleteByRangeParam.table_name) } -inline void ServerStatus::set_info(const char* value) { +inline void DeleteByRangeParam::set_table_name(const char* value) { GOOGLE_DCHECK(value != nullptr); - info_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:milvus.grpc.ServerStatus.info) + table_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + // @@protoc_insertion_point(field_set_char:milvus.grpc.DeleteByRangeParam.table_name) } -inline void ServerStatus::set_info(const char* value, size_t size) { +inline void DeleteByRangeParam::set_table_name(const char* value, size_t size) { - info_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + table_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:milvus.grpc.ServerStatus.info) + // @@protoc_insertion_point(field_set_pointer:milvus.grpc.DeleteByRangeParam.table_name) } -inline std::string* ServerStatus::mutable_info() { +inline std::string* DeleteByRangeParam::mutable_table_name() { - // @@protoc_insertion_point(field_mutable:milvus.grpc.ServerStatus.info) - return info_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + // @@protoc_insertion_point(field_mutable:milvus.grpc.DeleteByRangeParam.table_name) + return table_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline std::string* ServerStatus::release_info() { - // @@protoc_insertion_point(field_release:milvus.grpc.ServerStatus.info) +inline std::string* DeleteByRangeParam::release_table_name() { + // @@protoc_insertion_point(field_release:milvus.grpc.DeleteByRangeParam.table_name) - return info_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return table_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void ServerStatus::set_allocated_info(std::string* info) { - if (info != nullptr) { +inline void DeleteByRangeParam::set_allocated_table_name(std::string* table_name) { + if (table_name != nullptr) { } else { } - info_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), info); - // @@protoc_insertion_point(field_set_allocated:milvus.grpc.ServerStatus.info) + table_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), table_name); + // @@protoc_insertion_point(field_set_allocated:milvus.grpc.DeleteByRangeParam.table_name) } #ifdef __GNUC__ @@ -3613,6 +4068,10 @@ inline void ServerStatus::set_allocated_info(std::string* info) { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/cpp/src/grpc/milvus.proto b/cpp/src/grpc/milvus.proto index 683b231d1d3d71becd6724bf085042366a23806e..04317d45f9bac42e53b5c62916f2e6a90b6b651c 100644 --- a/cpp/src/grpc/milvus.proto +++ b/cpp/src/grpc/milvus.proto @@ -38,9 +38,9 @@ message RowRecord { } /** - * @brief Infos to be inserted + * @brief params to be inserted */ -message InsertInfos { +message InsertParam { string table_name = 1; repeated RowRecord row_record_array = 2; } @@ -54,9 +54,9 @@ message VectorIds { } /** - * @brief Infos for searching vector + * @brief params for searching vector */ -message SearchVectorInfos { +message SearchParam { string table_name = 1; repeated RowRecord query_record_array = 2; repeated Range query_range_array = 3; @@ -64,15 +64,15 @@ message SearchVectorInfos { } /** - * @brief Infos for searching vector in files + * @brief params for searching vector in files */ -message SearchVectorInFilesInfos { +message SearchInFilesParam { repeated string file_id_array = 1; - SearchVectorInfos search_vector_infos = 2; + SearchParam search_param = 2; } /** - * @brief Query result infos + * @brief Query result params */ message QueryResult { int64 id = 1; @@ -119,11 +119,28 @@ message Command { } /** - * @brief Give Server Command + * @brief Index */ -message ServerStatus{ - Status status = 1; - string info = 2; +message Index { + int32 index_type = 1; + int64 nlist = 2; + int32 index_file_size = 3; +} + +/** + * @brief Index params + */ +message IndexParam { + TableName table_name = 1; + Index index = 2; +} + +/** + * @brief table name and range for DeleteByRange + */ +message DeleteByRangeParam { + Range range = 1; + string table_name = 2; } service MilvusService { @@ -165,7 +182,7 @@ service MilvusService { * @param table_name, table is going to be built index. * */ - rpc BuildIndex(TableName) returns (Status) {} + rpc CreateIndex(IndexParam) returns (Status) {} /** * @brief Add vector array to table @@ -177,7 +194,7 @@ service MilvusService { * * @return vector id array */ - rpc InsertVector(InsertInfos) returns (VectorIds) {} + rpc Insert(InsertParam) returns (VectorIds) {} /** * @brief Query vector @@ -191,7 +208,7 @@ service MilvusService { * * @return query result array. */ - rpc SearchVector(SearchVectorInfos) returns (stream TopKQueryResult) {} + rpc Search(SearchParam) returns (stream TopKQueryResult) {} /** * @brief Internal use query interface @@ -205,7 +222,7 @@ service MilvusService { * * @return query result array. */ - rpc SearchVectorInFiles(SearchVectorInFilesInfos) returns (stream TopKQueryResult) {} + rpc SearchInFiles(SearchInFilesParam) returns (stream TopKQueryResult) {} /** * @brief Get table schema @@ -227,7 +244,7 @@ service MilvusService { * * @return table schema */ - rpc GetTableRowCount(TableName) returns (TableRowCount) {} + rpc CountTable(TableName) returns (TableRowCount) {} /** * @brief List all tables in database @@ -246,5 +263,42 @@ service MilvusService { * * @return Server status. */ - rpc Ping(Command) returns (ServerStatus) {} + rpc Cmd(Command) returns (StringReply) {} + + /** + * @brief delete table by range + * + * This method is used to delete vector by range + * + * @return rpc status. + */ + rpc DeleteByRange(DeleteByRangeParam) returns (Status) {} + + /** + * @brief preload table + * + * This method is used to preload table + * + * @return Status. + */ + rpc PreloadTable(TableName) returns (Status) {} + + /** + * @brief describe index + * + * This method is used to describe index + * + * @return Status. + */ + rpc DescribeIndex(TableName) returns (IndexParam) {} + + /** + * @brief drop index + * + * This method is used to drop index + * + * @return Status. + */ + rpc DropIndex(TableName) returns (Status) {} + } diff --git a/cpp/src/scheduler/ResourceMgr.cpp b/cpp/src/scheduler/ResourceMgr.cpp new file mode 100644 index 0000000000000000000000000000000000000000..b24e08a4136a3239e422e6a58162bbd0d02c5be1 --- /dev/null +++ b/cpp/src/scheduler/ResourceMgr.cpp @@ -0,0 +1,129 @@ + +/******************************************************************************* + * Copyright 上海赜睿信息科技有限公司(Zilliz) - All Rights Reserved + * Unauthorized copying of this file, via any medium is strictly prohibited. + * Proprietary and confidential. + ******************************************************************************/ +#include "ResourceMgr.h" +#include "db/Log.h" + +namespace zilliz { +namespace milvus { +namespace engine { + +ResourceMgr::ResourceMgr() + : running_(false) { + +} + +ResourceWPtr +ResourceMgr::Add(ResourcePtr &&resource) { + ResourceWPtr ret(resource); + + std::lock_guard lck(resources_mutex_); + if(running_) { + ENGINE_LOG_ERROR << "ResourceMgr is running, not allow to add resource"; + return ret; + } + + resources_.emplace_back(resource); + + size_t index = resources_.size() - 1; + resource->RegisterOnStartUp([&] { + start_up_event_[index] = true; + event_cv_.notify_one(); + }); + resource->RegisterOnFinishTask([&] { + finish_task_event_[index] = true; + event_cv_.notify_one(); + }); + resource->RegisterOnCopyCompleted([&] { + copy_completed_event_[index] = true; + event_cv_.notify_one(); + }); + resource->RegisterOnTaskTableUpdated([&] { + task_table_updated_event_[index] = true; + event_cv_.notify_one(); + }); + return ret; +} + +void +ResourceMgr::Connect(ResourceWPtr &res1, ResourceWPtr &res2, Connection &connection) { + if (auto observe_a = res1.lock()) { + if (auto observe_b = res2.lock()) { + observe_a->AddNeighbour(std::static_pointer_cast(observe_b), connection); + } + } +} + +void +ResourceMgr::EventProcess() { + while (running_) { + std::unique_lock lock(resources_mutex_); + event_cv_.wait(lock, [this] { return !resources_.empty(); }); + + if(!running_) { + break; + } + + for (uint64_t i = 0; i < resources_.size(); ++i) { + ResourceWPtr res(resources_[i]); + if (start_up_event_[i]) { + on_start_up_(res); + start_up_event_[i] = false; + } + if (finish_task_event_[i]) { + on_finish_task_(res); + finish_task_event_[i] = false; + } + if (copy_completed_event_[i]) { + on_copy_completed_(res); + copy_completed_event_[i] = false; + } + if (task_table_updated_event_[i]) { + on_task_table_updated_(res); + task_table_updated_event_[i] = false; + } + } + } +} + +void +ResourceMgr::Start() { + std::lock_guard lck(resources_mutex_); + for (auto &resource : resources_) { + resource->Start(); + } + worker_thread_ = std::thread(&ResourceMgr::EventProcess, this); + + running_ = true; +} + +void +ResourceMgr::Stop() { + std::lock_guard lck(resources_mutex_); + + running_ = false; + worker_thread_.join(); + + for (auto &resource : resources_) { + resource->Stop(); + } +} + +std::string +ResourceMgr::Dump() { + std::string str = "ResourceMgr contains " + std::to_string(resources_.size()) + " resources.\n"; + + for (uint64_t i = 0; i < resources_.size(); ++i) { + str += "Resource No." + std::to_string(i) + ":\n"; + //str += resources_[i]->Dump(); + } + + return str; +} + +} +} +} diff --git a/cpp/src/scheduler/ResourceMgr.h b/cpp/src/scheduler/ResourceMgr.h index e1cc9110bf6f8c89b8c1ac41e9f6439e43d437b9..e7a765069553c7865ac385d4114562e2483aacb2 100644 --- a/cpp/src/scheduler/ResourceMgr.h +++ b/cpp/src/scheduler/ResourceMgr.h @@ -9,7 +9,10 @@ #include #include #include +#include +#include +#include "resource/Resource.h" namespace zilliz { namespace milvus { @@ -17,7 +20,7 @@ namespace engine { class ResourceMgr { public: - ResourceMgr() : running_(false) {} + ResourceMgr(); /******** Management Interface ********/ @@ -27,42 +30,24 @@ public: * Functions only modify bool variable, like event trigger; */ ResourceWPtr - Add(ResourcePtr &&resource) { - ResourceWPtr ret(resource); - resources_.emplace_back(resource); - -// resource->RegisterOnStartUp([] { -// start_up_event_[index] = true; -// }); -// resource.RegisterOnFinishTask([] { -// finish_task_event_[index] = true; -// }); - return ret; - } + Add(ResourcePtr &&resource); /* * Create connection between A and B; */ void - Connect(ResourceWPtr &A, ResourceWPtr &B, Connection &connection) { - if (auto observe_a = A.lock()) { - if (auto observe_b = B.lock()) { - observe_a->AddNeighbour(std::static_pointer_cast(observe_b), connection); - } - } - } + Connect(ResourceWPtr &res1, ResourceWPtr &res2, Connection &connection); /* * Synchronous start all resource; * Last, start event process thread; */ void - StartAll() { - for (auto &resource : resources_) { - resource->Start(); - } - worker_thread_ = std::thread(&ResourceMgr::EventProcess, this); - } + Start(); + + void + Stop(); + // TODO: add stats interface(low) @@ -89,13 +74,17 @@ public: * Register on copy task data completed event; */ void - RegisterOnCopyCompleted(std::function &func); + RegisterOnCopyCompleted(std::function &func) { + on_copy_completed_ = func; + } /* * Register on task table updated event; */ void - RegisterOnTaskTableUpdated(std::function &func); + RegisterOnTaskTableUpdated(std::function &func) { + on_task_table_updated_ = func; + } public: /******** Utlitity Functions ********/ @@ -105,23 +94,16 @@ public: private: void - EventProcess() { - while (running_) { - for (uint64_t i = 0; i < resources_.size(); ++i) { - if (start_up_event_[i]) { - on_start_up_(resources_[i]); - } - } - } - - } + EventProcess(); private: bool running_; std::vector resources_; + mutable std::mutex resources_mutex_; std::thread worker_thread_; + std::condition_variable event_cv_; std::vector start_up_event_; std::vector finish_task_event_; std::vector copy_completed_event_; diff --git a/cpp/src/scheduler/resource/Resource.h b/cpp/src/scheduler/resource/Resource.h index 5b7bb13a80950301e6aab70f74eb7a5ba4ce5e29..4fe2a006ac25e4bd61da5a3e5bd7eaa1deec74bf 100644 --- a/cpp/src/scheduler/resource/Resource.h +++ b/cpp/src/scheduler/resource/Resource.h @@ -75,25 +75,33 @@ public: * Register on start up event; */ void - RegisterOnStartUp(std::function func); + RegisterOnStartUp(std::function func) { + on_start_up_ = func; + } /* * Register on finish one task event; */ void - RegisterOnFinishTask(std::function func); + RegisterOnFinishTask(std::function func) { + on_finish_task_ = func; + } /* * Register on copy task data completed event; */ void - RegisterOnCopyCompleted(std::function func); + RegisterOnCopyCompleted(std::function func) { + on_copy_completed_ = func; + } /* * Register on task table updated event; */ void - RegisterOnTaskTableUpdated(std::function func); + RegisterOnTaskTableUpdated(std::function func) { + on_task_table_updated_ = func; + } protected: Resource(std::string name, ResourceType type) diff --git a/cpp/src/sdk/CMakeLists.txt b/cpp/src/sdk/CMakeLists.txt index 5d00b9997f41a8e841ed735e7873a0defe08af86..21fec895c1acd8b5f5dc37bf107a1a64cb8fa6f1 100644 --- a/cpp/src/sdk/CMakeLists.txt +++ b/cpp/src/sdk/CMakeLists.txt @@ -12,7 +12,7 @@ include_directories(/usr/include) include_directories(include) include_directories(/usr/local/include) -#if (MILVUS_WITH_THRIFT STREQUAL "ON") +if (MILVUS_WITH_THRIFT STREQUAL "ON") aux_source_directory(thrift thrift_client_files) include_directories(thrift) include_directories(${CMAKE_SOURCE_DIR}/src/thrift/gen-cpp) @@ -34,7 +34,7 @@ include_directories(/usr/local/include) ${third_party_libs} ) install(TARGETS milvus_thrift_sdk DESTINATION lib) -#else() +else() aux_source_directory(grpc grpc_client_files) include_directories(${CMAKE_SOURCE_DIR}/src/grpc/gen-milvus) @@ -58,6 +58,6 @@ include_directories(/usr/local/include) ${third_party_libs} ) install(TARGETS milvus_grpc_sdk DESTINATION lib) -#endif() +endif() add_subdirectory(examples) diff --git a/cpp/src/sdk/examples/CMakeLists.txt b/cpp/src/sdk/examples/CMakeLists.txt index 10b59ace254f92bf8cc9872f6541a77f0051fb77..ceeb88c0e0fd30dbf6c2d898ca65917fd90bcd11 100644 --- a/cpp/src/sdk/examples/CMakeLists.txt +++ b/cpp/src/sdk/examples/CMakeLists.txt @@ -4,8 +4,8 @@ # Proprietary and confidential. #------------------------------------------------------------------------------- -#if (MILVUS_WITH_THRIFT STREQUAL "ON") +if (MILVUS_WITH_THRIFT STREQUAL "ON") add_subdirectory(thriftsimple) -#else() +else() add_subdirectory(grpcsimple) -#endif() \ No newline at end of file +endif() \ No newline at end of file diff --git a/cpp/src/sdk/examples/grpcsimple/main.cpp b/cpp/src/sdk/examples/grpcsimple/main.cpp index a7b1bf4643a51df60a87d533d78429fa3a80e598..499b8a9935843f5435d7834b163334717af80682 100644 --- a/cpp/src/sdk/examples/grpcsimple/main.cpp +++ b/cpp/src/sdk/examples/grpcsimple/main.cpp @@ -25,7 +25,7 @@ main(int argc, char *argv[]) { {NULL, 0, 0, 0}}; int option_index = 0; - std::string address = "127.0.0.1", port = "19531"; + std::string address = "127.0.0.1", port = "19530"; app_name = argv[0]; int value; diff --git a/cpp/src/sdk/examples/grpcsimple/src/ClientTest.cpp b/cpp/src/sdk/examples/grpcsimple/src/ClientTest.cpp index 71cbfff0bd1e1c855f2514625d94080190f082b2..ba009c0d9412ba1ff895dabe9938252cccc7c86a 100644 --- a/cpp/src/sdk/examples/grpcsimple/src/ClientTest.cpp +++ b/cpp/src/sdk/examples/grpcsimple/src/ClientTest.cpp @@ -23,7 +23,7 @@ namespace { constexpr int64_t NQ = 10; constexpr int64_t TOP_K = 10; constexpr int64_t SEARCH_TARGET = 5000; //change this value, result is different - constexpr int64_t ADD_VECTOR_LOOP = 1; + constexpr int64_t ADD_VECTOR_LOOP = 5; constexpr int64_t SECONDS_EACH_HOUR = 3600; #define BLOCK_SPLITER std::cout << "===========================================" << std::endl; @@ -174,7 +174,7 @@ namespace { std::vector topk_query_result_array; { TimeRecorder rc(phase_name); - Status stat = conn->SearchVector(TABLE_NAME, record_array, query_range_array, TOP_K, topk_query_result_array); + Status stat = conn->Search(TABLE_NAME, record_array, query_range_array, TOP_K, topk_query_result_array); std::cout << "SearchVector function call status: " << stat.ToString() << std::endl; } @@ -211,7 +211,7 @@ ClientTest::Test(const std::string& address, const std::string& port) { for(auto& table : tables) { int64_t row_count = 0; // conn->DropTable(table); - stat = conn->GetTableRowCount(table, row_count); + stat = conn->CountTable(table, row_count); std::cout << "\t" << table << "(" << row_count << " rows)" << std::endl; } } @@ -290,7 +290,7 @@ ClientTest::Test(const std::string& address, const std::string& port) { auto start = std::chrono::high_resolution_clock::now(); - Status stat = conn->InsertVector(TABLE_NAME, record_array, record_ids); + Status stat = conn->Insert(TABLE_NAME, record_array, record_ids); auto finish = std::chrono::high_resolution_clock::now(); std::cout << "InsertVector cost: " << std::chrono::duration_cast>(finish - start).count() << "s\n"; @@ -311,9 +311,9 @@ ClientTest::Test(const std::string& address, const std::string& port) { } {//wait unit build index finish - std::cout << "Wait until build all index done" << std::endl; - Status stat = conn->BuildIndex(TABLE_NAME); - std::cout << "BuildIndex function call status: " << stat.ToString() << std::endl; +// std::cout << "Wait until build all index done" << std::endl; +// Status stat = conn->CreateIndex(); +// std::cout << "BuildIndex function call status: " << stat.ToString() << std::endl; } {//search vectors after build index finish diff --git a/cpp/src/sdk/grpc/ClientProxy.cpp b/cpp/src/sdk/grpc/ClientProxy.cpp index 236a5b8a6ee87e14729c2bcc0297071c760fc558..059bf5c852ee38aafa25c17e103e93746aa8c361 100644 --- a/cpp/src/sdk/grpc/ClientProxy.cpp +++ b/cpp/src/sdk/grpc/ClientProxy.cpp @@ -54,7 +54,7 @@ Status ClientProxy::Connected() const { try { std::string info; - return client_ptr_->Ping(info, ""); + return client_ptr_->Cmd(info, ""); } catch (std::exception &ex) { return Status(StatusCode::NotConnected, "connection lost: " + std::string(ex.what())); } @@ -101,11 +101,6 @@ ClientProxy::HasTable(const std::string &table_name) { return result; } -Status -ClientProxy::DeleteTable(const std::string &table_name) { - return this->DropTable(table_name); -} - Status ClientProxy::DropTable(const std::string &table_name) { try { @@ -118,11 +113,13 @@ ClientProxy::DropTable(const std::string &table_name) { } Status -ClientProxy::BuildIndex(const std::string &table_name) { +ClientProxy::CreateIndex(const IndexParam &index_param) { try { - ::milvus::grpc::TableName grpc_table_name; - grpc_table_name.set_table_name(table_name); - return client_ptr_->BuildIndex(grpc_table_name); + //TODO:add index params + ::milvus::grpc::IndexParam grpc_index_param; + grpc_index_param.mutable_table_name()->set_table_name( + index_param.table_name); + return client_ptr_->CreateIndex(grpc_index_param); } catch (std::exception &ex) { return Status(StatusCode::UnknownError, "failed to build index: " + std::string(ex.what())); @@ -130,14 +127,7 @@ ClientProxy::BuildIndex(const std::string &table_name) { } Status -ClientProxy::AddVector(const std::string &table_name, - const std::vector &record_array, - std::vector &id_array) { - return InsertVector(table_name, record_array, id_array); -} - -Status -ClientProxy::InsertVector(const std::string &table_name, +ClientProxy::Insert(const std::string &table_name, const std::vector &record_array, std::vector &id_array) { Status status = Status::OK(); @@ -187,11 +177,11 @@ ClientProxy::InsertVector(const std::string &table_name, } } #else - ::milvus::grpc::InsertInfos insert_infos; - insert_infos.set_table_name(table_name); + ::milvus::grpc::InsertParam insert_param; + insert_param.set_table_name(table_name); for (auto &record : record_array) { - ::milvus::grpc::RowRecord *grpc_record = insert_infos.add_row_record_array(); + ::milvus::grpc::RowRecord *grpc_record = insert_param.add_row_record_array(); for (size_t i = 0; i < record.data.size(); i++) { grpc_record->add_vector_data(record.data[i]); } @@ -200,7 +190,7 @@ ClientProxy::InsertVector(const std::string &table_name, ::milvus::grpc::VectorIds vector_ids; //Single thread - client_ptr_->InsertVector(vector_ids, insert_infos, status); + client_ptr_->Insert(vector_ids, insert_param, status); auto finish = std::chrono::high_resolution_clock::now(); for (size_t i = 0; i < vector_ids.vector_id_array_size(); i++) { @@ -216,18 +206,18 @@ ClientProxy::InsertVector(const std::string &table_name, } Status -ClientProxy::SearchVector(const std::string &table_name, +ClientProxy::Search(const std::string &table_name, const std::vector &query_record_array, const std::vector &query_range_array, int64_t topk, std::vector &topk_query_result_array) { try { //step 1: convert vectors data - ::milvus::grpc::SearchVectorInfos search_vector_infos; - search_vector_infos.set_table_name(table_name); - search_vector_infos.set_topk(topk); + ::milvus::grpc::SearchParam search_param; + search_param.set_table_name(table_name); + search_param.set_topk(topk); for (auto &record : query_record_array) { - ::milvus::grpc::RowRecord *row_record = search_vector_infos.add_query_record_array(); + ::milvus::grpc::RowRecord *row_record = search_param.add_query_record_array(); for (auto &rec : record.data) { row_record->add_vector_data(rec); } @@ -235,14 +225,14 @@ ClientProxy::SearchVector(const std::string &table_name, //step 2: convert range array for (auto &range : query_range_array) { - ::milvus::grpc::Range *grpc_range = search_vector_infos.add_query_range_array(); + ::milvus::grpc::Range *grpc_range = search_param.add_query_range_array(); grpc_range->set_start_value(range.start_value); grpc_range->set_end_value(range.end_value); } //step 3: search vectors std::vector<::milvus::grpc::TopKQueryResult> result_array; - Status status = client_ptr_->SearchVector(result_array, search_vector_infos); + Status status = client_ptr_->Search(result_array, search_param); //step 4: convert result array for (auto &grpc_topk_result : result_array) { @@ -284,10 +274,10 @@ ClientProxy::DescribeTable(const std::string &table_name, TableSchema &table_sch } Status -ClientProxy::GetTableRowCount(const std::string &table_name, int64_t &row_count) { +ClientProxy::CountTable(const std::string &table_name, int64_t &row_count) { try { Status status; - row_count = client_ptr_->GetTableRowCount(table_name, status); + row_count = client_ptr_->CountTable(table_name, status); return status; } catch (std::exception &ex) { return Status(StatusCode::UnknownError, "fail to show tables: " + std::string(ex.what())); @@ -309,7 +299,7 @@ ClientProxy::ServerVersion() const { Status status = Status::OK(); try { std::string version; - Status status = client_ptr_->Ping(version, "version"); + Status status = client_ptr_->Cmd(version, "version"); return version; } catch (std::exception &ex) { return ""; @@ -324,11 +314,31 @@ ClientProxy::ServerStatus() const { try { std::string dummy; - Status status = client_ptr_->Ping(dummy, ""); + Status status = client_ptr_->Cmd(dummy, ""); return "server alive"; } catch (std::exception &ex) { return "connection lost"; } } +Status +ClientProxy::DeleteByRange(milvus::Range &range, const std::string &table_name) { + +} + +Status +ClientProxy::PreloadTable(const std::string &table_name) const { + +} + +IndexParam +ClientProxy::DescribeIndex(const std::string &table_name) const { + +} + +Status +ClientProxy::DropIndex(const std::string &table_name) const { + +} + } diff --git a/cpp/src/sdk/grpc/ClientProxy.h b/cpp/src/sdk/grpc/ClientProxy.h index b10cf51769d697b6f8d670b9c6926c774b31ea00..c6da983bcc311ce5410a0744793cc7f1ac8393e0 100644 --- a/cpp/src/sdk/grpc/ClientProxy.h +++ b/cpp/src/sdk/grpc/ClientProxy.h @@ -31,27 +31,19 @@ public: virtual bool HasTable(const std::string &table_name) override; - virtual Status - DeleteTable(const std::string &table_name) override; - virtual Status DropTable(const std::string &table_name) override; virtual Status - BuildIndex(const std::string &table_name) override; - - virtual Status - AddVector(const std::string &table_name, - const std::vector &record_array, - std::vector &id_array) override; + CreateIndex(const IndexParam &index_param) override; virtual Status - InsertVector(const std::string &table_name, + Insert(const std::string &table_name, const std::vector &record_array, std::vector &id_array) override; virtual Status - SearchVector(const std::string &table_name, + Search(const std::string &table_name, const std::vector &query_record_array, const std::vector &query_range_array, int64_t topk, @@ -61,7 +53,7 @@ public: DescribeTable(const std::string &table_name, TableSchema &table_schema) override; virtual Status - GetTableRowCount(const std::string &table_name, int64_t &row_count) override; + CountTable(const std::string &table_name, int64_t &row_count) override; virtual Status ShowTables(std::vector &table_array) override; @@ -75,6 +67,19 @@ public: virtual std::string ServerStatus() const override; + virtual Status + DeleteByRange(Range &range, + const std::string &table_name) override; + + virtual Status + PreloadTable(const std::string &table_name) const override; + + virtual IndexParam + DescribeIndex(const std::string &table_name) const override; + + virtual Status + DropIndex(const std::string &table_name) const override; + private: std::shared_ptr<::grpc::Channel> channel_; diff --git a/cpp/src/sdk/grpc/GrpcClient.cpp b/cpp/src/sdk/grpc/GrpcClient.cpp index 183b79cbc64c577b871eaa24fbf4c18957f76f9b..1212c688479f0c521b38969dca1a9c225493a155 100644 --- a/cpp/src/sdk/grpc/GrpcClient.cpp +++ b/cpp/src/sdk/grpc/GrpcClient.cpp @@ -82,10 +82,10 @@ GrpcClient::DropTable(const ::milvus::grpc::TableName& table_name) { } Status -GrpcClient::BuildIndex(const ::milvus::grpc::TableName& table_name) { +GrpcClient::CreateIndex(const ::milvus::grpc::IndexParam& index_param) { ClientContext context; grpc::Status response; - ::grpc::Status grpc_status = stub_->BuildIndex(&context, table_name, &response); + ::grpc::Status grpc_status = stub_->CreateIndex(&context, index_param, &response); if (!grpc_status.ok()) { std::cerr << "BuildIndex rpc failed!" << std::endl; @@ -100,11 +100,11 @@ GrpcClient::BuildIndex(const ::milvus::grpc::TableName& table_name) { } void -GrpcClient::InsertVector(::milvus::grpc::VectorIds& vector_ids, - const ::milvus::grpc::InsertInfos& insert_infos, +GrpcClient::Insert(::milvus::grpc::VectorIds& vector_ids, + const ::milvus::grpc::InsertParam& insert_param, Status& status) { ClientContext context; - ::grpc::Status grpc_status = stub_->InsertVector(&context, insert_infos, &vector_ids); + ::grpc::Status grpc_status = stub_->Insert(&context, insert_param, &vector_ids); if (!grpc_status.ok()) { std::cerr << "InsertVector rpc failed!" << std::endl; @@ -121,12 +121,12 @@ GrpcClient::InsertVector(::milvus::grpc::VectorIds& vector_ids, } Status -GrpcClient::SearchVector(std::vector<::milvus::grpc::TopKQueryResult>& result_array, - const ::milvus::grpc::SearchVectorInfos& search_vector_infos) { +GrpcClient::Search(std::vector<::milvus::grpc::TopKQueryResult>& result_array, + const ::milvus::grpc::SearchParam& search_param) { ::milvus::grpc::TopKQueryResult query_result; ClientContext context; std::unique_ptr > reader( - stub_->SearchVector(&context, search_vector_infos)); + stub_->Search(&context, search_param)); while (reader->Read(&query_result)) { result_array.emplace_back(query_result); @@ -172,12 +172,12 @@ GrpcClient::DescribeTable(::milvus::grpc::TableSchema& grpc_schema, } int64_t -GrpcClient::GetTableRowCount(const std::string& table_name, Status& status) { +GrpcClient::CountTable(const std::string& table_name, Status& status) { ClientContext context; ::milvus::grpc::TableRowCount response; ::milvus::grpc::TableName grpc_tablename; grpc_tablename.set_table_name(table_name); - ::grpc::Status grpc_status = stub_->GetTableRowCount(&context, grpc_tablename, &response); + ::grpc::Status grpc_status = stub_->CountTable(&context, grpc_tablename, &response); if (!grpc_status.ok()) { std::cerr << "DescribeTable rpc failed!" << std::endl; @@ -224,15 +224,15 @@ GrpcClient::ShowTables(std::vector &table_array) { } Status -GrpcClient::Ping(std::string &result, +GrpcClient::Cmd(std::string &result, const std::string& cmd) { ClientContext context; - ::milvus::grpc::ServerStatus response; + ::milvus::grpc::StringReply response; ::milvus::grpc::Command command; command.set_cmd(cmd); - ::grpc::Status grpc_status = stub_->Ping(&context, command, &response); + ::grpc::Status grpc_status = stub_->Cmd(&context, command, &response); - result = response.info(); + result = response.string_reply(); if (!grpc_status.ok()) { std::cerr << "Ping gRPC failed!" << std::endl; return Status(StatusCode::RPCFailed, grpc_status.error_message()); diff --git a/cpp/src/sdk/grpc/GrpcClient.h b/cpp/src/sdk/grpc/GrpcClient.h index cdf94d8ea280d1e6ee9774b98a01ca8a1dc3d0b0..512161a6e27e397005c572d0a84ebae975fc2369 100644 --- a/cpp/src/sdk/grpc/GrpcClient.h +++ b/cpp/src/sdk/grpc/GrpcClient.h @@ -42,29 +42,41 @@ public: DropTable(const grpc::TableName& table_name); Status - BuildIndex(const grpc::TableName& table_name); + CreateIndex(const grpc::IndexParam& index_param); void - InsertVector(grpc::VectorIds& vector_ids, - const grpc::InsertInfos& insert_infos, + Insert(grpc::VectorIds& vector_ids, + const grpc::InsertParam& insert_param, Status& status); Status - SearchVector(std::vector& result_array, - const grpc::SearchVectorInfos& search_vector_infos); + Search(std::vector& result_array, + const grpc::SearchParam& search_param); Status DescribeTable(grpc::TableSchema& grpc_schema, const std::string& table_name); int64_t - GetTableRowCount(const std::string& table_name, Status& status); + CountTable(const std::string& table_name, Status& status); Status ShowTables(std::vector &table_array); Status - Ping(std::string &result, const std::string& cmd); + Cmd(std::string &result, const std::string& cmd); + + Status + DeleteByRange(grpc::DeleteByRangeParam &delete_by_range_param); + + Status + PreloadTable(grpc::TableName &table_name); + + Status + DescribeIndex(grpc::TableName &table_name, grpc::IndexParam &index_param); + + Status + DropIndex(grpc::TableName &table_name); Status Disconnect(); diff --git a/cpp/src/sdk/include/MilvusApi.h b/cpp/src/sdk/include/MilvusApi.h index 8a62131b47e60aa085dd66c7da42c653e932b5e8..22c6d23c8a09b043569e19c007c93ec86738a6fd 100644 --- a/cpp/src/sdk/include/MilvusApi.h +++ b/cpp/src/sdk/include/MilvusApi.h @@ -71,6 +71,15 @@ struct TopKQueryResult { std::vector query_result_arrays; ///< TopK query result }; +/** + * @brief index parameters + */ +struct IndexParam { + std::string table_name; + int32_t index_type; + int64_t nlist; + int32_t index_file_size; +}; /** * @brief SDK main class @@ -188,21 +197,21 @@ class Connection { virtual Status DropTable(const std::string &table_name) = 0; - virtual Status - DeleteTable(const std::string &table_name) = 0; - - /** - * @brief Build index method + * @brief Create index method * - * This method is used to build index for whole table + * This method is used to create index for whole table * - * @param table_name, table name is going to be build index. + * @param IndexParam + * table_name, table name is going to be create index. + * index type, + * nlist, + * index file size * * @return Indicate if build index successfully. */ virtual Status - BuildIndex(const std::string &table_name) = 0; + CreateIndex(const IndexParam &index_param) = 0; /** * @brief Add vector to table @@ -216,15 +225,9 @@ class Connection { * @return Indicate if vector array are inserted successfully */ virtual Status - InsertVector(const std::string &table_name, - const std::vector &record_array, - std::vector &id_array) = 0; - - virtual Status - AddVector(const std::string &table_name, - const std::vector &record_array, - std::vector &id_array) = 0; - + Insert(const std::string &table_name, + const std::vector &record_array, + std::vector &id_array) = 0; /** * @brief Search vector @@ -240,11 +243,11 @@ class Connection { * @return Indicate if query is successful. */ virtual Status - SearchVector(const std::string &table_name, - const std::vector &query_record_array, - const std::vector &query_range_array, - int64_t topk, - std::vector &topk_query_result_array) = 0; + Search(const std::string &table_name, + const std::vector &query_record_array, + const std::vector &query_range_array, + int64_t topk, + std::vector &topk_query_result_array) = 0; /** * @brief Show table description @@ -270,7 +273,8 @@ class Connection { * @return Indicate if this operation is successful. */ virtual Status - GetTableRowCount(const std::string &table_name, int64_t &row_count) = 0; + CountTable(const std::string &table_name, + int64_t &row_count) = 0; /** * @brief Show all tables in database @@ -313,6 +317,56 @@ class Connection { */ virtual std::string ServerStatus() const = 0; + + /** + * @brief delete tables by range + * + * This method is used to delete tables by range. + * + * @param Range, table range to delete. + * @param table_name + * + * @return Indicate if this operation is successful. + */ + virtual Status + DeleteByRange(Range &range, + const std::string &table_name) = 0; + + /** + * @brief preload table + * + * This method is used to preload table + * + * @param table_name + * + * @return Indicate if this operation is successful. + */ + virtual Status + PreloadTable(const std::string &table_name) const = 0; + + /** + * @brief describe index + * + * This method is used to describe index + * + * @param table_name + * + * @return index informations and indicate if this operation is successful. + */ + virtual IndexParam + DescribeIndex(const std::string &table_name) const = 0; + + /** + * @brief drop index + * + * This method is used to drop index + * + * @param table_name + * + * @return Indicate if this operation is successful. + */ + virtual Status + DropIndex(const std::string &table_name) const = 0; }; } \ No newline at end of file diff --git a/cpp/src/sdk/interface/ConnectionImpl.cpp b/cpp/src/sdk/interface/ConnectionImpl.cpp index ccf73e734896097b7e91745bc82214b9d937e3ee..a0e4943197490c02a0ac154f10ea53ae4dc111e2 100644 --- a/cpp/src/sdk/interface/ConnectionImpl.cpp +++ b/cpp/src/sdk/interface/ConnectionImpl.cpp @@ -66,36 +66,25 @@ ConnectionImpl::DropTable(const std::string &table_name) { } Status -ConnectionImpl::DeleteTable(const std::string &table_name) { - return client_proxy_->DropTable(table_name); -} - -Status -ConnectionImpl::BuildIndex(const std::string &table_name) { - return client_proxy_->BuildIndex(table_name); +ConnectionImpl::CreateIndex(const IndexParam &index_param) { + return client_proxy_->CreateIndex(index_param); } Status -ConnectionImpl::InsertVector(const std::string &table_name, +ConnectionImpl::Insert(const std::string &table_name, const std::vector &record_array, std::vector &id_array) { - return client_proxy_->InsertVector(table_name, record_array, id_array); + return client_proxy_->Insert(table_name, record_array, id_array); } -Status -ConnectionImpl::AddVector(const std::string &table_name, - const std::vector &record_array, - std::vector &id_array) { - return client_proxy_->InsertVector(table_name, record_array, id_array); -} Status -ConnectionImpl::SearchVector(const std::string &table_name, +ConnectionImpl::Search(const std::string &table_name, const std::vector &query_record_array, const std::vector &query_range_array, int64_t topk, std::vector &topk_query_result_array) { - return client_proxy_->SearchVector(table_name, query_record_array, query_range_array, topk, + return client_proxy_->Search(table_name, query_record_array, query_range_array, topk, topk_query_result_array); } @@ -105,8 +94,8 @@ ConnectionImpl::DescribeTable(const std::string &table_name, TableSchema &table_ } Status -ConnectionImpl::GetTableRowCount(const std::string &table_name, int64_t &row_count) { - return client_proxy_->GetTableRowCount(table_name, row_count); +ConnectionImpl::CountTable(const std::string &table_name, int64_t &row_count) { + return client_proxy_->CountTable(table_name, row_count); } Status @@ -124,4 +113,25 @@ ConnectionImpl::ServerStatus() const { return client_proxy_->ServerStatus(); } +Status +ConnectionImpl::DeleteByRange(Range &range, + const std::string &table_name) { + +} + +Status +ConnectionImpl::PreloadTable(const std::string &table_name) const { + +} + +IndexParam +ConnectionImpl::DescribeIndex(const std::string &table_name) const { + +} + +Status +ConnectionImpl::DropIndex(const std::string &table_name) const { + +} + } diff --git a/cpp/src/sdk/interface/ConnectionImpl.h b/cpp/src/sdk/interface/ConnectionImpl.h index 3c679237f9f405a51600f839ed57c6244d2509e2..fa2c3d84970ca2d5cfbe33f6c301404610d45b1a 100644 --- a/cpp/src/sdk/interface/ConnectionImpl.h +++ b/cpp/src/sdk/interface/ConnectionImpl.h @@ -41,23 +41,15 @@ public: DropTable(const std::string &table_name) override; virtual Status - DeleteTable(const std::string &table_name) override; + CreateIndex(const IndexParam &index_param) override; virtual Status - BuildIndex(const std::string &table_name) override; + Insert(const std::string &table_name, + const std::vector &record_array, + std::vector &id_array) override; virtual Status - InsertVector(const std::string &table_name, - const std::vector &record_array, - std::vector &id_array) override; - - virtual Status - AddVector(const std::string &table_name, - const std::vector &record_array, - std::vector &id_array) override; - - virtual Status - SearchVector(const std::string &table_name, + Search(const std::string &table_name, const std::vector &query_record_array, const std::vector &query_range_array, int64_t topk, @@ -67,7 +59,7 @@ public: DescribeTable(const std::string &table_name, TableSchema &table_schema) override; virtual Status - GetTableRowCount(const std::string &table_name, int64_t &row_count) override; + CountTable(const std::string &table_name, int64_t &row_count) override; virtual Status ShowTables(std::vector &table_array) override; @@ -81,6 +73,19 @@ public: virtual std::string ServerStatus() const override; + virtual Status + DeleteByRange(Range &range, + const std::string &table_name) override; + + virtual Status + PreloadTable(const std::string &table_name) const override; + + virtual IndexParam + DescribeIndex(const std::string &table_name) const override; + + virtual Status + DropIndex(const std::string &table_name) const override; + private: std::shared_ptr client_proxy_; }; diff --git a/cpp/src/server/Server.cpp b/cpp/src/server/Server.cpp index b46382e38da9250a26aa0f3228c04dbf59b8dac6..a6e2cd9599d9f3fd56f2e2962a4720fc9e961a3e 100644 --- a/cpp/src/server/Server.cpp +++ b/cpp/src/server/Server.cpp @@ -225,15 +225,14 @@ Server::LoadConfig() { void Server::StartService() { - std::thread thrift_thread = std::thread(&MilvusServer::StartService); - std::thread grpc_thread = std::thread(&grpc::GrpcMilvusServer::StartService); - thrift_thread.join(); - grpc_thread.join(); +// std::thread thrift_thread = std::thread(&MilvusServer::StartService); + grpc::GrpcMilvusServer::StartService(); +// thrift_thread.join(); } void Server::StopService() { - MilvusServer::StartService(); +// MilvusServer::StartService(); grpc::GrpcMilvusServer::StopService(); } diff --git a/cpp/src/server/grpc_impl/GrpcMilvusServer.cpp b/cpp/src/server/grpc_impl/GrpcMilvusServer.cpp index 10ceaca788e7c0c5f8d5b4bf399c35ce6f00a080..baf9116169b08f3445ad2b93019d0dea27b60b4b 100644 --- a/cpp/src/server/grpc_impl/GrpcMilvusServer.cpp +++ b/cpp/src/server/grpc_impl/GrpcMilvusServer.cpp @@ -37,7 +37,7 @@ constexpr long MESSAGE_SIZE = -1; void GrpcMilvusServer::StartService() { if (server != nullptr) { - std::cout << "stopservice!\n"; + std::cout << "stop service!\n"; StopService(); } @@ -51,7 +51,7 @@ GrpcMilvusServer::StartService() { DBWrapper::DB();//initialize db - std::string server_address(address + ":" + std::to_string(port + 1)); + std::string server_address(address + ":" + std::to_string(port)); ::grpc::ServerBuilder builder; builder.SetMaxReceiveMessageSize(MESSAGE_SIZE); //default 4 * 1024 * 1024 @@ -68,7 +68,6 @@ GrpcMilvusServer::StartService() { server = builder.BuildAndStart(); server->Wait(); - } void diff --git a/cpp/src/server/grpc_impl/GrpcRequestHandler.cpp b/cpp/src/server/grpc_impl/GrpcRequestHandler.cpp index 562f4912b1bb554b33431031fdbe0795b8c2b78f..0f7d5caf5ca92988d8df4ddbd9afe22c89f2a70f 100644 --- a/cpp/src/server/grpc_impl/GrpcRequestHandler.cpp +++ b/cpp/src/server/grpc_impl/GrpcRequestHandler.cpp @@ -49,21 +49,21 @@ GrpcRequestHandler::DropTable(::grpc::ServerContext *context, } ::grpc::Status -GrpcRequestHandler::BuildIndex(::grpc::ServerContext *context, - const ::milvus::grpc::TableName *request, +GrpcRequestHandler::CreateIndex(::grpc::ServerContext *context, + const ::milvus::grpc::IndexParam *request, ::milvus::grpc::Status *response) { - BaseTaskPtr task_ptr = BuildIndexTask::Create(request->table_name()); + BaseTaskPtr task_ptr = CreateIndexTask::Create(*request); GrpcRequestScheduler::ExecTask(task_ptr, response); return ::grpc::Status::OK; } ::grpc::Status -GrpcRequestHandler::InsertVector(::grpc::ServerContext *context, - const ::milvus::grpc::InsertInfos *request, +GrpcRequestHandler::Insert(::grpc::ServerContext *context, + const ::milvus::grpc::InsertParam *request, ::milvus::grpc::VectorIds *response) { - BaseTaskPtr task_ptr = InsertVectorTask::Create(*request, *response); + BaseTaskPtr task_ptr = InsertTask::Create(*request, *response); ::milvus::grpc::Status grpc_status; GrpcRequestScheduler::ExecTask(task_ptr, &grpc_status); response->mutable_status()->set_reason(grpc_status.reason()); @@ -72,12 +72,12 @@ GrpcRequestHandler::InsertVector(::grpc::ServerContext *context, } ::grpc::Status -GrpcRequestHandler::SearchVector(::grpc::ServerContext *context, - const ::milvus::grpc::SearchVectorInfos *request, +GrpcRequestHandler::Search(::grpc::ServerContext *context, + const ::milvus::grpc::SearchParam *request, ::grpc::ServerWriter<::milvus::grpc::TopKQueryResult> *writer) { std::vector file_id_array; - BaseTaskPtr task_ptr = SearchVectorTask::Create(*request, file_id_array, *writer); + BaseTaskPtr task_ptr = SearchTask::Create(*request, file_id_array, *writer); ::milvus::grpc::Status grpc_status; GrpcRequestScheduler::ExecTask(task_ptr, &grpc_status); if (grpc_status.error_code() != SERVER_SUCCESS) { @@ -89,12 +89,12 @@ GrpcRequestHandler::SearchVector(::grpc::ServerContext *context, } ::grpc::Status -GrpcRequestHandler::SearchVectorInFiles(::grpc::ServerContext *context, - const ::milvus::grpc::SearchVectorInFilesInfos *request, +GrpcRequestHandler::SearchInFiles(::grpc::ServerContext *context, + const ::milvus::grpc::SearchInFilesParam *request, ::grpc::ServerWriter<::milvus::grpc::TopKQueryResult> *writer) { std::vector file_id_array; - BaseTaskPtr task_ptr = SearchVectorTask::Create(request->search_vector_infos(), file_id_array, *writer); + BaseTaskPtr task_ptr = SearchTask::Create(request->search_param(), file_id_array, *writer); ::milvus::grpc::Status grpc_status; GrpcRequestScheduler::ExecTask(task_ptr, &grpc_status); if (grpc_status.error_code() != SERVER_SUCCESS) { @@ -119,12 +119,12 @@ GrpcRequestHandler::DescribeTable(::grpc::ServerContext *context, } ::grpc::Status -GrpcRequestHandler::GetTableRowCount(::grpc::ServerContext *context, +GrpcRequestHandler::CountTable(::grpc::ServerContext *context, const ::milvus::grpc::TableName *request, ::milvus::grpc::TableRowCount *response) { int64_t row_count = 0; - BaseTaskPtr task_ptr = GetTableRowCountTask::Create(request->table_name(), row_count); + BaseTaskPtr task_ptr = CountTableTask::Create(request->table_name(), row_count); ::milvus::grpc::Status grpc_status; GrpcRequestScheduler::ExecTask(task_ptr, &grpc_status); response->set_table_row_count(row_count); @@ -150,20 +150,49 @@ GrpcRequestHandler::ShowTables(::grpc::ServerContext *context, } ::grpc::Status -GrpcRequestHandler::Ping(::grpc::ServerContext *context, +GrpcRequestHandler::Cmd(::grpc::ServerContext *context, const ::milvus::grpc::Command *request, - ::milvus::grpc::ServerStatus *response) { + ::milvus::grpc::StringReply *response) { std::string result; - BaseTaskPtr task_ptr = PingTask::Create(request->cmd(), result); + BaseTaskPtr task_ptr = CmdTask::Create(request->cmd(), result); ::milvus::grpc::Status grpc_status; GrpcRequestScheduler::ExecTask(task_ptr, &grpc_status); - response->set_info(result); + response->set_string_reply(result); response->mutable_status()->set_reason(grpc_status.reason()); response->mutable_status()->set_error_code(grpc_status.error_code()); return ::grpc::Status::OK; } +::grpc::Status +GrpcRequestHandler::DeleteByRange(::grpc::ServerContext *context, + const ::milvus::grpc::DeleteByRangeParam *request, + ::milvus::grpc::Status *response) { + +} + +::grpc::Status +GrpcRequestHandler::PreloadTable(::grpc::ServerContext *context, + const ::milvus::grpc::TableName *request, + ::milvus::grpc::Status *response) { + +} + +::grpc::Status +GrpcRequestHandler::DescribeIndex(::grpc::ServerContext *context, + const ::milvus::grpc::TableName *request, + ::milvus::grpc::IndexParam *response) { + +} + +::grpc::Status +GrpcRequestHandler::DropIndex(::grpc::ServerContext *context, + const ::milvus::grpc::TableName *request, + ::milvus::grpc::Status *response) { + +} + + } } } diff --git a/cpp/src/server/grpc_impl/GrpcRequestHandler.h b/cpp/src/server/grpc_impl/GrpcRequestHandler.h index 5b21058331d50ebced5a91c117529bb2c2bcc575..52f289819ad1b2585648a7935adf38d1f302eb99 100644 --- a/cpp/src/server/grpc_impl/GrpcRequestHandler.h +++ b/cpp/src/server/grpc_impl/GrpcRequestHandler.h @@ -90,8 +90,8 @@ public: * @param context */ ::grpc::Status - BuildIndex(::grpc::ServerContext *context, - const ::milvus::grpc::TableName *request, ::milvus::grpc::Status *response) override; + CreateIndex(::grpc::ServerContext *context, + const ::milvus::grpc::IndexParam *request, ::milvus::grpc::Status *response) override; /** @@ -110,8 +110,8 @@ public: * @param response */ ::grpc::Status - InsertVector(::grpc::ServerContext *context, - const ::milvus::grpc::InsertInfos *request, + Insert(::grpc::ServerContext *context, + const ::milvus::grpc::InsertParam *request, ::milvus::grpc::VectorIds *response) override; /** @@ -135,8 +135,8 @@ public: * @param writer */ ::grpc::Status - SearchVector(::grpc::ServerContext *context, - const ::milvus::grpc::SearchVectorInfos *request, + Search(::grpc::ServerContext *context, + const ::milvus::grpc::SearchParam *request, ::grpc::ServerWriter<::milvus::grpc::TopKQueryResult> *writer) override; /** @@ -160,8 +160,8 @@ public: * @param writer */ ::grpc::Status - SearchVectorInFiles(::grpc::ServerContext *context, - const ::milvus::grpc::SearchVectorInFilesInfos *request, + SearchInFiles(::grpc::ServerContext *context, + const ::milvus::grpc::SearchInFilesParam *request, ::grpc::ServerWriter<::milvus::grpc::TopKQueryResult> *writer) override; /** @@ -200,7 +200,7 @@ public: * @param context */ ::grpc::Status - GetTableRowCount(::grpc::ServerContext *context, + CountTable(::grpc::ServerContext *context, const ::milvus::grpc::TableName *request, ::milvus::grpc::TableRowCount *response) override; @@ -240,8 +240,85 @@ public: * @param response */ ::grpc::Status - Ping(::grpc::ServerContext *context, - const ::milvus::grpc::Command *request, ::milvus::grpc::ServerStatus *response) override; + Cmd(::grpc::ServerContext *context, + const ::milvus::grpc::Command *request, + ::milvus::grpc::StringReply *response) override; + + /** + * @brief delete table by range + * + * This method is used to delete table by range. + * @param context, add context for every RPC + * @param request, table name and range + * @param response, status + * + * @return status + * + * @param context + * @param request + * @param response + */ + ::grpc::Status + DeleteByRange(::grpc::ServerContext *context, + const ::milvus::grpc::DeleteByRangeParam *request, + ::milvus::grpc::Status *response) override; + + /** + * @brief preload table + * + * This method is used to preload table. + * @param context, add context for every RPC + * @param request, table name + * @param response, status + * + * @return status + * + * @param context + * @param request + * @param response + */ + ::grpc::Status + PreloadTable(::grpc::ServerContext *context, + const ::milvus::grpc::TableName *request, + ::milvus::grpc::Status *response) override; + + /** + * @brief Describe index + * + * This method is used to describe index. + * @param context, add context for every RPC + * @param request, table name + * @param response, index informations + * + * @return status + * + * @param context + * @param request + * @param response + */ + ::grpc::Status + DescribeIndex(::grpc::ServerContext *context, + const ::milvus::grpc::TableName *request, + ::milvus::grpc::IndexParam *response) override; + + /** + * @brief Drop index + * + * This method is used to drop index. + * @param context, add context for every RPC + * @param request, table name + * @param response, status + * + * @return status + * + * @param context + * @param request + * @param response + */ + ::grpc::Status + DropIndex(::grpc::ServerContext *context, + const ::milvus::grpc::TableName *request, + ::milvus::grpc::Status *response) override; }; } diff --git a/cpp/src/server/grpc_impl/GrpcRequestTask.cpp b/cpp/src/server/grpc_impl/GrpcRequestTask.cpp index 2a12528206420de90d696057522dae49254158e4..6e3d73edc6e095fe777c75ab0be12226c10bf442 100644 --- a/cpp/src/server/grpc_impl/GrpcRequestTask.cpp +++ b/cpp/src/server/grpc_impl/GrpcRequestTask.cpp @@ -205,22 +205,23 @@ DescribeTableTask::OnExecute() { } //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -BuildIndexTask::BuildIndexTask(const std::string &table_name) +CreateIndexTask::CreateIndexTask(const ::milvus::grpc::IndexParam &index_param) : GrpcBaseTask(DDL_DML_TASK_GROUP), - table_name_(table_name) { + index_param_(index_param) { } BaseTaskPtr -BuildIndexTask::Create(const std::string &table_name) { - return std::shared_ptr(new BuildIndexTask(table_name)); +CreateIndexTask::Create(const ::milvus::grpc::IndexParam &index_param) { + return std::shared_ptr(new CreateIndexTask(index_param)); } ServerError -BuildIndexTask::OnExecute() { +CreateIndexTask::OnExecute() { try { - TimeRecorder rc("BuildIndexTask"); + TimeRecorder rc("CreateIndexTask"); //step 1: check arguments + std::string table_name_ = index_param_.table_name().table_name(); ServerError res = ValidationUtil::ValidateTableName(table_name_); if (res != SERVER_SUCCESS) { return SetError(res, "Invalid table name: " + table_name_); @@ -371,42 +372,42 @@ ShowTablesTask::OnExecute() { } //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -InsertVectorTask::InsertVectorTask(const ::milvus::grpc::InsertInfos &insert_infos, +InsertTask::InsertTask(const ::milvus::grpc::InsertParam &insert_param, ::milvus::grpc::VectorIds &record_ids) : GrpcBaseTask(DDL_DML_TASK_GROUP), - insert_infos_(insert_infos), + insert_param_(insert_param), record_ids_(record_ids) { record_ids_.Clear(); } BaseTaskPtr -InsertVectorTask::Create(const ::milvus::grpc::InsertInfos &insert_infos, +InsertTask::Create(const ::milvus::grpc::InsertParam &insert_infos, ::milvus::grpc::VectorIds &record_ids) { - return std::shared_ptr(new InsertVectorTask(insert_infos, record_ids)); + return std::shared_ptr(new InsertTask(insert_infos, record_ids)); } ServerError -InsertVectorTask::OnExecute() { +InsertTask::OnExecute() { try { TimeRecorder rc("InsertVectorTask"); //step 1: check arguments - ServerError res = ValidationUtil::ValidateTableName(insert_infos_.table_name()); + ServerError res = ValidationUtil::ValidateTableName(insert_param_.table_name()); if (res != SERVER_SUCCESS) { - return SetError(res, "Invalid table name: " + insert_infos_.table_name()); + return SetError(res, "Invalid table name: " + insert_param_.table_name()); } - if (insert_infos_.row_record_array().empty()) { + if (insert_param_.row_record_array().empty()) { return SetError(SERVER_INVALID_ROWRECORD_ARRAY, "Row record array is empty"); } //step 2: check table existence engine::meta::TableSchema table_info; - table_info.table_id_ = insert_infos_.table_name(); + table_info.table_id_ = insert_param_.table_name(); engine::Status stat = DBWrapper::DB()->DescribeTable(table_info); if (!stat.ok()) { if (stat.IsNotFound()) { return SetError(SERVER_TABLE_NOT_EXIST, - "Table " + insert_infos_.table_name() + " not exists"); + "Table " + insert_param_.table_name() + " not exists"); } else { return SetError(DB_META_TRANSACTION_FAILED, "Engine failed: " + stat.ToString()); } @@ -421,15 +422,15 @@ InsertVectorTask::OnExecute() { #endif //step 3: prepare float data - std::vector vec_f(insert_infos_.row_record_array_size() * table_info.dimension_, 0); + std::vector vec_f(insert_param_.row_record_array_size() * table_info.dimension_, 0); // TODO: change to one dimension array in protobuf or use multiple-thread to copy the data - for (size_t i = 0; i < insert_infos_.row_record_array_size(); i++) { + for (size_t i = 0; i < insert_param_.row_record_array_size(); i++) { for (size_t j = 0; j < table_info.dimension_; j++) { - if (insert_infos_.row_record_array(i).vector_data().empty()) { + if (insert_param_.row_record_array(i).vector_data().empty()) { return SetError(SERVER_INVALID_ROWRECORD_ARRAY, "Row record float array is empty"); } - uint64_t vec_dim = insert_infos_.row_record_array(i).vector_data().size(); + uint64_t vec_dim = insert_param_.row_record_array(i).vector_data().size(); if (vec_dim != table_info.dimension_) { ServerError error_code = SERVER_INVALID_VECTOR_DIMENSION; std::string error_msg = "Invalid rowrecord dimension: " + std::to_string(vec_dim) @@ -437,17 +438,17 @@ InsertVectorTask::OnExecute() { std::to_string(table_info.dimension_); return SetError(error_code, error_msg); } - vec_f[i * table_info.dimension_ + j] = insert_infos_.row_record_array(i).vector_data(j); + vec_f[i * table_info.dimension_ + j] = insert_param_.row_record_array(i).vector_data(j); } } rc.ElapseFromBegin("prepare vectors data"); //step 4: insert vectors - auto vec_count = (uint64_t) insert_infos_.row_record_array_size(); + auto vec_count = (uint64_t) insert_param_.row_record_array_size(); std::vector vec_ids(record_ids_.vector_id_array_size(), 0); - stat = DBWrapper::DB()->InsertVectors(insert_infos_.table_name(), vec_count, vec_f.data(), + stat = DBWrapper::DB()->InsertVectors(insert_param_.table_name(), vec_count, vec_f.data(), vec_ids); rc.ElapseFromBegin("add vectors to engine"); if (!stat.ok()) { @@ -479,43 +480,43 @@ InsertVectorTask::OnExecute() { } //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -SearchVectorTask::SearchVectorTask(const ::milvus::grpc::SearchVectorInfos &search_vector_infos, +SearchTask::SearchTask(const ::milvus::grpc::SearchParam &search_vector_infos, const std::vector &file_id_array, ::grpc::ServerWriter<::milvus::grpc::TopKQueryResult> &writer) : GrpcBaseTask(DQL_TASK_GROUP), - search_vector_infos_(search_vector_infos), + search_param_(search_vector_infos), file_id_array_(file_id_array), writer_(writer) { } BaseTaskPtr -SearchVectorTask::Create(const ::milvus::grpc::SearchVectorInfos &search_vector_infos, +SearchTask::Create(const ::milvus::grpc::SearchParam &search_vector_infos, const std::vector &file_id_array, ::grpc::ServerWriter<::milvus::grpc::TopKQueryResult> &writer) { - return std::shared_ptr(new SearchVectorTask(search_vector_infos, file_id_array, + return std::shared_ptr(new SearchTask(search_vector_infos, file_id_array, writer)); } ServerError -SearchVectorTask::OnExecute() { +SearchTask::OnExecute() { try { - TimeRecorder rc("SearchVectorTask"); + TimeRecorder rc("SearchTask"); //step 1: check arguments - std::string table_name_ = search_vector_infos_.table_name(); + std::string table_name_ = search_param_.table_name(); ServerError res = ValidationUtil::ValidateTableName(table_name_); if (res != SERVER_SUCCESS) { return SetError(res, "Invalid table name: " + table_name_); } - int top_k_ = search_vector_infos_.topk(); + int top_k_ = search_param_.topk(); if (top_k_ <= 0 || top_k_ > 1024) { return SetError(SERVER_INVALID_TOPK, "Invalid topk: " + std::to_string( top_k_)); } - if (search_vector_infos_.query_record_array().empty()) { + if (search_param_.query_record_array().empty()) { return SetError(SERVER_INVALID_ROWRECORD_ARRAY, "Row record array is empty"); } @@ -537,8 +538,8 @@ SearchVectorTask::OnExecute() { std::string error_msg; std::vector<::milvus::grpc::Range> range_array; - for (size_t i = 0; i < search_vector_infos_.query_range_array_size(); i++) { - range_array.emplace_back(search_vector_infos_.query_range_array(i)); + for (size_t i = 0; i < search_param_.query_range_array_size(); i++) { + range_array.emplace_back(search_param_.query_range_array(i)); } ConvertTimeRangeToDBDates(range_array, dates, error_code, error_msg); if (error_code != SERVER_SUCCESS) { @@ -555,15 +556,15 @@ SearchVectorTask::OnExecute() { #endif //step 3: prepare float data - auto record_array_size = search_vector_infos_.query_record_array_size(); + auto record_array_size = search_param_.query_record_array_size(); std::vector vec_f(record_array_size * table_info.dimension_, 0); for (size_t i = 0; i < record_array_size; i++) { for (size_t j = 0; j < table_info.dimension_; j++) { - if (search_vector_infos_.query_record_array(i).vector_data().empty()) { + if (search_param_.query_record_array(i).vector_data().empty()) { return SetError(SERVER_INVALID_ROWRECORD_ARRAY, "Query record float array is empty"); } - uint64_t query_vec_dim = search_vector_infos_.query_record_array( + uint64_t query_vec_dim = search_param_.query_record_array( i).vector_data().size(); if (query_vec_dim != table_info.dimension_) { ServerError error_code = SERVER_INVALID_VECTOR_DIMENSION; @@ -572,7 +573,7 @@ SearchVectorTask::OnExecute() { + " vs. table dimension:" + std::to_string(table_info.dimension_); return SetError(error_code, error_msg); } - vec_f[i * table_info.dimension_ + j] = search_vector_infos_.query_record_array( + vec_f[i * table_info.dimension_ + j] = search_param_.query_record_array( i).vector_data(j); } } @@ -580,7 +581,7 @@ SearchVectorTask::OnExecute() { //step 4: search vectors engine::QueryResults results; - auto record_count = (uint64_t) search_vector_infos_.query_record_array().size(); + auto record_count = (uint64_t) search_param_.query_record_array().size(); if (file_id_array_.empty()) { stat = DBWrapper::DB()->Query(table_name_, (size_t) top_k_, record_count, vec_f.data(), @@ -610,7 +611,7 @@ SearchVectorTask::OnExecute() { //step 5: construct result array for (uint64_t i = 0; i < record_count; i++) { auto &result = results[i]; - const auto &record = search_vector_infos_.query_record_array(i); + const auto &record = search_param_.query_record_array(i); ::milvus::grpc::TopKQueryResult grpc_topk_result; for (auto &pair : result) { ::milvus::grpc::QueryResult *grpc_result = grpc_topk_result.add_query_result_arrays(); @@ -639,7 +640,7 @@ SearchVectorTask::OnExecute() { } //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -GetTableRowCountTask::GetTableRowCountTask(const std::string &table_name, int64_t &row_count) +CountTableTask::CountTableTask(const std::string &table_name, int64_t &row_count) : GrpcBaseTask(DDL_DML_TASK_GROUP), table_name_(table_name), row_count_(row_count) { @@ -647,12 +648,12 @@ GetTableRowCountTask::GetTableRowCountTask(const std::string &table_name, int64_ } BaseTaskPtr -GetTableRowCountTask::Create(const std::string &table_name, int64_t &row_count) { - return std::shared_ptr(new GetTableRowCountTask(table_name, row_count)); +CountTableTask::Create(const std::string &table_name, int64_t &row_count) { + return std::shared_ptr(new CountTableTask(table_name, row_count)); } ServerError -GetTableRowCountTask::OnExecute() { +CountTableTask::OnExecute() { try { TimeRecorder rc("GetTableRowCountTask"); @@ -682,7 +683,7 @@ GetTableRowCountTask::OnExecute() { } //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -PingTask::PingTask(const std::string &cmd, std::string &result) +CmdTask::CmdTask(const std::string &cmd, std::string &result) : GrpcBaseTask(PING_TASK_GROUP), cmd_(cmd), result_(result) { @@ -690,12 +691,12 @@ PingTask::PingTask(const std::string &cmd, std::string &result) } BaseTaskPtr -PingTask::Create(const std::string &cmd, std::string &result) { - return std::shared_ptr(new PingTask(cmd, result)); +CmdTask::Create(const std::string &cmd, std::string &result) { + return std::shared_ptr(new CmdTask(cmd, result)); } ServerError -PingTask::OnExecute() { +CmdTask::OnExecute() { if (cmd_ == "version") { result_ = MILVUS_VERSION; } else { diff --git a/cpp/src/server/grpc_impl/GrpcRequestTask.h b/cpp/src/server/grpc_impl/GrpcRequestTask.h index b8753833632405046e09c37d0b2856a66e40b356..9a60064e49653e62fcd826f4435a2a0eec7c0e4e 100644 --- a/cpp/src/server/grpc_impl/GrpcRequestTask.h +++ b/cpp/src/server/grpc_impl/GrpcRequestTask.h @@ -91,21 +91,21 @@ private: }; //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -class BuildIndexTask : public GrpcBaseTask { +class CreateIndexTask : public GrpcBaseTask { public: static BaseTaskPtr - Create(const std::string &table_name); + Create(const ::milvus::grpc::IndexParam &index_Param); protected: explicit - BuildIndexTask(const std::string &table_name); + CreateIndexTask(const ::milvus::grpc::IndexParam &index_Param); ServerError OnExecute() override; private: - std::string table_name_; + ::milvus::grpc::IndexParam index_param_; }; //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// @@ -126,34 +126,34 @@ private: }; //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -class InsertVectorTask : public GrpcBaseTask { +class InsertTask : public GrpcBaseTask { public: static BaseTaskPtr - Create(const ::milvus::grpc::InsertInfos &insert_infos, + Create(const ::milvus::grpc::InsertParam &insert_Param, ::milvus::grpc::VectorIds &record_ids_); protected: - InsertVectorTask(const ::milvus::grpc::InsertInfos &insert_infos, + InsertTask(const ::milvus::grpc::InsertParam &insert_Param, ::milvus::grpc::VectorIds &record_ids_); ServerError OnExecute() override; private: - const ::milvus::grpc::InsertInfos insert_infos_; + const ::milvus::grpc::InsertParam insert_param_; ::milvus::grpc::VectorIds &record_ids_; }; //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -class SearchVectorTask : public GrpcBaseTask { +class SearchTask : public GrpcBaseTask { public: static BaseTaskPtr - Create(const ::milvus::grpc::SearchVectorInfos &searchVectorInfos, + Create(const ::milvus::grpc::SearchParam &search_param, const std::vector &file_id_array, ::grpc::ServerWriter<::milvus::grpc::TopKQueryResult> &writer); protected: - SearchVectorTask(const ::milvus::grpc::SearchVectorInfos &searchVectorInfos, + SearchTask(const ::milvus::grpc::SearchParam &search_param, const std::vector &file_id_array, ::grpc::ServerWriter<::milvus::grpc::TopKQueryResult> &writer); @@ -161,19 +161,19 @@ protected: OnExecute() override; private: - const ::milvus::grpc::SearchVectorInfos search_vector_infos_; + const ::milvus::grpc::SearchParam search_param_; std::vector file_id_array_; ::grpc::ServerWriter<::milvus::grpc::TopKQueryResult> writer_; }; //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -class GetTableRowCountTask : public GrpcBaseTask { +class CountTableTask : public GrpcBaseTask { public: static BaseTaskPtr Create(const std::string &table_name, int64_t &row_count); protected: - GetTableRowCountTask(const std::string &table_name, int64_t &row_count); + CountTableTask(const std::string &table_name, int64_t &row_count); ServerError OnExecute() override; @@ -184,13 +184,13 @@ private: }; //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -class PingTask : public GrpcBaseTask { +class CmdTask : public GrpcBaseTask { public: static BaseTaskPtr Create(const std::string &cmd, std::string &result); protected: - PingTask(const std::string &cmd, std::string &result); + CmdTask(const std::string &cmd, std::string &result); ServerError OnExecute() override; @@ -199,6 +199,72 @@ private: std::string cmd_; std::string &result_; }; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +class DeleteByRangeTask : public GrpcBaseTask { +public: + static BaseTaskPtr + Create(const ::milvus::grpc::DeleteByRangeParam &delete_by_range_param); + +protected: + DeleteByRangeTask(const ::milvus::grpc::DeleteByRangeParam &delete_by_range_param); + + ServerError + OnExecute() override; + +private: + ::milvus::grpc::DeleteByRangeParam delete_by_range_param_; +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +class PreloadTableTask : public GrpcBaseTask { +public: + static BaseTaskPtr + Create(const std::string &table_name); + +protected: + PreloadTableTask(const std::string &table_name); + + ServerError + OnExecute() override; + +private: + std::string table_name_; +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +class DescribeIndexTask : public GrpcBaseTask { +public: + static BaseTaskPtr + Create(const std::string &table_name, + ::milvus::grpc::IndexParam &index_param); + +protected: + DescribeIndexTask(const std::string &table_name, + ::milvus::grpc::IndexParam &index_param); + + ServerError + OnExecute() override; + +private: + std::string table_name_; + ::milvus::grpc::IndexParam& index_param_; +}; + +//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// +class DropIndexTask : public GrpcBaseTask { +public: + static BaseTaskPtr + Create(const std::string &table_name); + +protected: + DropIndexTask(const std::string &table_name); + +private: + std::string table_name_; + +}; + } } } diff --git a/cpp/start_server.sh b/cpp/start_server.sh index 50bf8b84a866a743fd43ce9e421568421ba28202..e215242471367783ec24c703dc773405808e60a7 100755 --- a/cpp/start_server.sh +++ b/cpp/start_server.sh @@ -1,4 +1,4 @@ #!/bin/bash -./cmake_build/src/milvus_server -c ./conf/server_config.yaml -l ./conf/log_config.conf & +./cmake_build/src/milvus_grpc_server -c ./conf/server_config.yaml -l ./conf/log_config.conf & diff --git a/cpp/unittest/CMakeLists.txt b/cpp/unittest/CMakeLists.txt index 287fe5112815be9165d6c333c9ce2c9d2e6ef446..ac666c86a999b45ad2d453af0d021e9ba7923363 100644 --- a/cpp/unittest/CMakeLists.txt +++ b/cpp/unittest/CMakeLists.txt @@ -42,5 +42,5 @@ add_subdirectory(server) add_subdirectory(db) add_subdirectory(knowhere) add_subdirectory(metrics) -add_subdirectory(scheduler) +#add_subdirectory(scheduler) #add_subdirectory(storage) \ No newline at end of file