public interface TaskSpecOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsEnvironments(String key)
Deprecated.
|
ComputeResource |
getComputeResource()
ComputeResource requirements.
|
ComputeResourceOrBuilder |
getComputeResourceOrBuilder()
ComputeResource requirements.
|
Environment |
getEnvironment()
Environment variables to set before running the Task.
|
EnvironmentOrBuilder |
getEnvironmentOrBuilder()
Environment variables to set before running the Task.
|
Map<String,String> |
getEnvironments()
Deprecated.
|
int |
getEnvironmentsCount()
Deprecated.
|
Map<String,String> |
getEnvironmentsMap()
Deprecated.
|
String |
getEnvironmentsOrDefault(String key,
String defaultValue)
Deprecated.
|
String |
getEnvironmentsOrThrow(String key)
Deprecated.
|
LifecyclePolicy |
getLifecyclePolicies(int index)
Lifecycle management schema when any task in a task group is failed.
|
int |
getLifecyclePoliciesCount()
Lifecycle management schema when any task in a task group is failed.
|
List<LifecyclePolicy> |
getLifecyclePoliciesList()
Lifecycle management schema when any task in a task group is failed.
|
LifecyclePolicyOrBuilder |
getLifecyclePoliciesOrBuilder(int index)
Lifecycle management schema when any task in a task group is failed.
|
List<? extends LifecyclePolicyOrBuilder> |
getLifecyclePoliciesOrBuilderList()
Lifecycle management schema when any task in a task group is failed.
|
int |
getMaxRetryCount()
Maximum number of retries on failures.
|
com.google.protobuf.Duration |
getMaxRunDuration()
Maximum duration the task should run before being automatically retried
(if enabled) or automatically failed.
|
com.google.protobuf.DurationOrBuilder |
getMaxRunDurationOrBuilder()
Maximum duration the task should run before being automatically retried
(if enabled) or automatically failed.
|
Runnable |
getRunnables(int index)
Required.
|
int |
getRunnablesCount()
Required.
|
List<Runnable> |
getRunnablesList()
Required.
|
RunnableOrBuilder |
getRunnablesOrBuilder(int index)
Required.
|
List<? extends RunnableOrBuilder> |
getRunnablesOrBuilderList()
Required.
|
Volume |
getVolumes(int index)
Volumes to mount before running Tasks using this TaskSpec.
|
int |
getVolumesCount()
Volumes to mount before running Tasks using this TaskSpec.
|
List<Volume> |
getVolumesList()
Volumes to mount before running Tasks using this TaskSpec.
|
VolumeOrBuilder |
getVolumesOrBuilder(int index)
Volumes to mount before running Tasks using this TaskSpec.
|
List<? extends VolumeOrBuilder> |
getVolumesOrBuilderList()
Volumes to mount before running Tasks using this TaskSpec.
|
boolean |
hasComputeResource()
ComputeResource requirements.
|
boolean |
hasEnvironment()
Environment variables to set before running the Task.
|
boolean |
hasMaxRunDuration()
Maximum duration the task should run before being automatically retried
(if enabled) or automatically failed.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofList<Runnable> 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.v1.Runnable runnables = 8;Runnable getRunnables(int index)
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.v1.Runnable runnables = 8;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.v1.Runnable runnables = 8;List<? extends RunnableOrBuilder> 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.v1.Runnable runnables = 8;RunnableOrBuilder getRunnablesOrBuilder(int index)
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.v1.Runnable runnables = 8;boolean hasComputeResource()
ComputeResource requirements.
.google.cloud.batch.v1.ComputeResource compute_resource = 3;ComputeResource getComputeResource()
ComputeResource requirements.
.google.cloud.batch.v1.ComputeResource compute_resource = 3;ComputeResourceOrBuilder getComputeResourceOrBuilder()
ComputeResource requirements.
.google.cloud.batch.v1.ComputeResource compute_resource = 3;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;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;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;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;List<LifecyclePolicy> 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.v1.LifecyclePolicy lifecycle_policies = 9;LifecyclePolicy getLifecyclePolicies(int index)
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.v1.LifecyclePolicy lifecycle_policies = 9;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.v1.LifecyclePolicy lifecycle_policies = 9;List<? extends LifecyclePolicyOrBuilder> 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.v1.LifecyclePolicy lifecycle_policies = 9;LifecyclePolicyOrBuilder getLifecyclePoliciesOrBuilder(int index)
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.v1.LifecyclePolicy lifecycle_policies = 9;@Deprecated int getEnvironmentsCount()
Deprecated: please use environment(non-plural) instead.
map<string, string> environments = 6 [deprecated = true];@Deprecated boolean containsEnvironments(String key)
Deprecated: please use environment(non-plural) instead.
map<string, string> environments = 6 [deprecated = true];@Deprecated Map<String,String> getEnvironments()
getEnvironmentsMap() instead.@Deprecated Map<String,String> getEnvironmentsMap()
Deprecated: please use environment(non-plural) instead.
map<string, string> environments = 6 [deprecated = true];@Deprecated String getEnvironmentsOrDefault(String key, String defaultValue)
Deprecated: please use environment(non-plural) instead.
map<string, string> environments = 6 [deprecated = true];@Deprecated String getEnvironmentsOrThrow(String key)
Deprecated: please use environment(non-plural) instead.
map<string, string> environments = 6 [deprecated = true];List<Volume> getVolumesList()
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1.Volume volumes = 7;Volume getVolumes(int index)
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1.Volume volumes = 7;int getVolumesCount()
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1.Volume volumes = 7;List<? extends VolumeOrBuilder> getVolumesOrBuilderList()
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1.Volume volumes = 7;VolumeOrBuilder getVolumesOrBuilder(int index)
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1.Volume volumes = 7;boolean hasEnvironment()
Environment variables to set before running the Task.
.google.cloud.batch.v1.Environment environment = 10;Environment getEnvironment()
Environment variables to set before running the Task.
.google.cloud.batch.v1.Environment environment = 10;EnvironmentOrBuilder getEnvironmentOrBuilder()
Environment variables to set before running the Task.
.google.cloud.batch.v1.Environment environment = 10;Copyright © 2025 Google LLC. All rights reserved.