public static final class PhoneNumber.Builder extends GeneratedMessage.Builder<PhoneNumber.Builder> implements PhoneNumberOrBuilder Represents a phone number.
PhoneNumber resources enable phone calls to be answered by Dialogflow
services and are added to a project through a
PhoneNumberOrder.
Protobuf type google.cloud.dialogflow.v2beta1.PhoneNumber
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > PhoneNumber.BuilderImplements
PhoneNumberOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public PhoneNumber build()| Returns | |
|---|---|
| Type | Description |
PhoneNumber |
|
buildPartial()
public PhoneNumber buildPartial()| Returns | |
|---|---|
| Type | Description |
PhoneNumber |
|
clear()
public PhoneNumber.Builder clear()| Returns | |
|---|---|
| Type | Description |
PhoneNumber.Builder |
|
clearAllowedSipTrunks()
public PhoneNumber.Builder clearAllowedSipTrunks()Optional. Only allow calls from the specified SIP trunks.
.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks allowed_sip_trunks = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
PhoneNumber.Builder |
|
clearConversationProfile()
public PhoneNumber.Builder clearConversationProfile() Optional. The conversation profile calls to this PhoneNumber should use.
The project ID here should be the same as the one in
name.
Format: projects/<Project ID>/conversationProfiles/<ConversationProfile
ID>.
Format: projects/<Project ID>/locations/<Location
ID>/conversationProfiles/<ConversationProfile ID>.
string conversation_profile = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
PhoneNumber.Builder |
This builder for chaining. |
clearInboundRestriction()
public PhoneNumber.Builder clearInboundRestriction()| Returns | |
|---|---|
| Type | Description |
PhoneNumber.Builder |
|
clearLifecycleState()
public PhoneNumber.Builder clearLifecycleState() Output only. The state of the PhoneNumber. Defaults to ACTIVE.
PhoneNumber objects set to DELETE_REQUESTED always decline incoming
calls and can be removed completely within 30 days.
.google.cloud.dialogflow.v2beta1.PhoneNumber.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
PhoneNumber.Builder |
This builder for chaining. |
clearName()
public PhoneNumber.Builder clearName() Optional. The unique identifier of this phone number.
Required for
PhoneNumbers.UpdatePhoneNumber
method. Format: projects/<Project ID>/phoneNumbers/<PhoneNumber ID>.
Format: projects/<Project ID>/locations/<Location
ID>/phoneNumbers/<PhoneNumber ID>.
string name = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
PhoneNumber.Builder |
This builder for chaining. |
clearPhoneNumber()
public PhoneNumber.Builder clearPhoneNumber()Output only. Phone number in E.164 format. An example of a correctly formatted phone number: +15556767888.
string phone_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
PhoneNumber.Builder |
This builder for chaining. |
clearPurgeTime()
public PhoneNumber.Builder clearPurgeTime()Output only. The time at which this resource will be purged.
.google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
PhoneNumber.Builder |
|
getAllowedSipTrunks()
public PhoneNumber.AllowedSipTrunks getAllowedSipTrunks()Optional. Only allow calls from the specified SIP trunks.
.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks allowed_sip_trunks = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
PhoneNumber.AllowedSipTrunks |
The allowedSipTrunks. |
getAllowedSipTrunksBuilder()
public PhoneNumber.AllowedSipTrunks.Builder getAllowedSipTrunksBuilder()Optional. Only allow calls from the specified SIP trunks.
.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks allowed_sip_trunks = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
PhoneNumber.AllowedSipTrunks.Builder |
|
getAllowedSipTrunksOrBuilder()
public PhoneNumber.AllowedSipTrunksOrBuilder getAllowedSipTrunksOrBuilder()Optional. Only allow calls from the specified SIP trunks.
.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks allowed_sip_trunks = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
PhoneNumber.AllowedSipTrunksOrBuilder |
|
getConversationProfile()
public String getConversationProfile() Optional. The conversation profile calls to this PhoneNumber should use.
The project ID here should be the same as the one in
name.
Format: projects/<Project ID>/conversationProfiles/<ConversationProfile
ID>.
Format: projects/<Project ID>/locations/<Location
ID>/conversationProfiles/<ConversationProfile ID>.
string conversation_profile = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The conversationProfile. |
getConversationProfileBytes()
public ByteString getConversationProfileBytes() Optional. The conversation profile calls to this PhoneNumber should use.
The project ID here should be the same as the one in
name.
Format: projects/<Project ID>/conversationProfiles/<ConversationProfile
ID>.
Format: projects/<Project ID>/locations/<Location
ID>/conversationProfiles/<ConversationProfile ID>.
string conversation_profile = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for conversationProfile. |
getDefaultInstanceForType()
public PhoneNumber getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
PhoneNumber |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getInboundRestrictionCase()
public PhoneNumber.InboundRestrictionCase getInboundRestrictionCase()| Returns | |
|---|---|
| Type | Description |
PhoneNumber.InboundRestrictionCase |
|
getLifecycleState()
public PhoneNumber.LifecycleState getLifecycleState() Output only. The state of the PhoneNumber. Defaults to ACTIVE.
PhoneNumber objects set to DELETE_REQUESTED always decline incoming
calls and can be removed completely within 30 days.
.google.cloud.dialogflow.v2beta1.PhoneNumber.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
PhoneNumber.LifecycleState |
The lifecycleState. |
getLifecycleStateValue()
public int getLifecycleStateValue() Output only. The state of the PhoneNumber. Defaults to ACTIVE.
PhoneNumber objects set to DELETE_REQUESTED always decline incoming
calls and can be removed completely within 30 days.
.google.cloud.dialogflow.v2beta1.PhoneNumber.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for lifecycleState. |
getName()
public String getName() Optional. The unique identifier of this phone number.
Required for
PhoneNumbers.UpdatePhoneNumber
method. Format: projects/<Project ID>/phoneNumbers/<PhoneNumber ID>.
Format: projects/<Project ID>/locations/<Location
ID>/phoneNumbers/<PhoneNumber ID>.
string name = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes() Optional. The unique identifier of this phone number.
Required for
PhoneNumbers.UpdatePhoneNumber
method. Format: projects/<Project ID>/phoneNumbers/<PhoneNumber ID>.
Format: projects/<Project ID>/locations/<Location
ID>/phoneNumbers/<PhoneNumber ID>.
string name = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getPhoneNumber()
public String getPhoneNumber()Output only. Phone number in E.164 format. An example of a correctly formatted phone number: +15556767888.
string phone_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The phoneNumber. |
getPhoneNumberBytes()
public ByteString getPhoneNumberBytes()Output only. Phone number in E.164 format. An example of a correctly formatted phone number: +15556767888.
string phone_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for phoneNumber. |
getPurgeTime()
public Timestamp getPurgeTime()Output only. The time at which this resource will be purged.
.google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The purgeTime. |
getPurgeTimeBuilder()
public Timestamp.Builder getPurgeTimeBuilder()Output only. The time at which this resource will be purged.
.google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getPurgeTimeOrBuilder()
public TimestampOrBuilder getPurgeTimeOrBuilder()Output only. The time at which this resource will be purged.
.google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
hasAllowedSipTrunks()
public boolean hasAllowedSipTrunks()Optional. Only allow calls from the specified SIP trunks.
.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks allowed_sip_trunks = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the allowedSipTrunks field is set. |
hasPurgeTime()
public boolean hasPurgeTime()Output only. The time at which this resource will be purged.
.google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the purgeTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeAllowedSipTrunks(PhoneNumber.AllowedSipTrunks value)
public PhoneNumber.Builder mergeAllowedSipTrunks(PhoneNumber.AllowedSipTrunks value)Optional. Only allow calls from the specified SIP trunks.
.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks allowed_sip_trunks = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
PhoneNumber.AllowedSipTrunks |
| Returns | |
|---|---|
| Type | Description |
PhoneNumber.Builder |
|
mergeFrom(PhoneNumber other)
public PhoneNumber.Builder mergeFrom(PhoneNumber other)| Parameter | |
|---|---|
| Name | Description |
other |
PhoneNumber |
| Returns | |
|---|---|
| Type | Description |
PhoneNumber.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PhoneNumber.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
PhoneNumber.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public PhoneNumber.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
PhoneNumber.Builder |
|
mergePurgeTime(Timestamp value)
public PhoneNumber.Builder mergePurgeTime(Timestamp value)Output only. The time at which this resource will be purged.
.google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
PhoneNumber.Builder |
|
setAllowedSipTrunks(PhoneNumber.AllowedSipTrunks value)
public PhoneNumber.Builder setAllowedSipTrunks(PhoneNumber.AllowedSipTrunks value)Optional. Only allow calls from the specified SIP trunks.
.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks allowed_sip_trunks = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
PhoneNumber.AllowedSipTrunks |
| Returns | |
|---|---|
| Type | Description |
PhoneNumber.Builder |
|
setAllowedSipTrunks(PhoneNumber.AllowedSipTrunks.Builder builderForValue)
public PhoneNumber.Builder setAllowedSipTrunks(PhoneNumber.AllowedSipTrunks.Builder builderForValue)Optional. Only allow calls from the specified SIP trunks.
.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks allowed_sip_trunks = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
PhoneNumber.AllowedSipTrunks.Builder |
| Returns | |
|---|---|
| Type | Description |
PhoneNumber.Builder |
|
setConversationProfile(String value)
public PhoneNumber.Builder setConversationProfile(String value) Optional. The conversation profile calls to this PhoneNumber should use.
The project ID here should be the same as the one in
name.
Format: projects/<Project ID>/conversationProfiles/<ConversationProfile
ID>.
Format: projects/<Project ID>/locations/<Location
ID>/conversationProfiles/<ConversationProfile ID>.
string conversation_profile = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe conversationProfile to set. |
| Returns | |
|---|---|
| Type | Description |
PhoneNumber.Builder |
This builder for chaining. |
setConversationProfileBytes(ByteString value)
public PhoneNumber.Builder setConversationProfileBytes(ByteString value) Optional. The conversation profile calls to this PhoneNumber should use.
The project ID here should be the same as the one in
name.
Format: projects/<Project ID>/conversationProfiles/<ConversationProfile
ID>.
Format: projects/<Project ID>/locations/<Location
ID>/conversationProfiles/<ConversationProfile ID>.
string conversation_profile = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for conversationProfile to set. |
| Returns | |
|---|---|
| Type | Description |
PhoneNumber.Builder |
This builder for chaining. |
setLifecycleState(PhoneNumber.LifecycleState value)
public PhoneNumber.Builder setLifecycleState(PhoneNumber.LifecycleState value) Output only. The state of the PhoneNumber. Defaults to ACTIVE.
PhoneNumber objects set to DELETE_REQUESTED always decline incoming
calls and can be removed completely within 30 days.
.google.cloud.dialogflow.v2beta1.PhoneNumber.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
PhoneNumber.LifecycleStateThe lifecycleState to set. |
| Returns | |
|---|---|
| Type | Description |
PhoneNumber.Builder |
This builder for chaining. |
setLifecycleStateValue(int value)
public PhoneNumber.Builder setLifecycleStateValue(int value) Output only. The state of the PhoneNumber. Defaults to ACTIVE.
PhoneNumber objects set to DELETE_REQUESTED always decline incoming
calls and can be removed completely within 30 days.
.google.cloud.dialogflow.v2beta1.PhoneNumber.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for lifecycleState to set. |
| Returns | |
|---|---|
| Type | Description |
PhoneNumber.Builder |
This builder for chaining. |
setName(String value)
public PhoneNumber.Builder setName(String value) Optional. The unique identifier of this phone number.
Required for
PhoneNumbers.UpdatePhoneNumber
method. Format: projects/<Project ID>/phoneNumbers/<PhoneNumber ID>.
Format: projects/<Project ID>/locations/<Location
ID>/phoneNumbers/<PhoneNumber ID>.
string name = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
PhoneNumber.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public PhoneNumber.Builder setNameBytes(ByteString value) Optional. The unique identifier of this phone number.
Required for
PhoneNumbers.UpdatePhoneNumber
method. Format: projects/<Project ID>/phoneNumbers/<PhoneNumber ID>.
Format: projects/<Project ID>/locations/<Location
ID>/phoneNumbers/<PhoneNumber ID>.
string name = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
PhoneNumber.Builder |
This builder for chaining. |
setPhoneNumber(String value)
public PhoneNumber.Builder setPhoneNumber(String value)Output only. Phone number in E.164 format. An example of a correctly formatted phone number: +15556767888.
string phone_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe phoneNumber to set. |
| Returns | |
|---|---|
| Type | Description |
PhoneNumber.Builder |
This builder for chaining. |
setPhoneNumberBytes(ByteString value)
public PhoneNumber.Builder setPhoneNumberBytes(ByteString value)Output only. Phone number in E.164 format. An example of a correctly formatted phone number: +15556767888.
string phone_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for phoneNumber to set. |
| Returns | |
|---|---|
| Type | Description |
PhoneNumber.Builder |
This builder for chaining. |
setPurgeTime(Timestamp value)
public PhoneNumber.Builder setPurgeTime(Timestamp value)Output only. The time at which this resource will be purged.
.google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
PhoneNumber.Builder |
|
setPurgeTime(Timestamp.Builder builderForValue)
public PhoneNumber.Builder setPurgeTime(Timestamp.Builder builderForValue)Output only. The time at which this resource will be purged.
.google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
PhoneNumber.Builder |
|