Package com.google.cloud.batch.v1alpha
Class TaskGroup.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<TaskGroup.Builder>
-
- com.google.cloud.batch.v1alpha.TaskGroup.Builder
-
- All Implemented Interfaces:
TaskGroupOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- TaskGroup
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 typegoogle.cloud.batch.v1alpha.TaskGroup
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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(int index, 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(Environment value)
An array of environment variable mappings, which are passed to Tasks with matching indices.TaskGroup.Builder
addTaskEnvironments(Environment.Builder builderForValue)
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
clearAllocationPolicy()
Compute resource allocation for the TaskGroup.TaskGroup.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
TaskGroup.Builder
clearLabels()
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
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()
boolean
containsLabels(String key)
Labels for the TaskGroup.AllocationPolicy
getAllocationPolicy()
Compute resource allocation for the TaskGroup.AllocationPolicy.Builder
getAllocationPolicyBuilder()
Compute resource allocation for the TaskGroup.AllocationPolicyOrBuilder
getAllocationPolicyOrBuilder()
Compute resource allocation for the TaskGroup.TaskGroup
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
Labels for the TaskGroup.Map<String,String>
getLabelsMap()
Labels for the TaskGroup.String
getLabelsOrDefault(String key, String defaultValue)
Labels for the TaskGroup.String
getLabelsOrThrow(String key)
Labels for the TaskGroup.Map<String,String>
getMutableLabels()
Deprecated.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.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
hasAllocationPolicy()
Compute resource allocation for the TaskGroup.boolean
hasTaskSpec()
Required.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
TaskGroup.Builder
mergeAllocationPolicy(AllocationPolicy value)
Compute resource allocation for the TaskGroup.TaskGroup.Builder
mergeFrom(TaskGroup other)
TaskGroup.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
TaskGroup.Builder
mergeFrom(com.google.protobuf.Message other)
TaskGroup.Builder
mergeTaskSpec(TaskSpec value)
Required.TaskGroup.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
TaskGroup.Builder
putAllLabels(Map<String,String> values)
Labels for the TaskGroup.TaskGroup.Builder
putLabels(String key, String value)
Labels for the TaskGroup.TaskGroup.Builder
removeLabels(String key)
Labels for the TaskGroup.TaskGroup.Builder
removeTaskEnvironments(int index)
An array of environment variable mappings, which are passed to Tasks with matching indices.TaskGroup.Builder
setAllocationPolicy(AllocationPolicy value)
Compute resource allocation for the TaskGroup.TaskGroup.Builder
setAllocationPolicy(AllocationPolicy.Builder builderForValue)
Compute resource allocation for the TaskGroup.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
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 value)
An array of environment variable mappings, which are passed to Tasks with matching indices.TaskGroup.Builder
setTaskEnvironments(int index, Environment.Builder builderForValue)
An array of environment variable mappings, which are passed to Tasks with matching indices.TaskGroup.Builder
setTaskSpec(TaskSpec value)
Required.TaskGroup.Builder
setTaskSpec(TaskSpec.Builder builderForValue)
Required.TaskGroup.Builder
setUnknownFields(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:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TaskGroup.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TaskGroup.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<TaskGroup.Builder>
-
clear
public TaskGroup.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<TaskGroup.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<TaskGroup.Builder>
-
getDefaultInstanceForType
public TaskGroup getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public TaskGroup build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TaskGroup buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TaskGroup.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<TaskGroup.Builder>
-
setField
public TaskGroup.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TaskGroup.Builder>
-
clearField
public TaskGroup.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TaskGroup.Builder>
-
clearOneof
public TaskGroup.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<TaskGroup.Builder>
-
setRepeatedField
public TaskGroup.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TaskGroup.Builder>
-
addRepeatedField
public TaskGroup.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TaskGroup.Builder>
-
mergeFrom
public TaskGroup.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<TaskGroup.Builder>
-
mergeFrom
public TaskGroup.Builder mergeFrom(TaskGroup other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<TaskGroup.Builder>
-
mergeFrom
public TaskGroup.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<TaskGroup.Builder>
- Throws:
IOException
-
getName
public 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];
- Specified by:
getName
in interfaceTaskGroupOrBuilder
- Returns:
- The name.
-
getNameBytes
public 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];
- Specified by:
getNameBytes
in interfaceTaskGroupOrBuilder
- Returns:
- The bytes for name.
-
setName
public 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];
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
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];
- Returns:
- This builder for chaining.
-
setNameBytes
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];
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasTaskSpec
public boolean hasTaskSpec()
Required. Tasks in the group share the same task spec.
.google.cloud.batch.v1alpha.TaskSpec task_spec = 3 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
hasTaskSpec
in interfaceTaskGroupOrBuilder
- Returns:
- Whether the taskSpec field is set.
-
getTaskSpec
public TaskSpec getTaskSpec()
Required. Tasks in the group share the same task spec.
.google.cloud.batch.v1alpha.TaskSpec task_spec = 3 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getTaskSpec
in interfaceTaskGroupOrBuilder
- Returns:
- The taskSpec.
-
setTaskSpec
public TaskGroup.Builder setTaskSpec(TaskSpec value)
Required. Tasks in the group share the same task spec.
.google.cloud.batch.v1alpha.TaskSpec task_spec = 3 [(.google.api.field_behavior) = REQUIRED];
-
setTaskSpec
public TaskGroup.Builder setTaskSpec(TaskSpec.Builder builderForValue)
Required. Tasks in the group share the same task spec.
.google.cloud.batch.v1alpha.TaskSpec task_spec = 3 [(.google.api.field_behavior) = REQUIRED];
-
mergeTaskSpec
public TaskGroup.Builder mergeTaskSpec(TaskSpec value)
Required. Tasks in the group share the same task spec.
.google.cloud.batch.v1alpha.TaskSpec task_spec = 3 [(.google.api.field_behavior) = REQUIRED];
-
clearTaskSpec
public TaskGroup.Builder clearTaskSpec()
Required. Tasks in the group share the same task spec.
.google.cloud.batch.v1alpha.TaskSpec task_spec = 3 [(.google.api.field_behavior) = REQUIRED];
-
getTaskSpecBuilder
public TaskSpec.Builder getTaskSpecBuilder()
Required. Tasks in the group share the same task spec.
.google.cloud.batch.v1alpha.TaskSpec task_spec = 3 [(.google.api.field_behavior) = REQUIRED];
-
getTaskSpecOrBuilder
public TaskSpecOrBuilder getTaskSpecOrBuilder()
Required. Tasks in the group share the same task spec.
.google.cloud.batch.v1alpha.TaskSpec task_spec = 3 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getTaskSpecOrBuilder
in interfaceTaskGroupOrBuilder
-
getTaskCount
public long getTaskCount()
Number of Tasks in the TaskGroup. Default is 1.
int64 task_count = 4;
- Specified by:
getTaskCount
in interfaceTaskGroupOrBuilder
- Returns:
- The taskCount.
-
setTaskCount
public TaskGroup.Builder setTaskCount(long value)
Number of Tasks in the TaskGroup. Default is 1.
int64 task_count = 4;
- Parameters:
value
- The taskCount to set.- Returns:
- This builder for chaining.
-
clearTaskCount
public TaskGroup.Builder clearTaskCount()
Number of Tasks in the TaskGroup. Default is 1.
int64 task_count = 4;
- Returns:
- This builder for chaining.
-
getParallelism
public long getParallelism()
Max number of tasks that can run in parallel. Default to min(task_count, 1000). Field parallelism must be 1 if the scheduling_policy is IN_ORDER.
int64 parallelism = 5;
- Specified by:
getParallelism
in interfaceTaskGroupOrBuilder
- Returns:
- The parallelism.
-
setParallelism
public TaskGroup.Builder setParallelism(long value)
Max number of tasks that can run in parallel. Default to min(task_count, 1000). Field parallelism must be 1 if the scheduling_policy is IN_ORDER.
int64 parallelism = 5;
- Parameters:
value
- The parallelism to set.- Returns:
- This builder for chaining.
-
clearParallelism
public TaskGroup.Builder clearParallelism()
Max number of tasks that can run in parallel. Default to min(task_count, 1000). Field parallelism must be 1 if the scheduling_policy is IN_ORDER.
int64 parallelism = 5;
- Returns:
- This builder for chaining.
-
getSchedulingPolicyValue
public int getSchedulingPolicyValue()
Scheduling policy for Tasks in the TaskGroup. The default value is AS_SOON_AS_POSSIBLE.
.google.cloud.batch.v1alpha.TaskGroup.SchedulingPolicy scheduling_policy = 6;
- Specified by:
getSchedulingPolicyValue
in interfaceTaskGroupOrBuilder
- Returns:
- The enum numeric value on the wire for schedulingPolicy.
-
setSchedulingPolicyValue
public TaskGroup.Builder setSchedulingPolicyValue(int value)
Scheduling policy for Tasks in the TaskGroup. The default value is AS_SOON_AS_POSSIBLE.
.google.cloud.batch.v1alpha.TaskGroup.SchedulingPolicy scheduling_policy = 6;
- Parameters:
value
- The enum numeric value on the wire for schedulingPolicy to set.- Returns:
- This builder for chaining.
-
getSchedulingPolicy
public TaskGroup.SchedulingPolicy getSchedulingPolicy()
Scheduling policy for Tasks in the TaskGroup. The default value is AS_SOON_AS_POSSIBLE.
.google.cloud.batch.v1alpha.TaskGroup.SchedulingPolicy scheduling_policy = 6;
- Specified by:
getSchedulingPolicy
in interfaceTaskGroupOrBuilder
- Returns:
- The schedulingPolicy.
-
setSchedulingPolicy
public TaskGroup.Builder setSchedulingPolicy(TaskGroup.SchedulingPolicy value)
Scheduling policy for Tasks in the TaskGroup. The default value is AS_SOON_AS_POSSIBLE.
.google.cloud.batch.v1alpha.TaskGroup.SchedulingPolicy scheduling_policy = 6;
- Parameters:
value
- The schedulingPolicy to set.- Returns:
- This builder for chaining.
-
clearSchedulingPolicy
public TaskGroup.Builder clearSchedulingPolicy()
Scheduling policy for Tasks in the TaskGroup. The default value is AS_SOON_AS_POSSIBLE.
.google.cloud.batch.v1alpha.TaskGroup.SchedulingPolicy scheduling_policy = 6;
- Returns:
- This builder for chaining.
-
hasAllocationPolicy
public boolean hasAllocationPolicy()
Compute resource allocation for the TaskGroup. If specified, it overrides resources in Job.
.google.cloud.batch.v1alpha.AllocationPolicy allocation_policy = 7;
- Specified by:
hasAllocationPolicy
in interfaceTaskGroupOrBuilder
- Returns:
- Whether the allocationPolicy field is set.
-
getAllocationPolicy
public AllocationPolicy getAllocationPolicy()
Compute resource allocation for the TaskGroup. If specified, it overrides resources in Job.
.google.cloud.batch.v1alpha.AllocationPolicy allocation_policy = 7;
- Specified by:
getAllocationPolicy
in interfaceTaskGroupOrBuilder
- Returns:
- The allocationPolicy.
-
setAllocationPolicy
public TaskGroup.Builder setAllocationPolicy(AllocationPolicy value)
Compute resource allocation for the TaskGroup. If specified, it overrides resources in Job.
.google.cloud.batch.v1alpha.AllocationPolicy allocation_policy = 7;
-
setAllocationPolicy
public TaskGroup.Builder setAllocationPolicy(AllocationPolicy.Builder builderForValue)
Compute resource allocation for the TaskGroup. If specified, it overrides resources in Job.
.google.cloud.batch.v1alpha.AllocationPolicy allocation_policy = 7;
-
mergeAllocationPolicy
public TaskGroup.Builder mergeAllocationPolicy(AllocationPolicy value)
Compute resource allocation for the TaskGroup. If specified, it overrides resources in Job.
.google.cloud.batch.v1alpha.AllocationPolicy allocation_policy = 7;
-
clearAllocationPolicy
public TaskGroup.Builder clearAllocationPolicy()
Compute resource allocation for the TaskGroup. If specified, it overrides resources in Job.
.google.cloud.batch.v1alpha.AllocationPolicy allocation_policy = 7;
-
getAllocationPolicyBuilder
public AllocationPolicy.Builder getAllocationPolicyBuilder()
Compute resource allocation for the TaskGroup. If specified, it overrides resources in Job.
.google.cloud.batch.v1alpha.AllocationPolicy allocation_policy = 7;
-
getAllocationPolicyOrBuilder
public AllocationPolicyOrBuilder getAllocationPolicyOrBuilder()
Compute resource allocation for the TaskGroup. If specified, it overrides resources in Job.
.google.cloud.batch.v1alpha.AllocationPolicy allocation_policy = 7;
- Specified by:
getAllocationPolicyOrBuilder
in interfaceTaskGroupOrBuilder
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:TaskGroupOrBuilder
Labels for the TaskGroup. Labels could be user provided or system generated. You can assign up to 64 labels. [Google Compute Engine label restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) apply. Label names that start with "goog-" or "google-" are reserved.
map<string, string> labels = 8;
- Specified by:
getLabelsCount
in interfaceTaskGroupOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Labels for the TaskGroup. Labels could be user provided or system generated. You can assign up to 64 labels. [Google Compute Engine label restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) apply. Label names that start with "goog-" or "google-" are reserved.
map<string, string> labels = 8;
- Specified by:
containsLabels
in interfaceTaskGroupOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceTaskGroupOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Labels for the TaskGroup. Labels could be user provided or system generated. You can assign up to 64 labels. [Google Compute Engine label restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) apply. Label names that start with "goog-" or "google-" are reserved.
map<string, string> labels = 8;
- Specified by:
getLabelsMap
in interfaceTaskGroupOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Labels for the TaskGroup. Labels could be user provided or system generated. You can assign up to 64 labels. [Google Compute Engine label restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) apply. Label names that start with "goog-" or "google-" are reserved.
map<string, string> labels = 8;
- Specified by:
getLabelsOrDefault
in interfaceTaskGroupOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Labels for the TaskGroup. Labels could be user provided or system generated. You can assign up to 64 labels. [Google Compute Engine label restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) apply. Label names that start with "goog-" or "google-" are reserved.
map<string, string> labels = 8;
- Specified by:
getLabelsOrThrow
in interfaceTaskGroupOrBuilder
-
clearLabels
public TaskGroup.Builder clearLabels()
-
removeLabels
public TaskGroup.Builder removeLabels(String key)
Labels for the TaskGroup. Labels could be user provided or system generated. You can assign up to 64 labels. [Google Compute Engine label restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) apply. Label names that start with "goog-" or "google-" are reserved.
map<string, string> labels = 8;
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public TaskGroup.Builder putLabels(String key, String value)
Labels for the TaskGroup. Labels could be user provided or system generated. You can assign up to 64 labels. [Google Compute Engine label restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) apply. Label names that start with "goog-" or "google-" are reserved.
map<string, string> labels = 8;
-
putAllLabels
public TaskGroup.Builder putAllLabels(Map<String,String> values)
Labels for the TaskGroup. Labels could be user provided or system generated. You can assign up to 64 labels. [Google Compute Engine label restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) apply. Label names that start with "goog-" or "google-" are reserved.
map<string, string> labels = 8;
-
getTaskEnvironmentsList
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.v1alpha.Environment task_environments = 9;
- Specified by:
getTaskEnvironmentsList
in interfaceTaskGroupOrBuilder
-
getTaskEnvironmentsCount
public 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.v1alpha.Environment task_environments = 9;
- Specified by:
getTaskEnvironmentsCount
in interfaceTaskGroupOrBuilder
-
getTaskEnvironments
public 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.v1alpha.Environment task_environments = 9;
- Specified by:
getTaskEnvironments
in interfaceTaskGroupOrBuilder
-
setTaskEnvironments
public 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.v1alpha.Environment task_environments = 9;
-
setTaskEnvironments
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.v1alpha.Environment task_environments = 9;
-
addTaskEnvironments
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.v1alpha.Environment task_environments = 9;
-
addTaskEnvironments
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.v1alpha.Environment task_environments = 9;
-
addTaskEnvironments
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.v1alpha.Environment task_environments = 9;
-
addTaskEnvironments
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.v1alpha.Environment task_environments = 9;
-
addAllTaskEnvironments
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.v1alpha.Environment task_environments = 9;
-
clearTaskEnvironments
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.v1alpha.Environment task_environments = 9;
-
removeTaskEnvironments
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.v1alpha.Environment task_environments = 9;
-
getTaskEnvironmentsBuilder
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.v1alpha.Environment task_environments = 9;
-
getTaskEnvironmentsOrBuilder
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.v1alpha.Environment task_environments = 9;
- Specified by:
getTaskEnvironmentsOrBuilder
in interfaceTaskGroupOrBuilder
-
getTaskEnvironmentsOrBuilderList
public 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.v1alpha.Environment task_environments = 9;
- Specified by:
getTaskEnvironmentsOrBuilderList
in interfaceTaskGroupOrBuilder
-
addTaskEnvironmentsBuilder
public 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.v1alpha.Environment task_environments = 9;
-
addTaskEnvironmentsBuilder
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.v1alpha.Environment task_environments = 9;
-
getTaskEnvironmentsBuilderList
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.v1alpha.Environment task_environments = 9;
-
getTaskCountPerNode
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;
- Specified by:
getTaskCountPerNode
in interfaceTaskGroupOrBuilder
- Returns:
- The taskCountPerNode.
-
setTaskCountPerNode
public 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;
- Parameters:
value
- The taskCountPerNode to set.- Returns:
- This builder for chaining.
-
clearTaskCountPerNode
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;
- Returns:
- This builder for chaining.
-
getRequireHostsFile
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.
bool require_hosts_file = 11;
- Specified by:
getRequireHostsFile
in interfaceTaskGroupOrBuilder
- Returns:
- The requireHostsFile.
-
setRequireHostsFile
public 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.
bool require_hosts_file = 11;
- Parameters:
value
- The requireHostsFile to set.- Returns:
- This builder for chaining.
-
clearRequireHostsFile
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.
bool require_hosts_file = 11;
- Returns:
- This builder for chaining.
-
getPermissiveSsh
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;
- Specified by:
getPermissiveSsh
in interfaceTaskGroupOrBuilder
- Returns:
- The permissiveSsh.
-
setPermissiveSsh
public 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;
- Parameters:
value
- The permissiveSsh to set.- Returns:
- This builder for chaining.
-
clearPermissiveSsh
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;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final TaskGroup.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TaskGroup.Builder>
-
mergeUnknownFields
public final TaskGroup.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TaskGroup.Builder>
-
-