/** * Executes a unary call and returns a {@link ListenableFuture} to the response. * * @return a future for the single response message. */ public static <ReqT, RespT> ListenableFuture<RespT> futureUnaryCall( ClientCall<ReqT, RespT> call, ReqT param) { GrpcFuture<RespT> responseFuture = new GrpcFuture<RespT>(call); asyncUnaryRequestCall(call, param, new UnaryStreamToFuture<RespT>(responseFuture), false); return responseFuture; }