Class JobEvent.Builder (2.18.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
TypeDescription
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
NameDescription
valuesIterable<String>

The jobs to add.

Returns
TypeDescription
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
NameDescription
valueString

The jobs to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the jobs to add.

Returns
TypeDescription
JobEvent.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public JobEvent build()
Returns
TypeDescription
JobEvent

buildPartial()

public JobEvent buildPartial()
Returns
TypeDescription
JobEvent

clear()

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

clearField(Descriptors.FieldDescriptor field)

public JobEvent.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
JobEvent.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public JobEvent.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
JobEvent.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public JobEvent getDefaultInstanceForType()
Returns
TypeDescription
JobEvent

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for type.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(JobEvent other)

public JobEvent.Builder mergeFrom(JobEvent other)
Parameter
NameDescription
otherJobEvent
Returns
TypeDescription
JobEvent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public JobEvent.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The jobs to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueJobEvent.JobEventType

The type to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
JobEvent.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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