google-apis-dialogflow_v2 0.87.0 → 0.89.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -4204,6 +4204,40 @@ module Google
4204
4204
  execute_or_queue_command(command, &block)
4205
4205
  end
4206
4206
 
4207
+ # Gets knowledge assist suggestions based on historical messages.
4208
+ # @param [String] parent
4209
+ # Required. The name of the participant to fetch suggestions for. Format: `
4210
+ # projects//locations//conversations//participants/`.
4211
+ # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestKnowledgeAssistRequest] google_cloud_dialogflow_v2_suggest_knowledge_assist_request_object
4212
+ # @param [String] fields
4213
+ # Selector specifying which fields to include in a partial response.
4214
+ # @param [String] quota_user
4215
+ # Available to use for quota purposes for server-side applications. Can be any
4216
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4217
+ # @param [Google::Apis::RequestOptions] options
4218
+ # Request-specific options
4219
+ #
4220
+ # @yield [result, err] Result & error if block supplied
4221
+ # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse] parsed result object
4222
+ # @yieldparam err [StandardError] error object if request failed
4223
+ #
4224
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse]
4225
+ #
4226
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4227
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4228
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4229
+ def suggest_project_conversation_participant_suggestion_knowledge_assist(parent, google_cloud_dialogflow_v2_suggest_knowledge_assist_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4230
+ command = make_simple_command(:post, 'v2/{+parent}/suggestions:suggestKnowledgeAssist', options)
4231
+ command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestKnowledgeAssistRequest::Representation
4232
+ command.request_object = google_cloud_dialogflow_v2_suggest_knowledge_assist_request_object
4233
+ command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse::Representation
4234
+ command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse
4235
+ command.params['parent'] = parent unless parent.nil?
4236
+ command.query['fields'] = fields unless fields.nil?
4237
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4238
+ execute_or_queue_command(command, &block)
4239
+ end
4240
+
4207
4241
  # Gets smart replies for a participant based on specific historical messages.
4208
4242
  # @param [String] parent
4209
4243
  # Required. The name of the participant to fetch suggestion for. Format: `
@@ -4307,6 +4341,87 @@ module Google
4307
4341
  execute_or_queue_command(command, &block)
4308
4342
  end
4309
4343
 
4344
+ # Creates a generator.
4345
+ # @param [String] parent
4346
+ # Required. The project/location to create generator for. Format: `projects//
4347
+ # locations/`
4348
+ # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator] google_cloud_dialogflow_v2_generator_object
4349
+ # @param [String] generator_id
4350
+ # Optional. The ID to use for the generator, which will become the final
4351
+ # component of the generator's resource name. The generator ID must be compliant
4352
+ # with the regression fomula `a-zA-Z*` with the characters length in range of [3,
4353
+ # 64]. If the field is not provided, an Id will be auto-generated. If the field
4354
+ # is provided, the caller is resposible for 1. the uniqueness of the ID,
4355
+ # otherwise the request will be rejected. 2. the consistency for whether to use
4356
+ # custom ID or not under a project to better ensure uniqueness.
4357
+ # @param [String] fields
4358
+ # Selector specifying which fields to include in a partial response.
4359
+ # @param [String] quota_user
4360
+ # Available to use for quota purposes for server-side applications. Can be any
4361
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4362
+ # @param [Google::Apis::RequestOptions] options
4363
+ # Request-specific options
4364
+ #
4365
+ # @yield [result, err] Result & error if block supplied
4366
+ # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator] parsed result object
4367
+ # @yieldparam err [StandardError] error object if request failed
4368
+ #
4369
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator]
4370
+ #
4371
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4372
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4373
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4374
+ def create_project_generator(parent, google_cloud_dialogflow_v2_generator_object = nil, generator_id: nil, fields: nil, quota_user: nil, options: nil, &block)
4375
+ command = make_simple_command(:post, 'v2/{+parent}/generators', options)
4376
+ command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator::Representation
4377
+ command.request_object = google_cloud_dialogflow_v2_generator_object
4378
+ command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator::Representation
4379
+ command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator
4380
+ command.params['parent'] = parent unless parent.nil?
4381
+ command.query['generatorId'] = generator_id unless generator_id.nil?
4382
+ command.query['fields'] = fields unless fields.nil?
4383
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4384
+ execute_or_queue_command(command, &block)
4385
+ end
4386
+
4387
+ # Lists generators.
4388
+ # @param [String] parent
4389
+ # Required. The project/location to list generators for. Format: `projects//
4390
+ # locations/`
4391
+ # @param [Fixnum] page_size
4392
+ # Optional. Maximum number of conversation models to return in a single page.
4393
+ # Default to 10.
4394
+ # @param [String] page_token
4395
+ # Optional. The next_page_token value returned from a previous list request.
4396
+ # @param [String] fields
4397
+ # Selector specifying which fields to include in a partial response.
4398
+ # @param [String] quota_user
4399
+ # Available to use for quota purposes for server-side applications. Can be any
4400
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4401
+ # @param [Google::Apis::RequestOptions] options
4402
+ # Request-specific options
4403
+ #
4404
+ # @yield [result, err] Result & error if block supplied
4405
+ # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListGeneratorsResponse] parsed result object
4406
+ # @yieldparam err [StandardError] error object if request failed
4407
+ #
4408
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListGeneratorsResponse]
4409
+ #
4410
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4411
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4412
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4413
+ def list_project_generators(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
4414
+ command = make_simple_command(:get, 'v2/{+parent}/generators', options)
4415
+ command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListGeneratorsResponse::Representation
4416
+ command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListGeneratorsResponse
4417
+ command.params['parent'] = parent unless parent.nil?
4418
+ command.query['pageSize'] = page_size unless page_size.nil?
4419
+ command.query['pageToken'] = page_token unless page_token.nil?
4420
+ command.query['fields'] = fields unless fields.nil?
4421
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4422
+ execute_or_queue_command(command, &block)
4423
+ end
4424
+
4310
4425
  # Creates a knowledge base.
4311
4426
  # @param [String] parent
4312
4427
  # Required. The project to create a knowledge base for. Format: `projects//
@@ -8717,6 +8832,40 @@ module Google
8717
8832
  execute_or_queue_command(command, &block)
8718
8833
  end
8719
8834
 
8835
+ # Gets knowledge assist suggestions based on historical messages.
8836
+ # @param [String] parent
8837
+ # Required. The name of the participant to fetch suggestions for. Format: `
8838
+ # projects//locations//conversations//participants/`.
8839
+ # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestKnowledgeAssistRequest] google_cloud_dialogflow_v2_suggest_knowledge_assist_request_object
8840
+ # @param [String] fields
8841
+ # Selector specifying which fields to include in a partial response.
8842
+ # @param [String] quota_user
8843
+ # Available to use for quota purposes for server-side applications. Can be any
8844
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8845
+ # @param [Google::Apis::RequestOptions] options
8846
+ # Request-specific options
8847
+ #
8848
+ # @yield [result, err] Result & error if block supplied
8849
+ # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse] parsed result object
8850
+ # @yieldparam err [StandardError] error object if request failed
8851
+ #
8852
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse]
8853
+ #
8854
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8855
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8856
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8857
+ def suggest_project_location_conversation_participant_suggestion_knowledge_assist(parent, google_cloud_dialogflow_v2_suggest_knowledge_assist_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
8858
+ command = make_simple_command(:post, 'v2/{+parent}/suggestions:suggestKnowledgeAssist', options)
8859
+ command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestKnowledgeAssistRequest::Representation
8860
+ command.request_object = google_cloud_dialogflow_v2_suggest_knowledge_assist_request_object
8861
+ command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse::Representation
8862
+ command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse
8863
+ command.params['parent'] = parent unless parent.nil?
8864
+ command.query['fields'] = fields unless fields.nil?
8865
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8866
+ execute_or_queue_command(command, &block)
8867
+ end
8868
+
8720
8869
  # Gets smart replies for a participant based on specific historical messages.
8721
8870
  # @param [String] parent
8722
8871
  # Required. The name of the participant to fetch suggestion for. Format: `
@@ -8820,6 +8969,186 @@ module Google
8820
8969
  execute_or_queue_command(command, &block)
8821
8970
  end
8822
8971
 
8972
+ # Creates a generator.
8973
+ # @param [String] parent
8974
+ # Required. The project/location to create generator for. Format: `projects//
8975
+ # locations/`
8976
+ # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator] google_cloud_dialogflow_v2_generator_object
8977
+ # @param [String] generator_id
8978
+ # Optional. The ID to use for the generator, which will become the final
8979
+ # component of the generator's resource name. The generator ID must be compliant
8980
+ # with the regression fomula `a-zA-Z*` with the characters length in range of [3,
8981
+ # 64]. If the field is not provided, an Id will be auto-generated. If the field
8982
+ # is provided, the caller is resposible for 1. the uniqueness of the ID,
8983
+ # otherwise the request will be rejected. 2. the consistency for whether to use
8984
+ # custom ID or not under a project to better ensure uniqueness.
8985
+ # @param [String] fields
8986
+ # Selector specifying which fields to include in a partial response.
8987
+ # @param [String] quota_user
8988
+ # Available to use for quota purposes for server-side applications. Can be any
8989
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8990
+ # @param [Google::Apis::RequestOptions] options
8991
+ # Request-specific options
8992
+ #
8993
+ # @yield [result, err] Result & error if block supplied
8994
+ # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator] parsed result object
8995
+ # @yieldparam err [StandardError] error object if request failed
8996
+ #
8997
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator]
8998
+ #
8999
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9000
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9001
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9002
+ def create_project_location_generator(parent, google_cloud_dialogflow_v2_generator_object = nil, generator_id: nil, fields: nil, quota_user: nil, options: nil, &block)
9003
+ command = make_simple_command(:post, 'v2/{+parent}/generators', options)
9004
+ command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator::Representation
9005
+ command.request_object = google_cloud_dialogflow_v2_generator_object
9006
+ command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator::Representation
9007
+ command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator
9008
+ command.params['parent'] = parent unless parent.nil?
9009
+ command.query['generatorId'] = generator_id unless generator_id.nil?
9010
+ command.query['fields'] = fields unless fields.nil?
9011
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9012
+ execute_or_queue_command(command, &block)
9013
+ end
9014
+
9015
+ # Deletes a generator.
9016
+ # @param [String] name
9017
+ # Required. The generator resource name to delete. Format: `projects//locations//
9018
+ # generators/`
9019
+ # @param [String] fields
9020
+ # Selector specifying which fields to include in a partial response.
9021
+ # @param [String] quota_user
9022
+ # Available to use for quota purposes for server-side applications. Can be any
9023
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9024
+ # @param [Google::Apis::RequestOptions] options
9025
+ # Request-specific options
9026
+ #
9027
+ # @yield [result, err] Result & error if block supplied
9028
+ # @yieldparam result [Google::Apis::DialogflowV2::GoogleProtobufEmpty] parsed result object
9029
+ # @yieldparam err [StandardError] error object if request failed
9030
+ #
9031
+ # @return [Google::Apis::DialogflowV2::GoogleProtobufEmpty]
9032
+ #
9033
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9034
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9035
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9036
+ def delete_project_location_generator(name, fields: nil, quota_user: nil, options: nil, &block)
9037
+ command = make_simple_command(:delete, 'v2/{+name}', options)
9038
+ command.response_representation = Google::Apis::DialogflowV2::GoogleProtobufEmpty::Representation
9039
+ command.response_class = Google::Apis::DialogflowV2::GoogleProtobufEmpty
9040
+ command.params['name'] = name unless name.nil?
9041
+ command.query['fields'] = fields unless fields.nil?
9042
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9043
+ execute_or_queue_command(command, &block)
9044
+ end
9045
+
9046
+ # Retrieves a generator.
9047
+ # @param [String] name
9048
+ # Required. The generator resource name to retrieve. Format: `projects//
9049
+ # locations/`/generators/`
9050
+ # @param [String] fields
9051
+ # Selector specifying which fields to include in a partial response.
9052
+ # @param [String] quota_user
9053
+ # Available to use for quota purposes for server-side applications. Can be any
9054
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9055
+ # @param [Google::Apis::RequestOptions] options
9056
+ # Request-specific options
9057
+ #
9058
+ # @yield [result, err] Result & error if block supplied
9059
+ # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator] parsed result object
9060
+ # @yieldparam err [StandardError] error object if request failed
9061
+ #
9062
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator]
9063
+ #
9064
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9065
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9066
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9067
+ def get_project_location_generator(name, fields: nil, quota_user: nil, options: nil, &block)
9068
+ command = make_simple_command(:get, 'v2/{+name}', options)
9069
+ command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator::Representation
9070
+ command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator
9071
+ command.params['name'] = name unless name.nil?
9072
+ command.query['fields'] = fields unless fields.nil?
9073
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9074
+ execute_or_queue_command(command, &block)
9075
+ end
9076
+
9077
+ # Lists generators.
9078
+ # @param [String] parent
9079
+ # Required. The project/location to list generators for. Format: `projects//
9080
+ # locations/`
9081
+ # @param [Fixnum] page_size
9082
+ # Optional. Maximum number of conversation models to return in a single page.
9083
+ # Default to 10.
9084
+ # @param [String] page_token
9085
+ # Optional. The next_page_token value returned from a previous list request.
9086
+ # @param [String] fields
9087
+ # Selector specifying which fields to include in a partial response.
9088
+ # @param [String] quota_user
9089
+ # Available to use for quota purposes for server-side applications. Can be any
9090
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9091
+ # @param [Google::Apis::RequestOptions] options
9092
+ # Request-specific options
9093
+ #
9094
+ # @yield [result, err] Result & error if block supplied
9095
+ # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListGeneratorsResponse] parsed result object
9096
+ # @yieldparam err [StandardError] error object if request failed
9097
+ #
9098
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListGeneratorsResponse]
9099
+ #
9100
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9101
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9102
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9103
+ def list_project_location_generators(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
9104
+ command = make_simple_command(:get, 'v2/{+parent}/generators', options)
9105
+ command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListGeneratorsResponse::Representation
9106
+ command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListGeneratorsResponse
9107
+ command.params['parent'] = parent unless parent.nil?
9108
+ command.query['pageSize'] = page_size unless page_size.nil?
9109
+ command.query['pageToken'] = page_token unless page_token.nil?
9110
+ command.query['fields'] = fields unless fields.nil?
9111
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9112
+ execute_or_queue_command(command, &block)
9113
+ end
9114
+
9115
+ # Updates a generator.
9116
+ # @param [String] name
9117
+ # Output only. Identifier. The resource name of the generator. Format: `projects/
9118
+ # /locations//generators/`
9119
+ # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator] google_cloud_dialogflow_v2_generator_object
9120
+ # @param [String] update_mask
9121
+ # Optional. The list of fields to update.
9122
+ # @param [String] fields
9123
+ # Selector specifying which fields to include in a partial response.
9124
+ # @param [String] quota_user
9125
+ # Available to use for quota purposes for server-side applications. Can be any
9126
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9127
+ # @param [Google::Apis::RequestOptions] options
9128
+ # Request-specific options
9129
+ #
9130
+ # @yield [result, err] Result & error if block supplied
9131
+ # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator] parsed result object
9132
+ # @yieldparam err [StandardError] error object if request failed
9133
+ #
9134
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator]
9135
+ #
9136
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9137
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9138
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9139
+ def patch_project_location_generator(name, google_cloud_dialogflow_v2_generator_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
9140
+ command = make_simple_command(:patch, 'v2/{+name}', options)
9141
+ command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator::Representation
9142
+ command.request_object = google_cloud_dialogflow_v2_generator_object
9143
+ command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator::Representation
9144
+ command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator
9145
+ command.params['name'] = name unless name.nil?
9146
+ command.query['updateMask'] = update_mask unless update_mask.nil?
9147
+ command.query['fields'] = fields unless fields.nil?
9148
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9149
+ execute_or_queue_command(command, &block)
9150
+ end
9151
+
8823
9152
  # Creates a knowledge base.
8824
9153
  # @param [String] parent
8825
9154
  # Required. The project to create a knowledge base for. Format: `projects//
@@ -9432,6 +9761,41 @@ module Google
9432
9761
  execute_or_queue_command(command, &block)
9433
9762
  end
9434
9763
 
9764
+ # Generates and returns a suggestion for a conversation that does not have a
9765
+ # resource created for it.
9766
+ # @param [String] parent
9767
+ # Required. The parent resource to charge for the Suggestion's generation.
9768
+ # Format: `projects//locations/`.
9769
+ # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateStatelessSuggestionRequest] google_cloud_dialogflow_v2_generate_stateless_suggestion_request_object
9770
+ # @param [String] fields
9771
+ # Selector specifying which fields to include in a partial response.
9772
+ # @param [String] quota_user
9773
+ # Available to use for quota purposes for server-side applications. Can be any
9774
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
9775
+ # @param [Google::Apis::RequestOptions] options
9776
+ # Request-specific options
9777
+ #
9778
+ # @yield [result, err] Result & error if block supplied
9779
+ # @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateStatelessSuggestionResponse] parsed result object
9780
+ # @yieldparam err [StandardError] error object if request failed
9781
+ #
9782
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateStatelessSuggestionResponse]
9783
+ #
9784
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
9785
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
9786
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
9787
+ def generate_project_location_stateless_suggestion(parent, google_cloud_dialogflow_v2_generate_stateless_suggestion_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
9788
+ command = make_simple_command(:post, 'v2/{+parent}/statelessSuggestion:generate', options)
9789
+ command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateStatelessSuggestionRequest::Representation
9790
+ command.request_object = google_cloud_dialogflow_v2_generate_stateless_suggestion_request_object
9791
+ command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateStatelessSuggestionResponse::Representation
9792
+ command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateStatelessSuggestionResponse
9793
+ command.params['parent'] = parent unless parent.nil?
9794
+ command.query['fields'] = fields unless fields.nil?
9795
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
9796
+ execute_or_queue_command(command, &block)
9797
+ end
9798
+
9435
9799
  # Generates and returns a summary for a conversation that does not have a
9436
9800
  # resource created for it.
9437
9801
  # @param [String] parent
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.87.0
4
+ version: 0.89.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: 2024-05-26 00:00:00.000000000 Z
11
+ date: 2024-06-09 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.87.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2/v0.89.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: []