9#include <grpcpp/client_context.h>
10#include <grpcpp/support/byte_buffer.h>
12#include <userver/ugrpc/client/impl/client_data.hpp>
13#include <userver/ugrpc/client/qos.hpp>
14#include <userver/ugrpc/client/rpc.hpp>
16USERVER_NAMESPACE_BEGIN
65class GenericClient
final {
67 GenericClient(GenericClient&&)
noexcept =
default;
68 GenericClient& operator=(GenericClient&&)
noexcept =
delete;
71 client::UnaryCall<grpc::ByteBuffer> UnaryCall(
72 std::string_view call_name,
const grpc::ByteBuffer& request,
73 std::unique_ptr<grpc::ClientContext> context =
74 std::make_unique<grpc::ClientContext>(),
79 explicit GenericClient(impl::ClientParams&&);
83 template <
typename Client>
84 friend impl::ClientData& impl::GetClientData(Client& client);
86 impl::ClientData impl_;