google-cloud-gemini_data_analytics-v1beta 0.3.0 → 0.4.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/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/client.rb +21 -4
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/operations.rb +20 -3
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/rest/client.rb +1 -1
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_chat_service/client.rb +127 -9
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_chat_service/rest/client.rb +100 -6
- data/lib/google/cloud/gemini_data_analytics/v1beta/data_chat_service/rest/service_stub.rb +61 -0
- data/lib/google/cloud/gemini_data_analytics/v1beta/version.rb +1 -1
- data/lib/google/cloud/geminidataanalytics/v1beta/context_pb.rb +8 -1
- data/lib/google/cloud/geminidataanalytics/v1beta/conversation_pb.rb +2 -1
- data/lib/google/cloud/geminidataanalytics/v1beta/data_chat_service_pb.rb +5 -1
- data/lib/google/cloud/geminidataanalytics/v1beta/data_chat_service_services_pb.rb +2 -0
- data/lib/google/cloud/geminidataanalytics/v1beta/datasource_pb.rb +3 -1
- data/proto_docs/google/cloud/geminidataanalytics/v1beta/context.rb +100 -2
- data/proto_docs/google/cloud/geminidataanalytics/v1beta/conversation.rb +13 -2
- data/proto_docs/google/cloud/geminidataanalytics/v1beta/data_agent.rb +1 -1
- data/proto_docs/google/cloud/geminidataanalytics/v1beta/data_chat_service.rb +94 -10
- data/proto_docs/google/cloud/geminidataanalytics/v1beta/datasource.rb +17 -5
- data/proto_docs/google/protobuf/wrappers.rb +121 -0
- metadata +2 -1
|
@@ -12,11 +12,12 @@ require 'google/cloud/geminidataanalytics/v1beta/context_pb'
|
|
|
12
12
|
require 'google/cloud/geminidataanalytics/v1beta/conversation_pb'
|
|
13
13
|
require 'google/cloud/geminidataanalytics/v1beta/credentials_pb'
|
|
14
14
|
require 'google/cloud/geminidataanalytics/v1beta/datasource_pb'
|
|
15
|
+
require 'google/protobuf/empty_pb'
|
|
15
16
|
require 'google/protobuf/struct_pb'
|
|
16
17
|
require 'google/protobuf/timestamp_pb'
|
|
17
18
|
|
|
18
19
|
|
|
19
|
-
descriptor_data = "\n?google/cloud/geminidataanalytics/v1beta/data_chat_service.proto\x12\'google.cloud.geminidataanalytics.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x35google/cloud/geminidataanalytics/v1beta/context.proto\x1a:google/cloud/geminidataanalytics/v1beta/conversation.proto\x1a\x39google/cloud/geminidataanalytics/v1beta/credentials.proto\x1a\x38google/cloud/geminidataanalytics/v1beta/datasource.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa4\x01\n\x13ListMessagesRequest\x12G\n\x06parent\x18\x01 \x01(\tB7\xe0\x41\x02\xfa\x41\x31\n/geminidataanalytics.googleapis.com/Conversation\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"z\n\x14ListMessagesResponse\x12I\n\x08messages\x18\x01 \x03(\x0b\x32\x37.google.cloud.geminidataanalytics.v1beta.StorageMessage\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"g\n\x0eStorageMessage\x12\x12\n\nmessage_id\x18\x01 \x01(\t\x12\x41\n\x07message\x18\x02 \x01(\x0b\x32\x30.google.cloud.geminidataanalytics.v1beta.Message\"\xdd\x03\n\x0b\x43hatRequest\x12O\n\x0einline_context\x18\x65 \x01(\x0b\x32\x30.google.cloud.geminidataanalytics.v1beta.ContextB\x03\xe0\x41\x01H\x00\x12\x65\n\x16\x63onversation_reference\x18g \x01(\x0b\x32>.google.cloud.geminidataanalytics.v1beta.ConversationReferenceB\x03\xe0\x41\x01H\x00\x12\\\n\x12\x64\x61ta_agent_context\x18h \x01(\x0b\x32\x39.google.cloud.geminidataanalytics.v1beta.DataAgentContextB\x03\xe0\x41\x01H\x00\x12\x46\n\x07project\x18\x01 \x01(\tB5\x18\x01\xe0\x41\x01\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x13\n\x06parent\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12G\n\x08messages\x18\x02 \x03(\x0b\x32\x30.google.cloud.geminidataanalytics.v1beta.MessageB\x03\xe0\x41\x02\x42\x12\n\x10\x63ontext_provider\"\xe3\x02\n\x10\x44\x61taAgentContext\x12H\n\ndata_agent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,geminidataanalytics.googleapis.com/DataAgent\x12N\n\x0b\x63redentials\x18\x02 \x01(\x0b\x32\x34.google.cloud.geminidataanalytics.v1beta.CredentialsB\x03\xe0\x41\x01\x12\x66\n\x0f\x63ontext_version\x18\x03 \x01(\x0e\x32H.google.cloud.geminidataanalytics.v1beta.DataAgentContext.ContextVersionB\x03\xe0\x41\x01\"M\n\x0e\x43ontextVersion\x12\x1f\n\x1b\x43ONTEXT_VERSION_UNSPECIFIED\x10\x00\x12\x0b\n\x07STAGING\x10\x01\x12\r\n\tPUBLISHED\x10\x02\"\xc2\x01\n\x15\x43onversationReference\x12M\n\x0c\x63onversation\x18\x01 \x01(\tB7\xe0\x41\x02\xfa\x41\x31\n/geminidataanalytics.googleapis.com/Conversation\x12Z\n\x12\x64\x61ta_agent_context\x18\x03 \x01(\x0b\x32\x39.google.cloud.geminidataanalytics.v1beta.DataAgentContextB\x03\xe0\x41\x02\"\xfe\x01\n\x07Message\x12L\n\x0cuser_message\x18\x02 \x01(\x0b\x32\x34.google.cloud.geminidataanalytics.v1beta.UserMessageH\x00\x12P\n\x0esystem_message\x18\x03 \x01(\x0b\x32\x36.google.cloud.geminidataanalytics.v1beta.SystemMessageH\x00\x12\x32\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x17\n\nmessage_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\x42\x06\n\x04kind\"%\n\x0bUserMessage\x12\x0e\n\x04text\x18\x01 \x01(\tH\x00\x42\x06\n\x04kind\"\xef\x03\n\rSystemMessage\x12\x44\n\x04text\x18\x01 \x01(\x0b\x32\x34.google.cloud.geminidataanalytics.v1beta.TextMessageH\x00\x12H\n\x06schema\x18\x02 \x01(\x0b\x32\x36.google.cloud.geminidataanalytics.v1beta.SchemaMessageH\x00\x12\x44\n\x04\x64\x61ta\x18\x03 \x01(\x0b\x32\x34.google.cloud.geminidataanalytics.v1beta.DataMessageH\x00\x12L\n\x08\x61nalysis\x18\x04 \x01(\x0b\x32\x38.google.cloud.geminidataanalytics.v1beta.AnalysisMessageH\x00\x12\x46\n\x05\x63hart\x18\x05 \x01(\x0b\x32\x35.google.cloud.geminidataanalytics.v1beta.ChartMessageH\x00\x12\x46\n\x05\x65rror\x18\x06 \x01(\x0b\x32\x35.google.cloud.geminidataanalytics.v1beta.ErrorMessageH\x00\x12\x15\n\x08group_id\x18\x0c \x01(\x05H\x01\x88\x01\x01\x42\x06\n\x04kindB\x0b\n\t_group_id\"!\n\x0bTextMessage\x12\x12\n\x05parts\x18\x01 \x03(\tB\x03\xe0\x41\x01\"\xa7\x01\n\rSchemaMessage\x12\x45\n\x05query\x18\x01 \x01(\x0b\x32\x34.google.cloud.geminidataanalytics.v1beta.SchemaQueryH\x00\x12G\n\x06result\x18\x02 \x01(\x0b\x32\x35.google.cloud.geminidataanalytics.v1beta.SchemaResultH\x00\x42\x06\n\x04kind\"$\n\x0bSchemaQuery\x12\x15\n\x08question\x18\x01 \x01(\tB\x03\xe0\x41\x01\"]\n\x0cSchemaResult\x12M\n\x0b\x64\x61tasources\x18\x01 \x03(\x0b\x32\x33.google.cloud.geminidataanalytics.v1beta.DatasourceB\x03\xe0\x41\x01\"\xe1\x02\n\x0b\x44\x61taMessage\x12\x43\n\x05query\x18\x01 \x01(\x0b\x32\x32.google.cloud.geminidataanalytics.v1beta.DataQueryH\x00\x12\x17\n\rgenerated_sql\x18\x02 \x01(\tH\x00\x12\x45\n\x06result\x18\x03 \x01(\x0b\x32\x33.google.cloud.geminidataanalytics.v1beta.DataResultH\x00\x12V\n\x16generated_looker_query\x18\x04 \x01(\x0b\x32\x34.google.cloud.geminidataanalytics.v1beta.LookerQueryH\x00\x12M\n\rbig_query_job\x18\x05 \x01(\x0b\x32\x34.google.cloud.geminidataanalytics.v1beta.BigQueryJobH\x00\x42\x06\n\x04kind\"\x88\x02\n\x0bLookerQuery\x12\x12\n\x05model\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x07\x65xplore\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06\x66ields\x18\x03 \x03(\tB\x03\xe0\x41\x01\x12Q\n\x07\x66ilters\x18\x04 \x03(\x0b\x32;.google.cloud.geminidataanalytics.v1beta.LookerQuery.FilterB\x03\xe0\x41\x01\x12\x12\n\x05sorts\x18\x05 \x03(\tB\x03\xe0\x41\x01\x12\x17\n\x05limit\x18\x06 \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\x1a\x30\n\x06\x46ilter\x12\x12\n\x05\x66ield\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05value\x18\x02 \x01(\tB\x03\xe0\x41\x02\x42\x08\n\x06_limit\"\x84\x01\n\tDataQuery\x12\x15\n\x08question\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12M\n\x0b\x64\x61tasources\x18\x02 \x03(\x0b\x32\x33.google.cloud.geminidataanalytics.v1beta.DatasourceB\x03\xe0\x41\x01\"\x91\x01\n\nDataResult\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x44\n\x06schema\x18\x05 \x01(\x0b\x32/.google.cloud.geminidataanalytics.v1beta.SchemaB\x03\xe0\x41\x01\x12*\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\"\xf9\x01\n\x0b\x42igQueryJob\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06job_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08location\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12_\n\x11\x64\x65stination_table\x18\x03 \x01(\x0b\x32?.google.cloud.geminidataanalytics.v1beta.BigQueryTableReferenceB\x03\xe0\x41\x01\x12\x44\n\x06schema\x18\x07 \x01(\x0b\x32/.google.cloud.geminidataanalytics.v1beta.SchemaB\x03\xe0\x41\x01\"\xb4\x01\n\x0f\x41nalysisMessage\x12G\n\x05query\x18\x01 \x01(\x0b\x32\x36.google.cloud.geminidataanalytics.v1beta.AnalysisQueryH\x00\x12P\n\x0eprogress_event\x18\x02 \x01(\x0b\x32\x36.google.cloud.geminidataanalytics.v1beta.AnalysisEventH\x00\x42\x06\n\x04kind\"F\n\rAnalysisQuery\x12\x15\n\x08question\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1e\n\x11\x64\x61ta_result_names\x18\x02 \x03(\tB\x03\xe0\x41\x01\"\xaa\x02\n\rAnalysisEvent\x12\x1b\n\x11planner_reasoning\x18\x02 \x01(\tH\x00\x12\x1b\n\x11\x63oder_instruction\x18\x03 \x01(\tH\x00\x12\x0e\n\x04\x63ode\x18\x04 \x01(\tH\x00\x12\x1a\n\x10\x65xecution_output\x18\x05 \x01(\tH\x00\x12\x19\n\x0f\x65xecution_error\x18\x06 \x01(\tH\x00\x12 \n\x16result_vega_chart_json\x18\x07 \x01(\tH\x00\x12!\n\x17result_natural_language\x18\x08 \x01(\tH\x00\x12\x19\n\x0fresult_csv_data\x18\t \x01(\tH\x00\x12\x1f\n\x15result_reference_data\x18\n \x01(\tH\x00\x12\x0f\n\x05\x65rror\x18\x0b \x01(\tH\x00\x42\x06\n\x04kind\"\xa4\x01\n\x0c\x43hartMessage\x12\x44\n\x05query\x18\x01 \x01(\x0b\x32\x33.google.cloud.geminidataanalytics.v1beta.ChartQueryH\x00\x12\x46\n\x06result\x18\x02 \x01(\x0b\x32\x34.google.cloud.geminidataanalytics.v1beta.ChartResultH\x00\x42\x06\n\x04kind\"F\n\nChartQuery\x12\x19\n\x0cinstructions\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10\x64\x61ta_result_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\x83\x01\n\x0b\x43hartResult\x12\x31\n\x0bvega_config\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x12\x41\n\x05image\x18\x03 \x01(\x0b\x32-.google.cloud.geminidataanalytics.v1beta.BlobB\x03\xe0\x41\x01\"!\n\x0c\x45rrorMessage\x12\x11\n\x04text\x18\x01 \x01(\tB\x03\xe0\x41\x03\"1\n\x04\x42lob\x12\x16\n\tmime_type\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x02\x32\xb2\t\n\x0f\x44\x61taChatService\x12\xa9\x01\n\x04\x43hat\x12\x34.google.cloud.geminidataanalytics.v1beta.ChatRequest\x1a\x30.google.cloud.geminidataanalytics.v1beta.Message\"7\x82\xd3\xe4\x93\x02\x31\",/v1beta/{parent=projects/*/locations/*}:chat:\x01*0\x01\x12\x82\x02\n\x12\x43reateConversation\x12\x42.google.cloud.geminidataanalytics.v1beta.CreateConversationRequest\x1a\x35.google.cloud.geminidataanalytics.v1beta.Conversation\"q\xda\x41#parent,conversation,conversation_id\x82\xd3\xe4\x93\x02\x45\"5/v1beta/{parent=projects/*/locations/*}/conversations:\x0c\x63onversation\x12\xcf\x01\n\x0fGetConversation\x12?.google.cloud.geminidataanalytics.v1beta.GetConversationRequest\x1a\x35.google.cloud.geminidataanalytics.v1beta.Conversation\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v1beta/{name=projects/*/locations/*/conversations/*}\x12\xe2\x01\n\x11ListConversations\x12\x41.google.cloud.geminidataanalytics.v1beta.ListConversationsRequest\x1a\x42.google.cloud.geminidataanalytics.v1beta.ListConversationsResponse\"F\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x37\x12\x35/v1beta/{parent=projects/*/locations/*}/conversations\x12\xde\x01\n\x0cListMessages\x12<.google.cloud.geminidataanalytics.v1beta.ListMessagesRequest\x1a=.google.cloud.geminidataanalytics.v1beta.ListMessagesResponse\"Q\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x42\x12@/v1beta/{parent=projects/*/locations/*/conversations/*}/messages\x1aV\xca\x41\"geminidataanalytics.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xa5\x02\n+com.google.cloud.geminidataanalytics.v1betaB\x14\x44\x61taChatServiceProtoP\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"
|
|
20
|
+
descriptor_data = "\n?google/cloud/geminidataanalytics/v1beta/data_chat_service.proto\x12\'google.cloud.geminidataanalytics.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x35google/cloud/geminidataanalytics/v1beta/context.proto\x1a:google/cloud/geminidataanalytics/v1beta/conversation.proto\x1a\x39google/cloud/geminidataanalytics/v1beta/credentials.proto\x1a\x38google/cloud/geminidataanalytics/v1beta/datasource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa4\x01\n\x13ListMessagesRequest\x12G\n\x06parent\x18\x01 \x01(\tB7\xe0\x41\x02\xfa\x41\x31\n/geminidataanalytics.googleapis.com/Conversation\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"z\n\x14ListMessagesResponse\x12I\n\x08messages\x18\x01 \x03(\x0b\x32\x37.google.cloud.geminidataanalytics.v1beta.StorageMessage\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"g\n\x0eStorageMessage\x12\x12\n\nmessage_id\x18\x01 \x01(\t\x12\x41\n\x07message\x18\x02 \x01(\x0b\x32\x30.google.cloud.geminidataanalytics.v1beta.Message\"\xd4\x04\n\x0b\x43hatRequest\x12O\n\x0einline_context\x18\x65 \x01(\x0b\x32\x30.google.cloud.geminidataanalytics.v1beta.ContextB\x03\xe0\x41\x01H\x00\x12\x65\n\x16\x63onversation_reference\x18g \x01(\x0b\x32>.google.cloud.geminidataanalytics.v1beta.ConversationReferenceB\x03\xe0\x41\x01H\x00\x12\\\n\x12\x64\x61ta_agent_context\x18h \x01(\x0b\x32\x39.google.cloud.geminidataanalytics.v1beta.DataAgentContextB\x03\xe0\x41\x01H\x00\x12u\n\x1f\x63lient_managed_resource_context\x18i \x01(\x0b\x32\x45.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContextB\x03\xe0\x41\x01H\x00\x12\x46\n\x07project\x18\x01 \x01(\tB5\x18\x01\xe0\x41\x01\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x13\n\x06parent\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12G\n\x08messages\x18\x02 \x03(\x0b\x32\x30.google.cloud.geminidataanalytics.v1beta.MessageB\x03\xe0\x41\x02\x42\x12\n\x10\x63ontext_provider\"\xe3\x02\n\x10\x44\x61taAgentContext\x12H\n\ndata_agent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,geminidataanalytics.googleapis.com/DataAgent\x12N\n\x0b\x63redentials\x18\x02 \x01(\x0b\x32\x34.google.cloud.geminidataanalytics.v1beta.CredentialsB\x03\xe0\x41\x01\x12\x66\n\x0f\x63ontext_version\x18\x03 \x01(\x0e\x32H.google.cloud.geminidataanalytics.v1beta.DataAgentContext.ContextVersionB\x03\xe0\x41\x01\"M\n\x0e\x43ontextVersion\x12\x1f\n\x1b\x43ONTEXT_VERSION_UNSPECIFIED\x10\x00\x12\x0b\n\x07STAGING\x10\x01\x12\r\n\tPUBLISHED\x10\x02\"\xc2\x01\n\x15\x43onversationReference\x12M\n\x0c\x63onversation\x18\x01 \x01(\tB7\xe0\x41\x02\xfa\x41\x31\n/geminidataanalytics.googleapis.com/Conversation\x12Z\n\x12\x64\x61ta_agent_context\x18\x03 \x01(\x0b\x32\x39.google.cloud.geminidataanalytics.v1beta.DataAgentContextB\x03\xe0\x41\x02\"\xa2\x01\n\x1c\x43lientManagedResourceContext\x12M\n\x0einline_context\x18\x01 \x01(\x0b\x32\x30.google.cloud.geminidataanalytics.v1beta.ContextB\x03\xe0\x41\x02\x12\x1c\n\x0f\x63onversation_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08\x61gent_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xfe\x01\n\x07Message\x12L\n\x0cuser_message\x18\x02 \x01(\x0b\x32\x34.google.cloud.geminidataanalytics.v1beta.UserMessageH\x00\x12P\n\x0esystem_message\x18\x03 \x01(\x0b\x32\x36.google.cloud.geminidataanalytics.v1beta.SystemMessageH\x00\x12\x32\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x17\n\nmessage_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\x42\x06\n\x04kind\"%\n\x0bUserMessage\x12\x0e\n\x04text\x18\x01 \x01(\tH\x00\x42\x06\n\x04kind\"\xc8\x04\n\rSystemMessage\x12\x44\n\x04text\x18\x01 \x01(\x0b\x32\x34.google.cloud.geminidataanalytics.v1beta.TextMessageH\x00\x12H\n\x06schema\x18\x02 \x01(\x0b\x32\x36.google.cloud.geminidataanalytics.v1beta.SchemaMessageH\x00\x12\x44\n\x04\x64\x61ta\x18\x03 \x01(\x0b\x32\x34.google.cloud.geminidataanalytics.v1beta.DataMessageH\x00\x12L\n\x08\x61nalysis\x18\x04 \x01(\x0b\x32\x38.google.cloud.geminidataanalytics.v1beta.AnalysisMessageH\x00\x12\x46\n\x05\x63hart\x18\x05 \x01(\x0b\x32\x35.google.cloud.geminidataanalytics.v1beta.ChartMessageH\x00\x12\x46\n\x05\x65rror\x18\x06 \x01(\x0b\x32\x35.google.cloud.geminidataanalytics.v1beta.ErrorMessageH\x00\x12W\n\x0f\x65xample_queries\x18\r \x01(\x0b\x32\x37.google.cloud.geminidataanalytics.v1beta.ExampleQueriesB\x03\xe0\x41\x01H\x00\x12\x15\n\x08group_id\x18\x0c \x01(\x05H\x01\x88\x01\x01\x42\x06\n\x04kindB\x0b\n\t_group_id\"\xce\x01\n\x0bTextMessage\x12\x12\n\x05parts\x18\x01 \x03(\tB\x03\xe0\x41\x01\x12U\n\ttext_type\x18\x02 \x01(\x0e\x32=.google.cloud.geminidataanalytics.v1beta.TextMessage.TextTypeB\x03\xe0\x41\x01\"T\n\x08TextType\x12\x19\n\x15TEXT_TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x46INAL_RESPONSE\x10\x01\x12\x0b\n\x07THOUGHT\x10\x02\x12\x0c\n\x08PROGRESS\x10\x03\"\xa7\x01\n\rSchemaMessage\x12\x45\n\x05query\x18\x01 \x01(\x0b\x32\x34.google.cloud.geminidataanalytics.v1beta.SchemaQueryH\x00\x12G\n\x06result\x18\x02 \x01(\x0b\x32\x35.google.cloud.geminidataanalytics.v1beta.SchemaResultH\x00\x42\x06\n\x04kind\"$\n\x0bSchemaQuery\x12\x15\n\x08question\x18\x01 \x01(\tB\x03\xe0\x41\x01\"]\n\x0cSchemaResult\x12M\n\x0b\x64\x61tasources\x18\x01 \x03(\x0b\x32\x33.google.cloud.geminidataanalytics.v1beta.DatasourceB\x03\xe0\x41\x01\"\xe5\x02\n\x0b\x44\x61taMessage\x12\x43\n\x05query\x18\x01 \x01(\x0b\x32\x32.google.cloud.geminidataanalytics.v1beta.DataQueryH\x00\x12\x17\n\rgenerated_sql\x18\x02 \x01(\tH\x00\x12\x45\n\x06result\x18\x03 \x01(\x0b\x32\x33.google.cloud.geminidataanalytics.v1beta.DataResultH\x00\x12Z\n\x16generated_looker_query\x18\x04 \x01(\x0b\x32\x34.google.cloud.geminidataanalytics.v1beta.LookerQueryB\x02\x18\x01H\x00\x12M\n\rbig_query_job\x18\x05 \x01(\x0b\x32\x34.google.cloud.geminidataanalytics.v1beta.BigQueryJobH\x00\x42\x06\n\x04kind\"\x88\x02\n\x0bLookerQuery\x12\x12\n\x05model\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x07\x65xplore\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06\x66ields\x18\x03 \x03(\tB\x03\xe0\x41\x01\x12Q\n\x07\x66ilters\x18\x04 \x03(\x0b\x32;.google.cloud.geminidataanalytics.v1beta.LookerQuery.FilterB\x03\xe0\x41\x01\x12\x12\n\x05sorts\x18\x05 \x03(\tB\x03\xe0\x41\x01\x12\x17\n\x05limit\x18\x06 \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\x1a\x30\n\x06\x46ilter\x12\x12\n\x05\x66ield\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05value\x18\x02 \x01(\tB\x03\xe0\x41\x02\x42\x08\n\x06_limit\"\xdf\x01\n\tDataQuery\x12K\n\x06looker\x18\x04 \x01(\x0b\x32\x34.google.cloud.geminidataanalytics.v1beta.LookerQueryB\x03\xe0\x41\x01H\x00\x12\x15\n\x08question\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12M\n\x0b\x64\x61tasources\x18\x02 \x03(\x0b\x32\x33.google.cloud.geminidataanalytics.v1beta.DatasourceB\x03\xe0\x41\x01\x42\x0c\n\nquery_type\"\x91\x01\n\nDataResult\x12\x11\n\x04name\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x44\n\x06schema\x18\x05 \x01(\x0b\x32/.google.cloud.geminidataanalytics.v1beta.SchemaB\x03\xe0\x41\x01\x12*\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\"\xf9\x01\n\x0b\x42igQueryJob\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06job_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08location\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12_\n\x11\x64\x65stination_table\x18\x03 \x01(\x0b\x32?.google.cloud.geminidataanalytics.v1beta.BigQueryTableReferenceB\x03\xe0\x41\x01\x12\x44\n\x06schema\x18\x07 \x01(\x0b\x32/.google.cloud.geminidataanalytics.v1beta.SchemaB\x03\xe0\x41\x01\"\xb4\x01\n\x0f\x41nalysisMessage\x12G\n\x05query\x18\x01 \x01(\x0b\x32\x36.google.cloud.geminidataanalytics.v1beta.AnalysisQueryH\x00\x12P\n\x0eprogress_event\x18\x02 \x01(\x0b\x32\x36.google.cloud.geminidataanalytics.v1beta.AnalysisEventH\x00\x42\x06\n\x04kind\"F\n\rAnalysisQuery\x12\x15\n\x08question\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1e\n\x11\x64\x61ta_result_names\x18\x02 \x03(\tB\x03\xe0\x41\x01\"\xaa\x02\n\rAnalysisEvent\x12\x1b\n\x11planner_reasoning\x18\x02 \x01(\tH\x00\x12\x1b\n\x11\x63oder_instruction\x18\x03 \x01(\tH\x00\x12\x0e\n\x04\x63ode\x18\x04 \x01(\tH\x00\x12\x1a\n\x10\x65xecution_output\x18\x05 \x01(\tH\x00\x12\x19\n\x0f\x65xecution_error\x18\x06 \x01(\tH\x00\x12 \n\x16result_vega_chart_json\x18\x07 \x01(\tH\x00\x12!\n\x17result_natural_language\x18\x08 \x01(\tH\x00\x12\x19\n\x0fresult_csv_data\x18\t \x01(\tH\x00\x12\x1f\n\x15result_reference_data\x18\n \x01(\tH\x00\x12\x0f\n\x05\x65rror\x18\x0b \x01(\tH\x00\x42\x06\n\x04kind\"\xa4\x01\n\x0c\x43hartMessage\x12\x44\n\x05query\x18\x01 \x01(\x0b\x32\x33.google.cloud.geminidataanalytics.v1beta.ChartQueryH\x00\x12\x46\n\x06result\x18\x02 \x01(\x0b\x32\x34.google.cloud.geminidataanalytics.v1beta.ChartResultH\x00\x42\x06\n\x04kind\"F\n\nChartQuery\x12\x19\n\x0cinstructions\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10\x64\x61ta_result_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\x83\x01\n\x0b\x43hartResult\x12\x31\n\x0bvega_config\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x01\x12\x41\n\x05image\x18\x03 \x01(\x0b\x32-.google.cloud.geminidataanalytics.v1beta.BlobB\x03\xe0\x41\x01\"!\n\x0c\x45rrorMessage\x12\x11\n\x04text\x18\x01 \x01(\tB\x03\xe0\x41\x03\"e\n\x0e\x45xampleQueries\x12S\n\x0f\x65xample_queries\x18\x01 \x03(\x0b\x32\x35.google.cloud.geminidataanalytics.v1beta.ExampleQueryB\x03\xe0\x41\x01\"1\n\x04\x42lob\x12\x16\n\tmime_type\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x02\x32\xeb\n\n\x0f\x44\x61taChatService\x12\xa9\x01\n\x04\x43hat\x12\x34.google.cloud.geminidataanalytics.v1beta.ChatRequest\x1a\x30.google.cloud.geminidataanalytics.v1beta.Message\"7\x82\xd3\xe4\x93\x02\x31\",/v1beta/{parent=projects/*/locations/*}:chat:\x01*0\x01\x12\x82\x02\n\x12\x43reateConversation\x12\x42.google.cloud.geminidataanalytics.v1beta.CreateConversationRequest\x1a\x35.google.cloud.geminidataanalytics.v1beta.Conversation\"q\xda\x41#parent,conversation,conversation_id\x82\xd3\xe4\x93\x02\x45\"5/v1beta/{parent=projects/*/locations/*}/conversations:\x0c\x63onversation\x12\xb6\x01\n\x12\x44\x65leteConversation\x12\x42.google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest\x1a\x16.google.protobuf.Empty\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37*5/v1beta/{name=projects/*/locations/*/conversations/*}\x12\xcf\x01\n\x0fGetConversation\x12?.google.cloud.geminidataanalytics.v1beta.GetConversationRequest\x1a\x35.google.cloud.geminidataanalytics.v1beta.Conversation\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v1beta/{name=projects/*/locations/*/conversations/*}\x12\xe2\x01\n\x11ListConversations\x12\x41.google.cloud.geminidataanalytics.v1beta.ListConversationsRequest\x1a\x42.google.cloud.geminidataanalytics.v1beta.ListConversationsResponse\"F\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x37\x12\x35/v1beta/{parent=projects/*/locations/*}/conversations\x12\xde\x01\n\x0cListMessages\x12<.google.cloud.geminidataanalytics.v1beta.ListMessagesRequest\x1a=.google.cloud.geminidataanalytics.v1beta.ListMessagesResponse\"Q\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x42\x12@/v1beta/{parent=projects/*/locations/*/conversations/*}/messages\x1aV\xca\x41\"geminidataanalytics.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xa5\x02\n+com.google.cloud.geminidataanalytics.v1betaB\x14\x44\x61taChatServiceProtoP\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"
|
|
20
21
|
|
|
21
22
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
22
23
|
|
|
@@ -58,10 +59,12 @@ module Google
|
|
|
58
59
|
DataAgentContext = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.DataAgentContext").msgclass
|
|
59
60
|
DataAgentContext::ContextVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.DataAgentContext.ContextVersion").enummodule
|
|
60
61
|
ConversationReference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.ConversationReference").msgclass
|
|
62
|
+
ClientManagedResourceContext = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext").msgclass
|
|
61
63
|
Message = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.Message").msgclass
|
|
62
64
|
UserMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.UserMessage").msgclass
|
|
63
65
|
SystemMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.SystemMessage").msgclass
|
|
64
66
|
TextMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.TextMessage").msgclass
|
|
67
|
+
TextMessage::TextType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.TextMessage.TextType").enummodule
|
|
65
68
|
SchemaMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.SchemaMessage").msgclass
|
|
66
69
|
SchemaQuery = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.SchemaQuery").msgclass
|
|
67
70
|
SchemaResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.SchemaResult").msgclass
|
|
@@ -78,6 +81,7 @@ module Google
|
|
|
78
81
|
ChartQuery = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.ChartQuery").msgclass
|
|
79
82
|
ChartResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.ChartResult").msgclass
|
|
80
83
|
ErrorMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.ErrorMessage").msgclass
|
|
84
|
+
ExampleQueries = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.ExampleQueries").msgclass
|
|
81
85
|
Blob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.Blob").msgclass
|
|
82
86
|
end
|
|
83
87
|
end
|
|
@@ -41,6 +41,8 @@ module Google
|
|
|
41
41
|
# Creates a new conversation to persist the conversation history. Each
|
|
42
42
|
# conversation will have multiple messages associated with it.
|
|
43
43
|
rpc :CreateConversation, ::Google::Cloud::GeminiDataAnalytics::V1beta::CreateConversationRequest, ::Google::Cloud::GeminiDataAnalytics::V1beta::Conversation
|
|
44
|
+
# Deletes a conversation.
|
|
45
|
+
rpc :DeleteConversation, ::Google::Cloud::GeminiDataAnalytics::V1beta::DeleteConversationRequest, ::Google::Protobuf::Empty
|
|
44
46
|
# Gets details of a single conversation by using conversation id and parent.
|
|
45
47
|
rpc :GetConversation, ::Google::Cloud::GeminiDataAnalytics::V1beta::GetConversationRequest, ::Google::Cloud::GeminiDataAnalytics::V1beta::Conversation
|
|
46
48
|
# Lists all conversations for a given parent.
|
|
@@ -6,9 +6,10 @@ require 'google/protobuf'
|
|
|
6
6
|
|
|
7
7
|
require 'google/api/field_behavior_pb'
|
|
8
8
|
require 'google/cloud/geminidataanalytics/v1beta/credentials_pb'
|
|
9
|
+
require 'google/protobuf/struct_pb'
|
|
9
10
|
|
|
10
11
|
|
|
11
|
-
descriptor_data = "\n8google/cloud/geminidataanalytics/v1beta/datasource.proto\x12\'google.cloud.geminidataanalytics.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x39google/cloud/geminidataanalytics/v1beta/credentials.proto\"\x9f\x02\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\x42\x0c\n\nreferences\"y\n\x17\x42igQueryTableReferences\x12^\n\x10table_references\x18\x01 \x03(\x0b\x32?.google.cloud.geminidataanalytics.v1beta.BigQueryTableReferenceB\x03\xe0\x41\x02\"\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\"{\n\x1aStudioDatasourceReferences\x12]\n\x11studio_references\x18\x02 \x03(\x0b\x32\x42.google.cloud.geminidataanalytics.v1beta.StudioDatasourceReference\"7\n\x19StudioDatasourceReference\x12\x1a\n\rdatasource_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\"\xcb\x01\n\x17LookerExploreReferences\x12`\n\x12\x65xplore_references\x18\x01 \x03(\x0b\x32?.google.cloud.geminidataanalytics.v1beta.LookerExploreReferenceB\x03\xe0\x41\x02\x12N\n\x0b\x63redentials\x18\x02 \x01(\x0b\x32\x34.google.cloud.geminidataanalytics.v1beta.CredentialsB\x03\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\"W\n\x19PrivateLookerInstanceInfo\x12\x1a\n\x12looker_instance_id\x18\x01 \x01(\t\x12\x1e\n\x16service_directory_name\x18\x02 \x01(\t\"\
|
|
12
|
+
descriptor_data = "\n8google/cloud/geminidataanalytics/v1beta/datasource.proto\x12\'google.cloud.geminidataanalytics.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x39google/cloud/geminidataanalytics/v1beta/credentials.proto\x1a\x1cgoogle/protobuf/struct.proto\"\x9f\x02\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\x42\x0c\n\nreferences\"y\n\x17\x42igQueryTableReferences\x12^\n\x10table_references\x18\x01 \x03(\x0b\x32?.google.cloud.geminidataanalytics.v1beta.BigQueryTableReferenceB\x03\xe0\x41\x02\"\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\"{\n\x1aStudioDatasourceReferences\x12]\n\x11studio_references\x18\x02 \x03(\x0b\x32\x42.google.cloud.geminidataanalytics.v1beta.StudioDatasourceReference\"7\n\x19StudioDatasourceReference\x12\x1a\n\rdatasource_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\"\xcb\x01\n\x17LookerExploreReferences\x12`\n\x12\x65xplore_references\x18\x01 \x03(\x0b\x32?.google.cloud.geminidataanalytics.v1beta.LookerExploreReferenceB\x03\xe0\x41\x02\x12N\n\x0b\x63redentials\x18\x02 \x01(\x0b\x32\x34.google.cloud.geminidataanalytics.v1beta.CredentialsB\x03\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\"W\n\x19PrivateLookerInstanceInfo\x12\x1a\n\x12looker_instance_id\x18\x01 \x01(\t\x12\x1e\n\x16service_directory_name\x18\x02 \x01(\t\"\xfe\x02\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\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"
|
|
12
13
|
|
|
13
14
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
14
15
|
|
|
@@ -24,6 +25,7 @@ rescue TypeError
|
|
|
24
25
|
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
25
26
|
imports = [
|
|
26
27
|
["google.cloud.geminidataanalytics.v1beta.Credentials", "google/cloud/geminidataanalytics/v1beta/credentials.proto"],
|
|
28
|
+
["google.protobuf.Struct", "google/protobuf/struct.proto"],
|
|
27
29
|
]
|
|
28
30
|
imports.each do |type_name, expected_filename|
|
|
29
31
|
import_file = pool.lookup(type_name).file_descriptor
|
|
@@ -40,14 +40,78 @@ 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.
|
|
43
|
+
# optionally present. Currently only used for BigQuery data sources.
|
|
44
|
+
# @!attribute [rw] glossary_terms
|
|
45
|
+
# @return [::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::GlossaryTerm>]
|
|
46
|
+
# Optional. Term definitions (currently, only user authored)
|
|
47
|
+
# @!attribute [rw] schema_relationships
|
|
48
|
+
# @return [::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::Context::SchemaRelationship>]
|
|
49
|
+
# Optional. Relationships between table schema, including referencing and
|
|
50
|
+
# referenced columns.
|
|
44
51
|
class Context
|
|
45
52
|
include ::Google::Protobuf::MessageExts
|
|
46
53
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
54
|
+
|
|
55
|
+
# The relationship between two tables, including referencing and referenced
|
|
56
|
+
# columns. This is a derived context retrieved from Dataplex Dataset
|
|
57
|
+
# Insights.
|
|
58
|
+
# @!attribute [rw] left_schema_paths
|
|
59
|
+
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::Context::SchemaRelationship::SchemaPaths]
|
|
60
|
+
# An ordered list of fields for the join from the first table.
|
|
61
|
+
# The size of this list must be the same as `right_schema_paths`.
|
|
62
|
+
# Each field at index i in this list must correspond to a field at the same
|
|
63
|
+
# index in the `right_schema_paths` list.
|
|
64
|
+
# @!attribute [rw] right_schema_paths
|
|
65
|
+
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::Context::SchemaRelationship::SchemaPaths]
|
|
66
|
+
# An ordered list of fields for the join from the second table.
|
|
67
|
+
# The size of this list must be the same as `left_schema_paths`.
|
|
68
|
+
# Each field at index i in this list must correspond to a field at the same
|
|
69
|
+
# index in the `left_schema_paths` list.
|
|
70
|
+
# @!attribute [rw] sources
|
|
71
|
+
# @return [::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::Context::SchemaRelationship::Source>]
|
|
72
|
+
# Sources which generated the schema relation edge.
|
|
73
|
+
# @!attribute [rw] confidence_score
|
|
74
|
+
# @return [::Float]
|
|
75
|
+
# A confidence score for the suggested relationship.
|
|
76
|
+
# Manually added edges have the highest confidence score.
|
|
77
|
+
class SchemaRelationship
|
|
78
|
+
include ::Google::Protobuf::MessageExts
|
|
79
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
80
|
+
|
|
81
|
+
# Represents an ordered set of paths within the table schema.
|
|
82
|
+
# @!attribute [rw] table_fqn
|
|
83
|
+
# @return [::String]
|
|
84
|
+
# The service-qualified full resource name of the table
|
|
85
|
+
# Ex:
|
|
86
|
+
# bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID
|
|
87
|
+
# @!attribute [rw] paths
|
|
88
|
+
# @return [::Array<::String>]
|
|
89
|
+
# The ordered list of paths within the table schema.
|
|
90
|
+
class SchemaPaths
|
|
91
|
+
include ::Google::Protobuf::MessageExts
|
|
92
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Source which generated the schema relation edge.
|
|
96
|
+
module Source
|
|
97
|
+
# The source of the schema relationship is unspecified.
|
|
98
|
+
SOURCE_UNSPECIFIED = 0
|
|
99
|
+
|
|
100
|
+
# The source of the schema relationship is BigQuery job history.
|
|
101
|
+
BIGQUERY_JOB_HISTORY = 1
|
|
102
|
+
|
|
103
|
+
# The source of the schema relationship is LLM suggested.
|
|
104
|
+
LLM_SUGGESTED = 2
|
|
105
|
+
|
|
106
|
+
# The source of the schema relationship is BigQuery table constraints.
|
|
107
|
+
BIGQUERY_TABLE_CONSTRAINTS = 3
|
|
108
|
+
end
|
|
109
|
+
end
|
|
47
110
|
end
|
|
48
111
|
|
|
49
112
|
# Example of relevant and commonly used SQL query and its corresponding natural
|
|
50
|
-
# language queries optionally present.
|
|
113
|
+
# language queries optionally present. Currently only used for BigQuery data
|
|
114
|
+
# sources.
|
|
51
115
|
# @!attribute [rw] sql_query
|
|
52
116
|
# @return [::String]
|
|
53
117
|
# Optional. The SQL query that should be generated to answer the natural
|
|
@@ -62,6 +126,25 @@ module Google
|
|
|
62
126
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
63
127
|
end
|
|
64
128
|
|
|
129
|
+
# Definition of a term within a specific domain.
|
|
130
|
+
# @!attribute [rw] display_name
|
|
131
|
+
# @return [::String]
|
|
132
|
+
# Required. User friendly display name of the glossary term being defined.
|
|
133
|
+
# For example: "CTR", "conversion rate", "pending"
|
|
134
|
+
# @!attribute [rw] description
|
|
135
|
+
# @return [::String]
|
|
136
|
+
# Required. The description or meaning of the term.
|
|
137
|
+
# For example: "Click-through rate", "The percentage of users who complete a
|
|
138
|
+
# desired action", "An order that is waiting to be processed."
|
|
139
|
+
# @!attribute [rw] labels
|
|
140
|
+
# @return [::Array<::String>]
|
|
141
|
+
# Optional. A list of general purpose labels associated to this term.
|
|
142
|
+
# For example: ["click rate", "clickthrough", "waiting"]
|
|
143
|
+
class GlossaryTerm
|
|
144
|
+
include ::Google::Protobuf::MessageExts
|
|
145
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
146
|
+
end
|
|
147
|
+
|
|
65
148
|
# Options for the conversation.
|
|
66
149
|
# @!attribute [rw] chart
|
|
67
150
|
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::ChartOptions]
|
|
@@ -69,11 +152,26 @@ module Google
|
|
|
69
152
|
# @!attribute [rw] analysis
|
|
70
153
|
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::AnalysisOptions]
|
|
71
154
|
# Optional. Options for analysis.
|
|
155
|
+
# @!attribute [rw] datasource
|
|
156
|
+
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::DatasourceOptions]
|
|
157
|
+
# Optional. Options for datasources.
|
|
72
158
|
class ConversationOptions
|
|
73
159
|
include ::Google::Protobuf::MessageExts
|
|
74
160
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
75
161
|
end
|
|
76
162
|
|
|
163
|
+
# Options for datasources configurations.
|
|
164
|
+
# @!attribute [rw] big_query_max_billed_bytes
|
|
165
|
+
# @return [::Google::Protobuf::Int64Value]
|
|
166
|
+
# Optional. This option applies to datasources that require BigQuery queries
|
|
167
|
+
# only. Limits the bytes billed for each BQ query job. Queries that will have
|
|
168
|
+
# bytes billed beyond this limit will fail (without incurring a charge).
|
|
169
|
+
# If unspecified, no limit will be applied.
|
|
170
|
+
class DatasourceOptions
|
|
171
|
+
include ::Google::Protobuf::MessageExts
|
|
172
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
173
|
+
end
|
|
174
|
+
|
|
77
175
|
# Options for chart generation.
|
|
78
176
|
# @!attribute [rw] image
|
|
79
177
|
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::ChartOptions::ImageOptions]
|
|
@@ -31,7 +31,7 @@ module Google
|
|
|
31
31
|
# https://google.aip.dev/122#resource-id-segments
|
|
32
32
|
#
|
|
33
33
|
# Example:
|
|
34
|
-
# `projects/1234567890/locations/
|
|
34
|
+
# `projects/1234567890/locations/global/conversations/my-conversation`.
|
|
35
35
|
#
|
|
36
36
|
# It is recommended to skip setting this field during conversation creation
|
|
37
37
|
# as it will be inferred automatically and overwritten with the
|
|
@@ -120,7 +120,7 @@ module Google
|
|
|
120
120
|
# @return [::String]
|
|
121
121
|
# Optional. Returned conversations will match criteria specified within the
|
|
122
122
|
# filter. ListConversations allows filtering by:
|
|
123
|
-
# *
|
|
123
|
+
# * agents
|
|
124
124
|
# * labels
|
|
125
125
|
class ListConversationsRequest
|
|
126
126
|
include ::Google::Protobuf::MessageExts
|
|
@@ -138,6 +138,17 @@ module Google
|
|
|
138
138
|
include ::Google::Protobuf::MessageExts
|
|
139
139
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
140
140
|
end
|
|
141
|
+
|
|
142
|
+
# Request for deleting a conversation based on parent and conversation id.
|
|
143
|
+
# @!attribute [rw] name
|
|
144
|
+
# @return [::String]
|
|
145
|
+
# Required. Name of the resource.
|
|
146
|
+
# Format:
|
|
147
|
+
# `projects/{project}/locations/{location}/conversations/{conversation}`
|
|
148
|
+
class DeleteConversationRequest
|
|
149
|
+
include ::Google::Protobuf::MessageExts
|
|
150
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
151
|
+
end
|
|
141
152
|
end
|
|
142
153
|
end
|
|
143
154
|
end
|
|
@@ -34,7 +34,7 @@ module Google
|
|
|
34
34
|
# must match the format described in
|
|
35
35
|
# https://google.aip.dev/122#resource-id-segments
|
|
36
36
|
#
|
|
37
|
-
# Example: `projects/1234567890/locations/
|
|
37
|
+
# Example: `projects/1234567890/locations/global/dataAgents/my-agent`.
|
|
38
38
|
#
|
|
39
39
|
# It is recommended to skip setting this field during agent creation as it
|
|
40
40
|
# will be inferred automatically and overwritten with the
|
|
@@ -79,19 +79,27 @@ module Google
|
|
|
79
79
|
# statelessly (without managed conversation persistence and without an
|
|
80
80
|
# Agent) by passing all context inline.
|
|
81
81
|
#
|
|
82
|
-
# Note: The following fields are mutually exclusive: `inline_context`, `conversation_reference`, `data_agent_context`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
82
|
+
# Note: The following fields are mutually exclusive: `inline_context`, `conversation_reference`, `data_agent_context`, `client_managed_resource_context`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
83
83
|
# @!attribute [rw] conversation_reference
|
|
84
84
|
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::ConversationReference]
|
|
85
85
|
# Optional. Reference to a persisted conversation and agent context.
|
|
86
86
|
# Use this to chat with an Agent using managed conversation persistence.
|
|
87
87
|
#
|
|
88
|
-
# Note: The following fields are mutually exclusive: `conversation_reference`, `inline_context`, `data_agent_context`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
88
|
+
# Note: The following fields are mutually exclusive: `conversation_reference`, `inline_context`, `data_agent_context`, `client_managed_resource_context`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
89
89
|
# @!attribute [rw] data_agent_context
|
|
90
90
|
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentContext]
|
|
91
91
|
# Optional. Context for the chat request. Use this to chat with an Agent
|
|
92
92
|
# statelessly, without managed conversation persistence.
|
|
93
93
|
#
|
|
94
|
-
# Note: The following fields are mutually exclusive: `data_agent_context`, `inline_context`, `conversation_reference`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
94
|
+
# Note: The following fields are mutually exclusive: `data_agent_context`, `inline_context`, `conversation_reference`, `client_managed_resource_context`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
95
|
+
# @!attribute [rw] client_managed_resource_context
|
|
96
|
+
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::ClientManagedResourceContext]
|
|
97
|
+
# Optional. Context with client managed resources.
|
|
98
|
+
# Some clients may not use GDA managed resources including
|
|
99
|
+
# conversations and agents, instead they create and manage their own
|
|
100
|
+
# conversations and agents resources.
|
|
101
|
+
#
|
|
102
|
+
# Note: The following fields are mutually exclusive: `client_managed_resource_context`, `inline_context`, `conversation_reference`, `data_agent_context`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
95
103
|
# @!attribute [rw] project
|
|
96
104
|
# @deprecated This field is deprecated and may be removed in the next major version update.
|
|
97
105
|
# @return [::String]
|
|
@@ -158,6 +166,25 @@ module Google
|
|
|
158
166
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
159
167
|
end
|
|
160
168
|
|
|
169
|
+
# Context with client managed resources.
|
|
170
|
+
# Some clients may not use GDA managed resources including
|
|
171
|
+
# conversations and agents, instead they create and manage their own
|
|
172
|
+
# conversations and agents resources.
|
|
173
|
+
# @!attribute [rw] inline_context
|
|
174
|
+
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::Context]
|
|
175
|
+
# Required. Context for the chat request. Use this to chat without GDA API
|
|
176
|
+
# managed conversation and agent persistence by passing all context inline.
|
|
177
|
+
# @!attribute [rw] conversation_id
|
|
178
|
+
# @return [::String]
|
|
179
|
+
# Optional. The client managed conversation id.
|
|
180
|
+
# @!attribute [rw] agent_id
|
|
181
|
+
# @return [::String]
|
|
182
|
+
# Optional. The client managed agent id.
|
|
183
|
+
class ClientManagedResourceContext
|
|
184
|
+
include ::Google::Protobuf::MessageExts
|
|
185
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
186
|
+
end
|
|
187
|
+
|
|
161
188
|
# A message from an interaction between the user and the system.
|
|
162
189
|
# @!attribute [rw] user_message
|
|
163
190
|
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::UserMessage]
|
|
@@ -198,32 +225,37 @@ module Google
|
|
|
198
225
|
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::TextMessage]
|
|
199
226
|
# A direct natural language response to the user message.
|
|
200
227
|
#
|
|
201
|
-
# Note: The following fields are mutually exclusive: `text`, `schema`, `data`, `analysis`, `chart`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
228
|
+
# Note: The following fields are mutually exclusive: `text`, `schema`, `data`, `analysis`, `chart`, `error`, `example_queries`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
202
229
|
# @!attribute [rw] schema
|
|
203
230
|
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::SchemaMessage]
|
|
204
231
|
# A message produced during schema resolution.
|
|
205
232
|
#
|
|
206
|
-
# Note: The following fields are mutually exclusive: `schema`, `text`, `data`, `analysis`, `chart`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
233
|
+
# Note: The following fields are mutually exclusive: `schema`, `text`, `data`, `analysis`, `chart`, `error`, `example_queries`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
207
234
|
# @!attribute [rw] data
|
|
208
235
|
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::DataMessage]
|
|
209
236
|
# A message produced during data retrieval.
|
|
210
237
|
#
|
|
211
|
-
# Note: The following fields are mutually exclusive: `data`, `text`, `schema`, `analysis`, `chart`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
238
|
+
# Note: The following fields are mutually exclusive: `data`, `text`, `schema`, `analysis`, `chart`, `error`, `example_queries`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
212
239
|
# @!attribute [rw] analysis
|
|
213
240
|
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::AnalysisMessage]
|
|
214
241
|
# A message produced during analysis.
|
|
215
242
|
#
|
|
216
|
-
# Note: The following fields are mutually exclusive: `analysis`, `text`, `schema`, `data`, `chart`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
243
|
+
# Note: The following fields are mutually exclusive: `analysis`, `text`, `schema`, `data`, `chart`, `error`, `example_queries`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
217
244
|
# @!attribute [rw] chart
|
|
218
245
|
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::ChartMessage]
|
|
219
246
|
# A message produced during chart generation.
|
|
220
247
|
#
|
|
221
|
-
# Note: The following fields are mutually exclusive: `chart`, `text`, `schema`, `data`, `analysis`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
248
|
+
# Note: The following fields are mutually exclusive: `chart`, `text`, `schema`, `data`, `analysis`, `error`, `example_queries`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
222
249
|
# @!attribute [rw] error
|
|
223
250
|
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::ErrorMessage]
|
|
224
251
|
# An error message.
|
|
225
252
|
#
|
|
226
|
-
# Note: The following fields are mutually exclusive: `error`, `text`, `schema`, `data`, `analysis`, `chart`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
253
|
+
# Note: The following fields are mutually exclusive: `error`, `text`, `schema`, `data`, `analysis`, `chart`, `example_queries`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
254
|
+
# @!attribute [rw] example_queries
|
|
255
|
+
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::ExampleQueries]
|
|
256
|
+
# Optional. A message containing example queries.
|
|
257
|
+
#
|
|
258
|
+
# Note: The following fields are mutually exclusive: `example_queries`, `text`, `schema`, `data`, `analysis`, `chart`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
227
259
|
# @!attribute [rw] group_id
|
|
228
260
|
# @return [::Integer]
|
|
229
261
|
# Identifies the group that the event belongs to. Similar events are deemed
|
|
@@ -238,9 +270,31 @@ module Google
|
|
|
238
270
|
# @!attribute [rw] parts
|
|
239
271
|
# @return [::Array<::String>]
|
|
240
272
|
# Optional. The parts of the message.
|
|
273
|
+
# @!attribute [rw] text_type
|
|
274
|
+
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::TextMessage::TextType]
|
|
275
|
+
# Optional. The type of the text message.
|
|
241
276
|
class TextMessage
|
|
242
277
|
include ::Google::Protobuf::MessageExts
|
|
243
278
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
279
|
+
|
|
280
|
+
# The type of the text message.
|
|
281
|
+
module TextType
|
|
282
|
+
# The default text type.
|
|
283
|
+
TEXT_TYPE_UNSPECIFIED = 0
|
|
284
|
+
|
|
285
|
+
# The text is a final response to the user question.
|
|
286
|
+
FINAL_RESPONSE = 1
|
|
287
|
+
|
|
288
|
+
# The text is a thinking plan generated by the thinking tool.
|
|
289
|
+
THOUGHT = 2
|
|
290
|
+
|
|
291
|
+
# The text is an informational message about the agent's progress, such as
|
|
292
|
+
# a tool being invoked. This is distinct from the agent's internal thought
|
|
293
|
+
# process (`THOUGHT`) and the final answer to the user
|
|
294
|
+
# (`FINAL_RESPONSE`). These messages provide insight into the agent's
|
|
295
|
+
# actions.
|
|
296
|
+
PROGRESS = 3
|
|
297
|
+
end
|
|
244
298
|
end
|
|
245
299
|
|
|
246
300
|
# A message produced during schema resolution.
|
|
@@ -294,8 +348,10 @@ module Google
|
|
|
294
348
|
#
|
|
295
349
|
# Note: The following fields are mutually exclusive: `result`, `query`, `generated_sql`, `generated_looker_query`, `big_query_job`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
296
350
|
# @!attribute [rw] generated_looker_query
|
|
351
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
|
297
352
|
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::LookerQuery]
|
|
298
353
|
# Looker Query generated by the system to retrieve data.
|
|
354
|
+
# DEPRECATED: generated looker query is now under DataQuery.looker.
|
|
299
355
|
#
|
|
300
356
|
# Note: The following fields are mutually exclusive: `generated_looker_query`, `query`, `generated_sql`, `result`, `big_query_job`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
301
357
|
# @!attribute [rw] big_query_job
|
|
@@ -347,6 +403,9 @@ module Google
|
|
|
347
403
|
end
|
|
348
404
|
|
|
349
405
|
# A query for retrieving data.
|
|
406
|
+
# @!attribute [rw] looker
|
|
407
|
+
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::LookerQuery]
|
|
408
|
+
# Optional. A query for retrieving data from a Looker explore.
|
|
350
409
|
# @!attribute [rw] question
|
|
351
410
|
# @return [::String]
|
|
352
411
|
# Optional. A natural language question to answer.
|
|
@@ -550,7 +609,20 @@ module Google
|
|
|
550
609
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
551
610
|
end
|
|
552
611
|
|
|
553
|
-
# An error message.
|
|
612
|
+
# An error message from a tool call.
|
|
613
|
+
# This message is used to represent an error that occurred while an agent was
|
|
614
|
+
# trying to use a tool. It's important to note that not all errors are
|
|
615
|
+
# terminal. Many are recoverable, and the agent may use the information from
|
|
616
|
+
# this error message to self-correct and retry the tool call or try a
|
|
617
|
+
# different approach.
|
|
618
|
+
#
|
|
619
|
+
# For example, if a data query fails, the agent might receive an
|
|
620
|
+
# `ErrorMessage`, analyze it, and then generate a corrected query.
|
|
621
|
+
#
|
|
622
|
+
# Clients should be cautious about interpreting this message as a definitive
|
|
623
|
+
# failure. It can be part of the agent's normal, iterative process of
|
|
624
|
+
# completing a task. Surfacing these errors directly to end-users without
|
|
625
|
+
# context (e.g., as a "hard failure") may be misleading.
|
|
554
626
|
# @!attribute [r] text
|
|
555
627
|
# @return [::String]
|
|
556
628
|
# Output only. The text of the error.
|
|
@@ -559,6 +631,18 @@ module Google
|
|
|
559
631
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
560
632
|
end
|
|
561
633
|
|
|
634
|
+
# A message containing derived and authored example queries.
|
|
635
|
+
# @!attribute [rw] example_queries
|
|
636
|
+
# @return [::Array<::Google::Cloud::GeminiDataAnalytics::V1beta::ExampleQuery>]
|
|
637
|
+
# Optional. A list of derived and authored example queries, providing
|
|
638
|
+
# examples of relevant and commonly used SQL queries and their corresponding
|
|
639
|
+
# natural language queries optionally present. Currently only used for
|
|
640
|
+
# BigQuery data sources.
|
|
641
|
+
class ExampleQueries
|
|
642
|
+
include ::Google::Protobuf::MessageExts
|
|
643
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
644
|
+
end
|
|
645
|
+
|
|
562
646
|
# A blob of data with a MIME type.
|
|
563
647
|
# @!attribute [rw] mime_type
|
|
564
648
|
# @return [::String]
|
|
@@ -167,6 +167,14 @@ module Google
|
|
|
167
167
|
# @!attribute [rw] schema
|
|
168
168
|
# @return [::Google::Cloud::GeminiDataAnalytics::V1beta::Schema]
|
|
169
169
|
# Optional. The schema of the datasource.
|
|
170
|
+
# @!attribute [rw] struct_schema
|
|
171
|
+
# @return [::Google::Protobuf::Struct]
|
|
172
|
+
# Optional. A struct representation of the schema.
|
|
173
|
+
# This is populated for datasources with schemas that cannot be
|
|
174
|
+
# fully represented by the strongly-typed `schema` field.
|
|
175
|
+
#
|
|
176
|
+
# For Looker datasources, this maps to the LookmlModelExplore type:
|
|
177
|
+
# https://cloud.google.com/looker/docs/reference/looker-api/latest/types/LookmlModelExplore
|
|
170
178
|
class Datasource
|
|
171
179
|
include ::Google::Protobuf::MessageExts
|
|
172
180
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -180,15 +188,17 @@ module Google
|
|
|
180
188
|
# @return [::String]
|
|
181
189
|
# Optional. A textual description of the table's content and purpose.
|
|
182
190
|
# For example: "Contains information about customer orders in our e-commerce
|
|
183
|
-
# store."
|
|
191
|
+
# store." Currently only used for BigQuery data sources.
|
|
184
192
|
# @!attribute [rw] synonyms
|
|
185
193
|
# @return [::Array<::String>]
|
|
186
194
|
# Optional. A list of alternative names or synonyms that can be used to refer
|
|
187
|
-
# to the table. For example: ["sales", "orders", "purchases"]
|
|
195
|
+
# to the table. For example: ["sales", "orders", "purchases"]. Currently only
|
|
196
|
+
# used for BigQuery data sources.
|
|
188
197
|
# @!attribute [rw] tags
|
|
189
198
|
# @return [::Array<::String>]
|
|
190
199
|
# Optional. A list of tags or keywords associated with the table, used for
|
|
191
|
-
# categorization. For example: ["transaction", "revenue", "customer_data"]
|
|
200
|
+
# categorization. For example: ["transaction", "revenue", "customer_data"].
|
|
201
|
+
# Currently only used for BigQuery data sources.
|
|
192
202
|
# @!attribute [rw] display_name
|
|
193
203
|
# @return [::String]
|
|
194
204
|
# Optional. Table display_name (same as label in
|
|
@@ -219,11 +229,13 @@ module Google
|
|
|
219
229
|
# @!attribute [rw] synonyms
|
|
220
230
|
# @return [::Array<::String>]
|
|
221
231
|
# Optional. A list of alternative names or synonyms that can be used to refer
|
|
222
|
-
# to this field. For example: ["id", "customerid", "cust_id"]
|
|
232
|
+
# to this field. For example: ["id", "customerid", "cust_id"]. Currently only
|
|
233
|
+
# used for BigQuery data sources.
|
|
223
234
|
# @!attribute [rw] tags
|
|
224
235
|
# @return [::Array<::String>]
|
|
225
236
|
# Optional. A list of tags or keywords associated with the field, used for
|
|
226
|
-
# categorization. For example: ["identifier", "customer", "pii"]
|
|
237
|
+
# categorization. For example: ["identifier", "customer", "pii"]. Currently
|
|
238
|
+
# only used for BigQuery data sources.
|
|
227
239
|
# @!attribute [rw] display_name
|
|
228
240
|
# @return [::String]
|
|
229
241
|
# Optional. Field display_name (same as label in
|