Class PhoneNumber.AllowedSipTrunks.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PhoneNumber.AllowedSipTrunks.Builder>
com.google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks.Builder
- All Implemented Interfaces:
PhoneNumber.AllowedSipTrunksOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PhoneNumber.AllowedSipTrunks
public static final class PhoneNumber.AllowedSipTrunks.Builder
extends com.google.protobuf.GeneratedMessage.Builder<PhoneNumber.AllowedSipTrunks.Builder>
implements PhoneNumber.AllowedSipTrunksOrBuilder
List of SIP trunks that are allowed to make calls to this phone number.Protobuf type
google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks-
Method Summary
Modifier and TypeMethodDescriptionaddAllCarrierIds(Iterable<String> values) Optional.addAllSipTrunks(Iterable<String> values) List of SIP trunks that are allowed to make calls to this phone number.addCarrierIds(String value) Optional.addCarrierIdsBytes(com.google.protobuf.ByteString value) Optional.addSipTrunks(String value) List of SIP trunks that are allowed to make calls to this phone number.addSipTrunksBytes(com.google.protobuf.ByteString value) List of SIP trunks that are allowed to make calls to this phone number.build()clear()Optional.List of SIP trunks that are allowed to make calls to this phone number.getCarrierIds(int index) Optional.com.google.protobuf.ByteStringgetCarrierIdsBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetSipTrunks(int index) List of SIP trunks that are allowed to make calls to this phone number.com.google.protobuf.ByteStringgetSipTrunksBytes(int index) List of SIP trunks that are allowed to make calls to this phone number.intList of SIP trunks that are allowed to make calls to this phone number.com.google.protobuf.ProtocolStringListList of SIP trunks that are allowed to make calls to this phone number.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setCarrierIds(int index, String value) Optional.setSipTrunks(int index, String value) List of SIP trunks that are allowed to make calls to this phone number.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.AllowedSipTrunks.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.AllowedSipTrunks.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.AllowedSipTrunks.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.AllowedSipTrunks.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PhoneNumber.AllowedSipTrunks.Builder>
-
mergeFrom
public PhoneNumber.AllowedSipTrunks.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.AllowedSipTrunks.Builder>- Throws:
IOException
-
getSipTrunksList
public com.google.protobuf.ProtocolStringList getSipTrunksList()List of SIP trunks that are allowed to make calls to this phone number. If empty, any SIP trunk is allowed.
repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... }- Specified by:
getSipTrunksListin interfacePhoneNumber.AllowedSipTrunksOrBuilder- Returns:
- A list containing the sipTrunks.
-
getSipTrunksCount
public int getSipTrunksCount()List of SIP trunks that are allowed to make calls to this phone number. If empty, any SIP trunk is allowed.
repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... }- Specified by:
getSipTrunksCountin interfacePhoneNumber.AllowedSipTrunksOrBuilder- Returns:
- The count of sipTrunks.
-
getSipTrunks
List of SIP trunks that are allowed to make calls to this phone number. If empty, any SIP trunk is allowed.
repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... }- Specified by:
getSipTrunksin interfacePhoneNumber.AllowedSipTrunksOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The sipTrunks at the given index.
-
getSipTrunksBytes
public com.google.protobuf.ByteString getSipTrunksBytes(int index) List of SIP trunks that are allowed to make calls to this phone number. If empty, any SIP trunk is allowed.
repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... }- Specified by:
getSipTrunksBytesin interfacePhoneNumber.AllowedSipTrunksOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the sipTrunks at the given index.
-
setSipTrunks
List of SIP trunks that are allowed to make calls to this phone number. If empty, any SIP trunk is allowed.
repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... }- Parameters:
index- The index to set the value at.value- The sipTrunks to set.- Returns:
- This builder for chaining.
-
addSipTrunks
List of SIP trunks that are allowed to make calls to this phone number. If empty, any SIP trunk is allowed.
repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... }- Parameters:
value- The sipTrunks to add.- Returns:
- This builder for chaining.
-
addAllSipTrunks
List of SIP trunks that are allowed to make calls to this phone number. If empty, any SIP trunk is allowed.
repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... }- Parameters:
values- The sipTrunks to add.- Returns:
- This builder for chaining.
-
clearSipTrunks
List of SIP trunks that are allowed to make calls to this phone number. If empty, any SIP trunk is allowed.
repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
addSipTrunksBytes
List of SIP trunks that are allowed to make calls to this phone number. If empty, any SIP trunk is allowed.
repeated string sip_trunks = 1 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes of the sipTrunks to add.- Returns:
- This builder for chaining.
-
getCarrierIdsList
public com.google.protobuf.ProtocolStringList getCarrierIdsList()Optional. List of GTP carrier IDs allowed to make calls to this phone number. Used for private interconnects where standard SIP trunks aren't applicable.
repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCarrierIdsListin interfacePhoneNumber.AllowedSipTrunksOrBuilder- Returns:
- A list containing the carrierIds.
-
getCarrierIdsCount
public int getCarrierIdsCount()Optional. List of GTP carrier IDs allowed to make calls to this phone number. Used for private interconnects where standard SIP trunks aren't applicable.
repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCarrierIdsCountin interfacePhoneNumber.AllowedSipTrunksOrBuilder- Returns:
- The count of carrierIds.
-
getCarrierIds
Optional. List of GTP carrier IDs allowed to make calls to this phone number. Used for private interconnects where standard SIP trunks aren't applicable.
repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCarrierIdsin interfacePhoneNumber.AllowedSipTrunksOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The carrierIds at the given index.
-
getCarrierIdsBytes
public com.google.protobuf.ByteString getCarrierIdsBytes(int index) Optional. List of GTP carrier IDs allowed to make calls to this phone number. Used for private interconnects where standard SIP trunks aren't applicable.
repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCarrierIdsBytesin interfacePhoneNumber.AllowedSipTrunksOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the carrierIds at the given index.
-
setCarrierIds
Optional. List of GTP carrier IDs allowed to make calls to this phone number. Used for private interconnects where standard SIP trunks aren't applicable.
repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The carrierIds to set.- Returns:
- This builder for chaining.
-
addCarrierIds
Optional. List of GTP carrier IDs allowed to make calls to this phone number. Used for private interconnects where standard SIP trunks aren't applicable.
repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The carrierIds to add.- Returns:
- This builder for chaining.
-
addAllCarrierIds
Optional. List of GTP carrier IDs allowed to make calls to this phone number. Used for private interconnects where standard SIP trunks aren't applicable.
repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The carrierIds to add.- Returns:
- This builder for chaining.
-
clearCarrierIds
Optional. List of GTP carrier IDs allowed to make calls to this phone number. Used for private interconnects where standard SIP trunks aren't applicable.
repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
addCarrierIdsBytes
public PhoneNumber.AllowedSipTrunks.Builder addCarrierIdsBytes(com.google.protobuf.ByteString value) Optional. List of GTP carrier IDs allowed to make calls to this phone number. Used for private interconnects where standard SIP trunks aren't applicable.
repeated string carrier_ids = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes of the carrierIds to add.- Returns:
- This builder for chaining.
-