Package com.google.cloud.aiplatform.v1
Class PythonPackageSpec.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PythonPackageSpec.Builder>
com.google.cloud.aiplatform.v1.PythonPackageSpec.Builder
- All Implemented Interfaces:
PythonPackageSpecOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PythonPackageSpec
public static final class PythonPackageSpec.Builder
extends com.google.protobuf.GeneratedMessage.Builder<PythonPackageSpec.Builder>
implements PythonPackageSpecOrBuilder
The spec of a Python packaged code.Protobuf type
google.cloud.aiplatform.v1.PythonPackageSpec-
Method Summary
Modifier and TypeMethodDescriptionaddAllArgs(Iterable<String> values) Command line arguments to be passed to the Python task.Environment variables to be passed to the python module.addAllPackageUris(Iterable<String> values) Required.Command line arguments to be passed to the Python task.addArgsBytes(com.google.protobuf.ByteString value) Command line arguments to be passed to the Python task.Environment variables to be passed to the python module.addEnv(int index, EnvVar.Builder builderForValue) Environment variables to be passed to the python module.Environment variables to be passed to the python module.addEnv(EnvVar.Builder builderForValue) Environment variables to be passed to the python module.Environment variables to be passed to the python module.addEnvBuilder(int index) Environment variables to be passed to the python module.addPackageUris(String value) Required.addPackageUrisBytes(com.google.protobuf.ByteString value) Required.build()clear()Command line arguments to be passed to the Python task.clearEnv()Environment variables to be passed to the python module.Required.Required.Required.getArgs(int index) Command line arguments to be passed to the Python task.com.google.protobuf.ByteStringgetArgsBytes(int index) Command line arguments to be passed to the Python task.intCommand line arguments to be passed to the Python task.com.google.protobuf.ProtocolStringListCommand line arguments to be passed to the Python task.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetEnv(int index) Environment variables to be passed to the python module.getEnvBuilder(int index) Environment variables to be passed to the python module.Environment variables to be passed to the python module.intEnvironment variables to be passed to the python module.Environment variables to be passed to the python module.getEnvOrBuilder(int index) Environment variables to be passed to the python module.List<? extends EnvVarOrBuilder>Environment variables to be passed to the python module.Required.com.google.protobuf.ByteStringRequired.getPackageUris(int index) Required.com.google.protobuf.ByteStringgetPackageUrisBytes(int index) Required.intRequired.com.google.protobuf.ProtocolStringListRequired.Required.com.google.protobuf.ByteStringRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(PythonPackageSpec other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeEnv(int index) Environment variables to be passed to the python module.Command line arguments to be passed to the Python task.Environment variables to be passed to the python module.setEnv(int index, EnvVar.Builder builderForValue) Environment variables to be passed to the python module.setExecutorImageUri(String value) Required.setExecutorImageUriBytes(com.google.protobuf.ByteString value) Required.setPackageUris(int index, String value) Required.setPythonModule(String value) Required.setPythonModuleBytes(com.google.protobuf.ByteString value) Required.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<PythonPackageSpec.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<PythonPackageSpec.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<PythonPackageSpec.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<PythonPackageSpec.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PythonPackageSpec.Builder>
-
mergeFrom
public PythonPackageSpec.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<PythonPackageSpec.Builder>- Throws:
IOException
-
getExecutorImageUri
Required. The URI of a container image in Artifact Registry that will run the provided Python package. Vertex AI provides a wide range of executor images with pre-installed packages to meet users' various use cases. See the list of [pre-built containers for training](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers). You must use an image from this list.
string executor_image_uri = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getExecutorImageUriin interfacePythonPackageSpecOrBuilder- Returns:
- The executorImageUri.
-
getExecutorImageUriBytes
public com.google.protobuf.ByteString getExecutorImageUriBytes()Required. The URI of a container image in Artifact Registry that will run the provided Python package. Vertex AI provides a wide range of executor images with pre-installed packages to meet users' various use cases. See the list of [pre-built containers for training](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers). You must use an image from this list.
string executor_image_uri = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getExecutorImageUriBytesin interfacePythonPackageSpecOrBuilder- Returns:
- The bytes for executorImageUri.
-
setExecutorImageUri
Required. The URI of a container image in Artifact Registry that will run the provided Python package. Vertex AI provides a wide range of executor images with pre-installed packages to meet users' various use cases. See the list of [pre-built containers for training](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers). You must use an image from this list.
string executor_image_uri = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The executorImageUri to set.- Returns:
- This builder for chaining.
-
clearExecutorImageUri
Required. The URI of a container image in Artifact Registry that will run the provided Python package. Vertex AI provides a wide range of executor images with pre-installed packages to meet users' various use cases. See the list of [pre-built containers for training](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers). You must use an image from this list.
string executor_image_uri = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setExecutorImageUriBytes
Required. The URI of a container image in Artifact Registry that will run the provided Python package. Vertex AI provides a wide range of executor images with pre-installed packages to meet users' various use cases. See the list of [pre-built containers for training](https://cloud.google.com/vertex-ai/docs/training/pre-built-containers). You must use an image from this list.
string executor_image_uri = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for executorImageUri to set.- Returns:
- This builder for chaining.
-
getPackageUrisList
public com.google.protobuf.ProtocolStringList getPackageUrisList()Required. The Google Cloud Storage location of the Python package files which are the training program and its dependent packages. The maximum number of package URIs is 100.
repeated string package_uris = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getPackageUrisListin interfacePythonPackageSpecOrBuilder- Returns:
- A list containing the packageUris.
-
getPackageUrisCount
public int getPackageUrisCount()Required. The Google Cloud Storage location of the Python package files which are the training program and its dependent packages. The maximum number of package URIs is 100.
repeated string package_uris = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getPackageUrisCountin interfacePythonPackageSpecOrBuilder- Returns:
- The count of packageUris.
-
getPackageUris
Required. The Google Cloud Storage location of the Python package files which are the training program and its dependent packages. The maximum number of package URIs is 100.
repeated string package_uris = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getPackageUrisin interfacePythonPackageSpecOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The packageUris at the given index.
-
getPackageUrisBytes
public com.google.protobuf.ByteString getPackageUrisBytes(int index) Required. The Google Cloud Storage location of the Python package files which are the training program and its dependent packages. The maximum number of package URIs is 100.
repeated string package_uris = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getPackageUrisBytesin interfacePythonPackageSpecOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the packageUris at the given index.
-
setPackageUris
Required. The Google Cloud Storage location of the Python package files which are the training program and its dependent packages. The maximum number of package URIs is 100.
repeated string package_uris = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
index- The index to set the value at.value- The packageUris to set.- Returns:
- This builder for chaining.
-
addPackageUris
Required. The Google Cloud Storage location of the Python package files which are the training program and its dependent packages. The maximum number of package URIs is 100.
repeated string package_uris = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The packageUris to add.- Returns:
- This builder for chaining.
-
addAllPackageUris
Required. The Google Cloud Storage location of the Python package files which are the training program and its dependent packages. The maximum number of package URIs is 100.
repeated string package_uris = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
values- The packageUris to add.- Returns:
- This builder for chaining.
-
clearPackageUris
Required. The Google Cloud Storage location of the Python package files which are the training program and its dependent packages. The maximum number of package URIs is 100.
repeated string package_uris = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
addPackageUrisBytes
Required. The Google Cloud Storage location of the Python package files which are the training program and its dependent packages. The maximum number of package URIs is 100.
repeated string package_uris = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes of the packageUris to add.- Returns:
- This builder for chaining.
-
getPythonModule
Required. The Python module name to run after installing the packages.
string python_module = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getPythonModulein interfacePythonPackageSpecOrBuilder- Returns:
- The pythonModule.
-
getPythonModuleBytes
public com.google.protobuf.ByteString getPythonModuleBytes()Required. The Python module name to run after installing the packages.
string python_module = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getPythonModuleBytesin interfacePythonPackageSpecOrBuilder- Returns:
- The bytes for pythonModule.
-
setPythonModule
Required. The Python module name to run after installing the packages.
string python_module = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The pythonModule to set.- Returns:
- This builder for chaining.
-
clearPythonModule
Required. The Python module name to run after installing the packages.
string python_module = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setPythonModuleBytes
Required. The Python module name to run after installing the packages.
string python_module = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for pythonModule to set.- Returns:
- This builder for chaining.
-
getArgsList
public com.google.protobuf.ProtocolStringList getArgsList()Command line arguments to be passed to the Python task.
repeated string args = 4;- Specified by:
getArgsListin interfacePythonPackageSpecOrBuilder- Returns:
- A list containing the args.
-
getArgsCount
public int getArgsCount()Command line arguments to be passed to the Python task.
repeated string args = 4;- Specified by:
getArgsCountin interfacePythonPackageSpecOrBuilder- Returns:
- The count of args.
-
getArgs
Command line arguments to be passed to the Python task.
repeated string args = 4;- Specified by:
getArgsin interfacePythonPackageSpecOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The args at the given index.
-
getArgsBytes
public com.google.protobuf.ByteString getArgsBytes(int index) Command line arguments to be passed to the Python task.
repeated string args = 4;- Specified by:
getArgsBytesin interfacePythonPackageSpecOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the args at the given index.
-
setArgs
Command line arguments to be passed to the Python task.
repeated string args = 4;- Parameters:
index- The index to set the value at.value- The args to set.- Returns:
- This builder for chaining.
-
addArgs
Command line arguments to be passed to the Python task.
repeated string args = 4;- Parameters:
value- The args to add.- Returns:
- This builder for chaining.
-
addAllArgs
Command line arguments to be passed to the Python task.
repeated string args = 4;- Parameters:
values- The args to add.- Returns:
- This builder for chaining.
-
clearArgs
Command line arguments to be passed to the Python task.
repeated string args = 4;- Returns:
- This builder for chaining.
-
addArgsBytes
Command line arguments to be passed to the Python task.
repeated string args = 4;- Parameters:
value- The bytes of the args to add.- Returns:
- This builder for chaining.
-
getEnvList
Environment variables to be passed to the python module. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 5;- Specified by:
getEnvListin interfacePythonPackageSpecOrBuilder
-
getEnvCount
public int getEnvCount()Environment variables to be passed to the python module. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 5;- Specified by:
getEnvCountin interfacePythonPackageSpecOrBuilder
-
getEnv
Environment variables to be passed to the python module. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 5;- Specified by:
getEnvin interfacePythonPackageSpecOrBuilder
-
setEnv
Environment variables to be passed to the python module. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 5; -
setEnv
Environment variables to be passed to the python module. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 5; -
addEnv
Environment variables to be passed to the python module. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 5; -
addEnv
Environment variables to be passed to the python module. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 5; -
addEnv
Environment variables to be passed to the python module. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 5; -
addEnv
Environment variables to be passed to the python module. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 5; -
addAllEnv
Environment variables to be passed to the python module. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 5; -
clearEnv
Environment variables to be passed to the python module. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 5; -
removeEnv
Environment variables to be passed to the python module. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 5; -
getEnvBuilder
Environment variables to be passed to the python module. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 5; -
getEnvOrBuilder
Environment variables to be passed to the python module. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 5;- Specified by:
getEnvOrBuilderin interfacePythonPackageSpecOrBuilder
-
getEnvOrBuilderList
Environment variables to be passed to the python module. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 5;- Specified by:
getEnvOrBuilderListin interfacePythonPackageSpecOrBuilder
-
addEnvBuilder
Environment variables to be passed to the python module. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 5; -
addEnvBuilder
Environment variables to be passed to the python module. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 5; -
getEnvBuilderList
Environment variables to be passed to the python module. Maximum limit is 100.
repeated .google.cloud.aiplatform.v1.EnvVar env = 5;
-