Class Job.Builder (0.1.0)

public static final class Job.Builder extends GeneratedMessageV3.Builder<Job.Builder> implements JobOrBuilder

The Cloud Batch Job description.

Protobuf type google.cloud.batch.v1.Job

Implements

JobOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllNotifications(Iterable<? extends JobNotification> values)

public Job.Builder addAllNotifications(Iterable<? extends JobNotification> values)

Notification configurations.

repeated .google.cloud.batch.v1.JobNotification notifications = 14;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.batch.v1.JobNotification>
Returns
TypeDescription
Job.Builder

addAllTaskGroups(Iterable<? extends TaskGroup> values)

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];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.batch.v1.TaskGroup>
Returns
TypeDescription
Job.Builder

addNotifications(JobNotification value)

public Job.Builder addNotifications(JobNotification value)

Notification configurations.

repeated .google.cloud.batch.v1.JobNotification notifications = 14;

Parameter
NameDescription
valueJobNotification
Returns
TypeDescription
Job.Builder

addNotifications(JobNotification.Builder builderForValue)

public Job.Builder addNotifications(JobNotification.Builder builderForValue)

Notification configurations.

repeated .google.cloud.batch.v1.JobNotification notifications = 14;

Parameter
NameDescription
builderForValueJobNotification.Builder
Returns
TypeDescription
Job.Builder

addNotifications(int index, JobNotification value)

public Job.Builder addNotifications(int index, JobNotification value)

Notification configurations.

repeated .google.cloud.batch.v1.JobNotification notifications = 14;

Parameters
NameDescription
indexint
valueJobNotification
Returns
TypeDescription
Job.Builder

addNotifications(int index, JobNotification.Builder builderForValue)

public Job.Builder addNotifications(int index, JobNotification.Builder builderForValue)

Notification configurations.

repeated .google.cloud.batch.v1.JobNotification notifications = 14;

Parameters
NameDescription
indexint
builderForValueJobNotification.Builder
Returns
TypeDescription
Job.Builder

addNotificationsBuilder()

public JobNotification.Builder addNotificationsBuilder()

Notification configurations.

repeated .google.cloud.batch.v1.JobNotification notifications = 14;

Returns
TypeDescription
JobNotification.Builder

addNotificationsBuilder(int index)

public JobNotification.Builder addNotificationsBuilder(int index)

Notification configurations.

repeated .google.cloud.batch.v1.JobNotification notifications = 14;

Parameter
NameDescription
indexint
Returns
TypeDescription
JobNotification.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Job.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Job.Builder
Overrides

addTaskGroups(TaskGroup value)

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];

Parameter
NameDescription
valueTaskGroup
Returns
TypeDescription
Job.Builder

addTaskGroups(TaskGroup.Builder builderForValue)

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];

Parameter
NameDescription
builderForValueTaskGroup.Builder
Returns
TypeDescription
Job.Builder

addTaskGroups(int index, TaskGroup value)

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];

Parameters
NameDescription
indexint
valueTaskGroup
Returns
TypeDescription
Job.Builder

addTaskGroups(int index, TaskGroup.Builder builderForValue)

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];

Parameters
NameDescription
indexint
builderForValueTaskGroup.Builder
Returns
TypeDescription
Job.Builder

addTaskGroupsBuilder()

public 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];

Returns
TypeDescription
TaskGroup.Builder

addTaskGroupsBuilder(int index)

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];

Parameter
NameDescription
indexint
Returns
TypeDescription
TaskGroup.Builder

build()

public Job build()
Returns
TypeDescription
Job

buildPartial()

public Job buildPartial()
Returns
TypeDescription
Job

clear()

public Job.Builder clear()
Returns
TypeDescription
Job.Builder
Overrides

clearAllocationPolicy()

public Job.Builder clearAllocationPolicy()

Compute resource allocation for all TaskGroups in the Job.

.google.cloud.batch.v1.AllocationPolicy allocation_policy = 7;

Returns
TypeDescription
Job.Builder

clearCreateTime()

public Job.Builder clearCreateTime()

When the Job was created.

.google.protobuf.Timestamp create_time = 11;

Returns
TypeDescription
Job.Builder

clearField(Descriptors.FieldDescriptor field)

public Job.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Job.Builder
Overrides

clearLabels()

public Job.Builder clearLabels()
Returns
TypeDescription
Job.Builder

clearLogsPolicy()

public Job.Builder clearLogsPolicy()

Log preservation policy for the Job.

.google.cloud.batch.v1.LogsPolicy logs_policy = 13;

Returns
TypeDescription
Job.Builder

clearName()

public Job.Builder clearName()

Job name. It must have the format of "projects/*/locations/*/jobs/*". For example: "projects/123456/locations/us-west1/jobs/job01".

string name = 1;

Returns
TypeDescription
Job.Builder

This builder for chaining.

clearNotifications()

public Job.Builder clearNotifications()

Notification configurations.

repeated .google.cloud.batch.v1.JobNotification notifications = 14;

Returns
TypeDescription
Job.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Job.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Job.Builder
Overrides

clearPriority()

public Job.Builder clearPriority()

Priority of the Job. The valid value range is [0, 100). A job with higher priority value will be scheduled to run earlier.

int64 priority = 3;

Returns
TypeDescription
Job.Builder

This builder for chaining.

clearStatus()

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];

Returns
TypeDescription
Job.Builder

clearTaskGroups()

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];

Returns
TypeDescription
Job.Builder

clearUid()

public Job.Builder clearUid()

Output only. A system generated unique ID (in UUID4 format) for the Job.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Job.Builder

This builder for chaining.

clearUpdateTime()

public Job.Builder clearUpdateTime()

The last time the Job was updated.

.google.protobuf.Timestamp update_time = 12;

Returns
TypeDescription
Job.Builder

clone()

public Job.Builder clone()
Returns
TypeDescription
Job.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

Labels for the Job. Labels could be user provided or system generated. For example, "labels": { "department": "finance", "environment": "test" } You can assign up to 64 labels. Google Compute Engine label restrictions apply. Label names that start with "goog-" or "google-" are reserved.

map<string, string> labels = 8;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getAllocationPolicy()

public AllocationPolicy getAllocationPolicy()

Compute resource allocation for all TaskGroups in the Job.

.google.cloud.batch.v1.AllocationPolicy allocation_policy = 7;

Returns
TypeDescription
AllocationPolicy

The allocationPolicy.

getAllocationPolicyBuilder()

public AllocationPolicy.Builder getAllocationPolicyBuilder()

Compute resource allocation for all TaskGroups in the Job.

.google.cloud.batch.v1.AllocationPolicy allocation_policy = 7;

Returns
TypeDescription
AllocationPolicy.Builder

getAllocationPolicyOrBuilder()

public AllocationPolicyOrBuilder getAllocationPolicyOrBuilder()

Compute resource allocation for all TaskGroups in the Job.

.google.cloud.batch.v1.AllocationPolicy allocation_policy = 7;

Returns
TypeDescription
AllocationPolicyOrBuilder

getCreateTime()

public Timestamp getCreateTime()

When the Job was created.

.google.protobuf.Timestamp create_time = 11;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

When the Job was created.

.google.protobuf.Timestamp create_time = 11;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

When the Job was created.

.google.protobuf.Timestamp create_time = 11;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Job getDefaultInstanceForType()
Returns
TypeDescription
Job

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels for the Job. Labels could be user provided or system generated. For example, "labels": { "department": "finance", "environment": "test" } You can assign up to 64 labels. Google Compute Engine label restrictions apply. Label names that start with "goog-" or "google-" are reserved.

map<string, string> labels = 8;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels for the Job. Labels could be user provided or system generated. For example, "labels": { "department": "finance", "environment": "test" } You can assign up to 64 labels. Google Compute Engine label restrictions apply. Label names that start with "goog-" or "google-" are reserved.

map<string, string> labels = 8;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Labels for the Job. Labels could be user provided or system generated. For example, "labels": { "department": "finance", "environment": "test" } You can assign up to 64 labels. Google Compute Engine label restrictions apply. Label names that start with "goog-" or "google-" are reserved.

map<string, string> labels = 8;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels for the Job. Labels could be user provided or system generated. For example, "labels": { "department": "finance", "environment": "test" } You can assign up to 64 labels. Google Compute Engine label restrictions apply. Label names that start with "goog-" or "google-" are reserved.

map<string, string> labels = 8;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getLogsPolicy()

public LogsPolicy getLogsPolicy()

Log preservation policy for the Job.

.google.cloud.batch.v1.LogsPolicy logs_policy = 13;

Returns
TypeDescription
LogsPolicy

The logsPolicy.

getLogsPolicyBuilder()

public LogsPolicy.Builder getLogsPolicyBuilder()

Log preservation policy for the Job.

.google.cloud.batch.v1.LogsPolicy logs_policy = 13;

Returns
TypeDescription
LogsPolicy.Builder

getLogsPolicyOrBuilder()

public LogsPolicyOrBuilder getLogsPolicyOrBuilder()

Log preservation policy for the Job.

.google.cloud.batch.v1.LogsPolicy logs_policy = 13;

Returns
TypeDescription
LogsPolicyOrBuilder

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

Job name. It must have the format of "projects/*/locations/*/jobs/*". For example: "projects/123456/locations/us-west1/jobs/job01".

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Job name. It must have the format of "projects/*/locations/*/jobs/*". For example: "projects/123456/locations/us-west1/jobs/job01".

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getNotifications(int index)

public JobNotification getNotifications(int index)

Notification configurations.

repeated .google.cloud.batch.v1.JobNotification notifications = 14;

Parameter
NameDescription
indexint
Returns
TypeDescription
JobNotification

getNotificationsBuilder(int index)

public JobNotification.Builder getNotificationsBuilder(int index)

Notification configurations.

repeated .google.cloud.batch.v1.JobNotification notifications = 14;

Parameter
NameDescription
indexint
Returns
TypeDescription
JobNotification.Builder

getNotificationsBuilderList()

public List<JobNotification.Builder> getNotificationsBuilderList()

Notification configurations.

repeated .google.cloud.batch.v1.JobNotification notifications = 14;

Returns
TypeDescription
List<Builder>

getNotificationsCount()

public int getNotificationsCount()

Notification configurations.

repeated .google.cloud.batch.v1.JobNotification notifications = 14;

Returns
TypeDescription
int

getNotificationsList()

public List<JobNotification> getNotificationsList()

Notification configurations.

repeated .google.cloud.batch.v1.JobNotification notifications = 14;

Returns
TypeDescription
List<JobNotification>

getNotificationsOrBuilder(int index)

public JobNotificationOrBuilder getNotificationsOrBuilder(int index)

Notification configurations.

repeated .google.cloud.batch.v1.JobNotification notifications = 14;

Parameter
NameDescription
indexint
Returns
TypeDescription
JobNotificationOrBuilder

getNotificationsOrBuilderList()

public List<? extends JobNotificationOrBuilder> getNotificationsOrBuilderList()

Notification configurations.

repeated .google.cloud.batch.v1.JobNotification notifications = 14;

Returns
TypeDescription
List<? extends com.google.cloud.batch.v1.JobNotificationOrBuilder>

getPriority()

public long getPriority()

Priority of the Job. The valid value range is [0, 100). A job with higher priority value will be scheduled to run earlier.

int64 priority = 3;

Returns
TypeDescription
long

The priority.

getStatus()

public 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];

Returns
TypeDescription
JobStatus

The status.

getStatusBuilder()

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];

Returns
TypeDescription
JobStatus.Builder

getStatusOrBuilder()

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];

Returns
TypeDescription
JobStatusOrBuilder

getTaskGroups(int index)

public 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];

Parameter
NameDescription
indexint
Returns
TypeDescription
TaskGroup

getTaskGroupsBuilder(int index)

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];

Parameter
NameDescription
indexint
Returns
TypeDescription
TaskGroup.Builder

getTaskGroupsBuilderList()

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];

Returns
TypeDescription
List<Builder>

getTaskGroupsCount()

public 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];

Returns
TypeDescription
int

getTaskGroupsList()

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];

Returns
TypeDescription
List<TaskGroup>

getTaskGroupsOrBuilder(int index)

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];

Parameter
NameDescription
indexint
Returns
TypeDescription
TaskGroupOrBuilder

getTaskGroupsOrBuilderList()

public 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];

Returns
TypeDescription
List<? extends com.google.cloud.batch.v1.TaskGroupOrBuilder>

getUid()

public String getUid()

Output only. A system generated unique ID (in UUID4 format) for the Job.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The uid.

getUidBytes()

public ByteString getUidBytes()

Output only. A system generated unique ID (in UUID4 format) for the Job.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for uid.

getUpdateTime()

public Timestamp getUpdateTime()

The last time the Job was updated.

.google.protobuf.Timestamp update_time = 12;

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

The last time the Job was updated.

.google.protobuf.Timestamp update_time = 12;

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

The last time the Job was updated.

.google.protobuf.Timestamp update_time = 12;

Returns
TypeDescription
TimestampOrBuilder

hasAllocationPolicy()

public boolean hasAllocationPolicy()

Compute resource allocation for all TaskGroups in the Job.

.google.cloud.batch.v1.AllocationPolicy allocation_policy = 7;

Returns
TypeDescription
boolean

Whether the allocationPolicy field is set.

hasCreateTime()

public boolean hasCreateTime()

When the Job was created.

.google.protobuf.Timestamp create_time = 11;

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasLogsPolicy()

public boolean hasLogsPolicy()

Log preservation policy for the Job.

.google.cloud.batch.v1.LogsPolicy logs_policy = 13;

Returns
TypeDescription
boolean

Whether the logsPolicy field is set.

hasStatus()

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];

Returns
TypeDescription
boolean

Whether the status field is set.

hasUpdateTime()

public boolean hasUpdateTime()

The last time the Job was updated.

.google.protobuf.Timestamp update_time = 12;

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAllocationPolicy(AllocationPolicy value)

public Job.Builder mergeAllocationPolicy(AllocationPolicy value)

Compute resource allocation for all TaskGroups in the Job.

.google.cloud.batch.v1.AllocationPolicy allocation_policy = 7;

Parameter
NameDescription
valueAllocationPolicy
Returns
TypeDescription
Job.Builder

mergeCreateTime(Timestamp value)

public Job.Builder mergeCreateTime(Timestamp value)

When the Job was created.

.google.protobuf.Timestamp create_time = 11;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Job.Builder

mergeFrom(Job other)

public Job.Builder mergeFrom(Job other)
Parameter
NameDescription
otherJob
Returns
TypeDescription
Job.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Job.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Job.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Job.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Job.Builder
Overrides

mergeLogsPolicy(LogsPolicy value)

public Job.Builder mergeLogsPolicy(LogsPolicy value)

Log preservation policy for the Job.

.google.cloud.batch.v1.LogsPolicy logs_policy = 13;

Parameter
NameDescription
valueLogsPolicy
Returns
TypeDescription
Job.Builder

mergeStatus(JobStatus value)

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];

Parameter
NameDescription
valueJobStatus
Returns
TypeDescription
Job.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Job.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Job.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Job.Builder mergeUpdateTime(Timestamp value)

The last time the Job was updated.

.google.protobuf.Timestamp update_time = 12;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Job.Builder

putAllLabels(Map<String,String> values)

public Job.Builder putAllLabels(Map<String,String> values)

Labels for the Job. Labels could be user provided or system generated. For example, "labels": { "department": "finance", "environment": "test" } You can assign up to 64 labels. Google Compute Engine label restrictions apply. Label names that start with "goog-" or "google-" are reserved.

map<string, string> labels = 8;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
Job.Builder

putLabels(String key, String value)

public Job.Builder putLabels(String key, String value)

Labels for the Job. Labels could be user provided or system generated. For example, "labels": { "department": "finance", "environment": "test" } You can assign up to 64 labels. Google Compute Engine label restrictions apply. Label names that start with "goog-" or "google-" are reserved.

map<string, string> labels = 8;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
Job.Builder

removeLabels(String key)

public Job.Builder removeLabels(String key)

Labels for the Job. Labels could be user provided or system generated. For example, "labels": { "department": "finance", "environment": "test" } You can assign up to 64 labels. Google Compute Engine label restrictions apply. Label names that start with "goog-" or "google-" are reserved.

map<string, string> labels = 8;

Parameter
NameDescription
keyString
Returns
TypeDescription
Job.Builder

removeNotifications(int index)

public Job.Builder removeNotifications(int index)

Notification configurations.

repeated .google.cloud.batch.v1.JobNotification notifications = 14;

Parameter
NameDescription
indexint
Returns
TypeDescription
Job.Builder

removeTaskGroups(int index)

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];

Parameter
NameDescription
indexint
Returns
TypeDescription
Job.Builder

setAllocationPolicy(AllocationPolicy value)

public Job.Builder setAllocationPolicy(AllocationPolicy value)

Compute resource allocation for all TaskGroups in the Job.

.google.cloud.batch.v1.AllocationPolicy allocation_policy = 7;

Parameter
NameDescription
valueAllocationPolicy
Returns
TypeDescription
Job.Builder

setAllocationPolicy(AllocationPolicy.Builder builderForValue)

public Job.Builder setAllocationPolicy(AllocationPolicy.Builder builderForValue)

Compute resource allocation for all TaskGroups in the Job.

.google.cloud.batch.v1.AllocationPolicy allocation_policy = 7;

Parameter
NameDescription
builderForValueAllocationPolicy.Builder
Returns
TypeDescription
Job.Builder

setCreateTime(Timestamp value)

public Job.Builder setCreateTime(Timestamp value)

When the Job was created.

.google.protobuf.Timestamp create_time = 11;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Job.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Job.Builder setCreateTime(Timestamp.Builder builderForValue)

When the Job was created.

.google.protobuf.Timestamp create_time = 11;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Job.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Job.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Job.Builder
Overrides

setLogsPolicy(LogsPolicy value)

public Job.Builder setLogsPolicy(LogsPolicy value)

Log preservation policy for the Job.

.google.cloud.batch.v1.LogsPolicy logs_policy = 13;

Parameter
NameDescription
valueLogsPolicy
Returns
TypeDescription
Job.Builder

setLogsPolicy(LogsPolicy.Builder builderForValue)

public Job.Builder setLogsPolicy(LogsPolicy.Builder builderForValue)

Log preservation policy for the Job.

.google.cloud.batch.v1.LogsPolicy logs_policy = 13;

Parameter
NameDescription
builderForValueLogsPolicy.Builder
Returns
TypeDescription
Job.Builder

setName(String value)

public Job.Builder setName(String value)

Job name. It must have the format of "projects/*/locations/*/jobs/*". For example: "projects/123456/locations/us-west1/jobs/job01".

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Job.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Job.Builder setNameBytes(ByteString value)

Job name. It must have the format of "projects/*/locations/*/jobs/*". For example: "projects/123456/locations/us-west1/jobs/job01".

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Job.Builder

This builder for chaining.

setNotifications(int index, JobNotification value)

public Job.Builder setNotifications(int index, JobNotification value)

Notification configurations.

repeated .google.cloud.batch.v1.JobNotification notifications = 14;

Parameters
NameDescription
indexint
valueJobNotification
Returns
TypeDescription
Job.Builder

setNotifications(int index, JobNotification.Builder builderForValue)

public Job.Builder setNotifications(int index, JobNotification.Builder builderForValue)

Notification configurations.

repeated .google.cloud.batch.v1.JobNotification notifications = 14;

Parameters
NameDescription
indexint
builderForValueJobNotification.Builder
Returns
TypeDescription
Job.Builder

setPriority(long value)

public Job.Builder setPriority(long value)

Priority of the Job. The valid value range is [0, 100). A job with higher priority value will be scheduled to run earlier.

int64 priority = 3;

Parameter
NameDescription
valuelong

The priority to set.

Returns
TypeDescription
Job.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Job.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Job.Builder
Overrides

setStatus(JobStatus value)

public 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];

Parameter
NameDescription
valueJobStatus
Returns
TypeDescription
Job.Builder

setStatus(JobStatus.Builder builderForValue)

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];

Parameter
NameDescription
builderForValueJobStatus.Builder
Returns
TypeDescription
Job.Builder

setTaskGroups(int index, TaskGroup value)

public 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];

Parameters
NameDescription
indexint
valueTaskGroup
Returns
TypeDescription
Job.Builder

setTaskGroups(int index, TaskGroup.Builder builderForValue)

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];

Parameters
NameDescription
indexint
builderForValueTaskGroup.Builder
Returns
TypeDescription
Job.Builder

setUid(String value)

public Job.Builder setUid(String value)

Output only. A system generated unique ID (in UUID4 format) for the Job.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The uid to set.

Returns
TypeDescription
Job.Builder

This builder for chaining.

setUidBytes(ByteString value)

public Job.Builder setUidBytes(ByteString value)

Output only. A system generated unique ID (in UUID4 format) for the Job.

string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for uid to set.

Returns
TypeDescription
Job.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Job.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Job.Builder
Overrides

setUpdateTime(Timestamp value)

public Job.Builder setUpdateTime(Timestamp value)

The last time the Job was updated.

.google.protobuf.Timestamp update_time = 12;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Job.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Job.Builder setUpdateTime(Timestamp.Builder builderForValue)

The last time the Job was updated.

.google.protobuf.Timestamp update_time = 12;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Job.Builder