Class PersonName.Builder

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

Resource that represents the name of a person.

Protobuf type google.cloud.talent.v4beta1.PersonName

Implements

PersonNameOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PersonName build()
Returns
TypeDescription
PersonName

buildPartial()

public PersonName buildPartial()
Returns
TypeDescription
PersonName

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFormattedName()

public PersonName.Builder clearFormattedName()

A string represents a person's full name. For example, "Dr. John Smith". Number of characters allowed is 100.

string formatted_name = 1;

Returns
TypeDescription
PersonName.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPersonName()

public PersonName.Builder clearPersonName()
Returns
TypeDescription
PersonName.Builder

clearPreferredName()

public PersonName.Builder clearPreferredName()

Preferred name for the person. This field is ignored if structured_name is provided. Number of characters allowed is 100.

string preferred_name = 3;

Returns
TypeDescription
PersonName.Builder

This builder for chaining.

clearStructuredName()

public PersonName.Builder clearStructuredName()

A person's name in a structured way (last name, first name, suffix, and so on.)

.google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2;

Returns
TypeDescription
PersonName.Builder

clone()

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

getDefaultInstanceForType()

public PersonName getDefaultInstanceForType()
Returns
TypeDescription
PersonName

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFormattedName()

public String getFormattedName()

A string represents a person's full name. For example, "Dr. John Smith". Number of characters allowed is 100.

string formatted_name = 1;

Returns
TypeDescription
String

The formattedName.

getFormattedNameBytes()

public ByteString getFormattedNameBytes()

A string represents a person's full name. For example, "Dr. John Smith". Number of characters allowed is 100.

string formatted_name = 1;

Returns
TypeDescription
ByteString

The bytes for formattedName.

getPersonNameCase()

public PersonName.PersonNameCase getPersonNameCase()
Returns
TypeDescription
PersonName.PersonNameCase

getPreferredName()

public String getPreferredName()

Preferred name for the person. This field is ignored if structured_name is provided. Number of characters allowed is 100.

string preferred_name = 3;

Returns
TypeDescription
String

The preferredName.

getPreferredNameBytes()

public ByteString getPreferredNameBytes()

Preferred name for the person. This field is ignored if structured_name is provided. Number of characters allowed is 100.

string preferred_name = 3;

Returns
TypeDescription
ByteString

The bytes for preferredName.

getStructuredName()

public PersonName.PersonStructuredName getStructuredName()

A person's name in a structured way (last name, first name, suffix, and so on.)

.google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2;

Returns
TypeDescription
PersonName.PersonStructuredName

The structuredName.

getStructuredNameBuilder()

public PersonName.PersonStructuredName.Builder getStructuredNameBuilder()

A person's name in a structured way (last name, first name, suffix, and so on.)

.google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2;

Returns
TypeDescription
PersonName.PersonStructuredName.Builder

getStructuredNameOrBuilder()

public PersonName.PersonStructuredNameOrBuilder getStructuredNameOrBuilder()

A person's name in a structured way (last name, first name, suffix, and so on.)

.google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2;

Returns
TypeDescription
PersonName.PersonStructuredNameOrBuilder

hasFormattedName()

public boolean hasFormattedName()

A string represents a person's full name. For example, "Dr. John Smith". Number of characters allowed is 100.

string formatted_name = 1;

Returns
TypeDescription
boolean

Whether the formattedName field is set.

hasStructuredName()

public boolean hasStructuredName()

A person's name in a structured way (last name, first name, suffix, and so on.)

.google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2;

Returns
TypeDescription
boolean

Whether the structuredName field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PersonName other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStructuredName(PersonName.PersonStructuredName value)

public PersonName.Builder mergeStructuredName(PersonName.PersonStructuredName value)

A person's name in a structured way (last name, first name, suffix, and so on.)

.google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2;

Parameter
NameDescription
valuePersonName.PersonStructuredName
Returns
TypeDescription
PersonName.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setFormattedName(String value)

public PersonName.Builder setFormattedName(String value)

A string represents a person's full name. For example, "Dr. John Smith". Number of characters allowed is 100.

string formatted_name = 1;

Parameter
NameDescription
valueString

The formattedName to set.

Returns
TypeDescription
PersonName.Builder

This builder for chaining.

setFormattedNameBytes(ByteString value)

public PersonName.Builder setFormattedNameBytes(ByteString value)

A string represents a person's full name. For example, "Dr. John Smith". Number of characters allowed is 100.

string formatted_name = 1;

Parameter
NameDescription
valueByteString

The bytes for formattedName to set.

Returns
TypeDescription
PersonName.Builder

This builder for chaining.

setPreferredName(String value)

public PersonName.Builder setPreferredName(String value)

Preferred name for the person. This field is ignored if structured_name is provided. Number of characters allowed is 100.

string preferred_name = 3;

Parameter
NameDescription
valueString

The preferredName to set.

Returns
TypeDescription
PersonName.Builder

This builder for chaining.

setPreferredNameBytes(ByteString value)

public PersonName.Builder setPreferredNameBytes(ByteString value)

Preferred name for the person. This field is ignored if structured_name is provided. Number of characters allowed is 100.

string preferred_name = 3;

Parameter
NameDescription
valueByteString

The bytes for preferredName to set.

Returns
TypeDescription
PersonName.Builder

This builder for chaining.

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

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

setStructuredName(PersonName.PersonStructuredName value)

public PersonName.Builder setStructuredName(PersonName.PersonStructuredName value)

A person's name in a structured way (last name, first name, suffix, and so on.)

.google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2;

Parameter
NameDescription
valuePersonName.PersonStructuredName
Returns
TypeDescription
PersonName.Builder

setStructuredName(PersonName.PersonStructuredName.Builder builderForValue)

public PersonName.Builder setStructuredName(PersonName.PersonStructuredName.Builder builderForValue)

A person's name in a structured way (last name, first name, suffix, and so on.)

.google.cloud.talent.v4beta1.PersonName.PersonStructuredName structured_name = 2;

Parameter
NameDescription
builderForValuePersonName.PersonStructuredName.Builder
Returns
TypeDescription
PersonName.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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