Package com.google.cloud.batch.v1
Interface RunnableOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Runnable,Runnable.Builder
public interface RunnableOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleancontainsLabels(String key)Labels for this Runnable.booleangetAlwaysRun()By default, after a Runnable fails, no further Runnable are executed.booleangetBackground()This flag allows a Runnable to continue running in the background while the Task executes subsequent Runnables.Runnable.BarriergetBarrier()Barrier runnable.Runnable.BarrierOrBuildergetBarrierOrBuilder()Barrier runnable.Runnable.ContainergetContainer()Container runnable.Runnable.ContainerOrBuildergetContainerOrBuilder()Container runnable.EnvironmentgetEnvironment()Environment variables for this Runnable (overrides variables set for the whole Task or TaskGroup).EnvironmentOrBuildergetEnvironmentOrBuilder()Environment variables for this Runnable (overrides variables set for the whole Task or TaskGroup).Runnable.ExecutableCasegetExecutableCase()booleangetIgnoreExitStatus()Normally, a non-zero exit status causes the Task to fail.Map<String,String>getLabels()Deprecated.intgetLabelsCount()Labels for this Runnable.Map<String,String>getLabelsMap()Labels for this Runnable.StringgetLabelsOrDefault(String key, String defaultValue)Labels for this Runnable.StringgetLabelsOrThrow(String key)Labels for this Runnable.Runnable.ScriptgetScript()Script runnable.Runnable.ScriptOrBuildergetScriptOrBuilder()Script runnable.com.google.protobuf.DurationgetTimeout()Timeout for this Runnable.com.google.protobuf.DurationOrBuildergetTimeoutOrBuilder()Timeout for this Runnable.booleanhasBarrier()Barrier runnable.booleanhasContainer()Container runnable.booleanhasEnvironment()Environment variables for this Runnable (overrides variables set for the whole Task or TaskGroup).booleanhasScript()Script runnable.booleanhasTimeout()Timeout for this Runnable.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasContainer
boolean hasContainer()
Container runnable.
.google.cloud.batch.v1.Runnable.Container container = 1;- Returns:
- Whether the container field is set.
-
getContainer
Runnable.Container getContainer()
Container runnable.
.google.cloud.batch.v1.Runnable.Container container = 1;- Returns:
- The container.
-
getContainerOrBuilder
Runnable.ContainerOrBuilder getContainerOrBuilder()
Container runnable.
.google.cloud.batch.v1.Runnable.Container container = 1;
-
hasScript
boolean hasScript()
Script runnable.
.google.cloud.batch.v1.Runnable.Script script = 2;- Returns:
- Whether the script field is set.
-
getScript
Runnable.Script getScript()
Script runnable.
.google.cloud.batch.v1.Runnable.Script script = 2;- Returns:
- The script.
-
getScriptOrBuilder
Runnable.ScriptOrBuilder getScriptOrBuilder()
Script runnable.
.google.cloud.batch.v1.Runnable.Script script = 2;
-
hasBarrier
boolean hasBarrier()
Barrier runnable.
.google.cloud.batch.v1.Runnable.Barrier barrier = 6;- Returns:
- Whether the barrier field is set.
-
getBarrier
Runnable.Barrier getBarrier()
Barrier runnable.
.google.cloud.batch.v1.Runnable.Barrier barrier = 6;- Returns:
- The barrier.
-
getBarrierOrBuilder
Runnable.BarrierOrBuilder getBarrierOrBuilder()
Barrier runnable.
.google.cloud.batch.v1.Runnable.Barrier barrier = 6;
-
getIgnoreExitStatus
boolean getIgnoreExitStatus()
Normally, a non-zero exit status causes the Task to fail. This flag allows execution of other Runnables to continue instead.
bool ignore_exit_status = 3;- Returns:
- The ignoreExitStatus.
-
getBackground
boolean getBackground()
This flag allows a Runnable to continue running in the background while the Task executes subsequent Runnables. This is useful to provide services to other Runnables (or to provide debugging support tools like SSH servers).
bool background = 4;- Returns:
- The background.
-
getAlwaysRun
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;- Returns:
- The alwaysRun.
-
hasEnvironment
boolean hasEnvironment()
Environment variables for this Runnable (overrides variables set for the whole Task or TaskGroup).
.google.cloud.batch.v1.Environment environment = 7;- Returns:
- Whether the environment field is set.
-
getEnvironment
Environment getEnvironment()
Environment variables for this Runnable (overrides variables set for the whole Task or TaskGroup).
.google.cloud.batch.v1.Environment environment = 7;- Returns:
- The environment.
-
getEnvironmentOrBuilder
EnvironmentOrBuilder getEnvironmentOrBuilder()
Environment variables for this Runnable (overrides variables set for the whole Task or TaskGroup).
.google.cloud.batch.v1.Environment environment = 7;
-
hasTimeout
boolean hasTimeout()
Timeout for this Runnable.
.google.protobuf.Duration timeout = 8;- Returns:
- Whether the timeout field is set.
-
getTimeout
com.google.protobuf.Duration getTimeout()
Timeout for this Runnable.
.google.protobuf.Duration timeout = 8;- Returns:
- The timeout.
-
getTimeoutOrBuilder
com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()
Timeout for this Runnable.
.google.protobuf.Duration timeout = 8;
-
getLabelsCount
int getLabelsCount()
Labels for this Runnable.
map<string, string> labels = 9;
-
containsLabels
boolean containsLabels(String key)
Labels for this Runnable.
map<string, string> labels = 9;
-
getLabels
@Deprecated Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.
-
getLabelsMap
Map<String,String> getLabelsMap()
Labels for this Runnable.
map<string, string> labels = 9;
-
getLabelsOrDefault
String getLabelsOrDefault(String key, String defaultValue)
Labels for this Runnable.
map<string, string> labels = 9;
-
getLabelsOrThrow
String getLabelsOrThrow(String key)
Labels for this Runnable.
map<string, string> labels = 9;
-
getExecutableCase
Runnable.ExecutableCase getExecutableCase()
-
-