google-apis-dialogflow_v2 0.67.0 → 0.69.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.
@@ -4236,6 +4236,40 @@ module Google
4236
4236
  execute_or_queue_command(command, &block)
4237
4237
  end
4238
4238
 
4239
+ # Get answers for the given query based on knowledge documents.
4240
+ # @param [String] conversation
4241
+ # The conversation (between human agent and end user) where the search request
4242
+ # is triggered. Format: `projects//locations//conversations/`.
4243
+ # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeRequest] google_cloud_dialogflow_v2_search_knowledge_request_object
4244
+ # @param [String] fields
4245
+ # Selector specifying which fields to include in a partial response.
4246
+ # @param [String] quota_user
4247
+ # Available to use for quota purposes for server-side applications. Can be any
4248
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4249
+ # @param [Google::Apis::RequestOptions] options
4250
+ # Request-specific options
4251
+ #
4252
+ # @yield [result, err] Result & error if block supplied
4253
+ # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeResponse] parsed result object
4254
+ # @yieldparam err [StandardError] error object if request failed
4255
+ #
4256
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeResponse]
4257
+ #
4258
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4259
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4260
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4261
+ def search_project_conversation_suggestion_knowledge(conversation, google_cloud_dialogflow_v2_search_knowledge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4262
+ command = make_simple_command(:post, 'v2/{+conversation}/suggestions:searchKnowledge', options)
4263
+ command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeRequest::Representation
4264
+ command.request_object = google_cloud_dialogflow_v2_search_knowledge_request_object
4265
+ command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeResponse::Representation
4266
+ command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeResponse
4267
+ command.params['conversation'] = conversation unless conversation.nil?
4268
+ command.query['fields'] = fields unless fields.nil?
4269
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4270
+ execute_or_queue_command(command, &block)
4271
+ end
4272
+
4239
4273
  # Suggests summary for a conversation based on specific historical messages. The
4240
4274
  # range of the messages to be used for summary can be specified in the request.
4241
4275
  # @param [String] conversation
@@ -8715,6 +8749,40 @@ module Google
8715
8749
  execute_or_queue_command(command, &block)
8716
8750
  end
8717
8751
 
8752
+ # Get answers for the given query based on knowledge documents.
8753
+ # @param [String] conversation
8754
+ # The conversation (between human agent and end user) where the search request
8755
+ # is triggered. Format: `projects//locations//conversations/`.
8756
+ # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeRequest] google_cloud_dialogflow_v2_search_knowledge_request_object
8757
+ # @param [String] fields
8758
+ # Selector specifying which fields to include in a partial response.
8759
+ # @param [String] quota_user
8760
+ # Available to use for quota purposes for server-side applications. Can be any
8761
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8762
+ # @param [Google::Apis::RequestOptions] options
8763
+ # Request-specific options
8764
+ #
8765
+ # @yield [result, err] Result & error if block supplied
8766
+ # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeResponse] parsed result object
8767
+ # @yieldparam err [StandardError] error object if request failed
8768
+ #
8769
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeResponse]
8770
+ #
8771
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8772
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8773
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8774
+ def search_project_location_conversation_suggestion_knowledge(conversation, google_cloud_dialogflow_v2_search_knowledge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
8775
+ command = make_simple_command(:post, 'v2/{+conversation}/suggestions:searchKnowledge', options)
8776
+ command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeRequest::Representation
8777
+ command.request_object = google_cloud_dialogflow_v2_search_knowledge_request_object
8778
+ command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeResponse::Representation
8779
+ command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeResponse
8780
+ command.params['conversation'] = conversation unless conversation.nil?
8781
+ command.query['fields'] = fields unless fields.nil?
8782
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8783
+ execute_or_queue_command(command, &block)
8784
+ end
8785
+
8718
8786
  # Suggests summary for a conversation based on specific historical messages. The
8719
8787
  # range of the messages to be used for summary can be specified in the request.
8720
8788
  # @param [String] conversation
@@ -9397,6 +9465,40 @@ module Google
9397
9465
  execute_or_queue_command(command, &block)
9398
9466
  end
9399
9467
 
9468
+ # Get answers for the given query based on knowledge documents.
9469
+ # @param [String] parent
9470
+ # The parent resource contains the conversation profile Format: 'projects/' or `
9471
+ # projects//locations/`.
9472
+ # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeRequest] google_cloud_dialogflow_v2_search_knowledge_request_object
9473
+ # @param [String] fields
9474
+ # Selector specifying which fields to include in a partial response.
9475
+ # @param [String] quota_user
9476
+ # Available to use for quota purposes for server-side applications. Can be any
9477
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9478
+ # @param [Google::Apis::RequestOptions] options
9479
+ # Request-specific options
9480
+ #
9481
+ # @yield [result, err] Result & error if block supplied
9482
+ # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeResponse] parsed result object
9483
+ # @yieldparam err [StandardError] error object if request failed
9484
+ #
9485
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeResponse]
9486
+ #
9487
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9488
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9489
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9490
+ def search_project_location_suggestion_knowledge(parent, google_cloud_dialogflow_v2_search_knowledge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
9491
+ command = make_simple_command(:post, 'v2/{+parent}/suggestions:searchKnowledge', options)
9492
+ command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeRequest::Representation
9493
+ command.request_object = google_cloud_dialogflow_v2_search_knowledge_request_object
9494
+ command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeResponse::Representation
9495
+ command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeResponse
9496
+ command.params['parent'] = parent unless parent.nil?
9497
+ command.query['fields'] = fields unless fields.nil?
9498
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9499
+ execute_or_queue_command(command, &block)
9500
+ end
9501
+
9400
9502
  # Starts asynchronous cancellation on a long-running operation. The server makes
9401
9503
  # a best effort to cancel the operation, but success is not guaranteed. If the
9402
9504
  # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
@@ -9539,6 +9641,40 @@ module Google
9539
9641
  command.query['quotaUser'] = quota_user unless quota_user.nil?
9540
9642
  execute_or_queue_command(command, &block)
9541
9643
  end
9644
+
9645
+ # Get answers for the given query based on knowledge documents.
9646
+ # @param [String] parent
9647
+ # The parent resource contains the conversation profile Format: 'projects/' or `
9648
+ # projects//locations/`.
9649
+ # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeRequest] google_cloud_dialogflow_v2_search_knowledge_request_object
9650
+ # @param [String] fields
9651
+ # Selector specifying which fields to include in a partial response.
9652
+ # @param [String] quota_user
9653
+ # Available to use for quota purposes for server-side applications. Can be any
9654
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9655
+ # @param [Google::Apis::RequestOptions] options
9656
+ # Request-specific options
9657
+ #
9658
+ # @yield [result, err] Result & error if block supplied
9659
+ # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeResponse] parsed result object
9660
+ # @yieldparam err [StandardError] error object if request failed
9661
+ #
9662
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeResponse]
9663
+ #
9664
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9665
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9666
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9667
+ def search_project_suggestion_knowledge(parent, google_cloud_dialogflow_v2_search_knowledge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
9668
+ command = make_simple_command(:post, 'v2/{+parent}/suggestions:searchKnowledge', options)
9669
+ command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeRequest::Representation
9670
+ command.request_object = google_cloud_dialogflow_v2_search_knowledge_request_object
9671
+ command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeResponse::Representation
9672
+ command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeResponse
9673
+ command.params['parent'] = parent unless parent.nil?
9674
+ command.query['fields'] = fields unless fields.nil?
9675
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9676
+ execute_or_queue_command(command, &block)
9677
+ end
9542
9678
 
9543
9679
  protected
9544
9680
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-dialogflow_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.67.0
4
+ version: 0.69.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-20 00:00:00.000000000 Z
11
+ date: 2023-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2/v0.67.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2/v0.69.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v2
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.2
78
+ rubygems_version: 3.4.19
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Dialogflow API V2