Service Client: Google::Spanner::Adapter::V1::Adapter::AdapterClient

Client stub representing the remote Adapter gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to spanner.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Spanner::Adapter::V1::Adapter - Compiled Protocol Buffers messages for google/spanner/adapter/v1/adapter.proto

SYNOPSIS

use Google::Spanner::Adapter::V1::Adapter;

my $msg = Google::Spanner::Adapter::V1::Adapter::AdaptMessageRequest->new({
    name => $name,
    protocol => $protocol,
    payload => $payload,
    attachments => $attachments,
});

# Read or update a field
my $val = $msg->name();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Spanner::Adapter::V1::Adapter::AdaptMessageRequest->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/spanner/adapter/v1/adapter.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Spanner::Adapter::V1::Adapter::AdaptMessageRequest

Message sent by the client to the adapter.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The database session in which the adapter request is processed.

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

    Type: String

    Required. Identifier for the underlying wire protocol.

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

    Type: Bytes

    Optional. Uninterpreted bytes from the underlying wire protocol.

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

    Type: Message (Google::Spanner::Adapter::V1::Adapter::AdaptMessageRequest::AttachmentsEntry)

    Optional. Opaque request state passed by the client to the server.

Google::Spanner::Adapter::V1::Adapter::AdaptMessageResponse

Message sent by the adapter to the client.

Inherits from Protobuf::Message.

Accessors

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

    Type: Bytes

    Optional. Uninterpreted bytes from the underlying wire protocol.

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

    Type: Message (Google::Spanner::Adapter::V1::Adapter::AdaptMessageResponse::StateUpdatesEntry)

    Optional. Opaque state updates to be applied by the client.

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

    Type: Bool

    Optional. Indicates whether this is the last [AdaptMessageResponse][google.spanner.adapter.v1.AdaptMessageResponse] in the stream. This field may be optionally set by the server. Clients should not rely on this field being set in all cases.

Google::Spanner::Adapter::V1::Adapter::Session

A session in the Cloud Spanner Adapter API.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Identifier. The name of the session. This is always system-assigned.

Google::Spanner::Adapter::V1::Adapter::CreateSessionRequest

The request for [CreateSessionRequest][Adapter.CreateSessionRequest].

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The database in which the new session is created.

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

    Type: Message (Google::Spanner::Adapter::V1::Adapter::Session)

    Required. The session to create.

SEE ALSO

Protobuf, Protobuf::Message, Google::Spanner::Adapter::V1::Adapter::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.