Package com.google.cloud.aiplatform.v1
Class PredictResponse.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>
-
- com.google.cloud.aiplatform.v1.PredictResponse.Builder
-
- All Implemented Interfaces:
PredictResponseOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- PredictResponse
public static final class PredictResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder> implements PredictResponseOrBuilder
Response message for [PredictionService.Predict][google.cloud.aiplatform.v1.PredictionService.Predict].
Protobuf typegoogle.cloud.aiplatform.v1.PredictResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PredictResponse.Builder
addAllPredictions(Iterable<? extends com.google.protobuf.Value> values)
The predictions that are the output of the predictions call.PredictResponse.Builder
addPredictions(int index, com.google.protobuf.Value value)
The predictions that are the output of the predictions call.PredictResponse.Builder
addPredictions(int index, com.google.protobuf.Value.Builder builderForValue)
The predictions that are the output of the predictions call.PredictResponse.Builder
addPredictions(com.google.protobuf.Value value)
The predictions that are the output of the predictions call.PredictResponse.Builder
addPredictions(com.google.protobuf.Value.Builder builderForValue)
The predictions that are the output of the predictions call.com.google.protobuf.Value.Builder
addPredictionsBuilder()
The predictions that are the output of the predictions call.com.google.protobuf.Value.Builder
addPredictionsBuilder(int index)
The predictions that are the output of the predictions call.PredictResponse.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
PredictResponse
build()
PredictResponse
buildPartial()
PredictResponse.Builder
clear()
PredictResponse.Builder
clearDeployedModelId()
ID of the Endpoint's DeployedModel that served this prediction.PredictResponse.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
PredictResponse.Builder
clearMetadata()
Output only.PredictResponse.Builder
clearModel()
Output only.PredictResponse.Builder
clearModelDisplayName()
Output only.PredictResponse.Builder
clearModelVersionId()
Output only.PredictResponse.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
PredictResponse.Builder
clearPredictions()
The predictions that are the output of the predictions call.PredictResponse.Builder
clone()
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.Descriptors.Descriptor
getDescriptorForType()
com.google.protobuf.Value
getMetadata()
Output only.com.google.protobuf.Value.Builder
getMetadataBuilder()
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.Value
getPredictions(int index)
The predictions that are the output of the predictions call.com.google.protobuf.Value.Builder
getPredictionsBuilder(int index)
The predictions that are the output of the predictions call.List<com.google.protobuf.Value.Builder>
getPredictionsBuilderList()
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.boolean
hasMetadata()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
PredictResponse.Builder
mergeFrom(PredictResponse other)
PredictResponse.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
PredictResponse.Builder
mergeFrom(com.google.protobuf.Message other)
PredictResponse.Builder
mergeMetadata(com.google.protobuf.Value value)
Output only.PredictResponse.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
PredictResponse.Builder
removePredictions(int index)
The predictions that are the output of the predictions call.PredictResponse.Builder
setDeployedModelId(String value)
ID of the Endpoint's DeployedModel that served this prediction.PredictResponse.Builder
setDeployedModelIdBytes(com.google.protobuf.ByteString value)
ID of the Endpoint's DeployedModel that served this prediction.PredictResponse.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
PredictResponse.Builder
setMetadata(com.google.protobuf.Value value)
Output only.PredictResponse.Builder
setMetadata(com.google.protobuf.Value.Builder builderForValue)
Output only.PredictResponse.Builder
setModel(String value)
Output only.PredictResponse.Builder
setModelBytes(com.google.protobuf.ByteString value)
Output only.PredictResponse.Builder
setModelDisplayName(String value)
Output only.PredictResponse.Builder
setModelDisplayNameBytes(com.google.protobuf.ByteString value)
Output only.PredictResponse.Builder
setModelVersionId(String value)
Output only.PredictResponse.Builder
setModelVersionIdBytes(com.google.protobuf.ByteString value)
Output only.PredictResponse.Builder
setPredictions(int index, com.google.protobuf.Value value)
The predictions that are the output of the predictions call.PredictResponse.Builder
setPredictions(int index, com.google.protobuf.Value.Builder builderForValue)
The predictions that are the output of the predictions call.PredictResponse.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
PredictResponse.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>
-
clear
public PredictResponse.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>
-
getDefaultInstanceForType
public PredictResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public PredictResponse build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PredictResponse buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PredictResponse.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>
-
setField
public PredictResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>
-
clearField
public PredictResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>
-
clearOneof
public PredictResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>
-
setRepeatedField
public PredictResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>
-
addRepeatedField
public PredictResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>
-
mergeFrom
public PredictResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<PredictResponse.Builder>
-
mergeFrom
public PredictResponse.Builder mergeFrom(PredictResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>
-
mergeFrom
public PredictResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<PredictResponse.Builder>
- Throws:
IOException
-
getPredictionsList
public 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;
- Specified by:
getPredictionsList
in interfacePredictResponseOrBuilder
-
getPredictionsCount
public 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;
- Specified by:
getPredictionsCount
in interfacePredictResponseOrBuilder
-
getPredictions
public 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;
- Specified by:
getPredictions
in interfacePredictResponseOrBuilder
-
setPredictions
public PredictResponse.Builder setPredictions(int index, com.google.protobuf.Value value)
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;
-
setPredictions
public PredictResponse.Builder setPredictions(int index, com.google.protobuf.Value.Builder builderForValue)
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;
-
addPredictions
public PredictResponse.Builder addPredictions(com.google.protobuf.Value value)
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;
-
addPredictions
public PredictResponse.Builder addPredictions(int index, com.google.protobuf.Value value)
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;
-
addPredictions
public PredictResponse.Builder addPredictions(com.google.protobuf.Value.Builder builderForValue)
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;
-
addPredictions
public PredictResponse.Builder addPredictions(int index, com.google.protobuf.Value.Builder builderForValue)
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;
-
addAllPredictions
public PredictResponse.Builder addAllPredictions(Iterable<? extends com.google.protobuf.Value> values)
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;
-
clearPredictions
public PredictResponse.Builder clearPredictions()
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;
-
removePredictions
public PredictResponse.Builder removePredictions(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;
-
getPredictionsBuilder
public com.google.protobuf.Value.Builder getPredictionsBuilder(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
public 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;
- Specified by:
getPredictionsOrBuilder
in interfacePredictResponseOrBuilder
-
getPredictionsOrBuilderList
public 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;
- Specified by:
getPredictionsOrBuilderList
in interfacePredictResponseOrBuilder
-
addPredictionsBuilder
public com.google.protobuf.Value.Builder addPredictionsBuilder()
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;
-
addPredictionsBuilder
public com.google.protobuf.Value.Builder addPredictionsBuilder(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;
-
getPredictionsBuilderList
public List<com.google.protobuf.Value.Builder> getPredictionsBuilderList()
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;
-
getDeployedModelId
public String getDeployedModelId()
ID of the Endpoint's DeployedModel that served this prediction.
string deployed_model_id = 2;
- Specified by:
getDeployedModelId
in interfacePredictResponseOrBuilder
- Returns:
- The deployedModelId.
-
getDeployedModelIdBytes
public com.google.protobuf.ByteString getDeployedModelIdBytes()
ID of the Endpoint's DeployedModel that served this prediction.
string deployed_model_id = 2;
- Specified by:
getDeployedModelIdBytes
in interfacePredictResponseOrBuilder
- Returns:
- The bytes for deployedModelId.
-
setDeployedModelId
public PredictResponse.Builder setDeployedModelId(String value)
ID of the Endpoint's DeployedModel that served this prediction.
string deployed_model_id = 2;
- Parameters:
value
- The deployedModelId to set.- Returns:
- This builder for chaining.
-
clearDeployedModelId
public PredictResponse.Builder clearDeployedModelId()
ID of the Endpoint's DeployedModel that served this prediction.
string deployed_model_id = 2;
- Returns:
- This builder for chaining.
-
setDeployedModelIdBytes
public PredictResponse.Builder setDeployedModelIdBytes(com.google.protobuf.ByteString value)
ID of the Endpoint's DeployedModel that served this prediction.
string deployed_model_id = 2;
- Parameters:
value
- The bytes for deployedModelId to set.- Returns:
- This builder for chaining.
-
getModel
public 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) = { ... }
- Specified by:
getModel
in interfacePredictResponseOrBuilder
- Returns:
- The model.
-
getModelBytes
public 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) = { ... }
- Specified by:
getModelBytes
in interfacePredictResponseOrBuilder
- Returns:
- The bytes for model.
-
setModel
public PredictResponse.Builder setModel(String value)
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) = { ... }
- Parameters:
value
- The model to set.- Returns:
- This builder for chaining.
-
clearModel
public PredictResponse.Builder clearModel()
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:
- This builder for chaining.
-
setModelBytes
public PredictResponse.Builder setModelBytes(com.google.protobuf.ByteString value)
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) = { ... }
- Parameters:
value
- The bytes for model to set.- Returns:
- This builder for chaining.
-
getModelVersionId
public 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];
- Specified by:
getModelVersionId
in interfacePredictResponseOrBuilder
- Returns:
- The modelVersionId.
-
getModelVersionIdBytes
public 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];
- Specified by:
getModelVersionIdBytes
in interfacePredictResponseOrBuilder
- Returns:
- The bytes for modelVersionId.
-
setModelVersionId
public PredictResponse.Builder setModelVersionId(String value)
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];
- Parameters:
value
- The modelVersionId to set.- Returns:
- This builder for chaining.
-
clearModelVersionId
public PredictResponse.Builder clearModelVersionId()
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:
- This builder for chaining.
-
setModelVersionIdBytes
public PredictResponse.Builder setModelVersionIdBytes(com.google.protobuf.ByteString value)
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];
- Parameters:
value
- The bytes for modelVersionId to set.- Returns:
- This builder for chaining.
-
getModelDisplayName
public 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];
- Specified by:
getModelDisplayName
in interfacePredictResponseOrBuilder
- Returns:
- The modelDisplayName.
-
getModelDisplayNameBytes
public 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];
- Specified by:
getModelDisplayNameBytes
in interfacePredictResponseOrBuilder
- Returns:
- The bytes for modelDisplayName.
-
setModelDisplayName
public PredictResponse.Builder setModelDisplayName(String value)
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];
- Parameters:
value
- The modelDisplayName to set.- Returns:
- This builder for chaining.
-
clearModelDisplayName
public PredictResponse.Builder clearModelDisplayName()
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];
- Returns:
- This builder for chaining.
-
setModelDisplayNameBytes
public PredictResponse.Builder setModelDisplayNameBytes(com.google.protobuf.ByteString value)
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];
- Parameters:
value
- The bytes for modelDisplayName to set.- Returns:
- This builder for chaining.
-
hasMetadata
public 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];
- Specified by:
hasMetadata
in interfacePredictResponseOrBuilder
- Returns:
- Whether the metadata field is set.
-
getMetadata
public 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];
- Specified by:
getMetadata
in interfacePredictResponseOrBuilder
- Returns:
- The metadata.
-
setMetadata
public PredictResponse.Builder setMetadata(com.google.protobuf.Value value)
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];
-
setMetadata
public PredictResponse.Builder setMetadata(com.google.protobuf.Value.Builder builderForValue)
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];
-
mergeMetadata
public PredictResponse.Builder mergeMetadata(com.google.protobuf.Value value)
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];
-
clearMetadata
public PredictResponse.Builder clearMetadata()
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];
-
getMetadataBuilder
public com.google.protobuf.Value.Builder getMetadataBuilder()
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
public 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];
- Specified by:
getMetadataOrBuilder
in interfacePredictResponseOrBuilder
-
setUnknownFields
public final PredictResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>
-
mergeUnknownFields
public final PredictResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PredictResponse.Builder>
-
-