public static final class TaskTemplate.Builder extends com.google.protobuf.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| Modifier and Type | Method and Description |
|---|---|
TaskTemplate.Builder |
addAllContainers(Iterable<? extends Container> values)
Holds the single container that defines the unit of execution for this
task.
|
TaskTemplate.Builder |
addAllVolumes(Iterable<? extends Volume> values)
Optional.
|
TaskTemplate.Builder |
addContainers(Container.Builder builderForValue)
Holds the single container that defines the unit of execution for this
task.
|
TaskTemplate.Builder |
addContainers(Container value)
Holds the single container that defines the unit of execution for this
task.
|
TaskTemplate.Builder |
addContainers(int index,
Container.Builder builderForValue)
Holds the single container that defines the unit of execution for this
task.
|
TaskTemplate.Builder |
addContainers(int index,
Container value)
Holds the single container that defines the unit of execution for this
task.
|
Container.Builder |
addContainersBuilder()
Holds the single container that defines the unit of execution for this
task.
|
Container.Builder |
addContainersBuilder(int index)
Holds the single container that defines the unit of execution for this
task.
|
TaskTemplate.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TaskTemplate.Builder |
addVolumes(int index,
Volume.Builder builderForValue)
Optional.
|
TaskTemplate.Builder |
addVolumes(int index,
Volume value)
Optional.
|
TaskTemplate.Builder |
addVolumes(Volume.Builder builderForValue)
Optional.
|
TaskTemplate.Builder |
addVolumes(Volume value)
Optional.
|
Volume.Builder |
addVolumesBuilder()
Optional.
|
Volume.Builder |
addVolumesBuilder(int index)
Optional.
|
TaskTemplate |
build() |
TaskTemplate |
buildPartial() |
TaskTemplate.Builder |
clear() |
TaskTemplate.Builder |
clearContainers()
Holds the single container that defines the unit of execution for this
task.
|
TaskTemplate.Builder |
clearEncryptionKey()
A reference to a customer managed encryption key (CMEK) to use to encrypt
this container image.
|
TaskTemplate.Builder |
clearExecutionEnvironment()
Optional.
|
TaskTemplate.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TaskTemplate.Builder |
clearMaxRetries()
Number of retries allowed per Task, before marking this Task failed.
|
TaskTemplate.Builder |
clearNodeSelector()
Optional.
|
TaskTemplate.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
TaskTemplate.Builder |
clearRetries() |
TaskTemplate.Builder |
clearServiceAccount()
Optional.
|
TaskTemplate.Builder |
clearTimeout()
Optional.
|
TaskTemplate.Builder |
clearVolumes()
Optional.
|
TaskTemplate.Builder |
clearVpcAccess()
Optional.
|
TaskTemplate.Builder |
clone() |
Container |
getContainers(int index)
Holds the single container that defines the unit of execution for this
task.
|
Container.Builder |
getContainersBuilder(int index)
Holds the single container that defines the unit of execution for this
task.
|
List<Container.Builder> |
getContainersBuilderList()
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.
|
TaskTemplate |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.
|
NodeSelector.Builder |
getNodeSelectorBuilder()
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.Duration.Builder |
getTimeoutBuilder()
Optional.
|
com.google.protobuf.DurationOrBuilder |
getTimeoutOrBuilder()
Optional.
|
Volume |
getVolumes(int index)
Optional.
|
Volume.Builder |
getVolumesBuilder(int index)
Optional.
|
List<Volume.Builder> |
getVolumesBuilderList()
Optional.
|
int |
getVolumesCount()
Optional.
|
List<Volume> |
getVolumesList()
Optional.
|
VolumeOrBuilder |
getVolumesOrBuilder(int index)
Optional.
|
List<? extends VolumeOrBuilder> |
getVolumesOrBuilderList()
Optional.
|
VpcAccess |
getVpcAccess()
Optional.
|
VpcAccess.Builder |
getVpcAccessBuilder()
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.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TaskTemplate.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TaskTemplate.Builder |
mergeFrom(com.google.protobuf.Message other) |
TaskTemplate.Builder |
mergeFrom(TaskTemplate other) |
TaskTemplate.Builder |
mergeNodeSelector(NodeSelector value)
Optional.
|
TaskTemplate.Builder |
mergeTimeout(com.google.protobuf.Duration value)
Optional.
|
TaskTemplate.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TaskTemplate.Builder |
mergeVpcAccess(VpcAccess value)
Optional.
|
TaskTemplate.Builder |
removeContainers(int index)
Holds the single container that defines the unit of execution for this
task.
|
TaskTemplate.Builder |
removeVolumes(int index)
Optional.
|
TaskTemplate.Builder |
setContainers(int index,
Container.Builder builderForValue)
Holds the single container that defines the unit of execution for this
task.
|
TaskTemplate.Builder |
setContainers(int index,
Container value)
Holds the single container that defines the unit of execution for this
task.
|
TaskTemplate.Builder |
setEncryptionKey(String value)
A reference to a customer managed encryption key (CMEK) to use to encrypt
this container image.
|
TaskTemplate.Builder |
setEncryptionKeyBytes(com.google.protobuf.ByteString value)
A reference to a customer managed encryption key (CMEK) to use to encrypt
this container image.
|
TaskTemplate.Builder |
setExecutionEnvironment(ExecutionEnvironment value)
Optional.
|
TaskTemplate.Builder |
setExecutionEnvironmentValue(int value)
Optional.
|
TaskTemplate.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TaskTemplate.Builder |
setMaxRetries(int value)
Number of retries allowed per Task, before marking this Task failed.
|
TaskTemplate.Builder |
setNodeSelector(NodeSelector.Builder builderForValue)
Optional.
|
TaskTemplate.Builder |
setNodeSelector(NodeSelector value)
Optional.
|
TaskTemplate.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
TaskTemplate.Builder |
setServiceAccount(String value)
Optional.
|
TaskTemplate.Builder |
setServiceAccountBytes(com.google.protobuf.ByteString value)
Optional.
|
TaskTemplate.Builder |
setTimeout(com.google.protobuf.Duration.Builder builderForValue)
Optional.
|
TaskTemplate.Builder |
setTimeout(com.google.protobuf.Duration value)
Optional.
|
TaskTemplate.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TaskTemplate.Builder |
setVolumes(int index,
Volume.Builder builderForValue)
Optional.
|
TaskTemplate.Builder |
setVolumes(int index,
Volume value)
Optional.
|
TaskTemplate.Builder |
setVpcAccess(VpcAccess.Builder builderForValue)
Optional.
|
TaskTemplate.Builder |
setVpcAccess(VpcAccess value)
Optional.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TaskTemplate.Builder>public TaskTemplate.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<TaskTemplate.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TaskTemplate.Builder>public TaskTemplate getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TaskTemplate build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TaskTemplate buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TaskTemplate.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<TaskTemplate.Builder>public TaskTemplate.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<TaskTemplate.Builder>public TaskTemplate.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TaskTemplate.Builder>public TaskTemplate.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TaskTemplate.Builder>public TaskTemplate.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TaskTemplate.Builder>public TaskTemplate.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TaskTemplate.Builder>public TaskTemplate.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TaskTemplate.Builder>public TaskTemplate.Builder mergeFrom(TaskTemplate other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TaskTemplate.Builder>public TaskTemplate.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TaskTemplate.Builder>IOExceptionpublic TaskTemplate.RetriesCase getRetriesCase()
getRetriesCase in interface TaskTemplateOrBuilderpublic TaskTemplate.Builder clearRetries()
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;getContainersList in interface TaskTemplateOrBuilderpublic int getContainersCount()
Holds the single container that defines the unit of execution for this task.
repeated .google.cloud.run.v2.Container containers = 1;getContainersCount in interface TaskTemplateOrBuilderpublic 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;getContainers in interface TaskTemplateOrBuilderpublic 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;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;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;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;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;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;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;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;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;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;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;getContainersOrBuilder in interface TaskTemplateOrBuilderpublic 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;getContainersOrBuilderList in interface TaskTemplateOrBuilderpublic Container.Builder addContainersBuilder()
Holds the single container that defines the unit of execution for this task.
repeated .google.cloud.run.v2.Container containers = 1;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;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;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];
getVolumesList in interface TaskTemplateOrBuilderpublic 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];
getVolumesCount in interface TaskTemplateOrBuilderpublic 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];
getVolumes in interface TaskTemplateOrBuilderpublic 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];
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];
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];
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];
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];
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];
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];
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];
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];
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];
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];
getVolumesOrBuilder in interface TaskTemplateOrBuilderpublic 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];
getVolumesOrBuilderList in interface TaskTemplateOrBuilderpublic 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];
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];
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];
public boolean hasMaxRetries()
Number of retries allowed per Task, before marking this Task failed. Defaults to 3.
int32 max_retries = 3;hasMaxRetries in interface TaskTemplateOrBuilderpublic int getMaxRetries()
Number of retries allowed per Task, before marking this Task failed. Defaults to 3.
int32 max_retries = 3;getMaxRetries in interface TaskTemplateOrBuilderpublic TaskTemplate.Builder setMaxRetries(int value)
Number of retries allowed per Task, before marking this Task failed. Defaults to 3.
int32 max_retries = 3;value - The maxRetries to set.public TaskTemplate.Builder clearMaxRetries()
Number of retries allowed per Task, before marking this Task failed. Defaults to 3.
int32 max_retries = 3;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];hasTimeout in interface TaskTemplateOrBuilderpublic 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];getTimeout in interface TaskTemplateOrBuilderpublic TaskTemplate.Builder setTimeout(com.google.protobuf.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];public TaskTemplate.Builder setTimeout(com.google.protobuf.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];public TaskTemplate.Builder mergeTimeout(com.google.protobuf.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];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];public com.google.protobuf.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];public 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];getTimeoutOrBuilder in interface TaskTemplateOrBuilderpublic 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];getServiceAccount in interface TaskTemplateOrBuilderpublic 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];getServiceAccountBytes in interface TaskTemplateOrBuilderpublic 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];value - The serviceAccount to set.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];public TaskTemplate.Builder setServiceAccountBytes(com.google.protobuf.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];value - The bytes for serviceAccount to set.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];
getExecutionEnvironmentValue in interface TaskTemplateOrBuilderpublic 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];
value - The enum numeric value on the wire for executionEnvironment to set.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];
getExecutionEnvironment in interface TaskTemplateOrBuilderpublic 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];
value - The executionEnvironment to set.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];
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) = { ... }getEncryptionKey in interface TaskTemplateOrBuilderpublic 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) = { ... }getEncryptionKeyBytes in interface TaskTemplateOrBuilderpublic 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) = { ... }value - The encryptionKey to set.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) = { ... }public TaskTemplate.Builder setEncryptionKeyBytes(com.google.protobuf.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) = { ... }value - The bytes for encryptionKey to set.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];
hasVpcAccess in interface TaskTemplateOrBuilderpublic 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];
getVpcAccess in interface TaskTemplateOrBuilderpublic 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];
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];
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];
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];
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];
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];
getVpcAccessOrBuilder in interface TaskTemplateOrBuilderpublic boolean hasNodeSelector()
Optional. The node selector for the task template.
.google.cloud.run.v2.NodeSelector node_selector = 11 [(.google.api.field_behavior) = OPTIONAL];
hasNodeSelector in interface TaskTemplateOrBuilderpublic NodeSelector getNodeSelector()
Optional. The node selector for the task template.
.google.cloud.run.v2.NodeSelector node_selector = 11 [(.google.api.field_behavior) = OPTIONAL];
getNodeSelector in interface TaskTemplateOrBuilderpublic TaskTemplate.Builder setNodeSelector(NodeSelector value)
Optional. The node selector for the task template.
.google.cloud.run.v2.NodeSelector node_selector = 11 [(.google.api.field_behavior) = OPTIONAL];
public TaskTemplate.Builder setNodeSelector(NodeSelector.Builder builderForValue)
Optional. The node selector for the task template.
.google.cloud.run.v2.NodeSelector node_selector = 11 [(.google.api.field_behavior) = OPTIONAL];
public TaskTemplate.Builder mergeNodeSelector(NodeSelector value)
Optional. The node selector for the task template.
.google.cloud.run.v2.NodeSelector node_selector = 11 [(.google.api.field_behavior) = OPTIONAL];
public TaskTemplate.Builder clearNodeSelector()
Optional. The node selector for the task template.
.google.cloud.run.v2.NodeSelector node_selector = 11 [(.google.api.field_behavior) = OPTIONAL];
public NodeSelector.Builder getNodeSelectorBuilder()
Optional. The node selector for the task template.
.google.cloud.run.v2.NodeSelector node_selector = 11 [(.google.api.field_behavior) = OPTIONAL];
public NodeSelectorOrBuilder getNodeSelectorOrBuilder()
Optional. The node selector for the task template.
.google.cloud.run.v2.NodeSelector node_selector = 11 [(.google.api.field_behavior) = OPTIONAL];
getNodeSelectorOrBuilder in interface TaskTemplateOrBuilderpublic final TaskTemplate.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TaskTemplate.Builder>public final TaskTemplate.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TaskTemplate.Builder>Copyright © 2025 Google LLC. All rights reserved.