PredictionService class final
A service for online predictions and explanations.
Constructors
- PredictionService({required Client client})
-
Creates a
PredictionServiceusingclientfor transport. - PredictionService.fromApiKey([String? apiKey])
-
Creates a
PredictionServicethat does authentication through an API key.factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cancelOperation(
CancelOperationRequest request) → Future< void> -
Provides the
Operationsservice functionality in this service. -
close(
) → void - Closes the client and cleans up any resources associated with it.
-
deleteOperation(
DeleteOperationRequest request) → Future< void> -
Provides the
Operationsservice functionality in this service. -
getOperation<
T extends ProtoMessage, S extends ProtoMessage> (Operation< T, S> request) → Future<Operation< T, S> > -
Provides the
Operationsservice functionality in this service. -
listOperations(
ListOperationsRequest request) → Future< ListOperationsResponse> -
Provides the
Operationsservice functionality in this service. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
predict(
PredictRequest request) → Future< PredictResponse> - Performs a prediction request.
-
predictLongRunning(
PredictLongRunningRequest request) → Future< Operation< PredictLongRunningResponse, PredictLongRunningMetadata> > - Same as Predict but returns an LRO.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited