public final class PredictResponse extends com.google.protobuf.GeneratedMessageV3 implements PredictResponseOrBuilder
Response message for [PredictionService.Predict][google.cloud.aiplatform.v1.PredictionService.Predict].Protobuf type
google.cloud.vertexai.v1.PredictResponse| Modifier and Type | Class and Description |
|---|---|
static class |
PredictResponse.Builder
Response message for
[PredictionService.Predict][google.cloud.aiplatform.v1.PredictionService.Predict].
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
DEPLOYED_MODEL_ID_FIELD_NUMBER |
static int |
METADATA_FIELD_NUMBER |
static int |
MODEL_DISPLAY_NAME_FIELD_NUMBER |
static int |
MODEL_FIELD_NUMBER |
static int |
MODEL_VERSION_ID_FIELD_NUMBER |
static int |
PREDICTIONS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static PredictResponse |
getDefaultInstance() |
PredictResponse |
getDefaultInstanceForType() |
String |
getDeployedModelId()
ID of the Endpoint's DeployedModel that served this prediction.
|
com.google.protobuf.ByteString |
getDeployedModelIdBytes()
ID of the Endpoint's DeployedModel that served this prediction.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Value |
getMetadata()
Output only.
|
com.google.protobuf.ValueOrBuilder |
getMetadataOrBuilder()
Output only.
|
String |
getModel()
Output only.
|
com.google.protobuf.ByteString |
getModelBytes()
Output only.
|
String |
getModelDisplayName()
Output only.
|
com.google.protobuf.ByteString |
getModelDisplayNameBytes()
Output only.
|
String |
getModelVersionId()
Output only.
|
com.google.protobuf.ByteString |
getModelVersionIdBytes()
Output only.
|
com.google.protobuf.Parser<PredictResponse> |
getParserForType() |
com.google.protobuf.Value |
getPredictions(int index)
The predictions that are the output of the predictions call.
|
int |
getPredictionsCount()
The predictions that are the output of the predictions call.
|
List<com.google.protobuf.Value> |
getPredictionsList()
The predictions that are the output of the predictions call.
|
com.google.protobuf.ValueOrBuilder |
getPredictionsOrBuilder(int index)
The predictions that are the output of the predictions call.
|
List<? extends com.google.protobuf.ValueOrBuilder> |
getPredictionsOrBuilderList()
The predictions that are the output of the predictions call.
|
int |
getSerializedSize() |
int |
hashCode() |
boolean |
hasMetadata()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static PredictResponse.Builder |
newBuilder() |
static PredictResponse.Builder |
newBuilder(PredictResponse prototype) |
PredictResponse.Builder |
newBuilderForType() |
protected PredictResponse.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static PredictResponse |
parseDelimitedFrom(InputStream input) |
static PredictResponse |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PredictResponse |
parseFrom(byte[] data) |
static PredictResponse |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PredictResponse |
parseFrom(ByteBuffer data) |
static PredictResponse |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PredictResponse |
parseFrom(com.google.protobuf.ByteString data) |
static PredictResponse |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PredictResponse |
parseFrom(com.google.protobuf.CodedInputStream input) |
static PredictResponse |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PredictResponse |
parseFrom(InputStream input) |
static PredictResponse |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<PredictResponse> |
parser() |
PredictResponse.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int PREDICTIONS_FIELD_NUMBER
public static final int DEPLOYED_MODEL_ID_FIELD_NUMBER
public static final int MODEL_FIELD_NUMBER
public static final int MODEL_VERSION_ID_FIELD_NUMBER
public static final int MODEL_DISPLAY_NAME_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public List<com.google.protobuf.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 ][google.cloud.aiplatform.v1.DeployedModel.model] [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] [prediction_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.prediction_schema_uri].
repeated .google.protobuf.Value predictions = 1;getPredictionsList in interface PredictResponseOrBuilderpublic List<? extends com.google.protobuf.ValueOrBuilder> 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 ][google.cloud.aiplatform.v1.DeployedModel.model] [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] [prediction_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.prediction_schema_uri].
repeated .google.protobuf.Value predictions = 1;getPredictionsOrBuilderList in interface PredictResponseOrBuilderpublic int getPredictionsCount()
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 ][google.cloud.aiplatform.v1.DeployedModel.model] [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] [prediction_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.prediction_schema_uri].
repeated .google.protobuf.Value predictions = 1;getPredictionsCount in interface PredictResponseOrBuilderpublic com.google.protobuf.Value getPredictions(int index)
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 ][google.cloud.aiplatform.v1.DeployedModel.model] [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] [prediction_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.prediction_schema_uri].
repeated .google.protobuf.Value predictions = 1;getPredictions in interface PredictResponseOrBuilderpublic com.google.protobuf.ValueOrBuilder getPredictionsOrBuilder(int index)
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 ][google.cloud.aiplatform.v1.DeployedModel.model] [PredictSchemata's][google.cloud.aiplatform.v1.Model.predict_schemata] [prediction_schema_uri][google.cloud.aiplatform.v1.PredictSchemata.prediction_schema_uri].
repeated .google.protobuf.Value predictions = 1;getPredictionsOrBuilder in interface PredictResponseOrBuilderpublic String getDeployedModelId()
ID of the Endpoint's DeployedModel that served this prediction.
string deployed_model_id = 2;getDeployedModelId in interface PredictResponseOrBuilderpublic com.google.protobuf.ByteString getDeployedModelIdBytes()
ID of the Endpoint's DeployedModel that served this prediction.
string deployed_model_id = 2;getDeployedModelIdBytes in interface PredictResponseOrBuilderpublic String getModel()
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) = { ... }
getModel in interface PredictResponseOrBuilderpublic com.google.protobuf.ByteString getModelBytes()
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) = { ... }
getModelBytes in interface PredictResponseOrBuilderpublic String getModelVersionId()
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];getModelVersionId in interface PredictResponseOrBuilderpublic com.google.protobuf.ByteString getModelVersionIdBytes()
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];getModelVersionIdBytes in interface PredictResponseOrBuilderpublic String getModelDisplayName()
Output only. The [display name][google.cloud.aiplatform.v1.Model.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];getModelDisplayName in interface PredictResponseOrBuilderpublic com.google.protobuf.ByteString getModelDisplayNameBytes()
Output only. The [display name][google.cloud.aiplatform.v1.Model.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];getModelDisplayNameBytes in interface PredictResponseOrBuilderpublic boolean hasMetadata()
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];hasMetadata in interface PredictResponseOrBuilderpublic com.google.protobuf.Value getMetadata()
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];getMetadata in interface PredictResponseOrBuilderpublic com.google.protobuf.ValueOrBuilder getMetadataOrBuilder()
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];getMetadataOrBuilder in interface PredictResponseOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static PredictResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PredictResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PredictResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PredictResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PredictResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PredictResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PredictResponse parseFrom(InputStream input) throws IOException
IOExceptionpublic static PredictResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static PredictResponse parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static PredictResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static PredictResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static PredictResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic PredictResponse.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static PredictResponse.Builder newBuilder()
public static PredictResponse.Builder newBuilder(PredictResponse prototype)
public PredictResponse.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected PredictResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static PredictResponse getDefaultInstance()
public static com.google.protobuf.Parser<PredictResponse> parser()
public com.google.protobuf.Parser<PredictResponse> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public PredictResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.