#include <generic_stub.h>
Private Member Functions | |
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 | PrepareBidiStreamingCallInternal (ClientContext *context, const std::string &method, StubOptions options, ClientBidiReactor< RequestType, ResponseType > *reactor) |
void | PrepareUnaryCallInternal (ClientContext *context, const std::string &method, StubOptions options, const RequestType *request, ResponseType *response, ClientUnaryReactor *reactor) |
void | UnaryCallInternal (ClientContext *context, const std::string &method, StubOptions options, const RequestType *request, ResponseType *response, std::function< void(grpc::Status)> on_completion) |
Private Attributes | |
std::shared_ptr< grpc::ChannelInterface > | channel_ |
Generic stubs provide a type-unaware interface to call gRPC methods by name. In practice, the Request and Response types should be basic types like grpc::ByteBuffer or proto::MessageLite (the base protobuf).
Definition at line 45 of file grpcpp/generic/generic_stub.h.
|
inlineexplicit |
Definition at line 47 of file grpcpp/generic/generic_stub.h.
|
inline |
DEPRECATED for multi-threaded use Begin a call to a named method method using context. A tag tag will be delivered to cq when the call has been started (i.e, initial metadata has been sent). The return value only indicates whether or not registration of the call succeeded (i.e. the call won't proceed if the return value is nullptr).
Definition at line 83 of file grpcpp/generic/generic_stub.h.
|
inlineprivate |
Definition at line 158 of file grpcpp/generic/generic_stub.h.
|
inline |
Setup a call to a named method method using context and tied to reactor . Like any other bidi streaming RPC, it will not be activated until StartCall is invoked on its reactor.
Definition at line 114 of file grpcpp/generic/generic_stub.h.
|
inlineprivate |
Definition at line 146 of file grpcpp/generic/generic_stub.h.
|
inline |
Setup a call to a named method method using context, but don't start it. Let it be started explicitly with StartCall and a tag. The return value only indicates whether or not registration of the call succeeded (i.e. the call won't proceed if the return value is nullptr).
Definition at line 55 of file grpcpp/generic/generic_stub.h.
|
inline |
Setup a unary call to a named method method using context, and don't start it. Let it be started explicitly with StartCall. The return value only indicates whether or not registration of the call succeeded (i.e. the call won't proceed if the return value is nullptr).
Definition at line 65 of file grpcpp/generic/generic_stub.h.
|
inline |
Setup a unary call to a named method method using context and specifying the request and response buffers. Like any other reactor-based RPC, it will not be activated until StartCall is invoked on its reactor.
Definition at line 104 of file grpcpp/generic/generic_stub.h.
|
inlineprivate |
Definition at line 134 of file grpcpp/generic/generic_stub.h.
|
inline |
Setup and start a unary call to a named method method using context and specifying the request and response buffers.
Definition at line 92 of file grpcpp/generic/generic_stub.h.
|
inlineprivate |
Definition at line 123 of file grpcpp/generic/generic_stub.h.
|
private |
Definition at line 121 of file grpcpp/generic/generic_stub.h.