Class ProfileEvent.Builder (2.2.9)

public static final class ProfileEvent.Builder extends GeneratedMessageV3.Builder<ProfileEvent.Builder> implements ProfileEventOrBuilder

An event issued when a profile searcher interacts with the application that implements Cloud Talent Solution.

Protobuf type google.cloud.talent.v4beta1.ProfileEvent

Static Methods

getDescriptor()

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

Methods

addAllJobs(Iterable<String> values)

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

The job name(s) associated with this client event. Leave it empty if the event isn't associated with a job. The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for example, "projects/foo/tenants/bar/jobs/baz".

repeated string jobs = 6;

Parameter
Name Description
values Iterable<String>

The jobs to add.

Returns
Type Description
ProfileEvent.Builder

This builder for chaining.

addAllProfiles(Iterable<String> values)

public ProfileEvent.Builder addAllProfiles(Iterable<String> values)

Required. The profile name(s) associated with this client event. The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", for example, "projects/foo/tenants/bar/profiles/baz".

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

Parameter
Name Description
values Iterable<String>

The profiles to add.

Returns
Type Description
ProfileEvent.Builder

This builder for chaining.

addJobs(String value)

public ProfileEvent.Builder addJobs(String value)

The job name(s) associated with this client event. Leave it empty if the event isn't associated with a job. The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for example, "projects/foo/tenants/bar/jobs/baz".

repeated string jobs = 6;

Parameter
Name Description
value String

The jobs to add.

Returns
Type Description
ProfileEvent.Builder

This builder for chaining.

addJobsBytes(ByteString value)

public ProfileEvent.Builder addJobsBytes(ByteString value)

The job name(s) associated with this client event. Leave it empty if the event isn't associated with a job. The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for example, "projects/foo/tenants/bar/jobs/baz".

repeated string jobs = 6;

Parameter
Name Description
value ByteString

The bytes of the jobs to add.

Returns
Type Description
ProfileEvent.Builder

This builder for chaining.

addProfiles(String value)

public ProfileEvent.Builder addProfiles(String value)

Required. The profile name(s) associated with this client event. The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", for example, "projects/foo/tenants/bar/profiles/baz".

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

Parameter
Name Description
value String

The profiles to add.

Returns
Type Description
ProfileEvent.Builder

This builder for chaining.

addProfilesBytes(ByteString value)

public ProfileEvent.Builder addProfilesBytes(ByteString value)

Required. The profile name(s) associated with this client event. The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", for example, "projects/foo/tenants/bar/profiles/baz".

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

Parameter
Name Description
value ByteString

The bytes of the profiles to add.

Returns
Type Description
ProfileEvent.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ProfileEvent build()
Returns
Type Description
ProfileEvent

buildPartial()

public ProfileEvent buildPartial()
Returns
Type Description
ProfileEvent

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearJobs()

public ProfileEvent.Builder clearJobs()

The job name(s) associated with this client event. Leave it empty if the event isn't associated with a job. The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for example, "projects/foo/tenants/bar/jobs/baz".

repeated string jobs = 6;

Returns
Type Description
ProfileEvent.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProfiles()

public ProfileEvent.Builder clearProfiles()

Required. The profile name(s) associated with this client event. The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", for example, "projects/foo/tenants/bar/profiles/baz".

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

Returns
Type Description
ProfileEvent.Builder

This builder for chaining.

clearType()

public ProfileEvent.Builder clearType()

Required. Type of event.

.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProfileEvent.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ProfileEvent getDefaultInstanceForType()
Returns
Type Description
ProfileEvent

getDescriptorForType()

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

getJobs(int index)

public String getJobs(int index)

The job name(s) associated with this client event. Leave it empty if the event isn't associated with a job. The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for example, "projects/foo/tenants/bar/jobs/baz".

repeated string jobs = 6;

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)

The job name(s) associated with this client event. Leave it empty if the event isn't associated with a job. The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for example, "projects/foo/tenants/bar/jobs/baz".

repeated string jobs = 6;

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()

The job name(s) associated with this client event. Leave it empty if the event isn't associated with a job. The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for example, "projects/foo/tenants/bar/jobs/baz".

repeated string jobs = 6;

Returns
Type Description
int

The count of jobs.

getJobsList()

public ProtocolStringList getJobsList()

The job name(s) associated with this client event. Leave it empty if the event isn't associated with a job. The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for example, "projects/foo/tenants/bar/jobs/baz".

repeated string jobs = 6;

Returns
Type Description
ProtocolStringList

A list containing the jobs.

getProfiles(int index)

public String getProfiles(int index)

Required. The profile name(s) associated with this client event. The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", for example, "projects/foo/tenants/bar/profiles/baz".

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

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The profiles at the given index.

getProfilesBytes(int index)

public ByteString getProfilesBytes(int index)

Required. The profile name(s) associated with this client event. The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", for example, "projects/foo/tenants/bar/profiles/baz".

repeated string profiles = 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 profiles at the given index.

getProfilesCount()

public int getProfilesCount()

Required. The profile name(s) associated with this client event. The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", for example, "projects/foo/tenants/bar/profiles/baz".

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

Returns
Type Description
int

The count of profiles.

getProfilesList()

public ProtocolStringList getProfilesList()

Required. The profile name(s) associated with this client event. The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", for example, "projects/foo/tenants/bar/profiles/baz".

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

Returns
Type Description
ProtocolStringList

A list containing the profiles.

getType()

public ProfileEvent.ProfileEventType getType()

Required. Type of event.

.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProfileEvent.ProfileEventType

The type.

getTypeValue()

public int getTypeValue()

Required. Type of event.

.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType 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(ProfileEvent other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setJobs(int index, String value)

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

The job name(s) associated with this client event. Leave it empty if the event isn't associated with a job. The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for example, "projects/foo/tenants/bar/jobs/baz".

repeated string jobs = 6;

Parameters
Name Description
index int

The index to set the value at.

value String

The jobs to set.

Returns
Type Description
ProfileEvent.Builder

This builder for chaining.

setProfiles(int index, String value)

public ProfileEvent.Builder setProfiles(int index, String value)

Required. The profile name(s) associated with this client event. The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", for example, "projects/foo/tenants/bar/profiles/baz".

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

Parameters
Name Description
index int

The index to set the value at.

value String

The profiles to set.

Returns
Type Description
ProfileEvent.Builder

This builder for chaining.

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

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

setType(ProfileEvent.ProfileEventType value)

public ProfileEvent.Builder setType(ProfileEvent.ProfileEventType value)

Required. Type of event.

.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType type = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ProfileEvent.ProfileEventType

The type to set.

Returns
Type Description
ProfileEvent.Builder

This builder for chaining.

setTypeValue(int value)

public ProfileEvent.Builder setTypeValue(int value)

Required. Type of event.

.google.cloud.talent.v4beta1.ProfileEvent.ProfileEventType 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
ProfileEvent.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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