Class SipTrunk (4.60.0)

public final class SipTrunk extends GeneratedMessageV3 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 Fields

CONNECTIONS_FIELD_NUMBER

public static final int CONNECTIONS_FIELD_NUMBER
Field Value
Type Description
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

EXPECTED_HOSTNAME_FIELD_NUMBER

public static final int EXPECTED_HOSTNAME_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SipTrunk getDefaultInstance()
Returns
Type Description
SipTrunk

getDescriptor()

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

newBuilder()

public static SipTrunk.Builder newBuilder()
Returns
Type Description
SipTrunk.Builder

newBuilder(SipTrunk prototype)

public static SipTrunk.Builder newBuilder(SipTrunk prototype)
Parameter
Name Description
prototype SipTrunk
Returns
Type Description
SipTrunk.Builder

parseDelimitedFrom(InputStream input)

public static SipTrunk parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SipTrunk
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SipTrunk parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SipTrunk
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static SipTrunk parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
SipTrunk
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SipTrunk parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SipTrunk
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SipTrunk parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SipTrunk
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SipTrunk parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SipTrunk
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SipTrunk parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SipTrunk
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SipTrunk parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SipTrunk
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static SipTrunk parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SipTrunk
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SipTrunk parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SipTrunk
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static SipTrunk parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SipTrunk
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SipTrunk parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SipTrunk
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<SipTrunk> parser()
Returns
Type Description
Parser<SipTrunk>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

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

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.

getParserForType()

public Parser<SipTrunk> getParserForType()
Returns
Type Description
Parser<SipTrunk>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public SipTrunk.Builder newBuilderForType()
Returns
Type Description
SipTrunk.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SipTrunk.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SipTrunk.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public SipTrunk.Builder toBuilder()
Returns
Type Description
SipTrunk.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException