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

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: String

    Required. `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: String

    Required. The Cloud SQL instance resource name, for example: projects/example-project/instances/example-instance

  • $msg->session_id() / $msg->session_id($value)

    Type: String

    Optional. 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: String

    Required. `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: String

    Required. The Cloud SQL instance resource name, for example: projects/example-project/instances/example-instance

  • $msg->session_id() / $msg->session_id($value)

    Type: String

    Required. 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

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: Int64

    Optional. 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: Bytes

    Required. 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: Int64

    Required. 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

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.