Go to the documentation of this file.
19 #ifndef GRPCPP_GENERIC_GENERIC_STUB_H
20 #define GRPCPP_GENERIC_GENERIC_STUB_H
44 template <
class RequestType,
class ResponseType>
54 std::unique_ptr<ClientAsyncReaderWriter<RequestType, ResponseType>>
68 return std::unique_ptr<ClientAsyncResponseReader<ResponseType>>(
69 internal::ClientAsyncResponseReaderHelper::Create<ResponseType>(
83 std::unique_ptr<ClientAsyncReaderWriter<RequestType, ResponseType>>
Call(
139 internal::ClientCallbackUnaryFactory::Create<RequestType, ResponseType>(
157 std::unique_ptr<ClientAsyncReaderWriter<RequestType, ResponseType>>
161 return std::unique_ptr<ClientAsyncReaderWriter<RequestType, ResponseType>>(
175 #endif // GRPCPP_GENERIC_GENERIC_STUB_H
ClientBidiReactor is the interface for a bidirectional streaming RPC.
static void Create(grpc::ChannelInterface *channel, const grpc::internal::RpcMethod &method, grpc::ClientContext *context, ClientBidiReactor< Request, Response > *reactor)
ClientAsyncResponseReader< ByteBuffer > GenericClientAsyncResponseReader
void CallbackUnaryCall(grpc::ChannelInterface *channel, const grpc::internal::RpcMethod &method, grpc::ClientContext *context, const InputMessage *request, OutputMessage *result, std::function< void(grpc::Status)> on_completion)
void PrepareBidiStreamingCall(ClientContext *context, const std::string &method, StubOptions options, ClientBidiReactor< RequestType, ResponseType > *reactor)
std::shared_ptr< grpc::ChannelInterface > channel_
void UnaryCall(ClientContext *context, const std::string &method, StubOptions options, const RequestType *request, ResponseType *response, std::function< void(grpc::Status)> on_completion)
Codegen interface for grpc::Channel.
wrapped_grpc_channel * channel
constexpr absl::remove_reference_t< T > && move(T &&t) noexcept
Descriptor of an RPC method.
static void * tag(intptr_t t)
std::unique_ptr< ClientAsyncReaderWriter< RequestType, ResponseType > > CallInternal(grpc::ChannelInterface *channel, ClientContext *context, const std::string &method, StubOptions options, grpc::CompletionQueue *cq, bool start, void *tag)
void PrepareUnaryCall(ClientContext *context, const std::string &method, StubOptions options, const RequestType *request, ResponseType *response, ClientUnaryReactor *reactor)
ClientAsyncReaderWriter< ByteBuffer, ByteBuffer > GenericClientAsyncReaderWriter
std::unique_ptr< ClientAsyncReaderWriter< RequestType, ResponseType > > PrepareCall(ClientContext *context, const std::string &method, grpc::CompletionQueue *cq)
void PrepareUnaryCallInternal(ClientContext *context, const std::string &method, StubOptions options, const RequestType *request, ResponseType *response, ClientUnaryReactor *reactor)
static ClientAsyncReaderWriter< W, R > * Create(grpc::ChannelInterface *channel, grpc::CompletionQueue *cq, const grpc::internal::RpcMethod &method, grpc::ClientContext *context, bool start, void *tag)
void UnaryCallInternal(ClientContext *context, const std::string &method, StubOptions options, const RequestType *request, ResponseType *response, std::function< void(grpc::Status)> on_completion)
std::unique_ptr< ClientAsyncResponseReader< ResponseType > > PrepareUnaryCall(ClientContext *context, const std::string &method, const RequestType &request, grpc::CompletionQueue *cq)
TemplatedGenericStub< grpc::ByteBuffer, grpc::ByteBuffer > GenericStub
TemplatedGenericStub(std::shared_ptr< grpc::ChannelInterface > channel)
Useful interface for generated stubs.
std::unique_ptr< ClientAsyncReaderWriter< RequestType, ResponseType > > Call(ClientContext *context, const std::string &method, grpc::CompletionQueue *cq, void *tag)
grpc::ClientContext context
void PrepareBidiStreamingCallInternal(ClientContext *context, const std::string &method, StubOptions options, ClientBidiReactor< RequestType, ResponseType > *reactor)
static grpc_completion_queue * cq
grpc
Author(s):
autogenerated on Fri May 16 2025 02:58:28