public interface RunnableOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsLabels(String key)
Labels for this Runnable.
|
boolean |
getAlwaysRun()
By default, after a Runnable fails, no further Runnable are executed.
|
boolean |
getBackground()
Normally, a runnable that doesn't exit causes its task to fail.
|
Runnable.Barrier |
getBarrier()
Barrier runnable.
|
Runnable.BarrierOrBuilder |
getBarrierOrBuilder()
Barrier runnable.
|
Runnable.Container |
getContainer()
Container runnable.
|
Runnable.ContainerOrBuilder |
getContainerOrBuilder()
Container runnable.
|
String |
getDisplayName()
Optional.
|
com.google.protobuf.ByteString |
getDisplayNameBytes()
Optional.
|
Environment |
getEnvironment()
Environment variables for this Runnable (overrides variables set for the
whole Task or TaskGroup).
|
EnvironmentOrBuilder |
getEnvironmentOrBuilder()
Environment variables for this Runnable (overrides variables set for the
whole Task or TaskGroup).
|
Runnable.ExecutableCase |
getExecutableCase() |
boolean |
getIgnoreExitStatus()
Normally, a runnable that returns a non-zero exit status fails and causes
the task to fail.
|
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
Labels for this Runnable.
|
Map<String,String> |
getLabelsMap()
Labels for this Runnable.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
Labels for this Runnable.
|
String |
getLabelsOrThrow(String key)
Labels for this Runnable.
|
Runnable.Script |
getScript()
Script runnable.
|
Runnable.ScriptOrBuilder |
getScriptOrBuilder()
Script runnable.
|
com.google.protobuf.Duration |
getTimeout()
Timeout for this Runnable.
|
com.google.protobuf.DurationOrBuilder |
getTimeoutOrBuilder()
Timeout for this Runnable.
|
boolean |
hasBarrier()
Barrier runnable.
|
boolean |
hasContainer()
Container runnable.
|
boolean |
hasEnvironment()
Environment variables for this Runnable (overrides variables set for the
whole Task or TaskGroup).
|
boolean |
hasScript()
Script runnable.
|
boolean |
hasTimeout()
Timeout for this Runnable.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofboolean hasContainer()
Container runnable.
.google.cloud.batch.v1.Runnable.Container container = 1;Runnable.Container getContainer()
Container runnable.
.google.cloud.batch.v1.Runnable.Container container = 1;Runnable.ContainerOrBuilder getContainerOrBuilder()
Container runnable.
.google.cloud.batch.v1.Runnable.Container container = 1;boolean hasScript()
Script runnable.
.google.cloud.batch.v1.Runnable.Script script = 2;Runnable.Script getScript()
Script runnable.
.google.cloud.batch.v1.Runnable.Script script = 2;Runnable.ScriptOrBuilder getScriptOrBuilder()
Script runnable.
.google.cloud.batch.v1.Runnable.Script script = 2;boolean hasBarrier()
Barrier runnable.
.google.cloud.batch.v1.Runnable.Barrier barrier = 6;Runnable.Barrier getBarrier()
Barrier runnable.
.google.cloud.batch.v1.Runnable.Barrier barrier = 6;Runnable.BarrierOrBuilder getBarrierOrBuilder()
Barrier runnable.
.google.cloud.batch.v1.Runnable.Barrier barrier = 6;String getDisplayName()
Optional. DisplayName is an optional field that can be provided by the caller. If provided, it will be used in logs and other outputs to identify the script, making it easier for users to understand the logs. If not provided the index of the runnable will be used for outputs.
string display_name = 10 [(.google.api.field_behavior) = OPTIONAL];com.google.protobuf.ByteString getDisplayNameBytes()
Optional. DisplayName is an optional field that can be provided by the caller. If provided, it will be used in logs and other outputs to identify the script, making it easier for users to understand the logs. If not provided the index of the runnable will be used for outputs.
string display_name = 10 [(.google.api.field_behavior) = OPTIONAL];boolean getIgnoreExitStatus()
Normally, a runnable that returns a non-zero exit status fails and causes the task to fail. However, you can set this field to `true` to allow the task to continue executing its other runnables even if this runnable fails.
bool ignore_exit_status = 3;boolean getBackground()
Normally, a runnable that doesn't exit causes its task to fail. However, you can set this field to `true` to configure a background runnable. Background runnables are allowed continue running in the background while the task executes subsequent runnables. For example, background runnables are useful for providing services to other runnables or providing debugging-support tools like SSH servers. Specifically, 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.
bool background = 4;boolean getAlwaysRun()
By default, after a Runnable fails, no further Runnable are executed. This flag indicates that this Runnable must be run even if the Task has already failed. This is useful for Runnables that copy output files off of the VM or for debugging. The always_run flag does not override the Task's overall max_run_duration. If the max_run_duration has expired then no further Runnables will execute, not even always_run Runnables.
bool always_run = 5;boolean hasEnvironment()
Environment variables for this Runnable (overrides variables set for the whole Task or TaskGroup).
.google.cloud.batch.v1.Environment environment = 7;Environment getEnvironment()
Environment variables for this Runnable (overrides variables set for the whole Task or TaskGroup).
.google.cloud.batch.v1.Environment environment = 7;EnvironmentOrBuilder getEnvironmentOrBuilder()
Environment variables for this Runnable (overrides variables set for the whole Task or TaskGroup).
.google.cloud.batch.v1.Environment environment = 7;boolean hasTimeout()
Timeout for this Runnable.
.google.protobuf.Duration timeout = 8;com.google.protobuf.Duration getTimeout()
Timeout for this Runnable.
.google.protobuf.Duration timeout = 8;com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()
Timeout for this Runnable.
.google.protobuf.Duration timeout = 8;int getLabelsCount()
Labels for this Runnable.
map<string, string> labels = 9;boolean containsLabels(String key)
Labels for this Runnable.
map<string, string> labels = 9;@Deprecated Map<String,String> getLabels()
getLabelsMap() instead.Map<String,String> getLabelsMap()
Labels for this Runnable.
map<string, string> labels = 9;String getLabelsOrDefault(String key, String defaultValue)
Labels for this Runnable.
map<string, string> labels = 9;String getLabelsOrThrow(String key)
Labels for this Runnable.
map<string, string> labels = 9;Runnable.ExecutableCase getExecutableCase()
Copyright © 2025 Google LLC. All rights reserved.