directPredict method
Perform an unary online prediction request to a gRPC model server for Vertex first-party products and frameworks.
Throws a http.ClientException if there were problems communicating with
the API service. Throws a ServiceException if the API method failed for
any reason.
Implementation
@override
Future<DirectPredictResponse> directPredict(
DirectPredictRequest request,
) async {
if (isClosed) throw StateError('Service is closed');
if (_directPredict case final directPredict?) {
return directPredict(request);
}
throw UnsupportedError('directPredict');
}