Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 211d22f

Browse filesBrowse 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
Copy full SHA for 211d22f

1 file changed

+12Lines changed: 12 additions & 0 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎google/spanner/v1/spanner.proto‎

Copy file name to clipboardExpand all lines: google/spanner/v1/spanner.proto
+12Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.