Class TaskTemplate.Builder (0.13.0)

public static final class TaskTemplate.Builder extends GeneratedMessageV3.Builder<TaskTemplate.Builder> implements TaskTemplateOrBuilder

TaskTemplate describes the data a task should have when created from a template.

Protobuf type google.cloud.run.v2.TaskTemplate

Static Methods

getDescriptor()

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

Methods

addAllContainers(Iterable<? extends Container> values)

public TaskTemplate.Builder addAllContainers(Iterable<? extends Container> values)

Holds the single container that defines the unit of execution for this task.

repeated .google.cloud.run.v2.Container containers = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.run.v2.Container>
Returns
TypeDescription
TaskTemplate.Builder

addAllVolumes(Iterable<? extends Volume> values)

public TaskTemplate.Builder addAllVolumes(Iterable<? extends Volume> values)

A list of Volumes to make available to containers.

repeated .google.cloud.run.v2.Volume volumes = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.run.v2.Volume>
Returns
TypeDescription
TaskTemplate.Builder

addContainers(Container value)

public TaskTemplate.Builder addContainers(Container value)

Holds the single container that defines the unit of execution for this task.

repeated .google.cloud.run.v2.Container containers = 1;

Parameter
NameDescription
valueContainer
Returns
TypeDescription
TaskTemplate.Builder

addContainers(Container.Builder builderForValue)

public TaskTemplate.Builder addContainers(Container.Builder builderForValue)

Holds the single container that defines the unit of execution for this task.

repeated .google.cloud.run.v2.Container containers = 1;

Parameter
NameDescription
builderForValueContainer.Builder
Returns
TypeDescription
TaskTemplate.Builder

addContainers(int index, Container value)

public TaskTemplate.Builder addContainers(int index, Container value)

Holds the single container that defines the unit of execution for this task.

repeated .google.cloud.run.v2.Container containers = 1;

Parameters
NameDescription
indexint
valueContainer
Returns
TypeDescription
TaskTemplate.Builder

addContainers(int index, Container.Builder builderForValue)

public TaskTemplate.Builder addContainers(int index, Container.Builder builderForValue)

Holds the single container that defines the unit of execution for this task.

repeated .google.cloud.run.v2.Container containers = 1;

Parameters
NameDescription
indexint
builderForValueContainer.Builder
Returns
TypeDescription
TaskTemplate.Builder

addContainersBuilder()

public Container.Builder addContainersBuilder()

Holds the single container that defines the unit of execution for this task.

repeated .google.cloud.run.v2.Container containers = 1;

Returns
TypeDescription
Container.Builder

addContainersBuilder(int index)

public Container.Builder addContainersBuilder(int index)

Holds the single container that defines the unit of execution for this task.

repeated .google.cloud.run.v2.Container containers = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Container.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addVolumes(Volume value)

public TaskTemplate.Builder addVolumes(Volume value)

A list of Volumes to make available to containers.

repeated .google.cloud.run.v2.Volume volumes = 2;

Parameter
NameDescription
valueVolume
Returns
TypeDescription
TaskTemplate.Builder

addVolumes(Volume.Builder builderForValue)

public TaskTemplate.Builder addVolumes(Volume.Builder builderForValue)

A list of Volumes to make available to containers.

repeated .google.cloud.run.v2.Volume volumes = 2;

Parameter
NameDescription
builderForValueVolume.Builder
Returns
TypeDescription
TaskTemplate.Builder

addVolumes(int index, Volume value)

public TaskTemplate.Builder addVolumes(int index, Volume value)

A list of Volumes to make available to containers.

repeated .google.cloud.run.v2.Volume volumes = 2;

Parameters
NameDescription
indexint
valueVolume
Returns
TypeDescription
TaskTemplate.Builder

addVolumes(int index, Volume.Builder builderForValue)

public TaskTemplate.Builder addVolumes(int index, Volume.Builder builderForValue)

A list of Volumes to make available to containers.

repeated .google.cloud.run.v2.Volume volumes = 2;

Parameters
NameDescription
indexint
builderForValueVolume.Builder
Returns
TypeDescription
TaskTemplate.Builder

addVolumesBuilder()

public Volume.Builder addVolumesBuilder()

A list of Volumes to make available to containers.

repeated .google.cloud.run.v2.Volume volumes = 2;

Returns
TypeDescription
Volume.Builder

addVolumesBuilder(int index)

public Volume.Builder addVolumesBuilder(int index)

A list of Volumes to make available to containers.

repeated .google.cloud.run.v2.Volume volumes = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Volume.Builder

build()

public TaskTemplate build()
Returns
TypeDescription
TaskTemplate

buildPartial()

public TaskTemplate buildPartial()
Returns
TypeDescription
TaskTemplate

clear()

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

clearContainers()

public TaskTemplate.Builder clearContainers()

Holds the single container that defines the unit of execution for this task.

repeated .google.cloud.run.v2.Container containers = 1;

Returns
TypeDescription
TaskTemplate.Builder

clearEncryptionKey()

public TaskTemplate.Builder clearEncryptionKey()

A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek

string encryption_key = 7 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
TaskTemplate.Builder

This builder for chaining.

clearExecutionEnvironment()

public TaskTemplate.Builder clearExecutionEnvironment()

The execution environment being used to host this Task.

.google.cloud.run.v2.ExecutionEnvironment execution_environment = 6;

Returns
TypeDescription
TaskTemplate.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearMaxRetries()

public TaskTemplate.Builder clearMaxRetries()

Number of retries allowed per Task, before marking this Task failed.

int32 max_retries = 3;

Returns
TypeDescription
TaskTemplate.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRetries()

public TaskTemplate.Builder clearRetries()
Returns
TypeDescription
TaskTemplate.Builder

clearServiceAccount()

public TaskTemplate.Builder clearServiceAccount()

Email address of the IAM service account associated with the Task of a Job. The service account represents the identity of the running task, and determines what permissions the task has. If not provided, the task will use the project's default service account.

string service_account = 5;

Returns
TypeDescription
TaskTemplate.Builder

This builder for chaining.

clearTimeout()

public TaskTemplate.Builder clearTimeout()

Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers. This applies per attempt of a task, meaning each retry can run for the full timeout.

.google.protobuf.Duration timeout = 4;

Returns
TypeDescription
TaskTemplate.Builder

clearVolumes()

public TaskTemplate.Builder clearVolumes()

A list of Volumes to make available to containers.

repeated .google.cloud.run.v2.Volume volumes = 2;

Returns
TypeDescription
TaskTemplate.Builder

clearVpcAccess()

public TaskTemplate.Builder clearVpcAccess()

VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.

.google.cloud.run.v2.VpcAccess vpc_access = 8;

Returns
TypeDescription
TaskTemplate.Builder

clone()

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

getContainers(int index)

public Container getContainers(int index)

Holds the single container that defines the unit of execution for this task.

repeated .google.cloud.run.v2.Container containers = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Container

getContainersBuilder(int index)

public Container.Builder getContainersBuilder(int index)

Holds the single container that defines the unit of execution for this task.

repeated .google.cloud.run.v2.Container containers = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Container.Builder

getContainersBuilderList()

public List<Container.Builder> getContainersBuilderList()

Holds the single container that defines the unit of execution for this task.

repeated .google.cloud.run.v2.Container containers = 1;

Returns
TypeDescription
List<Builder>

getContainersCount()

public int getContainersCount()

Holds the single container that defines the unit of execution for this task.

repeated .google.cloud.run.v2.Container containers = 1;

Returns
TypeDescription
int

getContainersList()

public List<Container> getContainersList()

Holds the single container that defines the unit of execution for this task.

repeated .google.cloud.run.v2.Container containers = 1;

Returns
TypeDescription
List<Container>

getContainersOrBuilder(int index)

public ContainerOrBuilder getContainersOrBuilder(int index)

Holds the single container that defines the unit of execution for this task.

repeated .google.cloud.run.v2.Container containers = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ContainerOrBuilder

getContainersOrBuilderList()

public List<? extends ContainerOrBuilder> getContainersOrBuilderList()

Holds the single container that defines the unit of execution for this task.

repeated .google.cloud.run.v2.Container containers = 1;

Returns
TypeDescription
List<? extends com.google.cloud.run.v2.ContainerOrBuilder>

getDefaultInstanceForType()

public TaskTemplate getDefaultInstanceForType()
Returns
TypeDescription
TaskTemplate

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEncryptionKey()

public String getEncryptionKey()

A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek

string encryption_key = 7 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The encryptionKey.

getEncryptionKeyBytes()

public ByteString getEncryptionKeyBytes()

A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek

string encryption_key = 7 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for encryptionKey.

getExecutionEnvironment()

public ExecutionEnvironment getExecutionEnvironment()

The execution environment being used to host this Task.

.google.cloud.run.v2.ExecutionEnvironment execution_environment = 6;

Returns
TypeDescription
ExecutionEnvironment

The executionEnvironment.

getExecutionEnvironmentValue()

public int getExecutionEnvironmentValue()

The execution environment being used to host this Task.

.google.cloud.run.v2.ExecutionEnvironment execution_environment = 6;

Returns
TypeDescription
int

The enum numeric value on the wire for executionEnvironment.

getMaxRetries()

public int getMaxRetries()

Number of retries allowed per Task, before marking this Task failed.

int32 max_retries = 3;

Returns
TypeDescription
int

The maxRetries.

getRetriesCase()

public TaskTemplate.RetriesCase getRetriesCase()
Returns
TypeDescription
TaskTemplate.RetriesCase

getServiceAccount()

public String getServiceAccount()

Email address of the IAM service account associated with the Task of a Job. The service account represents the identity of the running task, and determines what permissions the task has. If not provided, the task will use the project's default service account.

string service_account = 5;

Returns
TypeDescription
String

The serviceAccount.

getServiceAccountBytes()

public ByteString getServiceAccountBytes()

Email address of the IAM service account associated with the Task of a Job. The service account represents the identity of the running task, and determines what permissions the task has. If not provided, the task will use the project's default service account.

string service_account = 5;

Returns
TypeDescription
ByteString

The bytes for serviceAccount.

getTimeout()

public Duration getTimeout()

Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers. This applies per attempt of a task, meaning each retry can run for the full timeout.

.google.protobuf.Duration timeout = 4;

Returns
TypeDescription
Duration

The timeout.

getTimeoutBuilder()

public Duration.Builder getTimeoutBuilder()

Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers. This applies per attempt of a task, meaning each retry can run for the full timeout.

.google.protobuf.Duration timeout = 4;

Returns
TypeDescription
Builder

getTimeoutOrBuilder()

public DurationOrBuilder getTimeoutOrBuilder()

Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers. This applies per attempt of a task, meaning each retry can run for the full timeout.

.google.protobuf.Duration timeout = 4;

Returns
TypeDescription
DurationOrBuilder

getVolumes(int index)

public Volume getVolumes(int index)

A list of Volumes to make available to containers.

repeated .google.cloud.run.v2.Volume volumes = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Volume

getVolumesBuilder(int index)

public Volume.Builder getVolumesBuilder(int index)

A list of Volumes to make available to containers.

repeated .google.cloud.run.v2.Volume volumes = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Volume.Builder

getVolumesBuilderList()

public List<Volume.Builder> getVolumesBuilderList()

A list of Volumes to make available to containers.

repeated .google.cloud.run.v2.Volume volumes = 2;

Returns
TypeDescription
List<Builder>

getVolumesCount()

public int getVolumesCount()

A list of Volumes to make available to containers.

repeated .google.cloud.run.v2.Volume volumes = 2;

Returns
TypeDescription
int

getVolumesList()

public List<Volume> getVolumesList()

A list of Volumes to make available to containers.

repeated .google.cloud.run.v2.Volume volumes = 2;

Returns
TypeDescription
List<Volume>

getVolumesOrBuilder(int index)

public VolumeOrBuilder getVolumesOrBuilder(int index)

A list of Volumes to make available to containers.

repeated .google.cloud.run.v2.Volume volumes = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
VolumeOrBuilder

getVolumesOrBuilderList()

public List<? extends VolumeOrBuilder> getVolumesOrBuilderList()

A list of Volumes to make available to containers.

repeated .google.cloud.run.v2.Volume volumes = 2;

Returns
TypeDescription
List<? extends com.google.cloud.run.v2.VolumeOrBuilder>

getVpcAccess()

public VpcAccess getVpcAccess()

VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.

.google.cloud.run.v2.VpcAccess vpc_access = 8;

Returns
TypeDescription
VpcAccess

The vpcAccess.

getVpcAccessBuilder()

public VpcAccess.Builder getVpcAccessBuilder()

VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.

.google.cloud.run.v2.VpcAccess vpc_access = 8;

Returns
TypeDescription
VpcAccess.Builder

getVpcAccessOrBuilder()

public VpcAccessOrBuilder getVpcAccessOrBuilder()

VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.

.google.cloud.run.v2.VpcAccess vpc_access = 8;

Returns
TypeDescription
VpcAccessOrBuilder

hasMaxRetries()

public boolean hasMaxRetries()

Number of retries allowed per Task, before marking this Task failed.

int32 max_retries = 3;

Returns
TypeDescription
boolean

Whether the maxRetries field is set.

hasTimeout()

public boolean hasTimeout()

Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers. This applies per attempt of a task, meaning each retry can run for the full timeout.

.google.protobuf.Duration timeout = 4;

Returns
TypeDescription
boolean

Whether the timeout field is set.

hasVpcAccess()

public boolean hasVpcAccess()

VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.

.google.cloud.run.v2.VpcAccess vpc_access = 8;

Returns
TypeDescription
boolean

Whether the vpcAccess field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TaskTemplate other)

public TaskTemplate.Builder mergeFrom(TaskTemplate other)
Parameter
NameDescription
otherTaskTemplate
Returns
TypeDescription
TaskTemplate.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTimeout(Duration value)

public TaskTemplate.Builder mergeTimeout(Duration value)

Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers. This applies per attempt of a task, meaning each retry can run for the full timeout.

.google.protobuf.Duration timeout = 4;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
TaskTemplate.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeVpcAccess(VpcAccess value)

public TaskTemplate.Builder mergeVpcAccess(VpcAccess value)

VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.

.google.cloud.run.v2.VpcAccess vpc_access = 8;

Parameter
NameDescription
valueVpcAccess
Returns
TypeDescription
TaskTemplate.Builder

removeContainers(int index)

public TaskTemplate.Builder removeContainers(int index)

Holds the single container that defines the unit of execution for this task.

repeated .google.cloud.run.v2.Container containers = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
TaskTemplate.Builder

removeVolumes(int index)

public TaskTemplate.Builder removeVolumes(int index)

A list of Volumes to make available to containers.

repeated .google.cloud.run.v2.Volume volumes = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
TaskTemplate.Builder

setContainers(int index, Container value)

public TaskTemplate.Builder setContainers(int index, Container value)

Holds the single container that defines the unit of execution for this task.

repeated .google.cloud.run.v2.Container containers = 1;

Parameters
NameDescription
indexint
valueContainer
Returns
TypeDescription
TaskTemplate.Builder

setContainers(int index, Container.Builder builderForValue)

public TaskTemplate.Builder setContainers(int index, Container.Builder builderForValue)

Holds the single container that defines the unit of execution for this task.

repeated .google.cloud.run.v2.Container containers = 1;

Parameters
NameDescription
indexint
builderForValueContainer.Builder
Returns
TypeDescription
TaskTemplate.Builder

setEncryptionKey(String value)

public TaskTemplate.Builder setEncryptionKey(String value)

A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek

string encryption_key = 7 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The encryptionKey to set.

Returns
TypeDescription
TaskTemplate.Builder

This builder for chaining.

setEncryptionKeyBytes(ByteString value)

public TaskTemplate.Builder setEncryptionKeyBytes(ByteString value)

A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek

string encryption_key = 7 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for encryptionKey to set.

Returns
TypeDescription
TaskTemplate.Builder

This builder for chaining.

setExecutionEnvironment(ExecutionEnvironment value)

public TaskTemplate.Builder setExecutionEnvironment(ExecutionEnvironment value)

The execution environment being used to host this Task.

.google.cloud.run.v2.ExecutionEnvironment execution_environment = 6;

Parameter
NameDescription
valueExecutionEnvironment

The executionEnvironment to set.

Returns
TypeDescription
TaskTemplate.Builder

This builder for chaining.

setExecutionEnvironmentValue(int value)

public TaskTemplate.Builder setExecutionEnvironmentValue(int value)

The execution environment being used to host this Task.

.google.cloud.run.v2.ExecutionEnvironment execution_environment = 6;

Parameter
NameDescription
valueint

The enum numeric value on the wire for executionEnvironment to set.

Returns
TypeDescription
TaskTemplate.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMaxRetries(int value)

public TaskTemplate.Builder setMaxRetries(int value)

Number of retries allowed per Task, before marking this Task failed.

int32 max_retries = 3;

Parameter
NameDescription
valueint

The maxRetries to set.

Returns
TypeDescription
TaskTemplate.Builder

This builder for chaining.

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

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

setServiceAccount(String value)

public TaskTemplate.Builder setServiceAccount(String value)

Email address of the IAM service account associated with the Task of a Job. The service account represents the identity of the running task, and determines what permissions the task has. If not provided, the task will use the project's default service account.

string service_account = 5;

Parameter
NameDescription
valueString

The serviceAccount to set.

Returns
TypeDescription
TaskTemplate.Builder

This builder for chaining.

setServiceAccountBytes(ByteString value)

public TaskTemplate.Builder setServiceAccountBytes(ByteString value)

Email address of the IAM service account associated with the Task of a Job. The service account represents the identity of the running task, and determines what permissions the task has. If not provided, the task will use the project's default service account.

string service_account = 5;

Parameter
NameDescription
valueByteString

The bytes for serviceAccount to set.

Returns
TypeDescription
TaskTemplate.Builder

This builder for chaining.

setTimeout(Duration value)

public TaskTemplate.Builder setTimeout(Duration value)

Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers. This applies per attempt of a task, meaning each retry can run for the full timeout.

.google.protobuf.Duration timeout = 4;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
TaskTemplate.Builder

setTimeout(Duration.Builder builderForValue)

public TaskTemplate.Builder setTimeout(Duration.Builder builderForValue)

Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers. This applies per attempt of a task, meaning each retry can run for the full timeout.

.google.protobuf.Duration timeout = 4;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
TaskTemplate.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setVolumes(int index, Volume value)

public TaskTemplate.Builder setVolumes(int index, Volume value)

A list of Volumes to make available to containers.

repeated .google.cloud.run.v2.Volume volumes = 2;

Parameters
NameDescription
indexint
valueVolume
Returns
TypeDescription
TaskTemplate.Builder

setVolumes(int index, Volume.Builder builderForValue)

public TaskTemplate.Builder setVolumes(int index, Volume.Builder builderForValue)

A list of Volumes to make available to containers.

repeated .google.cloud.run.v2.Volume volumes = 2;

Parameters
NameDescription
indexint
builderForValueVolume.Builder
Returns
TypeDescription
TaskTemplate.Builder

setVpcAccess(VpcAccess value)

public TaskTemplate.Builder setVpcAccess(VpcAccess value)

VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.

.google.cloud.run.v2.VpcAccess vpc_access = 8;

Parameter
NameDescription
valueVpcAccess
Returns
TypeDescription
TaskTemplate.Builder

setVpcAccess(VpcAccess.Builder builderForValue)

public TaskTemplate.Builder setVpcAccess(VpcAccess.Builder builderForValue)

VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.

.google.cloud.run.v2.VpcAccess vpc_access = 8;

Parameter
NameDescription
builderForValueVpcAccess.Builder
Returns
TypeDescription
TaskTemplate.Builder