From bbcd898f86ea9be2a65f98aa78ac5e20cb840b1e Mon Sep 17 00:00:00 2001 From: zhiru Date: Tue, 6 Aug 2019 18:04:37 +0800 Subject: [PATCH] cmake: add grpc Former-commit-id: bea01b348d3db6526703a3d31d3d9b3bcd09782c --- cpp/CMakeLists.txt | 6 - cpp/build.sh | 7 +- cpp/cmake/DefineOptions.cmake | 2 +- cpp/cmake/ThirdPartyPackages.cmake | 94 +- cpp/src/CMakeLists.txt | 36 +- cpp/src/grpc/cpp_gen.sh | 0 cpp/src/grpc/gen-milvus/milvus.grpc.pb.cc | 152 +- cpp/src/grpc/gen-milvus/milvus.grpc.pb.h | 149 +- cpp/src/grpc/gen-milvus/milvus.pb.cc | 3252 +++++++++------------ cpp/src/grpc/gen-milvus/milvus.pb.h | 1831 +++++++----- cpp/src/grpc/gen-status/status.grpc.pb.h | 13 +- cpp/src/grpc/gen-status/status.pb.cc | 267 +- cpp/src/grpc/gen-status/status.pb.h | 197 +- cpp/src/sdk/CMakeLists.txt | 2 +- cpp/src/sdk/examples/CMakeLists.txt | 2 +- cpp/thirdparty/versions.txt | 1 + 16 files changed, 3025 insertions(+), 2986 deletions(-) mode change 100755 => 100644 cpp/src/grpc/cpp_gen.sh diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index 528168d2..5082774b 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -129,12 +129,6 @@ if (MILVUS_ENABLE_PROFILING STREQUAL "ON") ADD_DEFINITIONS(-DMILVUS_ENABLE_PROFILING) endif() -#set(MILVUS_ENABLE_THRIFT "ON") -message("MILVUS_ENABLE_THRIFT = ${MILVUS_ENABLE_THRIFT}") -if (MILVUS_ENABLE_THRIFT STREQUAL "ON") - ADD_DEFINITIONS(-DMILVUS_ENABLE_THRIFT) -endif() - include_directories(${MILVUS_ENGINE_INCLUDE}) include_directories(${MILVUS_ENGINE_SRC}) diff --git a/cpp/build.sh b/cpp/build.sh index 11af459b..984ae9d3 100755 --- a/cpp/build.sh +++ b/cpp/build.sh @@ -11,6 +11,7 @@ PROFILING="OFF" BUILD_FAISS_WITH_MKL="OFF" USE_JFROG_CACHE="OFF" KNOWHERE_OPTS="" +MILVUS_WITH_THRIFT="OFF" while getopts "p:d:t:uhlrcgmj" arg do @@ -50,6 +51,9 @@ do USE_JFROG_CACHE="ON" KNOWHERE_OPTS="${KNOWHERE_OPTS} -j" ;; + e) + MILVUS_WITH_THRIFT="ON" + ;; h) # help echo " @@ -64,6 +68,7 @@ parameter: -g: profiling(default: OFF) -m: build faiss with MKL(default: OFF) -j: use jfrog cache build directory +-e: enable thrift usage: ./build.sh -t \${BUILD_TYPE} [-u] [-h] [-g] [-r] [-c] [-m] [-j] @@ -102,7 +107,7 @@ if [[ ${MAKE_CLEAN} == "ON" ]]; then -DMILVUS_DB_PATH=${DB_PATH} \ -DMILVUS_ENABLE_PROFILING=${PROFILING} \ -DBUILD_FAISS_WITH_MKL=${BUILD_FAISS_WITH_MKL} \ - -DMILVUS_ENABLE_THRIFT=${MILVUS_ENABLE_THRIFT} \ + -DMILVUS_WITH_THRIFT=${MILVUS_WITH_THRIFT} \ -DKNOWHERE_BUILD_DIR=${KNOWHERE_BUILD_DIR} \ -DUSE_JFROG_CACHE=${USE_JFROG_CACHE} \ $@ ../" diff --git a/cpp/cmake/DefineOptions.cmake b/cpp/cmake/DefineOptions.cmake index af89dccb..d0624bd0 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 d176f510..1a4601e4 100644 --- a/cpp/cmake/ThirdPartyPackages.cmake +++ b/cpp/cmake/ThirdPartyPackages.cmake @@ -39,7 +39,8 @@ set(MILVUS_THIRDPARTY_DEPENDENCIES ZSTD AWS libunwind - gperftools) + gperftools + GRPC) message(STATUS "Using ${MILVUS_DEPENDENCY_SOURCE} approach to find dependencies") @@ -97,6 +98,8 @@ macro(build_dependency DEPENDENCY_NAME) build_libunwind() elseif("${DEPENDENCY_NAME}" STREQUAL "gperftools") build_gperftools() + elseif("${DEPENDENCY_NAME}" STREQUAL "GRPC") + build_grpc() else() message(FATAL_ERROR "Unknown thirdparty dependency to build: ${DEPENDENCY_NAME}") endif () @@ -448,6 +451,13 @@ else() "https://github.com/gperftools/gperftools/releases/download/gperftools-${GPERFTOOLS_VERSION}/gperftools-${GPERFTOOLS_VERSION}.tar.gz") endif() +if(DEFINED ENV{MILVUS_GRPC_URL}) + set(GRPC_SOURCE_URL "$ENV{MILVUS_GRPC_URL}") +else() + set(GRPC_SOURCE_URL + "http://git.zilliz.tech/kun.yu/grpc/-/archive/master/grpc-master.tar.gz") +endif() + # ---------------------------------------------------------------------- # ARROW @@ -2338,7 +2348,6 @@ endmacro() if(MILVUS_WITH_LIBUNWIND) resolve_dependency(libunwind) - # TODO: Don't use global includes but rather target_include_directories get_target_property(LIBUNWIND_INCLUDE_DIR libunwind INTERFACE_INCLUDE_DIRECTORIES) include_directories(SYSTEM ${LIBUNWIND_INCLUDE_DIR}) endif() @@ -2369,8 +2378,6 @@ macro(build_gperftools) BUILD_BYPRODUCTS ${GPERFTOOLS_STATIC_LIB}) - ExternalProject_Add_StepDependencies(gperftools_ep build libunwind_ep) - file(MAKE_DIRECTORY "${GPERFTOOLS_INCLUDE_DIR}") add_library(gperftools STATIC IMPORTED) @@ -2386,8 +2393,85 @@ endmacro() if(MILVUS_WITH_GPERFTOOLS) resolve_dependency(gperftools) - # TODO: Don't use global includes but rather target_include_directories get_target_property(GPERFTOOLS_INCLUDE_DIR gperftools INTERFACE_INCLUDE_DIRECTORIES) include_directories(SYSTEM ${GPERFTOOLS_INCLUDE_DIR}) link_directories(SYSTEM ${GPERFTOOLS_PREFIX}/lib) endif() + +# ---------------------------------------------------------------------- +# GRPC + +macro(build_grpc) + message(STATUS "Building GRPC-${GRPC_VERSION} from source") + set(GRPC_PREFIX "${CMAKE_CURRENT_BINARY_DIR}/grpc_ep-prefix/src/grpc_ep/install") + set(GRPC_INCLUDE_DIR "${GRPC_PREFIX}/include") + set(GRPC_STATIC_LIB "${GRPC_PREFIX}/lib/${CMAKE_STATIC_LIBRARY_PREFIX}grpc${CMAKE_STATIC_LIBRARY_SUFFIX}") + set(GRPC++_STATIC_LIB "${GRPC_PREFIX}/lib/${CMAKE_STATIC_LIBRARY_PREFIX}grpc++${CMAKE_STATIC_LIBRARY_SUFFIX}") + set(GRPCPP_CHANNELZ_STATIC_LIB "${GRPC_PREFIX}/lib/${CMAKE_STATIC_LIBRARY_PREFIX}grpcpp_channelz${CMAKE_STATIC_LIBRARY_SUFFIX}") + set(GRPC_PROTOBUF_LIB_DIR "${CMAKE_CURRENT_BINARY_DIR}/grpc_ep-prefix/src/grpc_ep/libs/opt/protobuf") + set(GRPC_PROTOBUF_STATIC_LIB "${GRPC_PROTOBUF_LIB_DIR}/${CMAKE_STATIC_LIBRARY_PREFIX}protobuf${CMAKE_STATIC_LIBRARY_SUFFIX}") + set(GRPC_PROTOC_STATIC_LIB "${GRPC_PROTOBUF_LIB_DIR}/${CMAKE_STATIC_LIBRARY_PREFIX}protoc${CMAKE_STATIC_LIBRARY_SUFFIX}") + + externalproject_add(grpc_ep + URL + ${GRPC_SOURCE_URL} + ${EP_LOG_OPTIONS} + CONFIGURE_COMMAND + "" + BUILD_IN_SOURCE + 1 + BUILD_COMMAND + ${MAKE} ${MAKE_BUILD_ARGS} prefix=${GRPC_PREFIX} + INSTALL_COMMAND + ${MAKE} install prefix=${GRPC_PREFIX} + BUILD_BYPRODUCTS + ${GRPC_STATIC_LIB} + ${GRPC++_STATIC_LIB} + ${GRPCPP_CHANNELZ_STATIC_LIB} + ${GRPC_PROTOBUF_STATIC_LIB} + ${GRPC_PROTOC_STATIC_LIB}) + + file(MAKE_DIRECTORY "${GRPC_INCLUDE_DIR}") + + add_library(grpc STATIC IMPORTED) + set_target_properties(grpc + PROPERTIES IMPORTED_LOCATION "${GRPC_STATIC_LIB}" + INTERFACE_INCLUDE_DIRECTORIES "${GRPC_INCLUDE_DIR}") + + add_library(grpc++ STATIC IMPORTED) + set_target_properties(grpc++ + PROPERTIES IMPORTED_LOCATION "${GRPC++_STATIC_LIB}" + INTERFACE_INCLUDE_DIRECTORIES "${GRPC_INCLUDE_DIR}") + + add_library(grpcpp_channelz STATIC IMPORTED) + set_target_properties(grpcpp_channelz + PROPERTIES IMPORTED_LOCATION "${GRPCPP_CHANNELZ_STATIC_LIB}" + INTERFACE_INCLUDE_DIRECTORIES "${GRPC_INCLUDE_DIR}") + + add_library(grpc_protobuf STATIC IMPORTED) + set_target_properties(grpc_protobuf + PROPERTIES IMPORTED_LOCATION "${GRPC_PROTOBUF_STATIC_LIB}") + + add_library(grpc_protoc STATIC IMPORTED) + set_target_properties(grpc_protoc + PROPERTIES IMPORTED_LOCATION "${GRPC_PROTOC_STATIC_LIB}") + + add_dependencies(grpc grpc_ep) + add_dependencies(grpc++ grpc_ep) + add_dependencies(grpcpp_channelz grpc_ep) + add_dependencies(grpc_protobuf grpc_ep) + add_dependencies(grpc_protoc grpc_ep) +endmacro() + +if(NOT MILVUS_WITH_THRIFT STREQUAL "ON") + resolve_dependency(GRPC) + + get_target_property(GRPC_INCLUDE_DIR grpc INTERFACE_INCLUDE_DIRECTORIES) + include_directories(SYSTEM ${GRPC_INCLUDE_DIR}) + link_directories(SYSTEM ${GRPC_PREFIX}/lib) + + set(GRPC_THIRD_PARTY_DIR ${CMAKE_CURRENT_BINARY_DIR}/grpc_ep-prefix/src/grpc_ep/third_party) + include_directories(SYSTEM ${GRPC_THIRD_PARTY_DIR}/protobuf/src) + link_directories(SYSTEM ${GRPC_PROTOBUF_LIB_DIR}) + +endif() diff --git a/cpp/src/CMakeLists.txt b/cpp/src/CMakeLists.txt index e7f24fe8..dd2a1958 100644 --- a/cpp/src/CMakeLists.txt +++ b/cpp/src/CMakeLists.txt @@ -35,7 +35,7 @@ set(license_generator_files license/LicenseLibrary.cpp ) -set(service_files +set(thrift_service_files thrift/gen-cpp/MilvusService.cpp thrift/gen-cpp/milvus_constants.cpp thrift/gen-cpp/milvus_types.cpp @@ -43,6 +43,11 @@ set(service_files metrics/SystemInfo.h server/thrift_impl/ThreadPoolServer.cpp server/thrift_impl/ThreadPoolServer.h + ) + +set(grpc_service_files + metrics/SystemInfo.cpp + metrics/SystemInfo.h grpc/gen-milvus/milvus.grpc.pb.cc grpc/gen-milvus/milvus.pb.cc grpc/gen-status/status.grpc.pb.cc @@ -73,6 +78,18 @@ include_directories(/usr/include/mysql) include_directories(grpc/gen-status) include_directories(grpc/gen-milvus) +if (MILVUS_WITH_THRIFT STREQUAL "ON") + set(client_lib + thrift) +else() + set(client_lib + grpcpp_channelz + grpc++ + grpc + grpc_protobuf + grpc_protoc) +endif() + set(third_party_libs knowhere SPTAGLibStatic @@ -83,10 +100,7 @@ set(third_party_libs lapack easyloggingpp sqlite - thrift - grpc - grpc++ - grpcpp_channelz + ${client_lib} yaml-cpp prometheus-cpp-push prometheus-cpp-pull @@ -200,13 +214,13 @@ set(knowhere_libs tbb ) -if (MILVUS_ENABLE_THRIFT STREQUAL "ON") +if (MILVUS_WITH_THRIFT STREQUAL "ON") add_executable(milvus_thrift_server ${config_files} ${server_files} ${thriftserver_files} ${utils_files} - ${service_files} + ${thrift_service_files} ${metrics_files} ) else() @@ -215,20 +229,20 @@ else() ${server_files} ${grpcserver_files} ${utils_files} - ${service_files} + ${grpc_service_files} ${metrics_files} ) endif() if (ENABLE_LICENSE STREQUAL "ON") - if(MILVUS_ENABLE_THRIFT STREQUAL "ON") + 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_ENABLE_THRIFT STREQUAL "ON") + 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}) @@ -247,7 +261,7 @@ if (ENABLE_LICENSE STREQUAL "ON") install(TARGETS license_generator DESTINATION bin) endif () -if (MILVUS_ENABLE_THRIFT STREQUAL "ON") +if (MILVUS_WITH_THRIFT STREQUAL "ON") install(TARGETS milvus_thrift_server DESTINATION bin) else() install(TARGETS milvus_grpc_server DESTINATION bin) diff --git a/cpp/src/grpc/cpp_gen.sh b/cpp/src/grpc/cpp_gen.sh old mode 100755 new mode 100644 diff --git a/cpp/src/grpc/gen-milvus/milvus.grpc.pb.cc b/cpp/src/grpc/gen-milvus/milvus.grpc.pb.cc index ef9fa3d4..96feaaf0 100644 --- a/cpp/src/grpc/gen-milvus/milvus.grpc.pb.cc +++ b/cpp/src/grpc/gen-milvus/milvus.grpc.pb.cc @@ -58,19 +58,27 @@ MilvusService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& chan } void MilvusService::Stub::experimental_async::CreateTable(::grpc::ClientContext* context, const ::milvus::grpc::TableSchema* request, ::milvus::grpc::Status* response, std::function f) { - return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateTable_, context, request, response, std::move(f)); + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateTable_, context, request, response, std::move(f)); } void MilvusService::Stub::experimental_async::CreateTable(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, std::function f) { - return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateTable_, context, request, response, std::move(f)); + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateTable_, context, request, response, std::move(f)); +} + +void MilvusService::Stub::experimental_async::CreateTable(::grpc::ClientContext* context, const ::milvus::grpc::TableSchema* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateTable_, context, request, response, reactor); +} + +void MilvusService::Stub::experimental_async::CreateTable(::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_CreateTable_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* MilvusService::Stub::AsyncCreateTableRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableSchema& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::Status>::Create(channel_.get(), cq, rpcmethod_CreateTable_, context, request, true); + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::Status>::Create(channel_.get(), cq, rpcmethod_CreateTable_, context, request, true); } ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* MilvusService::Stub::PrepareAsyncCreateTableRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableSchema& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::Status>::Create(channel_.get(), cq, rpcmethod_CreateTable_, context, request, false); + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::Status>::Create(channel_.get(), cq, rpcmethod_CreateTable_, context, request, false); } ::grpc::Status MilvusService::Stub::HasTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::milvus::grpc::BoolReply* response) { @@ -78,19 +86,27 @@ void MilvusService::Stub::experimental_async::CreateTable(::grpc::ClientContext* } void MilvusService::Stub::experimental_async::HasTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::BoolReply* response, std::function f) { - return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_HasTable_, context, request, response, std::move(f)); + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_HasTable_, context, request, response, std::move(f)); } void MilvusService::Stub::experimental_async::HasTable(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::BoolReply* response, std::function f) { - return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_HasTable_, context, request, response, std::move(f)); + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_HasTable_, context, request, response, std::move(f)); +} + +void MilvusService::Stub::experimental_async::HasTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::BoolReply* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_HasTable_, context, request, response, reactor); +} + +void MilvusService::Stub::experimental_async::HasTable(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::BoolReply* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_HasTable_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::milvus::grpc::BoolReply>* MilvusService::Stub::AsyncHasTableRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::BoolReply>::Create(channel_.get(), cq, rpcmethod_HasTable_, context, request, true); + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::BoolReply>::Create(channel_.get(), cq, rpcmethod_HasTable_, context, request, true); } ::grpc::ClientAsyncResponseReader< ::milvus::grpc::BoolReply>* MilvusService::Stub::PrepareAsyncHasTableRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::BoolReply>::Create(channel_.get(), cq, rpcmethod_HasTable_, context, request, false); + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::BoolReply>::Create(channel_.get(), cq, rpcmethod_HasTable_, context, request, false); } ::grpc::Status MilvusService::Stub::DropTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::milvus::grpc::Status* response) { @@ -98,19 +114,27 @@ void MilvusService::Stub::experimental_async::HasTable(::grpc::ClientContext* co } void MilvusService::Stub::experimental_async::DropTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response, std::function f) { - return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DropTable_, context, request, response, std::move(f)); + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DropTable_, context, request, response, std::move(f)); } void MilvusService::Stub::experimental_async::DropTable(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, std::function f) { - return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DropTable_, context, request, response, std::move(f)); + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DropTable_, context, request, response, std::move(f)); +} + +void MilvusService::Stub::experimental_async::DropTable(::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_DropTable_, context, request, response, reactor); +} + +void MilvusService::Stub::experimental_async::DropTable(::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_DropTable_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* MilvusService::Stub::AsyncDropTableRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::Status>::Create(channel_.get(), cq, rpcmethod_DropTable_, context, request, true); + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::Status>::Create(channel_.get(), cq, rpcmethod_DropTable_, context, request, true); } ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* MilvusService::Stub::PrepareAsyncDropTableRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::Status>::Create(channel_.get(), cq, rpcmethod_DropTable_, context, request, false); + 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) { @@ -118,19 +142,27 @@ void MilvusService::Stub::experimental_async::DropTable(::grpc::ClientContext* c } void MilvusService::Stub::experimental_async::BuildIndex(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response, std::function f) { - return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_BuildIndex_, context, request, response, std::move(f)); + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_BuildIndex_, 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) { - return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_BuildIndex_, context, request, response, std::move(f)); + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_BuildIndex_, 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::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); } ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* MilvusService::Stub::AsyncBuildIndexRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::Status>::Create(channel_.get(), cq, rpcmethod_BuildIndex_, context, request, true); + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::Status>::Create(channel_.get(), cq, rpcmethod_BuildIndex_, context, request, true); } ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* MilvusService::Stub::PrepareAsyncBuildIndexRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::Status>::Create(channel_.get(), cq, rpcmethod_BuildIndex_, context, request, false); + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::Status>::Create(channel_.get(), cq, rpcmethod_BuildIndex_, context, request, false); } ::grpc::Status MilvusService::Stub::InsertVector(::grpc::ClientContext* context, const ::milvus::grpc::InsertInfos& request, ::milvus::grpc::VectorIds* response) { @@ -138,51 +170,59 @@ void MilvusService::Stub::experimental_async::BuildIndex(::grpc::ClientContext* } void MilvusService::Stub::experimental_async::InsertVector(::grpc::ClientContext* context, const ::milvus::grpc::InsertInfos* request, ::milvus::grpc::VectorIds* response, std::function f) { - return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_InsertVector_, context, request, response, std::move(f)); + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_InsertVector_, 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) { - return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_InsertVector_, context, request, response, std::move(f)); + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_InsertVector_, 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::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); } ::grpc::ClientAsyncResponseReader< ::milvus::grpc::VectorIds>* MilvusService::Stub::AsyncInsertVectorRaw(::grpc::ClientContext* context, const ::milvus::grpc::InsertInfos& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::VectorIds>::Create(channel_.get(), cq, rpcmethod_InsertVector_, context, request, true); + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::VectorIds>::Create(channel_.get(), cq, rpcmethod_InsertVector_, context, request, true); } ::grpc::ClientAsyncResponseReader< ::milvus::grpc::VectorIds>* MilvusService::Stub::PrepareAsyncInsertVectorRaw(::grpc::ClientContext* context, const ::milvus::grpc::InsertInfos& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::VectorIds>::Create(channel_.get(), cq, rpcmethod_InsertVector_, context, request, false); + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::VectorIds>::Create(channel_.get(), cq, rpcmethod_InsertVector_, context, request, false); } ::grpc::ClientReader< ::milvus::grpc::TopKQueryResult>* MilvusService::Stub::SearchVectorRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchVectorInfos& request) { - return ::grpc::internal::ClientReaderFactory< ::milvus::grpc::TopKQueryResult>::Create(channel_.get(), rpcmethod_SearchVector_, context, request); + return ::grpc_impl::internal::ClientReaderFactory< ::milvus::grpc::TopKQueryResult>::Create(channel_.get(), rpcmethod_SearchVector_, context, request); } void MilvusService::Stub::experimental_async::SearchVector(::grpc::ClientContext* context, ::milvus::grpc::SearchVectorInfos* request, ::grpc::experimental::ClientReadReactor< ::milvus::grpc::TopKQueryResult>* reactor) { - ::grpc::internal::ClientCallbackReaderFactory< ::milvus::grpc::TopKQueryResult>::Create(stub_->channel_.get(), stub_->rpcmethod_SearchVector_, context, request, reactor); + ::grpc_impl::internal::ClientCallbackReaderFactory< ::milvus::grpc::TopKQueryResult>::Create(stub_->channel_.get(), stub_->rpcmethod_SearchVector_, 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::internal::ClientAsyncReaderFactory< ::milvus::grpc::TopKQueryResult>::Create(channel_.get(), cq, rpcmethod_SearchVector_, context, request, true, 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::PrepareAsyncSearchVectorRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchVectorInfos& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncReaderFactory< ::milvus::grpc::TopKQueryResult>::Create(channel_.get(), cq, rpcmethod_SearchVector_, context, request, false, nullptr); + return ::grpc_impl::internal::ClientAsyncReaderFactory< ::milvus::grpc::TopKQueryResult>::Create(channel_.get(), cq, rpcmethod_SearchVector_, context, request, false, nullptr); } ::grpc::ClientReader< ::milvus::grpc::TopKQueryResult>* MilvusService::Stub::SearchVectorInFilesRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchVectorInFilesInfos& request) { - return ::grpc::internal::ClientReaderFactory< ::milvus::grpc::TopKQueryResult>::Create(channel_.get(), rpcmethod_SearchVectorInFiles_, context, request); + return ::grpc_impl::internal::ClientReaderFactory< ::milvus::grpc::TopKQueryResult>::Create(channel_.get(), rpcmethod_SearchVectorInFiles_, context, request); } void MilvusService::Stub::experimental_async::SearchVectorInFiles(::grpc::ClientContext* context, ::milvus::grpc::SearchVectorInFilesInfos* request, ::grpc::experimental::ClientReadReactor< ::milvus::grpc::TopKQueryResult>* reactor) { - ::grpc::internal::ClientCallbackReaderFactory< ::milvus::grpc::TopKQueryResult>::Create(stub_->channel_.get(), stub_->rpcmethod_SearchVectorInFiles_, context, request, reactor); + ::grpc_impl::internal::ClientCallbackReaderFactory< ::milvus::grpc::TopKQueryResult>::Create(stub_->channel_.get(), stub_->rpcmethod_SearchVectorInFiles_, 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::internal::ClientAsyncReaderFactory< ::milvus::grpc::TopKQueryResult>::Create(channel_.get(), cq, rpcmethod_SearchVectorInFiles_, context, request, true, 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::PrepareAsyncSearchVectorInFilesRaw(::grpc::ClientContext* context, const ::milvus::grpc::SearchVectorInFilesInfos& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncReaderFactory< ::milvus::grpc::TopKQueryResult>::Create(channel_.get(), cq, rpcmethod_SearchVectorInFiles_, context, request, false, nullptr); + return ::grpc_impl::internal::ClientAsyncReaderFactory< ::milvus::grpc::TopKQueryResult>::Create(channel_.get(), cq, rpcmethod_SearchVectorInFiles_, context, request, false, nullptr); } ::grpc::Status MilvusService::Stub::DescribeTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::milvus::grpc::TableSchema* response) { @@ -190,19 +230,27 @@ void MilvusService::Stub::experimental_async::SearchVectorInFiles(::grpc::Client } void MilvusService::Stub::experimental_async::DescribeTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::TableSchema* response, std::function f) { - return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DescribeTable_, context, request, response, std::move(f)); + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DescribeTable_, context, request, response, std::move(f)); } void MilvusService::Stub::experimental_async::DescribeTable(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::TableSchema* response, std::function f) { - return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DescribeTable_, context, request, response, std::move(f)); + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DescribeTable_, context, request, response, std::move(f)); +} + +void MilvusService::Stub::experimental_async::DescribeTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::TableSchema* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DescribeTable_, context, request, response, reactor); +} + +void MilvusService::Stub::experimental_async::DescribeTable(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::TableSchema* response, ::grpc::experimental::ClientUnaryReactor* reactor) { + ::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DescribeTable_, context, request, response, reactor); } ::grpc::ClientAsyncResponseReader< ::milvus::grpc::TableSchema>* MilvusService::Stub::AsyncDescribeTableRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::TableSchema>::Create(channel_.get(), cq, rpcmethod_DescribeTable_, context, request, true); + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::TableSchema>::Create(channel_.get(), cq, rpcmethod_DescribeTable_, context, request, true); } ::grpc::ClientAsyncResponseReader< ::milvus::grpc::TableSchema>* MilvusService::Stub::PrepareAsyncDescribeTableRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::TableSchema>::Create(channel_.get(), cq, rpcmethod_DescribeTable_, context, request, false); + 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) { @@ -210,35 +258,43 @@ void MilvusService::Stub::experimental_async::DescribeTable(::grpc::ClientContex } void MilvusService::Stub::experimental_async::GetTableRowCount(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::TableRowCount* response, std::function f) { - return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTableRowCount_, context, request, response, std::move(f)); + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTableRowCount_, 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) { - return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTableRowCount_, context, request, response, std::move(f)); + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTableRowCount_, 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::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); } ::grpc::ClientAsyncResponseReader< ::milvus::grpc::TableRowCount>* MilvusService::Stub::AsyncGetTableRowCountRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::TableRowCount>::Create(channel_.get(), cq, rpcmethod_GetTableRowCount_, context, request, true); + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::TableRowCount>::Create(channel_.get(), cq, rpcmethod_GetTableRowCount_, context, request, true); } ::grpc::ClientAsyncResponseReader< ::milvus::grpc::TableRowCount>* MilvusService::Stub::PrepareAsyncGetTableRowCountRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::TableRowCount>::Create(channel_.get(), cq, rpcmethod_GetTableRowCount_, context, request, false); + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::TableRowCount>::Create(channel_.get(), cq, rpcmethod_GetTableRowCount_, context, request, false); } ::grpc::ClientReader< ::milvus::grpc::TableName>* MilvusService::Stub::ShowTablesRaw(::grpc::ClientContext* context, const ::milvus::grpc::Command& request) { - return ::grpc::internal::ClientReaderFactory< ::milvus::grpc::TableName>::Create(channel_.get(), rpcmethod_ShowTables_, context, request); + return ::grpc_impl::internal::ClientReaderFactory< ::milvus::grpc::TableName>::Create(channel_.get(), rpcmethod_ShowTables_, context, request); } void MilvusService::Stub::experimental_async::ShowTables(::grpc::ClientContext* context, ::milvus::grpc::Command* request, ::grpc::experimental::ClientReadReactor< ::milvus::grpc::TableName>* reactor) { - ::grpc::internal::ClientCallbackReaderFactory< ::milvus::grpc::TableName>::Create(stub_->channel_.get(), stub_->rpcmethod_ShowTables_, context, request, reactor); + ::grpc_impl::internal::ClientCallbackReaderFactory< ::milvus::grpc::TableName>::Create(stub_->channel_.get(), stub_->rpcmethod_ShowTables_, context, request, reactor); } ::grpc::ClientAsyncReader< ::milvus::grpc::TableName>* MilvusService::Stub::AsyncShowTablesRaw(::grpc::ClientContext* context, const ::milvus::grpc::Command& request, ::grpc::CompletionQueue* cq, void* tag) { - return ::grpc::internal::ClientAsyncReaderFactory< ::milvus::grpc::TableName>::Create(channel_.get(), cq, rpcmethod_ShowTables_, context, request, true, tag); + return ::grpc_impl::internal::ClientAsyncReaderFactory< ::milvus::grpc::TableName>::Create(channel_.get(), cq, rpcmethod_ShowTables_, context, request, true, tag); } ::grpc::ClientAsyncReader< ::milvus::grpc::TableName>* MilvusService::Stub::PrepareAsyncShowTablesRaw(::grpc::ClientContext* context, const ::milvus::grpc::Command& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncReaderFactory< ::milvus::grpc::TableName>::Create(channel_.get(), cq, rpcmethod_ShowTables_, context, request, false, nullptr); + 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) { @@ -246,19 +302,27 @@ void MilvusService::Stub::experimental_async::ShowTables(::grpc::ClientContext* } void MilvusService::Stub::experimental_async::Ping(::grpc::ClientContext* context, const ::milvus::grpc::Command* request, ::milvus::grpc::ServerStatus* response, std::function f) { - return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Ping_, context, request, response, std::move(f)); + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Ping_, 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) { - return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Ping_, context, request, response, std::move(f)); + ::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Ping_, 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::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); } ::grpc::ClientAsyncResponseReader< ::milvus::grpc::ServerStatus>* MilvusService::Stub::AsyncPingRaw(::grpc::ClientContext* context, const ::milvus::grpc::Command& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::ServerStatus>::Create(channel_.get(), cq, rpcmethod_Ping_, context, request, true); + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::ServerStatus>::Create(channel_.get(), cq, rpcmethod_Ping_, context, request, true); } ::grpc::ClientAsyncResponseReader< ::milvus::grpc::ServerStatus>* MilvusService::Stub::PrepareAsyncPingRaw(::grpc::ClientContext* context, const ::milvus::grpc::Command& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::ServerStatus>::Create(channel_.get(), cq, rpcmethod_Ping_, context, request, false); + return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::ServerStatus>::Create(channel_.get(), cq, rpcmethod_Ping_, context, request, false); } MilvusService::Service::Service() { diff --git a/cpp/src/grpc/gen-milvus/milvus.grpc.pb.h b/cpp/src/grpc/gen-milvus/milvus.grpc.pb.h index 24e79df3..10a972aa 100644 --- a/cpp/src/grpc/gen-milvus/milvus.grpc.pb.h +++ b/cpp/src/grpc/gen-milvus/milvus.grpc.pb.h @@ -11,20 +11,29 @@ #include #include #include +#include +#include #include #include #include #include +#include #include #include #include #include -namespace grpc { +namespace grpc_impl { class CompletionQueue; -class Channel; class ServerCompletionQueue; class ServerContext; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental } // namespace grpc namespace milvus { @@ -221,6 +230,8 @@ class MilvusService final { // virtual void CreateTable(::grpc::ClientContext* context, const ::milvus::grpc::TableSchema* request, ::milvus::grpc::Status* response, std::function) = 0; virtual void CreateTable(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, std::function) = 0; + virtual void CreateTable(::grpc::ClientContext* context, const ::milvus::grpc::TableSchema* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void CreateTable(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; // * // @brief Test table existence method // @@ -230,6 +241,8 @@ class MilvusService final { // virtual void HasTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::BoolReply* response, std::function) = 0; virtual void HasTable(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::BoolReply* response, std::function) = 0; + virtual void HasTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::BoolReply* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void HasTable(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::BoolReply* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; // * // @brief Delete table method // @@ -239,6 +252,8 @@ class MilvusService final { // virtual void DropTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response, std::function) = 0; virtual void DropTable(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, std::function) = 0; + virtual void DropTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void DropTable(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; // * // @brief Build index by table method // @@ -248,6 +263,8 @@ class MilvusService final { // 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; // * // @brief Add vector array to table // @@ -259,6 +276,8 @@ class MilvusService final { // @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; // * // @brief Query vector // @@ -293,6 +312,8 @@ class MilvusService final { // @return table schema virtual void DescribeTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::TableSchema* response, std::function) = 0; virtual void DescribeTable(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::TableSchema* response, std::function) = 0; + virtual void DescribeTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::TableSchema* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; + virtual void DescribeTable(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::TableSchema* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; // * // @brief Get table schema // @@ -303,6 +324,8 @@ class MilvusService final { // @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; // * // @brief List all tables in database // @@ -319,6 +342,8 @@ class MilvusService final { // @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 class experimental_async_interface* experimental_async() { return nullptr; } private: @@ -439,23 +464,39 @@ class MilvusService final { public: void CreateTable(::grpc::ClientContext* context, const ::milvus::grpc::TableSchema* request, ::milvus::grpc::Status* response, std::function) override; void CreateTable(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, std::function) override; + void CreateTable(::grpc::ClientContext* context, const ::milvus::grpc::TableSchema* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void CreateTable(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; void HasTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::BoolReply* response, std::function) override; void HasTable(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::BoolReply* response, std::function) override; + void HasTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::BoolReply* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; + void HasTable(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::BoolReply* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; void DropTable(::grpc::ClientContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response, std::function) override; 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 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 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; private: friend class Stub; explicit experimental_async(Stub* stub): stub_(stub) { } @@ -838,7 +879,7 @@ class MilvusService final { public: ExperimentalWithCallbackMethod_CreateTable() { ::grpc::Service::experimental().MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::milvus::grpc::TableSchema, ::milvus::grpc::Status>( + new ::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::TableSchema, ::milvus::grpc::Status>( [this](::grpc::ServerContext* context, const ::milvus::grpc::TableSchema* request, ::milvus::grpc::Status* response, @@ -846,6 +887,12 @@ class MilvusService final { return this->CreateTable(context, request, response, controller); })); } + void SetMessageAllocatorFor_CreateTable( + ::grpc::experimental::MessageAllocator< ::milvus::grpc::TableSchema, ::milvus::grpc::Status>* allocator) { + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::TableSchema, ::milvus::grpc::Status>*>( + ::grpc::Service::experimental().GetHandler(0)) + ->SetMessageAllocator(allocator); + } ~ExperimentalWithCallbackMethod_CreateTable() override { BaseClassMustBeDerivedFromService(this); } @@ -863,7 +910,7 @@ class MilvusService final { public: ExperimentalWithCallbackMethod_HasTable() { ::grpc::Service::experimental().MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::milvus::grpc::TableName, ::milvus::grpc::BoolReply>( + new ::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::TableName, ::milvus::grpc::BoolReply>( [this](::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::BoolReply* response, @@ -871,6 +918,12 @@ class MilvusService final { return this->HasTable(context, request, response, controller); })); } + void SetMessageAllocatorFor_HasTable( + ::grpc::experimental::MessageAllocator< ::milvus::grpc::TableName, ::milvus::grpc::BoolReply>* allocator) { + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::TableName, ::milvus::grpc::BoolReply>*>( + ::grpc::Service::experimental().GetHandler(1)) + ->SetMessageAllocator(allocator); + } ~ExperimentalWithCallbackMethod_HasTable() override { BaseClassMustBeDerivedFromService(this); } @@ -888,7 +941,7 @@ class MilvusService final { public: ExperimentalWithCallbackMethod_DropTable() { ::grpc::Service::experimental().MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::milvus::grpc::TableName, ::milvus::grpc::Status>( + new ::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::TableName, ::milvus::grpc::Status>( [this](::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response, @@ -896,6 +949,12 @@ class MilvusService final { return this->DropTable(context, request, response, controller); })); } + void SetMessageAllocatorFor_DropTable( + ::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(2)) + ->SetMessageAllocator(allocator); + } ~ExperimentalWithCallbackMethod_DropTable() override { BaseClassMustBeDerivedFromService(this); } @@ -913,7 +972,7 @@ class MilvusService final { public: ExperimentalWithCallbackMethod_BuildIndex() { ::grpc::Service::experimental().MarkMethodCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::milvus::grpc::TableName, ::milvus::grpc::Status>( + new ::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::TableName, ::milvus::grpc::Status>( [this](::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::Status* response, @@ -921,6 +980,12 @@ class MilvusService final { return this->BuildIndex(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>*>( + ::grpc::Service::experimental().GetHandler(3)) + ->SetMessageAllocator(allocator); + } ~ExperimentalWithCallbackMethod_BuildIndex() override { BaseClassMustBeDerivedFromService(this); } @@ -938,7 +1003,7 @@ class MilvusService final { public: ExperimentalWithCallbackMethod_InsertVector() { ::grpc::Service::experimental().MarkMethodCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::milvus::grpc::InsertInfos, ::milvus::grpc::VectorIds>( + new ::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::InsertInfos, ::milvus::grpc::VectorIds>( [this](::grpc::ServerContext* context, const ::milvus::grpc::InsertInfos* request, ::milvus::grpc::VectorIds* response, @@ -946,6 +1011,12 @@ class MilvusService final { return this->InsertVector(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>*>( + ::grpc::Service::experimental().GetHandler(4)) + ->SetMessageAllocator(allocator); + } ~ExperimentalWithCallbackMethod_InsertVector() override { BaseClassMustBeDerivedFromService(this); } @@ -963,7 +1034,7 @@ class MilvusService final { public: ExperimentalWithCallbackMethod_SearchVector() { ::grpc::Service::experimental().MarkMethodCallback(5, - new ::grpc::internal::CallbackServerStreamingHandler< ::milvus::grpc::SearchVectorInfos, ::milvus::grpc::TopKQueryResult>( + new ::grpc_impl::internal::CallbackServerStreamingHandler< ::milvus::grpc::SearchVectorInfos, ::milvus::grpc::TopKQueryResult>( [this] { return this->SearchVector(); })); } ~ExperimentalWithCallbackMethod_SearchVector() override { @@ -975,7 +1046,7 @@ class MilvusService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } virtual ::grpc::experimental::ServerWriteReactor< ::milvus::grpc::SearchVectorInfos, ::milvus::grpc::TopKQueryResult>* SearchVector() { - return new ::grpc::internal::UnimplementedWriteReactor< + return new ::grpc_impl::internal::UnimplementedWriteReactor< ::milvus::grpc::SearchVectorInfos, ::milvus::grpc::TopKQueryResult>;} }; template @@ -985,7 +1056,7 @@ class MilvusService final { public: ExperimentalWithCallbackMethod_SearchVectorInFiles() { ::grpc::Service::experimental().MarkMethodCallback(6, - new ::grpc::internal::CallbackServerStreamingHandler< ::milvus::grpc::SearchVectorInFilesInfos, ::milvus::grpc::TopKQueryResult>( + new ::grpc_impl::internal::CallbackServerStreamingHandler< ::milvus::grpc::SearchVectorInFilesInfos, ::milvus::grpc::TopKQueryResult>( [this] { return this->SearchVectorInFiles(); })); } ~ExperimentalWithCallbackMethod_SearchVectorInFiles() override { @@ -997,7 +1068,7 @@ class MilvusService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } virtual ::grpc::experimental::ServerWriteReactor< ::milvus::grpc::SearchVectorInFilesInfos, ::milvus::grpc::TopKQueryResult>* SearchVectorInFiles() { - return new ::grpc::internal::UnimplementedWriteReactor< + return new ::grpc_impl::internal::UnimplementedWriteReactor< ::milvus::grpc::SearchVectorInFilesInfos, ::milvus::grpc::TopKQueryResult>;} }; template @@ -1007,7 +1078,7 @@ class MilvusService final { public: ExperimentalWithCallbackMethod_DescribeTable() { ::grpc::Service::experimental().MarkMethodCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::milvus::grpc::TableName, ::milvus::grpc::TableSchema>( + new ::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::TableName, ::milvus::grpc::TableSchema>( [this](::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::TableSchema* response, @@ -1015,6 +1086,12 @@ class MilvusService final { return this->DescribeTable(context, request, response, controller); })); } + void SetMessageAllocatorFor_DescribeTable( + ::grpc::experimental::MessageAllocator< ::milvus::grpc::TableName, ::milvus::grpc::TableSchema>* allocator) { + static_cast<::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::TableName, ::milvus::grpc::TableSchema>*>( + ::grpc::Service::experimental().GetHandler(7)) + ->SetMessageAllocator(allocator); + } ~ExperimentalWithCallbackMethod_DescribeTable() override { BaseClassMustBeDerivedFromService(this); } @@ -1032,7 +1109,7 @@ class MilvusService final { public: ExperimentalWithCallbackMethod_GetTableRowCount() { ::grpc::Service::experimental().MarkMethodCallback(8, - new ::grpc::internal::CallbackUnaryHandler< ::milvus::grpc::TableName, ::milvus::grpc::TableRowCount>( + new ::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::TableName, ::milvus::grpc::TableRowCount>( [this](::grpc::ServerContext* context, const ::milvus::grpc::TableName* request, ::milvus::grpc::TableRowCount* response, @@ -1040,6 +1117,12 @@ class MilvusService final { return this->GetTableRowCount(context, request, response, controller); })); } + void SetMessageAllocatorFor_GetTableRowCount( + ::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 { BaseClassMustBeDerivedFromService(this); } @@ -1057,7 +1140,7 @@ class MilvusService final { public: ExperimentalWithCallbackMethod_ShowTables() { ::grpc::Service::experimental().MarkMethodCallback(9, - new ::grpc::internal::CallbackServerStreamingHandler< ::milvus::grpc::Command, ::milvus::grpc::TableName>( + new ::grpc_impl::internal::CallbackServerStreamingHandler< ::milvus::grpc::Command, ::milvus::grpc::TableName>( [this] { return this->ShowTables(); })); } ~ExperimentalWithCallbackMethod_ShowTables() override { @@ -1069,7 +1152,7 @@ class MilvusService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } virtual ::grpc::experimental::ServerWriteReactor< ::milvus::grpc::Command, ::milvus::grpc::TableName>* ShowTables() { - return new ::grpc::internal::UnimplementedWriteReactor< + return new ::grpc_impl::internal::UnimplementedWriteReactor< ::milvus::grpc::Command, ::milvus::grpc::TableName>;} }; template @@ -1079,7 +1162,7 @@ class MilvusService final { public: ExperimentalWithCallbackMethod_Ping() { ::grpc::Service::experimental().MarkMethodCallback(10, - new ::grpc::internal::CallbackUnaryHandler< ::milvus::grpc::Command, ::milvus::grpc::ServerStatus>( + new ::grpc_impl::internal::CallbackUnaryHandler< ::milvus::grpc::Command, ::milvus::grpc::ServerStatus>( [this](::grpc::ServerContext* context, const ::milvus::grpc::Command* request, ::milvus::grpc::ServerStatus* response, @@ -1087,6 +1170,12 @@ class MilvusService final { return this->Ping(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>*>( + ::grpc::Service::experimental().GetHandler(10)) + ->SetMessageAllocator(allocator); + } ~ExperimentalWithCallbackMethod_Ping() override { BaseClassMustBeDerivedFromService(this); } @@ -1512,7 +1601,7 @@ class MilvusService final { public: ExperimentalWithRawCallbackMethod_CreateTable() { ::grpc::Service::experimental().MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this](::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, @@ -1537,7 +1626,7 @@ class MilvusService final { public: ExperimentalWithRawCallbackMethod_HasTable() { ::grpc::Service::experimental().MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this](::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, @@ -1562,7 +1651,7 @@ class MilvusService final { public: ExperimentalWithRawCallbackMethod_DropTable() { ::grpc::Service::experimental().MarkMethodRawCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this](::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, @@ -1587,7 +1676,7 @@ class MilvusService final { public: ExperimentalWithRawCallbackMethod_BuildIndex() { ::grpc::Service::experimental().MarkMethodRawCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this](::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, @@ -1612,7 +1701,7 @@ class MilvusService final { public: ExperimentalWithRawCallbackMethod_InsertVector() { ::grpc::Service::experimental().MarkMethodRawCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this](::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, @@ -1637,7 +1726,7 @@ class MilvusService final { public: ExperimentalWithRawCallbackMethod_SearchVector() { ::grpc::Service::experimental().MarkMethodRawCallback(5, - new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + new ::grpc_impl::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this] { return this->SearchVector(); })); } ~ExperimentalWithRawCallbackMethod_SearchVector() override { @@ -1649,7 +1738,7 @@ class MilvusService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* SearchVector() { - return new ::grpc::internal::UnimplementedWriteReactor< + return new ::grpc_impl::internal::UnimplementedWriteReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>;} }; template @@ -1659,7 +1748,7 @@ class MilvusService final { public: ExperimentalWithRawCallbackMethod_SearchVectorInFiles() { ::grpc::Service::experimental().MarkMethodRawCallback(6, - new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + new ::grpc_impl::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this] { return this->SearchVectorInFiles(); })); } ~ExperimentalWithRawCallbackMethod_SearchVectorInFiles() override { @@ -1671,7 +1760,7 @@ class MilvusService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* SearchVectorInFiles() { - return new ::grpc::internal::UnimplementedWriteReactor< + return new ::grpc_impl::internal::UnimplementedWriteReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>;} }; template @@ -1681,7 +1770,7 @@ class MilvusService final { public: ExperimentalWithRawCallbackMethod_DescribeTable() { ::grpc::Service::experimental().MarkMethodRawCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this](::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, @@ -1706,7 +1795,7 @@ class MilvusService final { public: ExperimentalWithRawCallbackMethod_GetTableRowCount() { ::grpc::Service::experimental().MarkMethodRawCallback(8, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this](::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, @@ -1731,7 +1820,7 @@ class MilvusService final { public: ExperimentalWithRawCallbackMethod_ShowTables() { ::grpc::Service::experimental().MarkMethodRawCallback(9, - new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + new ::grpc_impl::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this] { return this->ShowTables(); })); } ~ExperimentalWithRawCallbackMethod_ShowTables() override { @@ -1743,7 +1832,7 @@ class MilvusService final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } virtual ::grpc::experimental::ServerWriteReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* ShowTables() { - return new ::grpc::internal::UnimplementedWriteReactor< + return new ::grpc_impl::internal::UnimplementedWriteReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>;} }; template @@ -1753,7 +1842,7 @@ class MilvusService final { public: ExperimentalWithRawCallbackMethod_Ping() { ::grpc::Service::experimental().MarkMethodRawCallback(10, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + new ::grpc_impl::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this](::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, diff --git a/cpp/src/grpc/gen-milvus/milvus.pb.cc b/cpp/src/grpc/gen-milvus/milvus.pb.cc index a4b770e0..885e1ee9 100644 --- a/cpp/src/grpc/gen-milvus/milvus.pb.cc +++ b/cpp/src/grpc/gen-milvus/milvus.pb.cc @@ -8,330 +8,311 @@ #include #include #include -#include +#include #include #include #include #include // @@protoc_insertion_point(includes) #include - -extern PROTOBUF_INTERNAL_EXPORT_milvus_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_QueryResult_milvus_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_milvus_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Range_milvus_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_milvus_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_RowRecord_milvus_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_milvus_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TableName_milvus_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_milvus_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_SearchVectorInfos_milvus_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_status_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Status_status_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_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 { namespace grpc { class TableNameDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _TableName_default_instance_; class TableSchemaDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _TableSchema_default_instance_; class RangeDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _Range_default_instance_; class RowRecordDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _RowRecord_default_instance_; class InsertInfosDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _InsertInfos_default_instance_; class VectorIdsDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _VectorIds_default_instance_; class SearchVectorInfosDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _SearchVectorInfos_default_instance_; class SearchVectorInFilesInfosDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _SearchVectorInFilesInfos_default_instance_; class QueryResultDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _QueryResult_default_instance_; class TopKQueryResultDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _TopKQueryResult_default_instance_; class StringReplyDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _StringReply_default_instance_; class BoolReplyDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _BoolReply_default_instance_; class TableRowCountDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _TableRowCount_default_instance_; class CommandDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _Command_default_instance_; class ServerStatusDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _ServerStatus_default_instance_; } // namespace grpc } // namespace milvus -static void InitDefaultsTableName_milvus_2eproto() { +static void InitDefaultsscc_info_BoolReply_milvus_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::milvus::grpc::_TableName_default_instance_; - new (ptr) ::milvus::grpc::TableName(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + void* ptr = &::milvus::grpc::_BoolReply_default_instance_; + new (ptr) ::milvus::grpc::BoolReply(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::milvus::grpc::TableName::InitAsDefaultInstance(); + ::milvus::grpc::BoolReply::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<1> scc_info_TableName_milvus_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTableName_milvus_2eproto}, { +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_BoolReply_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_BoolReply_milvus_2eproto}, { &scc_info_Status_status_2eproto.base,}}; -static void InitDefaultsTableSchema_milvus_2eproto() { +static void InitDefaultsscc_info_Command_milvus_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::milvus::grpc::_TableSchema_default_instance_; - new (ptr) ::milvus::grpc::TableSchema(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::TableSchema::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_TableSchema_milvus_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTableSchema_milvus_2eproto}, { - &scc_info_TableName_milvus_2eproto.base,}}; - -static void InitDefaultsRange_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_Range_default_instance_; - new (ptr) ::milvus::grpc::Range(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + void* ptr = &::milvus::grpc::_Command_default_instance_; + new (ptr) ::milvus::grpc::Command(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::milvus::grpc::Range::InitAsDefaultInstance(); + ::milvus::grpc::Command::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_Range_milvus_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRange_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 InitDefaultsRowRecord_milvus_2eproto() { +static void InitDefaultsscc_info_InsertInfos_milvus_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::milvus::grpc::_RowRecord_default_instance_; - new (ptr) ::milvus::grpc::RowRecord(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + void* ptr = &::milvus::grpc::_InsertInfos_default_instance_; + new (ptr) ::milvus::grpc::InsertInfos(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::milvus::grpc::RowRecord::InitAsDefaultInstance(); + ::milvus::grpc::InsertInfos::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_RowRecord_milvus_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRowRecord_milvus_2eproto}, {}}; +::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}, { + &scc_info_RowRecord_milvus_2eproto.base,}}; -static void InitDefaultsInsertInfos_milvus_2eproto() { +static void InitDefaultsscc_info_QueryResult_milvus_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::milvus::grpc::_InsertInfos_default_instance_; - new (ptr) ::milvus::grpc::InsertInfos(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + void* ptr = &::milvus::grpc::_QueryResult_default_instance_; + new (ptr) ::milvus::grpc::QueryResult(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::milvus::grpc::InsertInfos::InitAsDefaultInstance(); + ::milvus::grpc::QueryResult::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<1> scc_info_InsertInfos_milvus_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsInsertInfos_milvus_2eproto}, { - &scc_info_RowRecord_milvus_2eproto.base,}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_QueryResult_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_QueryResult_milvus_2eproto}, {}}; -static void InitDefaultsVectorIds_milvus_2eproto() { +static void InitDefaultsscc_info_Range_milvus_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::milvus::grpc::_VectorIds_default_instance_; - new (ptr) ::milvus::grpc::VectorIds(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + void* ptr = &::milvus::grpc::_Range_default_instance_; + new (ptr) ::milvus::grpc::Range(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::milvus::grpc::VectorIds::InitAsDefaultInstance(); + ::milvus::grpc::Range::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<1> scc_info_VectorIds_milvus_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsVectorIds_milvus_2eproto}, { - &scc_info_Status_status_2eproto.base,}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Range_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_Range_milvus_2eproto}, {}}; -static void InitDefaultsSearchVectorInfos_milvus_2eproto() { +static void InitDefaultsscc_info_RowRecord_milvus_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::milvus::grpc::_SearchVectorInfos_default_instance_; - new (ptr) ::milvus::grpc::SearchVectorInfos(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + void* ptr = &::milvus::grpc::_RowRecord_default_instance_; + new (ptr) ::milvus::grpc::RowRecord(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::milvus::grpc::SearchVectorInfos::InitAsDefaultInstance(); + ::milvus::grpc::RowRecord::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<2> scc_info_SearchVectorInfos_milvus_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsSearchVectorInfos_milvus_2eproto}, { - &scc_info_RowRecord_milvus_2eproto.base, - &scc_info_Range_milvus_2eproto.base,}}; +::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 InitDefaultsSearchVectorInFilesInfos_milvus_2eproto() { +static void InitDefaultsscc_info_SearchVectorInFilesInfos_milvus_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::milvus::grpc::_SearchVectorInFilesInfos_default_instance_; new (ptr) ::milvus::grpc::SearchVectorInFilesInfos(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } ::milvus::grpc::SearchVectorInFilesInfos::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<1> scc_info_SearchVectorInFilesInfos_milvus_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSearchVectorInFilesInfos_milvus_2eproto}, { +::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,}}; -static void InitDefaultsQueryResult_milvus_2eproto() { +static void InitDefaultsscc_info_SearchVectorInfos_milvus_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::milvus::grpc::_QueryResult_default_instance_; - new (ptr) ::milvus::grpc::QueryResult(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + void* ptr = &::milvus::grpc::_SearchVectorInfos_default_instance_; + new (ptr) ::milvus::grpc::SearchVectorInfos(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::milvus::grpc::QueryResult::InitAsDefaultInstance(); + ::milvus::grpc::SearchVectorInfos::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_QueryResult_milvus_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsQueryResult_milvus_2eproto}, {}}; +::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}, { + &scc_info_RowRecord_milvus_2eproto.base, + &scc_info_Range_milvus_2eproto.base,}}; -static void InitDefaultsTopKQueryResult_milvus_2eproto() { +static void InitDefaultsscc_info_ServerStatus_milvus_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::milvus::grpc::_TopKQueryResult_default_instance_; - new (ptr) ::milvus::grpc::TopKQueryResult(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + void* ptr = &::milvus::grpc::_ServerStatus_default_instance_; + new (ptr) ::milvus::grpc::ServerStatus(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::milvus::grpc::TopKQueryResult::InitAsDefaultInstance(); + ::milvus::grpc::ServerStatus::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<2> scc_info_TopKQueryResult_milvus_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsTopKQueryResult_milvus_2eproto}, { - &scc_info_Status_status_2eproto.base, - &scc_info_QueryResult_milvus_2eproto.base,}}; +::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 InitDefaultsStringReply_milvus_2eproto() { +static void InitDefaultsscc_info_StringReply_milvus_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::milvus::grpc::_StringReply_default_instance_; new (ptr) ::milvus::grpc::StringReply(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } ::milvus::grpc::StringReply::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<1> scc_info_StringReply_milvus_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsStringReply_milvus_2eproto}, { +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_StringReply_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_StringReply_milvus_2eproto}, { &scc_info_Status_status_2eproto.base,}}; -static void InitDefaultsBoolReply_milvus_2eproto() { +static void InitDefaultsscc_info_TableName_milvus_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::milvus::grpc::_BoolReply_default_instance_; - new (ptr) ::milvus::grpc::BoolReply(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + void* ptr = &::milvus::grpc::_TableName_default_instance_; + new (ptr) ::milvus::grpc::TableName(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::milvus::grpc::BoolReply::InitAsDefaultInstance(); + ::milvus::grpc::TableName::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<1> scc_info_BoolReply_milvus_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsBoolReply_milvus_2eproto}, { +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TableName_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_TableName_milvus_2eproto}, { &scc_info_Status_status_2eproto.base,}}; -static void InitDefaultsTableRowCount_milvus_2eproto() { +static void InitDefaultsscc_info_TableRowCount_milvus_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::milvus::grpc::_TableRowCount_default_instance_; new (ptr) ::milvus::grpc::TableRowCount(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } ::milvus::grpc::TableRowCount::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<1> scc_info_TableRowCount_milvus_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTableRowCount_milvus_2eproto}, { +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TableRowCount_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_TableRowCount_milvus_2eproto}, { &scc_info_Status_status_2eproto.base,}}; -static void InitDefaultsCommand_milvus_2eproto() { +static void InitDefaultsscc_info_TableSchema_milvus_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::milvus::grpc::_Command_default_instance_; - new (ptr) ::milvus::grpc::Command(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + void* ptr = &::milvus::grpc::_TableSchema_default_instance_; + new (ptr) ::milvus::grpc::TableSchema(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::milvus::grpc::Command::InitAsDefaultInstance(); + ::milvus::grpc::TableSchema::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_Command_milvus_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCommand_milvus_2eproto}, {}}; +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TableSchema_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_TableSchema_milvus_2eproto}, { + &scc_info_TableName_milvus_2eproto.base,}}; -static void InitDefaultsServerStatus_milvus_2eproto() { +static void InitDefaultsscc_info_TopKQueryResult_milvus_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::milvus::grpc::_ServerStatus_default_instance_; - new (ptr) ::milvus::grpc::ServerStatus(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + void* ptr = &::milvus::grpc::_TopKQueryResult_default_instance_; + new (ptr) ::milvus::grpc::TopKQueryResult(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } - ::milvus::grpc::ServerStatus::InitAsDefaultInstance(); + ::milvus::grpc::TopKQueryResult::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<1> scc_info_ServerStatus_milvus_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsServerStatus_milvus_2eproto}, { +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_TopKQueryResult_milvus_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_TopKQueryResult_milvus_2eproto}, { + &scc_info_Status_status_2eproto.base, + &scc_info_QueryResult_milvus_2eproto.base,}}; + +static void InitDefaultsscc_info_VectorIds_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_VectorIds_default_instance_; + new (ptr) ::milvus::grpc::VectorIds(); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::VectorIds::InitAsDefaultInstance(); +} + +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_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,}}; -void InitDefaults_milvus_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_TableName_milvus_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TableSchema_milvus_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Range_milvus_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_RowRecord_milvus_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_InsertInfos_milvus_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_VectorIds_milvus_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_SearchVectorInfos_milvus_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_SearchVectorInFilesInfos_milvus_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_QueryResult_milvus_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TopKQueryResult_milvus_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_StringReply_milvus_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_BoolReply_milvus_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TableRowCount_milvus_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Command_milvus_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ServerStatus_milvus_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_milvus_2eproto[15]; -constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_milvus_2eproto = nullptr; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_milvus_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_milvus_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_milvus_2eproto[15]; +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; + +const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_milvus_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::milvus::grpc::TableName, _internal_metadata_), ~0u, // no _extensions_ @@ -440,7 +421,7 @@ const ::google::protobuf::uint32 TableStruct_milvus_2eproto::offsets[] PROTOBUF_ PROTOBUF_FIELD_OFFSET(::milvus::grpc::ServerStatus, status_), PROTOBUF_FIELD_OFFSET(::milvus::grpc::ServerStatus, info_), }; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +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)}, @@ -458,31 +439,25 @@ static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SE { 100, -1, sizeof(::milvus::grpc::ServerStatus)}, }; -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::milvus::grpc::_TableName_default_instance_), - 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::_VectorIds_default_instance_), - reinterpret_cast(&::milvus::grpc::_SearchVectorInfos_default_instance_), - reinterpret_cast(&::milvus::grpc::_SearchVectorInFilesInfos_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_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_milvus_2eproto = { - {}, AddDescriptors_milvus_2eproto, "milvus.proto", 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, +static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { + reinterpret_cast(&::milvus::grpc::_TableName_default_instance_), + 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::_VectorIds_default_instance_), + reinterpret_cast(&::milvus::grpc::_SearchVectorInfos_default_instance_), + reinterpret_cast(&::milvus::grpc::_SearchVectorInFilesInfos_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_), }; -const char descriptor_table_protodef_milvus_2eproto[] = +const char descriptor_table_protodef_milvus_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = "\n\014milvus.proto\022\013milvus.grpc\032\014status.prot" "o\"D\n\tTableName\022#\n\006status\030\001 \001(\0132\023.milvus." "grpc.Status\022\022\n\ntable_name\030\002 \001(\t\"z\n\013Table" @@ -534,22 +509,37 @@ const char descriptor_table_protodef_milvus_2eproto[] = "TableName\"\0000\001\0229\n\004Ping\022\024.milvus.grpc.Comm" "and\032\031.milvus.grpc.ServerStatus\"\000b\006proto3" ; -::google::protobuf::internal::DescriptorTable descriptor_table_milvus_2eproto = { - false, InitDefaults_milvus_2eproto, - descriptor_table_protodef_milvus_2eproto, - "milvus.proto", &assign_descriptors_table_milvus_2eproto, 2000, +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] = { + &scc_info_BoolReply_milvus_2eproto.base, + &scc_info_Command_milvus_2eproto.base, + &scc_info_InsertInfos_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_StringReply_milvus_2eproto.base, + &scc_info_TableName_milvus_2eproto.base, + &scc_info_TableRowCount_milvus_2eproto.base, + &scc_info_TableSchema_milvus_2eproto.base, + &scc_info_TopKQueryResult_milvus_2eproto.base, + &scc_info_VectorIds_milvus_2eproto.base, +}; +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, + 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, }; - -void AddDescriptors_milvus_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[1] = - { - ::AddDescriptors_status_2eproto, - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_milvus_2eproto, deps, 1); -} // Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_milvus_2eproto = []() { AddDescriptors_milvus_2eproto(); return true; }(); +static bool dynamic_init_dummy_milvus_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_milvus_2eproto), true); namespace milvus { namespace grpc { @@ -559,13 +549,13 @@ void TableName::InitAsDefaultInstance() { ::milvus::grpc::_TableName_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( ::milvus::grpc::Status::internal_default_instance()); } -class TableName::HasBitSetters { +class TableName::_Internal { public: static const ::milvus::grpc::Status& status(const TableName* msg); }; const ::milvus::grpc::Status& -TableName::HasBitSetters::status(const TableName* msg) { +TableName::_Internal::status(const TableName* msg) { return *msg->status_; } void TableName::clear_status() { @@ -574,23 +564,18 @@ void TableName::clear_status() { } status_ = nullptr; } -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TableName::kStatusFieldNumber; -const int TableName::kTableNameFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - TableName::TableName() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.TableName) } TableName::TableName(const TableName& from) - : ::google::protobuf::Message(), + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - table_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.table_name().size() > 0) { - table_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_name_); + 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_status()) { status_ = new ::milvus::grpc::Status(*from.status_); @@ -601,9 +586,8 @@ TableName::TableName(const TableName& from) } void TableName::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_TableName_milvus_2eproto.base); - table_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TableName_milvus_2eproto.base); + table_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); status_ = nullptr; } @@ -613,7 +597,7 @@ TableName::~TableName() { } void TableName::SharedDtor() { - table_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + table_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete status_; } @@ -621,18 +605,18 @@ void TableName::SetCachedSize(int size) const { _cached_size_.Set(size); } const TableName& TableName::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TableName_milvus_2eproto.base); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TableName_milvus_2eproto.base); return *internal_default_instance(); } void TableName::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.TableName) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - table_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + table_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { delete status_; } @@ -641,85 +625,61 @@ void TableName::Clear() { } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TableName::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); +const char* TableName::_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; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::milvus::grpc::Status::_InternalParse; - object = msg->mutable_status(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_status(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // string table_name = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("milvus.grpc.TableName.table_name"); - object = msg->mutable_table_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } + 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.TableName.table_name"); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; + ctx->SetLastTag(tag); + goto success; } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } } // switch } // while +success: return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); +failure: + ptr = nullptr; + goto success; +#undef CHK_ } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool TableName::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.TableName) for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .milvus.grpc.Status status = 1; case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, mutable_status())); } else { goto handle_unusual; @@ -729,12 +689,12 @@ bool TableName::MergePartialFromCodedStream( // string table_name = 2; case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_table_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->table_name().data(), static_cast(this->table_name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.TableName.table_name")); } else { goto handle_unusual; @@ -747,7 +707,7 @@ bool TableName::MergePartialFromCodedStream( if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormat::SkipField( + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } @@ -764,60 +724,60 @@ failure: #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void TableName::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.TableName) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // .milvus.grpc.Status status = 1; if (this->has_status()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::status(this), output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::status(this), output); } // string table_name = 2; if (this->table_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->table_name().data(), static_cast(this->table_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.TableName.table_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->table_name(), output); } if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:milvus.grpc.TableName) } -::google::protobuf::uint8* TableName::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* TableName::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.TableName) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // .milvus.grpc.Status status = 1; if (this->has_status()) { - target = ::google::protobuf::internal::WireFormatLite:: + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessageToArray( - 1, HasBitSetters::status(this), target); + 1, _Internal::status(this), target); } // string table_name = 2; if (this->table_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->table_name().data(), static_cast(this->table_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.TableName.table_name"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 2, this->table_name(), target); } if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.TableName) @@ -830,41 +790,41 @@ size_t TableName::ByteSizeLong() const { if (_internal_metadata_.have_unknown_fields()) { total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } - ::google::protobuf::uint32 cached_has_bits = 0; + ::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 + - ::google::protobuf::internal::WireFormatLite::StringSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->table_name()); } // .milvus.grpc.Status status = 1; if (this->has_status()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *status_); } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void TableName::MergeFrom(const ::google::protobuf::Message& from) { +void TableName::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.TableName) GOOGLE_DCHECK_NE(&from, this); const TableName* source = - ::google::protobuf::DynamicCastToGenerated( + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.TableName) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.TableName) MergeFrom(*source); @@ -875,19 +835,19 @@ void TableName::MergeFrom(const TableName& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.TableName) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.table_name().size() > 0) { - table_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_name_); + table_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.table_name_); } if (from.has_status()) { mutable_status()->::milvus::grpc::Status::MergeFrom(from.status()); } } -void TableName::CopyFrom(const ::google::protobuf::Message& from) { +void TableName::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.TableName) if (&from == this) return; Clear(); @@ -905,21 +865,16 @@ bool TableName::IsInitialized() const { return true; } -void TableName::Swap(TableName* other) { - if (other == this) return; - InternalSwap(other); -} void TableName::InternalSwap(TableName* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - table_name_.Swap(&other->table_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + table_name_.Swap(&other->table_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); swap(status_, other->status_); } -::google::protobuf::Metadata TableName::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_milvus_2eproto); - return ::file_level_metadata_milvus_2eproto[kIndexInFileMessages]; +::PROTOBUF_NAMESPACE_ID::Metadata TableName::GetMetadata() const { + return GetMetadataStatic(); } @@ -929,29 +884,22 @@ void TableSchema::InitAsDefaultInstance() { ::milvus::grpc::_TableSchema_default_instance_._instance.get_mutable()->table_name_ = const_cast< ::milvus::grpc::TableName*>( ::milvus::grpc::TableName::internal_default_instance()); } -class TableSchema::HasBitSetters { +class TableSchema::_Internal { public: static const ::milvus::grpc::TableName& table_name(const TableSchema* msg); }; const ::milvus::grpc::TableName& -TableSchema::HasBitSetters::table_name(const TableSchema* msg) { +TableSchema::_Internal::table_name(const TableSchema* msg) { return *msg->table_name_; } -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TableSchema::kTableNameFieldNumber; -const int TableSchema::kIndexTypeFieldNumber; -const int TableSchema::kDimensionFieldNumber; -const int TableSchema::kStoreRawVectorFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - TableSchema::TableSchema() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.TableSchema) } TableSchema::TableSchema(const TableSchema& from) - : ::google::protobuf::Message(), + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); if (from.has_table_name()) { @@ -966,8 +914,7 @@ TableSchema::TableSchema(const TableSchema& from) } void TableSchema::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_TableSchema_milvus_2eproto.base); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TableSchema_milvus_2eproto.base); ::memset(&table_name_, 0, static_cast( reinterpret_cast(&store_raw_vector_) - reinterpret_cast(&table_name_)) + sizeof(store_raw_vector_)); @@ -986,14 +933,14 @@ void TableSchema::SetCachedSize(int size) const { _cached_size_.Set(size); } const TableSchema& TableSchema::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TableSchema_milvus_2eproto.base); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TableSchema_milvus_2eproto.base); return *internal_default_instance(); } void TableSchema::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.TableSchema) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -1008,86 +955,75 @@ void TableSchema::Clear() { } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TableSchema::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); +const char* TableSchema::_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 (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::milvus::grpc::TableName::_InternalParse; - object = msg->mutable_table_name(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } + 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; // int32 index_type = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_index_type(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + index_type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // int64 dimension = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_dimension(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { + dimension_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // bool store_raw_vector = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - msg->set_store_raw_vector(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + store_raw_vector_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; + ctx->SetLastTag(tag); + goto success; } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } } // switch } // while +success: return ptr; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); +failure: + ptr = nullptr; + goto success; +#undef CHK_ } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool TableSchema::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.TableSchema) for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .milvus.grpc.TableName table_name = 1; case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + 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; @@ -1097,10 +1033,10 @@ bool TableSchema::MergePartialFromCodedStream( // int32 index_type = 2; case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( + 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; @@ -1110,10 +1046,10 @@ bool TableSchema::MergePartialFromCodedStream( // int64 dimension = 3; case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( input, &dimension_))); } else { goto handle_unusual; @@ -1123,10 +1059,10 @@ bool TableSchema::MergePartialFromCodedStream( // bool store_raw_vector = 4; case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>( input, &store_raw_vector_))); } else { goto handle_unusual; @@ -1139,7 +1075,7 @@ bool TableSchema::MergePartialFromCodedStream( if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormat::SkipField( + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } @@ -1156,69 +1092,69 @@ failure: #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void TableSchema::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.TableSchema) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // .milvus.grpc.TableName table_name = 1; if (this->has_table_name()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::table_name(this), output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::table_name(this), output); } // int32 index_type = 2; if (this->index_type() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->index_type(), output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(2, this->index_type(), output); } // int64 dimension = 3; if (this->dimension() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->dimension(), output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(3, this->dimension(), output); } // bool store_raw_vector = 4; if (this->store_raw_vector() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->store_raw_vector(), output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(4, this->store_raw_vector(), output); } if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:milvus.grpc.TableSchema) } -::google::protobuf::uint8* TableSchema::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* TableSchema::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.TableSchema) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // .milvus.grpc.TableName table_name = 1; if (this->has_table_name()) { - target = ::google::protobuf::internal::WireFormatLite:: + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessageToArray( - 1, HasBitSetters::table_name(this), target); + 1, _Internal::table_name(this), target); } // int32 index_type = 2; if (this->index_type() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->index_type(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->index_type(), target); } // int64 dimension = 3; if (this->dimension() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->dimension(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->dimension(), target); } // bool store_raw_vector = 4; if (this->store_raw_vector() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->store_raw_vector(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(4, this->store_raw_vector(), target); } if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.TableSchema) @@ -1231,31 +1167,31 @@ size_t TableSchema::ByteSizeLong() const { if (_internal_metadata_.have_unknown_fields()) { total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } - ::google::protobuf::uint32 cached_has_bits = 0; + ::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 + - ::google::protobuf::internal::WireFormatLite::MessageSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *table_name_); } // int64 dimension = 3; if (this->dimension() != 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->dimension()); } // int32 index_type = 2; if (this->index_type() != 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( this->index_type()); } @@ -1264,20 +1200,20 @@ size_t TableSchema::ByteSizeLong() const { total_size += 1 + 1; } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void TableSchema::MergeFrom(const ::google::protobuf::Message& from) { +void TableSchema::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.TableSchema) GOOGLE_DCHECK_NE(&from, this); const TableSchema* source = - ::google::protobuf::DynamicCastToGenerated( + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.TableSchema) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.TableSchema) MergeFrom(*source); @@ -1288,7 +1224,7 @@ void TableSchema::MergeFrom(const TableSchema& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.TableSchema) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.has_table_name()) { @@ -1305,7 +1241,7 @@ void TableSchema::MergeFrom(const TableSchema& from) { } } -void TableSchema::CopyFrom(const ::google::protobuf::Message& from) { +void TableSchema::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.TableSchema) if (&from == this) return; Clear(); @@ -1323,10 +1259,6 @@ bool TableSchema::IsInitialized() const { return true; } -void TableSchema::Swap(TableSchema* other) { - if (other == this) return; - InternalSwap(other); -} void TableSchema::InternalSwap(TableSchema* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); @@ -1336,9 +1268,8 @@ void TableSchema::InternalSwap(TableSchema* other) { swap(store_raw_vector_, other->store_raw_vector_); } -::google::protobuf::Metadata TableSchema::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_milvus_2eproto); - return ::file_level_metadata_milvus_2eproto[kIndexInFileMessages]; +::PROTOBUF_NAMESPACE_ID::Metadata TableSchema::GetMetadata() const { + return GetMetadataStatic(); } @@ -1346,40 +1277,34 @@ void TableSchema::InternalSwap(TableSchema* other) { void Range::InitAsDefaultInstance() { } -class Range::HasBitSetters { +class Range::_Internal { public: }; -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Range::kStartValueFieldNumber; -const int Range::kEndValueFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - Range::Range() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.Range) } Range::Range(const Range& from) - : ::google::protobuf::Message(), + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - start_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.start_value().size() > 0) { - start_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.start_value_); + start_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.start_value().empty()) { + start_value_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.start_value_); } - end_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.end_value().size() > 0) { - end_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.end_value_); + end_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.end_value().empty()) { + end_value_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.end_value_); } // @@protoc_insertion_point(copy_constructor:milvus.grpc.Range) } void Range::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Range_milvus_2eproto.base); - start_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - end_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Range_milvus_2eproto.base); + start_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + end_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } Range::~Range() { @@ -1388,117 +1313,90 @@ Range::~Range() { } void Range::SharedDtor() { - start_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - end_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + start_value_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + end_value_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void Range::SetCachedSize(int size) const { _cached_size_.Set(size); } const Range& Range::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Range_milvus_2eproto.base); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Range_milvus_2eproto.base); return *internal_default_instance(); } void Range::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.Range) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - start_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - end_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + start_value_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + end_value_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Range::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); +const char* Range::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); switch (tag >> 3) { // string start_value = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("milvus.grpc.Range.start_value"); - object = msg->mutable_start_value(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_start_value(), ptr, ctx, "milvus.grpc.Range.start_value"); + CHK_(ptr); + } else goto handle_unusual; + continue; // string end_value = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("milvus.grpc.Range.end_value"); - object = msg->mutable_end_value(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_end_value(), ptr, ctx, "milvus.grpc.Range.end_value"); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; + ctx->SetLastTag(tag); + goto success; } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } } // switch } // while +success: return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); +failure: + ptr = nullptr; + goto success; +#undef CHK_ } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool Range::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.Range) for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string start_value = 1; case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_start_value())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->start_value().data(), static_cast(this->start_value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.Range.start_value")); } else { goto handle_unusual; @@ -1508,12 +1406,12 @@ bool Range::MergePartialFromCodedStream( // string end_value = 2; case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_end_value())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->end_value().data(), static_cast(this->end_value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.Range.end_value")); } else { goto handle_unusual; @@ -1526,7 +1424,7 @@ bool Range::MergePartialFromCodedStream( if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormat::SkipField( + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } @@ -1543,68 +1441,68 @@ failure: #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void Range::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.Range) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // string start_value = 1; if (this->start_value().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->start_value().data(), static_cast(this->start_value().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.Range.start_value"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->start_value(), output); } // string end_value = 2; if (this->end_value().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->end_value().data(), static_cast(this->end_value().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.Range.end_value"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->end_value(), output); } if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:milvus.grpc.Range) } -::google::protobuf::uint8* Range::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* Range::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.Range) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // string start_value = 1; if (this->start_value().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->start_value().data(), static_cast(this->start_value().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.Range.start_value"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 1, this->start_value(), target); } // string end_value = 2; if (this->end_value().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->end_value().data(), static_cast(this->end_value().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.Range.end_value"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 2, this->end_value(), target); } if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.Range) @@ -1617,41 +1515,41 @@ size_t Range::ByteSizeLong() const { if (_internal_metadata_.have_unknown_fields()) { total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string start_value = 1; if (this->start_value().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->start_value()); } // string end_value = 2; if (this->end_value().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->end_value()); } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void Range::MergeFrom(const ::google::protobuf::Message& from) { +void Range::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.Range) GOOGLE_DCHECK_NE(&from, this); const Range* source = - ::google::protobuf::DynamicCastToGenerated( + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.Range) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.Range) MergeFrom(*source); @@ -1662,20 +1560,20 @@ void Range::MergeFrom(const Range& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.Range) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.start_value().size() > 0) { - start_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.start_value_); + start_value_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.start_value_); } if (from.end_value().size() > 0) { - end_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.end_value_); + end_value_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.end_value_); } } -void Range::CopyFrom(const ::google::protobuf::Message& from) { +void Range::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.Range) if (&from == this) return; Clear(); @@ -1693,22 +1591,17 @@ bool Range::IsInitialized() const { return true; } -void Range::Swap(Range* other) { - if (other == this) return; - InternalSwap(other); -} void Range::InternalSwap(Range* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - start_value_.Swap(&other->start_value_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + start_value_.Swap(&other->start_value_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - end_value_.Swap(&other->end_value_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + end_value_.Swap(&other->end_value_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } -::google::protobuf::Metadata Range::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_milvus_2eproto); - return ::file_level_metadata_milvus_2eproto[kIndexInFileMessages]; +::PROTOBUF_NAMESPACE_ID::Metadata Range::GetMetadata() const { + return GetMetadataStatic(); } @@ -1716,21 +1609,17 @@ void Range::InternalSwap(Range* other) { void RowRecord::InitAsDefaultInstance() { } -class RowRecord::HasBitSetters { +class RowRecord::_Internal { public: }; -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int RowRecord::kVectorDataFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - RowRecord::RowRecord() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.RowRecord) } RowRecord::RowRecord(const RowRecord& from) - : ::google::protobuf::Message(), + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr), vector_data_(from.vector_data_) { _internal_metadata_.MergeFrom(from._internal_metadata_); @@ -1752,14 +1641,14 @@ void RowRecord::SetCachedSize(int size) const { _cached_size_.Set(size); } const RowRecord& RowRecord::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_RowRecord_milvus_2eproto.base); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RowRecord_milvus_2eproto.base); return *internal_default_instance(); } void RowRecord::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.RowRecord) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -1768,77 +1657,62 @@ void RowRecord::Clear() { } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* RowRecord::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); +const char* RowRecord::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); switch (tag >> 3) { // repeated float vector_data = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) == 10) { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::internal::PackedFloatParser; - object = msg->mutable_vector_data(); - if (size > end - ptr) goto len_delim_till_end; - auto newend = ptr + size; - if (size) ptr = parser_till_end(ptr, newend, object, ctx); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr == newend); - break; - } else if (static_cast<::google::protobuf::uint8>(tag) != 13) goto handle_unusual; - do { - msg->add_vector_data(::google::protobuf::io::UnalignedLoad(ptr)); + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedFloatParser(mutable_vector_data(), ptr, ctx); + CHK_(ptr); + } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 13) { + add_vector_data(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr)); ptr += sizeof(float); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 13 && (ptr += 1)); - break; - } + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; + ctx->SetLastTag(tag); + goto success; } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } } // switch } // while +success: return ptr; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); +failure: + ptr = nullptr; + goto success; +#undef CHK_ } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool RowRecord::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.RowRecord) for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated float vector_data = 1; case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< + float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>( input, this->mutable_vector_data()))); - } else if (static_cast< ::google::protobuf::uint8>(tag) == (13 & 0xFF)) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( + } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (13 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< + float, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_FLOAT>( 1, 10u, input, this->mutable_vector_data()))); } else { goto handle_unusual; @@ -1851,7 +1725,7 @@ bool RowRecord::MergePartialFromCodedStream( if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormat::SkipField( + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } @@ -1868,48 +1742,48 @@ failure: #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void RowRecord::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.RowRecord) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // repeated float vector_data = 1; if (this->vector_data_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(1, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); output->WriteVarint32(_vector_data_cached_byte_size_.load( std::memory_order_relaxed)); - ::google::protobuf::internal::WireFormatLite::WriteFloatArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatArray( this->vector_data().data(), this->vector_data_size(), output); } if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:milvus.grpc.RowRecord) } -::google::protobuf::uint8* RowRecord::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* RowRecord::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.RowRecord) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // repeated float vector_data = 1; if (this->vector_data_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( 1, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( + target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( _vector_data_cached_byte_size_.load(std::memory_order_relaxed), target); - target = ::google::protobuf::internal::WireFormatLite:: + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: WriteFloatNoTagToArray(this->vector_data_, target); } if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.RowRecord) @@ -1922,10 +1796,10 @@ size_t RowRecord::ByteSizeLong() const { if (_internal_metadata_.have_unknown_fields()) { total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -1935,29 +1809,29 @@ size_t RowRecord::ByteSizeLong() const { size_t data_size = 4UL * count; if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - static_cast<::google::protobuf::int32>(data_size)); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); } - int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); _vector_data_cached_byte_size_.store(cached_size, std::memory_order_relaxed); total_size += data_size; } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void RowRecord::MergeFrom(const ::google::protobuf::Message& from) { +void RowRecord::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.RowRecord) GOOGLE_DCHECK_NE(&from, this); const RowRecord* source = - ::google::protobuf::DynamicCastToGenerated( + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.RowRecord) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.RowRecord) MergeFrom(*source); @@ -1968,13 +1842,13 @@ void RowRecord::MergeFrom(const RowRecord& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.RowRecord) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; vector_data_.MergeFrom(from.vector_data_); } -void RowRecord::CopyFrom(const ::google::protobuf::Message& from) { +void RowRecord::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.RowRecord) if (&from == this) return; Clear(); @@ -1992,19 +1866,14 @@ bool RowRecord::IsInitialized() const { return true; } -void RowRecord::Swap(RowRecord* other) { - if (other == this) return; - InternalSwap(other); -} void RowRecord::InternalSwap(RowRecord* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); vector_data_.InternalSwap(&other->vector_data_); } -::google::protobuf::Metadata RowRecord::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_milvus_2eproto); - return ::file_level_metadata_milvus_2eproto[kIndexInFileMessages]; +::PROTOBUF_NAMESPACE_ID::Metadata RowRecord::GetMetadata() const { + return GetMetadataStatic(); } @@ -2012,36 +1881,30 @@ void RowRecord::InternalSwap(RowRecord* other) { void InsertInfos::InitAsDefaultInstance() { } -class InsertInfos::HasBitSetters { +class InsertInfos::_Internal { public: }; -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int InsertInfos::kTableNameFieldNumber; -const int InsertInfos::kRowRecordArrayFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - InsertInfos::InsertInfos() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.InsertInfos) } InsertInfos::InsertInfos(const InsertInfos& from) - : ::google::protobuf::Message(), + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr), row_record_array_(from.row_record_array_) { _internal_metadata_.MergeFrom(from._internal_metadata_); - table_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.table_name().size() > 0) { - table_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_name_); + table_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.table_name().empty()) { + table_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.table_name_); } // @@protoc_insertion_point(copy_constructor:milvus.grpc.InsertInfos) } void InsertInfos::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_InsertInfos_milvus_2eproto.base); - table_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_InsertInfos_milvus_2eproto.base); + table_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } InsertInfos::~InsertInfos() { @@ -2050,116 +1913,94 @@ InsertInfos::~InsertInfos() { } void InsertInfos::SharedDtor() { - table_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + table_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void InsertInfos::SetCachedSize(int size) const { _cached_size_.Set(size); } const InsertInfos& InsertInfos::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_InsertInfos_milvus_2eproto.base); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_InsertInfos_milvus_2eproto.base); return *internal_default_instance(); } void InsertInfos::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.InsertInfos) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; row_record_array_.Clear(); - table_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + table_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* InsertInfos::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); +const char* InsertInfos::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); switch (tag >> 3) { // string table_name = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("milvus.grpc.InsertInfos.table_name"); - object = msg->mutable_table_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } + 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"); + CHK_(ptr); + } else goto handle_unusual; + continue; // repeated .milvus.grpc.RowRecord row_record_array = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::milvus::grpc::RowRecord::_InternalParse; - object = msg->add_row_record_array(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); - break; - } + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(add_row_record_array(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; + ctx->SetLastTag(tag); + goto success; } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } } // switch } // while +success: return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); +failure: + ptr = nullptr; + goto success; +#undef CHK_ } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool InsertInfos::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.InsertInfos) for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string table_name = 1; case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_table_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->table_name().data(), static_cast(this->table_name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.InsertInfos.table_name")); } else { goto handle_unusual; @@ -2169,8 +2010,8 @@ bool InsertInfos::MergePartialFromCodedStream( // repeated .milvus.grpc.RowRecord row_record_array = 2; case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, add_row_record_array())); } else { goto handle_unusual; @@ -2183,7 +2024,7 @@ bool InsertInfos::MergePartialFromCodedStream( if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormat::SkipField( + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } @@ -2200,64 +2041,64 @@ failure: #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void InsertInfos::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.InsertInfos) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // string table_name = 1; if (this->table_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->table_name().data(), static_cast(this->table_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.InsertInfos.table_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->table_name(), output); } // repeated .milvus.grpc.RowRecord row_record_array = 2; for (unsigned int i = 0, n = static_cast(this->row_record_array_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( 2, this->row_record_array(static_cast(i)), output); } if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:milvus.grpc.InsertInfos) } -::google::protobuf::uint8* InsertInfos::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* InsertInfos::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.InsertInfos) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // string table_name = 1; if (this->table_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->table_name().data(), static_cast(this->table_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.InsertInfos.table_name"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 1, this->table_name(), target); } // repeated .milvus.grpc.RowRecord row_record_array = 2; for (unsigned int i = 0, n = static_cast(this->row_record_array_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessageToArray( 2, this->row_record_array(static_cast(i)), target); } if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.InsertInfos) @@ -2270,10 +2111,10 @@ size_t InsertInfos::ByteSizeLong() const { if (_internal_metadata_.have_unknown_fields()) { total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -2283,7 +2124,7 @@ size_t InsertInfos::ByteSizeLong() const { total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( this->row_record_array(static_cast(i))); } } @@ -2291,24 +2132,24 @@ size_t InsertInfos::ByteSizeLong() const { // string table_name = 1; if (this->table_name().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->table_name()); } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void InsertInfos::MergeFrom(const ::google::protobuf::Message& from) { +void InsertInfos::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.InsertInfos) GOOGLE_DCHECK_NE(&from, this); const InsertInfos* source = - ::google::protobuf::DynamicCastToGenerated( + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.InsertInfos) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.InsertInfos) MergeFrom(*source); @@ -2319,17 +2160,17 @@ void InsertInfos::MergeFrom(const InsertInfos& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.InsertInfos) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; row_record_array_.MergeFrom(from.row_record_array_); if (from.table_name().size() > 0) { - table_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_name_); + table_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.table_name_); } } -void InsertInfos::CopyFrom(const ::google::protobuf::Message& from) { +void InsertInfos::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.InsertInfos) if (&from == this) return; Clear(); @@ -2347,21 +2188,16 @@ bool InsertInfos::IsInitialized() const { return true; } -void InsertInfos::Swap(InsertInfos* other) { - if (other == this) return; - InternalSwap(other); -} void InsertInfos::InternalSwap(InsertInfos* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); CastToBase(&row_record_array_)->InternalSwap(CastToBase(&other->row_record_array_)); - table_name_.Swap(&other->table_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + table_name_.Swap(&other->table_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } -::google::protobuf::Metadata InsertInfos::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_milvus_2eproto); - return ::file_level_metadata_milvus_2eproto[kIndexInFileMessages]; +::PROTOBUF_NAMESPACE_ID::Metadata InsertInfos::GetMetadata() const { + return GetMetadataStatic(); } @@ -2371,13 +2207,13 @@ void VectorIds::InitAsDefaultInstance() { ::milvus::grpc::_VectorIds_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( ::milvus::grpc::Status::internal_default_instance()); } -class VectorIds::HasBitSetters { +class VectorIds::_Internal { public: static const ::milvus::grpc::Status& status(const VectorIds* msg); }; const ::milvus::grpc::Status& -VectorIds::HasBitSetters::status(const VectorIds* msg) { +VectorIds::_Internal::status(const VectorIds* msg) { return *msg->status_; } void VectorIds::clear_status() { @@ -2386,18 +2222,13 @@ void VectorIds::clear_status() { } status_ = nullptr; } -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int VectorIds::kStatusFieldNumber; -const int VectorIds::kVectorIdArrayFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - VectorIds::VectorIds() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.VectorIds) } VectorIds::VectorIds(const VectorIds& from) - : ::google::protobuf::Message(), + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr), vector_id_array_(from.vector_id_array_) { _internal_metadata_.MergeFrom(from._internal_metadata_); @@ -2410,8 +2241,7 @@ VectorIds::VectorIds(const VectorIds& from) } void VectorIds::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_VectorIds_milvus_2eproto.base); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_VectorIds_milvus_2eproto.base); status_ = nullptr; } @@ -2428,14 +2258,14 @@ void VectorIds::SetCachedSize(int size) const { _cached_size_.Set(size); } const VectorIds& VectorIds::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_VectorIds_milvus_2eproto.base); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_VectorIds_milvus_2eproto.base); return *internal_default_instance(); } void VectorIds::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.VectorIds) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -2448,85 +2278,64 @@ void VectorIds::Clear() { } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* VectorIds::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); +const char* VectorIds::_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; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::milvus::grpc::Status::_InternalParse; - object = msg->mutable_status(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_status(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // repeated int64 vector_id_array = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) == 18) { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::internal::PackedInt64Parser; - object = msg->mutable_vector_id_array(); - if (size > end - ptr) goto len_delim_till_end; - auto newend = ptr + size; - if (size) ptr = parser_till_end(ptr, newend, object, ctx); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr == newend); - break; - } else if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - do { - msg->add_vector_id_array(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 16 && (ptr += 1)); - break; - } + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(mutable_vector_id_array(), ptr, ctx); + CHK_(ptr); + } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16) { + add_vector_id_array(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; + ctx->SetLastTag(tag); + goto success; } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } } // switch } // while +success: return ptr; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); +failure: + ptr = nullptr; + goto success; +#undef CHK_ } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool VectorIds::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.VectorIds) for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .milvus.grpc.Status status = 1; case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, mutable_status())); } else { goto handle_unusual; @@ -2536,13 +2345,13 @@ bool VectorIds::MergePartialFromCodedStream( // repeated int64 vector_id_array = 2; case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( input, this->mutable_vector_id_array()))); - } else if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( 1, 18u, input, this->mutable_vector_id_array()))); } else { goto handle_unusual; @@ -2555,7 +2364,7 @@ bool VectorIds::MergePartialFromCodedStream( if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormat::SkipField( + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } @@ -2572,63 +2381,63 @@ failure: #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void VectorIds::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.VectorIds) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // .milvus.grpc.Status status = 1; if (this->has_status()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::status(this), output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::status(this), output); } // repeated int64 vector_id_array = 2; if (this->vector_id_array_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(2, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); output->WriteVarint32(_vector_id_array_cached_byte_size_.load( std::memory_order_relaxed)); } for (int i = 0, n = this->vector_id_array_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteInt64NoTag( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64NoTag( this->vector_id_array(i), output); } if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:milvus.grpc.VectorIds) } -::google::protobuf::uint8* VectorIds::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* VectorIds::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.VectorIds) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // .milvus.grpc.Status status = 1; if (this->has_status()) { - target = ::google::protobuf::internal::WireFormatLite:: + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessageToArray( - 1, HasBitSetters::status(this), target); + 1, _Internal::status(this), target); } // repeated int64 vector_id_array = 2; if (this->vector_id_array_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( 2, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( + target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( _vector_id_array_cached_byte_size_.load(std::memory_order_relaxed), target); - target = ::google::protobuf::internal::WireFormatLite:: + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: WriteInt64NoTagToArray(this->vector_id_array_, target); } if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.VectorIds) @@ -2641,23 +2450,23 @@ size_t VectorIds::ByteSizeLong() const { if (_internal_metadata_.have_unknown_fields()) { total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated int64 vector_id_array = 2; { - size_t data_size = ::google::protobuf::internal::WireFormatLite:: + size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: Int64Size(this->vector_id_array_); if (data_size > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - static_cast<::google::protobuf::int32>(data_size)); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); } - int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); _vector_id_array_cached_byte_size_.store(cached_size, std::memory_order_relaxed); total_size += data_size; @@ -2666,24 +2475,24 @@ size_t VectorIds::ByteSizeLong() const { // .milvus.grpc.Status status = 1; if (this->has_status()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *status_); } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void VectorIds::MergeFrom(const ::google::protobuf::Message& from) { +void VectorIds::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.VectorIds) GOOGLE_DCHECK_NE(&from, this); const VectorIds* source = - ::google::protobuf::DynamicCastToGenerated( + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.VectorIds) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.VectorIds) MergeFrom(*source); @@ -2694,7 +2503,7 @@ void VectorIds::MergeFrom(const VectorIds& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.VectorIds) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; vector_id_array_.MergeFrom(from.vector_id_array_); @@ -2703,7 +2512,7 @@ void VectorIds::MergeFrom(const VectorIds& from) { } } -void VectorIds::CopyFrom(const ::google::protobuf::Message& from) { +void VectorIds::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.VectorIds) if (&from == this) return; Clear(); @@ -2721,10 +2530,6 @@ bool VectorIds::IsInitialized() const { return true; } -void VectorIds::Swap(VectorIds* other) { - if (other == this) return; - InternalSwap(other); -} void VectorIds::InternalSwap(VectorIds* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); @@ -2732,9 +2537,8 @@ void VectorIds::InternalSwap(VectorIds* other) { swap(status_, other->status_); } -::google::protobuf::Metadata VectorIds::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_milvus_2eproto); - return ::file_level_metadata_milvus_2eproto[kIndexInFileMessages]; +::PROTOBUF_NAMESPACE_ID::Metadata VectorIds::GetMetadata() const { + return GetMetadataStatic(); } @@ -2742,40 +2546,32 @@ void VectorIds::InternalSwap(VectorIds* other) { void SearchVectorInfos::InitAsDefaultInstance() { } -class SearchVectorInfos::HasBitSetters { +class SearchVectorInfos::_Internal { public: }; -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SearchVectorInfos::kTableNameFieldNumber; -const int SearchVectorInfos::kQueryRecordArrayFieldNumber; -const int SearchVectorInfos::kQueryRangeArrayFieldNumber; -const int SearchVectorInfos::kTopkFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - SearchVectorInfos::SearchVectorInfos() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.SearchVectorInfos) } SearchVectorInfos::SearchVectorInfos(const SearchVectorInfos& from) - : ::google::protobuf::Message(), + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr), query_record_array_(from.query_record_array_), query_range_array_(from.query_range_array_) { _internal_metadata_.MergeFrom(from._internal_metadata_); - table_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.table_name().size() > 0) { - table_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_name_); + table_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.table_name().empty()) { + table_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.table_name_); } topk_ = from.topk_; // @@protoc_insertion_point(copy_constructor:milvus.grpc.SearchVectorInfos) } void SearchVectorInfos::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_SearchVectorInfos_milvus_2eproto.base); - table_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SearchVectorInfos_milvus_2eproto.base); + table_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); topk_ = PROTOBUF_LONGLONG(0); } @@ -2785,141 +2581,115 @@ SearchVectorInfos::~SearchVectorInfos() { } void SearchVectorInfos::SharedDtor() { - table_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + table_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void SearchVectorInfos::SetCachedSize(int size) const { _cached_size_.Set(size); } const SearchVectorInfos& SearchVectorInfos::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_SearchVectorInfos_milvus_2eproto.base); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SearchVectorInfos_milvus_2eproto.base); return *internal_default_instance(); } void SearchVectorInfos::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.SearchVectorInfos) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; query_record_array_.Clear(); query_range_array_.Clear(); - table_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + table_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); topk_ = PROTOBUF_LONGLONG(0); _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* SearchVectorInfos::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); +const char* SearchVectorInfos::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); switch (tag >> 3) { // string table_name = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("milvus.grpc.SearchVectorInfos.table_name"); - object = msg->mutable_table_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } + 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"); + CHK_(ptr); + } else goto handle_unusual; + continue; // repeated .milvus.grpc.RowRecord query_record_array = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::milvus::grpc::RowRecord::_InternalParse; - object = msg->add_query_record_array(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); - break; - } + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(add_query_record_array(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18); + } else goto handle_unusual; + continue; // repeated .milvus.grpc.Range query_range_array = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::milvus::grpc::Range::_InternalParse; - object = msg->add_query_range_array(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1)); - break; - } + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(add_query_range_array(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26); + } else goto handle_unusual; + continue; // int64 topk = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - msg->set_topk(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { + topk_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; + ctx->SetLastTag(tag); + goto success; } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } } // switch } // while +success: return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); +failure: + ptr = nullptr; + goto success; +#undef CHK_ } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool SearchVectorInfos::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.SearchVectorInfos) for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string table_name = 1; case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_table_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->table_name().data(), static_cast(this->table_name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.SearchVectorInfos.table_name")); } else { goto handle_unusual; @@ -2929,8 +2699,8 @@ bool SearchVectorInfos::MergePartialFromCodedStream( // repeated .milvus.grpc.RowRecord query_record_array = 2; case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, add_query_record_array())); } else { goto handle_unusual; @@ -2940,8 +2710,8 @@ bool SearchVectorInfos::MergePartialFromCodedStream( // repeated .milvus.grpc.Range query_range_array = 3; case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, add_query_range_array())); } else { goto handle_unusual; @@ -2951,10 +2721,10 @@ bool SearchVectorInfos::MergePartialFromCodedStream( // int64 topk = 4; case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( input, &topk_))); } else { goto handle_unusual; @@ -2967,7 +2737,7 @@ bool SearchVectorInfos::MergePartialFromCodedStream( if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormat::SkipField( + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } @@ -2984,25 +2754,25 @@ failure: #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SearchVectorInfos::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.SearchVectorInfos) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // string table_name = 1; if (this->table_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->table_name().data(), static_cast(this->table_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.SearchVectorInfos.table_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->table_name(), output); } // repeated .milvus.grpc.RowRecord query_record_array = 2; for (unsigned int i = 0, n = static_cast(this->query_record_array_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( 2, this->query_record_array(static_cast(i)), output); @@ -3011,7 +2781,7 @@ void SearchVectorInfos::SerializeWithCachedSizes( // repeated .milvus.grpc.Range query_range_array = 3; for (unsigned int i = 0, n = static_cast(this->query_range_array_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( 3, this->query_range_array(static_cast(i)), output); @@ -3019,37 +2789,37 @@ void SearchVectorInfos::SerializeWithCachedSizes( // int64 topk = 4; if (this->topk() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->topk(), output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(4, this->topk(), output); } if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:milvus.grpc.SearchVectorInfos) } -::google::protobuf::uint8* SearchVectorInfos::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* SearchVectorInfos::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.SearchVectorInfos) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // string table_name = 1; if (this->table_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->table_name().data(), static_cast(this->table_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.SearchVectorInfos.table_name"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 1, this->table_name(), target); } // repeated .milvus.grpc.RowRecord query_record_array = 2; for (unsigned int i = 0, n = static_cast(this->query_record_array_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessageToArray( 2, this->query_record_array(static_cast(i)), target); } @@ -3057,18 +2827,18 @@ void SearchVectorInfos::SerializeWithCachedSizes( // repeated .milvus.grpc.Range query_range_array = 3; for (unsigned int i = 0, n = static_cast(this->query_range_array_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessageToArray( 3, this->query_range_array(static_cast(i)), target); } // int64 topk = 4; if (this->topk() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(4, this->topk(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->topk(), target); } if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.SearchVectorInfos) @@ -3081,10 +2851,10 @@ size_t SearchVectorInfos::ByteSizeLong() const { if (_internal_metadata_.have_unknown_fields()) { total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -3094,7 +2864,7 @@ size_t SearchVectorInfos::ByteSizeLong() const { total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( this->query_record_array(static_cast(i))); } } @@ -3105,7 +2875,7 @@ size_t SearchVectorInfos::ByteSizeLong() const { total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( this->query_range_array(static_cast(i))); } } @@ -3113,31 +2883,31 @@ size_t SearchVectorInfos::ByteSizeLong() const { // string table_name = 1; if (this->table_name().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->table_name()); } // int64 topk = 4; if (this->topk() != 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->topk()); } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void SearchVectorInfos::MergeFrom(const ::google::protobuf::Message& from) { +void SearchVectorInfos::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.SearchVectorInfos) GOOGLE_DCHECK_NE(&from, this); const SearchVectorInfos* source = - ::google::protobuf::DynamicCastToGenerated( + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.SearchVectorInfos) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.SearchVectorInfos) MergeFrom(*source); @@ -3148,21 +2918,21 @@ void SearchVectorInfos::MergeFrom(const SearchVectorInfos& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.SearchVectorInfos) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; query_record_array_.MergeFrom(from.query_record_array_); query_range_array_.MergeFrom(from.query_range_array_); if (from.table_name().size() > 0) { - table_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_name_); + table_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.table_name_); } if (from.topk() != 0) { set_topk(from.topk()); } } -void SearchVectorInfos::CopyFrom(const ::google::protobuf::Message& from) { +void SearchVectorInfos::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.SearchVectorInfos) if (&from == this) return; Clear(); @@ -3180,23 +2950,18 @@ bool SearchVectorInfos::IsInitialized() const { return true; } -void SearchVectorInfos::Swap(SearchVectorInfos* other) { - if (other == this) return; - InternalSwap(other); -} void SearchVectorInfos::InternalSwap(SearchVectorInfos* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); CastToBase(&query_record_array_)->InternalSwap(CastToBase(&other->query_record_array_)); CastToBase(&query_range_array_)->InternalSwap(CastToBase(&other->query_range_array_)); - table_name_.Swap(&other->table_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + table_name_.Swap(&other->table_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); swap(topk_, other->topk_); } -::google::protobuf::Metadata SearchVectorInfos::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_milvus_2eproto); - return ::file_level_metadata_milvus_2eproto[kIndexInFileMessages]; +::PROTOBUF_NAMESPACE_ID::Metadata SearchVectorInfos::GetMetadata() const { + return GetMetadataStatic(); } @@ -3206,27 +2971,22 @@ 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()); } -class SearchVectorInFilesInfos::HasBitSetters { +class SearchVectorInFilesInfos::_Internal { public: static const ::milvus::grpc::SearchVectorInfos& search_vector_infos(const SearchVectorInFilesInfos* msg); }; const ::milvus::grpc::SearchVectorInfos& -SearchVectorInFilesInfos::HasBitSetters::search_vector_infos(const SearchVectorInFilesInfos* msg) { +SearchVectorInFilesInfos::_Internal::search_vector_infos(const SearchVectorInFilesInfos* msg) { return *msg->search_vector_infos_; } -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SearchVectorInFilesInfos::kFileIdArrayFieldNumber; -const int SearchVectorInFilesInfos::kSearchVectorInfosFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - SearchVectorInFilesInfos::SearchVectorInFilesInfos() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.SearchVectorInFilesInfos) } SearchVectorInFilesInfos::SearchVectorInFilesInfos(const SearchVectorInFilesInfos& from) - : ::google::protobuf::Message(), + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr), file_id_array_(from.file_id_array_) { _internal_metadata_.MergeFrom(from._internal_metadata_); @@ -3239,8 +2999,7 @@ SearchVectorInFilesInfos::SearchVectorInFilesInfos(const SearchVectorInFilesInfo } void SearchVectorInFilesInfos::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_SearchVectorInFilesInfos_milvus_2eproto.base); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SearchVectorInFilesInfos_milvus_2eproto.base); search_vector_infos_ = nullptr; } @@ -3257,14 +3016,14 @@ void SearchVectorInFilesInfos::SetCachedSize(int size) const { _cached_size_.Set(size); } const SearchVectorInFilesInfos& SearchVectorInFilesInfos::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_SearchVectorInFilesInfos_milvus_2eproto.base); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SearchVectorInFilesInfos_milvus_2eproto.base); return *internal_default_instance(); } void SearchVectorInFilesInfos::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.SearchVectorInFilesInfos) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -3277,93 +3036,71 @@ void SearchVectorInFilesInfos::Clear() { } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* SearchVectorInFilesInfos::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); +const char* SearchVectorInFilesInfos::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); switch (tag >> 3) { // repeated string file_id_array = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("milvus.grpc.SearchVectorInFilesInfos.file_id_array"); - object = msg->add_file_id_array(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - break; - } + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_file_id_array(), ptr, ctx, "milvus.grpc.SearchVectorInFilesInfos.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; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::milvus::grpc::SearchVectorInfos::_InternalParse; - object = msg->mutable_search_vector_infos(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ctx->ParseMessage(mutable_search_vector_infos(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; + ctx->SetLastTag(tag); + goto success; } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } } // switch } // while +success: return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); +failure: + ptr = nullptr; + goto success; +#undef CHK_ } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool SearchVectorInFilesInfos::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.SearchVectorInFilesInfos) for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated string file_id_array = 1; case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->add_file_id_array())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->file_id_array(this->file_id_array_size() - 1).data(), static_cast(this->file_id_array(this->file_id_array_size() - 1).length()), - ::google::protobuf::internal::WireFormatLite::PARSE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.SearchVectorInFilesInfos.file_id_array")); } else { goto handle_unusual; @@ -3373,8 +3110,8 @@ bool SearchVectorInFilesInfos::MergePartialFromCodedStream( // .milvus.grpc.SearchVectorInfos search_vector_infos = 2; case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, mutable_search_vector_infos())); } else { goto handle_unusual; @@ -3387,7 +3124,7 @@ bool SearchVectorInFilesInfos::MergePartialFromCodedStream( if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormat::SkipField( + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } @@ -3404,59 +3141,59 @@ failure: #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SearchVectorInFilesInfos::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.SearchVectorInFilesInfos) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // repeated string file_id_array = 1; for (int i = 0, n = this->file_id_array_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->file_id_array(i).data(), static_cast(this->file_id_array(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.SearchVectorInFilesInfos.file_id_array"); - ::google::protobuf::internal::WireFormatLite::WriteString( + ::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()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::search_vector_infos(this), output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 2, _Internal::search_vector_infos(this), output); } if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:milvus.grpc.SearchVectorInFilesInfos) } -::google::protobuf::uint8* SearchVectorInFilesInfos::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* SearchVectorInFilesInfos::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.SearchVectorInFilesInfos) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // repeated string file_id_array = 1; for (int i = 0, n = this->file_id_array_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->file_id_array(i).data(), static_cast(this->file_id_array(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.SearchVectorInFilesInfos.file_id_array"); - target = ::google::protobuf::internal::WireFormatLite:: + 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()) { - target = ::google::protobuf::internal::WireFormatLite:: + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessageToArray( - 2, HasBitSetters::search_vector_infos(this), target); + 2, _Internal::search_vector_infos(this), target); } if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.SearchVectorInFilesInfos) @@ -3469,42 +3206,42 @@ size_t SearchVectorInFilesInfos::ByteSizeLong() const { if (_internal_metadata_.have_unknown_fields()) { total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // repeated string file_id_array = 1; total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->file_id_array_size()); + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->file_id_array_size()); for (int i = 0, n = this->file_id_array_size(); i < n; i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->file_id_array(i)); } // .milvus.grpc.SearchVectorInfos search_vector_infos = 2; if (this->has_search_vector_infos()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *search_vector_infos_); } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void SearchVectorInFilesInfos::MergeFrom(const ::google::protobuf::Message& from) { +void SearchVectorInFilesInfos::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.SearchVectorInFilesInfos) GOOGLE_DCHECK_NE(&from, this); const SearchVectorInFilesInfos* source = - ::google::protobuf::DynamicCastToGenerated( + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.SearchVectorInFilesInfos) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.SearchVectorInFilesInfos) MergeFrom(*source); @@ -3515,7 +3252,7 @@ void SearchVectorInFilesInfos::MergeFrom(const SearchVectorInFilesInfos& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.SearchVectorInFilesInfos) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; file_id_array_.MergeFrom(from.file_id_array_); @@ -3524,7 +3261,7 @@ void SearchVectorInFilesInfos::MergeFrom(const SearchVectorInFilesInfos& from) { } } -void SearchVectorInFilesInfos::CopyFrom(const ::google::protobuf::Message& from) { +void SearchVectorInFilesInfos::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.SearchVectorInFilesInfos) if (&from == this) return; Clear(); @@ -3542,10 +3279,6 @@ bool SearchVectorInFilesInfos::IsInitialized() const { return true; } -void SearchVectorInFilesInfos::Swap(SearchVectorInFilesInfos* other) { - if (other == this) return; - InternalSwap(other); -} void SearchVectorInFilesInfos::InternalSwap(SearchVectorInFilesInfos* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); @@ -3553,9 +3286,8 @@ void SearchVectorInFilesInfos::InternalSwap(SearchVectorInFilesInfos* other) { swap(search_vector_infos_, other->search_vector_infos_); } -::google::protobuf::Metadata SearchVectorInFilesInfos::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_milvus_2eproto); - return ::file_level_metadata_milvus_2eproto[kIndexInFileMessages]; +::PROTOBUF_NAMESPACE_ID::Metadata SearchVectorInFilesInfos::GetMetadata() const { + return GetMetadataStatic(); } @@ -3563,22 +3295,17 @@ void SearchVectorInFilesInfos::InternalSwap(SearchVectorInFilesInfos* other) { void QueryResult::InitAsDefaultInstance() { } -class QueryResult::HasBitSetters { +class QueryResult::_Internal { public: }; -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int QueryResult::kIdFieldNumber; -const int QueryResult::kDistanceFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - QueryResult::QueryResult() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.QueryResult) } QueryResult::QueryResult(const QueryResult& from) - : ::google::protobuf::Message(), + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); ::memcpy(&id_, &from.id_, @@ -3605,14 +3332,14 @@ void QueryResult::SetCachedSize(int size) const { _cached_size_.Set(size); } const QueryResult& QueryResult::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_QueryResult_milvus_2eproto.base); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_QueryResult_milvus_2eproto.base); return *internal_default_instance(); } void QueryResult::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.QueryResult) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -3623,65 +3350,63 @@ void QueryResult::Clear() { } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* QueryResult::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); +const char* QueryResult::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); switch (tag >> 3) { // int64 id = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_id(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // double distance = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 17) goto handle_unusual; - msg->set_distance(::google::protobuf::io::UnalignedLoad(ptr)); - ptr += sizeof(double); - break; - } + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 17)) { + distance_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; + ctx->SetLastTag(tag); + goto success; } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; + 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 QueryResult::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.QueryResult) for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { // int64 id = 1; case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( input, &id_))); } else { goto handle_unusual; @@ -3691,10 +3416,10 @@ bool QueryResult::MergePartialFromCodedStream( // double distance = 2; case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (17 & 0xFF)) { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (17 & 0xFF)) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + double, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_DOUBLE>( input, &distance_))); } else { goto handle_unusual; @@ -3707,7 +3432,7 @@ bool QueryResult::MergePartialFromCodedStream( if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormat::SkipField( + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } @@ -3724,46 +3449,46 @@ failure: #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void QueryResult::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.QueryResult) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // int64 id = 1; if (this->id() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->id(), output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->id(), output); } // double distance = 2; - if (this->distance() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->distance(), output); + if (!(this->distance() <= 0 && this->distance() >= 0)) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDouble(2, this->distance(), output); } if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:milvus.grpc.QueryResult) } -::google::protobuf::uint8* QueryResult::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* QueryResult::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.QueryResult) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // int64 id = 1; if (this->id() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->id(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->id(), target); } // double distance = 2; - if (this->distance() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->distance(), target); + if (!(this->distance() <= 0 && this->distance() >= 0)) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->distance(), target); } if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.QueryResult) @@ -3776,39 +3501,39 @@ size_t QueryResult::ByteSizeLong() const { if (_internal_metadata_.have_unknown_fields()) { total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // int64 id = 1; if (this->id() != 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->id()); } // double distance = 2; - if (this->distance() != 0) { + if (!(this->distance() <= 0 && this->distance() >= 0)) { total_size += 1 + 8; } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void QueryResult::MergeFrom(const ::google::protobuf::Message& from) { +void QueryResult::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.QueryResult) GOOGLE_DCHECK_NE(&from, this); const QueryResult* source = - ::google::protobuf::DynamicCastToGenerated( + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.QueryResult) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.QueryResult) MergeFrom(*source); @@ -3819,18 +3544,18 @@ void QueryResult::MergeFrom(const QueryResult& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.QueryResult) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.id() != 0) { set_id(from.id()); } - if (from.distance() != 0) { + if (!(from.distance() <= 0 && from.distance() >= 0)) { set_distance(from.distance()); } } -void QueryResult::CopyFrom(const ::google::protobuf::Message& from) { +void QueryResult::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.QueryResult) if (&from == this) return; Clear(); @@ -3848,10 +3573,6 @@ bool QueryResult::IsInitialized() const { return true; } -void QueryResult::Swap(QueryResult* other) { - if (other == this) return; - InternalSwap(other); -} void QueryResult::InternalSwap(QueryResult* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); @@ -3859,9 +3580,8 @@ void QueryResult::InternalSwap(QueryResult* other) { swap(distance_, other->distance_); } -::google::protobuf::Metadata QueryResult::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_milvus_2eproto); - return ::file_level_metadata_milvus_2eproto[kIndexInFileMessages]; +::PROTOBUF_NAMESPACE_ID::Metadata QueryResult::GetMetadata() const { + return GetMetadataStatic(); } @@ -3871,13 +3591,13 @@ void TopKQueryResult::InitAsDefaultInstance() { ::milvus::grpc::_TopKQueryResult_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( ::milvus::grpc::Status::internal_default_instance()); } -class TopKQueryResult::HasBitSetters { +class TopKQueryResult::_Internal { public: static const ::milvus::grpc::Status& status(const TopKQueryResult* msg); }; const ::milvus::grpc::Status& -TopKQueryResult::HasBitSetters::status(const TopKQueryResult* msg) { +TopKQueryResult::_Internal::status(const TopKQueryResult* msg) { return *msg->status_; } void TopKQueryResult::clear_status() { @@ -3886,18 +3606,13 @@ void TopKQueryResult::clear_status() { } status_ = nullptr; } -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TopKQueryResult::kStatusFieldNumber; -const int TopKQueryResult::kQueryResultArraysFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - TopKQueryResult::TopKQueryResult() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.TopKQueryResult) } TopKQueryResult::TopKQueryResult(const TopKQueryResult& from) - : ::google::protobuf::Message(), + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr), query_result_arrays_(from.query_result_arrays_) { _internal_metadata_.MergeFrom(from._internal_metadata_); @@ -3910,8 +3625,7 @@ TopKQueryResult::TopKQueryResult(const TopKQueryResult& from) } void TopKQueryResult::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_TopKQueryResult_milvus_2eproto.base); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TopKQueryResult_milvus_2eproto.base); status_ = nullptr; } @@ -3928,14 +3642,14 @@ void TopKQueryResult::SetCachedSize(int size) const { _cached_size_.Set(size); } const TopKQueryResult& TopKQueryResult::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TopKQueryResult_milvus_2eproto.base); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TopKQueryResult_milvus_2eproto.base); return *internal_default_instance(); } void TopKQueryResult::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.TopKQueryResult) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -3948,81 +3662,66 @@ void TopKQueryResult::Clear() { } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TopKQueryResult::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); +const char* TopKQueryResult::_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; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::milvus::grpc::Status::_InternalParse; - object = msg->mutable_status(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_status(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // repeated .milvus.grpc.QueryResult query_result_arrays = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::milvus::grpc::QueryResult::_InternalParse; - object = msg->add_query_result_arrays(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); - break; - } + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(add_query_result_arrays(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; + ctx->SetLastTag(tag); + goto success; } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } } // switch } // while +success: return ptr; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); +failure: + ptr = nullptr; + goto success; +#undef CHK_ } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool TopKQueryResult::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.TopKQueryResult) for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .milvus.grpc.Status status = 1; case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, mutable_status())); } else { goto handle_unusual; @@ -4032,8 +3731,8 @@ bool TopKQueryResult::MergePartialFromCodedStream( // repeated .milvus.grpc.QueryResult query_result_arrays = 2; case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, add_query_result_arrays())); } else { goto handle_unusual; @@ -4046,7 +3745,7 @@ bool TopKQueryResult::MergePartialFromCodedStream( if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormat::SkipField( + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } @@ -4063,56 +3762,56 @@ failure: #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void TopKQueryResult::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.TopKQueryResult) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // .milvus.grpc.Status status = 1; if (this->has_status()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::status(this), output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::status(this), output); } // repeated .milvus.grpc.QueryResult query_result_arrays = 2; for (unsigned int i = 0, n = static_cast(this->query_result_arrays_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( 2, this->query_result_arrays(static_cast(i)), output); } if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:milvus.grpc.TopKQueryResult) } -::google::protobuf::uint8* TopKQueryResult::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* TopKQueryResult::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.TopKQueryResult) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // .milvus.grpc.Status status = 1; if (this->has_status()) { - target = ::google::protobuf::internal::WireFormatLite:: + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessageToArray( - 1, HasBitSetters::status(this), target); + 1, _Internal::status(this), target); } // repeated .milvus.grpc.QueryResult query_result_arrays = 2; for (unsigned int i = 0, n = static_cast(this->query_result_arrays_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessageToArray( 2, this->query_result_arrays(static_cast(i)), target); } if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.TopKQueryResult) @@ -4125,10 +3824,10 @@ size_t TopKQueryResult::ByteSizeLong() const { if (_internal_metadata_.have_unknown_fields()) { total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -4138,7 +3837,7 @@ size_t TopKQueryResult::ByteSizeLong() const { total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( this->query_result_arrays(static_cast(i))); } } @@ -4146,24 +3845,24 @@ size_t TopKQueryResult::ByteSizeLong() const { // .milvus.grpc.Status status = 1; if (this->has_status()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *status_); } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void TopKQueryResult::MergeFrom(const ::google::protobuf::Message& from) { +void TopKQueryResult::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.TopKQueryResult) GOOGLE_DCHECK_NE(&from, this); const TopKQueryResult* source = - ::google::protobuf::DynamicCastToGenerated( + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.TopKQueryResult) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.TopKQueryResult) MergeFrom(*source); @@ -4174,7 +3873,7 @@ void TopKQueryResult::MergeFrom(const TopKQueryResult& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.TopKQueryResult) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; query_result_arrays_.MergeFrom(from.query_result_arrays_); @@ -4183,7 +3882,7 @@ void TopKQueryResult::MergeFrom(const TopKQueryResult& from) { } } -void TopKQueryResult::CopyFrom(const ::google::protobuf::Message& from) { +void TopKQueryResult::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.TopKQueryResult) if (&from == this) return; Clear(); @@ -4201,10 +3900,6 @@ bool TopKQueryResult::IsInitialized() const { return true; } -void TopKQueryResult::Swap(TopKQueryResult* other) { - if (other == this) return; - InternalSwap(other); -} void TopKQueryResult::InternalSwap(TopKQueryResult* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); @@ -4212,9 +3907,8 @@ void TopKQueryResult::InternalSwap(TopKQueryResult* other) { swap(status_, other->status_); } -::google::protobuf::Metadata TopKQueryResult::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_milvus_2eproto); - return ::file_level_metadata_milvus_2eproto[kIndexInFileMessages]; +::PROTOBUF_NAMESPACE_ID::Metadata TopKQueryResult::GetMetadata() const { + return GetMetadataStatic(); } @@ -4224,13 +3918,13 @@ void StringReply::InitAsDefaultInstance() { ::milvus::grpc::_StringReply_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( ::milvus::grpc::Status::internal_default_instance()); } -class StringReply::HasBitSetters { +class StringReply::_Internal { public: static const ::milvus::grpc::Status& status(const StringReply* msg); }; const ::milvus::grpc::Status& -StringReply::HasBitSetters::status(const StringReply* msg) { +StringReply::_Internal::status(const StringReply* msg) { return *msg->status_; } void StringReply::clear_status() { @@ -4239,23 +3933,18 @@ void StringReply::clear_status() { } status_ = nullptr; } -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int StringReply::kStatusFieldNumber; -const int StringReply::kStringReplyFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - StringReply::StringReply() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.StringReply) } StringReply::StringReply(const StringReply& from) - : ::google::protobuf::Message(), + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - string_reply_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.string_reply().size() > 0) { - string_reply_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.string_reply_); + string_reply_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.string_reply().empty()) { + string_reply_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.string_reply_); } if (from.has_status()) { status_ = new ::milvus::grpc::Status(*from.status_); @@ -4266,9 +3955,8 @@ StringReply::StringReply(const StringReply& from) } void StringReply::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_StringReply_milvus_2eproto.base); - string_reply_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_StringReply_milvus_2eproto.base); + string_reply_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); status_ = nullptr; } @@ -4278,7 +3966,7 @@ StringReply::~StringReply() { } void StringReply::SharedDtor() { - string_reply_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + string_reply_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete status_; } @@ -4286,18 +3974,18 @@ void StringReply::SetCachedSize(int size) const { _cached_size_.Set(size); } const StringReply& StringReply::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_StringReply_milvus_2eproto.base); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_StringReply_milvus_2eproto.base); return *internal_default_instance(); } void StringReply::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.StringReply) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - string_reply_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + string_reply_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { delete status_; } @@ -4306,85 +3994,61 @@ void StringReply::Clear() { } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* StringReply::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); +const char* StringReply::_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; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::milvus::grpc::Status::_InternalParse; - object = msg->mutable_status(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_status(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // string string_reply = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("milvus.grpc.StringReply.string_reply"); - object = msg->mutable_string_reply(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_string_reply(), ptr, ctx, "milvus.grpc.StringReply.string_reply"); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; + ctx->SetLastTag(tag); + goto success; } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } } // switch } // while +success: return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); +failure: + ptr = nullptr; + goto success; +#undef CHK_ } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool StringReply::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.StringReply) for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .milvus.grpc.Status status = 1; case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, mutable_status())); } else { goto handle_unusual; @@ -4394,12 +4058,12 @@ bool StringReply::MergePartialFromCodedStream( // string string_reply = 2; case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_string_reply())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->string_reply().data(), static_cast(this->string_reply().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.StringReply.string_reply")); } else { goto handle_unusual; @@ -4412,7 +4076,7 @@ bool StringReply::MergePartialFromCodedStream( if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormat::SkipField( + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } @@ -4429,60 +4093,60 @@ failure: #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void StringReply::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.StringReply) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // .milvus.grpc.Status status = 1; if (this->has_status()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::status(this), output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::status(this), output); } // string string_reply = 2; if (this->string_reply().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->string_reply().data(), static_cast(this->string_reply().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.StringReply.string_reply"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->string_reply(), output); } if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:milvus.grpc.StringReply) } -::google::protobuf::uint8* StringReply::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* StringReply::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.StringReply) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // .milvus.grpc.Status status = 1; if (this->has_status()) { - target = ::google::protobuf::internal::WireFormatLite:: + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessageToArray( - 1, HasBitSetters::status(this), target); + 1, _Internal::status(this), target); } // string string_reply = 2; if (this->string_reply().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->string_reply().data(), static_cast(this->string_reply().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.StringReply.string_reply"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 2, this->string_reply(), target); } if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.StringReply) @@ -4495,41 +4159,41 @@ size_t StringReply::ByteSizeLong() const { if (_internal_metadata_.have_unknown_fields()) { total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string string_reply = 2; if (this->string_reply().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->string_reply()); } // .milvus.grpc.Status status = 1; if (this->has_status()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *status_); } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void StringReply::MergeFrom(const ::google::protobuf::Message& from) { +void StringReply::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.StringReply) GOOGLE_DCHECK_NE(&from, this); const StringReply* source = - ::google::protobuf::DynamicCastToGenerated( + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.StringReply) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.StringReply) MergeFrom(*source); @@ -4540,19 +4204,19 @@ void StringReply::MergeFrom(const StringReply& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.StringReply) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.string_reply().size() > 0) { - string_reply_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.string_reply_); + string_reply_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.string_reply_); } if (from.has_status()) { mutable_status()->::milvus::grpc::Status::MergeFrom(from.status()); } } -void StringReply::CopyFrom(const ::google::protobuf::Message& from) { +void StringReply::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.StringReply) if (&from == this) return; Clear(); @@ -4570,21 +4234,16 @@ bool StringReply::IsInitialized() const { return true; } -void StringReply::Swap(StringReply* other) { - if (other == this) return; - InternalSwap(other); -} void StringReply::InternalSwap(StringReply* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - string_reply_.Swap(&other->string_reply_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + string_reply_.Swap(&other->string_reply_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); swap(status_, other->status_); } -::google::protobuf::Metadata StringReply::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_milvus_2eproto); - return ::file_level_metadata_milvus_2eproto[kIndexInFileMessages]; +::PROTOBUF_NAMESPACE_ID::Metadata StringReply::GetMetadata() const { + return GetMetadataStatic(); } @@ -4594,13 +4253,13 @@ void BoolReply::InitAsDefaultInstance() { ::milvus::grpc::_BoolReply_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( ::milvus::grpc::Status::internal_default_instance()); } -class BoolReply::HasBitSetters { +class BoolReply::_Internal { public: static const ::milvus::grpc::Status& status(const BoolReply* msg); }; const ::milvus::grpc::Status& -BoolReply::HasBitSetters::status(const BoolReply* msg) { +BoolReply::_Internal::status(const BoolReply* msg) { return *msg->status_; } void BoolReply::clear_status() { @@ -4609,18 +4268,13 @@ void BoolReply::clear_status() { } status_ = nullptr; } -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int BoolReply::kStatusFieldNumber; -const int BoolReply::kBoolReplyFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - BoolReply::BoolReply() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.BoolReply) } BoolReply::BoolReply(const BoolReply& from) - : ::google::protobuf::Message(), + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); if (from.has_status()) { @@ -4633,8 +4287,7 @@ BoolReply::BoolReply(const BoolReply& from) } void BoolReply::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_BoolReply_milvus_2eproto.base); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_BoolReply_milvus_2eproto.base); ::memset(&status_, 0, static_cast( reinterpret_cast(&bool_reply_) - reinterpret_cast(&status_)) + sizeof(bool_reply_)); @@ -4653,14 +4306,14 @@ void BoolReply::SetCachedSize(int size) const { _cached_size_.Set(size); } const BoolReply& BoolReply::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_BoolReply_milvus_2eproto.base); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_BoolReply_milvus_2eproto.base); return *internal_default_instance(); } void BoolReply::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.BoolReply) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -4673,72 +4326,61 @@ void BoolReply::Clear() { } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* BoolReply::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); +const char* BoolReply::_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; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::milvus::grpc::Status::_InternalParse; - object = msg->mutable_status(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_status(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // bool bool_reply = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_bool_reply(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + bool_reply_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; + ctx->SetLastTag(tag); + goto success; } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } } // switch } // while +success: return ptr; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); +failure: + ptr = nullptr; + goto success; +#undef CHK_ } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool BoolReply::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.BoolReply) for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .milvus.grpc.Status status = 1; case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, mutable_status())); } else { goto handle_unusual; @@ -4748,10 +4390,10 @@ bool BoolReply::MergePartialFromCodedStream( // bool bool_reply = 2; case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>( input, &bool_reply_))); } else { goto handle_unusual; @@ -4764,7 +4406,7 @@ bool BoolReply::MergePartialFromCodedStream( if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormat::SkipField( + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } @@ -4781,49 +4423,49 @@ failure: #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void BoolReply::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.BoolReply) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // .milvus.grpc.Status status = 1; if (this->has_status()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::status(this), output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::status(this), output); } // bool bool_reply = 2; if (this->bool_reply() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->bool_reply(), output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(2, this->bool_reply(), output); } if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:milvus.grpc.BoolReply) } -::google::protobuf::uint8* BoolReply::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* BoolReply::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.BoolReply) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // .milvus.grpc.Status status = 1; if (this->has_status()) { - target = ::google::protobuf::internal::WireFormatLite:: + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessageToArray( - 1, HasBitSetters::status(this), target); + 1, _Internal::status(this), target); } // bool bool_reply = 2; if (this->bool_reply() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->bool_reply(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->bool_reply(), target); } if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.BoolReply) @@ -4836,17 +4478,17 @@ size_t BoolReply::ByteSizeLong() const { if (_internal_metadata_.have_unknown_fields()) { total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .milvus.grpc.Status status = 1; if (this->has_status()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *status_); } @@ -4855,20 +4497,20 @@ size_t BoolReply::ByteSizeLong() const { total_size += 1 + 1; } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void BoolReply::MergeFrom(const ::google::protobuf::Message& from) { +void BoolReply::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.BoolReply) GOOGLE_DCHECK_NE(&from, this); const BoolReply* source = - ::google::protobuf::DynamicCastToGenerated( + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.BoolReply) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.BoolReply) MergeFrom(*source); @@ -4879,7 +4521,7 @@ void BoolReply::MergeFrom(const BoolReply& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.BoolReply) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.has_status()) { @@ -4890,7 +4532,7 @@ void BoolReply::MergeFrom(const BoolReply& from) { } } -void BoolReply::CopyFrom(const ::google::protobuf::Message& from) { +void BoolReply::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.BoolReply) if (&from == this) return; Clear(); @@ -4908,10 +4550,6 @@ bool BoolReply::IsInitialized() const { return true; } -void BoolReply::Swap(BoolReply* other) { - if (other == this) return; - InternalSwap(other); -} void BoolReply::InternalSwap(BoolReply* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); @@ -4919,9 +4557,8 @@ void BoolReply::InternalSwap(BoolReply* other) { swap(bool_reply_, other->bool_reply_); } -::google::protobuf::Metadata BoolReply::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_milvus_2eproto); - return ::file_level_metadata_milvus_2eproto[kIndexInFileMessages]; +::PROTOBUF_NAMESPACE_ID::Metadata BoolReply::GetMetadata() const { + return GetMetadataStatic(); } @@ -4931,13 +4568,13 @@ void TableRowCount::InitAsDefaultInstance() { ::milvus::grpc::_TableRowCount_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( ::milvus::grpc::Status::internal_default_instance()); } -class TableRowCount::HasBitSetters { +class TableRowCount::_Internal { public: static const ::milvus::grpc::Status& status(const TableRowCount* msg); }; const ::milvus::grpc::Status& -TableRowCount::HasBitSetters::status(const TableRowCount* msg) { +TableRowCount::_Internal::status(const TableRowCount* msg) { return *msg->status_; } void TableRowCount::clear_status() { @@ -4946,18 +4583,13 @@ void TableRowCount::clear_status() { } status_ = nullptr; } -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TableRowCount::kStatusFieldNumber; -const int TableRowCount::kTableRowCountFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - TableRowCount::TableRowCount() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.TableRowCount) } TableRowCount::TableRowCount(const TableRowCount& from) - : ::google::protobuf::Message(), + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); if (from.has_status()) { @@ -4970,8 +4602,7 @@ TableRowCount::TableRowCount(const TableRowCount& from) } void TableRowCount::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_TableRowCount_milvus_2eproto.base); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TableRowCount_milvus_2eproto.base); ::memset(&status_, 0, static_cast( reinterpret_cast(&table_row_count_) - reinterpret_cast(&status_)) + sizeof(table_row_count_)); @@ -4990,14 +4621,14 @@ void TableRowCount::SetCachedSize(int size) const { _cached_size_.Set(size); } const TableRowCount& TableRowCount::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TableRowCount_milvus_2eproto.base); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TableRowCount_milvus_2eproto.base); return *internal_default_instance(); } void TableRowCount::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.TableRowCount) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -5010,72 +4641,61 @@ void TableRowCount::Clear() { } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TableRowCount::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); +const char* TableRowCount::_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; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::milvus::grpc::Status::_InternalParse; - object = msg->mutable_status(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_status(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // int64 table_row_count = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_table_row_count(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { + table_row_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; + ctx->SetLastTag(tag); + goto success; } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } } // switch } // while +success: return ptr; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); +failure: + ptr = nullptr; + goto success; +#undef CHK_ } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool TableRowCount::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.TableRowCount) for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .milvus.grpc.Status status = 1; case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, mutable_status())); } else { goto handle_unusual; @@ -5085,10 +4705,10 @@ bool TableRowCount::MergePartialFromCodedStream( // int64 table_row_count = 2; case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( input, &table_row_count_))); } else { goto handle_unusual; @@ -5101,7 +4721,7 @@ bool TableRowCount::MergePartialFromCodedStream( if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormat::SkipField( + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } @@ -5118,49 +4738,49 @@ failure: #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void TableRowCount::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.TableRowCount) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // .milvus.grpc.Status status = 1; if (this->has_status()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::status(this), output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::status(this), output); } // int64 table_row_count = 2; if (this->table_row_count() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->table_row_count(), output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->table_row_count(), output); } if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:milvus.grpc.TableRowCount) } -::google::protobuf::uint8* TableRowCount::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* TableRowCount::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.TableRowCount) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // .milvus.grpc.Status status = 1; if (this->has_status()) { - target = ::google::protobuf::internal::WireFormatLite:: + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessageToArray( - 1, HasBitSetters::status(this), target); + 1, _Internal::status(this), target); } // int64 table_row_count = 2; if (this->table_row_count() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->table_row_count(), target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->table_row_count(), target); } if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.TableRowCount) @@ -5173,41 +4793,41 @@ size_t TableRowCount::ByteSizeLong() const { if (_internal_metadata_.have_unknown_fields()) { total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .milvus.grpc.Status status = 1; if (this->has_status()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *status_); } // int64 table_row_count = 2; if (this->table_row_count() != 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( this->table_row_count()); } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void TableRowCount::MergeFrom(const ::google::protobuf::Message& from) { +void TableRowCount::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.TableRowCount) GOOGLE_DCHECK_NE(&from, this); const TableRowCount* source = - ::google::protobuf::DynamicCastToGenerated( + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.TableRowCount) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.TableRowCount) MergeFrom(*source); @@ -5218,7 +4838,7 @@ void TableRowCount::MergeFrom(const TableRowCount& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.TableRowCount) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.has_status()) { @@ -5229,7 +4849,7 @@ void TableRowCount::MergeFrom(const TableRowCount& from) { } } -void TableRowCount::CopyFrom(const ::google::protobuf::Message& from) { +void TableRowCount::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.TableRowCount) if (&from == this) return; Clear(); @@ -5247,10 +4867,6 @@ bool TableRowCount::IsInitialized() const { return true; } -void TableRowCount::Swap(TableRowCount* other) { - if (other == this) return; - InternalSwap(other); -} void TableRowCount::InternalSwap(TableRowCount* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); @@ -5258,9 +4874,8 @@ void TableRowCount::InternalSwap(TableRowCount* other) { swap(table_row_count_, other->table_row_count_); } -::google::protobuf::Metadata TableRowCount::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_milvus_2eproto); - return ::file_level_metadata_milvus_2eproto[kIndexInFileMessages]; +::PROTOBUF_NAMESPACE_ID::Metadata TableRowCount::GetMetadata() const { + return GetMetadataStatic(); } @@ -5268,34 +4883,29 @@ void TableRowCount::InternalSwap(TableRowCount* other) { void Command::InitAsDefaultInstance() { } -class Command::HasBitSetters { +class Command::_Internal { public: }; -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Command::kCmdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - Command::Command() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.Command) } Command::Command(const Command& from) - : ::google::protobuf::Message(), + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - cmd_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.cmd().size() > 0) { - cmd_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cmd_); + cmd_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.cmd().empty()) { + cmd_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.cmd_); } // @@protoc_insertion_point(copy_constructor:milvus.grpc.Command) } void Command::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Command_milvus_2eproto.base); - cmd_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Command_milvus_2eproto.base); + cmd_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } Command::~Command() { @@ -5304,99 +4914,81 @@ Command::~Command() { } void Command::SharedDtor() { - cmd_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + cmd_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void Command::SetCachedSize(int size) const { _cached_size_.Set(size); } const Command& Command::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Command_milvus_2eproto.base); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Command_milvus_2eproto.base); return *internal_default_instance(); } void Command::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.Command) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cmd_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + cmd_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Command::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); +const char* Command::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + CHK_(ptr); switch (tag >> 3) { // string cmd = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("milvus.grpc.Command.cmd"); - object = msg->mutable_cmd(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_cmd(), ptr, ctx, "milvus.grpc.Command.cmd"); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; + ctx->SetLastTag(tag); + goto success; } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } } // switch } // while +success: return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); +failure: + ptr = nullptr; + goto success; +#undef CHK_ } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool Command::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.Command) for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string cmd = 1; case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_cmd())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->cmd().data(), static_cast(this->cmd().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.Command.cmd")); } else { goto handle_unusual; @@ -5409,7 +5001,7 @@ bool Command::MergePartialFromCodedStream( if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormat::SkipField( + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } @@ -5426,47 +5018,47 @@ failure: #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void Command::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.Command) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // string cmd = 1; if (this->cmd().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->cmd().data(), static_cast(this->cmd().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.Command.cmd"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->cmd(), output); } if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:milvus.grpc.Command) } -::google::protobuf::uint8* Command::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* Command::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.Command) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // string cmd = 1; if (this->cmd().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->cmd().data(), static_cast(this->cmd().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.Command.cmd"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 1, this->cmd(), target); } if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.Command) @@ -5479,34 +5071,34 @@ size_t Command::ByteSizeLong() const { if (_internal_metadata_.have_unknown_fields()) { total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string cmd = 1; if (this->cmd().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->cmd()); } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void Command::MergeFrom(const ::google::protobuf::Message& from) { +void Command::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.Command) GOOGLE_DCHECK_NE(&from, this); const Command* source = - ::google::protobuf::DynamicCastToGenerated( + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.Command) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.Command) MergeFrom(*source); @@ -5517,16 +5109,16 @@ void Command::MergeFrom(const Command& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.Command) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.cmd().size() > 0) { - cmd_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cmd_); + cmd_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.cmd_); } } -void Command::CopyFrom(const ::google::protobuf::Message& from) { +void Command::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.Command) if (&from == this) return; Clear(); @@ -5544,20 +5136,15 @@ bool Command::IsInitialized() const { return true; } -void Command::Swap(Command* other) { - if (other == this) return; - InternalSwap(other); -} void Command::InternalSwap(Command* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - cmd_.Swap(&other->cmd_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + cmd_.Swap(&other->cmd_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } -::google::protobuf::Metadata Command::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_milvus_2eproto); - return ::file_level_metadata_milvus_2eproto[kIndexInFileMessages]; +::PROTOBUF_NAMESPACE_ID::Metadata Command::GetMetadata() const { + return GetMetadataStatic(); } @@ -5567,13 +5154,13 @@ void ServerStatus::InitAsDefaultInstance() { ::milvus::grpc::_ServerStatus_default_instance_._instance.get_mutable()->status_ = const_cast< ::milvus::grpc::Status*>( ::milvus::grpc::Status::internal_default_instance()); } -class ServerStatus::HasBitSetters { +class ServerStatus::_Internal { public: static const ::milvus::grpc::Status& status(const ServerStatus* msg); }; const ::milvus::grpc::Status& -ServerStatus::HasBitSetters::status(const ServerStatus* msg) { +ServerStatus::_Internal::status(const ServerStatus* msg) { return *msg->status_; } void ServerStatus::clear_status() { @@ -5582,23 +5169,18 @@ void ServerStatus::clear_status() { } status_ = nullptr; } -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ServerStatus::kStatusFieldNumber; -const int ServerStatus::kInfoFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - ServerStatus::ServerStatus() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.ServerStatus) } ServerStatus::ServerStatus(const ServerStatus& from) - : ::google::protobuf::Message(), + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - info_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.info().size() > 0) { - info_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.info_); + 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_); @@ -5609,9 +5191,8 @@ ServerStatus::ServerStatus(const ServerStatus& from) } void ServerStatus::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ServerStatus_milvus_2eproto.base); - info_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ServerStatus_milvus_2eproto.base); + info_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); status_ = nullptr; } @@ -5621,7 +5202,7 @@ ServerStatus::~ServerStatus() { } void ServerStatus::SharedDtor() { - info_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + info_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete status_; } @@ -5629,18 +5210,18 @@ void ServerStatus::SetCachedSize(int size) const { _cached_size_.Set(size); } const ServerStatus& ServerStatus::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ServerStatus_milvus_2eproto.base); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ServerStatus_milvus_2eproto.base); return *internal_default_instance(); } void ServerStatus::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.ServerStatus) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - info_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + info_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { delete status_; } @@ -5649,85 +5230,61 @@ void ServerStatus::Clear() { } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ServerStatus::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); +const char* ServerStatus::_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; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::milvus::grpc::Status::_InternalParse; - object = msg->mutable_status(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - break; - } + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { + ptr = ctx->ParseMessage(mutable_status(), ptr); + CHK_(ptr); + } else goto handle_unusual; + continue; // string info = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("milvus.grpc.ServerStatus.info"); - object = msg->mutable_info(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } + 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"); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; + ctx->SetLastTag(tag); + goto success; } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } } // switch } // while +success: return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); +failure: + ptr = nullptr; + goto success; +#undef CHK_ } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool ServerStatus::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.ServerStatus) for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .milvus.grpc.Status status = 1; case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( input, mutable_status())); } else { goto handle_unusual; @@ -5737,12 +5294,12 @@ bool ServerStatus::MergePartialFromCodedStream( // string info = 2; case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_info())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->info().data(), static_cast(this->info().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.ServerStatus.info")); } else { goto handle_unusual; @@ -5755,7 +5312,7 @@ bool ServerStatus::MergePartialFromCodedStream( if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormat::SkipField( + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } @@ -5772,60 +5329,60 @@ failure: #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void ServerStatus::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.ServerStatus) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // .milvus.grpc.Status status = 1; if (this->has_status()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::status(this), output); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, _Internal::status(this), output); } // string info = 2; if (this->info().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->info().data(), static_cast(this->info().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.ServerStatus.info"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->info(), output); } if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:milvus.grpc.ServerStatus) } -::google::protobuf::uint8* ServerStatus::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* ServerStatus::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.ServerStatus) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // .milvus.grpc.Status status = 1; if (this->has_status()) { - target = ::google::protobuf::internal::WireFormatLite:: + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessageToArray( - 1, HasBitSetters::status(this), target); + 1, _Internal::status(this), target); } // string info = 2; if (this->info().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->info().data(), static_cast(this->info().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.ServerStatus.info"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 2, this->info(), target); } if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.ServerStatus) @@ -5838,41 +5395,41 @@ size_t ServerStatus::ByteSizeLong() const { if (_internal_metadata_.have_unknown_fields()) { total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string info = 2; if (this->info().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->info()); } // .milvus.grpc.Status status = 1; if (this->has_status()) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *status_); } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void ServerStatus::MergeFrom(const ::google::protobuf::Message& from) { +void ServerStatus::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.ServerStatus) GOOGLE_DCHECK_NE(&from, this); const ServerStatus* source = - ::google::protobuf::DynamicCastToGenerated( + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.ServerStatus) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.ServerStatus) MergeFrom(*source); @@ -5883,19 +5440,19 @@ void ServerStatus::MergeFrom(const ServerStatus& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.ServerStatus) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.info().size() > 0) { - info_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.info_); + info_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.info_); } if (from.has_status()) { mutable_status()->::milvus::grpc::Status::MergeFrom(from.status()); } } -void ServerStatus::CopyFrom(const ::google::protobuf::Message& from) { +void ServerStatus::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.ServerStatus) if (&from == this) return; Clear(); @@ -5913,29 +5470,23 @@ bool ServerStatus::IsInitialized() const { return true; } -void ServerStatus::Swap(ServerStatus* other) { - if (other == this) return; - InternalSwap(other); -} void ServerStatus::InternalSwap(ServerStatus* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - info_.Swap(&other->info_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + info_.Swap(&other->info_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); swap(status_, other->status_); } -::google::protobuf::Metadata ServerStatus::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_milvus_2eproto); - return ::file_level_metadata_milvus_2eproto[kIndexInFileMessages]; +::PROTOBUF_NAMESPACE_ID::Metadata ServerStatus::GetMetadata() const { + return GetMetadataStatic(); } // @@protoc_insertion_point(namespace_scope) } // namespace grpc } // namespace milvus -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN template<> PROTOBUF_NOINLINE ::milvus::grpc::TableName* Arena::CreateMaybeMessage< ::milvus::grpc::TableName >(Arena* arena) { return Arena::CreateInternal< ::milvus::grpc::TableName >(arena); } @@ -5981,8 +5532,7 @@ template<> PROTOBUF_NOINLINE ::milvus::grpc::Command* Arena::CreateMaybeMessage< template<> PROTOBUF_NOINLINE ::milvus::grpc::ServerStatus* Arena::CreateMaybeMessage< ::milvus::grpc::ServerStatus >(Arena* arena) { return Arena::CreateInternal< ::milvus::grpc::ServerStatus >(arena); } -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) #include diff --git a/cpp/src/grpc/gen-milvus/milvus.pb.h b/cpp/src/grpc/gen-milvus/milvus.pb.h index d391ed33..c6529f4b 100644 --- a/cpp/src/grpc/gen-milvus/milvus.pb.h +++ b/cpp/src/grpc/gen-milvus/milvus.pb.h @@ -1,19 +1,19 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: milvus.proto -#ifndef PROTOBUF_INCLUDED_milvus_2eproto -#define PROTOBUF_INCLUDED_milvus_2eproto +#ifndef GOOGLE_PROTOBUF_INCLUDED_milvus_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_milvus_2eproto #include #include #include -#if PROTOBUF_VERSION < 3007000 +#if PROTOBUF_VERSION < 3009000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#if 3009000 < PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. @@ -27,6 +27,7 @@ #include #include #include +#include #include #include // IWYU pragma: export #include // IWYU pragma: export @@ -35,20 +36,25 @@ // @@protoc_insertion_point(includes) #include #define PROTOBUF_INTERNAL_EXPORT_milvus_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_milvus_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[15] + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[15] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; + static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; + static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; + static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; }; -void AddDescriptors_milvus_2eproto(); +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_milvus_2eproto; namespace milvus { namespace grpc { class BoolReply; @@ -98,8 +104,7 @@ class VectorIdsDefaultTypeInternal; extern VectorIdsDefaultTypeInternal _VectorIds_default_instance_; } // namespace grpc } // namespace milvus -namespace google { -namespace protobuf { +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*); @@ -115,31 +120,28 @@ template<> ::milvus::grpc::TableRowCount* Arena::CreateMaybeMessage<::milvus::gr template<> ::milvus::grpc::TableSchema* Arena::CreateMaybeMessage<::milvus::grpc::TableSchema>(Arena*); template<> ::milvus::grpc::TopKQueryResult* Arena::CreateMaybeMessage<::milvus::grpc::TopKQueryResult>(Arena*); template<> ::milvus::grpc::VectorIds* Arena::CreateMaybeMessage<::milvus::grpc::VectorIds>(Arena*); -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE namespace milvus { namespace grpc { // =================================================================== -class TableName final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.TableName) */ { +class TableName : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.TableName) */ { public: TableName(); virtual ~TableName(); TableName(const TableName& from); - - inline TableName& operator=(const TableName& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 TableName(TableName&& from) noexcept : TableName() { *this = ::std::move(from); } + inline TableName& operator=(const TableName& from) { + CopyFrom(from); + return *this; + } inline TableName& operator=(TableName&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -148,9 +150,15 @@ class TableName final : } return *this; } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); + + 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 TableName& default_instance(); @@ -162,10 +170,13 @@ class TableName final : static constexpr int kIndexInFileMessages = 0; - void Swap(TableName* other); friend void swap(TableName& a, TableName& b) { a.Swap(&b); } + inline void Swap(TableName* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- @@ -173,11 +184,11 @@ class TableName final : return CreateMaybeMessage(nullptr); } - TableName* New(::google::protobuf::Arena* arena) const final { + TableName* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const TableName& from); void MergeFrom(const TableName& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -185,25 +196,28 @@ class TableName final : size_t ByteSizeLong() const final; #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; #else bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; + ::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: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(TableName* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.TableName"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -211,30 +225,37 @@ class TableName final : } public: - ::google::protobuf::Metadata GetMetadata() const final; + ::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, + kStatusFieldNumber = 1, + }; // string table_name = 2; void clear_table_name(); - static const int kTableNameFieldNumber = 2; - const ::std::string& table_name() const; - void set_table_name(const ::std::string& value); - #if LANG_CXX11 - void set_table_name(::std::string&& value); - #endif + 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); + std::string* mutable_table_name(); + std::string* release_table_name(); + void set_allocated_table_name(std::string* table_name); // .milvus.grpc.Status status = 1; bool has_status() const; void clear_status(); - static const int kStatusFieldNumber = 1; const ::milvus::grpc::Status& status() const; ::milvus::grpc::Status* release_status(); ::milvus::grpc::Status* mutable_status(); @@ -242,34 +263,32 @@ class TableName final : // @@protoc_insertion_point(class_scope:milvus.grpc.TableName) private: - class HasBitSetters; + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr table_name_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_name_; ::milvus::grpc::Status* status_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_milvus_2eproto; }; // ------------------------------------------------------------------- -class TableSchema final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.TableSchema) */ { +class TableSchema : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.TableSchema) */ { public: TableSchema(); virtual ~TableSchema(); TableSchema(const TableSchema& from); - - inline TableSchema& operator=(const TableSchema& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 TableSchema(TableSchema&& from) noexcept : TableSchema() { *this = ::std::move(from); } + inline TableSchema& operator=(const TableSchema& from) { + CopyFrom(from); + return *this; + } inline TableSchema& operator=(TableSchema&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -278,9 +297,15 @@ class TableSchema final : } return *this; } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); + + 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 TableSchema& default_instance(); @@ -292,10 +317,13 @@ class TableSchema final : static constexpr int kIndexInFileMessages = 1; - void Swap(TableSchema* other); friend void swap(TableSchema& a, TableSchema& b) { a.Swap(&b); } + inline void Swap(TableSchema* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- @@ -303,11 +331,11 @@ class TableSchema final : return CreateMaybeMessage(nullptr); } - TableSchema* New(::google::protobuf::Arena* arena) const final { + TableSchema* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const TableSchema& from); void MergeFrom(const TableSchema& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -315,25 +343,28 @@ class TableSchema final : size_t ByteSizeLong() const final; #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; #else bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; + ::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: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(TableSchema* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.TableSchema"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -341,16 +372,28 @@ class TableSchema final : } public: - ::google::protobuf::Metadata GetMetadata() const final; + ::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, + kDimensionFieldNumber = 3, + kIndexTypeFieldNumber = 2, + kStoreRawVectorFieldNumber = 4, + }; // .milvus.grpc.TableName table_name = 1; bool has_table_name() const; void clear_table_name(); - static const int kTableNameFieldNumber = 1; const ::milvus::grpc::TableName& table_name() const; ::milvus::grpc::TableName* release_table_name(); ::milvus::grpc::TableName* mutable_table_name(); @@ -358,54 +401,49 @@ class TableSchema final : // int64 dimension = 3; void clear_dimension(); - static const int kDimensionFieldNumber = 3; - ::google::protobuf::int64 dimension() const; - void set_dimension(::google::protobuf::int64 value); + ::PROTOBUF_NAMESPACE_ID::int64 dimension() const; + void set_dimension(::PROTOBUF_NAMESPACE_ID::int64 value); // int32 index_type = 2; void clear_index_type(); - static const int kIndexTypeFieldNumber = 2; - ::google::protobuf::int32 index_type() const; - void set_index_type(::google::protobuf::int32 value); + ::PROTOBUF_NAMESPACE_ID::int32 index_type() const; + void set_index_type(::PROTOBUF_NAMESPACE_ID::int32 value); // bool store_raw_vector = 4; void clear_store_raw_vector(); - static const int kStoreRawVectorFieldNumber = 4; bool store_raw_vector() const; void set_store_raw_vector(bool value); // @@protoc_insertion_point(class_scope:milvus.grpc.TableSchema) private: - class HasBitSetters; + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::milvus::grpc::TableName* table_name_; - ::google::protobuf::int64 dimension_; - ::google::protobuf::int32 index_type_; + ::PROTOBUF_NAMESPACE_ID::int64 dimension_; + ::PROTOBUF_NAMESPACE_ID::int32 index_type_; bool store_raw_vector_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_milvus_2eproto; }; // ------------------------------------------------------------------- -class Range final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.Range) */ { +class Range : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.Range) */ { public: Range(); virtual ~Range(); Range(const Range& from); - - inline Range& operator=(const Range& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 Range(Range&& from) noexcept : Range() { *this = ::std::move(from); } + inline Range& operator=(const Range& from) { + CopyFrom(from); + return *this; + } inline Range& operator=(Range&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -414,9 +452,15 @@ class Range final : } return *this; } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); + + 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 Range& default_instance(); @@ -428,10 +472,13 @@ class Range final : static constexpr int kIndexInFileMessages = 2; - void Swap(Range* other); friend void swap(Range& a, Range& b) { a.Swap(&b); } + inline void Swap(Range* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- @@ -439,11 +486,11 @@ class Range final : return CreateMaybeMessage(nullptr); } - Range* New(::google::protobuf::Arena* arena) const final { + Range* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const Range& from); void MergeFrom(const Range& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -451,25 +498,28 @@ class Range final : size_t ByteSizeLong() const final; #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; #else bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; + ::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: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Range* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.Range"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -477,70 +527,73 @@ class Range final : } public: - ::google::protobuf::Metadata GetMetadata() const final; + ::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 { + kStartValueFieldNumber = 1, + kEndValueFieldNumber = 2, + }; // string start_value = 1; void clear_start_value(); - static const int kStartValueFieldNumber = 1; - const ::std::string& start_value() const; - void set_start_value(const ::std::string& value); - #if LANG_CXX11 - void set_start_value(::std::string&& value); - #endif + const std::string& start_value() const; + void set_start_value(const std::string& value); + void set_start_value(std::string&& value); void set_start_value(const char* value); void set_start_value(const char* value, size_t size); - ::std::string* mutable_start_value(); - ::std::string* release_start_value(); - void set_allocated_start_value(::std::string* start_value); + std::string* mutable_start_value(); + std::string* release_start_value(); + void set_allocated_start_value(std::string* start_value); // string end_value = 2; void clear_end_value(); - static const int kEndValueFieldNumber = 2; - const ::std::string& end_value() const; - void set_end_value(const ::std::string& value); - #if LANG_CXX11 - void set_end_value(::std::string&& value); - #endif + const std::string& end_value() const; + void set_end_value(const std::string& value); + void set_end_value(std::string&& value); void set_end_value(const char* value); void set_end_value(const char* value, size_t size); - ::std::string* mutable_end_value(); - ::std::string* release_end_value(); - void set_allocated_end_value(::std::string* end_value); + std::string* mutable_end_value(); + std::string* release_end_value(); + void set_allocated_end_value(std::string* end_value); // @@protoc_insertion_point(class_scope:milvus.grpc.Range) private: - class HasBitSetters; + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr start_value_; - ::google::protobuf::internal::ArenaStringPtr end_value_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr start_value_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr end_value_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_milvus_2eproto; }; // ------------------------------------------------------------------- -class RowRecord final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.RowRecord) */ { +class RowRecord : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.RowRecord) */ { public: RowRecord(); virtual ~RowRecord(); RowRecord(const RowRecord& from); - - inline RowRecord& operator=(const RowRecord& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 RowRecord(RowRecord&& from) noexcept : RowRecord() { *this = ::std::move(from); } + inline RowRecord& operator=(const RowRecord& from) { + CopyFrom(from); + return *this; + } inline RowRecord& operator=(RowRecord&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -549,9 +602,15 @@ class RowRecord final : } return *this; } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); + + 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 RowRecord& default_instance(); @@ -563,10 +622,13 @@ class RowRecord final : static constexpr int kIndexInFileMessages = 3; - void Swap(RowRecord* other); friend void swap(RowRecord& a, RowRecord& b) { a.Swap(&b); } + inline void Swap(RowRecord* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- @@ -574,11 +636,11 @@ class RowRecord final : return CreateMaybeMessage(nullptr); } - RowRecord* New(::google::protobuf::Arena* arena) const final { + RowRecord* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const RowRecord& from); void MergeFrom(const RowRecord& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -586,25 +648,28 @@ class RowRecord final : size_t ByteSizeLong() const final; #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; #else bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; + ::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: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(RowRecord* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.RowRecord"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -612,54 +677,61 @@ class RowRecord final : } public: - ::google::protobuf::Metadata GetMetadata() const final; + ::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 { + kVectorDataFieldNumber = 1, + }; // repeated float vector_data = 1; int vector_data_size() const; void clear_vector_data(); - static const int kVectorDataFieldNumber = 1; float vector_data(int index) const; void set_vector_data(int index, float value); void add_vector_data(float value); - const ::google::protobuf::RepeatedField< float >& + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& vector_data() const; - ::google::protobuf::RepeatedField< float >* + ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* mutable_vector_data(); // @@protoc_insertion_point(class_scope:milvus.grpc.RowRecord) private: - class HasBitSetters; + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedField< float > vector_data_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< float > vector_data_; mutable std::atomic _vector_data_cached_byte_size_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_milvus_2eproto; }; // ------------------------------------------------------------------- -class InsertInfos final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.InsertInfos) */ { +class InsertInfos : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.InsertInfos) */ { public: InsertInfos(); virtual ~InsertInfos(); InsertInfos(const InsertInfos& from); - - inline InsertInfos& operator=(const InsertInfos& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 InsertInfos(InsertInfos&& from) noexcept : InsertInfos() { *this = ::std::move(from); } + inline InsertInfos& operator=(const InsertInfos& from) { + CopyFrom(from); + return *this; + } inline InsertInfos& operator=(InsertInfos&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -668,9 +740,15 @@ class InsertInfos final : } return *this; } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); + + 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 InsertInfos& default_instance(); @@ -682,10 +760,13 @@ class InsertInfos final : static constexpr int kIndexInFileMessages = 4; - void Swap(InsertInfos* other); friend void swap(InsertInfos& a, InsertInfos& b) { a.Swap(&b); } + inline void Swap(InsertInfos* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- @@ -693,11 +774,11 @@ class InsertInfos final : return CreateMaybeMessage(nullptr); } - InsertInfos* New(::google::protobuf::Arena* arena) const final { + InsertInfos* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; + 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); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -705,25 +786,28 @@ class InsertInfos final : size_t ByteSizeLong() const final; #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; #else bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; + ::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: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(InsertInfos* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.InsertInfos"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -731,68 +815,73 @@ class InsertInfos final : } public: - ::google::protobuf::Metadata GetMetadata() const final; + ::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 { + kRowRecordArrayFieldNumber = 2, + kTableNameFieldNumber = 1, + }; // repeated .milvus.grpc.RowRecord row_record_array = 2; int row_record_array_size() const; void clear_row_record_array(); - static const int kRowRecordArrayFieldNumber = 2; ::milvus::grpc::RowRecord* mutable_row_record_array(int index); - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::RowRecord >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::RowRecord >* mutable_row_record_array(); const ::milvus::grpc::RowRecord& row_record_array(int index) const; ::milvus::grpc::RowRecord* add_row_record_array(); - const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::RowRecord >& + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::RowRecord >& row_record_array() const; // string table_name = 1; void clear_table_name(); - static const int kTableNameFieldNumber = 1; - const ::std::string& table_name() const; - void set_table_name(const ::std::string& value); - #if LANG_CXX11 - void set_table_name(::std::string&& value); - #endif + 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); + std::string* mutable_table_name(); + std::string* release_table_name(); + void set_allocated_table_name(std::string* table_name); // @@protoc_insertion_point(class_scope:milvus.grpc.InsertInfos) private: - class HasBitSetters; + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::RowRecord > row_record_array_; - ::google::protobuf::internal::ArenaStringPtr table_name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::RowRecord > row_record_array_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_milvus_2eproto; }; // ------------------------------------------------------------------- -class VectorIds final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.VectorIds) */ { +class VectorIds : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.VectorIds) */ { public: VectorIds(); virtual ~VectorIds(); VectorIds(const VectorIds& from); - - inline VectorIds& operator=(const VectorIds& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 VectorIds(VectorIds&& from) noexcept : VectorIds() { *this = ::std::move(from); } + inline VectorIds& operator=(const VectorIds& from) { + CopyFrom(from); + return *this; + } inline VectorIds& operator=(VectorIds&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -801,9 +890,15 @@ class VectorIds final : } return *this; } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); + + 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 VectorIds& default_instance(); @@ -815,10 +910,13 @@ class VectorIds final : static constexpr int kIndexInFileMessages = 5; - void Swap(VectorIds* other); friend void swap(VectorIds& a, VectorIds& b) { a.Swap(&b); } + inline void Swap(VectorIds* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- @@ -826,11 +924,11 @@ class VectorIds final : return CreateMaybeMessage(nullptr); } - VectorIds* New(::google::protobuf::Arena* arena) const final { + VectorIds* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const VectorIds& from); void MergeFrom(const VectorIds& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -838,25 +936,28 @@ class VectorIds final : size_t ByteSizeLong() const final; #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; #else bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; + ::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: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(VectorIds* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.VectorIds"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -864,28 +965,37 @@ class VectorIds final : } public: - ::google::protobuf::Metadata GetMetadata() const final; + ::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 { + kVectorIdArrayFieldNumber = 2, + kStatusFieldNumber = 1, + }; // repeated int64 vector_id_array = 2; int vector_id_array_size() const; void clear_vector_id_array(); - static const int kVectorIdArrayFieldNumber = 2; - ::google::protobuf::int64 vector_id_array(int index) const; - void set_vector_id_array(int index, ::google::protobuf::int64 value); - void add_vector_id_array(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& + ::PROTOBUF_NAMESPACE_ID::int64 vector_id_array(int index) const; + void set_vector_id_array(int index, ::PROTOBUF_NAMESPACE_ID::int64 value); + void add_vector_id_array(::PROTOBUF_NAMESPACE_ID::int64 value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& vector_id_array() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* mutable_vector_id_array(); // .milvus.grpc.Status status = 1; bool has_status() const; void clear_status(); - static const int kStatusFieldNumber = 1; const ::milvus::grpc::Status& status() const; ::milvus::grpc::Status* release_status(); ::milvus::grpc::Status* mutable_status(); @@ -893,35 +1003,33 @@ class VectorIds final : // @@protoc_insertion_point(class_scope:milvus.grpc.VectorIds) private: - class HasBitSetters; + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > vector_id_array_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > vector_id_array_; mutable std::atomic _vector_id_array_cached_byte_size_; ::milvus::grpc::Status* status_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_milvus_2eproto; }; // ------------------------------------------------------------------- -class SearchVectorInfos final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.SearchVectorInfos) */ { +class SearchVectorInfos : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.SearchVectorInfos) */ { public: SearchVectorInfos(); virtual ~SearchVectorInfos(); SearchVectorInfos(const SearchVectorInfos& from); - - inline SearchVectorInfos& operator=(const SearchVectorInfos& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 SearchVectorInfos(SearchVectorInfos&& from) noexcept : SearchVectorInfos() { *this = ::std::move(from); } + inline SearchVectorInfos& operator=(const SearchVectorInfos& from) { + CopyFrom(from); + return *this; + } inline SearchVectorInfos& operator=(SearchVectorInfos&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -930,9 +1038,15 @@ class SearchVectorInfos final : } return *this; } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); + + 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 SearchVectorInfos& default_instance(); @@ -944,10 +1058,13 @@ class SearchVectorInfos final : static constexpr int kIndexInFileMessages = 6; - void Swap(SearchVectorInfos* other); friend void swap(SearchVectorInfos& a, SearchVectorInfos& b) { a.Swap(&b); } + inline void Swap(SearchVectorInfos* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- @@ -955,11 +1072,11 @@ class SearchVectorInfos final : return CreateMaybeMessage(nullptr); } - SearchVectorInfos* New(::google::protobuf::Arena* arena) const final { + SearchVectorInfos* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; + 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); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -967,25 +1084,28 @@ class SearchVectorInfos final : size_t ByteSizeLong() const final; #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; #else bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; + ::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: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(SearchVectorInfos* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.SearchVectorInfos"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -993,88 +1113,93 @@ class SearchVectorInfos final : } public: - ::google::protobuf::Metadata GetMetadata() const final; + ::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 { + kQueryRecordArrayFieldNumber = 2, + kQueryRangeArrayFieldNumber = 3, + kTableNameFieldNumber = 1, + kTopkFieldNumber = 4, + }; // repeated .milvus.grpc.RowRecord query_record_array = 2; int query_record_array_size() const; void clear_query_record_array(); - static const int kQueryRecordArrayFieldNumber = 2; ::milvus::grpc::RowRecord* mutable_query_record_array(int index); - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::RowRecord >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::RowRecord >* mutable_query_record_array(); const ::milvus::grpc::RowRecord& query_record_array(int index) const; ::milvus::grpc::RowRecord* add_query_record_array(); - const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::RowRecord >& + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::RowRecord >& query_record_array() const; // repeated .milvus.grpc.Range query_range_array = 3; int query_range_array_size() const; void clear_query_range_array(); - static const int kQueryRangeArrayFieldNumber = 3; ::milvus::grpc::Range* mutable_query_range_array(int index); - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::Range >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::Range >* mutable_query_range_array(); const ::milvus::grpc::Range& query_range_array(int index) const; ::milvus::grpc::Range* add_query_range_array(); - const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::Range >& + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::Range >& query_range_array() const; // string table_name = 1; void clear_table_name(); - static const int kTableNameFieldNumber = 1; - const ::std::string& table_name() const; - void set_table_name(const ::std::string& value); - #if LANG_CXX11 - void set_table_name(::std::string&& value); - #endif + 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); + std::string* mutable_table_name(); + std::string* release_table_name(); + void set_allocated_table_name(std::string* table_name); // int64 topk = 4; void clear_topk(); - static const int kTopkFieldNumber = 4; - ::google::protobuf::int64 topk() const; - void set_topk(::google::protobuf::int64 value); + ::PROTOBUF_NAMESPACE_ID::int64 topk() const; + void set_topk(::PROTOBUF_NAMESPACE_ID::int64 value); // @@protoc_insertion_point(class_scope:milvus.grpc.SearchVectorInfos) private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::RowRecord > query_record_array_; - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::Range > query_range_array_; - ::google::protobuf::internal::ArenaStringPtr table_name_; - ::google::protobuf::int64 topk_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + class _Internal; + + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::RowRecord > query_record_array_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::Range > query_range_array_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_name_; + ::PROTOBUF_NAMESPACE_ID::int64 topk_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_milvus_2eproto; }; // ------------------------------------------------------------------- -class SearchVectorInFilesInfos final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.SearchVectorInFilesInfos) */ { +class SearchVectorInFilesInfos : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.SearchVectorInFilesInfos) */ { public: SearchVectorInFilesInfos(); virtual ~SearchVectorInFilesInfos(); SearchVectorInFilesInfos(const SearchVectorInFilesInfos& from); - - inline SearchVectorInFilesInfos& operator=(const SearchVectorInFilesInfos& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 SearchVectorInFilesInfos(SearchVectorInFilesInfos&& from) noexcept : SearchVectorInFilesInfos() { *this = ::std::move(from); } + inline SearchVectorInFilesInfos& operator=(const SearchVectorInFilesInfos& from) { + CopyFrom(from); + return *this; + } inline SearchVectorInFilesInfos& operator=(SearchVectorInFilesInfos&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -1083,9 +1208,15 @@ class SearchVectorInFilesInfos final : } return *this; } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); + + 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 SearchVectorInFilesInfos& default_instance(); @@ -1097,10 +1228,13 @@ class SearchVectorInFilesInfos final : static constexpr int kIndexInFileMessages = 7; - void Swap(SearchVectorInFilesInfos* other); friend void swap(SearchVectorInFilesInfos& a, SearchVectorInFilesInfos& b) { a.Swap(&b); } + inline void Swap(SearchVectorInFilesInfos* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- @@ -1108,11 +1242,11 @@ class SearchVectorInFilesInfos final : return CreateMaybeMessage(nullptr); } - SearchVectorInFilesInfos* New(::google::protobuf::Arena* arena) const final { + SearchVectorInFilesInfos* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; + 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); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -1120,25 +1254,28 @@ class SearchVectorInFilesInfos final : size_t ByteSizeLong() const final; #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; #else bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; + ::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: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(SearchVectorInFilesInfos* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.SearchVectorInFilesInfos"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -1146,38 +1283,43 @@ class SearchVectorInFilesInfos final : } public: - ::google::protobuf::Metadata GetMetadata() const final; + ::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 { + kFileIdArrayFieldNumber = 1, + kSearchVectorInfosFieldNumber = 2, + }; // repeated string file_id_array = 1; int file_id_array_size() const; void clear_file_id_array(); - static const int kFileIdArrayFieldNumber = 1; - const ::std::string& file_id_array(int index) const; - ::std::string* mutable_file_id_array(int index); - void set_file_id_array(int index, const ::std::string& value); - #if LANG_CXX11 - void set_file_id_array(int index, ::std::string&& value); - #endif + const std::string& file_id_array(int index) const; + std::string* mutable_file_id_array(int index); + void set_file_id_array(int index, const std::string& value); + void set_file_id_array(int index, std::string&& value); void set_file_id_array(int index, const char* value); void set_file_id_array(int index, const char* value, size_t size); - ::std::string* add_file_id_array(); - void add_file_id_array(const ::std::string& value); - #if LANG_CXX11 - void add_file_id_array(::std::string&& value); - #endif + std::string* add_file_id_array(); + void add_file_id_array(const std::string& value); + void add_file_id_array(std::string&& value); void add_file_id_array(const char* value); void add_file_id_array(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField<::std::string>& file_id_array() const; - ::google::protobuf::RepeatedPtrField<::std::string>* mutable_file_id_array(); + 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(); - static const int kSearchVectorInfosFieldNumber = 2; const ::milvus::grpc::SearchVectorInfos& search_vector_infos() const; ::milvus::grpc::SearchVectorInfos* release_search_vector_infos(); ::milvus::grpc::SearchVectorInfos* mutable_search_vector_infos(); @@ -1185,34 +1327,32 @@ class SearchVectorInFilesInfos final : // @@protoc_insertion_point(class_scope:milvus.grpc.SearchVectorInFilesInfos) private: - class HasBitSetters; + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField<::std::string> file_id_array_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField file_id_array_; ::milvus::grpc::SearchVectorInfos* search_vector_infos_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_milvus_2eproto; }; // ------------------------------------------------------------------- -class QueryResult final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.QueryResult) */ { +class QueryResult : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.QueryResult) */ { public: QueryResult(); virtual ~QueryResult(); QueryResult(const QueryResult& from); - - inline QueryResult& operator=(const QueryResult& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 QueryResult(QueryResult&& from) noexcept : QueryResult() { *this = ::std::move(from); } + inline QueryResult& operator=(const QueryResult& from) { + CopyFrom(from); + return *this; + } inline QueryResult& operator=(QueryResult&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -1221,9 +1361,15 @@ class QueryResult final : } return *this; } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); + + 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 QueryResult& default_instance(); @@ -1235,10 +1381,13 @@ class QueryResult final : static constexpr int kIndexInFileMessages = 8; - void Swap(QueryResult* other); friend void swap(QueryResult& a, QueryResult& b) { a.Swap(&b); } + inline void Swap(QueryResult* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- @@ -1246,11 +1395,11 @@ class QueryResult final : return CreateMaybeMessage(nullptr); } - QueryResult* New(::google::protobuf::Arena* arena) const final { + QueryResult* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const QueryResult& from); void MergeFrom(const QueryResult& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -1258,25 +1407,28 @@ class QueryResult final : size_t ByteSizeLong() const final; #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; #else bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; + ::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: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(QueryResult* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.QueryResult"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -1284,54 +1436,61 @@ class QueryResult final : } public: - ::google::protobuf::Metadata GetMetadata() const final; + ::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 { + kIdFieldNumber = 1, + kDistanceFieldNumber = 2, + }; // int64 id = 1; void clear_id(); - static const int kIdFieldNumber = 1; - ::google::protobuf::int64 id() const; - void set_id(::google::protobuf::int64 value); + ::PROTOBUF_NAMESPACE_ID::int64 id() const; + void set_id(::PROTOBUF_NAMESPACE_ID::int64 value); // double distance = 2; void clear_distance(); - static const int kDistanceFieldNumber = 2; double distance() const; void set_distance(double value); // @@protoc_insertion_point(class_scope:milvus.grpc.QueryResult) private: - class HasBitSetters; + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::int64 id_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::int64 id_; double distance_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_milvus_2eproto; }; // ------------------------------------------------------------------- -class TopKQueryResult final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.TopKQueryResult) */ { +class TopKQueryResult : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.TopKQueryResult) */ { public: TopKQueryResult(); virtual ~TopKQueryResult(); TopKQueryResult(const TopKQueryResult& from); - - inline TopKQueryResult& operator=(const TopKQueryResult& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 TopKQueryResult(TopKQueryResult&& from) noexcept : TopKQueryResult() { *this = ::std::move(from); } + inline TopKQueryResult& operator=(const TopKQueryResult& from) { + CopyFrom(from); + return *this; + } inline TopKQueryResult& operator=(TopKQueryResult&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -1340,9 +1499,15 @@ class TopKQueryResult final : } return *this; } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); + + 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 TopKQueryResult& default_instance(); @@ -1354,10 +1519,13 @@ class TopKQueryResult final : static constexpr int kIndexInFileMessages = 9; - void Swap(TopKQueryResult* other); friend void swap(TopKQueryResult& a, TopKQueryResult& b) { a.Swap(&b); } + inline void Swap(TopKQueryResult* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- @@ -1365,11 +1533,11 @@ class TopKQueryResult final : return CreateMaybeMessage(nullptr); } - TopKQueryResult* New(::google::protobuf::Arena* arena) const final { + TopKQueryResult* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const TopKQueryResult& from); void MergeFrom(const TopKQueryResult& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -1377,25 +1545,28 @@ class TopKQueryResult final : size_t ByteSizeLong() const final; #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; #else bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; + ::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: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(TopKQueryResult* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.TopKQueryResult"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -1403,28 +1574,37 @@ class TopKQueryResult final : } public: - ::google::protobuf::Metadata GetMetadata() const final; + ::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 { + kQueryResultArraysFieldNumber = 2, + kStatusFieldNumber = 1, + }; // repeated .milvus.grpc.QueryResult query_result_arrays = 2; int query_result_arrays_size() const; void clear_query_result_arrays(); - static const int kQueryResultArraysFieldNumber = 2; ::milvus::grpc::QueryResult* mutable_query_result_arrays(int index); - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::QueryResult >* + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::QueryResult >* mutable_query_result_arrays(); const ::milvus::grpc::QueryResult& query_result_arrays(int index) const; ::milvus::grpc::QueryResult* add_query_result_arrays(); - const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::QueryResult >& + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::QueryResult >& query_result_arrays() const; // .milvus.grpc.Status status = 1; bool has_status() const; void clear_status(); - static const int kStatusFieldNumber = 1; const ::milvus::grpc::Status& status() const; ::milvus::grpc::Status* release_status(); ::milvus::grpc::Status* mutable_status(); @@ -1432,34 +1612,32 @@ class TopKQueryResult final : // @@protoc_insertion_point(class_scope:milvus.grpc.TopKQueryResult) private: - class HasBitSetters; + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::milvus::grpc::QueryResult > query_result_arrays_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::QueryResult > query_result_arrays_; ::milvus::grpc::Status* status_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_milvus_2eproto; }; // ------------------------------------------------------------------- -class StringReply final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.StringReply) */ { +class StringReply : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.StringReply) */ { public: StringReply(); virtual ~StringReply(); StringReply(const StringReply& from); - - inline StringReply& operator=(const StringReply& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 StringReply(StringReply&& from) noexcept : StringReply() { *this = ::std::move(from); } + inline StringReply& operator=(const StringReply& from) { + CopyFrom(from); + return *this; + } inline StringReply& operator=(StringReply&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -1468,9 +1646,15 @@ class StringReply final : } return *this; } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); + + 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 StringReply& default_instance(); @@ -1482,10 +1666,13 @@ class StringReply final : static constexpr int kIndexInFileMessages = 10; - void Swap(StringReply* other); friend void swap(StringReply& a, StringReply& b) { a.Swap(&b); } + inline void Swap(StringReply* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- @@ -1493,11 +1680,11 @@ class StringReply final : return CreateMaybeMessage(nullptr); } - StringReply* New(::google::protobuf::Arena* arena) const final { + StringReply* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const StringReply& from); void MergeFrom(const StringReply& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -1505,25 +1692,28 @@ class StringReply final : size_t ByteSizeLong() const final; #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; #else bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; + ::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: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(StringReply* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.StringReply"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -1531,30 +1721,37 @@ class StringReply final : } public: - ::google::protobuf::Metadata GetMetadata() const final; + ::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 { + kStringReplyFieldNumber = 2, + kStatusFieldNumber = 1, + }; // string string_reply = 2; void clear_string_reply(); - static const int kStringReplyFieldNumber = 2; - const ::std::string& string_reply() const; - void set_string_reply(const ::std::string& value); - #if LANG_CXX11 - void set_string_reply(::std::string&& value); - #endif + const std::string& string_reply() const; + void set_string_reply(const std::string& value); + void set_string_reply(std::string&& value); void set_string_reply(const char* value); void set_string_reply(const char* value, size_t size); - ::std::string* mutable_string_reply(); - ::std::string* release_string_reply(); - void set_allocated_string_reply(::std::string* string_reply); + std::string* mutable_string_reply(); + std::string* release_string_reply(); + void set_allocated_string_reply(std::string* string_reply); // .milvus.grpc.Status status = 1; bool has_status() const; void clear_status(); - static const int kStatusFieldNumber = 1; const ::milvus::grpc::Status& status() const; ::milvus::grpc::Status* release_status(); ::milvus::grpc::Status* mutable_status(); @@ -1562,34 +1759,32 @@ class StringReply final : // @@protoc_insertion_point(class_scope:milvus.grpc.StringReply) private: - class HasBitSetters; + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr string_reply_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr string_reply_; ::milvus::grpc::Status* status_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_milvus_2eproto; }; // ------------------------------------------------------------------- -class BoolReply final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.BoolReply) */ { +class BoolReply : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.BoolReply) */ { public: BoolReply(); virtual ~BoolReply(); BoolReply(const BoolReply& from); - - inline BoolReply& operator=(const BoolReply& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 BoolReply(BoolReply&& from) noexcept : BoolReply() { *this = ::std::move(from); } + inline BoolReply& operator=(const BoolReply& from) { + CopyFrom(from); + return *this; + } inline BoolReply& operator=(BoolReply&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -1598,9 +1793,15 @@ class BoolReply final : } return *this; } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); + + 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 BoolReply& default_instance(); @@ -1612,10 +1813,13 @@ class BoolReply final : static constexpr int kIndexInFileMessages = 11; - void Swap(BoolReply* other); friend void swap(BoolReply& a, BoolReply& b) { a.Swap(&b); } + inline void Swap(BoolReply* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- @@ -1623,11 +1827,11 @@ class BoolReply final : return CreateMaybeMessage(nullptr); } - BoolReply* New(::google::protobuf::Arena* arena) const final { + BoolReply* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const BoolReply& from); void MergeFrom(const BoolReply& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -1635,25 +1839,28 @@ class BoolReply final : size_t ByteSizeLong() const final; #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; #else bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; + ::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: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(BoolReply* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.BoolReply"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -1661,16 +1868,26 @@ class BoolReply final : } public: - ::google::protobuf::Metadata GetMetadata() const final; + ::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 { + kStatusFieldNumber = 1, + kBoolReplyFieldNumber = 2, + }; // .milvus.grpc.Status status = 1; bool has_status() const; void clear_status(); - static const int kStatusFieldNumber = 1; const ::milvus::grpc::Status& status() const; ::milvus::grpc::Status* release_status(); ::milvus::grpc::Status* mutable_status(); @@ -1678,40 +1895,37 @@ class BoolReply final : // bool bool_reply = 2; void clear_bool_reply(); - static const int kBoolReplyFieldNumber = 2; bool bool_reply() const; void set_bool_reply(bool value); // @@protoc_insertion_point(class_scope:milvus.grpc.BoolReply) private: - class HasBitSetters; + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::milvus::grpc::Status* status_; bool bool_reply_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_milvus_2eproto; }; // ------------------------------------------------------------------- -class TableRowCount final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.TableRowCount) */ { +class TableRowCount : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.TableRowCount) */ { public: TableRowCount(); virtual ~TableRowCount(); TableRowCount(const TableRowCount& from); - - inline TableRowCount& operator=(const TableRowCount& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 TableRowCount(TableRowCount&& from) noexcept : TableRowCount() { *this = ::std::move(from); } + inline TableRowCount& operator=(const TableRowCount& from) { + CopyFrom(from); + return *this; + } inline TableRowCount& operator=(TableRowCount&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -1720,9 +1934,15 @@ class TableRowCount final : } return *this; } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); + + 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 TableRowCount& default_instance(); @@ -1734,10 +1954,13 @@ class TableRowCount final : static constexpr int kIndexInFileMessages = 12; - void Swap(TableRowCount* other); friend void swap(TableRowCount& a, TableRowCount& b) { a.Swap(&b); } + inline void Swap(TableRowCount* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- @@ -1745,11 +1968,11 @@ class TableRowCount final : return CreateMaybeMessage(nullptr); } - TableRowCount* New(::google::protobuf::Arena* arena) const final { + TableRowCount* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const TableRowCount& from); void MergeFrom(const TableRowCount& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -1757,25 +1980,28 @@ class TableRowCount final : size_t ByteSizeLong() const final; #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; #else bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; + ::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: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(TableRowCount* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.TableRowCount"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -1783,16 +2009,26 @@ class TableRowCount final : } public: - ::google::protobuf::Metadata GetMetadata() const final; + ::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 { + kStatusFieldNumber = 1, + kTableRowCountFieldNumber = 2, + }; // .milvus.grpc.Status status = 1; bool has_status() const; void clear_status(); - static const int kStatusFieldNumber = 1; const ::milvus::grpc::Status& status() const; ::milvus::grpc::Status* release_status(); ::milvus::grpc::Status* mutable_status(); @@ -1800,40 +2036,37 @@ class TableRowCount final : // int64 table_row_count = 2; void clear_table_row_count(); - static const int kTableRowCountFieldNumber = 2; - ::google::protobuf::int64 table_row_count() const; - void set_table_row_count(::google::protobuf::int64 value); + ::PROTOBUF_NAMESPACE_ID::int64 table_row_count() const; + void set_table_row_count(::PROTOBUF_NAMESPACE_ID::int64 value); // @@protoc_insertion_point(class_scope:milvus.grpc.TableRowCount) private: - class HasBitSetters; + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; ::milvus::grpc::Status* status_; - ::google::protobuf::int64 table_row_count_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::int64 table_row_count_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_milvus_2eproto; }; // ------------------------------------------------------------------- -class Command final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.Command) */ { +class Command : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.Command) */ { public: Command(); virtual ~Command(); Command(const Command& from); - - inline Command& operator=(const Command& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 Command(Command&& from) noexcept : Command() { *this = ::std::move(from); } + inline Command& operator=(const Command& from) { + CopyFrom(from); + return *this; + } inline Command& operator=(Command&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -1842,9 +2075,15 @@ class Command final : } return *this; } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); + + 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 Command& default_instance(); @@ -1856,10 +2095,13 @@ class Command final : static constexpr int kIndexInFileMessages = 13; - void Swap(Command* other); friend void swap(Command& a, Command& b) { a.Swap(&b); } + inline void Swap(Command* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- @@ -1867,11 +2109,11 @@ class Command final : return CreateMaybeMessage(nullptr); } - Command* New(::google::protobuf::Arena* arena) const final { + Command* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const Command& from); void MergeFrom(const Command& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -1879,25 +2121,28 @@ class Command final : size_t ByteSizeLong() const final; #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; #else bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; + ::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: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Command* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.Command"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -1905,55 +2150,60 @@ class Command final : } public: - ::google::protobuf::Metadata GetMetadata() const final; + ::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 { + kCmdFieldNumber = 1, + }; // string cmd = 1; void clear_cmd(); - static const int kCmdFieldNumber = 1; - const ::std::string& cmd() const; - void set_cmd(const ::std::string& value); - #if LANG_CXX11 - void set_cmd(::std::string&& value); - #endif + const std::string& cmd() const; + void set_cmd(const std::string& value); + void set_cmd(std::string&& value); void set_cmd(const char* value); void set_cmd(const char* value, size_t size); - ::std::string* mutable_cmd(); - ::std::string* release_cmd(); - void set_allocated_cmd(::std::string* cmd); + std::string* mutable_cmd(); + std::string* release_cmd(); + void set_allocated_cmd(std::string* cmd); // @@protoc_insertion_point(class_scope:milvus.grpc.Command) private: - class HasBitSetters; + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr cmd_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr cmd_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_milvus_2eproto; }; // ------------------------------------------------------------------- -class ServerStatus final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.ServerStatus) */ { +class ServerStatus : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.ServerStatus) */ { public: ServerStatus(); virtual ~ServerStatus(); ServerStatus(const ServerStatus& from); - - inline ServerStatus& operator=(const ServerStatus& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 ServerStatus(ServerStatus&& from) noexcept : ServerStatus() { *this = ::std::move(from); } + inline ServerStatus& operator=(const ServerStatus& from) { + CopyFrom(from); + return *this; + } inline ServerStatus& operator=(ServerStatus&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -1962,9 +2212,15 @@ class ServerStatus final : } return *this; } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); + + 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 ServerStatus& default_instance(); @@ -1976,10 +2232,13 @@ class ServerStatus final : static constexpr int kIndexInFileMessages = 14; - void Swap(ServerStatus* other); friend void swap(ServerStatus& a, ServerStatus& b) { a.Swap(&b); } + inline void Swap(ServerStatus* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- @@ -1987,11 +2246,11 @@ class ServerStatus final : return CreateMaybeMessage(nullptr); } - ServerStatus* New(::google::protobuf::Arena* arena) const final { + ServerStatus* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; + 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); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -1999,25 +2258,28 @@ class ServerStatus final : size_t ByteSizeLong() const final; #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; #else bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; + ::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: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(ServerStatus* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.ServerStatus"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -2025,30 +2287,37 @@ class ServerStatus final : } public: - ::google::protobuf::Metadata GetMetadata() const final; + ::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 { + kInfoFieldNumber = 2, + kStatusFieldNumber = 1, + }; // string info = 2; void clear_info(); - static const int kInfoFieldNumber = 2; - const ::std::string& info() const; - void set_info(const ::std::string& value); - #if LANG_CXX11 - void set_info(::std::string&& value); - #endif + 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); + std::string* mutable_info(); + std::string* release_info(); + void set_allocated_info(std::string* info); // .milvus.grpc.Status status = 1; bool has_status() const; void clear_status(); - static const int kStatusFieldNumber = 1; const ::milvus::grpc::Status& status() const; ::milvus::grpc::Status* release_status(); ::milvus::grpc::Status* mutable_status(); @@ -2056,12 +2325,12 @@ class ServerStatus final : // @@protoc_insertion_point(class_scope:milvus.grpc.ServerStatus) private: - class HasBitSetters; + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr info_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr info_; ::milvus::grpc::Status* status_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_milvus_2eproto; }; // =================================================================== @@ -2102,14 +2371,14 @@ inline ::milvus::grpc::Status* TableName::mutable_status() { return status_; } inline void TableName::set_allocated_status(::milvus::grpc::Status* status) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(status_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); } if (status) { - ::google::protobuf::Arena* submessage_arena = nullptr; + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - status = ::google::protobuf::internal::GetOwnedMessage( + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, status, submessage_arena); } @@ -2122,54 +2391,52 @@ inline void TableName::set_allocated_status(::milvus::grpc::Status* status) { // string table_name = 2; inline void TableName::clear_table_name() { - table_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + table_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& TableName::table_name() const { +inline const std::string& TableName::table_name() const { // @@protoc_insertion_point(field_get:milvus.grpc.TableName.table_name) return table_name_.GetNoArena(); } -inline void TableName::set_table_name(const ::std::string& value) { +inline void TableName::set_table_name(const std::string& value) { - table_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + table_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.TableName.table_name) } -#if LANG_CXX11 -inline void TableName::set_table_name(::std::string&& value) { +inline void TableName::set_table_name(std::string&& value) { table_name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.TableName.table_name) } -#endif inline void TableName::set_table_name(const char* value) { GOOGLE_DCHECK(value != nullptr); - table_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + table_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.TableName.table_name) } inline void TableName::set_table_name(const char* value, size_t size) { - table_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + table_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.TableName.table_name) } -inline ::std::string* TableName::mutable_table_name() { +inline std::string* TableName::mutable_table_name() { // @@protoc_insertion_point(field_mutable:milvus.grpc.TableName.table_name) - return table_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return table_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* TableName::release_table_name() { +inline std::string* TableName::release_table_name() { // @@protoc_insertion_point(field_release:milvus.grpc.TableName.table_name) - return table_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return table_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void TableName::set_allocated_table_name(::std::string* table_name) { +inline void TableName::set_allocated_table_name(std::string* table_name) { if (table_name != nullptr) { } else { } - table_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), table_name); + table_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), table_name); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.TableName.table_name) } @@ -2210,14 +2477,14 @@ inline ::milvus::grpc::TableName* TableSchema::mutable_table_name() { return table_name_; } inline void TableSchema::set_allocated_table_name(::milvus::grpc::TableName* table_name) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { delete table_name_; } if (table_name) { - ::google::protobuf::Arena* submessage_arena = nullptr; + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - table_name = ::google::protobuf::internal::GetOwnedMessage( + table_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, table_name, submessage_arena); } @@ -2232,11 +2499,11 @@ inline void TableSchema::set_allocated_table_name(::milvus::grpc::TableName* tab inline void TableSchema::clear_index_type() { index_type_ = 0; } -inline ::google::protobuf::int32 TableSchema::index_type() const { +inline ::PROTOBUF_NAMESPACE_ID::int32 TableSchema::index_type() const { // @@protoc_insertion_point(field_get:milvus.grpc.TableSchema.index_type) return index_type_; } -inline void TableSchema::set_index_type(::google::protobuf::int32 value) { +inline void TableSchema::set_index_type(::PROTOBUF_NAMESPACE_ID::int32 value) { index_type_ = value; // @@protoc_insertion_point(field_set:milvus.grpc.TableSchema.index_type) @@ -2246,11 +2513,11 @@ inline void TableSchema::set_index_type(::google::protobuf::int32 value) { inline void TableSchema::clear_dimension() { dimension_ = PROTOBUF_LONGLONG(0); } -inline ::google::protobuf::int64 TableSchema::dimension() const { +inline ::PROTOBUF_NAMESPACE_ID::int64 TableSchema::dimension() const { // @@protoc_insertion_point(field_get:milvus.grpc.TableSchema.dimension) return dimension_; } -inline void TableSchema::set_dimension(::google::protobuf::int64 value) { +inline void TableSchema::set_dimension(::PROTOBUF_NAMESPACE_ID::int64 value) { dimension_ = value; // @@protoc_insertion_point(field_set:milvus.grpc.TableSchema.dimension) @@ -2276,107 +2543,103 @@ inline void TableSchema::set_store_raw_vector(bool value) { // string start_value = 1; inline void Range::clear_start_value() { - start_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + start_value_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& Range::start_value() const { +inline const std::string& Range::start_value() const { // @@protoc_insertion_point(field_get:milvus.grpc.Range.start_value) return start_value_.GetNoArena(); } -inline void Range::set_start_value(const ::std::string& value) { +inline void Range::set_start_value(const std::string& value) { - start_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + start_value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.Range.start_value) } -#if LANG_CXX11 -inline void Range::set_start_value(::std::string&& value) { +inline void Range::set_start_value(std::string&& value) { start_value_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.Range.start_value) } -#endif inline void Range::set_start_value(const char* value) { GOOGLE_DCHECK(value != nullptr); - start_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + start_value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.Range.start_value) } inline void Range::set_start_value(const char* value, size_t size) { - start_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + start_value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.Range.start_value) } -inline ::std::string* Range::mutable_start_value() { +inline std::string* Range::mutable_start_value() { // @@protoc_insertion_point(field_mutable:milvus.grpc.Range.start_value) - return start_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return start_value_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* Range::release_start_value() { +inline std::string* Range::release_start_value() { // @@protoc_insertion_point(field_release:milvus.grpc.Range.start_value) - return start_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return start_value_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void Range::set_allocated_start_value(::std::string* start_value) { +inline void Range::set_allocated_start_value(std::string* start_value) { if (start_value != nullptr) { } else { } - start_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), start_value); + start_value_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), start_value); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.Range.start_value) } // string end_value = 2; inline void Range::clear_end_value() { - end_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + end_value_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& Range::end_value() const { +inline const std::string& Range::end_value() const { // @@protoc_insertion_point(field_get:milvus.grpc.Range.end_value) return end_value_.GetNoArena(); } -inline void Range::set_end_value(const ::std::string& value) { +inline void Range::set_end_value(const std::string& value) { - end_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + end_value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.Range.end_value) } -#if LANG_CXX11 -inline void Range::set_end_value(::std::string&& value) { +inline void Range::set_end_value(std::string&& value) { end_value_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.Range.end_value) } -#endif inline void Range::set_end_value(const char* value) { GOOGLE_DCHECK(value != nullptr); - end_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + end_value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.Range.end_value) } inline void Range::set_end_value(const char* value, size_t size) { - end_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + end_value_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.Range.end_value) } -inline ::std::string* Range::mutable_end_value() { +inline std::string* Range::mutable_end_value() { // @@protoc_insertion_point(field_mutable:milvus.grpc.Range.end_value) - return end_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return end_value_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* Range::release_end_value() { +inline std::string* Range::release_end_value() { // @@protoc_insertion_point(field_release:milvus.grpc.Range.end_value) - return end_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return end_value_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void Range::set_allocated_end_value(::std::string* end_value) { +inline void Range::set_allocated_end_value(std::string* end_value) { if (end_value != nullptr) { } else { } - end_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), end_value); + end_value_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), end_value); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.Range.end_value) } @@ -2403,12 +2666,12 @@ inline void RowRecord::add_vector_data(float value) { vector_data_.Add(value); // @@protoc_insertion_point(field_add:milvus.grpc.RowRecord.vector_data) } -inline const ::google::protobuf::RepeatedField< float >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& RowRecord::vector_data() const { // @@protoc_insertion_point(field_list:milvus.grpc.RowRecord.vector_data) return vector_data_; } -inline ::google::protobuf::RepeatedField< float >* +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* RowRecord::mutable_vector_data() { // @@protoc_insertion_point(field_mutable_list:milvus.grpc.RowRecord.vector_data) return &vector_data_; @@ -2420,54 +2683,52 @@ RowRecord::mutable_vector_data() { // string table_name = 1; inline void InsertInfos::clear_table_name() { - table_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + table_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& InsertInfos::table_name() const { +inline const std::string& InsertInfos::table_name() const { // @@protoc_insertion_point(field_get:milvus.grpc.InsertInfos.table_name) return table_name_.GetNoArena(); } -inline void InsertInfos::set_table_name(const ::std::string& value) { +inline void InsertInfos::set_table_name(const std::string& value) { - table_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + table_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.InsertInfos.table_name) } -#if LANG_CXX11 -inline void InsertInfos::set_table_name(::std::string&& value) { +inline void InsertInfos::set_table_name(std::string&& value) { table_name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.InsertInfos.table_name) } -#endif inline void InsertInfos::set_table_name(const char* value) { GOOGLE_DCHECK(value != nullptr); - table_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + table_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.InsertInfos.table_name) } inline void InsertInfos::set_table_name(const char* value, size_t size) { - table_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + 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) } -inline ::std::string* InsertInfos::mutable_table_name() { +inline std::string* InsertInfos::mutable_table_name() { // @@protoc_insertion_point(field_mutable:milvus.grpc.InsertInfos.table_name) - return table_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return table_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* InsertInfos::release_table_name() { +inline std::string* InsertInfos::release_table_name() { // @@protoc_insertion_point(field_release:milvus.grpc.InsertInfos.table_name) - return table_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return table_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void InsertInfos::set_allocated_table_name(::std::string* table_name) { +inline void InsertInfos::set_allocated_table_name(std::string* table_name) { if (table_name != nullptr) { } else { } - table_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), table_name); + table_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), table_name); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.InsertInfos.table_name) } @@ -2482,7 +2743,7 @@ inline ::milvus::grpc::RowRecord* InsertInfos::mutable_row_record_array(int inde // @@protoc_insertion_point(field_mutable:milvus.grpc.InsertInfos.row_record_array) return row_record_array_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField< ::milvus::grpc::RowRecord >* +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) return &row_record_array_; @@ -2495,7 +2756,7 @@ inline ::milvus::grpc::RowRecord* InsertInfos::add_row_record_array() { // @@protoc_insertion_point(field_add:milvus.grpc.InsertInfos.row_record_array) return row_record_array_.Add(); } -inline const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::RowRecord >& +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) return row_record_array_; @@ -2532,14 +2793,14 @@ inline ::milvus::grpc::Status* VectorIds::mutable_status() { return status_; } inline void VectorIds::set_allocated_status(::milvus::grpc::Status* status) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(status_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); } if (status) { - ::google::protobuf::Arena* submessage_arena = nullptr; + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - status = ::google::protobuf::internal::GetOwnedMessage( + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, status, submessage_arena); } @@ -2557,24 +2818,24 @@ inline int VectorIds::vector_id_array_size() const { inline void VectorIds::clear_vector_id_array() { vector_id_array_.Clear(); } -inline ::google::protobuf::int64 VectorIds::vector_id_array(int index) const { +inline ::PROTOBUF_NAMESPACE_ID::int64 VectorIds::vector_id_array(int index) const { // @@protoc_insertion_point(field_get:milvus.grpc.VectorIds.vector_id_array) return vector_id_array_.Get(index); } -inline void VectorIds::set_vector_id_array(int index, ::google::protobuf::int64 value) { +inline void VectorIds::set_vector_id_array(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) { vector_id_array_.Set(index, value); // @@protoc_insertion_point(field_set:milvus.grpc.VectorIds.vector_id_array) } -inline void VectorIds::add_vector_id_array(::google::protobuf::int64 value) { +inline void VectorIds::add_vector_id_array(::PROTOBUF_NAMESPACE_ID::int64 value) { vector_id_array_.Add(value); // @@protoc_insertion_point(field_add:milvus.grpc.VectorIds.vector_id_array) } -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& VectorIds::vector_id_array() const { // @@protoc_insertion_point(field_list:milvus.grpc.VectorIds.vector_id_array) return vector_id_array_; } -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* VectorIds::mutable_vector_id_array() { // @@protoc_insertion_point(field_mutable_list:milvus.grpc.VectorIds.vector_id_array) return &vector_id_array_; @@ -2586,54 +2847,52 @@ VectorIds::mutable_vector_id_array() { // string table_name = 1; inline void SearchVectorInfos::clear_table_name() { - table_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + table_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& SearchVectorInfos::table_name() const { +inline const std::string& SearchVectorInfos::table_name() const { // @@protoc_insertion_point(field_get:milvus.grpc.SearchVectorInfos.table_name) return table_name_.GetNoArena(); } -inline void SearchVectorInfos::set_table_name(const ::std::string& value) { +inline void SearchVectorInfos::set_table_name(const std::string& value) { - table_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + table_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.SearchVectorInfos.table_name) } -#if LANG_CXX11 -inline void SearchVectorInfos::set_table_name(::std::string&& value) { +inline void SearchVectorInfos::set_table_name(std::string&& value) { table_name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.SearchVectorInfos.table_name) } -#endif inline void SearchVectorInfos::set_table_name(const char* value) { GOOGLE_DCHECK(value != nullptr); - table_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + table_name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.SearchVectorInfos.table_name) } inline void SearchVectorInfos::set_table_name(const char* value, size_t size) { - table_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + 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) } -inline ::std::string* SearchVectorInfos::mutable_table_name() { +inline std::string* SearchVectorInfos::mutable_table_name() { // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchVectorInfos.table_name) - return table_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return table_name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* SearchVectorInfos::release_table_name() { +inline std::string* SearchVectorInfos::release_table_name() { // @@protoc_insertion_point(field_release:milvus.grpc.SearchVectorInfos.table_name) - return table_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return table_name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void SearchVectorInfos::set_allocated_table_name(::std::string* table_name) { +inline void SearchVectorInfos::set_allocated_table_name(std::string* table_name) { if (table_name != nullptr) { } else { } - table_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), table_name); + table_name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), table_name); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.SearchVectorInfos.table_name) } @@ -2648,7 +2907,7 @@ inline ::milvus::grpc::RowRecord* SearchVectorInfos::mutable_query_record_array( // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchVectorInfos.query_record_array) return query_record_array_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField< ::milvus::grpc::RowRecord >* +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) return &query_record_array_; @@ -2661,7 +2920,7 @@ inline ::milvus::grpc::RowRecord* SearchVectorInfos::add_query_record_array() { // @@protoc_insertion_point(field_add:milvus.grpc.SearchVectorInfos.query_record_array) return query_record_array_.Add(); } -inline const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::RowRecord >& +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) return query_record_array_; @@ -2678,7 +2937,7 @@ inline ::milvus::grpc::Range* SearchVectorInfos::mutable_query_range_array(int i // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchVectorInfos.query_range_array) return query_range_array_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField< ::milvus::grpc::Range >* +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) return &query_range_array_; @@ -2691,7 +2950,7 @@ inline ::milvus::grpc::Range* SearchVectorInfos::add_query_range_array() { // @@protoc_insertion_point(field_add:milvus.grpc.SearchVectorInfos.query_range_array) return query_range_array_.Add(); } -inline const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::Range >& +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) return query_range_array_; @@ -2701,11 +2960,11 @@ SearchVectorInfos::query_range_array() const { inline void SearchVectorInfos::clear_topk() { topk_ = PROTOBUF_LONGLONG(0); } -inline ::google::protobuf::int64 SearchVectorInfos::topk() const { +inline ::PROTOBUF_NAMESPACE_ID::int64 SearchVectorInfos::topk() const { // @@protoc_insertion_point(field_get:milvus.grpc.SearchVectorInfos.topk) return topk_; } -inline void SearchVectorInfos::set_topk(::google::protobuf::int64 value) { +inline void SearchVectorInfos::set_topk(::PROTOBUF_NAMESPACE_ID::int64 value) { topk_ = value; // @@protoc_insertion_point(field_set:milvus.grpc.SearchVectorInfos.topk) @@ -2722,24 +2981,22 @@ inline int SearchVectorInFilesInfos::file_id_array_size() const { inline void SearchVectorInFilesInfos::clear_file_id_array() { file_id_array_.Clear(); } -inline const ::std::string& SearchVectorInFilesInfos::file_id_array(int index) const { +inline const std::string& SearchVectorInFilesInfos::file_id_array(int index) const { // @@protoc_insertion_point(field_get:milvus.grpc.SearchVectorInFilesInfos.file_id_array) return file_id_array_.Get(index); } -inline ::std::string* SearchVectorInFilesInfos::mutable_file_id_array(int index) { +inline std::string* SearchVectorInFilesInfos::mutable_file_id_array(int index) { // @@protoc_insertion_point(field_mutable:milvus.grpc.SearchVectorInFilesInfos.file_id_array) return file_id_array_.Mutable(index); } -inline void SearchVectorInFilesInfos::set_file_id_array(int index, const ::std::string& value) { +inline void SearchVectorInFilesInfos::set_file_id_array(int index, const std::string& value) { // @@protoc_insertion_point(field_set:milvus.grpc.SearchVectorInFilesInfos.file_id_array) file_id_array_.Mutable(index)->assign(value); } -#if LANG_CXX11 -inline void SearchVectorInFilesInfos::set_file_id_array(int index, ::std::string&& value) { +inline void SearchVectorInFilesInfos::set_file_id_array(int index, std::string&& value) { // @@protoc_insertion_point(field_set:milvus.grpc.SearchVectorInFilesInfos.file_id_array) file_id_array_.Mutable(index)->assign(std::move(value)); } -#endif inline void SearchVectorInFilesInfos::set_file_id_array(int index, const char* value) { GOOGLE_DCHECK(value != nullptr); file_id_array_.Mutable(index)->assign(value); @@ -2750,20 +3007,18 @@ inline void SearchVectorInFilesInfos::set_file_id_array(int index, const char* v reinterpret_cast(value), size); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.SearchVectorInFilesInfos.file_id_array) } -inline ::std::string* SearchVectorInFilesInfos::add_file_id_array() { +inline std::string* SearchVectorInFilesInfos::add_file_id_array() { // @@protoc_insertion_point(field_add_mutable:milvus.grpc.SearchVectorInFilesInfos.file_id_array) return file_id_array_.Add(); } -inline void SearchVectorInFilesInfos::add_file_id_array(const ::std::string& value) { +inline void SearchVectorInFilesInfos::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) } -#if LANG_CXX11 -inline void SearchVectorInFilesInfos::add_file_id_array(::std::string&& value) { +inline void SearchVectorInFilesInfos::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) } -#endif inline void SearchVectorInFilesInfos::add_file_id_array(const char* value) { GOOGLE_DCHECK(value != nullptr); file_id_array_.Add()->assign(value); @@ -2773,12 +3028,12 @@ inline void SearchVectorInFilesInfos::add_file_id_array(const char* value, size_ file_id_array_.Add()->assign(reinterpret_cast(value), size); // @@protoc_insertion_point(field_add_pointer:milvus.grpc.SearchVectorInFilesInfos.file_id_array) } -inline const ::google::protobuf::RepeatedPtrField<::std::string>& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& SearchVectorInFilesInfos::file_id_array() const { // @@protoc_insertion_point(field_list:milvus.grpc.SearchVectorInFilesInfos.file_id_array) return file_id_array_; } -inline ::google::protobuf::RepeatedPtrField<::std::string>* +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* SearchVectorInFilesInfos::mutable_file_id_array() { // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchVectorInFilesInfos.file_id_array) return &file_id_array_; @@ -2817,14 +3072,14 @@ inline ::milvus::grpc::SearchVectorInfos* SearchVectorInFilesInfos::mutable_sear return search_vector_infos_; } inline void SearchVectorInFilesInfos::set_allocated_search_vector_infos(::milvus::grpc::SearchVectorInfos* search_vector_infos) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { delete search_vector_infos_; } if (search_vector_infos) { - ::google::protobuf::Arena* submessage_arena = nullptr; + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - search_vector_infos = ::google::protobuf::internal::GetOwnedMessage( + search_vector_infos = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, search_vector_infos, submessage_arena); } @@ -2843,11 +3098,11 @@ inline void SearchVectorInFilesInfos::set_allocated_search_vector_infos(::milvus inline void QueryResult::clear_id() { id_ = PROTOBUF_LONGLONG(0); } -inline ::google::protobuf::int64 QueryResult::id() const { +inline ::PROTOBUF_NAMESPACE_ID::int64 QueryResult::id() const { // @@protoc_insertion_point(field_get:milvus.grpc.QueryResult.id) return id_; } -inline void QueryResult::set_id(::google::protobuf::int64 value) { +inline void QueryResult::set_id(::PROTOBUF_NAMESPACE_ID::int64 value) { id_ = value; // @@protoc_insertion_point(field_set:milvus.grpc.QueryResult.id) @@ -2898,14 +3153,14 @@ inline ::milvus::grpc::Status* TopKQueryResult::mutable_status() { return status_; } inline void TopKQueryResult::set_allocated_status(::milvus::grpc::Status* status) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(status_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); } if (status) { - ::google::protobuf::Arena* submessage_arena = nullptr; + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - status = ::google::protobuf::internal::GetOwnedMessage( + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, status, submessage_arena); } @@ -2927,7 +3182,7 @@ inline ::milvus::grpc::QueryResult* TopKQueryResult::mutable_query_result_arrays // @@protoc_insertion_point(field_mutable:milvus.grpc.TopKQueryResult.query_result_arrays) return query_result_arrays_.Mutable(index); } -inline ::google::protobuf::RepeatedPtrField< ::milvus::grpc::QueryResult >* +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::QueryResult >* TopKQueryResult::mutable_query_result_arrays() { // @@protoc_insertion_point(field_mutable_list:milvus.grpc.TopKQueryResult.query_result_arrays) return &query_result_arrays_; @@ -2940,7 +3195,7 @@ inline ::milvus::grpc::QueryResult* TopKQueryResult::add_query_result_arrays() { // @@protoc_insertion_point(field_add:milvus.grpc.TopKQueryResult.query_result_arrays) return query_result_arrays_.Add(); } -inline const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::QueryResult >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::QueryResult >& TopKQueryResult::query_result_arrays() const { // @@protoc_insertion_point(field_list:milvus.grpc.TopKQueryResult.query_result_arrays) return query_result_arrays_; @@ -2977,14 +3232,14 @@ inline ::milvus::grpc::Status* StringReply::mutable_status() { return status_; } inline void StringReply::set_allocated_status(::milvus::grpc::Status* status) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(status_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); } if (status) { - ::google::protobuf::Arena* submessage_arena = nullptr; + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - status = ::google::protobuf::internal::GetOwnedMessage( + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, status, submessage_arena); } @@ -2997,54 +3252,52 @@ inline void StringReply::set_allocated_status(::milvus::grpc::Status* status) { // string string_reply = 2; inline void StringReply::clear_string_reply() { - string_reply_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + string_reply_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& StringReply::string_reply() const { +inline const std::string& StringReply::string_reply() const { // @@protoc_insertion_point(field_get:milvus.grpc.StringReply.string_reply) return string_reply_.GetNoArena(); } -inline void StringReply::set_string_reply(const ::std::string& value) { +inline void StringReply::set_string_reply(const std::string& value) { - string_reply_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + string_reply_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.StringReply.string_reply) } -#if LANG_CXX11 -inline void StringReply::set_string_reply(::std::string&& value) { +inline void StringReply::set_string_reply(std::string&& value) { string_reply_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.StringReply.string_reply) } -#endif inline void StringReply::set_string_reply(const char* value) { GOOGLE_DCHECK(value != nullptr); - string_reply_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + string_reply_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.StringReply.string_reply) } inline void StringReply::set_string_reply(const char* value, size_t size) { - string_reply_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + string_reply_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.StringReply.string_reply) } -inline ::std::string* StringReply::mutable_string_reply() { +inline std::string* StringReply::mutable_string_reply() { // @@protoc_insertion_point(field_mutable:milvus.grpc.StringReply.string_reply) - return string_reply_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return string_reply_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* StringReply::release_string_reply() { +inline std::string* StringReply::release_string_reply() { // @@protoc_insertion_point(field_release:milvus.grpc.StringReply.string_reply) - return string_reply_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return string_reply_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void StringReply::set_allocated_string_reply(::std::string* string_reply) { +inline void StringReply::set_allocated_string_reply(std::string* string_reply) { if (string_reply != nullptr) { } else { } - string_reply_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), string_reply); + string_reply_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), string_reply); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.StringReply.string_reply) } @@ -3079,14 +3332,14 @@ inline ::milvus::grpc::Status* BoolReply::mutable_status() { return status_; } inline void BoolReply::set_allocated_status(::milvus::grpc::Status* status) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(status_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); } if (status) { - ::google::protobuf::Arena* submessage_arena = nullptr; + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - status = ::google::protobuf::internal::GetOwnedMessage( + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, status, submessage_arena); } @@ -3142,14 +3395,14 @@ inline ::milvus::grpc::Status* TableRowCount::mutable_status() { return status_; } inline void TableRowCount::set_allocated_status(::milvus::grpc::Status* status) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(status_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); } if (status) { - ::google::protobuf::Arena* submessage_arena = nullptr; + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - status = ::google::protobuf::internal::GetOwnedMessage( + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, status, submessage_arena); } @@ -3164,11 +3417,11 @@ inline void TableRowCount::set_allocated_status(::milvus::grpc::Status* status) inline void TableRowCount::clear_table_row_count() { table_row_count_ = PROTOBUF_LONGLONG(0); } -inline ::google::protobuf::int64 TableRowCount::table_row_count() const { +inline ::PROTOBUF_NAMESPACE_ID::int64 TableRowCount::table_row_count() const { // @@protoc_insertion_point(field_get:milvus.grpc.TableRowCount.table_row_count) return table_row_count_; } -inline void TableRowCount::set_table_row_count(::google::protobuf::int64 value) { +inline void TableRowCount::set_table_row_count(::PROTOBUF_NAMESPACE_ID::int64 value) { table_row_count_ = value; // @@protoc_insertion_point(field_set:milvus.grpc.TableRowCount.table_row_count) @@ -3180,54 +3433,52 @@ inline void TableRowCount::set_table_row_count(::google::protobuf::int64 value) // string cmd = 1; inline void Command::clear_cmd() { - cmd_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + cmd_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& Command::cmd() const { +inline const std::string& Command::cmd() const { // @@protoc_insertion_point(field_get:milvus.grpc.Command.cmd) return cmd_.GetNoArena(); } -inline void Command::set_cmd(const ::std::string& value) { +inline void Command::set_cmd(const std::string& value) { - cmd_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + cmd_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.Command.cmd) } -#if LANG_CXX11 -inline void Command::set_cmd(::std::string&& value) { +inline void Command::set_cmd(std::string&& value) { cmd_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.Command.cmd) } -#endif inline void Command::set_cmd(const char* value) { GOOGLE_DCHECK(value != nullptr); - cmd_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + cmd_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.Command.cmd) } inline void Command::set_cmd(const char* value, size_t size) { - cmd_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + cmd_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.Command.cmd) } -inline ::std::string* Command::mutable_cmd() { +inline std::string* Command::mutable_cmd() { // @@protoc_insertion_point(field_mutable:milvus.grpc.Command.cmd) - return cmd_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return cmd_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* Command::release_cmd() { +inline std::string* Command::release_cmd() { // @@protoc_insertion_point(field_release:milvus.grpc.Command.cmd) - return cmd_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return cmd_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void Command::set_allocated_cmd(::std::string* cmd) { +inline void Command::set_allocated_cmd(std::string* cmd) { if (cmd != nullptr) { } else { } - cmd_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), cmd); + cmd_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), cmd); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.Command.cmd) } @@ -3262,14 +3513,14 @@ inline ::milvus::grpc::Status* ServerStatus::mutable_status() { return status_; } inline void ServerStatus::set_allocated_status(::milvus::grpc::Status* status) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(status_); + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); } if (status) { - ::google::protobuf::Arena* submessage_arena = nullptr; + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - status = ::google::protobuf::internal::GetOwnedMessage( + status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, status, submessage_arena); } @@ -3282,54 +3533,52 @@ inline void ServerStatus::set_allocated_status(::milvus::grpc::Status* status) { // string info = 2; inline void ServerStatus::clear_info() { - info_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + info_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& ServerStatus::info() const { +inline const std::string& ServerStatus::info() const { // @@protoc_insertion_point(field_get:milvus.grpc.ServerStatus.info) return info_.GetNoArena(); } -inline void ServerStatus::set_info(const ::std::string& value) { +inline void ServerStatus::set_info(const std::string& value) { - info_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + info_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.ServerStatus.info) } -#if LANG_CXX11 -inline void ServerStatus::set_info(::std::string&& value) { +inline void ServerStatus::set_info(std::string&& value) { info_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.ServerStatus.info) } -#endif inline void ServerStatus::set_info(const char* value) { GOOGLE_DCHECK(value != nullptr); - info_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + info_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.ServerStatus.info) } inline void ServerStatus::set_info(const char* value, size_t size) { - info_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + info_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.ServerStatus.info) } -inline ::std::string* ServerStatus::mutable_info() { +inline std::string* ServerStatus::mutable_info() { // @@protoc_insertion_point(field_mutable:milvus.grpc.ServerStatus.info) - return info_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return info_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* ServerStatus::release_info() { +inline std::string* ServerStatus::release_info() { // @@protoc_insertion_point(field_release:milvus.grpc.ServerStatus.info) - return info_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return info_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void ServerStatus::set_allocated_info(::std::string* info) { +inline void ServerStatus::set_allocated_info(std::string* info) { if (info != nullptr) { } else { } - info_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), info); + info_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), info); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.ServerStatus.info) } @@ -3373,4 +3622,4 @@ inline void ServerStatus::set_allocated_info(::std::string* info) { // @@protoc_insertion_point(global_scope) #include -#endif // PROTOBUF_INCLUDED_milvus_2eproto +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_milvus_2eproto diff --git a/cpp/src/grpc/gen-status/status.grpc.pb.h b/cpp/src/grpc/gen-status/status.grpc.pb.h index c645a1e4..2dcedb74 100644 --- a/cpp/src/grpc/gen-status/status.grpc.pb.h +++ b/cpp/src/grpc/gen-status/status.grpc.pb.h @@ -11,20 +11,29 @@ #include #include #include +#include +#include #include #include #include #include +#include #include #include #include #include -namespace grpc { +namespace grpc_impl { class CompletionQueue; -class Channel; class ServerCompletionQueue; class ServerContext; +} // namespace grpc_impl + +namespace grpc { +namespace experimental { +template +class MessageAllocator; +} // namespace experimental } // namespace grpc namespace milvus { diff --git a/cpp/src/grpc/gen-status/status.pb.cc b/cpp/src/grpc/gen-status/status.pb.cc index 96d53453..79c41270 100644 --- a/cpp/src/grpc/gen-status/status.pb.cc +++ b/cpp/src/grpc/gen-status/status.pb.cc @@ -8,45 +8,40 @@ #include #include #include -#include +#include #include #include #include #include // @@protoc_insertion_point(includes) #include - namespace milvus { namespace grpc { class StatusDefaultTypeInternal { public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; + ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; } _Status_default_instance_; } // namespace grpc } // namespace milvus -static void InitDefaultsStatus_status_2eproto() { +static void InitDefaultsscc_info_Status_status_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::milvus::grpc::_Status_default_instance_; new (ptr) ::milvus::grpc::Status(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); } ::milvus::grpc::Status::InitAsDefaultInstance(); } -::google::protobuf::internal::SCCInfo<0> scc_info_Status_status_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStatus_status_2eproto}, {}}; - -void InitDefaults_status_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_Status_status_2eproto.base); -} +::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Status_status_2eproto = + {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_Status_status_2eproto}, {}}; -::google::protobuf::Metadata file_level_metadata_status_2eproto[1]; -const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_status_2eproto[1]; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_status_2eproto = nullptr; +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_status_2eproto[1]; +static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_status_2eproto[1]; +static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_status_2eproto = nullptr; -const ::google::protobuf::uint32 TableStruct_status_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_status_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::milvus::grpc::Status, _internal_metadata_), ~0u, // no _extensions_ @@ -55,21 +50,15 @@ const ::google::protobuf::uint32 TableStruct_status_2eproto::offsets[] PROTOBUF_ PROTOBUF_FIELD_OFFSET(::milvus::grpc::Status, error_code_), PROTOBUF_FIELD_OFFSET(::milvus::grpc::Status, reason_), }; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::milvus::grpc::Status)}, }; -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::milvus::grpc::_Status_default_instance_), +static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { + reinterpret_cast(&::milvus::grpc::_Status_default_instance_), }; -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_status_2eproto = { - {}, AddDescriptors_status_2eproto, "status.proto", schemas, - file_default_instances, TableStruct_status_2eproto::offsets, - file_level_metadata_status_2eproto, 1, file_level_enum_descriptors_status_2eproto, file_level_service_descriptors_status_2eproto, -}; - -const char descriptor_table_protodef_status_2eproto[] = +const char descriptor_table_protodef_status_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = "\n\014status.proto\022\013milvus.grpc\"D\n\006Status\022*\n" "\nerror_code\030\001 \001(\0162\026.milvus.grpc.ErrorCod" "e\022\016\n\006reason\030\002 \001(\t*\354\003\n\tErrorCode\022\013\n\007SUCCE" @@ -86,25 +75,26 @@ const char descriptor_table_protodef_status_2eproto[] = "\030\n\024CANNOT_DELETE_FOLDER\020\023\022\026\n\022CANNOT_DELE" "TE_FILE\020\024\022\025\n\021BUILD_INDEX_ERROR\020\025b\006proto3" ; -::google::protobuf::internal::DescriptorTable descriptor_table_status_2eproto = { - false, InitDefaults_status_2eproto, - descriptor_table_protodef_status_2eproto, - "status.proto", &assign_descriptors_table_status_2eproto, 600, +static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_status_2eproto_deps[1] = { +}; +static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_status_2eproto_sccs[1] = { + &scc_info_Status_status_2eproto.base, +}; +static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_status_2eproto_once; +static bool descriptor_table_status_2eproto_initialized = false; +const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_status_2eproto = { + &descriptor_table_status_2eproto_initialized, descriptor_table_protodef_status_2eproto, "status.proto", 600, + &descriptor_table_status_2eproto_once, descriptor_table_status_2eproto_sccs, descriptor_table_status_2eproto_deps, 1, 0, + schemas, file_default_instances, TableStruct_status_2eproto::offsets, + file_level_metadata_status_2eproto, 1, file_level_enum_descriptors_status_2eproto, file_level_service_descriptors_status_2eproto, }; - -void AddDescriptors_status_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[1] = - { - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_status_2eproto, deps, 0); -} // Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_status_2eproto = []() { AddDescriptors_status_2eproto(); return true; }(); +static bool dynamic_init_dummy_status_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_status_2eproto), true); namespace milvus { namespace grpc { -const ::google::protobuf::EnumDescriptor* ErrorCode_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_status_2eproto); +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ErrorCode_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_status_2eproto); return file_level_enum_descriptors_status_2eproto[0]; } bool ErrorCode_IsValid(int value) { @@ -142,36 +132,30 @@ bool ErrorCode_IsValid(int value) { void Status::InitAsDefaultInstance() { } -class Status::HasBitSetters { +class Status::_Internal { public: }; -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Status::kErrorCodeFieldNumber; -const int Status::kReasonFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - Status::Status() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.Status) } Status::Status(const Status& from) - : ::google::protobuf::Message(), + : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - reason_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.reason().size() > 0) { - reason_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_); + reason_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + if (!from.reason().empty()) { + reason_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.reason_); } error_code_ = from.error_code_; // @@protoc_insertion_point(copy_constructor:milvus.grpc.Status) } void Status::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Status_status_2eproto.base); - reason_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Status_status_2eproto.base); + reason_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); error_code_ = 0; } @@ -181,106 +165,88 @@ Status::~Status() { } void Status::SharedDtor() { - reason_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + reason_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void Status::SetCachedSize(int size) const { _cached_size_.Set(size); } const Status& Status::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Status_status_2eproto.base); + ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Status_status_2eproto.base); return *internal_default_instance(); } void Status::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.Status) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - reason_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + reason_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); error_code_ = 0; _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Status::_InternalParse(const char* begin, const char* end, void* object, - ::google::protobuf::internal::ParseContext* ctx) { - auto msg = static_cast(object); - ::google::protobuf::int32 size; (void)size; - int depth; (void)depth; - ::google::protobuf::uint32 tag; - ::google::protobuf::internal::ParseFunc parser_till_end; (void)parser_till_end; - auto ptr = begin; - while (ptr < end) { - ptr = ::google::protobuf::io::Parse32(ptr, &tag); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); +const char* Status::_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.ErrorCode error_code = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_error_code(static_cast<::milvus::grpc::ErrorCode>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { + ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); + CHK_(ptr); + set_error_code(static_cast<::milvus::grpc::ErrorCode>(val)); + } else goto handle_unusual; + continue; // string reason = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("milvus.grpc.Status.reason"); - object = msg->mutable_reason(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_reason(), ptr, ctx, "milvus.grpc.Status.reason"); + CHK_(ptr); + } else goto handle_unusual; + continue; default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; + ctx->SetLastTag(tag); + goto success; } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; + ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); + CHK_(ptr != nullptr); + continue; } } // switch } // while +success: return ptr; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); +failure: + ptr = nullptr; + goto success; +#undef CHK_ } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool Status::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; + ::PROTOBUF_NAMESPACE_ID::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.Status) for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .milvus.grpc.ErrorCode error_code = 1; case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( + DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< + int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>( input, &value))); set_error_code(static_cast< ::milvus::grpc::ErrorCode >(value)); } else { @@ -291,12 +257,12 @@ bool Status::MergePartialFromCodedStream( // string reason = 2; case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( + if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( input, this->mutable_reason())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->reason().data(), static_cast(this->reason().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "milvus.grpc.Status.reason")); } else { goto handle_unusual; @@ -309,7 +275,7 @@ bool Status::MergePartialFromCodedStream( if (tag == 0) { goto success; } - DO_(::google::protobuf::internal::WireFormat::SkipField( + DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } @@ -326,59 +292,59 @@ failure: #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void Status::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { + ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.Status) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // .milvus.grpc.ErrorCode error_code = 1; if (this->error_code() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum( 1, this->error_code(), output); } // string reason = 2; if (this->reason().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->reason().data(), static_cast(this->reason().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.Status.reason"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->reason(), output); } if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:milvus.grpc.Status) } -::google::protobuf::uint8* Status::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { +::PROTOBUF_NAMESPACE_ID::uint8* Status::InternalSerializeWithCachedSizesToArray( + ::PROTOBUF_NAMESPACE_ID::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.Status) - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; // .milvus.grpc.ErrorCode error_code = 1; if (this->error_code() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( 1, this->error_code(), target); } // string reason = 2; if (this->reason().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->reason().data(), static_cast(this->reason().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "milvus.grpc.Status.reason"); target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( 2, this->reason(), target); } if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.Status) @@ -391,40 +357,40 @@ size_t Status::ByteSizeLong() const { if (_internal_metadata_.have_unknown_fields()) { total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string reason = 2; if (this->reason().size() > 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( this->reason()); } // .milvus.grpc.ErrorCode error_code = 1; if (this->error_code() != 0) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->error_code()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->error_code()); } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void Status::MergeFrom(const ::google::protobuf::Message& from) { +void Status::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.Status) GOOGLE_DCHECK_NE(&from, this); const Status* source = - ::google::protobuf::DynamicCastToGenerated( + ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.Status) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); + ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.Status) MergeFrom(*source); @@ -435,19 +401,19 @@ void Status::MergeFrom(const Status& from) { // @@protoc_insertion_point(class_specific_merge_from_start:milvus.grpc.Status) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; + ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.reason().size() > 0) { - reason_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_); + reason_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.reason_); } if (from.error_code() != 0) { set_error_code(from.error_code()); } } -void Status::CopyFrom(const ::google::protobuf::Message& from) { +void Status::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.Status) if (&from == this) return; Clear(); @@ -465,34 +431,27 @@ bool Status::IsInitialized() const { return true; } -void Status::Swap(Status* other) { - if (other == this) return; - InternalSwap(other); -} void Status::InternalSwap(Status* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - reason_.Swap(&other->reason_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + reason_.Swap(&other->reason_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); swap(error_code_, other->error_code_); } -::google::protobuf::Metadata Status::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_status_2eproto); - return ::file_level_metadata_status_2eproto[kIndexInFileMessages]; +::PROTOBUF_NAMESPACE_ID::Metadata Status::GetMetadata() const { + return GetMetadataStatic(); } // @@protoc_insertion_point(namespace_scope) } // namespace grpc } // namespace milvus -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN template<> PROTOBUF_NOINLINE ::milvus::grpc::Status* Arena::CreateMaybeMessage< ::milvus::grpc::Status >(Arena* arena) { return Arena::CreateInternal< ::milvus::grpc::Status >(arena); } -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) #include diff --git a/cpp/src/grpc/gen-status/status.pb.h b/cpp/src/grpc/gen-status/status.pb.h index ce6ddcd8..fe200e09 100644 --- a/cpp/src/grpc/gen-status/status.pb.h +++ b/cpp/src/grpc/gen-status/status.pb.h @@ -1,19 +1,19 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: status.proto -#ifndef PROTOBUF_INCLUDED_status_2eproto -#define PROTOBUF_INCLUDED_status_2eproto +#ifndef GOOGLE_PROTOBUF_INCLUDED_status_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_status_2eproto #include #include #include -#if PROTOBUF_VERSION < 3007000 +#if PROTOBUF_VERSION < 3009000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION +#if 3009000 < PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. @@ -27,6 +27,7 @@ #include #include #include +#include #include #include // IWYU pragma: export #include // IWYU pragma: export @@ -35,20 +36,25 @@ // @@protoc_insertion_point(includes) #include #define PROTOBUF_INTERNAL_EXPORT_status_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE // Internal implementation detail -- do not use these members. struct TableStruct_status_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] + static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[1] + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; + static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; + static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; + static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; }; -void AddDescriptors_status_2eproto(); +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_status_2eproto; namespace milvus { namespace grpc { class Status; @@ -56,15 +62,13 @@ class StatusDefaultTypeInternal; extern StatusDefaultTypeInternal _Status_default_instance_; } // namespace grpc } // namespace milvus -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN template<> ::milvus::grpc::Status* Arena::CreateMaybeMessage<::milvus::grpc::Status>(Arena*); -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE namespace milvus { namespace grpc { -enum ErrorCode { +enum ErrorCode : int { SUCCESS = 0, UNEXPECTED_ERROR = 1, CONNECT_FAILED = 2, @@ -87,44 +91,46 @@ enum ErrorCode { CANNOT_DELETE_FOLDER = 19, CANNOT_DELETE_FILE = 20, BUILD_INDEX_ERROR = 21, - ErrorCode_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - ErrorCode_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() + ErrorCode_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), + ErrorCode_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() }; bool ErrorCode_IsValid(int value); -const ErrorCode ErrorCode_MIN = SUCCESS; -const ErrorCode ErrorCode_MAX = BUILD_INDEX_ERROR; -const int ErrorCode_ARRAYSIZE = ErrorCode_MAX + 1; - -const ::google::protobuf::EnumDescriptor* ErrorCode_descriptor(); -inline const ::std::string& ErrorCode_Name(ErrorCode value) { - return ::google::protobuf::internal::NameOfEnum( - ErrorCode_descriptor(), value); +constexpr ErrorCode ErrorCode_MIN = SUCCESS; +constexpr ErrorCode ErrorCode_MAX = BUILD_INDEX_ERROR; +constexpr int ErrorCode_ARRAYSIZE = ErrorCode_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ErrorCode_descriptor(); +template +inline const std::string& ErrorCode_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function ErrorCode_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + ErrorCode_descriptor(), enum_t_value); } inline bool ErrorCode_Parse( - const ::std::string& name, ErrorCode* value) { - return ::google::protobuf::internal::ParseNamedEnum( + const std::string& name, ErrorCode* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( ErrorCode_descriptor(), name, value); } // =================================================================== -class Status final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.Status) */ { +class Status : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.Status) */ { public: Status(); virtual ~Status(); Status(const Status& from); - - inline Status& operator=(const Status& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 Status(Status&& from) noexcept : Status() { *this = ::std::move(from); } + inline Status& operator=(const Status& from) { + CopyFrom(from); + return *this; + } inline Status& operator=(Status&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -133,9 +139,15 @@ class Status final : } return *this; } - #endif - static const ::google::protobuf::Descriptor* descriptor() { - return default_instance().GetDescriptor(); + + 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 Status& default_instance(); @@ -147,10 +159,13 @@ class Status final : static constexpr int kIndexInFileMessages = 0; - void Swap(Status* other); friend void swap(Status& a, Status& b) { a.Swap(&b); } + inline void Swap(Status* other) { + if (other == this) return; + InternalSwap(other); + } // implements Message ---------------------------------------------- @@ -158,11 +173,11 @@ class Status final : return CreateMaybeMessage(nullptr); } - Status* New(::google::protobuf::Arena* arena) const final { + Status* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; + void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; void CopyFrom(const Status& from); void MergeFrom(const Status& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -170,25 +185,28 @@ class Status final : size_t ByteSizeLong() const final; #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - static const char* _InternalParse(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); - ::google::protobuf::internal::ParseFunc _ParseFunc() const final { return _InternalParse; } + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; #else bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; + ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const final; + ::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: - void SharedCtor(); - void SharedDtor(); + inline void SharedCtor(); + inline void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Status* other); + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "milvus.grpc.Status"; + } private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { + inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -196,40 +214,47 @@ class Status final : } public: - ::google::protobuf::Metadata GetMetadata() const final; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + private: + static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_status_2eproto); + return ::descriptor_table_status_2eproto.file_level_metadata[kIndexInFileMessages]; + } + + public: // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- + enum : int { + kReasonFieldNumber = 2, + kErrorCodeFieldNumber = 1, + }; // string reason = 2; void clear_reason(); - static const int kReasonFieldNumber = 2; - const ::std::string& reason() const; - void set_reason(const ::std::string& value); - #if LANG_CXX11 - void set_reason(::std::string&& value); - #endif + const std::string& reason() const; + void set_reason(const std::string& value); + void set_reason(std::string&& value); void set_reason(const char* value); void set_reason(const char* value, size_t size); - ::std::string* mutable_reason(); - ::std::string* release_reason(); - void set_allocated_reason(::std::string* reason); + std::string* mutable_reason(); + std::string* release_reason(); + void set_allocated_reason(std::string* reason); // .milvus.grpc.ErrorCode error_code = 1; void clear_error_code(); - static const int kErrorCodeFieldNumber = 1; ::milvus::grpc::ErrorCode error_code() const; void set_error_code(::milvus::grpc::ErrorCode value); // @@protoc_insertion_point(class_scope:milvus.grpc.Status) private: - class HasBitSetters; + class _Internal; - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr reason_; + ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr reason_; int error_code_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; friend struct ::TableStruct_status_2eproto; }; // =================================================================== @@ -259,54 +284,52 @@ inline void Status::set_error_code(::milvus::grpc::ErrorCode value) { // string reason = 2; inline void Status::clear_reason() { - reason_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + reason_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline const ::std::string& Status::reason() const { +inline const std::string& Status::reason() const { // @@protoc_insertion_point(field_get:milvus.grpc.Status.reason) return reason_.GetNoArena(); } -inline void Status::set_reason(const ::std::string& value) { +inline void Status::set_reason(const std::string& value) { - reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); + reason_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.Status.reason) } -#if LANG_CXX11 -inline void Status::set_reason(::std::string&& value) { +inline void Status::set_reason(std::string&& value) { reason_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:milvus.grpc.Status.reason) } -#endif inline void Status::set_reason(const char* value) { GOOGLE_DCHECK(value != nullptr); - reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + reason_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:milvus.grpc.Status.reason) } inline void Status::set_reason(const char* value, size_t size) { - reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), + reason_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:milvus.grpc.Status.reason) } -inline ::std::string* Status::mutable_reason() { +inline std::string* Status::mutable_reason() { // @@protoc_insertion_point(field_mutable:milvus.grpc.Status.reason) - return reason_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return reason_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline ::std::string* Status::release_reason() { +inline std::string* Status::release_reason() { // @@protoc_insertion_point(field_release:milvus.grpc.Status.reason) - return reason_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + return reason_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } -inline void Status::set_allocated_reason(::std::string* reason) { +inline void Status::set_allocated_reason(std::string* reason) { if (reason != nullptr) { } else { } - reason_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), reason); + reason_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), reason); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.Status.reason) } @@ -319,8 +342,7 @@ inline void Status::set_allocated_reason(::std::string* reason) { } // namespace grpc } // namespace milvus -namespace google { -namespace protobuf { +PROTOBUF_NAMESPACE_OPEN template <> struct is_proto_enum< ::milvus::grpc::ErrorCode> : ::std::true_type {}; template <> @@ -328,10 +350,9 @@ inline const EnumDescriptor* GetEnumDescriptor< ::milvus::grpc::ErrorCode>() { return ::milvus::grpc::ErrorCode_descriptor(); } -} // namespace protobuf -} // namespace google +PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) #include -#endif // PROTOBUF_INCLUDED_status_2eproto +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_status_2eproto diff --git a/cpp/src/sdk/CMakeLists.txt b/cpp/src/sdk/CMakeLists.txt index 5ad47210..21fec895 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_ENABLE_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) diff --git a/cpp/src/sdk/examples/CMakeLists.txt b/cpp/src/sdk/examples/CMakeLists.txt index 8a13f2b5..ceeb88c0 100644 --- a/cpp/src/sdk/examples/CMakeLists.txt +++ b/cpp/src/sdk/examples/CMakeLists.txt @@ -4,7 +4,7 @@ # Proprietary and confidential. #------------------------------------------------------------------------------- -if (MILVUS_ENABLE_THRIFT STREQUAL "ON") +if (MILVUS_WITH_THRIFT STREQUAL "ON") add_subdirectory(thriftsimple) else() add_subdirectory(grpcsimple) diff --git a/cpp/thirdparty/versions.txt b/cpp/thirdparty/versions.txt index 02e20c32..40ca9378 100644 --- a/cpp/thirdparty/versions.txt +++ b/cpp/thirdparty/versions.txt @@ -22,5 +22,6 @@ ZSTD_VERSION=v1.4.0 AWS_VERSION=1.7.125 LIBUNWIND_VERSION=1.3.1 GPERFTOOLS_VERSION=2.7 +GRPC_VERSION=master # vim: set filetype=sh: -- GitLab