Interface PhoneNumberOrBuilder (4.64.0)

public interface PhoneNumberOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

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.

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.