Service Client: Google::Cloud::Dialogflow::V2::SipTrunk::SipTrunksClient
Client stub representing the remote SipTrunks gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to dialogflow.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Dialogflow::V2::SipTrunk - Compiled Protocol Buffers messages for google/cloud/dialogflow/v2/sip_trunk.proto
SYNOPSIS
use Google::Cloud::Dialogflow::V2::SipTrunk;
my $msg = Google::Cloud::Dialogflow::V2::SipTrunk::CreateSipTrunkRequest->new({
parent => $parent,
sip_trunk => $sip_trunk,
});
# Read or update a field
my $val = $msg->parent();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Dialogflow::V2::SipTrunk::CreateSipTrunkRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/dialogflow/v2/sip_trunk.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Dialogflow::V2::SipTrunk::CreateSipTrunkRequest
The request message for [SipTrunks.CreateSipTrunk][google.cloud.dialogflow.v2.SipTrunks.CreateSipTrunk].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The location to create a SIP trunk for. Format: `projects/<Project ID>/locations/<Location ID>`.
$msg->sip_trunk()/$msg->sip_trunk($value)Type:
Message(Google::Cloud::Dialogflow::V2::SipTrunk::SipTrunk)Required. The SIP trunk to create.
Google::Cloud::Dialogflow::V2::SipTrunk::DeleteSipTrunkRequest
The request message for [SipTrunks.DeleteSipTrunk][google.cloud.dialogflow.v2.SipTrunks.DeleteSipTrunk].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the SIP trunk to delete. Format: `projects/<Project ID>/locations/<Location ID>/sipTrunks/<SipTrunk ID>`.
Google::Cloud::Dialogflow::V2::SipTrunk::ListSipTrunksRequest
The request message for [SipTrunks.ListSipTrunks][google.cloud.dialogflow.v2.SipTrunks.ListSipTrunks].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The location to list SIP trunks from. Format: `projects/<Project ID>/locations/<Location ID>`.
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. The maximum number of items to return in a single page. By default 100 and at most 1000.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. The next_page_token value returned from a previous list request.
Google::Cloud::Dialogflow::V2::SipTrunk::ListSipTrunksResponse
The response message for [SipTrunks.ListSipTrunks][google.cloud.dialogflow.v2.SipTrunks.ListSipTrunks].
Inherits from Protobuf::Message.
Accessors
$msg->sip_trunks()/$msg->sip_trunks($value)Type:
Message(Google::Cloud::Dialogflow::V2::SipTrunk::SipTrunk)The list of SIP trunks.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringToken to retrieve the next page of results, or empty if there are no more results in the list.
Google::Cloud::Dialogflow::V2::SipTrunk::GetSipTrunkRequest
The request message for [SipTrunks.GetSipTrunk][google.cloud.dialogflow.v2.SipTrunks.GetSipTrunk].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the SIP trunk to delete. Format: `projects/<Project ID>/locations/<Location ID>/sipTrunks/<SipTrunk ID>`.
Google::Cloud::Dialogflow::V2::SipTrunk::UpdateSipTrunkRequest
The request message for [SipTrunks.UpdateSipTrunk][google.cloud.dialogflow.v2.SipTrunks.UpdateSipTrunk].
Inherits from Protobuf::Message.
Accessors
$msg->sip_trunk()/$msg->sip_trunk($value)Type:
Message(Google::Cloud::Dialogflow::V2::SipTrunk::SipTrunk)Required. The SipTrunk to update.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Optional. The mask to control which fields get updated. If the mask is not present, all fields will be updated.
Google::Cloud::Dialogflow::V2::SipTrunk::SipTrunk
SipTrunk is the resource that represents a SIP trunk to connect to Google Telephony platform SIP trunking service.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringIdentifier. The unique identifier of the SIP trunk. Format: `projects/<Project ID>/locations/<Location ID>/sipTrunks/<SipTrunk ID>`.
$msg->expected_hostname()/$msg->expected_hostname($value)Type:
StringRequired. The expected hostnames in the peer certificate from partner that is used for TLS authentication.
$msg->connections()/$msg->connections($value)Type:
Message(Google::Cloud::Dialogflow::V2::SipTrunk::Connection)Output only. Connections of the SIP trunk.
$msg->display_name()/$msg->display_name($value)Type:
StringOptional. Human readable alias for this trunk.
$msg->peer_hostnames()/$msg->peer_hostnames($value)Type:
Message(Google::Cloud::Dialogflow::V2::SipTrunk::SipHostname)Required. Peer hostnames of the SIP trunk.
$msg->google_root_cert_file()/$msg->google_root_cert_file($value)Type:
Enum(Google::Cloud::Dialogflow::V2::SipTrunk::GoogleRootCertFile)Optional. The root certificate file to use for this SIP trunk.
Enum: SipTrunk::GoogleRootCertFile
CERT_FILE_UNSPECIFIED=>0EXTERNAL_PRIVATE_CA=>5
Google::Cloud::Dialogflow::V2::SipTrunk::Connection
Represents a connection for SIP Trunk.
Inherits from Protobuf::Message.
Accessors
$msg->connection_id()/$msg->connection_id($value)Type:
StringOutput only. The unique identifier of the SIP Trunk connection.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Dialogflow::V2::Connection::State)Output only. State of the connection.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. When the connection status changed.
$msg->error_details()/$msg->error_details($value)Type:
Message(Google::Cloud::Dialogflow::V2::SipTrunk::Connection::ErrorDetails)Output only. The error details for the connection. Only populated when authentication errors occur.
Enum: Connection::State
STATE_UNSPECIFIED=>0CONNECTED=>1DISCONNECTED=>2AUTHENTICATION_FAILED=>3KEEPALIVE=>4
Enum: Connection::CertificateState
CERTIFICATE_STATE_UNSPECIFIED=>0CERTIFICATE_VALID=>1CERTIFICATE_INVALID=>2CERTIFICATE_EXPIRED=>3CERTIFICATE_HOSTNAME_NOT_FOUND=>4CERTIFICATE_UNAUTHENTICATED=>5CERTIFICATE_TRUST_STORE_NOT_FOUND=>6CERTIFICATE_HOSTNAME_INVALID_FORMAT=>7CERTIFICATE_QUOTA_EXCEEDED=>8
Google::Cloud::Dialogflow::V2::SipTrunk::SipHostname
Represents a peer hostname for SIP Trunk.
Inherits from Protobuf::Message.
Accessors
$msg->peer_hostname()/$msg->peer_hostname($value)Type:
StringRequired. Peer hostname name.
$msg->enabled_sip_ping()/$msg->enabled_sip_ping($value)Type:
BoolOutput only. Peer hostname enabled for SIP ping.
$msg->ping_interval()/$msg->ping_interval($value)Type:
Message(Google::Protobuf::Duration::Duration)Output only. How often the sip ping should occur.
$msg->peer_socket_address()/$msg->peer_socket_address($value)Type:
StringOutput only. The peer_socket address of the partner SBC pinged.
$msg->probe_details()/$msg->probe_details($value)Type:
Message(Google::Cloud::Dialogflow::V2::SipTrunk::ProbeDetails)Output only. The details from the options probe.
$msg->connection_state()/$msg->connection_state($value)Type:
Enum(Google::Cloud::Dialogflow::V2::SipHostname::ConnectionState)Output only. State of the connection.
$msg->error_details()/$msg->error_details($value)Type:
Message(Google::Cloud::Dialogflow::V2::SipTrunk::SipHostname::HostnameErrorDetails)Output only. The error details for the connection. Only populated when authentication errors occur.
Enum: SipHostname::ConnectionState
CONNECTION_STATE_UNSPECIFIED=>0CONNECTED=>1DISCONNECTED=>2AUTHENTICATION_FAILED=>3KEEPALIVE=>4
Enum: SipHostname::HostnameCertificateState
HOSTNAME_CERTIFICATE_STATE_UNSPECIFIED=>0VALID=>1INVALID=>2EXPIRED=>3HOSTNAME_NOT_FOUND=>4UNAUTHENTICATED=>5TRUST_STORE_NOT_FOUND=>6HOSTNAME_INVALID_FORMAT=>7QUOTA_EXCEEDED=>8
Google::Cloud::Dialogflow::V2::SipTrunk::ProbeDetails
The probe details of Sip Trunk peer hostname.
Inherits from Protobuf::Message.
Accessors
$msg->options_latency()/$msg->options_latency($value)Type:
Message(Google::Protobuf::Duration::Duration)Output only. Duration between OPTIONS send and OPTIONS 200 received.
$msg->probe_status()/$msg->probe_status($value)Type:
Enum(Google::Cloud::Dialogflow::V2::ProbeDetails::ProbeStatus)Output only. Result of the probe.
$msg->init_time()/$msg->init_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. When the options probe was started.
Enum: ProbeDetails::ProbeStatus
PROBE_STATUS_UNSPECIFIED=>0PROBE_STATUS_SUCCESS=>1PROBE_STATUS_FAILED=>2
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Dialogflow::V2::SipTrunk::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.