Class PythonPackageSpec.Builder (2.9.8)

public static final class PythonPackageSpec.Builder extends GeneratedMessageV3.Builder<PythonPackageSpec.Builder> implements PythonPackageSpecOrBuilder

The spec of a Python packaged code.

Protobuf type google.cloud.aiplatform.v1beta1.PythonPackageSpec

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllArgs(Iterable<String> values)

public PythonPackageSpec.Builder addAllArgs(Iterable<String> values)

Command line arguments to be passed to the Python task.

repeated string args = 4;

Parameter
NameDescription
valuesIterable<String>

The args to add.

Returns
TypeDescription
PythonPackageSpec.Builder

This builder for chaining.

addAllPackageUris(Iterable<String> values)

public PythonPackageSpec.Builder addAllPackageUris(Iterable<String> values)

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

Parameter
NameDescription
valuesIterable<String>

The packageUris to add.

Returns
TypeDescription
PythonPackageSpec.Builder

This builder for chaining.

addArgs(String value)

public PythonPackageSpec.Builder addArgs(String value)

Command line arguments to be passed to the Python task.

repeated string args = 4;

Parameter
NameDescription
valueString

The args to add.

Returns
TypeDescription
PythonPackageSpec.Builder

This builder for chaining.

addArgsBytes(ByteString value)

public PythonPackageSpec.Builder addArgsBytes(ByteString value)

Command line arguments to be passed to the Python task.

repeated string args = 4;

Parameter
NameDescription
valueByteString

The bytes of the args to add.

Returns
TypeDescription
PythonPackageSpec.Builder

This builder for chaining.

addPackageUris(String value)

public PythonPackageSpec.Builder addPackageUris(String value)

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

Parameter
NameDescription
valueString

The packageUris to add.

Returns
TypeDescription
PythonPackageSpec.Builder

This builder for chaining.

addPackageUrisBytes(ByteString value)

public PythonPackageSpec.Builder addPackageUrisBytes(ByteString value)

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

Parameter
NameDescription
valueByteString

The bytes of the packageUris to add.

Returns
TypeDescription
PythonPackageSpec.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PythonPackageSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PythonPackageSpec.Builder
Overrides

build()

public PythonPackageSpec build()
Returns
TypeDescription
PythonPackageSpec

buildPartial()

public PythonPackageSpec buildPartial()
Returns
TypeDescription
PythonPackageSpec

clear()

public PythonPackageSpec.Builder clear()
Returns
TypeDescription
PythonPackageSpec.Builder
Overrides

clearArgs()

public PythonPackageSpec.Builder clearArgs()

Command line arguments to be passed to the Python task.

repeated string args = 4;

Returns
TypeDescription
PythonPackageSpec.Builder

This builder for chaining.

clearExecutorImageUri()

public PythonPackageSpec.Builder 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. You must use an image from this list.

string executor_image_uri = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PythonPackageSpec.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public PythonPackageSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PythonPackageSpec.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PythonPackageSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
PythonPackageSpec.Builder
Overrides

clearPackageUris()

public PythonPackageSpec.Builder 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
TypeDescription
PythonPackageSpec.Builder

This builder for chaining.

clearPythonModule()

public PythonPackageSpec.Builder clearPythonModule()

Required. The Python module name to run after installing the packages.

string python_module = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PythonPackageSpec.Builder

This builder for chaining.

clone()

public PythonPackageSpec.Builder clone()
Returns
TypeDescription
PythonPackageSpec.Builder
Overrides

getArgs(int index)

public String getArgs(int index)

Command line arguments to be passed to the Python task.

repeated string args = 4;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The args at the given index.

getArgsBytes(int index)

public ByteString getArgsBytes(int index)

Command line arguments to be passed to the Python task.

repeated string args = 4;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the args at the given index.

getArgsCount()

public int getArgsCount()

Command line arguments to be passed to the Python task.

repeated string args = 4;

Returns
TypeDescription
int

The count of args.

getArgsList()

public ProtocolStringList getArgsList()

Command line arguments to be passed to the Python task.

repeated string args = 4;

Returns
TypeDescription
ProtocolStringList

A list containing the args.

getDefaultInstanceForType()

public PythonPackageSpec getDefaultInstanceForType()
Returns
TypeDescription
PythonPackageSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExecutorImageUri()

public String 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. You must use an image from this list.

string executor_image_uri = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The executorImageUri.

getExecutorImageUriBytes()

public 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. You must use an image from this list.

string executor_image_uri = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for executorImageUri.

getPackageUris(int index)

public String getPackageUris(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];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The packageUris at the given index.

getPackageUrisBytes(int index)

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

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the packageUris at the given index.

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

Returns
TypeDescription
int

The count of packageUris.

getPackageUrisList()

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

Returns
TypeDescription
ProtocolStringList

A list containing the packageUris.

getPythonModule()

public String getPythonModule()

Required. The Python module name to run after installing the packages.

string python_module = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The pythonModule.

getPythonModuleBytes()

public ByteString getPythonModuleBytes()

Required. The Python module name to run after installing the packages.

string python_module = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for pythonModule.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PythonPackageSpec other)

public PythonPackageSpec.Builder mergeFrom(PythonPackageSpec other)
Parameter
NameDescription
otherPythonPackageSpec
Returns
TypeDescription
PythonPackageSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PythonPackageSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PythonPackageSpec.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PythonPackageSpec.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
PythonPackageSpec.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PythonPackageSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PythonPackageSpec.Builder
Overrides

setArgs(int index, String value)

public PythonPackageSpec.Builder setArgs(int index, String value)

Command line arguments to be passed to the Python task.

repeated string args = 4;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The args to set.

Returns
TypeDescription
PythonPackageSpec.Builder

This builder for chaining.

setExecutorImageUri(String value)

public PythonPackageSpec.Builder setExecutorImageUri(String value)

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. You must use an image from this list.

string executor_image_uri = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The executorImageUri to set.

Returns
TypeDescription
PythonPackageSpec.Builder

This builder for chaining.

setExecutorImageUriBytes(ByteString value)

public PythonPackageSpec.Builder setExecutorImageUriBytes(ByteString value)

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. You must use an image from this list.

string executor_image_uri = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for executorImageUri to set.

Returns
TypeDescription
PythonPackageSpec.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PythonPackageSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PythonPackageSpec.Builder
Overrides

setPackageUris(int index, String value)

public PythonPackageSpec.Builder setPackageUris(int index, String value)

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
NameDescription
indexint

The index to set the value at.

valueString

The packageUris to set.

Returns
TypeDescription
PythonPackageSpec.Builder

This builder for chaining.

setPythonModule(String value)

public PythonPackageSpec.Builder setPythonModule(String value)

Required. The Python module name to run after installing the packages.

string python_module = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The pythonModule to set.

Returns
TypeDescription
PythonPackageSpec.Builder

This builder for chaining.

setPythonModuleBytes(ByteString value)

public PythonPackageSpec.Builder setPythonModuleBytes(ByteString value)

Required. The Python module name to run after installing the packages.

string python_module = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for pythonModule to set.

Returns
TypeDescription
PythonPackageSpec.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PythonPackageSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PythonPackageSpec.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PythonPackageSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PythonPackageSpec.Builder
Overrides