google-cloud-dialogflow-cx-v3 0.20.0 → 0.22.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/dialogflow/cx/v3/advanced_settings_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/cx/v3/agent_pb.rb +6 -1
- data/lib/google/cloud/dialogflow/cx/v3/agent_services_pb.rb +4 -0
- data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +200 -1
- data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/agents/paths.rb +19 -0
- data/lib/google/cloud/dialogflow/cx/v3/agents/rest/client.rb +338 -0
- data/lib/google/cloud/dialogflow/cx/v3/agents/rest/operations.rb +75 -0
- data/lib/google/cloud/dialogflow/cx/v3/agents/rest/service_stub.rb +119 -0
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/rest/client.rb +36 -0
- data/lib/google/cloud/dialogflow/cx/v3/data_store_connection_pb.rb +45 -0
- data/lib/google/cloud/dialogflow/cx/v3/deployments/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/deployments/rest/client.rb +36 -0
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest/client.rb +84 -0
- data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/environments/rest/client.rb +184 -0
- data/lib/google/cloud/dialogflow/cx/v3/environments/rest/operations.rb +75 -0
- data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/experiments/rest/client.rb +116 -0
- data/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb +3 -1
- data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/flows/rest/client.rb +185 -0
- data/lib/google/cloud/dialogflow/cx/v3/flows/rest/operations.rb +75 -0
- data/lib/google/cloud/dialogflow/cx/v3/fulfillment_pb.rb +3 -1
- data/lib/google/cloud/dialogflow/cx/v3/generative_settings_pb.rb +51 -0
- data/lib/google/cloud/dialogflow/cx/v3/import_strategy_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/inline_pb.rb +47 -0
- data/lib/google/cloud/dialogflow/cx/v3/intent_pb.rb +13 -1
- data/lib/google/cloud/dialogflow/cx/v3/intent_services_pb.rb +22 -0
- data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +278 -1
- data/lib/google/cloud/dialogflow/cx/v3/intents/operations.rb +781 -0
- data/lib/google/cloud/dialogflow/cx/v3/intents/rest/client.rb +338 -0
- data/lib/google/cloud/dialogflow/cx/v3/intents/rest/operations.rb +892 -0
- data/lib/google/cloud/dialogflow/cx/v3/intents/rest/service_stub.rb +120 -0
- data/lib/google/cloud/dialogflow/cx/v3/intents/rest.rb +1 -0
- data/lib/google/cloud/dialogflow/cx/v3/intents.rb +1 -0
- data/lib/google/cloud/dialogflow/cx/v3/page_pb.rb +6 -1
- data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/pages/rest/client.rb +84 -0
- data/lib/google/cloud/dialogflow/cx/v3/response_message_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/cx/v3/safety_settings_pb.rb +47 -0
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/rest/client.rb +84 -0
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/rest/client.rb +84 -0
- data/lib/google/cloud/dialogflow/cx/v3/session_pb.rb +3 -1
- data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/sessions/rest/client.rb +48 -0
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/client.rb +228 -0
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/operations.rb +75 -0
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest/client.rb +84 -0
- 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/versions/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/versions/rest/client.rb +130 -0
- data/lib/google/cloud/dialogflow/cx/v3/versions/rest/operations.rb +75 -0
- data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/webhooks/rest/client.rb +84 -0
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/advanced_settings.rb +28 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/agent.rb +44 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/data_store_connection.rb +61 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/flow.rb +7 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/fulfillment.rb +11 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/generative_settings.rb +109 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/import_strategy.rb +1 -1
- data/proto_docs/google/cloud/dialogflow/cx/v3/inline.rb +49 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/intent.rb +175 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/page.rb +52 -2
- data/proto_docs/google/cloud/dialogflow/cx/v3/response_message.rb +14 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/safety_settings.rb +49 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/security_settings.rb +17 -2
- data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +11 -1
- data/proto_docs/google/cloud/dialogflow/cx/v3/validation_message.rb +3 -0
- metadata +15 -5
@@ -137,6 +137,26 @@ module Google
|
|
137
137
|
# @return [::Gapic::Operation]
|
138
138
|
#
|
139
139
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
140
|
+
#
|
141
|
+
# @example Basic example
|
142
|
+
# require "google/longrunning"
|
143
|
+
#
|
144
|
+
# # Create a client object. The client can be reused for multiple calls.
|
145
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
146
|
+
#
|
147
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
148
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
149
|
+
#
|
150
|
+
# # Call the list_operations method.
|
151
|
+
# result = client.list_operations request
|
152
|
+
#
|
153
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
154
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
155
|
+
# result.each do |item|
|
156
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
157
|
+
# p item
|
158
|
+
# end
|
159
|
+
#
|
140
160
|
def list_operations request, options = nil
|
141
161
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
142
162
|
|
@@ -202,6 +222,29 @@ module Google
|
|
202
222
|
# @return [::Gapic::Operation]
|
203
223
|
#
|
204
224
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
225
|
+
#
|
226
|
+
# @example Basic example
|
227
|
+
# require "google/longrunning"
|
228
|
+
#
|
229
|
+
# # Create a client object. The client can be reused for multiple calls.
|
230
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
231
|
+
#
|
232
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
233
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
234
|
+
#
|
235
|
+
# # Call the get_operation method.
|
236
|
+
# result = client.get_operation request
|
237
|
+
#
|
238
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
239
|
+
# # check the status of an operation, cancel it, or wait for results.
|
240
|
+
# # Here is how to wait for a response.
|
241
|
+
# result.wait_until_done! timeout: 60
|
242
|
+
# if result.response?
|
243
|
+
# p result.response
|
244
|
+
# else
|
245
|
+
# puts "No response received."
|
246
|
+
# end
|
247
|
+
#
|
205
248
|
def get_operation request, options = nil
|
206
249
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
207
250
|
|
@@ -268,6 +311,22 @@ module Google
|
|
268
311
|
# @return [::Google::Protobuf::Empty]
|
269
312
|
#
|
270
313
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
314
|
+
#
|
315
|
+
# @example Basic example
|
316
|
+
# require "google/longrunning"
|
317
|
+
#
|
318
|
+
# # Create a client object. The client can be reused for multiple calls.
|
319
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
320
|
+
#
|
321
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
322
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
323
|
+
#
|
324
|
+
# # Call the delete_operation method.
|
325
|
+
# result = client.delete_operation request
|
326
|
+
#
|
327
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
328
|
+
# p result
|
329
|
+
#
|
271
330
|
def delete_operation request, options = nil
|
272
331
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
273
332
|
|
@@ -339,6 +398,22 @@ module Google
|
|
339
398
|
# @return [::Google::Protobuf::Empty]
|
340
399
|
#
|
341
400
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
401
|
+
#
|
402
|
+
# @example Basic example
|
403
|
+
# require "google/longrunning"
|
404
|
+
#
|
405
|
+
# # Create a client object. The client can be reused for multiple calls.
|
406
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
407
|
+
#
|
408
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
409
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
410
|
+
#
|
411
|
+
# # Call the cancel_operation method.
|
412
|
+
# result = client.cancel_operation request
|
413
|
+
#
|
414
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
415
|
+
# p result
|
416
|
+
#
|
342
417
|
def cancel_operation request, options = nil
|
343
418
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
344
419
|
|
@@ -151,7 +151,8 @@ module Google
|
|
151
151
|
credentials: credentials,
|
152
152
|
endpoint: @config.endpoint,
|
153
153
|
channel_args: @config.channel_args,
|
154
|
-
interceptors: @config.interceptors
|
154
|
+
interceptors: @config.interceptors,
|
155
|
+
channel_pool_config: @config.channel_pool
|
155
156
|
)
|
156
157
|
end
|
157
158
|
|
@@ -916,6 +917,14 @@ module Google
|
|
916
917
|
end
|
917
918
|
end
|
918
919
|
|
920
|
+
##
|
921
|
+
# Configuration for the channel pool
|
922
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
923
|
+
#
|
924
|
+
def channel_pool
|
925
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
926
|
+
end
|
927
|
+
|
919
928
|
##
|
920
929
|
# Configuration RPC class for the Experiments API.
|
921
930
|
#
|
@@ -192,6 +192,26 @@ module Google
|
|
192
192
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::CX::V3::Experiment>]
|
193
193
|
#
|
194
194
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
195
|
+
#
|
196
|
+
# @example Basic example
|
197
|
+
# require "google/cloud/dialogflow/cx/v3"
|
198
|
+
#
|
199
|
+
# # Create a client object. The client can be reused for multiple calls.
|
200
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Experiments::Rest::Client.new
|
201
|
+
#
|
202
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
203
|
+
# request = Google::Cloud::Dialogflow::CX::V3::ListExperimentsRequest.new
|
204
|
+
#
|
205
|
+
# # Call the list_experiments method.
|
206
|
+
# result = client.list_experiments request
|
207
|
+
#
|
208
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
209
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
210
|
+
# result.each do |item|
|
211
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::Experiment.
|
212
|
+
# p item
|
213
|
+
# end
|
214
|
+
#
|
195
215
|
def list_experiments request, options = nil
|
196
216
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
197
217
|
|
@@ -259,6 +279,22 @@ module Google
|
|
259
279
|
# @return [::Google::Cloud::Dialogflow::CX::V3::Experiment]
|
260
280
|
#
|
261
281
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
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::Rest::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
|
+
#
|
262
298
|
def get_experiment request, options = nil
|
263
299
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
264
300
|
|
@@ -327,6 +363,22 @@ module Google
|
|
327
363
|
# @return [::Google::Cloud::Dialogflow::CX::V3::Experiment]
|
328
364
|
#
|
329
365
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
366
|
+
#
|
367
|
+
# @example Basic example
|
368
|
+
# require "google/cloud/dialogflow/cx/v3"
|
369
|
+
#
|
370
|
+
# # Create a client object. The client can be reused for multiple calls.
|
371
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Experiments::Rest::Client.new
|
372
|
+
#
|
373
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
374
|
+
# request = Google::Cloud::Dialogflow::CX::V3::CreateExperimentRequest.new
|
375
|
+
#
|
376
|
+
# # Call the create_experiment method.
|
377
|
+
# result = client.create_experiment request
|
378
|
+
#
|
379
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Experiment.
|
380
|
+
# p result
|
381
|
+
#
|
330
382
|
def create_experiment request, options = nil
|
331
383
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
332
384
|
|
@@ -392,6 +444,22 @@ module Google
|
|
392
444
|
# @return [::Google::Cloud::Dialogflow::CX::V3::Experiment]
|
393
445
|
#
|
394
446
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
447
|
+
#
|
448
|
+
# @example Basic example
|
449
|
+
# require "google/cloud/dialogflow/cx/v3"
|
450
|
+
#
|
451
|
+
# # Create a client object. The client can be reused for multiple calls.
|
452
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Experiments::Rest::Client.new
|
453
|
+
#
|
454
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
455
|
+
# request = Google::Cloud::Dialogflow::CX::V3::UpdateExperimentRequest.new
|
456
|
+
#
|
457
|
+
# # Call the update_experiment method.
|
458
|
+
# result = client.update_experiment request
|
459
|
+
#
|
460
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Experiment.
|
461
|
+
# p result
|
462
|
+
#
|
395
463
|
def update_experiment request, options = nil
|
396
464
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
397
465
|
|
@@ -458,6 +526,22 @@ module Google
|
|
458
526
|
# @return [::Google::Protobuf::Empty]
|
459
527
|
#
|
460
528
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
529
|
+
#
|
530
|
+
# @example Basic example
|
531
|
+
# require "google/cloud/dialogflow/cx/v3"
|
532
|
+
#
|
533
|
+
# # Create a client object. The client can be reused for multiple calls.
|
534
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Experiments::Rest::Client.new
|
535
|
+
#
|
536
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
537
|
+
# request = Google::Cloud::Dialogflow::CX::V3::DeleteExperimentRequest.new
|
538
|
+
#
|
539
|
+
# # Call the delete_experiment method.
|
540
|
+
# result = client.delete_experiment request
|
541
|
+
#
|
542
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
543
|
+
# p result
|
544
|
+
#
|
461
545
|
def delete_experiment request, options = nil
|
462
546
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
463
547
|
|
@@ -524,6 +608,22 @@ module Google
|
|
524
608
|
# @return [::Google::Cloud::Dialogflow::CX::V3::Experiment]
|
525
609
|
#
|
526
610
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
611
|
+
#
|
612
|
+
# @example Basic example
|
613
|
+
# require "google/cloud/dialogflow/cx/v3"
|
614
|
+
#
|
615
|
+
# # Create a client object. The client can be reused for multiple calls.
|
616
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Experiments::Rest::Client.new
|
617
|
+
#
|
618
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
619
|
+
# request = Google::Cloud::Dialogflow::CX::V3::StartExperimentRequest.new
|
620
|
+
#
|
621
|
+
# # Call the start_experiment method.
|
622
|
+
# result = client.start_experiment request
|
623
|
+
#
|
624
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Experiment.
|
625
|
+
# p result
|
626
|
+
#
|
527
627
|
def start_experiment request, options = nil
|
528
628
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
529
629
|
|
@@ -589,6 +689,22 @@ module Google
|
|
589
689
|
# @return [::Google::Cloud::Dialogflow::CX::V3::Experiment]
|
590
690
|
#
|
591
691
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
692
|
+
#
|
693
|
+
# @example Basic example
|
694
|
+
# require "google/cloud/dialogflow/cx/v3"
|
695
|
+
#
|
696
|
+
# # Create a client object. The client can be reused for multiple calls.
|
697
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Experiments::Rest::Client.new
|
698
|
+
#
|
699
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
700
|
+
# request = Google::Cloud::Dialogflow::CX::V3::StopExperimentRequest.new
|
701
|
+
#
|
702
|
+
# # Call the stop_experiment method.
|
703
|
+
# result = client.stop_experiment request
|
704
|
+
#
|
705
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Experiment.
|
706
|
+
# p result
|
707
|
+
#
|
592
708
|
def stop_experiment request, options = nil
|
593
709
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
594
710
|
|
@@ -8,6 +8,7 @@ require 'google/api/annotations_pb'
|
|
8
8
|
require 'google/api/client_pb'
|
9
9
|
require 'google/api/field_behavior_pb'
|
10
10
|
require 'google/api/resource_pb'
|
11
|
+
require 'google/cloud/dialogflow/cx/v3/advanced_settings_pb'
|
11
12
|
require 'google/cloud/dialogflow/cx/v3/import_strategy_pb'
|
12
13
|
require 'google/cloud/dialogflow/cx/v3/page_pb'
|
13
14
|
require 'google/cloud/dialogflow/cx/v3/validation_message_pb'
|
@@ -18,7 +19,7 @@ require 'google/protobuf/struct_pb'
|
|
18
19
|
require 'google/protobuf/timestamp_pb'
|
19
20
|
|
20
21
|
|
21
|
-
descriptor_data = "\n(google/cloud/dialogflow/cx/v3/flow.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\x33google/cloud/dialogflow/cx/v3/import_strategy.proto\x1a(google/cloud/dialogflow/cx/v3/page.proto\x1a\x36google/cloud/dialogflow/cx/v3/validation_message.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xac\x03\n\x0bNluSettings\x12H\n\nmodel_type\x18\x01 \x01(\x0e\x32\x34.google.cloud.dialogflow.cx.v3.NluSettings.ModelType\x12 \n\x18\x63lassification_threshold\x18\x03 \x01(\x02\x12Y\n\x13model_training_mode\x18\x04 \x01(\x0e\x32<.google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode\"Y\n\tModelType\x12\x1a\n\x16MODEL_TYPE_UNSPECIFIED\x10\x00\x12\x17\n\x13MODEL_TYPE_STANDARD\x10\x01\x12\x17\n\x13MODEL_TYPE_ADVANCED\x10\x03\"{\n\x11ModelTrainingMode\x12#\n\x1fMODEL_TRAINING_MODE_UNSPECIFIED\x10\x00\x12!\n\x1dMODEL_TRAINING_MODE_AUTOMATIC\x10\x01\x12\x1e\n\x1aMODEL_TRAINING_MODE_MANUAL\x10\x02\"\
|
22
|
+
descriptor_data = "\n(google/cloud/dialogflow/cx/v3/flow.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\x35google/cloud/dialogflow/cx/v3/advanced_settings.proto\x1a\x33google/cloud/dialogflow/cx/v3/import_strategy.proto\x1a(google/cloud/dialogflow/cx/v3/page.proto\x1a\x36google/cloud/dialogflow/cx/v3/validation_message.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xac\x03\n\x0bNluSettings\x12H\n\nmodel_type\x18\x01 \x01(\x0e\x32\x34.google.cloud.dialogflow.cx.v3.NluSettings.ModelType\x12 \n\x18\x63lassification_threshold\x18\x03 \x01(\x02\x12Y\n\x13model_training_mode\x18\x04 \x01(\x0e\x32<.google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode\"Y\n\tModelType\x12\x1a\n\x16MODEL_TYPE_UNSPECIFIED\x10\x00\x12\x17\n\x13MODEL_TYPE_STANDARD\x10\x01\x12\x17\n\x13MODEL_TYPE_ADVANCED\x10\x03\"{\n\x11ModelTrainingMode\x12#\n\x1fMODEL_TRAINING_MODE_UNSPECIFIED\x10\x00\x12!\n\x1dMODEL_TRAINING_MODE_AUTOMATIC\x10\x01\x12\x1e\n\x1aMODEL_TRAINING_MODE_MANUAL\x10\x02\"\x88\x05\n\x04\x46low\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12I\n\x11transition_routes\x18\x04 \x03(\x0b\x32..google.cloud.dialogflow.cx.v3.TransitionRoute\x12\x43\n\x0e\x65vent_handlers\x18\n \x03(\x0b\x32+.google.cloud.dialogflow.cx.v3.EventHandler\x12T\n\x17transition_route_groups\x18\x0f \x03(\tB3\xfa\x41\x30\n.dialogflow.googleapis.com/TransitionRouteGroup\x12@\n\x0cnlu_settings\x18\x0b \x01(\x0b\x32*.google.cloud.dialogflow.cx.v3.NluSettings\x12J\n\x11\x61\x64vanced_settings\x18\x0e \x01(\x0b\x32/.google.cloud.dialogflow.cx.v3.AdvancedSettings\x12\x64\n\x1cknowledge_connector_settings\x18\x12 \x01(\x0b\x32\x39.google.cloud.dialogflow.cx.v3.KnowledgeConnectorSettingsB\x03\xe0\x41\x01:h\xea\x41\x65\n\x1e\x64ialogflow.googleapis.com/Flow\x12\x43projects/{project}/locations/{location}/agents/{agent}/flows/{flow}\"\x9a\x01\n\x11\x43reateFlowRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \x12\x1e\x64ialogflow.googleapis.com/Flow\x12\x36\n\x04\x66low\x18\x02 \x01(\x0b\x32#.google.cloud.dialogflow.cx.v3.FlowB\x03\xe0\x41\x02\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\"X\n\x11\x44\x65leteFlowRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/Flow\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\"\x88\x01\n\x10ListFlowsRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \x12\x1e\x64ialogflow.googleapis.com/Flow\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\"`\n\x11ListFlowsResponse\x12\x32\n\x05\x66lows\x18\x01 \x03(\x0b\x32#.google.cloud.dialogflow.cx.v3.Flow\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"]\n\x0eGetFlowRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/Flow\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\"\x93\x01\n\x11UpdateFlowRequest\x12\x36\n\x04\x66low\x18\x01 \x01(\x0b\x32#.google.cloud.dialogflow.cx.v3.FlowB\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\"H\n\x10TrainFlowRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/Flow\"b\n\x13ValidateFlowRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/Flow\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\"}\n\x1eGetFlowValidationResultRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.dialogflow.googleapis.com/FlowValidationResult\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\"\xb1\x02\n\x14\x46lowValidationResult\x12\x0c\n\x04name\x18\x01 \x01(\t\x12M\n\x13validation_messages\x18\x02 \x03(\x0b\x32\x30.google.cloud.dialogflow.cx.v3.ValidationMessage\x12/\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp:\x8a\x01\xea\x41\x86\x01\n.dialogflow.googleapis.com/FlowValidationResult\x12Tprojects/{project}/locations/{location}/agents/{agent}/flows/{flow}/validationResult\"\xf2\x02\n\x11ImportFlowRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \x12\x1e\x64ialogflow.googleapis.com/Flow\x12\x12\n\x08\x66low_uri\x18\x02 \x01(\tH\x00\x12\x16\n\x0c\x66low_content\x18\x03 \x01(\x0cH\x00\x12T\n\rimport_option\x18\x04 \x01(\x0e\x32=.google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption\x12T\n\x14\x66low_import_strategy\x18\x05 \x01(\x0b\x32\x31.google.cloud.dialogflow.cx.v3.FlowImportStrategyB\x03\xe0\x41\x01\"E\n\x0cImportOption\x12\x1d\n\x19IMPORT_OPTION_UNSPECIFIED\x10\x00\x12\x08\n\x04KEEP\x10\x01\x12\x0c\n\x08\x46\x41LLBACK\x10\x02\x42\x06\n\x04\x66low\"h\n\x12\x46lowImportStrategy\x12R\n\x16global_import_strategy\x18\x01 \x01(\x0e\x32-.google.cloud.dialogflow.cx.v3.ImportStrategyB\x03\xe0\x41\x01\"G\n\x12ImportFlowResponse\x12\x31\n\x04\x66low\x18\x01 \x01(\tB#\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/Flow\"\x87\x01\n\x11\x45xportFlowRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/Flow\x12\x15\n\x08\x66low_uri\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12%\n\x18include_referenced_flows\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"H\n\x12\x45xportFlowResponse\x12\x12\n\x08\x66low_uri\x18\x01 \x01(\tH\x00\x12\x16\n\x0c\x66low_content\x18\x02 \x01(\x0cH\x00\x42\x06\n\x04\x66low2\x98\x10\n\x05\x46lows\x12\xb3\x01\n\nCreateFlow\x12\x30.google.cloud.dialogflow.cx.v3.CreateFlowRequest\x1a#.google.cloud.dialogflow.cx.v3.Flow\"N\x82\xd3\xe4\x93\x02:\"2/v3/{parent=projects/*/locations/*/agents/*}/flows:\x04\x66low\xda\x41\x0bparent,flow\x12\x99\x01\n\nDeleteFlow\x12\x30.google.cloud.dialogflow.cx.v3.DeleteFlowRequest\x1a\x16.google.protobuf.Empty\"A\x82\xd3\xe4\x93\x02\x34*2/v3/{name=projects/*/locations/*/agents/*/flows/*}\xda\x41\x04name\x12\xb3\x01\n\tListFlows\x12/.google.cloud.dialogflow.cx.v3.ListFlowsRequest\x1a\x30.google.cloud.dialogflow.cx.v3.ListFlowsResponse\"C\x82\xd3\xe4\x93\x02\x34\x12\x32/v3/{parent=projects/*/locations/*/agents/*}/flows\xda\x41\x06parent\x12\xa0\x01\n\x07GetFlow\x12-.google.cloud.dialogflow.cx.v3.GetFlowRequest\x1a#.google.cloud.dialogflow.cx.v3.Flow\"A\x82\xd3\xe4\x93\x02\x34\x12\x32/v3/{name=projects/*/locations/*/agents/*/flows/*}\xda\x41\x04name\x12\xbd\x01\n\nUpdateFlow\x12\x30.google.cloud.dialogflow.cx.v3.UpdateFlowRequest\x1a#.google.cloud.dialogflow.cx.v3.Flow\"X\x82\xd3\xe4\x93\x02?27/v3/{flow.name=projects/*/locations/*/agents/*/flows/*}:\x04\x66low\xda\x41\x10\x66low,update_mask\x12\xd9\x01\n\tTrainFlow\x12/.google.cloud.dialogflow.cx.v3.TrainFlowRequest\x1a\x1d.google.longrunning.Operation\"|\x82\xd3\xe4\x93\x02=\"8/v3/{name=projects/*/locations/*/agents/*/flows/*}:train:\x01*\xda\x41\x04name\xca\x41/\n\x15google.protobuf.Empty\x12\x16google.protobuf.Struct\x12\xbf\x01\n\x0cValidateFlow\x12\x32.google.cloud.dialogflow.cx.v3.ValidateFlowRequest\x1a\x33.google.cloud.dialogflow.cx.v3.FlowValidationResult\"F\x82\xd3\xe4\x93\x02@\";/v3/{name=projects/*/locations/*/agents/*/flows/*}:validate:\x01*\x12\xe1\x01\n\x17GetFlowValidationResult\x12=.google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest\x1a\x33.google.cloud.dialogflow.cx.v3.FlowValidationResult\"R\x82\xd3\xe4\x93\x02\x45\x12\x43/v3/{name=projects/*/locations/*/agents/*/flows/*/validationResult}\xda\x41\x04name\x12\xd2\x01\n\nImportFlow\x12\x30.google.cloud.dialogflow.cx.v3.ImportFlowRequest\x1a\x1d.google.longrunning.Operation\"s\x82\xd3\xe4\x93\x02>\"9/v3/{parent=projects/*/locations/*/agents/*}/flows:import:\x01*\xca\x41,\n\x12ImportFlowResponse\x12\x16google.protobuf.Struct\x12\xd2\x01\n\nExportFlow\x12\x30.google.cloud.dialogflow.cx.v3.ExportFlowRequest\x1a\x1d.google.longrunning.Operation\"s\x82\xd3\xe4\x93\x02>\"9/v3/{name=projects/*/locations/*/agents/*/flows/*}:export:\x01*\xca\x41,\n\x12\x45xportFlowResponse\x12\x16google.protobuf.Struct\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xaf\x01\n!com.google.cloud.dialogflow.cx.v3B\tFlowProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\x06proto3"
|
22
23
|
|
23
24
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
24
25
|
|
@@ -34,6 +35,7 @@ rescue TypeError => e
|
|
34
35
|
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
35
36
|
imports = [
|
36
37
|
["google.cloud.dialogflow.cx.v3.TransitionRoute", "google/cloud/dialogflow/cx/v3/page.proto"],
|
38
|
+
["google.cloud.dialogflow.cx.v3.AdvancedSettings", "google/cloud/dialogflow/cx/v3/advanced_settings.proto"],
|
37
39
|
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
38
40
|
["google.cloud.dialogflow.cx.v3.ValidationMessage", "google/cloud/dialogflow/cx/v3/validation_message.proto"],
|
39
41
|
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
@@ -157,7 +157,8 @@ module Google
|
|
157
157
|
credentials: credentials,
|
158
158
|
endpoint: @config.endpoint,
|
159
159
|
channel_args: @config.channel_args,
|
160
|
-
interceptors: @config.interceptors
|
160
|
+
interceptors: @config.interceptors,
|
161
|
+
channel_pool_config: @config.channel_pool
|
161
162
|
)
|
162
163
|
end
|
163
164
|
|
@@ -1349,6 +1350,14 @@ module Google
|
|
1349
1350
|
end
|
1350
1351
|
end
|
1351
1352
|
|
1353
|
+
##
|
1354
|
+
# Configuration for the channel pool
|
1355
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
1356
|
+
#
|
1357
|
+
def channel_pool
|
1358
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
1359
|
+
end
|
1360
|
+
|
1352
1361
|
##
|
1353
1362
|
# Configuration RPC class for the Flows API.
|
1354
1363
|
#
|
@@ -94,7 +94,8 @@ module Google
|
|
94
94
|
credentials: credentials,
|
95
95
|
endpoint: @config.endpoint,
|
96
96
|
channel_args: @config.channel_args,
|
97
|
-
interceptors: @config.interceptors
|
97
|
+
interceptors: @config.interceptors,
|
98
|
+
channel_pool_config: @config.channel_pool
|
98
99
|
)
|
99
100
|
|
100
101
|
# Used by an LRO wrapper for some methods of this service
|
@@ -702,6 +703,14 @@ module Google
|
|
702
703
|
end
|
703
704
|
end
|
704
705
|
|
706
|
+
##
|
707
|
+
# Configuration for the channel pool
|
708
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
709
|
+
#
|
710
|
+
def channel_pool
|
711
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
712
|
+
end
|
713
|
+
|
705
714
|
##
|
706
715
|
# Configuration RPC class for the Operations API.
|
707
716
|
#
|
@@ -216,6 +216,22 @@ module Google
|
|
216
216
|
# @return [::Google::Cloud::Dialogflow::CX::V3::Flow]
|
217
217
|
#
|
218
218
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
219
|
+
#
|
220
|
+
# @example Basic example
|
221
|
+
# require "google/cloud/dialogflow/cx/v3"
|
222
|
+
#
|
223
|
+
# # Create a client object. The client can be reused for multiple calls.
|
224
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Flows::Rest::Client.new
|
225
|
+
#
|
226
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
227
|
+
# request = Google::Cloud::Dialogflow::CX::V3::CreateFlowRequest.new
|
228
|
+
#
|
229
|
+
# # Call the create_flow method.
|
230
|
+
# result = client.create_flow request
|
231
|
+
#
|
232
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Flow.
|
233
|
+
# p result
|
234
|
+
#
|
219
235
|
def create_flow request, options = nil
|
220
236
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
221
237
|
|
@@ -291,6 +307,22 @@ module Google
|
|
291
307
|
# @return [::Google::Protobuf::Empty]
|
292
308
|
#
|
293
309
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
310
|
+
#
|
311
|
+
# @example Basic example
|
312
|
+
# require "google/cloud/dialogflow/cx/v3"
|
313
|
+
#
|
314
|
+
# # Create a client object. The client can be reused for multiple calls.
|
315
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Flows::Rest::Client.new
|
316
|
+
#
|
317
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
318
|
+
# request = Google::Cloud::Dialogflow::CX::V3::DeleteFlowRequest.new
|
319
|
+
#
|
320
|
+
# # Call the delete_flow method.
|
321
|
+
# result = client.delete_flow request
|
322
|
+
#
|
323
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
324
|
+
# p result
|
325
|
+
#
|
294
326
|
def delete_flow request, options = nil
|
295
327
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
296
328
|
|
@@ -373,6 +405,26 @@ module Google
|
|
373
405
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::CX::V3::Flow>]
|
374
406
|
#
|
375
407
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
408
|
+
#
|
409
|
+
# @example Basic example
|
410
|
+
# require "google/cloud/dialogflow/cx/v3"
|
411
|
+
#
|
412
|
+
# # Create a client object. The client can be reused for multiple calls.
|
413
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Flows::Rest::Client.new
|
414
|
+
#
|
415
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
416
|
+
# request = Google::Cloud::Dialogflow::CX::V3::ListFlowsRequest.new
|
417
|
+
#
|
418
|
+
# # Call the list_flows method.
|
419
|
+
# result = client.list_flows request
|
420
|
+
#
|
421
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
422
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
423
|
+
# result.each do |item|
|
424
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::Flow.
|
425
|
+
# p item
|
426
|
+
# end
|
427
|
+
#
|
376
428
|
def list_flows request, options = nil
|
377
429
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
378
430
|
|
@@ -452,6 +504,22 @@ module Google
|
|
452
504
|
# @return [::Google::Cloud::Dialogflow::CX::V3::Flow]
|
453
505
|
#
|
454
506
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
507
|
+
#
|
508
|
+
# @example Basic example
|
509
|
+
# require "google/cloud/dialogflow/cx/v3"
|
510
|
+
#
|
511
|
+
# # Create a client object. The client can be reused for multiple calls.
|
512
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Flows::Rest::Client.new
|
513
|
+
#
|
514
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
515
|
+
# request = Google::Cloud::Dialogflow::CX::V3::GetFlowRequest.new
|
516
|
+
#
|
517
|
+
# # Call the get_flow method.
|
518
|
+
# result = client.get_flow request
|
519
|
+
#
|
520
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Flow.
|
521
|
+
# p result
|
522
|
+
#
|
455
523
|
def get_flow request, options = nil
|
456
524
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
457
525
|
|
@@ -534,6 +602,22 @@ module Google
|
|
534
602
|
# @return [::Google::Cloud::Dialogflow::CX::V3::Flow]
|
535
603
|
#
|
536
604
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
605
|
+
#
|
606
|
+
# @example Basic example
|
607
|
+
# require "google/cloud/dialogflow/cx/v3"
|
608
|
+
#
|
609
|
+
# # Create a client object. The client can be reused for multiple calls.
|
610
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Flows::Rest::Client.new
|
611
|
+
#
|
612
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
613
|
+
# request = Google::Cloud::Dialogflow::CX::V3::UpdateFlowRequest.new
|
614
|
+
#
|
615
|
+
# # Call the update_flow method.
|
616
|
+
# result = client.update_flow request
|
617
|
+
#
|
618
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Flow.
|
619
|
+
# p result
|
620
|
+
#
|
537
621
|
def update_flow request, options = nil
|
538
622
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
539
623
|
|
@@ -612,6 +696,29 @@ module Google
|
|
612
696
|
# @return [::Gapic::Operation]
|
613
697
|
#
|
614
698
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
699
|
+
#
|
700
|
+
# @example Basic example
|
701
|
+
# require "google/cloud/dialogflow/cx/v3"
|
702
|
+
#
|
703
|
+
# # Create a client object. The client can be reused for multiple calls.
|
704
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Flows::Rest::Client.new
|
705
|
+
#
|
706
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
707
|
+
# request = Google::Cloud::Dialogflow::CX::V3::TrainFlowRequest.new
|
708
|
+
#
|
709
|
+
# # Call the train_flow method.
|
710
|
+
# result = client.train_flow request
|
711
|
+
#
|
712
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
713
|
+
# # check the status of an operation, cancel it, or wait for results.
|
714
|
+
# # Here is how to wait for a response.
|
715
|
+
# result.wait_until_done! timeout: 60
|
716
|
+
# if result.response?
|
717
|
+
# p result.response
|
718
|
+
# else
|
719
|
+
# puts "No response received."
|
720
|
+
# end
|
721
|
+
#
|
615
722
|
def train_flow request, options = nil
|
616
723
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
617
724
|
|
@@ -681,6 +788,22 @@ module Google
|
|
681
788
|
# @return [::Google::Cloud::Dialogflow::CX::V3::FlowValidationResult]
|
682
789
|
#
|
683
790
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
791
|
+
#
|
792
|
+
# @example Basic example
|
793
|
+
# require "google/cloud/dialogflow/cx/v3"
|
794
|
+
#
|
795
|
+
# # Create a client object. The client can be reused for multiple calls.
|
796
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Flows::Rest::Client.new
|
797
|
+
#
|
798
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
799
|
+
# request = Google::Cloud::Dialogflow::CX::V3::ValidateFlowRequest.new
|
800
|
+
#
|
801
|
+
# # Call the validate_flow method.
|
802
|
+
# result = client.validate_flow request
|
803
|
+
#
|
804
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::FlowValidationResult.
|
805
|
+
# p result
|
806
|
+
#
|
684
807
|
def validate_flow request, options = nil
|
685
808
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
686
809
|
|
@@ -748,6 +871,22 @@ module Google
|
|
748
871
|
# @return [::Google::Cloud::Dialogflow::CX::V3::FlowValidationResult]
|
749
872
|
#
|
750
873
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
874
|
+
#
|
875
|
+
# @example Basic example
|
876
|
+
# require "google/cloud/dialogflow/cx/v3"
|
877
|
+
#
|
878
|
+
# # Create a client object. The client can be reused for multiple calls.
|
879
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Flows::Rest::Client.new
|
880
|
+
#
|
881
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
882
|
+
# request = Google::Cloud::Dialogflow::CX::V3::GetFlowValidationResultRequest.new
|
883
|
+
#
|
884
|
+
# # Call the get_flow_validation_result method.
|
885
|
+
# result = client.get_flow_validation_result request
|
886
|
+
#
|
887
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::FlowValidationResult.
|
888
|
+
# p result
|
889
|
+
#
|
751
890
|
def get_flow_validation_result request, options = nil
|
752
891
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
753
892
|
|
@@ -841,6 +980,29 @@ module Google
|
|
841
980
|
# @return [::Gapic::Operation]
|
842
981
|
#
|
843
982
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
983
|
+
#
|
984
|
+
# @example Basic example
|
985
|
+
# require "google/cloud/dialogflow/cx/v3"
|
986
|
+
#
|
987
|
+
# # Create a client object. The client can be reused for multiple calls.
|
988
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Flows::Rest::Client.new
|
989
|
+
#
|
990
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
991
|
+
# request = Google::Cloud::Dialogflow::CX::V3::ImportFlowRequest.new
|
992
|
+
#
|
993
|
+
# # Call the import_flow method.
|
994
|
+
# result = client.import_flow request
|
995
|
+
#
|
996
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
997
|
+
# # check the status of an operation, cancel it, or wait for results.
|
998
|
+
# # Here is how to wait for a response.
|
999
|
+
# result.wait_until_done! timeout: 60
|
1000
|
+
# if result.response?
|
1001
|
+
# p result.response
|
1002
|
+
# else
|
1003
|
+
# puts "No response received."
|
1004
|
+
# end
|
1005
|
+
#
|
844
1006
|
def import_flow request, options = nil
|
845
1007
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
846
1008
|
|
@@ -931,6 +1093,29 @@ module Google
|
|
931
1093
|
# @return [::Gapic::Operation]
|
932
1094
|
#
|
933
1095
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1096
|
+
#
|
1097
|
+
# @example Basic example
|
1098
|
+
# require "google/cloud/dialogflow/cx/v3"
|
1099
|
+
#
|
1100
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1101
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Flows::Rest::Client.new
|
1102
|
+
#
|
1103
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1104
|
+
# request = Google::Cloud::Dialogflow::CX::V3::ExportFlowRequest.new
|
1105
|
+
#
|
1106
|
+
# # Call the export_flow method.
|
1107
|
+
# result = client.export_flow request
|
1108
|
+
#
|
1109
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1110
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1111
|
+
# # Here is how to wait for a response.
|
1112
|
+
# result.wait_until_done! timeout: 60
|
1113
|
+
# if result.response?
|
1114
|
+
# p result.response
|
1115
|
+
# else
|
1116
|
+
# puts "No response received."
|
1117
|
+
# end
|
1118
|
+
#
|
934
1119
|
def export_flow request, options = nil
|
935
1120
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
936
1121
|
|