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
TypeDescription
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
NameDescription
valuesIterable<String>

The jobs to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The profiles to add.

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

The jobs to add.

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

The bytes of the jobs to add.

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

The profiles to add.

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

The bytes of the profiles to add.

Returns
TypeDescription
ProfileEvent.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ProfileEvent build()
Returns
TypeDescription
ProfileEvent

buildPartial()

public ProfileEvent buildPartial()
Returns
TypeDescription
ProfileEvent

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ProfileEvent getDefaultInstanceForType()
Returns
TypeDescription
ProfileEvent

getDescriptorForType()

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

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

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

The index of the element to return.

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

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
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(ProfileEvent other)

public ProfileEvent.Builder mergeFrom(ProfileEvent other)
Parameter
NameDescription
otherProfileEvent
Returns
TypeDescription
ProfileEvent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The index to set the value at.

valueString

The jobs to set.

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

The index to set the value at.

valueString

The profiles to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueProfileEvent.ProfileEventType

The type to set.

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

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

Returns
TypeDescription
ProfileEvent.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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