google-cloud-dialogflow-cx-v3 0.20.0 → 0.21.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/dialogflow/cx/v3/agent_pb.rb +6 -1
  3. data/lib/google/cloud/dialogflow/cx/v3/agent_services_pb.rb +4 -0
  4. data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +200 -1
  5. data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +10 -1
  6. data/lib/google/cloud/dialogflow/cx/v3/agents/paths.rb +19 -0
  7. data/lib/google/cloud/dialogflow/cx/v3/agents/rest/client.rb +338 -0
  8. data/lib/google/cloud/dialogflow/cx/v3/agents/rest/operations.rb +75 -0
  9. data/lib/google/cloud/dialogflow/cx/v3/agents/rest/service_stub.rb +119 -0
  10. data/lib/google/cloud/dialogflow/cx/v3/changelogs/client.rb +10 -1
  11. data/lib/google/cloud/dialogflow/cx/v3/changelogs/rest/client.rb +36 -0
  12. data/lib/google/cloud/dialogflow/cx/v3/data_store_connection_pb.rb +45 -0
  13. data/lib/google/cloud/dialogflow/cx/v3/deployments/client.rb +10 -1
  14. data/lib/google/cloud/dialogflow/cx/v3/deployments/rest/client.rb +36 -0
  15. data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +10 -1
  16. data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest/client.rb +84 -0
  17. data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +10 -1
  18. data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +10 -1
  19. data/lib/google/cloud/dialogflow/cx/v3/environments/rest/client.rb +184 -0
  20. data/lib/google/cloud/dialogflow/cx/v3/environments/rest/operations.rb +75 -0
  21. data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +10 -1
  22. data/lib/google/cloud/dialogflow/cx/v3/experiments/rest/client.rb +116 -0
  23. data/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb +1 -1
  24. data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +10 -1
  25. data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +10 -1
  26. data/lib/google/cloud/dialogflow/cx/v3/flows/rest/client.rb +185 -0
  27. data/lib/google/cloud/dialogflow/cx/v3/flows/rest/operations.rb +75 -0
  28. data/lib/google/cloud/dialogflow/cx/v3/generative_settings_pb.rb +51 -0
  29. data/lib/google/cloud/dialogflow/cx/v3/import_strategy_pb.rb +2 -2
  30. data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +10 -1
  31. data/lib/google/cloud/dialogflow/cx/v3/intents/rest/client.rb +84 -0
  32. data/lib/google/cloud/dialogflow/cx/v3/page_pb.rb +4 -1
  33. data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +10 -1
  34. data/lib/google/cloud/dialogflow/cx/v3/pages/rest/client.rb +84 -0
  35. data/lib/google/cloud/dialogflow/cx/v3/response_message_pb.rb +2 -1
  36. data/lib/google/cloud/dialogflow/cx/v3/safety_settings_pb.rb +47 -0
  37. data/lib/google/cloud/dialogflow/cx/v3/security_settings_pb.rb +2 -1
  38. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +10 -1
  39. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/rest/client.rb +84 -0
  40. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +10 -1
  41. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/rest/client.rb +84 -0
  42. data/lib/google/cloud/dialogflow/cx/v3/session_pb.rb +1 -1
  43. data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +10 -1
  44. data/lib/google/cloud/dialogflow/cx/v3/sessions/rest/client.rb +48 -0
  45. data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +10 -1
  46. data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +10 -1
  47. data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/client.rb +228 -0
  48. data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/operations.rb +75 -0
  49. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +10 -1
  50. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest/client.rb +84 -0
  51. data/lib/google/cloud/dialogflow/cx/v3/validation_message_pb.rb +1 -1
  52. data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
  53. data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +10 -1
  54. data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +10 -1
  55. data/lib/google/cloud/dialogflow/cx/v3/versions/rest/client.rb +130 -0
  56. data/lib/google/cloud/dialogflow/cx/v3/versions/rest/operations.rb +75 -0
  57. data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +10 -1
  58. data/lib/google/cloud/dialogflow/cx/v3/webhooks/rest/client.rb +84 -0
  59. data/proto_docs/google/api/field_behavior.rb +14 -0
  60. data/proto_docs/google/cloud/dialogflow/cx/v3/agent.rb +44 -0
  61. data/proto_docs/google/cloud/dialogflow/cx/v3/data_store_connection.rb +61 -0
  62. data/proto_docs/google/cloud/dialogflow/cx/v3/flow.rb +3 -0
  63. data/proto_docs/google/cloud/dialogflow/cx/v3/generative_settings.rb +109 -0
  64. data/proto_docs/google/cloud/dialogflow/cx/v3/import_strategy.rb +1 -1
  65. data/proto_docs/google/cloud/dialogflow/cx/v3/page.rb +44 -2
  66. data/proto_docs/google/cloud/dialogflow/cx/v3/response_message.rb +14 -0
  67. data/proto_docs/google/cloud/dialogflow/cx/v3/safety_settings.rb +49 -0
  68. data/proto_docs/google/cloud/dialogflow/cx/v3/security_settings.rb +17 -2
  69. data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +4 -1
  70. data/proto_docs/google/cloud/dialogflow/cx/v3/validation_message.rb +3 -0
  71. metadata +11 -5
@@ -204,6 +204,26 @@ module Google
204
204
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::CX::V3::Version>]
205
205
  #
206
206
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
207
+ #
208
+ # @example Basic example
209
+ # require "google/cloud/dialogflow/cx/v3"
210
+ #
211
+ # # Create a client object. The client can be reused for multiple calls.
212
+ # client = Google::Cloud::Dialogflow::CX::V3::Versions::Rest::Client.new
213
+ #
214
+ # # Create a request. To set request fields, pass in keyword arguments.
215
+ # request = Google::Cloud::Dialogflow::CX::V3::ListVersionsRequest.new
216
+ #
217
+ # # Call the list_versions method.
218
+ # result = client.list_versions request
219
+ #
220
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
221
+ # # over elements, and API calls will be issued to fetch pages as needed.
222
+ # result.each do |item|
223
+ # # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::Version.
224
+ # p item
225
+ # end
226
+ #
207
227
  def list_versions request, options = nil
208
228
  raise ::ArgumentError, "request must be provided" if request.nil?
209
229
 
@@ -269,6 +289,22 @@ module Google
269
289
  # @return [::Google::Cloud::Dialogflow::CX::V3::Version]
270
290
  #
271
291
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
292
+ #
293
+ # @example Basic example
294
+ # require "google/cloud/dialogflow/cx/v3"
295
+ #
296
+ # # Create a client object. The client can be reused for multiple calls.
297
+ # client = Google::Cloud::Dialogflow::CX::V3::Versions::Rest::Client.new
298
+ #
299
+ # # Create a request. To set request fields, pass in keyword arguments.
300
+ # request = Google::Cloud::Dialogflow::CX::V3::GetVersionRequest.new
301
+ #
302
+ # # Call the get_version method.
303
+ # result = client.get_version request
304
+ #
305
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Version.
306
+ # p result
307
+ #
272
308
  def get_version request, options = nil
273
309
  raise ::ArgumentError, "request must be provided" if request.nil?
274
310
 
@@ -345,6 +381,29 @@ module Google
345
381
  # @return [::Gapic::Operation]
346
382
  #
347
383
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
384
+ #
385
+ # @example Basic example
386
+ # require "google/cloud/dialogflow/cx/v3"
387
+ #
388
+ # # Create a client object. The client can be reused for multiple calls.
389
+ # client = Google::Cloud::Dialogflow::CX::V3::Versions::Rest::Client.new
390
+ #
391
+ # # Create a request. To set request fields, pass in keyword arguments.
392
+ # request = Google::Cloud::Dialogflow::CX::V3::CreateVersionRequest.new
393
+ #
394
+ # # Call the create_version method.
395
+ # result = client.create_version request
396
+ #
397
+ # # The returned object is of type Gapic::Operation. You can use it to
398
+ # # check the status of an operation, cancel it, or wait for results.
399
+ # # Here is how to wait for a response.
400
+ # result.wait_until_done! timeout: 60
401
+ # if result.response?
402
+ # p result.response
403
+ # else
404
+ # puts "No response received."
405
+ # end
406
+ #
348
407
  def create_version request, options = nil
349
408
  raise ::ArgumentError, "request must be provided" if request.nil?
350
409
 
@@ -411,6 +470,22 @@ module Google
411
470
  # @return [::Google::Cloud::Dialogflow::CX::V3::Version]
412
471
  #
413
472
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
473
+ #
474
+ # @example Basic example
475
+ # require "google/cloud/dialogflow/cx/v3"
476
+ #
477
+ # # Create a client object. The client can be reused for multiple calls.
478
+ # client = Google::Cloud::Dialogflow::CX::V3::Versions::Rest::Client.new
479
+ #
480
+ # # Create a request. To set request fields, pass in keyword arguments.
481
+ # request = Google::Cloud::Dialogflow::CX::V3::UpdateVersionRequest.new
482
+ #
483
+ # # Call the update_version method.
484
+ # result = client.update_version request
485
+ #
486
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Version.
487
+ # p result
488
+ #
414
489
  def update_version request, options = nil
415
490
  raise ::ArgumentError, "request must be provided" if request.nil?
416
491
 
@@ -475,6 +550,22 @@ module Google
475
550
  # @return [::Google::Protobuf::Empty]
476
551
  #
477
552
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
553
+ #
554
+ # @example Basic example
555
+ # require "google/cloud/dialogflow/cx/v3"
556
+ #
557
+ # # Create a client object. The client can be reused for multiple calls.
558
+ # client = Google::Cloud::Dialogflow::CX::V3::Versions::Rest::Client.new
559
+ #
560
+ # # Create a request. To set request fields, pass in keyword arguments.
561
+ # request = Google::Cloud::Dialogflow::CX::V3::DeleteVersionRequest.new
562
+ #
563
+ # # Call the delete_version method.
564
+ # result = client.delete_version request
565
+ #
566
+ # # The returned object is of type Google::Protobuf::Empty.
567
+ # p result
568
+ #
478
569
  def delete_version request, options = nil
479
570
  raise ::ArgumentError, "request must be provided" if request.nil?
480
571
 
@@ -553,6 +644,29 @@ module Google
553
644
  # @return [::Gapic::Operation]
554
645
  #
555
646
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
647
+ #
648
+ # @example Basic example
649
+ # require "google/cloud/dialogflow/cx/v3"
650
+ #
651
+ # # Create a client object. The client can be reused for multiple calls.
652
+ # client = Google::Cloud::Dialogflow::CX::V3::Versions::Rest::Client.new
653
+ #
654
+ # # Create a request. To set request fields, pass in keyword arguments.
655
+ # request = Google::Cloud::Dialogflow::CX::V3::LoadVersionRequest.new
656
+ #
657
+ # # Call the load_version method.
658
+ # result = client.load_version request
659
+ #
660
+ # # The returned object is of type Gapic::Operation. You can use it to
661
+ # # check the status of an operation, cancel it, or wait for results.
662
+ # # Here is how to wait for a response.
663
+ # result.wait_until_done! timeout: 60
664
+ # if result.response?
665
+ # p result.response
666
+ # else
667
+ # puts "No response received."
668
+ # end
669
+ #
556
670
  def load_version request, options = nil
557
671
  raise ::ArgumentError, "request must be provided" if request.nil?
558
672
 
@@ -633,6 +747,22 @@ module Google
633
747
  # @return [::Google::Cloud::Dialogflow::CX::V3::CompareVersionsResponse]
634
748
  #
635
749
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
750
+ #
751
+ # @example Basic example
752
+ # require "google/cloud/dialogflow/cx/v3"
753
+ #
754
+ # # Create a client object. The client can be reused for multiple calls.
755
+ # client = Google::Cloud::Dialogflow::CX::V3::Versions::Rest::Client.new
756
+ #
757
+ # # Create a request. To set request fields, pass in keyword arguments.
758
+ # request = Google::Cloud::Dialogflow::CX::V3::CompareVersionsRequest.new
759
+ #
760
+ # # Call the compare_versions method.
761
+ # result = client.compare_versions request
762
+ #
763
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::CompareVersionsResponse.
764
+ # p result
765
+ #
636
766
  def compare_versions request, options = nil
637
767
  raise ::ArgumentError, "request must be provided" if request.nil?
638
768
 
@@ -137,6 +137,26 @@ module Google
137
137
  # @return [::Gapic::Operation]
138
138
  #
139
139
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
140
+ #
141
+ # @example Basic example
142
+ # require "google/longrunning"
143
+ #
144
+ # # Create a client object. The client can be reused for multiple calls.
145
+ # client = Google::Longrunning::Operations::Rest::Client.new
146
+ #
147
+ # # Create a request. To set request fields, pass in keyword arguments.
148
+ # request = Google::Longrunning::ListOperationsRequest.new
149
+ #
150
+ # # Call the list_operations method.
151
+ # result = client.list_operations request
152
+ #
153
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
154
+ # # over elements, and API calls will be issued to fetch pages as needed.
155
+ # result.each do |item|
156
+ # # Each element is of type ::Google::Longrunning::Operation.
157
+ # p item
158
+ # end
159
+ #
140
160
  def list_operations request, options = nil
141
161
  raise ::ArgumentError, "request must be provided" if request.nil?
142
162
 
@@ -202,6 +222,29 @@ module Google
202
222
  # @return [::Gapic::Operation]
203
223
  #
204
224
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
225
+ #
226
+ # @example Basic example
227
+ # require "google/longrunning"
228
+ #
229
+ # # Create a client object. The client can be reused for multiple calls.
230
+ # client = Google::Longrunning::Operations::Rest::Client.new
231
+ #
232
+ # # Create a request. To set request fields, pass in keyword arguments.
233
+ # request = Google::Longrunning::GetOperationRequest.new
234
+ #
235
+ # # Call the get_operation method.
236
+ # result = client.get_operation request
237
+ #
238
+ # # The returned object is of type Gapic::Operation. You can use it to
239
+ # # check the status of an operation, cancel it, or wait for results.
240
+ # # Here is how to wait for a response.
241
+ # result.wait_until_done! timeout: 60
242
+ # if result.response?
243
+ # p result.response
244
+ # else
245
+ # puts "No response received."
246
+ # end
247
+ #
205
248
  def get_operation request, options = nil
206
249
  raise ::ArgumentError, "request must be provided" if request.nil?
207
250
 
@@ -268,6 +311,22 @@ module Google
268
311
  # @return [::Google::Protobuf::Empty]
269
312
  #
270
313
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
314
+ #
315
+ # @example Basic example
316
+ # require "google/longrunning"
317
+ #
318
+ # # Create a client object. The client can be reused for multiple calls.
319
+ # client = Google::Longrunning::Operations::Rest::Client.new
320
+ #
321
+ # # Create a request. To set request fields, pass in keyword arguments.
322
+ # request = Google::Longrunning::DeleteOperationRequest.new
323
+ #
324
+ # # Call the delete_operation method.
325
+ # result = client.delete_operation request
326
+ #
327
+ # # The returned object is of type Google::Protobuf::Empty.
328
+ # p result
329
+ #
271
330
  def delete_operation request, options = nil
272
331
  raise ::ArgumentError, "request must be provided" if request.nil?
273
332
 
@@ -339,6 +398,22 @@ module Google
339
398
  # @return [::Google::Protobuf::Empty]
340
399
  #
341
400
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
401
+ #
402
+ # @example Basic example
403
+ # require "google/longrunning"
404
+ #
405
+ # # Create a client object. The client can be reused for multiple calls.
406
+ # client = Google::Longrunning::Operations::Rest::Client.new
407
+ #
408
+ # # Create a request. To set request fields, pass in keyword arguments.
409
+ # request = Google::Longrunning::CancelOperationRequest.new
410
+ #
411
+ # # Call the cancel_operation method.
412
+ # result = client.cancel_operation request
413
+ #
414
+ # # The returned object is of type Google::Protobuf::Empty.
415
+ # p result
416
+ #
342
417
  def cancel_operation request, options = nil
343
418
  raise ::ArgumentError, "request must be provided" if request.nil?
344
419
 
@@ -151,7 +151,8 @@ module Google
151
151
  credentials: credentials,
152
152
  endpoint: @config.endpoint,
153
153
  channel_args: @config.channel_args,
154
- interceptors: @config.interceptors
154
+ interceptors: @config.interceptors,
155
+ channel_pool_config: @config.channel_pool
155
156
  )
156
157
  end
157
158
 
@@ -740,6 +741,14 @@ module Google
740
741
  end
741
742
  end
742
743
 
744
+ ##
745
+ # Configuration for the channel pool
746
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
747
+ #
748
+ def channel_pool
749
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
750
+ end
751
+
743
752
  ##
744
753
  # Configuration RPC class for the Webhooks API.
745
754
  #
@@ -189,6 +189,26 @@ module Google
189
189
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::CX::V3::Webhook>]
190
190
  #
191
191
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
192
+ #
193
+ # @example Basic example
194
+ # require "google/cloud/dialogflow/cx/v3"
195
+ #
196
+ # # Create a client object. The client can be reused for multiple calls.
197
+ # client = Google::Cloud::Dialogflow::CX::V3::Webhooks::Rest::Client.new
198
+ #
199
+ # # Create a request. To set request fields, pass in keyword arguments.
200
+ # request = Google::Cloud::Dialogflow::CX::V3::ListWebhooksRequest.new
201
+ #
202
+ # # Call the list_webhooks method.
203
+ # result = client.list_webhooks request
204
+ #
205
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
206
+ # # over elements, and API calls will be issued to fetch pages as needed.
207
+ # result.each do |item|
208
+ # # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::Webhook.
209
+ # p item
210
+ # end
211
+ #
192
212
  def list_webhooks request, options = nil
193
213
  raise ::ArgumentError, "request must be provided" if request.nil?
194
214
 
@@ -254,6 +274,22 @@ module Google
254
274
  # @return [::Google::Cloud::Dialogflow::CX::V3::Webhook]
255
275
  #
256
276
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
277
+ #
278
+ # @example Basic example
279
+ # require "google/cloud/dialogflow/cx/v3"
280
+ #
281
+ # # Create a client object. The client can be reused for multiple calls.
282
+ # client = Google::Cloud::Dialogflow::CX::V3::Webhooks::Rest::Client.new
283
+ #
284
+ # # Create a request. To set request fields, pass in keyword arguments.
285
+ # request = Google::Cloud::Dialogflow::CX::V3::GetWebhookRequest.new
286
+ #
287
+ # # Call the get_webhook method.
288
+ # result = client.get_webhook request
289
+ #
290
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Webhook.
291
+ # p result
292
+ #
257
293
  def get_webhook request, options = nil
258
294
  raise ::ArgumentError, "request must be provided" if request.nil?
259
295
 
@@ -319,6 +355,22 @@ module Google
319
355
  # @return [::Google::Cloud::Dialogflow::CX::V3::Webhook]
320
356
  #
321
357
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
358
+ #
359
+ # @example Basic example
360
+ # require "google/cloud/dialogflow/cx/v3"
361
+ #
362
+ # # Create a client object. The client can be reused for multiple calls.
363
+ # client = Google::Cloud::Dialogflow::CX::V3::Webhooks::Rest::Client.new
364
+ #
365
+ # # Create a request. To set request fields, pass in keyword arguments.
366
+ # request = Google::Cloud::Dialogflow::CX::V3::CreateWebhookRequest.new
367
+ #
368
+ # # Call the create_webhook method.
369
+ # result = client.create_webhook request
370
+ #
371
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Webhook.
372
+ # p result
373
+ #
322
374
  def create_webhook request, options = nil
323
375
  raise ::ArgumentError, "request must be provided" if request.nil?
324
376
 
@@ -384,6 +436,22 @@ module Google
384
436
  # @return [::Google::Cloud::Dialogflow::CX::V3::Webhook]
385
437
  #
386
438
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
439
+ #
440
+ # @example Basic example
441
+ # require "google/cloud/dialogflow/cx/v3"
442
+ #
443
+ # # Create a client object. The client can be reused for multiple calls.
444
+ # client = Google::Cloud::Dialogflow::CX::V3::Webhooks::Rest::Client.new
445
+ #
446
+ # # Create a request. To set request fields, pass in keyword arguments.
447
+ # request = Google::Cloud::Dialogflow::CX::V3::UpdateWebhookRequest.new
448
+ #
449
+ # # Call the update_webhook method.
450
+ # result = client.update_webhook request
451
+ #
452
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Webhook.
453
+ # p result
454
+ #
387
455
  def update_webhook request, options = nil
388
456
  raise ::ArgumentError, "request must be provided" if request.nil?
389
457
 
@@ -459,6 +527,22 @@ module Google
459
527
  # @return [::Google::Protobuf::Empty]
460
528
  #
461
529
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
530
+ #
531
+ # @example Basic example
532
+ # require "google/cloud/dialogflow/cx/v3"
533
+ #
534
+ # # Create a client object. The client can be reused for multiple calls.
535
+ # client = Google::Cloud::Dialogflow::CX::V3::Webhooks::Rest::Client.new
536
+ #
537
+ # # Create a request. To set request fields, pass in keyword arguments.
538
+ # request = Google::Cloud::Dialogflow::CX::V3::DeleteWebhookRequest.new
539
+ #
540
+ # # Call the delete_webhook method.
541
+ # result = client.delete_webhook request
542
+ #
543
+ # # The returned object is of type Google::Protobuf::Empty.
544
+ # p result
545
+ #
462
546
  def delete_webhook request, options = nil
463
547
  raise ::ArgumentError, "request must be provided" if request.nil?
464
548
 
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  end
@@ -124,6 +124,9 @@ module Google
124
124
  # @return [::Google::Cloud::Dialogflow::CX::V3::TextToSpeechSettings]
125
125
  # Settings on instructing the speech synthesizer on how to generate the
126
126
  # output audio content.
127
+ # @!attribute [rw] gen_app_builder_settings
128
+ # @return [::Google::Cloud::Dialogflow::CX::V3::Agent::GenAppBuilderSettings]
129
+ # Gen App Builder-related agent-level settings.
127
130
  class Agent
128
131
  include ::Google::Protobuf::MessageExts
129
132
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -158,6 +161,17 @@ module Google
158
161
  extend ::Google::Protobuf::MessageExts::ClassMethods
159
162
  end
160
163
  end
164
+
165
+ # Settings for Gen App Builder.
166
+ # @!attribute [rw] engine
167
+ # @return [::String]
168
+ # Required. The full name of the Gen App Builder engine related to this
169
+ # agent if there is one. Format: `projects/{Project ID}/locations/{Location
170
+ # ID}/collections/\\{Collection ID}/engines/\\{Engine ID}`
171
+ class GenAppBuilderSettings
172
+ include ::Google::Protobuf::MessageExts
173
+ extend ::Google::Protobuf::MessageExts::ClassMethods
174
+ end
161
175
  end
162
176
 
163
177
  # The request message for
@@ -425,6 +439,36 @@ module Google
425
439
  include ::Google::Protobuf::MessageExts
426
440
  extend ::Google::Protobuf::MessageExts::ClassMethods
427
441
  end
442
+
443
+ # Request for
444
+ # {::Google::Cloud::Dialogflow::CX::V3::Agents::Client#get_generative_settings GetGenerativeSettings}
445
+ # RPC.
446
+ # @!attribute [rw] name
447
+ # @return [::String]
448
+ # Required. Format: `projects/<Project ID>/locations/<Location
449
+ # ID>/agents/<Agent ID>/generativeSettings`.
450
+ # @!attribute [rw] language_code
451
+ # @return [::String]
452
+ # Required. Language code of the generative settings.
453
+ class GetGenerativeSettingsRequest
454
+ include ::Google::Protobuf::MessageExts
455
+ extend ::Google::Protobuf::MessageExts::ClassMethods
456
+ end
457
+
458
+ # Request for
459
+ # {::Google::Cloud::Dialogflow::CX::V3::Agents::Client#update_generative_settings UpdateGenerativeSettings}
460
+ # RPC.
461
+ # @!attribute [rw] generative_settings
462
+ # @return [::Google::Cloud::Dialogflow::CX::V3::GenerativeSettings]
463
+ # Required. Generative settings to update.
464
+ # @!attribute [rw] update_mask
465
+ # @return [::Google::Protobuf::FieldMask]
466
+ # Optional. The mask to control which fields get updated. If the mask is not
467
+ # present, all fields will be updated.
468
+ class UpdateGenerativeSettingsRequest
469
+ include ::Google::Protobuf::MessageExts
470
+ extend ::Google::Protobuf::MessageExts::ClassMethods
471
+ end
428
472
  end
429
473
  end
430
474
  end
@@ -0,0 +1,61 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Dialogflow
23
+ module CX
24
+ module V3
25
+ # A data store connection. It represents a data store in Discovery Engine and
26
+ # the type of the contents it contains.
27
+ # @!attribute [rw] data_store_type
28
+ # @return [::Google::Cloud::Dialogflow::CX::V3::DataStoreType]
29
+ # The type of the connected data store.
30
+ # @!attribute [rw] data_store
31
+ # @return [::String]
32
+ # The full name of the referenced data store.
33
+ # Formats:
34
+ # `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`
35
+ # `projects/{project}/locations/{location}/dataStores/{data_store}`
36
+ class DataStoreConnection
37
+ include ::Google::Protobuf::MessageExts
38
+ extend ::Google::Protobuf::MessageExts::ClassMethods
39
+ end
40
+
41
+ # Type of a data store.
42
+ # Determines how search is performed in the data store.
43
+ module DataStoreType
44
+ # Not specified. This value indicates that the data store type is not
45
+ # specified, so it will not be used during search.
46
+ DATA_STORE_TYPE_UNSPECIFIED = 0
47
+
48
+ # A data store that contains public web content.
49
+ PUBLIC_WEB = 1
50
+
51
+ # A data store that contains unstructured private data.
52
+ UNSTRUCTURED = 2
53
+
54
+ # A data store that contains structured data (for example FAQ).
55
+ STRUCTURED = 3
56
+ end
57
+ end
58
+ end
59
+ end
60
+ end
61
+ end
@@ -145,6 +145,9 @@ module Google
145
145
  # @!attribute [rw] nlu_settings
146
146
  # @return [::Google::Cloud::Dialogflow::CX::V3::NluSettings]
147
147
  # NLU related settings of the flow.
148
+ # @!attribute [rw] knowledge_connector_settings
149
+ # @return [::Google::Cloud::Dialogflow::CX::V3::KnowledgeConnectorSettings]
150
+ # Optional. Knowledge connector configuration.
148
151
  class Flow
149
152
  include ::Google::Protobuf::MessageExts
150
153
  extend ::Google::Protobuf::MessageExts::ClassMethods