public final class Runnable extends GeneratedMessageV3 implements RunnableOrBuilder
Runnable describes instructions for executing a specific script or container
as part of a Task.
Protobuf type google.cloud.batch.v1alpha.Runnable
Static Fields
ALWAYS_RUN_FIELD_NUMBER
public static final int ALWAYS_RUN_FIELD_NUMBER
Field Value
BACKGROUND_FIELD_NUMBER
public static final int BACKGROUND_FIELD_NUMBER
Field Value
BARRIER_FIELD_NUMBER
public static final int BARRIER_FIELD_NUMBER
Field Value
CONTAINER_FIELD_NUMBER
public static final int CONTAINER_FIELD_NUMBER
Field Value
ENVIRONMENT_FIELD_NUMBER
public static final int ENVIRONMENT_FIELD_NUMBER
Field Value
IGNORE_EXIT_STATUS_FIELD_NUMBER
public static final int IGNORE_EXIT_STATUS_FIELD_NUMBER
Field Value
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
Field Value
SCRIPT_FIELD_NUMBER
public static final int SCRIPT_FIELD_NUMBER
Field Value
TIMEOUT_FIELD_NUMBER
public static final int TIMEOUT_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Runnable getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Runnable.Builder newBuilder()
Returns
newBuilder(Runnable prototype)
public static Runnable.Builder newBuilder(Runnable prototype)
Parameter
Returns
public static Runnable parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Runnable parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Runnable parseFrom(byte[] data)
Parameter
Name |
Description |
data |
byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Runnable parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Runnable parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Runnable parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Runnable parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Runnable parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Runnable parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Runnable parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Runnable parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Runnable parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Runnable> parser()
Returns
Methods
containsLabels(String key)
public boolean containsLabels(String key)
Labels for this Runnable.
map<string, string> labels = 9;
Parameter
Returns
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getAlwaysRun()
public 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
Type |
Description |
boolean |
The alwaysRun.
|
getBackground()
public 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
Type |
Description |
boolean |
The background.
|
getBarrier()
public Runnable.Barrier getBarrier()
Barrier runnable.
.google.cloud.batch.v1alpha.Runnable.Barrier barrier = 6;
Returns
getBarrierOrBuilder()
public Runnable.BarrierOrBuilder getBarrierOrBuilder()
Barrier runnable.
.google.cloud.batch.v1alpha.Runnable.Barrier barrier = 6;
Returns
getContainer()
public Runnable.Container getContainer()
Container runnable.
.google.cloud.batch.v1alpha.Runnable.Container container = 1;
Returns
getContainerOrBuilder()
public Runnable.ContainerOrBuilder getContainerOrBuilder()
Container runnable.
.google.cloud.batch.v1alpha.Runnable.Container container = 1;
Returns
getDefaultInstanceForType()
public Runnable getDefaultInstanceForType()
Returns
getEnvironment()
public Environment getEnvironment()
Environment variables for this Runnable (overrides variables set for the
whole Task or TaskGroup).
.google.cloud.batch.v1alpha.Environment environment = 7;
Returns
getEnvironmentOrBuilder()
public EnvironmentOrBuilder getEnvironmentOrBuilder()
Environment variables for this Runnable (overrides variables set for the
whole Task or TaskGroup).
.google.cloud.batch.v1alpha.Environment environment = 7;
Returns
getExecutableCase()
public Runnable.ExecutableCase getExecutableCase()
Returns
getIgnoreExitStatus()
public 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
Type |
Description |
boolean |
The ignoreExitStatus.
|
getLabels()
public Map<String,String> getLabels()
Returns
getLabelsCount()
public int getLabelsCount()
Labels for this Runnable.
map<string, string> labels = 9;
Returns
getLabelsMap()
public Map<String,String> getLabelsMap()
Labels for this Runnable.
map<string, string> labels = 9;
Returns
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
Labels for this Runnable.
map<string, string> labels = 9;
Parameters
Returns
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
Labels for this Runnable.
map<string, string> labels = 9;
Parameter
Returns
getParserForType()
public Parser<Runnable> getParserForType()
Returns
Overrides
getScript()
public Runnable.Script getScript()
Script runnable.
.google.cloud.batch.v1alpha.Runnable.Script script = 2;
Returns
getScriptOrBuilder()
public Runnable.ScriptOrBuilder getScriptOrBuilder()
Script runnable.
.google.cloud.batch.v1alpha.Runnable.Script script = 2;
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getTimeout()
public Duration getTimeout()
Timeout for this Runnable.
.google.protobuf.Duration timeout = 8;
Returns
getTimeoutOrBuilder()
public DurationOrBuilder getTimeoutOrBuilder()
Timeout for this Runnable.
.google.protobuf.Duration timeout = 8;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasBarrier()
public boolean hasBarrier()
Barrier runnable.
.google.cloud.batch.v1alpha.Runnable.Barrier barrier = 6;
Returns
Type |
Description |
boolean |
Whether the barrier field is set.
|
hasContainer()
public boolean hasContainer()
Container runnable.
.google.cloud.batch.v1alpha.Runnable.Container container = 1;
Returns
Type |
Description |
boolean |
Whether the container field is set.
|
hasEnvironment()
public boolean hasEnvironment()
Environment variables for this Runnable (overrides variables set for the
whole Task or TaskGroup).
.google.cloud.batch.v1alpha.Environment environment = 7;
Returns
Type |
Description |
boolean |
Whether the environment field is set.
|
hasScript()
public boolean hasScript()
Script runnable.
.google.cloud.batch.v1alpha.Runnable.Script script = 2;
Returns
Type |
Description |
boolean |
Whether the script field is set.
|
hasTimeout()
public boolean hasTimeout()
Timeout for this Runnable.
.google.protobuf.Duration timeout = 8;
Returns
Type |
Description |
boolean |
Whether the timeout field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Name |
Description |
number |
int
|
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Runnable.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Runnable.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Runnable.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions