Class 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.GeneratedMessageV3.Builder<Job.Builder>
    implements JobOrBuilder
     The Cloud Batch Job description.
     
    Protobuf type google.cloud.batch.v1alpha.Job
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Job.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Job.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public Job.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Job.Builder>
      • setField

        public Job.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                    Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Job.Builder>
      • clearField

        public Job.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Job.Builder>
      • clearOneof

        public Job.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Job.Builder>
      • setRepeatedField

        public Job.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                            int index,
                                            Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Job.Builder>
      • addRepeatedField

        public Job.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                            Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Job.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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 (in UUID4 format) 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 (in UUID4 format) 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 (in UUID4 format) 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 (in UUID4 format) 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 (in UUID4 format) 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;
      • getLabelsCount

        public int getLabelsCount()
        Description copied from interface: JobOrBuilder
         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](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
         apply.
         Label names that start with "goog-" or "google-" are reserved.
         
        map<string, string> labels = 8;
        Specified by:
        getLabelsCount in interface JobOrBuilder
      • containsLabels

        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](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
         apply.
         Label names that start with "goog-" or "google-" are reserved.
         
        map<string, string> labels = 8;
        Specified by:
        containsLabels in interface JobOrBuilder
      • 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](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
         apply.
         Label names that start with "goog-" or "google-" are reserved.
         
        map<string, string> labels = 8;
        Specified by:
        getLabelsMap in interface JobOrBuilder
      • getLabelsOrDefault

        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](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
         apply.
         Label names that start with "goog-" or "google-" are reserved.
         
        map<string, string> labels = 8;
        Specified by:
        getLabelsOrDefault in interface JobOrBuilder
      • getLabelsOrThrow

        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](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
         apply.
         Label names that start with "goog-" or "google-" are reserved.
         
        map<string, string> labels = 8;
        Specified by:
        getLabelsOrThrow in interface JobOrBuilder
      • removeLabels

        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](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
         apply.
         Label names that start with "goog-" or "google-" are reserved.
         
        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)
         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](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
         apply.
         Label names that start with "goog-" or "google-" are reserved.
         
        map<string, string> labels = 8;
      • putAllLabels

        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](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
         apply.
         Label names that start with "goog-" or "google-" are reserved.
         
        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=96
         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=96
         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];
      • 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;
      • 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;
      • 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;
      • setUnknownFields

        public final Job.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Job.Builder>
      • mergeUnknownFields

        public final Job.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Job.Builder>