Class PhoneNumber.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PhoneNumber.Builder>
com.google.cloud.dialogflow.v2beta1.PhoneNumber.Builder
- All Implemented Interfaces:
PhoneNumberOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PhoneNumber
public static final class PhoneNumber.Builder
extends com.google.protobuf.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][google.cloud.dialogflow.v2beta1.PhoneNumberOrder].Protobuf type
google.cloud.dialogflow.v2beta1.PhoneNumber-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Output only.Optional.Output only.Output only.Optional.Optional.Optional.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.intOutput only.getName()Optional.com.google.protobuf.ByteStringOptional.Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOptional.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanOptional.mergeFrom(PhoneNumber other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergePurgeTime(com.google.protobuf.Timestamp value) Output only.Optional.setAllowedSipTrunks(PhoneNumber.AllowedSipTrunks.Builder builderForValue) Optional.setConversationProfile(String value) Optional.setConversationProfileBytes(com.google.protobuf.ByteString value) Optional.Output only.setLifecycleStateValue(int value) Output only.Optional.setNameBytes(com.google.protobuf.ByteString value) Optional.setPhoneNumber(String value) Output only.setPhoneNumberBytes(com.google.protobuf.ByteString value) Output only.setPurgeTime(com.google.protobuf.Timestamp value) Output only.setPurgeTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<PhoneNumber.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<PhoneNumber.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<PhoneNumber.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PhoneNumber.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PhoneNumber.Builder>
-
mergeFrom
public PhoneNumber.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PhoneNumber.Builder>- Throws:
IOException
-
getInboundRestrictionCase
- Specified by:
getInboundRestrictionCasein interfacePhoneNumberOrBuilder
-
clearInboundRestriction
-
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];- Specified by:
getNamein interfacePhoneNumberOrBuilder- Returns:
- The name.
-
getNameBytes
public 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];- Specified by:
getNameBytesin interfacePhoneNumberOrBuilder- Returns:
- The bytes for name.
-
setName
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];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
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:
- This builder for chaining.
-
setNameBytes
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];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getPhoneNumberin interfacePhoneNumberOrBuilder- Returns:
- The phoneNumber.
-
getPhoneNumberBytes
public 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];- Specified by:
getPhoneNumberBytesin interfacePhoneNumberOrBuilder- Returns:
- The bytes for phoneNumber.
-
setPhoneNumber
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];- Parameters:
value- The phoneNumber to set.- Returns:
- This builder for chaining.
-
clearPhoneNumber
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:
- This builder for chaining.
-
setPhoneNumberBytes
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];- Parameters:
value- The bytes for phoneNumber to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getConversationProfilein interfacePhoneNumberOrBuilder- Returns:
- The conversationProfile.
-
getConversationProfileBytes
public 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];- Specified by:
getConversationProfileBytesin interfacePhoneNumberOrBuilder- Returns:
- The bytes for conversationProfile.
-
setConversationProfile
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];- Parameters:
value- The conversationProfile to set.- Returns:
- This builder for chaining.
-
clearConversationProfile
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:
- This builder for chaining.
-
setConversationProfileBytes
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];- Parameters:
value- The bytes for conversationProfile to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getLifecycleStateValuein interfacePhoneNumberOrBuilder- Returns:
- The enum numeric value on the wire for lifecycleState.
-
setLifecycleStateValue
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];- Parameters:
value- The enum numeric value on the wire for lifecycleState to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getLifecycleStatein interfacePhoneNumberOrBuilder- Returns:
- The lifecycleState.
-
setLifecycleState
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];- Parameters:
value- The lifecycleState to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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];- Specified by:
hasAllowedSipTrunksin interfacePhoneNumberOrBuilder- Returns:
- Whether the allowedSipTrunks field is set.
-
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];- Specified by:
getAllowedSipTrunksin interfacePhoneNumberOrBuilder- Returns:
- The allowedSipTrunks.
-
setAllowedSipTrunks
Optional. Only allow calls from the specified SIP trunks.
.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks allowed_sip_trunks = 7 [(.google.api.field_behavior) = OPTIONAL]; -
setAllowedSipTrunks
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]; -
mergeAllowedSipTrunks
Optional. Only allow calls from the specified SIP trunks.
.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks allowed_sip_trunks = 7 [(.google.api.field_behavior) = OPTIONAL]; -
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]; -
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]; -
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];- Specified by:
getAllowedSipTrunksOrBuilderin interfacePhoneNumberOrBuilder
-
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];- Specified by:
hasPurgeTimein interfacePhoneNumberOrBuilder- Returns:
- Whether the purgeTime field is set.
-
getPurgeTime
public 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];- Specified by:
getPurgeTimein interfacePhoneNumberOrBuilder- Returns:
- The purgeTime.
-
setPurgeTime
Output only. The time at which this resource will be purged.
.google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setPurgeTime
Output only. The time at which this resource will be purged.
.google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergePurgeTime
Output only. The time at which this resource will be purged.
.google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearPurgeTime
Output only. The time at which this resource will be purged.
.google.protobuf.Timestamp purge_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getPurgeTimeBuilder
public com.google.protobuf.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]; -
getPurgeTimeOrBuilder
public 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];- Specified by:
getPurgeTimeOrBuilderin interfacePhoneNumberOrBuilder
-