Interface PredictResponseOrBuilder (1.24.0)

publicinterface PredictResponseOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getDeployedModelId()

publicabstractStringgetDeployedModelId()

ID of the Endpoint's DeployedModel that served this prediction.

string deployed_model_id = 2;

Returns
Type Description
String

The deployedModelId.

getDeployedModelIdBytes()

publicabstractByteStringgetDeployedModelIdBytes()

ID of the Endpoint's DeployedModel that served this prediction.

string deployed_model_id = 2;

Returns
Type Description
ByteString

The bytes for deployedModelId.

getMetadata()

publicabstractValuegetMetadata()

Output only. Request-level metadata returned by the model. The metadata type will be dependent upon the model implementation.

.google.protobuf.Value metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Value

The metadata.

getMetadataOrBuilder()

publicabstractValueOrBuildergetMetadataOrBuilder()

Output only. Request-level metadata returned by the model. The metadata type will be dependent upon the model implementation.

.google.protobuf.Value metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ValueOrBuilder

getModel()

publicabstractStringgetModel()

Output only. The resource name of the Model which is deployed as the DeployedModel that this prediction hits.

string model = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The model.

getModelBytes()

publicabstractByteStringgetModelBytes()

Output only. The resource name of the Model which is deployed as the DeployedModel that this prediction hits.

string model = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for model.

getModelDisplayName()

publicabstractStringgetModelDisplayName()

Output only. The display name of the Model which is deployed as the DeployedModel that this prediction hits.

string model_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The modelDisplayName.

getModelDisplayNameBytes()

publicabstractByteStringgetModelDisplayNameBytes()

Output only. The display name of the Model which is deployed as the DeployedModel that this prediction hits.

string model_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for modelDisplayName.

getModelVersionId()

publicabstractStringgetModelVersionId()

Output only. The version ID of the Model which is deployed as the DeployedModel that this prediction hits.

string model_version_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The modelVersionId.

getModelVersionIdBytes()

publicabstractByteStringgetModelVersionIdBytes()

Output only. The version ID of the Model which is deployed as the DeployedModel that this prediction hits.

string model_version_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for modelVersionId.

getPredictions(int index)

publicabstractValuegetPredictions(intindex)

The predictions that are the output of the predictions call. The schema of any single prediction may be specified via Endpoint's DeployedModels' Model's PredictSchemata's prediction_schema_uri.

repeated .google.protobuf.Value predictions = 1;

Parameter
Name Description
index int
Returns
Type Description
Value

getPredictionsCount()

publicabstractintgetPredictionsCount()

The predictions that are the output of the predictions call. The schema of any single prediction may be specified via Endpoint's DeployedModels' Model's PredictSchemata's prediction_schema_uri.

repeated .google.protobuf.Value predictions = 1;

Returns
Type Description
int

getPredictionsList()

publicabstractList<Value>getPredictionsList()

The predictions that are the output of the predictions call. The schema of any single prediction may be specified via Endpoint's DeployedModels' Model's PredictSchemata's prediction_schema_uri.

repeated .google.protobuf.Value predictions = 1;

Returns
Type Description
List<Value>

getPredictionsOrBuilder(int index)

publicabstractValueOrBuildergetPredictionsOrBuilder(intindex)

The predictions that are the output of the predictions call. The schema of any single prediction may be specified via Endpoint's DeployedModels' Model's PredictSchemata's prediction_schema_uri.

repeated .google.protobuf.Value predictions = 1;

Parameter
Name Description
index int
Returns
Type Description
ValueOrBuilder

getPredictionsOrBuilderList()

publicabstractList<?extendsValueOrBuilder>getPredictionsOrBuilderList()

The predictions that are the output of the predictions call. The schema of any single prediction may be specified via Endpoint's DeployedModels' Model's PredictSchemata's prediction_schema_uri.

repeated .google.protobuf.Value predictions = 1;

Returns
Type Description
List<? extends com.google.protobuf.ValueOrBuilder>

hasMetadata()

publicabstractbooleanhasMetadata()

Output only. Request-level metadata returned by the model. The metadata type will be dependent upon the model implementation.

.google.protobuf.Value metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the metadata field is set.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.