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.BuilderaddAllTaskEnvironments(Iterable<? extends Environment> values)An array of environment variable mappings, which are passed to Tasks with matching indices.TaskGroup.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TaskGroup.BuilderaddTaskEnvironments(int index, Environment value)An array of environment variable mappings, which are passed to Tasks with matching indices.TaskGroup.BuilderaddTaskEnvironments(int index, Environment.Builder builderForValue)An array of environment variable mappings, which are passed to Tasks with matching indices.TaskGroup.BuilderaddTaskEnvironments(Environment value)An array of environment variable mappings, which are passed to Tasks with matching indices.TaskGroup.BuilderaddTaskEnvironments(Environment.Builder builderForValue)An array of environment variable mappings, which are passed to Tasks with matching indices.Environment.BuilderaddTaskEnvironmentsBuilder()An array of environment variable mappings, which are passed to Tasks with matching indices.Environment.BuilderaddTaskEnvironmentsBuilder(int index)An array of environment variable mappings, which are passed to Tasks with matching indices.TaskGroupbuild()TaskGroupbuildPartial()TaskGroup.Builderclear()TaskGroup.BuilderclearAllocationPolicy()Compute resource allocation for the TaskGroup.TaskGroup.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)TaskGroup.BuilderclearLabels()TaskGroup.BuilderclearName()Output only.TaskGroup.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)TaskGroup.BuilderclearParallelism()Max number of tasks that can run in parallel.TaskGroup.BuilderclearPermissiveSsh()When true, Batch will configure SSH to allow passwordless login between VMs running the Batch tasks in the same TaskGroup.TaskGroup.BuilderclearRequireHostsFile()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.BuilderclearSchedulingPolicy()Scheduling policy for Tasks in the TaskGroup.TaskGroup.BuilderclearTaskCount()Number of Tasks in the TaskGroup.TaskGroup.BuilderclearTaskCountPerNode()Max number of tasks that can be run on a VM at the same time.TaskGroup.BuilderclearTaskEnvironments()An array of environment variable mappings, which are passed to Tasks with matching indices.TaskGroup.BuilderclearTaskSpec()Required.TaskGroup.Builderclone()booleancontainsLabels(String key)Labels for the TaskGroup.AllocationPolicygetAllocationPolicy()Compute resource allocation for the TaskGroup.AllocationPolicy.BuildergetAllocationPolicyBuilder()Compute resource allocation for the TaskGroup.AllocationPolicyOrBuildergetAllocationPolicyOrBuilder()Compute resource allocation for the TaskGroup.TaskGroupgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Map<String,String>getLabels()Deprecated.intgetLabelsCount()Labels for the TaskGroup.Map<String,String>getLabelsMap()Labels for the TaskGroup.StringgetLabelsOrDefault(String key, String defaultValue)Labels for the TaskGroup.StringgetLabelsOrThrow(String key)Labels for the TaskGroup.Map<String,String>getMutableLabels()Deprecated.StringgetName()Output only.com.google.protobuf.ByteStringgetNameBytes()Output only.longgetParallelism()Max number of tasks that can run in parallel.booleangetPermissiveSsh()When true, Batch will configure SSH to allow passwordless login between VMs running the Batch tasks in the same TaskGroup.booleangetRequireHostsFile()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.SchedulingPolicygetSchedulingPolicy()Scheduling policy for Tasks in the TaskGroup.intgetSchedulingPolicyValue()Scheduling policy for Tasks in the TaskGroup.longgetTaskCount()Number of Tasks in the TaskGroup.longgetTaskCountPerNode()Max number of tasks that can be run on a VM at the same time.EnvironmentgetTaskEnvironments(int index)An array of environment variable mappings, which are passed to Tasks with matching indices.Environment.BuildergetTaskEnvironmentsBuilder(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.intgetTaskEnvironmentsCount()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.EnvironmentOrBuildergetTaskEnvironmentsOrBuilder(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.TaskSpecgetTaskSpec()Required.TaskSpec.BuildergetTaskSpecBuilder()Required.TaskSpecOrBuildergetTaskSpecOrBuilder()Required.booleanhasAllocationPolicy()Compute resource allocation for the TaskGroup.booleanhasTaskSpec()Required.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()TaskGroup.BuildermergeAllocationPolicy(AllocationPolicy value)Compute resource allocation for the TaskGroup.TaskGroup.BuildermergeFrom(TaskGroup other)TaskGroup.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)TaskGroup.BuildermergeFrom(com.google.protobuf.Message other)TaskGroup.BuildermergeTaskSpec(TaskSpec value)Required.TaskGroup.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)TaskGroup.BuilderputAllLabels(Map<String,String> values)Labels for the TaskGroup.TaskGroup.BuilderputLabels(String key, String value)Labels for the TaskGroup.TaskGroup.BuilderremoveLabels(String key)Labels for the TaskGroup.TaskGroup.BuilderremoveTaskEnvironments(int index)An array of environment variable mappings, which are passed to Tasks with matching indices.TaskGroup.BuildersetAllocationPolicy(AllocationPolicy value)Compute resource allocation for the TaskGroup.TaskGroup.BuildersetAllocationPolicy(AllocationPolicy.Builder builderForValue)Compute resource allocation for the TaskGroup.TaskGroup.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TaskGroup.BuildersetName(String value)Output only.TaskGroup.BuildersetNameBytes(com.google.protobuf.ByteString value)Output only.TaskGroup.BuildersetParallelism(long value)Max number of tasks that can run in parallel.TaskGroup.BuildersetPermissiveSsh(boolean value)When true, Batch will configure SSH to allow passwordless login between VMs running the Batch tasks in the same TaskGroup.TaskGroup.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)TaskGroup.BuildersetRequireHostsFile(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.BuildersetSchedulingPolicy(TaskGroup.SchedulingPolicy value)Scheduling policy for Tasks in the TaskGroup.TaskGroup.BuildersetSchedulingPolicyValue(int value)Scheduling policy for Tasks in the TaskGroup.TaskGroup.BuildersetTaskCount(long value)Number of Tasks in the TaskGroup.TaskGroup.BuildersetTaskCountPerNode(long value)Max number of tasks that can be run on a VM at the same time.TaskGroup.BuildersetTaskEnvironments(int index, Environment value)An array of environment variable mappings, which are passed to Tasks with matching indices.TaskGroup.BuildersetTaskEnvironments(int index, Environment.Builder builderForValue)An array of environment variable mappings, which are passed to Tasks with matching indices.TaskGroup.BuildersetTaskSpec(TaskSpec value)Required.TaskGroup.BuildersetTaskSpec(TaskSpec.Builder builderForValue)Required.TaskGroup.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TaskGroup.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TaskGroup.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<TaskGroup.Builder>
-
clear
public TaskGroup.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<TaskGroup.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<TaskGroup.Builder>
-
getDefaultInstanceForType
public TaskGroup getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public TaskGroup build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TaskGroup buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TaskGroup.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<TaskGroup.Builder>
-
setField
public TaskGroup.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<TaskGroup.Builder>
-
clearField
public TaskGroup.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TaskGroup.Builder>
-
clearOneof
public TaskGroup.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<TaskGroup.Builder>
-
setRepeatedField
public TaskGroup.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<TaskGroup.Builder>
-
addRepeatedField
public TaskGroup.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<TaskGroup.Builder>
-
mergeFrom
public TaskGroup.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TaskGroup.Builder>
-
mergeFrom
public TaskGroup.Builder mergeFrom(TaskGroup other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
getNamein 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:
getNameBytesin 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:
hasTaskSpecin 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:
getTaskSpecin 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:
getTaskSpecOrBuilderin interfaceTaskGroupOrBuilder
-
getTaskCount
public long getTaskCount()
Number of Tasks in the TaskGroup. Default is 1.
int64 task_count = 4;- Specified by:
getTaskCountin 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:
getParallelismin 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:
getSchedulingPolicyValuein 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:
getSchedulingPolicyin 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:
hasAllocationPolicyin 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:
getAllocationPolicyin 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:
getAllocationPolicyOrBuilderin interfaceTaskGroupOrBuilder
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:TaskGroupOrBuilderLabels 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:
getLabelsCountin 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:
containsLabelsin interfaceTaskGroupOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin 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:
getLabelsMapin 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:
getLabelsOrDefaultin 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:
getLabelsOrThrowin 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:
getTaskEnvironmentsListin 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:
getTaskEnvironmentsCountin 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:
getTaskEnvironmentsin 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:
getTaskEnvironmentsOrBuilderin 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:
getTaskEnvironmentsOrBuilderListin 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:
getTaskCountPerNodein 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:
getRequireHostsFilein 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:
getPermissiveSshin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TaskGroup.Builder>
-
mergeUnknownFields
public final TaskGroup.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TaskGroup.Builder>
-
-