google-cloud-dialogflow-cx-v3 0.1.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/dialogflow/cx/v3/advanced_settings_pb.rb +2 -2
  3. data/lib/google/cloud/dialogflow/cx/v3/agent_pb.rb +2 -2
  4. data/lib/google/cloud/dialogflow/cx/v3/agent_services_pb.rb +10 -1
  5. data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +209 -27
  6. data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +115 -12
  7. data/lib/google/cloud/dialogflow/cx/v3/audio_config_pb.rb +2 -2
  8. data/lib/google/cloud/dialogflow/cx/v3/changelog_pb.rb +52 -0
  9. data/lib/google/cloud/dialogflow/cx/v3/changelog_services_pb.rb +49 -0
  10. data/lib/google/cloud/dialogflow/cx/v3/changelogs/client.rb +522 -0
  11. data/lib/google/cloud/dialogflow/cx/v3/changelogs/credentials.rb +54 -0
  12. data/lib/google/cloud/dialogflow/cx/v3/changelogs/paths.rb +75 -0
  13. data/lib/google/cloud/dialogflow/cx/v3/changelogs.rb +51 -0
  14. data/lib/google/cloud/dialogflow/cx/v3/deployment_pb.rb +63 -0
  15. data/lib/google/cloud/dialogflow/cx/v3/deployment_services_pb.rb +49 -0
  16. data/lib/google/cloud/dialogflow/cx/v3/deployments/client.rb +502 -0
  17. data/lib/google/cloud/dialogflow/cx/v3/deployments/credentials.rb +54 -0
  18. data/lib/google/cloud/dialogflow/cx/v3/deployments/paths.rb +79 -0
  19. data/lib/google/cloud/dialogflow/cx/v3/deployments.rb +51 -0
  20. data/lib/google/cloud/dialogflow/cx/v3/entity_type_pb.rb +2 -2
  21. data/lib/google/cloud/dialogflow/cx/v3/entity_type_services_pb.rb +1 -1
  22. data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +106 -15
  23. data/lib/google/cloud/dialogflow/cx/v3/environment_pb.rb +24 -2
  24. data/lib/google/cloud/dialogflow/cx/v3/environment_services_pb.rb +33 -1
  25. data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +335 -24
  26. data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +115 -12
  27. data/lib/google/cloud/dialogflow/cx/v3/environments/paths.rb +21 -0
  28. data/lib/google/cloud/dialogflow/cx/v3/experiment_pb.rb +2 -2
  29. data/lib/google/cloud/dialogflow/cx/v3/experiment_services_pb.rb +1 -1
  30. data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +146 -21
  31. data/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb +2 -2
  32. data/lib/google/cloud/dialogflow/cx/v3/flow_services_pb.rb +26 -1
  33. data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +252 -30
  34. data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +115 -12
  35. data/lib/google/cloud/dialogflow/cx/v3/fulfillment_pb.rb +2 -2
  36. data/lib/google/cloud/dialogflow/cx/v3/intent_pb.rb +2 -2
  37. data/lib/google/cloud/dialogflow/cx/v3/intent_services_pb.rb +1 -1
  38. data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +106 -15
  39. data/lib/google/cloud/dialogflow/cx/v3/page_pb.rb +2 -2
  40. data/lib/google/cloud/dialogflow/cx/v3/page_services_pb.rb +1 -1
  41. data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +106 -15
  42. data/lib/google/cloud/dialogflow/cx/v3/response_message_pb.rb +9 -2
  43. data/lib/google/cloud/dialogflow/cx/v3/security_settings_pb.rb +2 -2
  44. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +106 -15
  45. data/lib/google/cloud/dialogflow/cx/v3/security_settings_services_pb.rb +1 -1
  46. data/lib/google/cloud/dialogflow/cx/v3/session_entity_type_pb.rb +2 -2
  47. data/lib/google/cloud/dialogflow/cx/v3/session_entity_type_services_pb.rb +1 -1
  48. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +106 -15
  49. data/lib/google/cloud/dialogflow/cx/v3/session_pb.rb +3 -2
  50. data/lib/google/cloud/dialogflow/cx/v3/session_services_pb.rb +1 -1
  51. data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +84 -9
  52. data/lib/google/cloud/dialogflow/cx/v3/test_case_pb.rb +2 -2
  53. data/lib/google/cloud/dialogflow/cx/v3/test_case_services_pb.rb +23 -1
  54. data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +302 -36
  55. data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +115 -12
  56. data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_pb.rb +2 -2
  57. data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_services_pb.rb +1 -1
  58. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +106 -15
  59. data/lib/google/cloud/dialogflow/cx/v3/validation_message_pb.rb +2 -2
  60. data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
  61. data/lib/google/cloud/dialogflow/cx/v3/version_pb.rb +14 -2
  62. data/lib/google/cloud/dialogflow/cx/v3/version_services_pb.rb +19 -1
  63. data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +265 -18
  64. data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +115 -12
  65. data/lib/google/cloud/dialogflow/cx/v3/webhook_pb.rb +3 -2
  66. data/lib/google/cloud/dialogflow/cx/v3/webhook_services_pb.rb +1 -1
  67. data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +106 -15
  68. data/lib/google/cloud/dialogflow/cx/v3.rb +3 -1
  69. data/proto_docs/google/cloud/dialogflow/cx/v3/changelog.rb +122 -0
  70. data/proto_docs/google/cloud/dialogflow/cx/v3/deployment.rb +135 -0
  71. data/proto_docs/google/cloud/dialogflow/cx/v3/environment.rb +62 -0
  72. data/proto_docs/google/cloud/dialogflow/cx/v3/response_message.rb +15 -0
  73. data/proto_docs/google/cloud/dialogflow/cx/v3/security_settings.rb +15 -2
  74. data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +58 -42
  75. data/proto_docs/google/cloud/dialogflow/cx/v3/test_case.rb +1 -0
  76. data/proto_docs/google/cloud/dialogflow/cx/v3/version.rb +43 -0
  77. data/proto_docs/google/cloud/dialogflow/cx/v3/webhook.rb +13 -0
  78. metadata +16 -2
@@ -198,6 +198,27 @@ module Google
198
198
  #
199
199
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
200
200
  #
201
+ # @example Basic example
202
+ # require "google/cloud/dialogflow/cx/v3"
203
+ #
204
+ # # Create a client object. The client can be reused for multiple calls.
205
+ # client = Google::Cloud::Dialogflow::CX::V3::Intents::Client.new
206
+ #
207
+ # # Create a request. To set request fields, pass in keyword arguments.
208
+ # request = Google::Cloud::Dialogflow::CX::V3::ListIntentsRequest.new
209
+ #
210
+ # # Call the list_intents method.
211
+ # result = client.list_intents request
212
+ #
213
+ # # The returned object is of type Gapic::PagedEnumerable. You can
214
+ # # iterate over all elements by calling #each, and the enumerable
215
+ # # will lazily make API calls to fetch subsequent pages. Other
216
+ # # methods are also available for managing paging directly.
217
+ # result.each do |response|
218
+ # # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::Intent.
219
+ # p response
220
+ # end
221
+ #
201
222
  def list_intents request, options = nil
202
223
  raise ::ArgumentError, "request must be provided" if request.nil?
203
224
 
@@ -215,9 +236,11 @@ module Google
215
236
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
216
237
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
217
238
 
218
- header_params = {
219
- "parent" => request.parent
220
- }
239
+ header_params = {}
240
+ if request.parent
241
+ header_params["parent"] = request.parent
242
+ end
243
+
221
244
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
222
245
  metadata[:"x-goog-request-params"] ||= request_params_header
223
246
 
@@ -280,6 +303,21 @@ module Google
280
303
  #
281
304
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
282
305
  #
306
+ # @example Basic example
307
+ # require "google/cloud/dialogflow/cx/v3"
308
+ #
309
+ # # Create a client object. The client can be reused for multiple calls.
310
+ # client = Google::Cloud::Dialogflow::CX::V3::Intents::Client.new
311
+ #
312
+ # # Create a request. To set request fields, pass in keyword arguments.
313
+ # request = Google::Cloud::Dialogflow::CX::V3::GetIntentRequest.new
314
+ #
315
+ # # Call the get_intent method.
316
+ # result = client.get_intent request
317
+ #
318
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Intent.
319
+ # p result
320
+ #
283
321
  def get_intent request, options = nil
284
322
  raise ::ArgumentError, "request must be provided" if request.nil?
285
323
 
@@ -297,9 +335,11 @@ module Google
297
335
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
298
336
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
299
337
 
300
- header_params = {
301
- "name" => request.name
302
- }
338
+ header_params = {}
339
+ if request.name
340
+ header_params["name"] = request.name
341
+ end
342
+
303
343
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
304
344
  metadata[:"x-goog-request-params"] ||= request_params_header
305
345
 
@@ -365,6 +405,21 @@ module Google
365
405
  #
366
406
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
367
407
  #
408
+ # @example Basic example
409
+ # require "google/cloud/dialogflow/cx/v3"
410
+ #
411
+ # # Create a client object. The client can be reused for multiple calls.
412
+ # client = Google::Cloud::Dialogflow::CX::V3::Intents::Client.new
413
+ #
414
+ # # Create a request. To set request fields, pass in keyword arguments.
415
+ # request = Google::Cloud::Dialogflow::CX::V3::CreateIntentRequest.new
416
+ #
417
+ # # Call the create_intent method.
418
+ # result = client.create_intent request
419
+ #
420
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Intent.
421
+ # p result
422
+ #
368
423
  def create_intent request, options = nil
369
424
  raise ::ArgumentError, "request must be provided" if request.nil?
370
425
 
@@ -382,9 +437,11 @@ module Google
382
437
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
383
438
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
439
 
385
- header_params = {
386
- "parent" => request.parent
387
- }
440
+ header_params = {}
441
+ if request.parent
442
+ header_params["parent"] = request.parent
443
+ end
444
+
388
445
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
389
446
  metadata[:"x-goog-request-params"] ||= request_params_header
390
447
 
@@ -450,6 +507,21 @@ module Google
450
507
  #
451
508
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
452
509
  #
510
+ # @example Basic example
511
+ # require "google/cloud/dialogflow/cx/v3"
512
+ #
513
+ # # Create a client object. The client can be reused for multiple calls.
514
+ # client = Google::Cloud::Dialogflow::CX::V3::Intents::Client.new
515
+ #
516
+ # # Create a request. To set request fields, pass in keyword arguments.
517
+ # request = Google::Cloud::Dialogflow::CX::V3::UpdateIntentRequest.new
518
+ #
519
+ # # Call the update_intent method.
520
+ # result = client.update_intent request
521
+ #
522
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Intent.
523
+ # p result
524
+ #
453
525
  def update_intent request, options = nil
454
526
  raise ::ArgumentError, "request must be provided" if request.nil?
455
527
 
@@ -467,9 +539,11 @@ module Google
467
539
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
468
540
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
469
541
 
470
- header_params = {
471
- "intent.name" => request.intent.name
472
- }
542
+ header_params = {}
543
+ if request.intent&.name
544
+ header_params["intent.name"] = request.intent.name
545
+ end
546
+
473
547
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
474
548
  metadata[:"x-goog-request-params"] ||= request_params_header
475
549
 
@@ -524,6 +598,21 @@ module Google
524
598
  #
525
599
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
526
600
  #
601
+ # @example Basic example
602
+ # require "google/cloud/dialogflow/cx/v3"
603
+ #
604
+ # # Create a client object. The client can be reused for multiple calls.
605
+ # client = Google::Cloud::Dialogflow::CX::V3::Intents::Client.new
606
+ #
607
+ # # Create a request. To set request fields, pass in keyword arguments.
608
+ # request = Google::Cloud::Dialogflow::CX::V3::DeleteIntentRequest.new
609
+ #
610
+ # # Call the delete_intent method.
611
+ # result = client.delete_intent request
612
+ #
613
+ # # The returned object is of type Google::Protobuf::Empty.
614
+ # p result
615
+ #
527
616
  def delete_intent request, options = nil
528
617
  raise ::ArgumentError, "request must be provided" if request.nil?
529
618
 
@@ -541,9 +630,11 @@ module Google
541
630
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
542
631
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
543
632
 
544
- header_params = {
545
- "name" => request.name
546
- }
633
+ header_params = {}
634
+ if request.name
635
+ header_params["name"] = request.name
636
+ end
637
+
547
638
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
548
639
  metadata[:"x-goog-request-params"] ||= request_params_header
549
640
 
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/cx/v3/page.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/api/field_behavior_pb'
@@ -12,6 +10,8 @@ require 'google/cloud/dialogflow/cx/v3/fulfillment_pb'
12
10
  require 'google/protobuf/empty_pb'
13
11
  require 'google/protobuf/field_mask_pb'
14
12
  require 'google/protobuf/struct_pb'
13
+ require 'google/protobuf'
14
+
15
15
  Google::Protobuf::DescriptorPool.generated_pool.build do
16
16
  add_file("google/cloud/dialogflow/cx/v3/page.proto", :syntax => :proto3) do
17
17
  add_message "google.cloud.dialogflow.cx.v3.Page" do
@@ -28,7 +28,7 @@ module Google
28
28
  # Service for managing [Pages][google.cloud.dialogflow.cx.v3.Page].
29
29
  class Service
30
30
 
31
- include GRPC::GenericService
31
+ include ::GRPC::GenericService
32
32
 
33
33
  self.marshal_class_method = :encode
34
34
  self.unmarshal_class_method = :decode
@@ -208,6 +208,27 @@ module Google
208
208
  #
209
209
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
210
210
  #
211
+ # @example Basic example
212
+ # require "google/cloud/dialogflow/cx/v3"
213
+ #
214
+ # # Create a client object. The client can be reused for multiple calls.
215
+ # client = Google::Cloud::Dialogflow::CX::V3::Pages::Client.new
216
+ #
217
+ # # Create a request. To set request fields, pass in keyword arguments.
218
+ # request = Google::Cloud::Dialogflow::CX::V3::ListPagesRequest.new
219
+ #
220
+ # # Call the list_pages method.
221
+ # result = client.list_pages request
222
+ #
223
+ # # The returned object is of type Gapic::PagedEnumerable. You can
224
+ # # iterate over all elements by calling #each, and the enumerable
225
+ # # will lazily make API calls to fetch subsequent pages. Other
226
+ # # methods are also available for managing paging directly.
227
+ # result.each do |response|
228
+ # # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::Page.
229
+ # p response
230
+ # end
231
+ #
211
232
  def list_pages request, options = nil
212
233
  raise ::ArgumentError, "request must be provided" if request.nil?
213
234
 
@@ -225,9 +246,11 @@ module Google
225
246
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
226
247
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
227
248
 
228
- header_params = {
229
- "parent" => request.parent
230
- }
249
+ header_params = {}
250
+ if request.parent
251
+ header_params["parent"] = request.parent
252
+ end
253
+
231
254
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
232
255
  metadata[:"x-goog-request-params"] ||= request_params_header
233
256
 
@@ -301,6 +324,21 @@ module Google
301
324
  #
302
325
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
303
326
  #
327
+ # @example Basic example
328
+ # require "google/cloud/dialogflow/cx/v3"
329
+ #
330
+ # # Create a client object. The client can be reused for multiple calls.
331
+ # client = Google::Cloud::Dialogflow::CX::V3::Pages::Client.new
332
+ #
333
+ # # Create a request. To set request fields, pass in keyword arguments.
334
+ # request = Google::Cloud::Dialogflow::CX::V3::GetPageRequest.new
335
+ #
336
+ # # Call the get_page method.
337
+ # result = client.get_page request
338
+ #
339
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Page.
340
+ # p result
341
+ #
304
342
  def get_page request, options = nil
305
343
  raise ::ArgumentError, "request must be provided" if request.nil?
306
344
 
@@ -318,9 +356,11 @@ module Google
318
356
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
319
357
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
320
358
 
321
- header_params = {
322
- "name" => request.name
323
- }
359
+ header_params = {}
360
+ if request.name
361
+ header_params["name"] = request.name
362
+ end
363
+
324
364
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
325
365
  metadata[:"x-goog-request-params"] ||= request_params_header
326
366
 
@@ -398,6 +438,21 @@ module Google
398
438
  #
399
439
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
400
440
  #
441
+ # @example Basic example
442
+ # require "google/cloud/dialogflow/cx/v3"
443
+ #
444
+ # # Create a client object. The client can be reused for multiple calls.
445
+ # client = Google::Cloud::Dialogflow::CX::V3::Pages::Client.new
446
+ #
447
+ # # Create a request. To set request fields, pass in keyword arguments.
448
+ # request = Google::Cloud::Dialogflow::CX::V3::CreatePageRequest.new
449
+ #
450
+ # # Call the create_page method.
451
+ # result = client.create_page request
452
+ #
453
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Page.
454
+ # p result
455
+ #
401
456
  def create_page request, options = nil
402
457
  raise ::ArgumentError, "request must be provided" if request.nil?
403
458
 
@@ -415,9 +470,11 @@ module Google
415
470
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
416
471
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
417
472
 
418
- header_params = {
419
- "parent" => request.parent
420
- }
473
+ header_params = {}
474
+ if request.parent
475
+ header_params["parent"] = request.parent
476
+ end
477
+
421
478
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
422
479
  metadata[:"x-goog-request-params"] ||= request_params_header
423
480
 
@@ -494,6 +551,21 @@ module Google
494
551
  #
495
552
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
496
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::Pages::Client.new
559
+ #
560
+ # # Create a request. To set request fields, pass in keyword arguments.
561
+ # request = Google::Cloud::Dialogflow::CX::V3::UpdatePageRequest.new
562
+ #
563
+ # # Call the update_page method.
564
+ # result = client.update_page request
565
+ #
566
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Page.
567
+ # p result
568
+ #
497
569
  def update_page request, options = nil
498
570
  raise ::ArgumentError, "request must be provided" if request.nil?
499
571
 
@@ -511,9 +583,11 @@ module Google
511
583
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
512
584
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
513
585
 
514
- header_params = {
515
- "page.name" => request.page.name
516
- }
586
+ header_params = {}
587
+ if request.page&.name
588
+ header_params["page.name"] = request.page.name
589
+ end
590
+
517
591
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
518
592
  metadata[:"x-goog-request-params"] ||= request_params_header
519
593
 
@@ -579,6 +653,21 @@ module Google
579
653
  #
580
654
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
581
655
  #
656
+ # @example Basic example
657
+ # require "google/cloud/dialogflow/cx/v3"
658
+ #
659
+ # # Create a client object. The client can be reused for multiple calls.
660
+ # client = Google::Cloud::Dialogflow::CX::V3::Pages::Client.new
661
+ #
662
+ # # Create a request. To set request fields, pass in keyword arguments.
663
+ # request = Google::Cloud::Dialogflow::CX::V3::DeletePageRequest.new
664
+ #
665
+ # # Call the delete_page method.
666
+ # result = client.delete_page request
667
+ #
668
+ # # The returned object is of type Google::Protobuf::Empty.
669
+ # p result
670
+ #
582
671
  def delete_page request, options = nil
583
672
  raise ::ArgumentError, "request must be provided" if request.nil?
584
673
 
@@ -596,9 +685,11 @@ module Google
596
685
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
597
686
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
598
687
 
599
- header_params = {
600
- "name" => request.name
601
- }
688
+ header_params = {}
689
+ if request.name
690
+ header_params["name"] = request.name
691
+ end
692
+
602
693
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
603
694
  metadata[:"x-goog-request-params"] ||= request_params_header
604
695
 
@@ -1,11 +1,11 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/cx/v3/response_message.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/field_behavior_pb'
7
5
  require 'google/protobuf/struct_pb'
8
6
  require 'google/api/annotations_pb'
7
+ require 'google/protobuf'
8
+
9
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  add_file("google/cloud/dialogflow/cx/v3/response_message.proto", :syntax => :proto3) do
11
11
  add_message "google.cloud.dialogflow.cx.v3.ResponseMessage" do
@@ -18,6 +18,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
18
18
  optional :end_interaction, :message, 11, "google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction"
19
19
  optional :play_audio, :message, 12, "google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio"
20
20
  optional :mixed_audio, :message, 13, "google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio"
21
+ optional :telephony_transfer_call, :message, 18, "google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall"
21
22
  end
22
23
  end
23
24
  add_message "google.cloud.dialogflow.cx.v3.ResponseMessage.Text" do
@@ -53,6 +54,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
53
54
  optional :uri, :string, 2
54
55
  end
55
56
  end
57
+ add_message "google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall" do
58
+ oneof :endpoint do
59
+ optional :phone_number, :string, 1
60
+ end
61
+ end
56
62
  end
57
63
  end
58
64
 
@@ -70,6 +76,7 @@ module Google
70
76
  ResponseMessage::PlayAudio = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio").msgclass
71
77
  ResponseMessage::MixedAudio = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio").msgclass
72
78
  ResponseMessage::MixedAudio::Segment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment").msgclass
79
+ ResponseMessage::TelephonyTransferCall = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall").msgclass
73
80
  end
74
81
  end
75
82
  end
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/cx/v3/security_settings.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/api/field_behavior_pb'
@@ -10,6 +8,8 @@ require 'google/api/resource_pb'
10
8
  require 'google/longrunning/operations_pb'
11
9
  require 'google/protobuf/empty_pb'
12
10
  require 'google/protobuf/field_mask_pb'
11
+ require 'google/protobuf'
12
+
13
13
  Google::Protobuf::DescriptorPool.generated_pool.build do
14
14
  add_file("google/cloud/dialogflow/cx/v3/security_settings.proto", :syntax => :proto3) do
15
15
  add_message "google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest" do
@@ -182,6 +182,21 @@ module Google
182
182
  #
183
183
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
184
184
  #
185
+ # @example Basic example
186
+ # require "google/cloud/dialogflow/cx/v3"
187
+ #
188
+ # # Create a client object. The client can be reused for multiple calls.
189
+ # client = Google::Cloud::Dialogflow::CX::V3::SecuritySettingsService::Client.new
190
+ #
191
+ # # Create a request. To set request fields, pass in keyword arguments.
192
+ # request = Google::Cloud::Dialogflow::CX::V3::CreateSecuritySettingsRequest.new
193
+ #
194
+ # # Call the create_security_settings method.
195
+ # result = client.create_security_settings request
196
+ #
197
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::SecuritySettings.
198
+ # p result
199
+ #
185
200
  def create_security_settings request, options = nil
186
201
  raise ::ArgumentError, "request must be provided" if request.nil?
187
202
 
@@ -199,9 +214,11 @@ module Google
199
214
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
200
215
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
201
216
 
202
- header_params = {
203
- "parent" => request.parent
204
- }
217
+ header_params = {}
218
+ if request.parent
219
+ header_params["parent"] = request.parent
220
+ end
221
+
205
222
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
206
223
  metadata[:"x-goog-request-params"] ||= request_params_header
207
224
 
@@ -253,6 +270,21 @@ module Google
253
270
  #
254
271
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
255
272
  #
273
+ # @example Basic example
274
+ # require "google/cloud/dialogflow/cx/v3"
275
+ #
276
+ # # Create a client object. The client can be reused for multiple calls.
277
+ # client = Google::Cloud::Dialogflow::CX::V3::SecuritySettingsService::Client.new
278
+ #
279
+ # # Create a request. To set request fields, pass in keyword arguments.
280
+ # request = Google::Cloud::Dialogflow::CX::V3::GetSecuritySettingsRequest.new
281
+ #
282
+ # # Call the get_security_settings method.
283
+ # result = client.get_security_settings request
284
+ #
285
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::SecuritySettings.
286
+ # p result
287
+ #
256
288
  def get_security_settings request, options = nil
257
289
  raise ::ArgumentError, "request must be provided" if request.nil?
258
290
 
@@ -270,9 +302,11 @@ module Google
270
302
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
271
303
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
272
304
 
273
- header_params = {
274
- "name" => request.name
275
- }
305
+ header_params = {}
306
+ if request.name
307
+ header_params["name"] = request.name
308
+ end
309
+
276
310
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
277
311
  metadata[:"x-goog-request-params"] ||= request_params_header
278
312
 
@@ -325,6 +359,21 @@ module Google
325
359
  #
326
360
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
327
361
  #
362
+ # @example Basic example
363
+ # require "google/cloud/dialogflow/cx/v3"
364
+ #
365
+ # # Create a client object. The client can be reused for multiple calls.
366
+ # client = Google::Cloud::Dialogflow::CX::V3::SecuritySettingsService::Client.new
367
+ #
368
+ # # Create a request. To set request fields, pass in keyword arguments.
369
+ # request = Google::Cloud::Dialogflow::CX::V3::UpdateSecuritySettingsRequest.new
370
+ #
371
+ # # Call the update_security_settings method.
372
+ # result = client.update_security_settings request
373
+ #
374
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::SecuritySettings.
375
+ # p result
376
+ #
328
377
  def update_security_settings request, options = nil
329
378
  raise ::ArgumentError, "request must be provided" if request.nil?
330
379
 
@@ -342,9 +391,11 @@ module Google
342
391
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
343
392
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
344
393
 
345
- header_params = {
346
- "security_settings.name" => request.security_settings.name
347
- }
394
+ header_params = {}
395
+ if request.security_settings&.name
396
+ header_params["security_settings.name"] = request.security_settings.name
397
+ end
398
+
348
399
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
349
400
  metadata[:"x-goog-request-params"] ||= request_params_header
350
401
 
@@ -399,6 +450,27 @@ module Google
399
450
  #
400
451
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
401
452
  #
453
+ # @example Basic example
454
+ # require "google/cloud/dialogflow/cx/v3"
455
+ #
456
+ # # Create a client object. The client can be reused for multiple calls.
457
+ # client = Google::Cloud::Dialogflow::CX::V3::SecuritySettingsService::Client.new
458
+ #
459
+ # # Create a request. To set request fields, pass in keyword arguments.
460
+ # request = Google::Cloud::Dialogflow::CX::V3::ListSecuritySettingsRequest.new
461
+ #
462
+ # # Call the list_security_settings method.
463
+ # result = client.list_security_settings request
464
+ #
465
+ # # The returned object is of type Gapic::PagedEnumerable. You can
466
+ # # iterate over all elements by calling #each, and the enumerable
467
+ # # will lazily make API calls to fetch subsequent pages. Other
468
+ # # methods are also available for managing paging directly.
469
+ # result.each do |response|
470
+ # # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::SecuritySettings.
471
+ # p response
472
+ # end
473
+ #
402
474
  def list_security_settings request, options = nil
403
475
  raise ::ArgumentError, "request must be provided" if request.nil?
404
476
 
@@ -416,9 +488,11 @@ module Google
416
488
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
417
489
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
418
490
 
419
- header_params = {
420
- "parent" => request.parent
421
- }
491
+ header_params = {}
492
+ if request.parent
493
+ header_params["parent"] = request.parent
494
+ end
495
+
422
496
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
423
497
  metadata[:"x-goog-request-params"] ||= request_params_header
424
498
 
@@ -470,6 +544,21 @@ module Google
470
544
  #
471
545
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
472
546
  #
547
+ # @example Basic example
548
+ # require "google/cloud/dialogflow/cx/v3"
549
+ #
550
+ # # Create a client object. The client can be reused for multiple calls.
551
+ # client = Google::Cloud::Dialogflow::CX::V3::SecuritySettingsService::Client.new
552
+ #
553
+ # # Create a request. To set request fields, pass in keyword arguments.
554
+ # request = Google::Cloud::Dialogflow::CX::V3::DeleteSecuritySettingsRequest.new
555
+ #
556
+ # # Call the delete_security_settings method.
557
+ # result = client.delete_security_settings request
558
+ #
559
+ # # The returned object is of type Google::Protobuf::Empty.
560
+ # p result
561
+ #
473
562
  def delete_security_settings request, options = nil
474
563
  raise ::ArgumentError, "request must be provided" if request.nil?
475
564
 
@@ -487,9 +576,11 @@ module Google
487
576
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
488
577
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
489
578
 
490
- header_params = {
491
- "name" => request.name
492
- }
579
+ header_params = {}
580
+ if request.name
581
+ header_params["name"] = request.name
582
+ end
583
+
493
584
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
494
585
  metadata[:"x-goog-request-params"] ||= request_params_header
495
586
 
@@ -28,7 +28,7 @@ module Google
28
28
  # Service for managing security settings for Dialogflow.
29
29
  class Service
30
30
 
31
- include GRPC::GenericService
31
+ include ::GRPC::GenericService
32
32
 
33
33
  self.marshal_class_method = :encode
34
34
  self.unmarshal_class_method = :decode