Class PersonName.PersonStructuredName

Stay organized with collections Save and categorize content based on your preferences.
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
TypeDescription
int

GIVEN_NAME_FIELD_NUMBER

public static final int GIVEN_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

MIDDLE_INITIAL_FIELD_NUMBER

public static final int MIDDLE_INITIAL_FIELD_NUMBER
Field Value
TypeDescription
int

PREFERRED_NAME_FIELD_NUMBER

public static final int PREFERRED_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

PREFIXES_FIELD_NUMBER

public static final int PREFIXES_FIELD_NUMBER
Field Value
TypeDescription
int

SUFFIXES_FIELD_NUMBER

public static final int SUFFIXES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static PersonName.PersonStructuredName getDefaultInstance()
Returns
TypeDescription
PersonName.PersonStructuredName

getDescriptor()

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

newBuilder()

public static PersonName.PersonStructuredName.Builder newBuilder()
Returns
TypeDescription
PersonName.PersonStructuredName.Builder

newBuilder(PersonName.PersonStructuredName prototype)

public static PersonName.PersonStructuredName.Builder newBuilder(PersonName.PersonStructuredName prototype)
Parameter
NameDescription
prototypePersonName.PersonStructuredName
Returns
TypeDescription
PersonName.PersonStructuredName.Builder

parseDelimitedFrom(InputStream input)

public static PersonName.PersonStructuredName parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PersonName.PersonStructuredName
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PersonName.PersonStructuredName parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PersonName.PersonStructuredName
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static PersonName.PersonStructuredName parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
PersonName.PersonStructuredName
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PersonName.PersonStructuredName parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PersonName.PersonStructuredName
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PersonName.PersonStructuredName parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
PersonName.PersonStructuredName
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PersonName.PersonStructuredName parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PersonName.PersonStructuredName
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PersonName.PersonStructuredName parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
PersonName.PersonStructuredName
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PersonName.PersonStructuredName parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PersonName.PersonStructuredName
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static PersonName.PersonStructuredName parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PersonName.PersonStructuredName
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PersonName.PersonStructuredName parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PersonName.PersonStructuredName
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static PersonName.PersonStructuredName parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
PersonName.PersonStructuredName
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PersonName.PersonStructuredName parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PersonName.PersonStructuredName
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public PersonName.PersonStructuredName getDefaultInstanceForType()
Returns
TypeDescription
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
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.

getParserForType()

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

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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public PersonName.PersonStructuredName.Builder newBuilderForType()
Returns
TypeDescription
PersonName.PersonStructuredName.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PersonName.PersonStructuredName.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
PersonName.PersonStructuredName.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public PersonName.PersonStructuredName.Builder toBuilder()
Returns
TypeDescription
PersonName.PersonStructuredName.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException