google-cloud-gemini_data_analytics-v1beta 0.9.1 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/client.rb +2 -0
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/operations.rb +2 -0
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/paths.rb +21 -0
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/rest/client.rb +2 -0
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/rest/operations.rb +2 -0
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_chat_service/client.rb +26 -7
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_chat_service/paths.rb +21 -0
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_chat_service/rest/client.rb +26 -7
- data/lib/google/cloud/gemini_data_analytics/v1beta/version.rb +1 -1
- data/lib/google/cloud/geminidataanalytics/v1beta/context_pb.rb +13 -1
- data/lib/google/cloud/geminidataanalytics/v1beta/conversation_pb.rb +1 -1
- data/lib/google/cloud/geminidataanalytics/v1beta/data_agent_pb.rb +1 -1
- data/lib/google/cloud/geminidataanalytics/v1beta/data_chat_service_pb.rb +4 -1
- data/lib/google/cloud/geminidataanalytics/v1beta/data_chat_service_services_pb.rb +1 -1
- data/lib/google/cloud/geminidataanalytics/v1beta/datasource_pb.rb +3 -1
- data/proto_docs/google/cloud/geminidataanalytics/v1beta/context.rb +202 -5
- data/proto_docs/google/cloud/geminidataanalytics/v1beta/conversation.rb +14 -2
- data/proto_docs/google/cloud/geminidataanalytics/v1beta/data_agent.rb +6 -0
- data/proto_docs/google/cloud/geminidataanalytics/v1beta/data_chat_service.rb +105 -21
- data/proto_docs/google/cloud/geminidataanalytics/v1beta/datasource.rb +101 -15
- metadata +9 -6
|
@@ -10,7 +10,7 @@ require 'google/cloud/geminidataanalytics/v1beta/credentials_pb'
|
|
|
10
10
|
require 'google/protobuf/struct_pb'
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
descriptor_data = "\n8google/cloud/geminidataanalytics/v1beta/datasource.proto\x12\'google.cloud.geminidataanalytics.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a;google/cloud/geminidataanalytics/v1beta/agent_context.proto\x1a\x39google/cloud/geminidataanalytics/v1beta/credentials.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xa0\x04\n\x14\x44\x61tasourceReferences\x12N\n\x02\x62q\x18\x01 \x01(\x0b\x32@.google.cloud.geminidataanalytics.v1beta.BigQueryTableReferencesH\x00\x12U\n\x06studio\x18\x02 \x01(\x0b\x32\x43.google.cloud.geminidataanalytics.v1beta.StudioDatasourceReferencesH\x00\x12R\n\x06looker\x18\x03 \x01(\x0b\x32@.google.cloud.geminidataanalytics.v1beta.LookerExploreReferencesH\x00\x12L\n\x07\x61lloydb\x18\x08 \x01(\x0b\x32\x39.google.cloud.geminidataanalytics.v1beta.AlloyDbReferenceH\x00\x12V\n\x11spanner_reference\x18\t \x01(\x0b\x32\x39.google.cloud.geminidataanalytics.v1beta.SpannerReferenceH\x00\x12Y\n\x13\x63loud_sql_reference\x18\n \x01(\x0b\x32:.google.cloud.geminidataanalytics.v1beta.CloudSqlReferenceH\x00\x42\x0c\n\nreferences\"
|
|
13
|
+
descriptor_data = "\n8google/cloud/geminidataanalytics/v1beta/datasource.proto\x12\'google.cloud.geminidataanalytics.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a;google/cloud/geminidataanalytics/v1beta/agent_context.proto\x1a\x39google/cloud/geminidataanalytics/v1beta/credentials.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xa0\x04\n\x14\x44\x61tasourceReferences\x12N\n\x02\x62q\x18\x01 \x01(\x0b\x32@.google.cloud.geminidataanalytics.v1beta.BigQueryTableReferencesH\x00\x12U\n\x06studio\x18\x02 \x01(\x0b\x32\x43.google.cloud.geminidataanalytics.v1beta.StudioDatasourceReferencesH\x00\x12R\n\x06looker\x18\x03 \x01(\x0b\x32@.google.cloud.geminidataanalytics.v1beta.LookerExploreReferencesH\x00\x12L\n\x07\x61lloydb\x18\x08 \x01(\x0b\x32\x39.google.cloud.geminidataanalytics.v1beta.AlloyDbReferenceH\x00\x12V\n\x11spanner_reference\x18\t \x01(\x0b\x32\x39.google.cloud.geminidataanalytics.v1beta.SpannerReferenceH\x00\x12Y\n\x13\x63loud_sql_reference\x18\n \x01(\x0b\x32:.google.cloud.geminidataanalytics.v1beta.CloudSqlReferenceH\x00\x42\x0c\n\nreferences\"\xea\x01\n\x17\x42igQueryTableReferences\x12^\n\x10table_references\x18\x01 \x03(\x0b\x32?.google.cloud.geminidataanalytics.v1beta.BigQueryTableReferenceB\x03\xe0\x41\x01\x12o\n\x19property_graph_references\x18\x02 \x03(\x0b\x32G.google.cloud.geminidataanalytics.v1beta.BigQueryPropertyGraphReferenceB\x03\xe0\x41\x01\"\xa7\x01\n\x16\x42igQueryTableReference\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\ndataset_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08table_id\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x44\n\x06schema\x18\x06 \x01(\x0b\x32/.google.cloud.geminidataanalytics.v1beta.SchemaB\x03\xe0\x41\x01\"\x80\x01\n\x1aStudioDatasourceReferences\x12\x62\n\x11studio_references\x18\x02 \x03(\x0b\x32\x42.google.cloud.geminidataanalytics.v1beta.StudioDatasourceReferenceB\x03\xe0\x41\x01\"7\n\x19StudioDatasourceReference\x12\x1a\n\rdatasource_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\"\xdc\x01\n\x10\x41lloyDbReference\x12\x62\n\x12\x64\x61tabase_reference\x18\x01 \x01(\x0b\x32\x41.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReferenceB\x03\xe0\x41\x02\x12\x64\n\x17\x61gent_context_reference\x18\x03 \x01(\x0b\x32>.google.cloud.geminidataanalytics.v1beta.AgentContextReferenceB\x03\xe0\x41\x01\"u\n\x16\x44\x61tabaseTableReference\x12\x15\n\x08table_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x44\n\x06schema\x18\x02 \x01(\x0b\x32/.google.cloud.geminidataanalytics.v1beta.SchemaB\x03\xe0\x41\x01\"\x96\x02\n\x18\x41lloyDbDatabaseReference\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06region\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\ncluster_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0binstance_id\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x61tabase_id\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\ttable_ids\x18\x06 \x03(\tB\x03\xe0\x41\x01\x12g\n\x19\x64\x61tabase_table_references\x18\x07 \x03(\x0b\x32?.google.cloud.geminidataanalytics.v1beta.DatabaseTableReferenceB\x03\xe0\x41\x01\"\xdc\x01\n\x10SpannerReference\x12\x62\n\x12\x64\x61tabase_reference\x18\x01 \x01(\x0b\x32\x41.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReferenceB\x03\xe0\x41\x02\x12\x64\n\x17\x61gent_context_reference\x18\x02 \x01(\x0b\x32>.google.cloud.geminidataanalytics.v1beta.AgentContextReferenceB\x03\xe0\x41\x01\"\xb5\x03\n\x18SpannerDatabaseReference\x12]\n\x06\x65ngine\x18\x06 \x01(\x0e\x32H.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.EngineB\x03\xe0\x41\x02\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0binstance_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x61tabase_id\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\ttable_ids\x18\x05 \x03(\tB\x03\xe0\x41\x01\x12g\n\x19\x64\x61tabase_table_references\x18\x07 \x03(\x0b\x32?.google.cloud.geminidataanalytics.v1beta.DatabaseTableReferenceB\x03\xe0\x41\x01\x12\x15\n\x08priority\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x0brequest_tag\x18\t \x01(\t\"@\n\x06\x45ngine\x12\x16\n\x12\x45NGINE_UNSPECIFIED\x10\x00\x12\x0e\n\nGOOGLE_SQL\x10\x01\x12\x0e\n\nPOSTGRESQL\x10\x02\"\xde\x01\n\x11\x43loudSqlReference\x12\x63\n\x12\x64\x61tabase_reference\x18\x01 \x01(\x0b\x32\x42.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReferenceB\x03\xe0\x41\x02\x12\x64\n\x17\x61gent_context_reference\x18\x02 \x01(\x0b\x32>.google.cloud.geminidataanalytics.v1beta.AgentContextReferenceB\x03\xe0\x41\x01\"\x9b\x03\n\x19\x43loudSqlDatabaseReference\x12^\n\x06\x65ngine\x18\x01 \x01(\x0e\x32I.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.EngineB\x03\xe0\x41\x02\x12\x17\n\nproject_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06region\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0binstance_id\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x61tabase_id\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\ttable_ids\x18\x07 \x03(\tB\x03\xe0\x41\x01\x12g\n\x19\x64\x61tabase_table_references\x18\x08 \x03(\x0b\x32?.google.cloud.geminidataanalytics.v1beta.DatabaseTableReferenceB\x03\xe0\x41\x01\";\n\x06\x45ngine\x12\x16\n\x12\x45NGINE_UNSPECIFIED\x10\x00\x12\x0e\n\nPOSTGRESQL\x10\x01\x12\t\n\x05MYSQL\x10\x02\"\xcd\x01\n\x17LookerExploreReferences\x12`\n\x12\x65xplore_references\x18\x01 \x03(\x0b\x32?.google.cloud.geminidataanalytics.v1beta.LookerExploreReferenceB\x03\xe0\x41\x02\x12P\n\x0b\x63redentials\x18\x02 \x01(\x0b\x32\x34.google.cloud.geminidataanalytics.v1beta.CredentialsB\x05\x18\x01\xe0\x41\x01\"\xa6\x02\n\x16LookerExploreReference\x12\x1d\n\x13looker_instance_uri\x18\t \x01(\tH\x00\x12j\n\x1cprivate_looker_instance_info\x18\n \x01(\x0b\x32\x42.google.cloud.geminidataanalytics.v1beta.PrivateLookerInstanceInfoH\x00\x12\x19\n\x0clookml_model\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x07\x65xplore\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12\x44\n\x06schema\x18\x08 \x01(\x0b\x32/.google.cloud.geminidataanalytics.v1beta.SchemaB\x03\xe0\x41\x01\x42\n\n\x08instance\"r\n\x1e\x42igQueryPropertyGraphReference\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\ndataset_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1e\n\x11property_graph_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"W\n\x19PrivateLookerInstanceInfo\x12\x1a\n\x12looker_instance_id\x18\x01 \x01(\t\x12\x1e\n\x16service_directory_name\x18\x02 \x01(\t\"\x80\x06\n\nDatasource\x12\x63\n\x18\x62igquery_table_reference\x18\x01 \x01(\x0b\x32?.google.cloud.geminidataanalytics.v1beta.BigQueryTableReferenceH\x00\x12\x1e\n\x14studio_datasource_id\x18\x02 \x01(\tH\x00\x12\x63\n\x18looker_explore_reference\x18\x04 \x01(\x0b\x32?.google.cloud.geminidataanalytics.v1beta.LookerExploreReferenceH\x00\x12W\n\x12\x61lloy_db_reference\x18\x0c \x01(\x0b\x32\x39.google.cloud.geminidataanalytics.v1beta.AlloyDbReferenceH\x00\x12V\n\x11spanner_reference\x18\r \x01(\x0b\x32\x39.google.cloud.geminidataanalytics.v1beta.SpannerReferenceH\x00\x12Y\n\x13\x63loud_sql_reference\x18\x0e \x01(\x0b\x32:.google.cloud.geminidataanalytics.v1beta.CloudSqlReferenceH\x00\x12t\n!bigquery_property_graph_reference\x18\x10 \x01(\x0b\x32G.google.cloud.geminidataanalytics.v1beta.BigQueryPropertyGraphReferenceH\x00\x12\x44\n\x06schema\x18\x07 \x01(\x0b\x32/.google.cloud.geminidataanalytics.v1beta.SchemaB\x03\xe0\x41\x01\x12\x33\n\rstruct_schema\x18\n \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x42\x0b\n\treference\"\xf7\x01\n\x06Schema\x12\x43\n\x06\x66ields\x18\x01 \x03(\x0b\x32..google.cloud.geminidataanalytics.v1beta.FieldB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08synonyms\x18\x03 \x03(\tB\x03\xe0\x41\x01\x12\x11\n\x04tags\x18\x04 \x03(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x64isplay_name\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12I\n\x07\x66ilters\x18\x06 \x03(\x0b\x32\x33.google.cloud.geminidataanalytics.v1beta.DataFilterB\x03\xe0\x41\x01\"\x99\x02\n\x05\x46ield\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04type\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04mode\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08synonyms\x18\x06 \x03(\tB\x03\xe0\x41\x01\x12\x11\n\x04tags\x18\x07 \x03(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x64isplay_name\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12\x46\n\tsubfields\x18\t \x03(\x0b\x32..google.cloud.geminidataanalytics.v1beta.FieldB\x03\xe0\x41\x01\x12\x15\n\x08\x63\x61tegory\x18\n \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0cvalue_format\x18\x0b \x01(\tB\x03\xe0\x41\x01\"\x80\x01\n\nDataFilter\x12\x12\n\x05\x66ield\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05value\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12J\n\x04type\x18\x03 \x01(\x0e\x32\x37.google.cloud.geminidataanalytics.v1beta.DataFilterTypeB\x03\xe0\x41\x01*E\n\x0e\x44\x61taFilterType\x12 \n\x1c\x44\x41TA_FILTER_TYPE_UNSPECIFIED\x10\x00\x12\x11\n\rALWAYS_FILTER\x10\x01\x42\xa0\x02\n+com.google.cloud.geminidataanalytics.v1betaB\x0f\x44\x61tasourceProtoP\x01Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanalyticspb\xaa\x02\'Google.Cloud.GeminiDataAnalytics.V1Beta\xca\x02\'Google\\Cloud\\GeminiDataAnalytics\\V1beta\xea\x02*Google::Cloud::GeminiDataAnalytics::V1betab\x06proto3"
|
|
14
14
|
|
|
15
15
|
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
16
16
|
pool.add_serialized_file(descriptor_data)
|
|
@@ -25,6 +25,7 @@ module Google
|
|
|
25
25
|
StudioDatasourceReferences = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.StudioDatasourceReferences").msgclass
|
|
26
26
|
StudioDatasourceReference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.StudioDatasourceReference").msgclass
|
|
27
27
|
AlloyDbReference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.AlloyDbReference").msgclass
|
|
28
|
+
DatabaseTableReference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.DatabaseTableReference").msgclass
|
|
28
29
|
AlloyDbDatabaseReference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference").msgclass
|
|
29
30
|
SpannerReference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.SpannerReference").msgclass
|
|
30
31
|
SpannerDatabaseReference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference").msgclass
|
|
@@ -34,6 +35,7 @@ module Google
|
|
|
34
35
|
CloudSqlDatabaseReference::Engine = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Engine").enummodule
|
|
35
36
|
LookerExploreReferences = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.LookerExploreReferences").msgclass
|
|
36
37
|
LookerExploreReference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.LookerExploreReference").msgclass
|
|
38
|
+
BigQueryPropertyGraphReference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.BigQueryPropertyGraphReference").msgclass
|
|
37
39
|
PrivateLookerInstanceInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.PrivateLookerInstanceInfo").msgclass
|
|
38
40
|
Datasource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.Datasource").msgclass
|
|
39
41
|
Schema = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.Schema").msgclass
|
|
@@ -40,19 +40,24 @@ module Google
|
|
|
40
40
|
# @return [::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::ExampleQuery>]
|
|
41
41
|
# Optional. A list of example queries, providing examples of relevant and
|
|
42
42
|
# commonly used SQL queries and their corresponding natural language queries
|
|
43
|
-
# optionally present. Currently only used for BigQuery data sources
|
|
43
|
+
# optionally present. Currently only used for BigQuery data sources and
|
|
44
|
+
# databases (alloydb, cloudsql, spanner) data sources.
|
|
44
45
|
# @!attribute [rw] looker_golden_queries
|
|
45
46
|
# @return [::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::LookerGoldenQuery>]
|
|
46
47
|
# Optional. A list of golden queries, providing examples of relevant and
|
|
47
48
|
# commonly used Looker queries and their corresponding natural language
|
|
48
|
-
# queries optionally present.
|
|
49
|
+
# queries optionally present. Only supported for Looker data sources.
|
|
49
50
|
# @!attribute [rw] glossary_terms
|
|
50
51
|
# @return [::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::GlossaryTerm>]
|
|
51
52
|
# Optional. Term definitions (currently, only user authored)
|
|
53
|
+
# Not supported for databases (alloydb, cloudsql, spanner) data sources.
|
|
52
54
|
# @!attribute [rw] schema_relationships
|
|
53
55
|
# @return [::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::Context::SchemaRelationship>]
|
|
54
56
|
# Optional. Relationships between table schema, including referencing and
|
|
55
57
|
# referenced columns.
|
|
58
|
+
# @!attribute [rw] user_functions
|
|
59
|
+
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::UserFunctions]
|
|
60
|
+
# Optional. A collection of user functions to be included in context.
|
|
56
61
|
class Context
|
|
57
62
|
include ::Google::Protobuf::MessageExts
|
|
58
63
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -74,10 +79,10 @@ module Google
|
|
|
74
79
|
# index in the `left_schema_paths` list.
|
|
75
80
|
# @!attribute [rw] sources
|
|
76
81
|
# @return [::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::Context::SchemaRelationship::Source>]
|
|
77
|
-
# Sources which generated the schema relation edge.
|
|
82
|
+
# Optional. Sources which generated the schema relation edge.
|
|
78
83
|
# @!attribute [rw] confidence_score
|
|
79
84
|
# @return [::Float]
|
|
80
|
-
# A confidence score for the suggested relationship.
|
|
85
|
+
# Optional. A confidence score for the suggested relationship.
|
|
81
86
|
# Manually added edges have the highest confidence score.
|
|
82
87
|
class SchemaRelationship
|
|
83
88
|
include ::Google::Protobuf::MessageExts
|
|
@@ -114,6 +119,43 @@ module Google
|
|
|
114
119
|
end
|
|
115
120
|
end
|
|
116
121
|
|
|
122
|
+
# A collection of user functions to be included in context.
|
|
123
|
+
# @!attribute [rw] bq_routines
|
|
124
|
+
# @return [::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::BigQueryRoutine>]
|
|
125
|
+
# A list of BigQuery routines to include in the context.
|
|
126
|
+
class UserFunctions
|
|
127
|
+
include ::Google::Protobuf::MessageExts
|
|
128
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# A reference to a BigQuery routine.
|
|
132
|
+
# @!attribute [rw] routine_reference
|
|
133
|
+
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::BigQueryRoutineReference]
|
|
134
|
+
# The reference to the BigQuery routine.
|
|
135
|
+
# @!attribute [rw] description
|
|
136
|
+
# @return [::String]
|
|
137
|
+
# User override or addition to description, to tell the agent when to use the
|
|
138
|
+
# UDF.
|
|
139
|
+
class BigQueryRoutine
|
|
140
|
+
include ::Google::Protobuf::MessageExts
|
|
141
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# A reference to a BigQuery routine.
|
|
145
|
+
# @!attribute [rw] project_id
|
|
146
|
+
# @return [::String]
|
|
147
|
+
# The project ID of the routine.
|
|
148
|
+
# @!attribute [rw] dataset_id
|
|
149
|
+
# @return [::String]
|
|
150
|
+
# The dataset ID of the routine.
|
|
151
|
+
# @!attribute [rw] routine_id
|
|
152
|
+
# @return [::String]
|
|
153
|
+
# The routine ID of the routine.
|
|
154
|
+
class BigQueryRoutineReference
|
|
155
|
+
include ::Google::Protobuf::MessageExts
|
|
156
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
157
|
+
end
|
|
158
|
+
|
|
117
159
|
# Example of relevant and commonly used SQL query and its corresponding natural
|
|
118
160
|
# language queries optionally present. Currently only used for BigQuery data
|
|
119
161
|
# sources.
|
|
@@ -126,11 +168,66 @@ module Google
|
|
|
126
168
|
# @return [::String]
|
|
127
169
|
# Optional. A natural language question that a user might ask.
|
|
128
170
|
# For example: "How many orders were placed last month?"
|
|
171
|
+
# @!attribute [rw] parameters
|
|
172
|
+
# @return [::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::QueryParameter>]
|
|
173
|
+
# Optional. The list of query parameters.
|
|
174
|
+
# Example: The parameterized SQL query
|
|
175
|
+
# "SELECT * FROM my_table WHERE id = @id" can be matched with any value of
|
|
176
|
+
# id.
|
|
129
177
|
class ExampleQuery
|
|
130
178
|
include ::Google::Protobuf::MessageExts
|
|
131
179
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
132
180
|
end
|
|
133
181
|
|
|
182
|
+
# A query parameter message represents a parameter that can be used to
|
|
183
|
+
# parameterize a SQL query.
|
|
184
|
+
# @!attribute [rw] name
|
|
185
|
+
# @return [::String]
|
|
186
|
+
# Required. The name of the parameter reference in the SQL query.
|
|
187
|
+
# @!attribute [rw] description
|
|
188
|
+
# @return [::String]
|
|
189
|
+
# Optional. The description of the parameter that can be used by LLM to
|
|
190
|
+
# extract the parameter value from the user question.
|
|
191
|
+
# @!attribute [rw] data_type
|
|
192
|
+
# @return [::String]
|
|
193
|
+
# Required. The data type of the parameter, e.g. "STRING", "INT64", "DATE",
|
|
194
|
+
# etc. For valid values, see the [BigQuery
|
|
195
|
+
# documentation](https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types).
|
|
196
|
+
# This will be used to populate
|
|
197
|
+
# google.cloud.bigquery.v2.QueryParameterType.type.
|
|
198
|
+
class QueryParameter
|
|
199
|
+
include ::Google::Protobuf::MessageExts
|
|
200
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# A matched query message represents the agent having matched one of the
|
|
204
|
+
# example queries supplied in context as being applicable to the current
|
|
205
|
+
# question. It will also contain additional info during the matching process.
|
|
206
|
+
# @!attribute [rw] example_query
|
|
207
|
+
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::ExampleQuery]
|
|
208
|
+
# The query that was matched based on an example query.
|
|
209
|
+
# @!attribute [rw] query_parameter_values
|
|
210
|
+
# @return [::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::QueryParameterValues>]
|
|
211
|
+
# The extracted values for the query parameters.
|
|
212
|
+
class MatchedQuery
|
|
213
|
+
include ::Google::Protobuf::MessageExts
|
|
214
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
# A query parameter values message represents the values for the query
|
|
218
|
+
# parameters that were extracted from the user question by LLM, based on the
|
|
219
|
+
# example query.
|
|
220
|
+
# @!attribute [rw] name
|
|
221
|
+
# @return [::String]
|
|
222
|
+
# Required. The name of the parameter.
|
|
223
|
+
# @!attribute [rw] value
|
|
224
|
+
# @return [::String]
|
|
225
|
+
# Required. The value of the parameter.
|
|
226
|
+
class QueryParameterValues
|
|
227
|
+
include ::Google::Protobuf::MessageExts
|
|
228
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
229
|
+
end
|
|
230
|
+
|
|
134
231
|
# A golden query for Looker, including natural language questions and a
|
|
135
232
|
# corresponding Looker Query. Analogous to ExampleQuery.
|
|
136
233
|
# @!attribute [rw] natural_language_questions
|
|
@@ -166,6 +263,16 @@ module Google
|
|
|
166
263
|
# @!attribute [rw] limit
|
|
167
264
|
# @return [::String]
|
|
168
265
|
# Optional. Limit in the query.
|
|
266
|
+
# @!attribute [rw] query_id
|
|
267
|
+
# @return [::String]
|
|
268
|
+
# Optional. The primary identifier for the query resource in Looker, used for
|
|
269
|
+
# API operations. Maps to `id` (or `slug`) in the Looker API `Query`
|
|
270
|
+
# resource.
|
|
271
|
+
# @!attribute [rw] client_id
|
|
272
|
+
# @return [::String]
|
|
273
|
+
# Optional. The short alphanumeric identifier for the query, used for share
|
|
274
|
+
# links and Explore URLs (e.g., in the `qid` parameter). Maps to `client_id`
|
|
275
|
+
# in the Looker API `Query` resource.
|
|
169
276
|
class LookerQuery
|
|
170
277
|
include ::Google::Protobuf::MessageExts
|
|
171
278
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -176,7 +283,9 @@ module Google
|
|
|
176
283
|
# Required. The field to filter on.
|
|
177
284
|
# @!attribute [rw] value
|
|
178
285
|
# @return [::String]
|
|
179
|
-
#
|
|
286
|
+
# Optional. The value for the field to filter on.
|
|
287
|
+
# Optional so we can preserve the default value as an empty
|
|
288
|
+
# string, important to get a valid and working Looker Explore url.
|
|
180
289
|
class Filter
|
|
181
290
|
include ::Google::Protobuf::MessageExts
|
|
182
291
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -212,9 +321,23 @@ module Google
|
|
|
212
321
|
# @!attribute [rw] datasource
|
|
213
322
|
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::DatasourceOptions]
|
|
214
323
|
# Optional. Options for datasources.
|
|
324
|
+
# @!attribute [rw] model
|
|
325
|
+
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::ConversationOptions::Model]
|
|
326
|
+
# Optional. The model to use for the agent loop.
|
|
215
327
|
class ConversationOptions
|
|
216
328
|
include ::Google::Protobuf::MessageExts
|
|
217
329
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
330
|
+
|
|
331
|
+
# Allowed models for the agent/conversation.
|
|
332
|
+
module Model
|
|
333
|
+
# No model specified. The model may be set on the chat request, or the
|
|
334
|
+
# default model will be used.
|
|
335
|
+
MODEL_UNSPECIFIED = 0
|
|
336
|
+
|
|
337
|
+
# Use the most up-to-date non-preview model. This may constrain certain
|
|
338
|
+
# request level settings.
|
|
339
|
+
LATEST_GA_MODEL = 1
|
|
340
|
+
end
|
|
218
341
|
end
|
|
219
342
|
|
|
220
343
|
# Options for datasources configurations.
|
|
@@ -285,6 +408,80 @@ module Google
|
|
|
285
408
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
286
409
|
end
|
|
287
410
|
end
|
|
411
|
+
|
|
412
|
+
# Source attributions for content.
|
|
413
|
+
# @!attribute [r] sources
|
|
414
|
+
# @return [::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::CitationSource>]
|
|
415
|
+
# Output only. List of the sources being cited.
|
|
416
|
+
# @!attribute [r] anchors
|
|
417
|
+
# @return [::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::CitationAnchor>]
|
|
418
|
+
# Output only. List of the anchors of the citations.
|
|
419
|
+
class Citation
|
|
420
|
+
include ::Google::Protobuf::MessageExts
|
|
421
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
422
|
+
end
|
|
423
|
+
|
|
424
|
+
# The source of the citation.
|
|
425
|
+
# @!attribute [r] uri
|
|
426
|
+
# @return [::String]
|
|
427
|
+
# Output only. The uri used as the source, such as a web grounding URL.
|
|
428
|
+
#
|
|
429
|
+
# Note: The following fields are mutually exclusive: `uri`, `example_query`, `glossary_term`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
430
|
+
# @!attribute [r] example_query
|
|
431
|
+
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::ExampleQuery]
|
|
432
|
+
# Output only. The example query used as the source.
|
|
433
|
+
#
|
|
434
|
+
# Note: The following fields are mutually exclusive: `example_query`, `uri`, `glossary_term`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
435
|
+
# @!attribute [r] glossary_term
|
|
436
|
+
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::GlossaryTerm]
|
|
437
|
+
# Output only. The glossary term used as the source.
|
|
438
|
+
#
|
|
439
|
+
# Note: The following fields are mutually exclusive: `glossary_term`, `uri`, `example_query`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
440
|
+
# @!attribute [r] id
|
|
441
|
+
# @return [::String]
|
|
442
|
+
# Output only. Unique identifier of the source. This ID is service-generated
|
|
443
|
+
# and is unique within the scope of a single `Citation` message.
|
|
444
|
+
# @!attribute [r] title
|
|
445
|
+
# @return [::String]
|
|
446
|
+
# Output only. The title of the source.
|
|
447
|
+
class CitationSource
|
|
448
|
+
include ::Google::Protobuf::MessageExts
|
|
449
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
450
|
+
end
|
|
451
|
+
|
|
452
|
+
# The anchor of the citation.
|
|
453
|
+
# @!attribute [r] text_message_anchor
|
|
454
|
+
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::CitationAnchor::TextMessageCitationAnchor]
|
|
455
|
+
# Output only. Only set if the citation is for a TextMessage.
|
|
456
|
+
class CitationAnchor
|
|
457
|
+
include ::Google::Protobuf::MessageExts
|
|
458
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
459
|
+
|
|
460
|
+
# Citation anchor within a TextMessage.
|
|
461
|
+
# @!attribute [r] part_index
|
|
462
|
+
# @return [::Integer]
|
|
463
|
+
# Output only. The 0-based index of the part within the TextMessage.parts
|
|
464
|
+
# field.
|
|
465
|
+
# @!attribute [r] start_offset_bytes
|
|
466
|
+
# @return [::Integer]
|
|
467
|
+
# Output only. The offset, measured in UTF-8 bytes, within the part string
|
|
468
|
+
# where the citation begins (inclusive). Example: For the text "Hello,
|
|
469
|
+
# world" where "world" is cited, the start offset bytes (inclusive) is 7
|
|
470
|
+
# and the end offset bytes (exclusive) is 12.
|
|
471
|
+
# @!attribute [r] end_offset_bytes
|
|
472
|
+
# @return [::Integer]
|
|
473
|
+
# Output only. The offset, measured in UTF-8 bytes, within the part string
|
|
474
|
+
# where the citation ends (exclusive). Example: For the text "Hello, world"
|
|
475
|
+
# where "world" is cited, the start offset bytes (inclusive) is 7 and the
|
|
476
|
+
# end offset bytes (exclusive) is 12.
|
|
477
|
+
# @!attribute [r] source_ids
|
|
478
|
+
# @return [::Array<::String>]
|
|
479
|
+
# Output only. The ids of the sources that are cited.
|
|
480
|
+
class TextMessageCitationAnchor
|
|
481
|
+
include ::Google::Protobuf::MessageExts
|
|
482
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
483
|
+
end
|
|
484
|
+
end
|
|
288
485
|
end
|
|
289
486
|
end
|
|
290
487
|
end
|
|
@@ -53,6 +53,17 @@ module Google
|
|
|
53
53
|
# Optional. Open-ended and user-defined labels that can be set by the client
|
|
54
54
|
# to tag a conversation (e.g. to filter conversations for specific
|
|
55
55
|
# surfaces/products).
|
|
56
|
+
# @!attribute [rw] kms_key
|
|
57
|
+
# @return [::String]
|
|
58
|
+
# Optional. Customer managed encryption key (CMEK) to use for encrypting the
|
|
59
|
+
# Conversation resources. Encryption will happen at Titan layer, we will pass
|
|
60
|
+
# the KMS key to Titan.
|
|
61
|
+
#
|
|
62
|
+
# Format:
|
|
63
|
+
# projects/\\{project_id}/locations/\\{location}/keyRings/\\{key_ring_name}/cryptoKeys/\\{key_name}.
|
|
64
|
+
# @!attribute [rw] memory_paused
|
|
65
|
+
# @return [::Boolean]
|
|
66
|
+
# Optional. Whether memory is paused for this conversation.
|
|
56
67
|
class Conversation
|
|
57
68
|
include ::Google::Protobuf::MessageExts
|
|
58
69
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -111,8 +122,9 @@ module Google
|
|
|
111
122
|
# @!attribute [rw] page_size
|
|
112
123
|
# @return [::Integer]
|
|
113
124
|
# Optional. Requested page size. Server may return fewer items than
|
|
114
|
-
# requested. The max page size is 100
|
|
115
|
-
# to 100
|
|
125
|
+
# requested. The max page size is `100`. All larger page sizes will be
|
|
126
|
+
# coerced to `100`. If unspecified, server will pick `50` as an appropriate
|
|
127
|
+
# default.
|
|
116
128
|
# @!attribute [rw] page_token
|
|
117
129
|
# @return [::String]
|
|
118
130
|
# Optional. A token identifying a page of results the server should return.
|
|
@@ -71,6 +71,12 @@ module Google
|
|
|
71
71
|
# Output only. Timestamp in UTC of when this data agent is considered
|
|
72
72
|
# expired. This is *always* provided on output, regardless of what was sent
|
|
73
73
|
# on input.
|
|
74
|
+
# @!attribute [rw] kms_key
|
|
75
|
+
# @return [::String]
|
|
76
|
+
# Optional. Customer managed encryption key (CMEK) to use for encrypting the
|
|
77
|
+
# DataAgent resources. Cloud KMS CryptoKeys must reside in the same location
|
|
78
|
+
# as the DataAgent. The expected format is
|
|
79
|
+
# `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
|
|
74
80
|
class DataAgent
|
|
75
81
|
include ::Google::Protobuf::MessageExts
|
|
76
82
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|