Package com.google.cloud.batch.v1alpha
Interface TaskSpecOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
TaskSpec
,TaskSpec.Builder
public interface TaskSpecOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method 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.com.google.protobuf.DurationOrBuilder
getMaxRunDurationOrBuilder()
Maximum duration the task should run.Runnable
getRunnables(int index)
The sequence of scripts or containers to run for this Task.int
getRunnablesCount()
The sequence of scripts or containers to run for this Task.List<Runnable>
getRunnablesList()
The sequence of scripts or containers to run for this Task.RunnableOrBuilder
getRunnablesOrBuilder(int index)
The sequence of scripts or containers to run for this Task.List<? extends RunnableOrBuilder>
getRunnablesOrBuilderList()
The sequence of scripts or containers to run for this Task.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.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getRunnablesList
List<Runnable> getRunnablesList()
The sequence of scripts or containers to run for this Task. Each Task using this TaskSpec executes its list of runnables in order. The Task succeeds if all of its runnables either exit with a zero status or any that exit with a non-zero status have the ignore_exit_status flag. Background runnables are killed automatically (if they have not already exited) a short time after all foreground runnables have completed. Even though this is likely to result in a non-zero exit status for the background runnable, these automatic kills are not treated as Task failures.
repeated .google.cloud.batch.v1alpha.Runnable runnables = 8;
-
getRunnables
Runnable getRunnables(int index)
The sequence of scripts or containers to run for this Task. Each Task using this TaskSpec executes its list of runnables in order. The Task succeeds if all of its runnables either exit with a zero status or any that exit with a non-zero status have the ignore_exit_status flag. Background runnables are killed automatically (if they have not already exited) a short time after all foreground runnables have completed. Even though this is likely to result in a non-zero exit status for the background runnable, these automatic kills are not treated as Task failures.
repeated .google.cloud.batch.v1alpha.Runnable runnables = 8;
-
getRunnablesCount
int getRunnablesCount()
The sequence of scripts or containers to run for this Task. Each Task using this TaskSpec executes its list of runnables in order. The Task succeeds if all of its runnables either exit with a zero status or any that exit with a non-zero status have the ignore_exit_status flag. Background runnables are killed automatically (if they have not already exited) a short time after all foreground runnables have completed. Even though this is likely to result in a non-zero exit status for the background runnable, these automatic kills are not treated as Task failures.
repeated .google.cloud.batch.v1alpha.Runnable runnables = 8;
-
getRunnablesOrBuilderList
List<? extends RunnableOrBuilder> getRunnablesOrBuilderList()
The sequence of scripts or containers to run for this Task. Each Task using this TaskSpec executes its list of runnables in order. The Task succeeds if all of its runnables either exit with a zero status or any that exit with a non-zero status have the ignore_exit_status flag. Background runnables are killed automatically (if they have not already exited) a short time after all foreground runnables have completed. Even though this is likely to result in a non-zero exit status for the background runnable, these automatic kills are not treated as Task failures.
repeated .google.cloud.batch.v1alpha.Runnable runnables = 8;
-
getRunnablesOrBuilder
RunnableOrBuilder getRunnablesOrBuilder(int index)
The sequence of scripts or containers to run for this Task. Each Task using this TaskSpec executes its list of runnables in order. The Task succeeds if all of its runnables either exit with a zero status or any that exit with a non-zero status have the ignore_exit_status flag. Background runnables are killed automatically (if they have not already exited) a short time after all foreground runnables have completed. Even though this is likely to result in a non-zero exit status for the background runnable, these automatic kills are not treated as Task failures.
repeated .google.cloud.batch.v1alpha.Runnable runnables = 8;
-
hasComputeResource
boolean hasComputeResource()
ComputeResource requirements.
.google.cloud.batch.v1alpha.ComputeResource compute_resource = 3;
- Returns:
- Whether the computeResource field is set.
-
getComputeResource
ComputeResource getComputeResource()
ComputeResource requirements.
.google.cloud.batch.v1alpha.ComputeResource compute_resource = 3;
- Returns:
- The computeResource.
-
getComputeResourceOrBuilder
ComputeResourceOrBuilder getComputeResourceOrBuilder()
ComputeResource requirements.
.google.cloud.batch.v1alpha.ComputeResource compute_resource = 3;
-
hasMaxRunDuration
boolean hasMaxRunDuration()
Maximum duration the task should run. The task will be killed and marked as FAILED if over this limit.
.google.protobuf.Duration max_run_duration = 4;
- Returns:
- Whether the maxRunDuration field is set.
-
getMaxRunDuration
com.google.protobuf.Duration getMaxRunDuration()
Maximum duration the task should run. The task will be killed and marked as FAILED if over this limit.
.google.protobuf.Duration max_run_duration = 4;
- Returns:
- The maxRunDuration.
-
getMaxRunDurationOrBuilder
com.google.protobuf.DurationOrBuilder getMaxRunDurationOrBuilder()
Maximum duration the task should run. The task will be killed and marked as FAILED if over this limit.
.google.protobuf.Duration max_run_duration = 4;
-
getMaxRetryCount
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;
- Returns:
- The maxRetryCount.
-
getLifecyclePoliciesList
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.v1alpha.LifecyclePolicy lifecycle_policies = 9;
-
getLifecyclePolicies
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.v1alpha.LifecyclePolicy lifecycle_policies = 9;
-
getLifecyclePoliciesCount
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;
-
getLifecyclePoliciesOrBuilderList
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.v1alpha.LifecyclePolicy lifecycle_policies = 9;
-
getLifecyclePoliciesOrBuilder
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.v1alpha.LifecyclePolicy lifecycle_policies = 9;
-
getEnvironmentsCount
@Deprecated int getEnvironmentsCount()
Deprecated.Deprecated: please use environment(non-plural) instead.
map<string, string> environments = 6 [deprecated = true];
-
containsEnvironments
@Deprecated boolean containsEnvironments(String key)
Deprecated.Deprecated: please use environment(non-plural) instead.
map<string, string> environments = 6 [deprecated = true];
-
getEnvironments
@Deprecated Map<String,String> getEnvironments()
Deprecated.UsegetEnvironmentsMap()
instead.
-
getEnvironmentsMap
@Deprecated Map<String,String> getEnvironmentsMap()
Deprecated.Deprecated: please use environment(non-plural) instead.
map<string, string> environments = 6 [deprecated = true];
-
getEnvironmentsOrDefault
@Deprecated String getEnvironmentsOrDefault(String key, String defaultValue)
Deprecated.Deprecated: please use environment(non-plural) instead.
map<string, string> environments = 6 [deprecated = true];
-
getEnvironmentsOrThrow
@Deprecated String getEnvironmentsOrThrow(String key)
Deprecated.Deprecated: please use environment(non-plural) instead.
map<string, string> environments = 6 [deprecated = true];
-
getVolumesList
List<Volume> getVolumesList()
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1alpha.Volume volumes = 7;
-
getVolumes
Volume getVolumes(int index)
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1alpha.Volume volumes = 7;
-
getVolumesCount
int getVolumesCount()
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1alpha.Volume volumes = 7;
-
getVolumesOrBuilderList
List<? extends VolumeOrBuilder> getVolumesOrBuilderList()
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1alpha.Volume volumes = 7;
-
getVolumesOrBuilder
VolumeOrBuilder getVolumesOrBuilder(int index)
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1alpha.Volume volumes = 7;
-
hasEnvironment
boolean hasEnvironment()
Environment variables to set before running the Task.
.google.cloud.batch.v1alpha.Environment environment = 10;
- Returns:
- Whether the environment field is set.
-
getEnvironment
Environment getEnvironment()
Environment variables to set before running the Task.
.google.cloud.batch.v1alpha.Environment environment = 10;
- Returns:
- The environment.
-
getEnvironmentOrBuilder
EnvironmentOrBuilder getEnvironmentOrBuilder()
Environment variables to set before running the Task.
.google.cloud.batch.v1alpha.Environment environment = 10;
-
-