@@ -402,6 +402,15 @@ message Session {
402
402
403
403
// The database role which created this session.
404
404
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 ];
405
414
}
406
415
407
416
// The request for [GetSession][google.spanner.v1.Spanner.GetSession].
@@ -546,7 +555,7 @@ message DirectedReadOptions {
546
555
// * `location:us-east1` --> The "us-east1" replica(s) of any available type
547
556
// will be used to process the request.
548
557
// * `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
550
559
// request.
551
560
// * `location:us-east1 type:READ_ONLY` --> The "READ_ONLY" type replica(s)
552
561
// in location "us-east1" will be used to process
@@ -590,8 +599,7 @@ message DirectedReadOptions {
590
599
repeated ReplicaSelection replica_selections = 1 ;
591
600
}
592
601
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
595
603
// should be present in the message.
596
604
oneof replicas {
597
605
// Include_replicas indicates the order of replicas (as they appear in
@@ -601,8 +609,9 @@ message DirectedReadOptions {
601
609
// may fail due to `DEADLINE_EXCEEDED` errors.
602
610
IncludeReplicas include_replicas = 1 ;
603
611
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.
606
615
ExcludeReplicas exclude_replicas = 2 ;
607
616
}
608
617
}
@@ -1211,6 +1220,21 @@ message BatchWriteRequest {
1211
1220
// Required. The groups of mutations to be applied.
1212
1221
repeated MutationGroup mutation_groups = 4
1213
1222
[(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 ];
1214
1238
}
1215
1239
1216
1240
// The result of applying a batch of mutations.
0 commit comments