Skip to content

Commit 8e8a37d

Browse files
Google APIscopybara-github
Google APIs
authored andcommitted
feat(spanner): add field for multiplexed session in spanner.proto
docs: update comments PiperOrigin-RevId: 607015598
1 parent 980a0fa commit 8e8a37d

File tree

1 file changed

+29
-5
lines changed

1 file changed

+29
-5
lines changed

google/spanner/v1/spanner.proto

+29-5
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,15 @@ message Session {
402402

403403
// The database role which created this session.
404404
string creator_role = 5;
405+
406+
// Optional. If true, specifies a multiplexed session. A multiplexed session
407+
// may be used for multiple, concurrent read-only operations but can not be
408+
// used for read-write transactions, partitioned reads, or partitioned
409+
// queries. Multiplexed sessions can be created via
410+
// [CreateSession][google.spanner.v1.Spanner.CreateSession] but not via
411+
// [BatchCreateSessions][google.spanner.v1.Spanner.BatchCreateSessions].
412+
// Multiplexed sessions may not be deleted nor listed.
413+
bool multiplexed = 6 [(google.api.field_behavior) = OPTIONAL];
405414
}
406415

407416
// The request for [GetSession][google.spanner.v1.Spanner.GetSession].
@@ -546,7 +555,7 @@ message DirectedReadOptions {
546555
// * `location:us-east1` --> The "us-east1" replica(s) of any available type
547556
// will be used to process the request.
548557
// * `type:READ_ONLY` --> The "READ_ONLY" type replica(s) in nearest
549-
// . available location will be used to process the
558+
// available location will be used to process the
550559
// request.
551560
// * `location:us-east1 type:READ_ONLY` --> The "READ_ONLY" type replica(s)
552561
// in location "us-east1" will be used to process
@@ -590,8 +599,7 @@ message DirectedReadOptions {
590599
repeated ReplicaSelection replica_selections = 1;
591600
}
592601

593-
// Required. Replicas indicates the order in which replicas should be
594-
// considered. At most one of either include_replicas or exclude_replicas
602+
// Required. At most one of either include_replicas or exclude_replicas
595603
// should be present in the message.
596604
oneof replicas {
597605
// Include_replicas indicates the order of replicas (as they appear in
@@ -601,8 +609,9 @@ message DirectedReadOptions {
601609
// may fail due to `DEADLINE_EXCEEDED` errors.
602610
IncludeReplicas include_replicas = 1;
603611

604-
// Exclude_replicas indicates that should be excluded from serving
605-
// requests. Spanner will not route requests to the replicas in this list.
612+
// Exclude_replicas indicates that specified replicas should be excluded
613+
// from serving requests. Spanner will not route requests to the replicas
614+
// in this list.
606615
ExcludeReplicas exclude_replicas = 2;
607616
}
608617
}
@@ -1211,6 +1220,21 @@ message BatchWriteRequest {
12111220
// Required. The groups of mutations to be applied.
12121221
repeated MutationGroup mutation_groups = 4
12131222
[(google.api.field_behavior) = REQUIRED];
1223+
1224+
// Optional. When `exclude_txn_from_change_streams` is set to `true`:
1225+
// * Mutations from all transactions in this batch write operation will not
1226+
// be recorded in change streams with DDL option `allow_txn_exclusion=true`
1227+
// that are tracking columns modified by these transactions.
1228+
// * Mutations from all transactions in this batch write operation will be
1229+
// recorded in change streams with DDL option `allow_txn_exclusion=false or
1230+
// not set` that are tracking columns modified by these transactions.
1231+
//
1232+
// When `exclude_txn_from_change_streams` is set to `false` or not set,
1233+
// mutations from all transactions in this batch write operation will be
1234+
// recorded in all change streams that are tracking columns modified by these
1235+
// transactions.
1236+
bool exclude_txn_from_change_streams = 5
1237+
[(google.api.field_behavior) = OPTIONAL];
12141238
}
12151239

12161240
// The result of applying a batch of mutations.

0 commit comments

Comments
 (0)