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,
73 const grpc::ByteBuffer& request,
74 std::unique_ptr<grpc::ClientContext> context = std::make_unique<grpc::ClientContext>(),
80 explicit GenericClient(impl::ClientDependencies&&);
84 template <
typename Client>
85 friend impl::ClientData& impl::GetClientData(Client& client);
87 impl::ClientData impl_;