#include </data/code/userver/libraries/grpc-proto-structs/include/userver/grpc-proto-structs/client/stream.hpp>
proto-struct based Writer adapter.
Definition at line 59 of file stream.hpp.
Public Types | |
using | ProtobufResponse = proto_structs::traits::CompatibleMessageType<StructsResponse> |
using | ProtobufRequest = proto_structs::traits::CompatibleMessageType<StructsRequest> |
using | ProtobufWriter = ugrpc::client::Writer<ProtobufRequest, ProtobufResponse> |
Public Member Functions | |
Writer (ProtobufWriter &&writer) | |
Writer (Writer &&)=default | |
Writer & | operator= (Writer &&)=default |
bool | Write (const StructsRequest &request) |
Write the next outgoing message. | |
bool | Write (StructsRequest &&request) |
Write the next outgoing message. | |
void | WriteAndCheck (const StructsRequest &request) |
Write the next outgoing message and check result. | |
void | WriteAndCheck (StructsRequest &&request) |
Write the next outgoing message and check result. | |
StructsResponse | Finish () |
Complete the RPC successfully. | |
ugrpc::client::CallContext & | GetContext () |
Get call context, useful e.g. for accessing metadata. | |
const ugrpc::client::CallContext & | GetContext () const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
using grpc_proto_structs::client::Writer< StructsRequest, StructsResponse >::ProtobufRequest = proto_structs::traits::CompatibleMessageType<StructsRequest> |
Definition at line 62 of file stream.hpp.
using grpc_proto_structs::client::Writer< StructsRequest, StructsResponse >::ProtobufResponse = proto_structs::traits::CompatibleMessageType<StructsResponse> |
Definition at line 61 of file stream.hpp.
using grpc_proto_structs::client::Writer< StructsRequest, StructsResponse >::ProtobufWriter = ugrpc::client::Writer<ProtobufRequest, ProtobufResponse> |
Definition at line 64 of file stream.hpp.
|
inlineexplicit |
Definition at line 66 of file stream.hpp.
|
inline |
Complete the RPC successfully.
Definition at line 92 of file stream.hpp.
|
inline |
Get call context, useful e.g. for accessing metadata.
Definition at line 95 of file stream.hpp.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 98 of file stream.hpp.
|
inlinenodiscard |
Write the next outgoing message.
Definition at line 72 of file stream.hpp.
|
inlinenodiscard |
Write the next outgoing message.
Definition at line 77 of file stream.hpp.
|
inline |
Write the next outgoing message and check result.
Definition at line 82 of file stream.hpp.
|
inline |
Write the next outgoing message and check result.
Definition at line 87 of file stream.hpp.