Class Job.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Job.Builder>
com.google.cloud.batch.v1alpha.Job.Builder
All Implemented Interfaces:
JobOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Job

public static final class Job.Builder extends com.google.protobuf.GeneratedMessage.Builder<Job.Builder> implements JobOrBuilder
 The Cloud Batch Job description.
 
Protobuf type google.cloud.batch.v1alpha.Job
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Job.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Job.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Job.Builder>
    • clear

      public Job.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Job.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Job.Builder>
    • getDefaultInstanceForType

      public Job getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Job build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Job buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Job.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Job.Builder>
    • mergeFrom

      public Job.Builder mergeFrom(Job other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Job.Builder>
    • mergeFrom

      public Job.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Job.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Output only. Job name.
       For example: "projects/123456/locations/us-central1/jobs/job01".
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface JobOrBuilder
      Returns:
      The name.
    • getNameBytes

      public 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];
      Specified by:
      getNameBytes in interface JobOrBuilder
      Returns:
      The bytes for name.
    • setName

      public 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];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      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];
      Returns:
      This builder for chaining.
    • setNameBytes

      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];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getUid

      public String getUid()
       Output only. A system generated unique ID for the Job.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUid in interface JobOrBuilder
      Returns:
      The uid.
    • getUidBytes

      public com.google.protobuf.ByteString getUidBytes()
       Output only. A system generated unique ID for the Job.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUidBytes in interface JobOrBuilder
      Returns:
      The bytes for uid.
    • setUid

      public Job.Builder setUid(String value)
       Output only. A system generated unique ID for the Job.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The uid to set.
      Returns:
      This builder for chaining.
    • clearUid

      public Job.Builder clearUid()
       Output only. A system generated unique ID for the Job.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setUidBytes

      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];
      Parameters:
      value - The bytes for uid to set.
      Returns:
      This builder for chaining.
    • getPriority

      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;
      Specified by:
      getPriority in interface JobOrBuilder
      Returns:
      The priority.
    • setPriority

      public 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;
      Parameters:
      value - The priority to set.
      Returns:
      This builder for chaining.
    • clearPriority

      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;
      Returns:
      This builder for chaining.
    • getTaskGroupsList

      public List<TaskGroup> 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];
      Specified by:
      getTaskGroupsList in interface JobOrBuilder
    • getTaskGroupsCount

      public 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];
      Specified by:
      getTaskGroupsCount in interface JobOrBuilder
    • getTaskGroups

      public TaskGroup getTaskGroups(int index)
       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];
      Specified by:
      getTaskGroups in interface JobOrBuilder
    • setTaskGroups

      public Job.Builder setTaskGroups(int index, TaskGroup value)
       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];
    • setTaskGroups

      public Job.Builder setTaskGroups(int index, TaskGroup.Builder builderForValue)
       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];
    • addTaskGroups

      public Job.Builder addTaskGroups(TaskGroup value)
       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];
    • addTaskGroups

      public Job.Builder addTaskGroups(int index, TaskGroup value)
       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];
    • addTaskGroups

      public Job.Builder addTaskGroups(TaskGroup.Builder builderForValue)
       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];
    • addTaskGroups

      public Job.Builder addTaskGroups(int index, TaskGroup.Builder builderForValue)
       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];
    • addAllTaskGroups

      public Job.Builder addAllTaskGroups(Iterable<? extends TaskGroup> values)
       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];
    • clearTaskGroups

      public Job.Builder clearTaskGroups()
       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];
    • removeTaskGroups

      public Job.Builder removeTaskGroups(int index)
       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];
    • getTaskGroupsBuilder

      public TaskGroup.Builder getTaskGroupsBuilder(int index)
       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

      public TaskGroupOrBuilder getTaskGroupsOrBuilder(int index)
       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];
      Specified by:
      getTaskGroupsOrBuilder in interface JobOrBuilder
    • getTaskGroupsOrBuilderList

      public 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];
      Specified by:
      getTaskGroupsOrBuilderList in interface JobOrBuilder
    • addTaskGroupsBuilder

      public TaskGroup.Builder addTaskGroupsBuilder()
       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];
    • addTaskGroupsBuilder

      public TaskGroup.Builder addTaskGroupsBuilder(int index)
       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];
    • getTaskGroupsBuilderList

      public List<TaskGroup.Builder> getTaskGroupsBuilderList()
       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

      public int getSchedulingPolicyValue()
       Scheduling policy for TaskGroups in the job.
       
      .google.cloud.batch.v1alpha.Job.SchedulingPolicy scheduling_policy = 5;
      Specified by:
      getSchedulingPolicyValue in interface JobOrBuilder
      Returns:
      The enum numeric value on the wire for schedulingPolicy.
    • setSchedulingPolicyValue

      public Job.Builder setSchedulingPolicyValue(int value)
       Scheduling policy for TaskGroups in the job.
       
      .google.cloud.batch.v1alpha.Job.SchedulingPolicy scheduling_policy = 5;
      Parameters:
      value - The enum numeric value on the wire for schedulingPolicy to set.
      Returns:
      This builder for chaining.
    • getSchedulingPolicy

      public Job.SchedulingPolicy getSchedulingPolicy()
       Scheduling policy for TaskGroups in the job.
       
      .google.cloud.batch.v1alpha.Job.SchedulingPolicy scheduling_policy = 5;
      Specified by:
      getSchedulingPolicy in interface JobOrBuilder
      Returns:
      The schedulingPolicy.
    • setSchedulingPolicy

      public Job.Builder setSchedulingPolicy(Job.SchedulingPolicy value)
       Scheduling policy for TaskGroups in the job.
       
      .google.cloud.batch.v1alpha.Job.SchedulingPolicy scheduling_policy = 5;
      Parameters:
      value - The schedulingPolicy to set.
      Returns:
      This builder for chaining.
    • clearSchedulingPolicy

      public Job.Builder clearSchedulingPolicy()
       Scheduling policy for TaskGroups in the job.
       
      .google.cloud.batch.v1alpha.Job.SchedulingPolicy scheduling_policy = 5;
      Returns:
      This builder for chaining.
    • getDependenciesList

      public 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;
      Specified by:
      getDependenciesList in interface JobOrBuilder
    • getDependenciesCount

      public 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;
      Specified by:
      getDependenciesCount in interface JobOrBuilder
    • getDependencies

      public JobDependency getDependencies(int index)
       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;
      Specified by:
      getDependencies in interface JobOrBuilder
    • setDependencies

      public Job.Builder setDependencies(int index, JobDependency value)
       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;
    • setDependencies

      public Job.Builder setDependencies(int index, JobDependency.Builder builderForValue)
       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;
    • addDependencies

      public Job.Builder addDependencies(JobDependency value)
       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;
    • addDependencies

      public Job.Builder addDependencies(int index, JobDependency value)
       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;
    • addDependencies

      public Job.Builder addDependencies(JobDependency.Builder builderForValue)
       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;
    • addDependencies

      public Job.Builder addDependencies(int index, JobDependency.Builder builderForValue)
       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;
    • addAllDependencies

      public Job.Builder addAllDependencies(Iterable<? extends JobDependency> values)
       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;
    • clearDependencies

      public Job.Builder clearDependencies()
       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;
    • removeDependencies

      public Job.Builder removeDependencies(int index)
       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;
    • getDependenciesBuilder

      public JobDependency.Builder getDependenciesBuilder(int index)
       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

      public JobDependencyOrBuilder getDependenciesOrBuilder(int index)
       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;
      Specified by:
      getDependenciesOrBuilder in interface JobOrBuilder
    • getDependenciesOrBuilderList

      public 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;
      Specified by:
      getDependenciesOrBuilderList in interface JobOrBuilder
    • addDependenciesBuilder

      public JobDependency.Builder addDependenciesBuilder()
       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;
    • addDependenciesBuilder

      public JobDependency.Builder addDependenciesBuilder(int index)
       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;
    • getDependenciesBuilderList

      public List<JobDependency.Builder> getDependenciesBuilderList()
       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

      public boolean hasAllocationPolicy()
       Compute resource allocation for all TaskGroups in the Job.
       
      .google.cloud.batch.v1alpha.AllocationPolicy allocation_policy = 7;
      Specified by:
      hasAllocationPolicy in interface JobOrBuilder
      Returns:
      Whether the allocationPolicy field is set.
    • getAllocationPolicy

      public AllocationPolicy getAllocationPolicy()
       Compute resource allocation for all TaskGroups in the Job.
       
      .google.cloud.batch.v1alpha.AllocationPolicy allocation_policy = 7;
      Specified by:
      getAllocationPolicy in interface JobOrBuilder
      Returns:
      The allocationPolicy.
    • setAllocationPolicy

      public Job.Builder setAllocationPolicy(AllocationPolicy value)
       Compute resource allocation for all TaskGroups in the Job.
       
      .google.cloud.batch.v1alpha.AllocationPolicy allocation_policy = 7;
    • setAllocationPolicy

      public Job.Builder setAllocationPolicy(AllocationPolicy.Builder builderForValue)
       Compute resource allocation for all TaskGroups in the Job.
       
      .google.cloud.batch.v1alpha.AllocationPolicy allocation_policy = 7;
    • mergeAllocationPolicy

      public Job.Builder mergeAllocationPolicy(AllocationPolicy value)
       Compute resource allocation for all TaskGroups in the Job.
       
      .google.cloud.batch.v1alpha.AllocationPolicy allocation_policy = 7;
    • clearAllocationPolicy

      public Job.Builder clearAllocationPolicy()
       Compute resource allocation for all TaskGroups in the Job.
       
      .google.cloud.batch.v1alpha.AllocationPolicy allocation_policy = 7;
    • getAllocationPolicyBuilder

      public AllocationPolicy.Builder getAllocationPolicyBuilder()
       Compute resource allocation for all TaskGroups in the Job.
       
      .google.cloud.batch.v1alpha.AllocationPolicy allocation_policy = 7;
    • getAllocationPolicyOrBuilder

      public AllocationPolicyOrBuilder getAllocationPolicyOrBuilder()
       Compute resource allocation for all TaskGroups in the Job.
       
      .google.cloud.batch.v1alpha.AllocationPolicy allocation_policy = 7;
      Specified by:
      getAllocationPolicyOrBuilder in interface JobOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: JobOrBuilder
       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;
      Specified by:
      getLabelsCount in interface JobOrBuilder
    • containsLabels

      public 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;
      Specified by:
      containsLabels in interface JobOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface JobOrBuilder
    • getLabelsMap

      public 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;
      Specified by:
      getLabelsMap in interface JobOrBuilder
    • getLabelsOrDefault

      public 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;
      Specified by:
      getLabelsOrDefault in interface JobOrBuilder
    • getLabelsOrThrow

      public 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;
      Specified by:
      getLabelsOrThrow in interface JobOrBuilder
    • clearLabels

      public Job.Builder clearLabels()
    • removeLabels

      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;
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      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;
    • putAllLabels

      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;
    • hasStatus

      public 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];
      Specified by:
      hasStatus in interface JobOrBuilder
      Returns:
      Whether the status field is set.
    • getStatus

      public 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];
      Specified by:
      getStatus in interface JobOrBuilder
      Returns:
      The status.
    • setStatus

      public Job.Builder setStatus(JobStatus value)
       Output only. Job status. It is read only for users.
       
      .google.cloud.batch.v1alpha.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setStatus

      public Job.Builder setStatus(JobStatus.Builder builderForValue)
       Output only. Job status. It is read only for users.
       
      .google.cloud.batch.v1alpha.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeStatus

      public Job.Builder mergeStatus(JobStatus value)
       Output only. Job status. It is read only for users.
       
      .google.cloud.batch.v1alpha.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearStatus

      public Job.Builder clearStatus()
       Output only. Job status. It is read only for users.
       
      .google.cloud.batch.v1alpha.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getStatusBuilder

      public JobStatus.Builder getStatusBuilder()
       Output only. Job status. It is read only for users.
       
      .google.cloud.batch.v1alpha.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getStatusOrBuilder

      public 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];
      Specified by:
      getStatusOrBuilder in interface JobOrBuilder
    • hasNotification

      @Deprecated public boolean hasNotification()
      Deprecated.
      google.cloud.batch.v1alpha.Job.notification is deprecated. See google/cloud/batch/v1alpha/job.proto;l=98
       Deprecated: please use notifications instead.
       
      .google.cloud.batch.v1alpha.JobNotification notification = 10 [deprecated = true];
      Specified by:
      hasNotification in interface JobOrBuilder
      Returns:
      Whether the notification field is set.
    • getNotification

      @Deprecated public JobNotification getNotification()
      Deprecated.
      google.cloud.batch.v1alpha.Job.notification is deprecated. See google/cloud/batch/v1alpha/job.proto;l=98
       Deprecated: please use notifications instead.
       
      .google.cloud.batch.v1alpha.JobNotification notification = 10 [deprecated = true];
      Specified by:
      getNotification in interface JobOrBuilder
      Returns:
      The notification.
    • setNotification

      @Deprecated public Job.Builder setNotification(JobNotification value)
      Deprecated.
       Deprecated: please use notifications instead.
       
      .google.cloud.batch.v1alpha.JobNotification notification = 10 [deprecated = true];
    • setNotification

      @Deprecated public Job.Builder setNotification(JobNotification.Builder builderForValue)
      Deprecated.
       Deprecated: please use notifications instead.
       
      .google.cloud.batch.v1alpha.JobNotification notification = 10 [deprecated = true];
    • mergeNotification

      @Deprecated public Job.Builder mergeNotification(JobNotification value)
      Deprecated.
       Deprecated: please use notifications instead.
       
      .google.cloud.batch.v1alpha.JobNotification notification = 10 [deprecated = true];
    • clearNotification

      @Deprecated public Job.Builder clearNotification()
      Deprecated.
       Deprecated: please use notifications instead.
       
      .google.cloud.batch.v1alpha.JobNotification notification = 10 [deprecated = true];
    • getNotificationBuilder

      @Deprecated public JobNotification.Builder getNotificationBuilder()
      Deprecated.
       Deprecated: please use notifications instead.
       
      .google.cloud.batch.v1alpha.JobNotification notification = 10 [deprecated = true];
    • getNotificationOrBuilder

      @Deprecated public JobNotificationOrBuilder getNotificationOrBuilder()
      Deprecated.
       Deprecated: please use notifications instead.
       
      .google.cloud.batch.v1alpha.JobNotification notification = 10 [deprecated = true];
      Specified by:
      getNotificationOrBuilder in interface JobOrBuilder
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. When the Job was created.
       
      .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface JobOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. When the Job was created.
       
      .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface JobOrBuilder
      Returns:
      The createTime.
    • setCreateTime

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

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

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

      public Job.Builder clearCreateTime()
       Output only. When the Job was created.
       
      .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

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

      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];
      Specified by:
      getCreateTimeOrBuilder in interface JobOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The last time the Job was updated.
       
      .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface JobOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public 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];
      Specified by:
      getUpdateTime in interface JobOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

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

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

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

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

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

      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];
      Specified by:
      getUpdateTimeOrBuilder in interface JobOrBuilder
    • hasLogsPolicy

      public boolean hasLogsPolicy()
       Log preservation policy for the Job.
       
      .google.cloud.batch.v1alpha.LogsPolicy logs_policy = 13;
      Specified by:
      hasLogsPolicy in interface JobOrBuilder
      Returns:
      Whether the logsPolicy field is set.
    • getLogsPolicy

      public LogsPolicy getLogsPolicy()
       Log preservation policy for the Job.
       
      .google.cloud.batch.v1alpha.LogsPolicy logs_policy = 13;
      Specified by:
      getLogsPolicy in interface JobOrBuilder
      Returns:
      The logsPolicy.
    • setLogsPolicy

      public Job.Builder setLogsPolicy(LogsPolicy value)
       Log preservation policy for the Job.
       
      .google.cloud.batch.v1alpha.LogsPolicy logs_policy = 13;
    • setLogsPolicy

      public Job.Builder setLogsPolicy(LogsPolicy.Builder builderForValue)
       Log preservation policy for the Job.
       
      .google.cloud.batch.v1alpha.LogsPolicy logs_policy = 13;
    • mergeLogsPolicy

      public Job.Builder mergeLogsPolicy(LogsPolicy value)
       Log preservation policy for the Job.
       
      .google.cloud.batch.v1alpha.LogsPolicy logs_policy = 13;
    • clearLogsPolicy

      public Job.Builder clearLogsPolicy()
       Log preservation policy for the Job.
       
      .google.cloud.batch.v1alpha.LogsPolicy logs_policy = 13;
    • getLogsPolicyBuilder

      public LogsPolicy.Builder getLogsPolicyBuilder()
       Log preservation policy for the Job.
       
      .google.cloud.batch.v1alpha.LogsPolicy logs_policy = 13;
    • getLogsPolicyOrBuilder

      public LogsPolicyOrBuilder getLogsPolicyOrBuilder()
       Log preservation policy for the Job.
       
      .google.cloud.batch.v1alpha.LogsPolicy logs_policy = 13;
      Specified by:
      getLogsPolicyOrBuilder in interface JobOrBuilder
    • getNotificationsList

      public List<JobNotification> getNotificationsList()
       Notification configurations.
       
      repeated .google.cloud.batch.v1alpha.JobNotification notifications = 14;
      Specified by:
      getNotificationsList in interface JobOrBuilder
    • getNotificationsCount

      public int getNotificationsCount()
       Notification configurations.
       
      repeated .google.cloud.batch.v1alpha.JobNotification notifications = 14;
      Specified by:
      getNotificationsCount in interface JobOrBuilder
    • getNotifications

      public JobNotification getNotifications(int index)
       Notification configurations.
       
      repeated .google.cloud.batch.v1alpha.JobNotification notifications = 14;
      Specified by:
      getNotifications in interface JobOrBuilder
    • setNotifications

      public Job.Builder setNotifications(int index, JobNotification value)
       Notification configurations.
       
      repeated .google.cloud.batch.v1alpha.JobNotification notifications = 14;
    • setNotifications

      public Job.Builder setNotifications(int index, JobNotification.Builder builderForValue)
       Notification configurations.
       
      repeated .google.cloud.batch.v1alpha.JobNotification notifications = 14;
    • addNotifications

      public Job.Builder addNotifications(JobNotification value)
       Notification configurations.
       
      repeated .google.cloud.batch.v1alpha.JobNotification notifications = 14;
    • addNotifications

      public Job.Builder addNotifications(int index, JobNotification value)
       Notification configurations.
       
      repeated .google.cloud.batch.v1alpha.JobNotification notifications = 14;
    • addNotifications

      public Job.Builder addNotifications(JobNotification.Builder builderForValue)
       Notification configurations.
       
      repeated .google.cloud.batch.v1alpha.JobNotification notifications = 14;
    • addNotifications

      public Job.Builder addNotifications(int index, JobNotification.Builder builderForValue)
       Notification configurations.
       
      repeated .google.cloud.batch.v1alpha.JobNotification notifications = 14;
    • addAllNotifications

      public Job.Builder addAllNotifications(Iterable<? extends JobNotification> values)
       Notification configurations.
       
      repeated .google.cloud.batch.v1alpha.JobNotification notifications = 14;
    • clearNotifications

      public Job.Builder clearNotifications()
       Notification configurations.
       
      repeated .google.cloud.batch.v1alpha.JobNotification notifications = 14;
    • removeNotifications

      public Job.Builder removeNotifications(int index)
       Notification configurations.
       
      repeated .google.cloud.batch.v1alpha.JobNotification notifications = 14;
    • getNotificationsBuilder

      public JobNotification.Builder getNotificationsBuilder(int index)
       Notification configurations.
       
      repeated .google.cloud.batch.v1alpha.JobNotification notifications = 14;
    • getNotificationsOrBuilder

      public JobNotificationOrBuilder getNotificationsOrBuilder(int index)
       Notification configurations.
       
      repeated .google.cloud.batch.v1alpha.JobNotification notifications = 14;
      Specified by:
      getNotificationsOrBuilder in interface JobOrBuilder
    • getNotificationsOrBuilderList

      public List<? extends JobNotificationOrBuilder> getNotificationsOrBuilderList()
       Notification configurations.
       
      repeated .google.cloud.batch.v1alpha.JobNotification notifications = 14;
      Specified by:
      getNotificationsOrBuilderList in interface JobOrBuilder
    • addNotificationsBuilder

      public JobNotification.Builder addNotificationsBuilder()
       Notification configurations.
       
      repeated .google.cloud.batch.v1alpha.JobNotification notifications = 14;
    • addNotificationsBuilder

      public JobNotification.Builder addNotificationsBuilder(int index)
       Notification configurations.
       
      repeated .google.cloud.batch.v1alpha.JobNotification notifications = 14;
    • getNotificationsBuilderList

      public List<JobNotification.Builder> getNotificationsBuilderList()
       Notification configurations.
       
      repeated .google.cloud.batch.v1alpha.JobNotification notifications = 14;