public static final class PhoneNumber.AllowedSipTrunks.Builder extends GeneratedMessage.Builder<PhoneNumber.AllowedSipTrunks.Builder> implements PhoneNumber.AllowedSipTrunksOrBuilderList of SIP trunks that are allowed to make calls to this phone number.
Protobuf type google.cloud.dialogflow.v2beta1.PhoneNumber.AllowedSipTrunks
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > PhoneNumber.AllowedSipTrunks.BuilderImplements
PhoneNumber.AllowedSipTrunksOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllCarrierIds(Iterable<String> values)
public PhoneNumber.AllowedSipTrunks.Builder addAllCarrierIds(Iterable<String> values)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];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The carrierIds to add. |
| Returns | |
|---|---|
| Type | Description |
PhoneNumber.AllowedSipTrunks.Builder |
This builder for chaining. |
addAllSipTrunks(Iterable<String> values)
public PhoneNumber.AllowedSipTrunks.Builder addAllSipTrunks(Iterable<String> values)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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The sipTrunks to add. |
| Returns | |
|---|---|
| Type | Description |
PhoneNumber.AllowedSipTrunks.Builder |
This builder for chaining. |
addCarrierIds(String value)
public PhoneNumber.AllowedSipTrunks.Builder addCarrierIds(String 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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe carrierIds to add. |
| Returns | |
|---|---|
| Type | Description |
PhoneNumber.AllowedSipTrunks.Builder |
This builder for chaining. |
addCarrierIdsBytes(ByteString value)
public PhoneNumber.AllowedSipTrunks.Builder addCarrierIdsBytes(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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the carrierIds to add. |
| Returns | |
|---|---|
| Type | Description |
PhoneNumber.AllowedSipTrunks.Builder |
This builder for chaining. |
addSipTrunks(String value)
public PhoneNumber.AllowedSipTrunks.Builder addSipTrunks(String value)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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe sipTrunks to add. |
| Returns | |
|---|---|
| Type | Description |
PhoneNumber.AllowedSipTrunks.Builder |
This builder for chaining. |
addSipTrunksBytes(ByteString value)
public PhoneNumber.AllowedSipTrunks.Builder addSipTrunksBytes(ByteString value)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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the sipTrunks to add. |
| Returns | |
|---|---|
| Type | Description |
PhoneNumber.AllowedSipTrunks.Builder |
This builder for chaining. |
build()
public PhoneNumber.AllowedSipTrunks build()| Returns | |
|---|---|
| Type | Description |
PhoneNumber.AllowedSipTrunks |
|
buildPartial()
public PhoneNumber.AllowedSipTrunks buildPartial()| Returns | |
|---|---|
| Type | Description |
PhoneNumber.AllowedSipTrunks |
|
clear()
public PhoneNumber.AllowedSipTrunks.Builder clear()| Returns | |
|---|---|
| Type | Description |
PhoneNumber.AllowedSipTrunks.Builder |
|
clearCarrierIds()
public PhoneNumber.AllowedSipTrunks.Builder 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 | |
|---|---|
| Type | Description |
PhoneNumber.AllowedSipTrunks.Builder |
This builder for chaining. |
clearSipTrunks()
public PhoneNumber.AllowedSipTrunks.Builder 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 | |
|---|---|
| Type | Description |
PhoneNumber.AllowedSipTrunks.Builder |
This builder for chaining. |
getCarrierIds(int index)
public String getCarrierIds(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];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The carrierIds at the given index. |
getCarrierIdsBytes(int index)
public 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];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the carrierIds at the given index. |
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];
| Returns | |
|---|---|
| Type | Description |
int |
The count of carrierIds. |
getCarrierIdsList()
public 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];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the carrierIds. |
getDefaultInstanceForType()
public PhoneNumber.AllowedSipTrunks getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
PhoneNumber.AllowedSipTrunks |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getSipTrunks(int index)
public String getSipTrunks(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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The sipTrunks at the given index. |
getSipTrunksBytes(int index)
public 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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the sipTrunks at the given index. |
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) = { ... }
| Returns | |
|---|---|
| Type | Description |
int |
The count of sipTrunks. |
getSipTrunksList()
public 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) = { ... }
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the sipTrunks. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(PhoneNumber.AllowedSipTrunks other)
public PhoneNumber.AllowedSipTrunks.Builder mergeFrom(PhoneNumber.AllowedSipTrunks other)| Parameter | |
|---|---|
| Name | Description |
other |
PhoneNumber.AllowedSipTrunks |
| Returns | |
|---|---|
| Type | Description |
PhoneNumber.AllowedSipTrunks.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PhoneNumber.AllowedSipTrunks.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
PhoneNumber.AllowedSipTrunks.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public PhoneNumber.AllowedSipTrunks.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
PhoneNumber.AllowedSipTrunks.Builder |
|
setCarrierIds(int index, String value)
public PhoneNumber.AllowedSipTrunks.Builder setCarrierIds(int index, String 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 | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe carrierIds to set. |
| Returns | |
|---|---|
| Type | Description |
PhoneNumber.AllowedSipTrunks.Builder |
This builder for chaining. |
setSipTrunks(int index, String value)
public PhoneNumber.AllowedSipTrunks.Builder setSipTrunks(int index, String value)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 | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe sipTrunks to set. |
| Returns | |
|---|---|
| Type | Description |
PhoneNumber.AllowedSipTrunks.Builder |
This builder for chaining. |