google-cloud-dialogflow-cx-v3 1.1.1 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +30 -20
  3. data/lib/google/cloud/dialogflow/cx/v3/advanced_settings_pb.rb +1 -1
  4. data/lib/google/cloud/dialogflow/cx/v3/agent_pb.rb +2 -1
  5. data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +44 -25
  6. data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +12 -15
  7. data/lib/google/cloud/dialogflow/cx/v3/agents/paths.rb +19 -0
  8. data/lib/google/cloud/dialogflow/cx/v3/agents/rest/client.rb +44 -25
  9. data/lib/google/cloud/dialogflow/cx/v3/agents/rest/operations.rb +43 -38
  10. data/lib/google/cloud/dialogflow/cx/v3/agents/rest/service_stub.rb +102 -68
  11. data/lib/google/cloud/dialogflow/cx/v3/audio_config_pb.rb +1 -1
  12. data/lib/google/cloud/dialogflow/cx/v3/changelog_pb.rb +1 -1
  13. data/lib/google/cloud/dialogflow/cx/v3/changelogs/client.rb +32 -6
  14. data/lib/google/cloud/dialogflow/cx/v3/changelogs/rest/client.rb +32 -6
  15. data/lib/google/cloud/dialogflow/cx/v3/changelogs/rest/service_stub.rb +30 -14
  16. data/lib/google/cloud/dialogflow/cx/v3/data_store_connection_pb.rb +1 -1
  17. data/lib/google/cloud/dialogflow/cx/v3/deployments/client.rb +32 -8
  18. data/lib/google/cloud/dialogflow/cx/v3/deployments/rest/client.rb +32 -8
  19. data/lib/google/cloud/dialogflow/cx/v3/deployments/rest/service_stub.rb +30 -14
  20. data/lib/google/cloud/dialogflow/cx/v3/entity_type_pb.rb +1 -1
  21. data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +43 -21
  22. data/lib/google/cloud/dialogflow/cx/v3/entity_types/operations.rb +12 -15
  23. data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest/client.rb +43 -21
  24. data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest/operations.rb +43 -38
  25. data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest/service_stub.rb +70 -44
  26. data/lib/google/cloud/dialogflow/cx/v3/environment_pb.rb +1 -1
  27. data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +50 -27
  28. data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +12 -15
  29. data/lib/google/cloud/dialogflow/cx/v3/environments/rest/client.rb +50 -27
  30. data/lib/google/cloud/dialogflow/cx/v3/environments/rest/operations.rb +43 -38
  31. data/lib/google/cloud/dialogflow/cx/v3/environments/rest/service_stub.rb +86 -56
  32. data/lib/google/cloud/dialogflow/cx/v3/experiment_pb.rb +1 -1
  33. data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +38 -21
  34. data/lib/google/cloud/dialogflow/cx/v3/experiments/rest/client.rb +38 -21
  35. data/lib/google/cloud/dialogflow/cx/v3/experiments/rest/service_stub.rb +70 -44
  36. data/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb +1 -1
  37. data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +47 -26
  38. data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +12 -15
  39. data/lib/google/cloud/dialogflow/cx/v3/flows/rest/client.rb +47 -26
  40. data/lib/google/cloud/dialogflow/cx/v3/flows/rest/operations.rb +43 -38
  41. data/lib/google/cloud/dialogflow/cx/v3/flows/rest/service_stub.rb +94 -62
  42. data/lib/google/cloud/dialogflow/cx/v3/fulfillment_pb.rb +1 -1
  43. data/lib/google/cloud/dialogflow/cx/v3/gcs_pb.rb +1 -1
  44. data/lib/google/cloud/dialogflow/cx/v3/generative_settings_pb.rb +1 -1
  45. data/lib/google/cloud/dialogflow/cx/v3/generator_pb.rb +2 -1
  46. data/lib/google/cloud/dialogflow/cx/v3/generators/client.rb +35 -12
  47. data/lib/google/cloud/dialogflow/cx/v3/generators/rest/client.rb +35 -12
  48. data/lib/google/cloud/dialogflow/cx/v3/generators/rest/service_stub.rb +54 -32
  49. data/lib/google/cloud/dialogflow/cx/v3/import_strategy_pb.rb +1 -1
  50. data/lib/google/cloud/dialogflow/cx/v3/intent_pb.rb +1 -1
  51. data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +41 -19
  52. data/lib/google/cloud/dialogflow/cx/v3/intents/operations.rb +12 -15
  53. data/lib/google/cloud/dialogflow/cx/v3/intents/rest/client.rb +41 -19
  54. data/lib/google/cloud/dialogflow/cx/v3/intents/rest/operations.rb +43 -38
  55. data/lib/google/cloud/dialogflow/cx/v3/intents/rest/service_stub.rb +70 -44
  56. data/lib/google/cloud/dialogflow/cx/v3/page_pb.rb +1 -1
  57. data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +37 -14
  58. data/lib/google/cloud/dialogflow/cx/v3/pages/rest/client.rb +37 -14
  59. data/lib/google/cloud/dialogflow/cx/v3/pages/rest/service_stub.rb +54 -32
  60. data/lib/google/cloud/dialogflow/cx/v3/safety_settings_pb.rb +1 -1
  61. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +35 -12
  62. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/rest/client.rb +35 -12
  63. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/rest/service_stub.rb +54 -32
  64. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +54 -29
  65. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/rest/client.rb +54 -29
  66. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/rest/service_stub.rb +54 -32
  67. data/lib/google/cloud/dialogflow/cx/v3/session_pb.rb +5 -1
  68. data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +40 -16
  69. data/lib/google/cloud/dialogflow/cx/v3/sessions/rest/client.rb +40 -14
  70. data/lib/google/cloud/dialogflow/cx/v3/sessions/rest/service_stub.rb +47 -26
  71. data/lib/google/cloud/dialogflow/cx/v3/test_case_pb.rb +1 -1
  72. data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +59 -38
  73. data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +12 -15
  74. data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/client.rb +59 -38
  75. data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/operations.rb +43 -38
  76. data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/service_stub.rb +110 -74
  77. data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_pb.rb +1 -1
  78. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +43 -21
  79. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest/client.rb +43 -21
  80. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest/service_stub.rb +54 -32
  81. data/lib/google/cloud/dialogflow/cx/v3/validation_message_pb.rb +1 -1
  82. data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
  83. data/lib/google/cloud/dialogflow/cx/v3/version_pb.rb +1 -1
  84. data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +44 -22
  85. data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +12 -15
  86. data/lib/google/cloud/dialogflow/cx/v3/versions/rest/client.rb +44 -22
  87. data/lib/google/cloud/dialogflow/cx/v3/versions/rest/operations.rb +43 -38
  88. data/lib/google/cloud/dialogflow/cx/v3/versions/rest/service_stub.rb +70 -44
  89. data/lib/google/cloud/dialogflow/cx/v3/webhook_pb.rb +1 -1
  90. data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +35 -12
  91. data/lib/google/cloud/dialogflow/cx/v3/webhooks/rest/client.rb +35 -12
  92. data/lib/google/cloud/dialogflow/cx/v3/webhooks/rest/service_stub.rb +54 -32
  93. data/proto_docs/google/api/client.rb +39 -0
  94. data/proto_docs/google/cloud/dialogflow/cx/v3/advanced_settings.rb +1 -1
  95. data/proto_docs/google/cloud/dialogflow/cx/v3/agent.rb +44 -20
  96. data/proto_docs/google/cloud/dialogflow/cx/v3/audio_config.rb +6 -0
  97. data/proto_docs/google/cloud/dialogflow/cx/v3/changelog.rb +5 -5
  98. data/proto_docs/google/cloud/dialogflow/cx/v3/deployment.rb +11 -13
  99. data/proto_docs/google/cloud/dialogflow/cx/v3/entity_type.rb +16 -17
  100. data/proto_docs/google/cloud/dialogflow/cx/v3/environment.rb +26 -28
  101. data/proto_docs/google/cloud/dialogflow/cx/v3/experiment.rb +15 -19
  102. data/proto_docs/google/cloud/dialogflow/cx/v3/flow.rb +28 -27
  103. data/proto_docs/google/cloud/dialogflow/cx/v3/fulfillment.rb +2 -2
  104. data/proto_docs/google/cloud/dialogflow/cx/v3/generative_settings.rb +2 -2
  105. data/proto_docs/google/cloud/dialogflow/cx/v3/generator.rb +41 -8
  106. data/proto_docs/google/cloud/dialogflow/cx/v3/intent.rb +19 -19
  107. data/proto_docs/google/cloud/dialogflow/cx/v3/page.rb +33 -33
  108. data/proto_docs/google/cloud/dialogflow/cx/v3/response_message.rb +2 -1
  109. data/proto_docs/google/cloud/dialogflow/cx/v3/security_settings.rb +14 -14
  110. data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +107 -22
  111. data/proto_docs/google/cloud/dialogflow/cx/v3/session_entity_type.rb +30 -28
  112. data/proto_docs/google/cloud/dialogflow/cx/v3/test_case.rb +41 -43
  113. data/proto_docs/google/cloud/dialogflow/cx/v3/transition_route_group.rb +16 -18
  114. data/proto_docs/google/cloud/dialogflow/cx/v3/version.rb +19 -19
  115. data/proto_docs/google/cloud/dialogflow/cx/v3/webhook.rb +24 -25
  116. data/proto_docs/google/longrunning/operations.rb +19 -14
  117. metadata +5 -5
@@ -172,14 +172,26 @@ module Google
172
172
  universe_domain: @config.universe_domain,
173
173
  channel_args: @config.channel_args,
174
174
  interceptors: @config.interceptors,
175
- channel_pool_config: @config.channel_pool
175
+ channel_pool_config: @config.channel_pool,
176
+ logger: @config.logger
176
177
  )
177
178
 
179
+ @test_cases_stub.stub_logger&.info do |entry|
180
+ entry.set_system_name
181
+ entry.set_service
182
+ entry.message = "Created client for #{entry.service}"
183
+ entry.set_credentials_fields credentials
184
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
185
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
186
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
187
+ end
188
+
178
189
  @location_client = Google::Cloud::Location::Locations::Client.new do |config|
179
190
  config.credentials = credentials
180
191
  config.quota_project = @quota_project_id
181
192
  config.endpoint = @test_cases_stub.endpoint
182
193
  config.universe_domain = @test_cases_stub.universe_domain
194
+ config.logger = @test_cases_stub.logger if config.respond_to? :logger=
183
195
  end
184
196
  end
185
197
 
@@ -197,6 +209,15 @@ module Google
197
209
  #
198
210
  attr_reader :location_client
199
211
 
212
+ ##
213
+ # The logger used for request/response debug logging.
214
+ #
215
+ # @return [Logger]
216
+ #
217
+ def logger
218
+ @test_cases_stub.logger
219
+ end
220
+
200
221
  # Service calls
201
222
 
202
223
  ##
@@ -219,7 +240,7 @@ module Google
219
240
  #
220
241
  # @param parent [::String]
221
242
  # Required. The agent to list all pages for.
222
- # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
243
+ # Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
223
244
  # @param page_size [::Integer]
224
245
  # The maximum number of items to return in a single page. By default 20.
225
246
  # Note that when TestCaseView = FULL, the maximum page size allowed is 20.
@@ -293,7 +314,7 @@ module Google
293
314
  @test_cases_stub.call_rpc :list_test_cases, request, options: options do |response, operation|
294
315
  response = ::Gapic::PagedEnumerable.new @test_cases_stub, :list_test_cases, request, response, operation, options
295
316
  yield response, operation if block_given?
296
- return response
317
+ throw :response, response
297
318
  end
298
319
  rescue ::GRPC::BadStatus => e
299
320
  raise ::Google::Cloud::Error.from_error(e)
@@ -319,10 +340,10 @@ module Google
319
340
  #
320
341
  # @param parent [::String]
321
342
  # Required. The agent to delete test cases from.
322
- # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
343
+ # Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
323
344
  # @param names [::Array<::String>]
324
- # Required. Format of test case names: `projects/<Project ID>/locations/
325
- # <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
345
+ # Required. Format of test case names:
346
+ # `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>`.
326
347
  #
327
348
  # @yield [response, operation] Access the result along with the RPC operation
328
349
  # @yieldparam response [::Google::Protobuf::Empty]
@@ -383,7 +404,6 @@ module Google
383
404
 
384
405
  @test_cases_stub.call_rpc :batch_delete_test_cases, request, options: options do |response, operation|
385
406
  yield response, operation if block_given?
386
- return response
387
407
  end
388
408
  rescue ::GRPC::BadStatus => e
389
409
  raise ::Google::Cloud::Error.from_error(e)
@@ -409,8 +429,8 @@ module Google
409
429
  #
410
430
  # @param name [::String]
411
431
  # Required. The name of the testcase.
412
- # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
413
- # ID>/testCases/<TestCase ID>`.
432
+ # Format:
433
+ # `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>`.
414
434
  #
415
435
  # @yield [response, operation] Access the result along with the RPC operation
416
436
  # @yieldparam response [::Google::Cloud::Dialogflow::CX::V3::TestCase]
@@ -471,7 +491,6 @@ module Google
471
491
 
472
492
  @test_cases_stub.call_rpc :get_test_case, request, options: options do |response, operation|
473
493
  yield response, operation if block_given?
474
- return response
475
494
  end
476
495
  rescue ::GRPC::BadStatus => e
477
496
  raise ::Google::Cloud::Error.from_error(e)
@@ -497,7 +516,7 @@ module Google
497
516
  #
498
517
  # @param parent [::String]
499
518
  # Required. The agent to create the test case for.
500
- # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
519
+ # Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
501
520
  # @param test_case [::Google::Cloud::Dialogflow::CX::V3::TestCase, ::Hash]
502
521
  # Required. The test case to create.
503
522
  #
@@ -560,7 +579,6 @@ module Google
560
579
 
561
580
  @test_cases_stub.call_rpc :create_test_case, request, options: options do |response, operation|
562
581
  yield response, operation if block_given?
563
- return response
564
582
  end
565
583
  rescue ::GRPC::BadStatus => e
566
584
  raise ::Google::Cloud::Error.from_error(e)
@@ -651,7 +669,6 @@ module Google
651
669
 
652
670
  @test_cases_stub.call_rpc :update_test_case, request, options: options do |response, operation|
653
671
  yield response, operation if block_given?
654
- return response
655
672
  end
656
673
  rescue ::GRPC::BadStatus => e
657
674
  raise ::Google::Cloud::Error.from_error(e)
@@ -685,12 +702,12 @@ module Google
685
702
  # the default parameter values, pass an empty Hash as a request object (see above).
686
703
  #
687
704
  # @param name [::String]
688
- # Required. Format of test case name to run: `projects/<Project
689
- # ID>/locations/ <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
705
+ # Required. Format of test case name to run:
706
+ # `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>`.
690
707
  # @param environment [::String]
691
708
  # Optional. Environment name. If not set, draft environment is assumed.
692
- # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
693
- # ID>/environments/<Environment ID>`.
709
+ # Format:
710
+ # `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>`.
694
711
  #
695
712
  # @yield [response, operation] Access the result along with the RPC operation
696
713
  # @yieldparam response [::Gapic::Operation]
@@ -759,7 +776,7 @@ module Google
759
776
  @test_cases_stub.call_rpc :run_test_case, request, options: options do |response, operation|
760
777
  response = ::Gapic::Operation.new response, @operations_client, options: options
761
778
  yield response, operation if block_given?
762
- return response
779
+ throw :response, response
763
780
  end
764
781
  rescue ::GRPC::BadStatus => e
765
782
  raise ::Google::Cloud::Error.from_error(e)
@@ -793,15 +810,14 @@ module Google
793
810
  # the default parameter values, pass an empty Hash as a request object (see above).
794
811
  #
795
812
  # @param parent [::String]
796
- # Required. Agent name. Format: `projects/<Project ID>/locations/<Location
797
- # ID>/agents/ <AgentID>`.
813
+ # Required. Agent name. Format:
814
+ # `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
798
815
  # @param environment [::String]
799
816
  # Optional. If not set, draft environment is assumed. Format:
800
- # `projects/<Project ID>/locations/<Location ID>/agents/<Agent
801
- # ID>/environments/<Environment ID>`.
817
+ # `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>`.
802
818
  # @param test_cases [::Array<::String>]
803
- # Required. Format: `projects/<Project ID>/locations/<Location
804
- # ID>/agents/<Agent ID>/testCases/<TestCase ID>`.
819
+ # Required. Format:
820
+ # `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>`.
805
821
  #
806
822
  # @yield [response, operation] Access the result along with the RPC operation
807
823
  # @yieldparam response [::Gapic::Operation]
@@ -870,7 +886,7 @@ module Google
870
886
  @test_cases_stub.call_rpc :batch_run_test_cases, request, options: options do |response, operation|
871
887
  response = ::Gapic::Operation.new response, @operations_client, options: options
872
888
  yield response, operation if block_given?
873
- return response
889
+ throw :response, response
874
890
  end
875
891
  rescue ::GRPC::BadStatus => e
876
892
  raise ::Google::Cloud::Error.from_error(e)
@@ -896,7 +912,7 @@ module Google
896
912
  #
897
913
  # @param agent [::String]
898
914
  # Required. The agent to calculate coverage for.
899
- # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
915
+ # Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
900
916
  # @param type [::Google::Cloud::Dialogflow::CX::V3::CalculateCoverageRequest::CoverageType]
901
917
  # Required. The type of coverage requested.
902
918
  #
@@ -959,7 +975,6 @@ module Google
959
975
 
960
976
  @test_cases_stub.call_rpc :calculate_coverage, request, options: options do |response, operation|
961
977
  yield response, operation if block_given?
962
- return response
963
978
  end
964
979
  rescue ::GRPC::BadStatus => e
965
980
  raise ::Google::Cloud::Error.from_error(e)
@@ -996,7 +1011,7 @@ module Google
996
1011
  #
997
1012
  # @param parent [::String]
998
1013
  # Required. The agent to import test cases to.
999
- # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
1014
+ # Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
1000
1015
  # @param gcs_uri [::String]
1001
1016
  # The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
1002
1017
  # to import test cases from. The format of this URI must be
@@ -1077,7 +1092,7 @@ module Google
1077
1092
  @test_cases_stub.call_rpc :import_test_cases, request, options: options do |response, operation|
1078
1093
  response = ::Gapic::Operation.new response, @operations_client, options: options
1079
1094
  yield response, operation if block_given?
1080
- return response
1095
+ throw :response, response
1081
1096
  end
1082
1097
  rescue ::GRPC::BadStatus => e
1083
1098
  raise ::Google::Cloud::Error.from_error(e)
@@ -1113,7 +1128,7 @@ module Google
1113
1128
  #
1114
1129
  # @param parent [::String]
1115
1130
  # Required. The agent where to export test cases from.
1116
- # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
1131
+ # Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
1117
1132
  # @param gcs_uri [::String]
1118
1133
  # The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to
1119
1134
  # export the test cases to. The format of this URI must be
@@ -1207,7 +1222,7 @@ module Google
1207
1222
  @test_cases_stub.call_rpc :export_test_cases, request, options: options do |response, operation|
1208
1223
  response = ::Gapic::Operation.new response, @operations_client, options: options
1209
1224
  yield response, operation if block_given?
1210
- return response
1225
+ throw :response, response
1211
1226
  end
1212
1227
  rescue ::GRPC::BadStatus => e
1213
1228
  raise ::Google::Cloud::Error.from_error(e)
@@ -1234,9 +1249,10 @@ module Google
1234
1249
  #
1235
1250
  # @param parent [::String]
1236
1251
  # Required. The test case to list results for.
1237
- # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
1238
- # testCases/<TestCase ID>`. Specify a `-` as a wildcard for TestCase ID to
1239
- # list results across multiple test cases.
1252
+ # Format:
1253
+ # `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>`.
1254
+ # Specify a `-` as a wildcard for TestCase ID to
1255
+ # list results across multiple test cases.
1240
1256
  # @param page_size [::Integer]
1241
1257
  # The maximum number of items to return in a single page. By default 100 and
1242
1258
  # at most 1000.
@@ -1332,7 +1348,7 @@ module Google
1332
1348
  @test_cases_stub.call_rpc :list_test_case_results, request, options: options do |response, operation|
1333
1349
  response = ::Gapic::PagedEnumerable.new @test_cases_stub, :list_test_case_results, request, response, operation, options
1334
1350
  yield response, operation if block_given?
1335
- return response
1351
+ throw :response, response
1336
1352
  end
1337
1353
  rescue ::GRPC::BadStatus => e
1338
1354
  raise ::Google::Cloud::Error.from_error(e)
@@ -1358,8 +1374,8 @@ module Google
1358
1374
  #
1359
1375
  # @param name [::String]
1360
1376
  # Required. The name of the testcase.
1361
- # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
1362
- # ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
1377
+ # Format:
1378
+ # `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>/results/<TestCaseResultID>`.
1363
1379
  #
1364
1380
  # @yield [response, operation] Access the result along with the RPC operation
1365
1381
  # @yieldparam response [::Google::Cloud::Dialogflow::CX::V3::TestCaseResult]
@@ -1420,7 +1436,6 @@ module Google
1420
1436
 
1421
1437
  @test_cases_stub.call_rpc :get_test_case_result, request, options: options do |response, operation|
1422
1438
  yield response, operation if block_given?
1423
- return response
1424
1439
  end
1425
1440
  rescue ::GRPC::BadStatus => e
1426
1441
  raise ::Google::Cloud::Error.from_error(e)
@@ -1509,6 +1524,11 @@ module Google
1509
1524
  # default endpoint URL. The default value of nil uses the environment
1510
1525
  # universe (usually the default "googleapis.com" universe).
1511
1526
  # @return [::String,nil]
1527
+ # @!attribute [rw] logger
1528
+ # A custom logger to use for request/response debug logging, or the value
1529
+ # `:default` (the default) to construct a default logger, or `nil` to
1530
+ # explicitly disable logging.
1531
+ # @return [::Logger,:default,nil]
1512
1532
  #
1513
1533
  class Configuration
1514
1534
  extend ::Gapic::Config
@@ -1533,6 +1553,7 @@ module Google
1533
1553
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1534
1554
  config_attr :quota_project, nil, ::String, nil
1535
1555
  config_attr :universe_domain, nil, ::String, nil
1556
+ config_attr :logger, :default, ::Logger, nil, :default
1536
1557
 
1537
1558
  # @private
1538
1559
  def initialize parent_config = nil
@@ -125,14 +125,6 @@ module Google
125
125
  # Lists operations that match the specified filter in the request. If the
126
126
  # server doesn't support this method, it returns `UNIMPLEMENTED`.
127
127
  #
128
- # NOTE: the `name` binding allows API services to override the binding
129
- # to use different resource name schemes, such as `users/*/operations`. To
130
- # override the binding, API services can add a binding such as
131
- # `"/v1/{name=users/*}/operations"` to their service configuration.
132
- # For backwards compatibility, the default name includes the operations
133
- # collection id, however overriding users must ensure the name binding
134
- # is the parent resource, without the operations collection id.
135
- #
136
128
  # @overload list_operations(request, options = nil)
137
129
  # Pass arguments to `list_operations` via a request object, either of type
138
130
  # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash.
@@ -222,7 +214,7 @@ module Google
222
214
  wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client }
223
215
  response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation
224
216
  yield response, operation if block_given?
225
- return response
217
+ throw :response, response
226
218
  end
227
219
  rescue ::GRPC::BadStatus => e
228
220
  raise ::Google::Cloud::Error.from_error(e)
@@ -318,7 +310,7 @@ module Google
318
310
  @operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
319
311
  response = ::Gapic::Operation.new response, @operations_client, options: options
320
312
  yield response, operation if block_given?
321
- return response
313
+ throw :response, response
322
314
  end
323
315
  rescue ::GRPC::BadStatus => e
324
316
  raise ::Google::Cloud::Error.from_error(e)
@@ -407,7 +399,6 @@ module Google
407
399
 
408
400
  @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
409
401
  yield response, operation if block_given?
410
- return response
411
402
  end
412
403
  rescue ::GRPC::BadStatus => e
413
404
  raise ::Google::Cloud::Error.from_error(e)
@@ -422,8 +413,9 @@ module Google
422
413
  # other methods to check whether the cancellation succeeded or whether the
423
414
  # operation completed despite cancellation. On successful cancellation,
424
415
  # the operation is not deleted; instead, it becomes an operation with
425
- # an {::Google::Longrunning::Operation#error Operation.error} value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1,
426
- # corresponding to `Code.CANCELLED`.
416
+ # an {::Google::Longrunning::Operation#error Operation.error} value with a
417
+ # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to
418
+ # `Code.CANCELLED`.
427
419
  #
428
420
  # @overload cancel_operation(request, options = nil)
429
421
  # Pass arguments to `cancel_operation` via a request object, either of type
@@ -502,7 +494,6 @@ module Google
502
494
 
503
495
  @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
504
496
  yield response, operation if block_given?
505
- return response
506
497
  end
507
498
  rescue ::GRPC::BadStatus => e
508
499
  raise ::Google::Cloud::Error.from_error(e)
@@ -600,7 +591,7 @@ module Google
600
591
  @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
601
592
  response = ::Gapic::Operation.new response, @operations_client, options: options
602
593
  yield response, operation if block_given?
603
- return response
594
+ throw :response, response
604
595
  end
605
596
  rescue ::GRPC::BadStatus => e
606
597
  raise ::Google::Cloud::Error.from_error(e)
@@ -689,6 +680,11 @@ module Google
689
680
  # default endpoint URL. The default value of nil uses the environment
690
681
  # universe (usually the default "googleapis.com" universe).
691
682
  # @return [::String,nil]
683
+ # @!attribute [rw] logger
684
+ # A custom logger to use for request/response debug logging, or the value
685
+ # `:default` (the default) to construct a default logger, or `nil` to
686
+ # explicitly disable logging.
687
+ # @return [::Logger,:default,nil]
692
688
  #
693
689
  class Configuration
694
690
  extend ::Gapic::Config
@@ -713,6 +709,7 @@ module Google
713
709
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
714
710
  config_attr :quota_project, nil, ::String, nil
715
711
  config_attr :universe_domain, nil, ::String, nil
712
+ config_attr :logger, :default, ::Logger, nil, :default
716
713
 
717
714
  # @private
718
715
  def initialize parent_config = nil