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
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PersonName.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public PersonName build()
Returns
buildPartial()
public PersonName buildPartial()
Returns
clear()
public PersonName.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public PersonName.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
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
clearOneof(Descriptors.OneofDescriptor oneof)
public PersonName.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearPersonName()
public PersonName.Builder clearPersonName()
Returns
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
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
clone()
public PersonName.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public PersonName getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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
Type | Description |
String | The formattedName.
|
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
Type | Description |
ByteString | The bytes for formattedName.
|
getPersonNameCase()
public PersonName.PersonNameCase getPersonNameCase()
Returns
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
Type | Description |
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
Type | Description |
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
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
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
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
Type | Description |
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
Type | Description |
boolean | Whether the structuredName field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(PersonName other)
public PersonName.Builder mergeFrom(PersonName other)
Parameter
Returns
public PersonName.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public PersonName.Builder mergeFrom(Message other)
Parameter
Returns
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
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PersonName.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public PersonName.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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
Name | Description |
value | String
The formattedName to set.
|
Returns
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
Name | Description |
value | ByteString
The bytes for formattedName to set.
|
Returns
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
Name | Description |
value | String
The preferredName to set.
|
Returns
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
Name | Description |
value | ByteString
The bytes for preferredName to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PersonName.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
Returns
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
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final PersonName.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides