public static final class Job.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Job.Builder> implements JobOrBuilder
The Cloud Batch Job description.Protobuf type
google.cloud.batch.v1.Job| Modifier and Type | Method and Description |
|---|---|
Job.Builder |
addAllNotifications(Iterable<? extends JobNotification> values)
Notification configurations.
|
Job.Builder |
addAllTaskGroups(Iterable<? extends TaskGroup> values)
Required.
|
Job.Builder |
addNotifications(int index,
JobNotification.Builder builderForValue)
Notification configurations.
|
Job.Builder |
addNotifications(int index,
JobNotification value)
Notification configurations.
|
Job.Builder |
addNotifications(JobNotification.Builder builderForValue)
Notification configurations.
|
Job.Builder |
addNotifications(JobNotification value)
Notification configurations.
|
JobNotification.Builder |
addNotificationsBuilder()
Notification configurations.
|
JobNotification.Builder |
addNotificationsBuilder(int index)
Notification configurations.
|
Job.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Job.Builder |
addTaskGroups(int index,
TaskGroup.Builder builderForValue)
Required.
|
Job.Builder |
addTaskGroups(int index,
TaskGroup value)
Required.
|
Job.Builder |
addTaskGroups(TaskGroup.Builder builderForValue)
Required.
|
Job.Builder |
addTaskGroups(TaskGroup value)
Required.
|
TaskGroup.Builder |
addTaskGroupsBuilder()
Required.
|
TaskGroup.Builder |
addTaskGroupsBuilder(int index)
Required.
|
Job |
build() |
Job |
buildPartial() |
Job.Builder |
clear() |
Job.Builder |
clearAllocationPolicy()
Compute resource allocation for all TaskGroups in the Job.
|
Job.Builder |
clearCreateTime()
Output only.
|
Job.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Job.Builder |
clearLabels() |
Job.Builder |
clearLogsPolicy()
Log preservation policy for the Job.
|
Job.Builder |
clearName()
Output only.
|
Job.Builder |
clearNotifications()
Notification configurations.
|
Job.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Job.Builder |
clearPriority()
Priority of the Job.
|
Job.Builder |
clearStatus()
Output only.
|
Job.Builder |
clearTaskGroups()
Required.
|
Job.Builder |
clearUid()
Output only.
|
Job.Builder |
clearUpdateTime()
Output only.
|
Job.Builder |
clone() |
boolean |
containsLabels(String key)
Custom labels to apply to the job and any Cloud Logging
[LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
that it generates.
|
AllocationPolicy |
getAllocationPolicy()
Compute resource allocation for all TaskGroups in the Job.
|
AllocationPolicy.Builder |
getAllocationPolicyBuilder()
Compute resource allocation for all TaskGroups in the Job.
|
AllocationPolicyOrBuilder |
getAllocationPolicyOrBuilder()
Compute resource allocation for all TaskGroups in the Job.
|
com.google.protobuf.Timestamp |
getCreateTime()
Output only.
|
com.google.protobuf.Timestamp.Builder |
getCreateTimeBuilder()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Output only.
|
Job |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
Custom labels to apply to the job and any Cloud Logging
[LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
that it generates.
|
Map<String,String> |
getLabelsMap()
Custom labels to apply to the job and any Cloud Logging
[LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
that it generates.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
Custom labels to apply to the job and any Cloud Logging
[LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
that it generates.
|
String |
getLabelsOrThrow(String key)
Custom labels to apply to the job and any Cloud Logging
[LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
that it generates.
|
LogsPolicy |
getLogsPolicy()
Log preservation policy for the Job.
|
LogsPolicy.Builder |
getLogsPolicyBuilder()
Log preservation policy for the Job.
|
LogsPolicyOrBuilder |
getLogsPolicyOrBuilder()
Log preservation policy for the Job.
|
Map<String,String> |
getMutableLabels()
Deprecated.
|
String |
getName()
Output only.
|
com.google.protobuf.ByteString |
getNameBytes()
Output only.
|
JobNotification |
getNotifications(int index)
Notification configurations.
|
JobNotification.Builder |
getNotificationsBuilder(int index)
Notification configurations.
|
List<JobNotification.Builder> |
getNotificationsBuilderList()
Notification configurations.
|
int |
getNotificationsCount()
Notification configurations.
|
List<JobNotification> |
getNotificationsList()
Notification configurations.
|
JobNotificationOrBuilder |
getNotificationsOrBuilder(int index)
Notification configurations.
|
List<? extends JobNotificationOrBuilder> |
getNotificationsOrBuilderList()
Notification configurations.
|
long |
getPriority()
Priority of the Job.
|
JobStatus |
getStatus()
Output only.
|
JobStatus.Builder |
getStatusBuilder()
Output only.
|
JobStatusOrBuilder |
getStatusOrBuilder()
Output only.
|
TaskGroup |
getTaskGroups(int index)
Required.
|
TaskGroup.Builder |
getTaskGroupsBuilder(int index)
Required.
|
List<TaskGroup.Builder> |
getTaskGroupsBuilderList()
Required.
|
int |
getTaskGroupsCount()
Required.
|
List<TaskGroup> |
getTaskGroupsList()
Required.
|
TaskGroupOrBuilder |
getTaskGroupsOrBuilder(int index)
Required.
|
List<? extends TaskGroupOrBuilder> |
getTaskGroupsOrBuilderList()
Required.
|
String |
getUid()
Output only.
|
com.google.protobuf.ByteString |
getUidBytes()
Output only.
|
com.google.protobuf.Timestamp |
getUpdateTime()
Output only.
|
com.google.protobuf.Timestamp.Builder |
getUpdateTimeBuilder()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getUpdateTimeOrBuilder()
Output only.
|
boolean |
hasAllocationPolicy()
Compute resource allocation for all TaskGroups in the Job.
|
boolean |
hasCreateTime()
Output only.
|
boolean |
hasLogsPolicy()
Log preservation policy for the Job.
|
boolean |
hasStatus()
Output only.
|
boolean |
hasUpdateTime()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(int number) |
boolean |
isInitialized() |
Job.Builder |
mergeAllocationPolicy(AllocationPolicy value)
Compute resource allocation for all TaskGroups in the Job.
|
Job.Builder |
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.
|
Job.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Job.Builder |
mergeFrom(Job other) |
Job.Builder |
mergeFrom(com.google.protobuf.Message other) |
Job.Builder |
mergeLogsPolicy(LogsPolicy value)
Log preservation policy for the Job.
|
Job.Builder |
mergeStatus(JobStatus value)
Output only.
|
Job.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Job.Builder |
mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only.
|
Job.Builder |
putAllLabels(Map<String,String> values)
Custom labels to apply to the job and any Cloud Logging
[LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
that it generates.
|
Job.Builder |
putLabels(String key,
String value)
Custom labels to apply to the job and any Cloud Logging
[LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
that it generates.
|
Job.Builder |
removeLabels(String key)
Custom labels to apply to the job and any Cloud Logging
[LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry)
that it generates.
|
Job.Builder |
removeNotifications(int index)
Notification configurations.
|
Job.Builder |
removeTaskGroups(int index)
Required.
|
Job.Builder |
setAllocationPolicy(AllocationPolicy.Builder builderForValue)
Compute resource allocation for all TaskGroups in the Job.
|
Job.Builder |
setAllocationPolicy(AllocationPolicy value)
Compute resource allocation for all TaskGroups in the Job.
|
Job.Builder |
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
Job.Builder |
setCreateTime(com.google.protobuf.Timestamp value)
Output only.
|
Job.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Job.Builder |
setLogsPolicy(LogsPolicy.Builder builderForValue)
Log preservation policy for the Job.
|
Job.Builder |
setLogsPolicy(LogsPolicy value)
Log preservation policy for the Job.
|
Job.Builder |
setName(String value)
Output only.
|
Job.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Output only.
|
Job.Builder |
setNotifications(int index,
JobNotification.Builder builderForValue)
Notification configurations.
|
Job.Builder |
setNotifications(int index,
JobNotification value)
Notification configurations.
|
Job.Builder |
setPriority(long value)
Priority of the Job.
|
Job.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Job.Builder |
setStatus(JobStatus.Builder builderForValue)
Output only.
|
Job.Builder |
setStatus(JobStatus value)
Output only.
|
Job.Builder |
setTaskGroups(int index,
TaskGroup.Builder builderForValue)
Required.
|
Job.Builder |
setTaskGroups(int index,
TaskGroup value)
Required.
|
Job.Builder |
setUid(String value)
Output only.
|
Job.Builder |
setUidBytes(com.google.protobuf.ByteString value)
Output only.
|
Job.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Job.Builder |
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
Job.Builder |
setUpdateTime(com.google.protobuf.Timestamp value)
Output only.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, 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.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<Job.Builder>protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<Job.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Job.Builder>public Job.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Job.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<Job.Builder>public Job getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Job build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Job buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Job.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Job.Builder>public Job.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<Job.Builder>public Job.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Job.Builder>public Job.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Job.Builder>public Job.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<Job.Builder>public Job.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<Job.Builder>public Job.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Job.Builder>public Job.Builder mergeFrom(Job other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Job.Builder>public Job.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<Job.Builder>IOExceptionpublic String getName()
Output only. Job name. For example: "projects/123456/locations/us-central1/jobs/job01".
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getName in interface JobOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Output only. Job name. For example: "projects/123456/locations/us-central1/jobs/job01".
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getNameBytes in interface JobOrBuilderpublic Job.Builder setName(String value)
Output only. Job name. For example: "projects/123456/locations/us-central1/jobs/job01".
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The name to set.public Job.Builder clearName()
Output only. Job name. For example: "projects/123456/locations/us-central1/jobs/job01".
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];public Job.Builder setNameBytes(com.google.protobuf.ByteString value)
Output only. Job name. For example: "projects/123456/locations/us-central1/jobs/job01".
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for name to set.public String getUid()
Output only. A system generated unique ID for the Job.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];getUid in interface JobOrBuilderpublic com.google.protobuf.ByteString getUidBytes()
Output only. A system generated unique ID for the Job.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];getUidBytes in interface JobOrBuilderpublic Job.Builder setUid(String value)
Output only. A system generated unique ID for the Job.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The uid to set.public Job.Builder clearUid()
Output only. A system generated unique ID for the Job.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];public Job.Builder setUidBytes(com.google.protobuf.ByteString value)
Output only. A system generated unique ID for the Job.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for uid to set.public long getPriority()
Priority of the Job. The valid value range is [0, 100). Default value is 0. Higher value indicates higher priority. A job with higher priority value is more likely to run earlier if all other requirements are satisfied.
int64 priority = 3;getPriority in interface JobOrBuilderpublic Job.Builder setPriority(long value)
Priority of the Job. The valid value range is [0, 100). Default value is 0. Higher value indicates higher priority. A job with higher priority value is more likely to run earlier if all other requirements are satisfied.
int64 priority = 3;value - The priority to set.public Job.Builder clearPriority()
Priority of the Job. The valid value range is [0, 100). Default value is 0. Higher value indicates higher priority. A job with higher priority value is more likely to run earlier if all other requirements are satisfied.
int64 priority = 3;public List<TaskGroup> getTaskGroupsList()
Required. TaskGroups in the Job. Only one TaskGroup is supported now.
repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED];
getTaskGroupsList in interface JobOrBuilderpublic int getTaskGroupsCount()
Required. TaskGroups in the Job. Only one TaskGroup is supported now.
repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED];
getTaskGroupsCount in interface JobOrBuilderpublic TaskGroup getTaskGroups(int index)
Required. TaskGroups in the Job. Only one TaskGroup is supported now.
repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED];
getTaskGroups in interface JobOrBuilderpublic Job.Builder setTaskGroups(int index, TaskGroup value)
Required. TaskGroups in the Job. Only one TaskGroup is supported now.
repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED];
public Job.Builder setTaskGroups(int index, TaskGroup.Builder builderForValue)
Required. TaskGroups in the Job. Only one TaskGroup is supported now.
repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED];
public Job.Builder addTaskGroups(TaskGroup value)
Required. TaskGroups in the Job. Only one TaskGroup is supported now.
repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED];
public Job.Builder addTaskGroups(int index, TaskGroup value)
Required. TaskGroups in the Job. Only one TaskGroup is supported now.
repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED];
public Job.Builder addTaskGroups(TaskGroup.Builder builderForValue)
Required. TaskGroups in the Job. Only one TaskGroup is supported now.
repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED];
public Job.Builder addTaskGroups(int index, TaskGroup.Builder builderForValue)
Required. TaskGroups in the Job. Only one TaskGroup is supported now.
repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED];
public Job.Builder addAllTaskGroups(Iterable<? extends TaskGroup> values)
Required. TaskGroups in the Job. Only one TaskGroup is supported now.
repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED];
public Job.Builder clearTaskGroups()
Required. TaskGroups in the Job. Only one TaskGroup is supported now.
repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED];
public Job.Builder removeTaskGroups(int index)
Required. TaskGroups in the Job. Only one TaskGroup is supported now.
repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED];
public TaskGroup.Builder getTaskGroupsBuilder(int index)
Required. TaskGroups in the Job. Only one TaskGroup is supported now.
repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED];
public TaskGroupOrBuilder getTaskGroupsOrBuilder(int index)
Required. TaskGroups in the Job. Only one TaskGroup is supported now.
repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED];
getTaskGroupsOrBuilder in interface JobOrBuilderpublic List<? extends TaskGroupOrBuilder> getTaskGroupsOrBuilderList()
Required. TaskGroups in the Job. Only one TaskGroup is supported now.
repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED];
getTaskGroupsOrBuilderList in interface JobOrBuilderpublic TaskGroup.Builder addTaskGroupsBuilder()
Required. TaskGroups in the Job. Only one TaskGroup is supported now.
repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED];
public TaskGroup.Builder addTaskGroupsBuilder(int index)
Required. TaskGroups in the Job. Only one TaskGroup is supported now.
repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED];
public List<TaskGroup.Builder> getTaskGroupsBuilderList()
Required. TaskGroups in the Job. Only one TaskGroup is supported now.
repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED];
public boolean hasAllocationPolicy()
Compute resource allocation for all TaskGroups in the Job.
.google.cloud.batch.v1.AllocationPolicy allocation_policy = 7;hasAllocationPolicy in interface JobOrBuilderpublic AllocationPolicy getAllocationPolicy()
Compute resource allocation for all TaskGroups in the Job.
.google.cloud.batch.v1.AllocationPolicy allocation_policy = 7;getAllocationPolicy in interface JobOrBuilderpublic Job.Builder setAllocationPolicy(AllocationPolicy value)
Compute resource allocation for all TaskGroups in the Job.
.google.cloud.batch.v1.AllocationPolicy allocation_policy = 7;public Job.Builder setAllocationPolicy(AllocationPolicy.Builder builderForValue)
Compute resource allocation for all TaskGroups in the Job.
.google.cloud.batch.v1.AllocationPolicy allocation_policy = 7;public Job.Builder mergeAllocationPolicy(AllocationPolicy value)
Compute resource allocation for all TaskGroups in the Job.
.google.cloud.batch.v1.AllocationPolicy allocation_policy = 7;public Job.Builder clearAllocationPolicy()
Compute resource allocation for all TaskGroups in the Job.
.google.cloud.batch.v1.AllocationPolicy allocation_policy = 7;public AllocationPolicy.Builder getAllocationPolicyBuilder()
Compute resource allocation for all TaskGroups in the Job.
.google.cloud.batch.v1.AllocationPolicy allocation_policy = 7;public AllocationPolicyOrBuilder getAllocationPolicyOrBuilder()
Compute resource allocation for all TaskGroups in the Job.
.google.cloud.batch.v1.AllocationPolicy allocation_policy = 7;getAllocationPolicyOrBuilder in interface JobOrBuilderpublic int getLabelsCount()
JobOrBuilderCustom labels to apply to the job and any Cloud Logging [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry) that it generates. Use labels to group and describe the resources they are applied to. Batch automatically applies predefined labels and supports multiple `labels` fields for each job, which each let you apply custom labels to various resources. Label names that start with "goog-" or "google-" are reserved for predefined labels. For more information about labels with Batch, see [Organize resources using labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
map<string, string> labels = 8;getLabelsCount in interface JobOrBuilderpublic boolean containsLabels(String key)
Custom labels to apply to the job and any Cloud Logging [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry) that it generates. Use labels to group and describe the resources they are applied to. Batch automatically applies predefined labels and supports multiple `labels` fields for each job, which each let you apply custom labels to various resources. Label names that start with "goog-" or "google-" are reserved for predefined labels. For more information about labels with Batch, see [Organize resources using labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
map<string, string> labels = 8;containsLabels in interface JobOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface JobOrBuilderpublic Map<String,String> getLabelsMap()
Custom labels to apply to the job and any Cloud Logging [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry) that it generates. Use labels to group and describe the resources they are applied to. Batch automatically applies predefined labels and supports multiple `labels` fields for each job, which each let you apply custom labels to various resources. Label names that start with "goog-" or "google-" are reserved for predefined labels. For more information about labels with Batch, see [Organize resources using labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
map<string, string> labels = 8;getLabelsMap in interface JobOrBuilderpublic String getLabelsOrDefault(String key, String defaultValue)
Custom labels to apply to the job and any Cloud Logging [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry) that it generates. Use labels to group and describe the resources they are applied to. Batch automatically applies predefined labels and supports multiple `labels` fields for each job, which each let you apply custom labels to various resources. Label names that start with "goog-" or "google-" are reserved for predefined labels. For more information about labels with Batch, see [Organize resources using labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
map<string, string> labels = 8;getLabelsOrDefault in interface JobOrBuilderpublic String getLabelsOrThrow(String key)
Custom labels to apply to the job and any Cloud Logging [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry) that it generates. Use labels to group and describe the resources they are applied to. Batch automatically applies predefined labels and supports multiple `labels` fields for each job, which each let you apply custom labels to various resources. Label names that start with "goog-" or "google-" are reserved for predefined labels. For more information about labels with Batch, see [Organize resources using labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
map<string, string> labels = 8;getLabelsOrThrow in interface JobOrBuilderpublic Job.Builder clearLabels()
public Job.Builder removeLabels(String key)
Custom labels to apply to the job and any Cloud Logging [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry) that it generates. Use labels to group and describe the resources they are applied to. Batch automatically applies predefined labels and supports multiple `labels` fields for each job, which each let you apply custom labels to various resources. Label names that start with "goog-" or "google-" are reserved for predefined labels. For more information about labels with Batch, see [Organize resources using labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
map<string, string> labels = 8;@Deprecated public Map<String,String> getMutableLabels()
public Job.Builder putLabels(String key, String value)
Custom labels to apply to the job and any Cloud Logging [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry) that it generates. Use labels to group and describe the resources they are applied to. Batch automatically applies predefined labels and supports multiple `labels` fields for each job, which each let you apply custom labels to various resources. Label names that start with "goog-" or "google-" are reserved for predefined labels. For more information about labels with Batch, see [Organize resources using labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
map<string, string> labels = 8;public Job.Builder putAllLabels(Map<String,String> values)
Custom labels to apply to the job and any Cloud Logging [LogEntry](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry) that it generates. Use labels to group and describe the resources they are applied to. Batch automatically applies predefined labels and supports multiple `labels` fields for each job, which each let you apply custom labels to various resources. Label names that start with "goog-" or "google-" are reserved for predefined labels. For more information about labels with Batch, see [Organize resources using labels](https://cloud.google.com/batch/docs/organize-resources-using-labels).
map<string, string> labels = 8;public boolean hasStatus()
Output only. Job status. It is read only for users.
.google.cloud.batch.v1.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasStatus in interface JobOrBuilderpublic JobStatus getStatus()
Output only. Job status. It is read only for users.
.google.cloud.batch.v1.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStatus in interface JobOrBuilderpublic Job.Builder setStatus(JobStatus value)
Output only. Job status. It is read only for users.
.google.cloud.batch.v1.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Job.Builder setStatus(JobStatus.Builder builderForValue)
Output only. Job status. It is read only for users.
.google.cloud.batch.v1.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Job.Builder mergeStatus(JobStatus value)
Output only. Job status. It is read only for users.
.google.cloud.batch.v1.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Job.Builder clearStatus()
Output only. Job status. It is read only for users.
.google.cloud.batch.v1.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
public JobStatus.Builder getStatusBuilder()
Output only. Job status. It is read only for users.
.google.cloud.batch.v1.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
public JobStatusOrBuilder getStatusOrBuilder()
Output only. Job status. It is read only for users.
.google.cloud.batch.v1.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStatusOrBuilder in interface JobOrBuilderpublic boolean hasCreateTime()
Output only. When the Job was created.
.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasCreateTime in interface JobOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
Output only. When the Job was created.
.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTime in interface JobOrBuilderpublic Job.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. When the Job was created.
.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Job.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. When the Job was created.
.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Job.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. When the Job was created.
.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Job.Builder clearCreateTime()
Output only. When the Job was created.
.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. When the Job was created.
.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. When the Job was created.
.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTimeOrBuilder in interface JobOrBuilderpublic boolean hasUpdateTime()
Output only. The last time the Job was updated.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasUpdateTime in interface JobOrBuilderpublic com.google.protobuf.Timestamp getUpdateTime()
Output only. The last time the Job was updated.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUpdateTime in interface JobOrBuilderpublic Job.Builder setUpdateTime(com.google.protobuf.Timestamp value)
Output only. The last time the Job was updated.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Job.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The last time the Job was updated.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Job.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only. The last time the Job was updated.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Job.Builder clearUpdateTime()
Output only. The last time the Job was updated.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
Output only. The last time the Job was updated.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The last time the Job was updated.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
getUpdateTimeOrBuilder in interface JobOrBuilderpublic boolean hasLogsPolicy()
Log preservation policy for the Job.
.google.cloud.batch.v1.LogsPolicy logs_policy = 13;hasLogsPolicy in interface JobOrBuilderpublic LogsPolicy getLogsPolicy()
Log preservation policy for the Job.
.google.cloud.batch.v1.LogsPolicy logs_policy = 13;getLogsPolicy in interface JobOrBuilderpublic Job.Builder setLogsPolicy(LogsPolicy value)
Log preservation policy for the Job.
.google.cloud.batch.v1.LogsPolicy logs_policy = 13;public Job.Builder setLogsPolicy(LogsPolicy.Builder builderForValue)
Log preservation policy for the Job.
.google.cloud.batch.v1.LogsPolicy logs_policy = 13;public Job.Builder mergeLogsPolicy(LogsPolicy value)
Log preservation policy for the Job.
.google.cloud.batch.v1.LogsPolicy logs_policy = 13;public Job.Builder clearLogsPolicy()
Log preservation policy for the Job.
.google.cloud.batch.v1.LogsPolicy logs_policy = 13;public LogsPolicy.Builder getLogsPolicyBuilder()
Log preservation policy for the Job.
.google.cloud.batch.v1.LogsPolicy logs_policy = 13;public LogsPolicyOrBuilder getLogsPolicyOrBuilder()
Log preservation policy for the Job.
.google.cloud.batch.v1.LogsPolicy logs_policy = 13;getLogsPolicyOrBuilder in interface JobOrBuilderpublic List<JobNotification> getNotificationsList()
Notification configurations.
repeated .google.cloud.batch.v1.JobNotification notifications = 14;getNotificationsList in interface JobOrBuilderpublic int getNotificationsCount()
Notification configurations.
repeated .google.cloud.batch.v1.JobNotification notifications = 14;getNotificationsCount in interface JobOrBuilderpublic JobNotification getNotifications(int index)
Notification configurations.
repeated .google.cloud.batch.v1.JobNotification notifications = 14;getNotifications in interface JobOrBuilderpublic Job.Builder setNotifications(int index, JobNotification value)
Notification configurations.
repeated .google.cloud.batch.v1.JobNotification notifications = 14;public Job.Builder setNotifications(int index, JobNotification.Builder builderForValue)
Notification configurations.
repeated .google.cloud.batch.v1.JobNotification notifications = 14;public Job.Builder addNotifications(JobNotification value)
Notification configurations.
repeated .google.cloud.batch.v1.JobNotification notifications = 14;public Job.Builder addNotifications(int index, JobNotification value)
Notification configurations.
repeated .google.cloud.batch.v1.JobNotification notifications = 14;public Job.Builder addNotifications(JobNotification.Builder builderForValue)
Notification configurations.
repeated .google.cloud.batch.v1.JobNotification notifications = 14;public Job.Builder addNotifications(int index, JobNotification.Builder builderForValue)
Notification configurations.
repeated .google.cloud.batch.v1.JobNotification notifications = 14;public Job.Builder addAllNotifications(Iterable<? extends JobNotification> values)
Notification configurations.
repeated .google.cloud.batch.v1.JobNotification notifications = 14;public Job.Builder clearNotifications()
Notification configurations.
repeated .google.cloud.batch.v1.JobNotification notifications = 14;public Job.Builder removeNotifications(int index)
Notification configurations.
repeated .google.cloud.batch.v1.JobNotification notifications = 14;public JobNotification.Builder getNotificationsBuilder(int index)
Notification configurations.
repeated .google.cloud.batch.v1.JobNotification notifications = 14;public JobNotificationOrBuilder getNotificationsOrBuilder(int index)
Notification configurations.
repeated .google.cloud.batch.v1.JobNotification notifications = 14;getNotificationsOrBuilder in interface JobOrBuilderpublic List<? extends JobNotificationOrBuilder> getNotificationsOrBuilderList()
Notification configurations.
repeated .google.cloud.batch.v1.JobNotification notifications = 14;getNotificationsOrBuilderList in interface JobOrBuilderpublic JobNotification.Builder addNotificationsBuilder()
Notification configurations.
repeated .google.cloud.batch.v1.JobNotification notifications = 14;public JobNotification.Builder addNotificationsBuilder(int index)
Notification configurations.
repeated .google.cloud.batch.v1.JobNotification notifications = 14;public List<JobNotification.Builder> getNotificationsBuilderList()
Notification configurations.
repeated .google.cloud.batch.v1.JobNotification notifications = 14;public final Job.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Job.Builder>public final Job.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Job.Builder>Copyright © 2025 Google LLC. All rights reserved.