Package com.google.cloud.batch.v1alpha
Class TaskSpec.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TaskSpec.Builder>
com.google.cloud.batch.v1alpha.TaskSpec.Builder
- All Implemented Interfaces:
TaskSpecOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TaskSpec
public static final class TaskSpec.Builder
extends com.google.protobuf.GeneratedMessage.Builder<TaskSpec.Builder>
implements TaskSpecOrBuilder
Spec of a taskProtobuf type
google.cloud.batch.v1alpha.TaskSpec-
Method Summary
Modifier and TypeMethodDescriptionaddAllLifecyclePolicies(Iterable<? extends LifecyclePolicy> values) Lifecycle management schema when any task in a task group is failed.addAllRunnables(Iterable<? extends Runnable> values) Required.addAllVolumes(Iterable<? extends Volume> values) Volumes to mount before running Tasks using this TaskSpec.addLifecyclePolicies(int index, LifecyclePolicy value) Lifecycle management schema when any task in a task group is failed.addLifecyclePolicies(int index, LifecyclePolicy.Builder builderForValue) Lifecycle management schema when any task in a task group is failed.Lifecycle management schema when any task in a task group is failed.addLifecyclePolicies(LifecyclePolicy.Builder builderForValue) Lifecycle management schema when any task in a task group is failed.Lifecycle management schema when any task in a task group is failed.addLifecyclePoliciesBuilder(int index) Lifecycle management schema when any task in a task group is failed.addRunnables(int index, Runnable value) Required.addRunnables(int index, Runnable.Builder builderForValue) Required.addRunnables(Runnable value) Required.addRunnables(Runnable.Builder builderForValue) Required.Required.addRunnablesBuilder(int index) Required.addVolumes(int index, Volume value) Volumes to mount before running Tasks using this TaskSpec.addVolumes(int index, Volume.Builder builderForValue) Volumes to mount before running Tasks using this TaskSpec.addVolumes(Volume value) Volumes to mount before running Tasks using this TaskSpec.addVolumes(Volume.Builder builderForValue) Volumes to mount before running Tasks using this TaskSpec.Volumes to mount before running Tasks using this TaskSpec.addVolumesBuilder(int index) Volumes to mount before running Tasks using this TaskSpec.build()clear()ComputeResource requirements.Environment variables to set before running the Task.Deprecated.Lifecycle management schema when any task in a task group is failed.Maximum number of retries on failures.Maximum duration the task should run before being automatically retried (if enabled) or automatically failed.Required.Volumes to mount before running Tasks using this TaskSpec.booleanDeprecated.ComputeResource requirements.ComputeResource requirements.ComputeResource requirements.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorEnvironment variables to set before running the Task.Environment variables to set before running the Task.Environment variables to set before running the Task.Deprecated.intDeprecated.Deprecated.getEnvironmentsOrDefault(String key, String defaultValue) Deprecated.Deprecated.getLifecyclePolicies(int index) Lifecycle management schema when any task in a task group is failed.getLifecyclePoliciesBuilder(int index) Lifecycle management schema when any task in a task group is failed.Lifecycle management schema when any task in a task group is failed.intLifecycle management schema when any task in a task group is failed.Lifecycle management schema when any task in a task group is failed.getLifecyclePoliciesOrBuilder(int index) Lifecycle management schema when any task in a task group is failed.List<? extends LifecyclePolicyOrBuilder>Lifecycle management schema when any task in a task group is failed.intMaximum number of retries on failures.com.google.protobuf.DurationMaximum duration the task should run before being automatically retried (if enabled) or automatically failed.com.google.protobuf.Duration.BuilderMaximum duration the task should run before being automatically retried (if enabled) or automatically failed.com.google.protobuf.DurationOrBuilderMaximum duration the task should run before being automatically retried (if enabled) or automatically failed.Deprecated.getRunnables(int index) Required.getRunnablesBuilder(int index) Required.Required.intRequired.Required.getRunnablesOrBuilder(int index) Required.List<? extends RunnableOrBuilder>Required.getVolumes(int index) Volumes to mount before running Tasks using this TaskSpec.getVolumesBuilder(int index) Volumes to mount before running Tasks using this TaskSpec.Volumes to mount before running Tasks using this TaskSpec.intVolumes to mount before running Tasks using this TaskSpec.Volumes to mount before running Tasks using this TaskSpec.getVolumesOrBuilder(int index) Volumes to mount before running Tasks using this TaskSpec.List<? extends VolumeOrBuilder>Volumes to mount before running Tasks using this TaskSpec.booleanComputeResource requirements.booleanEnvironment variables to set before running the Task.booleanMaximum duration the task should run before being automatically retried (if enabled) or automatically failed.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanComputeResource requirements.mergeEnvironment(Environment value) Environment variables to set before running the Task.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeMaxRunDuration(com.google.protobuf.Duration value) Maximum duration the task should run before being automatically retried (if enabled) or automatically failed.putAllEnvironments(Map<String, String> values) Deprecated.putEnvironments(String key, String value) Deprecated.removeEnvironments(String key) Deprecated.removeLifecyclePolicies(int index) Lifecycle management schema when any task in a task group is failed.removeRunnables(int index) Required.removeVolumes(int index) Volumes to mount before running Tasks using this TaskSpec.ComputeResource requirements.setComputeResource(ComputeResource.Builder builderForValue) ComputeResource requirements.setEnvironment(Environment value) Environment variables to set before running the Task.setEnvironment(Environment.Builder builderForValue) Environment variables to set before running the Task.setLifecyclePolicies(int index, LifecyclePolicy value) Lifecycle management schema when any task in a task group is failed.setLifecyclePolicies(int index, LifecyclePolicy.Builder builderForValue) Lifecycle management schema when any task in a task group is failed.setMaxRetryCount(int value) Maximum number of retries on failures.setMaxRunDuration(com.google.protobuf.Duration value) Maximum duration the task should run before being automatically retried (if enabled) or automatically failed.setMaxRunDuration(com.google.protobuf.Duration.Builder builderForValue) Maximum duration the task should run before being automatically retried (if enabled) or automatically failed.setRunnables(int index, Runnable value) Required.setRunnables(int index, Runnable.Builder builderForValue) Required.setVolumes(int index, Volume value) Volumes to mount before running Tasks using this TaskSpec.setVolumes(int index, Volume.Builder builderForValue) Volumes to mount before running Tasks using this TaskSpec.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<TaskSpec.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<TaskSpec.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<TaskSpec.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<TaskSpec.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.GeneratedMessage.Builder<TaskSpec.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TaskSpec.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TaskSpec.Builder>
-
mergeFrom
public TaskSpec.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<TaskSpec.Builder>- Throws:
IOException
-
getRunnablesList
Required. The sequence of one or more runnables (executable scripts, executable containers, and/or barriers) for each task in this task group to run. Each task runs this list of runnables in order. For a task to succeed, all of its script and container runnables each must meet at least one of the following conditions: + The runnable exited with a zero status. + The runnable didn't finish, but you enabled its `background` subfield. + The runnable exited with a non-zero status, but you enabled its `ignore_exit_status` subfield.
repeated .google.cloud.batch.v1alpha.Runnable runnables = 8;- Specified by:
getRunnablesListin interfaceTaskSpecOrBuilder
-
getRunnablesCount
public int getRunnablesCount()Required. The sequence of one or more runnables (executable scripts, executable containers, and/or barriers) for each task in this task group to run. Each task runs this list of runnables in order. For a task to succeed, all of its script and container runnables each must meet at least one of the following conditions: + The runnable exited with a zero status. + The runnable didn't finish, but you enabled its `background` subfield. + The runnable exited with a non-zero status, but you enabled its `ignore_exit_status` subfield.
repeated .google.cloud.batch.v1alpha.Runnable runnables = 8;- Specified by:
getRunnablesCountin interfaceTaskSpecOrBuilder
-
getRunnables
Required. The sequence of one or more runnables (executable scripts, executable containers, and/or barriers) for each task in this task group to run. Each task runs this list of runnables in order. For a task to succeed, all of its script and container runnables each must meet at least one of the following conditions: + The runnable exited with a zero status. + The runnable didn't finish, but you enabled its `background` subfield. + The runnable exited with a non-zero status, but you enabled its `ignore_exit_status` subfield.
repeated .google.cloud.batch.v1alpha.Runnable runnables = 8;- Specified by:
getRunnablesin interfaceTaskSpecOrBuilder
-
setRunnables
Required. The sequence of one or more runnables (executable scripts, executable containers, and/or barriers) for each task in this task group to run. Each task runs this list of runnables in order. For a task to succeed, all of its script and container runnables each must meet at least one of the following conditions: + The runnable exited with a zero status. + The runnable didn't finish, but you enabled its `background` subfield. + The runnable exited with a non-zero status, but you enabled its `ignore_exit_status` subfield.
repeated .google.cloud.batch.v1alpha.Runnable runnables = 8; -
setRunnables
Required. The sequence of one or more runnables (executable scripts, executable containers, and/or barriers) for each task in this task group to run. Each task runs this list of runnables in order. For a task to succeed, all of its script and container runnables each must meet at least one of the following conditions: + The runnable exited with a zero status. + The runnable didn't finish, but you enabled its `background` subfield. + The runnable exited with a non-zero status, but you enabled its `ignore_exit_status` subfield.
repeated .google.cloud.batch.v1alpha.Runnable runnables = 8; -
addRunnables
Required. The sequence of one or more runnables (executable scripts, executable containers, and/or barriers) for each task in this task group to run. Each task runs this list of runnables in order. For a task to succeed, all of its script and container runnables each must meet at least one of the following conditions: + The runnable exited with a zero status. + The runnable didn't finish, but you enabled its `background` subfield. + The runnable exited with a non-zero status, but you enabled its `ignore_exit_status` subfield.
repeated .google.cloud.batch.v1alpha.Runnable runnables = 8; -
addRunnables
Required. The sequence of one or more runnables (executable scripts, executable containers, and/or barriers) for each task in this task group to run. Each task runs this list of runnables in order. For a task to succeed, all of its script and container runnables each must meet at least one of the following conditions: + The runnable exited with a zero status. + The runnable didn't finish, but you enabled its `background` subfield. + The runnable exited with a non-zero status, but you enabled its `ignore_exit_status` subfield.
repeated .google.cloud.batch.v1alpha.Runnable runnables = 8; -
addRunnables
Required. The sequence of one or more runnables (executable scripts, executable containers, and/or barriers) for each task in this task group to run. Each task runs this list of runnables in order. For a task to succeed, all of its script and container runnables each must meet at least one of the following conditions: + The runnable exited with a zero status. + The runnable didn't finish, but you enabled its `background` subfield. + The runnable exited with a non-zero status, but you enabled its `ignore_exit_status` subfield.
repeated .google.cloud.batch.v1alpha.Runnable runnables = 8; -
addRunnables
Required. The sequence of one or more runnables (executable scripts, executable containers, and/or barriers) for each task in this task group to run. Each task runs this list of runnables in order. For a task to succeed, all of its script and container runnables each must meet at least one of the following conditions: + The runnable exited with a zero status. + The runnable didn't finish, but you enabled its `background` subfield. + The runnable exited with a non-zero status, but you enabled its `ignore_exit_status` subfield.
repeated .google.cloud.batch.v1alpha.Runnable runnables = 8; -
addAllRunnables
Required. The sequence of one or more runnables (executable scripts, executable containers, and/or barriers) for each task in this task group to run. Each task runs this list of runnables in order. For a task to succeed, all of its script and container runnables each must meet at least one of the following conditions: + The runnable exited with a zero status. + The runnable didn't finish, but you enabled its `background` subfield. + The runnable exited with a non-zero status, but you enabled its `ignore_exit_status` subfield.
repeated .google.cloud.batch.v1alpha.Runnable runnables = 8; -
clearRunnables
Required. The sequence of one or more runnables (executable scripts, executable containers, and/or barriers) for each task in this task group to run. Each task runs this list of runnables in order. For a task to succeed, all of its script and container runnables each must meet at least one of the following conditions: + The runnable exited with a zero status. + The runnable didn't finish, but you enabled its `background` subfield. + The runnable exited with a non-zero status, but you enabled its `ignore_exit_status` subfield.
repeated .google.cloud.batch.v1alpha.Runnable runnables = 8; -
removeRunnables
Required. The sequence of one or more runnables (executable scripts, executable containers, and/or barriers) for each task in this task group to run. Each task runs this list of runnables in order. For a task to succeed, all of its script and container runnables each must meet at least one of the following conditions: + The runnable exited with a zero status. + The runnable didn't finish, but you enabled its `background` subfield. + The runnable exited with a non-zero status, but you enabled its `ignore_exit_status` subfield.
repeated .google.cloud.batch.v1alpha.Runnable runnables = 8; -
getRunnablesBuilder
Required. The sequence of one or more runnables (executable scripts, executable containers, and/or barriers) for each task in this task group to run. Each task runs this list of runnables in order. For a task to succeed, all of its script and container runnables each must meet at least one of the following conditions: + The runnable exited with a zero status. + The runnable didn't finish, but you enabled its `background` subfield. + The runnable exited with a non-zero status, but you enabled its `ignore_exit_status` subfield.
repeated .google.cloud.batch.v1alpha.Runnable runnables = 8; -
getRunnablesOrBuilder
Required. The sequence of one or more runnables (executable scripts, executable containers, and/or barriers) for each task in this task group to run. Each task runs this list of runnables in order. For a task to succeed, all of its script and container runnables each must meet at least one of the following conditions: + The runnable exited with a zero status. + The runnable didn't finish, but you enabled its `background` subfield. + The runnable exited with a non-zero status, but you enabled its `ignore_exit_status` subfield.
repeated .google.cloud.batch.v1alpha.Runnable runnables = 8;- Specified by:
getRunnablesOrBuilderin interfaceTaskSpecOrBuilder
-
getRunnablesOrBuilderList
Required. The sequence of one or more runnables (executable scripts, executable containers, and/or barriers) for each task in this task group to run. Each task runs this list of runnables in order. For a task to succeed, all of its script and container runnables each must meet at least one of the following conditions: + The runnable exited with a zero status. + The runnable didn't finish, but you enabled its `background` subfield. + The runnable exited with a non-zero status, but you enabled its `ignore_exit_status` subfield.
repeated .google.cloud.batch.v1alpha.Runnable runnables = 8;- Specified by:
getRunnablesOrBuilderListin interfaceTaskSpecOrBuilder
-
addRunnablesBuilder
Required. The sequence of one or more runnables (executable scripts, executable containers, and/or barriers) for each task in this task group to run. Each task runs this list of runnables in order. For a task to succeed, all of its script and container runnables each must meet at least one of the following conditions: + The runnable exited with a zero status. + The runnable didn't finish, but you enabled its `background` subfield. + The runnable exited with a non-zero status, but you enabled its `ignore_exit_status` subfield.
repeated .google.cloud.batch.v1alpha.Runnable runnables = 8; -
addRunnablesBuilder
Required. The sequence of one or more runnables (executable scripts, executable containers, and/or barriers) for each task in this task group to run. Each task runs this list of runnables in order. For a task to succeed, all of its script and container runnables each must meet at least one of the following conditions: + The runnable exited with a zero status. + The runnable didn't finish, but you enabled its `background` subfield. + The runnable exited with a non-zero status, but you enabled its `ignore_exit_status` subfield.
repeated .google.cloud.batch.v1alpha.Runnable runnables = 8; -
getRunnablesBuilderList
Required. The sequence of one or more runnables (executable scripts, executable containers, and/or barriers) for each task in this task group to run. Each task runs this list of runnables in order. For a task to succeed, all of its script and container runnables each must meet at least one of the following conditions: + The runnable exited with a zero status. + The runnable didn't finish, but you enabled its `background` subfield. + The runnable exited with a non-zero status, but you enabled its `ignore_exit_status` subfield.
repeated .google.cloud.batch.v1alpha.Runnable runnables = 8; -
hasComputeResource
public boolean hasComputeResource()ComputeResource requirements.
.google.cloud.batch.v1alpha.ComputeResource compute_resource = 3;- Specified by:
hasComputeResourcein interfaceTaskSpecOrBuilder- Returns:
- Whether the computeResource field is set.
-
getComputeResource
ComputeResource requirements.
.google.cloud.batch.v1alpha.ComputeResource compute_resource = 3;- Specified by:
getComputeResourcein interfaceTaskSpecOrBuilder- Returns:
- The computeResource.
-
setComputeResource
ComputeResource requirements.
.google.cloud.batch.v1alpha.ComputeResource compute_resource = 3; -
setComputeResource
ComputeResource requirements.
.google.cloud.batch.v1alpha.ComputeResource compute_resource = 3; -
mergeComputeResource
ComputeResource requirements.
.google.cloud.batch.v1alpha.ComputeResource compute_resource = 3; -
clearComputeResource
ComputeResource requirements.
.google.cloud.batch.v1alpha.ComputeResource compute_resource = 3; -
getComputeResourceBuilder
ComputeResource requirements.
.google.cloud.batch.v1alpha.ComputeResource compute_resource = 3; -
getComputeResourceOrBuilder
ComputeResource requirements.
.google.cloud.batch.v1alpha.ComputeResource compute_resource = 3;- Specified by:
getComputeResourceOrBuilderin interfaceTaskSpecOrBuilder
-
hasMaxRunDuration
public boolean hasMaxRunDuration()Maximum duration the task should run before being automatically retried (if enabled) or automatically failed. Format the value of this field as a time limit in seconds followed by `s`—for example, `3600s` for 1 hour. The field accepts any value between 0 and the maximum listed for the `Duration` field type at https://protobuf.dev/reference/protobuf/google.protobuf/#duration; however, the actual maximum run time for a job will be limited to the maximum run time for a job listed at https://cloud.google.com/batch/quotas#max-job-duration.
.google.protobuf.Duration max_run_duration = 4;- Specified by:
hasMaxRunDurationin interfaceTaskSpecOrBuilder- Returns:
- Whether the maxRunDuration field is set.
-
getMaxRunDuration
public com.google.protobuf.Duration getMaxRunDuration()Maximum duration the task should run before being automatically retried (if enabled) or automatically failed. Format the value of this field as a time limit in seconds followed by `s`—for example, `3600s` for 1 hour. The field accepts any value between 0 and the maximum listed for the `Duration` field type at https://protobuf.dev/reference/protobuf/google.protobuf/#duration; however, the actual maximum run time for a job will be limited to the maximum run time for a job listed at https://cloud.google.com/batch/quotas#max-job-duration.
.google.protobuf.Duration max_run_duration = 4;- Specified by:
getMaxRunDurationin interfaceTaskSpecOrBuilder- Returns:
- The maxRunDuration.
-
setMaxRunDuration
Maximum duration the task should run before being automatically retried (if enabled) or automatically failed. Format the value of this field as a time limit in seconds followed by `s`—for example, `3600s` for 1 hour. The field accepts any value between 0 and the maximum listed for the `Duration` field type at https://protobuf.dev/reference/protobuf/google.protobuf/#duration; however, the actual maximum run time for a job will be limited to the maximum run time for a job listed at https://cloud.google.com/batch/quotas#max-job-duration.
.google.protobuf.Duration max_run_duration = 4; -
setMaxRunDuration
Maximum duration the task should run before being automatically retried (if enabled) or automatically failed. Format the value of this field as a time limit in seconds followed by `s`—for example, `3600s` for 1 hour. The field accepts any value between 0 and the maximum listed for the `Duration` field type at https://protobuf.dev/reference/protobuf/google.protobuf/#duration; however, the actual maximum run time for a job will be limited to the maximum run time for a job listed at https://cloud.google.com/batch/quotas#max-job-duration.
.google.protobuf.Duration max_run_duration = 4; -
mergeMaxRunDuration
Maximum duration the task should run before being automatically retried (if enabled) or automatically failed. Format the value of this field as a time limit in seconds followed by `s`—for example, `3600s` for 1 hour. The field accepts any value between 0 and the maximum listed for the `Duration` field type at https://protobuf.dev/reference/protobuf/google.protobuf/#duration; however, the actual maximum run time for a job will be limited to the maximum run time for a job listed at https://cloud.google.com/batch/quotas#max-job-duration.
.google.protobuf.Duration max_run_duration = 4; -
clearMaxRunDuration
Maximum duration the task should run before being automatically retried (if enabled) or automatically failed. Format the value of this field as a time limit in seconds followed by `s`—for example, `3600s` for 1 hour. The field accepts any value between 0 and the maximum listed for the `Duration` field type at https://protobuf.dev/reference/protobuf/google.protobuf/#duration; however, the actual maximum run time for a job will be limited to the maximum run time for a job listed at https://cloud.google.com/batch/quotas#max-job-duration.
.google.protobuf.Duration max_run_duration = 4; -
getMaxRunDurationBuilder
public com.google.protobuf.Duration.Builder getMaxRunDurationBuilder()Maximum duration the task should run before being automatically retried (if enabled) or automatically failed. Format the value of this field as a time limit in seconds followed by `s`—for example, `3600s` for 1 hour. The field accepts any value between 0 and the maximum listed for the `Duration` field type at https://protobuf.dev/reference/protobuf/google.protobuf/#duration; however, the actual maximum run time for a job will be limited to the maximum run time for a job listed at https://cloud.google.com/batch/quotas#max-job-duration.
.google.protobuf.Duration max_run_duration = 4; -
getMaxRunDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getMaxRunDurationOrBuilder()Maximum duration the task should run before being automatically retried (if enabled) or automatically failed. Format the value of this field as a time limit in seconds followed by `s`—for example, `3600s` for 1 hour. The field accepts any value between 0 and the maximum listed for the `Duration` field type at https://protobuf.dev/reference/protobuf/google.protobuf/#duration; however, the actual maximum run time for a job will be limited to the maximum run time for a job listed at https://cloud.google.com/batch/quotas#max-job-duration.
.google.protobuf.Duration max_run_duration = 4;- Specified by:
getMaxRunDurationOrBuilderin interfaceTaskSpecOrBuilder
-
getMaxRetryCount
public int getMaxRetryCount()Maximum number of retries on failures. The default, 0, which means never retry. The valid value range is [0, 10].
int32 max_retry_count = 5;- Specified by:
getMaxRetryCountin interfaceTaskSpecOrBuilder- Returns:
- The maxRetryCount.
-
setMaxRetryCount
Maximum number of retries on failures. The default, 0, which means never retry. The valid value range is [0, 10].
int32 max_retry_count = 5;- Parameters:
value- The maxRetryCount to set.- Returns:
- This builder for chaining.
-
clearMaxRetryCount
Maximum number of retries on failures. The default, 0, which means never retry. The valid value range is [0, 10].
int32 max_retry_count = 5;- Returns:
- This builder for chaining.
-
getLifecyclePoliciesList
Lifecycle management schema when any task in a task group is failed. Currently we only support one lifecycle policy. When the lifecycle policy condition is met, the action in the policy will execute. If task execution result does not meet with the defined lifecycle policy, we consider it as the default policy. Default policy means if the exit code is 0, exit task. If task ends with non-zero exit code, retry the task with max_retry_count.
repeated .google.cloud.batch.v1alpha.LifecyclePolicy lifecycle_policies = 9;- Specified by:
getLifecyclePoliciesListin interfaceTaskSpecOrBuilder
-
getLifecyclePoliciesCount
public int getLifecyclePoliciesCount()Lifecycle management schema when any task in a task group is failed. Currently we only support one lifecycle policy. When the lifecycle policy condition is met, the action in the policy will execute. If task execution result does not meet with the defined lifecycle policy, we consider it as the default policy. Default policy means if the exit code is 0, exit task. If task ends with non-zero exit code, retry the task with max_retry_count.
repeated .google.cloud.batch.v1alpha.LifecyclePolicy lifecycle_policies = 9;- Specified by:
getLifecyclePoliciesCountin interfaceTaskSpecOrBuilder
-
getLifecyclePolicies
Lifecycle management schema when any task in a task group is failed. Currently we only support one lifecycle policy. When the lifecycle policy condition is met, the action in the policy will execute. If task execution result does not meet with the defined lifecycle policy, we consider it as the default policy. Default policy means if the exit code is 0, exit task. If task ends with non-zero exit code, retry the task with max_retry_count.
repeated .google.cloud.batch.v1alpha.LifecyclePolicy lifecycle_policies = 9;- Specified by:
getLifecyclePoliciesin interfaceTaskSpecOrBuilder
-
setLifecyclePolicies
Lifecycle management schema when any task in a task group is failed. Currently we only support one lifecycle policy. When the lifecycle policy condition is met, the action in the policy will execute. If task execution result does not meet with the defined lifecycle policy, we consider it as the default policy. Default policy means if the exit code is 0, exit task. If task ends with non-zero exit code, retry the task with max_retry_count.
repeated .google.cloud.batch.v1alpha.LifecyclePolicy lifecycle_policies = 9; -
setLifecyclePolicies
Lifecycle management schema when any task in a task group is failed. Currently we only support one lifecycle policy. When the lifecycle policy condition is met, the action in the policy will execute. If task execution result does not meet with the defined lifecycle policy, we consider it as the default policy. Default policy means if the exit code is 0, exit task. If task ends with non-zero exit code, retry the task with max_retry_count.
repeated .google.cloud.batch.v1alpha.LifecyclePolicy lifecycle_policies = 9; -
addLifecyclePolicies
Lifecycle management schema when any task in a task group is failed. Currently we only support one lifecycle policy. When the lifecycle policy condition is met, the action in the policy will execute. If task execution result does not meet with the defined lifecycle policy, we consider it as the default policy. Default policy means if the exit code is 0, exit task. If task ends with non-zero exit code, retry the task with max_retry_count.
repeated .google.cloud.batch.v1alpha.LifecyclePolicy lifecycle_policies = 9; -
addLifecyclePolicies
Lifecycle management schema when any task in a task group is failed. Currently we only support one lifecycle policy. When the lifecycle policy condition is met, the action in the policy will execute. If task execution result does not meet with the defined lifecycle policy, we consider it as the default policy. Default policy means if the exit code is 0, exit task. If task ends with non-zero exit code, retry the task with max_retry_count.
repeated .google.cloud.batch.v1alpha.LifecyclePolicy lifecycle_policies = 9; -
addLifecyclePolicies
Lifecycle management schema when any task in a task group is failed. Currently we only support one lifecycle policy. When the lifecycle policy condition is met, the action in the policy will execute. If task execution result does not meet with the defined lifecycle policy, we consider it as the default policy. Default policy means if the exit code is 0, exit task. If task ends with non-zero exit code, retry the task with max_retry_count.
repeated .google.cloud.batch.v1alpha.LifecyclePolicy lifecycle_policies = 9; -
addLifecyclePolicies
Lifecycle management schema when any task in a task group is failed. Currently we only support one lifecycle policy. When the lifecycle policy condition is met, the action in the policy will execute. If task execution result does not meet with the defined lifecycle policy, we consider it as the default policy. Default policy means if the exit code is 0, exit task. If task ends with non-zero exit code, retry the task with max_retry_count.
repeated .google.cloud.batch.v1alpha.LifecyclePolicy lifecycle_policies = 9; -
addAllLifecyclePolicies
Lifecycle management schema when any task in a task group is failed. Currently we only support one lifecycle policy. When the lifecycle policy condition is met, the action in the policy will execute. If task execution result does not meet with the defined lifecycle policy, we consider it as the default policy. Default policy means if the exit code is 0, exit task. If task ends with non-zero exit code, retry the task with max_retry_count.
repeated .google.cloud.batch.v1alpha.LifecyclePolicy lifecycle_policies = 9; -
clearLifecyclePolicies
Lifecycle management schema when any task in a task group is failed. Currently we only support one lifecycle policy. When the lifecycle policy condition is met, the action in the policy will execute. If task execution result does not meet with the defined lifecycle policy, we consider it as the default policy. Default policy means if the exit code is 0, exit task. If task ends with non-zero exit code, retry the task with max_retry_count.
repeated .google.cloud.batch.v1alpha.LifecyclePolicy lifecycle_policies = 9; -
removeLifecyclePolicies
Lifecycle management schema when any task in a task group is failed. Currently we only support one lifecycle policy. When the lifecycle policy condition is met, the action in the policy will execute. If task execution result does not meet with the defined lifecycle policy, we consider it as the default policy. Default policy means if the exit code is 0, exit task. If task ends with non-zero exit code, retry the task with max_retry_count.
repeated .google.cloud.batch.v1alpha.LifecyclePolicy lifecycle_policies = 9; -
getLifecyclePoliciesBuilder
Lifecycle management schema when any task in a task group is failed. Currently we only support one lifecycle policy. When the lifecycle policy condition is met, the action in the policy will execute. If task execution result does not meet with the defined lifecycle policy, we consider it as the default policy. Default policy means if the exit code is 0, exit task. If task ends with non-zero exit code, retry the task with max_retry_count.
repeated .google.cloud.batch.v1alpha.LifecyclePolicy lifecycle_policies = 9; -
getLifecyclePoliciesOrBuilder
Lifecycle management schema when any task in a task group is failed. Currently we only support one lifecycle policy. When the lifecycle policy condition is met, the action in the policy will execute. If task execution result does not meet with the defined lifecycle policy, we consider it as the default policy. Default policy means if the exit code is 0, exit task. If task ends with non-zero exit code, retry the task with max_retry_count.
repeated .google.cloud.batch.v1alpha.LifecyclePolicy lifecycle_policies = 9;- Specified by:
getLifecyclePoliciesOrBuilderin interfaceTaskSpecOrBuilder
-
getLifecyclePoliciesOrBuilderList
Lifecycle management schema when any task in a task group is failed. Currently we only support one lifecycle policy. When the lifecycle policy condition is met, the action in the policy will execute. If task execution result does not meet with the defined lifecycle policy, we consider it as the default policy. Default policy means if the exit code is 0, exit task. If task ends with non-zero exit code, retry the task with max_retry_count.
repeated .google.cloud.batch.v1alpha.LifecyclePolicy lifecycle_policies = 9;- Specified by:
getLifecyclePoliciesOrBuilderListin interfaceTaskSpecOrBuilder
-
addLifecyclePoliciesBuilder
Lifecycle management schema when any task in a task group is failed. Currently we only support one lifecycle policy. When the lifecycle policy condition is met, the action in the policy will execute. If task execution result does not meet with the defined lifecycle policy, we consider it as the default policy. Default policy means if the exit code is 0, exit task. If task ends with non-zero exit code, retry the task with max_retry_count.
repeated .google.cloud.batch.v1alpha.LifecyclePolicy lifecycle_policies = 9; -
addLifecyclePoliciesBuilder
Lifecycle management schema when any task in a task group is failed. Currently we only support one lifecycle policy. When the lifecycle policy condition is met, the action in the policy will execute. If task execution result does not meet with the defined lifecycle policy, we consider it as the default policy. Default policy means if the exit code is 0, exit task. If task ends with non-zero exit code, retry the task with max_retry_count.
repeated .google.cloud.batch.v1alpha.LifecyclePolicy lifecycle_policies = 9; -
getLifecyclePoliciesBuilderList
Lifecycle management schema when any task in a task group is failed. Currently we only support one lifecycle policy. When the lifecycle policy condition is met, the action in the policy will execute. If task execution result does not meet with the defined lifecycle policy, we consider it as the default policy. Default policy means if the exit code is 0, exit task. If task ends with non-zero exit code, retry the task with max_retry_count.
repeated .google.cloud.batch.v1alpha.LifecyclePolicy lifecycle_policies = 9; -
getEnvironmentsCount
Deprecated.Description copied from interface:TaskSpecOrBuilderDeprecated: please use environment(non-plural) instead.
map<string, string> environments = 6 [deprecated = true];- Specified by:
getEnvironmentsCountin interfaceTaskSpecOrBuilder
-
containsEnvironments
Deprecated.Deprecated: please use environment(non-plural) instead.
map<string, string> environments = 6 [deprecated = true];- Specified by:
containsEnvironmentsin interfaceTaskSpecOrBuilder
-
getEnvironments
Deprecated.UsegetEnvironmentsMap()instead.- Specified by:
getEnvironmentsin interfaceTaskSpecOrBuilder
-
getEnvironmentsMap
Deprecated.Deprecated: please use environment(non-plural) instead.
map<string, string> environments = 6 [deprecated = true];- Specified by:
getEnvironmentsMapin interfaceTaskSpecOrBuilder
-
getEnvironmentsOrDefault
Deprecated.Deprecated: please use environment(non-plural) instead.
map<string, string> environments = 6 [deprecated = true];- Specified by:
getEnvironmentsOrDefaultin interfaceTaskSpecOrBuilder
-
getEnvironmentsOrThrow
Deprecated.Deprecated: please use environment(non-plural) instead.
map<string, string> environments = 6 [deprecated = true];- Specified by:
getEnvironmentsOrThrowin interfaceTaskSpecOrBuilder
-
clearEnvironments
Deprecated. -
removeEnvironments
Deprecated.Deprecated: please use environment(non-plural) instead.
map<string, string> environments = 6 [deprecated = true]; -
getMutableEnvironments
Deprecated.Use alternate mutation accessors instead. -
putEnvironments
Deprecated.Deprecated: please use environment(non-plural) instead.
map<string, string> environments = 6 [deprecated = true]; -
putAllEnvironments
Deprecated.Deprecated: please use environment(non-plural) instead.
map<string, string> environments = 6 [deprecated = true]; -
getVolumesList
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1alpha.Volume volumes = 7;- Specified by:
getVolumesListin interfaceTaskSpecOrBuilder
-
getVolumesCount
public int getVolumesCount()Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1alpha.Volume volumes = 7;- Specified by:
getVolumesCountin interfaceTaskSpecOrBuilder
-
getVolumes
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1alpha.Volume volumes = 7;- Specified by:
getVolumesin interfaceTaskSpecOrBuilder
-
setVolumes
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1alpha.Volume volumes = 7; -
setVolumes
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1alpha.Volume volumes = 7; -
addVolumes
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1alpha.Volume volumes = 7; -
addVolumes
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1alpha.Volume volumes = 7; -
addVolumes
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1alpha.Volume volumes = 7; -
addVolumes
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1alpha.Volume volumes = 7; -
addAllVolumes
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1alpha.Volume volumes = 7; -
clearVolumes
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1alpha.Volume volumes = 7; -
removeVolumes
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1alpha.Volume volumes = 7; -
getVolumesBuilder
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1alpha.Volume volumes = 7; -
getVolumesOrBuilder
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1alpha.Volume volumes = 7;- Specified by:
getVolumesOrBuilderin interfaceTaskSpecOrBuilder
-
getVolumesOrBuilderList
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1alpha.Volume volumes = 7;- Specified by:
getVolumesOrBuilderListin interfaceTaskSpecOrBuilder
-
addVolumesBuilder
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1alpha.Volume volumes = 7; -
addVolumesBuilder
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1alpha.Volume volumes = 7; -
getVolumesBuilderList
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1alpha.Volume volumes = 7; -
hasEnvironment
public boolean hasEnvironment()Environment variables to set before running the Task.
.google.cloud.batch.v1alpha.Environment environment = 10;- Specified by:
hasEnvironmentin interfaceTaskSpecOrBuilder- Returns:
- Whether the environment field is set.
-
getEnvironment
Environment variables to set before running the Task.
.google.cloud.batch.v1alpha.Environment environment = 10;- Specified by:
getEnvironmentin interfaceTaskSpecOrBuilder- Returns:
- The environment.
-
setEnvironment
Environment variables to set before running the Task.
.google.cloud.batch.v1alpha.Environment environment = 10; -
setEnvironment
Environment variables to set before running the Task.
.google.cloud.batch.v1alpha.Environment environment = 10; -
mergeEnvironment
Environment variables to set before running the Task.
.google.cloud.batch.v1alpha.Environment environment = 10; -
clearEnvironment
Environment variables to set before running the Task.
.google.cloud.batch.v1alpha.Environment environment = 10; -
getEnvironmentBuilder
Environment variables to set before running the Task.
.google.cloud.batch.v1alpha.Environment environment = 10; -
getEnvironmentOrBuilder
Environment variables to set before running the Task.
.google.cloud.batch.v1alpha.Environment environment = 10;- Specified by:
getEnvironmentOrBuilderin interfaceTaskSpecOrBuilder
-