Interface PhoneNumberOrBuilder (4.97.0)

public interface PhoneNumberOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAllowedSipTrunks()

public abstract 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.

getAllowedSipTrunksOrBuilder()

public abstract 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 abstract 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 abstract 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.

getInboundRestrictionCase()

public abstract PhoneNumber.InboundRestrictionCase getInboundRestrictionCase()
Returns
Type Description
PhoneNumber.InboundRestrictionCase

getLifecycleState()

public abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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.

getPurgeTimeOrBuilder()

public abstract 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 abstract 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 abstract 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.