Class ConversationPhoneNumber.Builder (4.89.0)

public static final class ConversationPhoneNumber.Builder extends GeneratedMessage.Builder<ConversationPhoneNumber.Builder> implements ConversationPhoneNumberOrBuilder

Represents a phone number for telephony integration. It allows for connecting a particular conversation over telephony.

Protobuf type google.cloud.dialogflow.v2beta1.ConversationPhoneNumber

Static Methods

getDescriptor()

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

Methods

build()

public ConversationPhoneNumber build()
Returns
Type Description
ConversationPhoneNumber

buildPartial()

public ConversationPhoneNumber buildPartial()
Returns
Type Description
ConversationPhoneNumber

clear()

public ConversationPhoneNumber.Builder clear()
Returns
Type Description
ConversationPhoneNumber.Builder
Overrides

clearCountryCode()

public ConversationPhoneNumber.Builder clearCountryCode()

Output only. Desired country code for the phone number.

int32 country_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ConversationPhoneNumber.Builder

This builder for chaining.

clearPhoneNumber()

public ConversationPhoneNumber.Builder clearPhoneNumber()

Output only. The phone number to connect to this conversation.

string phone_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ConversationPhoneNumber.Builder

This builder for chaining.

getCountryCode()

public int getCountryCode()

Output only. Desired country code for the phone number.

int32 country_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The countryCode.

getDefaultInstanceForType()

public ConversationPhoneNumber getDefaultInstanceForType()
Returns
Type Description
ConversationPhoneNumber

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPhoneNumber()

public String getPhoneNumber()

Output only. The phone number to connect to this conversation.

string phone_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The phoneNumber.

getPhoneNumberBytes()

public ByteString getPhoneNumberBytes()

Output only. The phone number to connect to this conversation.

string phone_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for phoneNumber.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ConversationPhoneNumber other)

public ConversationPhoneNumber.Builder mergeFrom(ConversationPhoneNumber other)
Parameter
Name Description
other ConversationPhoneNumber
Returns
Type Description
ConversationPhoneNumber.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ConversationPhoneNumber.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConversationPhoneNumber.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ConversationPhoneNumber.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ConversationPhoneNumber.Builder
Overrides

setCountryCode(int value)

public ConversationPhoneNumber.Builder setCountryCode(int value)

Output only. Desired country code for the phone number.

int32 country_code = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The countryCode to set.

Returns
Type Description
ConversationPhoneNumber.Builder

This builder for chaining.

setPhoneNumber(String value)

public ConversationPhoneNumber.Builder setPhoneNumber(String value)

Output only. The phone number to connect to this conversation.

string phone_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The phoneNumber to set.

Returns
Type Description
ConversationPhoneNumber.Builder

This builder for chaining.

setPhoneNumberBytes(ByteString value)

public ConversationPhoneNumber.Builder setPhoneNumberBytes(ByteString value)

Output only. The phone number to connect to this conversation.

string phone_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for phoneNumber to set.

Returns
Type Description
ConversationPhoneNumber.Builder

This builder for chaining.