PredictionService class final

A service for online predictions and explanations.

Constructors

PredictionService({required Client client})
Creates a PredictionService using client for transport.
PredictionService.fromApiKey([String? apiKey])
Creates a PredictionService that 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 Operations service functionality in this service.
close() → void
Closes the client and cleans up any resources associated with it.
deleteOperation(DeleteOperationRequest request) Future<void>
Provides the Operations service functionality in this service.
getOperation<T extends ProtoMessage, S extends ProtoMessage>(Operation<T, S> request) Future<Operation<T, S>>
Provides the Operations service functionality in this service.
listOperations(ListOperationsRequest request) Future<ListOperationsResponse>
Provides the Operations service 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