Class PersonName.PersonStructuredName.Builder

public static final class PersonName.PersonStructuredName.Builder extends GeneratedMessageV3.Builder<PersonName.PersonStructuredName.Builder> implements PersonName.PersonStructuredNameOrBuilder

Resource that represents a person's structured name.

Protobuf type google.cloud.talent.v4beta1.PersonName.PersonStructuredName

Methods

addAllPrefixes(Iterable<String> values)

public PersonName.PersonStructuredName.Builder addAllPrefixes(Iterable<String> values)

Prefixes. Number of characters allowed is 20.

repeated string prefixes = 5;

Parameter
NameDescription
valuesIterable<String>

The prefixes to add.

Returns
TypeDescription
PersonName.PersonStructuredName.Builder

This builder for chaining.

addAllSuffixes(Iterable<String> values)

public PersonName.PersonStructuredName.Builder addAllSuffixes(Iterable<String> values)

Suffixes. Number of characters allowed is 20.

repeated string suffixes = 4;

Parameter
NameDescription
valuesIterable<String>

The suffixes to add.

Returns
TypeDescription
PersonName.PersonStructuredName.Builder

This builder for chaining.

addPrefixes(String value)

public PersonName.PersonStructuredName.Builder addPrefixes(String value)

Prefixes. Number of characters allowed is 20.

repeated string prefixes = 5;

Parameter
NameDescription
valueString

The prefixes to add.

Returns
TypeDescription
PersonName.PersonStructuredName.Builder

This builder for chaining.

addPrefixesBytes(ByteString value)

public PersonName.PersonStructuredName.Builder addPrefixesBytes(ByteString value)

Prefixes. Number of characters allowed is 20.

repeated string prefixes = 5;

Parameter
NameDescription
valueByteString

The bytes of the prefixes to add.

Returns
TypeDescription
PersonName.PersonStructuredName.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSuffixes(String value)

public PersonName.PersonStructuredName.Builder addSuffixes(String value)

Suffixes. Number of characters allowed is 20.

repeated string suffixes = 4;

Parameter
NameDescription
valueString

The suffixes to add.

Returns
TypeDescription
PersonName.PersonStructuredName.Builder

This builder for chaining.

addSuffixesBytes(ByteString value)

public PersonName.PersonStructuredName.Builder addSuffixesBytes(ByteString value)

Suffixes. Number of characters allowed is 20.

repeated string suffixes = 4;

Parameter
NameDescription
valueByteString

The bytes of the suffixes to add.

Returns
TypeDescription
PersonName.PersonStructuredName.Builder

This builder for chaining.

build()

public PersonName.PersonStructuredName build()
Returns
TypeDescription
PersonName.PersonStructuredName

buildPartial()

public PersonName.PersonStructuredName buildPartial()
Returns
TypeDescription
PersonName.PersonStructuredName

clear()

public PersonName.PersonStructuredName.Builder clear()
Returns
TypeDescription
PersonName.PersonStructuredName.Builder
Overrides

clearFamilyName()

public PersonName.PersonStructuredName.Builder clearFamilyName()

Family/last name. It's derived from formatted_name if not provided. Number of characters allowed is 100.

string family_name = 3;

Returns
TypeDescription
PersonName.PersonStructuredName.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public PersonName.PersonStructuredName.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PersonName.PersonStructuredName.Builder
Overrides

clearGivenName()

public PersonName.PersonStructuredName.Builder clearGivenName()

Given/first name. It's derived from formatted_name if not provided. Number of characters allowed is 100.

string given_name = 1;

Returns
TypeDescription
PersonName.PersonStructuredName.Builder

This builder for chaining.

clearMiddleInitial()

public PersonName.PersonStructuredName.Builder clearMiddleInitial()

Middle initial. It's derived from formatted_name if not provided. Number of characters allowed is 20.

string middle_initial = 2;

Returns
TypeDescription
PersonName.PersonStructuredName.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public PersonName.PersonStructuredName.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
PersonName.PersonStructuredName.Builder
Overrides

clearPreferredName()

public PersonName.PersonStructuredName.Builder clearPreferredName()

Preferred given/first name or nickname. Number of characters allowed is 100.

string preferred_name = 6;

Returns
TypeDescription
PersonName.PersonStructuredName.Builder

This builder for chaining.

clearPrefixes()

public PersonName.PersonStructuredName.Builder clearPrefixes()

Prefixes. Number of characters allowed is 20.

repeated string prefixes = 5;

Returns
TypeDescription
PersonName.PersonStructuredName.Builder

This builder for chaining.

clearSuffixes()

public PersonName.PersonStructuredName.Builder clearSuffixes()

Suffixes. Number of characters allowed is 20.

repeated string suffixes = 4;

Returns
TypeDescription
PersonName.PersonStructuredName.Builder

This builder for chaining.

clone()

public PersonName.PersonStructuredName.Builder clone()
Returns
TypeDescription
PersonName.PersonStructuredName.Builder
Overrides

getDefaultInstanceForType()

public PersonName.PersonStructuredName getDefaultInstanceForType()
Returns
TypeDescription
PersonName.PersonStructuredName

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFamilyName()

public String getFamilyName()

Family/last name. It's derived from formatted_name if not provided. Number of characters allowed is 100.

string family_name = 3;

Returns
TypeDescription
String

The familyName.

getFamilyNameBytes()

public ByteString getFamilyNameBytes()

Family/last name. It's derived from formatted_name if not provided. Number of characters allowed is 100.

string family_name = 3;

Returns
TypeDescription
ByteString

The bytes for familyName.

getGivenName()

public String getGivenName()

Given/first name. It's derived from formatted_name if not provided. Number of characters allowed is 100.

string given_name = 1;

Returns
TypeDescription
String

The givenName.

getGivenNameBytes()

public ByteString getGivenNameBytes()

Given/first name. It's derived from formatted_name if not provided. Number of characters allowed is 100.

string given_name = 1;

Returns
TypeDescription
ByteString

The bytes for givenName.

getMiddleInitial()

public String getMiddleInitial()

Middle initial. It's derived from formatted_name if not provided. Number of characters allowed is 20.

string middle_initial = 2;

Returns
TypeDescription
String

The middleInitial.

getMiddleInitialBytes()

public ByteString getMiddleInitialBytes()

Middle initial. It's derived from formatted_name if not provided. Number of characters allowed is 20.

string middle_initial = 2;

Returns
TypeDescription
ByteString

The bytes for middleInitial.

getPreferredName()

public String getPreferredName()

Preferred given/first name or nickname. Number of characters allowed is 100.

string preferred_name = 6;

Returns
TypeDescription
String

The preferredName.

getPreferredNameBytes()

public ByteString getPreferredNameBytes()

Preferred given/first name or nickname. Number of characters allowed is 100.

string preferred_name = 6;

Returns
TypeDescription
ByteString

The bytes for preferredName.

getPrefixes(int index)

public String getPrefixes(int index)

Prefixes. Number of characters allowed is 20.

repeated string prefixes = 5;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The prefixes at the given index.

getPrefixesBytes(int index)

public ByteString getPrefixesBytes(int index)

Prefixes. Number of characters allowed is 20.

repeated string prefixes = 5;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the prefixes at the given index.

getPrefixesCount()

public int getPrefixesCount()

Prefixes. Number of characters allowed is 20.

repeated string prefixes = 5;

Returns
TypeDescription
int

The count of prefixes.

getPrefixesList()

public ProtocolStringList getPrefixesList()

Prefixes. Number of characters allowed is 20.

repeated string prefixes = 5;

Returns
TypeDescription
ProtocolStringList

A list containing the prefixes.

getSuffixes(int index)

public String getSuffixes(int index)

Suffixes. Number of characters allowed is 20.

repeated string suffixes = 4;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The suffixes at the given index.

getSuffixesBytes(int index)

public ByteString getSuffixesBytes(int index)

Suffixes. Number of characters allowed is 20.

repeated string suffixes = 4;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the suffixes at the given index.

getSuffixesCount()

public int getSuffixesCount()

Suffixes. Number of characters allowed is 20.

repeated string suffixes = 4;

Returns
TypeDescription
int

The count of suffixes.

getSuffixesList()

public ProtocolStringList getSuffixesList()

Suffixes. Number of characters allowed is 20.

repeated string suffixes = 4;

Returns
TypeDescription
ProtocolStringList

A list containing the suffixes.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PersonName.PersonStructuredName other)

public PersonName.PersonStructuredName.Builder mergeFrom(PersonName.PersonStructuredName other)
Parameter
NameDescription
otherPersonName.PersonStructuredName
Returns
TypeDescription
PersonName.PersonStructuredName.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setFamilyName(String value)

public PersonName.PersonStructuredName.Builder setFamilyName(String value)

Family/last name. It's derived from formatted_name if not provided. Number of characters allowed is 100.

string family_name = 3;

Parameter
NameDescription
valueString

The familyName to set.

Returns
TypeDescription
PersonName.PersonStructuredName.Builder

This builder for chaining.

setFamilyNameBytes(ByteString value)

public PersonName.PersonStructuredName.Builder setFamilyNameBytes(ByteString value)

Family/last name. It's derived from formatted_name if not provided. Number of characters allowed is 100.

string family_name = 3;

Parameter
NameDescription
valueByteString

The bytes for familyName to set.

Returns
TypeDescription
PersonName.PersonStructuredName.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PersonName.PersonStructuredName.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PersonName.PersonStructuredName.Builder
Overrides

setGivenName(String value)

public PersonName.PersonStructuredName.Builder setGivenName(String value)

Given/first name. It's derived from formatted_name if not provided. Number of characters allowed is 100.

string given_name = 1;

Parameter
NameDescription
valueString

The givenName to set.

Returns
TypeDescription
PersonName.PersonStructuredName.Builder

This builder for chaining.

setGivenNameBytes(ByteString value)

public PersonName.PersonStructuredName.Builder setGivenNameBytes(ByteString value)

Given/first name. It's derived from formatted_name if not provided. Number of characters allowed is 100.

string given_name = 1;

Parameter
NameDescription
valueByteString

The bytes for givenName to set.

Returns
TypeDescription
PersonName.PersonStructuredName.Builder

This builder for chaining.

setMiddleInitial(String value)

public PersonName.PersonStructuredName.Builder setMiddleInitial(String value)

Middle initial. It's derived from formatted_name if not provided. Number of characters allowed is 20.

string middle_initial = 2;

Parameter
NameDescription
valueString

The middleInitial to set.

Returns
TypeDescription
PersonName.PersonStructuredName.Builder

This builder for chaining.

setMiddleInitialBytes(ByteString value)

public PersonName.PersonStructuredName.Builder setMiddleInitialBytes(ByteString value)

Middle initial. It's derived from formatted_name if not provided. Number of characters allowed is 20.

string middle_initial = 2;

Parameter
NameDescription
valueByteString

The bytes for middleInitial to set.

Returns
TypeDescription
PersonName.PersonStructuredName.Builder

This builder for chaining.

setPreferredName(String value)

public PersonName.PersonStructuredName.Builder setPreferredName(String value)

Preferred given/first name or nickname. Number of characters allowed is 100.

string preferred_name = 6;

Parameter
NameDescription
valueString

The preferredName to set.

Returns
TypeDescription
PersonName.PersonStructuredName.Builder

This builder for chaining.

setPreferredNameBytes(ByteString value)

public PersonName.PersonStructuredName.Builder setPreferredNameBytes(ByteString value)

Preferred given/first name or nickname. Number of characters allowed is 100.

string preferred_name = 6;

Parameter
NameDescription
valueByteString

The bytes for preferredName to set.

Returns
TypeDescription
PersonName.PersonStructuredName.Builder

This builder for chaining.

setPrefixes(int index, String value)

public PersonName.PersonStructuredName.Builder setPrefixes(int index, String value)

Prefixes. Number of characters allowed is 20.

repeated string prefixes = 5;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The prefixes to set.

Returns
TypeDescription
PersonName.PersonStructuredName.Builder

This builder for chaining.

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

public PersonName.PersonStructuredName.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PersonName.PersonStructuredName.Builder
Overrides

setSuffixes(int index, String value)

public PersonName.PersonStructuredName.Builder setSuffixes(int index, String value)

Suffixes. Number of characters allowed is 20.

repeated string suffixes = 4;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The suffixes to set.

Returns
TypeDescription
PersonName.PersonStructuredName.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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