Class ConversationPhoneNumber.Builder (4.7.5)

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.v2beta1.ConversationPhoneNumber

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ConversationPhoneNumber build()
Returns
TypeDescription
ConversationPhoneNumber

buildPartial()

public ConversationPhoneNumber buildPartial()
Returns
TypeDescription
ConversationPhoneNumber

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public ConversationPhoneNumber.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ConversationPhoneNumber.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ConversationPhoneNumber getDefaultInstanceForType()
Returns
TypeDescription
ConversationPhoneNumber

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for phoneNumber.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ConversationPhoneNumber other)

public ConversationPhoneNumber.Builder mergeFrom(ConversationPhoneNumber other)
Parameter
NameDescription
otherConversationPhoneNumber
Returns
TypeDescription
ConversationPhoneNumber.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public ConversationPhoneNumber.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The phoneNumber to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for phoneNumber to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ConversationPhoneNumber.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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