Service Client: Google::Cloud::Sql::V1beta4::CloudSqlData::SqlDataServiceClient
Client stub representing the remote SqlDataService gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to sql.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Sql::V1beta4::CloudSqlData - Compiled Protocol Buffers messages for google/cloud/sql/v1beta4/cloud_sql_data.proto
SYNOPSIS
use Google::Cloud::Sql::V1beta4::CloudSqlData;
my $msg = Google::Cloud::Sql::V1beta4::CloudSqlData::StreamSqlDataRequest->new({
ack => $ack,
start_session => $start_session,
continue_session => $continue_session,
data => $data,
});
# Read or update a field
my $val = $msg->ack();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Sql::V1beta4::CloudSqlData::StreamSqlDataRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/sql/v1beta4/cloud_sql_data.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::Sql::V1beta4::CloudSqlData::StreamSqlDataRequest
Message sent from the client to `SqlDataService`.
Inherits from Protobuf::Message.
Accessors
$msg->ack()/$msg->ack($value)Type:
Message(Google::Cloud::Sql::V1beta4::CloudSqlData::Ack)Optional. Acknowledges data received by the client.
$msg->start_session()/$msg->start_session($value)Type:
Message(Google::Cloud::Sql::V1beta4::CloudSqlData::StartSession)Starts a new session. When starting a new session, this is the first message the client sends.
$msg->continue_session()/$msg->continue_session($value)Type:
Message(Google::Cloud::Sql::V1beta4::CloudSqlData::ContinueSession)Continues an existing session. When continuing an existing session, this is the first message the client sends.
$msg->data()/$msg->data($value)Type:
Message(Google::Cloud::Sql::V1beta4::CloudSqlData::DataPacket)Database data.
$msg->terminate_session()/$msg->terminate_session($value)Type:
Message(Google::Cloud::Sql::V1beta4::CloudSqlData::TerminateSession)Terminates the session. This closes the connection to the database.
$msg->instance_id()/$msg->instance_id($value)Type:
StringOptional. Deprecated: Use `StartSession.instance_id` or `ContinueSession.instance_id` instead. The Cloud SQL instance resource name, for example: projects/example-project/instances/example-instance
Google::Cloud::Sql::V1beta4::CloudSqlData::StartSession
Start a new session. The client must send this as the first message to the server to start a new session. The client may immediately send Data messages without waiting for a reply from the server.
Inherits from Protobuf::Message.
Accessors
$msg->location_id()/$msg->location_id($value)Type:
StringRequired. `location_id` is used to route the request to a specific region. Use the same region which was used to create the instance. Use the format `locations/{location}`, for example: `locations/us-central1`.
$msg->instance_id()/$msg->instance_id($value)Type:
StringRequired. The Cloud SQL instance resource name, for example: projects/example-project/instances/example-instance
$msg->session_id()/$msg->session_id($value)Type:
StringOptional. The session id, chosen by the client. This should be an unguessable string. If the client does not intend to reconnect to this session, the client may leave session_id unset.
Google::Cloud::Sql::V1beta4::CloudSqlData::ContinueSession
Reconnects to an existing session. The client must send this as the first message to the server to reconnect to an existing session. The client may immediately send Data messages without waiting for a reply from the server.
Inherits from Protobuf::Message.
Accessors
$msg->location_id()/$msg->location_id($value)Type:
StringRequired. `location_id` is used to route the request to a specific region. Use the same region which was used to create the instance. Use the format `locations/{location}`, for example: `locations/us-central1`.
$msg->instance_id()/$msg->instance_id($value)Type:
StringRequired. The Cloud SQL instance resource name, for example: projects/example-project/instances/example-instance
$msg->session_id()/$msg->session_id($value)Type:
StringRequired. The id of the session to reconnect.
Google::Cloud::Sql::V1beta4::CloudSqlData::StreamSqlDataResponse
Message sent from SqlDataService back to the client.
Inherits from Protobuf::Message.
Accessors
$msg->ack()/$msg->ack($value)Type:
Message(Google::Cloud::Sql::V1beta4::CloudSqlData::Ack)Acknowledges data received by the server.
$msg->session_metadata()/$msg->session_metadata($value)Type:
Message(Google::Cloud::Sql::V1beta4::CloudSqlData::SessionMetadata)The first message from the server to the client, containing metadata about this session.
$msg->data()/$msg->data($value)Type:
Message(Google::Cloud::Sql::V1beta4::CloudSqlData::DataPacket)Data from the database.
$msg->terminate_session()/$msg->terminate_session($value)Type:
Message(Google::Cloud::Sql::V1beta4::CloudSqlData::TerminateSession)Terminates the session. This indicates that the database connection is closed. When the client receives this message, it should not attempt to reconnect.
Google::Cloud::Sql::V1beta4::CloudSqlData::SessionMetadata
Metadata from the server to the client about the session. The server will always send this as the first message
Inherits from Protobuf::Message.
Accessors
$msg->supported_features()/$msg->supported_features($value)Type:
Enum(Google::Cloud::Sql::V1beta4::SqlDataFeature)The features supported by the server for this session. This field is used by the client to determine which features are available on the server. The features supported by the server for this session.
Google::Cloud::Sql::V1beta4::CloudSqlData::DataPacket
Contains data being sent or received by the database.
Inherits from Protobuf::Message.
Accessors
$msg->first_byte_offset()/$msg->first_byte_offset($value)Type:
Int64Optional. The absolute byte offset of the first byte in this payload. 0 for new connections or resumed connections that hasn't acked any bytes from server. Non-zero for resumed connections
$msg->data()/$msg->data($value)Type:
BytesRequired. Raw data being sent or received by the database.
Google::Cloud::Sql::V1beta4::CloudSqlData::Ack
Acknowledges data received by the client or server.
Inherits from Protobuf::Message.
Accessors
$msg->received_offset()/$msg->received_offset($value)Type:
Int64Required. The absolute number of bytes processed in the session.
Google::Cloud::Sql::V1beta4::CloudSqlData::TerminateSession
Indicates that the session is permanently ended.
Inherits from Protobuf::Message.
Accessors
$msg->status()/$msg->status($value)Type:
Message(Google::Rpc::Status::Status)Required. The session termination status.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Sql::V1beta4::CloudSqlData::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.