Class PredictResponse (0.5.0)

publicfinalclass PredictResponseextendsGeneratedMessageV3implementsPredictResponseOrBuilder

Response message for PredictionService.Predict.

Protobuf type google.cloud.vertexai.v1.PredictResponse

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

DEPLOYED_MODEL_ID_FIELD_NUMBER

publicstaticfinalintDEPLOYED_MODEL_ID_FIELD_NUMBER
Field Value
Type Description
int

METADATA_FIELD_NUMBER

publicstaticfinalintMETADATA_FIELD_NUMBER
Field Value
Type Description
int

MODEL_DISPLAY_NAME_FIELD_NUMBER

publicstaticfinalintMODEL_DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

MODEL_FIELD_NUMBER

publicstaticfinalintMODEL_FIELD_NUMBER
Field Value
Type Description
int

MODEL_VERSION_ID_FIELD_NUMBER

publicstaticfinalintMODEL_VERSION_ID_FIELD_NUMBER
Field Value
Type Description
int

PREDICTIONS_FIELD_NUMBER

publicstaticfinalintPREDICTIONS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticPredictResponsegetDefaultInstance()
Returns
Type Description
PredictResponse

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticPredictResponse.BuildernewBuilder()
Returns
Type Description
PredictResponse.Builder

newBuilder(PredictResponse prototype)

publicstaticPredictResponse.BuildernewBuilder(PredictResponseprototype)
Parameter
Name Description
prototype PredictResponse
Returns
Type Description
PredictResponse.Builder

parseDelimitedFrom(InputStream input)

publicstaticPredictResponseparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
PredictResponse
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticPredictResponseparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PredictResponse
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticPredictResponseparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
PredictResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticPredictResponseparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PredictResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticPredictResponseparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
PredictResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticPredictResponseparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PredictResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticPredictResponseparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PredictResponse
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticPredictResponseparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PredictResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticPredictResponseparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
PredictResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticPredictResponseparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PredictResponse
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticPredictResponseparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PredictResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticPredictResponseparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PredictResponse
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<PredictResponse>parser()
Returns
Type Description
Parser<PredictResponse>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicPredictResponsegetDefaultInstanceForType()
Returns
Type Description
PredictResponse

getDeployedModelId()

publicStringgetDeployedModelId()

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

string deployed_model_id = 2;

Returns
Type Description
String

The deployedModelId.

getDeployedModelIdBytes()

publicByteStringgetDeployedModelIdBytes()

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

string deployed_model_id = 2;

Returns
Type Description
ByteString

The bytes for deployedModelId.

getMetadata()

publicValuegetMetadata()

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()

publicValueOrBuildergetMetadataOrBuilder()

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()

publicStringgetModel()

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()

publicByteStringgetModelBytes()

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()

publicStringgetModelDisplayName()

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()

publicByteStringgetModelDisplayNameBytes()

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()

publicStringgetModelVersionId()

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()

publicByteStringgetModelVersionIdBytes()

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.

getParserForType()

publicParser<PredictResponse>getParserForType()
Returns
Type Description
Parser<PredictResponse>
Overrides

getPredictions(int index)

publicValuegetPredictions(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()

publicintgetPredictionsCount()

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()

publicList<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)

publicValueOrBuildergetPredictionsOrBuilder(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()

publicList<?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>

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

hasMetadata()

publicbooleanhasMetadata()

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.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicPredictResponse.BuildernewBuilderForType()
Returns
Type Description
PredictResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedPredictResponse.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PredictResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicPredictResponse.BuildertoBuilder()
Returns
Type Description
PredictResponse.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

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.