Package com.google.cloud.aiplatform.v1
Class DeployRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DeployRequest.Builder>
com.google.cloud.aiplatform.v1.DeployRequest.Builder
- All Implemented Interfaces:
DeployRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DeployRequest
public static final class DeployRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DeployRequest.Builder>
implements DeployRequestOrBuilder
Request message for [ModelGardenService.Deploy][google.cloud.aiplatform.v1.ModelGardenService.Deploy].Protobuf type
google.cloud.aiplatform.v1.DeployRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Required.Optional.The Hugging Face model to deploy.Optional.The Model Garden model to deploy.Optional.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.Optional.Optional.Optional.The Hugging Face model to deploy.com.google.protobuf.ByteStringThe Hugging Face model to deploy.Optional.Optional.Optional.The Model Garden model to deploy.com.google.protobuf.ByteStringThe Model Garden model to deploy.booleanOptional.booleanOptional.booleanThe Hugging Face model to deploy.booleanOptional.booleanThe Model Garden model to deploy.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanOptional.Optional.mergeFrom(DeployRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.Optional.setDeployConfig(DeployRequest.DeployConfig.Builder builderForValue) Optional.setDestination(String value) Required.setDestinationBytes(com.google.protobuf.ByteString value) Required.Optional.setEndpointConfig(DeployRequest.EndpointConfig.Builder builderForValue) Optional.setHuggingFaceModelId(String value) The Hugging Face model to deploy.setHuggingFaceModelIdBytes(com.google.protobuf.ByteString value) The Hugging Face model to deploy.Optional.setModelConfig(DeployRequest.ModelConfig.Builder builderForValue) Optional.setPublisherModelName(String value) The Model Garden model to deploy.setPublisherModelNameBytes(com.google.protobuf.ByteString value) The Model Garden model to deploy.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, 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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<DeployRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<DeployRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<DeployRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DeployRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DeployRequest.Builder>
-
mergeFrom
public DeployRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DeployRequest.Builder>- Throws:
IOException
-
getArtifactsCase
- Specified by:
getArtifactsCasein interfaceDeployRequestOrBuilder
-
clearArtifacts
-
hasPublisherModelName
public boolean hasPublisherModelName()The Model Garden model to deploy. Format: `publishers/{publisher}/models/{publisher_model}@{version_id}`, or `publishers/hf-{hugging-face-author}/models/{hugging-face-model-name}@001`.string publisher_model_name = 1 [(.google.api.resource_reference) = { ... }- Specified by:
hasPublisherModelNamein interfaceDeployRequestOrBuilder- Returns:
- Whether the publisherModelName field is set.
-
getPublisherModelName
The Model Garden model to deploy. Format: `publishers/{publisher}/models/{publisher_model}@{version_id}`, or `publishers/hf-{hugging-face-author}/models/{hugging-face-model-name}@001`.string publisher_model_name = 1 [(.google.api.resource_reference) = { ... }- Specified by:
getPublisherModelNamein interfaceDeployRequestOrBuilder- Returns:
- The publisherModelName.
-
getPublisherModelNameBytes
public com.google.protobuf.ByteString getPublisherModelNameBytes()The Model Garden model to deploy. Format: `publishers/{publisher}/models/{publisher_model}@{version_id}`, or `publishers/hf-{hugging-face-author}/models/{hugging-face-model-name}@001`.string publisher_model_name = 1 [(.google.api.resource_reference) = { ... }- Specified by:
getPublisherModelNameBytesin interfaceDeployRequestOrBuilder- Returns:
- The bytes for publisherModelName.
-
setPublisherModelName
The Model Garden model to deploy. Format: `publishers/{publisher}/models/{publisher_model}@{version_id}`, or `publishers/hf-{hugging-face-author}/models/{hugging-face-model-name}@001`.string publisher_model_name = 1 [(.google.api.resource_reference) = { ... }- Parameters:
value- The publisherModelName to set.- Returns:
- This builder for chaining.
-
clearPublisherModelName
The Model Garden model to deploy. Format: `publishers/{publisher}/models/{publisher_model}@{version_id}`, or `publishers/hf-{hugging-face-author}/models/{hugging-face-model-name}@001`.string publisher_model_name = 1 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setPublisherModelNameBytes
The Model Garden model to deploy. Format: `publishers/{publisher}/models/{publisher_model}@{version_id}`, or `publishers/hf-{hugging-face-author}/models/{hugging-face-model-name}@001`.string publisher_model_name = 1 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for publisherModelName to set.- Returns:
- This builder for chaining.
-
hasHuggingFaceModelId
public boolean hasHuggingFaceModelId()The Hugging Face model to deploy. Format: Hugging Face model ID like `google/gemma-2-2b-it`.
string hugging_face_model_id = 2;- Specified by:
hasHuggingFaceModelIdin interfaceDeployRequestOrBuilder- Returns:
- Whether the huggingFaceModelId field is set.
-
getHuggingFaceModelId
The Hugging Face model to deploy. Format: Hugging Face model ID like `google/gemma-2-2b-it`.
string hugging_face_model_id = 2;- Specified by:
getHuggingFaceModelIdin interfaceDeployRequestOrBuilder- Returns:
- The huggingFaceModelId.
-
getHuggingFaceModelIdBytes
public com.google.protobuf.ByteString getHuggingFaceModelIdBytes()The Hugging Face model to deploy. Format: Hugging Face model ID like `google/gemma-2-2b-it`.
string hugging_face_model_id = 2;- Specified by:
getHuggingFaceModelIdBytesin interfaceDeployRequestOrBuilder- Returns:
- The bytes for huggingFaceModelId.
-
setHuggingFaceModelId
The Hugging Face model to deploy. Format: Hugging Face model ID like `google/gemma-2-2b-it`.
string hugging_face_model_id = 2;- Parameters:
value- The huggingFaceModelId to set.- Returns:
- This builder for chaining.
-
clearHuggingFaceModelId
The Hugging Face model to deploy. Format: Hugging Face model ID like `google/gemma-2-2b-it`.
string hugging_face_model_id = 2;- Returns:
- This builder for chaining.
-
setHuggingFaceModelIdBytes
The Hugging Face model to deploy. Format: Hugging Face model ID like `google/gemma-2-2b-it`.
string hugging_face_model_id = 2;- Parameters:
value- The bytes for huggingFaceModelId to set.- Returns:
- This builder for chaining.
-
getDestination
Required. The resource name of the Location to deploy the model in. Format: `projects/{project}/locations/{location}`string destination = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getDestinationin interfaceDeployRequestOrBuilder- Returns:
- The destination.
-
getDestinationBytes
public com.google.protobuf.ByteString getDestinationBytes()Required. The resource name of the Location to deploy the model in. Format: `projects/{project}/locations/{location}`string destination = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getDestinationBytesin interfaceDeployRequestOrBuilder- Returns:
- The bytes for destination.
-
setDestination
Required. The resource name of the Location to deploy the model in. Format: `projects/{project}/locations/{location}`string destination = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The destination to set.- Returns:
- This builder for chaining.
-
clearDestination
Required. The resource name of the Location to deploy the model in. Format: `projects/{project}/locations/{location}`string destination = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setDestinationBytes
Required. The resource name of the Location to deploy the model in. Format: `projects/{project}/locations/{location}`string destination = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for destination to set.- Returns:
- This builder for chaining.
-
hasModelConfig
public boolean hasModelConfig()Optional. The model config to use for the deployment. If not specified, the default model config will be used.
.google.cloud.aiplatform.v1.DeployRequest.ModelConfig model_config = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasModelConfigin interfaceDeployRequestOrBuilder- Returns:
- Whether the modelConfig field is set.
-
getModelConfig
Optional. The model config to use for the deployment. If not specified, the default model config will be used.
.google.cloud.aiplatform.v1.DeployRequest.ModelConfig model_config = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getModelConfigin interfaceDeployRequestOrBuilder- Returns:
- The modelConfig.
-
setModelConfig
Optional. The model config to use for the deployment. If not specified, the default model config will be used.
.google.cloud.aiplatform.v1.DeployRequest.ModelConfig model_config = 5 [(.google.api.field_behavior) = OPTIONAL]; -
setModelConfig
Optional. The model config to use for the deployment. If not specified, the default model config will be used.
.google.cloud.aiplatform.v1.DeployRequest.ModelConfig model_config = 5 [(.google.api.field_behavior) = OPTIONAL]; -
mergeModelConfig
Optional. The model config to use for the deployment. If not specified, the default model config will be used.
.google.cloud.aiplatform.v1.DeployRequest.ModelConfig model_config = 5 [(.google.api.field_behavior) = OPTIONAL]; -
clearModelConfig
Optional. The model config to use for the deployment. If not specified, the default model config will be used.
.google.cloud.aiplatform.v1.DeployRequest.ModelConfig model_config = 5 [(.google.api.field_behavior) = OPTIONAL]; -
getModelConfigBuilder
Optional. The model config to use for the deployment. If not specified, the default model config will be used.
.google.cloud.aiplatform.v1.DeployRequest.ModelConfig model_config = 5 [(.google.api.field_behavior) = OPTIONAL]; -
getModelConfigOrBuilder
Optional. The model config to use for the deployment. If not specified, the default model config will be used.
.google.cloud.aiplatform.v1.DeployRequest.ModelConfig model_config = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getModelConfigOrBuilderin interfaceDeployRequestOrBuilder
-
hasEndpointConfig
public boolean hasEndpointConfig()Optional. The endpoint config to use for the deployment. If not specified, the default endpoint config will be used.
.google.cloud.aiplatform.v1.DeployRequest.EndpointConfig endpoint_config = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasEndpointConfigin interfaceDeployRequestOrBuilder- Returns:
- Whether the endpointConfig field is set.
-
getEndpointConfig
Optional. The endpoint config to use for the deployment. If not specified, the default endpoint config will be used.
.google.cloud.aiplatform.v1.DeployRequest.EndpointConfig endpoint_config = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEndpointConfigin interfaceDeployRequestOrBuilder- Returns:
- The endpointConfig.
-
setEndpointConfig
Optional. The endpoint config to use for the deployment. If not specified, the default endpoint config will be used.
.google.cloud.aiplatform.v1.DeployRequest.EndpointConfig endpoint_config = 6 [(.google.api.field_behavior) = OPTIONAL]; -
setEndpointConfig
public DeployRequest.Builder setEndpointConfig(DeployRequest.EndpointConfig.Builder builderForValue) Optional. The endpoint config to use for the deployment. If not specified, the default endpoint config will be used.
.google.cloud.aiplatform.v1.DeployRequest.EndpointConfig endpoint_config = 6 [(.google.api.field_behavior) = OPTIONAL]; -
mergeEndpointConfig
Optional. The endpoint config to use for the deployment. If not specified, the default endpoint config will be used.
.google.cloud.aiplatform.v1.DeployRequest.EndpointConfig endpoint_config = 6 [(.google.api.field_behavior) = OPTIONAL]; -
clearEndpointConfig
Optional. The endpoint config to use for the deployment. If not specified, the default endpoint config will be used.
.google.cloud.aiplatform.v1.DeployRequest.EndpointConfig endpoint_config = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getEndpointConfigBuilder
Optional. The endpoint config to use for the deployment. If not specified, the default endpoint config will be used.
.google.cloud.aiplatform.v1.DeployRequest.EndpointConfig endpoint_config = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getEndpointConfigOrBuilder
Optional. The endpoint config to use for the deployment. If not specified, the default endpoint config will be used.
.google.cloud.aiplatform.v1.DeployRequest.EndpointConfig endpoint_config = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEndpointConfigOrBuilderin interfaceDeployRequestOrBuilder
-
hasDeployConfig
public boolean hasDeployConfig()Optional. The deploy config to use for the deployment. If not specified, the default deploy config will be used.
.google.cloud.aiplatform.v1.DeployRequest.DeployConfig deploy_config = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasDeployConfigin interfaceDeployRequestOrBuilder- Returns:
- Whether the deployConfig field is set.
-
getDeployConfig
Optional. The deploy config to use for the deployment. If not specified, the default deploy config will be used.
.google.cloud.aiplatform.v1.DeployRequest.DeployConfig deploy_config = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDeployConfigin interfaceDeployRequestOrBuilder- Returns:
- The deployConfig.
-
setDeployConfig
Optional. The deploy config to use for the deployment. If not specified, the default deploy config will be used.
.google.cloud.aiplatform.v1.DeployRequest.DeployConfig deploy_config = 7 [(.google.api.field_behavior) = OPTIONAL]; -
setDeployConfig
Optional. The deploy config to use for the deployment. If not specified, the default deploy config will be used.
.google.cloud.aiplatform.v1.DeployRequest.DeployConfig deploy_config = 7 [(.google.api.field_behavior) = OPTIONAL]; -
mergeDeployConfig
Optional. The deploy config to use for the deployment. If not specified, the default deploy config will be used.
.google.cloud.aiplatform.v1.DeployRequest.DeployConfig deploy_config = 7 [(.google.api.field_behavior) = OPTIONAL]; -
clearDeployConfig
Optional. The deploy config to use for the deployment. If not specified, the default deploy config will be used.
.google.cloud.aiplatform.v1.DeployRequest.DeployConfig deploy_config = 7 [(.google.api.field_behavior) = OPTIONAL]; -
getDeployConfigBuilder
Optional. The deploy config to use for the deployment. If not specified, the default deploy config will be used.
.google.cloud.aiplatform.v1.DeployRequest.DeployConfig deploy_config = 7 [(.google.api.field_behavior) = OPTIONAL]; -
getDeployConfigOrBuilder
Optional. The deploy config to use for the deployment. If not specified, the default deploy config will be used.
.google.cloud.aiplatform.v1.DeployRequest.DeployConfig deploy_config = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDeployConfigOrBuilderin interfaceDeployRequestOrBuilder
-