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.BuilderaddAllContainers(Iterable<? extends Container> values)Holds the single container that defines the unit of execution for this task.TaskTemplate.BuilderaddAllVolumes(Iterable<? extends Volume> values)A list of Volumes to make available to containers.TaskTemplate.BuilderaddContainers(int index, Container value)Holds the single container that defines the unit of execution for this task.TaskTemplate.BuilderaddContainers(int index, Container.Builder builderForValue)Holds the single container that defines the unit of execution for this task.TaskTemplate.BuilderaddContainers(Container value)Holds the single container that defines the unit of execution for this task.TaskTemplate.BuilderaddContainers(Container.Builder builderForValue)Holds the single container that defines the unit of execution for this task.Container.BuilderaddContainersBuilder()Holds the single container that defines the unit of execution for this task.Container.BuilderaddContainersBuilder(int index)Holds the single container that defines the unit of execution for this task.TaskTemplate.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TaskTemplate.BuilderaddVolumes(int index, Volume value)A list of Volumes to make available to containers.TaskTemplate.BuilderaddVolumes(int index, Volume.Builder builderForValue)A list of Volumes to make available to containers.TaskTemplate.BuilderaddVolumes(Volume value)A list of Volumes to make available to containers.TaskTemplate.BuilderaddVolumes(Volume.Builder builderForValue)A list of Volumes to make available to containers.Volume.BuilderaddVolumesBuilder()A list of Volumes to make available to containers.Volume.BuilderaddVolumesBuilder(int index)A list of Volumes to make available to containers.TaskTemplatebuild()TaskTemplatebuildPartial()TaskTemplate.Builderclear()TaskTemplate.BuilderclearContainers()Holds the single container that defines the unit of execution for this task.TaskTemplate.BuilderclearEncryptionKey()A reference to a customer managed encryption key (CMEK) to use to encrypt this container image.TaskTemplate.BuilderclearExecutionEnvironment()The execution environment being used to host this Task.TaskTemplate.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)TaskTemplate.BuilderclearMaxRetries()Number of retries allowed per Task, before marking this Task failed.TaskTemplate.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)TaskTemplate.BuilderclearRetries()TaskTemplate.BuilderclearServiceAccount()Email address of the IAM service account associated with the Task of a Job.TaskTemplate.BuilderclearTimeout()Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers.TaskTemplate.BuilderclearVolumes()A list of Volumes to make available to containers.TaskTemplate.BuilderclearVpcAccess()VPC Access configuration to use for this Task.TaskTemplate.Builderclone()ContainergetContainers(int index)Holds the single container that defines the unit of execution for this task.Container.BuildergetContainersBuilder(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.intgetContainersCount()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.ContainerOrBuildergetContainersOrBuilder(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.TaskTemplategetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetEncryptionKey()A reference to a customer managed encryption key (CMEK) to use to encrypt this container image.com.google.protobuf.ByteStringgetEncryptionKeyBytes()A reference to a customer managed encryption key (CMEK) to use to encrypt this container image.ExecutionEnvironmentgetExecutionEnvironment()The execution environment being used to host this Task.intgetExecutionEnvironmentValue()The execution environment being used to host this Task.intgetMaxRetries()Number of retries allowed per Task, before marking this Task failed.TaskTemplate.RetriesCasegetRetriesCase()StringgetServiceAccount()Email address of the IAM service account associated with the Task of a Job.com.google.protobuf.ByteStringgetServiceAccountBytes()Email address of the IAM service account associated with the Task of a Job.com.google.protobuf.DurationgetTimeout()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.BuildergetTimeoutBuilder()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.DurationOrBuildergetTimeoutOrBuilder()Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers.VolumegetVolumes(int index)A list of Volumes to make available to containers.Volume.BuildergetVolumesBuilder(int index)A list of Volumes to make available to containers.List<Volume.Builder>getVolumesBuilderList()A list of Volumes to make available to containers.intgetVolumesCount()A list of Volumes to make available to containers.List<Volume>getVolumesList()A list of Volumes to make available to containers.VolumeOrBuildergetVolumesOrBuilder(int index)A list of Volumes to make available to containers.List<? extends VolumeOrBuilder>getVolumesOrBuilderList()A list of Volumes to make available to containers.VpcAccessgetVpcAccess()VPC Access configuration to use for this Task.VpcAccess.BuildergetVpcAccessBuilder()VPC Access configuration to use for this Task.VpcAccessOrBuildergetVpcAccessOrBuilder()VPC Access configuration to use for this Task.booleanhasMaxRetries()Number of retries allowed per Task, before marking this Task failed.booleanhasTimeout()Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers.booleanhasVpcAccess()VPC Access configuration to use for this Task.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()TaskTemplate.BuildermergeFrom(TaskTemplate other)TaskTemplate.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)TaskTemplate.BuildermergeFrom(com.google.protobuf.Message other)TaskTemplate.BuildermergeTimeout(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.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)TaskTemplate.BuildermergeVpcAccess(VpcAccess value)VPC Access configuration to use for this Task.TaskTemplate.BuilderremoveContainers(int index)Holds the single container that defines the unit of execution for this task.TaskTemplate.BuilderremoveVolumes(int index)A list of Volumes to make available to containers.TaskTemplate.BuildersetContainers(int index, Container value)Holds the single container that defines the unit of execution for this task.TaskTemplate.BuildersetContainers(int index, Container.Builder builderForValue)Holds the single container that defines the unit of execution for this task.TaskTemplate.BuildersetEncryptionKey(String value)A reference to a customer managed encryption key (CMEK) to use to encrypt this container image.TaskTemplate.BuildersetEncryptionKeyBytes(com.google.protobuf.ByteString value)A reference to a customer managed encryption key (CMEK) to use to encrypt this container image.TaskTemplate.BuildersetExecutionEnvironment(ExecutionEnvironment value)The execution environment being used to host this Task.TaskTemplate.BuildersetExecutionEnvironmentValue(int value)The execution environment being used to host this Task.TaskTemplate.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TaskTemplate.BuildersetMaxRetries(int value)Number of retries allowed per Task, before marking this Task failed.TaskTemplate.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)TaskTemplate.BuildersetServiceAccount(String value)Email address of the IAM service account associated with the Task of a Job.TaskTemplate.BuildersetServiceAccountBytes(com.google.protobuf.ByteString value)Email address of the IAM service account associated with the Task of a Job.TaskTemplate.BuildersetTimeout(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.BuildersetTimeout(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.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)TaskTemplate.BuildersetVolumes(int index, Volume value)A list of Volumes to make available to containers.TaskTemplate.BuildersetVolumes(int index, Volume.Builder builderForValue)A list of Volumes to make available to containers.TaskTemplate.BuildersetVpcAccess(VpcAccess value)VPC Access configuration to use for this Task.TaskTemplate.BuildersetVpcAccess(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<TaskTemplate.Builder>
-
clear
public TaskTemplate.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<TaskTemplate.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<TaskTemplate.Builder>
-
getDefaultInstanceForType
public TaskTemplate getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public TaskTemplate build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TaskTemplate buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TaskTemplate.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<TaskTemplate.Builder>
-
setField
public TaskTemplate.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TaskTemplate.Builder>
-
clearField
public TaskTemplate.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TaskTemplate.Builder>
-
clearOneof
public TaskTemplate.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<TaskTemplate.Builder>
-
setRepeatedField
public TaskTemplate.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TaskTemplate.Builder>
-
addRepeatedField
public TaskTemplate.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TaskTemplate.Builder>
-
mergeFrom
public TaskTemplate.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TaskTemplate.Builder>
-
mergeFrom
public TaskTemplate.Builder mergeFrom(TaskTemplate other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TaskTemplate.Builder>- Throws:
IOException
-
getRetriesCase
public TaskTemplate.RetriesCase getRetriesCase()
- Specified by:
getRetriesCasein 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:
getContainersListin 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:
getContainersCountin 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:
getContainersin 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:
getContainersOrBuilderin 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:
getContainersOrBuilderListin 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:
getVolumesListin interfaceTaskTemplateOrBuilder
-
getVolumesCount
public int getVolumesCount()
A list of Volumes to make available to containers.
repeated .google.cloud.run.v2.Volume volumes = 2;- Specified by:
getVolumesCountin 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:
getVolumesin 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:
getVolumesOrBuilderin 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:
getVolumesOrBuilderListin 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:
hasMaxRetriesin 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:
getMaxRetriesin 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:
hasTimeoutin 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:
getTimeoutin 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:
getTimeoutOrBuilderin 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:
getServiceAccountin 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:
getServiceAccountBytesin 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:
getExecutionEnvironmentValuein 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:
getExecutionEnvironmentin 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:
getEncryptionKeyin 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:
getEncryptionKeyBytesin 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:
hasVpcAccessin 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:
getVpcAccessin 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:
getVpcAccessOrBuilderin interfaceTaskTemplateOrBuilder
-
setUnknownFields
public final TaskTemplate.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TaskTemplate.Builder>
-
mergeUnknownFields
public final TaskTemplate.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TaskTemplate.Builder>
-
-