Class JobEvent.Builder (2.49.0)

public static final class JobEvent.Builder extends GeneratedMessageV3.Builder<JobEvent.Builder> implements JobEventOrBuilder

An event issued when a job seeker interacts with the application that implements Cloud Talent Solution.

Protobuf type google.cloud.talent.v4.JobEvent

Implements

JobEventOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllJobs(Iterable<String> values)

public JobEvent.Builder addAllJobs(Iterable<String> values)

Required. The job name(s) associated with this event. For example, if this is an impression event, this field contains the identifiers of all jobs shown to the job seeker. If this was a view event, this field contains the identifier of the viewed job.

The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for example, "projects/foo/tenants/bar/jobs/baz".

repeated string jobs = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<String>

The jobs to add.

Returns
Type Description
JobEvent.Builder

This builder for chaining.

addJobs(String value)

public JobEvent.Builder addJobs(String value)

Required. The job name(s) associated with this event. For example, if this is an impression event, this field contains the identifiers of all jobs shown to the job seeker. If this was a view event, this field contains the identifier of the viewed job.

The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for example, "projects/foo/tenants/bar/jobs/baz".

repeated string jobs = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The jobs to add.

Returns
Type Description
JobEvent.Builder

This builder for chaining.

addJobsBytes(ByteString value)

public JobEvent.Builder addJobsBytes(ByteString value)

Required. The job name(s) associated with this event. For example, if this is an impression event, this field contains the identifiers of all jobs shown to the job seeker. If this was a view event, this field contains the identifier of the viewed job.

The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for example, "projects/foo/tenants/bar/jobs/baz".

repeated string jobs = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes of the jobs to add.

Returns
Type Description
JobEvent.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public JobEvent build()
Returns
Type Description
JobEvent

buildPartial()

public JobEvent buildPartial()
Returns
Type Description
JobEvent

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearJobs()

public JobEvent.Builder clearJobs()

Required. The job name(s) associated with this event. For example, if this is an impression event, this field contains the identifiers of all jobs shown to the job seeker. If this was a view event, this field contains the identifier of the viewed job.

The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for example, "projects/foo/tenants/bar/jobs/baz".

repeated string jobs = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
JobEvent.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public JobEvent.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
JobEvent.Builder
Overrides

clearType()

public JobEvent.Builder clearType()

Required. The type of the event (see JobEventType).

.google.cloud.talent.v4.JobEvent.JobEventType type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
JobEvent.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public JobEvent getDefaultInstanceForType()
Returns
Type Description
JobEvent

getDescriptorForType()

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

getJobs(int index)

public String getJobs(int index)

Required. The job name(s) associated with this event. For example, if this is an impression event, this field contains the identifiers of all jobs shown to the job seeker. If this was a view event, this field contains the identifier of the viewed job.

The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for example, "projects/foo/tenants/bar/jobs/baz".

repeated string jobs = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The jobs at the given index.

getJobsBytes(int index)

public ByteString getJobsBytes(int index)

Required. The job name(s) associated with this event. For example, if this is an impression event, this field contains the identifiers of all jobs shown to the job seeker. If this was a view event, this field contains the identifier of the viewed job.

The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for example, "projects/foo/tenants/bar/jobs/baz".

repeated string jobs = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the jobs at the given index.

getJobsCount()

public int getJobsCount()

Required. The job name(s) associated with this event. For example, if this is an impression event, this field contains the identifiers of all jobs shown to the job seeker. If this was a view event, this field contains the identifier of the viewed job.

The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for example, "projects/foo/tenants/bar/jobs/baz".

repeated string jobs = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of jobs.

getJobsList()

public ProtocolStringList getJobsList()

Required. The job name(s) associated with this event. For example, if this is an impression event, this field contains the identifiers of all jobs shown to the job seeker. If this was a view event, this field contains the identifier of the viewed job.

The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for example, "projects/foo/tenants/bar/jobs/baz".

repeated string jobs = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProtocolStringList

A list containing the jobs.

getType()

public JobEvent.JobEventType getType()

Required. The type of the event (see JobEventType).

.google.cloud.talent.v4.JobEvent.JobEventType type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
JobEvent.JobEventType

The type.

getTypeValue()

public int getTypeValue()

Required. The type of the event (see JobEventType).

.google.cloud.talent.v4.JobEvent.JobEventType type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for type.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(JobEvent other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setJobs(int index, String value)

public JobEvent.Builder setJobs(int index, String value)

Required. The job name(s) associated with this event. For example, if this is an impression event, this field contains the identifiers of all jobs shown to the job seeker. If this was a view event, this field contains the identifier of the viewed job.

The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for example, "projects/foo/tenants/bar/jobs/baz".

repeated string jobs = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int

The index to set the value at.

value String

The jobs to set.

Returns
Type Description
JobEvent.Builder

This builder for chaining.

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

public JobEvent.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
JobEvent.Builder
Overrides

setType(JobEvent.JobEventType value)

public JobEvent.Builder setType(JobEvent.JobEventType value)

Required. The type of the event (see JobEventType).

.google.cloud.talent.v4.JobEvent.JobEventType type = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value JobEvent.JobEventType

The type to set.

Returns
Type Description
JobEvent.Builder

This builder for chaining.

setTypeValue(int value)

public JobEvent.Builder setTypeValue(int value)

Required. The type of the event (see JobEventType).

.google.cloud.talent.v4.JobEvent.JobEventType type = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
JobEvent.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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