Skip to content

Commit 7c4d9e7

Browse files
Google APIscopybara-github
authored andcommitted
fix!: An existing service ContextRetrievalService is removed
feat: A new field `example_queries` is added to message `.google.cloud.geminidataanalytics.v1alpha.Context` feat: A new message `ExampleQuery` is added feat: A new enum `DataFilterType` is added feat: A new field `schema` is added to message `.google.cloud.geminidataanalytics.v1alpha.BigQueryTableReference` feat: A new field `description` is added to message `.google.cloud.geminidataanalytics.v1alpha.Schema` feat: A new field `synonyms` is added to message `.google.cloud.geminidataanalytics.v1alpha.Schema` feat: A new field `tags` is added to message `.google.cloud.geminidataanalytics.v1alpha.Schema` feat: A new field `filters` is added to message `.google.cloud.geminidataanalytics.v1alpha.Schema` feat: A new field `synonyms` is added to message `.google.cloud.geminidataanalytics.v1alpha.Field` feat: A new field `tags` is added to message `.google.cloud.geminidataanalytics.v1alpha.Field` feat: A new field `value_format` is added to message `.google.cloud.geminidataanalytics.v1alpha.Field` feat: A new message `DataFilter` is added docs: many comment updates PiperOrigin-RevId: 797852600
1 parent 677d8cb commit 7c4d9e7

File tree

10 files changed

+167
-354
lines changed

10 files changed

+167
-354
lines changed

google/cloud/geminidataanalytics/v1beta/BUILD.bazel

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ proto_library(
2525
name = "geminidataanalytics_proto",
2626
srcs = [
2727
"context.proto",
28-
"context_retrieval_service.proto",
2928
"conversation.proto",
3029
"credentials.proto",
3130
"data_agent.proto",
@@ -107,10 +106,9 @@ java_gapic_library(
107106
java_gapic_test(
108107
name = "geminidataanalytics_java_gapic_test_suite",
109108
test_classes = [
110-
"com.google.cloud.geminidataanalytics.v1beta.ContextRetrievalServiceClientHttpJsonTest",
111-
"com.google.cloud.geminidataanalytics.v1beta.ContextRetrievalServiceClientTest",
112109
"com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClientHttpJsonTest",
113110
"com.google.cloud.geminidataanalytics.v1beta.DataAgentServiceClientTest",
111+
"com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClientHttpJsonTest",
114112
"com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClientTest",
115113
],
116114
runtime_deps = [":geminidataanalytics_java_gapic_test"],
@@ -321,9 +319,7 @@ ruby_grpc_library(
321319
ruby_cloud_gapic_library(
322320
name = "geminidataanalytics_ruby_gapic",
323321
srcs = [":geminidataanalytics_proto_with_info"],
324-
extra_protoc_parameters = [
325-
"ruby-cloud-gem-name=google-cloud-gemini_data_analytics-v1beta",
326-
],
322+
extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-gemini_data_analytics-v1beta"],
327323
grpc_service_config = "geminidataanalytics_v1beta_grpc_service_config.json",
328324
rest_numeric_enums = True,
329325
service_yaml = "geminidataanalytics_v1beta.yaml",
@@ -358,7 +354,6 @@ load(
358354

359355
csharp_proto_library(
360356
name = "geminidataanalytics_csharp_proto",
361-
extra_opts = [],
362357
deps = [":geminidataanalytics_proto"],
363358
)
364359

google/cloud/geminidataanalytics/v1beta/context.proto

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,35 @@ message Context {
3737
// can help the model understand the business context around a user question.
3838
string system_instruction = 1 [(google.api.field_behavior) = OPTIONAL];
3939

40-
// Required. Datasources available for answering the question.
40+
// Required. Data sources that are available for answering the question.
4141
DatasourceReferences datasource_references = 7
4242
[(google.api.field_behavior) = REQUIRED];
4343

4444
// Optional. Additional options for the conversation.
4545
ConversationOptions options = 3 [(google.api.field_behavior) = OPTIONAL];
46+
47+
// Optional. A list of example queries, providing examples of relevant and
48+
// commonly used SQL queries and their corresponding natural language queries
49+
// optionally present.
50+
repeated ExampleQuery example_queries = 5
51+
[(google.api.field_behavior) = OPTIONAL];
52+
}
53+
54+
// Example of relevant and commonly used SQL query and its corresponding natural
55+
// language queries optionally present.
56+
message ExampleQuery {
57+
// The SQL or Looker query that should be generated to answer the natural
58+
// language query.
59+
oneof query {
60+
// Optional. The SQL query that should be generated to answer the natural
61+
// language question. For example: "SELECT COUNT(*) FROM orders WHERE
62+
// order_date BETWEEN '2024-01-01' AND '2024-01-31'"
63+
string sql_query = 101 [(google.api.field_behavior) = OPTIONAL];
64+
}
65+
66+
// Optional. A natural language question that a user might ask.
67+
// For example: "How many orders were placed last month?"
68+
string natural_language_question = 1 [(google.api.field_behavior) = OPTIONAL];
4669
}
4770

4871
// Options for the conversation.

google/cloud/geminidataanalytics/v1beta/context_retrieval_service.proto

Lines changed: 0 additions & 296 deletions
This file was deleted.

0 commit comments

Comments
 (0)