Interface JobOrBuilder (0.41.0)

public interface JobOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsLabels(String key)

public abstract 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 abstract AllocationPolicy getAllocationPolicy()

Compute resource allocation for all TaskGroups in the Job.

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

Returns
TypeDescription
AllocationPolicy

The allocationPolicy.

getAllocationPolicyOrBuilder()

public abstract AllocationPolicyOrBuilder getAllocationPolicyOrBuilder()

Compute resource allocation for all TaskGroups in the Job.

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

Returns
TypeDescription
AllocationPolicyOrBuilder

getCreateTime()

public abstract Timestamp getCreateTime()

Output only. When the Job was created.

.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeOrBuilder()

public abstract TimestampOrBuilder getCreateTimeOrBuilder()

Output only. When the Job was created.

.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getLabels() (deprecated)

public abstract Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public abstract 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 abstract 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 abstract 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 abstract 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 abstract LogsPolicy getLogsPolicy()

Log preservation policy for the Job.

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

Returns
TypeDescription
LogsPolicy

The logsPolicy.

getLogsPolicyOrBuilder()

public abstract LogsPolicyOrBuilder getLogsPolicyOrBuilder()

Log preservation policy for the Job.

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

Returns
TypeDescription
LogsPolicyOrBuilder

getName()

public abstract String getName()

Output only. Job name. For example: "projects/123456/locations/us-central1/jobs/job01".

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Output only. Job name. For example: "projects/123456/locations/us-central1/jobs/job01".

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for name.

getNotifications(int index)

public abstract JobNotification getNotifications(int index)

Notification configurations.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
JobNotification

getNotificationsCount()

public abstract int getNotificationsCount()

Notification configurations.

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

Returns
TypeDescription
int

getNotificationsList()

public abstract List<JobNotification> getNotificationsList()

Notification configurations.

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

Returns
TypeDescription
List<JobNotification>

getNotificationsOrBuilder(int index)

public abstract JobNotificationOrBuilder getNotificationsOrBuilder(int index)

Notification configurations.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
JobNotificationOrBuilder

getNotificationsOrBuilderList()

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

Returns
TypeDescription
long

The priority.

getStatus()

public abstract 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.

getStatusOrBuilder()

public abstract 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 abstract 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

getTaskGroupsCount()

public abstract 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 abstract 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 abstract 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 abstract 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 abstract String getUid()

Output only. A system generated unique ID for the Job.

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

Returns
TypeDescription
String

The uid.

getUidBytes()

public abstract ByteString getUidBytes()

Output only. A system generated unique ID for the Job.

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

Returns
TypeDescription
ByteString

The bytes for uid.

getUpdateTime()

public abstract Timestamp getUpdateTime()

Output only. The last time the Job was updated.

.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public abstract TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The last time the Job was updated.

.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

hasAllocationPolicy()

public abstract 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 abstract boolean hasCreateTime()

Output only. When the Job was created.

.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasLogsPolicy()

public abstract 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 abstract 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 abstract boolean hasUpdateTime()

Output only. The last time the Job was updated.

.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.