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
$msg->action_id()/$msg->action_id($value)Type:
Int32Action id to uniquely identify this action request.
$msg->action()/$msg->action($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::SpannerAction)The actual SpannerAction to perform.
Google::Spanner::Executor::V1::CloudExecutor::SpannerAsyncActionResponse
Response from executor service.
Inherits from Protobuf::Message.
Accessors
$msg->action_id()/$msg->action_id($value)Type:
Int32Action id corresponds to the request.
$msg->outcome()/$msg->outcome($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::SpannerActionOutcome)If action results are split into multiple responses, only the last response can and should contain status.
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
$msg->database_path()/$msg->database_path($value)Type:
StringDatabase against which to perform action. In a context where a series of actions take place, an action may omit database path if it applies to the same database as the previous action.
$msg->spanner_options()/$msg->spanner_options($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::SpannerOptions)Configuration options for Spanner backend
$msg->start()/$msg->start($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::StartTransactionAction)Action to start a transaction.
$msg->finish()/$msg->finish($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::FinishTransactionAction)Action to finish a transaction.
$msg->read()/$msg->read($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::ReadAction)Action to do a normal read.
$msg->query()/$msg->query($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::QueryAction)Action to do a query.
$msg->mutation()/$msg->mutation($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::MutationAction)Action to buffer a mutation.
$msg->dml()/$msg->dml($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::DmlAction)Action to a DML.
$msg->batch_dml()/$msg->batch_dml($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::BatchDmlAction)Action to a batch DML.
$msg->write()/$msg->write($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::WriteMutationsAction)Action to write a mutation.
$msg->partitioned_update()/$msg->partitioned_update($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::PartitionedUpdateAction)Action to a partitioned update.
$msg->admin()/$msg->admin($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::AdminAction)Action that contains any administrative operation, like database, instance manipulation.
$msg->start_batch_txn()/$msg->start_batch_txn($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::StartBatchTransactionAction)Action to start a batch transaction.
$msg->close_batch_txn()/$msg->close_batch_txn($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::CloseBatchTransactionAction)Action to close a batch transaction.
$msg->generate_db_partitions_read()/$msg->generate_db_partitions_read($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::GenerateDbPartitionsForReadAction)Action to generate database partitions for batch read.
$msg->generate_db_partitions_query()/$msg->generate_db_partitions_query($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::GenerateDbPartitionsForQueryAction)Action to generate database partitions for batch query.
$msg->execute_partition()/$msg->execute_partition($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::ExecutePartitionAction)Action to execute batch actions on generated partitions.
$msg->execute_change_stream_query()/$msg->execute_change_stream_query($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::ExecuteChangeStreamQuery)Action to execute change stream query.
$msg->query_cancellation()/$msg->query_cancellation($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::QueryCancellationAction)Query cancellation action for testing the cancellation of a query.
$msg->adapt_message()/$msg->adapt_message($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::AdaptMessageAction)Action to adapt a message.
Google::Spanner::Executor::V1::CloudExecutor::ReadAction
A single read request.
Inherits from Protobuf::Message.
Accessors
$msg->table()/$msg->table($value)Type:
StringThe table to read at.
$msg->index()/$msg->index($value)Type:
StringThe index to read at if it's an index read.
$msg->column()/$msg->column($value)Type:
StringList 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:
Int32Limit 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
$msg->sql()/$msg->sql($value)Type:
StringThe SQL string.
$msg->params()/$msg->params($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::QueryAction::Parameter)Parameters for the SQL string.
$msg->secure_context()/$msg->secure_context($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::QueryAction::SecureContextEntry)Secure context parameters.
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:
BoolWhether to autocommit the transaction after executing the DML statement, if the Executor supports autocommit.
$msg->last_statement()/$msg->last_statement($value)Type:
BoolWhether 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:
BoolWhether 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:
BoolIf is_null is set, then this value is null.
$msg->int_value()/$msg->int_value($value)Type:
Int64Int type value. It's used for all integer number types, like int32 and int64.
$msg->bool_value()/$msg->bool_value($value)Type:
BoolBool type value.
$msg->double_value()/$msg->double_value($value)Type:
DoubleDouble type value. It's used for all float point types, like float and double.
$msg->bytes_value()/$msg->bytes_value($value)Type:
BytesBytes type value, stored in CORD. It's also used for PROTO type value.
$msg->string_value()/$msg->string_value($value)Type:
StringString 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:
Int32Date type value. Date is specified as a number of days since Unix epoch.
$msg->is_commit_timestamp()/$msg->is_commit_timestamp($value)Type:
BoolIf 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
$msg->start()/$msg->start($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::ValueList)"start" and "limit" must have the same number of key parts, though they may name only a prefix of the table or index key. The start key of this KeyRange.
$msg->limit()/$msg->limit($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::ValueList)The end key of this KeyRange.
$msg->type()/$msg->type($value)Type:
Enum(Google::Spanner::Executor::V1::KeyRange::Type)"start" and "limit" type for this KeyRange.
Enum: KeyRange::Type
TYPE_UNSPECIFIED=>0CLOSED_CLOSED=>1CLOSED_OPEN=>2OPEN_CLOSED=>3OPEN_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:
BoolFor 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
$msg->value()/$msg->value($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::Value)Values contained in this ValueList.
Google::Spanner::Executor::V1::CloudExecutor::MutationAction
A single mutation request.
Inherits from Protobuf::Message.
Accessors
$msg->mod()/$msg->mod($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::MutationAction::Mod)Mods that contained in this mutation.
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
$msg->mutation()/$msg->mutation($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::MutationAction)The mutation to write.
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
$msg->options()/$msg->options($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::PartitionedUpdateAction::ExecutePartitionedUpdateOptions)Options for partitioned update.
$msg->update()/$msg->update($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::QueryAction)Partitioned dml query.
Google::Spanner::Executor::V1::CloudExecutor::StartTransactionAction
StartTransactionAction defines an action of initializing a transaction.
Inherits from Protobuf::Message.
Accessors
$msg->concurrency()/$msg->concurrency($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::Concurrency)Concurrency is for read-only transactions and must be omitted for read-write transactions.
$msg->table()/$msg->table($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::TableMetadata)Metadata about tables and columns that will be involved in this transaction. It is to convert values of key parts correctly.
$msg->transaction_seed()/$msg->transaction_seed($value)Type:
StringTransaction_seed contains workid and op pair for this transaction, used for testing.
$msg->execution_options()/$msg->execution_options($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::TransactionExecutionOptions)Execution options (e.g., whether transaction is opaque, optimistic, excluded from change streams).
Google::Spanner::Executor::V1::CloudExecutor::Concurrency
Concurrency for read-only transactions.
Inherits from Protobuf::Message.
Accessors
$msg->staleness_seconds()/$msg->staleness_seconds($value)Type:
DoubleIndicates 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:
Int64Indicates a boundedly stale read that reads at a timestamp >= T.
$msg->max_staleness_seconds()/$msg->max_staleness_seconds($value)Type:
DoubleIndicates a boundedly stale read that is at most N seconds stale.
$msg->exact_timestamp_micros()/$msg->exact_timestamp_micros($value)Type:
Int64Indicates a read at a consistent timestamp.
$msg->strong()/$msg->strong($value)Type:
BoolIndicates a strong read, must only be set to true, or unset.
$msg->batch()/$msg->batch($value)Type:
BoolIndicates a batch read, must only be set to true, or unset.
$msg->snapshot_epoch_read()/$msg->snapshot_epoch_read($value)Type:
BoolTrue 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:
StringIf 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:
Int64Set only when batch is true.
Google::Spanner::Executor::V1::CloudExecutor::TableMetadata
TableMetadata contains metadata of a single table.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringTable name.
$msg->column()/$msg->column($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::ColumnMetadata)Columns, in the same order as in the schema.
$msg->key_column()/$msg->key_column($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::ColumnMetadata)Keys, in order. Column name is currently not populated.
Google::Spanner::Executor::V1::CloudExecutor::ColumnMetadata
ColumnMetadata represents metadata of a single column.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringColumn 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:
BoolWhether optimistic concurrency should be used to execute this transaction.
$msg->exclude_from_change_streams()/$msg->exclude_from_change_streams($value)Type:
BoolWhether traffic from this transaction will be excluded from tracking change streams with allow_txn_exclusion=true.
$msg->serializable_optimistic()/$msg->serializable_optimistic($value)Type:
BoolWhether serializable isolation with optimistic mode concurrency should be used to execute this transaction.
$msg->snapshot_isolation_optimistic()/$msg->snapshot_isolation_optimistic($value)Type:
BoolWhether snapshot isolation with optimistic mode concurrency should be used to execute this transaction.
$msg->snapshot_isolation_pessimistic()/$msg->snapshot_isolation_pessimistic($value)Type:
BoolWhether 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:
BoolWhether 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
$msg->mode()/$msg->mode($value)Type:
Enum(Google::Spanner::Executor::V1::FinishTransactionAction::Mode)Defines how exactly the transaction should be completed, e.g. with commit or abortion.
Enum: FinishTransactionAction::Mode
MODE_UNSPECIFIED=>0COMMIT=>1ABANDON=>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
$msg->create_user_instance_config()/$msg->create_user_instance_config($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::CreateUserInstanceConfigAction)Action that creates a user instance config.
$msg->update_user_instance_config()/$msg->update_user_instance_config($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::UpdateUserInstanceConfigAction)Action that updates a user instance config.
$msg->delete_user_instance_config()/$msg->delete_user_instance_config($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::DeleteUserInstanceConfigAction)Action that deletes a user instance config.
$msg->get_cloud_instance_config()/$msg->get_cloud_instance_config($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::GetCloudInstanceConfigAction)Action that gets a user instance config.
$msg->list_instance_configs()/$msg->list_instance_configs($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::ListCloudInstanceConfigsAction)Action that lists user instance configs.
$msg->create_cloud_instance()/$msg->create_cloud_instance($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::CreateCloudInstanceAction)Action that creates a Cloud Spanner instance.
$msg->update_cloud_instance()/$msg->update_cloud_instance($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::UpdateCloudInstanceAction)Action that updates a Cloud Spanner instance.
$msg->delete_cloud_instance()/$msg->delete_cloud_instance($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::DeleteCloudInstanceAction)Action that deletes a Cloud Spanner instance.
$msg->list_cloud_instances()/$msg->list_cloud_instances($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::ListCloudInstancesAction)Action that lists Cloud Spanner instances.
$msg->get_cloud_instance()/$msg->get_cloud_instance($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::GetCloudInstanceAction)Action that retrieves a Cloud Spanner instance.
$msg->create_cloud_database()/$msg->create_cloud_database($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::CreateCloudDatabaseAction)Action that creates a Cloud Spanner database.
$msg->update_cloud_database_ddl()/$msg->update_cloud_database_ddl($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::UpdateCloudDatabaseDdlAction)Action that updates the schema of a Cloud Spanner database.
$msg->update_cloud_database()/$msg->update_cloud_database($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::UpdateCloudDatabaseAction)Action that updates the schema of a Cloud Spanner database.
$msg->drop_cloud_database()/$msg->drop_cloud_database($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::DropCloudDatabaseAction)Action that drops a Cloud Spanner database.
$msg->list_cloud_databases()/$msg->list_cloud_databases($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::ListCloudDatabasesAction)Action that lists Cloud Spanner databases.
$msg->list_cloud_database_operations()/$msg->list_cloud_database_operations($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::ListCloudDatabaseOperationsAction)Action that lists Cloud Spanner database operations.
$msg->restore_cloud_database()/$msg->restore_cloud_database($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::RestoreCloudDatabaseAction)Action that restores a Cloud Spanner database from a backup.
$msg->get_cloud_database()/$msg->get_cloud_database($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::GetCloudDatabaseAction)Action that gets a Cloud Spanner database.
$msg->create_cloud_backup()/$msg->create_cloud_backup($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::CreateCloudBackupAction)Action that creates a Cloud Spanner database backup.
$msg->copy_cloud_backup()/$msg->copy_cloud_backup($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::CopyCloudBackupAction)Action that copies a Cloud Spanner database backup.
$msg->get_cloud_backup()/$msg->get_cloud_backup($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::GetCloudBackupAction)Action that gets a Cloud Spanner database backup.
$msg->update_cloud_backup()/$msg->update_cloud_backup($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::UpdateCloudBackupAction)Action that updates a Cloud Spanner database backup.
$msg->delete_cloud_backup()/$msg->delete_cloud_backup($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::DeleteCloudBackupAction)Action that deletes a Cloud Spanner database backup.
$msg->list_cloud_backups()/$msg->list_cloud_backups($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::ListCloudBackupsAction)Action that lists Cloud Spanner database backups.
$msg->list_cloud_backup_operations()/$msg->list_cloud_backup_operations($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::ListCloudBackupOperationsAction)Action that lists Cloud Spanner database backup operations.
$msg->get_operation()/$msg->get_operation($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::GetOperationAction)Action that gets an operation.
$msg->cancel_operation()/$msg->cancel_operation($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::CancelOperationAction)Action that cancels an operation.
$msg->change_quorum_cloud_database()/$msg->change_quorum_cloud_database($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::ChangeQuorumCloudDatabaseAction)Action that changes quorum of a Cloud Spanner database.
$msg->add_split_points()/$msg->add_split_points($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::AddSplitPointsAction)Action that adds splits to a Cloud Spanner database.
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:
StringUser instance config ID (not path), e.g. "custom-config".
$msg->project_id()/$msg->project_id($value)Type:
StringCloud project ID, e.g. "spanner-cloud-systest".
$msg->base_config_id()/$msg->base_config_id($value)Type:
StringBase 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:
StringUser instance config ID (not path), e.g. "custom-config".
$msg->project_id()/$msg->project_id($value)Type:
StringCloud project ID, e.g. "spanner-cloud-systest".
$msg->display_name()/$msg->display_name($value)Type:
StringThe 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:
StringInstance config ID (not path), e.g. "custom-config".
$msg->project_id()/$msg->project_id($value)Type:
StringCloud 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:
StringUser instance config ID (not path), e.g. "custom-config".
$msg->project_id()/$msg->project_id($value)Type:
StringCloud 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:
StringCloud project ID, e.g. "spanner-cloud-systest".
$msg->page_size()/$msg->page_size($value)Type:
Int32Number 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:
StringIf 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:
StringCloud instance ID (not path), e.g. "test-instance".
$msg->project_id()/$msg->project_id($value)Type:
StringCloud project ID, e.g. "spanner-cloud-systest".
$msg->instance_config_id()/$msg->instance_config_id($value)Type:
StringInstance config ID, e.g. "test-config".
$msg->node_count()/$msg->node_count($value)Type:
Int32Number of nodes (processing_units should not be set or set to 0 if used).
$msg->processing_units()/$msg->processing_units($value)Type:
Int32Number 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:
StringCloud instance ID (not path), e.g. "test-instance".
$msg->project_id()/$msg->project_id($value)Type:
StringCloud project ID, e.g. "spanner-cloud-systest".
$msg->display_name()/$msg->display_name($value)Type:
StringThe 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:
Int32The 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:
Int32The 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:
StringCloud instance ID (not path), e.g. "test-instance".
$msg->project_id()/$msg->project_id($value)Type:
StringCloud 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:
StringCloud instance ID (not path), e.g. "test-instance".
$msg->project_id()/$msg->project_id($value)Type:
StringCloud project ID, e.g. "spanner-cloud-systest".
$msg->database_id()/$msg->database_id($value)Type:
StringCloud database ID (not full path), e.g. "db0".
$msg->sdl_statement()/$msg->sdl_statement($value)Type:
StringSDL 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:
StringOptional 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:
StringCloud instance ID (not path), e.g. "test-instance".
$msg->project_id()/$msg->project_id($value)Type:
StringCloud project ID, e.g. "spanner-cloud-systest".
$msg->database_id()/$msg->database_id($value)Type:
StringCloud database ID (not full path), e.g. "db0".
$msg->sdl_statement()/$msg->sdl_statement($value)Type:
StringSDL statements to apply to the database.
$msg->operation_id()/$msg->operation_id($value)Type:
StringOp 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:
StringCloud instance ID (not path), e.g. "test-instance".
$msg->project_id()/$msg->project_id($value)Type:
StringCloud project ID, e.g. "spanner-cloud-systest".
$msg->database_name()/$msg->database_name($value)Type:
StringCloud database name (not full path), e.g. "db0".
$msg->enable_drop_protection()/$msg->enable_drop_protection($value)Type:
BoolUpdated 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:
StringCloud instance ID (not path), e.g. "test-instance".
$msg->project_id()/$msg->project_id($value)Type:
StringCloud project ID, e.g. "spanner-cloud-systest".
$msg->database_id()/$msg->database_id($value)Type:
StringCloud 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:
StringThe fully qualified uri of the database whose quorum has to be changed.
$msg->serving_locations()/$msg->serving_locations($value)Type:
StringThe 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:
StringThe fully qualified uri of the database to send AdaptMessage to.
$msg->protocol()/$msg->protocol($value)Type:
StringThe protocol to use for the request.
$msg->payload()/$msg->payload($value)Type:
BytesThe 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:
StringThe query to be sent with the request.
$msg->prepare_then_execute()/$msg->prepare_then_execute($value)Type:
BoolIf 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:
StringCloud project ID, e.g. "spanner-cloud-systest".
$msg->instance_id()/$msg->instance_id($value)Type:
StringCloud instance ID (not path) to list databases from, e.g. "test-instance".
$msg->page_size()/$msg->page_size($value)Type:
Int32Number 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:
StringIf 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:
StringCloud project ID, e.g. "spanner-cloud-systest".
$msg->filter()/$msg->filter($value)Type:
StringA 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:
Int32Number 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:
StringIf 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:
StringCloud project ID, e.g. "spanner-cloud-systest".
$msg->instance_id()/$msg->instance_id($value)Type:
StringCloud 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:
StringCloud project ID, e.g. "spanner-cloud-systest".
$msg->instance_id()/$msg->instance_id($value)Type:
StringCloud instance ID (not path) to list database operations from, e.g. "test-instance".
$msg->filter()/$msg->filter($value)Type:
StringA 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:
Int32Number 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:
StringIf 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:
StringCloud project ID, e.g. "spanner-cloud-systest".
$msg->backup_instance_id()/$msg->backup_instance_id($value)Type:
StringCloud instance ID (not path) containing the backup, e.g. "backup-instance".
$msg->backup_id()/$msg->backup_id($value)Type:
StringThe id of the backup from which to restore, e.g. "test-backup".
$msg->database_instance_id()/$msg->database_instance_id($value)Type:
StringCloud instance ID (not path) containing the database, e.g. "database-instance".
$msg->database_id()/$msg->database_id($value)Type:
StringThe 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:
StringCloud project ID, e.g. "spanner-cloud-systest".
$msg->instance_id()/$msg->instance_id($value)Type:
StringCloud instance ID (not path), e.g. "test-instance".
$msg->database_id()/$msg->database_id($value)Type:
StringThe 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:
StringCloud project ID, e.g. "spanner-cloud-systest".
$msg->instance_id()/$msg->instance_id($value)Type:
StringCloud instance ID (not path), e.g. "test-instance".
$msg->backup_id()/$msg->backup_id($value)Type:
StringThe id of the backup to be created, e.g. "test-backup".
$msg->database_id()/$msg->database_id($value)Type:
StringThe 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:
StringCloud project ID, e.g. "spanner-cloud-systest".
$msg->instance_id()/$msg->instance_id($value)Type:
StringCloud instance ID (not path), e.g. "test-instance".
$msg->backup_id()/$msg->backup_id($value)Type:
StringThe id of the backup to be created, e.g. "test-backup".
$msg->source_backup()/$msg->source_backup($value)Type:
StringThe 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:
StringCloud project ID, e.g. "spanner-cloud-systest".
$msg->instance_id()/$msg->instance_id($value)Type:
StringCloud instance ID (not path), e.g. "test-instance".
$msg->backup_id()/$msg->backup_id($value)Type:
StringThe 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:
StringCloud project ID, e.g. "spanner-cloud-systest".
$msg->instance_id()/$msg->instance_id($value)Type:
StringCloud instance ID (not path), e.g. "test-instance".
$msg->backup_id()/$msg->backup_id($value)Type:
StringThe 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:
StringCloud project ID, e.g. "spanner-cloud-systest".
$msg->instance_id()/$msg->instance_id($value)Type:
StringCloud instance ID (not path), e.g. "test-instance".
$msg->backup_id()/$msg->backup_id($value)Type:
StringThe 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:
StringCloud project ID, e.g. "spanner-cloud-systest".
$msg->instance_id()/$msg->instance_id($value)Type:
StringCloud instance ID (not path) to list backups from, e.g. "test-instance".
$msg->filter()/$msg->filter($value)Type:
StringA 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:
Int32Number 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:
StringIf 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:
StringCloud project ID, e.g. "spanner-cloud-systest".
$msg->instance_id()/$msg->instance_id($value)Type:
StringCloud instance ID (not path) to list backup operations from, e.g. "test-instance".
$msg->filter()/$msg->filter($value)Type:
StringA 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:
Int32Number 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:
StringIf 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:
StringThe 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:
StringLong running query.
$msg->cancel_query()/$msg->cancel_query($value)Type:
StringFormat 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:
StringThe 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:
StringCloud project ID, e.g. "spanner-cloud-systest".
$msg->instance_id()/$msg->instance_id($value)Type:
StringCloud instance ID (not path), e.g. "test-instance".
$msg->database_id()/$msg->database_id($value)Type:
StringCloud 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:
BytesID 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:
StringDatabase 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:
BoolIndicates 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:
Int64Desired size of data in each partition. Spanner doesn't guarantee to respect this value.
$msg->max_partition_count()/$msg->max_partition_count($value)Type:
Int64If 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:
Int64Desired 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:
BytesSerialized Partition instance.
$msg->partition_token()/$msg->partition_token($value)Type:
BytesThe partition token decrypted from partition.
$msg->table()/$msg->table($value)Type:
StringTable name is set iff the partition was generated for a read (as opposed to a query).
$msg->index()/$msg->index($value)Type:
StringIndex 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
$msg->partition()/$msg->partition($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::BatchPartition)Batch partition to execute on.
$msg->secure_context()/$msg->secure_context($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::ExecutePartitionAction::SecureContextEntry)Secure context parameters.
Google::Spanner::Executor::V1::CloudExecutor::ExecuteChangeStreamQuery
Execute a change stream TVF query.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringName 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:
StringSpecifies which change stream partition to query, based on the content of child partitions records.
$msg->read_options()/$msg->read_options($value)Type:
StringRead options for this change stream query.
$msg->heartbeat_milliseconds()/$msg->heartbeat_milliseconds($value)Type:
Int32Determines 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:
Int64Deadline for this change stream query, in seconds.
$msg->cloud_database_role()/$msg->cloud_database_role($value)Type:
StringDatabase 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:
BoolThis 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:
BytesIn 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:
Int64Stores 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:
Int64If 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
$msg->backup_response()/$msg->backup_response($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::CloudBackupResponse)Results of cloud backup related actions.
$msg->operation_response()/$msg->operation_response($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::OperationResponse)Results of operation related actions.
$msg->database_response()/$msg->database_response($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::CloudDatabaseResponse)Results of database related actions.
$msg->instance_response()/$msg->instance_response($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::CloudInstanceResponse)Results of instance related actions.
$msg->instance_config_response()/$msg->instance_config_response($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::CloudInstanceConfigResponse)Results of instance config related actions.
Google::Spanner::Executor::V1::CloudExecutor::CloudBackupResponse
CloudBackupResponse contains results returned by cloud backup related actions.
Inherits from Protobuf::Message.
Accessors
$msg->listed_backups()/$msg->listed_backups($value)Type:
Message(Google::Spanner::Admin::Database::V1::Backup::Backup)List of backups returned by ListCloudBackupsAction.
$msg->listed_backup_operations()/$msg->listed_backup_operations($value)Type:
Message(Google::Longrunning::Operations::Operation)List of operations returned by ListCloudBackupOperationsAction.
$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->backup()/$msg->backup($value)Type:
Message(Google::Spanner::Admin::Database::V1::Backup::Backup)Backup returned by GetCloudBackupAction/UpdateCloudBackupAction.
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
$msg->listed_instances()/$msg->listed_instances($value)Type:
Message(Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::Instance)List of instances returned by ListCloudInstancesAction.
$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->instance()/$msg->instance($value)Type:
Message(Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::Instance)Instance returned by GetCloudInstanceAction
Google::Spanner::Executor::V1::CloudExecutor::CloudInstanceConfigResponse
CloudInstanceConfigResponse contains results returned by cloud instance config related actions.
Inherits from Protobuf::Message.
Accessors
$msg->listed_instance_configs()/$msg->listed_instance_configs($value)Type:
Message(Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::InstanceConfig)List of instance configs returned by ListCloudInstanceConfigsAction.
$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->instance_config()/$msg->instance_config($value)Type:
Message(Google::Spanner::Admin::Instance::V1::SpannerInstanceAdmin::InstanceConfig)Instance config returned by GetCloudInstanceConfigAction.
Google::Spanner::Executor::V1::CloudExecutor::CloudDatabaseResponse
CloudDatabaseResponse contains results returned by cloud database related actions.
Inherits from Protobuf::Message.
Accessors
$msg->listed_databases()/$msg->listed_databases($value)Type:
Message(Google::Spanner::Admin::Database::V1::SpannerDatabaseAdmin::Database)List of databases returned by ListCloudDatabasesAction.
$msg->listed_database_operations()/$msg->listed_database_operations($value)Type:
Message(Google::Longrunning::Operations::Operation)List of operations returned by ListCloudDatabaseOperationsAction.
$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->database()/$msg->database($value)Type:
Message(Google::Spanner::Admin::Database::V1::SpannerDatabaseAdmin::Database)Database returned by GetCloudDatabaseAction
Google::Spanner::Executor::V1::CloudExecutor::ReadResult
ReadResult contains rows read.
Inherits from Protobuf::Message.
Accessors
$msg->table()/$msg->table($value)Type:
StringTable name.
$msg->index()/$msg->index($value)Type:
StringIndex name, if read from an index.
$msg->request_index()/$msg->request_index($value)Type:
Int32Request 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
$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::ChangeStreamRecord
Raw ChangeStream records. Encodes one of: DataChangeRecord, HeartbeatRecord, ChildPartitionsRecord returned from the ChangeStream API.
Inherits from Protobuf::Message.
Accessors
$msg->data_change()/$msg->data_change($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::DataChangeRecord)Data change record.
$msg->child_partition()/$msg->child_partition($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::ChildPartitionsRecord)Child partitions record.
$msg->heartbeat()/$msg->heartbeat($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::HeartbeatRecord)Heartbeat record.
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:
StringThe sequence number for the record within the transaction.
$msg->transaction_id()/$msg->transaction_id($value)Type:
StringA globally unique string that represents the transaction in which the change was committed.
$msg->is_last_record()/$msg->is_last_record($value)Type:
BoolIndicates whether this is the last record for a transaction in the current partition.
$msg->table()/$msg->table($value)Type:
StringName 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:
StringDescribes the type of change. One of INSERT, UPDATE or DELETE.
$msg->value_capture_type()/$msg->value_capture_type($value)Type:
StringOne of value capture type: NEW_VALUES, OLD_VALUES, OLD_AND_NEW_VALUES.
$msg->record_count()/$msg->record_count($value)Type:
Int64Number of records in transactions.
$msg->partition_count()/$msg->partition_count($value)Type:
Int64Number of partitions in transactions.
$msg->transaction_tag()/$msg->transaction_tag($value)Type:
StringTransaction tag info.
$msg->is_system_transaction()/$msg->is_system_transaction($value)Type:
BoolWhether 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:
StringA 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
$msg->heartbeat_time()/$msg->heartbeat_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Timestamp for this heartbeat check.
Google::Spanner::Executor::V1::CloudExecutor::SpannerOptions
Options for Cloud Spanner Service.
Inherits from Protobuf::Message.
Accessors
$msg->session_pool_options()/$msg->session_pool_options($value)Type:
Message(Google::Spanner::Executor::V1::CloudExecutor::SessionPoolOptions)Options for configuring the session pool
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:
Boolpassing 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.