Class Phone.Builder

public static final class Phone.Builder extends GeneratedMessageV3.Builder<Phone.Builder> implements PhoneOrBuilder

Resource that represents a person's telephone number.

Protobuf type google.cloud.talent.v4beta1.Phone

Implements

PhoneOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Phone.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Phone.Builder
Overrides

build()

public Phone build()
Returns
TypeDescription
Phone

buildPartial()

public Phone buildPartial()
Returns
TypeDescription
Phone

clear()

public Phone.Builder clear()
Returns
TypeDescription
Phone.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Phone.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Phone.Builder
Overrides

clearNumber()

public Phone.Builder clearNumber()

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
Phone.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Phone.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Phone.Builder
Overrides

clearType()

public Phone.Builder clearType()

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

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

Returns
TypeDescription
Phone.Builder

This builder for chaining.

clearUsage()

public Phone.Builder clearUsage()

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

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

Returns
TypeDescription
Phone.Builder

This builder for chaining.

clearWhenAvailable()

public Phone.Builder clearWhenAvailable()

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

string when_available = 4;

Returns
TypeDescription
Phone.Builder

This builder for chaining.

clone()

public Phone.Builder clone()
Returns
TypeDescription
Phone.Builder
Overrides

getDefaultInstanceForType()

public Phone getDefaultInstanceForType()
Returns
TypeDescription
Phone

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Phone other)

public Phone.Builder mergeFrom(Phone other)
Parameter
NameDescription
otherPhone
Returns
TypeDescription
Phone.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Phone.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Phone.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Phone.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Phone.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Phone.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Phone.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Phone.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Phone.Builder
Overrides

setNumber(String value)

public Phone.Builder setNumber(String value)

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;

Parameter
NameDescription
valueString

The number to set.

Returns
TypeDescription
Phone.Builder

This builder for chaining.

setNumberBytes(ByteString value)

public Phone.Builder setNumberBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes for number to set.

Returns
TypeDescription
Phone.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Phone.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Phone.Builder
Overrides

setType(Phone.PhoneType value)

public Phone.Builder setType(Phone.PhoneType value)

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

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

Parameter
NameDescription
valuePhone.PhoneType

The type to set.

Returns
TypeDescription
Phone.Builder

This builder for chaining.

setTypeValue(int value)

public Phone.Builder setTypeValue(int value)

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

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for type to set.

Returns
TypeDescription
Phone.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Phone.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Phone.Builder
Overrides

setUsage(ContactInfoUsage value)

public Phone.Builder setUsage(ContactInfoUsage value)

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

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

Parameter
NameDescription
valueContactInfoUsage

The usage to set.

Returns
TypeDescription
Phone.Builder

This builder for chaining.

setUsageValue(int value)

public Phone.Builder setUsageValue(int value)

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

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for usage to set.

Returns
TypeDescription
Phone.Builder

This builder for chaining.

setWhenAvailable(String value)

public Phone.Builder setWhenAvailable(String value)

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

string when_available = 4;

Parameter
NameDescription
valueString

The whenAvailable to set.

Returns
TypeDescription
Phone.Builder

This builder for chaining.

setWhenAvailableBytes(ByteString value)

public Phone.Builder setWhenAvailableBytes(ByteString value)

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

string when_available = 4;

Parameter
NameDescription
valueByteString

The bytes for whenAvailable to set.

Returns
TypeDescription
Phone.Builder

This builder for chaining.