Package com.google.cloud.batch.v1alpha
Class Runnable
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.batch.v1alpha.Runnable
- All Implemented Interfaces:
RunnableOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class Runnable
extends com.google.protobuf.GeneratedMessage
implements RunnableOrBuilder
Runnable describes instructions for executing a specific script or container as part of a Task.Protobuf type
google.cloud.batch.v1alpha.Runnable- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA barrier runnable automatically blocks the execution of subsequent runnables until all the tasks in the task group reach the barrier.static interfacestatic final classRunnable describes instructions for executing a specific script or container as part of a Task.static final classContainer runnable.static interfacestatic enumstatic final classScript runnable.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsLabels(String key) Labels for this Runnable.booleanbooleanBy default, after a Runnable fails, no further Runnable are executed.booleanNormally, a runnable that doesn't exit causes its task to fail.Barrier runnable.Barrier runnable.Container runnable.Container runnable.static Runnablestatic final com.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.Environment variables for this Runnable (overrides variables set for the whole Task or TaskGroup).Environment variables for this Runnable (overrides variables set for the whole Task or TaskGroup).booleanNormally, a runnable that returns a non-zero exit status fails and causes the task to fail.Deprecated.intLabels for this Runnable.Labels for this Runnable.getLabelsOrDefault(String key, String defaultValue) Labels for this Runnable.getLabelsOrThrow(String key) Labels for this Runnable.com.google.protobuf.Parser<Runnable>Script runnable.Script runnable.intcom.google.protobuf.DurationTimeout for this Runnable.com.google.protobuf.DurationOrBuilderTimeout for this Runnable.booleanBarrier runnable.booleanContainer runnable.booleanEnvironment variables for this Runnable (overrides variables set for the whole Task or TaskGroup).inthashCode()booleanScript runnable.booleanTimeout for this Runnable.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic Runnable.Builderstatic Runnable.BuildernewBuilder(Runnable prototype) protected Runnable.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static RunnableparseDelimitedFrom(InputStream input) static RunnableparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RunnableparseFrom(byte[] data) static RunnableparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RunnableparseFrom(com.google.protobuf.ByteString data) static RunnableparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RunnableparseFrom(com.google.protobuf.CodedInputStream input) static RunnableparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RunnableparseFrom(InputStream input) static RunnableparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RunnableparseFrom(ByteBuffer data) static RunnableparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Runnable>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
CONTAINER_FIELD_NUMBER
public static final int CONTAINER_FIELD_NUMBER- See Also:
-
SCRIPT_FIELD_NUMBER
public static final int SCRIPT_FIELD_NUMBER- See Also:
-
BARRIER_FIELD_NUMBER
public static final int BARRIER_FIELD_NUMBER- See Also:
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER- See Also:
-
IGNORE_EXIT_STATUS_FIELD_NUMBER
public static final int IGNORE_EXIT_STATUS_FIELD_NUMBER- See Also:
-
BACKGROUND_FIELD_NUMBER
public static final int BACKGROUND_FIELD_NUMBER- See Also:
-
ALWAYS_RUN_FIELD_NUMBER
public static final int ALWAYS_RUN_FIELD_NUMBER- See Also:
-
ENVIRONMENT_FIELD_NUMBER
public static final int ENVIRONMENT_FIELD_NUMBER- See Also:
-
TIMEOUT_FIELD_NUMBER
public static final int TIMEOUT_FIELD_NUMBER- See Also:
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getExecutableCase
- Specified by:
getExecutableCasein interfaceRunnableOrBuilder
-
hasContainer
public boolean hasContainer()Container runnable.
.google.cloud.batch.v1alpha.Runnable.Container container = 1;- Specified by:
hasContainerin interfaceRunnableOrBuilder- Returns:
- Whether the container field is set.
-
getContainer
Container runnable.
.google.cloud.batch.v1alpha.Runnable.Container container = 1;- Specified by:
getContainerin interfaceRunnableOrBuilder- Returns:
- The container.
-
getContainerOrBuilder
Container runnable.
.google.cloud.batch.v1alpha.Runnable.Container container = 1;- Specified by:
getContainerOrBuilderin interfaceRunnableOrBuilder
-
hasScript
public boolean hasScript()Script runnable.
.google.cloud.batch.v1alpha.Runnable.Script script = 2;- Specified by:
hasScriptin interfaceRunnableOrBuilder- Returns:
- Whether the script field is set.
-
getScript
Script runnable.
.google.cloud.batch.v1alpha.Runnable.Script script = 2;- Specified by:
getScriptin interfaceRunnableOrBuilder- Returns:
- The script.
-
getScriptOrBuilder
Script runnable.
.google.cloud.batch.v1alpha.Runnable.Script script = 2;- Specified by:
getScriptOrBuilderin interfaceRunnableOrBuilder
-
hasBarrier
public boolean hasBarrier()Barrier runnable.
.google.cloud.batch.v1alpha.Runnable.Barrier barrier = 6;- Specified by:
hasBarrierin interfaceRunnableOrBuilder- Returns:
- Whether the barrier field is set.
-
getBarrier
Barrier runnable.
.google.cloud.batch.v1alpha.Runnable.Barrier barrier = 6;- Specified by:
getBarrierin interfaceRunnableOrBuilder- Returns:
- The barrier.
-
getBarrierOrBuilder
Barrier runnable.
.google.cloud.batch.v1alpha.Runnable.Barrier barrier = 6;- Specified by:
getBarrierOrBuilderin interfaceRunnableOrBuilder
-
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];- Specified by:
getDisplayNamein interfaceRunnableOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public 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];- Specified by:
getDisplayNameBytesin interfaceRunnableOrBuilder- Returns:
- The bytes for displayName.
-
getIgnoreExitStatus
public 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;- Specified by:
getIgnoreExitStatusin interfaceRunnableOrBuilder- Returns:
- The ignoreExitStatus.
-
getBackground
public 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;- Specified by:
getBackgroundin interfaceRunnableOrBuilder- Returns:
- The background.
-
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;- Specified by:
getAlwaysRunin interfaceRunnableOrBuilder- Returns:
- The alwaysRun.
-
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;- Specified by:
hasEnvironmentin interfaceRunnableOrBuilder- Returns:
- Whether the environment field is set.
-
getEnvironment
Environment variables for this Runnable (overrides variables set for the whole Task or TaskGroup).
.google.cloud.batch.v1alpha.Environment environment = 7;- Specified by:
getEnvironmentin interfaceRunnableOrBuilder- Returns:
- The environment.
-
getEnvironmentOrBuilder
Environment variables for this Runnable (overrides variables set for the whole Task or TaskGroup).
.google.cloud.batch.v1alpha.Environment environment = 7;- Specified by:
getEnvironmentOrBuilderin interfaceRunnableOrBuilder
-
hasTimeout
public boolean hasTimeout()Timeout for this Runnable.
.google.protobuf.Duration timeout = 8;- Specified by:
hasTimeoutin interfaceRunnableOrBuilder- Returns:
- Whether the timeout field is set.
-
getTimeout
public com.google.protobuf.Duration getTimeout()Timeout for this Runnable.
.google.protobuf.Duration timeout = 8;- Specified by:
getTimeoutin interfaceRunnableOrBuilder- Returns:
- The timeout.
-
getTimeoutOrBuilder
public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()Timeout for this Runnable.
.google.protobuf.Duration timeout = 8;- Specified by:
getTimeoutOrBuilderin interfaceRunnableOrBuilder
-
getLabelsCount
public int getLabelsCount()Description copied from interface:RunnableOrBuilderLabels for this Runnable.
map<string, string> labels = 9;- Specified by:
getLabelsCountin interfaceRunnableOrBuilder
-
containsLabels
Labels for this Runnable.
map<string, string> labels = 9;- Specified by:
containsLabelsin interfaceRunnableOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceRunnableOrBuilder
-
getLabelsMap
Labels for this Runnable.
map<string, string> labels = 9;- Specified by:
getLabelsMapin interfaceRunnableOrBuilder
-
getLabelsOrDefault
Labels for this Runnable.
map<string, string> labels = 9;- Specified by:
getLabelsOrDefaultin interfaceRunnableOrBuilder
-
getLabelsOrThrow
Labels for this Runnable.
map<string, string> labels = 9;- Specified by:
getLabelsOrThrowin interfaceRunnableOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Runnable parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Runnable parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Runnable parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Runnable parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Runnable parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Runnable parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Runnable parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Runnable parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Runnable parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Runnable.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-