public static final class ConversationPhoneNumber.Builder extends GeneratedMessage.Builder<ConversationPhoneNumber.Builder> implements ConversationPhoneNumberOrBuilderRepresents a phone number for telephony integration. It allows for connecting a particular conversation over telephony.
Protobuf type google.cloud.dialogflow.v2beta1.ConversationPhoneNumber
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ConversationPhoneNumber.BuilderImplements
ConversationPhoneNumberOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ConversationPhoneNumber.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ConversationPhoneNumber.Builder |
|
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 |
intThe 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 |
StringThe 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 |
ByteStringThe bytes for phoneNumber to set. |
| Returns | |
|---|---|
| Type | Description |
ConversationPhoneNumber.Builder |
This builder for chaining. |