From 211d22fa6dfabfa52cbda04d1aee852a01301edf Mon Sep 17 00:00:00 2001 From: Google APIs Date: Wed, 7 Jan 2026 10:37:30 -0800 Subject: [PATCH] feat: add a ClientContext field to Spanner requests feat: add Secure Parameters to the ClientContext PiperOrigin-RevId: 853323071 --- google/spanner/v1/spanner.proto | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/google/spanner/v1/spanner.proto b/google/spanner/v1/spanner.proto index 1f797e940f..91456ebb5e 100644 --- a/google/spanner/v1/spanner.proto +++ b/google/spanner/v1/spanner.proto @@ -517,6 +517,15 @@ message RequestOptions { PRIORITY_HIGH = 3; } + // Container for various pieces of client-owned context attached to a request. + message ClientContext { + // Optional. Map of parameter name to value for this request. These values + // will be returned by any SECURE_CONTEXT() calls invoked by this request + // (e.g., by queries against Parameterized Secure Views). + map secure_context = 1 + [(google.api.field_behavior) = OPTIONAL]; + } + // Priority for the request. Priority priority = 1; @@ -544,6 +553,9 @@ message RequestOptions { // characters. Values that exceed this limit are truncated. // Any leading underscore (_) characters are removed from the string. string transaction_tag = 3; + + // Optional. Optional context that may be needed for some requests. + ClientContext client_context = 4 [(google.api.field_behavior) = OPTIONAL]; } // The `DirectedReadOptions` can be used to indicate which replicas or regions