public final class Phone extends GeneratedMessageV3 implements PhoneOrBuilder
Resource that represents a person's telephone number.
Protobuf type google.cloud.talent.v4beta1.Phone
Static Fields
NUMBER_FIELD_NUMBER
public static final int NUMBER_FIELD_NUMBER
Field Value
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
Field Value
USAGE_FIELD_NUMBER
public static final int USAGE_FIELD_NUMBER
Field Value
WHEN_AVAILABLE_FIELD_NUMBER
public static final int WHEN_AVAILABLE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Phone getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Phone.Builder newBuilder()
Returns
newBuilder(Phone prototype)
public static Phone.Builder newBuilder(Phone prototype)
Parameter
Name | Description |
prototype | Phone
|
Returns
public static Phone parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Phone parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Phone parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Phone parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Phone parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Phone parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Phone parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Phone parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Phone parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Phone parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Phone parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Phone parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Phone> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public Phone getDefaultInstanceForType()
Returns
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
getParserForType()
public Parser<Phone> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getType()
public Phone.PhoneType getType()
The phone type. For example, LANDLINE, MOBILE, FAX.
.google.cloud.talent.v4beta1.Phone.PhoneType type = 2;
Returns
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
Overrides
getUsage()
public ContactInfoUsage getUsage()
The usage of the phone. For example, SCHOOL, WORK, PERSONAL.
.google.cloud.talent.v4beta1.ContactInfoUsage usage = 1;
Returns
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()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Phone.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Phone.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Phone.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions