Class DeployRequest.ModelConfig (3.60.0)

public static final class DeployRequest.ModelConfig extends GeneratedMessageV3 implements DeployRequest.ModelConfigOrBuilder

The model config to use for the deployment.

Protobuf type google.cloud.aiplatform.v1beta1.DeployRequest.ModelConfig

Static Fields

ACCEPT_EULA_FIELD_NUMBER

public static final int ACCEPT_EULA_FIELD_NUMBER
Field Value
Type Description
int

CONTAINER_SPEC_FIELD_NUMBER

public static final int CONTAINER_SPEC_FIELD_NUMBER
Field Value
Type Description
int

HUGGING_FACE_ACCESS_TOKEN_FIELD_NUMBER

public static final int HUGGING_FACE_ACCESS_TOKEN_FIELD_NUMBER
Field Value
Type Description
int

HUGGING_FACE_CACHE_ENABLED_FIELD_NUMBER

public static final int HUGGING_FACE_CACHE_ENABLED_FIELD_NUMBER
Field Value
Type Description
int

MODEL_DISPLAY_NAME_FIELD_NUMBER

public static final int MODEL_DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DeployRequest.ModelConfig getDefaultInstance()
Returns
Type Description
DeployRequest.ModelConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static DeployRequest.ModelConfig.Builder newBuilder()
Returns
Type Description
DeployRequest.ModelConfig.Builder

newBuilder(DeployRequest.ModelConfig prototype)

public static DeployRequest.ModelConfig.Builder newBuilder(DeployRequest.ModelConfig prototype)
Parameter
Name Description
prototype DeployRequest.ModelConfig
Returns
Type Description
DeployRequest.ModelConfig.Builder

parseDelimitedFrom(InputStream input)

public static DeployRequest.ModelConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DeployRequest.ModelConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DeployRequest.ModelConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeployRequest.ModelConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static DeployRequest.ModelConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
DeployRequest.ModelConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DeployRequest.ModelConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeployRequest.ModelConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DeployRequest.ModelConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
DeployRequest.ModelConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DeployRequest.ModelConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeployRequest.ModelConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DeployRequest.ModelConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
DeployRequest.ModelConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DeployRequest.ModelConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeployRequest.ModelConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static DeployRequest.ModelConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DeployRequest.ModelConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DeployRequest.ModelConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeployRequest.ModelConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static DeployRequest.ModelConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
DeployRequest.ModelConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DeployRequest.ModelConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeployRequest.ModelConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<DeployRequest.ModelConfig> parser()
Returns
Type Description
Parser<ModelConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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];

Returns
Type Description
boolean

The acceptEula.

getContainerSpec()

public 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.v1beta1.ModelContainerSpec container_spec = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ModelContainerSpec

The containerSpec.

getContainerSpecOrBuilder()

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.v1beta1.ModelContainerSpec container_spec = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ModelContainerSpecOrBuilder

getDefaultInstanceForType()

public DeployRequest.ModelConfig getDefaultInstanceForType()
Returns
Type Description
DeployRequest.ModelConfig

getHuggingFaceAccessToken()

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];

Returns
Type Description
String

The huggingFaceAccessToken.

getHuggingFaceAccessTokenBytes()

public 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];

Returns
Type Description
ByteString

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];

Returns
Type Description
boolean

The huggingFaceCacheEnabled.

getModelDisplayName()

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];

Returns
Type Description
String

The modelDisplayName.

getModelDisplayNameBytes()

public 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];

Returns
Type Description
ByteString

The bytes for modelDisplayName.

getParserForType()

public Parser<DeployRequest.ModelConfig> getParserForType()
Returns
Type Description
Parser<ModelConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.v1beta1.ModelContainerSpec container_spec = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the containerSpec field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public DeployRequest.ModelConfig.Builder newBuilderForType()
Returns
Type Description
DeployRequest.ModelConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected DeployRequest.ModelConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
DeployRequest.ModelConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public DeployRequest.ModelConfig.Builder toBuilder()
Returns
Type Description
DeployRequest.ModelConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException