Class PersonName.PersonStructuredName (2.2.9)

public static final class PersonName.PersonStructuredName extends GeneratedMessageV3 implements PersonName.PersonStructuredNameOrBuilder

Resource that represents a person's structured name.

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > PersonName.PersonStructuredName

Static Fields

FAMILY_NAME_FIELD_NUMBER

public static final int FAMILY_NAME_FIELD_NUMBER
Field Value
Type Description
int

GIVEN_NAME_FIELD_NUMBER

public static final int GIVEN_NAME_FIELD_NUMBER
Field Value
Type Description
int

MIDDLE_INITIAL_FIELD_NUMBER

public static final int MIDDLE_INITIAL_FIELD_NUMBER
Field Value
Type Description
int

PREFERRED_NAME_FIELD_NUMBER

public static final int PREFERRED_NAME_FIELD_NUMBER
Field Value
Type Description
int

PREFIXES_FIELD_NUMBER

public static final int PREFIXES_FIELD_NUMBER
Field Value
Type Description
int

SUFFIXES_FIELD_NUMBER

public static final int SUFFIXES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PersonName.PersonStructuredName getDefaultInstance()
Returns
Type Description
PersonName.PersonStructuredName

getDescriptor()

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

newBuilder()

public static PersonName.PersonStructuredName.Builder newBuilder()
Returns
Type Description
PersonName.PersonStructuredName.Builder

newBuilder(PersonName.PersonStructuredName prototype)

public static PersonName.PersonStructuredName.Builder newBuilder(PersonName.PersonStructuredName prototype)
Parameter
Name Description
prototype PersonName.PersonStructuredName
Returns
Type Description
PersonName.PersonStructuredName.Builder

parseDelimitedFrom(InputStream input)

public static PersonName.PersonStructuredName parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PersonName.PersonStructuredName
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PersonName.PersonStructuredName parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PersonName.PersonStructuredName
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static PersonName.PersonStructuredName parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
PersonName.PersonStructuredName
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PersonName.PersonStructuredName parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PersonName.PersonStructuredName
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PersonName.PersonStructuredName parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PersonName.PersonStructuredName
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PersonName.PersonStructuredName parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PersonName.PersonStructuredName
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PersonName.PersonStructuredName parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PersonName.PersonStructuredName
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PersonName.PersonStructuredName parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PersonName.PersonStructuredName
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static PersonName.PersonStructuredName parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PersonName.PersonStructuredName
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PersonName.PersonStructuredName parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PersonName.PersonStructuredName
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static PersonName.PersonStructuredName parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PersonName.PersonStructuredName
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PersonName.PersonStructuredName parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PersonName.PersonStructuredName
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<PersonName.PersonStructuredName> parser()
Returns
Type Description
Parser<PersonStructuredName>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public PersonName.PersonStructuredName getDefaultInstanceForType()
Returns
Type Description
PersonName.PersonStructuredName

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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for middleInitial.

getParserForType()

public Parser<PersonName.PersonStructuredName> getParserForType()
Returns
Type Description
Parser<PersonStructuredName>
Overrides

getPreferredName()

public String getPreferredName()

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

string preferred_name = 6;

Returns
Type Description
String

The preferredName.

getPreferredNameBytes()

public ByteString getPreferredNameBytes()

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

string preferred_name = 6;

Returns
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
int

The count of prefixes.

getPrefixesList()

public ProtocolStringList getPrefixesList()

Prefixes. Number of characters allowed is 20.

repeated string prefixes = 5;

Returns
Type Description
ProtocolStringList

A list containing the prefixes.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSuffixes(int index)

public String getSuffixes(int index)

Suffixes. Number of characters allowed is 20.

repeated string suffixes = 4;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
int

The count of suffixes.

getSuffixesList()

public ProtocolStringList getSuffixesList()

Suffixes. Number of characters allowed is 20.

repeated string suffixes = 4;

Returns
Type Description
ProtocolStringList

A list containing the suffixes.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
Type Description
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public PersonName.PersonStructuredName.Builder newBuilderForType()
Returns
Type Description
PersonName.PersonStructuredName.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PersonName.PersonStructuredName.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PersonName.PersonStructuredName.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public PersonName.PersonStructuredName.Builder toBuilder()
Returns
Type Description
PersonName.PersonStructuredName.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides Exceptions
Type Description
IOException