google-apis-dialogflow_v2beta1 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.
@@ -4085,6 +4085,40 @@ module Google
4085
4085
  execute_or_queue_command(command, &block)
4086
4086
  end
4087
4087
 
4088
+ # Get answers for the given query based on knowledge documents.
4089
+ # @param [String] conversation
4090
+ # The conversation (between human agent and end user) where the search request
4091
+ # is triggered. Format: `projects//locations//conversations/`.
4092
+ # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeRequest] google_cloud_dialogflow_v2beta1_search_knowledge_request_object
4093
+ # @param [String] fields
4094
+ # Selector specifying which fields to include in a partial response.
4095
+ # @param [String] quota_user
4096
+ # Available to use for quota purposes for server-side applications. Can be any
4097
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4098
+ # @param [Google::Apis::RequestOptions] options
4099
+ # Request-specific options
4100
+ #
4101
+ # @yield [result, err] Result & error if block supplied
4102
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeResponse] parsed result object
4103
+ # @yieldparam err [StandardError] error object if request failed
4104
+ #
4105
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeResponse]
4106
+ #
4107
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4108
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4109
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4110
+ def search_project_conversation_suggestion_knowledge(conversation, google_cloud_dialogflow_v2beta1_search_knowledge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4111
+ command = make_simple_command(:post, 'v2beta1/{+conversation}/suggestions:searchKnowledge', options)
4112
+ command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeRequest::Representation
4113
+ command.request_object = google_cloud_dialogflow_v2beta1_search_knowledge_request_object
4114
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeResponse::Representation
4115
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeResponse
4116
+ command.params['conversation'] = conversation unless conversation.nil?
4117
+ command.query['fields'] = fields unless fields.nil?
4118
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4119
+ execute_or_queue_command(command, &block)
4120
+ end
4121
+
4088
4122
  # Suggest summary for a conversation based on specific historical messages. The
4089
4123
  # range of the messages to be used for summary can be specified in the request.
4090
4124
  # @param [String] conversation
@@ -8173,6 +8207,40 @@ module Google
8173
8207
  execute_or_queue_command(command, &block)
8174
8208
  end
8175
8209
 
8210
+ # Get answers for the given query based on knowledge documents.
8211
+ # @param [String] conversation
8212
+ # The conversation (between human agent and end user) where the search request
8213
+ # is triggered. Format: `projects//locations//conversations/`.
8214
+ # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeRequest] google_cloud_dialogflow_v2beta1_search_knowledge_request_object
8215
+ # @param [String] fields
8216
+ # Selector specifying which fields to include in a partial response.
8217
+ # @param [String] quota_user
8218
+ # Available to use for quota purposes for server-side applications. Can be any
8219
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8220
+ # @param [Google::Apis::RequestOptions] options
8221
+ # Request-specific options
8222
+ #
8223
+ # @yield [result, err] Result & error if block supplied
8224
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeResponse] parsed result object
8225
+ # @yieldparam err [StandardError] error object if request failed
8226
+ #
8227
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeResponse]
8228
+ #
8229
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8230
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8231
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8232
+ def search_project_location_conversation_suggestion_knowledge(conversation, google_cloud_dialogflow_v2beta1_search_knowledge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
8233
+ command = make_simple_command(:post, 'v2beta1/{+conversation}/suggestions:searchKnowledge', options)
8234
+ command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeRequest::Representation
8235
+ command.request_object = google_cloud_dialogflow_v2beta1_search_knowledge_request_object
8236
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeResponse::Representation
8237
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeResponse
8238
+ command.params['conversation'] = conversation unless conversation.nil?
8239
+ command.query['fields'] = fields unless fields.nil?
8240
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8241
+ execute_or_queue_command(command, &block)
8242
+ end
8243
+
8176
8244
  # Suggest summary for a conversation based on specific historical messages. The
8177
8245
  # range of the messages to be used for summary can be specified in the request.
8178
8246
  # @param [String] conversation
@@ -8840,6 +8908,40 @@ module Google
8840
8908
  execute_or_queue_command(command, &block)
8841
8909
  end
8842
8910
 
8911
+ # Get answers for the given query based on knowledge documents.
8912
+ # @param [String] parent
8913
+ # The parent resource contains the conversation profile Format: 'projects/' or `
8914
+ # projects//locations/`.
8915
+ # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeRequest] google_cloud_dialogflow_v2beta1_search_knowledge_request_object
8916
+ # @param [String] fields
8917
+ # Selector specifying which fields to include in a partial response.
8918
+ # @param [String] quota_user
8919
+ # Available to use for quota purposes for server-side applications. Can be any
8920
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8921
+ # @param [Google::Apis::RequestOptions] options
8922
+ # Request-specific options
8923
+ #
8924
+ # @yield [result, err] Result & error if block supplied
8925
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeResponse] parsed result object
8926
+ # @yieldparam err [StandardError] error object if request failed
8927
+ #
8928
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeResponse]
8929
+ #
8930
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8931
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8932
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8933
+ def search_project_location_suggestion_knowledge(parent, google_cloud_dialogflow_v2beta1_search_knowledge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
8934
+ command = make_simple_command(:post, 'v2beta1/{+parent}/suggestions:searchKnowledge', options)
8935
+ command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeRequest::Representation
8936
+ command.request_object = google_cloud_dialogflow_v2beta1_search_knowledge_request_object
8937
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeResponse::Representation
8938
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeResponse
8939
+ command.params['parent'] = parent unless parent.nil?
8940
+ command.query['fields'] = fields unless fields.nil?
8941
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8942
+ execute_or_queue_command(command, &block)
8943
+ end
8944
+
8843
8945
  # Starts asynchronous cancellation on a long-running operation. The server makes
8844
8946
  # a best effort to cancel the operation, but success is not guaranteed. If the
8845
8947
  # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
@@ -8982,6 +9084,40 @@ module Google
8982
9084
  command.query['quotaUser'] = quota_user unless quota_user.nil?
8983
9085
  execute_or_queue_command(command, &block)
8984
9086
  end
9087
+
9088
+ # Get answers for the given query based on knowledge documents.
9089
+ # @param [String] parent
9090
+ # The parent resource contains the conversation profile Format: 'projects/' or `
9091
+ # projects//locations/`.
9092
+ # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeRequest] google_cloud_dialogflow_v2beta1_search_knowledge_request_object
9093
+ # @param [String] fields
9094
+ # Selector specifying which fields to include in a partial response.
9095
+ # @param [String] quota_user
9096
+ # Available to use for quota purposes for server-side applications. Can be any
9097
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9098
+ # @param [Google::Apis::RequestOptions] options
9099
+ # Request-specific options
9100
+ #
9101
+ # @yield [result, err] Result & error if block supplied
9102
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeResponse] parsed result object
9103
+ # @yieldparam err [StandardError] error object if request failed
9104
+ #
9105
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeResponse]
9106
+ #
9107
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9108
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9109
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9110
+ def search_project_suggestion_knowledge(parent, google_cloud_dialogflow_v2beta1_search_knowledge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
9111
+ command = make_simple_command(:post, 'v2beta1/{+parent}/suggestions:searchKnowledge', options)
9112
+ command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeRequest::Representation
9113
+ command.request_object = google_cloud_dialogflow_v2beta1_search_knowledge_request_object
9114
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeResponse::Representation
9115
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeResponse
9116
+ command.params['parent'] = parent unless parent.nil?
9117
+ command.query['fields'] = fields unless fields.nil?
9118
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9119
+ execute_or_queue_command(command, &block)
9120
+ end
8985
9121
 
8986
9122
  protected
8987
9123
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-dialogflow_v2beta1
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-09-03 00:00:00.000000000 Z
11
+ date: 2023-09-24 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_v2beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2beta1/v0.67.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2beta1/v0.69.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v2beta1
63
63
  post_install_message:
64
64
  rdoc_options: []