public static final class DeployRequest.ModelConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<DeployRequest.ModelConfig.Builder> implements DeployRequest.ModelConfigOrBuilder
The model config to use for the deployment.Protobuf type
google.cloud.aiplatform.v1.DeployRequest.ModelConfigaddRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<DeployRequest.ModelConfig.Builder>public DeployRequest.ModelConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<DeployRequest.ModelConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<DeployRequest.ModelConfig.Builder>public DeployRequest.ModelConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic DeployRequest.ModelConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic DeployRequest.ModelConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic DeployRequest.ModelConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<DeployRequest.ModelConfig.Builder>public DeployRequest.ModelConfig.Builder mergeFrom(DeployRequest.ModelConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<DeployRequest.ModelConfig.Builder>public DeployRequest.ModelConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<DeployRequest.ModelConfig.Builder>IOExceptionpublic boolean getAcceptEula()
Optional. Whether the user accepts the End User License Agreement (EULA) for the model.
bool accept_eula = 1 [(.google.api.field_behavior) = OPTIONAL];getAcceptEula in interface DeployRequest.ModelConfigOrBuilderpublic DeployRequest.ModelConfig.Builder setAcceptEula(boolean value)
Optional. Whether the user accepts the End User License Agreement (EULA) for the model.
bool accept_eula = 1 [(.google.api.field_behavior) = OPTIONAL];value - The acceptEula to set.public DeployRequest.ModelConfig.Builder clearAcceptEula()
Optional. Whether the user accepts the End User License Agreement (EULA) for the model.
bool accept_eula = 1 [(.google.api.field_behavior) = OPTIONAL];public String getHuggingFaceAccessToken()
Optional. The Hugging Face read access token used to access the model artifacts of gated models.
string hugging_face_access_token = 2 [(.google.api.field_behavior) = OPTIONAL];
getHuggingFaceAccessToken in interface DeployRequest.ModelConfigOrBuilderpublic com.google.protobuf.ByteString getHuggingFaceAccessTokenBytes()
Optional. The Hugging Face read access token used to access the model artifacts of gated models.
string hugging_face_access_token = 2 [(.google.api.field_behavior) = OPTIONAL];
getHuggingFaceAccessTokenBytes in interface DeployRequest.ModelConfigOrBuilderpublic DeployRequest.ModelConfig.Builder setHuggingFaceAccessToken(String value)
Optional. The Hugging Face read access token used to access the model artifacts of gated models.
string hugging_face_access_token = 2 [(.google.api.field_behavior) = OPTIONAL];
value - The huggingFaceAccessToken to set.public DeployRequest.ModelConfig.Builder clearHuggingFaceAccessToken()
Optional. The Hugging Face read access token used to access the model artifacts of gated models.
string hugging_face_access_token = 2 [(.google.api.field_behavior) = OPTIONAL];
public DeployRequest.ModelConfig.Builder setHuggingFaceAccessTokenBytes(com.google.protobuf.ByteString value)
Optional. The Hugging Face read access token used to access the model artifacts of gated models.
string hugging_face_access_token = 2 [(.google.api.field_behavior) = OPTIONAL];
value - The bytes for huggingFaceAccessToken to set.public boolean getHuggingFaceCacheEnabled()
Optional. If true, the model will deploy with a cached version instead of directly downloading the model artifacts from Hugging Face. This is suitable for VPC-SC users with limited internet access.
bool hugging_face_cache_enabled = 3 [(.google.api.field_behavior) = OPTIONAL];getHuggingFaceCacheEnabled in interface DeployRequest.ModelConfigOrBuilderpublic DeployRequest.ModelConfig.Builder setHuggingFaceCacheEnabled(boolean value)
Optional. If true, the model will deploy with a cached version instead of directly downloading the model artifacts from Hugging Face. This is suitable for VPC-SC users with limited internet access.
bool hugging_face_cache_enabled = 3 [(.google.api.field_behavior) = OPTIONAL];value - The huggingFaceCacheEnabled to set.public DeployRequest.ModelConfig.Builder clearHuggingFaceCacheEnabled()
Optional. If true, the model will deploy with a cached version instead of directly downloading the model artifacts from Hugging Face. This is suitable for VPC-SC users with limited internet access.
bool hugging_face_cache_enabled = 3 [(.google.api.field_behavior) = OPTIONAL];public String getModelDisplayName()
Optional. The user-specified display name of the uploaded model. If not set, a default name will be used.
string model_display_name = 4 [(.google.api.field_behavior) = OPTIONAL];getModelDisplayName in interface DeployRequest.ModelConfigOrBuilderpublic com.google.protobuf.ByteString getModelDisplayNameBytes()
Optional. The user-specified display name of the uploaded model. If not set, a default name will be used.
string model_display_name = 4 [(.google.api.field_behavior) = OPTIONAL];getModelDisplayNameBytes in interface DeployRequest.ModelConfigOrBuilderpublic DeployRequest.ModelConfig.Builder setModelDisplayName(String value)
Optional. The user-specified display name of the uploaded model. If not set, a default name will be used.
string model_display_name = 4 [(.google.api.field_behavior) = OPTIONAL];value - The modelDisplayName to set.public DeployRequest.ModelConfig.Builder clearModelDisplayName()
Optional. The user-specified display name of the uploaded model. If not set, a default name will be used.
string model_display_name = 4 [(.google.api.field_behavior) = OPTIONAL];public DeployRequest.ModelConfig.Builder setModelDisplayNameBytes(com.google.protobuf.ByteString value)
Optional. The user-specified display name of the uploaded model. If not set, a default name will be used.
string model_display_name = 4 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for modelDisplayName to set.public boolean hasContainerSpec()
Optional. The specification of the container that is to be used when deploying. If not set, the default container spec will be used.
.google.cloud.aiplatform.v1.ModelContainerSpec container_spec = 5 [(.google.api.field_behavior) = OPTIONAL];
hasContainerSpec in interface DeployRequest.ModelConfigOrBuilderpublic ModelContainerSpec getContainerSpec()
Optional. The specification of the container that is to be used when deploying. If not set, the default container spec will be used.
.google.cloud.aiplatform.v1.ModelContainerSpec container_spec = 5 [(.google.api.field_behavior) = OPTIONAL];
getContainerSpec in interface DeployRequest.ModelConfigOrBuilderpublic DeployRequest.ModelConfig.Builder setContainerSpec(ModelContainerSpec value)
Optional. The specification of the container that is to be used when deploying. If not set, the default container spec will be used.
.google.cloud.aiplatform.v1.ModelContainerSpec container_spec = 5 [(.google.api.field_behavior) = OPTIONAL];
public DeployRequest.ModelConfig.Builder setContainerSpec(ModelContainerSpec.Builder builderForValue)
Optional. The specification of the container that is to be used when deploying. If not set, the default container spec will be used.
.google.cloud.aiplatform.v1.ModelContainerSpec container_spec = 5 [(.google.api.field_behavior) = OPTIONAL];
public DeployRequest.ModelConfig.Builder mergeContainerSpec(ModelContainerSpec value)
Optional. The specification of the container that is to be used when deploying. If not set, the default container spec will be used.
.google.cloud.aiplatform.v1.ModelContainerSpec container_spec = 5 [(.google.api.field_behavior) = OPTIONAL];
public DeployRequest.ModelConfig.Builder clearContainerSpec()
Optional. The specification of the container that is to be used when deploying. If not set, the default container spec will be used.
.google.cloud.aiplatform.v1.ModelContainerSpec container_spec = 5 [(.google.api.field_behavior) = OPTIONAL];
public ModelContainerSpec.Builder getContainerSpecBuilder()
Optional. The specification of the container that is to be used when deploying. If not set, the default container spec will be used.
.google.cloud.aiplatform.v1.ModelContainerSpec container_spec = 5 [(.google.api.field_behavior) = OPTIONAL];
public ModelContainerSpecOrBuilder getContainerSpecOrBuilder()
Optional. The specification of the container that is to be used when deploying. If not set, the default container spec will be used.
.google.cloud.aiplatform.v1.ModelContainerSpec container_spec = 5 [(.google.api.field_behavior) = OPTIONAL];
getContainerSpecOrBuilder in interface DeployRequest.ModelConfigOrBuilderpublic String getModelUserId()
Optional. The ID to use for the uploaded Model, which will become the final component of the model resource name. When not provided, Vertex AI will generate a value for this ID. When Model Registry model is provided, this field will be ignored. This value may be up to 63 characters, and valid characters are `[a-z0-9_-]`. The first character cannot be a number or hyphen.
string model_user_id = 6 [(.google.api.field_behavior) = OPTIONAL];getModelUserId in interface DeployRequest.ModelConfigOrBuilderpublic com.google.protobuf.ByteString getModelUserIdBytes()
Optional. The ID to use for the uploaded Model, which will become the final component of the model resource name. When not provided, Vertex AI will generate a value for this ID. When Model Registry model is provided, this field will be ignored. This value may be up to 63 characters, and valid characters are `[a-z0-9_-]`. The first character cannot be a number or hyphen.
string model_user_id = 6 [(.google.api.field_behavior) = OPTIONAL];getModelUserIdBytes in interface DeployRequest.ModelConfigOrBuilderpublic DeployRequest.ModelConfig.Builder setModelUserId(String value)
Optional. The ID to use for the uploaded Model, which will become the final component of the model resource name. When not provided, Vertex AI will generate a value for this ID. When Model Registry model is provided, this field will be ignored. This value may be up to 63 characters, and valid characters are `[a-z0-9_-]`. The first character cannot be a number or hyphen.
string model_user_id = 6 [(.google.api.field_behavior) = OPTIONAL];value - The modelUserId to set.public DeployRequest.ModelConfig.Builder clearModelUserId()
Optional. The ID to use for the uploaded Model, which will become the final component of the model resource name. When not provided, Vertex AI will generate a value for this ID. When Model Registry model is provided, this field will be ignored. This value may be up to 63 characters, and valid characters are `[a-z0-9_-]`. The first character cannot be a number or hyphen.
string model_user_id = 6 [(.google.api.field_behavior) = OPTIONAL];public DeployRequest.ModelConfig.Builder setModelUserIdBytes(com.google.protobuf.ByteString value)
Optional. The ID to use for the uploaded Model, which will become the final component of the model resource name. When not provided, Vertex AI will generate a value for this ID. When Model Registry model is provided, this field will be ignored. This value may be up to 63 characters, and valid characters are `[a-z0-9_-]`. The first character cannot be a number or hyphen.
string model_user_id = 6 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for modelUserId to set.Copyright © 2026 Google LLC. All rights reserved.