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.v1.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
IGNORE_EXIT_STATUS_FIELD_NUMBER
public static final int IGNORE_EXIT_STATUS_FIELD_NUMBER
Field Value
SCRIPT_FIELD_NUMBER
public static final int SCRIPT_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
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.v1.Runnable.Barrier barrier = 6;
Returns
getBarrierOrBuilder()
public Runnable.BarrierOrBuilder getBarrierOrBuilder()
Barrier runnable.
.google.cloud.batch.v1.Runnable.Barrier barrier = 6;
Returns
getContainer()
public Runnable.Container getContainer()
Container runnable.
.google.cloud.batch.v1.Runnable.Container container = 1;
Returns
getContainerOrBuilder()
public Runnable.ContainerOrBuilder getContainerOrBuilder()
Container runnable.
.google.cloud.batch.v1.Runnable.Container container = 1;
Returns
getDefaultInstanceForType()
public Runnable getDefaultInstanceForType()
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.
|
getParserForType()
public Parser<Runnable> getParserForType()
Returns
Overrides
getScript()
public Runnable.Script getScript()
Script runnable.
.google.cloud.batch.v1.Runnable.Script script = 2;
Returns
getScriptOrBuilder()
public Runnable.ScriptOrBuilder getScriptOrBuilder()
Script runnable.
.google.cloud.batch.v1.Runnable.Script script = 2;
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasBarrier()
public boolean hasBarrier()
Barrier runnable.
.google.cloud.batch.v1.Runnable.Barrier barrier = 6;
Returns
Type |
Description |
boolean |
Whether the barrier field is set.
|
hasContainer()
public boolean hasContainer()
Container runnable.
.google.cloud.batch.v1.Runnable.Container container = 1;
Returns
Type |
Description |
boolean |
Whether the container field is set.
|
hasScript()
public boolean hasScript()
Script runnable.
.google.cloud.batch.v1.Runnable.Script script = 2;
Returns
Type |
Description |
boolean |
Whether the script field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
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