Skip to content

Commit 211d22f

Browse files
Google APIscopybara-github
authored andcommitted
feat: add a ClientContext field to Spanner requests
feat: add Secure Parameters to the ClientContext PiperOrigin-RevId: 853323071
1 parent 110554f commit 211d22f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

google/spanner/v1/spanner.proto

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,15 @@ message RequestOptions {
517517
PRIORITY_HIGH = 3;
518518
}
519519

520+
// Container for various pieces of client-owned context attached to a request.
521+
message ClientContext {
522+
// Optional. Map of parameter name to value for this request. These values
523+
// will be returned by any SECURE_CONTEXT() calls invoked by this request
524+
// (e.g., by queries against Parameterized Secure Views).
525+
map<string, google.protobuf.Value> secure_context = 1
526+
[(google.api.field_behavior) = OPTIONAL];
527+
}
528+
520529
// Priority for the request.
521530
Priority priority = 1;
522531

@@ -544,6 +553,9 @@ message RequestOptions {
544553
// characters. Values that exceed this limit are truncated.
545554
// Any leading underscore (_) characters are removed from the string.
546555
string transaction_tag = 3;
556+
557+
// Optional. Optional context that may be needed for some requests.
558+
ClientContext client_context = 4 [(google.api.field_behavior) = OPTIONAL];
547559
}
548560

549561
// The `DirectedReadOptions` can be used to indicate which replicas or regions

0 commit comments

Comments
 (0)