Package com.google.cloud.batch.v1alpha
Interface JobOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Job,Job.Builder
@Generated
public interface JobOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsLabels(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.Compute resource allocation for all TaskGroups in the Job.Compute resource allocation for all TaskGroups in the Job.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.getDependencies(int index) At least one of the dependencies must be satisfied before the Job is scheduled to run.intAt least one of the dependencies must be satisfied before the Job is scheduled to run.At least one of the dependencies must be satisfied before the Job is scheduled to run.getDependenciesOrBuilder(int index) At least one of the dependencies must be satisfied before the Job is scheduled to run.List<? extends JobDependencyOrBuilder>At least one of the dependencies must be satisfied before the Job is scheduled to run.Deprecated.intCustom 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.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.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.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.Log preservation policy for the Job.Log preservation policy for the Job.getName()Output only.com.google.protobuf.ByteStringOutput only.Deprecated.google.cloud.batch.v1alpha.Job.notification is deprecated.Deprecated.getNotifications(int index) Notification configurations.intNotification configurations.Notification configurations.getNotificationsOrBuilder(int index) Notification configurations.List<? extends JobNotificationOrBuilder>Notification configurations.longPriority of the Job.Scheduling policy for TaskGroups in the job.intScheduling policy for TaskGroups in the job.Output only.Output only.getTaskGroups(int index) Required.intRequired.Required.getTaskGroupsOrBuilder(int index) Required.List<? extends TaskGroupOrBuilder>Required.getUid()Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanCompute resource allocation for all TaskGroups in the Job.booleanOutput only.booleanLog preservation policy for the Job.booleanDeprecated.google.cloud.batch.v1alpha.Job.notification is deprecated.booleanOutput only.booleanOutput only.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getName
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:
- The name.
-
getNameBytes
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];- Returns:
- The bytes for name.
-
getUid
String getUid()Output only. A system generated unique ID for the Job.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The uid.
-
getUidBytes
com.google.protobuf.ByteString getUidBytes()Output only. A system generated unique ID for the Job.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The bytes for uid.
-
getPriority
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:
- The priority.
-
getTaskGroupsList
Required. TaskGroups in the Job. Only one TaskGroup is supported now.
repeated .google.cloud.batch.v1alpha.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; -
getTaskGroups
Required. TaskGroups in the Job. Only one TaskGroup is supported now.
repeated .google.cloud.batch.v1alpha.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; -
getTaskGroupsCount
int getTaskGroupsCount()Required. TaskGroups in the Job. Only one TaskGroup is supported now.
repeated .google.cloud.batch.v1alpha.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; -
getTaskGroupsOrBuilderList
List<? extends TaskGroupOrBuilder> getTaskGroupsOrBuilderList()Required. TaskGroups in the Job. Only one TaskGroup is supported now.
repeated .google.cloud.batch.v1alpha.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; -
getTaskGroupsOrBuilder
Required. TaskGroups in the Job. Only one TaskGroup is supported now.
repeated .google.cloud.batch.v1alpha.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED]; -
getSchedulingPolicyValue
int getSchedulingPolicyValue()Scheduling policy for TaskGroups in the job.
.google.cloud.batch.v1alpha.Job.SchedulingPolicy scheduling_policy = 5;- Returns:
- The enum numeric value on the wire for schedulingPolicy.
-
getSchedulingPolicy
Job.SchedulingPolicy getSchedulingPolicy()Scheduling policy for TaskGroups in the job.
.google.cloud.batch.v1alpha.Job.SchedulingPolicy scheduling_policy = 5;- Returns:
- The schedulingPolicy.
-
getDependenciesList
List<JobDependency> getDependenciesList()At least one of the dependencies must be satisfied before the Job is scheduled to run. Only one JobDependency is supported now. Not yet implemented.
repeated .google.cloud.batch.v1alpha.JobDependency dependencies = 6; -
getDependencies
At least one of the dependencies must be satisfied before the Job is scheduled to run. Only one JobDependency is supported now. Not yet implemented.
repeated .google.cloud.batch.v1alpha.JobDependency dependencies = 6; -
getDependenciesCount
int getDependenciesCount()At least one of the dependencies must be satisfied before the Job is scheduled to run. Only one JobDependency is supported now. Not yet implemented.
repeated .google.cloud.batch.v1alpha.JobDependency dependencies = 6; -
getDependenciesOrBuilderList
List<? extends JobDependencyOrBuilder> getDependenciesOrBuilderList()At least one of the dependencies must be satisfied before the Job is scheduled to run. Only one JobDependency is supported now. Not yet implemented.
repeated .google.cloud.batch.v1alpha.JobDependency dependencies = 6; -
getDependenciesOrBuilder
At least one of the dependencies must be satisfied before the Job is scheduled to run. Only one JobDependency is supported now. Not yet implemented.
repeated .google.cloud.batch.v1alpha.JobDependency dependencies = 6; -
hasAllocationPolicy
boolean hasAllocationPolicy()Compute resource allocation for all TaskGroups in the Job.
.google.cloud.batch.v1alpha.AllocationPolicy allocation_policy = 7;- Returns:
- Whether the allocationPolicy field is set.
-
getAllocationPolicy
AllocationPolicy getAllocationPolicy()Compute resource allocation for all TaskGroups in the Job.
.google.cloud.batch.v1alpha.AllocationPolicy allocation_policy = 7;- Returns:
- The allocationPolicy.
-
getAllocationPolicyOrBuilder
AllocationPolicyOrBuilder getAllocationPolicyOrBuilder()Compute resource allocation for all TaskGroups in the Job.
.google.cloud.batch.v1alpha.AllocationPolicy allocation_policy = 7; -
getLabelsCount
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. 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
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; -
getLabels
Deprecated.UsegetLabelsMap()instead. -
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; -
getLabelsOrDefault
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
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; -
hasStatus
boolean hasStatus()Output only. Job status. It is read only for users.
.google.cloud.batch.v1alpha.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the status field is set.
-
getStatus
JobStatus getStatus()Output only. Job status. It is read only for users.
.google.cloud.batch.v1alpha.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The status.
-
getStatusOrBuilder
JobStatusOrBuilder getStatusOrBuilder()Output only. Job status. It is read only for users.
.google.cloud.batch.v1alpha.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
hasNotification
Deprecated.google.cloud.batch.v1alpha.Job.notification is deprecated. See google/cloud/batch/v1alpha/job.proto;l=98Deprecated: please use notifications instead.
.google.cloud.batch.v1alpha.JobNotification notification = 10 [deprecated = true];- Returns:
- Whether the notification field is set.
-
getNotification
Deprecated.google.cloud.batch.v1alpha.Job.notification is deprecated. See google/cloud/batch/v1alpha/job.proto;l=98Deprecated: please use notifications instead.
.google.cloud.batch.v1alpha.JobNotification notification = 10 [deprecated = true];- Returns:
- The notification.
-
getNotificationOrBuilder
Deprecated.Deprecated: please use notifications instead.
.google.cloud.batch.v1alpha.JobNotification notification = 10 [deprecated = true]; -
hasCreateTime
boolean hasCreateTime()Output only. When the Job was created.
.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the createTime field is set.
-
getCreateTime
com.google.protobuf.Timestamp getCreateTime()Output only. When the Job was created.
.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The createTime.
-
getCreateTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. When the Job was created.
.google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
hasUpdateTime
boolean hasUpdateTime()Output only. The last time the Job was updated.
.google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
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];- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
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]; -
hasLogsPolicy
boolean hasLogsPolicy()Log preservation policy for the Job.
.google.cloud.batch.v1alpha.LogsPolicy logs_policy = 13;- Returns:
- Whether the logsPolicy field is set.
-
getLogsPolicy
LogsPolicy getLogsPolicy()Log preservation policy for the Job.
.google.cloud.batch.v1alpha.LogsPolicy logs_policy = 13;- Returns:
- The logsPolicy.
-
getLogsPolicyOrBuilder
LogsPolicyOrBuilder getLogsPolicyOrBuilder()Log preservation policy for the Job.
.google.cloud.batch.v1alpha.LogsPolicy logs_policy = 13; -
getNotificationsList
List<JobNotification> getNotificationsList()Notification configurations.
repeated .google.cloud.batch.v1alpha.JobNotification notifications = 14; -
getNotifications
Notification configurations.
repeated .google.cloud.batch.v1alpha.JobNotification notifications = 14; -
getNotificationsCount
int getNotificationsCount()Notification configurations.
repeated .google.cloud.batch.v1alpha.JobNotification notifications = 14; -
getNotificationsOrBuilderList
List<? extends JobNotificationOrBuilder> getNotificationsOrBuilderList()Notification configurations.
repeated .google.cloud.batch.v1alpha.JobNotification notifications = 14; -
getNotificationsOrBuilder
Notification configurations.
repeated .google.cloud.batch.v1alpha.JobNotification notifications = 14;
-