google-cloud-gemini_data_analytics-v1beta 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (20) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/client.rb +21 -4
  3. data/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/operations.rb +20 -3
  4. data/lib/google/cloud/gemini_data_analytics/v1beta/data_agent_service/rest/client.rb +1 -1
  5. data/lib/google/cloud/gemini_data_analytics/v1beta/data_chat_service/client.rb +127 -9
  6. data/lib/google/cloud/gemini_data_analytics/v1beta/data_chat_service/rest/client.rb +100 -6
  7. data/lib/google/cloud/gemini_data_analytics/v1beta/data_chat_service/rest/service_stub.rb +61 -0
  8. data/lib/google/cloud/gemini_data_analytics/v1beta/version.rb +1 -1
  9. data/lib/google/cloud/geminidataanalytics/v1beta/context_pb.rb +8 -1
  10. data/lib/google/cloud/geminidataanalytics/v1beta/conversation_pb.rb +2 -1
  11. data/lib/google/cloud/geminidataanalytics/v1beta/data_chat_service_pb.rb +5 -1
  12. data/lib/google/cloud/geminidataanalytics/v1beta/data_chat_service_services_pb.rb +2 -0
  13. data/lib/google/cloud/geminidataanalytics/v1beta/datasource_pb.rb +3 -1
  14. data/proto_docs/google/cloud/geminidataanalytics/v1beta/context.rb +100 -2
  15. data/proto_docs/google/cloud/geminidataanalytics/v1beta/conversation.rb +13 -2
  16. data/proto_docs/google/cloud/geminidataanalytics/v1beta/data_agent.rb +1 -1
  17. data/proto_docs/google/cloud/geminidataanalytics/v1beta/data_chat_service.rb +94 -10
  18. data/proto_docs/google/cloud/geminidataanalytics/v1beta/datasource.rb +17 -5
  19. data/proto_docs/google/protobuf/wrappers.rb +121 -0
  20. metadata +2 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d78b64705b88f1d79cd3ccc6629f22bff18a8c729db853dfe1b7bc38731a0b90
4
- data.tar.gz: 6525552385f229768e2e477d665da6f186ad4b4be5cf9f27b320ab8057275db7
3
+ metadata.gz: 0f4bb4c6c74223477e145231e4ce970757e30ab994371107a08a5e3a7375c04b
4
+ data.tar.gz: 454a60a2b55e7263f57c16c7a39c0c86aac4d5ac0f3cfab5706f100c7a502eb5
5
5
  SHA512:
6
- metadata.gz: f31bdaa2ca25cd5f61d2d915f7dac52e17c128ce835343fcf739a8a550fae57f9d20c1c6600e17f2e7fc5da98e64a667e570646757fa9a67d68ee0f385348d62
7
- data.tar.gz: 129c294a23c9e83625d70f1871b8c2a765fbab35481fef24456c25ba247dbaf73527c90522505318fcdb34e40731b0872bbb54634aa46b8f76249753705ff875
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 = 60.0
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
  }
@@ -1083,8 +1083,6 @@ module Google
1083
1083
  # @return [::String,nil]
1084
1084
  # @!attribute [rw] credentials
1085
1085
  # Credentials to send with calls. You may provide any of the following types:
1086
- # * (`String`) The path to a service account key file in JSON format
1087
- # * (`Hash`) A service account key as a Hash
1088
1086
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1089
1087
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1090
1088
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -1093,7 +1091,26 @@ module Google
1093
1091
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1094
1092
  # * (`nil`) indicating no credentials
1095
1093
  #
1096
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1094
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1095
+ # is deprecated. Providing an unvalidated credential configuration to
1096
+ # Google APIs can compromise the security of your systems and data.
1097
+ #
1098
+ # @example
1099
+ #
1100
+ # # The recommended way to provide credentials is to use the `make_creds` method
1101
+ # # on the appropriate credentials class for your environment.
1102
+ #
1103
+ # require "googleauth"
1104
+ #
1105
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1106
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1107
+ # )
1108
+ #
1109
+ # client = ::Google::Cloud::GeminiDataAnalytics::V1beta::DataAgentService::Client.new do |config|
1110
+ # config.credentials = credentials
1111
+ # end
1112
+ #
1113
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1097
1114
  # external source for authentication to Google Cloud, you must validate it before
1098
1115
  # providing it to a Google API client library. Providing an unvalidated credential
1099
1116
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -642,8 +642,6 @@ module Google
642
642
  # @return [::String,nil]
643
643
  # @!attribute [rw] credentials
644
644
  # Credentials to send with calls. You may provide any of the following types:
645
- # * (`String`) The path to a service account key file in JSON format
646
- # * (`Hash`) A service account key as a Hash
647
645
  # * (`Google::Auth::Credentials`) A googleauth credentials object
648
646
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
649
647
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -652,7 +650,26 @@ module Google
652
650
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
653
651
  # * (`nil`) indicating no credentials
654
652
  #
655
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
653
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
654
+ # is deprecated. Providing an unvalidated credential configuration to
655
+ # Google APIs can compromise the security of your systems and data.
656
+ #
657
+ # @example
658
+ #
659
+ # # The recommended way to provide credentials is to use the `make_creds` method
660
+ # # on the appropriate credentials class for your environment.
661
+ #
662
+ # require "googleauth"
663
+ #
664
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
665
+ # json_key_io: ::File.open("/path/to/keyfile.json")
666
+ # )
667
+ #
668
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
669
+ # config.credentials = credentials
670
+ # end
671
+ #
672
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
656
673
  # external source for authentication to Google Cloud, you must validate it before
657
674
  # providing it to a Google API client library. Providing an unvalidated credential
658
675
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -73,7 +73,7 @@ module Google
73
73
  end
74
74
  default_config = Client::Configuration.new parent_config
75
75
 
76
- default_config.timeout = 60.0
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 = 60.0
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
- # * agent_id
629
+ # * agents
536
630
  # * labels
537
631
  #
538
632
  # @yield [response, operation] Access the result along with the RPC operation
@@ -746,8 +840,6 @@ module Google
746
840
  # @return [::String,nil]
747
841
  # @!attribute [rw] credentials
748
842
  # Credentials to send with calls. You may provide any of the following types:
749
- # * (`String`) The path to a service account key file in JSON format
750
- # * (`Hash`) A service account key as a Hash
751
843
  # * (`Google::Auth::Credentials`) A googleauth credentials object
752
844
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
753
845
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -756,7 +848,26 @@ module Google
756
848
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
757
849
  # * (`nil`) indicating no credentials
758
850
  #
759
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
851
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
852
+ # is deprecated. Providing an unvalidated credential configuration to
853
+ # Google APIs can compromise the security of your systems and data.
854
+ #
855
+ # @example
856
+ #
857
+ # # The recommended way to provide credentials is to use the `make_creds` method
858
+ # # on the appropriate credentials class for your environment.
859
+ #
860
+ # require "googleauth"
861
+ #
862
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
863
+ # json_key_io: ::File.open("/path/to/keyfile.json")
864
+ # )
865
+ #
866
+ # client = ::Google::Cloud::GeminiDataAnalytics::V1beta::DataChatService::Client.new do |config|
867
+ # config.credentials = credentials
868
+ # end
869
+ #
870
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
760
871
  # external source for authentication to Google Cloud, you must validate it before
761
872
  # providing it to a Google API client library. Providing an unvalidated credential
762
873
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -888,6 +999,11 @@ module Google
888
999
  #
889
1000
  attr_reader :create_conversation
890
1001
  ##
1002
+ # RPC-specific configuration for `delete_conversation`
1003
+ # @return [::Gapic::Config::Method]
1004
+ #
1005
+ attr_reader :delete_conversation
1006
+ ##
891
1007
  # RPC-specific configuration for `get_conversation`
892
1008
  # @return [::Gapic::Config::Method]
893
1009
  #
@@ -909,6 +1025,8 @@ module Google
909
1025
  @chat = ::Gapic::Config::Method.new chat_config
910
1026
  create_conversation_config = parent_rpcs.create_conversation if parent_rpcs.respond_to? :create_conversation
911
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
912
1030
  get_conversation_config = parent_rpcs.get_conversation if parent_rpcs.respond_to? :get_conversation
913
1031
  @get_conversation = ::Gapic::Config::Method.new get_conversation_config
914
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 = 60.0
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
- # * agent_id
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
  #
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module GeminiDataAnalytics
23
23
  module V1beta
24
- VERSION = "0.3.0"
24
+ VERSION = "0.4.0"
25
25
  end
26
26
  end
27
27
  end
@@ -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\"\xb6\x02\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\"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\"\xb1\x01\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\"\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
+ 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(\tB\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"
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