Package com.google.cloud.batch.v1
Class TaskSpec.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<TaskSpec.Builder>
-
- com.google.cloud.batch.v1.TaskSpec.Builder
-
- All Implemented Interfaces:
TaskSpecOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TaskSpec
public static final class TaskSpec.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TaskSpec.Builder> implements TaskSpecOrBuilder
Spec of a task
Protobuf typegoogle.cloud.batch.v1.TaskSpec
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description TaskSpec.BuilderaddAllLifecyclePolicies(Iterable<? extends LifecyclePolicy> values)Lifecycle management schema when any task in a task group is failed.TaskSpec.BuilderaddAllRunnables(Iterable<? extends Runnable> values)The sequence of scripts or containers to run for this Task.TaskSpec.BuilderaddAllVolumes(Iterable<? extends Volume> values)Volumes to mount before running Tasks using this TaskSpec.TaskSpec.BuilderaddLifecyclePolicies(int index, LifecyclePolicy value)Lifecycle management schema when any task in a task group is failed.TaskSpec.BuilderaddLifecyclePolicies(int index, LifecyclePolicy.Builder builderForValue)Lifecycle management schema when any task in a task group is failed.TaskSpec.BuilderaddLifecyclePolicies(LifecyclePolicy value)Lifecycle management schema when any task in a task group is failed.TaskSpec.BuilderaddLifecyclePolicies(LifecyclePolicy.Builder builderForValue)Lifecycle management schema when any task in a task group is failed.LifecyclePolicy.BuilderaddLifecyclePoliciesBuilder()Lifecycle management schema when any task in a task group is failed.LifecyclePolicy.BuilderaddLifecyclePoliciesBuilder(int index)Lifecycle management schema when any task in a task group is failed.TaskSpec.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TaskSpec.BuilderaddRunnables(int index, Runnable value)The sequence of scripts or containers to run for this Task.TaskSpec.BuilderaddRunnables(int index, Runnable.Builder builderForValue)The sequence of scripts or containers to run for this Task.TaskSpec.BuilderaddRunnables(Runnable value)The sequence of scripts or containers to run for this Task.TaskSpec.BuilderaddRunnables(Runnable.Builder builderForValue)The sequence of scripts or containers to run for this Task.Runnable.BuilderaddRunnablesBuilder()The sequence of scripts or containers to run for this Task.Runnable.BuilderaddRunnablesBuilder(int index)The sequence of scripts or containers to run for this Task.TaskSpec.BuilderaddVolumes(int index, Volume value)Volumes to mount before running Tasks using this TaskSpec.TaskSpec.BuilderaddVolumes(int index, Volume.Builder builderForValue)Volumes to mount before running Tasks using this TaskSpec.TaskSpec.BuilderaddVolumes(Volume value)Volumes to mount before running Tasks using this TaskSpec.TaskSpec.BuilderaddVolumes(Volume.Builder builderForValue)Volumes to mount before running Tasks using this TaskSpec.Volume.BuilderaddVolumesBuilder()Volumes to mount before running Tasks using this TaskSpec.Volume.BuilderaddVolumesBuilder(int index)Volumes to mount before running Tasks using this TaskSpec.TaskSpecbuild()TaskSpecbuildPartial()TaskSpec.Builderclear()TaskSpec.BuilderclearComputeResource()ComputeResource requirements.TaskSpec.BuilderclearEnvironment()Environment variables to set before running the Task.TaskSpec.BuilderclearEnvironments()Deprecated.TaskSpec.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)TaskSpec.BuilderclearLifecyclePolicies()Lifecycle management schema when any task in a task group is failed.TaskSpec.BuilderclearMaxRetryCount()Maximum number of retries on failures.TaskSpec.BuilderclearMaxRunDuration()Maximum duration the task should run.TaskSpec.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)TaskSpec.BuilderclearRunnables()The sequence of scripts or containers to run for this Task.TaskSpec.BuilderclearVolumes()Volumes to mount before running Tasks using this TaskSpec.TaskSpec.Builderclone()booleancontainsEnvironments(String key)Deprecated.ComputeResourcegetComputeResource()ComputeResource requirements.ComputeResource.BuildergetComputeResourceBuilder()ComputeResource requirements.ComputeResourceOrBuildergetComputeResourceOrBuilder()ComputeResource requirements.TaskSpecgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()EnvironmentgetEnvironment()Environment variables to set before running the Task.Environment.BuildergetEnvironmentBuilder()Environment variables to set before running the Task.EnvironmentOrBuildergetEnvironmentOrBuilder()Environment variables to set before running the Task.Map<String,String>getEnvironments()Deprecated.intgetEnvironmentsCount()Deprecated.Map<String,String>getEnvironmentsMap()Deprecated.StringgetEnvironmentsOrDefault(String key, String defaultValue)Deprecated.StringgetEnvironmentsOrThrow(String key)Deprecated.LifecyclePolicygetLifecyclePolicies(int index)Lifecycle management schema when any task in a task group is failed.LifecyclePolicy.BuildergetLifecyclePoliciesBuilder(int index)Lifecycle management schema when any task in a task group is failed.List<LifecyclePolicy.Builder>getLifecyclePoliciesBuilderList()Lifecycle management schema when any task in a task group is failed.intgetLifecyclePoliciesCount()Lifecycle management schema when any task in a task group is failed.List<LifecyclePolicy>getLifecyclePoliciesList()Lifecycle management schema when any task in a task group is failed.LifecyclePolicyOrBuildergetLifecyclePoliciesOrBuilder(int index)Lifecycle management schema when any task in a task group is failed.List<? extends LifecyclePolicyOrBuilder>getLifecyclePoliciesOrBuilderList()Lifecycle management schema when any task in a task group is failed.intgetMaxRetryCount()Maximum number of retries on failures.com.google.protobuf.DurationgetMaxRunDuration()Maximum duration the task should run.com.google.protobuf.Duration.BuildergetMaxRunDurationBuilder()Maximum duration the task should run.com.google.protobuf.DurationOrBuildergetMaxRunDurationOrBuilder()Maximum duration the task should run.Map<String,String>getMutableEnvironments()Deprecated.RunnablegetRunnables(int index)The sequence of scripts or containers to run for this Task.Runnable.BuildergetRunnablesBuilder(int index)The sequence of scripts or containers to run for this Task.List<Runnable.Builder>getRunnablesBuilderList()The sequence of scripts or containers to run for this Task.intgetRunnablesCount()The sequence of scripts or containers to run for this Task.List<Runnable>getRunnablesList()The sequence of scripts or containers to run for this Task.RunnableOrBuildergetRunnablesOrBuilder(int index)The sequence of scripts or containers to run for this Task.List<? extends RunnableOrBuilder>getRunnablesOrBuilderList()The sequence of scripts or containers to run for this Task.VolumegetVolumes(int index)Volumes to mount before running Tasks using this TaskSpec.Volume.BuildergetVolumesBuilder(int index)Volumes to mount before running Tasks using this TaskSpec.List<Volume.Builder>getVolumesBuilderList()Volumes to mount before running Tasks using this TaskSpec.intgetVolumesCount()Volumes to mount before running Tasks using this TaskSpec.List<Volume>getVolumesList()Volumes to mount before running Tasks using this TaskSpec.VolumeOrBuildergetVolumesOrBuilder(int index)Volumes to mount before running Tasks using this TaskSpec.List<? extends VolumeOrBuilder>getVolumesOrBuilderList()Volumes to mount before running Tasks using this TaskSpec.booleanhasComputeResource()ComputeResource requirements.booleanhasEnvironment()Environment variables to set before running the Task.booleanhasMaxRunDuration()Maximum duration the task should run.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()TaskSpec.BuildermergeComputeResource(ComputeResource value)ComputeResource requirements.TaskSpec.BuildermergeEnvironment(Environment value)Environment variables to set before running the Task.TaskSpec.BuildermergeFrom(TaskSpec other)TaskSpec.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)TaskSpec.BuildermergeFrom(com.google.protobuf.Message other)TaskSpec.BuildermergeMaxRunDuration(com.google.protobuf.Duration value)Maximum duration the task should run.TaskSpec.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)TaskSpec.BuilderputAllEnvironments(Map<String,String> values)Deprecated.TaskSpec.BuilderputEnvironments(String key, String value)Deprecated.TaskSpec.BuilderremoveEnvironments(String key)Deprecated.TaskSpec.BuilderremoveLifecyclePolicies(int index)Lifecycle management schema when any task in a task group is failed.TaskSpec.BuilderremoveRunnables(int index)The sequence of scripts or containers to run for this Task.TaskSpec.BuilderremoveVolumes(int index)Volumes to mount before running Tasks using this TaskSpec.TaskSpec.BuildersetComputeResource(ComputeResource value)ComputeResource requirements.TaskSpec.BuildersetComputeResource(ComputeResource.Builder builderForValue)ComputeResource requirements.TaskSpec.BuildersetEnvironment(Environment value)Environment variables to set before running the Task.TaskSpec.BuildersetEnvironment(Environment.Builder builderForValue)Environment variables to set before running the Task.TaskSpec.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TaskSpec.BuildersetLifecyclePolicies(int index, LifecyclePolicy value)Lifecycle management schema when any task in a task group is failed.TaskSpec.BuildersetLifecyclePolicies(int index, LifecyclePolicy.Builder builderForValue)Lifecycle management schema when any task in a task group is failed.TaskSpec.BuildersetMaxRetryCount(int value)Maximum number of retries on failures.TaskSpec.BuildersetMaxRunDuration(com.google.protobuf.Duration value)Maximum duration the task should run.TaskSpec.BuildersetMaxRunDuration(com.google.protobuf.Duration.Builder builderForValue)Maximum duration the task should run.TaskSpec.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)TaskSpec.BuildersetRunnables(int index, Runnable value)The sequence of scripts or containers to run for this Task.TaskSpec.BuildersetRunnables(int index, Runnable.Builder builderForValue)The sequence of scripts or containers to run for this Task.TaskSpec.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)TaskSpec.BuildersetVolumes(int index, Volume value)Volumes to mount before running Tasks using this TaskSpec.TaskSpec.BuildersetVolumes(int index, Volume.Builder builderForValue)Volumes to mount before running Tasks using this TaskSpec.-
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<TaskSpec.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TaskSpec.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<TaskSpec.Builder>
-
clear
public TaskSpec.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<TaskSpec.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<TaskSpec.Builder>
-
getDefaultInstanceForType
public TaskSpec getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public TaskSpec build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TaskSpec buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TaskSpec.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<TaskSpec.Builder>
-
setField
public TaskSpec.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<TaskSpec.Builder>
-
clearField
public TaskSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TaskSpec.Builder>
-
clearOneof
public TaskSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<TaskSpec.Builder>
-
setRepeatedField
public TaskSpec.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<TaskSpec.Builder>
-
addRepeatedField
public TaskSpec.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<TaskSpec.Builder>
-
mergeFrom
public TaskSpec.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TaskSpec.Builder>
-
mergeFrom
public TaskSpec.Builder mergeFrom(TaskSpec other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<TaskSpec.Builder>
-
mergeFrom
public TaskSpec.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<TaskSpec.Builder>- Throws:
IOException
-
getRunnablesList
public List<Runnable> getRunnablesList()
The sequence of scripts or containers to run for this Task. Each Task using this TaskSpec executes its list of runnables in order. The Task succeeds if all of its runnables either exit with a zero status or any that exit with a non-zero status have the ignore_exit_status flag. 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.
repeated .google.cloud.batch.v1.Runnable runnables = 8;- Specified by:
getRunnablesListin interfaceTaskSpecOrBuilder
-
getRunnablesCount
public int getRunnablesCount()
The sequence of scripts or containers to run for this Task. Each Task using this TaskSpec executes its list of runnables in order. The Task succeeds if all of its runnables either exit with a zero status or any that exit with a non-zero status have the ignore_exit_status flag. 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.
repeated .google.cloud.batch.v1.Runnable runnables = 8;- Specified by:
getRunnablesCountin interfaceTaskSpecOrBuilder
-
getRunnables
public Runnable getRunnables(int index)
The sequence of scripts or containers to run for this Task. Each Task using this TaskSpec executes its list of runnables in order. The Task succeeds if all of its runnables either exit with a zero status or any that exit with a non-zero status have the ignore_exit_status flag. 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.
repeated .google.cloud.batch.v1.Runnable runnables = 8;- Specified by:
getRunnablesin interfaceTaskSpecOrBuilder
-
setRunnables
public TaskSpec.Builder setRunnables(int index, Runnable value)
The sequence of scripts or containers to run for this Task. Each Task using this TaskSpec executes its list of runnables in order. The Task succeeds if all of its runnables either exit with a zero status or any that exit with a non-zero status have the ignore_exit_status flag. 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.
repeated .google.cloud.batch.v1.Runnable runnables = 8;
-
setRunnables
public TaskSpec.Builder setRunnables(int index, Runnable.Builder builderForValue)
The sequence of scripts or containers to run for this Task. Each Task using this TaskSpec executes its list of runnables in order. The Task succeeds if all of its runnables either exit with a zero status or any that exit with a non-zero status have the ignore_exit_status flag. 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.
repeated .google.cloud.batch.v1.Runnable runnables = 8;
-
addRunnables
public TaskSpec.Builder addRunnables(Runnable value)
The sequence of scripts or containers to run for this Task. Each Task using this TaskSpec executes its list of runnables in order. The Task succeeds if all of its runnables either exit with a zero status or any that exit with a non-zero status have the ignore_exit_status flag. 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.
repeated .google.cloud.batch.v1.Runnable runnables = 8;
-
addRunnables
public TaskSpec.Builder addRunnables(int index, Runnable value)
The sequence of scripts or containers to run for this Task. Each Task using this TaskSpec executes its list of runnables in order. The Task succeeds if all of its runnables either exit with a zero status or any that exit with a non-zero status have the ignore_exit_status flag. 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.
repeated .google.cloud.batch.v1.Runnable runnables = 8;
-
addRunnables
public TaskSpec.Builder addRunnables(Runnable.Builder builderForValue)
The sequence of scripts or containers to run for this Task. Each Task using this TaskSpec executes its list of runnables in order. The Task succeeds if all of its runnables either exit with a zero status or any that exit with a non-zero status have the ignore_exit_status flag. 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.
repeated .google.cloud.batch.v1.Runnable runnables = 8;
-
addRunnables
public TaskSpec.Builder addRunnables(int index, Runnable.Builder builderForValue)
The sequence of scripts or containers to run for this Task. Each Task using this TaskSpec executes its list of runnables in order. The Task succeeds if all of its runnables either exit with a zero status or any that exit with a non-zero status have the ignore_exit_status flag. 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.
repeated .google.cloud.batch.v1.Runnable runnables = 8;
-
addAllRunnables
public TaskSpec.Builder addAllRunnables(Iterable<? extends Runnable> values)
The sequence of scripts or containers to run for this Task. Each Task using this TaskSpec executes its list of runnables in order. The Task succeeds if all of its runnables either exit with a zero status or any that exit with a non-zero status have the ignore_exit_status flag. 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.
repeated .google.cloud.batch.v1.Runnable runnables = 8;
-
clearRunnables
public TaskSpec.Builder clearRunnables()
The sequence of scripts or containers to run for this Task. Each Task using this TaskSpec executes its list of runnables in order. The Task succeeds if all of its runnables either exit with a zero status or any that exit with a non-zero status have the ignore_exit_status flag. 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.
repeated .google.cloud.batch.v1.Runnable runnables = 8;
-
removeRunnables
public TaskSpec.Builder removeRunnables(int index)
The sequence of scripts or containers to run for this Task. Each Task using this TaskSpec executes its list of runnables in order. The Task succeeds if all of its runnables either exit with a zero status or any that exit with a non-zero status have the ignore_exit_status flag. 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.
repeated .google.cloud.batch.v1.Runnable runnables = 8;
-
getRunnablesBuilder
public Runnable.Builder getRunnablesBuilder(int index)
The sequence of scripts or containers to run for this Task. Each Task using this TaskSpec executes its list of runnables in order. The Task succeeds if all of its runnables either exit with a zero status or any that exit with a non-zero status have the ignore_exit_status flag. 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.
repeated .google.cloud.batch.v1.Runnable runnables = 8;
-
getRunnablesOrBuilder
public RunnableOrBuilder getRunnablesOrBuilder(int index)
The sequence of scripts or containers to run for this Task. Each Task using this TaskSpec executes its list of runnables in order. The Task succeeds if all of its runnables either exit with a zero status or any that exit with a non-zero status have the ignore_exit_status flag. 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.
repeated .google.cloud.batch.v1.Runnable runnables = 8;- Specified by:
getRunnablesOrBuilderin interfaceTaskSpecOrBuilder
-
getRunnablesOrBuilderList
public List<? extends RunnableOrBuilder> getRunnablesOrBuilderList()
The sequence of scripts or containers to run for this Task. Each Task using this TaskSpec executes its list of runnables in order. The Task succeeds if all of its runnables either exit with a zero status or any that exit with a non-zero status have the ignore_exit_status flag. 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.
repeated .google.cloud.batch.v1.Runnable runnables = 8;- Specified by:
getRunnablesOrBuilderListin interfaceTaskSpecOrBuilder
-
addRunnablesBuilder
public Runnable.Builder addRunnablesBuilder()
The sequence of scripts or containers to run for this Task. Each Task using this TaskSpec executes its list of runnables in order. The Task succeeds if all of its runnables either exit with a zero status or any that exit with a non-zero status have the ignore_exit_status flag. 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.
repeated .google.cloud.batch.v1.Runnable runnables = 8;
-
addRunnablesBuilder
public Runnable.Builder addRunnablesBuilder(int index)
The sequence of scripts or containers to run for this Task. Each Task using this TaskSpec executes its list of runnables in order. The Task succeeds if all of its runnables either exit with a zero status or any that exit with a non-zero status have the ignore_exit_status flag. 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.
repeated .google.cloud.batch.v1.Runnable runnables = 8;
-
getRunnablesBuilderList
public List<Runnable.Builder> getRunnablesBuilderList()
The sequence of scripts or containers to run for this Task. Each Task using this TaskSpec executes its list of runnables in order. The Task succeeds if all of its runnables either exit with a zero status or any that exit with a non-zero status have the ignore_exit_status flag. 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.
repeated .google.cloud.batch.v1.Runnable runnables = 8;
-
hasComputeResource
public boolean hasComputeResource()
ComputeResource requirements.
.google.cloud.batch.v1.ComputeResource compute_resource = 3;- Specified by:
hasComputeResourcein interfaceTaskSpecOrBuilder- Returns:
- Whether the computeResource field is set.
-
getComputeResource
public ComputeResource getComputeResource()
ComputeResource requirements.
.google.cloud.batch.v1.ComputeResource compute_resource = 3;- Specified by:
getComputeResourcein interfaceTaskSpecOrBuilder- Returns:
- The computeResource.
-
setComputeResource
public TaskSpec.Builder setComputeResource(ComputeResource value)
ComputeResource requirements.
.google.cloud.batch.v1.ComputeResource compute_resource = 3;
-
setComputeResource
public TaskSpec.Builder setComputeResource(ComputeResource.Builder builderForValue)
ComputeResource requirements.
.google.cloud.batch.v1.ComputeResource compute_resource = 3;
-
mergeComputeResource
public TaskSpec.Builder mergeComputeResource(ComputeResource value)
ComputeResource requirements.
.google.cloud.batch.v1.ComputeResource compute_resource = 3;
-
clearComputeResource
public TaskSpec.Builder clearComputeResource()
ComputeResource requirements.
.google.cloud.batch.v1.ComputeResource compute_resource = 3;
-
getComputeResourceBuilder
public ComputeResource.Builder getComputeResourceBuilder()
ComputeResource requirements.
.google.cloud.batch.v1.ComputeResource compute_resource = 3;
-
getComputeResourceOrBuilder
public ComputeResourceOrBuilder getComputeResourceOrBuilder()
ComputeResource requirements.
.google.cloud.batch.v1.ComputeResource compute_resource = 3;- Specified by:
getComputeResourceOrBuilderin interfaceTaskSpecOrBuilder
-
hasMaxRunDuration
public boolean hasMaxRunDuration()
Maximum duration the task should run. The task will be killed and marked as FAILED if over this limit.
.google.protobuf.Duration max_run_duration = 4;- Specified by:
hasMaxRunDurationin interfaceTaskSpecOrBuilder- Returns:
- Whether the maxRunDuration field is set.
-
getMaxRunDuration
public com.google.protobuf.Duration getMaxRunDuration()
Maximum duration the task should run. The task will be killed and marked as FAILED if over this limit.
.google.protobuf.Duration max_run_duration = 4;- Specified by:
getMaxRunDurationin interfaceTaskSpecOrBuilder- Returns:
- The maxRunDuration.
-
setMaxRunDuration
public TaskSpec.Builder setMaxRunDuration(com.google.protobuf.Duration value)
Maximum duration the task should run. The task will be killed and marked as FAILED if over this limit.
.google.protobuf.Duration max_run_duration = 4;
-
setMaxRunDuration
public TaskSpec.Builder setMaxRunDuration(com.google.protobuf.Duration.Builder builderForValue)
Maximum duration the task should run. The task will be killed and marked as FAILED if over this limit.
.google.protobuf.Duration max_run_duration = 4;
-
mergeMaxRunDuration
public TaskSpec.Builder mergeMaxRunDuration(com.google.protobuf.Duration value)
Maximum duration the task should run. The task will be killed and marked as FAILED if over this limit.
.google.protobuf.Duration max_run_duration = 4;
-
clearMaxRunDuration
public TaskSpec.Builder clearMaxRunDuration()
Maximum duration the task should run. The task will be killed and marked as FAILED if over this limit.
.google.protobuf.Duration max_run_duration = 4;
-
getMaxRunDurationBuilder
public com.google.protobuf.Duration.Builder getMaxRunDurationBuilder()
Maximum duration the task should run. The task will be killed and marked as FAILED if over this limit.
.google.protobuf.Duration max_run_duration = 4;
-
getMaxRunDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getMaxRunDurationOrBuilder()
Maximum duration the task should run. The task will be killed and marked as FAILED if over this limit.
.google.protobuf.Duration max_run_duration = 4;- Specified by:
getMaxRunDurationOrBuilderin interfaceTaskSpecOrBuilder
-
getMaxRetryCount
public int getMaxRetryCount()
Maximum number of retries on failures. The default, 0, which means never retry. The valid value range is [0, 10].
int32 max_retry_count = 5;- Specified by:
getMaxRetryCountin interfaceTaskSpecOrBuilder- Returns:
- The maxRetryCount.
-
setMaxRetryCount
public TaskSpec.Builder setMaxRetryCount(int value)
Maximum number of retries on failures. The default, 0, which means never retry. The valid value range is [0, 10].
int32 max_retry_count = 5;- Parameters:
value- The maxRetryCount to set.- Returns:
- This builder for chaining.
-
clearMaxRetryCount
public TaskSpec.Builder clearMaxRetryCount()
Maximum number of retries on failures. The default, 0, which means never retry. The valid value range is [0, 10].
int32 max_retry_count = 5;- Returns:
- This builder for chaining.
-
getLifecyclePoliciesList
public List<LifecyclePolicy> getLifecyclePoliciesList()
Lifecycle management schema when any task in a task group is failed. Currently we only support one lifecycle policy. When the lifecycle policy condition is met, the action in the policy will execute. If task execution result does not meet with the defined lifecycle policy, we consider it as the default policy. Default policy means if the exit code is 0, exit task. If task ends with non-zero exit code, retry the task with max_retry_count.
repeated .google.cloud.batch.v1.LifecyclePolicy lifecycle_policies = 9;- Specified by:
getLifecyclePoliciesListin interfaceTaskSpecOrBuilder
-
getLifecyclePoliciesCount
public int getLifecyclePoliciesCount()
Lifecycle management schema when any task in a task group is failed. Currently we only support one lifecycle policy. When the lifecycle policy condition is met, the action in the policy will execute. If task execution result does not meet with the defined lifecycle policy, we consider it as the default policy. Default policy means if the exit code is 0, exit task. If task ends with non-zero exit code, retry the task with max_retry_count.
repeated .google.cloud.batch.v1.LifecyclePolicy lifecycle_policies = 9;- Specified by:
getLifecyclePoliciesCountin interfaceTaskSpecOrBuilder
-
getLifecyclePolicies
public LifecyclePolicy getLifecyclePolicies(int index)
Lifecycle management schema when any task in a task group is failed. Currently we only support one lifecycle policy. When the lifecycle policy condition is met, the action in the policy will execute. If task execution result does not meet with the defined lifecycle policy, we consider it as the default policy. Default policy means if the exit code is 0, exit task. If task ends with non-zero exit code, retry the task with max_retry_count.
repeated .google.cloud.batch.v1.LifecyclePolicy lifecycle_policies = 9;- Specified by:
getLifecyclePoliciesin interfaceTaskSpecOrBuilder
-
setLifecyclePolicies
public TaskSpec.Builder setLifecyclePolicies(int index, LifecyclePolicy value)
Lifecycle management schema when any task in a task group is failed. Currently we only support one lifecycle policy. When the lifecycle policy condition is met, the action in the policy will execute. If task execution result does not meet with the defined lifecycle policy, we consider it as the default policy. Default policy means if the exit code is 0, exit task. If task ends with non-zero exit code, retry the task with max_retry_count.
repeated .google.cloud.batch.v1.LifecyclePolicy lifecycle_policies = 9;
-
setLifecyclePolicies
public TaskSpec.Builder setLifecyclePolicies(int index, LifecyclePolicy.Builder builderForValue)
Lifecycle management schema when any task in a task group is failed. Currently we only support one lifecycle policy. When the lifecycle policy condition is met, the action in the policy will execute. If task execution result does not meet with the defined lifecycle policy, we consider it as the default policy. Default policy means if the exit code is 0, exit task. If task ends with non-zero exit code, retry the task with max_retry_count.
repeated .google.cloud.batch.v1.LifecyclePolicy lifecycle_policies = 9;
-
addLifecyclePolicies
public TaskSpec.Builder addLifecyclePolicies(LifecyclePolicy value)
Lifecycle management schema when any task in a task group is failed. Currently we only support one lifecycle policy. When the lifecycle policy condition is met, the action in the policy will execute. If task execution result does not meet with the defined lifecycle policy, we consider it as the default policy. Default policy means if the exit code is 0, exit task. If task ends with non-zero exit code, retry the task with max_retry_count.
repeated .google.cloud.batch.v1.LifecyclePolicy lifecycle_policies = 9;
-
addLifecyclePolicies
public TaskSpec.Builder addLifecyclePolicies(int index, LifecyclePolicy value)
Lifecycle management schema when any task in a task group is failed. Currently we only support one lifecycle policy. When the lifecycle policy condition is met, the action in the policy will execute. If task execution result does not meet with the defined lifecycle policy, we consider it as the default policy. Default policy means if the exit code is 0, exit task. If task ends with non-zero exit code, retry the task with max_retry_count.
repeated .google.cloud.batch.v1.LifecyclePolicy lifecycle_policies = 9;
-
addLifecyclePolicies
public TaskSpec.Builder addLifecyclePolicies(LifecyclePolicy.Builder builderForValue)
Lifecycle management schema when any task in a task group is failed. Currently we only support one lifecycle policy. When the lifecycle policy condition is met, the action in the policy will execute. If task execution result does not meet with the defined lifecycle policy, we consider it as the default policy. Default policy means if the exit code is 0, exit task. If task ends with non-zero exit code, retry the task with max_retry_count.
repeated .google.cloud.batch.v1.LifecyclePolicy lifecycle_policies = 9;
-
addLifecyclePolicies
public TaskSpec.Builder addLifecyclePolicies(int index, LifecyclePolicy.Builder builderForValue)
Lifecycle management schema when any task in a task group is failed. Currently we only support one lifecycle policy. When the lifecycle policy condition is met, the action in the policy will execute. If task execution result does not meet with the defined lifecycle policy, we consider it as the default policy. Default policy means if the exit code is 0, exit task. If task ends with non-zero exit code, retry the task with max_retry_count.
repeated .google.cloud.batch.v1.LifecyclePolicy lifecycle_policies = 9;
-
addAllLifecyclePolicies
public TaskSpec.Builder addAllLifecyclePolicies(Iterable<? extends LifecyclePolicy> values)
Lifecycle management schema when any task in a task group is failed. Currently we only support one lifecycle policy. When the lifecycle policy condition is met, the action in the policy will execute. If task execution result does not meet with the defined lifecycle policy, we consider it as the default policy. Default policy means if the exit code is 0, exit task. If task ends with non-zero exit code, retry the task with max_retry_count.
repeated .google.cloud.batch.v1.LifecyclePolicy lifecycle_policies = 9;
-
clearLifecyclePolicies
public TaskSpec.Builder clearLifecyclePolicies()
Lifecycle management schema when any task in a task group is failed. Currently we only support one lifecycle policy. When the lifecycle policy condition is met, the action in the policy will execute. If task execution result does not meet with the defined lifecycle policy, we consider it as the default policy. Default policy means if the exit code is 0, exit task. If task ends with non-zero exit code, retry the task with max_retry_count.
repeated .google.cloud.batch.v1.LifecyclePolicy lifecycle_policies = 9;
-
removeLifecyclePolicies
public TaskSpec.Builder removeLifecyclePolicies(int index)
Lifecycle management schema when any task in a task group is failed. Currently we only support one lifecycle policy. When the lifecycle policy condition is met, the action in the policy will execute. If task execution result does not meet with the defined lifecycle policy, we consider it as the default policy. Default policy means if the exit code is 0, exit task. If task ends with non-zero exit code, retry the task with max_retry_count.
repeated .google.cloud.batch.v1.LifecyclePolicy lifecycle_policies = 9;
-
getLifecyclePoliciesBuilder
public LifecyclePolicy.Builder getLifecyclePoliciesBuilder(int index)
Lifecycle management schema when any task in a task group is failed. Currently we only support one lifecycle policy. When the lifecycle policy condition is met, the action in the policy will execute. If task execution result does not meet with the defined lifecycle policy, we consider it as the default policy. Default policy means if the exit code is 0, exit task. If task ends with non-zero exit code, retry the task with max_retry_count.
repeated .google.cloud.batch.v1.LifecyclePolicy lifecycle_policies = 9;
-
getLifecyclePoliciesOrBuilder
public LifecyclePolicyOrBuilder getLifecyclePoliciesOrBuilder(int index)
Lifecycle management schema when any task in a task group is failed. Currently we only support one lifecycle policy. When the lifecycle policy condition is met, the action in the policy will execute. If task execution result does not meet with the defined lifecycle policy, we consider it as the default policy. Default policy means if the exit code is 0, exit task. If task ends with non-zero exit code, retry the task with max_retry_count.
repeated .google.cloud.batch.v1.LifecyclePolicy lifecycle_policies = 9;- Specified by:
getLifecyclePoliciesOrBuilderin interfaceTaskSpecOrBuilder
-
getLifecyclePoliciesOrBuilderList
public List<? extends LifecyclePolicyOrBuilder> getLifecyclePoliciesOrBuilderList()
Lifecycle management schema when any task in a task group is failed. Currently we only support one lifecycle policy. When the lifecycle policy condition is met, the action in the policy will execute. If task execution result does not meet with the defined lifecycle policy, we consider it as the default policy. Default policy means if the exit code is 0, exit task. If task ends with non-zero exit code, retry the task with max_retry_count.
repeated .google.cloud.batch.v1.LifecyclePolicy lifecycle_policies = 9;- Specified by:
getLifecyclePoliciesOrBuilderListin interfaceTaskSpecOrBuilder
-
addLifecyclePoliciesBuilder
public LifecyclePolicy.Builder addLifecyclePoliciesBuilder()
Lifecycle management schema when any task in a task group is failed. Currently we only support one lifecycle policy. When the lifecycle policy condition is met, the action in the policy will execute. If task execution result does not meet with the defined lifecycle policy, we consider it as the default policy. Default policy means if the exit code is 0, exit task. If task ends with non-zero exit code, retry the task with max_retry_count.
repeated .google.cloud.batch.v1.LifecyclePolicy lifecycle_policies = 9;
-
addLifecyclePoliciesBuilder
public LifecyclePolicy.Builder addLifecyclePoliciesBuilder(int index)
Lifecycle management schema when any task in a task group is failed. Currently we only support one lifecycle policy. When the lifecycle policy condition is met, the action in the policy will execute. If task execution result does not meet with the defined lifecycle policy, we consider it as the default policy. Default policy means if the exit code is 0, exit task. If task ends with non-zero exit code, retry the task with max_retry_count.
repeated .google.cloud.batch.v1.LifecyclePolicy lifecycle_policies = 9;
-
getLifecyclePoliciesBuilderList
public List<LifecyclePolicy.Builder> getLifecyclePoliciesBuilderList()
Lifecycle management schema when any task in a task group is failed. Currently we only support one lifecycle policy. When the lifecycle policy condition is met, the action in the policy will execute. If task execution result does not meet with the defined lifecycle policy, we consider it as the default policy. Default policy means if the exit code is 0, exit task. If task ends with non-zero exit code, retry the task with max_retry_count.
repeated .google.cloud.batch.v1.LifecyclePolicy lifecycle_policies = 9;
-
getEnvironmentsCount
@Deprecated public int getEnvironmentsCount()
Deprecated.Description copied from interface:TaskSpecOrBuilderDeprecated: please use environment(non-plural) instead.
map<string, string> environments = 6 [deprecated = true];- Specified by:
getEnvironmentsCountin interfaceTaskSpecOrBuilder
-
containsEnvironments
@Deprecated public boolean containsEnvironments(String key)
Deprecated.Deprecated: please use environment(non-plural) instead.
map<string, string> environments = 6 [deprecated = true];- Specified by:
containsEnvironmentsin interfaceTaskSpecOrBuilder
-
getEnvironments
@Deprecated public Map<String,String> getEnvironments()
Deprecated.UsegetEnvironmentsMap()instead.- Specified by:
getEnvironmentsin interfaceTaskSpecOrBuilder
-
getEnvironmentsMap
@Deprecated public Map<String,String> getEnvironmentsMap()
Deprecated.Deprecated: please use environment(non-plural) instead.
map<string, string> environments = 6 [deprecated = true];- Specified by:
getEnvironmentsMapin interfaceTaskSpecOrBuilder
-
getEnvironmentsOrDefault
@Deprecated public String getEnvironmentsOrDefault(String key, String defaultValue)
Deprecated.Deprecated: please use environment(non-plural) instead.
map<string, string> environments = 6 [deprecated = true];- Specified by:
getEnvironmentsOrDefaultin interfaceTaskSpecOrBuilder
-
getEnvironmentsOrThrow
@Deprecated public String getEnvironmentsOrThrow(String key)
Deprecated.Deprecated: please use environment(non-plural) instead.
map<string, string> environments = 6 [deprecated = true];- Specified by:
getEnvironmentsOrThrowin interfaceTaskSpecOrBuilder
-
clearEnvironments
@Deprecated public TaskSpec.Builder clearEnvironments()
Deprecated.
-
removeEnvironments
@Deprecated public TaskSpec.Builder removeEnvironments(String key)
Deprecated.Deprecated: please use environment(non-plural) instead.
map<string, string> environments = 6 [deprecated = true];
-
getMutableEnvironments
@Deprecated public Map<String,String> getMutableEnvironments()
Deprecated.Use alternate mutation accessors instead.
-
putEnvironments
@Deprecated public TaskSpec.Builder putEnvironments(String key, String value)
Deprecated.Deprecated: please use environment(non-plural) instead.
map<string, string> environments = 6 [deprecated = true];
-
putAllEnvironments
@Deprecated public TaskSpec.Builder putAllEnvironments(Map<String,String> values)
Deprecated.Deprecated: please use environment(non-plural) instead.
map<string, string> environments = 6 [deprecated = true];
-
getVolumesList
public List<Volume> getVolumesList()
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1.Volume volumes = 7;- Specified by:
getVolumesListin interfaceTaskSpecOrBuilder
-
getVolumesCount
public int getVolumesCount()
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1.Volume volumes = 7;- Specified by:
getVolumesCountin interfaceTaskSpecOrBuilder
-
getVolumes
public Volume getVolumes(int index)
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1.Volume volumes = 7;- Specified by:
getVolumesin interfaceTaskSpecOrBuilder
-
setVolumes
public TaskSpec.Builder setVolumes(int index, Volume value)
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1.Volume volumes = 7;
-
setVolumes
public TaskSpec.Builder setVolumes(int index, Volume.Builder builderForValue)
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1.Volume volumes = 7;
-
addVolumes
public TaskSpec.Builder addVolumes(Volume value)
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1.Volume volumes = 7;
-
addVolumes
public TaskSpec.Builder addVolumes(int index, Volume value)
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1.Volume volumes = 7;
-
addVolumes
public TaskSpec.Builder addVolumes(Volume.Builder builderForValue)
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1.Volume volumes = 7;
-
addVolumes
public TaskSpec.Builder addVolumes(int index, Volume.Builder builderForValue)
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1.Volume volumes = 7;
-
addAllVolumes
public TaskSpec.Builder addAllVolumes(Iterable<? extends Volume> values)
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1.Volume volumes = 7;
-
clearVolumes
public TaskSpec.Builder clearVolumes()
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1.Volume volumes = 7;
-
removeVolumes
public TaskSpec.Builder removeVolumes(int index)
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1.Volume volumes = 7;
-
getVolumesBuilder
public Volume.Builder getVolumesBuilder(int index)
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1.Volume volumes = 7;
-
getVolumesOrBuilder
public VolumeOrBuilder getVolumesOrBuilder(int index)
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1.Volume volumes = 7;- Specified by:
getVolumesOrBuilderin interfaceTaskSpecOrBuilder
-
getVolumesOrBuilderList
public List<? extends VolumeOrBuilder> getVolumesOrBuilderList()
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1.Volume volumes = 7;- Specified by:
getVolumesOrBuilderListin interfaceTaskSpecOrBuilder
-
addVolumesBuilder
public Volume.Builder addVolumesBuilder()
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1.Volume volumes = 7;
-
addVolumesBuilder
public Volume.Builder addVolumesBuilder(int index)
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1.Volume volumes = 7;
-
getVolumesBuilderList
public List<Volume.Builder> getVolumesBuilderList()
Volumes to mount before running Tasks using this TaskSpec.
repeated .google.cloud.batch.v1.Volume volumes = 7;
-
hasEnvironment
public boolean hasEnvironment()
Environment variables to set before running the Task.
.google.cloud.batch.v1.Environment environment = 10;- Specified by:
hasEnvironmentin interfaceTaskSpecOrBuilder- Returns:
- Whether the environment field is set.
-
getEnvironment
public Environment getEnvironment()
Environment variables to set before running the Task.
.google.cloud.batch.v1.Environment environment = 10;- Specified by:
getEnvironmentin interfaceTaskSpecOrBuilder- Returns:
- The environment.
-
setEnvironment
public TaskSpec.Builder setEnvironment(Environment value)
Environment variables to set before running the Task.
.google.cloud.batch.v1.Environment environment = 10;
-
setEnvironment
public TaskSpec.Builder setEnvironment(Environment.Builder builderForValue)
Environment variables to set before running the Task.
.google.cloud.batch.v1.Environment environment = 10;
-
mergeEnvironment
public TaskSpec.Builder mergeEnvironment(Environment value)
Environment variables to set before running the Task.
.google.cloud.batch.v1.Environment environment = 10;
-
clearEnvironment
public TaskSpec.Builder clearEnvironment()
Environment variables to set before running the Task.
.google.cloud.batch.v1.Environment environment = 10;
-
getEnvironmentBuilder
public Environment.Builder getEnvironmentBuilder()
Environment variables to set before running the Task.
.google.cloud.batch.v1.Environment environment = 10;
-
getEnvironmentOrBuilder
public EnvironmentOrBuilder getEnvironmentOrBuilder()
Environment variables to set before running the Task.
.google.cloud.batch.v1.Environment environment = 10;- Specified by:
getEnvironmentOrBuilderin interfaceTaskSpecOrBuilder
-
setUnknownFields
public final TaskSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TaskSpec.Builder>
-
mergeUnknownFields
public final TaskSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TaskSpec.Builder>
-
-