google-cloud-gemini_data_analytics-v1beta 0.3.1 → 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 +1 -1
- 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 +107 -6
- 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
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0f4bb4c6c74223477e145231e4ce970757e30ab994371107a08a5e3a7375c04b
|
|
4
|
+
data.tar.gz: 454a60a2b55e7263f57c16c7a39c0c86aac4d5ac0f3cfab5706f100c7a502eb5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cc03e6b1efaf2d0986c1299d259c2d2e778785cafc51848542482e3dabe9c54e2aadc02709e8d058182d5a208f6065385a58579e174f97c3f3e6123cf0e6dfb0
|
|
7
|
+
data.tar.gz: 891c283185713485e61a155186482b66b9fe7db729c09a8841474826c531806509609cfdc141055464b42109238e67506e32c1a60b9596d2f37b0112f7e205a0
|
|
@@ -71,7 +71,7 @@ module Google
|
|
|
71
71
|
end
|
|
72
72
|
default_config = Client::Configuration.new parent_config
|
|
73
73
|
|
|
74
|
-
default_config.timeout =
|
|
74
|
+
default_config.timeout = 600.0
|
|
75
75
|
default_config.retry_policy = {
|
|
76
76
|
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
77
77
|
}
|
|
@@ -73,7 +73,7 @@ module Google
|
|
|
73
73
|
end
|
|
74
74
|
default_config = Client::Configuration.new parent_config
|
|
75
75
|
|
|
76
|
-
default_config.timeout =
|
|
76
|
+
default_config.timeout = 600.0
|
|
77
77
|
default_config.retry_policy = {
|
|
78
78
|
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
79
79
|
}
|
|
@@ -73,7 +73,7 @@ module Google
|
|
|
73
73
|
end
|
|
74
74
|
default_config = Client::Configuration.new parent_config
|
|
75
75
|
|
|
76
|
-
default_config.timeout =
|
|
76
|
+
default_config.timeout = 600.0
|
|
77
77
|
default_config.retry_policy = {
|
|
78
78
|
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
79
79
|
}
|
|
@@ -220,7 +220,7 @@ module Google
|
|
|
220
220
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
221
221
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
222
222
|
#
|
|
223
|
-
# @overload chat(inline_context: nil, conversation_reference: nil, data_agent_context: nil, project: nil, parent: nil, messages: nil)
|
|
223
|
+
# @overload chat(inline_context: nil, conversation_reference: nil, data_agent_context: nil, client_managed_resource_context: nil, project: nil, parent: nil, messages: nil)
|
|
224
224
|
# Pass arguments to `chat` via keyword arguments. Note that at
|
|
225
225
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
226
226
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -230,17 +230,24 @@ module Google
|
|
|
230
230
|
# statelessly (without managed conversation persistence and without an
|
|
231
231
|
# Agent) by passing all context inline.
|
|
232
232
|
#
|
|
233
|
-
# Note: The following parameters are mutually exclusive: `inline_context`, `conversation_reference`, `data_agent_context`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
|
233
|
+
# Note: The following parameters are mutually exclusive: `inline_context`, `conversation_reference`, `data_agent_context`, `client_managed_resource_context`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
|
234
234
|
# @param conversation_reference [::Google::Cloud::GeminiDataAnalytics::V1beta::ConversationReference, ::Hash]
|
|
235
235
|
# Optional. Reference to a persisted conversation and agent context.
|
|
236
236
|
# Use this to chat with an Agent using managed conversation persistence.
|
|
237
237
|
#
|
|
238
|
-
# Note: The following parameters are mutually exclusive: `conversation_reference`, `inline_context`, `data_agent_context`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
|
238
|
+
# Note: The following parameters are mutually exclusive: `conversation_reference`, `inline_context`, `data_agent_context`, `client_managed_resource_context`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
|
239
239
|
# @param data_agent_context [::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentContext, ::Hash]
|
|
240
240
|
# Optional. Context for the chat request. Use this to chat with an Agent
|
|
241
241
|
# statelessly, without managed conversation persistence.
|
|
242
242
|
#
|
|
243
|
-
# Note: The following parameters are mutually exclusive: `data_agent_context`, `inline_context`, `conversation_reference`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
|
243
|
+
# Note: The following parameters are mutually exclusive: `data_agent_context`, `inline_context`, `conversation_reference`, `client_managed_resource_context`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
|
244
|
+
# @param client_managed_resource_context [::Google::Cloud::GeminiDataAnalytics::V1beta::ClientManagedResourceContext, ::Hash]
|
|
245
|
+
# Optional. Context with client managed resources.
|
|
246
|
+
# Some clients may not use GDA managed resources including
|
|
247
|
+
# conversations and agents, instead they create and manage their own
|
|
248
|
+
# conversations and agents resources.
|
|
249
|
+
#
|
|
250
|
+
# Note: The following parameters are mutually exclusive: `client_managed_resource_context`, `inline_context`, `conversation_reference`, `data_agent_context`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
|
244
251
|
# @param project [::String]
|
|
245
252
|
# Optional. The Google Cloud project to be used for quota and billing.
|
|
246
253
|
# @param parent [::String]
|
|
@@ -415,6 +422,93 @@ module Google
|
|
|
415
422
|
raise ::Google::Cloud::Error.from_error(e)
|
|
416
423
|
end
|
|
417
424
|
|
|
425
|
+
##
|
|
426
|
+
# Deletes a conversation.
|
|
427
|
+
#
|
|
428
|
+
# @overload delete_conversation(request, options = nil)
|
|
429
|
+
# Pass arguments to `delete_conversation` via a request object, either of type
|
|
430
|
+
# {::Google::Cloud::GeminiDataAnalytics::V1beta::DeleteConversationRequest} or an equivalent Hash.
|
|
431
|
+
#
|
|
432
|
+
# @param request [::Google::Cloud::GeminiDataAnalytics::V1beta::DeleteConversationRequest, ::Hash]
|
|
433
|
+
# A request object representing the call parameters. Required. To specify no
|
|
434
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
435
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
436
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
437
|
+
#
|
|
438
|
+
# @overload delete_conversation(name: nil)
|
|
439
|
+
# Pass arguments to `delete_conversation` via keyword arguments. Note that at
|
|
440
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
441
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
442
|
+
#
|
|
443
|
+
# @param name [::String]
|
|
444
|
+
# Required. Name of the resource.
|
|
445
|
+
# Format:
|
|
446
|
+
# `projects/{project}/locations/{location}/conversations/{conversation}`
|
|
447
|
+
#
|
|
448
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
449
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
|
450
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
451
|
+
#
|
|
452
|
+
# @return [::Google::Protobuf::Empty]
|
|
453
|
+
#
|
|
454
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
455
|
+
#
|
|
456
|
+
# @example Basic example
|
|
457
|
+
# require "google/cloud/gemini_data_analytics/v1beta"
|
|
458
|
+
#
|
|
459
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
460
|
+
# client = Google::Cloud::GeminiDataAnalytics::V1beta::DataChatService::Client.new
|
|
461
|
+
#
|
|
462
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
463
|
+
# request = Google::Cloud::GeminiDataAnalytics::V1beta::DeleteConversationRequest.new
|
|
464
|
+
#
|
|
465
|
+
# # Call the delete_conversation method.
|
|
466
|
+
# result = client.delete_conversation request
|
|
467
|
+
#
|
|
468
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
|
469
|
+
# p result
|
|
470
|
+
#
|
|
471
|
+
def delete_conversation request, options = nil
|
|
472
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
473
|
+
|
|
474
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::GeminiDataAnalytics::V1beta::DeleteConversationRequest
|
|
475
|
+
|
|
476
|
+
# Converts hash and nil to an options object
|
|
477
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
478
|
+
|
|
479
|
+
# Customize the options with defaults
|
|
480
|
+
metadata = @config.rpcs.delete_conversation.metadata.to_h
|
|
481
|
+
|
|
482
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
483
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
484
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
485
|
+
gapic_version: ::Google::Cloud::GeminiDataAnalytics::V1beta::VERSION
|
|
486
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
487
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
488
|
+
|
|
489
|
+
header_params = {}
|
|
490
|
+
if request.name
|
|
491
|
+
header_params["name"] = request.name
|
|
492
|
+
end
|
|
493
|
+
|
|
494
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
495
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
496
|
+
|
|
497
|
+
options.apply_defaults timeout: @config.rpcs.delete_conversation.timeout,
|
|
498
|
+
metadata: metadata,
|
|
499
|
+
retry_policy: @config.rpcs.delete_conversation.retry_policy
|
|
500
|
+
|
|
501
|
+
options.apply_defaults timeout: @config.timeout,
|
|
502
|
+
metadata: @config.metadata,
|
|
503
|
+
retry_policy: @config.retry_policy
|
|
504
|
+
|
|
505
|
+
@data_chat_service_stub.call_rpc :delete_conversation, request, options: options do |response, operation|
|
|
506
|
+
yield response, operation if block_given?
|
|
507
|
+
end
|
|
508
|
+
rescue ::GRPC::BadStatus => e
|
|
509
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
510
|
+
end
|
|
511
|
+
|
|
418
512
|
##
|
|
419
513
|
# Gets details of a single conversation by using conversation id and parent.
|
|
420
514
|
#
|
|
@@ -532,7 +626,7 @@ module Google
|
|
|
532
626
|
# @param filter [::String]
|
|
533
627
|
# Optional. Returned conversations will match criteria specified within the
|
|
534
628
|
# filter. ListConversations allows filtering by:
|
|
535
|
-
# *
|
|
629
|
+
# * agents
|
|
536
630
|
# * labels
|
|
537
631
|
#
|
|
538
632
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
@@ -905,6 +999,11 @@ module Google
|
|
|
905
999
|
#
|
|
906
1000
|
attr_reader :create_conversation
|
|
907
1001
|
##
|
|
1002
|
+
# RPC-specific configuration for `delete_conversation`
|
|
1003
|
+
# @return [::Gapic::Config::Method]
|
|
1004
|
+
#
|
|
1005
|
+
attr_reader :delete_conversation
|
|
1006
|
+
##
|
|
908
1007
|
# RPC-specific configuration for `get_conversation`
|
|
909
1008
|
# @return [::Gapic::Config::Method]
|
|
910
1009
|
#
|
|
@@ -926,6 +1025,8 @@ module Google
|
|
|
926
1025
|
@chat = ::Gapic::Config::Method.new chat_config
|
|
927
1026
|
create_conversation_config = parent_rpcs.create_conversation if parent_rpcs.respond_to? :create_conversation
|
|
928
1027
|
@create_conversation = ::Gapic::Config::Method.new create_conversation_config
|
|
1028
|
+
delete_conversation_config = parent_rpcs.delete_conversation if parent_rpcs.respond_to? :delete_conversation
|
|
1029
|
+
@delete_conversation = ::Gapic::Config::Method.new delete_conversation_config
|
|
929
1030
|
get_conversation_config = parent_rpcs.get_conversation if parent_rpcs.respond_to? :get_conversation
|
|
930
1031
|
@get_conversation = ::Gapic::Config::Method.new get_conversation_config
|
|
931
1032
|
list_conversations_config = parent_rpcs.list_conversations if parent_rpcs.respond_to? :list_conversations
|
|
@@ -75,7 +75,7 @@ module Google
|
|
|
75
75
|
end
|
|
76
76
|
default_config = Client::Configuration.new parent_config
|
|
77
77
|
|
|
78
|
-
default_config.timeout =
|
|
78
|
+
default_config.timeout = 600.0
|
|
79
79
|
default_config.retry_policy = {
|
|
80
80
|
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
81
81
|
}
|
|
@@ -214,7 +214,7 @@ module Google
|
|
|
214
214
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
215
215
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
216
216
|
#
|
|
217
|
-
# @overload chat(inline_context: nil, conversation_reference: nil, data_agent_context: nil, project: nil, parent: nil, messages: nil)
|
|
217
|
+
# @overload chat(inline_context: nil, conversation_reference: nil, data_agent_context: nil, client_managed_resource_context: nil, project: nil, parent: nil, messages: nil)
|
|
218
218
|
# Pass arguments to `chat` via keyword arguments. Note that at
|
|
219
219
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
220
220
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -224,17 +224,24 @@ module Google
|
|
|
224
224
|
# statelessly (without managed conversation persistence and without an
|
|
225
225
|
# Agent) by passing all context inline.
|
|
226
226
|
#
|
|
227
|
-
# Note: The following parameters are mutually exclusive: `inline_context`, `conversation_reference`, `data_agent_context`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
|
227
|
+
# Note: The following parameters are mutually exclusive: `inline_context`, `conversation_reference`, `data_agent_context`, `client_managed_resource_context`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
|
228
228
|
# @param conversation_reference [::Google::Cloud::GeminiDataAnalytics::V1beta::ConversationReference, ::Hash]
|
|
229
229
|
# Optional. Reference to a persisted conversation and agent context.
|
|
230
230
|
# Use this to chat with an Agent using managed conversation persistence.
|
|
231
231
|
#
|
|
232
|
-
# Note: The following parameters are mutually exclusive: `conversation_reference`, `inline_context`, `data_agent_context`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
|
232
|
+
# Note: The following parameters are mutually exclusive: `conversation_reference`, `inline_context`, `data_agent_context`, `client_managed_resource_context`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
|
233
233
|
# @param data_agent_context [::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentContext, ::Hash]
|
|
234
234
|
# Optional. Context for the chat request. Use this to chat with an Agent
|
|
235
235
|
# statelessly, without managed conversation persistence.
|
|
236
236
|
#
|
|
237
|
-
# Note: The following parameters are mutually exclusive: `data_agent_context`, `inline_context`, `conversation_reference`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
|
237
|
+
# Note: The following parameters are mutually exclusive: `data_agent_context`, `inline_context`, `conversation_reference`, `client_managed_resource_context`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
|
238
|
+
# @param client_managed_resource_context [::Google::Cloud::GeminiDataAnalytics::V1beta::ClientManagedResourceContext, ::Hash]
|
|
239
|
+
# Optional. Context with client managed resources.
|
|
240
|
+
# Some clients may not use GDA managed resources including
|
|
241
|
+
# conversations and agents, instead they create and manage their own
|
|
242
|
+
# conversations and agents resources.
|
|
243
|
+
#
|
|
244
|
+
# Note: The following parameters are mutually exclusive: `client_managed_resource_context`, `inline_context`, `conversation_reference`, `data_agent_context`. At most one of these parameters can be set. If more than one is set, only one will be used, and it is not defined which one.
|
|
238
245
|
# @param project [::String]
|
|
239
246
|
# Optional. The Google Cloud project to be used for quota and billing.
|
|
240
247
|
# @param parent [::String]
|
|
@@ -397,6 +404,86 @@ module Google
|
|
|
397
404
|
raise ::Google::Cloud::Error.from_error(e)
|
|
398
405
|
end
|
|
399
406
|
|
|
407
|
+
##
|
|
408
|
+
# Deletes a conversation.
|
|
409
|
+
#
|
|
410
|
+
# @overload delete_conversation(request, options = nil)
|
|
411
|
+
# Pass arguments to `delete_conversation` via a request object, either of type
|
|
412
|
+
# {::Google::Cloud::GeminiDataAnalytics::V1beta::DeleteConversationRequest} or an equivalent Hash.
|
|
413
|
+
#
|
|
414
|
+
# @param request [::Google::Cloud::GeminiDataAnalytics::V1beta::DeleteConversationRequest, ::Hash]
|
|
415
|
+
# A request object representing the call parameters. Required. To specify no
|
|
416
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
417
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
418
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
419
|
+
#
|
|
420
|
+
# @overload delete_conversation(name: nil)
|
|
421
|
+
# Pass arguments to `delete_conversation` via keyword arguments. Note that at
|
|
422
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
423
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
424
|
+
#
|
|
425
|
+
# @param name [::String]
|
|
426
|
+
# Required. Name of the resource.
|
|
427
|
+
# Format:
|
|
428
|
+
# `projects/{project}/locations/{location}/conversations/{conversation}`
|
|
429
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
430
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
|
431
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
432
|
+
#
|
|
433
|
+
# @return [::Google::Protobuf::Empty]
|
|
434
|
+
#
|
|
435
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
436
|
+
#
|
|
437
|
+
# @example Basic example
|
|
438
|
+
# require "google/cloud/gemini_data_analytics/v1beta"
|
|
439
|
+
#
|
|
440
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
441
|
+
# client = Google::Cloud::GeminiDataAnalytics::V1beta::DataChatService::Rest::Client.new
|
|
442
|
+
#
|
|
443
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
444
|
+
# request = Google::Cloud::GeminiDataAnalytics::V1beta::DeleteConversationRequest.new
|
|
445
|
+
#
|
|
446
|
+
# # Call the delete_conversation method.
|
|
447
|
+
# result = client.delete_conversation request
|
|
448
|
+
#
|
|
449
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
|
450
|
+
# p result
|
|
451
|
+
#
|
|
452
|
+
def delete_conversation request, options = nil
|
|
453
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
454
|
+
|
|
455
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::GeminiDataAnalytics::V1beta::DeleteConversationRequest
|
|
456
|
+
|
|
457
|
+
# Converts hash and nil to an options object
|
|
458
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
459
|
+
|
|
460
|
+
# Customize the options with defaults
|
|
461
|
+
call_metadata = @config.rpcs.delete_conversation.metadata.to_h
|
|
462
|
+
|
|
463
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
464
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
465
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
466
|
+
gapic_version: ::Google::Cloud::GeminiDataAnalytics::V1beta::VERSION,
|
|
467
|
+
transports_version_send: [:rest]
|
|
468
|
+
|
|
469
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
470
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
471
|
+
|
|
472
|
+
options.apply_defaults timeout: @config.rpcs.delete_conversation.timeout,
|
|
473
|
+
metadata: call_metadata,
|
|
474
|
+
retry_policy: @config.rpcs.delete_conversation.retry_policy
|
|
475
|
+
|
|
476
|
+
options.apply_defaults timeout: @config.timeout,
|
|
477
|
+
metadata: @config.metadata,
|
|
478
|
+
retry_policy: @config.retry_policy
|
|
479
|
+
|
|
480
|
+
@data_chat_service_stub.delete_conversation request, options do |result, operation|
|
|
481
|
+
yield result, operation if block_given?
|
|
482
|
+
end
|
|
483
|
+
rescue ::Gapic::Rest::Error => e
|
|
484
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
485
|
+
end
|
|
486
|
+
|
|
400
487
|
##
|
|
401
488
|
# Gets details of a single conversation by using conversation id and parent.
|
|
402
489
|
#
|
|
@@ -507,7 +594,7 @@ module Google
|
|
|
507
594
|
# @param filter [::String]
|
|
508
595
|
# Optional. Returned conversations will match criteria specified within the
|
|
509
596
|
# filter. ListConversations allows filtering by:
|
|
510
|
-
# *
|
|
597
|
+
# * agents
|
|
511
598
|
# * labels
|
|
512
599
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
513
600
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::GeminiDataAnalytics::V1beta::Conversation>]
|
|
@@ -836,6 +923,11 @@ module Google
|
|
|
836
923
|
#
|
|
837
924
|
attr_reader :create_conversation
|
|
838
925
|
##
|
|
926
|
+
# RPC-specific configuration for `delete_conversation`
|
|
927
|
+
# @return [::Gapic::Config::Method]
|
|
928
|
+
#
|
|
929
|
+
attr_reader :delete_conversation
|
|
930
|
+
##
|
|
839
931
|
# RPC-specific configuration for `get_conversation`
|
|
840
932
|
# @return [::Gapic::Config::Method]
|
|
841
933
|
#
|
|
@@ -857,6 +949,8 @@ module Google
|
|
|
857
949
|
@chat = ::Gapic::Config::Method.new chat_config
|
|
858
950
|
create_conversation_config = parent_rpcs.create_conversation if parent_rpcs.respond_to? :create_conversation
|
|
859
951
|
@create_conversation = ::Gapic::Config::Method.new create_conversation_config
|
|
952
|
+
delete_conversation_config = parent_rpcs.delete_conversation if parent_rpcs.respond_to? :delete_conversation
|
|
953
|
+
@delete_conversation = ::Gapic::Config::Method.new delete_conversation_config
|
|
860
954
|
get_conversation_config = parent_rpcs.get_conversation if parent_rpcs.respond_to? :get_conversation
|
|
861
955
|
@get_conversation = ::Gapic::Config::Method.new get_conversation_config
|
|
862
956
|
list_conversations_config = parent_rpcs.list_conversations if parent_rpcs.respond_to? :list_conversations
|
|
@@ -147,6 +147,46 @@ module Google
|
|
|
147
147
|
end
|
|
148
148
|
end
|
|
149
149
|
|
|
150
|
+
##
|
|
151
|
+
# Baseline implementation for the delete_conversation REST call
|
|
152
|
+
#
|
|
153
|
+
# @param request_pb [::Google::Cloud::GeminiDataAnalytics::V1beta::DeleteConversationRequest]
|
|
154
|
+
# A request object representing the call parameters. Required.
|
|
155
|
+
# @param options [::Gapic::CallOptions]
|
|
156
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
157
|
+
#
|
|
158
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
159
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
|
160
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
161
|
+
#
|
|
162
|
+
# @return [::Google::Protobuf::Empty]
|
|
163
|
+
# A result object deserialized from the server's reply
|
|
164
|
+
def delete_conversation request_pb, options = nil
|
|
165
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
166
|
+
|
|
167
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_conversation_request request_pb
|
|
168
|
+
query_string_params = if query_string_params.any?
|
|
169
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
170
|
+
else
|
|
171
|
+
{}
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
response = @client_stub.make_http_request(
|
|
175
|
+
verb,
|
|
176
|
+
uri: uri,
|
|
177
|
+
body: body || "",
|
|
178
|
+
params: query_string_params,
|
|
179
|
+
method_name: "delete_conversation",
|
|
180
|
+
options: options
|
|
181
|
+
)
|
|
182
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
183
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
|
184
|
+
catch :response do
|
|
185
|
+
yield result, operation if block_given?
|
|
186
|
+
result
|
|
187
|
+
end
|
|
188
|
+
end
|
|
189
|
+
|
|
150
190
|
##
|
|
151
191
|
# Baseline implementation for the get_conversation REST call
|
|
152
192
|
#
|
|
@@ -311,6 +351,27 @@ module Google
|
|
|
311
351
|
transcoder.transcode request_pb
|
|
312
352
|
end
|
|
313
353
|
|
|
354
|
+
##
|
|
355
|
+
# @private
|
|
356
|
+
#
|
|
357
|
+
# GRPC transcoding helper method for the delete_conversation REST call
|
|
358
|
+
#
|
|
359
|
+
# @param request_pb [::Google::Cloud::GeminiDataAnalytics::V1beta::DeleteConversationRequest]
|
|
360
|
+
# A request object representing the call parameters. Required.
|
|
361
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
362
|
+
# Uri, Body, Query string parameters
|
|
363
|
+
def self.transcode_delete_conversation_request request_pb
|
|
364
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
365
|
+
.with_bindings(
|
|
366
|
+
uri_method: :delete,
|
|
367
|
+
uri_template: "/v1beta/{name}",
|
|
368
|
+
matches: [
|
|
369
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/conversations/[^/]+/?$}, false]
|
|
370
|
+
]
|
|
371
|
+
)
|
|
372
|
+
transcoder.transcode request_pb
|
|
373
|
+
end
|
|
374
|
+
|
|
314
375
|
##
|
|
315
376
|
# @private
|
|
316
377
|
#
|
|
@@ -6,9 +6,10 @@ require 'google/protobuf'
|
|
|
6
6
|
|
|
7
7
|
require 'google/api/field_behavior_pb'
|
|
8
8
|
require 'google/cloud/geminidataanalytics/v1beta/datasource_pb'
|
|
9
|
+
require 'google/protobuf/wrappers_pb'
|
|
9
10
|
|
|
10
11
|
|
|
11
|
-
descriptor_data = "\n5google/cloud/geminidataanalytics/v1beta/context.proto\x12\'google.cloud.geminidataanalytics.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x38google/cloud/geminidataanalytics/v1beta/datasource.proto\"\
|
|
12
|
+
descriptor_data = "\n5google/cloud/geminidataanalytics/v1beta/context.proto\x12\'google.cloud.geminidataanalytics.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x38google/cloud/geminidataanalytics/v1beta/datasource.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xf9\x07\n\x07\x43ontext\x12\x1f\n\x12system_instruction\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x61\n\x15\x64\x61tasource_references\x18\x07 \x01(\x0b\x32=.google.cloud.geminidataanalytics.v1beta.DatasourceReferencesB\x03\xe0\x41\x02\x12R\n\x07options\x18\x03 \x01(\x0b\x32<.google.cloud.geminidataanalytics.v1beta.ConversationOptionsB\x03\xe0\x41\x01\x12S\n\x0f\x65xample_queries\x18\x05 \x03(\x0b\x32\x35.google.cloud.geminidataanalytics.v1beta.ExampleQueryB\x03\xe0\x41\x01\x12R\n\x0eglossary_terms\x18\x08 \x03(\x0b\x32\x35.google.cloud.geminidataanalytics.v1beta.GlossaryTermB\x03\xe0\x41\x01\x12\x66\n\x14schema_relationships\x18\t \x03(\x0b\x32\x43.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationshipB\x03\xe0\x41\x01\x1a\x84\x04\n\x12SchemaRelationship\x12j\n\x11left_schema_paths\x18\x01 \x01(\x0b\x32O.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths\x12k\n\x12right_schema_paths\x18\x02 \x01(\x0b\x32O.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths\x12[\n\x07sources\x18\x03 \x03(\x0e\x32J.google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source\x12\x18\n\x10\x63onfidence_score\x18\x04 \x01(\x02\x1a/\n\x0bSchemaPaths\x12\x11\n\ttable_fqn\x18\x01 \x01(\t\x12\r\n\x05paths\x18\x02 \x03(\t\"m\n\x06Source\x12\x16\n\x12SOURCE_UNSPECIFIED\x10\x00\x12\x18\n\x14\x42IGQUERY_JOB_HISTORY\x10\x01\x12\x11\n\rLLM_SUGGESTED\x10\x02\x12\x1e\n\x1a\x42IGQUERY_TABLE_CONSTRAINTS\x10\x03\"Y\n\x0c\x45xampleQuery\x12\x18\n\tsql_query\x18\x65 \x01(\tB\x03\xe0\x41\x01H\x00\x12&\n\x19natural_language_question\x18\x01 \x01(\tB\x03\xe0\x41\x01\x42\x07\n\x05query\"X\n\x0cGlossaryTerm\x12\x19\n\x0c\x64isplay_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06labels\x18\x03 \x03(\tB\x03\xe0\x41\x01\"\x86\x02\n\x13\x43onversationOptions\x12I\n\x05\x63hart\x18\x01 \x01(\x0b\x32\x35.google.cloud.geminidataanalytics.v1beta.ChartOptionsB\x03\xe0\x41\x01\x12O\n\x08\x61nalysis\x18\x02 \x01(\x0b\x32\x38.google.cloud.geminidataanalytics.v1beta.AnalysisOptionsB\x03\xe0\x41\x01\x12S\n\ndatasource\x18\x03 \x01(\x0b\x32:.google.cloud.geminidataanalytics.v1beta.DatasourceOptionsB\x03\xe0\x41\x01\"Y\n\x11\x44\x61tasourceOptions\x12\x44\n\x1a\x62ig_query_max_billed_bytes\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x03\xe0\x41\x01\"\xd6\x02\n\x0c\x43hartOptions\x12V\n\x05image\x18\x01 \x01(\x0b\x32\x42.google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptionsB\x03\xe0\x41\x01\x1a\xed\x01\n\x0cImageOptions\x12^\n\x08no_image\x18\x01 \x01(\x0b\x32J.google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions.NoImageH\x00\x12\\\n\x03svg\x18\x02 \x01(\x0b\x32M.google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions.SvgOptionsH\x00\x1a\t\n\x07NoImage\x1a\x0c\n\nSvgOptionsB\x06\n\x04kind\"\x87\x01\n\x0f\x41nalysisOptions\x12T\n\x06python\x18\x01 \x01(\x0b\x32?.google.cloud.geminidataanalytics.v1beta.AnalysisOptions.PythonB\x03\xe0\x41\x01\x1a\x1e\n\x06Python\x12\x14\n\x07\x65nabled\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x42\x9d\x02\n+com.google.cloud.geminidataanalytics.v1betaB\x0c\x43ontextProtoP\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.DatasourceReferences", "google/cloud/geminidataanalytics/v1beta/datasource.proto"],
|
|
28
|
+
["google.protobuf.Int64Value", "google/protobuf/wrappers.proto"],
|
|
27
29
|
]
|
|
28
30
|
imports.each do |type_name, expected_filename|
|
|
29
31
|
import_file = pool.lookup(type_name).file_descriptor
|
|
@@ -40,8 +42,13 @@ module Google
|
|
|
40
42
|
module GeminiDataAnalytics
|
|
41
43
|
module V1beta
|
|
42
44
|
Context = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.Context").msgclass
|
|
45
|
+
Context::SchemaRelationship = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship").msgclass
|
|
46
|
+
Context::SchemaRelationship::SchemaPaths = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.SchemaPaths").msgclass
|
|
47
|
+
Context::SchemaRelationship::Source = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.Context.SchemaRelationship.Source").enummodule
|
|
43
48
|
ExampleQuery = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.ExampleQuery").msgclass
|
|
49
|
+
GlossaryTerm = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.GlossaryTerm").msgclass
|
|
44
50
|
ConversationOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.ConversationOptions").msgclass
|
|
51
|
+
DatasourceOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.DatasourceOptions").msgclass
|
|
45
52
|
ChartOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.ChartOptions").msgclass
|
|
46
53
|
ChartOptions::ImageOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions").msgclass
|
|
47
54
|
ChartOptions::ImageOptions::NoImage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.ChartOptions.ImageOptions.NoImage").msgclass
|
|
@@ -10,7 +10,7 @@ require 'google/api/resource_pb'
|
|
|
10
10
|
require 'google/protobuf/timestamp_pb'
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
descriptor_data = "\n:google/cloud/geminidataanalytics/v1beta/conversation.proto\x12\'google.cloud.geminidataanalytics.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xca\x03\n\x0c\x43onversation\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x08\x12\x13\n\x06\x61gents\x18\x02 \x03(\tB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x37\n\x0elast_used_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12V\n\x06labels\x18\t \x03(\x0b\x32\x41.google.cloud.geminidataanalytics.v1beta.Conversation.LabelsEntryB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x98\x01\xea\x41\x94\x01\n/geminidataanalytics.googleapis.com/Conversation\x12\x44projects/{project}/locations/{location}/conversations/{conversation}*\rconversations2\x0c\x63onversation\"\xf5\x01\n\x19\x43reateConversationRequest\x12G\n\x06parent\x18\x01 \x01(\tB7\xe0\x41\x02\xfa\x41\x31\x12/geminidataanalytics.googleapis.com/Conversation\x12\x1c\n\x0f\x63onversation_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12P\n\x0c\x63onversation\x18\x03 \x01(\x0b\x32\x35.google.cloud.geminidataanalytics.v1beta.ConversationB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"_\n\x16GetConversationRequest\x12\x45\n\x04name\x18\x01 \x01(\tB7\xe0\x41\x02\xfa\x41\x31\n/geminidataanalytics.googleapis.com/Conversation\"\xa9\x01\n\x18ListConversationsRequest\x12G\n\x06parent\x18\x01 \x01(\tB7\xe0\x41\x02\xfa\x41\x31\x12/geminidataanalytics.googleapis.com/Conversation\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x82\x01\n\x19ListConversationsResponse\x12L\n\rconversations\x18\x01 \x03(\x0b\x32\x35.google.cloud.geminidataanalytics.v1beta.Conversation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\
|
|
13
|
+
descriptor_data = "\n:google/cloud/geminidataanalytics/v1beta/conversation.proto\x12\'google.cloud.geminidataanalytics.v1beta\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xca\x03\n\x0c\x43onversation\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x08\x12\x13\n\x06\x61gents\x18\x02 \x03(\tB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x37\n\x0elast_used_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12V\n\x06labels\x18\t \x03(\x0b\x32\x41.google.cloud.geminidataanalytics.v1beta.Conversation.LabelsEntryB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x98\x01\xea\x41\x94\x01\n/geminidataanalytics.googleapis.com/Conversation\x12\x44projects/{project}/locations/{location}/conversations/{conversation}*\rconversations2\x0c\x63onversation\"\xf5\x01\n\x19\x43reateConversationRequest\x12G\n\x06parent\x18\x01 \x01(\tB7\xe0\x41\x02\xfa\x41\x31\x12/geminidataanalytics.googleapis.com/Conversation\x12\x1c\n\x0f\x63onversation_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12P\n\x0c\x63onversation\x18\x03 \x01(\x0b\x32\x35.google.cloud.geminidataanalytics.v1beta.ConversationB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"_\n\x16GetConversationRequest\x12\x45\n\x04name\x18\x01 \x01(\tB7\xe0\x41\x02\xfa\x41\x31\n/geminidataanalytics.googleapis.com/Conversation\"\xa9\x01\n\x18ListConversationsRequest\x12G\n\x06parent\x18\x01 \x01(\tB7\xe0\x41\x02\xfa\x41\x31\x12/geminidataanalytics.googleapis.com/Conversation\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x82\x01\n\x19ListConversationsResponse\x12L\n\rconversations\x18\x01 \x03(\x0b\x32\x35.google.cloud.geminidataanalytics.v1beta.Conversation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"b\n\x19\x44\x65leteConversationRequest\x12\x45\n\x04name\x18\x01 \x01(\tB7\xe0\x41\x02\xfa\x41\x31\n/geminidataanalytics.googleapis.com/ConversationB\xa2\x02\n+com.google.cloud.geminidataanalytics.v1betaB\x11\x43onversationProtoP\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
|
|
|
@@ -46,6 +46,7 @@ module Google
|
|
|
46
46
|
GetConversationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.GetConversationRequest").msgclass
|
|
47
47
|
ListConversationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.ListConversationsRequest").msgclass
|
|
48
48
|
ListConversationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.ListConversationsResponse").msgclass
|
|
49
|
+
DeleteConversationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.geminidataanalytics.v1beta.DeleteConversationRequest").msgclass
|
|
49
50
|
end
|
|
50
51
|
end
|
|
51
52
|
end
|
|
@@ -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
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2025 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Protobuf
|
|
22
|
+
# Wrapper message for `double`.
|
|
23
|
+
#
|
|
24
|
+
# The JSON representation for `DoubleValue` is JSON number.
|
|
25
|
+
# @!attribute [rw] value
|
|
26
|
+
# @return [::Float]
|
|
27
|
+
# The double value.
|
|
28
|
+
class DoubleValue
|
|
29
|
+
include ::Google::Protobuf::MessageExts
|
|
30
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Wrapper message for `float`.
|
|
34
|
+
#
|
|
35
|
+
# The JSON representation for `FloatValue` is JSON number.
|
|
36
|
+
# @!attribute [rw] value
|
|
37
|
+
# @return [::Float]
|
|
38
|
+
# The float value.
|
|
39
|
+
class FloatValue
|
|
40
|
+
include ::Google::Protobuf::MessageExts
|
|
41
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Wrapper message for `int64`.
|
|
45
|
+
#
|
|
46
|
+
# The JSON representation for `Int64Value` is JSON string.
|
|
47
|
+
# @!attribute [rw] value
|
|
48
|
+
# @return [::Integer]
|
|
49
|
+
# The int64 value.
|
|
50
|
+
class Int64Value
|
|
51
|
+
include ::Google::Protobuf::MessageExts
|
|
52
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Wrapper message for `uint64`.
|
|
56
|
+
#
|
|
57
|
+
# The JSON representation for `UInt64Value` is JSON string.
|
|
58
|
+
# @!attribute [rw] value
|
|
59
|
+
# @return [::Integer]
|
|
60
|
+
# The uint64 value.
|
|
61
|
+
class UInt64Value
|
|
62
|
+
include ::Google::Protobuf::MessageExts
|
|
63
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# Wrapper message for `int32`.
|
|
67
|
+
#
|
|
68
|
+
# The JSON representation for `Int32Value` is JSON number.
|
|
69
|
+
# @!attribute [rw] value
|
|
70
|
+
# @return [::Integer]
|
|
71
|
+
# The int32 value.
|
|
72
|
+
class Int32Value
|
|
73
|
+
include ::Google::Protobuf::MessageExts
|
|
74
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# Wrapper message for `uint32`.
|
|
78
|
+
#
|
|
79
|
+
# The JSON representation for `UInt32Value` is JSON number.
|
|
80
|
+
# @!attribute [rw] value
|
|
81
|
+
# @return [::Integer]
|
|
82
|
+
# The uint32 value.
|
|
83
|
+
class UInt32Value
|
|
84
|
+
include ::Google::Protobuf::MessageExts
|
|
85
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Wrapper message for `bool`.
|
|
89
|
+
#
|
|
90
|
+
# The JSON representation for `BoolValue` is JSON `true` and `false`.
|
|
91
|
+
# @!attribute [rw] value
|
|
92
|
+
# @return [::Boolean]
|
|
93
|
+
# The bool value.
|
|
94
|
+
class BoolValue
|
|
95
|
+
include ::Google::Protobuf::MessageExts
|
|
96
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Wrapper message for `string`.
|
|
100
|
+
#
|
|
101
|
+
# The JSON representation for `StringValue` is JSON string.
|
|
102
|
+
# @!attribute [rw] value
|
|
103
|
+
# @return [::String]
|
|
104
|
+
# The string value.
|
|
105
|
+
class StringValue
|
|
106
|
+
include ::Google::Protobuf::MessageExts
|
|
107
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Wrapper message for `bytes`.
|
|
111
|
+
#
|
|
112
|
+
# The JSON representation for `BytesValue` is JSON string.
|
|
113
|
+
# @!attribute [rw] value
|
|
114
|
+
# @return [::String]
|
|
115
|
+
# The bytes value.
|
|
116
|
+
class BytesValue
|
|
117
|
+
include ::Google::Protobuf::MessageExts
|
|
118
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
119
|
+
end
|
|
120
|
+
end
|
|
121
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-gemini_data_analytics-v1beta
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -134,6 +134,7 @@ files:
|
|
|
134
134
|
- proto_docs/google/protobuf/field_mask.rb
|
|
135
135
|
- proto_docs/google/protobuf/struct.rb
|
|
136
136
|
- proto_docs/google/protobuf/timestamp.rb
|
|
137
|
+
- proto_docs/google/protobuf/wrappers.rb
|
|
137
138
|
- proto_docs/google/rpc/status.rb
|
|
138
139
|
- proto_docs/google/type/expr.rb
|
|
139
140
|
homepage: https://github.com/googleapis/google-cloud-ruby
|