Class BatchCreateJobsRequest.Builder (2.54.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.v4beta1.BatchCreateJobsRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllJobs(Iterable<? extends Job> values)

public BatchCreateJobsRequest.Builder addAllJobs(Iterable<? extends Job> values)

Required. The jobs to be created.

repeated .google.cloud.talent.v4beta1.Job jobs = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.talent.v4beta1.Job>
Returns
Type Description
BatchCreateJobsRequest.Builder

addJobs(Job value)

public BatchCreateJobsRequest.Builder addJobs(Job value)

Required. The jobs to be created.

repeated .google.cloud.talent.v4beta1.Job jobs = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Job
Returns
Type Description
BatchCreateJobsRequest.Builder

addJobs(Job.Builder builderForValue)

public BatchCreateJobsRequest.Builder addJobs(Job.Builder builderForValue)

Required. The jobs to be created.

repeated .google.cloud.talent.v4beta1.Job jobs = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Job.Builder
Returns
Type Description
BatchCreateJobsRequest.Builder

addJobs(int index, Job value)

public BatchCreateJobsRequest.Builder addJobs(int index, Job value)

Required. The jobs to be created.

repeated .google.cloud.talent.v4beta1.Job jobs = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value Job
Returns
Type Description
BatchCreateJobsRequest.Builder

addJobs(int index, Job.Builder builderForValue)

public BatchCreateJobsRequest.Builder addJobs(int index, Job.Builder builderForValue)

Required. The jobs to be created.

repeated .google.cloud.talent.v4beta1.Job jobs = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue Job.Builder
Returns
Type Description
BatchCreateJobsRequest.Builder

addJobsBuilder()

public Job.Builder addJobsBuilder()

Required. The jobs to be created.

repeated .google.cloud.talent.v4beta1.Job jobs = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Job.Builder

addJobsBuilder(int index)

public Job.Builder addJobsBuilder(int index)

Required. The jobs to be created.

repeated .google.cloud.talent.v4beta1.Job jobs = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Job.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BatchCreateJobsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BatchCreateJobsRequest.Builder
Overrides

build()

public BatchCreateJobsRequest build()
Returns
Type Description
BatchCreateJobsRequest

buildPartial()

public BatchCreateJobsRequest buildPartial()
Returns
Type Description
BatchCreateJobsRequest

clear()

public BatchCreateJobsRequest.Builder clear()
Returns
Type Description
BatchCreateJobsRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public BatchCreateJobsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BatchCreateJobsRequest.Builder
Overrides

clearJobs()

public BatchCreateJobsRequest.Builder clearJobs()

Required. The jobs to be created.

repeated .google.cloud.talent.v4beta1.Job jobs = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BatchCreateJobsRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchCreateJobsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo".

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
BatchCreateJobsRequest.Builder

This builder for chaining.

clone()

public BatchCreateJobsRequest.Builder clone()
Returns
Type Description
BatchCreateJobsRequest.Builder
Overrides

getDefaultInstanceForType()

public BatchCreateJobsRequest getDefaultInstanceForType()
Returns
Type Description
BatchCreateJobsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getJobs(int index)

public Job getJobs(int index)

Required. The jobs to be created.

repeated .google.cloud.talent.v4beta1.Job jobs = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Job

getJobsBuilder(int index)

public Job.Builder getJobsBuilder(int index)

Required. The jobs to be created.

repeated .google.cloud.talent.v4beta1.Job jobs = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Job.Builder

getJobsBuilderList()

public List<Job.Builder> getJobsBuilderList()

Required. The jobs to be created.

repeated .google.cloud.talent.v4beta1.Job jobs = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getJobsCount()

public int getJobsCount()

Required. The jobs to be created.

repeated .google.cloud.talent.v4beta1.Job jobs = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getJobsList()

public List<Job> getJobsList()

Required. The jobs to be created.

repeated .google.cloud.talent.v4beta1.Job jobs = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Job>

getJobsOrBuilder(int index)

public JobOrBuilder getJobsOrBuilder(int index)

Required. The jobs to be created.

repeated .google.cloud.talent.v4beta1.Job jobs = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
JobOrBuilder

getJobsOrBuilderList()

public List<? extends JobOrBuilder> getJobsOrBuilderList()

Required. The jobs to be created.

repeated .google.cloud.talent.v4beta1.Job jobs = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.talent.v4beta1.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/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo".

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
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/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo".

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchCreateJobsRequest other)

public BatchCreateJobsRequest.Builder mergeFrom(BatchCreateJobsRequest other)
Parameter
Name Description
other BatchCreateJobsRequest
Returns
Type Description
BatchCreateJobsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BatchCreateJobsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchCreateJobsRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public BatchCreateJobsRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
BatchCreateJobsRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchCreateJobsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BatchCreateJobsRequest.Builder
Overrides

removeJobs(int index)

public BatchCreateJobsRequest.Builder removeJobs(int index)

Required. The jobs to be created.

repeated .google.cloud.talent.v4beta1.Job jobs = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
BatchCreateJobsRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BatchCreateJobsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BatchCreateJobsRequest.Builder
Overrides

setJobs(int index, Job value)

public BatchCreateJobsRequest.Builder setJobs(int index, Job value)

Required. The jobs to be created.

repeated .google.cloud.talent.v4beta1.Job jobs = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value Job
Returns
Type Description
BatchCreateJobsRequest.Builder

setJobs(int index, Job.Builder builderForValue)

public BatchCreateJobsRequest.Builder setJobs(int index, Job.Builder builderForValue)

Required. The jobs to be created.

repeated .google.cloud.talent.v4beta1.Job jobs = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue Job.Builder
Returns
Type Description
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/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo".

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
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/tenant/bar". If tenant id is unspecified, a default tenant is created. For example, "projects/foo".

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BatchCreateJobsRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BatchCreateJobsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BatchCreateJobsRequest.Builder
Overrides