Package com.google.cloud.run.v2
Class TaskTemplate.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<TaskTemplate.Builder>
-
- com.google.cloud.run.v2.TaskTemplate.Builder
-
- All Implemented Interfaces:
TaskTemplateOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- TaskTemplate
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 typegoogle.cloud.run.v2.TaskTemplate
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
A list of Volumes to make available to containers.TaskTemplate.Builder
addContainers(int index, 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(Container value)
Holds the single container that defines the unit of execution for this task.TaskTemplate.Builder
addContainers(Container.Builder builderForValue)
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 value)
A list of Volumes to make available to containers.TaskTemplate.Builder
addVolumes(int index, Volume.Builder builderForValue)
A list of Volumes to make available to containers.TaskTemplate.Builder
addVolumes(Volume value)
A list of Volumes to make available to containers.TaskTemplate.Builder
addVolumes(Volume.Builder builderForValue)
A list of Volumes to make available to containers.Volume.Builder
addVolumesBuilder()
A list of Volumes to make available to containers.Volume.Builder
addVolumesBuilder(int index)
A list of Volumes to make available to containers.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()
The execution environment being used to host this Task.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
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
TaskTemplate.Builder
clearRetries()
TaskTemplate.Builder
clearServiceAccount()
Email address of the IAM service account associated with the Task of a Job.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.TaskTemplate.Builder
clearVolumes()
A list of Volumes to make available to containers.TaskTemplate.Builder
clearVpcAccess()
VPC Access configuration to use for this Task.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()
The execution environment being used to host this Task.int
getExecutionEnvironmentValue()
The execution environment being used to host this Task.int
getMaxRetries()
Number of retries allowed per Task, before marking this Task failed.TaskTemplate.RetriesCase
getRetriesCase()
String
getServiceAccount()
Email address of the IAM service account associated with the Task of a Job.com.google.protobuf.ByteString
getServiceAccountBytes()
Email address of the IAM service account associated with the Task of a Job.com.google.protobuf.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.com.google.protobuf.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.com.google.protobuf.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.Volume
getVolumes(int index)
A list of Volumes to make available to containers.Volume.Builder
getVolumesBuilder(int index)
A list of Volumes to make available to containers.List<Volume.Builder>
getVolumesBuilderList()
A list of Volumes to make available to containers.int
getVolumesCount()
A list of Volumes to make available to containers.List<Volume>
getVolumesList()
A list of Volumes to make available to containers.VolumeOrBuilder
getVolumesOrBuilder(int index)
A list of Volumes to make available to containers.List<? extends VolumeOrBuilder>
getVolumesOrBuilderList()
A list of Volumes to make available to containers.VpcAccess
getVpcAccess()
VPC Access configuration to use for this Task.VpcAccess.Builder
getVpcAccessBuilder()
VPC Access configuration to use for this Task.VpcAccessOrBuilder
getVpcAccessOrBuilder()
VPC Access configuration to use for this Task.boolean
hasMaxRetries()
Number of retries allowed per Task, before marking this Task failed.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.boolean
hasVpcAccess()
VPC Access configuration to use for this Task.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
TaskTemplate.Builder
mergeFrom(TaskTemplate other)
TaskTemplate.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
TaskTemplate.Builder
mergeFrom(com.google.protobuf.Message other)
TaskTemplate.Builder
mergeTimeout(com.google.protobuf.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.TaskTemplate.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
TaskTemplate.Builder
mergeVpcAccess(VpcAccess value)
VPC Access configuration to use for this Task.TaskTemplate.Builder
removeContainers(int index)
Holds the single container that defines the unit of execution for this task.TaskTemplate.Builder
removeVolumes(int index)
A list of Volumes to make available to containers.TaskTemplate.Builder
setContainers(int index, Container value)
Holds the single container that defines the unit of execution for this task.TaskTemplate.Builder
setContainers(int index, Container.Builder builderForValue)
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)
The execution environment being used to host this Task.TaskTemplate.Builder
setExecutionEnvironmentValue(int value)
The execution environment being used to host this Task.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
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
TaskTemplate.Builder
setServiceAccount(String value)
Email address of the IAM service account associated with the Task of a Job.TaskTemplate.Builder
setServiceAccountBytes(com.google.protobuf.ByteString value)
Email address of the IAM service account associated with the Task of a Job.TaskTemplate.Builder
setTimeout(com.google.protobuf.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.TaskTemplate.Builder
setTimeout(com.google.protobuf.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.TaskTemplate.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
TaskTemplate.Builder
setVolumes(int index, Volume value)
A list of Volumes to make available to containers.TaskTemplate.Builder
setVolumes(int index, Volume.Builder builderForValue)
A list of Volumes to make available to containers.TaskTemplate.Builder
setVpcAccess(VpcAccess value)
VPC Access configuration to use for this Task.TaskTemplate.Builder
setVpcAccess(VpcAccess.Builder builderForValue)
VPC Access configuration to use for this Task.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<TaskTemplate.Builder>
-
clear
public TaskTemplate.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<TaskTemplate.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<TaskTemplate.Builder>
-
getDefaultInstanceForType
public TaskTemplate getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public TaskTemplate build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TaskTemplate buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TaskTemplate.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<TaskTemplate.Builder>
-
setField
public TaskTemplate.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TaskTemplate.Builder>
-
clearField
public TaskTemplate.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TaskTemplate.Builder>
-
clearOneof
public TaskTemplate.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<TaskTemplate.Builder>
-
setRepeatedField
public TaskTemplate.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TaskTemplate.Builder>
-
addRepeatedField
public TaskTemplate.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TaskTemplate.Builder>
-
mergeFrom
public TaskTemplate.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<TaskTemplate.Builder>
-
mergeFrom
public TaskTemplate.Builder mergeFrom(TaskTemplate other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<TaskTemplate.Builder>
-
mergeFrom
public TaskTemplate.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<TaskTemplate.Builder>
- Throws:
IOException
-
getRetriesCase
public TaskTemplate.RetriesCase getRetriesCase()
- Specified by:
getRetriesCase
in interfaceTaskTemplateOrBuilder
-
clearRetries
public TaskTemplate.Builder clearRetries()
-
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;
- Specified by:
getContainersList
in interfaceTaskTemplateOrBuilder
-
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;
- Specified by:
getContainersCount
in interfaceTaskTemplateOrBuilder
-
getContainers
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;
- Specified by:
getContainers
in interfaceTaskTemplateOrBuilder
-
setContainers
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;
-
setContainers
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;
-
addContainers
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;
-
addContainers
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;
-
addContainers
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;
-
addContainers
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;
-
addAllContainers
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;
-
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;
-
removeContainers
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;
-
getContainersBuilder
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;
-
getContainersOrBuilder
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;
- Specified by:
getContainersOrBuilder
in interfaceTaskTemplateOrBuilder
-
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;
- Specified by:
getContainersOrBuilderList
in interfaceTaskTemplateOrBuilder
-
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;
-
addContainersBuilder
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;
-
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;
-
getVolumesList
public List<Volume> getVolumesList()
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 2;
- Specified by:
getVolumesList
in interfaceTaskTemplateOrBuilder
-
getVolumesCount
public int getVolumesCount()
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 2;
- Specified by:
getVolumesCount
in interfaceTaskTemplateOrBuilder
-
getVolumes
public Volume getVolumes(int index)
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 2;
- Specified by:
getVolumes
in interfaceTaskTemplateOrBuilder
-
setVolumes
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;
-
setVolumes
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;
-
addVolumes
public TaskTemplate.Builder addVolumes(Volume value)
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 2;
-
addVolumes
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;
-
addVolumes
public TaskTemplate.Builder addVolumes(Volume.Builder builderForValue)
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 2;
-
addVolumes
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;
-
addAllVolumes
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;
-
clearVolumes
public TaskTemplate.Builder clearVolumes()
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 2;
-
removeVolumes
public TaskTemplate.Builder removeVolumes(int index)
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 2;
-
getVolumesBuilder
public Volume.Builder getVolumesBuilder(int index)
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 2;
-
getVolumesOrBuilder
public VolumeOrBuilder getVolumesOrBuilder(int index)
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 2;
- Specified by:
getVolumesOrBuilder
in interfaceTaskTemplateOrBuilder
-
getVolumesOrBuilderList
public List<? extends VolumeOrBuilder> getVolumesOrBuilderList()
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 2;
- Specified by:
getVolumesOrBuilderList
in interfaceTaskTemplateOrBuilder
-
addVolumesBuilder
public Volume.Builder addVolumesBuilder()
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 2;
-
addVolumesBuilder
public Volume.Builder addVolumesBuilder(int index)
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 2;
-
getVolumesBuilderList
public List<Volume.Builder> getVolumesBuilderList()
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 2;
-
hasMaxRetries
public boolean hasMaxRetries()
Number of retries allowed per Task, before marking this Task failed. Defaults to 3.
int32 max_retries = 3;
- Specified by:
hasMaxRetries
in interfaceTaskTemplateOrBuilder
- Returns:
- Whether the maxRetries field is set.
-
getMaxRetries
public int getMaxRetries()
Number of retries allowed per Task, before marking this Task failed. Defaults to 3.
int32 max_retries = 3;
- Specified by:
getMaxRetries
in interfaceTaskTemplateOrBuilder
- Returns:
- The maxRetries.
-
setMaxRetries
public TaskTemplate.Builder setMaxRetries(int value)
Number of retries allowed per Task, before marking this Task failed. Defaults to 3.
int32 max_retries = 3;
- Parameters:
value
- The maxRetries to set.- Returns:
- This builder for chaining.
-
clearMaxRetries
public TaskTemplate.Builder clearMaxRetries()
Number of retries allowed per Task, before marking this Task failed. Defaults to 3.
int32 max_retries = 3;
- Returns:
- This builder for chaining.
-
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. Defaults to 600 seconds.
.google.protobuf.Duration timeout = 4;
- Specified by:
hasTimeout
in interfaceTaskTemplateOrBuilder
- Returns:
- Whether the timeout field is set.
-
getTimeout
public com.google.protobuf.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. Defaults to 600 seconds.
.google.protobuf.Duration timeout = 4;
- Specified by:
getTimeout
in interfaceTaskTemplateOrBuilder
- Returns:
- The timeout.
-
setTimeout
public TaskTemplate.Builder setTimeout(com.google.protobuf.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. Defaults to 600 seconds.
.google.protobuf.Duration timeout = 4;
-
setTimeout
public TaskTemplate.Builder setTimeout(com.google.protobuf.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. Defaults to 600 seconds.
.google.protobuf.Duration timeout = 4;
-
mergeTimeout
public TaskTemplate.Builder mergeTimeout(com.google.protobuf.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. Defaults to 600 seconds.
.google.protobuf.Duration timeout = 4;
-
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. Defaults to 600 seconds.
.google.protobuf.Duration timeout = 4;
-
getTimeoutBuilder
public com.google.protobuf.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. Defaults to 600 seconds.
.google.protobuf.Duration timeout = 4;
-
getTimeoutOrBuilder
public com.google.protobuf.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. Defaults to 600 seconds.
.google.protobuf.Duration timeout = 4;
- Specified by:
getTimeoutOrBuilder
in interfaceTaskTemplateOrBuilder
-
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;
- Specified by:
getServiceAccount
in interfaceTaskTemplateOrBuilder
- Returns:
- The serviceAccount.
-
getServiceAccountBytes
public com.google.protobuf.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;
- Specified by:
getServiceAccountBytes
in interfaceTaskTemplateOrBuilder
- Returns:
- The bytes for serviceAccount.
-
setServiceAccount
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;
- Parameters:
value
- The serviceAccount to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setServiceAccountBytes
public TaskTemplate.Builder setServiceAccountBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for serviceAccount to set.- Returns:
- This builder for chaining.
-
getExecutionEnvironmentValue
public int getExecutionEnvironmentValue()
The execution environment being used to host this Task.
.google.cloud.run.v2.ExecutionEnvironment execution_environment = 6;
- Specified by:
getExecutionEnvironmentValue
in interfaceTaskTemplateOrBuilder
- Returns:
- The enum numeric value on the wire for executionEnvironment.
-
setExecutionEnvironmentValue
public TaskTemplate.Builder setExecutionEnvironmentValue(int value)
The execution environment being used to host this Task.
.google.cloud.run.v2.ExecutionEnvironment execution_environment = 6;
- Parameters:
value
- The enum numeric value on the wire for executionEnvironment to set.- Returns:
- This builder for chaining.
-
getExecutionEnvironment
public ExecutionEnvironment getExecutionEnvironment()
The execution environment being used to host this Task.
.google.cloud.run.v2.ExecutionEnvironment execution_environment = 6;
- Specified by:
getExecutionEnvironment
in interfaceTaskTemplateOrBuilder
- Returns:
- The executionEnvironment.
-
setExecutionEnvironment
public TaskTemplate.Builder setExecutionEnvironment(ExecutionEnvironment value)
The execution environment being used to host this Task.
.google.cloud.run.v2.ExecutionEnvironment execution_environment = 6;
- Parameters:
value
- The executionEnvironment to set.- Returns:
- 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:
- This builder for chaining.
-
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) = { ... }
- Specified by:
getEncryptionKey
in interfaceTaskTemplateOrBuilder
- Returns:
- The encryptionKey.
-
getEncryptionKeyBytes
public 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) = { ... }
- Specified by:
getEncryptionKeyBytes
in interfaceTaskTemplateOrBuilder
- Returns:
- The bytes for encryptionKey.
-
setEncryptionKey
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) = { ... }
- Parameters:
value
- The encryptionKey to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setEncryptionKeyBytes
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) = { ... }
- Parameters:
value
- The bytes for encryptionKey to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
hasVpcAccess
in interfaceTaskTemplateOrBuilder
- Returns:
- Whether the vpcAccess field is set.
-
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;
- Specified by:
getVpcAccess
in interfaceTaskTemplateOrBuilder
- Returns:
- The vpcAccess.
-
setVpcAccess
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;
-
setVpcAccess
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;
-
mergeVpcAccess
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;
-
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;
-
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;
-
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;
- Specified by:
getVpcAccessOrBuilder
in interfaceTaskTemplateOrBuilder
-
setUnknownFields
public final TaskTemplate.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TaskTemplate.Builder>
-
mergeUnknownFields
public final TaskTemplate.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TaskTemplate.Builder>
-
-