Class BatchCreateJobsRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BatchCreateJobsRequest.Builder>
com.google.cloud.talent.v4.BatchCreateJobsRequest.Builder
All Implemented Interfaces:
BatchCreateJobsRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
BatchCreateJobsRequest

public static final class BatchCreateJobsRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<BatchCreateJobsRequest.Builder> implements BatchCreateJobsRequestOrBuilder
 Request to create a batch of jobs.
 
Protobuf type google.cloud.talent.v4.BatchCreateJobsRequest
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<BatchCreateJobsRequest.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<BatchCreateJobsRequest.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<BatchCreateJobsRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public BatchCreateJobsRequest.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<BatchCreateJobsRequest.Builder>
    • mergeFrom

    • isInitialized

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

      public BatchCreateJobsRequest.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<BatchCreateJobsRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The resource name of the tenant under which the job is created.
      
       The format is "projects/{project_id}/tenants/{tenant_id}". For example,
       "projects/foo/tenants/bar".
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface BatchCreateJobsRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The resource name of the tenant under which the job is created.
      
       The format is "projects/{project_id}/tenants/{tenant_id}". For example,
       "projects/foo/tenants/bar".
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface BatchCreateJobsRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public BatchCreateJobsRequest.Builder setParent(String value)
       Required. The resource name of the tenant under which the job is created.
      
       The format is "projects/{project_id}/tenants/{tenant_id}". For example,
       "projects/foo/tenants/bar".
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public BatchCreateJobsRequest.Builder clearParent()
       Required. The resource name of the tenant under which the job is created.
      
       The format is "projects/{project_id}/tenants/{tenant_id}". For example,
       "projects/foo/tenants/bar".
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public BatchCreateJobsRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The resource name of the tenant under which the job is created.
      
       The format is "projects/{project_id}/tenants/{tenant_id}". For example,
       "projects/foo/tenants/bar".
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • getJobsList

      public List<Job> getJobsList()
       Required. The jobs to be created.
       A maximum of 200 jobs can be created in a batch.
       
      repeated .google.cloud.talent.v4.Job jobs = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getJobsList in interface BatchCreateJobsRequestOrBuilder
    • getJobsCount

      public int getJobsCount()
       Required. The jobs to be created.
       A maximum of 200 jobs can be created in a batch.
       
      repeated .google.cloud.talent.v4.Job jobs = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getJobsCount in interface BatchCreateJobsRequestOrBuilder
    • getJobs

      public Job getJobs(int index)
       Required. The jobs to be created.
       A maximum of 200 jobs can be created in a batch.
       
      repeated .google.cloud.talent.v4.Job jobs = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getJobs in interface BatchCreateJobsRequestOrBuilder
    • setJobs

      public BatchCreateJobsRequest.Builder setJobs(int index, Job value)
       Required. The jobs to be created.
       A maximum of 200 jobs can be created in a batch.
       
      repeated .google.cloud.talent.v4.Job jobs = 2 [(.google.api.field_behavior) = REQUIRED];
    • setJobs

      public BatchCreateJobsRequest.Builder setJobs(int index, Job.Builder builderForValue)
       Required. The jobs to be created.
       A maximum of 200 jobs can be created in a batch.
       
      repeated .google.cloud.talent.v4.Job jobs = 2 [(.google.api.field_behavior) = REQUIRED];
    • addJobs

      public BatchCreateJobsRequest.Builder addJobs(Job value)
       Required. The jobs to be created.
       A maximum of 200 jobs can be created in a batch.
       
      repeated .google.cloud.talent.v4.Job jobs = 2 [(.google.api.field_behavior) = REQUIRED];
    • addJobs

      public BatchCreateJobsRequest.Builder addJobs(int index, Job value)
       Required. The jobs to be created.
       A maximum of 200 jobs can be created in a batch.
       
      repeated .google.cloud.talent.v4.Job jobs = 2 [(.google.api.field_behavior) = REQUIRED];
    • addJobs

      public BatchCreateJobsRequest.Builder addJobs(Job.Builder builderForValue)
       Required. The jobs to be created.
       A maximum of 200 jobs can be created in a batch.
       
      repeated .google.cloud.talent.v4.Job jobs = 2 [(.google.api.field_behavior) = REQUIRED];
    • addJobs

      public BatchCreateJobsRequest.Builder addJobs(int index, Job.Builder builderForValue)
       Required. The jobs to be created.
       A maximum of 200 jobs can be created in a batch.
       
      repeated .google.cloud.talent.v4.Job jobs = 2 [(.google.api.field_behavior) = REQUIRED];
    • addAllJobs

      public BatchCreateJobsRequest.Builder addAllJobs(Iterable<? extends Job> values)
       Required. The jobs to be created.
       A maximum of 200 jobs can be created in a batch.
       
      repeated .google.cloud.talent.v4.Job jobs = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearJobs

      public BatchCreateJobsRequest.Builder clearJobs()
       Required. The jobs to be created.
       A maximum of 200 jobs can be created in a batch.
       
      repeated .google.cloud.talent.v4.Job jobs = 2 [(.google.api.field_behavior) = REQUIRED];
    • removeJobs

      public BatchCreateJobsRequest.Builder removeJobs(int index)
       Required. The jobs to be created.
       A maximum of 200 jobs can be created in a batch.
       
      repeated .google.cloud.talent.v4.Job jobs = 2 [(.google.api.field_behavior) = REQUIRED];
    • getJobsBuilder

      public Job.Builder getJobsBuilder(int index)
       Required. The jobs to be created.
       A maximum of 200 jobs can be created in a batch.
       
      repeated .google.cloud.talent.v4.Job jobs = 2 [(.google.api.field_behavior) = REQUIRED];
    • getJobsOrBuilder

      public JobOrBuilder getJobsOrBuilder(int index)
       Required. The jobs to be created.
       A maximum of 200 jobs can be created in a batch.
       
      repeated .google.cloud.talent.v4.Job jobs = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getJobsOrBuilder in interface BatchCreateJobsRequestOrBuilder
    • getJobsOrBuilderList

      public List<? extends JobOrBuilder> getJobsOrBuilderList()
       Required. The jobs to be created.
       A maximum of 200 jobs can be created in a batch.
       
      repeated .google.cloud.talent.v4.Job jobs = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getJobsOrBuilderList in interface BatchCreateJobsRequestOrBuilder
    • addJobsBuilder

      public Job.Builder addJobsBuilder()
       Required. The jobs to be created.
       A maximum of 200 jobs can be created in a batch.
       
      repeated .google.cloud.talent.v4.Job jobs = 2 [(.google.api.field_behavior) = REQUIRED];
    • addJobsBuilder

      public Job.Builder addJobsBuilder(int index)
       Required. The jobs to be created.
       A maximum of 200 jobs can be created in a batch.
       
      repeated .google.cloud.talent.v4.Job jobs = 2 [(.google.api.field_behavior) = REQUIRED];
    • getJobsBuilderList

      public List<Job.Builder> getJobsBuilderList()
       Required. The jobs to be created.
       A maximum of 200 jobs can be created in a batch.
       
      repeated .google.cloud.talent.v4.Job jobs = 2 [(.google.api.field_behavior) = REQUIRED];