public interface TaskTemplateOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
Container |
getContainers(int index)
Holds the single container that defines the unit of execution for this
task.
|
int |
getContainersCount()
Holds the single container that defines the unit of execution for this
task.
|
List<Container> |
getContainersList()
Holds the single container that defines the unit of execution for this
task.
|
ContainerOrBuilder |
getContainersOrBuilder(int index)
Holds the single container that defines the unit of execution for this
task.
|
List<? extends ContainerOrBuilder> |
getContainersOrBuilderList()
Holds the single container that defines the unit of execution for this
task.
|
String |
getEncryptionKey()
A reference to a customer managed encryption key (CMEK) to use to encrypt
this container image.
|
com.google.protobuf.ByteString |
getEncryptionKeyBytes()
A reference to a customer managed encryption key (CMEK) to use to encrypt
this container image.
|
ExecutionEnvironment |
getExecutionEnvironment()
Optional.
|
int |
getExecutionEnvironmentValue()
Optional.
|
int |
getMaxRetries()
Number of retries allowed per Task, before marking this Task failed.
|
NodeSelector |
getNodeSelector()
Optional.
|
NodeSelectorOrBuilder |
getNodeSelectorOrBuilder()
Optional.
|
TaskTemplate.RetriesCase |
getRetriesCase() |
String |
getServiceAccount()
Optional.
|
com.google.protobuf.ByteString |
getServiceAccountBytes()
Optional.
|
com.google.protobuf.Duration |
getTimeout()
Optional.
|
com.google.protobuf.DurationOrBuilder |
getTimeoutOrBuilder()
Optional.
|
Volume |
getVolumes(int index)
Optional.
|
int |
getVolumesCount()
Optional.
|
List<Volume> |
getVolumesList()
Optional.
|
VolumeOrBuilder |
getVolumesOrBuilder(int index)
Optional.
|
List<? extends VolumeOrBuilder> |
getVolumesOrBuilderList()
Optional.
|
VpcAccess |
getVpcAccess()
Optional.
|
VpcAccessOrBuilder |
getVpcAccessOrBuilder()
Optional.
|
boolean |
hasMaxRetries()
Number of retries allowed per Task, before marking this Task failed.
|
boolean |
hasNodeSelector()
Optional.
|
boolean |
hasTimeout()
Optional.
|
boolean |
hasVpcAccess()
Optional.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofList<Container> getContainersList()
Holds the single container that defines the unit of execution for this task.
repeated .google.cloud.run.v2.Container containers = 1;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;int getContainersCount()
Holds the single container that defines the unit of execution for this task.
repeated .google.cloud.run.v2.Container containers = 1;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;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;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];
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];
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];
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];
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];
boolean hasMaxRetries()
Number of retries allowed per Task, before marking this Task failed. Defaults to 3.
int32 max_retries = 3;int getMaxRetries()
Number of retries allowed per Task, before marking this Task failed. Defaults to 3.
int32 max_retries = 3;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];com.google.protobuf.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];com.google.protobuf.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];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];com.google.protobuf.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];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];
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];
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) = { ... }com.google.protobuf.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) = { ... }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];
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];
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];
boolean hasNodeSelector()
Optional. The node selector for the task template.
.google.cloud.run.v2.NodeSelector node_selector = 11 [(.google.api.field_behavior) = OPTIONAL];
NodeSelector getNodeSelector()
Optional. The node selector for the task template.
.google.cloud.run.v2.NodeSelector node_selector = 11 [(.google.api.field_behavior) = OPTIONAL];
NodeSelectorOrBuilder getNodeSelectorOrBuilder()
Optional. The node selector for the task template.
.google.cloud.run.v2.NodeSelector node_selector = 11 [(.google.api.field_behavior) = OPTIONAL];
TaskTemplate.RetriesCase getRetriesCase()
Copyright © 2025 Google LLC. All rights reserved.