Class AdditionalContactInfo.Builder

public static final class AdditionalContactInfo.Builder extends GeneratedMessageV3.Builder<AdditionalContactInfo.Builder> implements AdditionalContactInfoOrBuilder

Resource that represents contact information other than phone, email, URI and addresses.

Protobuf type google.cloud.talent.v4beta1.AdditionalContactInfo

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AdditionalContactInfo build()
Returns
TypeDescription
AdditionalContactInfo

buildPartial()

public AdditionalContactInfo buildPartial()
Returns
TypeDescription
AdditionalContactInfo

clear()

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

clearContactId()

public AdditionalContactInfo.Builder clearContactId()

The contact id. Number of characters allowed is 100.

string contact_id = 3;

Returns
TypeDescription
AdditionalContactInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public AdditionalContactInfo.Builder clearName()

The name of the contact method. For example, "hangout", "skype". Number of characters allowed is 100.

string name = 2;

Returns
TypeDescription
AdditionalContactInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUsage()

public AdditionalContactInfo.Builder clearUsage()

The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.

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

Returns
TypeDescription
AdditionalContactInfo.Builder

This builder for chaining.

clone()

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

getContactId()

public String getContactId()

The contact id. Number of characters allowed is 100.

string contact_id = 3;

Returns
TypeDescription
String

The contactId.

getContactIdBytes()

public ByteString getContactIdBytes()

The contact id. Number of characters allowed is 100.

string contact_id = 3;

Returns
TypeDescription
ByteString

The bytes for contactId.

getDefaultInstanceForType()

public AdditionalContactInfo getDefaultInstanceForType()
Returns
TypeDescription
AdditionalContactInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

The name of the contact method. For example, "hangout", "skype". Number of characters allowed is 100.

string name = 2;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the contact method. For example, "hangout", "skype". Number of characters allowed is 100.

string name = 2;

Returns
TypeDescription
ByteString

The bytes for name.

getUsage()

public ContactInfoUsage getUsage()

The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.

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

Returns
TypeDescription
ContactInfoUsage

The usage.

getUsageValue()

public int getUsageValue()

The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.

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

Returns
TypeDescription
int

The enum numeric value on the wire for usage.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AdditionalContactInfo other)

public AdditionalContactInfo.Builder mergeFrom(AdditionalContactInfo other)
Parameter
NameDescription
otherAdditionalContactInfo
Returns
TypeDescription
AdditionalContactInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setContactId(String value)

public AdditionalContactInfo.Builder setContactId(String value)

The contact id. Number of characters allowed is 100.

string contact_id = 3;

Parameter
NameDescription
valueString

The contactId to set.

Returns
TypeDescription
AdditionalContactInfo.Builder

This builder for chaining.

setContactIdBytes(ByteString value)

public AdditionalContactInfo.Builder setContactIdBytes(ByteString value)

The contact id. Number of characters allowed is 100.

string contact_id = 3;

Parameter
NameDescription
valueByteString

The bytes for contactId to set.

Returns
TypeDescription
AdditionalContactInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public AdditionalContactInfo.Builder setName(String value)

The name of the contact method. For example, "hangout", "skype". Number of characters allowed is 100.

string name = 2;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
AdditionalContactInfo.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AdditionalContactInfo.Builder setNameBytes(ByteString value)

The name of the contact method. For example, "hangout", "skype". Number of characters allowed is 100.

string name = 2;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
AdditionalContactInfo.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUsage(ContactInfoUsage value)

public AdditionalContactInfo.Builder setUsage(ContactInfoUsage value)

The usage of this contact method. For example, SCHOOL, WORK, PERSONAL.

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

Parameter
NameDescription
valueContactInfoUsage

The usage to set.

Returns
TypeDescription
AdditionalContactInfo.Builder

This builder for chaining.

setUsageValue(int value)

public AdditionalContactInfo.Builder setUsageValue(int value)

The usage of this contact method. 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
AdditionalContactInfo.Builder

This builder for chaining.