package spanner

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Type Members

  1. final case class BatchCreateSessionsRequest(database: String = "", sessionTemplate: Option[Session] = _root_.scala.None, sessionCount: Int = 0, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[BatchCreateSessionsRequest] with Product with Serializable

    The request for [BatchCreateSessions][google.spanner.v1.Spanner.BatchCreateSessions].

    The request for [BatchCreateSessions][google.spanner.v1.Spanner.BatchCreateSessions].

    database

    Required. The database in which the new sessions are created.

    sessionTemplate

    Parameters to be applied to each created session.

    sessionCount

    Required. The number of sessions to be created in this batch call. The API may return fewer than the requested number of sessions. If a specific number of sessions are desired, the client can make additional calls to BatchCreateSessions (adjusting [session_count][google.spanner.v1.BatchCreateSessionsRequest.session_count] as necessary).

    Annotations
    @SerialVersionUID()
  2. final case class BatchCreateSessionsResponse(session: Seq[Session] = _root_.scala.Seq.empty, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[BatchCreateSessionsResponse] with Product with Serializable

    The response for [BatchCreateSessions][google.spanner.v1.Spanner.BatchCreateSessions].

    The response for [BatchCreateSessions][google.spanner.v1.Spanner.BatchCreateSessions].

    session

    The freshly created sessions.

    Annotations
    @SerialVersionUID()
  3. final case class BatchWriteRequest(session: String = "", requestOptions: Option[RequestOptions] = _root_.scala.None, mutationGroups: Seq[MutationGroup] = _root_.scala.Seq.empty, excludeTxnFromChangeStreams: Boolean = false, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[BatchWriteRequest] with Product with Serializable

    The request for [BatchWrite][google.spanner.v1.Spanner.BatchWrite].

    The request for [BatchWrite][google.spanner.v1.Spanner.BatchWrite].

    session

    Required. The session in which the batch request is to be run.

    requestOptions

    Common options for this request.

    mutationGroups

    Required. The groups of mutations to be applied.

    excludeTxnFromChangeStreams

    Optional. When exclude_txn_from_change_streams is set to true: * Mutations from all transactions in this batch write operation will not be recorded in change streams with DDL option allow_txn_exclusion=true that are tracking columns modified by these transactions. * Mutations from all transactions in this batch write operation will be recorded in change streams with DDL option allow_txn_exclusion=false or not set that are tracking columns modified by these transactions. When exclude_txn_from_change_streams is set to false or not set, mutations from all transactions in this batch write operation will be recorded in all change streams that are tracking columns modified by these transactions.

    Annotations
    @SerialVersionUID()
  4. final case class BatchWriteResponse(indexes: Seq[Int] = _root_.scala.Seq.empty, status: Option[Status] = _root_.scala.None, commitTimestamp: Option[Timestamp] = _root_.scala.None, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[BatchWriteResponse] with Product with Serializable

    The result of applying a batch of mutations.

    The result of applying a batch of mutations.

    indexes

    The mutation groups applied in this batch. The values index into the mutation_groups field in the corresponding BatchWriteRequest.

    status

    An OK status indicates success. Any other status indicates a failure.

    commitTimestamp

    The commit timestamp of the transaction that applied this batch. Present if status is OK, absent otherwise.

    Annotations
    @SerialVersionUID()
  5. final case class BeginTransactionRequest(session: String = "", options: Option[TransactionOptions] = _root_.scala.None, requestOptions: Option[RequestOptions] = _root_.scala.None, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[BeginTransactionRequest] with Product with Serializable

    The request for [BeginTransaction][google.spanner.v1.Spanner.BeginTransaction].

    The request for [BeginTransaction][google.spanner.v1.Spanner.BeginTransaction].

    session

    Required. The session in which the transaction runs.

    options

    Required. Options for the new transaction.

    requestOptions

    Common options for this request. Priority is ignored for this request. Setting the priority in this request_options struct will not do anything. To set the priority for a transaction, set it on the reads and writes that are part of this transaction instead.

    Annotations
    @SerialVersionUID()
  6. final case class CommitRequest(session: String = "", transaction: Transaction = com.google.spanner.v1.spanner.CommitRequest.Transaction.Empty, mutations: Seq[Mutation] = _root_.scala.Seq.empty, returnCommitStats: Boolean = false, maxCommitDelay: Option[Duration] = _root_.scala.None, requestOptions: Option[RequestOptions] = _root_.scala.None, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[CommitRequest] with Product with Serializable

    The request for [Commit][google.spanner.v1.Spanner.Commit].

    The request for [Commit][google.spanner.v1.Spanner.Commit].

    session

    Required. The session in which the transaction to be committed is running.

    mutations

    The mutations to be executed when this transaction commits. All mutations are applied atomically, in the order they appear in this list.

    returnCommitStats

    If true, then statistics related to the transaction will be included in the [CommitResponse][google.spanner.v1.CommitResponse.commit_stats]. Default value is false.

    maxCommitDelay

    Optional. The amount of latency this request is willing to incur in order to improve throughput. If this field is not set, Spanner assumes requests are relatively latency sensitive and automatically determines an appropriate delay time. You can specify a batching delay value between 0 and 500 ms.

    requestOptions

    Common options for this request.

    Annotations
    @SerialVersionUID()
  7. final case class CreateSessionRequest(database: String = "", session: Option[Session] = _root_.scala.None, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[CreateSessionRequest] with Product with Serializable

    The request for [CreateSession][google.spanner.v1.Spanner.CreateSession].

    The request for [CreateSession][google.spanner.v1.Spanner.CreateSession].

    database

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

    session

    Required. The session to create.

    Annotations
    @SerialVersionUID()
  8. final case class DeleteSessionRequest(name: String = "", unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[DeleteSessionRequest] with Product with Serializable

    The request for [DeleteSession][google.spanner.v1.Spanner.DeleteSession].

    The request for [DeleteSession][google.spanner.v1.Spanner.DeleteSession].

    name

    Required. The name of the session to delete.

    Annotations
    @SerialVersionUID()
  9. final case class DirectedReadOptions(replicas: Replicas = com.google.spanner.v1.spanner.DirectedReadOptions.Replicas.Empty, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[DirectedReadOptions] with Product with Serializable

    The DirectedReadOptions can be used to indicate which replicas or regions should be used for non-transactional reads or queries.

    The DirectedReadOptions can be used to indicate which replicas or regions should be used for non-transactional reads or queries.

    DirectedReadOptions may only be specified for a read-only transaction, otherwise the API will return an INVALID_ARGUMENT error.

    Annotations
    @SerialVersionUID()
  10. final case class ExecuteBatchDmlRequest(session: String = "", transaction: Option[TransactionSelector] = _root_.scala.None, statements: Seq[Statement] = _root_.scala.Seq.empty, seqno: Long = 0L, requestOptions: Option[RequestOptions] = _root_.scala.None, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[ExecuteBatchDmlRequest] with Product with Serializable

    The request for [ExecuteBatchDml][google.spanner.v1.Spanner.ExecuteBatchDml].

    The request for [ExecuteBatchDml][google.spanner.v1.Spanner.ExecuteBatchDml].

    session

    Required. The session in which the DML statements should be performed.

    transaction

    Required. The transaction to use. Must be a read-write transaction. To protect against replays, single-use transactions are not supported. The caller must either supply an existing transaction ID or begin a new transaction.

    statements

    Required. The list of statements to execute in this batch. Statements are executed serially, such that the effects of statement i are visible to statement i+1. Each statement must be a DML statement. Execution stops at the first failed statement; the remaining statements are not executed. Callers must provide at least one statement.

    seqno

    Required. A per-transaction sequence number used to identify this request. This field makes each request idempotent such that if the request is received multiple times, at most one will succeed. The sequence number must be monotonically increasing within the transaction. If a request arrives for the first time with an out-of-order sequence number, the transaction may be aborted. Replays of previously handled requests will yield the same response as the first execution.

    requestOptions

    Common options for this request.

    Annotations
    @SerialVersionUID()
  11. final case class ExecuteBatchDmlResponse(resultSets: Seq[ResultSet] = _root_.scala.Seq.empty, status: Option[Status] = _root_.scala.None, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[ExecuteBatchDmlResponse] with Product with Serializable

    The response for [ExecuteBatchDml][google.spanner.v1.Spanner.ExecuteBatchDml].

    The response for [ExecuteBatchDml][google.spanner.v1.Spanner.ExecuteBatchDml]. Contains a list of [ResultSet][google.spanner.v1.ResultSet] messages, one for each DML statement that has successfully executed, in the same order as the statements in the request. If a statement fails, the status in the response body identifies the cause of the failure.

    To check for DML statements that failed, use the following approach:

    1. Check the status in the response message. The [google.rpc.Code][google.rpc.Code] enum value OK indicates that all statements were executed successfully. 2. If the status was not OK, check the number of result sets in the response. If the response contains N [ResultSet][google.spanner.v1.ResultSet] messages, then statement N+1 in the request failed.

    Example 1:

    * Request: 5 DML statements, all executed successfully. * Response: 5 [ResultSet][google.spanner.v1.ResultSet] messages, with the status OK.

    Example 2:

    * Request: 5 DML statements. The third statement has a syntax error. * Response: 2 [ResultSet][google.spanner.v1.ResultSet] messages, and a syntax error (INVALID_ARGUMENT) status. The number of [ResultSet][google.spanner.v1.ResultSet] messages indicates that the third statement failed, and the fourth and fifth statements were not executed.

    resultSets

    One [ResultSet][google.spanner.v1.ResultSet] for each statement in the request that ran successfully, in the same order as the statements in the request. Each [ResultSet][google.spanner.v1.ResultSet] does not contain any rows. The [ResultSetStats][google.spanner.v1.ResultSetStats] in each [ResultSet][google.spanner.v1.ResultSet] contain the number of rows modified by the statement. Only the first [ResultSet][google.spanner.v1.ResultSet] in the response contains valid [ResultSetMetadata][google.spanner.v1.ResultSetMetadata].

    status

    If all DML statements are executed successfully, the status is OK. Otherwise, the error status of the first failed statement.

    Annotations
    @SerialVersionUID()
  12. final case class ExecuteSqlRequest(session: String = "", transaction: Option[TransactionSelector] = _root_.scala.None, sql: String = "", params: Option[Struct] = _root_.scala.None, paramTypes: Map[String, Type] = _root_.scala.collection.immutable.Map.empty, resumeToken: ByteString = _root_.com.google.protobuf.ByteString.EMPTY, queryMode: QueryMode = com.google.spanner.v1.spanner.ExecuteSqlRequest.QueryMode.NORMAL, partitionToken: ByteString = _root_.com.google.protobuf.ByteString.EMPTY, seqno: Long = 0L, queryOptions: Option[QueryOptions] = _root_.scala.None, requestOptions: Option[RequestOptions] = _root_.scala.None, directedReadOptions: Option[DirectedReadOptions] = _root_.scala.None, dataBoostEnabled: Boolean = false, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[ExecuteSqlRequest] with Product with Serializable

    The request for [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql] and [ExecuteStreamingSql][google.spanner.v1.Spanner.ExecuteStreamingSql].

    The request for [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql] and [ExecuteStreamingSql][google.spanner.v1.Spanner.ExecuteStreamingSql].

    session

    Required. The session in which the SQL query should be performed.

    transaction

    The transaction to use. For queries, if none is provided, the default is a temporary read-only transaction with strong concurrency. Standard DML statements require a read-write transaction. To protect against replays, single-use transactions are not supported. The caller must either supply an existing transaction ID or begin a new transaction. Partitioned DML requires an existing Partitioned DML transaction ID.

    sql

    Required. The SQL string.

    params

    Parameter names and values that bind to placeholders in the SQL string. A parameter placeholder consists of the @ character followed by the parameter name (for example, @firstName). Parameter names must conform to the naming requirements of identifiers as specified at https://cloud.google.com/spanner/docs/lexical#identifiers. Parameters can appear anywhere that a literal value is expected. The same parameter name can be used more than once, for example: "WHERE id > @msg_id AND id < @msg_id + 100" It is an error to execute a SQL statement with unbound parameters.

    paramTypes

    It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value. For example, values of type BYTES and values of type STRING both appear in [params][google.spanner.v1.ExecuteSqlRequest.params] as JSON strings. In these cases, param_types can be used to specify the exact SQL type for some or all of the SQL statement parameters. See the definition of [Type][google.spanner.v1.Type] for more information about SQL types.

    resumeToken

    If this request is resuming a previously interrupted SQL statement execution, resume_token should be copied from the last [PartialResultSet][google.spanner.v1.PartialResultSet] yielded before the interruption. Doing this enables the new SQL statement execution to resume where the last one left off. The rest of the request parameters must exactly match the request that yielded this token.

    queryMode

    Used to control the amount of debugging information returned in [ResultSetStats][google.spanner.v1.ResultSetStats]. If [partition_token][google.spanner.v1.ExecuteSqlRequest.partition_token] is set, [query_mode][google.spanner.v1.ExecuteSqlRequest.query_mode] can only be set to [QueryMode.NORMAL][google.spanner.v1.ExecuteSqlRequest.QueryMode.NORMAL].

    partitionToken

    If present, results will be restricted to the specified partition previously created using PartitionQuery(). There must be an exact match for the values of fields common to this message and the PartitionQueryRequest message used to create this partition_token.

    seqno

    A per-transaction sequence number used to identify this request. This field makes each request idempotent such that if the request is received multiple times, at most one will succeed. The sequence number must be monotonically increasing within the transaction. If a request arrives for the first time with an out-of-order sequence number, the transaction may be aborted. Replays of previously handled requests will yield the same response as the first execution. Required for DML statements. Ignored for queries.

    queryOptions

    Query optimizer configuration to use for the given query.

    requestOptions

    Common options for this request.

    directedReadOptions

    Directed read options for this request.

    dataBoostEnabled

    If this is for a partitioned query and this field is set to true, the request is executed with Spanner Data Boost independent compute resources. If the field is set to true but the request does not set partition_token, the API returns an INVALID_ARGUMENT error.

    Annotations
    @SerialVersionUID()
  13. final case class GetSessionRequest(name: String = "", unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[GetSessionRequest] with Product with Serializable

    The request for [GetSession][google.spanner.v1.Spanner.GetSession].

    The request for [GetSession][google.spanner.v1.Spanner.GetSession].

    name

    Required. The name of the session to retrieve.

    Annotations
    @SerialVersionUID()
  14. final case class ListSessionsRequest(database: String = "", pageSize: Int = 0, pageToken: String = "", filter: String = "", unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[ListSessionsRequest] with Product with Serializable

    The request for [ListSessions][google.spanner.v1.Spanner.ListSessions].

    The request for [ListSessions][google.spanner.v1.Spanner.ListSessions].

    database

    Required. The database in which to list sessions.

    pageSize

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

    pageToken

    If non-empty, page_token should contain a [next_page_token][google.spanner.v1.ListSessionsResponse.next_page_token] from a previous [ListSessionsResponse][google.spanner.v1.ListSessionsResponse].

    filter

    An expression for filtering the results of the request. Filter rules are case insensitive. The fields eligible for filtering are: * labels.key where key is the name of a label Some examples of using filters are: * labels.env:* --> The session has the label "env". * labels.env:dev --> The session has the label "env" and the value of the label contains the string "dev".

    Annotations
    @SerialVersionUID()
  15. final case class ListSessionsResponse(sessions: Seq[Session] = _root_.scala.Seq.empty, nextPageToken: String = "", unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[ListSessionsResponse] with Product with Serializable

    The response for [ListSessions][google.spanner.v1.Spanner.ListSessions].

    The response for [ListSessions][google.spanner.v1.Spanner.ListSessions].

    sessions

    The list of requested sessions.

    nextPageToken

    next_page_token can be sent in a subsequent [ListSessions][google.spanner.v1.Spanner.ListSessions] call to fetch more of the matching sessions.

    Annotations
    @SerialVersionUID()
  16. final case class Partition(partitionToken: ByteString = _root_.com.google.protobuf.ByteString.EMPTY, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[Partition] with Product with Serializable

    Information returned for each partition returned in a PartitionResponse.

    Information returned for each partition returned in a PartitionResponse.

    partitionToken

    This token can be passed to Read, StreamingRead, ExecuteSql, or ExecuteStreamingSql requests to restrict the results to those identified by this partition token.

    Annotations
    @SerialVersionUID()
  17. final case class PartitionOptions(partitionSizeBytes: Long = 0L, maxPartitions: Long = 0L, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[PartitionOptions] with Product with Serializable

    Options for a PartitionQueryRequest and PartitionReadRequest.

    Options for a PartitionQueryRequest and PartitionReadRequest.

    partitionSizeBytes

    **Note:** This hint is currently ignored by PartitionQuery and PartitionRead requests. The desired data size for each partition generated. The default for this option is currently 1 GiB. This is only a hint. The actual size of each partition may be smaller or larger than this size request.

    maxPartitions

    **Note:** This hint is currently ignored by PartitionQuery and PartitionRead requests. The desired maximum number of partitions to return. For example, this may be set to the number of workers available. The default for this option is currently 10,000. The maximum value is currently 200,000. This is only a hint. The actual number of partitions returned may be smaller or larger than this maximum count request.

    Annotations
    @SerialVersionUID()
  18. final case class PartitionQueryRequest(session: String = "", transaction: Option[TransactionSelector] = _root_.scala.None, sql: String = "", params: Option[Struct] = _root_.scala.None, paramTypes: Map[String, Type] = _root_.scala.collection.immutable.Map.empty, partitionOptions: Option[PartitionOptions] = _root_.scala.None, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[PartitionQueryRequest] with Product with Serializable

    The request for [PartitionQuery][google.spanner.v1.Spanner.PartitionQuery]

    The request for [PartitionQuery][google.spanner.v1.Spanner.PartitionQuery]

    session

    Required. The session used to create the partitions.

    transaction

    Read only snapshot transactions are supported, read/write and single use transactions are not.

    sql

    Required. The query request to generate partitions for. The request will fail if the query is not root partitionable. For a query to be root partitionable, it needs to satisfy a few conditions. For example, if the query execution plan contains a distributed union operator, then it must be the first operator in the plan. For more information about other conditions, see [Read data in parallel](https://cloud.google.com/spanner/docs/reads#read_data_in_parallel). The query request must not contain DML commands, such as INSERT, UPDATE, or DELETE. Use [ExecuteStreamingSql][google.spanner.v1.Spanner.ExecuteStreamingSql] with a PartitionedDml transaction for large, partition-friendly DML operations.

    params

    Parameter names and values that bind to placeholders in the SQL string. A parameter placeholder consists of the @ character followed by the parameter name (for example, @firstName). Parameter names can contain letters, numbers, and underscores. Parameters can appear anywhere that a literal value is expected. The same parameter name can be used more than once, for example: "WHERE id > @msg_id AND id < @msg_id + 100" It is an error to execute a SQL statement with unbound parameters.

    paramTypes

    It is not always possible for Cloud Spanner to infer the right SQL type from a JSON value. For example, values of type BYTES and values of type STRING both appear in [params][google.spanner.v1.PartitionQueryRequest.params] as JSON strings. In these cases, param_types can be used to specify the exact SQL type for some or all of the SQL query parameters. See the definition of [Type][google.spanner.v1.Type] for more information about SQL types.

    partitionOptions

    Additional options that affect how many partitions are created.

    Annotations
    @SerialVersionUID()
  19. final case class PartitionReadRequest(session: String = "", transaction: Option[TransactionSelector] = _root_.scala.None, table: String = "", index: String = "", columns: Seq[String] = _root_.scala.Seq.empty, keySet: Option[KeySet] = _root_.scala.None, partitionOptions: Option[PartitionOptions] = _root_.scala.None, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[PartitionReadRequest] with Product with Serializable

    The request for [PartitionRead][google.spanner.v1.Spanner.PartitionRead]

    The request for [PartitionRead][google.spanner.v1.Spanner.PartitionRead]

    session

    Required. The session used to create the partitions.

    transaction

    Read only snapshot transactions are supported, read/write and single use transactions are not.

    table

    Required. The name of the table in the database to be read.

    index

    If non-empty, the name of an index on [table][google.spanner.v1.PartitionReadRequest.table]. This index is used instead of the table primary key when interpreting [key_set][google.spanner.v1.PartitionReadRequest.key_set] and sorting result rows. See [key_set][google.spanner.v1.PartitionReadRequest.key_set] for further information.

    columns

    The columns of [table][google.spanner.v1.PartitionReadRequest.table] to be returned for each row matching this request.

    keySet

    Required. key_set identifies the rows to be yielded. key_set names the primary keys of the rows in [table][google.spanner.v1.PartitionReadRequest.table] to be yielded, unless [index][google.spanner.v1.PartitionReadRequest.index] is present. If [index][google.spanner.v1.PartitionReadRequest.index] is present, then [key_set][google.spanner.v1.PartitionReadRequest.key_set] instead names index keys in [index][google.spanner.v1.PartitionReadRequest.index]. It is not an error for the key_set to name rows that do not exist in the database. Read yields nothing for nonexistent rows.

    partitionOptions

    Additional options that affect how many partitions are created.

    Annotations
    @SerialVersionUID()
  20. final case class PartitionResponse(partitions: Seq[Partition] = _root_.scala.Seq.empty, transaction: Option[Transaction] = _root_.scala.None, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[PartitionResponse] with Product with Serializable

    The response for [PartitionQuery][google.spanner.v1.Spanner.PartitionQuery] or [PartitionRead][google.spanner.v1.Spanner.PartitionRead]

    The response for [PartitionQuery][google.spanner.v1.Spanner.PartitionQuery] or [PartitionRead][google.spanner.v1.Spanner.PartitionRead]

    partitions

    Partitions created by this request.

    transaction

    Transaction created by this request.

    Annotations
    @SerialVersionUID()
  21. final case class ReadRequest(session: String = "", transaction: Option[TransactionSelector] = _root_.scala.None, table: String = "", index: String = "", columns: Seq[String] = _root_.scala.Seq.empty, keySet: Option[KeySet] = _root_.scala.None, limit: Long = 0L, resumeToken: ByteString = _root_.com.google.protobuf.ByteString.EMPTY, partitionToken: ByteString = _root_.com.google.protobuf.ByteString.EMPTY, requestOptions: Option[RequestOptions] = _root_.scala.None, directedReadOptions: Option[DirectedReadOptions] = _root_.scala.None, dataBoostEnabled: Boolean = false, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[ReadRequest] with Product with Serializable

    The request for [Read][google.spanner.v1.Spanner.Read] and [StreamingRead][google.spanner.v1.Spanner.StreamingRead].

    The request for [Read][google.spanner.v1.Spanner.Read] and [StreamingRead][google.spanner.v1.Spanner.StreamingRead].

    session

    Required. The session in which the read should be performed.

    transaction

    The transaction to use. If none is provided, the default is a temporary read-only transaction with strong concurrency.

    table

    Required. The name of the table in the database to be read.

    index

    If non-empty, the name of an index on [table][google.spanner.v1.ReadRequest.table]. This index is used instead of the table primary key when interpreting [key_set][google.spanner.v1.ReadRequest.key_set] and sorting result rows. See [key_set][google.spanner.v1.ReadRequest.key_set] for further information.

    columns

    Required. The columns of [table][google.spanner.v1.ReadRequest.table] to be returned for each row matching this request.

    keySet

    Required. key_set identifies the rows to be yielded. key_set names the primary keys of the rows in [table][google.spanner.v1.ReadRequest.table] to be yielded, unless [index][google.spanner.v1.ReadRequest.index] is present. If [index][google.spanner.v1.ReadRequest.index] is present, then [key_set][google.spanner.v1.ReadRequest.key_set] instead names index keys in [index][google.spanner.v1.ReadRequest.index]. If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is empty, rows are yielded in table primary key order (if [index][google.spanner.v1.ReadRequest.index] is empty) or index key order (if [index][google.spanner.v1.ReadRequest.index] is non-empty). If the [partition_token][google.spanner.v1.ReadRequest.partition_token] field is not empty, rows will be yielded in an unspecified order. It is not an error for the key_set to name rows that do not exist in the database. Read yields nothing for nonexistent rows.

    limit

    If greater than zero, only the first limit rows are yielded. If limit is zero, the default is no limit. A limit cannot be specified if partition_token is set.

    resumeToken

    If this request is resuming a previously interrupted read, resume_token should be copied from the last [PartialResultSet][google.spanner.v1.PartialResultSet] yielded before the interruption. Doing this enables the new read to resume where the last read left off. The rest of the request parameters must exactly match the request that yielded this token.

    partitionToken

    If present, results will be restricted to the specified partition previously created using PartitionRead(). There must be an exact match for the values of fields common to this message and the PartitionReadRequest message used to create this partition_token.

    requestOptions

    Common options for this request.

    directedReadOptions

    Directed read options for this request.

    dataBoostEnabled

    If this is for a partitioned read and this field is set to true, the request is executed with Spanner Data Boost independent compute resources. If the field is set to true but the request does not set partition_token, the API returns an INVALID_ARGUMENT error.

    Annotations
    @SerialVersionUID()
  22. final case class RequestOptions(priority: Priority = com.google.spanner.v1.spanner.RequestOptions.Priority.PRIORITY_UNSPECIFIED, requestTag: String = "", transactionTag: String = "", unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[RequestOptions] with Product with Serializable

    Common request options for various APIs.

    Common request options for various APIs.

    priority

    Priority for the request.

    requestTag

    A per-request tag which can be applied to queries or reads, used for statistics collection. Both request_tag and transaction_tag can be specified for a read or query that belongs to a transaction. This field is ignored for requests where it's not applicable (e.g. CommitRequest). Legal characters for request_tag values are all printable characters (ASCII 32 - 126) and the length of a request_tag is limited to 50 characters. Values that exceed this limit are truncated. Any leading underscore (_) characters will be removed from the string.

    transactionTag

    A tag used for statistics collection about this transaction. Both request_tag and transaction_tag can be specified for a read or query that belongs to a transaction. The value of transaction_tag should be the same for all requests belonging to the same transaction. If this request doesn't belong to any transaction, transaction_tag will be ignored. Legal characters for transaction_tag values are all printable characters (ASCII 32 - 126) and the length of a transaction_tag is limited to 50 characters. Values that exceed this limit are truncated. Any leading underscore (_) characters will be removed from the string.

    Annotations
    @SerialVersionUID()
  23. final case class RollbackRequest(session: String = "", transactionId: ByteString = _root_.com.google.protobuf.ByteString.EMPTY, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[RollbackRequest] with Product with Serializable

    The request for [Rollback][google.spanner.v1.Spanner.Rollback].

    The request for [Rollback][google.spanner.v1.Spanner.Rollback].

    session

    Required. The session in which the transaction to roll back is running.

    transactionId

    Required. The transaction to roll back.

    Annotations
    @SerialVersionUID()
  24. final case class Session(name: String = "", labels: Map[String, String] = _root_.scala.collection.immutable.Map.empty, createTime: Option[Timestamp] = _root_.scala.None, approximateLastUseTime: Option[Timestamp] = _root_.scala.None, creatorRole: String = "", multiplexed: Boolean = false, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[Session] with Product with Serializable

    A session in the Cloud Spanner API.

    A session in the Cloud Spanner API.

    name

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

    labels

    The labels for the session. * Label keys must be between 1 and 63 characters long and must conform to the following regular expression: [a-z]([-a-z0-9]*[a-z0-9])?. * Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)?. * No more than 64 labels can be associated with a given session. See https://goo.gl/xmQnxf for more information on and examples of labels.

    createTime

    Output only. The timestamp when the session is created.

    approximateLastUseTime

    Output only. The approximate timestamp when the session is last used. It is typically earlier than the actual last use time.

    creatorRole

    The database role which created this session.

    multiplexed

    Optional. If true, specifies a multiplexed session. A multiplexed session may be used for multiple, concurrent read-only operations but can not be used for read-write transactions, partitioned reads, or partitioned queries. Multiplexed sessions can be created via [CreateSession][google.spanner.v1.Spanner.CreateSession] but not via [BatchCreateSessions][google.spanner.v1.Spanner.BatchCreateSessions]. Multiplexed sessions may not be deleted nor listed.

    Annotations
    @SerialVersionUID()
  25. trait Spanner[F[_]] extends AnyRef

    Cloud Spanner API

    Cloud Spanner API

    The Cloud Spanner API can be used to manage sessions and execute transactions on data stored in Cloud Spanner databases.

Value Members

  1. object BatchCreateSessionsRequest extends GeneratedMessageCompanion[BatchCreateSessionsRequest]
  2. object BatchCreateSessionsResponse extends GeneratedMessageCompanion[BatchCreateSessionsResponse]
  3. object BatchWriteRequest extends GeneratedMessageCompanion[BatchWriteRequest]
  4. object BatchWriteResponse extends GeneratedMessageCompanion[BatchWriteResponse]
  5. object BeginTransactionRequest extends GeneratedMessageCompanion[BeginTransactionRequest]
  6. object CommitRequest extends GeneratedMessageCompanion[CommitRequest]
  7. object CreateSessionRequest extends GeneratedMessageCompanion[CreateSessionRequest]
  8. object DeleteSessionRequest extends GeneratedMessageCompanion[DeleteSessionRequest]
  9. object DirectedReadOptions extends GeneratedMessageCompanion[DirectedReadOptions]
  10. object ExecuteBatchDmlRequest extends GeneratedMessageCompanion[ExecuteBatchDmlRequest]
  11. object ExecuteBatchDmlResponse extends GeneratedMessageCompanion[ExecuteBatchDmlResponse]
  12. object ExecuteSqlRequest extends GeneratedMessageCompanion[ExecuteSqlRequest]
  13. object GetSessionRequest extends GeneratedMessageCompanion[GetSessionRequest]
  14. object ListSessionsRequest extends GeneratedMessageCompanion[ListSessionsRequest]
  15. object ListSessionsResponse extends GeneratedMessageCompanion[ListSessionsResponse]
  16. object Partition extends GeneratedMessageCompanion[Partition]
  17. object PartitionOptions extends GeneratedMessageCompanion[PartitionOptions]
  18. object PartitionQueryRequest extends GeneratedMessageCompanion[PartitionQueryRequest]
  19. object PartitionReadRequest extends GeneratedMessageCompanion[PartitionReadRequest]
  20. object PartitionResponse extends GeneratedMessageCompanion[PartitionResponse]
  21. object ReadRequest extends GeneratedMessageCompanion[ReadRequest]
  22. object RequestOptions extends GeneratedMessageCompanion[RequestOptions]
  23. object RollbackRequest extends GeneratedMessageCompanion[RollbackRequest]
  24. object Session extends GeneratedMessageCompanion[Session]
  25. object Spanner
  26. object SpannerProto extends GeneratedFileObject

Ungrouped