Class ConversationPhoneNumber.Builder (4.49.0)

public static final class ConversationPhoneNumber.Builder extends GeneratedMessageV3.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.v2.ConversationPhoneNumber

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ConversationPhoneNumber.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ConversationPhoneNumber.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public ConversationPhoneNumber.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ConversationPhoneNumber.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ConversationPhoneNumber.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ConversationPhoneNumber.Builder
Overrides

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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ConversationPhoneNumber.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ConversationPhoneNumber.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ConversationPhoneNumber.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ConversationPhoneNumber.Builder
Overrides

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.

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

public ConversationPhoneNumber.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ConversationPhoneNumber.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ConversationPhoneNumber.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ConversationPhoneNumber.Builder
Overrides