public static final class TaskGroup.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TaskGroup.Builder> implements TaskGroupOrBuilder
A TaskGroup defines one or more Tasks that all share the same TaskSpec.Protobuf type
google.cloud.batch.v1.TaskGroup| Modifier and Type | Method and Description |
|---|---|
TaskGroup.Builder |
addAllTaskEnvironments(Iterable<? extends Environment> values)
An array of environment variable mappings, which are passed to Tasks with
matching indices.
|
TaskGroup.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TaskGroup.Builder |
addTaskEnvironments(Environment.Builder builderForValue)
An array of environment variable mappings, which are passed to Tasks with
matching indices.
|
TaskGroup.Builder |
addTaskEnvironments(Environment value)
An array of environment variable mappings, which are passed to Tasks with
matching indices.
|
TaskGroup.Builder |
addTaskEnvironments(int index,
Environment.Builder builderForValue)
An array of environment variable mappings, which are passed to Tasks with
matching indices.
|
TaskGroup.Builder |
addTaskEnvironments(int index,
Environment value)
An array of environment variable mappings, which are passed to Tasks with
matching indices.
|
Environment.Builder |
addTaskEnvironmentsBuilder()
An array of environment variable mappings, which are passed to Tasks with
matching indices.
|
Environment.Builder |
addTaskEnvironmentsBuilder(int index)
An array of environment variable mappings, which are passed to Tasks with
matching indices.
|
TaskGroup |
build() |
TaskGroup |
buildPartial() |
TaskGroup.Builder |
clear() |
TaskGroup.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TaskGroup.Builder |
clearName()
Output only.
|
TaskGroup.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
TaskGroup.Builder |
clearParallelism()
Max number of tasks that can run in parallel.
|
TaskGroup.Builder |
clearPermissiveSsh()
When true, Batch will configure SSH to allow passwordless login between
VMs running the Batch tasks in the same TaskGroup.
|
TaskGroup.Builder |
clearRequireHostsFile()
When true, Batch will populate a file with a list of all VMs assigned to
the TaskGroup and set the BATCH_HOSTS_FILE environment variable to the path
of that file.
|
TaskGroup.Builder |
clearRunAsNonRoot()
Optional.
|
TaskGroup.Builder |
clearSchedulingPolicy()
Scheduling policy for Tasks in the TaskGroup.
|
TaskGroup.Builder |
clearTaskCount()
Number of Tasks in the TaskGroup.
|
TaskGroup.Builder |
clearTaskCountPerNode()
Max number of tasks that can be run on a VM at the same time.
|
TaskGroup.Builder |
clearTaskEnvironments()
An array of environment variable mappings, which are passed to Tasks with
matching indices.
|
TaskGroup.Builder |
clearTaskSpec()
Required.
|
TaskGroup.Builder |
clone() |
TaskGroup |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getName()
Output only.
|
com.google.protobuf.ByteString |
getNameBytes()
Output only.
|
long |
getParallelism()
Max number of tasks that can run in parallel.
|
boolean |
getPermissiveSsh()
When true, Batch will configure SSH to allow passwordless login between
VMs running the Batch tasks in the same TaskGroup.
|
boolean |
getRequireHostsFile()
When true, Batch will populate a file with a list of all VMs assigned to
the TaskGroup and set the BATCH_HOSTS_FILE environment variable to the path
of that file.
|
boolean |
getRunAsNonRoot()
Optional.
|
TaskGroup.SchedulingPolicy |
getSchedulingPolicy()
Scheduling policy for Tasks in the TaskGroup.
|
int |
getSchedulingPolicyValue()
Scheduling policy for Tasks in the TaskGroup.
|
long |
getTaskCount()
Number of Tasks in the TaskGroup.
|
long |
getTaskCountPerNode()
Max number of tasks that can be run on a VM at the same time.
|
Environment |
getTaskEnvironments(int index)
An array of environment variable mappings, which are passed to Tasks with
matching indices.
|
Environment.Builder |
getTaskEnvironmentsBuilder(int index)
An array of environment variable mappings, which are passed to Tasks with
matching indices.
|
List<Environment.Builder> |
getTaskEnvironmentsBuilderList()
An array of environment variable mappings, which are passed to Tasks with
matching indices.
|
int |
getTaskEnvironmentsCount()
An array of environment variable mappings, which are passed to Tasks with
matching indices.
|
List<Environment> |
getTaskEnvironmentsList()
An array of environment variable mappings, which are passed to Tasks with
matching indices.
|
EnvironmentOrBuilder |
getTaskEnvironmentsOrBuilder(int index)
An array of environment variable mappings, which are passed to Tasks with
matching indices.
|
List<? extends EnvironmentOrBuilder> |
getTaskEnvironmentsOrBuilderList()
An array of environment variable mappings, which are passed to Tasks with
matching indices.
|
TaskSpec |
getTaskSpec()
Required.
|
TaskSpec.Builder |
getTaskSpecBuilder()
Required.
|
TaskSpecOrBuilder |
getTaskSpecOrBuilder()
Required.
|
boolean |
hasTaskSpec()
Required.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TaskGroup.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TaskGroup.Builder |
mergeFrom(com.google.protobuf.Message other) |
TaskGroup.Builder |
mergeFrom(TaskGroup other) |
TaskGroup.Builder |
mergeTaskSpec(TaskSpec value)
Required.
|
TaskGroup.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TaskGroup.Builder |
removeTaskEnvironments(int index)
An array of environment variable mappings, which are passed to Tasks with
matching indices.
|
TaskGroup.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TaskGroup.Builder |
setName(String value)
Output only.
|
TaskGroup.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Output only.
|
TaskGroup.Builder |
setParallelism(long value)
Max number of tasks that can run in parallel.
|
TaskGroup.Builder |
setPermissiveSsh(boolean value)
When true, Batch will configure SSH to allow passwordless login between
VMs running the Batch tasks in the same TaskGroup.
|
TaskGroup.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
TaskGroup.Builder |
setRequireHostsFile(boolean value)
When true, Batch will populate a file with a list of all VMs assigned to
the TaskGroup and set the BATCH_HOSTS_FILE environment variable to the path
of that file.
|
TaskGroup.Builder |
setRunAsNonRoot(boolean value)
Optional.
|
TaskGroup.Builder |
setSchedulingPolicy(TaskGroup.SchedulingPolicy value)
Scheduling policy for Tasks in the TaskGroup.
|
TaskGroup.Builder |
setSchedulingPolicyValue(int value)
Scheduling policy for Tasks in the TaskGroup.
|
TaskGroup.Builder |
setTaskCount(long value)
Number of Tasks in the TaskGroup.
|
TaskGroup.Builder |
setTaskCountPerNode(long value)
Max number of tasks that can be run on a VM at the same time.
|
TaskGroup.Builder |
setTaskEnvironments(int index,
Environment.Builder builderForValue)
An array of environment variable mappings, which are passed to Tasks with
matching indices.
|
TaskGroup.Builder |
setTaskEnvironments(int index,
Environment value)
An array of environment variable mappings, which are passed to Tasks with
matching indices.
|
TaskGroup.Builder |
setTaskSpec(TaskSpec.Builder builderForValue)
Required.
|
TaskGroup.Builder |
setTaskSpec(TaskSpec value)
Required.
|
TaskGroup.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TaskGroup.Builder>public TaskGroup.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<TaskGroup.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TaskGroup.Builder>public TaskGroup getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TaskGroup build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TaskGroup buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TaskGroup.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<TaskGroup.Builder>public TaskGroup.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<TaskGroup.Builder>public TaskGroup.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TaskGroup.Builder>public TaskGroup.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TaskGroup.Builder>public TaskGroup.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TaskGroup.Builder>public TaskGroup.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TaskGroup.Builder>public TaskGroup.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TaskGroup.Builder>public TaskGroup.Builder mergeFrom(TaskGroup other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TaskGroup.Builder>public TaskGroup.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TaskGroup.Builder>IOExceptionpublic String getName()
Output only. TaskGroup name. The system generates this field based on parent Job name. For example: "projects/123456/locations/us-west1/jobs/job01/taskGroups/group01".
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getName in interface TaskGroupOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Output only. TaskGroup name. The system generates this field based on parent Job name. For example: "projects/123456/locations/us-west1/jobs/job01/taskGroups/group01".
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getNameBytes in interface TaskGroupOrBuilderpublic TaskGroup.Builder setName(String value)
Output only. TaskGroup name. The system generates this field based on parent Job name. For example: "projects/123456/locations/us-west1/jobs/job01/taskGroups/group01".
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The name to set.public TaskGroup.Builder clearName()
Output only. TaskGroup name. The system generates this field based on parent Job name. For example: "projects/123456/locations/us-west1/jobs/job01/taskGroups/group01".
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];public TaskGroup.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. TaskGroup name. The system generates this field based on parent Job name. For example: "projects/123456/locations/us-west1/jobs/job01/taskGroups/group01".
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for name to set.public boolean hasTaskSpec()
Required. Tasks in the group share the same task spec.
.google.cloud.batch.v1.TaskSpec task_spec = 3 [(.google.api.field_behavior) = REQUIRED];
hasTaskSpec in interface TaskGroupOrBuilderpublic TaskSpec getTaskSpec()
Required. Tasks in the group share the same task spec.
.google.cloud.batch.v1.TaskSpec task_spec = 3 [(.google.api.field_behavior) = REQUIRED];
getTaskSpec in interface TaskGroupOrBuilderpublic TaskGroup.Builder setTaskSpec(TaskSpec value)
Required. Tasks in the group share the same task spec.
.google.cloud.batch.v1.TaskSpec task_spec = 3 [(.google.api.field_behavior) = REQUIRED];
public TaskGroup.Builder setTaskSpec(TaskSpec.Builder builderForValue)
Required. Tasks in the group share the same task spec.
.google.cloud.batch.v1.TaskSpec task_spec = 3 [(.google.api.field_behavior) = REQUIRED];
public TaskGroup.Builder mergeTaskSpec(TaskSpec value)
Required. Tasks in the group share the same task spec.
.google.cloud.batch.v1.TaskSpec task_spec = 3 [(.google.api.field_behavior) = REQUIRED];
public TaskGroup.Builder clearTaskSpec()
Required. Tasks in the group share the same task spec.
.google.cloud.batch.v1.TaskSpec task_spec = 3 [(.google.api.field_behavior) = REQUIRED];
public TaskSpec.Builder getTaskSpecBuilder()
Required. Tasks in the group share the same task spec.
.google.cloud.batch.v1.TaskSpec task_spec = 3 [(.google.api.field_behavior) = REQUIRED];
public TaskSpecOrBuilder getTaskSpecOrBuilder()
Required. Tasks in the group share the same task spec.
.google.cloud.batch.v1.TaskSpec task_spec = 3 [(.google.api.field_behavior) = REQUIRED];
getTaskSpecOrBuilder in interface TaskGroupOrBuilderpublic long getTaskCount()
Number of Tasks in the TaskGroup. Default is 1.
int64 task_count = 4;getTaskCount in interface TaskGroupOrBuilderpublic TaskGroup.Builder setTaskCount(long value)
Number of Tasks in the TaskGroup. Default is 1.
int64 task_count = 4;value - The taskCount to set.public TaskGroup.Builder clearTaskCount()
Number of Tasks in the TaskGroup. Default is 1.
int64 task_count = 4;public long getParallelism()
Max number of tasks that can run in parallel. Default to min(task_count, parallel tasks per job limit). See: [Job Limits](https://cloud.google.com/batch/quotas#job_limits). Field parallelism must be 1 if the scheduling_policy is IN_ORDER.
int64 parallelism = 5;getParallelism in interface TaskGroupOrBuilderpublic TaskGroup.Builder setParallelism(long value)
Max number of tasks that can run in parallel. Default to min(task_count, parallel tasks per job limit). See: [Job Limits](https://cloud.google.com/batch/quotas#job_limits). Field parallelism must be 1 if the scheduling_policy is IN_ORDER.
int64 parallelism = 5;value - The parallelism to set.public TaskGroup.Builder clearParallelism()
Max number of tasks that can run in parallel. Default to min(task_count, parallel tasks per job limit). See: [Job Limits](https://cloud.google.com/batch/quotas#job_limits). Field parallelism must be 1 if the scheduling_policy is IN_ORDER.
int64 parallelism = 5;public int getSchedulingPolicyValue()
Scheduling policy for Tasks in the TaskGroup. The default value is AS_SOON_AS_POSSIBLE.
.google.cloud.batch.v1.TaskGroup.SchedulingPolicy scheduling_policy = 6;getSchedulingPolicyValue in interface TaskGroupOrBuilderpublic TaskGroup.Builder setSchedulingPolicyValue(int value)
Scheduling policy for Tasks in the TaskGroup. The default value is AS_SOON_AS_POSSIBLE.
.google.cloud.batch.v1.TaskGroup.SchedulingPolicy scheduling_policy = 6;value - The enum numeric value on the wire for schedulingPolicy to set.public TaskGroup.SchedulingPolicy getSchedulingPolicy()
Scheduling policy for Tasks in the TaskGroup. The default value is AS_SOON_AS_POSSIBLE.
.google.cloud.batch.v1.TaskGroup.SchedulingPolicy scheduling_policy = 6;getSchedulingPolicy in interface TaskGroupOrBuilderpublic TaskGroup.Builder setSchedulingPolicy(TaskGroup.SchedulingPolicy value)
Scheduling policy for Tasks in the TaskGroup. The default value is AS_SOON_AS_POSSIBLE.
.google.cloud.batch.v1.TaskGroup.SchedulingPolicy scheduling_policy = 6;value - The schedulingPolicy to set.public TaskGroup.Builder clearSchedulingPolicy()
Scheduling policy for Tasks in the TaskGroup. The default value is AS_SOON_AS_POSSIBLE.
.google.cloud.batch.v1.TaskGroup.SchedulingPolicy scheduling_policy = 6;public List<Environment> getTaskEnvironmentsList()
An array of environment variable mappings, which are passed to Tasks with matching indices. If task_environments is used then task_count should not be specified in the request (and will be ignored). Task count will be the length of task_environments. Tasks get a BATCH_TASK_INDEX and BATCH_TASK_COUNT environment variable, in addition to any environment variables set in task_environments, specifying the number of Tasks in the Task's parent TaskGroup, and the specific Task's index in the TaskGroup (0 through BATCH_TASK_COUNT - 1).
repeated .google.cloud.batch.v1.Environment task_environments = 9;getTaskEnvironmentsList in interface TaskGroupOrBuilderpublic int getTaskEnvironmentsCount()
An array of environment variable mappings, which are passed to Tasks with matching indices. If task_environments is used then task_count should not be specified in the request (and will be ignored). Task count will be the length of task_environments. Tasks get a BATCH_TASK_INDEX and BATCH_TASK_COUNT environment variable, in addition to any environment variables set in task_environments, specifying the number of Tasks in the Task's parent TaskGroup, and the specific Task's index in the TaskGroup (0 through BATCH_TASK_COUNT - 1).
repeated .google.cloud.batch.v1.Environment task_environments = 9;getTaskEnvironmentsCount in interface TaskGroupOrBuilderpublic Environment getTaskEnvironments(int index)
An array of environment variable mappings, which are passed to Tasks with matching indices. If task_environments is used then task_count should not be specified in the request (and will be ignored). Task count will be the length of task_environments. Tasks get a BATCH_TASK_INDEX and BATCH_TASK_COUNT environment variable, in addition to any environment variables set in task_environments, specifying the number of Tasks in the Task's parent TaskGroup, and the specific Task's index in the TaskGroup (0 through BATCH_TASK_COUNT - 1).
repeated .google.cloud.batch.v1.Environment task_environments = 9;getTaskEnvironments in interface TaskGroupOrBuilderpublic TaskGroup.Builder setTaskEnvironments(int index, Environment value)
An array of environment variable mappings, which are passed to Tasks with matching indices. If task_environments is used then task_count should not be specified in the request (and will be ignored). Task count will be the length of task_environments. Tasks get a BATCH_TASK_INDEX and BATCH_TASK_COUNT environment variable, in addition to any environment variables set in task_environments, specifying the number of Tasks in the Task's parent TaskGroup, and the specific Task's index in the TaskGroup (0 through BATCH_TASK_COUNT - 1).
repeated .google.cloud.batch.v1.Environment task_environments = 9;public TaskGroup.Builder setTaskEnvironments(int index, Environment.Builder builderForValue)
An array of environment variable mappings, which are passed to Tasks with matching indices. If task_environments is used then task_count should not be specified in the request (and will be ignored). Task count will be the length of task_environments. Tasks get a BATCH_TASK_INDEX and BATCH_TASK_COUNT environment variable, in addition to any environment variables set in task_environments, specifying the number of Tasks in the Task's parent TaskGroup, and the specific Task's index in the TaskGroup (0 through BATCH_TASK_COUNT - 1).
repeated .google.cloud.batch.v1.Environment task_environments = 9;public TaskGroup.Builder addTaskEnvironments(Environment value)
An array of environment variable mappings, which are passed to Tasks with matching indices. If task_environments is used then task_count should not be specified in the request (and will be ignored). Task count will be the length of task_environments. Tasks get a BATCH_TASK_INDEX and BATCH_TASK_COUNT environment variable, in addition to any environment variables set in task_environments, specifying the number of Tasks in the Task's parent TaskGroup, and the specific Task's index in the TaskGroup (0 through BATCH_TASK_COUNT - 1).
repeated .google.cloud.batch.v1.Environment task_environments = 9;public TaskGroup.Builder addTaskEnvironments(int index, Environment value)
An array of environment variable mappings, which are passed to Tasks with matching indices. If task_environments is used then task_count should not be specified in the request (and will be ignored). Task count will be the length of task_environments. Tasks get a BATCH_TASK_INDEX and BATCH_TASK_COUNT environment variable, in addition to any environment variables set in task_environments, specifying the number of Tasks in the Task's parent TaskGroup, and the specific Task's index in the TaskGroup (0 through BATCH_TASK_COUNT - 1).
repeated .google.cloud.batch.v1.Environment task_environments = 9;public TaskGroup.Builder addTaskEnvironments(Environment.Builder builderForValue)
An array of environment variable mappings, which are passed to Tasks with matching indices. If task_environments is used then task_count should not be specified in the request (and will be ignored). Task count will be the length of task_environments. Tasks get a BATCH_TASK_INDEX and BATCH_TASK_COUNT environment variable, in addition to any environment variables set in task_environments, specifying the number of Tasks in the Task's parent TaskGroup, and the specific Task's index in the TaskGroup (0 through BATCH_TASK_COUNT - 1).
repeated .google.cloud.batch.v1.Environment task_environments = 9;public TaskGroup.Builder addTaskEnvironments(int index, Environment.Builder builderForValue)
An array of environment variable mappings, which are passed to Tasks with matching indices. If task_environments is used then task_count should not be specified in the request (and will be ignored). Task count will be the length of task_environments. Tasks get a BATCH_TASK_INDEX and BATCH_TASK_COUNT environment variable, in addition to any environment variables set in task_environments, specifying the number of Tasks in the Task's parent TaskGroup, and the specific Task's index in the TaskGroup (0 through BATCH_TASK_COUNT - 1).
repeated .google.cloud.batch.v1.Environment task_environments = 9;public TaskGroup.Builder addAllTaskEnvironments(Iterable<? extends Environment> values)
An array of environment variable mappings, which are passed to Tasks with matching indices. If task_environments is used then task_count should not be specified in the request (and will be ignored). Task count will be the length of task_environments. Tasks get a BATCH_TASK_INDEX and BATCH_TASK_COUNT environment variable, in addition to any environment variables set in task_environments, specifying the number of Tasks in the Task's parent TaskGroup, and the specific Task's index in the TaskGroup (0 through BATCH_TASK_COUNT - 1).
repeated .google.cloud.batch.v1.Environment task_environments = 9;public TaskGroup.Builder clearTaskEnvironments()
An array of environment variable mappings, which are passed to Tasks with matching indices. If task_environments is used then task_count should not be specified in the request (and will be ignored). Task count will be the length of task_environments. Tasks get a BATCH_TASK_INDEX and BATCH_TASK_COUNT environment variable, in addition to any environment variables set in task_environments, specifying the number of Tasks in the Task's parent TaskGroup, and the specific Task's index in the TaskGroup (0 through BATCH_TASK_COUNT - 1).
repeated .google.cloud.batch.v1.Environment task_environments = 9;public TaskGroup.Builder removeTaskEnvironments(int index)
An array of environment variable mappings, which are passed to Tasks with matching indices. If task_environments is used then task_count should not be specified in the request (and will be ignored). Task count will be the length of task_environments. Tasks get a BATCH_TASK_INDEX and BATCH_TASK_COUNT environment variable, in addition to any environment variables set in task_environments, specifying the number of Tasks in the Task's parent TaskGroup, and the specific Task's index in the TaskGroup (0 through BATCH_TASK_COUNT - 1).
repeated .google.cloud.batch.v1.Environment task_environments = 9;public Environment.Builder getTaskEnvironmentsBuilder(int index)
An array of environment variable mappings, which are passed to Tasks with matching indices. If task_environments is used then task_count should not be specified in the request (and will be ignored). Task count will be the length of task_environments. Tasks get a BATCH_TASK_INDEX and BATCH_TASK_COUNT environment variable, in addition to any environment variables set in task_environments, specifying the number of Tasks in the Task's parent TaskGroup, and the specific Task's index in the TaskGroup (0 through BATCH_TASK_COUNT - 1).
repeated .google.cloud.batch.v1.Environment task_environments = 9;public EnvironmentOrBuilder getTaskEnvironmentsOrBuilder(int index)
An array of environment variable mappings, which are passed to Tasks with matching indices. If task_environments is used then task_count should not be specified in the request (and will be ignored). Task count will be the length of task_environments. Tasks get a BATCH_TASK_INDEX and BATCH_TASK_COUNT environment variable, in addition to any environment variables set in task_environments, specifying the number of Tasks in the Task's parent TaskGroup, and the specific Task's index in the TaskGroup (0 through BATCH_TASK_COUNT - 1).
repeated .google.cloud.batch.v1.Environment task_environments = 9;getTaskEnvironmentsOrBuilder in interface TaskGroupOrBuilderpublic List<? extends EnvironmentOrBuilder> getTaskEnvironmentsOrBuilderList()
An array of environment variable mappings, which are passed to Tasks with matching indices. If task_environments is used then task_count should not be specified in the request (and will be ignored). Task count will be the length of task_environments. Tasks get a BATCH_TASK_INDEX and BATCH_TASK_COUNT environment variable, in addition to any environment variables set in task_environments, specifying the number of Tasks in the Task's parent TaskGroup, and the specific Task's index in the TaskGroup (0 through BATCH_TASK_COUNT - 1).
repeated .google.cloud.batch.v1.Environment task_environments = 9;getTaskEnvironmentsOrBuilderList in interface TaskGroupOrBuilderpublic Environment.Builder addTaskEnvironmentsBuilder()
An array of environment variable mappings, which are passed to Tasks with matching indices. If task_environments is used then task_count should not be specified in the request (and will be ignored). Task count will be the length of task_environments. Tasks get a BATCH_TASK_INDEX and BATCH_TASK_COUNT environment variable, in addition to any environment variables set in task_environments, specifying the number of Tasks in the Task's parent TaskGroup, and the specific Task's index in the TaskGroup (0 through BATCH_TASK_COUNT - 1).
repeated .google.cloud.batch.v1.Environment task_environments = 9;public Environment.Builder addTaskEnvironmentsBuilder(int index)
An array of environment variable mappings, which are passed to Tasks with matching indices. If task_environments is used then task_count should not be specified in the request (and will be ignored). Task count will be the length of task_environments. Tasks get a BATCH_TASK_INDEX and BATCH_TASK_COUNT environment variable, in addition to any environment variables set in task_environments, specifying the number of Tasks in the Task's parent TaskGroup, and the specific Task's index in the TaskGroup (0 through BATCH_TASK_COUNT - 1).
repeated .google.cloud.batch.v1.Environment task_environments = 9;public List<Environment.Builder> getTaskEnvironmentsBuilderList()
An array of environment variable mappings, which are passed to Tasks with matching indices. If task_environments is used then task_count should not be specified in the request (and will be ignored). Task count will be the length of task_environments. Tasks get a BATCH_TASK_INDEX and BATCH_TASK_COUNT environment variable, in addition to any environment variables set in task_environments, specifying the number of Tasks in the Task's parent TaskGroup, and the specific Task's index in the TaskGroup (0 through BATCH_TASK_COUNT - 1).
repeated .google.cloud.batch.v1.Environment task_environments = 9;public long getTaskCountPerNode()
Max number of tasks that can be run on a VM at the same time. If not specified, the system will decide a value based on available compute resources on a VM and task requirements.
int64 task_count_per_node = 10;getTaskCountPerNode in interface TaskGroupOrBuilderpublic TaskGroup.Builder setTaskCountPerNode(long value)
Max number of tasks that can be run on a VM at the same time. If not specified, the system will decide a value based on available compute resources on a VM and task requirements.
int64 task_count_per_node = 10;value - The taskCountPerNode to set.public TaskGroup.Builder clearTaskCountPerNode()
Max number of tasks that can be run on a VM at the same time. If not specified, the system will decide a value based on available compute resources on a VM and task requirements.
int64 task_count_per_node = 10;public boolean getRequireHostsFile()
When true, Batch will populate a file with a list of all VMs assigned to the TaskGroup and set the BATCH_HOSTS_FILE environment variable to the path of that file. Defaults to false. The host file supports up to 1000 VMs.
bool require_hosts_file = 11;getRequireHostsFile in interface TaskGroupOrBuilderpublic TaskGroup.Builder setRequireHostsFile(boolean value)
When true, Batch will populate a file with a list of all VMs assigned to the TaskGroup and set the BATCH_HOSTS_FILE environment variable to the path of that file. Defaults to false. The host file supports up to 1000 VMs.
bool require_hosts_file = 11;value - The requireHostsFile to set.public TaskGroup.Builder clearRequireHostsFile()
When true, Batch will populate a file with a list of all VMs assigned to the TaskGroup and set the BATCH_HOSTS_FILE environment variable to the path of that file. Defaults to false. The host file supports up to 1000 VMs.
bool require_hosts_file = 11;public boolean getPermissiveSsh()
When true, Batch will configure SSH to allow passwordless login between VMs running the Batch tasks in the same TaskGroup.
bool permissive_ssh = 12;getPermissiveSsh in interface TaskGroupOrBuilderpublic TaskGroup.Builder setPermissiveSsh(boolean value)
When true, Batch will configure SSH to allow passwordless login between VMs running the Batch tasks in the same TaskGroup.
bool permissive_ssh = 12;value - The permissiveSsh to set.public TaskGroup.Builder clearPermissiveSsh()
When true, Batch will configure SSH to allow passwordless login between VMs running the Batch tasks in the same TaskGroup.
bool permissive_ssh = 12;public boolean getRunAsNonRoot()
Optional. If not set or set to false, Batch uses the root user to execute runnables. If set to true, Batch runs the runnables using a non-root user. Currently, the non-root user Batch used is generated by OS Login. For more information, see [About OS Login](https://cloud.google.com/compute/docs/oslogin).
bool run_as_non_root = 14 [(.google.api.field_behavior) = OPTIONAL];getRunAsNonRoot in interface TaskGroupOrBuilderpublic TaskGroup.Builder setRunAsNonRoot(boolean value)
Optional. If not set or set to false, Batch uses the root user to execute runnables. If set to true, Batch runs the runnables using a non-root user. Currently, the non-root user Batch used is generated by OS Login. For more information, see [About OS Login](https://cloud.google.com/compute/docs/oslogin).
bool run_as_non_root = 14 [(.google.api.field_behavior) = OPTIONAL];value - The runAsNonRoot to set.public TaskGroup.Builder clearRunAsNonRoot()
Optional. If not set or set to false, Batch uses the root user to execute runnables. If set to true, Batch runs the runnables using a non-root user. Currently, the non-root user Batch used is generated by OS Login. For more information, see [About OS Login](https://cloud.google.com/compute/docs/oslogin).
bool run_as_non_root = 14 [(.google.api.field_behavior) = OPTIONAL];public final TaskGroup.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TaskGroup.Builder>public final TaskGroup.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TaskGroup.Builder>Copyright © 2025 Google LLC. All rights reserved.