Class BatchCreateJobsRequest.Builder (2.5.0)

public static final class BatchCreateJobsRequest.Builder extends GeneratedMessageV3.Builder<BatchCreateJobsRequest.Builder> implements BatchCreateJobsRequestOrBuilder

Request to create a batch of jobs.

Protobuf type google.cloud.talent.v4.BatchCreateJobsRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllJobs(Iterable<? extends Job> values)

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.talent.v4.Job>
Returns
TypeDescription
BatchCreateJobsRequest.Builder

addJobs(Job value)

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

Parameter
NameDescription
valueJob
Returns
TypeDescription
BatchCreateJobsRequest.Builder

addJobs(Job.Builder builderForValue)

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

Parameter
NameDescription
builderForValueJob.Builder
Returns
TypeDescription
BatchCreateJobsRequest.Builder

addJobs(int index, Job value)

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

Parameters
NameDescription
indexint
valueJob
Returns
TypeDescription
BatchCreateJobsRequest.Builder

addJobs(int index, Job.Builder builderForValue)

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

Parameters
NameDescription
indexint
builderForValueJob.Builder
Returns
TypeDescription
BatchCreateJobsRequest.Builder

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

Returns
TypeDescription
Job.Builder

addJobsBuilder(int index)

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Job.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BatchCreateJobsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BatchCreateJobsRequest.Builder
Overrides

build()

public BatchCreateJobsRequest build()
Returns
TypeDescription
BatchCreateJobsRequest

buildPartial()

public BatchCreateJobsRequest buildPartial()
Returns
TypeDescription
BatchCreateJobsRequest

clear()

public BatchCreateJobsRequest.Builder clear()
Returns
TypeDescription
BatchCreateJobsRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public BatchCreateJobsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BatchCreateJobsRequest.Builder
Overrides

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

Returns
TypeDescription
BatchCreateJobsRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchCreateJobsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
BatchCreateJobsRequest.Builder
Overrides

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
TypeDescription
BatchCreateJobsRequest.Builder

This builder for chaining.

clone()

public BatchCreateJobsRequest.Builder clone()
Returns
TypeDescription
BatchCreateJobsRequest.Builder
Overrides

getDefaultInstanceForType()

public BatchCreateJobsRequest getDefaultInstanceForType()
Returns
TypeDescription
BatchCreateJobsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getJobs(int index)

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Job

getJobsBuilder(int index)

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Job.Builder

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

Returns
TypeDescription
List<Builder>

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

Returns
TypeDescription
int

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

Returns
TypeDescription
List<Job>

getJobsOrBuilder(int index)

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

Parameter
NameDescription
indexint
Returns
TypeDescription
JobOrBuilder

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

Returns
TypeDescription
List<? extends com.google.cloud.talent.v4.JobOrBuilder>

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) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public 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) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BatchCreateJobsRequest other)

public BatchCreateJobsRequest.Builder mergeFrom(BatchCreateJobsRequest other)
Parameter
NameDescription
otherBatchCreateJobsRequest
Returns
TypeDescription
BatchCreateJobsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BatchCreateJobsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BatchCreateJobsRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BatchCreateJobsRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BatchCreateJobsRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchCreateJobsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BatchCreateJobsRequest.Builder
Overrides

removeJobs(int index)

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

Parameter
NameDescription
indexint
Returns
TypeDescription
BatchCreateJobsRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BatchCreateJobsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BatchCreateJobsRequest.Builder
Overrides

setJobs(int index, Job value)

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

Parameters
NameDescription
indexint
valueJob
Returns
TypeDescription
BatchCreateJobsRequest.Builder

setJobs(int index, Job.Builder builderForValue)

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

Parameters
NameDescription
indexint
builderForValueJob.Builder
Returns
TypeDescription
BatchCreateJobsRequest.Builder

setParent(String value)

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) = { ... }

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
BatchCreateJobsRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public BatchCreateJobsRequest.Builder setParentBytes(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) = { ... }

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
BatchCreateJobsRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public BatchCreateJobsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BatchCreateJobsRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BatchCreateJobsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BatchCreateJobsRequest.Builder
Overrides