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.
- checksums.yaml +4 -4
- data/README.md +30 -20
- data/lib/google/cloud/dialogflow/cx/v3/advanced_settings_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/agent_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +44 -25
- data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +12 -15
- data/lib/google/cloud/dialogflow/cx/v3/agents/paths.rb +19 -0
- data/lib/google/cloud/dialogflow/cx/v3/agents/rest/client.rb +44 -25
- data/lib/google/cloud/dialogflow/cx/v3/agents/rest/operations.rb +43 -38
- data/lib/google/cloud/dialogflow/cx/v3/agents/rest/service_stub.rb +102 -68
- data/lib/google/cloud/dialogflow/cx/v3/audio_config_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/changelog_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/client.rb +32 -6
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/rest/client.rb +32 -6
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/rest/service_stub.rb +30 -14
- data/lib/google/cloud/dialogflow/cx/v3/data_store_connection_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/deployments/client.rb +32 -8
- data/lib/google/cloud/dialogflow/cx/v3/deployments/rest/client.rb +32 -8
- data/lib/google/cloud/dialogflow/cx/v3/deployments/rest/service_stub.rb +30 -14
- data/lib/google/cloud/dialogflow/cx/v3/entity_type_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +43 -21
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/operations.rb +12 -15
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest/client.rb +43 -21
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest/operations.rb +43 -38
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest/service_stub.rb +70 -44
- data/lib/google/cloud/dialogflow/cx/v3/environment_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +50 -27
- data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +12 -15
- data/lib/google/cloud/dialogflow/cx/v3/environments/rest/client.rb +50 -27
- data/lib/google/cloud/dialogflow/cx/v3/environments/rest/operations.rb +43 -38
- data/lib/google/cloud/dialogflow/cx/v3/environments/rest/service_stub.rb +86 -56
- data/lib/google/cloud/dialogflow/cx/v3/experiment_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +38 -21
- data/lib/google/cloud/dialogflow/cx/v3/experiments/rest/client.rb +38 -21
- data/lib/google/cloud/dialogflow/cx/v3/experiments/rest/service_stub.rb +70 -44
- data/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +47 -26
- data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +12 -15
- data/lib/google/cloud/dialogflow/cx/v3/flows/rest/client.rb +47 -26
- data/lib/google/cloud/dialogflow/cx/v3/flows/rest/operations.rb +43 -38
- data/lib/google/cloud/dialogflow/cx/v3/flows/rest/service_stub.rb +94 -62
- data/lib/google/cloud/dialogflow/cx/v3/fulfillment_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/gcs_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/generative_settings_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/generator_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/cx/v3/generators/client.rb +35 -12
- data/lib/google/cloud/dialogflow/cx/v3/generators/rest/client.rb +35 -12
- data/lib/google/cloud/dialogflow/cx/v3/generators/rest/service_stub.rb +54 -32
- data/lib/google/cloud/dialogflow/cx/v3/import_strategy_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/intent_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +41 -19
- data/lib/google/cloud/dialogflow/cx/v3/intents/operations.rb +12 -15
- data/lib/google/cloud/dialogflow/cx/v3/intents/rest/client.rb +41 -19
- data/lib/google/cloud/dialogflow/cx/v3/intents/rest/operations.rb +43 -38
- data/lib/google/cloud/dialogflow/cx/v3/intents/rest/service_stub.rb +70 -44
- data/lib/google/cloud/dialogflow/cx/v3/page_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +37 -14
- data/lib/google/cloud/dialogflow/cx/v3/pages/rest/client.rb +37 -14
- data/lib/google/cloud/dialogflow/cx/v3/pages/rest/service_stub.rb +54 -32
- data/lib/google/cloud/dialogflow/cx/v3/safety_settings_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +35 -12
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/rest/client.rb +35 -12
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/rest/service_stub.rb +54 -32
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +54 -29
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/rest/client.rb +54 -29
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/rest/service_stub.rb +54 -32
- data/lib/google/cloud/dialogflow/cx/v3/session_pb.rb +5 -1
- data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +40 -16
- data/lib/google/cloud/dialogflow/cx/v3/sessions/rest/client.rb +40 -14
- data/lib/google/cloud/dialogflow/cx/v3/sessions/rest/service_stub.rb +47 -26
- data/lib/google/cloud/dialogflow/cx/v3/test_case_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +59 -38
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +12 -15
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/client.rb +59 -38
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/operations.rb +43 -38
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/service_stub.rb +110 -74
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +43 -21
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest/client.rb +43 -21
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest/service_stub.rb +54 -32
- data/lib/google/cloud/dialogflow/cx/v3/validation_message_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/version_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +44 -22
- data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +12 -15
- data/lib/google/cloud/dialogflow/cx/v3/versions/rest/client.rb +44 -22
- data/lib/google/cloud/dialogflow/cx/v3/versions/rest/operations.rb +43 -38
- data/lib/google/cloud/dialogflow/cx/v3/versions/rest/service_stub.rb +70 -44
- data/lib/google/cloud/dialogflow/cx/v3/webhook_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +35 -12
- data/lib/google/cloud/dialogflow/cx/v3/webhooks/rest/client.rb +35 -12
- data/lib/google/cloud/dialogflow/cx/v3/webhooks/rest/service_stub.rb +54 -32
- data/proto_docs/google/api/client.rb +39 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/advanced_settings.rb +1 -1
- data/proto_docs/google/cloud/dialogflow/cx/v3/agent.rb +44 -20
- data/proto_docs/google/cloud/dialogflow/cx/v3/audio_config.rb +6 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/changelog.rb +5 -5
- data/proto_docs/google/cloud/dialogflow/cx/v3/deployment.rb +11 -13
- data/proto_docs/google/cloud/dialogflow/cx/v3/entity_type.rb +16 -17
- data/proto_docs/google/cloud/dialogflow/cx/v3/environment.rb +26 -28
- data/proto_docs/google/cloud/dialogflow/cx/v3/experiment.rb +15 -19
- data/proto_docs/google/cloud/dialogflow/cx/v3/flow.rb +28 -27
- data/proto_docs/google/cloud/dialogflow/cx/v3/fulfillment.rb +2 -2
- data/proto_docs/google/cloud/dialogflow/cx/v3/generative_settings.rb +2 -2
- data/proto_docs/google/cloud/dialogflow/cx/v3/generator.rb +41 -8
- data/proto_docs/google/cloud/dialogflow/cx/v3/intent.rb +19 -19
- data/proto_docs/google/cloud/dialogflow/cx/v3/page.rb +33 -33
- data/proto_docs/google/cloud/dialogflow/cx/v3/response_message.rb +2 -1
- data/proto_docs/google/cloud/dialogflow/cx/v3/security_settings.rb +14 -14
- data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +107 -22
- data/proto_docs/google/cloud/dialogflow/cx/v3/session_entity_type.rb +30 -28
- data/proto_docs/google/cloud/dialogflow/cx/v3/test_case.rb +41 -43
- data/proto_docs/google/cloud/dialogflow/cx/v3/transition_route_group.rb +16 -18
- data/proto_docs/google/cloud/dialogflow/cx/v3/version.rb +19 -19
- data/proto_docs/google/cloud/dialogflow/cx/v3/webhook.rb +24 -25
- data/proto_docs/google/longrunning/operations.rb +19 -14
- metadata +5 -5
@@ -31,7 +31,8 @@ module Google
|
|
31
31
|
# including transcoding, making the REST call, and deserialing the response.
|
32
32
|
#
|
33
33
|
class ServiceStub
|
34
|
-
|
34
|
+
# @private
|
35
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
|
35
36
|
# These require statements are intentionally placed here to initialize
|
36
37
|
# the REST modules only when it's required.
|
37
38
|
require "gapic/rest"
|
@@ -41,7 +42,9 @@ module Google
|
|
41
42
|
universe_domain: universe_domain,
|
42
43
|
credentials: credentials,
|
43
44
|
numeric_enums: true,
|
44
|
-
|
45
|
+
service_name: self.class,
|
46
|
+
raise_faraday_errors: false,
|
47
|
+
logger: logger
|
45
48
|
end
|
46
49
|
|
47
50
|
##
|
@@ -62,6 +65,15 @@ module Google
|
|
62
65
|
@client_stub.endpoint
|
63
66
|
end
|
64
67
|
|
68
|
+
##
|
69
|
+
# The logger used for request/response debug logging.
|
70
|
+
#
|
71
|
+
# @return [Logger]
|
72
|
+
#
|
73
|
+
def logger stub: false
|
74
|
+
stub ? @client_stub.stub_logger : @client_stub.logger
|
75
|
+
end
|
76
|
+
|
65
77
|
##
|
66
78
|
# Baseline implementation for the list_test_cases REST call
|
67
79
|
#
|
@@ -88,16 +100,18 @@ module Google
|
|
88
100
|
|
89
101
|
response = @client_stub.make_http_request(
|
90
102
|
verb,
|
91
|
-
uri:
|
92
|
-
body:
|
93
|
-
params:
|
103
|
+
uri: uri,
|
104
|
+
body: body || "",
|
105
|
+
params: query_string_params,
|
106
|
+
method_name: "list_test_cases",
|
94
107
|
options: options
|
95
108
|
)
|
96
109
|
operation = ::Gapic::Rest::TransportOperation.new response
|
97
110
|
result = ::Google::Cloud::Dialogflow::CX::V3::ListTestCasesResponse.decode_json response.body, ignore_unknown_fields: true
|
98
|
-
|
99
|
-
|
100
|
-
|
111
|
+
catch :response do
|
112
|
+
yield result, operation if block_given?
|
113
|
+
result
|
114
|
+
end
|
101
115
|
end
|
102
116
|
|
103
117
|
##
|
@@ -126,16 +140,18 @@ module Google
|
|
126
140
|
|
127
141
|
response = @client_stub.make_http_request(
|
128
142
|
verb,
|
129
|
-
uri:
|
130
|
-
body:
|
131
|
-
params:
|
143
|
+
uri: uri,
|
144
|
+
body: body || "",
|
145
|
+
params: query_string_params,
|
146
|
+
method_name: "batch_delete_test_cases",
|
132
147
|
options: options
|
133
148
|
)
|
134
149
|
operation = ::Gapic::Rest::TransportOperation.new response
|
135
150
|
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
136
|
-
|
137
|
-
|
138
|
-
|
151
|
+
catch :response do
|
152
|
+
yield result, operation if block_given?
|
153
|
+
result
|
154
|
+
end
|
139
155
|
end
|
140
156
|
|
141
157
|
##
|
@@ -164,16 +180,18 @@ module Google
|
|
164
180
|
|
165
181
|
response = @client_stub.make_http_request(
|
166
182
|
verb,
|
167
|
-
uri:
|
168
|
-
body:
|
169
|
-
params:
|
183
|
+
uri: uri,
|
184
|
+
body: body || "",
|
185
|
+
params: query_string_params,
|
186
|
+
method_name: "get_test_case",
|
170
187
|
options: options
|
171
188
|
)
|
172
189
|
operation = ::Gapic::Rest::TransportOperation.new response
|
173
190
|
result = ::Google::Cloud::Dialogflow::CX::V3::TestCase.decode_json response.body, ignore_unknown_fields: true
|
174
|
-
|
175
|
-
|
176
|
-
|
191
|
+
catch :response do
|
192
|
+
yield result, operation if block_given?
|
193
|
+
result
|
194
|
+
end
|
177
195
|
end
|
178
196
|
|
179
197
|
##
|
@@ -202,16 +220,18 @@ module Google
|
|
202
220
|
|
203
221
|
response = @client_stub.make_http_request(
|
204
222
|
verb,
|
205
|
-
uri:
|
206
|
-
body:
|
207
|
-
params:
|
223
|
+
uri: uri,
|
224
|
+
body: body || "",
|
225
|
+
params: query_string_params,
|
226
|
+
method_name: "create_test_case",
|
208
227
|
options: options
|
209
228
|
)
|
210
229
|
operation = ::Gapic::Rest::TransportOperation.new response
|
211
230
|
result = ::Google::Cloud::Dialogflow::CX::V3::TestCase.decode_json response.body, ignore_unknown_fields: true
|
212
|
-
|
213
|
-
|
214
|
-
|
231
|
+
catch :response do
|
232
|
+
yield result, operation if block_given?
|
233
|
+
result
|
234
|
+
end
|
215
235
|
end
|
216
236
|
|
217
237
|
##
|
@@ -240,16 +260,18 @@ module Google
|
|
240
260
|
|
241
261
|
response = @client_stub.make_http_request(
|
242
262
|
verb,
|
243
|
-
uri:
|
244
|
-
body:
|
245
|
-
params:
|
263
|
+
uri: uri,
|
264
|
+
body: body || "",
|
265
|
+
params: query_string_params,
|
266
|
+
method_name: "update_test_case",
|
246
267
|
options: options
|
247
268
|
)
|
248
269
|
operation = ::Gapic::Rest::TransportOperation.new response
|
249
270
|
result = ::Google::Cloud::Dialogflow::CX::V3::TestCase.decode_json response.body, ignore_unknown_fields: true
|
250
|
-
|
251
|
-
|
252
|
-
|
271
|
+
catch :response do
|
272
|
+
yield result, operation if block_given?
|
273
|
+
result
|
274
|
+
end
|
253
275
|
end
|
254
276
|
|
255
277
|
##
|
@@ -278,16 +300,18 @@ module Google
|
|
278
300
|
|
279
301
|
response = @client_stub.make_http_request(
|
280
302
|
verb,
|
281
|
-
uri:
|
282
|
-
body:
|
283
|
-
params:
|
303
|
+
uri: uri,
|
304
|
+
body: body || "",
|
305
|
+
params: query_string_params,
|
306
|
+
method_name: "run_test_case",
|
284
307
|
options: options
|
285
308
|
)
|
286
309
|
operation = ::Gapic::Rest::TransportOperation.new response
|
287
310
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
288
|
-
|
289
|
-
|
290
|
-
|
311
|
+
catch :response do
|
312
|
+
yield result, operation if block_given?
|
313
|
+
result
|
314
|
+
end
|
291
315
|
end
|
292
316
|
|
293
317
|
##
|
@@ -316,16 +340,18 @@ module Google
|
|
316
340
|
|
317
341
|
response = @client_stub.make_http_request(
|
318
342
|
verb,
|
319
|
-
uri:
|
320
|
-
body:
|
321
|
-
params:
|
343
|
+
uri: uri,
|
344
|
+
body: body || "",
|
345
|
+
params: query_string_params,
|
346
|
+
method_name: "batch_run_test_cases",
|
322
347
|
options: options
|
323
348
|
)
|
324
349
|
operation = ::Gapic::Rest::TransportOperation.new response
|
325
350
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
326
|
-
|
327
|
-
|
328
|
-
|
351
|
+
catch :response do
|
352
|
+
yield result, operation if block_given?
|
353
|
+
result
|
354
|
+
end
|
329
355
|
end
|
330
356
|
|
331
357
|
##
|
@@ -354,16 +380,18 @@ module Google
|
|
354
380
|
|
355
381
|
response = @client_stub.make_http_request(
|
356
382
|
verb,
|
357
|
-
uri:
|
358
|
-
body:
|
359
|
-
params:
|
383
|
+
uri: uri,
|
384
|
+
body: body || "",
|
385
|
+
params: query_string_params,
|
386
|
+
method_name: "calculate_coverage",
|
360
387
|
options: options
|
361
388
|
)
|
362
389
|
operation = ::Gapic::Rest::TransportOperation.new response
|
363
390
|
result = ::Google::Cloud::Dialogflow::CX::V3::CalculateCoverageResponse.decode_json response.body, ignore_unknown_fields: true
|
364
|
-
|
365
|
-
|
366
|
-
|
391
|
+
catch :response do
|
392
|
+
yield result, operation if block_given?
|
393
|
+
result
|
394
|
+
end
|
367
395
|
end
|
368
396
|
|
369
397
|
##
|
@@ -392,16 +420,18 @@ module Google
|
|
392
420
|
|
393
421
|
response = @client_stub.make_http_request(
|
394
422
|
verb,
|
395
|
-
uri:
|
396
|
-
body:
|
397
|
-
params:
|
423
|
+
uri: uri,
|
424
|
+
body: body || "",
|
425
|
+
params: query_string_params,
|
426
|
+
method_name: "import_test_cases",
|
398
427
|
options: options
|
399
428
|
)
|
400
429
|
operation = ::Gapic::Rest::TransportOperation.new response
|
401
430
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
402
|
-
|
403
|
-
|
404
|
-
|
431
|
+
catch :response do
|
432
|
+
yield result, operation if block_given?
|
433
|
+
result
|
434
|
+
end
|
405
435
|
end
|
406
436
|
|
407
437
|
##
|
@@ -430,16 +460,18 @@ module Google
|
|
430
460
|
|
431
461
|
response = @client_stub.make_http_request(
|
432
462
|
verb,
|
433
|
-
uri:
|
434
|
-
body:
|
435
|
-
params:
|
463
|
+
uri: uri,
|
464
|
+
body: body || "",
|
465
|
+
params: query_string_params,
|
466
|
+
method_name: "export_test_cases",
|
436
467
|
options: options
|
437
468
|
)
|
438
469
|
operation = ::Gapic::Rest::TransportOperation.new response
|
439
470
|
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
440
|
-
|
441
|
-
|
442
|
-
|
471
|
+
catch :response do
|
472
|
+
yield result, operation if block_given?
|
473
|
+
result
|
474
|
+
end
|
443
475
|
end
|
444
476
|
|
445
477
|
##
|
@@ -468,16 +500,18 @@ module Google
|
|
468
500
|
|
469
501
|
response = @client_stub.make_http_request(
|
470
502
|
verb,
|
471
|
-
uri:
|
472
|
-
body:
|
473
|
-
params:
|
503
|
+
uri: uri,
|
504
|
+
body: body || "",
|
505
|
+
params: query_string_params,
|
506
|
+
method_name: "list_test_case_results",
|
474
507
|
options: options
|
475
508
|
)
|
476
509
|
operation = ::Gapic::Rest::TransportOperation.new response
|
477
510
|
result = ::Google::Cloud::Dialogflow::CX::V3::ListTestCaseResultsResponse.decode_json response.body, ignore_unknown_fields: true
|
478
|
-
|
479
|
-
|
480
|
-
|
511
|
+
catch :response do
|
512
|
+
yield result, operation if block_given?
|
513
|
+
result
|
514
|
+
end
|
481
515
|
end
|
482
516
|
|
483
517
|
##
|
@@ -506,16 +540,18 @@ module Google
|
|
506
540
|
|
507
541
|
response = @client_stub.make_http_request(
|
508
542
|
verb,
|
509
|
-
uri:
|
510
|
-
body:
|
511
|
-
params:
|
543
|
+
uri: uri,
|
544
|
+
body: body || "",
|
545
|
+
params: query_string_params,
|
546
|
+
method_name: "get_test_case_result",
|
512
547
|
options: options
|
513
548
|
)
|
514
549
|
operation = ::Gapic::Rest::TransportOperation.new response
|
515
550
|
result = ::Google::Cloud::Dialogflow::CX::V3::TestCaseResult.decode_json response.body, ignore_unknown_fields: true
|
516
|
-
|
517
|
-
|
518
|
-
|
551
|
+
catch :response do
|
552
|
+
yield result, operation if block_given?
|
553
|
+
result
|
554
|
+
end
|
519
555
|
end
|
520
556
|
|
521
557
|
##
|
@@ -13,7 +13,7 @@ require 'google/protobuf/empty_pb'
|
|
13
13
|
require 'google/protobuf/field_mask_pb'
|
14
14
|
|
15
15
|
|
16
|
-
descriptor_data = "\n:google/cloud/dialogflow/cx/v3/transition_route_group.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/dialogflow/cx/v3/page.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xc9\x03\n\x14TransitionRouteGroup\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12I\n\x11transition_routes\x18\x05 \x03(\x0b\x32..google.cloud.dialogflow.cx.v3.TransitionRoute:\xbc\x02\xea\x41\xb8\x02\n.dialogflow.googleapis.com/TransitionRouteGroup\x12rprojects/{project}/locations/{location}/agents/{agent}/flows/{flow}/transitionRouteGroups/{transition_route_group}\x12\x65projects/{project}/locations/{location}/agents/{agent}/transitionRouteGroups/{transition_route_group}*\x15transitionRouteGroups2\x14transitionRouteGroup\"\xa8\x01\n ListTransitionRouteGroupsRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.dialogflow.googleapis.com/TransitionRouteGroup\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x15\n\rlanguage_code\x18\x04 \x01(\t\"\x92\x01\n!ListTransitionRouteGroupsResponse\x12T\n\x17transition_route_groups\x18\x01 \x03(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.TransitionRouteGroup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"}\n\x1eGetTransitionRouteGroupRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.dialogflow.googleapis.com/TransitionRouteGroup\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\"\xdc\x01\n!CreateTransitionRouteGroupRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.dialogflow.googleapis.com/TransitionRouteGroup\x12X\n\x16transition_route_group\x18\x02 \x01(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.TransitionRouteGroupB\x03\xe0\x41\x02\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\"\xc5\x01\n!UpdateTransitionRouteGroupRequest\x12X\n\x16transition_route_group\x18\x01 \x01(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.TransitionRouteGroupB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\"x\n!DeleteTransitionRouteGroupRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.dialogflow.googleapis.com/TransitionRouteGroup\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\x32\xdd\x0e\n\x15TransitionRouteGroups\x12\xc3\x02\n\x19ListTransitionRouteGroups\x12?.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest\x1a@.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse\"\xa2\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x92\x01\x12J/v3/{parent=projects/*/locations/*/agents/*/flows/*}/transitionRouteGroupsZD\x12\x42/v3/{parent=projects/*/locations/*/agents/*}/transitionRouteGroups\x12\xb0\x02\n\x17GetTransitionRouteGroup\x12=.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest\x1a\x33.google.cloud.dialogflow.cx.v3.TransitionRouteGroup\"\xa0\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\x92\x01\x12J/v3/{name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}ZD\x12\x42/v3/{name=projects/*/locations/*/agents/*/transitionRouteGroups/*}\x12\xff\x02\n\x1a\x43reateTransitionRouteGroup\x12@.google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest\x1a\x33.google.cloud.dialogflow.cx.v3.TransitionRouteGroup\"\xe9\x01\xda\x41\x1dparent,transition_route_group\x82\xd3\xe4\x93\x02\xc2\x01\"J/v3/{parent=projects/*/locations/*/agents/*/flows/*}/transitionRouteGroups:\x16transition_route_groupZ\\\"B/v3/{parent=projects/*/locations/*/agents/*}/transitionRouteGroups:\x16transition_route_group\x12\xb2\x03\n\x1aUpdateTransitionRouteGroup\x12@.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest\x1a\x33.google.cloud.dialogflow.cx.v3.TransitionRouteGroup\"\x9c\x02\xda\x41\"transition_route_group,update_mask\x82\xd3\xe4\x93\x02\xf0\x01\x32\x61/v3/{transition_route_group.name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}:\x16transition_route_groupZs2Y/v3/{transition_route_group.name=projects/*/locations/*/agents/*/transitionRouteGroups/*}:\x16transition_route_group\x12\x99\x02\n\x1a\x44\x65leteTransitionRouteGroup\x12@.google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest\x1a\x16.google.protobuf.Empty\"\xa0\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\x92\x01*J/v3/{name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}ZD*B/v3/{name=projects/*/locations/*/agents/*/transitionRouteGroups/*}\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\
|
16
|
+
descriptor_data = "\n:google/cloud/dialogflow/cx/v3/transition_route_group.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/dialogflow/cx/v3/page.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xc9\x03\n\x14TransitionRouteGroup\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12I\n\x11transition_routes\x18\x05 \x03(\x0b\x32..google.cloud.dialogflow.cx.v3.TransitionRoute:\xbc\x02\xea\x41\xb8\x02\n.dialogflow.googleapis.com/TransitionRouteGroup\x12rprojects/{project}/locations/{location}/agents/{agent}/flows/{flow}/transitionRouteGroups/{transition_route_group}\x12\x65projects/{project}/locations/{location}/agents/{agent}/transitionRouteGroups/{transition_route_group}*\x15transitionRouteGroups2\x14transitionRouteGroup\"\xa8\x01\n ListTransitionRouteGroupsRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.dialogflow.googleapis.com/TransitionRouteGroup\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x15\n\rlanguage_code\x18\x04 \x01(\t\"\x92\x01\n!ListTransitionRouteGroupsResponse\x12T\n\x17transition_route_groups\x18\x01 \x03(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.TransitionRouteGroup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"}\n\x1eGetTransitionRouteGroupRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.dialogflow.googleapis.com/TransitionRouteGroup\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\"\xdc\x01\n!CreateTransitionRouteGroupRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.dialogflow.googleapis.com/TransitionRouteGroup\x12X\n\x16transition_route_group\x18\x02 \x01(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.TransitionRouteGroupB\x03\xe0\x41\x02\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\"\xc5\x01\n!UpdateTransitionRouteGroupRequest\x12X\n\x16transition_route_group\x18\x01 \x01(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.TransitionRouteGroupB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\"x\n!DeleteTransitionRouteGroupRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.dialogflow.googleapis.com/TransitionRouteGroup\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\x32\xdd\x0e\n\x15TransitionRouteGroups\x12\xc3\x02\n\x19ListTransitionRouteGroups\x12?.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest\x1a@.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse\"\xa2\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x92\x01\x12J/v3/{parent=projects/*/locations/*/agents/*/flows/*}/transitionRouteGroupsZD\x12\x42/v3/{parent=projects/*/locations/*/agents/*}/transitionRouteGroups\x12\xb0\x02\n\x17GetTransitionRouteGroup\x12=.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest\x1a\x33.google.cloud.dialogflow.cx.v3.TransitionRouteGroup\"\xa0\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\x92\x01\x12J/v3/{name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}ZD\x12\x42/v3/{name=projects/*/locations/*/agents/*/transitionRouteGroups/*}\x12\xff\x02\n\x1a\x43reateTransitionRouteGroup\x12@.google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest\x1a\x33.google.cloud.dialogflow.cx.v3.TransitionRouteGroup\"\xe9\x01\xda\x41\x1dparent,transition_route_group\x82\xd3\xe4\x93\x02\xc2\x01\"J/v3/{parent=projects/*/locations/*/agents/*/flows/*}/transitionRouteGroups:\x16transition_route_groupZ\\\"B/v3/{parent=projects/*/locations/*/agents/*}/transitionRouteGroups:\x16transition_route_group\x12\xb2\x03\n\x1aUpdateTransitionRouteGroup\x12@.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest\x1a\x33.google.cloud.dialogflow.cx.v3.TransitionRouteGroup\"\x9c\x02\xda\x41\"transition_route_group,update_mask\x82\xd3\xe4\x93\x02\xf0\x01\x32\x61/v3/{transition_route_group.name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}:\x16transition_route_groupZs2Y/v3/{transition_route_group.name=projects/*/locations/*/agents/*/transitionRouteGroups/*}:\x16transition_route_group\x12\x99\x02\n\x1a\x44\x65leteTransitionRouteGroup\x12@.google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest\x1a\x16.google.protobuf.Empty\"\xa0\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\x92\x01*J/v3/{name=projects/*/locations/*/agents/*/flows/*/transitionRouteGroups/*}ZD*B/v3/{name=projects/*/locations/*/agents/*/transitionRouteGroups/*}\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xbc\x01\n!com.google.cloud.dialogflow.cx.v3B\x19TransitionRouteGroupProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\x06proto3"
|
17
17
|
|
18
18
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
19
19
|
|
@@ -165,14 +165,26 @@ module Google
|
|
165
165
|
universe_domain: @config.universe_domain,
|
166
166
|
channel_args: @config.channel_args,
|
167
167
|
interceptors: @config.interceptors,
|
168
|
-
channel_pool_config: @config.channel_pool
|
168
|
+
channel_pool_config: @config.channel_pool,
|
169
|
+
logger: @config.logger
|
169
170
|
)
|
170
171
|
|
172
|
+
@transition_route_groups_stub.stub_logger&.info do |entry|
|
173
|
+
entry.set_system_name
|
174
|
+
entry.set_service
|
175
|
+
entry.message = "Created client for #{entry.service}"
|
176
|
+
entry.set_credentials_fields credentials
|
177
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
178
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
179
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
180
|
+
end
|
181
|
+
|
171
182
|
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
172
183
|
config.credentials = credentials
|
173
184
|
config.quota_project = @quota_project_id
|
174
185
|
config.endpoint = @transition_route_groups_stub.endpoint
|
175
186
|
config.universe_domain = @transition_route_groups_stub.universe_domain
|
187
|
+
config.logger = @transition_route_groups_stub.logger if config.respond_to? :logger=
|
176
188
|
end
|
177
189
|
end
|
178
190
|
|
@@ -183,6 +195,15 @@ module Google
|
|
183
195
|
#
|
184
196
|
attr_reader :location_client
|
185
197
|
|
198
|
+
##
|
199
|
+
# The logger used for request/response debug logging.
|
200
|
+
#
|
201
|
+
# @return [Logger]
|
202
|
+
#
|
203
|
+
def logger
|
204
|
+
@transition_route_groups_stub.logger
|
205
|
+
end
|
206
|
+
|
186
207
|
# Service calls
|
187
208
|
|
188
209
|
##
|
@@ -205,9 +226,9 @@ module Google
|
|
205
226
|
#
|
206
227
|
# @param parent [::String]
|
207
228
|
# Required. The flow to list all transition route groups for.
|
208
|
-
# Format:
|
209
|
-
#
|
210
|
-
#
|
229
|
+
# Format:
|
230
|
+
# `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`
|
231
|
+
# or `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>.
|
211
232
|
# @param page_size [::Integer]
|
212
233
|
# The maximum number of items to return in a single page. By default 100 and
|
213
234
|
# at most 1000.
|
@@ -221,7 +242,6 @@ module Google
|
|
221
242
|
# *
|
222
243
|
# `TransitionRouteGroup.transition_routes.trigger_fulfillment.conditional_cases`
|
223
244
|
#
|
224
|
-
#
|
225
245
|
# If not specified, the agent's default language is used.
|
226
246
|
# [Many
|
227
247
|
# languages](https://cloud.google.com/dialogflow/cx/docs/reference/language)
|
@@ -292,7 +312,7 @@ module Google
|
|
292
312
|
@transition_route_groups_stub.call_rpc :list_transition_route_groups, request, options: options do |response, operation|
|
293
313
|
response = ::Gapic::PagedEnumerable.new @transition_route_groups_stub, :list_transition_route_groups, request, response, operation, options
|
294
314
|
yield response, operation if block_given?
|
295
|
-
|
315
|
+
throw :response, response
|
296
316
|
end
|
297
317
|
rescue ::GRPC::BadStatus => e
|
298
318
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -320,10 +340,10 @@ module Google
|
|
320
340
|
# @param name [::String]
|
321
341
|
# Required. The name of the
|
322
342
|
# {::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup TransitionRouteGroup}.
|
323
|
-
# Format:
|
324
|
-
#
|
325
|
-
# or
|
326
|
-
#
|
343
|
+
# Format:
|
344
|
+
# `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/transitionRouteGroups/<TransitionRouteGroupID>`
|
345
|
+
# or
|
346
|
+
# `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/transitionRouteGroups/<TransitionRouteGroupID>`.
|
327
347
|
# @param language_code [::String]
|
328
348
|
# The language to retrieve the transition route group for. The following
|
329
349
|
# fields are language dependent:
|
@@ -397,7 +417,6 @@ module Google
|
|
397
417
|
|
398
418
|
@transition_route_groups_stub.call_rpc :get_transition_route_group, request, options: options do |response, operation|
|
399
419
|
yield response, operation if block_given?
|
400
|
-
return response
|
401
420
|
end
|
402
421
|
rescue ::GRPC::BadStatus => e
|
403
422
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -430,9 +449,9 @@ module Google
|
|
430
449
|
# @param parent [::String]
|
431
450
|
# Required. The flow to create an
|
432
451
|
# {::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup TransitionRouteGroup}
|
433
|
-
# for. Format:
|
434
|
-
#
|
435
|
-
# or `projects/<
|
452
|
+
# for. Format:
|
453
|
+
# `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`
|
454
|
+
# or `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`
|
436
455
|
# for agent-level groups.
|
437
456
|
# @param transition_route_group [::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup, ::Hash]
|
438
457
|
# Required. The transition route group to create.
|
@@ -508,7 +527,6 @@ module Google
|
|
508
527
|
|
509
528
|
@transition_route_groups_stub.call_rpc :create_transition_route_group, request, options: options do |response, operation|
|
510
529
|
yield response, operation if block_given?
|
511
|
-
return response
|
512
530
|
end
|
513
531
|
rescue ::GRPC::BadStatus => e
|
514
532
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -613,7 +631,6 @@ module Google
|
|
613
631
|
|
614
632
|
@transition_route_groups_stub.call_rpc :update_transition_route_group, request, options: options do |response, operation|
|
615
633
|
yield response, operation if block_given?
|
616
|
-
return response
|
617
634
|
end
|
618
635
|
rescue ::GRPC::BadStatus => e
|
619
636
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -645,10 +662,10 @@ module Google
|
|
645
662
|
# @param name [::String]
|
646
663
|
# Required. The name of the
|
647
664
|
# {::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup TransitionRouteGroup}
|
648
|
-
# to delete. Format:
|
649
|
-
#
|
650
|
-
#
|
651
|
-
#
|
665
|
+
# to delete. Format:
|
666
|
+
# `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/transitionRouteGroups/<TransitionRouteGroupID>`
|
667
|
+
# or
|
668
|
+
# `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/transitionRouteGroups/<TransitionRouteGroupID>`.
|
652
669
|
# @param force [::Boolean]
|
653
670
|
# This field has no effect for transition route group that no page is using.
|
654
671
|
# If the transition route group is referenced by any page:
|
@@ -717,7 +734,6 @@ module Google
|
|
717
734
|
|
718
735
|
@transition_route_groups_stub.call_rpc :delete_transition_route_group, request, options: options do |response, operation|
|
719
736
|
yield response, operation if block_given?
|
720
|
-
return response
|
721
737
|
end
|
722
738
|
rescue ::GRPC::BadStatus => e
|
723
739
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -806,6 +822,11 @@ module Google
|
|
806
822
|
# default endpoint URL. The default value of nil uses the environment
|
807
823
|
# universe (usually the default "googleapis.com" universe).
|
808
824
|
# @return [::String,nil]
|
825
|
+
# @!attribute [rw] logger
|
826
|
+
# A custom logger to use for request/response debug logging, or the value
|
827
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
828
|
+
# explicitly disable logging.
|
829
|
+
# @return [::Logger,:default,nil]
|
809
830
|
#
|
810
831
|
class Configuration
|
811
832
|
extend ::Gapic::Config
|
@@ -830,6 +851,7 @@ module Google
|
|
830
851
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
831
852
|
config_attr :quota_project, nil, ::String, nil
|
832
853
|
config_attr :universe_domain, nil, ::String, nil
|
854
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
833
855
|
|
834
856
|
# @private
|
835
857
|
def initialize parent_config = nil
|