Skip to content

Commit 7ddafd8

Browse files
Google APIscopybara-github
authored andcommitted
feat: add LookerGoldenQuery to Context
PiperOrigin-RevId: 844667700
1 parent 23c5898 commit 7ddafd8

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

google/cloud/geminidataanalytics/v1alpha/BUILD.bazel

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

356356
csharp_proto_library(
357357
name = "geminidataanalytics_csharp_proto",
358-
extra_opts = [],
359358
deps = [":geminidataanalytics_proto"],
360359
)
361360

google/cloud/geminidataanalytics/v1alpha/context.proto

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,12 @@ message Context {
101101
repeated ExampleQuery example_queries = 5
102102
[(google.api.field_behavior) = OPTIONAL];
103103

104+
// Optional. A list of golden queries, providing examples of relevant and
105+
// commonly used Looker queries and their corresponding natural language
106+
// queries optionally present.
107+
repeated LookerGoldenQuery looker_golden_queries = 11
108+
[(google.api.field_behavior) = OPTIONAL];
109+
104110
// Optional. Term definitions (currently, only user authored)
105111
repeated GlossaryTerm glossary_terms = 8
106112
[(google.api.field_behavior) = OPTIONAL];
@@ -129,6 +135,18 @@ message ExampleQuery {
129135
string natural_language_question = 1 [(google.api.field_behavior) = OPTIONAL];
130136
}
131137

138+
// A golden query for Looker, including natural language questions and a
139+
// corresponding Looker Query. Analogous to ExampleQuery.
140+
message LookerGoldenQuery {
141+
// Optional. Natural language questions that a user might ask.
142+
// For example: "How many orders were placed last month?"
143+
repeated string natural_language_questions = 4
144+
[(google.api.field_behavior) = OPTIONAL];
145+
146+
// Optional. The Looker Query corresponding to the natural language questions.
147+
LookerQuery looker_query = 5 [(google.api.field_behavior) = OPTIONAL];
148+
}
149+
132150
// Looker Query Object
133151
// [Looker API
134152
// documentation](https://cloud.google.com/looker/docs/reference/looker-api/latest/methods/Query/run_inline_query).

google/cloud/geminidataanalytics/v1beta/BUILD.bazel

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

356356
csharp_proto_library(
357357
name = "geminidataanalytics_csharp_proto",
358-
extra_opts = [],
359358
deps = [":geminidataanalytics_proto"],
360359
)
361360

0 commit comments

Comments
 (0)