- 0.52.0 (latest)
- 0.51.0
- 0.49.0
- 0.48.0
- 0.47.0
- 0.46.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.5
- 0.2.1
- 0.1.2
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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > TaskTemplate.BuilderImplements
TaskTemplateOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.cloud.run.v2.Container> |
Returns | |
---|---|
Type | Description |
TaskTemplate.Builder |
addAllVolumes(Iterable<? extends Volume> values)
public TaskTemplate.Builder addAllVolumes(Iterable<? extends Volume> values)
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.cloud.run.v2.Volume> |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
Container |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue |
Container.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index |
int |
value |
Container |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index |
int |
builderForValue |
Container.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Container.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TaskTemplate.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
TaskTemplate.Builder |
addVolumes(Volume value)
public TaskTemplate.Builder addVolumes(Volume value)
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
Volume |
Returns | |
---|---|
Type | Description |
TaskTemplate.Builder |
addVolumes(Volume.Builder builderForValue)
public TaskTemplate.Builder addVolumes(Volume.Builder builderForValue)
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
builderForValue |
Volume.Builder |
Returns | |
---|---|
Type | Description |
TaskTemplate.Builder |
addVolumes(int index, Volume value)
public TaskTemplate.Builder addVolumes(int index, Volume value)
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
Volume |
Returns | |
---|---|
Type | Description |
TaskTemplate.Builder |
addVolumes(int index, Volume.Builder builderForValue)
public TaskTemplate.Builder addVolumes(int index, Volume.Builder builderForValue)
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
Volume.Builder |
Returns | |
---|---|
Type | Description |
TaskTemplate.Builder |
addVolumesBuilder()
public Volume.Builder addVolumesBuilder()
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
Volume.Builder |
addVolumesBuilder(int index)
public Volume.Builder addVolumesBuilder(int index)
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Volume.Builder |
build()
public TaskTemplate build()
Returns | |
---|---|
Type | Description |
TaskTemplate |
buildPartial()
public TaskTemplate buildPartial()
Returns | |
---|---|
Type | Description |
TaskTemplate |
clear()
public TaskTemplate.Builder clear()
Returns | |
---|---|
Type | Description |
TaskTemplate.Builder |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
TaskTemplate.Builder |
This builder for chaining. |
clearExecutionEnvironment()
public TaskTemplate.Builder clearExecutionEnvironment()
Optional. The execution environment being used to host this Task.
.google.cloud.run.v2.ExecutionEnvironment execution_environment = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
TaskTemplate.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public TaskTemplate.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
TaskTemplate.Builder |
clearMaxRetries()
public TaskTemplate.Builder clearMaxRetries()
Number of retries allowed per Task, before marking this Task failed. Defaults to 3.
int32 max_retries = 3;
Returns | |
---|---|
Type | Description |
TaskTemplate.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public TaskTemplate.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
TaskTemplate.Builder |
clearRetries()
public TaskTemplate.Builder clearRetries()
Returns | |
---|---|
Type | Description |
TaskTemplate.Builder |
clearServiceAccount()
public TaskTemplate.Builder clearServiceAccount()
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
TaskTemplate.Builder |
This builder for chaining. |
clearTimeout()
public TaskTemplate.Builder clearTimeout()
Optional. 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. Defaults to 600 seconds.
.google.protobuf.Duration timeout = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
TaskTemplate.Builder |
clearVolumes()
public TaskTemplate.Builder clearVolumes()
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
TaskTemplate.Builder |
clearVpcAccess()
public TaskTemplate.Builder clearVpcAccess()
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
TaskTemplate.Builder |
clone()
public TaskTemplate.Builder clone()
Returns | |
---|---|
Type | Description |
TaskTemplate.Builder |
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 | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
List<? extends com.google.cloud.run.v2.ContainerOrBuilder> |
getDefaultInstanceForType()
public TaskTemplate getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
TaskTemplate |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ByteString |
The bytes for encryptionKey. |
getExecutionEnvironment()
public ExecutionEnvironment getExecutionEnvironment()
Optional. The execution environment being used to host this Task.
.google.cloud.run.v2.ExecutionEnvironment execution_environment = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ExecutionEnvironment |
The executionEnvironment. |
getExecutionEnvironmentValue()
public int getExecutionEnvironmentValue()
Optional. The execution environment being used to host this Task.
.google.cloud.run.v2.ExecutionEnvironment execution_environment = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
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. Defaults to 3.
int32 max_retries = 3;
Returns | |
---|---|
Type | Description |
int |
The maxRetries. |
getRetriesCase()
public TaskTemplate.RetriesCase getRetriesCase()
Returns | |
---|---|
Type | Description |
TaskTemplate.RetriesCase |
getServiceAccount()
public String getServiceAccount()
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
String |
The serviceAccount. |
getServiceAccountBytes()
public ByteString getServiceAccountBytes()
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for serviceAccount. |
getTimeout()
public Duration getTimeout()
Optional. 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. Defaults to 600 seconds.
.google.protobuf.Duration timeout = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
Duration |
The timeout. |
getTimeoutBuilder()
public Duration.Builder getTimeoutBuilder()
Optional. 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. Defaults to 600 seconds.
.google.protobuf.Duration timeout = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
Builder |
getTimeoutOrBuilder()
public DurationOrBuilder getTimeoutOrBuilder()
Optional. 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. Defaults to 600 seconds.
.google.protobuf.Duration timeout = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
DurationOrBuilder |
getVolumes(int index)
public Volume getVolumes(int index)
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Volume |
getVolumesBuilder(int index)
public Volume.Builder getVolumesBuilder(int index)
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Volume.Builder |
getVolumesBuilderList()
public List<Volume.Builder> getVolumesBuilderList()
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<Builder> |
getVolumesCount()
public int getVolumesCount()
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
int |
getVolumesList()
public List<Volume> getVolumesList()
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<Volume> |
getVolumesOrBuilder(int index)
public VolumeOrBuilder getVolumesOrBuilder(int index)
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
VolumeOrBuilder |
getVolumesOrBuilderList()
public List<? extends VolumeOrBuilder> getVolumesOrBuilderList()
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.run.v2.VolumeOrBuilder> |
getVpcAccess()
public VpcAccess getVpcAccess()
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
VpcAccess |
The vpcAccess. |
getVpcAccessBuilder()
public VpcAccess.Builder getVpcAccessBuilder()
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
VpcAccess.Builder |
getVpcAccessOrBuilder()
public VpcAccessOrBuilder getVpcAccessOrBuilder()
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
VpcAccessOrBuilder |
hasMaxRetries()
public boolean hasMaxRetries()
Number of retries allowed per Task, before marking this Task failed. Defaults to 3.
int32 max_retries = 3;
Returns | |
---|---|
Type | Description |
boolean |
Whether the maxRetries field is set. |
hasTimeout()
public boolean hasTimeout()
Optional. 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. Defaults to 600 seconds.
.google.protobuf.Duration timeout = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the timeout field is set. |
hasVpcAccess()
public boolean hasVpcAccess()
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
Whether the vpcAccess field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(TaskTemplate other)
public TaskTemplate.Builder mergeFrom(TaskTemplate other)
Parameter | |
---|---|
Name | Description |
other |
TaskTemplate |
Returns | |
---|---|
Type | Description |
TaskTemplate.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TaskTemplate.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
TaskTemplate.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public TaskTemplate.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
TaskTemplate.Builder |
mergeTimeout(Duration value)
public TaskTemplate.Builder mergeTimeout(Duration value)
Optional. 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. Defaults to 600 seconds.
.google.protobuf.Duration timeout = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
Duration |
Returns | |
---|---|
Type | Description |
TaskTemplate.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TaskTemplate.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
TaskTemplate.Builder |
mergeVpcAccess(VpcAccess value)
public TaskTemplate.Builder mergeVpcAccess(VpcAccess value)
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
VpcAccess |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
TaskTemplate.Builder |
removeVolumes(int index)
public TaskTemplate.Builder removeVolumes(int index)
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index |
int |
value |
Container |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index |
int |
builderForValue |
Container.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
String The encryptionKey to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
ByteString The bytes for encryptionKey to set. |
Returns | |
---|---|
Type | Description |
TaskTemplate.Builder |
This builder for chaining. |
setExecutionEnvironment(ExecutionEnvironment value)
public TaskTemplate.Builder setExecutionEnvironment(ExecutionEnvironment value)
Optional. The execution environment being used to host this Task.
.google.cloud.run.v2.ExecutionEnvironment execution_environment = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ExecutionEnvironment The executionEnvironment to set. |
Returns | |
---|---|
Type | Description |
TaskTemplate.Builder |
This builder for chaining. |
setExecutionEnvironmentValue(int value)
public TaskTemplate.Builder setExecutionEnvironmentValue(int value)
Optional. The execution environment being used to host this Task.
.google.cloud.run.v2.ExecutionEnvironment execution_environment = 6 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
int The enum numeric value on the wire for executionEnvironment to set. |
Returns | |
---|---|
Type | Description |
TaskTemplate.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public TaskTemplate.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
TaskTemplate.Builder |
setMaxRetries(int value)
public TaskTemplate.Builder setMaxRetries(int value)
Number of retries allowed per Task, before marking this Task failed. Defaults to 3.
int32 max_retries = 3;
Parameter | |
---|---|
Name | Description |
value |
int The maxRetries to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
TaskTemplate.Builder |
setServiceAccount(String value)
public TaskTemplate.Builder setServiceAccount(String value)
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
String The serviceAccount to set. |
Returns | |
---|---|
Type | Description |
TaskTemplate.Builder |
This builder for chaining. |
setServiceAccountBytes(ByteString value)
public TaskTemplate.Builder setServiceAccountBytes(ByteString value)
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for serviceAccount to set. |
Returns | |
---|---|
Type | Description |
TaskTemplate.Builder |
This builder for chaining. |
setTimeout(Duration value)
public TaskTemplate.Builder setTimeout(Duration value)
Optional. 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. Defaults to 600 seconds.
.google.protobuf.Duration timeout = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
Duration |
Returns | |
---|---|
Type | Description |
TaskTemplate.Builder |
setTimeout(Duration.Builder builderForValue)
public TaskTemplate.Builder setTimeout(Duration.Builder builderForValue)
Optional. 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. Defaults to 600 seconds.
.google.protobuf.Duration timeout = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
TaskTemplate.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final TaskTemplate.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
TaskTemplate.Builder |
setVolumes(int index, Volume value)
public TaskTemplate.Builder setVolumes(int index, Volume value)
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
value |
Volume |
Returns | |
---|---|
Type | Description |
TaskTemplate.Builder |
setVolumes(int index, Volume.Builder builderForValue)
public TaskTemplate.Builder setVolumes(int index, Volume.Builder builderForValue)
Optional. A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
Volume.Builder |
Returns | |
---|---|
Type | Description |
TaskTemplate.Builder |
setVpcAccess(VpcAccess value)
public TaskTemplate.Builder setVpcAccess(VpcAccess value)
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
VpcAccess |
Returns | |
---|---|
Type | Description |
TaskTemplate.Builder |
setVpcAccess(VpcAccess.Builder builderForValue)
public TaskTemplate.Builder setVpcAccess(VpcAccess.Builder builderForValue)
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
builderForValue |
VpcAccess.Builder |
Returns | |
---|---|
Type | Description |
TaskTemplate.Builder |