Interface PhoneNumberOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
PhoneNumber,PhoneNumber.Builder
@Generated
public interface PhoneNumberOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionOptional.Optional.Optional.com.google.protobuf.ByteStringOptional.Output only.intOutput only.getName()Optional.com.google.protobuf.ByteStringOptional.Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOptional.booleanOutput only.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getName
String getName()Optional. The unique identifier of this phone number. Required for [PhoneNumbers.UpdatePhoneNumber][google.cloud.dialogflow.v2beta1.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:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()Optional. The unique identifier of this phone number. Required for [PhoneNumbers.UpdatePhoneNumber][google.cloud.dialogflow.v2beta1.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:
- The bytes for name.
-
getPhoneNumber
String getPhoneNumber()Output only. Phone number in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
string phone_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The phoneNumber.
-
getPhoneNumberBytes
com.google.protobuf.ByteString getPhoneNumberBytes()Output only. Phone number in [E.164](https://en.wikipedia.org/wiki/E.164) format. An example of a correctly formatted phone number: +15556767888.
string phone_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The bytes for phoneNumber.
-
getConversationProfile
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][google.cloud.dialogflow.v2beta1.PhoneNumber.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:
- The conversationProfile.
-
getConversationProfileBytes
com.google.protobuf.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][google.cloud.dialogflow.v2beta1.PhoneNumber.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:
- The bytes for conversationProfile.
-
getLifecycleStateValue
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:
- The enum numeric value on the wire for lifecycleState.
-
getLifecycleState
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:
- The lifecycleState.
-
hasAllowedSipTrunks
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:
- Whether the allowedSipTrunks field is set.
-
getAllowedSipTrunks
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:
- The allowedSipTrunks.
-
getAllowedSipTrunksOrBuilder
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]; -
hasPurgeTime
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:
- Whether the purgeTime field is set.
-
getPurgeTime
com.google.protobuf.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:
- The purgeTime.
-
getPurgeTimeOrBuilder
com.google.protobuf.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]; -
getInboundRestrictionCase
PhoneNumber.InboundRestrictionCase getInboundRestrictionCase()
-