google-apis-dialogflow_v2 0.99.0 → 0.101.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.
@@ -4271,6 +4271,43 @@ module Google
4271
4271
  execute_or_queue_command(command, &block)
4272
4272
  end
4273
4273
 
4274
+ # Generates all the suggestions using generators configured in the conversation
4275
+ # profile. A generator is used only if its trigger event is matched.
4276
+ # @param [String] conversation
4277
+ # Required. The conversation for which the suggestions are generated. Format: `
4278
+ # projects//locations//conversations/`. The conversation must be created with a
4279
+ # conversation profile which has generators configured in it to be able to get
4280
+ # suggestions.
4281
+ # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateSuggestionsRequest] google_cloud_dialogflow_v2_generate_suggestions_request_object
4282
+ # @param [String] fields
4283
+ # Selector specifying which fields to include in a partial response.
4284
+ # @param [String] quota_user
4285
+ # Available to use for quota purposes for server-side applications. Can be any
4286
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4287
+ # @param [Google::Apis::RequestOptions] options
4288
+ # Request-specific options
4289
+ #
4290
+ # @yield [result, err] Result & error if block supplied
4291
+ # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateSuggestionsResponse] parsed result object
4292
+ # @yieldparam err [StandardError] error object if request failed
4293
+ #
4294
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateSuggestionsResponse]
4295
+ #
4296
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4297
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4298
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4299
+ def generate_project_conversation_suggestion(conversation, google_cloud_dialogflow_v2_generate_suggestions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4300
+ command = make_simple_command(:post, 'v2/{+conversation}/suggestions:generate', options)
4301
+ command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateSuggestionsRequest::Representation
4302
+ command.request_object = google_cloud_dialogflow_v2_generate_suggestions_request_object
4303
+ command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateSuggestionsResponse::Representation
4304
+ command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateSuggestionsResponse
4305
+ command.params['conversation'] = conversation unless conversation.nil?
4306
+ command.query['fields'] = fields unless fields.nil?
4307
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4308
+ execute_or_queue_command(command, &block)
4309
+ end
4310
+
4274
4311
  # Get answers for the given query based on knowledge documents.
4275
4312
  # @param [String] conversation
4276
4313
  # Optional. The conversation (between human agent and end user) where the search
@@ -5050,6 +5087,9 @@ module Google
5050
5087
  # Lists information about the supported locations for this service.
5051
5088
  # @param [String] name
5052
5089
  # The resource that owns the locations collection, if applicable.
5090
+ # @param [Array<String>, String] extra_location_types
5091
+ # Optional. A list of extra location types that should be used as conditions for
5092
+ # controlling the visibility of the locations.
5053
5093
  # @param [String] filter
5054
5094
  # A filter to narrow down results to a preferred subset. The filtering language
5055
5095
  # accepts strings like `"displayName=tokyo"`, and is documented in more detail
@@ -5077,11 +5117,12 @@ module Google
5077
5117
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5078
5118
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5079
5119
  # @raise [Google::Apis::AuthorizationError] Authorization is required
5080
- def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
5120
+ def list_project_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
5081
5121
  command = make_simple_command(:get, 'v2/{+name}/locations', options)
5082
5122
  command.response_representation = Google::Apis::DialogflowV2::GoogleCloudLocationListLocationsResponse::Representation
5083
5123
  command.response_class = Google::Apis::DialogflowV2::GoogleCloudLocationListLocationsResponse
5084
5124
  command.params['name'] = name unless name.nil?
5125
+ command.query['extraLocationTypes'] = extra_location_types unless extra_location_types.nil?
5085
5126
  command.query['filter'] = filter unless filter.nil?
5086
5127
  command.query['pageSize'] = page_size unless page_size.nil?
5087
5128
  command.query['pageToken'] = page_token unless page_token.nil?
@@ -8520,6 +8561,40 @@ module Google
8520
8561
  execute_or_queue_command(command, &block)
8521
8562
  end
8522
8563
 
8564
+ # Data ingestion API. Ingests context references for an existing conversation.
8565
+ # @param [String] conversation
8566
+ # Required. Resource identifier of the conversation to ingest context
8567
+ # information for. Format: `projects//locations//conversations/`.
8568
+ # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IngestContextReferencesRequest] google_cloud_dialogflow_v2_ingest_context_references_request_object
8569
+ # @param [String] fields
8570
+ # Selector specifying which fields to include in a partial response.
8571
+ # @param [String] quota_user
8572
+ # Available to use for quota purposes for server-side applications. Can be any
8573
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8574
+ # @param [Google::Apis::RequestOptions] options
8575
+ # Request-specific options
8576
+ #
8577
+ # @yield [result, err] Result & error if block supplied
8578
+ # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IngestContextReferencesResponse] parsed result object
8579
+ # @yieldparam err [StandardError] error object if request failed
8580
+ #
8581
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IngestContextReferencesResponse]
8582
+ #
8583
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8584
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8585
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8586
+ def ingest_project_location_conversation_context_references(conversation, google_cloud_dialogflow_v2_ingest_context_references_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
8587
+ command = make_simple_command(:post, 'v2/{+conversation}:ingestContextReferences', options)
8588
+ command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IngestContextReferencesRequest::Representation
8589
+ command.request_object = google_cloud_dialogflow_v2_ingest_context_references_request_object
8590
+ command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IngestContextReferencesResponse::Representation
8591
+ command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IngestContextReferencesResponse
8592
+ command.params['conversation'] = conversation unless conversation.nil?
8593
+ command.query['fields'] = fields unless fields.nil?
8594
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8595
+ execute_or_queue_command(command, &block)
8596
+ end
8597
+
8523
8598
  # Returns the list of all conversations in the specified project.
8524
8599
  # @param [String] parent
8525
8600
  # Required. The project from which to list all conversation. Format: `projects//
@@ -8928,6 +9003,43 @@ module Google
8928
9003
  execute_or_queue_command(command, &block)
8929
9004
  end
8930
9005
 
9006
+ # Generates all the suggestions using generators configured in the conversation
9007
+ # profile. A generator is used only if its trigger event is matched.
9008
+ # @param [String] conversation
9009
+ # Required. The conversation for which the suggestions are generated. Format: `
9010
+ # projects//locations//conversations/`. The conversation must be created with a
9011
+ # conversation profile which has generators configured in it to be able to get
9012
+ # suggestions.
9013
+ # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateSuggestionsRequest] google_cloud_dialogflow_v2_generate_suggestions_request_object
9014
+ # @param [String] fields
9015
+ # Selector specifying which fields to include in a partial response.
9016
+ # @param [String] quota_user
9017
+ # Available to use for quota purposes for server-side applications. Can be any
9018
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9019
+ # @param [Google::Apis::RequestOptions] options
9020
+ # Request-specific options
9021
+ #
9022
+ # @yield [result, err] Result & error if block supplied
9023
+ # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateSuggestionsResponse] parsed result object
9024
+ # @yieldparam err [StandardError] error object if request failed
9025
+ #
9026
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateSuggestionsResponse]
9027
+ #
9028
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9029
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9030
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9031
+ def generate_project_location_conversation_suggestion(conversation, google_cloud_dialogflow_v2_generate_suggestions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
9032
+ command = make_simple_command(:post, 'v2/{+conversation}/suggestions:generate', options)
9033
+ command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateSuggestionsRequest::Representation
9034
+ command.request_object = google_cloud_dialogflow_v2_generate_suggestions_request_object
9035
+ command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateSuggestionsResponse::Representation
9036
+ command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateSuggestionsResponse
9037
+ command.params['conversation'] = conversation unless conversation.nil?
9038
+ command.query['fields'] = fields unless fields.nil?
9039
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9040
+ execute_or_queue_command(command, &block)
9041
+ end
9042
+
8931
9043
  # Get answers for the given query based on knowledge documents.
8932
9044
  # @param [String] conversation
8933
9045
  # Optional. The conversation (between human agent and end user) where the search
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-dialogflow_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.99.0
4
+ version: 0.101.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-09 00:00:00.000000000 Z
10
+ date: 2025-03-30 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: google-apis-core
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v2/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2/v0.99.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2/v0.101.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v2
62
62
  rdoc_options: []
63
63
  require_paths: