google-cloud-dialogflow-cx-v3 0.2.0 → 0.5.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/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +201 -27
- data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/cx/v3/changelog_pb.rb +52 -0
- data/lib/google/cloud/dialogflow/cx/v3/changelog_services_pb.rb +49 -0
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/client.rb +522 -0
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/paths.rb +75 -0
- data/lib/google/cloud/dialogflow/cx/v3/changelogs.rb +51 -0
- data/lib/google/cloud/dialogflow/cx/v3/deployments/client.rb +46 -6
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/environment_pb.rb +1 -0
- data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +227 -27
- data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +146 -21
- data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +228 -30
- data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/response_message_pb.rb +7 -0
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +84 -9
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +281 -36
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/version_pb.rb +12 -0
- data/lib/google/cloud/dialogflow/cx/v3/version_services_pb.rb +2 -0
- data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +250 -18
- data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/cx/v3/webhook_pb.rb +2 -0
- data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3.rb +2 -1
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/cloud/dialogflow/cx/v3/changelog.rb +122 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/response_message.rb +15 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/security_settings.rb +11 -1
- data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +54 -42
- data/proto_docs/google/cloud/dialogflow/cx/v3/version.rb +43 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/webhook.rb +17 -0
- metadata +10 -3
@@ -186,6 +186,27 @@ module Google
|
|
186
186
|
#
|
187
187
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
188
188
|
#
|
189
|
+
# @example Basic example
|
190
|
+
# require "google/cloud/dialogflow/cx/v3"
|
191
|
+
#
|
192
|
+
# # Create a client object. The client can be reused for multiple calls.
|
193
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Experiments::Client.new
|
194
|
+
#
|
195
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
196
|
+
# request = Google::Cloud::Dialogflow::CX::V3::ListExperimentsRequest.new
|
197
|
+
#
|
198
|
+
# # Call the list_experiments method.
|
199
|
+
# result = client.list_experiments request
|
200
|
+
#
|
201
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
202
|
+
# # iterate over all elements by calling #each, and the enumerable
|
203
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
204
|
+
# # methods are also available for managing paging directly.
|
205
|
+
# result.each do |response|
|
206
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::Experiment.
|
207
|
+
# p response
|
208
|
+
# end
|
209
|
+
#
|
189
210
|
def list_experiments request, options = nil
|
190
211
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
191
212
|
|
@@ -203,9 +224,11 @@ module Google
|
|
203
224
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
204
225
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
205
226
|
|
206
|
-
header_params = {
|
207
|
-
|
208
|
-
|
227
|
+
header_params = {}
|
228
|
+
if request.parent
|
229
|
+
header_params["parent"] = request.parent
|
230
|
+
end
|
231
|
+
|
209
232
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
210
233
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
211
234
|
|
@@ -257,6 +280,21 @@ module Google
|
|
257
280
|
#
|
258
281
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
259
282
|
#
|
283
|
+
# @example Basic example
|
284
|
+
# require "google/cloud/dialogflow/cx/v3"
|
285
|
+
#
|
286
|
+
# # Create a client object. The client can be reused for multiple calls.
|
287
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Experiments::Client.new
|
288
|
+
#
|
289
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
290
|
+
# request = Google::Cloud::Dialogflow::CX::V3::GetExperimentRequest.new
|
291
|
+
#
|
292
|
+
# # Call the get_experiment method.
|
293
|
+
# result = client.get_experiment request
|
294
|
+
#
|
295
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Experiment.
|
296
|
+
# p result
|
297
|
+
#
|
260
298
|
def get_experiment request, options = nil
|
261
299
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
262
300
|
|
@@ -274,9 +312,11 @@ module Google
|
|
274
312
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
275
313
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
276
314
|
|
277
|
-
header_params = {
|
278
|
-
|
279
|
-
|
315
|
+
header_params = {}
|
316
|
+
if request.name
|
317
|
+
header_params["name"] = request.name
|
318
|
+
end
|
319
|
+
|
280
320
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
281
321
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
282
322
|
|
@@ -329,6 +369,21 @@ module Google
|
|
329
369
|
#
|
330
370
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
331
371
|
#
|
372
|
+
# @example Basic example
|
373
|
+
# require "google/cloud/dialogflow/cx/v3"
|
374
|
+
#
|
375
|
+
# # Create a client object. The client can be reused for multiple calls.
|
376
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Experiments::Client.new
|
377
|
+
#
|
378
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
379
|
+
# request = Google::Cloud::Dialogflow::CX::V3::CreateExperimentRequest.new
|
380
|
+
#
|
381
|
+
# # Call the create_experiment method.
|
382
|
+
# result = client.create_experiment request
|
383
|
+
#
|
384
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Experiment.
|
385
|
+
# p result
|
386
|
+
#
|
332
387
|
def create_experiment request, options = nil
|
333
388
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
334
389
|
|
@@ -346,9 +401,11 @@ module Google
|
|
346
401
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
347
402
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
348
403
|
|
349
|
-
header_params = {
|
350
|
-
|
351
|
-
|
404
|
+
header_params = {}
|
405
|
+
if request.parent
|
406
|
+
header_params["parent"] = request.parent
|
407
|
+
end
|
408
|
+
|
352
409
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
353
410
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
354
411
|
|
@@ -399,6 +456,21 @@ module Google
|
|
399
456
|
#
|
400
457
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
401
458
|
#
|
459
|
+
# @example Basic example
|
460
|
+
# require "google/cloud/dialogflow/cx/v3"
|
461
|
+
#
|
462
|
+
# # Create a client object. The client can be reused for multiple calls.
|
463
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Experiments::Client.new
|
464
|
+
#
|
465
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
466
|
+
# request = Google::Cloud::Dialogflow::CX::V3::UpdateExperimentRequest.new
|
467
|
+
#
|
468
|
+
# # Call the update_experiment method.
|
469
|
+
# result = client.update_experiment request
|
470
|
+
#
|
471
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Experiment.
|
472
|
+
# p result
|
473
|
+
#
|
402
474
|
def update_experiment request, options = nil
|
403
475
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
404
476
|
|
@@ -416,9 +488,11 @@ module Google
|
|
416
488
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
417
489
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
418
490
|
|
419
|
-
header_params = {
|
420
|
-
|
421
|
-
|
491
|
+
header_params = {}
|
492
|
+
if request.experiment&.name
|
493
|
+
header_params["experiment.name"] = request.experiment.name
|
494
|
+
end
|
495
|
+
|
422
496
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
423
497
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
424
498
|
|
@@ -469,6 +543,21 @@ module Google
|
|
469
543
|
#
|
470
544
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
471
545
|
#
|
546
|
+
# @example Basic example
|
547
|
+
# require "google/cloud/dialogflow/cx/v3"
|
548
|
+
#
|
549
|
+
# # Create a client object. The client can be reused for multiple calls.
|
550
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Experiments::Client.new
|
551
|
+
#
|
552
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
553
|
+
# request = Google::Cloud::Dialogflow::CX::V3::DeleteExperimentRequest.new
|
554
|
+
#
|
555
|
+
# # Call the delete_experiment method.
|
556
|
+
# result = client.delete_experiment request
|
557
|
+
#
|
558
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
559
|
+
# p result
|
560
|
+
#
|
472
561
|
def delete_experiment request, options = nil
|
473
562
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
474
563
|
|
@@ -486,9 +575,11 @@ module Google
|
|
486
575
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
487
576
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
488
577
|
|
489
|
-
header_params = {
|
490
|
-
|
491
|
-
|
578
|
+
header_params = {}
|
579
|
+
if request.name
|
580
|
+
header_params["name"] = request.name
|
581
|
+
end
|
582
|
+
|
492
583
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
493
584
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
494
585
|
|
@@ -540,6 +631,21 @@ module Google
|
|
540
631
|
#
|
541
632
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
542
633
|
#
|
634
|
+
# @example Basic example
|
635
|
+
# require "google/cloud/dialogflow/cx/v3"
|
636
|
+
#
|
637
|
+
# # Create a client object. The client can be reused for multiple calls.
|
638
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Experiments::Client.new
|
639
|
+
#
|
640
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
641
|
+
# request = Google::Cloud::Dialogflow::CX::V3::StartExperimentRequest.new
|
642
|
+
#
|
643
|
+
# # Call the start_experiment method.
|
644
|
+
# result = client.start_experiment request
|
645
|
+
#
|
646
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Experiment.
|
647
|
+
# p result
|
648
|
+
#
|
543
649
|
def start_experiment request, options = nil
|
544
650
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
545
651
|
|
@@ -557,9 +663,11 @@ module Google
|
|
557
663
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
558
664
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
559
665
|
|
560
|
-
header_params = {
|
561
|
-
|
562
|
-
|
666
|
+
header_params = {}
|
667
|
+
if request.name
|
668
|
+
header_params["name"] = request.name
|
669
|
+
end
|
670
|
+
|
563
671
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
564
672
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
565
673
|
|
@@ -611,6 +719,21 @@ module Google
|
|
611
719
|
#
|
612
720
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
613
721
|
#
|
722
|
+
# @example Basic example
|
723
|
+
# require "google/cloud/dialogflow/cx/v3"
|
724
|
+
#
|
725
|
+
# # Create a client object. The client can be reused for multiple calls.
|
726
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Experiments::Client.new
|
727
|
+
#
|
728
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
729
|
+
# request = Google::Cloud::Dialogflow::CX::V3::StopExperimentRequest.new
|
730
|
+
#
|
731
|
+
# # Call the stop_experiment method.
|
732
|
+
# result = client.stop_experiment request
|
733
|
+
#
|
734
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Experiment.
|
735
|
+
# p result
|
736
|
+
#
|
614
737
|
def stop_experiment request, options = nil
|
615
738
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
616
739
|
|
@@ -628,9 +751,11 @@ module Google
|
|
628
751
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
629
752
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
630
753
|
|
631
|
-
header_params = {
|
632
|
-
|
633
|
-
|
754
|
+
header_params = {}
|
755
|
+
if request.name
|
756
|
+
header_params["name"] = request.name
|
757
|
+
end
|
758
|
+
|
634
759
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
635
760
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
636
761
|
|
@@ -141,6 +141,7 @@ module Google
|
|
141
141
|
|
142
142
|
@operations_client = Operations.new do |config|
|
143
143
|
config.credentials = credentials
|
144
|
+
config.quota_project = @quota_project_id
|
144
145
|
config.endpoint = @config.endpoint
|
145
146
|
end
|
146
147
|
|
@@ -211,6 +212,21 @@ module Google
|
|
211
212
|
#
|
212
213
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
213
214
|
#
|
215
|
+
# @example Basic example
|
216
|
+
# require "google/cloud/dialogflow/cx/v3"
|
217
|
+
#
|
218
|
+
# # Create a client object. The client can be reused for multiple calls.
|
219
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Flows::Client.new
|
220
|
+
#
|
221
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
222
|
+
# request = Google::Cloud::Dialogflow::CX::V3::CreateFlowRequest.new
|
223
|
+
#
|
224
|
+
# # Call the create_flow method.
|
225
|
+
# result = client.create_flow request
|
226
|
+
#
|
227
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Flow.
|
228
|
+
# p result
|
229
|
+
#
|
214
230
|
def create_flow request, options = nil
|
215
231
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
216
232
|
|
@@ -228,9 +244,11 @@ module Google
|
|
228
244
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
229
245
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
230
246
|
|
231
|
-
header_params = {
|
232
|
-
|
233
|
-
|
247
|
+
header_params = {}
|
248
|
+
if request.parent
|
249
|
+
header_params["parent"] = request.parent
|
250
|
+
end
|
251
|
+
|
234
252
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
235
253
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
236
254
|
|
@@ -292,6 +310,21 @@ module Google
|
|
292
310
|
#
|
293
311
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
294
312
|
#
|
313
|
+
# @example Basic example
|
314
|
+
# require "google/cloud/dialogflow/cx/v3"
|
315
|
+
#
|
316
|
+
# # Create a client object. The client can be reused for multiple calls.
|
317
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Flows::Client.new
|
318
|
+
#
|
319
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
320
|
+
# request = Google::Cloud::Dialogflow::CX::V3::DeleteFlowRequest.new
|
321
|
+
#
|
322
|
+
# # Call the delete_flow method.
|
323
|
+
# result = client.delete_flow request
|
324
|
+
#
|
325
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
326
|
+
# p result
|
327
|
+
#
|
295
328
|
def delete_flow request, options = nil
|
296
329
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
297
330
|
|
@@ -309,9 +342,11 @@ module Google
|
|
309
342
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
310
343
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
311
344
|
|
312
|
-
header_params = {
|
313
|
-
|
314
|
-
|
345
|
+
header_params = {}
|
346
|
+
if request.name
|
347
|
+
header_params["name"] = request.name
|
348
|
+
end
|
349
|
+
|
315
350
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
316
351
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
317
352
|
|
@@ -380,6 +415,27 @@ module Google
|
|
380
415
|
#
|
381
416
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
382
417
|
#
|
418
|
+
# @example Basic example
|
419
|
+
# require "google/cloud/dialogflow/cx/v3"
|
420
|
+
#
|
421
|
+
# # Create a client object. The client can be reused for multiple calls.
|
422
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Flows::Client.new
|
423
|
+
#
|
424
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
425
|
+
# request = Google::Cloud::Dialogflow::CX::V3::ListFlowsRequest.new
|
426
|
+
#
|
427
|
+
# # Call the list_flows method.
|
428
|
+
# result = client.list_flows request
|
429
|
+
#
|
430
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
431
|
+
# # iterate over all elements by calling #each, and the enumerable
|
432
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
433
|
+
# # methods are also available for managing paging directly.
|
434
|
+
# result.each do |response|
|
435
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::Flow.
|
436
|
+
# p response
|
437
|
+
# end
|
438
|
+
#
|
383
439
|
def list_flows request, options = nil
|
384
440
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
385
441
|
|
@@ -397,9 +453,11 @@ module Google
|
|
397
453
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
398
454
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
399
455
|
|
400
|
-
header_params = {
|
401
|
-
|
402
|
-
|
456
|
+
header_params = {}
|
457
|
+
if request.parent
|
458
|
+
header_params["parent"] = request.parent
|
459
|
+
end
|
460
|
+
|
403
461
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
404
462
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
405
463
|
|
@@ -465,6 +523,21 @@ module Google
|
|
465
523
|
#
|
466
524
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
467
525
|
#
|
526
|
+
# @example Basic example
|
527
|
+
# require "google/cloud/dialogflow/cx/v3"
|
528
|
+
#
|
529
|
+
# # Create a client object. The client can be reused for multiple calls.
|
530
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Flows::Client.new
|
531
|
+
#
|
532
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
533
|
+
# request = Google::Cloud::Dialogflow::CX::V3::GetFlowRequest.new
|
534
|
+
#
|
535
|
+
# # Call the get_flow method.
|
536
|
+
# result = client.get_flow request
|
537
|
+
#
|
538
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Flow.
|
539
|
+
# p result
|
540
|
+
#
|
468
541
|
def get_flow request, options = nil
|
469
542
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
470
543
|
|
@@ -482,9 +555,11 @@ module Google
|
|
482
555
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
483
556
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
484
557
|
|
485
|
-
header_params = {
|
486
|
-
|
487
|
-
|
558
|
+
header_params = {}
|
559
|
+
if request.name
|
560
|
+
header_params["name"] = request.name
|
561
|
+
end
|
562
|
+
|
488
563
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
489
564
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
490
565
|
|
@@ -553,6 +628,21 @@ module Google
|
|
553
628
|
#
|
554
629
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
555
630
|
#
|
631
|
+
# @example Basic example
|
632
|
+
# require "google/cloud/dialogflow/cx/v3"
|
633
|
+
#
|
634
|
+
# # Create a client object. The client can be reused for multiple calls.
|
635
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Flows::Client.new
|
636
|
+
#
|
637
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
638
|
+
# request = Google::Cloud::Dialogflow::CX::V3::UpdateFlowRequest.new
|
639
|
+
#
|
640
|
+
# # Call the update_flow method.
|
641
|
+
# result = client.update_flow request
|
642
|
+
#
|
643
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Flow.
|
644
|
+
# p result
|
645
|
+
#
|
556
646
|
def update_flow request, options = nil
|
557
647
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
558
648
|
|
@@ -570,9 +660,11 @@ module Google
|
|
570
660
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
571
661
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
572
662
|
|
573
|
-
header_params = {
|
574
|
-
|
575
|
-
|
663
|
+
header_params = {}
|
664
|
+
if request.flow&.name
|
665
|
+
header_params["flow.name"] = request.flow.name
|
666
|
+
end
|
667
|
+
|
576
668
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
577
669
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
578
670
|
|
@@ -637,6 +729,28 @@ module Google
|
|
637
729
|
#
|
638
730
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
639
731
|
#
|
732
|
+
# @example Basic example
|
733
|
+
# require "google/cloud/dialogflow/cx/v3"
|
734
|
+
#
|
735
|
+
# # Create a client object. The client can be reused for multiple calls.
|
736
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Flows::Client.new
|
737
|
+
#
|
738
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
739
|
+
# request = Google::Cloud::Dialogflow::CX::V3::TrainFlowRequest.new
|
740
|
+
#
|
741
|
+
# # Call the train_flow method.
|
742
|
+
# result = client.train_flow request
|
743
|
+
#
|
744
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
745
|
+
# # object to check the status of an operation, cancel it, or wait
|
746
|
+
# # for results. Here is how to block until completion:
|
747
|
+
# result.wait_until_done! timeout: 60
|
748
|
+
# if result.response?
|
749
|
+
# p result.response
|
750
|
+
# else
|
751
|
+
# puts "Error!"
|
752
|
+
# end
|
753
|
+
#
|
640
754
|
def train_flow request, options = nil
|
641
755
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
642
756
|
|
@@ -654,9 +768,11 @@ module Google
|
|
654
768
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
655
769
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
656
770
|
|
657
|
-
header_params = {
|
658
|
-
|
659
|
-
|
771
|
+
header_params = {}
|
772
|
+
if request.name
|
773
|
+
header_params["name"] = request.name
|
774
|
+
end
|
775
|
+
|
660
776
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
661
777
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
662
778
|
|
@@ -712,6 +828,21 @@ module Google
|
|
712
828
|
#
|
713
829
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
714
830
|
#
|
831
|
+
# @example Basic example
|
832
|
+
# require "google/cloud/dialogflow/cx/v3"
|
833
|
+
#
|
834
|
+
# # Create a client object. The client can be reused for multiple calls.
|
835
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Flows::Client.new
|
836
|
+
#
|
837
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
838
|
+
# request = Google::Cloud::Dialogflow::CX::V3::ValidateFlowRequest.new
|
839
|
+
#
|
840
|
+
# # Call the validate_flow method.
|
841
|
+
# result = client.validate_flow request
|
842
|
+
#
|
843
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::FlowValidationResult.
|
844
|
+
# p result
|
845
|
+
#
|
715
846
|
def validate_flow request, options = nil
|
716
847
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
717
848
|
|
@@ -729,9 +860,11 @@ module Google
|
|
729
860
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
730
861
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
731
862
|
|
732
|
-
header_params = {
|
733
|
-
|
734
|
-
|
863
|
+
header_params = {}
|
864
|
+
if request.name
|
865
|
+
header_params["name"] = request.name
|
866
|
+
end
|
867
|
+
|
735
868
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
736
869
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
737
870
|
|
@@ -785,6 +918,21 @@ module Google
|
|
785
918
|
#
|
786
919
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
787
920
|
#
|
921
|
+
# @example Basic example
|
922
|
+
# require "google/cloud/dialogflow/cx/v3"
|
923
|
+
#
|
924
|
+
# # Create a client object. The client can be reused for multiple calls.
|
925
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Flows::Client.new
|
926
|
+
#
|
927
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
928
|
+
# request = Google::Cloud::Dialogflow::CX::V3::GetFlowValidationResultRequest.new
|
929
|
+
#
|
930
|
+
# # Call the get_flow_validation_result method.
|
931
|
+
# result = client.get_flow_validation_result request
|
932
|
+
#
|
933
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::FlowValidationResult.
|
934
|
+
# p result
|
935
|
+
#
|
788
936
|
def get_flow_validation_result request, options = nil
|
789
937
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
790
938
|
|
@@ -802,9 +950,11 @@ module Google
|
|
802
950
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
803
951
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
804
952
|
|
805
|
-
header_params = {
|
806
|
-
|
807
|
-
|
953
|
+
header_params = {}
|
954
|
+
if request.name
|
955
|
+
header_params["name"] = request.name
|
956
|
+
end
|
957
|
+
|
808
958
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
809
959
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
810
960
|
|
@@ -874,6 +1024,28 @@ module Google
|
|
874
1024
|
#
|
875
1025
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
876
1026
|
#
|
1027
|
+
# @example Basic example
|
1028
|
+
# require "google/cloud/dialogflow/cx/v3"
|
1029
|
+
#
|
1030
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1031
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Flows::Client.new
|
1032
|
+
#
|
1033
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1034
|
+
# request = Google::Cloud::Dialogflow::CX::V3::ImportFlowRequest.new
|
1035
|
+
#
|
1036
|
+
# # Call the import_flow method.
|
1037
|
+
# result = client.import_flow request
|
1038
|
+
#
|
1039
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1040
|
+
# # object to check the status of an operation, cancel it, or wait
|
1041
|
+
# # for results. Here is how to block until completion:
|
1042
|
+
# result.wait_until_done! timeout: 60
|
1043
|
+
# if result.response?
|
1044
|
+
# p result.response
|
1045
|
+
# else
|
1046
|
+
# puts "Error!"
|
1047
|
+
# end
|
1048
|
+
#
|
877
1049
|
def import_flow request, options = nil
|
878
1050
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
879
1051
|
|
@@ -891,9 +1063,11 @@ module Google
|
|
891
1063
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
892
1064
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
893
1065
|
|
894
|
-
header_params = {
|
895
|
-
|
896
|
-
|
1066
|
+
header_params = {}
|
1067
|
+
if request.parent
|
1068
|
+
header_params["parent"] = request.parent
|
1069
|
+
end
|
1070
|
+
|
897
1071
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
898
1072
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
899
1073
|
|
@@ -963,6 +1137,28 @@ module Google
|
|
963
1137
|
#
|
964
1138
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
965
1139
|
#
|
1140
|
+
# @example Basic example
|
1141
|
+
# require "google/cloud/dialogflow/cx/v3"
|
1142
|
+
#
|
1143
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1144
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Flows::Client.new
|
1145
|
+
#
|
1146
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1147
|
+
# request = Google::Cloud::Dialogflow::CX::V3::ExportFlowRequest.new
|
1148
|
+
#
|
1149
|
+
# # Call the export_flow method.
|
1150
|
+
# result = client.export_flow request
|
1151
|
+
#
|
1152
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1153
|
+
# # object to check the status of an operation, cancel it, or wait
|
1154
|
+
# # for results. Here is how to block until completion:
|
1155
|
+
# result.wait_until_done! timeout: 60
|
1156
|
+
# if result.response?
|
1157
|
+
# p result.response
|
1158
|
+
# else
|
1159
|
+
# puts "Error!"
|
1160
|
+
# end
|
1161
|
+
#
|
966
1162
|
def export_flow request, options = nil
|
967
1163
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
968
1164
|
|
@@ -980,9 +1176,11 @@ module Google
|
|
980
1176
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
981
1177
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
982
1178
|
|
983
|
-
header_params = {
|
984
|
-
|
985
|
-
|
1179
|
+
header_params = {}
|
1180
|
+
if request.name
|
1181
|
+
header_params["name"] = request.name
|
1182
|
+
end
|
1183
|
+
|
986
1184
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
987
1185
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
988
1186
|
|