Package com.google.cloud.batch.v1alpha
Class Runnable.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Runnable.Builder>
-
- com.google.cloud.batch.v1alpha.Runnable.Builder
-
- All Implemented Interfaces:
RunnableOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Runnable
public static final class Runnable.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Runnable.Builder> implements RunnableOrBuilder
Runnable describes instructions for executing a specific script or container as part of a Task.
Protobuf typegoogle.cloud.batch.v1alpha.Runnable
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Runnable.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Runnablebuild()RunnablebuildPartial()Runnable.Builderclear()Runnable.BuilderclearAlwaysRun()By default, after a Runnable fails, no further Runnable are executed.Runnable.BuilderclearBackground()This flag allows a Runnable to continue running in the background while the Task executes subsequent Runnables.Runnable.BuilderclearBarrier()Barrier runnable.Runnable.BuilderclearContainer()Container runnable.Runnable.BuilderclearDisplayName()Optional.Runnable.BuilderclearEnvironment()Environment variables for this Runnable (overrides variables set for the whole Task or TaskGroup).Runnable.BuilderclearExecutable()Runnable.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Runnable.BuilderclearIgnoreExitStatus()Normally, a non-zero exit status causes the Task to fail.Runnable.BuilderclearLabels()Runnable.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Runnable.BuilderclearScript()Script runnable.Runnable.BuilderclearTimeout()Timeout for this Runnable.Runnable.Builderclone()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.Barrier.BuildergetBarrierBuilder()Barrier runnable.Runnable.BarrierOrBuildergetBarrierOrBuilder()Barrier runnable.Runnable.ContainergetContainer()Container runnable.Runnable.Container.BuildergetContainerBuilder()Container runnable.Runnable.ContainerOrBuildergetContainerOrBuilder()Container runnable.RunnablegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDisplayName()Optional.com.google.protobuf.ByteStringgetDisplayNameBytes()Optional.EnvironmentgetEnvironment()Environment variables for this Runnable (overrides variables set for the whole Task or TaskGroup).Environment.BuildergetEnvironmentBuilder()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.Map<String,String>getMutableLabels()Deprecated.Runnable.ScriptgetScript()Script runnable.Runnable.Script.BuildergetScriptBuilder()Script runnable.Runnable.ScriptOrBuildergetScriptOrBuilder()Script runnable.com.google.protobuf.DurationgetTimeout()Timeout for this Runnable.com.google.protobuf.Duration.BuildergetTimeoutBuilder()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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()Runnable.BuildermergeBarrier(Runnable.Barrier value)Barrier runnable.Runnable.BuildermergeContainer(Runnable.Container value)Container runnable.Runnable.BuildermergeEnvironment(Environment value)Environment variables for this Runnable (overrides variables set for the whole Task or TaskGroup).Runnable.BuildermergeFrom(Runnable other)Runnable.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Runnable.BuildermergeFrom(com.google.protobuf.Message other)Runnable.BuildermergeScript(Runnable.Script value)Script runnable.Runnable.BuildermergeTimeout(com.google.protobuf.Duration value)Timeout for this Runnable.Runnable.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Runnable.BuilderputAllLabels(Map<String,String> values)Labels for this Runnable.Runnable.BuilderputLabels(String key, String value)Labels for this Runnable.Runnable.BuilderremoveLabels(String key)Labels for this Runnable.Runnable.BuildersetAlwaysRun(boolean value)By default, after a Runnable fails, no further Runnable are executed.Runnable.BuildersetBackground(boolean value)This flag allows a Runnable to continue running in the background while the Task executes subsequent Runnables.Runnable.BuildersetBarrier(Runnable.Barrier value)Barrier runnable.Runnable.BuildersetBarrier(Runnable.Barrier.Builder builderForValue)Barrier runnable.Runnable.BuildersetContainer(Runnable.Container value)Container runnable.Runnable.BuildersetContainer(Runnable.Container.Builder builderForValue)Container runnable.Runnable.BuildersetDisplayName(String value)Optional.Runnable.BuildersetDisplayNameBytes(com.google.protobuf.ByteString value)Optional.Runnable.BuildersetEnvironment(Environment value)Environment variables for this Runnable (overrides variables set for the whole Task or TaskGroup).Runnable.BuildersetEnvironment(Environment.Builder builderForValue)Environment variables for this Runnable (overrides variables set for the whole Task or TaskGroup).Runnable.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Runnable.BuildersetIgnoreExitStatus(boolean value)Normally, a non-zero exit status causes the Task to fail.Runnable.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Runnable.BuildersetScript(Runnable.Script value)Script runnable.Runnable.BuildersetScript(Runnable.Script.Builder builderForValue)Script runnable.Runnable.BuildersetTimeout(com.google.protobuf.Duration value)Timeout for this Runnable.Runnable.BuildersetTimeout(com.google.protobuf.Duration.Builder builderForValue)Timeout for this Runnable.Runnable.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Runnable.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Runnable.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Runnable.Builder>
-
clear
public Runnable.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Runnable.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Runnable.Builder>
-
getDefaultInstanceForType
public Runnable getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Runnable build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Runnable buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Runnable.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Runnable.Builder>
-
setField
public Runnable.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Runnable.Builder>
-
clearField
public Runnable.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Runnable.Builder>
-
clearOneof
public Runnable.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Runnable.Builder>
-
setRepeatedField
public Runnable.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Runnable.Builder>
-
addRepeatedField
public Runnable.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Runnable.Builder>
-
mergeFrom
public Runnable.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Runnable.Builder>
-
mergeFrom
public Runnable.Builder mergeFrom(Runnable other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Runnable.Builder>
-
mergeFrom
public Runnable.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Runnable.Builder>- Throws:
IOException
-
getExecutableCase
public Runnable.ExecutableCase getExecutableCase()
- Specified by:
getExecutableCasein interfaceRunnableOrBuilder
-
clearExecutable
public Runnable.Builder clearExecutable()
-
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
public Runnable.Container getContainer()
Container runnable.
.google.cloud.batch.v1alpha.Runnable.Container container = 1;- Specified by:
getContainerin interfaceRunnableOrBuilder- Returns:
- The container.
-
setContainer
public Runnable.Builder setContainer(Runnable.Container value)
Container runnable.
.google.cloud.batch.v1alpha.Runnable.Container container = 1;
-
setContainer
public Runnable.Builder setContainer(Runnable.Container.Builder builderForValue)
Container runnable.
.google.cloud.batch.v1alpha.Runnable.Container container = 1;
-
mergeContainer
public Runnable.Builder mergeContainer(Runnable.Container value)
Container runnable.
.google.cloud.batch.v1alpha.Runnable.Container container = 1;
-
clearContainer
public Runnable.Builder clearContainer()
Container runnable.
.google.cloud.batch.v1alpha.Runnable.Container container = 1;
-
getContainerBuilder
public Runnable.Container.Builder getContainerBuilder()
Container runnable.
.google.cloud.batch.v1alpha.Runnable.Container container = 1;
-
getContainerOrBuilder
public Runnable.ContainerOrBuilder 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
public Runnable.Script getScript()
Script runnable.
.google.cloud.batch.v1alpha.Runnable.Script script = 2;- Specified by:
getScriptin interfaceRunnableOrBuilder- Returns:
- The script.
-
setScript
public Runnable.Builder setScript(Runnable.Script value)
Script runnable.
.google.cloud.batch.v1alpha.Runnable.Script script = 2;
-
setScript
public Runnable.Builder setScript(Runnable.Script.Builder builderForValue)
Script runnable.
.google.cloud.batch.v1alpha.Runnable.Script script = 2;
-
mergeScript
public Runnable.Builder mergeScript(Runnable.Script value)
Script runnable.
.google.cloud.batch.v1alpha.Runnable.Script script = 2;
-
clearScript
public Runnable.Builder clearScript()
Script runnable.
.google.cloud.batch.v1alpha.Runnable.Script script = 2;
-
getScriptBuilder
public Runnable.Script.Builder getScriptBuilder()
Script runnable.
.google.cloud.batch.v1alpha.Runnable.Script script = 2;
-
getScriptOrBuilder
public Runnable.ScriptOrBuilder 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
public Runnable.Barrier getBarrier()
Barrier runnable.
.google.cloud.batch.v1alpha.Runnable.Barrier barrier = 6;- Specified by:
getBarrierin interfaceRunnableOrBuilder- Returns:
- The barrier.
-
setBarrier
public Runnable.Builder setBarrier(Runnable.Barrier value)
Barrier runnable.
.google.cloud.batch.v1alpha.Runnable.Barrier barrier = 6;
-
setBarrier
public Runnable.Builder setBarrier(Runnable.Barrier.Builder builderForValue)
Barrier runnable.
.google.cloud.batch.v1alpha.Runnable.Barrier barrier = 6;
-
mergeBarrier
public Runnable.Builder mergeBarrier(Runnable.Barrier value)
Barrier runnable.
.google.cloud.batch.v1alpha.Runnable.Barrier barrier = 6;
-
clearBarrier
public Runnable.Builder clearBarrier()
Barrier runnable.
.google.cloud.batch.v1alpha.Runnable.Barrier barrier = 6;
-
getBarrierBuilder
public Runnable.Barrier.Builder getBarrierBuilder()
Barrier runnable.
.google.cloud.batch.v1alpha.Runnable.Barrier barrier = 6;
-
getBarrierOrBuilder
public Runnable.BarrierOrBuilder getBarrierOrBuilder()
Barrier runnable.
.google.cloud.batch.v1alpha.Runnable.Barrier barrier = 6;- Specified by:
getBarrierOrBuilderin interfaceRunnableOrBuilder
-
getDisplayName
public 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];- 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.
-
setDisplayName
public Runnable.Builder setDisplayName(String value)
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];- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
public Runnable.Builder clearDisplayName()
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];- Returns:
- This builder for chaining.
-
setDisplayNameBytes
public Runnable.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
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];- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getIgnoreExitStatusin interfaceRunnableOrBuilder- Returns:
- The ignoreExitStatus.
-
setIgnoreExitStatus
public Runnable.Builder setIgnoreExitStatus(boolean value)
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;- Parameters:
value- The ignoreExitStatus to set.- Returns:
- This builder for chaining.
-
clearIgnoreExitStatus
public Runnable.Builder clearIgnoreExitStatus()
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:
- This builder for chaining.
-
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;- Specified by:
getBackgroundin interfaceRunnableOrBuilder- Returns:
- The background.
-
setBackground
public Runnable.Builder setBackground(boolean value)
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;- Parameters:
value- The background to set.- Returns:
- This builder for chaining.
-
clearBackground
public Runnable.Builder clearBackground()
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:
- This builder for chaining.
-
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.
-
setAlwaysRun
public Runnable.Builder setAlwaysRun(boolean value)
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;- Parameters:
value- The alwaysRun to set.- Returns:
- This builder for chaining.
-
clearAlwaysRun
public Runnable.Builder clearAlwaysRun()
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:
- This builder for chaining.
-
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
public Environment 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.
-
setEnvironment
public Runnable.Builder setEnvironment(Environment value)
Environment variables for this Runnable (overrides variables set for the whole Task or TaskGroup).
.google.cloud.batch.v1alpha.Environment environment = 7;
-
setEnvironment
public Runnable.Builder setEnvironment(Environment.Builder builderForValue)
Environment variables for this Runnable (overrides variables set for the whole Task or TaskGroup).
.google.cloud.batch.v1alpha.Environment environment = 7;
-
mergeEnvironment
public Runnable.Builder mergeEnvironment(Environment value)
Environment variables for this Runnable (overrides variables set for the whole Task or TaskGroup).
.google.cloud.batch.v1alpha.Environment environment = 7;
-
clearEnvironment
public Runnable.Builder clearEnvironment()
Environment variables for this Runnable (overrides variables set for the whole Task or TaskGroup).
.google.cloud.batch.v1alpha.Environment environment = 7;
-
getEnvironmentBuilder
public Environment.Builder getEnvironmentBuilder()
Environment variables for this Runnable (overrides variables set for the whole Task or TaskGroup).
.google.cloud.batch.v1alpha.Environment environment = 7;
-
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;- 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.
-
setTimeout
public Runnable.Builder setTimeout(com.google.protobuf.Duration value)
Timeout for this Runnable.
.google.protobuf.Duration timeout = 8;
-
setTimeout
public Runnable.Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue)
Timeout for this Runnable.
.google.protobuf.Duration timeout = 8;
-
mergeTimeout
public Runnable.Builder mergeTimeout(com.google.protobuf.Duration value)
Timeout for this Runnable.
.google.protobuf.Duration timeout = 8;
-
clearTimeout
public Runnable.Builder clearTimeout()
Timeout for this Runnable.
.google.protobuf.Duration timeout = 8;
-
getTimeoutBuilder
public com.google.protobuf.Duration.Builder getTimeoutBuilder()
Timeout for this Runnable.
.google.protobuf.Duration timeout = 8;
-
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
public boolean containsLabels(String key)
Labels for this Runnable.
map<string, string> labels = 9;- Specified by:
containsLabelsin interfaceRunnableOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceRunnableOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Labels for this Runnable.
map<string, string> labels = 9;- Specified by:
getLabelsMapin interfaceRunnableOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Labels for this Runnable.
map<string, string> labels = 9;- Specified by:
getLabelsOrDefaultin interfaceRunnableOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Labels for this Runnable.
map<string, string> labels = 9;- Specified by:
getLabelsOrThrowin interfaceRunnableOrBuilder
-
clearLabels
public Runnable.Builder clearLabels()
-
removeLabels
public Runnable.Builder removeLabels(String key)
Labels for this Runnable.
map<string, string> labels = 9;
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public Runnable.Builder putLabels(String key, String value)
Labels for this Runnable.
map<string, string> labels = 9;
-
putAllLabels
public Runnable.Builder putAllLabels(Map<String,String> values)
Labels for this Runnable.
map<string, string> labels = 9;
-
setUnknownFields
public final Runnable.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Runnable.Builder>
-
mergeUnknownFields
public final Runnable.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Runnable.Builder>
-
-