Class SipTrunk.Builder (4.60.0)

public static final class SipTrunk.Builder extends GeneratedMessageV3.Builder<SipTrunk.Builder> implements SipTrunkOrBuilder

SipTrunk is the resource that represents a SIP trunk to connect to Google Telephony platform SIP trunking service.

Protobuf type google.cloud.dialogflow.v2beta1.SipTrunk

Implements

SipTrunkOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllConnections(Iterable<? extends Connection> values)

public SipTrunk.Builder addAllConnections(Iterable<? extends Connection> values)

Output only. Connections of the SIP trunk.

repeated .google.cloud.dialogflow.v2beta1.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.dialogflow.v2beta1.Connection>
Returns
Type Description
SipTrunk.Builder

addAllExpectedHostname(Iterable<String> values)

public SipTrunk.Builder addAllExpectedHostname(Iterable<String> values)

Required. The expected hostnames in the peer certificate from partner that is used for TLS authentication.

repeated string expected_hostname = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<String>

The expectedHostname to add.

Returns
Type Description
SipTrunk.Builder

This builder for chaining.

addConnections(Connection value)

public SipTrunk.Builder addConnections(Connection value)

Output only. Connections of the SIP trunk.

repeated .google.cloud.dialogflow.v2beta1.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Connection
Returns
Type Description
SipTrunk.Builder

addConnections(Connection.Builder builderForValue)

public SipTrunk.Builder addConnections(Connection.Builder builderForValue)

Output only. Connections of the SIP trunk.

repeated .google.cloud.dialogflow.v2beta1.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Connection.Builder
Returns
Type Description
SipTrunk.Builder

addConnections(int index, Connection value)

public SipTrunk.Builder addConnections(int index, Connection value)

Output only. Connections of the SIP trunk.

repeated .google.cloud.dialogflow.v2beta1.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value Connection
Returns
Type Description
SipTrunk.Builder

addConnections(int index, Connection.Builder builderForValue)

public SipTrunk.Builder addConnections(int index, Connection.Builder builderForValue)

Output only. Connections of the SIP trunk.

repeated .google.cloud.dialogflow.v2beta1.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue Connection.Builder
Returns
Type Description
SipTrunk.Builder

addConnectionsBuilder()

public Connection.Builder addConnectionsBuilder()

Output only. Connections of the SIP trunk.

repeated .google.cloud.dialogflow.v2beta1.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Connection.Builder

addConnectionsBuilder(int index)

public Connection.Builder addConnectionsBuilder(int index)

Output only. Connections of the SIP trunk.

repeated .google.cloud.dialogflow.v2beta1.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Connection.Builder

addExpectedHostname(String value)

public SipTrunk.Builder addExpectedHostname(String value)

Required. The expected hostnames in the peer certificate from partner that is used for TLS authentication.

repeated string expected_hostname = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The expectedHostname to add.

Returns
Type Description
SipTrunk.Builder

This builder for chaining.

addExpectedHostnameBytes(ByteString value)

public SipTrunk.Builder addExpectedHostnameBytes(ByteString value)

Required. The expected hostnames in the peer certificate from partner that is used for TLS authentication.

repeated string expected_hostname = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes of the expectedHostname to add.

Returns
Type Description
SipTrunk.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SipTrunk.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SipTrunk.Builder
Overrides

build()

public SipTrunk build()
Returns
Type Description
SipTrunk

buildPartial()

public SipTrunk buildPartial()
Returns
Type Description
SipTrunk

clear()

public SipTrunk.Builder clear()
Returns
Type Description
SipTrunk.Builder
Overrides

clearConnections()

public SipTrunk.Builder clearConnections()

Output only. Connections of the SIP trunk.

repeated .google.cloud.dialogflow.v2beta1.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SipTrunk.Builder

clearDisplayName()

public SipTrunk.Builder clearDisplayName()

Optional. Human readable alias for this trunk.

string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SipTrunk.Builder

This builder for chaining.

clearExpectedHostname()

public SipTrunk.Builder clearExpectedHostname()

Required. The expected hostnames in the peer certificate from partner that is used for TLS authentication.

repeated string expected_hostname = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SipTrunk.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SipTrunk.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SipTrunk.Builder
Overrides

clearName()

public SipTrunk.Builder clearName()

Identifier. The unique identifier of the SIP trunk. Format: projects/<Project ID>/locations/<Location ID>/sipTrunks/<SipTrunk ID>.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
SipTrunk.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SipTrunk.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SipTrunk.Builder
Overrides

clone()

public SipTrunk.Builder clone()
Returns
Type Description
SipTrunk.Builder
Overrides

getConnections(int index)

public Connection getConnections(int index)

Output only. Connections of the SIP trunk.

repeated .google.cloud.dialogflow.v2beta1.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Connection

getConnectionsBuilder(int index)

public Connection.Builder getConnectionsBuilder(int index)

Output only. Connections of the SIP trunk.

repeated .google.cloud.dialogflow.v2beta1.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Connection.Builder

getConnectionsBuilderList()

public List<Connection.Builder> getConnectionsBuilderList()

Output only. Connections of the SIP trunk.

repeated .google.cloud.dialogflow.v2beta1.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getConnectionsCount()

public int getConnectionsCount()

Output only. Connections of the SIP trunk.

repeated .google.cloud.dialogflow.v2beta1.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getConnectionsList()

public List<Connection> getConnectionsList()

Output only. Connections of the SIP trunk.

repeated .google.cloud.dialogflow.v2beta1.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Connection>

getConnectionsOrBuilder(int index)

public ConnectionOrBuilder getConnectionsOrBuilder(int index)

Output only. Connections of the SIP trunk.

repeated .google.cloud.dialogflow.v2beta1.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ConnectionOrBuilder

getConnectionsOrBuilderList()

public List<? extends ConnectionOrBuilder> getConnectionsOrBuilderList()

Output only. Connections of the SIP trunk.

repeated .google.cloud.dialogflow.v2beta1.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.dialogflow.v2beta1.ConnectionOrBuilder>

getDefaultInstanceForType()

public SipTrunk getDefaultInstanceForType()
Returns
Type Description
SipTrunk

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Optional. Human readable alias for this trunk.

string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Optional. Human readable alias for this trunk.

string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for displayName.

getExpectedHostname(int index)

public String getExpectedHostname(int index)

Required. The expected hostnames in the peer certificate from partner that is used for TLS authentication.

repeated string expected_hostname = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The expectedHostname at the given index.

getExpectedHostnameBytes(int index)

public ByteString getExpectedHostnameBytes(int index)

Required. The expected hostnames in the peer certificate from partner that is used for TLS authentication.

repeated string expected_hostname = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the expectedHostname at the given index.

getExpectedHostnameCount()

public int getExpectedHostnameCount()

Required. The expected hostnames in the peer certificate from partner that is used for TLS authentication.

repeated string expected_hostname = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of expectedHostname.

getExpectedHostnameList()

public ProtocolStringList getExpectedHostnameList()

Required. The expected hostnames in the peer certificate from partner that is used for TLS authentication.

repeated string expected_hostname = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProtocolStringList

A list containing the expectedHostname.

getName()

public String getName()

Identifier. The unique identifier of the SIP trunk. Format: projects/<Project ID>/locations/<Location ID>/sipTrunks/<SipTrunk ID>.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The unique identifier of the SIP trunk. Format: projects/<Project ID>/locations/<Location ID>/sipTrunks/<SipTrunk ID>.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SipTrunk other)

public SipTrunk.Builder mergeFrom(SipTrunk other)
Parameter
Name Description
other SipTrunk
Returns
Type Description
SipTrunk.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SipTrunk.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SipTrunk.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SipTrunk.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SipTrunk.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SipTrunk.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SipTrunk.Builder
Overrides

removeConnections(int index)

public SipTrunk.Builder removeConnections(int index)

Output only. Connections of the SIP trunk.

repeated .google.cloud.dialogflow.v2beta1.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
SipTrunk.Builder

setConnections(int index, Connection value)

public SipTrunk.Builder setConnections(int index, Connection value)

Output only. Connections of the SIP trunk.

repeated .google.cloud.dialogflow.v2beta1.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value Connection
Returns
Type Description
SipTrunk.Builder

setConnections(int index, Connection.Builder builderForValue)

public SipTrunk.Builder setConnections(int index, Connection.Builder builderForValue)

Output only. Connections of the SIP trunk.

repeated .google.cloud.dialogflow.v2beta1.Connection connections = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue Connection.Builder
Returns
Type Description
SipTrunk.Builder

setDisplayName(String value)

public SipTrunk.Builder setDisplayName(String value)

Optional. Human readable alias for this trunk.

string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
SipTrunk.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public SipTrunk.Builder setDisplayNameBytes(ByteString value)

Optional. Human readable alias for this trunk.

string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
SipTrunk.Builder

This builder for chaining.

setExpectedHostname(int index, String value)

public SipTrunk.Builder setExpectedHostname(int index, String value)

Required. The expected hostnames in the peer certificate from partner that is used for TLS authentication.

repeated string expected_hostname = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int

The index to set the value at.

value String

The expectedHostname to set.

Returns
Type Description
SipTrunk.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SipTrunk.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SipTrunk.Builder
Overrides

setName(String value)

public SipTrunk.Builder setName(String value)

Identifier. The unique identifier of the SIP trunk. Format: projects/<Project ID>/locations/<Location ID>/sipTrunks/<SipTrunk ID>.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
SipTrunk.Builder

This builder for chaining.

setNameBytes(ByteString value)

public SipTrunk.Builder setNameBytes(ByteString value)

Identifier. The unique identifier of the SIP trunk. Format: projects/<Project ID>/locations/<Location ID>/sipTrunks/<SipTrunk ID>.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
SipTrunk.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SipTrunk.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SipTrunk.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SipTrunk.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SipTrunk.Builder
Overrides