Service Client: Google::Spanner::Executor::V1::CloudExecutor::SpannerExecutorProxyClient

Client stub representing the remote SpannerExecutorProxy 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::Executor::V1::CloudExecutor - Compiled Protocol Buffers messages for google/spanner/executor/v1/cloud_executor.proto

SYNOPSIS

use Google::Spanner::Executor::V1::CloudExecutor;

my $msg = Google::Spanner::Executor::V1::CloudExecutor::SpannerAsyncActionRequest->new({
    action_id => $action_id,
    action => $action,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/spanner/executor/v1/cloud_executor.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::Executor::V1::CloudExecutor::SpannerAsyncActionRequest

Request to executor service that start a new Spanner action.

Inherits from Protobuf::Message.

Accessors

Google::Spanner::Executor::V1::CloudExecutor::SpannerAsyncActionResponse

Response from executor service.

Inherits from Protobuf::Message.

Accessors

Google::Spanner::Executor::V1::CloudExecutor::SpannerAction

SpannerAction defines a primitive action that can be performed against Spanner, such as begin or commit a transaction, or perform a read or mutation.

Inherits from Protobuf::Message.

Accessors

Google::Spanner::Executor::V1::CloudExecutor::ReadAction

A single read request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The table to read at.

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

    Type: String

    The index to read at if it's an index read.

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

    Type: String

    List of columns must begin with the key columns used for the read.

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

    Type: Message (Google::Spanner::Executor::V1::CloudExecutor::KeySet)

    Keys for performing this read.

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

    Type: Int32

    Limit on number of rows to read. If set, must be positive.

Google::Spanner::Executor::V1::CloudExecutor::QueryAction

A SQL query request.

Inherits from Protobuf::Message.

Accessors

Google::Spanner::Executor::V1::CloudExecutor::DmlAction

A single DML statement.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Spanner::Executor::V1::CloudExecutor::QueryAction)

    DML statement.

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

    Type: Bool

    Whether to autocommit the transaction after executing the DML statement, if the Executor supports autocommit.

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

    Type: Bool

    Whether to set this DML statement as the last statement in the transaction. The transaction should be committed after processing this DML statement.

Google::Spanner::Executor::V1::CloudExecutor::BatchDmlAction

Batch of DML statements invoked using batched execution.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Spanner::Executor::V1::CloudExecutor::QueryAction)

    DML statements.

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

    Type: Bool

    Whether to set this request with the last statement option in the transaction. The transaction should be committed after processing this request.

Google::Spanner::Executor::V1::CloudExecutor::Value

Value represents a single value that can be read or written to/from Spanner.

Inherits from Protobuf::Message.

Accessors

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

    Type: Bool

    If is_null is set, then this value is null.

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

    Type: Int64

    Int type value. It's used for all integer number types, like int32 and int64.

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

    Type: Bool

    Bool type value.

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

    Type: Double

    Double type value. It's used for all float point types, like float and double.

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

    Type: Bytes

    Bytes type value, stored in CORD. It's also used for PROTO type value.

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

    Type: String

    String type value, stored in CORD.

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

    Type: Message (Google::Spanner::Executor::V1::CloudExecutor::ValueList)

    Struct type value. It contains a ValueList representing the values in this struct.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Timestamp type value.

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

    Type: Int32

    Date type value. Date is specified as a number of days since Unix epoch.

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

    Type: Bool

    If set, holds the sentinel value for the transaction CommitTimestamp.

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

    Type: Message (Google::Spanner::Executor::V1::CloudExecutor::ValueList)

    Array type value. The underlying Valuelist should have values that have the same type.

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

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

    Type of array element. Only set if value is an array.

Google::Spanner::Executor::V1::CloudExecutor::KeyRange

KeyRange represents a range of rows in a table or index.

A range has a start key and an end key. These keys can be open or closed, indicating if the range includes rows with that key.

Keys are represented by "ValueList", where the ith value in the list corresponds to the ith component of the table or index primary key.

Inherits from Protobuf::Message.

Accessors

Enum: KeyRange::Type

  • TYPE_UNSPECIFIED => 0

  • CLOSED_CLOSED => 1

  • CLOSED_OPEN => 2

  • OPEN_CLOSED => 3

  • OPEN_OPEN => 4

Google::Spanner::Executor::V1::CloudExecutor::KeySet

KeySet defines a collection of Spanner keys and/or key ranges. All the keys are expected to be in the same table. The keys need not be sorted in any particular way.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Spanner::Executor::V1::CloudExecutor::ValueList)

    A list of specific keys. Entries in "keys" should have exactly as many elements as there are columns in the primary or index key with which this "KeySet" is used.

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

    Type: Message (Google::Spanner::Executor::V1::CloudExecutor::KeyRange)

    A list of key ranges.

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

    Type: Bool

    For convenience "all" can be set to "true" to indicate that this "KeySet" matches all keys in the table or index. Note that any keys specified in "keys" or "ranges" are only yielded once.

Google::Spanner::Executor::V1::CloudExecutor::ValueList

List of values.

Inherits from Protobuf::Message.

Accessors

Google::Spanner::Executor::V1::CloudExecutor::MutationAction

A single mutation request.

Inherits from Protobuf::Message.

Accessors

Google::Spanner::Executor::V1::CloudExecutor::WriteMutationsAction

WriteMutationAction defines an action of flushing the mutation so they are visible to subsequent operations in the transaction.

Inherits from Protobuf::Message.

Accessors

Google::Spanner::Executor::V1::CloudExecutor::PartitionedUpdateAction

PartitionedUpdateAction defines an action to execute a partitioned DML which runs different partitions in parallel.

Inherits from Protobuf::Message.

Accessors

Google::Spanner::Executor::V1::CloudExecutor::StartTransactionAction

StartTransactionAction defines an action of initializing a transaction.

Inherits from Protobuf::Message.

Accessors

Google::Spanner::Executor::V1::CloudExecutor::Concurrency

Concurrency for read-only transactions.

Inherits from Protobuf::Message.

Accessors

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

    Type: Double

    Indicates a read at a consistent timestamp that is specified relative to now. That is, if the caller has specified an exact staleness of s seconds, we will read at now - s.

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

    Type: Int64

    Indicates a boundedly stale read that reads at a timestamp >= T.

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

    Type: Double

    Indicates a boundedly stale read that is at most N seconds stale.

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

    Type: Int64

    Indicates a read at a consistent timestamp.

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

    Type: Bool

    Indicates a strong read, must only be set to true, or unset.

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

    Type: Bool

    Indicates a batch read, must only be set to true, or unset.

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

    Type: Bool

    True if exact_timestamp_micros is set, and the chosen timestamp is that of a snapshot epoch.

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

    Type: String

    If set, this is a snapshot epoch read constrained to read only the specified log scope root table, and its children. Will not be set for full database epochs.

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

    Type: Int64

    Set only when batch is true.

Google::Spanner::Executor::V1::CloudExecutor::TableMetadata

TableMetadata contains metadata of a single table.

Inherits from Protobuf::Message.

Accessors

Google::Spanner::Executor::V1::CloudExecutor::ColumnMetadata

ColumnMetadata represents metadata of a single column.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Column name.

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

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

    Column type.

Google::Spanner::Executor::V1::CloudExecutor::TransactionExecutionOptions

Inherits from Protobuf::Message.

Accessors

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

    Type: Bool

    Whether optimistic concurrency should be used to execute this transaction.

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

    Type: Bool

    Whether traffic from this transaction will be excluded from tracking change streams with allow_txn_exclusion=true.

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

    Type: Bool

    Whether serializable isolation with optimistic mode concurrency should be used to execute this transaction.

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

    Type: Bool

    Whether snapshot isolation with optimistic mode concurrency should be used to execute this transaction.

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

    Type: Bool

    Whether snapshot isolation with pessimistic mode concurrency should be used to execute this transaction.

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

    Type: Bool

    Whether to exclude mutations of this transaction from the allowed tracking change streams.

Google::Spanner::Executor::V1::CloudExecutor::FinishTransactionAction

FinishTransactionAction defines an action of finishing a transaction.

Inherits from Protobuf::Message.

Accessors

Enum: FinishTransactionAction::Mode

  • MODE_UNSPECIFIED => 0

  • COMMIT => 1

  • ABANDON => 2

Google::Spanner::Executor::V1::CloudExecutor::AdminAction

AdminAction defines all the cloud spanner admin actions, including instance/database admin ops, backup ops and operation actions.

Inherits from Protobuf::Message.

Accessors

Google::Spanner::Executor::V1::CloudExecutor::CreateUserInstanceConfigAction

Action that creates a user instance config.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    User instance config ID (not path), e.g. "custom-config".

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

    Type: String

    Cloud project ID, e.g. "spanner-cloud-systest".

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

    Type: String

    Base config ID, e.g. "test-config".

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

    Type: Message (Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::ReplicaInfo)

    Replicas that should be included in the user config.

Google::Spanner::Executor::V1::CloudExecutor::UpdateUserInstanceConfigAction

Action that updates a user instance config.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    User instance config ID (not path), e.g. "custom-config".

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

    Type: String

    Cloud project ID, e.g. "spanner-cloud-systest".

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

    Type: String

    The descriptive name for this instance config as it appears in UIs.

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

    Type: Message (Google::Spanner::Executor::V1::CloudExecutor::UpdateUserInstanceConfigAction::LabelsEntry)

    labels.

Google::Spanner::Executor::V1::CloudExecutor::GetCloudInstanceConfigAction

Action that gets a user instance config.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Instance config ID (not path), e.g. "custom-config".

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

    Type: String

    Cloud project ID, e.g. "spanner-cloud-systest".

Google::Spanner::Executor::V1::CloudExecutor::DeleteUserInstanceConfigAction

Action that deletes a user instance configs.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    User instance config ID (not path), e.g. "custom-config".

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

    Type: String

    Cloud project ID, e.g. "spanner-cloud-systest".

Google::Spanner::Executor::V1::CloudExecutor::ListCloudInstanceConfigsAction

Action that lists user instance configs.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Cloud project ID, e.g. "spanner-cloud-systest".

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

    Type: Int32

    Number of instance configs to be returned in the response. If 0 or less, defaults to the server's maximum allowed page size.

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

    Type: String

    If non-empty, "page_token" should contain a next_page_token from a previous ListInstanceConfigsResponse to the same "parent".

Google::Spanner::Executor::V1::CloudExecutor::CreateCloudInstanceAction

Action that creates a Cloud Spanner instance.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Cloud instance ID (not path), e.g. "test-instance".

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

    Type: String

    Cloud project ID, e.g. "spanner-cloud-systest".

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

    Type: String

    Instance config ID, e.g. "test-config".

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

    Type: Int32

    Number of nodes (processing_units should not be set or set to 0 if used).

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

    Type: Int32

    Number of processing units (node_count should be set to 0 if used).

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

    Type: Message (Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::AutoscalingConfig)

    The autoscaling config for this instance. If non-empty, an autoscaling instance will be created (processing_units and node_count should be set to 0 if used).

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

    Type: Message (Google::Spanner::Executor::V1::CloudExecutor::CreateCloudInstanceAction::LabelsEntry)

    labels.

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

    Type: Enum (Google::Spanner::Admin::Instance::V1::Instance::Edition)

    The edition of the instance.

Google::Spanner::Executor::V1::CloudExecutor::UpdateCloudInstanceAction

Action that updates a Cloud Spanner instance.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Cloud instance ID (not path), e.g. "test-instance".

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

    Type: String

    Cloud project ID, e.g. "spanner-cloud-systest".

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

    Type: String

    The descriptive name for this instance as it appears in UIs. Must be unique per project and between 4 and 30 characters in length.

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

    Type: Int32

    The number of nodes allocated to this instance. At most one of either node_count or processing_units should be present in the message.

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

    Type: Int32

    The number of processing units allocated to this instance. At most one of processing_units or node_count should be present in the message.

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

    Type: Message (Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::AutoscalingConfig)

    The autoscaling config for this instance. If non-empty, this instance is using autoscaling (processing_units and node_count should be set to 0 if used).

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

    Type: Message (Google::Spanner::Executor::V1::CloudExecutor::UpdateCloudInstanceAction::LabelsEntry)

    labels.

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

    Type: Enum (Google::Spanner::Admin::Instance::V1::Instance::Edition)

    The edition of the instance.

Google::Spanner::Executor::V1::CloudExecutor::DeleteCloudInstanceAction

Action that deletes a Cloud Spanner instance.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Cloud instance ID (not path), e.g. "test-instance".

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

    Type: String

    Cloud project ID, e.g. "spanner-cloud-systest".

Google::Spanner::Executor::V1::CloudExecutor::CreateCloudDatabaseAction

Action that creates a Cloud Spanner database.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Cloud instance ID (not path), e.g. "test-instance".

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

    Type: String

    Cloud project ID, e.g. "spanner-cloud-systest".

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

    Type: String

    Cloud database ID (not full path), e.g. "db0".

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

    Type: String

    SDL statements to apply to the new database.

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

    Type: Message (Google::Spanner::Admin::Database::V1::Common::EncryptionConfig)

    The KMS key used to encrypt the database to be created if the database should be CMEK protected.

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

    Type: String

    Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL.

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

    Type: Bytes

Google::Spanner::Executor::V1::CloudExecutor::UpdateCloudDatabaseDdlAction

Action that updates the schema of a Cloud Spanner database.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Cloud instance ID (not path), e.g. "test-instance".

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

    Type: String

    Cloud project ID, e.g. "spanner-cloud-systest".

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

    Type: String

    Cloud database ID (not full path), e.g. "db0".

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

    Type: String

    SDL statements to apply to the database.

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

    Type: String

    Op ID can be used to track progress of the update. If set, it must be unique per database. If not set, Cloud Spanner will generate operation ID automatically.

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

    Type: Bytes

Google::Spanner::Executor::V1::CloudExecutor::UpdateCloudDatabaseAction

Action that updates a Cloud Spanner database.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Cloud instance ID (not path), e.g. "test-instance".

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

    Type: String

    Cloud project ID, e.g. "spanner-cloud-systest".

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

    Type: String

    Cloud database name (not full path), e.g. "db0".

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

    Type: Bool

    Updated value of enable_drop_protection, this is the only field that has supported to be updated.

Google::Spanner::Executor::V1::CloudExecutor::DropCloudDatabaseAction

Action that drops a Cloud Spanner database.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Cloud instance ID (not path), e.g. "test-instance".

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

    Type: String

    Cloud project ID, e.g. "spanner-cloud-systest".

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

    Type: String

    Cloud database ID (not full path), e.g. "db0".

Google::Spanner::Executor::V1::CloudExecutor::ChangeQuorumCloudDatabaseAction

Action that changes quorum of a Cloud Spanner database.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The fully qualified uri of the database whose quorum has to be changed.

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

    Type: String

    The locations of the serving regions, e.g. "asia-south1".

Google::Spanner::Executor::V1::CloudExecutor::AdaptMessageAction

A single Adapt message request.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The fully qualified uri of the database to send AdaptMessage to.

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

    Type: String

    The protocol to use for the request.

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

    Type: Bytes

    The payload of the request.

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

    Type: Message (Google::Spanner::Executor::V1::CloudExecutor::AdaptMessageAction::AttachmentsEntry)

    Attachments to be sent with the request.

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

    Type: String

    The query to be sent with the request.

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

    Type: Bool

    If true, the action will send a Prepare request first and then an Execute request right after to execute the query. This is only supported for Cloud Client path.

Google::Spanner::Executor::V1::CloudExecutor::ListCloudDatabasesAction

Action that lists Cloud Spanner databases.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Cloud project ID, e.g. "spanner-cloud-systest".

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

    Type: String

    Cloud instance ID (not path) to list databases from, e.g. "test-instance".

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

    Type: Int32

    Number of databases to be returned in the response. If 0 or less, defaults to the server's maximum allowed page size.

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

    Type: String

    If non-empty, "page_token" should contain a next_page_token from a previous ListDatabasesResponse to the same "parent" and with the same "filter".

Google::Spanner::Executor::V1::CloudExecutor::ListCloudInstancesAction

Action that lists Cloud Spanner instances.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Cloud project ID, e.g. "spanner-cloud-systest".

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

    Type: String

    A filter expression that filters what operations are returned in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. Refer spanner_instance_admin.proto.ListInstancesRequest for detail.

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

    Type: Int32

    Number of instances to be returned in the response. If 0 or less, defaults to the server's maximum allowed page size.

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

    Type: String

    If non-empty, "page_token" should contain a next_page_token from a previous ListInstancesResponse to the same "parent" and with the same "filter".

Google::Spanner::Executor::V1::CloudExecutor::GetCloudInstanceAction

Action that retrieves a Cloud Spanner instance.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Cloud project ID, e.g. "spanner-cloud-systest".

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

    Type: String

    Cloud instance ID (not path) to retrieve the instance from, e.g. "test-instance".

Google::Spanner::Executor::V1::CloudExecutor::ListCloudDatabaseOperationsAction

Action that lists Cloud Spanner database operations.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Cloud project ID, e.g. "spanner-cloud-systest".

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

    Type: String

    Cloud instance ID (not path) to list database operations from, e.g. "test-instance".

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

    Type: String

    A filter expression that filters what operations are returned in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. Refer spanner_database_admin.proto.ListDatabaseOperationsRequest for detail.

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

    Type: Int32

    Number of databases to be returned in the response. If 0 or less, defaults to the server's maximum allowed page size.

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

    Type: String

    If non-empty, "page_token" should contain a next_page_token from a previous ListDatabaseOperationsResponse to the same "parent" and with the same "filter".

Google::Spanner::Executor::V1::CloudExecutor::RestoreCloudDatabaseAction

Action that restores a Cloud Spanner database from a backup.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Cloud project ID, e.g. "spanner-cloud-systest".

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

    Type: String

    Cloud instance ID (not path) containing the backup, e.g. "backup-instance".

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

    Type: String

    The id of the backup from which to restore, e.g. "test-backup".

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

    Type: String

    Cloud instance ID (not path) containing the database, e.g. "database-instance".

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

    Type: String

    The id of the database to create and restore to, e.g. "db0". Note that this database must not already exist.

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

    Type: Message (Google::Spanner::Admin::Database::V1::Common::EncryptionConfig)

    The KMS key(s) used to encrypt the restored database to be created if the restored database should be CMEK protected.

Google::Spanner::Executor::V1::CloudExecutor::GetCloudDatabaseAction

Action that gets a Cloud Spanner database.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Cloud project ID, e.g. "spanner-cloud-systest".

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

    Type: String

    Cloud instance ID (not path), e.g. "test-instance".

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

    Type: String

    The id of the database to get, e.g. "db0".

Google::Spanner::Executor::V1::CloudExecutor::CreateCloudBackupAction

Action that creates a Cloud Spanner database backup.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Cloud project ID, e.g. "spanner-cloud-systest".

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

    Type: String

    Cloud instance ID (not path), e.g. "test-instance".

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

    Type: String

    The id of the backup to be created, e.g. "test-backup".

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

    Type: String

    The id of the database from which this backup was created, e.g. "db0". Note that this needs to be in the same instance as the backup.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The expiration time of the backup, which must be at least 6 hours and at most 366 days from the time the request is received.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    The version time of the backup, which must be within the time range of [earliest_version_time, NOW], where earliest_version_time is retrieved by cloud spanner frontend API (See details: go/cs-pitr-lite-design).

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

    Type: Message (Google::Spanner::Admin::Database::V1::Common::EncryptionConfig)

    The KMS key(s) used to encrypt the backup to be created if the backup should be CMEK protected.

Google::Spanner::Executor::V1::CloudExecutor::CopyCloudBackupAction

Action that copies a Cloud Spanner database backup.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Cloud project ID, e.g. "spanner-cloud-systest".

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

    Type: String

    Cloud instance ID (not path), e.g. "test-instance".

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

    Type: String

    The id of the backup to be created, e.g. "test-backup".

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

    Type: String

    The fully qualified uri of the source backup from which this backup was copied. eg. "projects/<project_id>/instances/<instance_id>/backups/<backup_id>".

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The expiration time of the backup, which must be at least 6 hours and at most 366 days from the time the request is received.

Google::Spanner::Executor::V1::CloudExecutor::GetCloudBackupAction

Action that gets a Cloud Spanner database backup.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Cloud project ID, e.g. "spanner-cloud-systest".

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

    Type: String

    Cloud instance ID (not path), e.g. "test-instance".

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

    Type: String

    The id of the backup to get, e.g. "test-backup".

Google::Spanner::Executor::V1::CloudExecutor::UpdateCloudBackupAction

Action that updates a Cloud Spanner database backup.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Cloud project ID, e.g. "spanner-cloud-systest".

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

    Type: String

    Cloud instance ID (not path), e.g. "test-instance".

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

    Type: String

    The id of the backup to update, e.g. "test-backup".

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. Updated value of expire_time, this is the only field that supported to be updated.

Google::Spanner::Executor::V1::CloudExecutor::DeleteCloudBackupAction

Action that deletes a Cloud Spanner database backup.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Cloud project ID, e.g. "spanner-cloud-systest".

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

    Type: String

    Cloud instance ID (not path), e.g. "test-instance".

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

    Type: String

    The id of the backup to delete, e.g. "test-backup".

Google::Spanner::Executor::V1::CloudExecutor::ListCloudBackupsAction

Action that lists Cloud Spanner database backups.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Cloud project ID, e.g. "spanner-cloud-systest".

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

    Type: String

    Cloud instance ID (not path) to list backups from, e.g. "test-instance".

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

    Type: String

    A filter expression that filters backups listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. Refer backup.proto.ListBackupsRequest for detail.

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

    Type: Int32

    Number of backups to be returned in the response. If 0 or less, defaults to the server's maximum allowed page size.

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

    Type: String

    If non-empty, "page_token" should contain a next_page_token from a previous ListBackupsResponse to the same "parent" and with the same "filter".

Google::Spanner::Executor::V1::CloudExecutor::ListCloudBackupOperationsAction

Action that lists Cloud Spanner database backup operations.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Cloud project ID, e.g. "spanner-cloud-systest".

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

    Type: String

    Cloud instance ID (not path) to list backup operations from, e.g. "test-instance".

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

    Type: String

    A filter expression that filters what operations are returned in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. Refer backup.proto.ListBackupOperationsRequest for detail.

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

    Type: Int32

    Number of backups to be returned in the response. If 0 or less, defaults to the server's maximum allowed page size.

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

    Type: String

    If non-empty, "page_token" should contain a next_page_token from a previous ListBackupOperationsResponse to the same "parent" and with the same "filter".

Google::Spanner::Executor::V1::CloudExecutor::GetOperationAction

Action that gets an operation.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The name of the operation resource.

Google::Spanner::Executor::V1::CloudExecutor::QueryCancellationAction

Query cancellation action defines the long running query and the cancel query format depening on the Cloud database dialect.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Long running query.

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

    Type: String

    Format of the cancel query for the cloud database dialect.

Google::Spanner::Executor::V1::CloudExecutor::CancelOperationAction

Action that cancels an operation.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The name of the operation resource to be cancelled.

Google::Spanner::Executor::V1::CloudExecutor::AddSplitPointsAction

Action that adds a split point to a Cloud Spanner database.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Cloud project ID, e.g. "spanner-cloud-systest".

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

    Type: String

    Cloud instance ID (not path), e.g. "test-instance".

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

    Type: String

    Cloud database ID (not full path), e.g. "db0".

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

    Type: Message (Google::Spanner::Admin::Database::V1::SpannerDatabaseAdmin::SplitPoints)

    The split points to add.

Google::Spanner::Executor::V1::CloudExecutor::StartBatchTransactionAction

Starts a batch read-only transaction in executor. Successful outcomes of this action will contain batch_txn_id--the identificator that can be used to start the same transaction in other Executors to parallelize partition processing.

Example of a batch read flow: 1. Start batch transaction with a timestamp (StartBatchTransactionAction) 2. Generate database partitions for a read or query (GenerateDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction) 3. Call ExecutePartitionAction for some or all partitions, process rows 4. Clean up the transaction (CloseBatchTransactionAction).

More sophisticated example, with parallel processing: 1. Start batch transaction with a timestamp (StartBatchTransactionAction), note the returned BatchTransactionId 2. Generate database partitions for a read or query (GenerateDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction) 3. Distribute the partitions over a pool of workers, along with the transaction ID.

In each worker: 4-1. StartBatchTransactionAction with the given transaction ID 4-2. ExecutePartitionAction for each partition it got, process read results 4-3. Close (not cleanup) the transaction (CloseBatchTransactionAction).

When all workers are done: 5. Cleanup the transaction (CloseBatchTransactionAction). This can be done either by the last worker to finish the job, or by the main Executor that initialized this transaction in the first place. It is also possible to clean it up with a brand new Executor -- just execute StartBatchTransactionAction with the ID, then clean it up right away.

Cleaning up is optional, but recommended.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    The exact timestamp to start the batch transaction.

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

    Type: Bytes

    ID of a batch read-only transaction. It can be used to start the same batch transaction on multiple executors and parallelize partition processing.

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

    Type: String

    Database role to assume while performing this action. Setting the database_role will enforce additional role-based access checks on this action.

Google::Spanner::Executor::V1::CloudExecutor::CloseBatchTransactionAction

Closes or cleans up the currently opened batch read-only transaction.

Once a transaction is closed, the Executor can be disposed of or used to start start another transaction. Closing a batch transaction in one Executor doesn't affect the transaction's state in other Executors that also read from it.

When a transaction is cleaned up, it becomes globally invalid. Cleaning up is optional, but recommended.

Inherits from Protobuf::Message.

Accessors

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

    Type: Bool

    Indicates whether the transaction needs to be cleaned up.

Google::Spanner::Executor::V1::CloudExecutor::GenerateDbPartitionsForReadAction

Generate database partitions for the given read. Successful outcomes will contain database partitions in the db_partition field.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Spanner::Executor::V1::CloudExecutor::ReadAction)

    Read to generate partitions for.

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

    Type: Message (Google::Spanner::Executor::V1::CloudExecutor::TableMetadata)

    Metadata related to the tables involved in the read.

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

    Type: Int64

    Desired size of data in each partition. Spanner doesn't guarantee to respect this value.

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

    Type: Int64

    If set, the desired max number of partitions. Spanner doesn't guarantee to respect this value.

Google::Spanner::Executor::V1::CloudExecutor::GenerateDbPartitionsForQueryAction

Generate database partitions for the given query. Successful outcomes will contain database partitions in the db_partition field.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Spanner::Executor::V1::CloudExecutor::QueryAction)

    Query to generate partitions for.

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

    Type: Int64

    Desired size of data in each partition. Spanner doesn't guarantee to respect this value.

Google::Spanner::Executor::V1::CloudExecutor::BatchPartition

Identifies a database partition generated for a particular read or query. To read rows from the partition, use ExecutePartitionAction.

Inherits from Protobuf::Message.

Accessors

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

    Type: Bytes

    Serialized Partition instance.

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

    Type: Bytes

    The partition token decrypted from partition.

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

    Type: String

    Table name is set iff the partition was generated for a read (as opposed to a query).

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

    Type: String

    Index name if the partition was generated for an index read.

Google::Spanner::Executor::V1::CloudExecutor::ExecutePartitionAction

Performs a read or query for the given partitions. This action must be executed in the context of the same transaction that was used to generate given partitions.

Inherits from Protobuf::Message.

Accessors

Google::Spanner::Executor::V1::CloudExecutor::ExecuteChangeStreamQuery

Execute a change stream TVF query.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Name for this change stream.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Specifies that records with commit_timestamp greater than or equal to start_time should be returned.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Specifies that records with commit_timestamp less than or equal to end_time should be returned.

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

    Type: String

    Specifies which change stream partition to query, based on the content of child partitions records.

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

    Type: String

    Read options for this change stream query.

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

    Type: Int32

    Determines how frequently a heartbeat ChangeRecord will be returned in case there are no transactions committed in this partition, in milliseconds.

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

    Type: Int64

    Deadline for this change stream query, in seconds.

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

    Type: String

    Database role to assume while performing this action. This should only be set for cloud requests. Setting the database role will enforce additional role-based access checks on this action.

Google::Spanner::Executor::V1::CloudExecutor::SpannerActionOutcome

SpannerActionOutcome defines a result of execution of a single SpannerAction.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Rpc::Status::Status)

    If an outcome is split into multiple parts, status will be set only in the last part.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Transaction timestamp. It must be set for successful committed actions.

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

    Type: Message (Google::Spanner::Executor::V1::CloudExecutor::ReadResult)

    Result of a ReadAction. This field must be set for ReadActions even if no rows were read.

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

    Type: Message (Google::Spanner::Executor::V1::CloudExecutor::QueryResult)

    Result of a Query. This field must be set for Queries even if no rows were read.

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

    Type: Bool

    This bit indicates that Spanner has restarted the current transaction. It means that the client should replay all the reads and writes. Setting it to true is only valid in the context of a read-write transaction, as an outcome of a committing FinishTransactionAction.

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

    Type: Bytes

    In successful StartBatchTransactionAction outcomes, this contains the ID of the transaction.

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

    Type: Message (Google::Spanner::Executor::V1::CloudExecutor::BatchPartition)

    Generated database partitions (result of a GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction).

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

    Type: Message (Google::Spanner::Executor::V1::CloudExecutor::AdminResult)

    Result of admin related actions.

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

    Type: Int64

    Stores rows modified by query in single DML or batch DML action. In case of batch DML action, stores 0 as row count of errored DML query.

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

    Type: Message (Google::Spanner::Executor::V1::CloudExecutor::ChangeStreamRecord)

    Change stream records returned by a change stream query.

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

    Type: Int64

    If not zero, it indicates the read timestamp to use for validating the SnapshotIsolation transaction.

Google::Spanner::Executor::V1::CloudExecutor::AdminResult

AdminResult contains admin action results, for database/backup/operation.

Inherits from Protobuf::Message.

Accessors

Google::Spanner::Executor::V1::CloudExecutor::CloudBackupResponse

CloudBackupResponse contains results returned by cloud backup related actions.

Inherits from Protobuf::Message.

Accessors

Google::Spanner::Executor::V1::CloudExecutor::OperationResponse

OperationResponse contains results returned by operation related actions.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Longrunning::Operations::Operation)

    List of operations returned by ListOperationsAction.

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

    Type: String

    "next_page_token" can be sent in a subsequent list action to fetch more of the matching data.

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

    Type: Message (Google::Longrunning::Operations::Operation)

    Operation returned by GetOperationAction.

Google::Spanner::Executor::V1::CloudExecutor::CloudInstanceResponse

CloudInstanceResponse contains results returned by cloud instance related actions.

Inherits from Protobuf::Message.

Accessors

Google::Spanner::Executor::V1::CloudExecutor::CloudInstanceConfigResponse

CloudInstanceConfigResponse contains results returned by cloud instance config related actions.

Inherits from Protobuf::Message.

Accessors

Google::Spanner::Executor::V1::CloudExecutor::CloudDatabaseResponse

CloudDatabaseResponse contains results returned by cloud database related actions.

Inherits from Protobuf::Message.

Accessors

Google::Spanner::Executor::V1::CloudExecutor::ReadResult

ReadResult contains rows read.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Table name.

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

    Type: String

    Index name, if read from an index.

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

    Type: Int32

    Request index (multiread only).

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

    Type: Message (Google::Spanner::Executor::V1::CloudExecutor::ValueList)

    Rows read. Each row is a struct with multiple fields, one for each column in read result. All rows have the same type.

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

    Type: Message (Google::Spanner::V1::Type::StructType)

    The type of rows read. It must be set if at least one row was read.

Google::Spanner::Executor::V1::CloudExecutor::QueryResult

QueryResult contains result of a Query.

Inherits from Protobuf::Message.

Accessors

Google::Spanner::Executor::V1::CloudExecutor::ChangeStreamRecord

Raw ChangeStream records. Encodes one of: DataChangeRecord, HeartbeatRecord, ChildPartitionsRecord returned from the ChangeStream API.

Inherits from Protobuf::Message.

Accessors

Google::Spanner::Executor::V1::CloudExecutor::DataChangeRecord

ChangeStream data change record.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    The timestamp in which the change was committed.

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

    Type: String

    The sequence number for the record within the transaction.

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

    Type: String

    A globally unique string that represents the transaction in which the change was committed.

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

    Type: Bool

    Indicates whether this is the last record for a transaction in the current partition.

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

    Type: String

    Name of the table affected by the change.

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

    Type: Message (Google::Spanner::Executor::V1::CloudExecutor::DataChangeRecord::ColumnType)

    Column types defined in the schema.

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

    Type: Message (Google::Spanner::Executor::V1::CloudExecutor::DataChangeRecord::Mod)

    Changes made in the transaction.

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

    Type: String

    Describes the type of change. One of INSERT, UPDATE or DELETE.

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

    Type: String

    One of value capture type: NEW_VALUES, OLD_VALUES, OLD_AND_NEW_VALUES.

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

    Type: Int64

    Number of records in transactions.

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

    Type: Int64

    Number of partitions in transactions.

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

    Type: String

    Transaction tag info.

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

    Type: Bool

    Whether the transaction is a system transactionn.

Google::Spanner::Executor::V1::CloudExecutor::ChildPartitionsRecord

ChangeStream child partition record.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Data change records returned from child partitions in this child partitions record will have a commit timestamp greater than or equal to start_time.

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

    Type: String

    A monotonically increasing sequence number that can be used to define the ordering of the child partitions record when there are multiple child partitions records returned with the same start_time in a particular partition.

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

    Type: Message (Google::Spanner::Executor::V1::CloudExecutor::ChildPartitionsRecord::ChildPartition)

    A set of child partitions and their associated information.

Google::Spanner::Executor::V1::CloudExecutor::HeartbeatRecord

ChangeStream heartbeat record.

Inherits from Protobuf::Message.

Accessors

Google::Spanner::Executor::V1::CloudExecutor::SpannerOptions

Options for Cloud Spanner Service.

Inherits from Protobuf::Message.

Accessors

Google::Spanner::Executor::V1::CloudExecutor::SessionPoolOptions

Options for the session pool used by the DatabaseClient.

Inherits from Protobuf::Message.

Accessors

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

    Type: Bool

    passing this as true, will make applicable RPCs use multiplexed sessions instead of regular sessions

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.