Class ContainerSpec.Builder (3.50.0)

public static final class ContainerSpec.Builder extends GeneratedMessageV3.Builder<ContainerSpec.Builder> implements ContainerSpecOrBuilder

The spec of a Container.

Protobuf type google.cloud.aiplatform.v1beta1.ContainerSpec

Static Methods

getDescriptor()

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

Methods

addAllArgs(Iterable<String> values)

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

The arguments to be passed when starting the container.

repeated string args = 3;

Parameter
Name Description
values Iterable<String>

The args to add.

Returns
Type Description
ContainerSpec.Builder

This builder for chaining.

addAllCommand(Iterable<String> values)

public ContainerSpec.Builder addAllCommand(Iterable<String> values)

The command to be invoked when the container is started. It overrides the entrypoint instruction in Dockerfile when provided.

repeated string command = 2;

Parameter
Name Description
values Iterable<String>

The command to add.

Returns
Type Description
ContainerSpec.Builder

This builder for chaining.

addAllEnv(Iterable<? extends EnvVar> values)

public ContainerSpec.Builder addAllEnv(Iterable<? extends EnvVar> values)

Environment variables to be passed to the container. Maximum limit is 100.

repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4;

Parameter
Name Description
values Iterable<? extends com.google.cloud.aiplatform.v1beta1.EnvVar>
Returns
Type Description
ContainerSpec.Builder

addArgs(String value)

public ContainerSpec.Builder addArgs(String value)

The arguments to be passed when starting the container.

repeated string args = 3;

Parameter
Name Description
value String

The args to add.

Returns
Type Description
ContainerSpec.Builder

This builder for chaining.

addArgsBytes(ByteString value)

public ContainerSpec.Builder addArgsBytes(ByteString value)

The arguments to be passed when starting the container.

repeated string args = 3;

Parameter
Name Description
value ByteString

The bytes of the args to add.

Returns
Type Description
ContainerSpec.Builder

This builder for chaining.

addCommand(String value)

public ContainerSpec.Builder addCommand(String value)

The command to be invoked when the container is started. It overrides the entrypoint instruction in Dockerfile when provided.

repeated string command = 2;

Parameter
Name Description
value String

The command to add.

Returns
Type Description
ContainerSpec.Builder

This builder for chaining.

addCommandBytes(ByteString value)

public ContainerSpec.Builder addCommandBytes(ByteString value)

The command to be invoked when the container is started. It overrides the entrypoint instruction in Dockerfile when provided.

repeated string command = 2;

Parameter
Name Description
value ByteString

The bytes of the command to add.

Returns
Type Description
ContainerSpec.Builder

This builder for chaining.

addEnv(EnvVar value)

public ContainerSpec.Builder addEnv(EnvVar value)

Environment variables to be passed to the container. Maximum limit is 100.

repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4;

Parameter
Name Description
value EnvVar
Returns
Type Description
ContainerSpec.Builder

addEnv(EnvVar.Builder builderForValue)

public ContainerSpec.Builder addEnv(EnvVar.Builder builderForValue)

Environment variables to be passed to the container. Maximum limit is 100.

repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4;

Parameter
Name Description
builderForValue EnvVar.Builder
Returns
Type Description
ContainerSpec.Builder

addEnv(int index, EnvVar value)

public ContainerSpec.Builder addEnv(int index, EnvVar value)

Environment variables to be passed to the container. Maximum limit is 100.

repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4;

Parameters
Name Description
index int
value EnvVar
Returns
Type Description
ContainerSpec.Builder

addEnv(int index, EnvVar.Builder builderForValue)

public ContainerSpec.Builder addEnv(int index, EnvVar.Builder builderForValue)

Environment variables to be passed to the container. Maximum limit is 100.

repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4;

Parameters
Name Description
index int
builderForValue EnvVar.Builder
Returns
Type Description
ContainerSpec.Builder

addEnvBuilder()

public EnvVar.Builder addEnvBuilder()

Environment variables to be passed to the container. Maximum limit is 100.

repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4;

Returns
Type Description
EnvVar.Builder

addEnvBuilder(int index)

public EnvVar.Builder addEnvBuilder(int index)

Environment variables to be passed to the container. Maximum limit is 100.

repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4;

Parameter
Name Description
index int
Returns
Type Description
EnvVar.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ContainerSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ContainerSpec.Builder
Overrides

build()

public ContainerSpec build()
Returns
Type Description
ContainerSpec

buildPartial()

public ContainerSpec buildPartial()
Returns
Type Description
ContainerSpec

clear()

public ContainerSpec.Builder clear()
Returns
Type Description
ContainerSpec.Builder
Overrides

clearArgs()

public ContainerSpec.Builder clearArgs()

The arguments to be passed when starting the container.

repeated string args = 3;

Returns
Type Description
ContainerSpec.Builder

This builder for chaining.

clearCommand()

public ContainerSpec.Builder clearCommand()

The command to be invoked when the container is started. It overrides the entrypoint instruction in Dockerfile when provided.

repeated string command = 2;

Returns
Type Description
ContainerSpec.Builder

This builder for chaining.

clearEnv()

public ContainerSpec.Builder clearEnv()

Environment variables to be passed to the container. Maximum limit is 100.

repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4;

Returns
Type Description
ContainerSpec.Builder

clearField(Descriptors.FieldDescriptor field)

public ContainerSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ContainerSpec.Builder
Overrides

clearImageUri()

public ContainerSpec.Builder clearImageUri()

Required. The URI of a container image in the Container Registry that is to be run on each worker replica.

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

Returns
Type Description
ContainerSpec.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ContainerSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ContainerSpec.Builder
Overrides

clone()

public ContainerSpec.Builder clone()
Returns
Type Description
ContainerSpec.Builder
Overrides

getArgs(int index)

public String getArgs(int index)

The arguments to be passed when starting the container.

repeated string args = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The args at the given index.

getArgsBytes(int index)

public ByteString getArgsBytes(int index)

The arguments to be passed when starting the container.

repeated string args = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the args at the given index.

getArgsCount()

public int getArgsCount()

The arguments to be passed when starting the container.

repeated string args = 3;

Returns
Type Description
int

The count of args.

getArgsList()

public ProtocolStringList getArgsList()

The arguments to be passed when starting the container.

repeated string args = 3;

Returns
Type Description
ProtocolStringList

A list containing the args.

getCommand(int index)

public String getCommand(int index)

The command to be invoked when the container is started. It overrides the entrypoint instruction in Dockerfile when provided.

repeated string command = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The command at the given index.

getCommandBytes(int index)

public ByteString getCommandBytes(int index)

The command to be invoked when the container is started. It overrides the entrypoint instruction in Dockerfile when provided.

repeated string command = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the command at the given index.

getCommandCount()

public int getCommandCount()

The command to be invoked when the container is started. It overrides the entrypoint instruction in Dockerfile when provided.

repeated string command = 2;

Returns
Type Description
int

The count of command.

getCommandList()

public ProtocolStringList getCommandList()

The command to be invoked when the container is started. It overrides the entrypoint instruction in Dockerfile when provided.

repeated string command = 2;

Returns
Type Description
ProtocolStringList

A list containing the command.

getDefaultInstanceForType()

public ContainerSpec getDefaultInstanceForType()
Returns
Type Description
ContainerSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEnv(int index)

public EnvVar getEnv(int index)

Environment variables to be passed to the container. Maximum limit is 100.

repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4;

Parameter
Name Description
index int
Returns
Type Description
EnvVar

getEnvBuilder(int index)

public EnvVar.Builder getEnvBuilder(int index)

Environment variables to be passed to the container. Maximum limit is 100.

repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4;

Parameter
Name Description
index int
Returns
Type Description
EnvVar.Builder

getEnvBuilderList()

public List<EnvVar.Builder> getEnvBuilderList()

Environment variables to be passed to the container. Maximum limit is 100.

repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4;

Returns
Type Description
List<Builder>

getEnvCount()

public int getEnvCount()

Environment variables to be passed to the container. Maximum limit is 100.

repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4;

Returns
Type Description
int

getEnvList()

public List<EnvVar> getEnvList()

Environment variables to be passed to the container. Maximum limit is 100.

repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4;

Returns
Type Description
List<EnvVar>

getEnvOrBuilder(int index)

public EnvVarOrBuilder getEnvOrBuilder(int index)

Environment variables to be passed to the container. Maximum limit is 100.

repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4;

Parameter
Name Description
index int
Returns
Type Description
EnvVarOrBuilder

getEnvOrBuilderList()

public List<? extends EnvVarOrBuilder> getEnvOrBuilderList()

Environment variables to be passed to the container. Maximum limit is 100.

repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4;

Returns
Type Description
List<? extends com.google.cloud.aiplatform.v1beta1.EnvVarOrBuilder>

getImageUri()

public String getImageUri()

Required. The URI of a container image in the Container Registry that is to be run on each worker replica.

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

Returns
Type Description
String

The imageUri.

getImageUriBytes()

public ByteString getImageUriBytes()

Required. The URI of a container image in the Container Registry that is to be run on each worker replica.

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

Returns
Type Description
ByteString

The bytes for imageUri.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ContainerSpec other)

public ContainerSpec.Builder mergeFrom(ContainerSpec other)
Parameter
Name Description
other ContainerSpec
Returns
Type Description
ContainerSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ContainerSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContainerSpec.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ContainerSpec.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ContainerSpec.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ContainerSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ContainerSpec.Builder
Overrides

removeEnv(int index)

public ContainerSpec.Builder removeEnv(int index)

Environment variables to be passed to the container. Maximum limit is 100.

repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4;

Parameter
Name Description
index int
Returns
Type Description
ContainerSpec.Builder

setArgs(int index, String value)

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

The arguments to be passed when starting the container.

repeated string args = 3;

Parameters
Name Description
index int

The index to set the value at.

value String

The args to set.

Returns
Type Description
ContainerSpec.Builder

This builder for chaining.

setCommand(int index, String value)

public ContainerSpec.Builder setCommand(int index, String value)

The command to be invoked when the container is started. It overrides the entrypoint instruction in Dockerfile when provided.

repeated string command = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The command to set.

Returns
Type Description
ContainerSpec.Builder

This builder for chaining.

setEnv(int index, EnvVar value)

public ContainerSpec.Builder setEnv(int index, EnvVar value)

Environment variables to be passed to the container. Maximum limit is 100.

repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4;

Parameters
Name Description
index int
value EnvVar
Returns
Type Description
ContainerSpec.Builder

setEnv(int index, EnvVar.Builder builderForValue)

public ContainerSpec.Builder setEnv(int index, EnvVar.Builder builderForValue)

Environment variables to be passed to the container. Maximum limit is 100.

repeated .google.cloud.aiplatform.v1beta1.EnvVar env = 4;

Parameters
Name Description
index int
builderForValue EnvVar.Builder
Returns
Type Description
ContainerSpec.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ContainerSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ContainerSpec.Builder
Overrides

setImageUri(String value)

public ContainerSpec.Builder setImageUri(String value)

Required. The URI of a container image in the Container Registry that is to be run on each worker replica.

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

Parameter
Name Description
value String

The imageUri to set.

Returns
Type Description
ContainerSpec.Builder

This builder for chaining.

setImageUriBytes(ByteString value)

public ContainerSpec.Builder setImageUriBytes(ByteString value)

Required. The URI of a container image in the Container Registry that is to be run on each worker replica.

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

Parameter
Name Description
value ByteString

The bytes for imageUri to set.

Returns
Type Description
ContainerSpec.Builder

This builder for chaining.

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

public ContainerSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ContainerSpec.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ContainerSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ContainerSpec.Builder
Overrides