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
@@ -206,6 +206,26 @@ module Google
206
206
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::CX::V3::TestCase>]
207
207
  #
208
208
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
209
+ #
210
+ # @example Basic example
211
+ # require "google/cloud/dialogflow/cx/v3"
212
+ #
213
+ # # Create a client object. The client can be reused for multiple calls.
214
+ # client = Google::Cloud::Dialogflow::CX::V3::TestCases::Rest::Client.new
215
+ #
216
+ # # Create a request. To set request fields, pass in keyword arguments.
217
+ # request = Google::Cloud::Dialogflow::CX::V3::ListTestCasesRequest.new
218
+ #
219
+ # # Call the list_test_cases method.
220
+ # result = client.list_test_cases request
221
+ #
222
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
223
+ # # over elements, and API calls will be issued to fetch pages as needed.
224
+ # result.each do |item|
225
+ # # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::TestCase.
226
+ # p item
227
+ # end
228
+ #
209
229
  def list_test_cases request, options = nil
210
230
  raise ::ArgumentError, "request must be provided" if request.nil?
211
231
 
@@ -273,6 +293,22 @@ module Google
273
293
  # @return [::Google::Protobuf::Empty]
274
294
  #
275
295
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
296
+ #
297
+ # @example Basic example
298
+ # require "google/cloud/dialogflow/cx/v3"
299
+ #
300
+ # # Create a client object. The client can be reused for multiple calls.
301
+ # client = Google::Cloud::Dialogflow::CX::V3::TestCases::Rest::Client.new
302
+ #
303
+ # # Create a request. To set request fields, pass in keyword arguments.
304
+ # request = Google::Cloud::Dialogflow::CX::V3::BatchDeleteTestCasesRequest.new
305
+ #
306
+ # # Call the batch_delete_test_cases method.
307
+ # result = client.batch_delete_test_cases request
308
+ #
309
+ # # The returned object is of type Google::Protobuf::Empty.
310
+ # p result
311
+ #
276
312
  def batch_delete_test_cases request, options = nil
277
313
  raise ::ArgumentError, "request must be provided" if request.nil?
278
314
 
@@ -337,6 +373,22 @@ module Google
337
373
  # @return [::Google::Cloud::Dialogflow::CX::V3::TestCase]
338
374
  #
339
375
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
376
+ #
377
+ # @example Basic example
378
+ # require "google/cloud/dialogflow/cx/v3"
379
+ #
380
+ # # Create a client object. The client can be reused for multiple calls.
381
+ # client = Google::Cloud::Dialogflow::CX::V3::TestCases::Rest::Client.new
382
+ #
383
+ # # Create a request. To set request fields, pass in keyword arguments.
384
+ # request = Google::Cloud::Dialogflow::CX::V3::GetTestCaseRequest.new
385
+ #
386
+ # # Call the get_test_case method.
387
+ # result = client.get_test_case request
388
+ #
389
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::TestCase.
390
+ # p result
391
+ #
340
392
  def get_test_case request, options = nil
341
393
  raise ::ArgumentError, "request must be provided" if request.nil?
342
394
 
@@ -402,6 +454,22 @@ module Google
402
454
  # @return [::Google::Cloud::Dialogflow::CX::V3::TestCase]
403
455
  #
404
456
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
457
+ #
458
+ # @example Basic example
459
+ # require "google/cloud/dialogflow/cx/v3"
460
+ #
461
+ # # Create a client object. The client can be reused for multiple calls.
462
+ # client = Google::Cloud::Dialogflow::CX::V3::TestCases::Rest::Client.new
463
+ #
464
+ # # Create a request. To set request fields, pass in keyword arguments.
465
+ # request = Google::Cloud::Dialogflow::CX::V3::CreateTestCaseRequest.new
466
+ #
467
+ # # Call the create_test_case method.
468
+ # result = client.create_test_case request
469
+ #
470
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::TestCase.
471
+ # p result
472
+ #
405
473
  def create_test_case request, options = nil
406
474
  raise ::ArgumentError, "request must be provided" if request.nil?
407
475
 
@@ -469,6 +537,22 @@ module Google
469
537
  # @return [::Google::Cloud::Dialogflow::CX::V3::TestCase]
470
538
  #
471
539
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
540
+ #
541
+ # @example Basic example
542
+ # require "google/cloud/dialogflow/cx/v3"
543
+ #
544
+ # # Create a client object. The client can be reused for multiple calls.
545
+ # client = Google::Cloud::Dialogflow::CX::V3::TestCases::Rest::Client.new
546
+ #
547
+ # # Create a request. To set request fields, pass in keyword arguments.
548
+ # request = Google::Cloud::Dialogflow::CX::V3::UpdateTestCaseRequest.new
549
+ #
550
+ # # Call the update_test_case method.
551
+ # result = client.update_test_case request
552
+ #
553
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::TestCase.
554
+ # p result
555
+ #
472
556
  def update_test_case request, options = nil
473
557
  raise ::ArgumentError, "request must be provided" if request.nil?
474
558
 
@@ -545,6 +629,29 @@ module Google
545
629
  # @return [::Gapic::Operation]
546
630
  #
547
631
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
632
+ #
633
+ # @example Basic example
634
+ # require "google/cloud/dialogflow/cx/v3"
635
+ #
636
+ # # Create a client object. The client can be reused for multiple calls.
637
+ # client = Google::Cloud::Dialogflow::CX::V3::TestCases::Rest::Client.new
638
+ #
639
+ # # Create a request. To set request fields, pass in keyword arguments.
640
+ # request = Google::Cloud::Dialogflow::CX::V3::RunTestCaseRequest.new
641
+ #
642
+ # # Call the run_test_case method.
643
+ # result = client.run_test_case request
644
+ #
645
+ # # The returned object is of type Gapic::Operation. You can use it to
646
+ # # check the status of an operation, cancel it, or wait for results.
647
+ # # Here is how to wait for a response.
648
+ # result.wait_until_done! timeout: 60
649
+ # if result.response?
650
+ # p result.response
651
+ # else
652
+ # puts "No response received."
653
+ # end
654
+ #
548
655
  def run_test_case request, options = nil
549
656
  raise ::ArgumentError, "request must be provided" if request.nil?
550
657
 
@@ -625,6 +732,29 @@ module Google
625
732
  # @return [::Gapic::Operation]
626
733
  #
627
734
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
735
+ #
736
+ # @example Basic example
737
+ # require "google/cloud/dialogflow/cx/v3"
738
+ #
739
+ # # Create a client object. The client can be reused for multiple calls.
740
+ # client = Google::Cloud::Dialogflow::CX::V3::TestCases::Rest::Client.new
741
+ #
742
+ # # Create a request. To set request fields, pass in keyword arguments.
743
+ # request = Google::Cloud::Dialogflow::CX::V3::BatchRunTestCasesRequest.new
744
+ #
745
+ # # Call the batch_run_test_cases method.
746
+ # result = client.batch_run_test_cases request
747
+ #
748
+ # # The returned object is of type Gapic::Operation. You can use it to
749
+ # # check the status of an operation, cancel it, or wait for results.
750
+ # # Here is how to wait for a response.
751
+ # result.wait_until_done! timeout: 60
752
+ # if result.response?
753
+ # p result.response
754
+ # else
755
+ # puts "No response received."
756
+ # end
757
+ #
628
758
  def batch_run_test_cases request, options = nil
629
759
  raise ::ArgumentError, "request must be provided" if request.nil?
630
760
 
@@ -691,6 +821,22 @@ module Google
691
821
  # @return [::Google::Cloud::Dialogflow::CX::V3::CalculateCoverageResponse]
692
822
  #
693
823
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
824
+ #
825
+ # @example Basic example
826
+ # require "google/cloud/dialogflow/cx/v3"
827
+ #
828
+ # # Create a client object. The client can be reused for multiple calls.
829
+ # client = Google::Cloud::Dialogflow::CX::V3::TestCases::Rest::Client.new
830
+ #
831
+ # # Create a request. To set request fields, pass in keyword arguments.
832
+ # request = Google::Cloud::Dialogflow::CX::V3::CalculateCoverageRequest.new
833
+ #
834
+ # # Call the calculate_coverage method.
835
+ # result = client.calculate_coverage request
836
+ #
837
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::CalculateCoverageResponse.
838
+ # p result
839
+ #
694
840
  def calculate_coverage request, options = nil
695
841
  raise ::ArgumentError, "request must be provided" if request.nil?
696
842
 
@@ -777,6 +923,29 @@ module Google
777
923
  # @return [::Gapic::Operation]
778
924
  #
779
925
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
926
+ #
927
+ # @example Basic example
928
+ # require "google/cloud/dialogflow/cx/v3"
929
+ #
930
+ # # Create a client object. The client can be reused for multiple calls.
931
+ # client = Google::Cloud::Dialogflow::CX::V3::TestCases::Rest::Client.new
932
+ #
933
+ # # Create a request. To set request fields, pass in keyword arguments.
934
+ # request = Google::Cloud::Dialogflow::CX::V3::ImportTestCasesRequest.new
935
+ #
936
+ # # Call the import_test_cases method.
937
+ # result = client.import_test_cases request
938
+ #
939
+ # # The returned object is of type Gapic::Operation. You can use it to
940
+ # # check the status of an operation, cancel it, or wait for results.
941
+ # # Here is how to wait for a response.
942
+ # result.wait_until_done! timeout: 60
943
+ # if result.response?
944
+ # p result.response
945
+ # else
946
+ # puts "No response received."
947
+ # end
948
+ #
780
949
  def import_test_cases request, options = nil
781
950
  raise ::ArgumentError, "request must be provided" if request.nil?
782
951
 
@@ -876,6 +1045,29 @@ module Google
876
1045
  # @return [::Gapic::Operation]
877
1046
  #
878
1047
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1048
+ #
1049
+ # @example Basic example
1050
+ # require "google/cloud/dialogflow/cx/v3"
1051
+ #
1052
+ # # Create a client object. The client can be reused for multiple calls.
1053
+ # client = Google::Cloud::Dialogflow::CX::V3::TestCases::Rest::Client.new
1054
+ #
1055
+ # # Create a request. To set request fields, pass in keyword arguments.
1056
+ # request = Google::Cloud::Dialogflow::CX::V3::ExportTestCasesRequest.new
1057
+ #
1058
+ # # Call the export_test_cases method.
1059
+ # result = client.export_test_cases request
1060
+ #
1061
+ # # The returned object is of type Gapic::Operation. You can use it to
1062
+ # # check the status of an operation, cancel it, or wait for results.
1063
+ # # Here is how to wait for a response.
1064
+ # result.wait_until_done! timeout: 60
1065
+ # if result.response?
1066
+ # p result.response
1067
+ # else
1068
+ # puts "No response received."
1069
+ # end
1070
+ #
879
1071
  def export_test_cases request, options = nil
880
1072
  raise ::ArgumentError, "request must be provided" if request.nil?
881
1073
 
@@ -973,6 +1165,26 @@ module Google
973
1165
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::CX::V3::TestCaseResult>]
974
1166
  #
975
1167
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1168
+ #
1169
+ # @example Basic example
1170
+ # require "google/cloud/dialogflow/cx/v3"
1171
+ #
1172
+ # # Create a client object. The client can be reused for multiple calls.
1173
+ # client = Google::Cloud::Dialogflow::CX::V3::TestCases::Rest::Client.new
1174
+ #
1175
+ # # Create a request. To set request fields, pass in keyword arguments.
1176
+ # request = Google::Cloud::Dialogflow::CX::V3::ListTestCaseResultsRequest.new
1177
+ #
1178
+ # # Call the list_test_case_results method.
1179
+ # result = client.list_test_case_results request
1180
+ #
1181
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1182
+ # # over elements, and API calls will be issued to fetch pages as needed.
1183
+ # result.each do |item|
1184
+ # # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::TestCaseResult.
1185
+ # p item
1186
+ # end
1187
+ #
976
1188
  def list_test_case_results request, options = nil
977
1189
  raise ::ArgumentError, "request must be provided" if request.nil?
978
1190
 
@@ -1038,6 +1250,22 @@ module Google
1038
1250
  # @return [::Google::Cloud::Dialogflow::CX::V3::TestCaseResult]
1039
1251
  #
1040
1252
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1253
+ #
1254
+ # @example Basic example
1255
+ # require "google/cloud/dialogflow/cx/v3"
1256
+ #
1257
+ # # Create a client object. The client can be reused for multiple calls.
1258
+ # client = Google::Cloud::Dialogflow::CX::V3::TestCases::Rest::Client.new
1259
+ #
1260
+ # # Create a request. To set request fields, pass in keyword arguments.
1261
+ # request = Google::Cloud::Dialogflow::CX::V3::GetTestCaseResultRequest.new
1262
+ #
1263
+ # # Call the get_test_case_result method.
1264
+ # result = client.get_test_case_result request
1265
+ #
1266
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::TestCaseResult.
1267
+ # p result
1268
+ #
1041
1269
  def get_test_case_result request, options = nil
1042
1270
  raise ::ArgumentError, "request must be provided" if request.nil?
1043
1271
 
@@ -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
 
@@ -152,7 +152,8 @@ module Google
152
152
  credentials: credentials,
153
153
  endpoint: @config.endpoint,
154
154
  channel_args: @config.channel_args,
155
- interceptors: @config.interceptors
155
+ interceptors: @config.interceptors,
156
+ channel_pool_config: @config.channel_pool
156
157
  )
157
158
  end
158
159
 
@@ -817,6 +818,14 @@ module Google
817
818
  end
818
819
  end
819
820
 
821
+ ##
822
+ # Configuration for the channel pool
823
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
824
+ #
825
+ def channel_pool
826
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
827
+ end
828
+
820
829
  ##
821
830
  # Configuration RPC class for the TransitionRouteGroups API.
822
831
  #
@@ -206,6 +206,26 @@ module Google
206
206
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup>]
207
207
  #
208
208
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
209
+ #
210
+ # @example Basic example
211
+ # require "google/cloud/dialogflow/cx/v3"
212
+ #
213
+ # # Create a client object. The client can be reused for multiple calls.
214
+ # client = Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroups::Rest::Client.new
215
+ #
216
+ # # Create a request. To set request fields, pass in keyword arguments.
217
+ # request = Google::Cloud::Dialogflow::CX::V3::ListTransitionRouteGroupsRequest.new
218
+ #
219
+ # # Call the list_transition_route_groups method.
220
+ # result = client.list_transition_route_groups request
221
+ #
222
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
223
+ # # over elements, and API calls will be issued to fetch pages as needed.
224
+ # result.each do |item|
225
+ # # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup.
226
+ # p item
227
+ # end
228
+ #
209
229
  def list_transition_route_groups request, options = nil
210
230
  raise ::ArgumentError, "request must be provided" if request.nil?
211
231
 
@@ -288,6 +308,22 @@ module Google
288
308
  # @return [::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup]
289
309
  #
290
310
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
311
+ #
312
+ # @example Basic example
313
+ # require "google/cloud/dialogflow/cx/v3"
314
+ #
315
+ # # Create a client object. The client can be reused for multiple calls.
316
+ # client = Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroups::Rest::Client.new
317
+ #
318
+ # # Create a request. To set request fields, pass in keyword arguments.
319
+ # request = Google::Cloud::Dialogflow::CX::V3::GetTransitionRouteGroupRequest.new
320
+ #
321
+ # # Call the get_transition_route_group method.
322
+ # result = client.get_transition_route_group request
323
+ #
324
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup.
325
+ # p result
326
+ #
291
327
  def get_transition_route_group request, options = nil
292
328
  raise ::ArgumentError, "request must be provided" if request.nil?
293
329
 
@@ -375,6 +411,22 @@ module Google
375
411
  # @return [::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup]
376
412
  #
377
413
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
414
+ #
415
+ # @example Basic example
416
+ # require "google/cloud/dialogflow/cx/v3"
417
+ #
418
+ # # Create a client object. The client can be reused for multiple calls.
419
+ # client = Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroups::Rest::Client.new
420
+ #
421
+ # # Create a request. To set request fields, pass in keyword arguments.
422
+ # request = Google::Cloud::Dialogflow::CX::V3::CreateTransitionRouteGroupRequest.new
423
+ #
424
+ # # Call the create_transition_route_group method.
425
+ # result = client.create_transition_route_group request
426
+ #
427
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup.
428
+ # p result
429
+ #
378
430
  def create_transition_route_group request, options = nil
379
431
  raise ::ArgumentError, "request must be provided" if request.nil?
380
432
 
@@ -456,6 +508,22 @@ module Google
456
508
  # @return [::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup]
457
509
  #
458
510
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
511
+ #
512
+ # @example Basic example
513
+ # require "google/cloud/dialogflow/cx/v3"
514
+ #
515
+ # # Create a client object. The client can be reused for multiple calls.
516
+ # client = Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroups::Rest::Client.new
517
+ #
518
+ # # Create a request. To set request fields, pass in keyword arguments.
519
+ # request = Google::Cloud::Dialogflow::CX::V3::UpdateTransitionRouteGroupRequest.new
520
+ #
521
+ # # Call the update_transition_route_group method.
522
+ # result = client.update_transition_route_group request
523
+ #
524
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup.
525
+ # p result
526
+ #
459
527
  def update_transition_route_group request, options = nil
460
528
  raise ::ArgumentError, "request must be provided" if request.nil?
461
529
 
@@ -536,6 +604,22 @@ module Google
536
604
  # @return [::Google::Protobuf::Empty]
537
605
  #
538
606
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
607
+ #
608
+ # @example Basic example
609
+ # require "google/cloud/dialogflow/cx/v3"
610
+ #
611
+ # # Create a client object. The client can be reused for multiple calls.
612
+ # client = Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroups::Rest::Client.new
613
+ #
614
+ # # Create a request. To set request fields, pass in keyword arguments.
615
+ # request = Google::Cloud::Dialogflow::CX::V3::DeleteTransitionRouteGroupRequest.new
616
+ #
617
+ # # Call the delete_transition_route_group method.
618
+ # result = client.delete_transition_route_group request
619
+ #
620
+ # # The returned object is of type Google::Protobuf::Empty.
621
+ # p result
622
+ #
539
623
  def delete_transition_route_group request, options = nil
540
624
  raise ::ArgumentError, "request must be provided" if request.nil?
541
625
 
@@ -5,7 +5,7 @@
5
5
  require 'google/protobuf'
6
6
 
7
7
 
8
- descriptor_data = "\n6google/cloud/dialogflow/cx/v3/validation_message.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\"\xf8\x04\n\x11ValidationMessage\x12T\n\rresource_type\x18\x01 \x01(\x0e\x32=.google.cloud.dialogflow.cx.v3.ValidationMessage.ResourceType\x12\x15\n\tresources\x18\x02 \x03(\tB\x02\x18\x01\x12\x43\n\x0eresource_names\x18\x06 \x03(\x0b\x32+.google.cloud.dialogflow.cx.v3.ResourceName\x12K\n\x08severity\x18\x03 \x01(\x0e\x32\x39.google.cloud.dialogflow.cx.v3.ValidationMessage.Severity\x12\x0e\n\x06\x64\x65tail\x18\x04 \x01(\t\"\x8b\x02\n\x0cResourceType\x12\x1d\n\x19RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x41GENT\x10\x01\x12\n\n\x06INTENT\x10\x02\x12\x1a\n\x16INTENT_TRAINING_PHRASE\x10\x08\x12\x14\n\x10INTENT_PARAMETER\x10\t\x12\x0b\n\x07INTENTS\x10\n\x12\x1b\n\x17INTENT_TRAINING_PHRASES\x10\x0b\x12\x0f\n\x0b\x45NTITY_TYPE\x10\x03\x12\x10\n\x0c\x45NTITY_TYPES\x10\x0c\x12\x0b\n\x07WEBHOOK\x10\x04\x12\x08\n\x04\x46LOW\x10\x05\x12\x08\n\x04PAGE\x10\x06\x12\t\n\x05PAGES\x10\r\x12\x1a\n\x16TRANSITION_ROUTE_GROUP\x10\x07\"F\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x08\n\x04INFO\x10\x01\x12\x0b\n\x07WARNING\x10\x02\x12\t\n\x05\x45RROR\x10\x03\"2\n\x0cResourceName\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\tB\xbc\x01\n!com.google.cloud.dialogflow.cx.v3B\x16ValidationMessageProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\x06proto3"
8
+ descriptor_data = "\n6google/cloud/dialogflow/cx/v3/validation_message.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\"\x9a\x05\n\x11ValidationMessage\x12T\n\rresource_type\x18\x01 \x01(\x0e\x32=.google.cloud.dialogflow.cx.v3.ValidationMessage.ResourceType\x12\x15\n\tresources\x18\x02 \x03(\tB\x02\x18\x01\x12\x43\n\x0eresource_names\x18\x06 \x03(\x0b\x32+.google.cloud.dialogflow.cx.v3.ResourceName\x12K\n\x08severity\x18\x03 \x01(\x0e\x32\x39.google.cloud.dialogflow.cx.v3.ValidationMessage.Severity\x12\x0e\n\x06\x64\x65tail\x18\x04 \x01(\t\"\xad\x02\n\x0cResourceType\x12\x1d\n\x19RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x41GENT\x10\x01\x12\n\n\x06INTENT\x10\x02\x12\x1a\n\x16INTENT_TRAINING_PHRASE\x10\x08\x12\x14\n\x10INTENT_PARAMETER\x10\t\x12\x0b\n\x07INTENTS\x10\n\x12\x1b\n\x17INTENT_TRAINING_PHRASES\x10\x0b\x12\x0f\n\x0b\x45NTITY_TYPE\x10\x03\x12\x10\n\x0c\x45NTITY_TYPES\x10\x0c\x12\x0b\n\x07WEBHOOK\x10\x04\x12\x08\n\x04\x46LOW\x10\x05\x12\x08\n\x04PAGE\x10\x06\x12\t\n\x05PAGES\x10\r\x12\x1a\n\x16TRANSITION_ROUTE_GROUP\x10\x07\x12 \n\x1c\x41GENT_TRANSITION_ROUTE_GROUP\x10\x0e\"F\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x08\n\x04INFO\x10\x01\x12\x0b\n\x07WARNING\x10\x02\x12\t\n\x05\x45RROR\x10\x03\"2\n\x0cResourceName\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\tB\xbc\x01\n!com.google.cloud.dialogflow.cx.v3B\x16ValidationMessageProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\x06proto3"
9
9
 
10
10
  pool = Google::Protobuf::DescriptorPool.generated_pool
11
11
 
@@ -22,7 +22,7 @@ module Google
22
22
  module Dialogflow
23
23
  module CX
24
24
  module V3
25
- VERSION = "0.20.0"
25
+ VERSION = "0.21.0"
26
26
  end
27
27
  end
28
28
  end
@@ -157,7 +157,8 @@ module Google
157
157
  credentials: credentials,
158
158
  endpoint: @config.endpoint,
159
159
  channel_args: @config.channel_args,
160
- interceptors: @config.interceptors
160
+ interceptors: @config.interceptors,
161
+ channel_pool_config: @config.channel_pool
161
162
  )
162
163
  end
163
164
 
@@ -974,6 +975,14 @@ module Google
974
975
  end
975
976
  end
976
977
 
978
+ ##
979
+ # Configuration for the channel pool
980
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
981
+ #
982
+ def channel_pool
983
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
984
+ end
985
+
977
986
  ##
978
987
  # Configuration RPC class for the Versions API.
979
988
  #
@@ -94,7 +94,8 @@ module Google
94
94
  credentials: credentials,
95
95
  endpoint: @config.endpoint,
96
96
  channel_args: @config.channel_args,
97
- interceptors: @config.interceptors
97
+ interceptors: @config.interceptors,
98
+ channel_pool_config: @config.channel_pool
98
99
  )
99
100
 
100
101
  # Used by an LRO wrapper for some methods of this service
@@ -702,6 +703,14 @@ module Google
702
703
  end
703
704
  end
704
705
 
706
+ ##
707
+ # Configuration for the channel pool
708
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
709
+ #
710
+ def channel_pool
711
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
712
+ end
713
+
705
714
  ##
706
715
  # Configuration RPC class for the Operations API.
707
716
  #