mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
84 lines
4.3 KiB
C++
84 lines
4.3 KiB
C++
// Generated by the gRPC C++ plugin.
|
|
// If you make any local change, they will be lost.
|
|
// source: master.proto
|
|
|
|
#include "master.pb.h"
|
|
#include "master.grpc.pb.h"
|
|
|
|
#include <functional>
|
|
#include <grpcpp/impl/codegen/async_stream.h>
|
|
#include <grpcpp/impl/codegen/async_unary_call.h>
|
|
#include <grpcpp/impl/codegen/channel_interface.h>
|
|
#include <grpcpp/impl/codegen/client_unary_call.h>
|
|
#include <grpcpp/impl/codegen/client_callback.h>
|
|
#include <grpcpp/impl/codegen/method_handler_impl.h>
|
|
#include <grpcpp/impl/codegen/rpc_service_method.h>
|
|
#include <grpcpp/impl/codegen/server_callback.h>
|
|
#include <grpcpp/impl/codegen/service_type.h>
|
|
#include <grpcpp/impl/codegen/sync_stream.h>
|
|
namespace masterpb {
|
|
|
|
static const char* Master_method_names[] = {
|
|
"/masterpb.Master/CreateCollection",
|
|
};
|
|
|
|
std::unique_ptr< Master::Stub> Master::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) {
|
|
(void)options;
|
|
std::unique_ptr< Master::Stub> stub(new Master::Stub(channel));
|
|
return stub;
|
|
}
|
|
|
|
Master::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel)
|
|
: channel_(channel), rpcmethod_CreateCollection_(Master_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
|
{}
|
|
|
|
::grpc::Status Master::Stub::CreateCollection(::grpc::ClientContext* context, const ::milvus::grpc::Mapping& request, ::milvus::grpc::Status* response) {
|
|
return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateCollection_, context, request, response);
|
|
}
|
|
|
|
void Master::Stub::experimental_async::CreateCollection(::grpc::ClientContext* context, const ::milvus::grpc::Mapping* request, ::milvus::grpc::Status* response, std::function<void(::grpc::Status)> f) {
|
|
::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateCollection_, context, request, response, std::move(f));
|
|
}
|
|
|
|
void Master::Stub::experimental_async::CreateCollection(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, std::function<void(::grpc::Status)> f) {
|
|
::grpc_impl::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateCollection_, context, request, response, std::move(f));
|
|
}
|
|
|
|
void Master::Stub::experimental_async::CreateCollection(::grpc::ClientContext* context, const ::milvus::grpc::Mapping* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) {
|
|
::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateCollection_, context, request, response, reactor);
|
|
}
|
|
|
|
void Master::Stub::experimental_async::CreateCollection(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::milvus::grpc::Status* response, ::grpc::experimental::ClientUnaryReactor* reactor) {
|
|
::grpc_impl::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateCollection_, context, request, response, reactor);
|
|
}
|
|
|
|
::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* Master::Stub::AsyncCreateCollectionRaw(::grpc::ClientContext* context, const ::milvus::grpc::Mapping& request, ::grpc::CompletionQueue* cq) {
|
|
return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::Status>::Create(channel_.get(), cq, rpcmethod_CreateCollection_, context, request, true);
|
|
}
|
|
|
|
::grpc::ClientAsyncResponseReader< ::milvus::grpc::Status>* Master::Stub::PrepareAsyncCreateCollectionRaw(::grpc::ClientContext* context, const ::milvus::grpc::Mapping& request, ::grpc::CompletionQueue* cq) {
|
|
return ::grpc_impl::internal::ClientAsyncResponseReaderFactory< ::milvus::grpc::Status>::Create(channel_.get(), cq, rpcmethod_CreateCollection_, context, request, false);
|
|
}
|
|
|
|
Master::Service::Service() {
|
|
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
|
Master_method_names[0],
|
|
::grpc::internal::RpcMethod::NORMAL_RPC,
|
|
new ::grpc::internal::RpcMethodHandler< Master::Service, ::milvus::grpc::Mapping, ::milvus::grpc::Status>(
|
|
std::mem_fn(&Master::Service::CreateCollection), this)));
|
|
}
|
|
|
|
Master::Service::~Service() {
|
|
}
|
|
|
|
::grpc::Status Master::Service::CreateCollection(::grpc::ServerContext* context, const ::milvus::grpc::Mapping* request, ::milvus::grpc::Status* response) {
|
|
(void) context;
|
|
(void) request;
|
|
(void) response;
|
|
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
|
}
|
|
|
|
|
|
} // namespace masterpb
|
|
|