PredictRequest class final

Request message for PredictionService.Predict.

Inheritance
  • Object
  • ProtoMessage
  • PredictRequest

Constructors

PredictRequest({required String endpoint, required List<Value> instances, Value? parameters, Map<String, String> labels = const {}})
PredictRequest.fromJson(Object? j)
factory

Properties

endpoint String
Required. The name of the Endpoint requested to serve the prediction. Format: projects/{project}/locations/{location}/endpoints/{endpoint}
final
hashCode int
The hash code for this object.
no setterinherited
instances List<Value>
Required. The instances that are the input to the prediction call. A DeployedModel may have an upper limit on the number of instances it supports per request, and when it is exceeded the prediction call errors in case of AutoML Models, or, in case of customer created Models, the behaviour is as documented by that Model. The schema of any single instance may be specified via Endpoint's DeployedModels' google.cloud.aiplatform.v1beta1.DeployedModel.model google.cloud.aiplatform.v1beta1.Model.predict_schemata instance_schema_uri.
final
labels Map<String, String>
Optional. The user labels for Imagen billing usage only. Only Imagen supports labels. For other use cases, it will be ignored.
final
parameters → Value?
The parameters that govern the prediction. The schema of the parameters may be specified via Endpoint's DeployedModels' google.cloud.aiplatform.v1beta1.DeployedModel.model google.cloud.aiplatform.v1beta1.Model.predict_schemata parameters_schema_uri.
final
qualifiedName String
The fully qualified name of this message, i.e., google.protobuf.Duration or google.rpc.ErrorInfo.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Object
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

fullyQualifiedName → const String