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
TypeDescription
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

USAGE_FIELD_NUMBER

public static final int USAGE_FIELD_NUMBER
Field Value
TypeDescription
int

WHEN_AVAILABLE_FIELD_NUMBER

public static final int WHEN_AVAILABLE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Phone getDefaultInstance()
Returns
TypeDescription
Phone

getDescriptor()

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

newBuilder()

public static Phone.Builder newBuilder()
Returns
TypeDescription
Phone.Builder

newBuilder(Phone prototype)

public static Phone.Builder newBuilder(Phone prototype)
Parameter
NameDescription
prototypePhone
Returns
TypeDescription
Phone.Builder

parseDelimitedFrom(InputStream input)

public static Phone parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Phone
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static Phone parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Phone
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static Phone parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Phone
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static Phone parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Phone
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static Phone parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Phone
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<Phone> parser()
Returns
TypeDescription
Parser<Phone>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public Phone getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for number.

getParserForType()

public Parser<Phone> getParserForType()
Returns
TypeDescription
Parser<Phone>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getType()

public Phone.PhoneType getType()

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

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

Returns
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for type.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getUsage()

public ContactInfoUsage getUsage()

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

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for whenAvailable.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public Phone.Builder toBuilder()
Returns
TypeDescription
Phone.Builder

writeTo(CodedOutputStream output)

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