Package com.google.cloud.aiplatform.v1
Class DeployRequest.ModelConfig
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.aiplatform.v1.DeployRequest.ModelConfig
- All Implemented Interfaces:
DeployRequest.ModelConfigOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- DeployRequest
public static final class DeployRequest.ModelConfig
extends com.google.protobuf.GeneratedMessage
implements DeployRequest.ModelConfigOrBuilder
The model config to use for the deployment.Protobuf type
google.cloud.aiplatform.v1.DeployRequest.ModelConfig- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe model config to use for the deployment.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanOptional.Optional.Optional.static DeployRequest.ModelConfigstatic final com.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.booleanOptional.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.com.google.protobuf.Parser<DeployRequest.ModelConfig>intbooleanOptional.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(DeployRequest.ModelConfig prototype) protected DeployRequest.ModelConfig.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static DeployRequest.ModelConfigparseDelimitedFrom(InputStream input) static DeployRequest.ModelConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DeployRequest.ModelConfigparseFrom(byte[] data) static DeployRequest.ModelConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DeployRequest.ModelConfigparseFrom(com.google.protobuf.ByteString data) static DeployRequest.ModelConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DeployRequest.ModelConfigparseFrom(com.google.protobuf.CodedInputStream input) static DeployRequest.ModelConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DeployRequest.ModelConfigparseFrom(InputStream input) static DeployRequest.ModelConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DeployRequest.ModelConfigparseFrom(ByteBuffer data) static DeployRequest.ModelConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<DeployRequest.ModelConfig>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
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, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
ACCEPT_EULA_FIELD_NUMBER
public static final int ACCEPT_EULA_FIELD_NUMBER- See Also:
-
HUGGING_FACE_ACCESS_TOKEN_FIELD_NUMBER
public static final int HUGGING_FACE_ACCESS_TOKEN_FIELD_NUMBER- See Also:
-
HUGGING_FACE_CACHE_ENABLED_FIELD_NUMBER
public static final int HUGGING_FACE_CACHE_ENABLED_FIELD_NUMBER- See Also:
-
MODEL_DISPLAY_NAME_FIELD_NUMBER
public static final int MODEL_DISPLAY_NAME_FIELD_NUMBER- See Also:
-
CONTAINER_SPEC_FIELD_NUMBER
public static final int CONTAINER_SPEC_FIELD_NUMBER- See Also:
-
MODEL_USER_ID_FIELD_NUMBER
public static final int MODEL_USER_ID_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getAcceptEula
public 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];- Specified by:
getAcceptEulain interfaceDeployRequest.ModelConfigOrBuilder- Returns:
- The acceptEula.
-
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];- Specified by:
getHuggingFaceAccessTokenin interfaceDeployRequest.ModelConfigOrBuilder- Returns:
- The huggingFaceAccessToken.
-
getHuggingFaceAccessTokenBytes
public 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];- Specified by:
getHuggingFaceAccessTokenBytesin interfaceDeployRequest.ModelConfigOrBuilder- Returns:
- The bytes for huggingFaceAccessToken.
-
getHuggingFaceCacheEnabled
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];- Specified by:
getHuggingFaceCacheEnabledin interfaceDeployRequest.ModelConfigOrBuilder- Returns:
- The huggingFaceCacheEnabled.
-
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];- Specified by:
getModelDisplayNamein interfaceDeployRequest.ModelConfigOrBuilder- Returns:
- The modelDisplayName.
-
getModelDisplayNameBytes
public 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];- Specified by:
getModelDisplayNameBytesin interfaceDeployRequest.ModelConfigOrBuilder- Returns:
- The bytes for modelDisplayName.
-
hasContainerSpec
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];- Specified by:
hasContainerSpecin interfaceDeployRequest.ModelConfigOrBuilder- Returns:
- Whether the containerSpec field is set.
-
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];- Specified by:
getContainerSpecin interfaceDeployRequest.ModelConfigOrBuilder- Returns:
- The containerSpec.
-
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];- Specified by:
getContainerSpecOrBuilderin interfaceDeployRequest.ModelConfigOrBuilder
-
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];- Specified by:
getModelUserIdin interfaceDeployRequest.ModelConfigOrBuilder- Returns:
- The modelUserId.
-
getModelUserIdBytes
public 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];- Specified by:
getModelUserIdBytesin interfaceDeployRequest.ModelConfigOrBuilder- Returns:
- The bytes for modelUserId.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static DeployRequest.ModelConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DeployRequest.ModelConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DeployRequest.ModelConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DeployRequest.ModelConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DeployRequest.ModelConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DeployRequest.ModelConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static DeployRequest.ModelConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static DeployRequest.ModelConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static DeployRequest.ModelConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static DeployRequest.ModelConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected DeployRequest.ModelConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-