Class Phone (2.2.9)

public final class Phone extends GeneratedMessageV3 implements PhoneOrBuilder

Resource that represents a person's telephone number.

Protobuf type google.cloud.talent.v4beta1.Phone

Implements

PhoneOrBuilder

Static Fields

NUMBER_FIELD_NUMBER

public static final int NUMBER_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
Type Description
int

USAGE_FIELD_NUMBER

public static final int USAGE_FIELD_NUMBER
Field Value
Type Description
int

WHEN_AVAILABLE_FIELD_NUMBER

public static final int WHEN_AVAILABLE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Phone getDefaultInstance()
Returns
Type Description
Phone

getDescriptor()

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

newBuilder()

public static Phone.Builder newBuilder()
Returns
Type Description
Phone.Builder

newBuilder(Phone prototype)

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

parseDelimitedFrom(InputStream input)

public static Phone parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Phone
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static Phone parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Phone
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static Phone parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Phone
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static Phone parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Phone
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static Phone parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Phone
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<Phone> parser()
Returns
Type Description
Parser<Phone>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public Phone getDefaultInstanceForType()
Returns
Type Description
Phone

getNumber()

public String getNumber()

Phone number. Any phone formats are supported and only exact matches are performed on searches. For example, if a phone number in profile is provided in the format of "(xxx)xxx-xxxx", in profile searches the same phone format has to be provided. Number of characters allowed is 20.

string number = 3;

Returns
Type Description
String

The number.

getNumberBytes()

public ByteString getNumberBytes()

Phone number. Any phone formats are supported and only exact matches are performed on searches. For example, if a phone number in profile is provided in the format of "(xxx)xxx-xxxx", in profile searches the same phone format has to be provided. Number of characters allowed is 20.

string number = 3;

Returns
Type Description
ByteString

The bytes for number.

getParserForType()

public Parser<Phone> getParserForType()
Returns
Type Description
Parser<Phone>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getType()

public Phone.PhoneType getType()

The phone type. For example, LANDLINE, MOBILE, FAX.

.google.cloud.talent.v4beta1.Phone.PhoneType type = 2;

Returns
Type Description
Phone.PhoneType

The type.

getTypeValue()

public int getTypeValue()

The phone type. For example, LANDLINE, MOBILE, FAX.

.google.cloud.talent.v4beta1.Phone.PhoneType type = 2;

Returns
Type Description
int

The enum numeric value on the wire for type.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
Type Description
UnknownFieldSet
Overrides

getUsage()

public ContactInfoUsage getUsage()

The usage of the phone. For example, SCHOOL, WORK, PERSONAL.

.google.cloud.talent.v4beta1.ContactInfoUsage usage = 1;

Returns
Type Description
ContactInfoUsage

The usage.

getUsageValue()

public int getUsageValue()

The usage of the phone. For example, SCHOOL, WORK, PERSONAL.

.google.cloud.talent.v4beta1.ContactInfoUsage usage = 1;

Returns
Type Description
int

The enum numeric value on the wire for usage.

getWhenAvailable()

public String getWhenAvailable()

When this number is available. Any descriptive string is expected. Number of characters allowed is 100.

string when_available = 4;

Returns
Type Description
String

The whenAvailable.

getWhenAvailableBytes()

public ByteString getWhenAvailableBytes()

When this number is available. Any descriptive string is expected. Number of characters allowed is 100.

string when_available = 4;

Returns
Type Description
ByteString

The bytes for whenAvailable.

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 Phone.Builder newBuilderForType()
Returns
Type Description
Phone.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public Phone.Builder toBuilder()
Returns
Type Description
Phone.Builder

writeTo(CodedOutputStream output)

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