Skip to content

Commit 9807038

Browse files
Google APIscopybara-github
authored andcommitted
feat: add ParameterizedSecureViewParameters message and field for PSV support
feat: add `ThinkingMode` enum and field to control agent thinking mode docs: update field comments for `generated_looker_query` in `DataMessage` PiperOrigin-RevId: 881451746
1 parent b845741 commit 9807038

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

google/cloud/geminidataanalytics/v1beta/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,7 @@ load(
355355

356356
csharp_proto_library(
357357
name = "geminidataanalytics_csharp_proto",
358+
extra_opts = [],
358359
deps = [":geminidataanalytics_proto"],
359360
)
360361

google/cloud/geminidataanalytics/v1beta/data_chat_service.proto

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,20 @@ message QueryDataContext {
157157
// Required. The datasource references to use for the query.
158158
DatasourceReferences datasource_references = 1
159159
[(google.api.field_behavior) = REQUIRED];
160+
161+
// Optional. Parameters for Parameterized Secure Views (PSV).
162+
ParameterizedSecureViewParameters parameterized_secure_view_parameters = 2
163+
[(google.api.field_behavior) = OPTIONAL];
164+
}
165+
166+
// Parameters for Parameterized Secure Views (PSV). These parameters are
167+
// used to enforce row-level security during SQL generation and query
168+
// execution.
169+
message ParameterizedSecureViewParameters {
170+
// Optional. Named parameters for Parameterized Secure Views (PSV).
171+
// The map keys are parameter names (e.g., `"user_id"`), and values are the
172+
// corresponding parameter values (e.g., `"123"`).
173+
map<string, string> parameters = 1 [(google.api.field_behavior) = OPTIONAL];
160174
}
161175

162176
// Response containing the generated query and related information.
@@ -283,6 +297,18 @@ message StorageMessage {
283297

284298
// Request for Chat.
285299
message ChatRequest {
300+
// Mode of thinking for the agent.
301+
enum ThinkingMode {
302+
// Unspecified thinking mode, agent will use THINKING mode by default.
303+
THINKING_MODE_UNSPECIFIED = 0;
304+
305+
// Fast mode, answers quickly.
306+
FAST = 1;
307+
308+
// Thinking mode, solves complex problems.
309+
THINKING = 2;
310+
}
311+
286312
// Context Provider for the chat request.
287313
// It can either be -
288314
// inline_context, which is a context provided inline in the request.
@@ -328,6 +354,10 @@ message ChatRequest {
328354

329355
// Required. Content of current conversation.
330356
repeated Message messages = 2 [(google.api.field_behavior) = REQUIRED];
357+
358+
// Optional. The thinking mode to use for the agent loop.
359+
// Defaults to THINKING_MODE_UNSPECIFIED if not specified.
360+
ThinkingMode thinking_mode = 9 [(google.api.field_behavior) = OPTIONAL];
331361
}
332362

333363
// Context for the chat request using a data agent.
@@ -542,7 +572,7 @@ message DataMessage {
542572
DataResult result = 3;
543573

544574
// Looker Query generated by the system to retrieve data.
545-
// DEPRECATED: generated looker query is now under DataQuery.looker.
575+
// Deprecated: generated looker query is now under DataQuery.looker.
546576
LookerQuery generated_looker_query = 4 [deprecated = true];
547577

548578
// A BigQuery job executed by the system to retrieve data.

0 commit comments

Comments
 (0)