diff --git a/cpp/src/grpc/gen-milvus/milvus.grpc.pb.cc b/cpp/src/grpc/gen-milvus/milvus.grpc.pb.cc index 0e6ede4e06edd43c9b97ce7255fa9b91a9666968..ef9fa3d46d2bbfd062dc3f0038407cdc632873a2 100644 --- a/cpp/src/grpc/gen-milvus/milvus.grpc.pb.cc +++ b/cpp/src/grpc/gen-milvus/milvus.grpc.pb.cc @@ -58,19 +58,11 @@ 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) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateTable_, context, request, response, std::move(f)); + return ::grpc::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) { - ::grpc::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::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::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateTable_, context, request, response, reactor); + return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateTable_, context, request, response, std::move(f)); } ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* MilvusService::Stub::AsyncCreateTableRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableSchema& request, ::grpc::CompletionQueue* cq) { @@ -86,19 +78,11 @@ 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) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_HasTable_, context, request, response, std::move(f)); + return ::grpc::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) { - ::grpc::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::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::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_HasTable_, context, request, response, reactor); + return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_HasTable_, context, request, response, std::move(f)); } ::grpc::ClientAsyncResponseReader< ::milvus::grpc::BoolReply>* MilvusService::Stub::AsyncHasTableRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { @@ -114,19 +98,11 @@ 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) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DropTable_, context, request, response, std::move(f)); + return ::grpc::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) { - ::grpc::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::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::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DropTable_, context, request, response, reactor); + return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DropTable_, context, request, response, std::move(f)); } ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* MilvusService::Stub::AsyncDropTableRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { @@ -142,19 +118,11 @@ 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) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_BuildIndex_, context, request, response, std::move(f)); + return ::grpc::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) { - ::grpc::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::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::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_BuildIndex_, context, request, response, reactor); + return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_BuildIndex_, context, request, response, std::move(f)); } ::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* MilvusService::Stub::AsyncBuildIndexRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { @@ -170,19 +138,11 @@ 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) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_InsertVector_, context, request, response, std::move(f)); + return ::grpc::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) { - ::grpc::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::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::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_InsertVector_, context, request, response, reactor); + return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_InsertVector_, context, request, response, std::move(f)); } ::grpc::ClientAsyncResponseReader< ::milvus::grpc::VectorIds>* MilvusService::Stub::AsyncInsertVectorRaw(::grpc::ClientContext* context, const ::milvus::grpc::InsertInfos& request, ::grpc::CompletionQueue* cq) { @@ -230,19 +190,11 @@ 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) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DescribeTable_, context, request, response, std::move(f)); + return ::grpc::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) { - ::grpc::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::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::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DescribeTable_, context, request, response, reactor); + return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DescribeTable_, context, request, response, std::move(f)); } ::grpc::ClientAsyncResponseReader< ::milvus::grpc::TableSchema>* MilvusService::Stub::AsyncDescribeTableRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { @@ -258,19 +210,11 @@ 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) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTableRowCount_, context, request, response, std::move(f)); + return ::grpc::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) { - ::grpc::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::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::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetTableRowCount_, context, request, response, reactor); + return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTableRowCount_, context, request, response, std::move(f)); } ::grpc::ClientAsyncResponseReader< ::milvus::grpc::TableRowCount>* MilvusService::Stub::AsyncGetTableRowCountRaw(::grpc::ClientContext* context, const ::milvus::grpc::TableName& request, ::grpc::CompletionQueue* cq) { @@ -302,19 +246,11 @@ 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) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Ping_, context, request, response, std::move(f)); + return ::grpc::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) { - ::grpc::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::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::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_Ping_, context, request, response, reactor); + return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_Ping_, context, request, response, std::move(f)); } ::grpc::ClientAsyncResponseReader< ::milvus::grpc::ServerStatus>* MilvusService::Stub::AsyncPingRaw(::grpc::ClientContext* context, const ::milvus::grpc::Command& request, ::grpc::CompletionQueue* cq) { diff --git a/cpp/src/grpc/gen-milvus/milvus.grpc.pb.h b/cpp/src/grpc/gen-milvus/milvus.grpc.pb.h index 716248d05ed71bf85039c7204a7b9091fdc18fa0..24e79df382cc1f206e4fe3247d398d5d397b5fb8 100644 --- a/cpp/src/grpc/gen-milvus/milvus.grpc.pb.h +++ b/cpp/src/grpc/gen-milvus/milvus.grpc.pb.h @@ -11,28 +11,20 @@ #include #include #include -#include #include #include #include #include -#include #include #include #include #include -namespace grpc_impl { +namespace grpc { class CompletionQueue; +class Channel; class ServerCompletionQueue; class ServerContext; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental } // namespace grpc namespace milvus { @@ -229,8 +221,6 @@ 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 // @@ -240,8 +230,6 @@ 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 // @@ -251,8 +239,6 @@ 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 // @@ -262,8 +248,6 @@ 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 // @@ -275,8 +259,6 @@ 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 // @@ -311,8 +293,6 @@ 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 // @@ -323,8 +303,6 @@ 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 // @@ -341,8 +319,6 @@ 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: @@ -463,39 +439,23 @@ 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) { } @@ -886,12 +846,6 @@ 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::internal::CallbackUnaryHandler< ::milvus::grpc::TableSchema, ::milvus::grpc::Status>*>( - ::grpc::Service::experimental().GetHandler(0)) - ->SetMessageAllocator(allocator); - } ~ExperimentalWithCallbackMethod_CreateTable() override { BaseClassMustBeDerivedFromService(this); } @@ -917,12 +871,6 @@ 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::internal::CallbackUnaryHandler< ::milvus::grpc::TableName, ::milvus::grpc::BoolReply>*>( - ::grpc::Service::experimental().GetHandler(1)) - ->SetMessageAllocator(allocator); - } ~ExperimentalWithCallbackMethod_HasTable() override { BaseClassMustBeDerivedFromService(this); } @@ -948,12 +896,6 @@ 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::internal::CallbackUnaryHandler< ::milvus::grpc::TableName, ::milvus::grpc::Status>*>( - ::grpc::Service::experimental().GetHandler(2)) - ->SetMessageAllocator(allocator); - } ~ExperimentalWithCallbackMethod_DropTable() override { BaseClassMustBeDerivedFromService(this); } @@ -979,12 +921,6 @@ 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::internal::CallbackUnaryHandler< ::milvus::grpc::TableName, ::milvus::grpc::Status>*>( - ::grpc::Service::experimental().GetHandler(3)) - ->SetMessageAllocator(allocator); - } ~ExperimentalWithCallbackMethod_BuildIndex() override { BaseClassMustBeDerivedFromService(this); } @@ -1010,12 +946,6 @@ 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::internal::CallbackUnaryHandler< ::milvus::grpc::InsertInfos, ::milvus::grpc::VectorIds>*>( - ::grpc::Service::experimental().GetHandler(4)) - ->SetMessageAllocator(allocator); - } ~ExperimentalWithCallbackMethod_InsertVector() override { BaseClassMustBeDerivedFromService(this); } @@ -1085,12 +1015,6 @@ 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::internal::CallbackUnaryHandler< ::milvus::grpc::TableName, ::milvus::grpc::TableSchema>*>( - ::grpc::Service::experimental().GetHandler(7)) - ->SetMessageAllocator(allocator); - } ~ExperimentalWithCallbackMethod_DescribeTable() override { BaseClassMustBeDerivedFromService(this); } @@ -1116,12 +1040,6 @@ 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::internal::CallbackUnaryHandler< ::milvus::grpc::TableName, ::milvus::grpc::TableRowCount>*>( - ::grpc::Service::experimental().GetHandler(8)) - ->SetMessageAllocator(allocator); - } ~ExperimentalWithCallbackMethod_GetTableRowCount() override { BaseClassMustBeDerivedFromService(this); } @@ -1169,12 +1087,6 @@ 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::internal::CallbackUnaryHandler< ::milvus::grpc::Command, ::milvus::grpc::ServerStatus>*>( - ::grpc::Service::experimental().GetHandler(10)) - ->SetMessageAllocator(allocator); - } ~ExperimentalWithCallbackMethod_Ping() override { BaseClassMustBeDerivedFromService(this); } diff --git a/cpp/src/grpc/gen-milvus/milvus.pb.cc b/cpp/src/grpc/gen-milvus/milvus.pb.cc index 8b675484ddd5eadf4f33f056726824f6f1239457..a4b770e0e60357482f651c1f6c7e1c67c0d60de9 100644 --- a/cpp/src/grpc/gen-milvus/milvus.pb.cc +++ b/cpp/src/grpc/gen-milvus/milvus.pb.cc @@ -8,311 +8,330 @@ #include #include #include -#include +#include #include #include #include #include // @@protoc_insertion_point(includes) #include -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; + +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; namespace milvus { namespace grpc { class TableNameDefaultTypeInternal { public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; + ::google::protobuf::internal::ExplicitlyConstructed _instance; } _TableName_default_instance_; class TableSchemaDefaultTypeInternal { public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; + ::google::protobuf::internal::ExplicitlyConstructed _instance; } _TableSchema_default_instance_; class RangeDefaultTypeInternal { public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; + ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Range_default_instance_; class RowRecordDefaultTypeInternal { public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; + ::google::protobuf::internal::ExplicitlyConstructed _instance; } _RowRecord_default_instance_; class InsertInfosDefaultTypeInternal { public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; + ::google::protobuf::internal::ExplicitlyConstructed _instance; } _InsertInfos_default_instance_; class VectorIdsDefaultTypeInternal { public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; + ::google::protobuf::internal::ExplicitlyConstructed _instance; } _VectorIds_default_instance_; class SearchVectorInfosDefaultTypeInternal { public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; + ::google::protobuf::internal::ExplicitlyConstructed _instance; } _SearchVectorInfos_default_instance_; class SearchVectorInFilesInfosDefaultTypeInternal { public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; + ::google::protobuf::internal::ExplicitlyConstructed _instance; } _SearchVectorInFilesInfos_default_instance_; class QueryResultDefaultTypeInternal { public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; + ::google::protobuf::internal::ExplicitlyConstructed _instance; } _QueryResult_default_instance_; class TopKQueryResultDefaultTypeInternal { public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; + ::google::protobuf::internal::ExplicitlyConstructed _instance; } _TopKQueryResult_default_instance_; class StringReplyDefaultTypeInternal { public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; + ::google::protobuf::internal::ExplicitlyConstructed _instance; } _StringReply_default_instance_; class BoolReplyDefaultTypeInternal { public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; + ::google::protobuf::internal::ExplicitlyConstructed _instance; } _BoolReply_default_instance_; class TableRowCountDefaultTypeInternal { public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; + ::google::protobuf::internal::ExplicitlyConstructed _instance; } _TableRowCount_default_instance_; class CommandDefaultTypeInternal { public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; + ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Command_default_instance_; class ServerStatusDefaultTypeInternal { public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; + ::google::protobuf::internal::ExplicitlyConstructed _instance; } _ServerStatus_default_instance_; } // namespace grpc } // namespace milvus -static void InitDefaultsscc_info_BoolReply_milvus_2eproto() { +static void InitDefaultsTableName_milvus_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::milvus::grpc::_BoolReply_default_instance_; - new (ptr) ::milvus::grpc::BoolReply(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + void* ptr = &::milvus::grpc::_TableName_default_instance_; + new (ptr) ::milvus::grpc::TableName(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::milvus::grpc::BoolReply::InitAsDefaultInstance(); + ::milvus::grpc::TableName::InitAsDefaultInstance(); } -::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}, { +::google::protobuf::internal::SCCInfo<1> scc_info_TableName_milvus_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTableName_milvus_2eproto}, { &scc_info_Status_status_2eproto.base,}}; -static void InitDefaultsscc_info_Command_milvus_2eproto() { +static void InitDefaultsTableSchema_milvus_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::milvus::grpc::_Command_default_instance_; - new (ptr) ::milvus::grpc::Command(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + void* ptr = &::milvus::grpc::_TableSchema_default_instance_; + new (ptr) ::milvus::grpc::TableSchema(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::milvus::grpc::Command::InitAsDefaultInstance(); + ::milvus::grpc::TableSchema::InitAsDefaultInstance(); } -::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}, {}}; +::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 InitDefaultsscc_info_InsertInfos_milvus_2eproto() { +static void InitDefaultsRange_milvus_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::milvus::grpc::_InsertInfos_default_instance_; - new (ptr) ::milvus::grpc::InsertInfos(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + void* ptr = &::milvus::grpc::_Range_default_instance_; + new (ptr) ::milvus::grpc::Range(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::milvus::grpc::InsertInfos::InitAsDefaultInstance(); + ::milvus::grpc::Range::InitAsDefaultInstance(); } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_InsertInfos_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_InsertInfos_milvus_2eproto}, { - &scc_info_RowRecord_milvus_2eproto.base,}}; +::google::protobuf::internal::SCCInfo<0> scc_info_Range_milvus_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRange_milvus_2eproto}, {}}; -static void InitDefaultsscc_info_QueryResult_milvus_2eproto() { +static void InitDefaultsRowRecord_milvus_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::milvus::grpc::_QueryResult_default_instance_; - new (ptr) ::milvus::grpc::QueryResult(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + void* ptr = &::milvus::grpc::_RowRecord_default_instance_; + new (ptr) ::milvus::grpc::RowRecord(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::milvus::grpc::QueryResult::InitAsDefaultInstance(); + ::milvus::grpc::RowRecord::InitAsDefaultInstance(); } -::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}, {}}; +::google::protobuf::internal::SCCInfo<0> scc_info_RowRecord_milvus_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRowRecord_milvus_2eproto}, {}}; -static void InitDefaultsscc_info_Range_milvus_2eproto() { +static void InitDefaultsInsertInfos_milvus_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::milvus::grpc::_Range_default_instance_; - new (ptr) ::milvus::grpc::Range(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + void* ptr = &::milvus::grpc::_InsertInfos_default_instance_; + new (ptr) ::milvus::grpc::InsertInfos(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::milvus::grpc::Range::InitAsDefaultInstance(); + ::milvus::grpc::InsertInfos::InitAsDefaultInstance(); } -::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}, {}}; +::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,}}; -static void InitDefaultsscc_info_RowRecord_milvus_2eproto() { +static void InitDefaultsVectorIds_milvus_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::milvus::grpc::_RowRecord_default_instance_; - new (ptr) ::milvus::grpc::RowRecord(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + void* ptr = &::milvus::grpc::_VectorIds_default_instance_; + new (ptr) ::milvus::grpc::VectorIds(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::milvus::grpc::RowRecord::InitAsDefaultInstance(); + ::milvus::grpc::VectorIds::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,}}; + +static void InitDefaultsSearchVectorInfos_milvus_2eproto() { + GOOGLE_PROTOBUF_VERIFY_VERSION; + + { + void* ptr = &::milvus::grpc::_SearchVectorInfos_default_instance_; + new (ptr) ::milvus::grpc::SearchVectorInfos(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); + } + ::milvus::grpc::SearchVectorInfos::InitAsDefaultInstance(); } -::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}, {}}; +::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,}}; -static void InitDefaultsscc_info_SearchVectorInFilesInfos_milvus_2eproto() { +static void InitDefaultsSearchVectorInFilesInfos_milvus_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::milvus::grpc::_SearchVectorInFilesInfos_default_instance_; new (ptr) ::milvus::grpc::SearchVectorInFilesInfos(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::milvus::grpc::SearchVectorInFilesInfos::InitAsDefaultInstance(); } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_SearchVectorInFilesInfos_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_SearchVectorInFilesInfos_milvus_2eproto}, { +::google::protobuf::internal::SCCInfo<1> scc_info_SearchVectorInFilesInfos_milvus_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSearchVectorInFilesInfos_milvus_2eproto}, { &scc_info_SearchVectorInfos_milvus_2eproto.base,}}; -static void InitDefaultsscc_info_SearchVectorInfos_milvus_2eproto() { +static void InitDefaultsQueryResult_milvus_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::milvus::grpc::_SearchVectorInfos_default_instance_; - new (ptr) ::milvus::grpc::SearchVectorInfos(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + void* ptr = &::milvus::grpc::_QueryResult_default_instance_; + new (ptr) ::milvus::grpc::QueryResult(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::milvus::grpc::SearchVectorInfos::InitAsDefaultInstance(); + ::milvus::grpc::QueryResult::InitAsDefaultInstance(); } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_SearchVectorInfos_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_SearchVectorInfos_milvus_2eproto}, { - &scc_info_RowRecord_milvus_2eproto.base, - &scc_info_Range_milvus_2eproto.base,}}; +::google::protobuf::internal::SCCInfo<0> scc_info_QueryResult_milvus_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsQueryResult_milvus_2eproto}, {}}; -static void InitDefaultsscc_info_ServerStatus_milvus_2eproto() { +static void InitDefaultsTopKQueryResult_milvus_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::milvus::grpc::_ServerStatus_default_instance_; - new (ptr) ::milvus::grpc::ServerStatus(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + void* ptr = &::milvus::grpc::_TopKQueryResult_default_instance_; + new (ptr) ::milvus::grpc::TopKQueryResult(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::milvus::grpc::ServerStatus::InitAsDefaultInstance(); + ::milvus::grpc::TopKQueryResult::InitAsDefaultInstance(); } -::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ServerStatus_milvus_2eproto = - {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_ServerStatus_milvus_2eproto}, { - &scc_info_Status_status_2eproto.base,}}; +::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,}}; -static void InitDefaultsscc_info_StringReply_milvus_2eproto() { +static void InitDefaultsStringReply_milvus_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::milvus::grpc::_StringReply_default_instance_; new (ptr) ::milvus::grpc::StringReply(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::milvus::grpc::StringReply::InitAsDefaultInstance(); } -::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}, { +::google::protobuf::internal::SCCInfo<1> scc_info_StringReply_milvus_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsStringReply_milvus_2eproto}, { &scc_info_Status_status_2eproto.base,}}; -static void InitDefaultsscc_info_TableName_milvus_2eproto() { +static void InitDefaultsBoolReply_milvus_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::milvus::grpc::_TableName_default_instance_; - new (ptr) ::milvus::grpc::TableName(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + void* ptr = &::milvus::grpc::_BoolReply_default_instance_; + new (ptr) ::milvus::grpc::BoolReply(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::milvus::grpc::TableName::InitAsDefaultInstance(); + ::milvus::grpc::BoolReply::InitAsDefaultInstance(); } -::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}, { +::google::protobuf::internal::SCCInfo<1> scc_info_BoolReply_milvus_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsBoolReply_milvus_2eproto}, { &scc_info_Status_status_2eproto.base,}}; -static void InitDefaultsscc_info_TableRowCount_milvus_2eproto() { +static void InitDefaultsTableRowCount_milvus_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::milvus::grpc::_TableRowCount_default_instance_; new (ptr) ::milvus::grpc::TableRowCount(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::milvus::grpc::TableRowCount::InitAsDefaultInstance(); } -::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}, { +::google::protobuf::internal::SCCInfo<1> scc_info_TableRowCount_milvus_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTableRowCount_milvus_2eproto}, { &scc_info_Status_status_2eproto.base,}}; -static void InitDefaultsscc_info_TableSchema_milvus_2eproto() { +static void InitDefaultsCommand_milvus_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::milvus::grpc::_TableSchema_default_instance_; - new (ptr) ::milvus::grpc::TableSchema(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); - } - ::milvus::grpc::TableSchema::InitAsDefaultInstance(); -} - -::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 InitDefaultsscc_info_TopKQueryResult_milvus_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::milvus::grpc::_TopKQueryResult_default_instance_; - new (ptr) ::milvus::grpc::TopKQueryResult(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + void* ptr = &::milvus::grpc::_Command_default_instance_; + new (ptr) ::milvus::grpc::Command(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::milvus::grpc::TopKQueryResult::InitAsDefaultInstance(); + ::milvus::grpc::Command::InitAsDefaultInstance(); } -::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,}}; +::google::protobuf::internal::SCCInfo<0> scc_info_Command_milvus_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCommand_milvus_2eproto}, {}}; -static void InitDefaultsscc_info_VectorIds_milvus_2eproto() { +static void InitDefaultsServerStatus_milvus_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { - void* ptr = &::milvus::grpc::_VectorIds_default_instance_; - new (ptr) ::milvus::grpc::VectorIds(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + void* ptr = &::milvus::grpc::_ServerStatus_default_instance_; + new (ptr) ::milvus::grpc::ServerStatus(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } - ::milvus::grpc::VectorIds::InitAsDefaultInstance(); + ::milvus::grpc::ServerStatus::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}, { +::google::protobuf::internal::SCCInfo<1> scc_info_ServerStatus_milvus_2eproto = + {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsServerStatus_milvus_2eproto}, { &scc_info_Status_status_2eproto.base,}}; -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) = { +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) = { ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::milvus::grpc::TableName, _internal_metadata_), ~0u, // no _extensions_ @@ -421,7 +440,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_milvus_2eproto::offsets[] PROT PROTOBUF_FIELD_OFFSET(::milvus::grpc::ServerStatus, status_), PROTOBUF_FIELD_OFFSET(::milvus::grpc::ServerStatus, info_), }; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +static const ::google::protobuf::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)}, @@ -439,22 +458,28 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOB { 100, -1, sizeof(::milvus::grpc::ServerStatus)}, }; -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_), +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, }; const char descriptor_table_protodef_milvus_2eproto[] = @@ -509,37 +534,22 @@ 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" ; -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, +::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, }; +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 = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_milvus_2eproto), true); +static bool dynamic_init_dummy_milvus_2eproto = []() { AddDescriptors_milvus_2eproto(); return true; }(); namespace milvus { namespace grpc { @@ -570,17 +580,17 @@ const int TableName::kTableNameFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 TableName::TableName() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.TableName) } TableName::TableName(const TableName& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - table_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + table_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.table_name().size() > 0) { - table_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.table_name_); + table_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_name_); } if (from.has_status()) { status_ = new ::milvus::grpc::Status(*from.status_); @@ -591,8 +601,9 @@ TableName::TableName(const TableName& from) } void TableName::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TableName_milvus_2eproto.base); - table_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::google::protobuf::internal::InitSCC( + &scc_info_TableName_milvus_2eproto.base); + table_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); status_ = nullptr; } @@ -602,7 +613,7 @@ TableName::~TableName() { } void TableName::SharedDtor() { - table_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + table_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete status_; } @@ -610,18 +621,18 @@ void TableName::SetCachedSize(int size) const { _cached_size_.Set(size); } const TableName& TableName::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TableName_milvus_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_TableName_milvus_2eproto.base); return *internal_default_instance(); } void TableName::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.TableName) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - table_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + table_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { delete status_; } @@ -630,61 +641,85 @@ void TableName::Clear() { } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -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); +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); switch (tag >> 3) { // .milvus.grpc.Status status = 1; - 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; + 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; + } // string table_name = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_table_name(), ptr, ctx, "milvus.grpc.TableName.table_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; + 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; + } default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; + ctx->EndGroup(tag); + return ptr; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + 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; } } // switch } // while -success: return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ +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); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool TableName::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { + ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.TableName) for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .milvus.grpc.Status status = 1; case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_status())); } else { goto handle_unusual; @@ -694,12 +729,12 @@ bool TableName::MergePartialFromCodedStream( // string table_name = 2; case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_table_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->table_name().data(), static_cast(this->table_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + ::google::protobuf::internal::WireFormatLite::PARSE, "milvus.grpc.TableName.table_name")); } else { goto handle_unusual; @@ -712,7 +747,7 @@ bool TableName::MergePartialFromCodedStream( if (tag == 0) { goto success; } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } @@ -729,60 +764,60 @@ failure: #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void TableName::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.TableName) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .milvus.grpc.Status status = 1; if (this->has_status()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, HasBitSetters::status(this), output); } // string table_name = 2; if (this->table_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->table_name().data(), static_cast(this->table_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "milvus.grpc.TableName.table_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->table_name(), output); } if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:milvus.grpc.TableName) } -::PROTOBUF_NAMESPACE_ID::uint8* TableName::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::google::protobuf::uint8* TableName::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.TableName) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .milvus.grpc.Status status = 1; if (this->has_status()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, HasBitSetters::status(this), target); } // string table_name = 2; if (this->table_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->table_name().data(), static_cast(this->table_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "milvus.grpc.TableName.table_name"); target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->table_name(), target); } if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.TableName) @@ -795,41 +830,41 @@ size_t TableName::ByteSizeLong() const { if (_internal_metadata_.have_unknown_fields()) { total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // string table_name = 2; if (this->table_name().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + ::google::protobuf::internal::WireFormatLite::StringSize( this->table_name()); } // .milvus.grpc.Status status = 1; if (this->has_status()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + ::google::protobuf::internal::WireFormatLite::MessageSize( *status_); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void TableName::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void TableName::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.TableName) GOOGLE_DCHECK_NE(&from, this); const TableName* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.TableName) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.TableName) MergeFrom(*source); @@ -840,19 +875,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_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.table_name().size() > 0) { - table_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.table_name_); + table_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_name_); } if (from.has_status()) { mutable_status()->::milvus::grpc::Status::MergeFrom(from.status()); } } -void TableName::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void TableName::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.TableName) if (&from == this) return; Clear(); @@ -877,13 +912,14 @@ void TableName::Swap(TableName* other) { void TableName::InternalSwap(TableName* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - table_name_.Swap(&other->table_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + table_name_.Swap(&other->table_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); swap(status_, other->status_); } -::PROTOBUF_NAMESPACE_ID::Metadata TableName::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata TableName::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_milvus_2eproto); + return ::file_level_metadata_milvus_2eproto[kIndexInFileMessages]; } @@ -910,12 +946,12 @@ const int TableSchema::kStoreRawVectorFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 TableSchema::TableSchema() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.TableSchema) } TableSchema::TableSchema(const TableSchema& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); if (from.has_table_name()) { @@ -930,7 +966,8 @@ TableSchema::TableSchema(const TableSchema& from) } void TableSchema::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TableSchema_milvus_2eproto.base); + ::google::protobuf::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_)); @@ -949,14 +986,14 @@ void TableSchema::SetCachedSize(int size) const { _cached_size_.Set(size); } const TableSchema& TableSchema::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TableSchema_milvus_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_TableSchema_milvus_2eproto.base); return *internal_default_instance(); } void TableSchema::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.TableSchema) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -971,75 +1008,86 @@ void TableSchema::Clear() { } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -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); +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); switch (tag >> 3) { // .milvus.grpc.TableName table_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ctx->ParseMessage(mutable_table_name(), ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + 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; + } // int32 index_type = 2; - 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; + 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; + } // int64 dimension = 3; - 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; + 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; + } // bool store_raw_vector = 4; - 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; + 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; + } default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; + ctx->EndGroup(tag); + return ptr; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + 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; } } // switch } // while -success: return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool TableSchema::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { + ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.TableSchema) for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .milvus.grpc.TableName table_name = 1; case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_table_name())); } else { goto handle_unusual; @@ -1049,10 +1097,10 @@ bool TableSchema::MergePartialFromCodedStream( // int32 index_type = 2; case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>( + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &index_type_))); } else { goto handle_unusual; @@ -1062,10 +1110,10 @@ bool TableSchema::MergePartialFromCodedStream( // int64 dimension = 3; case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) { + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( input, &dimension_))); } else { goto handle_unusual; @@ -1075,10 +1123,10 @@ bool TableSchema::MergePartialFromCodedStream( // bool store_raw_vector = 4; case 4: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>( + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( input, &store_raw_vector_))); } else { goto handle_unusual; @@ -1091,7 +1139,7 @@ bool TableSchema::MergePartialFromCodedStream( if (tag == 0) { goto success; } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } @@ -1108,69 +1156,69 @@ failure: #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void TableSchema::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.TableSchema) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .milvus.grpc.TableName table_name = 1; if (this->has_table_name()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, HasBitSetters::table_name(this), output); } // int32 index_type = 2; if (this->index_type() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(2, this->index_type(), output); + ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->index_type(), output); } // int64 dimension = 3; if (this->dimension() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(3, this->dimension(), output); + ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->dimension(), output); } // bool store_raw_vector = 4; if (this->store_raw_vector() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(4, this->store_raw_vector(), output); + ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->store_raw_vector(), output); } if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:milvus.grpc.TableSchema) } -::PROTOBUF_NAMESPACE_ID::uint8* TableSchema::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::google::protobuf::uint8* TableSchema::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.TableSchema) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .milvus.grpc.TableName table_name = 1; if (this->has_table_name()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, HasBitSetters::table_name(this), target); } // int32 index_type = 2; if (this->index_type() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->index_type(), target); + target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->index_type(), target); } // int64 dimension = 3; if (this->dimension() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->dimension(), target); + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->dimension(), target); } // bool store_raw_vector = 4; if (this->store_raw_vector() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(4, this->store_raw_vector(), target); + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->store_raw_vector(), target); } if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.TableSchema) @@ -1183,31 +1231,31 @@ size_t TableSchema::ByteSizeLong() const { if (_internal_metadata_.have_unknown_fields()) { total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; // .milvus.grpc.TableName table_name = 1; if (this->has_table_name()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + ::google::protobuf::internal::WireFormatLite::MessageSize( *table_name_); } // int64 dimension = 3; if (this->dimension() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + ::google::protobuf::internal::WireFormatLite::Int64Size( this->dimension()); } // int32 index_type = 2; if (this->index_type() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + ::google::protobuf::internal::WireFormatLite::Int32Size( this->index_type()); } @@ -1216,20 +1264,20 @@ size_t TableSchema::ByteSizeLong() const { total_size += 1 + 1; } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void TableSchema::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void TableSchema::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.TableSchema) GOOGLE_DCHECK_NE(&from, this); const TableSchema* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.TableSchema) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.TableSchema) MergeFrom(*source); @@ -1240,7 +1288,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_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.has_table_name()) { @@ -1257,7 +1305,7 @@ void TableSchema::MergeFrom(const TableSchema& from) { } } -void TableSchema::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void TableSchema::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.TableSchema) if (&from == this) return; Clear(); @@ -1288,8 +1336,9 @@ void TableSchema::InternalSwap(TableSchema* other) { swap(store_raw_vector_, other->store_raw_vector_); } -::PROTOBUF_NAMESPACE_ID::Metadata TableSchema::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata TableSchema::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_milvus_2eproto); + return ::file_level_metadata_milvus_2eproto[kIndexInFileMessages]; } @@ -1307,29 +1356,30 @@ const int Range::kEndValueFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Range::Range() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.Range) } Range::Range(const Range& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - start_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + start_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.start_value().size() > 0) { - start_value_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.start_value_); + start_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.start_value_); } - end_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + end_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.end_value().size() > 0) { - end_value_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.end_value_); + end_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.end_value_); } // @@protoc_insertion_point(copy_constructor:milvus.grpc.Range) } void Range::SharedCtor() { - ::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()); + ::google::protobuf::internal::InitSCC( + &scc_info_Range_milvus_2eproto.base); + start_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + end_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } Range::~Range() { @@ -1338,90 +1388,117 @@ Range::~Range() { } void Range::SharedDtor() { - start_value_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - end_value_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + start_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + end_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void Range::SetCachedSize(int size) const { _cached_size_.Set(size); } const Range& Range::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Range_milvus_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_Range_milvus_2eproto.base); return *internal_default_instance(); } void Range::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.Range) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - start_value_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - end_value_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + start_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + end_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -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); +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); switch (tag >> 3) { // string start_value = 1; - 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; + 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; + } // string end_value = 2; - 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; + 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; + } default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; + ctx->EndGroup(tag); + return ptr; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + 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; } } // switch } // while -success: return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ +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); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool Range::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { + ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.Range) for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string start_value = 1; case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_start_value())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->start_value().data(), static_cast(this->start_value().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + ::google::protobuf::internal::WireFormatLite::PARSE, "milvus.grpc.Range.start_value")); } else { goto handle_unusual; @@ -1431,12 +1508,12 @@ bool Range::MergePartialFromCodedStream( // string end_value = 2; case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_end_value())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->end_value().data(), static_cast(this->end_value().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + ::google::protobuf::internal::WireFormatLite::PARSE, "milvus.grpc.Range.end_value")); } else { goto handle_unusual; @@ -1449,7 +1526,7 @@ bool Range::MergePartialFromCodedStream( if (tag == 0) { goto success; } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } @@ -1466,68 +1543,68 @@ failure: #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void Range::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.Range) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // string start_value = 1; if (this->start_value().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->start_value().data(), static_cast(this->start_value().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "milvus.grpc.Range.start_value"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->start_value(), output); } // string end_value = 2; if (this->end_value().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->end_value().data(), static_cast(this->end_value().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "milvus.grpc.Range.end_value"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->end_value(), output); } if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:milvus.grpc.Range) } -::PROTOBUF_NAMESPACE_ID::uint8* Range::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::google::protobuf::uint8* Range::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.Range) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // string start_value = 1; if (this->start_value().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->start_value().data(), static_cast(this->start_value().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "milvus.grpc.Range.start_value"); target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->start_value(), target); } // string end_value = 2; if (this->end_value().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->end_value().data(), static_cast(this->end_value().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "milvus.grpc.Range.end_value"); target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->end_value(), target); } if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.Range) @@ -1540,41 +1617,41 @@ size_t Range::ByteSizeLong() const { if (_internal_metadata_.have_unknown_fields()) { total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::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 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + ::google::protobuf::internal::WireFormatLite::StringSize( this->start_value()); } // string end_value = 2; if (this->end_value().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + ::google::protobuf::internal::WireFormatLite::StringSize( this->end_value()); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void Range::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void Range::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.Range) GOOGLE_DCHECK_NE(&from, this); const Range* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.Range) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.Range) MergeFrom(*source); @@ -1585,20 +1662,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_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.start_value().size() > 0) { - start_value_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.start_value_); + start_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.start_value_); } if (from.end_value().size() > 0) { - end_value_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.end_value_); + end_value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.end_value_); } } -void Range::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void Range::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.Range) if (&from == this) return; Clear(); @@ -1623,14 +1700,15 @@ void Range::Swap(Range* other) { void Range::InternalSwap(Range* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - start_value_.Swap(&other->start_value_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + start_value_.Swap(&other->start_value_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - end_value_.Swap(&other->end_value_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + end_value_.Swap(&other->end_value_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } -::PROTOBUF_NAMESPACE_ID::Metadata Range::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata Range::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_milvus_2eproto); + return ::file_level_metadata_milvus_2eproto[kIndexInFileMessages]; } @@ -1647,12 +1725,12 @@ const int RowRecord::kVectorDataFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 RowRecord::RowRecord() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.RowRecord) } RowRecord::RowRecord(const RowRecord& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), + : ::google::protobuf::Message(), _internal_metadata_(nullptr), vector_data_(from.vector_data_) { _internal_metadata_.MergeFrom(from._internal_metadata_); @@ -1674,14 +1752,14 @@ void RowRecord::SetCachedSize(int size) const { _cached_size_.Set(size); } const RowRecord& RowRecord::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_RowRecord_milvus_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_RowRecord_milvus_2eproto.base); return *internal_default_instance(); } void RowRecord::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.RowRecord) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -1690,62 +1768,77 @@ void RowRecord::Clear() { } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -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); +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); switch (tag >> 3) { // repeated float vector_data = 1; - 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)); + 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)); ptr += sizeof(float); - } else goto handle_unusual; - continue; + if (ptr >= end) break; + } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 13 && (ptr += 1)); + break; + } default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; + ctx->EndGroup(tag); + return ptr; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + 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; } } // switch } // while -success: return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool RowRecord::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { + ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.RowRecord) for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated float vector_data = 1; case 1: { - 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>( + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( input, this->mutable_vector_data()))); - } 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>( + } else if (static_cast< ::google::protobuf::uint8>(tag) == (13 & 0xFF)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< + float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( 1, 10u, input, this->mutable_vector_data()))); } else { goto handle_unusual; @@ -1758,7 +1851,7 @@ bool RowRecord::MergePartialFromCodedStream( if (tag == 0) { goto success; } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } @@ -1775,48 +1868,48 @@ failure: #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void RowRecord::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.RowRecord) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // repeated float vector_data = 1; if (this->vector_data_size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(1, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); + ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); output->WriteVarint32(_vector_data_cached_byte_size_.load( std::memory_order_relaxed)); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatArray( + ::google::protobuf::internal::WireFormatLite::WriteFloatArray( this->vector_data().data(), this->vector_data_size(), output); } if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:milvus.grpc.RowRecord) } -::PROTOBUF_NAMESPACE_ID::uint8* RowRecord::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::google::protobuf::uint8* RowRecord::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.RowRecord) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // repeated float vector_data = 1; if (this->vector_data_size() > 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( + target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( 1, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); - target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( + target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( _vector_data_cached_byte_size_.load(std::memory_order_relaxed), target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + target = ::google::protobuf::internal::WireFormatLite:: WriteFloatNoTagToArray(this->vector_data_, target); } if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.RowRecord) @@ -1829,10 +1922,10 @@ size_t RowRecord::ByteSizeLong() const { if (_internal_metadata_.have_unknown_fields()) { total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -1842,29 +1935,29 @@ size_t RowRecord::ByteSizeLong() const { size_t data_size = 4UL * count; if (data_size > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast<::google::protobuf::int32>(data_size)); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); _vector_data_cached_byte_size_.store(cached_size, std::memory_order_relaxed); total_size += data_size; } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void RowRecord::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void RowRecord::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.RowRecord) GOOGLE_DCHECK_NE(&from, this); const RowRecord* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.RowRecord) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.RowRecord) MergeFrom(*source); @@ -1875,13 +1968,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_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; vector_data_.MergeFrom(from.vector_data_); } -void RowRecord::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void RowRecord::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.RowRecord) if (&from == this) return; Clear(); @@ -1909,8 +2002,9 @@ void RowRecord::InternalSwap(RowRecord* other) { vector_data_.InternalSwap(&other->vector_data_); } -::PROTOBUF_NAMESPACE_ID::Metadata RowRecord::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata RowRecord::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_milvus_2eproto); + return ::file_level_metadata_milvus_2eproto[kIndexInFileMessages]; } @@ -1928,25 +2022,26 @@ const int InsertInfos::kRowRecordArrayFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 InsertInfos::InsertInfos() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.InsertInfos) } InsertInfos::InsertInfos(const InsertInfos& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), + : ::google::protobuf::Message(), _internal_metadata_(nullptr), row_record_array_(from.row_record_array_) { _internal_metadata_.MergeFrom(from._internal_metadata_); - table_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + table_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.table_name().size() > 0) { - table_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.table_name_); + table_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_name_); } // @@protoc_insertion_point(copy_constructor:milvus.grpc.InsertInfos) } void InsertInfos::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_InsertInfos_milvus_2eproto.base); - table_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::google::protobuf::internal::InitSCC( + &scc_info_InsertInfos_milvus_2eproto.base); + table_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } InsertInfos::~InsertInfos() { @@ -1955,94 +2050,116 @@ InsertInfos::~InsertInfos() { } void InsertInfos::SharedDtor() { - table_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + table_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void InsertInfos::SetCachedSize(int size) const { _cached_size_.Set(size); } const InsertInfos& InsertInfos::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_InsertInfos_milvus_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_InsertInfos_milvus_2eproto.base); return *internal_default_instance(); } void InsertInfos::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.InsertInfos) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + table_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -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); +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); switch (tag >> 3) { // string table_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_table_name(), ptr, ctx, "milvus.grpc.InsertInfos.table_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; + 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; + } // repeated .milvus.grpc.RowRecord row_record_array = 2; - 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; + 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; + } default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; + ctx->EndGroup(tag); + return ptr; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + 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; } } // switch } // while -success: return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ +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); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool InsertInfos::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { + ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.InsertInfos) for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string table_name = 1; case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_table_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->table_name().data(), static_cast(this->table_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + ::google::protobuf::internal::WireFormatLite::PARSE, "milvus.grpc.InsertInfos.table_name")); } else { goto handle_unusual; @@ -2052,8 +2169,8 @@ bool InsertInfos::MergePartialFromCodedStream( // repeated .milvus.grpc.RowRecord row_record_array = 2; case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, add_row_record_array())); } else { goto handle_unusual; @@ -2066,7 +2183,7 @@ bool InsertInfos::MergePartialFromCodedStream( if (tag == 0) { goto success; } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } @@ -2083,64 +2200,64 @@ failure: #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void InsertInfos::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.InsertInfos) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // string table_name = 1; if (this->table_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->table_name().data(), static_cast(this->table_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "milvus.grpc.InsertInfos.table_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + ::google::protobuf::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++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, this->row_record_array(static_cast(i)), output); } if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:milvus.grpc.InsertInfos) } -::PROTOBUF_NAMESPACE_ID::uint8* InsertInfos::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::google::protobuf::uint8* InsertInfos::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.InsertInfos) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // string table_name = 1; if (this->table_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->table_name().data(), static_cast(this->table_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "milvus.grpc.InsertInfos.table_name"); target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + ::google::protobuf::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 = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 2, this->row_record_array(static_cast(i)), target); } if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.InsertInfos) @@ -2153,10 +2270,10 @@ size_t InsertInfos::ByteSizeLong() const { if (_internal_metadata_.have_unknown_fields()) { total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -2166,7 +2283,7 @@ size_t InsertInfos::ByteSizeLong() const { total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + ::google::protobuf::internal::WireFormatLite::MessageSize( this->row_record_array(static_cast(i))); } } @@ -2174,24 +2291,24 @@ size_t InsertInfos::ByteSizeLong() const { // string table_name = 1; if (this->table_name().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + ::google::protobuf::internal::WireFormatLite::StringSize( this->table_name()); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void InsertInfos::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void InsertInfos::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.InsertInfos) GOOGLE_DCHECK_NE(&from, this); const InsertInfos* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.InsertInfos) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.InsertInfos) MergeFrom(*source); @@ -2202,17 +2319,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_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.table_name_); + table_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_name_); } } -void InsertInfos::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void InsertInfos::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.InsertInfos) if (&from == this) return; Clear(); @@ -2238,12 +2355,13 @@ 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_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + table_name_.Swap(&other->table_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } -::PROTOBUF_NAMESPACE_ID::Metadata InsertInfos::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata InsertInfos::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_milvus_2eproto); + return ::file_level_metadata_milvus_2eproto[kIndexInFileMessages]; } @@ -2274,12 +2392,12 @@ const int VectorIds::kVectorIdArrayFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 VectorIds::VectorIds() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.VectorIds) } VectorIds::VectorIds(const VectorIds& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), + : ::google::protobuf::Message(), _internal_metadata_(nullptr), vector_id_array_(from.vector_id_array_) { _internal_metadata_.MergeFrom(from._internal_metadata_); @@ -2292,7 +2410,8 @@ VectorIds::VectorIds(const VectorIds& from) } void VectorIds::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_VectorIds_milvus_2eproto.base); + ::google::protobuf::internal::InitSCC( + &scc_info_VectorIds_milvus_2eproto.base); status_ = nullptr; } @@ -2309,14 +2428,14 @@ void VectorIds::SetCachedSize(int size) const { _cached_size_.Set(size); } const VectorIds& VectorIds::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_VectorIds_milvus_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_VectorIds_milvus_2eproto.base); return *internal_default_instance(); } void VectorIds::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.VectorIds) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -2329,64 +2448,85 @@ void VectorIds::Clear() { } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -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); +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); switch (tag >> 3) { // .milvus.grpc.Status status = 1; - 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; + 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; + } // repeated int64 vector_id_array = 2; - 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; + 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; + } default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; + ctx->EndGroup(tag); + return ptr; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + 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; } } // switch } // while -success: return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool VectorIds::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { + ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.VectorIds) for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .milvus.grpc.Status status = 1; case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_status())); } else { goto handle_unusual; @@ -2396,13 +2536,13 @@ bool VectorIds::MergePartialFromCodedStream( // repeated int64 vector_id_array = 2; case 2: { - 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>( + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( input, this->mutable_vector_id_array()))); - } 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>( + } 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>( 1, 18u, input, this->mutable_vector_id_array()))); } else { goto handle_unusual; @@ -2415,7 +2555,7 @@ bool VectorIds::MergePartialFromCodedStream( if (tag == 0) { goto success; } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } @@ -2432,63 +2572,63 @@ failure: #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void VectorIds::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.VectorIds) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .milvus.grpc.Status status = 1; if (this->has_status()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, HasBitSetters::status(this), output); } // repeated int64 vector_id_array = 2; if (this->vector_id_array_size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(2, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); + ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::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++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64NoTag( + ::google::protobuf::internal::WireFormatLite::WriteInt64NoTag( this->vector_id_array(i), output); } if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:milvus.grpc.VectorIds) } -::PROTOBUF_NAMESPACE_ID::uint8* VectorIds::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::google::protobuf::uint8* VectorIds::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.VectorIds) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .milvus.grpc.Status status = 1; if (this->has_status()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, HasBitSetters::status(this), target); } // repeated int64 vector_id_array = 2; if (this->vector_id_array_size() > 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( + target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( 2, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); - target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( + target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( _vector_id_array_cached_byte_size_.load(std::memory_order_relaxed), target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + target = ::google::protobuf::internal::WireFormatLite:: WriteInt64NoTagToArray(this->vector_id_array_, target); } if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.VectorIds) @@ -2501,23 +2641,23 @@ size_t VectorIds::ByteSizeLong() const { if (_internal_metadata_.have_unknown_fields()) { total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::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 = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + size_t data_size = ::google::protobuf::internal::WireFormatLite:: Int64Size(this->vector_id_array_); if (data_size > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); + ::google::protobuf::internal::WireFormatLite::Int32Size( + static_cast<::google::protobuf::int32>(data_size)); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); _vector_id_array_cached_byte_size_.store(cached_size, std::memory_order_relaxed); total_size += data_size; @@ -2526,24 +2666,24 @@ size_t VectorIds::ByteSizeLong() const { // .milvus.grpc.Status status = 1; if (this->has_status()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + ::google::protobuf::internal::WireFormatLite::MessageSize( *status_); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void VectorIds::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void VectorIds::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.VectorIds) GOOGLE_DCHECK_NE(&from, this); const VectorIds* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.VectorIds) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.VectorIds) MergeFrom(*source); @@ -2554,7 +2694,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_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; vector_id_array_.MergeFrom(from.vector_id_array_); @@ -2563,7 +2703,7 @@ void VectorIds::MergeFrom(const VectorIds& from) { } } -void VectorIds::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void VectorIds::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.VectorIds) if (&from == this) return; Clear(); @@ -2592,8 +2732,9 @@ void VectorIds::InternalSwap(VectorIds* other) { swap(status_, other->status_); } -::PROTOBUF_NAMESPACE_ID::Metadata VectorIds::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata VectorIds::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_milvus_2eproto); + return ::file_level_metadata_milvus_2eproto[kIndexInFileMessages]; } @@ -2613,27 +2754,28 @@ const int SearchVectorInfos::kTopkFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 SearchVectorInfos::SearchVectorInfos() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.SearchVectorInfos) } SearchVectorInfos::SearchVectorInfos(const SearchVectorInfos& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), + : ::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + table_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.table_name().size() > 0) { - table_name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.table_name_); + table_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_name_); } topk_ = from.topk_; // @@protoc_insertion_point(copy_constructor:milvus.grpc.SearchVectorInfos) } void SearchVectorInfos::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SearchVectorInfos_milvus_2eproto.base); - table_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::google::protobuf::internal::InitSCC( + &scc_info_SearchVectorInfos_milvus_2eproto.base); + table_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); topk_ = PROTOBUF_LONGLONG(0); } @@ -2643,115 +2785,141 @@ SearchVectorInfos::~SearchVectorInfos() { } void SearchVectorInfos::SharedDtor() { - table_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + table_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void SearchVectorInfos::SetCachedSize(int size) const { _cached_size_.Set(size); } const SearchVectorInfos& SearchVectorInfos::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SearchVectorInfos_milvus_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_SearchVectorInfos_milvus_2eproto.base); return *internal_default_instance(); } void SearchVectorInfos::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.SearchVectorInfos) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + table_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); topk_ = PROTOBUF_LONGLONG(0); _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -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); +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); switch (tag >> 3) { // string table_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_table_name(), ptr, ctx, "milvus.grpc.SearchVectorInfos.table_name"); - CHK_(ptr); - } else goto handle_unusual; - continue; + 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; + } // repeated .milvus.grpc.RowRecord query_record_array = 2; - 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; + 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; + } // repeated .milvus.grpc.Range query_range_array = 3; - 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; + 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; + } // int64 topk = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { - topk_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + 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; + } default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; + ctx->EndGroup(tag); + return ptr; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + 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; } } // switch } // while -success: return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ +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); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool SearchVectorInfos::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { + ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.SearchVectorInfos) for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string table_name = 1; case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_table_name())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->table_name().data(), static_cast(this->table_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + ::google::protobuf::internal::WireFormatLite::PARSE, "milvus.grpc.SearchVectorInfos.table_name")); } else { goto handle_unusual; @@ -2761,8 +2929,8 @@ bool SearchVectorInfos::MergePartialFromCodedStream( // repeated .milvus.grpc.RowRecord query_record_array = 2; case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, add_query_record_array())); } else { goto handle_unusual; @@ -2772,8 +2940,8 @@ bool SearchVectorInfos::MergePartialFromCodedStream( // repeated .milvus.grpc.Range query_range_array = 3; case 3: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, add_query_range_array())); } else { goto handle_unusual; @@ -2783,10 +2951,10 @@ bool SearchVectorInfos::MergePartialFromCodedStream( // int64 topk = 4; case 4: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) { + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( input, &topk_))); } else { goto handle_unusual; @@ -2799,7 +2967,7 @@ bool SearchVectorInfos::MergePartialFromCodedStream( if (tag == 0) { goto success; } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } @@ -2816,25 +2984,25 @@ failure: #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SearchVectorInfos::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.SearchVectorInfos) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // string table_name = 1; if (this->table_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->table_name().data(), static_cast(this->table_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "milvus.grpc.SearchVectorInfos.table_name"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + ::google::protobuf::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++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, this->query_record_array(static_cast(i)), output); @@ -2843,7 +3011,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++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, this->query_range_array(static_cast(i)), output); @@ -2851,37 +3019,37 @@ void SearchVectorInfos::SerializeWithCachedSizes( // int64 topk = 4; if (this->topk() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(4, this->topk(), output); + ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->topk(), output); } if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:milvus.grpc.SearchVectorInfos) } -::PROTOBUF_NAMESPACE_ID::uint8* SearchVectorInfos::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::google::protobuf::uint8* SearchVectorInfos::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.SearchVectorInfos) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // string table_name = 1; if (this->table_name().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->table_name().data(), static_cast(this->table_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "milvus.grpc.SearchVectorInfos.table_name"); target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + ::google::protobuf::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 = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 2, this->query_record_array(static_cast(i)), target); } @@ -2889,18 +3057,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 = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 3, this->query_range_array(static_cast(i)), target); } // int64 topk = 4; if (this->topk() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->topk(), target); + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(4, this->topk(), target); } if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.SearchVectorInfos) @@ -2913,10 +3081,10 @@ size_t SearchVectorInfos::ByteSizeLong() const { if (_internal_metadata_.have_unknown_fields()) { total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -2926,7 +3094,7 @@ size_t SearchVectorInfos::ByteSizeLong() const { total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + ::google::protobuf::internal::WireFormatLite::MessageSize( this->query_record_array(static_cast(i))); } } @@ -2937,7 +3105,7 @@ size_t SearchVectorInfos::ByteSizeLong() const { total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + ::google::protobuf::internal::WireFormatLite::MessageSize( this->query_range_array(static_cast(i))); } } @@ -2945,31 +3113,31 @@ size_t SearchVectorInfos::ByteSizeLong() const { // string table_name = 1; if (this->table_name().size() > 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + ::google::protobuf::internal::WireFormatLite::StringSize( this->table_name()); } // int64 topk = 4; if (this->topk() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + ::google::protobuf::internal::WireFormatLite::Int64Size( this->topk()); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void SearchVectorInfos::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SearchVectorInfos::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.SearchVectorInfos) GOOGLE_DCHECK_NE(&from, this); const SearchVectorInfos* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.SearchVectorInfos) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.SearchVectorInfos) MergeFrom(*source); @@ -2980,21 +3148,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_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.table_name_); + table_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_name_); } if (from.topk() != 0) { set_topk(from.topk()); } } -void SearchVectorInfos::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SearchVectorInfos::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.SearchVectorInfos) if (&from == this) return; Clear(); @@ -3021,13 +3189,14 @@ void SearchVectorInfos::InternalSwap(SearchVectorInfos* other) { _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_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + table_name_.Swap(&other->table_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); swap(topk_, other->topk_); } -::PROTOBUF_NAMESPACE_ID::Metadata SearchVectorInfos::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata SearchVectorInfos::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_milvus_2eproto); + return ::file_level_metadata_milvus_2eproto[kIndexInFileMessages]; } @@ -3052,12 +3221,12 @@ const int SearchVectorInFilesInfos::kSearchVectorInfosFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 SearchVectorInFilesInfos::SearchVectorInFilesInfos() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.SearchVectorInFilesInfos) } SearchVectorInFilesInfos::SearchVectorInFilesInfos(const SearchVectorInFilesInfos& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), + : ::google::protobuf::Message(), _internal_metadata_(nullptr), file_id_array_(from.file_id_array_) { _internal_metadata_.MergeFrom(from._internal_metadata_); @@ -3070,7 +3239,8 @@ SearchVectorInFilesInfos::SearchVectorInFilesInfos(const SearchVectorInFilesInfo } void SearchVectorInFilesInfos::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SearchVectorInFilesInfos_milvus_2eproto.base); + ::google::protobuf::internal::InitSCC( + &scc_info_SearchVectorInFilesInfos_milvus_2eproto.base); search_vector_infos_ = nullptr; } @@ -3087,14 +3257,14 @@ void SearchVectorInFilesInfos::SetCachedSize(int size) const { _cached_size_.Set(size); } const SearchVectorInFilesInfos& SearchVectorInFilesInfos::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SearchVectorInFilesInfos_milvus_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_SearchVectorInFilesInfos_milvus_2eproto.base); return *internal_default_instance(); } void SearchVectorInFilesInfos::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.SearchVectorInFilesInfos) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -3107,71 +3277,93 @@ void SearchVectorInFilesInfos::Clear() { } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -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); +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); switch (tag >> 3) { // repeated string file_id_array = 1; - 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; + 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; + } // .milvus.grpc.SearchVectorInfos search_vector_infos = 2; - 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; + 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; + } default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; + ctx->EndGroup(tag); + return ptr; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + 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; } } // switch } // while -success: return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ +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); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool SearchVectorInFilesInfos::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { + ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.SearchVectorInFilesInfos) for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated string file_id_array = 1; case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->add_file_id_array())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + DO_(::google::protobuf::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()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + ::google::protobuf::internal::WireFormatLite::PARSE, "milvus.grpc.SearchVectorInFilesInfos.file_id_array")); } else { goto handle_unusual; @@ -3181,8 +3373,8 @@ bool SearchVectorInFilesInfos::MergePartialFromCodedStream( // .milvus.grpc.SearchVectorInfos search_vector_infos = 2; case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_search_vector_infos())); } else { goto handle_unusual; @@ -3195,7 +3387,7 @@ bool SearchVectorInFilesInfos::MergePartialFromCodedStream( if (tag == 0) { goto success; } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } @@ -3212,59 +3404,59 @@ failure: #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SearchVectorInFilesInfos::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.SearchVectorInFilesInfos) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::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++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->file_id_array(i).data(), static_cast(this->file_id_array(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "milvus.grpc.SearchVectorInFilesInfos.file_id_array"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString( + ::google::protobuf::internal::WireFormatLite::WriteString( 1, this->file_id_array(i), output); } // .milvus.grpc.SearchVectorInfos search_vector_infos = 2; if (this->has_search_vector_infos()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, HasBitSetters::search_vector_infos(this), output); } if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:milvus.grpc.SearchVectorInFilesInfos) } -::PROTOBUF_NAMESPACE_ID::uint8* SearchVectorInFilesInfos::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::google::protobuf::uint8* SearchVectorInFilesInfos::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.SearchVectorInFilesInfos) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::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++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->file_id_array(i).data(), static_cast(this->file_id_array(i).length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "milvus.grpc.SearchVectorInFilesInfos.file_id_array"); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + target = ::google::protobuf::internal::WireFormatLite:: WriteStringToArray(1, this->file_id_array(i), target); } // .milvus.grpc.SearchVectorInfos search_vector_infos = 2; if (this->has_search_vector_infos()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 2, HasBitSetters::search_vector_infos(this), target); } if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.SearchVectorInFilesInfos) @@ -3277,42 +3469,42 @@ size_t SearchVectorInFilesInfos::ByteSizeLong() const { if (_internal_metadata_.have_unknown_fields()) { total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::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 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->file_id_array_size()); + ::google::protobuf::internal::FromIntSize(this->file_id_array_size()); for (int i = 0, n = this->file_id_array_size(); i < n; i++) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + total_size += ::google::protobuf::internal::WireFormatLite::StringSize( this->file_id_array(i)); } // .milvus.grpc.SearchVectorInfos search_vector_infos = 2; if (this->has_search_vector_infos()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + ::google::protobuf::internal::WireFormatLite::MessageSize( *search_vector_infos_); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void SearchVectorInFilesInfos::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SearchVectorInFilesInfos::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.SearchVectorInFilesInfos) GOOGLE_DCHECK_NE(&from, this); const SearchVectorInFilesInfos* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.SearchVectorInFilesInfos) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.SearchVectorInFilesInfos) MergeFrom(*source); @@ -3323,7 +3515,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_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; file_id_array_.MergeFrom(from.file_id_array_); @@ -3332,7 +3524,7 @@ void SearchVectorInFilesInfos::MergeFrom(const SearchVectorInFilesInfos& from) { } } -void SearchVectorInFilesInfos::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void SearchVectorInFilesInfos::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.SearchVectorInFilesInfos) if (&from == this) return; Clear(); @@ -3361,8 +3553,9 @@ void SearchVectorInFilesInfos::InternalSwap(SearchVectorInFilesInfos* other) { swap(search_vector_infos_, other->search_vector_infos_); } -::PROTOBUF_NAMESPACE_ID::Metadata SearchVectorInFilesInfos::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata SearchVectorInFilesInfos::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_milvus_2eproto); + return ::file_level_metadata_milvus_2eproto[kIndexInFileMessages]; } @@ -3380,12 +3573,12 @@ const int QueryResult::kDistanceFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 QueryResult::QueryResult() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.QueryResult) } QueryResult::QueryResult(const QueryResult& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); ::memcpy(&id_, &from.id_, @@ -3412,14 +3605,14 @@ void QueryResult::SetCachedSize(int size) const { _cached_size_.Set(size); } const QueryResult& QueryResult::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_QueryResult_milvus_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_QueryResult_milvus_2eproto.base); return *internal_default_instance(); } void QueryResult::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.QueryResult) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -3430,63 +3623,65 @@ void QueryResult::Clear() { } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -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); +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); switch (tag >> 3) { // int64 id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { - id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); - CHK_(ptr); - } else goto handle_unusual; - continue; + 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; + } // double distance = 2; - 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; + 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; + } default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; + ctx->EndGroup(tag); + return ptr; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + 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; } } // switch } // while -success: return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool QueryResult::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { + ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.QueryResult) for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // int64 id = 1; case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( input, &id_))); } else { goto handle_unusual; @@ -3496,10 +3691,10 @@ bool QueryResult::MergePartialFromCodedStream( // double distance = 2; case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (17 & 0xFF)) { + if (static_cast< ::google::protobuf::uint8>(tag) == (17 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - double, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_DOUBLE>( + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, &distance_))); } else { goto handle_unusual; @@ -3512,7 +3707,7 @@ bool QueryResult::MergePartialFromCodedStream( if (tag == 0) { goto success; } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } @@ -3529,46 +3724,46 @@ failure: #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void QueryResult::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.QueryResult) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // int64 id = 1; if (this->id() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(1, this->id(), output); + ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->id(), output); } // double distance = 2; - if (!(this->distance() <= 0 && this->distance() >= 0)) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDouble(2, this->distance(), output); + if (this->distance() != 0) { + ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->distance(), output); } if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:milvus.grpc.QueryResult) } -::PROTOBUF_NAMESPACE_ID::uint8* QueryResult::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::google::protobuf::uint8* QueryResult::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.QueryResult) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // int64 id = 1; if (this->id() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->id(), target); + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->id(), target); } // double distance = 2; - if (!(this->distance() <= 0 && this->distance() >= 0)) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->distance(), target); + if (this->distance() != 0) { + target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->distance(), target); } if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.QueryResult) @@ -3581,39 +3776,39 @@ size_t QueryResult::ByteSizeLong() const { if (_internal_metadata_.have_unknown_fields()) { total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::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 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + ::google::protobuf::internal::WireFormatLite::Int64Size( this->id()); } // double distance = 2; - if (!(this->distance() <= 0 && this->distance() >= 0)) { + if (this->distance() != 0) { total_size += 1 + 8; } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void QueryResult::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void QueryResult::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.QueryResult) GOOGLE_DCHECK_NE(&from, this); const QueryResult* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.QueryResult) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.QueryResult) MergeFrom(*source); @@ -3624,18 +3819,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_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.id() != 0) { set_id(from.id()); } - if (!(from.distance() <= 0 && from.distance() >= 0)) { + if (from.distance() != 0) { set_distance(from.distance()); } } -void QueryResult::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void QueryResult::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.QueryResult) if (&from == this) return; Clear(); @@ -3664,8 +3859,9 @@ void QueryResult::InternalSwap(QueryResult* other) { swap(distance_, other->distance_); } -::PROTOBUF_NAMESPACE_ID::Metadata QueryResult::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata QueryResult::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_milvus_2eproto); + return ::file_level_metadata_milvus_2eproto[kIndexInFileMessages]; } @@ -3696,12 +3892,12 @@ const int TopKQueryResult::kQueryResultArraysFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 TopKQueryResult::TopKQueryResult() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.TopKQueryResult) } TopKQueryResult::TopKQueryResult(const TopKQueryResult& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), + : ::google::protobuf::Message(), _internal_metadata_(nullptr), query_result_arrays_(from.query_result_arrays_) { _internal_metadata_.MergeFrom(from._internal_metadata_); @@ -3714,7 +3910,8 @@ TopKQueryResult::TopKQueryResult(const TopKQueryResult& from) } void TopKQueryResult::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TopKQueryResult_milvus_2eproto.base); + ::google::protobuf::internal::InitSCC( + &scc_info_TopKQueryResult_milvus_2eproto.base); status_ = nullptr; } @@ -3731,14 +3928,14 @@ void TopKQueryResult::SetCachedSize(int size) const { _cached_size_.Set(size); } const TopKQueryResult& TopKQueryResult::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TopKQueryResult_milvus_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_TopKQueryResult_milvus_2eproto.base); return *internal_default_instance(); } void TopKQueryResult::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.TopKQueryResult) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -3751,66 +3948,81 @@ void TopKQueryResult::Clear() { } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -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); +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); switch (tag >> 3) { // .milvus.grpc.Status status = 1; - 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; + 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; + } // repeated .milvus.grpc.QueryResult query_result_arrays = 2; - 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; + 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; + } default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; + ctx->EndGroup(tag); + return ptr; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + 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; } } // switch } // while -success: return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool TopKQueryResult::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { + ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.TopKQueryResult) for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .milvus.grpc.Status status = 1; case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_status())); } else { goto handle_unusual; @@ -3820,8 +4032,8 @@ bool TopKQueryResult::MergePartialFromCodedStream( // repeated .milvus.grpc.QueryResult query_result_arrays = 2; case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, add_query_result_arrays())); } else { goto handle_unusual; @@ -3834,7 +4046,7 @@ bool TopKQueryResult::MergePartialFromCodedStream( if (tag == 0) { goto success; } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } @@ -3851,42 +4063,42 @@ failure: #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void TopKQueryResult::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.TopKQueryResult) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .milvus.grpc.Status status = 1; if (this->has_status()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, HasBitSetters::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++) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, this->query_result_arrays(static_cast(i)), output); } if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:milvus.grpc.TopKQueryResult) } -::PROTOBUF_NAMESPACE_ID::uint8* TopKQueryResult::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::google::protobuf::uint8* TopKQueryResult::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.TopKQueryResult) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .milvus.grpc.Status status = 1; if (this->has_status()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, HasBitSetters::status(this), target); } @@ -3894,13 +4106,13 @@ void TopKQueryResult::SerializeWithCachedSizes( // 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 = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 2, this->query_result_arrays(static_cast(i)), target); } if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.TopKQueryResult) @@ -3913,10 +4125,10 @@ size_t TopKQueryResult::ByteSizeLong() const { if (_internal_metadata_.have_unknown_fields()) { total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -3926,7 +4138,7 @@ size_t TopKQueryResult::ByteSizeLong() const { total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + ::google::protobuf::internal::WireFormatLite::MessageSize( this->query_result_arrays(static_cast(i))); } } @@ -3934,24 +4146,24 @@ size_t TopKQueryResult::ByteSizeLong() const { // .milvus.grpc.Status status = 1; if (this->has_status()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + ::google::protobuf::internal::WireFormatLite::MessageSize( *status_); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void TopKQueryResult::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void TopKQueryResult::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.TopKQueryResult) GOOGLE_DCHECK_NE(&from, this); const TopKQueryResult* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.TopKQueryResult) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.TopKQueryResult) MergeFrom(*source); @@ -3962,7 +4174,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_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; query_result_arrays_.MergeFrom(from.query_result_arrays_); @@ -3971,7 +4183,7 @@ void TopKQueryResult::MergeFrom(const TopKQueryResult& from) { } } -void TopKQueryResult::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void TopKQueryResult::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.TopKQueryResult) if (&from == this) return; Clear(); @@ -4000,8 +4212,9 @@ void TopKQueryResult::InternalSwap(TopKQueryResult* other) { swap(status_, other->status_); } -::PROTOBUF_NAMESPACE_ID::Metadata TopKQueryResult::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata TopKQueryResult::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_milvus_2eproto); + return ::file_level_metadata_milvus_2eproto[kIndexInFileMessages]; } @@ -4032,17 +4245,17 @@ const int StringReply::kStringReplyFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 StringReply::StringReply() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.StringReply) } StringReply::StringReply(const StringReply& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - string_reply_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + string_reply_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.string_reply().size() > 0) { - string_reply_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.string_reply_); + string_reply_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.string_reply_); } if (from.has_status()) { status_ = new ::milvus::grpc::Status(*from.status_); @@ -4053,8 +4266,9 @@ StringReply::StringReply(const StringReply& from) } void StringReply::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_StringReply_milvus_2eproto.base); - string_reply_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::google::protobuf::internal::InitSCC( + &scc_info_StringReply_milvus_2eproto.base); + string_reply_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); status_ = nullptr; } @@ -4064,7 +4278,7 @@ StringReply::~StringReply() { } void StringReply::SharedDtor() { - string_reply_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + string_reply_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete status_; } @@ -4072,18 +4286,18 @@ void StringReply::SetCachedSize(int size) const { _cached_size_.Set(size); } const StringReply& StringReply::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_StringReply_milvus_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_StringReply_milvus_2eproto.base); return *internal_default_instance(); } void StringReply::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.StringReply) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - string_reply_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + string_reply_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { delete status_; } @@ -4092,61 +4306,85 @@ void StringReply::Clear() { } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -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); +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); switch (tag >> 3) { // .milvus.grpc.Status status = 1; - 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; + 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; + } // string string_reply = 2; - 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; + 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; + } default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; + ctx->EndGroup(tag); + return ptr; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + 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; } } // switch } // while -success: return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ +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); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool StringReply::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { + ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.StringReply) for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .milvus.grpc.Status status = 1; case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_status())); } else { goto handle_unusual; @@ -4156,12 +4394,12 @@ bool StringReply::MergePartialFromCodedStream( // string string_reply = 2; case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_string_reply())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->string_reply().data(), static_cast(this->string_reply().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + ::google::protobuf::internal::WireFormatLite::PARSE, "milvus.grpc.StringReply.string_reply")); } else { goto handle_unusual; @@ -4174,7 +4412,7 @@ bool StringReply::MergePartialFromCodedStream( if (tag == 0) { goto success; } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } @@ -4191,60 +4429,60 @@ failure: #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void StringReply::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.StringReply) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .milvus.grpc.Status status = 1; if (this->has_status()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, HasBitSetters::status(this), output); } // string string_reply = 2; if (this->string_reply().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->string_reply().data(), static_cast(this->string_reply().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "milvus.grpc.StringReply.string_reply"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->string_reply(), output); } if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:milvus.grpc.StringReply) } -::PROTOBUF_NAMESPACE_ID::uint8* StringReply::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::google::protobuf::uint8* StringReply::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.StringReply) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .milvus.grpc.Status status = 1; if (this->has_status()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, HasBitSetters::status(this), target); } // string string_reply = 2; if (this->string_reply().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->string_reply().data(), static_cast(this->string_reply().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "milvus.grpc.StringReply.string_reply"); target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->string_reply(), target); } if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.StringReply) @@ -4257,41 +4495,41 @@ size_t StringReply::ByteSizeLong() const { if (_internal_metadata_.have_unknown_fields()) { total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::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 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + ::google::protobuf::internal::WireFormatLite::StringSize( this->string_reply()); } // .milvus.grpc.Status status = 1; if (this->has_status()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + ::google::protobuf::internal::WireFormatLite::MessageSize( *status_); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void StringReply::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void StringReply::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.StringReply) GOOGLE_DCHECK_NE(&from, this); const StringReply* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.StringReply) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.StringReply) MergeFrom(*source); @@ -4302,19 +4540,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_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.string_reply().size() > 0) { - string_reply_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.string_reply_); + string_reply_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.string_reply_); } if (from.has_status()) { mutable_status()->::milvus::grpc::Status::MergeFrom(from.status()); } } -void StringReply::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void StringReply::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.StringReply) if (&from == this) return; Clear(); @@ -4339,13 +4577,14 @@ void StringReply::Swap(StringReply* other) { void StringReply::InternalSwap(StringReply* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - string_reply_.Swap(&other->string_reply_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + string_reply_.Swap(&other->string_reply_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); swap(status_, other->status_); } -::PROTOBUF_NAMESPACE_ID::Metadata StringReply::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata StringReply::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_milvus_2eproto); + return ::file_level_metadata_milvus_2eproto[kIndexInFileMessages]; } @@ -4376,12 +4615,12 @@ const int BoolReply::kBoolReplyFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 BoolReply::BoolReply() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.BoolReply) } BoolReply::BoolReply(const BoolReply& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); if (from.has_status()) { @@ -4394,7 +4633,8 @@ BoolReply::BoolReply(const BoolReply& from) } void BoolReply::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_BoolReply_milvus_2eproto.base); + ::google::protobuf::internal::InitSCC( + &scc_info_BoolReply_milvus_2eproto.base); ::memset(&status_, 0, static_cast( reinterpret_cast(&bool_reply_) - reinterpret_cast(&status_)) + sizeof(bool_reply_)); @@ -4413,14 +4653,14 @@ void BoolReply::SetCachedSize(int size) const { _cached_size_.Set(size); } const BoolReply& BoolReply::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_BoolReply_milvus_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_BoolReply_milvus_2eproto.base); return *internal_default_instance(); } void BoolReply::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.BoolReply) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -4433,61 +4673,72 @@ void BoolReply::Clear() { } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -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); +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); switch (tag >> 3) { // .milvus.grpc.Status status = 1; - 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; + 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; + } // bool bool_reply = 2; - 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; + 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; + } default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; + ctx->EndGroup(tag); + return ptr; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + 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; } } // switch } // while -success: return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool BoolReply::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { + ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.BoolReply) for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .milvus.grpc.Status status = 1; case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_status())); } else { goto handle_unusual; @@ -4497,10 +4748,10 @@ bool BoolReply::MergePartialFromCodedStream( // bool bool_reply = 2; case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>( + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( input, &bool_reply_))); } else { goto handle_unusual; @@ -4513,7 +4764,7 @@ bool BoolReply::MergePartialFromCodedStream( if (tag == 0) { goto success; } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } @@ -4530,49 +4781,49 @@ failure: #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void BoolReply::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.BoolReply) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .milvus.grpc.Status status = 1; if (this->has_status()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, HasBitSetters::status(this), output); } // bool bool_reply = 2; if (this->bool_reply() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(2, this->bool_reply(), output); + ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->bool_reply(), output); } if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:milvus.grpc.BoolReply) } -::PROTOBUF_NAMESPACE_ID::uint8* BoolReply::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::google::protobuf::uint8* BoolReply::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.BoolReply) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .milvus.grpc.Status status = 1; if (this->has_status()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, HasBitSetters::status(this), target); } // bool bool_reply = 2; if (this->bool_reply() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->bool_reply(), target); + target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->bool_reply(), target); } if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.BoolReply) @@ -4585,17 +4836,17 @@ size_t BoolReply::ByteSizeLong() const { if (_internal_metadata_.have_unknown_fields()) { total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::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 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + ::google::protobuf::internal::WireFormatLite::MessageSize( *status_); } @@ -4604,20 +4855,20 @@ size_t BoolReply::ByteSizeLong() const { total_size += 1 + 1; } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void BoolReply::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void BoolReply::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.BoolReply) GOOGLE_DCHECK_NE(&from, this); const BoolReply* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.BoolReply) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.BoolReply) MergeFrom(*source); @@ -4628,7 +4879,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_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.has_status()) { @@ -4639,7 +4890,7 @@ void BoolReply::MergeFrom(const BoolReply& from) { } } -void BoolReply::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void BoolReply::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.BoolReply) if (&from == this) return; Clear(); @@ -4668,8 +4919,9 @@ void BoolReply::InternalSwap(BoolReply* other) { swap(bool_reply_, other->bool_reply_); } -::PROTOBUF_NAMESPACE_ID::Metadata BoolReply::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata BoolReply::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_milvus_2eproto); + return ::file_level_metadata_milvus_2eproto[kIndexInFileMessages]; } @@ -4700,12 +4952,12 @@ const int TableRowCount::kTableRowCountFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 TableRowCount::TableRowCount() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.TableRowCount) } TableRowCount::TableRowCount(const TableRowCount& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); if (from.has_status()) { @@ -4718,7 +4970,8 @@ TableRowCount::TableRowCount(const TableRowCount& from) } void TableRowCount::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TableRowCount_milvus_2eproto.base); + ::google::protobuf::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_)); @@ -4737,14 +4990,14 @@ void TableRowCount::SetCachedSize(int size) const { _cached_size_.Set(size); } const TableRowCount& TableRowCount::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TableRowCount_milvus_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_TableRowCount_milvus_2eproto.base); return *internal_default_instance(); } void TableRowCount::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.TableRowCount) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -4757,61 +5010,72 @@ void TableRowCount::Clear() { } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -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); +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); switch (tag >> 3) { // .milvus.grpc.Status status = 1; - 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; + 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; + } // int64 table_row_count = 2; - 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; + 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; + } default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; + ctx->EndGroup(tag); + return ptr; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + 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; } } // switch } // while -success: return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ +len_delim_till_end: + return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, + {parser_till_end, object}, size); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool TableRowCount::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { + ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.TableRowCount) for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .milvus.grpc.Status status = 1; case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_status())); } else { goto handle_unusual; @@ -4821,10 +5085,10 @@ bool TableRowCount::MergePartialFromCodedStream( // int64 table_row_count = 2; case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { + if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( input, &table_row_count_))); } else { goto handle_unusual; @@ -4837,7 +5101,7 @@ bool TableRowCount::MergePartialFromCodedStream( if (tag == 0) { goto success; } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } @@ -4854,49 +5118,49 @@ failure: #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void TableRowCount::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.TableRowCount) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .milvus.grpc.Status status = 1; if (this->has_status()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, HasBitSetters::status(this), output); } // int64 table_row_count = 2; if (this->table_row_count() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->table_row_count(), output); + ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->table_row_count(), output); } if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:milvus.grpc.TableRowCount) } -::PROTOBUF_NAMESPACE_ID::uint8* TableRowCount::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::google::protobuf::uint8* TableRowCount::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.TableRowCount) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .milvus.grpc.Status status = 1; if (this->has_status()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, HasBitSetters::status(this), target); } // int64 table_row_count = 2; if (this->table_row_count() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->table_row_count(), target); + target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->table_row_count(), target); } if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.TableRowCount) @@ -4909,41 +5173,41 @@ size_t TableRowCount::ByteSizeLong() const { if (_internal_metadata_.have_unknown_fields()) { total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::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 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + ::google::protobuf::internal::WireFormatLite::MessageSize( *status_); } // int64 table_row_count = 2; if (this->table_row_count() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( + ::google::protobuf::internal::WireFormatLite::Int64Size( this->table_row_count()); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void TableRowCount::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void TableRowCount::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.TableRowCount) GOOGLE_DCHECK_NE(&from, this); const TableRowCount* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.TableRowCount) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.TableRowCount) MergeFrom(*source); @@ -4954,7 +5218,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_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.has_status()) { @@ -4965,7 +5229,7 @@ void TableRowCount::MergeFrom(const TableRowCount& from) { } } -void TableRowCount::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void TableRowCount::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.TableRowCount) if (&from == this) return; Clear(); @@ -4994,8 +5258,9 @@ void TableRowCount::InternalSwap(TableRowCount* other) { swap(table_row_count_, other->table_row_count_); } -::PROTOBUF_NAMESPACE_ID::Metadata TableRowCount::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata TableRowCount::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_milvus_2eproto); + return ::file_level_metadata_milvus_2eproto[kIndexInFileMessages]; } @@ -5012,24 +5277,25 @@ const int Command::kCmdFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Command::Command() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.Command) } Command::Command(const Command& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - cmd_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + cmd_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.cmd().size() > 0) { - cmd_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.cmd_); + cmd_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cmd_); } // @@protoc_insertion_point(copy_constructor:milvus.grpc.Command) } void Command::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Command_milvus_2eproto.base); - cmd_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::google::protobuf::internal::InitSCC( + &scc_info_Command_milvus_2eproto.base); + cmd_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } Command::~Command() { @@ -5038,81 +5304,99 @@ Command::~Command() { } void Command::SharedDtor() { - cmd_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + cmd_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void Command::SetCachedSize(int size) const { _cached_size_.Set(size); } const Command& Command::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Command_milvus_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_Command_milvus_2eproto.base); return *internal_default_instance(); } void Command::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.Command) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cmd_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + cmd_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -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); +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); switch (tag >> 3) { // string cmd = 1; - 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; + 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; + } default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; + ctx->EndGroup(tag); + return ptr; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + 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; } } // switch } // while -success: return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ +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); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool Command::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { + ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.Command) for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string cmd = 1; case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_cmd())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->cmd().data(), static_cast(this->cmd().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + ::google::protobuf::internal::WireFormatLite::PARSE, "milvus.grpc.Command.cmd")); } else { goto handle_unusual; @@ -5125,7 +5409,7 @@ bool Command::MergePartialFromCodedStream( if (tag == 0) { goto success; } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } @@ -5142,47 +5426,47 @@ failure: #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void Command::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.Command) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // string cmd = 1; if (this->cmd().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->cmd().data(), static_cast(this->cmd().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "milvus.grpc.Command.cmd"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->cmd(), output); } if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:milvus.grpc.Command) } -::PROTOBUF_NAMESPACE_ID::uint8* Command::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::google::protobuf::uint8* Command::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.Command) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // string cmd = 1; if (this->cmd().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->cmd().data(), static_cast(this->cmd().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "milvus.grpc.Command.cmd"); target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->cmd(), target); } if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.Command) @@ -5195,34 +5479,34 @@ size_t Command::ByteSizeLong() const { if (_internal_metadata_.have_unknown_fields()) { total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::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 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + ::google::protobuf::internal::WireFormatLite::StringSize( this->cmd()); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void Command::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void Command::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.Command) GOOGLE_DCHECK_NE(&from, this); const Command* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.Command) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.Command) MergeFrom(*source); @@ -5233,16 +5517,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_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.cmd().size() > 0) { - cmd_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.cmd_); + cmd_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cmd_); } } -void Command::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void Command::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.Command) if (&from == this) return; Clear(); @@ -5267,12 +5551,13 @@ void Command::Swap(Command* other) { void Command::InternalSwap(Command* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - cmd_.Swap(&other->cmd_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + cmd_.Swap(&other->cmd_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); } -::PROTOBUF_NAMESPACE_ID::Metadata Command::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata Command::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_milvus_2eproto); + return ::file_level_metadata_milvus_2eproto[kIndexInFileMessages]; } @@ -5303,17 +5588,17 @@ const int ServerStatus::kInfoFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 ServerStatus::ServerStatus() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.ServerStatus) } ServerStatus::ServerStatus(const ServerStatus& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - info_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + info_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.info().size() > 0) { - info_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.info_); + info_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.info_); } if (from.has_status()) { status_ = new ::milvus::grpc::Status(*from.status_); @@ -5324,8 +5609,9 @@ ServerStatus::ServerStatus(const ServerStatus& from) } void ServerStatus::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ServerStatus_milvus_2eproto.base); - info_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::google::protobuf::internal::InitSCC( + &scc_info_ServerStatus_milvus_2eproto.base); + info_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); status_ = nullptr; } @@ -5335,7 +5621,7 @@ ServerStatus::~ServerStatus() { } void ServerStatus::SharedDtor() { - info_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + info_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete status_; } @@ -5343,18 +5629,18 @@ void ServerStatus::SetCachedSize(int size) const { _cached_size_.Set(size); } const ServerStatus& ServerStatus::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ServerStatus_milvus_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_ServerStatus_milvus_2eproto.base); return *internal_default_instance(); } void ServerStatus::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.ServerStatus) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - info_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + info_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (GetArenaNoVirtual() == nullptr && status_ != nullptr) { delete status_; } @@ -5363,61 +5649,85 @@ void ServerStatus::Clear() { } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -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); +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); switch (tag >> 3) { // .milvus.grpc.Status status = 1; - 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; + 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; + } // string info = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_info(), ptr, ctx, "milvus.grpc.ServerStatus.info"); - CHK_(ptr); - } else goto handle_unusual; - continue; + 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; + } default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; + ctx->EndGroup(tag); + return ptr; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + 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; } } // switch } // while -success: return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ +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); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool ServerStatus::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { + ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.ServerStatus) for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .milvus.grpc.Status status = 1; case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( + if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_status())); } else { goto handle_unusual; @@ -5427,12 +5737,12 @@ bool ServerStatus::MergePartialFromCodedStream( // string info = 2; case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_info())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->info().data(), static_cast(this->info().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + ::google::protobuf::internal::WireFormatLite::PARSE, "milvus.grpc.ServerStatus.info")); } else { goto handle_unusual; @@ -5445,7 +5755,7 @@ bool ServerStatus::MergePartialFromCodedStream( if (tag == 0) { goto success; } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } @@ -5462,60 +5772,60 @@ failure: #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void ServerStatus::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.ServerStatus) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .milvus.grpc.Status status = 1; if (this->has_status()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, HasBitSetters::status(this), output); } // string info = 2; if (this->info().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->info().data(), static_cast(this->info().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "milvus.grpc.ServerStatus.info"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->info(), output); } if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:milvus.grpc.ServerStatus) } -::PROTOBUF_NAMESPACE_ID::uint8* ServerStatus::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::google::protobuf::uint8* ServerStatus::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.ServerStatus) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .milvus.grpc.Status status = 1; if (this->has_status()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, HasBitSetters::status(this), target); } // string info = 2; if (this->info().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->info().data(), static_cast(this->info().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "milvus.grpc.ServerStatus.info"); target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->info(), target); } if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.ServerStatus) @@ -5528,41 +5838,41 @@ size_t ServerStatus::ByteSizeLong() const { if (_internal_metadata_.have_unknown_fields()) { total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::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 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + ::google::protobuf::internal::WireFormatLite::StringSize( this->info()); } // .milvus.grpc.Status status = 1; if (this->has_status()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + ::google::protobuf::internal::WireFormatLite::MessageSize( *status_); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void ServerStatus::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void ServerStatus::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.ServerStatus) GOOGLE_DCHECK_NE(&from, this); const ServerStatus* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.ServerStatus) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.ServerStatus) MergeFrom(*source); @@ -5573,19 +5883,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_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.info().size() > 0) { - info_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.info_); + info_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.info_); } if (from.has_status()) { mutable_status()->::milvus::grpc::Status::MergeFrom(from.status()); } } -void ServerStatus::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void ServerStatus::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.ServerStatus) if (&from == this) return; Clear(); @@ -5610,20 +5920,22 @@ void ServerStatus::Swap(ServerStatus* other) { void ServerStatus::InternalSwap(ServerStatus* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - info_.Swap(&other->info_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + info_.Swap(&other->info_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); swap(status_, other->status_); } -::PROTOBUF_NAMESPACE_ID::Metadata ServerStatus::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata ServerStatus::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_milvus_2eproto); + return ::file_level_metadata_milvus_2eproto[kIndexInFileMessages]; } // @@protoc_insertion_point(namespace_scope) } // namespace grpc } // namespace milvus -PROTOBUF_NAMESPACE_OPEN +namespace google { +namespace protobuf { template<> PROTOBUF_NOINLINE ::milvus::grpc::TableName* Arena::CreateMaybeMessage< ::milvus::grpc::TableName >(Arena* arena) { return Arena::CreateInternal< ::milvus::grpc::TableName >(arena); } @@ -5669,7 +5981,8 @@ 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); } -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // @@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 f794c5909d3b08433d789cb91d6d0814bc55476b..d391ed334476f03997175913131fb98ad65afff9 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 GOOGLE_PROTOBUF_INCLUDED_milvus_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_milvus_2eproto +#ifndef PROTOBUF_INCLUDED_milvus_2eproto +#define PROTOBUF_INCLUDED_milvus_2eproto #include #include #include -#if PROTOBUF_VERSION < 3008000 +#if PROTOBUF_VERSION < 3007000 #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 3008000 < PROTOBUF_MIN_PROTOC_VERSION +#if 3007000 < 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,7 +27,6 @@ #include #include #include -#include #include #include // IWYU pragma: export #include // IWYU pragma: export @@ -36,25 +35,20 @@ // @@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 ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] + static const ::google::protobuf::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[15] + static const ::google::protobuf::internal::ParseTable schema[15] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; }; -extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_milvus_2eproto; +void AddDescriptors_milvus_2eproto(); namespace milvus { namespace grpc { class BoolReply; @@ -104,7 +98,8 @@ class VectorIdsDefaultTypeInternal; extern VectorIdsDefaultTypeInternal _VectorIds_default_instance_; } // namespace grpc } // namespace milvus -PROTOBUF_NAMESPACE_OPEN +namespace google { +namespace protobuf { 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*); @@ -120,28 +115,31 @@ 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*); -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google namespace milvus { namespace grpc { // =================================================================== -class TableName : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.TableName) */ { +class TableName final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.TableName) */ { public: TableName(); virtual ~TableName(); TableName(const TableName& from); - TableName(TableName&& from) noexcept - : TableName() { - *this = ::std::move(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=(TableName&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -150,15 +148,9 @@ class TableName : } return *this; } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); } static const TableName& default_instance(); @@ -181,11 +173,11 @@ class TableName : return CreateMaybeMessage(nullptr); } - TableName* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + TableName* New(::google::protobuf::Arena* arena) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const TableName& from); void MergeFrom(const TableName& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -193,28 +185,25 @@ class TableName : size_t ByteSizeLong() const final; #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + 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; } #else bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + ::google::protobuf::io::CodedInputStream* input) final; #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + 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 ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -222,14 +211,7 @@ class TableName : } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -238,14 +220,16 @@ class TableName : // 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); - void set_table_name(std::string&& value); + 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 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; @@ -260,30 +244,32 @@ class TableName : private: class HasBitSetters; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_name_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr table_name_; ::milvus::grpc::Status* status_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_milvus_2eproto; }; // ------------------------------------------------------------------- -class TableSchema : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.TableSchema) */ { +class TableSchema final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.TableSchema) */ { public: TableSchema(); virtual ~TableSchema(); TableSchema(const TableSchema& from); - TableSchema(TableSchema&& from) noexcept - : TableSchema() { - *this = ::std::move(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=(TableSchema&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -292,15 +278,9 @@ class TableSchema : } return *this; } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); } static const TableSchema& default_instance(); @@ -323,11 +303,11 @@ class TableSchema : return CreateMaybeMessage(nullptr); } - TableSchema* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + TableSchema* New(::google::protobuf::Arena* arena) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const TableSchema& from); void MergeFrom(const TableSchema& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -335,28 +315,25 @@ class TableSchema : size_t ByteSizeLong() const final; #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + 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; } #else bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + ::google::protobuf::io::CodedInputStream* input) final; #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + 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 ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -364,14 +341,7 @@ class TableSchema : } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -389,14 +359,14 @@ class TableSchema : // int64 dimension = 3; void clear_dimension(); static const int kDimensionFieldNumber = 3; - ::PROTOBUF_NAMESPACE_ID::int64 dimension() const; - void set_dimension(::PROTOBUF_NAMESPACE_ID::int64 value); + ::google::protobuf::int64 dimension() const; + void set_dimension(::google::protobuf::int64 value); // int32 index_type = 2; void clear_index_type(); static const int kIndexTypeFieldNumber = 2; - ::PROTOBUF_NAMESPACE_ID::int32 index_type() const; - void set_index_type(::PROTOBUF_NAMESPACE_ID::int32 value); + ::google::protobuf::int32 index_type() const; + void set_index_type(::google::protobuf::int32 value); // bool store_raw_vector = 4; void clear_store_raw_vector(); @@ -408,32 +378,34 @@ class TableSchema : private: class HasBitSetters; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::milvus::grpc::TableName* table_name_; - ::PROTOBUF_NAMESPACE_ID::int64 dimension_; - ::PROTOBUF_NAMESPACE_ID::int32 index_type_; + ::google::protobuf::int64 dimension_; + ::google::protobuf::int32 index_type_; bool store_raw_vector_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_milvus_2eproto; }; // ------------------------------------------------------------------- -class Range : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.Range) */ { +class Range final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.Range) */ { public: Range(); virtual ~Range(); Range(const Range& from); - Range(Range&& from) noexcept - : Range() { - *this = ::std::move(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=(Range&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -442,15 +414,9 @@ class Range : } return *this; } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); } static const Range& default_instance(); @@ -473,11 +439,11 @@ class Range : return CreateMaybeMessage(nullptr); } - Range* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + Range* New(::google::protobuf::Arena* arena) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const Range& from); void MergeFrom(const Range& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -485,28 +451,25 @@ class Range : size_t ByteSizeLong() const final; #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + 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; } #else bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + ::google::protobuf::io::CodedInputStream* input) final; #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + 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 ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -514,14 +477,7 @@ class Range : } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -530,55 +486,61 @@ class Range : // 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); - void set_start_value(std::string&& value); + 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 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); - void set_end_value(std::string&& value); + 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 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; - ::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_; + ::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_; friend struct ::TableStruct_milvus_2eproto; }; // ------------------------------------------------------------------- -class RowRecord : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.RowRecord) */ { +class RowRecord final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.RowRecord) */ { public: RowRecord(); virtual ~RowRecord(); RowRecord(const RowRecord& from); - RowRecord(RowRecord&& from) noexcept - : RowRecord() { - *this = ::std::move(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=(RowRecord&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -587,15 +549,9 @@ class RowRecord : } return *this; } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); } static const RowRecord& default_instance(); @@ -618,11 +574,11 @@ class RowRecord : return CreateMaybeMessage(nullptr); } - RowRecord* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + RowRecord* New(::google::protobuf::Arena* arena) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const RowRecord& from); void MergeFrom(const RowRecord& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -630,28 +586,25 @@ class RowRecord : size_t ByteSizeLong() const final; #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + 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; } #else bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + ::google::protobuf::io::CodedInputStream* input) final; #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + 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 ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -659,14 +612,7 @@ class RowRecord : } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -679,39 +625,41 @@ class RowRecord : float vector_data(int index) const; void set_vector_data(int index, float value); void add_vector_data(float value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& + const ::google::protobuf::RepeatedField< float >& vector_data() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* + ::google::protobuf::RepeatedField< float >* mutable_vector_data(); // @@protoc_insertion_point(class_scope:milvus.grpc.RowRecord) private: class HasBitSetters; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< float > vector_data_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedField< float > vector_data_; mutable std::atomic _vector_data_cached_byte_size_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_milvus_2eproto; }; // ------------------------------------------------------------------- -class InsertInfos : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.InsertInfos) */ { +class InsertInfos final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.InsertInfos) */ { public: InsertInfos(); virtual ~InsertInfos(); InsertInfos(const InsertInfos& from); - InsertInfos(InsertInfos&& from) noexcept - : InsertInfos() { - *this = ::std::move(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=(InsertInfos&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -720,15 +668,9 @@ class InsertInfos : } return *this; } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); } static const InsertInfos& default_instance(); @@ -751,11 +693,11 @@ class InsertInfos : return CreateMaybeMessage(nullptr); } - InsertInfos* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + InsertInfos* New(::google::protobuf::Arena* arena) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const InsertInfos& from); void MergeFrom(const InsertInfos& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -763,28 +705,25 @@ class InsertInfos : size_t ByteSizeLong() const final; #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + 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; } #else bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + ::google::protobuf::io::CodedInputStream* input) final; #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + 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 ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -792,14 +731,7 @@ class InsertInfos : } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -810,53 +742,57 @@ class InsertInfos : void clear_row_record_array(); static const int kRowRecordArrayFieldNumber = 2; ::milvus::grpc::RowRecord* mutable_row_record_array(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::RowRecord >* + ::google::protobuf::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 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::RowRecord >& + const ::google::protobuf::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); - void set_table_name(std::string&& value); + 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 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; - ::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_; + ::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_; friend struct ::TableStruct_milvus_2eproto; }; // ------------------------------------------------------------------- -class VectorIds : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.VectorIds) */ { +class VectorIds final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.VectorIds) */ { public: VectorIds(); virtual ~VectorIds(); VectorIds(const VectorIds& from); - VectorIds(VectorIds&& from) noexcept - : VectorIds() { - *this = ::std::move(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=(VectorIds&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -865,15 +801,9 @@ class VectorIds : } return *this; } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); } static const VectorIds& default_instance(); @@ -896,11 +826,11 @@ class VectorIds : return CreateMaybeMessage(nullptr); } - VectorIds* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + VectorIds* New(::google::protobuf::Arena* arena) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const VectorIds& from); void MergeFrom(const VectorIds& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -908,28 +838,25 @@ class VectorIds : size_t ByteSizeLong() const final; #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + 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; } #else bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + ::google::protobuf::io::CodedInputStream* input) final; #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + 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 ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -937,14 +864,7 @@ class VectorIds : } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -954,12 +874,12 @@ class VectorIds : int vector_id_array_size() const; void clear_vector_id_array(); static const int kVectorIdArrayFieldNumber = 2; - ::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 >& + ::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 >& vector_id_array() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* + ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* mutable_vector_id_array(); // .milvus.grpc.Status status = 1; @@ -975,31 +895,33 @@ class VectorIds : private: class HasBitSetters; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > vector_id_array_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedField< ::google::protobuf::int64 > vector_id_array_; mutable std::atomic _vector_id_array_cached_byte_size_; ::milvus::grpc::Status* status_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_milvus_2eproto; }; // ------------------------------------------------------------------- -class SearchVectorInfos : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.SearchVectorInfos) */ { +class SearchVectorInfos final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.SearchVectorInfos) */ { public: SearchVectorInfos(); virtual ~SearchVectorInfos(); SearchVectorInfos(const SearchVectorInfos& from); - SearchVectorInfos(SearchVectorInfos&& from) noexcept - : SearchVectorInfos() { - *this = ::std::move(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=(SearchVectorInfos&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -1008,15 +930,9 @@ class SearchVectorInfos : } return *this; } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); } static const SearchVectorInfos& default_instance(); @@ -1039,11 +955,11 @@ class SearchVectorInfos : return CreateMaybeMessage(nullptr); } - SearchVectorInfos* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + SearchVectorInfos* New(::google::protobuf::Arena* arena) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const SearchVectorInfos& from); void MergeFrom(const SearchVectorInfos& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -1051,28 +967,25 @@ class SearchVectorInfos : size_t ByteSizeLong() const final; #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + 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; } #else bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + ::google::protobuf::io::CodedInputStream* input) final; #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + 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 ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -1080,14 +993,7 @@ class SearchVectorInfos : } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1098,11 +1004,11 @@ class SearchVectorInfos : void clear_query_record_array(); static const int kQueryRecordArrayFieldNumber = 2; ::milvus::grpc::RowRecord* mutable_query_record_array(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::RowRecord >* + ::google::protobuf::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 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::RowRecord >& + const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::RowRecord >& query_record_array() const; // repeated .milvus.grpc.Range query_range_array = 3; @@ -1110,61 +1016,65 @@ class SearchVectorInfos : void clear_query_range_array(); static const int kQueryRangeArrayFieldNumber = 3; ::milvus::grpc::Range* mutable_query_range_array(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::Range >* + ::google::protobuf::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 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::Range >& + const ::google::protobuf::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); - void set_table_name(std::string&& value); + 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 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; - ::PROTOBUF_NAMESPACE_ID::int64 topk() const; - void set_topk(::PROTOBUF_NAMESPACE_ID::int64 value); + ::google::protobuf::int64 topk() const; + void set_topk(::google::protobuf::int64 value); // @@protoc_insertion_point(class_scope:milvus.grpc.SearchVectorInfos) private: class HasBitSetters; - ::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_; + ::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_; friend struct ::TableStruct_milvus_2eproto; }; // ------------------------------------------------------------------- -class SearchVectorInFilesInfos : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.SearchVectorInFilesInfos) */ { +class SearchVectorInFilesInfos final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.SearchVectorInFilesInfos) */ { public: SearchVectorInFilesInfos(); virtual ~SearchVectorInFilesInfos(); SearchVectorInFilesInfos(const SearchVectorInFilesInfos& from); - SearchVectorInFilesInfos(SearchVectorInFilesInfos&& from) noexcept - : SearchVectorInFilesInfos() { - *this = ::std::move(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=(SearchVectorInFilesInfos&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -1173,15 +1083,9 @@ class SearchVectorInFilesInfos : } return *this; } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); } static const SearchVectorInFilesInfos& default_instance(); @@ -1204,11 +1108,11 @@ class SearchVectorInFilesInfos : return CreateMaybeMessage(nullptr); } - SearchVectorInFilesInfos* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + SearchVectorInFilesInfos* New(::google::protobuf::Arena* arena) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const SearchVectorInFilesInfos& from); void MergeFrom(const SearchVectorInFilesInfos& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -1216,28 +1120,25 @@ class SearchVectorInFilesInfos : size_t ByteSizeLong() const final; #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + 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; } #else bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + ::google::protobuf::io::CodedInputStream* input) final; #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + 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 ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -1245,14 +1146,7 @@ class SearchVectorInFilesInfos : } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1262,19 +1156,23 @@ class SearchVectorInFilesInfos : 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); - void set_file_id_array(int index, std::string&& value); + 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 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); - void add_file_id_array(std::string&& value); + ::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 void add_file_id_array(const char* value); void add_file_id_array(const char* value, size_t size); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& file_id_array() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_file_id_array(); + const ::google::protobuf::RepeatedPtrField<::std::string>& file_id_array() const; + ::google::protobuf::RepeatedPtrField<::std::string>* mutable_file_id_array(); // .milvus.grpc.SearchVectorInfos search_vector_infos = 2; bool has_search_vector_infos() const; @@ -1289,30 +1187,32 @@ class SearchVectorInFilesInfos : private: class HasBitSetters; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField file_id_array_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField<::std::string> file_id_array_; ::milvus::grpc::SearchVectorInfos* search_vector_infos_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_milvus_2eproto; }; // ------------------------------------------------------------------- -class QueryResult : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.QueryResult) */ { +class QueryResult final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.QueryResult) */ { public: QueryResult(); virtual ~QueryResult(); QueryResult(const QueryResult& from); - QueryResult(QueryResult&& from) noexcept - : QueryResult() { - *this = ::std::move(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=(QueryResult&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -1321,15 +1221,9 @@ class QueryResult : } return *this; } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); } static const QueryResult& default_instance(); @@ -1352,11 +1246,11 @@ class QueryResult : return CreateMaybeMessage(nullptr); } - QueryResult* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + QueryResult* New(::google::protobuf::Arena* arena) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const QueryResult& from); void MergeFrom(const QueryResult& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -1364,28 +1258,25 @@ class QueryResult : size_t ByteSizeLong() const final; #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + 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; } #else bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + ::google::protobuf::io::CodedInputStream* input) final; #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + 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 ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -1393,14 +1284,7 @@ class QueryResult : } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1409,8 +1293,8 @@ class QueryResult : // int64 id = 1; void clear_id(); static const int kIdFieldNumber = 1; - ::PROTOBUF_NAMESPACE_ID::int64 id() const; - void set_id(::PROTOBUF_NAMESPACE_ID::int64 value); + ::google::protobuf::int64 id() const; + void set_id(::google::protobuf::int64 value); // double distance = 2; void clear_distance(); @@ -1422,30 +1306,32 @@ class QueryResult : private: class HasBitSetters; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::int64 id_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::int64 id_; double distance_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_milvus_2eproto; }; // ------------------------------------------------------------------- -class TopKQueryResult : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.TopKQueryResult) */ { +class TopKQueryResult final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.TopKQueryResult) */ { public: TopKQueryResult(); virtual ~TopKQueryResult(); TopKQueryResult(const TopKQueryResult& from); - TopKQueryResult(TopKQueryResult&& from) noexcept - : TopKQueryResult() { - *this = ::std::move(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=(TopKQueryResult&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -1454,15 +1340,9 @@ class TopKQueryResult : } return *this; } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); } static const TopKQueryResult& default_instance(); @@ -1485,11 +1365,11 @@ class TopKQueryResult : return CreateMaybeMessage(nullptr); } - TopKQueryResult* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + TopKQueryResult* New(::google::protobuf::Arena* arena) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const TopKQueryResult& from); void MergeFrom(const TopKQueryResult& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -1497,28 +1377,25 @@ class TopKQueryResult : size_t ByteSizeLong() const final; #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + 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; } #else bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + ::google::protobuf::io::CodedInputStream* input) final; #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + 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 ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -1526,14 +1403,7 @@ class TopKQueryResult : } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1544,11 +1414,11 @@ class TopKQueryResult : void clear_query_result_arrays(); static const int kQueryResultArraysFieldNumber = 2; ::milvus::grpc::QueryResult* mutable_query_result_arrays(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::QueryResult >* + ::google::protobuf::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 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::QueryResult >& + const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::QueryResult >& query_result_arrays() const; // .milvus.grpc.Status status = 1; @@ -1564,30 +1434,32 @@ class TopKQueryResult : private: class HasBitSetters; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::QueryResult > query_result_arrays_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::RepeatedPtrField< ::milvus::grpc::QueryResult > query_result_arrays_; ::milvus::grpc::Status* status_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_milvus_2eproto; }; // ------------------------------------------------------------------- -class StringReply : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.StringReply) */ { +class StringReply final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.StringReply) */ { public: StringReply(); virtual ~StringReply(); StringReply(const StringReply& from); - StringReply(StringReply&& from) noexcept - : StringReply() { - *this = ::std::move(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=(StringReply&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -1596,15 +1468,9 @@ class StringReply : } return *this; } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); } static const StringReply& default_instance(); @@ -1627,11 +1493,11 @@ class StringReply : return CreateMaybeMessage(nullptr); } - StringReply* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + StringReply* New(::google::protobuf::Arena* arena) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const StringReply& from); void MergeFrom(const StringReply& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -1639,28 +1505,25 @@ class StringReply : size_t ByteSizeLong() const final; #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + 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; } #else bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + ::google::protobuf::io::CodedInputStream* input) final; #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + 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 ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -1668,14 +1531,7 @@ class StringReply : } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1684,14 +1540,16 @@ class StringReply : // 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); - void set_string_reply(std::string&& value); + 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 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; @@ -1706,30 +1564,32 @@ class StringReply : private: class HasBitSetters; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr string_reply_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr string_reply_; ::milvus::grpc::Status* status_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_milvus_2eproto; }; // ------------------------------------------------------------------- -class BoolReply : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.BoolReply) */ { +class BoolReply final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.BoolReply) */ { public: BoolReply(); virtual ~BoolReply(); BoolReply(const BoolReply& from); - BoolReply(BoolReply&& from) noexcept - : BoolReply() { - *this = ::std::move(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=(BoolReply&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -1738,15 +1598,9 @@ class BoolReply : } return *this; } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); } static const BoolReply& default_instance(); @@ -1769,11 +1623,11 @@ class BoolReply : return CreateMaybeMessage(nullptr); } - BoolReply* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + BoolReply* New(::google::protobuf::Arena* arena) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const BoolReply& from); void MergeFrom(const BoolReply& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -1781,28 +1635,25 @@ class BoolReply : size_t ByteSizeLong() const final; #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + 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; } #else bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + ::google::protobuf::io::CodedInputStream* input) final; #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + 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 ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -1810,14 +1661,7 @@ class BoolReply : } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1842,30 +1686,32 @@ class BoolReply : private: class HasBitSetters; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::milvus::grpc::Status* status_; bool bool_reply_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_milvus_2eproto; }; // ------------------------------------------------------------------- -class TableRowCount : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.TableRowCount) */ { +class TableRowCount final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.TableRowCount) */ { public: TableRowCount(); virtual ~TableRowCount(); TableRowCount(const TableRowCount& from); - TableRowCount(TableRowCount&& from) noexcept - : TableRowCount() { - *this = ::std::move(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=(TableRowCount&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -1874,15 +1720,9 @@ class TableRowCount : } return *this; } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); } static const TableRowCount& default_instance(); @@ -1905,11 +1745,11 @@ class TableRowCount : return CreateMaybeMessage(nullptr); } - TableRowCount* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + TableRowCount* New(::google::protobuf::Arena* arena) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const TableRowCount& from); void MergeFrom(const TableRowCount& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -1917,28 +1757,25 @@ class TableRowCount : size_t ByteSizeLong() const final; #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + 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; } #else bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + ::google::protobuf::io::CodedInputStream* input) final; #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + 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 ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -1946,14 +1783,7 @@ class TableRowCount : } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1971,37 +1801,39 @@ class TableRowCount : // int64 table_row_count = 2; void clear_table_row_count(); static const int kTableRowCountFieldNumber = 2; - ::PROTOBUF_NAMESPACE_ID::int64 table_row_count() const; - void set_table_row_count(::PROTOBUF_NAMESPACE_ID::int64 value); + ::google::protobuf::int64 table_row_count() const; + void set_table_row_count(::google::protobuf::int64 value); // @@protoc_insertion_point(class_scope:milvus.grpc.TableRowCount) private: class HasBitSetters; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::milvus::grpc::Status* status_; - ::PROTOBUF_NAMESPACE_ID::int64 table_row_count_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::google::protobuf::int64 table_row_count_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_milvus_2eproto; }; // ------------------------------------------------------------------- -class Command : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.Command) */ { +class Command final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.Command) */ { public: Command(); virtual ~Command(); Command(const Command& from); - Command(Command&& from) noexcept - : Command() { - *this = ::std::move(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=(Command&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -2010,15 +1842,9 @@ class Command : } return *this; } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); } static const Command& default_instance(); @@ -2041,11 +1867,11 @@ class Command : return CreateMaybeMessage(nullptr); } - Command* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + Command* New(::google::protobuf::Arena* arena) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const Command& from); void MergeFrom(const Command& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -2053,28 +1879,25 @@ class Command : size_t ByteSizeLong() const final; #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + 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; } #else bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + ::google::protobuf::io::CodedInputStream* input) final; #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + 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 ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -2082,14 +1905,7 @@ class Command : } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2098,42 +1914,46 @@ class Command : // string cmd = 1; void clear_cmd(); static const int kCmdFieldNumber = 1; - const std::string& cmd() const; - void set_cmd(const std::string& value); - void set_cmd(std::string&& value); + const ::std::string& cmd() const; + void set_cmd(const ::std::string& value); + #if LANG_CXX11 + void set_cmd(::std::string&& value); + #endif 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; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr cmd_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr cmd_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_milvus_2eproto; }; // ------------------------------------------------------------------- -class ServerStatus : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.ServerStatus) */ { +class ServerStatus final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.ServerStatus) */ { public: ServerStatus(); virtual ~ServerStatus(); ServerStatus(const ServerStatus& from); - ServerStatus(ServerStatus&& from) noexcept - : ServerStatus() { - *this = ::std::move(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=(ServerStatus&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -2142,15 +1962,9 @@ class ServerStatus : } return *this; } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); } static const ServerStatus& default_instance(); @@ -2173,11 +1987,11 @@ class ServerStatus : return CreateMaybeMessage(nullptr); } - ServerStatus* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + ServerStatus* New(::google::protobuf::Arena* arena) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const ServerStatus& from); void MergeFrom(const ServerStatus& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -2185,28 +1999,25 @@ class ServerStatus : size_t ByteSizeLong() const final; #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + 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; } #else bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + ::google::protobuf::io::CodedInputStream* input) final; #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + 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 ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -2214,14 +2025,7 @@ class ServerStatus : } public: - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - private: - static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_milvus_2eproto); - return ::descriptor_table_milvus_2eproto.file_level_metadata[kIndexInFileMessages]; - } - - public: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2230,14 +2034,16 @@ class ServerStatus : // string info = 2; void clear_info(); static const int kInfoFieldNumber = 2; - const std::string& info() const; - void set_info(const std::string& value); - void set_info(std::string&& value); + const ::std::string& info() const; + void set_info(const ::std::string& value); + #if LANG_CXX11 + void set_info(::std::string&& value); + #endif 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; @@ -2252,10 +2058,10 @@ class ServerStatus : private: class HasBitSetters; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr info_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr info_; ::milvus::grpc::Status* status_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_milvus_2eproto; }; // =================================================================== @@ -2296,14 +2102,14 @@ inline ::milvus::grpc::Status* TableName::mutable_status() { return status_; } inline void TableName::set_allocated_status(::milvus::grpc::Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + delete reinterpret_cast< ::google::protobuf::MessageLite*>(status_); } if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + status = ::google::protobuf::internal::GetOwnedMessage( message_arena, status, submessage_arena); } @@ -2316,52 +2122,54 @@ inline void TableName::set_allocated_status(::milvus::grpc::Status* status) { // string table_name = 2; inline void TableName::clear_table_name() { - table_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + table_name_.ClearToEmptyNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + table_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.TableName.table_name) } -inline void TableName::set_table_name(std::string&& value) { +#if LANG_CXX11 +inline void TableName::set_table_name(::std::string&& value) { table_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + table_name_.SetNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + table_name_.SetNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return table_name_.MutableNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return table_name_.ReleaseNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), table_name); + table_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), table_name); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.TableName.table_name) } @@ -2402,14 +2210,14 @@ inline ::milvus::grpc::TableName* TableSchema::mutable_table_name() { return table_name_; } inline void TableSchema::set_allocated_table_name(::milvus::grpc::TableName* table_name) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { delete table_name_; } if (table_name) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - table_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + table_name = ::google::protobuf::internal::GetOwnedMessage( message_arena, table_name, submessage_arena); } @@ -2424,11 +2232,11 @@ inline void TableSchema::set_allocated_table_name(::milvus::grpc::TableName* tab inline void TableSchema::clear_index_type() { index_type_ = 0; } -inline ::PROTOBUF_NAMESPACE_ID::int32 TableSchema::index_type() const { +inline ::google::protobuf::int32 TableSchema::index_type() const { // @@protoc_insertion_point(field_get:milvus.grpc.TableSchema.index_type) return index_type_; } -inline void TableSchema::set_index_type(::PROTOBUF_NAMESPACE_ID::int32 value) { +inline void TableSchema::set_index_type(::google::protobuf::int32 value) { index_type_ = value; // @@protoc_insertion_point(field_set:milvus.grpc.TableSchema.index_type) @@ -2438,11 +2246,11 @@ inline void TableSchema::set_index_type(::PROTOBUF_NAMESPACE_ID::int32 value) { inline void TableSchema::clear_dimension() { dimension_ = PROTOBUF_LONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::int64 TableSchema::dimension() const { +inline ::google::protobuf::int64 TableSchema::dimension() const { // @@protoc_insertion_point(field_get:milvus.grpc.TableSchema.dimension) return dimension_; } -inline void TableSchema::set_dimension(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline void TableSchema::set_dimension(::google::protobuf::int64 value) { dimension_ = value; // @@protoc_insertion_point(field_set:milvus.grpc.TableSchema.dimension) @@ -2468,103 +2276,107 @@ inline void TableSchema::set_store_raw_vector(bool value) { // string start_value = 1; inline void Range::clear_start_value() { - start_value_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + start_value_.ClearToEmptyNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + start_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.Range.start_value) } -inline void Range::set_start_value(std::string&& value) { +#if LANG_CXX11 +inline void Range::set_start_value(::std::string&& value) { start_value_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + start_value_.SetNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + start_value_.SetNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return start_value_.MutableNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return start_value_.ReleaseNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), start_value); + start_value_.SetAllocatedNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + end_value_.ClearToEmptyNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + end_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.Range.end_value) } -inline void Range::set_end_value(std::string&& value) { +#if LANG_CXX11 +inline void Range::set_end_value(::std::string&& value) { end_value_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + end_value_.SetNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + end_value_.SetNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return end_value_.MutableNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return end_value_.ReleaseNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), end_value); + end_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), end_value); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.Range.end_value) } @@ -2591,12 +2403,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 ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >& +inline const ::google::protobuf::RepeatedField< float >& RowRecord::vector_data() const { // @@protoc_insertion_point(field_list:milvus.grpc.RowRecord.vector_data) return vector_data_; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< float >* +inline ::google::protobuf::RepeatedField< float >* RowRecord::mutable_vector_data() { // @@protoc_insertion_point(field_mutable_list:milvus.grpc.RowRecord.vector_data) return &vector_data_; @@ -2608,52 +2420,54 @@ RowRecord::mutable_vector_data() { // string table_name = 1; inline void InsertInfos::clear_table_name() { - table_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + table_name_.ClearToEmptyNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + table_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.InsertInfos.table_name) } -inline void InsertInfos::set_table_name(std::string&& value) { +#if LANG_CXX11 +inline void InsertInfos::set_table_name(::std::string&& value) { table_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + table_name_.SetNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + table_name_.SetNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return table_name_.MutableNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return table_name_.ReleaseNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), table_name); + table_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), table_name); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.InsertInfos.table_name) } @@ -2668,7 +2482,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 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::RowRecord >* +inline ::google::protobuf::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_; @@ -2681,7 +2495,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 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::RowRecord >& +inline const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::RowRecord >& InsertInfos::row_record_array() const { // @@protoc_insertion_point(field_list:milvus.grpc.InsertInfos.row_record_array) return row_record_array_; @@ -2718,14 +2532,14 @@ inline ::milvus::grpc::Status* VectorIds::mutable_status() { return status_; } inline void VectorIds::set_allocated_status(::milvus::grpc::Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + delete reinterpret_cast< ::google::protobuf::MessageLite*>(status_); } if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + status = ::google::protobuf::internal::GetOwnedMessage( message_arena, status, submessage_arena); } @@ -2743,24 +2557,24 @@ inline int VectorIds::vector_id_array_size() const { inline void VectorIds::clear_vector_id_array() { vector_id_array_.Clear(); } -inline ::PROTOBUF_NAMESPACE_ID::int64 VectorIds::vector_id_array(int index) const { +inline ::google::protobuf::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, ::PROTOBUF_NAMESPACE_ID::int64 value) { +inline void VectorIds::set_vector_id_array(int index, ::google::protobuf::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(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline void VectorIds::add_vector_id_array(::google::protobuf::int64 value) { vector_id_array_.Add(value); // @@protoc_insertion_point(field_add:milvus.grpc.VectorIds.vector_id_array) } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& +inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& VectorIds::vector_id_array() const { // @@protoc_insertion_point(field_list:milvus.grpc.VectorIds.vector_id_array) return vector_id_array_; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* +inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* VectorIds::mutable_vector_id_array() { // @@protoc_insertion_point(field_mutable_list:milvus.grpc.VectorIds.vector_id_array) return &vector_id_array_; @@ -2772,52 +2586,54 @@ VectorIds::mutable_vector_id_array() { // string table_name = 1; inline void SearchVectorInfos::clear_table_name() { - table_name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + table_name_.ClearToEmptyNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + table_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.SearchVectorInfos.table_name) } -inline void SearchVectorInfos::set_table_name(std::string&& value) { +#if LANG_CXX11 +inline void SearchVectorInfos::set_table_name(::std::string&& value) { table_name_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + table_name_.SetNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + table_name_.SetNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return table_name_.MutableNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return table_name_.ReleaseNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), table_name); + table_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), table_name); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.SearchVectorInfos.table_name) } @@ -2832,7 +2648,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 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::RowRecord >* +inline ::google::protobuf::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_; @@ -2845,7 +2661,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 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::RowRecord >& +inline const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::RowRecord >& SearchVectorInfos::query_record_array() const { // @@protoc_insertion_point(field_list:milvus.grpc.SearchVectorInfos.query_record_array) return query_record_array_; @@ -2862,7 +2678,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 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::Range >* +inline ::google::protobuf::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_; @@ -2875,7 +2691,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 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::Range >& +inline const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::Range >& SearchVectorInfos::query_range_array() const { // @@protoc_insertion_point(field_list:milvus.grpc.SearchVectorInfos.query_range_array) return query_range_array_; @@ -2885,11 +2701,11 @@ SearchVectorInfos::query_range_array() const { inline void SearchVectorInfos::clear_topk() { topk_ = PROTOBUF_LONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::int64 SearchVectorInfos::topk() const { +inline ::google::protobuf::int64 SearchVectorInfos::topk() const { // @@protoc_insertion_point(field_get:milvus.grpc.SearchVectorInfos.topk) return topk_; } -inline void SearchVectorInfos::set_topk(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline void SearchVectorInfos::set_topk(::google::protobuf::int64 value) { topk_ = value; // @@protoc_insertion_point(field_set:milvus.grpc.SearchVectorInfos.topk) @@ -2906,22 +2722,24 @@ 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); } -inline void SearchVectorInFilesInfos::set_file_id_array(int index, std::string&& value) { +#if LANG_CXX11 +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); @@ -2932,18 +2750,20 @@ 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) } -inline void SearchVectorInFilesInfos::add_file_id_array(std::string&& value) { +#if LANG_CXX11 +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); @@ -2953,12 +2773,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 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +inline const ::google::protobuf::RepeatedPtrField<::std::string>& SearchVectorInFilesInfos::file_id_array() const { // @@protoc_insertion_point(field_list:milvus.grpc.SearchVectorInFilesInfos.file_id_array) return file_id_array_; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +inline ::google::protobuf::RepeatedPtrField<::std::string>* SearchVectorInFilesInfos::mutable_file_id_array() { // @@protoc_insertion_point(field_mutable_list:milvus.grpc.SearchVectorInFilesInfos.file_id_array) return &file_id_array_; @@ -2997,14 +2817,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) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { delete search_vector_infos_; } if (search_vector_infos) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - search_vector_infos = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + search_vector_infos = ::google::protobuf::internal::GetOwnedMessage( message_arena, search_vector_infos, submessage_arena); } @@ -3023,11 +2843,11 @@ inline void SearchVectorInFilesInfos::set_allocated_search_vector_infos(::milvus inline void QueryResult::clear_id() { id_ = PROTOBUF_LONGLONG(0); } -inline ::PROTOBUF_NAMESPACE_ID::int64 QueryResult::id() const { +inline ::google::protobuf::int64 QueryResult::id() const { // @@protoc_insertion_point(field_get:milvus.grpc.QueryResult.id) return id_; } -inline void QueryResult::set_id(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline void QueryResult::set_id(::google::protobuf::int64 value) { id_ = value; // @@protoc_insertion_point(field_set:milvus.grpc.QueryResult.id) @@ -3078,14 +2898,14 @@ inline ::milvus::grpc::Status* TopKQueryResult::mutable_status() { return status_; } inline void TopKQueryResult::set_allocated_status(::milvus::grpc::Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + delete reinterpret_cast< ::google::protobuf::MessageLite*>(status_); } if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + status = ::google::protobuf::internal::GetOwnedMessage( message_arena, status, submessage_arena); } @@ -3107,7 +2927,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 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::QueryResult >* +inline ::google::protobuf::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_; @@ -3120,7 +2940,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 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::milvus::grpc::QueryResult >& +inline const ::google::protobuf::RepeatedPtrField< ::milvus::grpc::QueryResult >& TopKQueryResult::query_result_arrays() const { // @@protoc_insertion_point(field_list:milvus.grpc.TopKQueryResult.query_result_arrays) return query_result_arrays_; @@ -3157,14 +2977,14 @@ inline ::milvus::grpc::Status* StringReply::mutable_status() { return status_; } inline void StringReply::set_allocated_status(::milvus::grpc::Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + delete reinterpret_cast< ::google::protobuf::MessageLite*>(status_); } if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + status = ::google::protobuf::internal::GetOwnedMessage( message_arena, status, submessage_arena); } @@ -3177,52 +2997,54 @@ inline void StringReply::set_allocated_status(::milvus::grpc::Status* status) { // string string_reply = 2; inline void StringReply::clear_string_reply() { - string_reply_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + string_reply_.ClearToEmptyNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + string_reply_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.StringReply.string_reply) } -inline void StringReply::set_string_reply(std::string&& value) { +#if LANG_CXX11 +inline void StringReply::set_string_reply(::std::string&& value) { string_reply_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + string_reply_.SetNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + string_reply_.SetNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return string_reply_.MutableNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return string_reply_.ReleaseNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), string_reply); + string_reply_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), string_reply); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.StringReply.string_reply) } @@ -3257,14 +3079,14 @@ inline ::milvus::grpc::Status* BoolReply::mutable_status() { return status_; } inline void BoolReply::set_allocated_status(::milvus::grpc::Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + delete reinterpret_cast< ::google::protobuf::MessageLite*>(status_); } if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + status = ::google::protobuf::internal::GetOwnedMessage( message_arena, status, submessage_arena); } @@ -3320,14 +3142,14 @@ inline ::milvus::grpc::Status* TableRowCount::mutable_status() { return status_; } inline void TableRowCount::set_allocated_status(::milvus::grpc::Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + delete reinterpret_cast< ::google::protobuf::MessageLite*>(status_); } if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + status = ::google::protobuf::internal::GetOwnedMessage( message_arena, status, submessage_arena); } @@ -3342,11 +3164,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 ::PROTOBUF_NAMESPACE_ID::int64 TableRowCount::table_row_count() const { +inline ::google::protobuf::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(::PROTOBUF_NAMESPACE_ID::int64 value) { +inline void TableRowCount::set_table_row_count(::google::protobuf::int64 value) { table_row_count_ = value; // @@protoc_insertion_point(field_set:milvus.grpc.TableRowCount.table_row_count) @@ -3358,52 +3180,54 @@ inline void TableRowCount::set_table_row_count(::PROTOBUF_NAMESPACE_ID::int64 va // string cmd = 1; inline void Command::clear_cmd() { - cmd_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + cmd_.ClearToEmptyNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + cmd_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.Command.cmd) } -inline void Command::set_cmd(std::string&& value) { +#if LANG_CXX11 +inline void Command::set_cmd(::std::string&& value) { cmd_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + cmd_.SetNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + cmd_.SetNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return cmd_.MutableNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return cmd_.ReleaseNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), cmd); + cmd_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), cmd); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.Command.cmd) } @@ -3438,14 +3262,14 @@ inline ::milvus::grpc::Status* ServerStatus::mutable_status() { return status_; } inline void ServerStatus::set_allocated_status(::milvus::grpc::Status* status) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); + ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == nullptr) { - delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(status_); + delete reinterpret_cast< ::google::protobuf::MessageLite*>(status_); } if (status) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; + ::google::protobuf::Arena* submessage_arena = nullptr; if (message_arena != submessage_arena) { - status = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + status = ::google::protobuf::internal::GetOwnedMessage( message_arena, status, submessage_arena); } @@ -3458,52 +3282,54 @@ inline void ServerStatus::set_allocated_status(::milvus::grpc::Status* status) { // string info = 2; inline void ServerStatus::clear_info() { - info_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + info_.ClearToEmptyNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + info_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.ServerStatus.info) } -inline void ServerStatus::set_info(std::string&& value) { +#if LANG_CXX11 +inline void ServerStatus::set_info(::std::string&& value) { info_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + info_.SetNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + info_.SetNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return info_.MutableNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return info_.ReleaseNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), info); + info_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), info); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.ServerStatus.info) } @@ -3547,4 +3373,4 @@ inline void ServerStatus::set_allocated_info(std::string* info) { // @@protoc_insertion_point(global_scope) #include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_milvus_2eproto +#endif // 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 5e3d4888ef24b6200d2ebdbbef72451bdab9da50..c645a1e4739b66366174df86d745382400819e5c 100644 --- a/cpp/src/grpc/gen-status/status.grpc.pb.h +++ b/cpp/src/grpc/gen-status/status.grpc.pb.h @@ -11,28 +11,20 @@ #include #include #include -#include #include #include #include #include -#include #include #include #include #include -namespace grpc_impl { +namespace grpc { 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 35a41482b129688dccb7a21cf32fc69eb8e69e3d..96d5345328d9285a3ab13412bee81fa4d2911ec9 100644 --- a/cpp/src/grpc/gen-status/status.pb.cc +++ b/cpp/src/grpc/gen-status/status.pb.cc @@ -8,40 +8,45 @@ #include #include #include -#include +#include #include #include #include #include // @@protoc_insertion_point(includes) #include + namespace milvus { namespace grpc { class StatusDefaultTypeInternal { public: - ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed _instance; + ::google::protobuf::internal::ExplicitlyConstructed _instance; } _Status_default_instance_; } // namespace grpc } // namespace milvus -static void InitDefaultsscc_info_Status_status_2eproto() { +static void InitDefaultsStatus_status_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::milvus::grpc::_Status_default_instance_; new (ptr) ::milvus::grpc::Status(); - ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::milvus::grpc::Status::InitAsDefaultInstance(); } -::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::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); +} -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; +::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; -const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_status_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +const ::google::protobuf::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_ @@ -50,12 +55,18 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_status_2eproto::offsets[] PROT PROTOBUF_FIELD_OFFSET(::milvus::grpc::Status, error_code_), PROTOBUF_FIELD_OFFSET(::milvus::grpc::Status, reason_), }; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { +static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::milvus::grpc::Status)}, }; -static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { - reinterpret_cast(&::milvus::grpc::_Status_default_instance_), +static ::google::protobuf::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[] = @@ -75,26 +86,25 @@ 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" ; -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, +::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, }; +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 = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_status_2eproto), true); +static bool dynamic_init_dummy_status_2eproto = []() { AddDescriptors_status_2eproto(); return true; }(); namespace milvus { namespace grpc { -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ErrorCode_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_status_2eproto); +const ::google::protobuf::EnumDescriptor* ErrorCode_descriptor() { + ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_status_2eproto); return file_level_enum_descriptors_status_2eproto[0]; } bool ErrorCode_IsValid(int value) { @@ -142,25 +152,26 @@ const int Status::kReasonFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Status::Status() - : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:milvus.grpc.Status) } Status::Status(const Status& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), + : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - reason_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + reason_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.reason().size() > 0) { - reason_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.reason_); + reason_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_); } error_code_ = from.error_code_; // @@protoc_insertion_point(copy_constructor:milvus.grpc.Status) } void Status::SharedCtor() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Status_status_2eproto.base); - reason_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + ::google::protobuf::internal::InitSCC( + &scc_info_Status_status_2eproto.base); + reason_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); error_code_ = 0; } @@ -170,88 +181,106 @@ Status::~Status() { } void Status::SharedDtor() { - reason_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + reason_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void Status::SetCachedSize(int size) const { _cached_size_.Set(size); } const Status& Status::default_instance() { - ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Status_status_2eproto.base); + ::google::protobuf::internal::InitSCC(&::scc_info_Status_status_2eproto.base); return *internal_default_instance(); } void Status::Clear() { // @@protoc_insertion_point(message_clear_start:milvus.grpc.Status) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - reason_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + reason_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); error_code_ = 0; _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -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); +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); switch (tag >> 3) { // .milvus.grpc.ErrorCode error_code = 1; - 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; + 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; + } // string reason = 2; - 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; + 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; + } default: { handle_unusual: if ((tag & 7) == 4 || tag == 0) { - ctx->SetLastTag(tag); - goto success; + ctx->EndGroup(tag); + return ptr; } - ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); - CHK_(ptr != nullptr); - continue; + 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; } } // switch } // while -success: return ptr; -failure: - ptr = nullptr; - goto success; -#undef CHK_ +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); } #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER bool Status::MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { + ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure - ::PROTOBUF_NAMESPACE_ID::uint32 tag; + ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:milvus.grpc.Status) for (;;) { - ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; - switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { + switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .milvus.grpc.ErrorCode error_code = 1; case 1: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { int value = 0; - DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< - int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>( + DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< + int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); set_error_code(static_cast< ::milvus::grpc::ErrorCode >(value)); } else { @@ -262,12 +291,12 @@ bool Status::MergePartialFromCodedStream( // string reason = 2; case 2: { - if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_reason())); - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->reason().data(), static_cast(this->reason().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, + ::google::protobuf::internal::WireFormatLite::PARSE, "milvus.grpc.Status.reason")); } else { goto handle_unusual; @@ -280,7 +309,7 @@ bool Status::MergePartialFromCodedStream( if (tag == 0) { goto success; } - DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( + DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } @@ -297,59 +326,59 @@ failure: #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void Status::SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { + ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:milvus.grpc.Status) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .milvus.grpc.ErrorCode error_code = 1; if (this->error_code() != 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum( + ::google::protobuf::internal::WireFormatLite::WriteEnum( 1, this->error_code(), output); } // string reason = 2; if (this->reason().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->reason().data(), static_cast(this->reason().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "milvus.grpc.Status.reason"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( + ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->reason(), output); } if (_internal_metadata_.have_unknown_fields()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:milvus.grpc.Status) } -::PROTOBUF_NAMESPACE_ID::uint8* Status::InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const { +::google::protobuf::uint8* Status::InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:milvus.grpc.Status) - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .milvus.grpc.ErrorCode error_code = 1; if (this->error_code() != 0) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 1, this->error_code(), target); } // string reason = 2; if (this->reason().size() > 0) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->reason().data(), static_cast(this->reason().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + ::google::protobuf::internal::WireFormatLite::SERIALIZE, "milvus.grpc.Status.reason"); target = - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( + ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->reason(), target); } if (_internal_metadata_.have_unknown_fields()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( + target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:milvus.grpc.Status) @@ -362,40 +391,40 @@ size_t Status::ByteSizeLong() const { if (_internal_metadata_.have_unknown_fields()) { total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( + ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::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 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + ::google::protobuf::internal::WireFormatLite::StringSize( this->reason()); } // .milvus.grpc.ErrorCode error_code = 1; if (this->error_code() != 0) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->error_code()); + ::google::protobuf::internal::WireFormatLite::EnumSize(this->error_code()); } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void Status::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void Status::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:milvus.grpc.Status) GOOGLE_DCHECK_NE(&from, this); const Status* source = - ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated( + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:milvus.grpc.Status) - ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); + ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:milvus.grpc.Status) MergeFrom(*source); @@ -406,19 +435,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_); - ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; + ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.reason().size() > 0) { - reason_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.reason_); + reason_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_); } if (from.error_code() != 0) { set_error_code(from.error_code()); } } -void Status::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { +void Status::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:milvus.grpc.Status) if (&from == this) return; Clear(); @@ -443,24 +472,27 @@ void Status::Swap(Status* other) { void Status::InternalSwap(Status* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - reason_.Swap(&other->reason_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + reason_.Swap(&other->reason_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); swap(error_code_, other->error_code_); } -::PROTOBUF_NAMESPACE_ID::Metadata Status::GetMetadata() const { - return GetMetadataStatic(); +::google::protobuf::Metadata Status::GetMetadata() const { + ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_status_2eproto); + return ::file_level_metadata_status_2eproto[kIndexInFileMessages]; } // @@protoc_insertion_point(namespace_scope) } // namespace grpc } // namespace milvus -PROTOBUF_NAMESPACE_OPEN +namespace google { +namespace protobuf { template<> PROTOBUF_NOINLINE ::milvus::grpc::Status* Arena::CreateMaybeMessage< ::milvus::grpc::Status >(Arena* arena) { return Arena::CreateInternal< ::milvus::grpc::Status >(arena); } -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // @@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 996814b6d1fb32fdd912c0a2f8ce87714cd8be89..ce6ddcd87c2909d63bdcf976faced1a0c4fdaf0f 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 GOOGLE_PROTOBUF_INCLUDED_status_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_status_2eproto +#ifndef PROTOBUF_INCLUDED_status_2eproto +#define PROTOBUF_INCLUDED_status_2eproto #include #include #include -#if PROTOBUF_VERSION < 3008000 +#if PROTOBUF_VERSION < 3007000 #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 3008000 < PROTOBUF_MIN_PROTOC_VERSION +#if 3007000 < 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,7 +27,6 @@ #include #include #include -#include #include #include // IWYU pragma: export #include // IWYU pragma: export @@ -36,25 +35,20 @@ // @@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 ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] + static const ::google::protobuf::internal::ParseTableField entries[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] + static const ::google::protobuf::internal::AuxillaryParseTableField aux[] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] + static const ::google::protobuf::internal::ParseTable schema[1] PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; + static const ::google::protobuf::internal::FieldMetadata field_metadata[]; + static const ::google::protobuf::internal::SerializationTable serialization_table[]; + static const ::google::protobuf::uint32 offsets[]; }; -extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_status_2eproto; +void AddDescriptors_status_2eproto(); namespace milvus { namespace grpc { class Status; @@ -62,13 +56,15 @@ class StatusDefaultTypeInternal; extern StatusDefaultTypeInternal _Status_default_instance_; } // namespace grpc } // namespace milvus -PROTOBUF_NAMESPACE_OPEN +namespace google { +namespace protobuf { template<> ::milvus::grpc::Status* Arena::CreateMaybeMessage<::milvus::grpc::Status>(Arena*); -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google namespace milvus { namespace grpc { -enum ErrorCode : int { +enum ErrorCode { SUCCESS = 0, UNEXPECTED_ERROR = 1, CONNECT_FAILED = 2, @@ -91,46 +87,44 @@ enum ErrorCode : int { CANNOT_DELETE_FOLDER = 19, CANNOT_DELETE_FILE = 20, BUILD_INDEX_ERROR = 21, - 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() + 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() }; bool ErrorCode_IsValid(int 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); +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); } inline bool ErrorCode_Parse( - const std::string& name, ErrorCode* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + const ::std::string& name, ErrorCode* value) { + return ::google::protobuf::internal::ParseNamedEnum( ErrorCode_descriptor(), name, value); } // =================================================================== -class Status : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.Status) */ { +class Status final : + public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:milvus.grpc.Status) */ { public: Status(); virtual ~Status(); Status(const Status& from); - Status(Status&& from) noexcept - : Status() { - *this = ::std::move(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=(Status&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); @@ -139,15 +133,9 @@ class Status : } return *this; } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + #endif + static const ::google::protobuf::Descriptor* descriptor() { + return default_instance().GetDescriptor(); } static const Status& default_instance(); @@ -170,11 +158,11 @@ class Status : return CreateMaybeMessage(nullptr); } - Status* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { + Status* New(::google::protobuf::Arena* arena) const final { return CreateMaybeMessage(arena); } - void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; - void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; + void CopyFrom(const ::google::protobuf::Message& from) final; + void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const Status& from); void MergeFrom(const Status& from); PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; @@ -182,28 +170,25 @@ class Status : size_t ByteSizeLong() const final; #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + 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; } #else bool MergePartialFromCodedStream( - ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; + ::google::protobuf::io::CodedInputStream* input) final; #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; - ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( - ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; + ::google::protobuf::io::CodedOutputStream* output) const final; + ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + 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 ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { + inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return nullptr; } inline void* MaybeArenaPtr() const { @@ -211,14 +196,7 @@ class Status : } public: - ::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: + ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -227,14 +205,16 @@ class Status : // string reason = 2; void clear_reason(); static const int kReasonFieldNumber = 2; - const std::string& reason() const; - void set_reason(const std::string& value); - void set_reason(std::string&& value); + const ::std::string& reason() const; + void set_reason(const ::std::string& value); + #if LANG_CXX11 + void set_reason(::std::string&& value); + #endif 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(); @@ -246,10 +226,10 @@ class Status : private: class HasBitSetters; - ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr reason_; + ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; + ::google::protobuf::internal::ArenaStringPtr reason_; int error_code_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; friend struct ::TableStruct_status_2eproto; }; // =================================================================== @@ -279,52 +259,54 @@ inline void Status::set_error_code(::milvus::grpc::ErrorCode value) { // string reason = 2; inline void Status::clear_reason() { - reason_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + reason_.ClearToEmptyNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); + reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:milvus.grpc.Status.reason) } -inline void Status::set_reason(std::string&& value) { +#if LANG_CXX11 +inline void Status::set_reason(::std::string&& value) { reason_.SetNoArena( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); + &::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); + reason_.SetNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + reason_.SetNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return reason_.MutableNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + return reason_.ReleaseNoArena(&::google::protobuf::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), reason); + reason_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), reason); // @@protoc_insertion_point(field_set_allocated:milvus.grpc.Status.reason) } @@ -337,7 +319,8 @@ inline void Status::set_allocated_reason(std::string* reason) { } // namespace grpc } // namespace milvus -PROTOBUF_NAMESPACE_OPEN +namespace google { +namespace protobuf { template <> struct is_proto_enum< ::milvus::grpc::ErrorCode> : ::std::true_type {}; template <> @@ -345,9 +328,10 @@ inline const EnumDescriptor* GetEnumDescriptor< ::milvus::grpc::ErrorCode>() { return ::milvus::grpc::ErrorCode_descriptor(); } -PROTOBUF_NAMESPACE_CLOSE +} // namespace protobuf +} // namespace google // @@protoc_insertion_point(global_scope) #include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_status_2eproto +#endif // PROTOBUF_INCLUDED_status_2eproto diff --git a/cpp/src/server/grpc_impl/RequestScheduler.cpp b/cpp/src/server/grpc_impl/RequestScheduler.cpp index 4cc0e9760d1d47299f9ad0869ab25732f3f3f1f7..5643d6aae2f46ad9295702fca44dedb15fb7692d 100644 --- a/cpp/src/server/grpc_impl/RequestScheduler.cpp +++ b/cpp/src/server/grpc_impl/RequestScheduler.cpp @@ -102,13 +102,12 @@ void RequestScheduler::ExecTask(BaseTaskPtr& task_ptr, ::milvus::grpc::Status *g RequestScheduler& scheduler = RequestScheduler::GetInstance(); scheduler.ExecuteTask(task_ptr); - if(!task_ptr->IsAsync()) { task_ptr->WaitToFinish(); ServerError err = task_ptr->ErrorCode(); if (err != SERVER_SUCCESS) { grpc_status->set_reason(task_ptr->ErrorMsg()); - grpc_status->set_error_code(::milvus::grpc::ErrorCode((int) err)); + grpc_status->set_error_code(ErrorMap().at(err)); } else { // grpc_status->set_error_code(::milvus::ErrorCode((int) SERVER_SUCCESS)); } diff --git a/cpp/start_server.sh b/cpp/start_server.sh index 50bf8b84a866a743fd43ce9e421568421ba28202..e215242471367783ec24c703dc773405808e60a7 100755 --- a/cpp/start_server.sh +++ b/cpp/start_server.sh @@ -1,4 +1,4 @@ #!/bin/bash -./cmake_build/src/milvus_server -c ./conf/server_config.yaml -l ./conf/log_config.conf & +./cmake_build/src/milvus_grpc_server -c ./conf/server_config.yaml -l ./conf/log_config.conf &