Interface TaskSpecOrBuilder (0.16.0)

public interface TaskSpecOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsEnvironments(String key)

public abstract boolean containsEnvironments(String key)

Deprecated: please use environment(non-plural) instead.

map<string, string> environments = 6 [deprecated = true];

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getComputeResource()

public abstract ComputeResource getComputeResource()

ComputeResource requirements.

.google.cloud.batch.v1.ComputeResource compute_resource = 3;

Returns
TypeDescription
ComputeResource

The computeResource.

getComputeResourceOrBuilder()

public abstract ComputeResourceOrBuilder getComputeResourceOrBuilder()

ComputeResource requirements.

.google.cloud.batch.v1.ComputeResource compute_resource = 3;

Returns
TypeDescription
ComputeResourceOrBuilder

getEnvironment()

public abstract Environment getEnvironment()

Environment variables to set before running the Task.

.google.cloud.batch.v1.Environment environment = 10;

Returns
TypeDescription
Environment

The environment.

getEnvironmentOrBuilder()

public abstract EnvironmentOrBuilder getEnvironmentOrBuilder()

Environment variables to set before running the Task.

.google.cloud.batch.v1.Environment environment = 10;

Returns
TypeDescription
EnvironmentOrBuilder

getEnvironments()

public abstract Map<String,String> getEnvironments()

Use #getEnvironmentsMap() instead.

Returns
TypeDescription
Map<String,String>

getEnvironmentsCount()

public abstract int getEnvironmentsCount()

Deprecated: please use environment(non-plural) instead.

map<string, string> environments = 6 [deprecated = true];

Returns
TypeDescription
int

getEnvironmentsMap()

public abstract Map<String,String> getEnvironmentsMap()

Deprecated: please use environment(non-plural) instead.

map<string, string> environments = 6 [deprecated = true];

Returns
TypeDescription
Map<String,String>

getEnvironmentsOrDefault(String key, String defaultValue)

public abstract String getEnvironmentsOrDefault(String key, String defaultValue)

Deprecated: please use environment(non-plural) instead.

map<string, string> environments = 6 [deprecated = true];

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getEnvironmentsOrThrow(String key)

public abstract String getEnvironmentsOrThrow(String key)

Deprecated: please use environment(non-plural) instead.

map<string, string> environments = 6 [deprecated = true];

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getLifecyclePolicies(int index)

public abstract 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;

Parameter
NameDescription
indexint
Returns
TypeDescription
LifecyclePolicy

getLifecyclePoliciesCount()

public abstract 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;

Returns
TypeDescription
int

getLifecyclePoliciesList()

public abstract 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;

Returns
TypeDescription
List<LifecyclePolicy>

getLifecyclePoliciesOrBuilder(int index)

public abstract 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;

Parameter
NameDescription
indexint
Returns
TypeDescription
LifecyclePolicyOrBuilder

getLifecyclePoliciesOrBuilderList()

public abstract 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;

Returns
TypeDescription
List<? extends com.google.cloud.batch.v1.LifecyclePolicyOrBuilder>

getMaxRetryCount()

public abstract 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
TypeDescription
int

The maxRetryCount.

getMaxRunDuration()

public abstract 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
TypeDescription
Duration

The maxRunDuration.

getMaxRunDurationOrBuilder()

public abstract 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;

Returns
TypeDescription
DurationOrBuilder

getRunnables(int index)

public abstract 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.v1.Runnable runnables = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
Runnable

getRunnablesCount()

public abstract 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.v1.Runnable runnables = 8;

Returns
TypeDescription
int

getRunnablesList()

public abstract 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.v1.Runnable runnables = 8;

Returns
TypeDescription
List<Runnable>

getRunnablesOrBuilder(int index)

public abstract 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.v1.Runnable runnables = 8;

Parameter
NameDescription
indexint
Returns
TypeDescription
RunnableOrBuilder

getRunnablesOrBuilderList()

public abstract 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.v1.Runnable runnables = 8;

Returns
TypeDescription
List<? extends com.google.cloud.batch.v1.RunnableOrBuilder>

getVolumes(int index)

public abstract Volume getVolumes(int index)

Volumes to mount before running Tasks using this TaskSpec.

repeated .google.cloud.batch.v1.Volume volumes = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
Volume

getVolumesCount()

public abstract int getVolumesCount()

Volumes to mount before running Tasks using this TaskSpec.

repeated .google.cloud.batch.v1.Volume volumes = 7;

Returns
TypeDescription
int

getVolumesList()

public abstract List<Volume> getVolumesList()

Volumes to mount before running Tasks using this TaskSpec.

repeated .google.cloud.batch.v1.Volume volumes = 7;

Returns
TypeDescription
List<Volume>

getVolumesOrBuilder(int index)

public abstract VolumeOrBuilder getVolumesOrBuilder(int index)

Volumes to mount before running Tasks using this TaskSpec.

repeated .google.cloud.batch.v1.Volume volumes = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
VolumeOrBuilder

getVolumesOrBuilderList()

public abstract List<? extends VolumeOrBuilder> getVolumesOrBuilderList()

Volumes to mount before running Tasks using this TaskSpec.

repeated .google.cloud.batch.v1.Volume volumes = 7;

Returns
TypeDescription
List<? extends com.google.cloud.batch.v1.VolumeOrBuilder>

hasComputeResource()

public abstract boolean hasComputeResource()

ComputeResource requirements.

.google.cloud.batch.v1.ComputeResource compute_resource = 3;

Returns
TypeDescription
boolean

Whether the computeResource field is set.

hasEnvironment()

public abstract boolean hasEnvironment()

Environment variables to set before running the Task.

.google.cloud.batch.v1.Environment environment = 10;

Returns
TypeDescription
boolean

Whether the environment field is set.

hasMaxRunDuration()

public abstract 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
TypeDescription
boolean

Whether the maxRunDuration field is set.