google-cloud-dialogflow-cx-v3 0.1.1 → 0.4.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 -2
- data/lib/google/cloud/dialogflow/cx/v3/agent_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/agent_services_pb.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +209 -27
- data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/cx/v3/audio_config_pb.rb +2 -2
- 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/deployment_pb.rb +63 -0
- data/lib/google/cloud/dialogflow/cx/v3/deployment_services_pb.rb +49 -0
- data/lib/google/cloud/dialogflow/cx/v3/deployments/client.rb +502 -0
- data/lib/google/cloud/dialogflow/cx/v3/deployments/credentials.rb +54 -0
- data/lib/google/cloud/dialogflow/cx/v3/deployments/paths.rb +79 -0
- data/lib/google/cloud/dialogflow/cx/v3/deployments.rb +51 -0
- data/lib/google/cloud/dialogflow/cx/v3/entity_type_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/entity_type_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/environment_pb.rb +24 -2
- data/lib/google/cloud/dialogflow/cx/v3/environment_services_pb.rb +33 -1
- data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +335 -24
- data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/cx/v3/environments/paths.rb +21 -0
- data/lib/google/cloud/dialogflow/cx/v3/experiment_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/experiment_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +146 -21
- data/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/flow_services_pb.rb +26 -1
- data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +252 -30
- data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/cx/v3/fulfillment_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/intent_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/intent_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/page_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/page_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/response_message_pb.rb +9 -2
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_type_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_type_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/session_pb.rb +3 -2
- data/lib/google/cloud/dialogflow/cx/v3/session_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +84 -9
- data/lib/google/cloud/dialogflow/cx/v3/test_case_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/test_case_services_pb.rb +23 -1
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +302 -36
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3/validation_message_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/version_pb.rb +14 -2
- data/lib/google/cloud/dialogflow/cx/v3/version_services_pb.rb +19 -1
- data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +265 -18
- data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/cx/v3/webhook_pb.rb +3 -2
- data/lib/google/cloud/dialogflow/cx/v3/webhook_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +106 -15
- data/lib/google/cloud/dialogflow/cx/v3.rb +3 -1
- data/proto_docs/google/cloud/dialogflow/cx/v3/changelog.rb +122 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/deployment.rb +135 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/environment.rb +62 -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 +15 -2
- data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +58 -42
- data/proto_docs/google/cloud/dialogflow/cx/v3/test_case.rb +1 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/version.rb +43 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/webhook.rb +13 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fae7b6df61618ef1bedad366afbe94b2514144c935f8e451e8ccf824a8beac7c
|
4
|
+
data.tar.gz: ef40b9845fd7c8d9d76a7bd616ce5e0739d2e18575d2cad586990aac486eeb82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7270ca47ecb593e5711fed092a94f823076bd7c558f2afa6d74b3e1c73f632b13ac7af09fffce83301fd6d5d92a275af2e90b3a9098852395d969bd3a310036
|
7
|
+
data.tar.gz: 04253c5e798cda18abd9671ae04bae1b1b41e8545623923c79eb38ca712f7cbb8ba0c31b1ebdc278d76f504c116cb367900ae6e6a5ff739831523add351f7133
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dialogflow/cx/v3/advanced_settings.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/field_behavior_pb'
|
7
5
|
require 'google/protobuf/duration_pb'
|
8
6
|
require 'google/api/annotations_pb'
|
7
|
+
require 'google/protobuf'
|
8
|
+
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
10
|
add_file("google/cloud/dialogflow/cx/v3/advanced_settings.proto", :syntax => :proto3) do
|
11
11
|
add_message "google.cloud.dialogflow.cx.v3.AdvancedSettings" do
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dialogflow/cx/v3/agent.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
@@ -13,6 +11,8 @@ require 'google/cloud/dialogflow/cx/v3/security_settings_pb'
|
|
13
11
|
require 'google/longrunning/operations_pb'
|
14
12
|
require 'google/protobuf/empty_pb'
|
15
13
|
require 'google/protobuf/field_mask_pb'
|
14
|
+
require 'google/protobuf'
|
15
|
+
|
16
16
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
17
17
|
add_file("google/cloud/dialogflow/cx/v3/agent.proto", :syntax => :proto3) do
|
18
18
|
add_message "google.cloud.dialogflow.cx.v3.SpeechToTextSettings" do
|
@@ -28,7 +28,7 @@ module Google
|
|
28
28
|
# Service for managing [Agents][google.cloud.dialogflow.cx.v3.Agent].
|
29
29
|
class Service
|
30
30
|
|
31
|
-
include GRPC::GenericService
|
31
|
+
include ::GRPC::GenericService
|
32
32
|
|
33
33
|
self.marshal_class_method = :encode
|
34
34
|
self.unmarshal_class_method = :decode
|
@@ -53,6 +53,7 @@ module Google
|
|
53
53
|
# Deletes the specified agent.
|
54
54
|
rpc :DeleteAgent, ::Google::Cloud::Dialogflow::CX::V3::DeleteAgentRequest, ::Google::Protobuf::Empty
|
55
55
|
# Exports the specified agent to a binary file.
|
56
|
+
#
|
56
57
|
# This method is a [long-running
|
57
58
|
# operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
|
58
59
|
# The returned `Operation` type has the following method-specific fields:
|
@@ -66,6 +67,14 @@ module Google
|
|
66
67
|
# Replaces the current agent with a new one. Note that all existing resources
|
67
68
|
# in agent (e.g. intents, entity types, flows) will be removed.
|
68
69
|
#
|
70
|
+
# This method is a [long-running
|
71
|
+
# operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
|
72
|
+
# The returned `Operation` type has the following method-specific fields:
|
73
|
+
#
|
74
|
+
# - `metadata`: An empty [Struct
|
75
|
+
# message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
|
76
|
+
# - `response`: An [Empty
|
77
|
+
# message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
|
69
78
|
#
|
70
79
|
# Note: You should always train flows prior to sending them queries. See the
|
71
80
|
# [training
|
@@ -197,6 +197,27 @@ module Google
|
|
197
197
|
#
|
198
198
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
199
199
|
#
|
200
|
+
# @example Basic example
|
201
|
+
# require "google/cloud/dialogflow/cx/v3"
|
202
|
+
#
|
203
|
+
# # Create a client object. The client can be reused for multiple calls.
|
204
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Agents::Client.new
|
205
|
+
#
|
206
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
207
|
+
# request = Google::Cloud::Dialogflow::CX::V3::ListAgentsRequest.new
|
208
|
+
#
|
209
|
+
# # Call the list_agents method.
|
210
|
+
# result = client.list_agents request
|
211
|
+
#
|
212
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
213
|
+
# # iterate over all elements by calling #each, and the enumerable
|
214
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
215
|
+
# # methods are also available for managing paging directly.
|
216
|
+
# result.each do |response|
|
217
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::Agent.
|
218
|
+
# p response
|
219
|
+
# end
|
220
|
+
#
|
200
221
|
def list_agents request, options = nil
|
201
222
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
202
223
|
|
@@ -214,9 +235,11 @@ module Google
|
|
214
235
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
215
236
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
216
237
|
|
217
|
-
header_params = {
|
218
|
-
|
219
|
-
|
238
|
+
header_params = {}
|
239
|
+
if request.parent
|
240
|
+
header_params["parent"] = request.parent
|
241
|
+
end
|
242
|
+
|
220
243
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
221
244
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
222
245
|
|
@@ -267,6 +290,21 @@ module Google
|
|
267
290
|
#
|
268
291
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
269
292
|
#
|
293
|
+
# @example Basic example
|
294
|
+
# require "google/cloud/dialogflow/cx/v3"
|
295
|
+
#
|
296
|
+
# # Create a client object. The client can be reused for multiple calls.
|
297
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Agents::Client.new
|
298
|
+
#
|
299
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
300
|
+
# request = Google::Cloud::Dialogflow::CX::V3::GetAgentRequest.new
|
301
|
+
#
|
302
|
+
# # Call the get_agent method.
|
303
|
+
# result = client.get_agent request
|
304
|
+
#
|
305
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Agent.
|
306
|
+
# p result
|
307
|
+
#
|
270
308
|
def get_agent request, options = nil
|
271
309
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
272
310
|
|
@@ -284,9 +322,11 @@ module Google
|
|
284
322
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
285
323
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
286
324
|
|
287
|
-
header_params = {
|
288
|
-
|
289
|
-
|
325
|
+
header_params = {}
|
326
|
+
if request.name
|
327
|
+
header_params["name"] = request.name
|
328
|
+
end
|
329
|
+
|
290
330
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
291
331
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
292
332
|
|
@@ -342,6 +382,21 @@ module Google
|
|
342
382
|
#
|
343
383
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
344
384
|
#
|
385
|
+
# @example Basic example
|
386
|
+
# require "google/cloud/dialogflow/cx/v3"
|
387
|
+
#
|
388
|
+
# # Create a client object. The client can be reused for multiple calls.
|
389
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Agents::Client.new
|
390
|
+
#
|
391
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
392
|
+
# request = Google::Cloud::Dialogflow::CX::V3::CreateAgentRequest.new
|
393
|
+
#
|
394
|
+
# # Call the create_agent method.
|
395
|
+
# result = client.create_agent request
|
396
|
+
#
|
397
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Agent.
|
398
|
+
# p result
|
399
|
+
#
|
345
400
|
def create_agent request, options = nil
|
346
401
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
347
402
|
|
@@ -359,9 +414,11 @@ module Google
|
|
359
414
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
360
415
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
361
416
|
|
362
|
-
header_params = {
|
363
|
-
|
364
|
-
|
417
|
+
header_params = {}
|
418
|
+
if request.parent
|
419
|
+
header_params["parent"] = request.parent
|
420
|
+
end
|
421
|
+
|
365
422
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
366
423
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
367
424
|
|
@@ -417,6 +474,21 @@ module Google
|
|
417
474
|
#
|
418
475
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
419
476
|
#
|
477
|
+
# @example Basic example
|
478
|
+
# require "google/cloud/dialogflow/cx/v3"
|
479
|
+
#
|
480
|
+
# # Create a client object. The client can be reused for multiple calls.
|
481
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Agents::Client.new
|
482
|
+
#
|
483
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
484
|
+
# request = Google::Cloud::Dialogflow::CX::V3::UpdateAgentRequest.new
|
485
|
+
#
|
486
|
+
# # Call the update_agent method.
|
487
|
+
# result = client.update_agent request
|
488
|
+
#
|
489
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Agent.
|
490
|
+
# p result
|
491
|
+
#
|
420
492
|
def update_agent request, options = nil
|
421
493
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
422
494
|
|
@@ -434,9 +506,11 @@ module Google
|
|
434
506
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
435
507
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
436
508
|
|
437
|
-
header_params = {
|
438
|
-
|
439
|
-
|
509
|
+
header_params = {}
|
510
|
+
if request.agent&.name
|
511
|
+
header_params["agent.name"] = request.agent.name
|
512
|
+
end
|
513
|
+
|
440
514
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
441
515
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
442
516
|
|
@@ -486,6 +560,21 @@ module Google
|
|
486
560
|
#
|
487
561
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
488
562
|
#
|
563
|
+
# @example Basic example
|
564
|
+
# require "google/cloud/dialogflow/cx/v3"
|
565
|
+
#
|
566
|
+
# # Create a client object. The client can be reused for multiple calls.
|
567
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Agents::Client.new
|
568
|
+
#
|
569
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
570
|
+
# request = Google::Cloud::Dialogflow::CX::V3::DeleteAgentRequest.new
|
571
|
+
#
|
572
|
+
# # Call the delete_agent method.
|
573
|
+
# result = client.delete_agent request
|
574
|
+
#
|
575
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
576
|
+
# p result
|
577
|
+
#
|
489
578
|
def delete_agent request, options = nil
|
490
579
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
491
580
|
|
@@ -503,9 +592,11 @@ module Google
|
|
503
592
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
504
593
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
505
594
|
|
506
|
-
header_params = {
|
507
|
-
|
508
|
-
|
595
|
+
header_params = {}
|
596
|
+
if request.name
|
597
|
+
header_params["name"] = request.name
|
598
|
+
end
|
599
|
+
|
509
600
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
510
601
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
511
602
|
|
@@ -527,6 +618,7 @@ module Google
|
|
527
618
|
|
528
619
|
##
|
529
620
|
# Exports the specified agent to a binary file.
|
621
|
+
#
|
530
622
|
# This method is a [long-running
|
531
623
|
# operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
|
532
624
|
# The returned `Operation` type has the following method-specific fields:
|
@@ -571,6 +663,28 @@ module Google
|
|
571
663
|
#
|
572
664
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
573
665
|
#
|
666
|
+
# @example Basic example
|
667
|
+
# require "google/cloud/dialogflow/cx/v3"
|
668
|
+
#
|
669
|
+
# # Create a client object. The client can be reused for multiple calls.
|
670
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Agents::Client.new
|
671
|
+
#
|
672
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
673
|
+
# request = Google::Cloud::Dialogflow::CX::V3::ExportAgentRequest.new
|
674
|
+
#
|
675
|
+
# # Call the export_agent method.
|
676
|
+
# result = client.export_agent request
|
677
|
+
#
|
678
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
679
|
+
# # object to check the status of an operation, cancel it, or wait
|
680
|
+
# # for results. Here is how to block until completion:
|
681
|
+
# result.wait_until_done! timeout: 60
|
682
|
+
# if result.response?
|
683
|
+
# p result.response
|
684
|
+
# else
|
685
|
+
# puts "Error!"
|
686
|
+
# end
|
687
|
+
#
|
574
688
|
def export_agent request, options = nil
|
575
689
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
576
690
|
|
@@ -588,9 +702,11 @@ module Google
|
|
588
702
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
589
703
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
590
704
|
|
591
|
-
header_params = {
|
592
|
-
|
593
|
-
|
705
|
+
header_params = {}
|
706
|
+
if request.name
|
707
|
+
header_params["name"] = request.name
|
708
|
+
end
|
709
|
+
|
594
710
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
595
711
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
596
712
|
|
@@ -617,6 +733,14 @@ module Google
|
|
617
733
|
# Replaces the current agent with a new one. Note that all existing resources
|
618
734
|
# in agent (e.g. intents, entity types, flows) will be removed.
|
619
735
|
#
|
736
|
+
# This method is a [long-running
|
737
|
+
# operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
|
738
|
+
# The returned `Operation` type has the following method-specific fields:
|
739
|
+
#
|
740
|
+
# - `metadata`: An empty [Struct
|
741
|
+
# message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
|
742
|
+
# - `response`: An [Empty
|
743
|
+
# message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
|
620
744
|
#
|
621
745
|
# Note: You should always train flows prior to sending them queries. See the
|
622
746
|
# [training
|
@@ -657,6 +781,28 @@ module Google
|
|
657
781
|
#
|
658
782
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
659
783
|
#
|
784
|
+
# @example Basic example
|
785
|
+
# require "google/cloud/dialogflow/cx/v3"
|
786
|
+
#
|
787
|
+
# # Create a client object. The client can be reused for multiple calls.
|
788
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Agents::Client.new
|
789
|
+
#
|
790
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
791
|
+
# request = Google::Cloud::Dialogflow::CX::V3::RestoreAgentRequest.new
|
792
|
+
#
|
793
|
+
# # Call the restore_agent method.
|
794
|
+
# result = client.restore_agent request
|
795
|
+
#
|
796
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
797
|
+
# # object to check the status of an operation, cancel it, or wait
|
798
|
+
# # for results. Here is how to block until completion:
|
799
|
+
# result.wait_until_done! timeout: 60
|
800
|
+
# if result.response?
|
801
|
+
# p result.response
|
802
|
+
# else
|
803
|
+
# puts "Error!"
|
804
|
+
# end
|
805
|
+
#
|
660
806
|
def restore_agent request, options = nil
|
661
807
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
662
808
|
|
@@ -674,9 +820,11 @@ module Google
|
|
674
820
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
675
821
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
676
822
|
|
677
|
-
header_params = {
|
678
|
-
|
679
|
-
|
823
|
+
header_params = {}
|
824
|
+
if request.name
|
825
|
+
header_params["name"] = request.name
|
826
|
+
end
|
827
|
+
|
680
828
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
681
829
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
682
830
|
|
@@ -731,6 +879,21 @@ module Google
|
|
731
879
|
#
|
732
880
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
733
881
|
#
|
882
|
+
# @example Basic example
|
883
|
+
# require "google/cloud/dialogflow/cx/v3"
|
884
|
+
#
|
885
|
+
# # Create a client object. The client can be reused for multiple calls.
|
886
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Agents::Client.new
|
887
|
+
#
|
888
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
889
|
+
# request = Google::Cloud::Dialogflow::CX::V3::ValidateAgentRequest.new
|
890
|
+
#
|
891
|
+
# # Call the validate_agent method.
|
892
|
+
# result = client.validate_agent request
|
893
|
+
#
|
894
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::AgentValidationResult.
|
895
|
+
# p result
|
896
|
+
#
|
734
897
|
def validate_agent request, options = nil
|
735
898
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
736
899
|
|
@@ -748,9 +911,11 @@ module Google
|
|
748
911
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
749
912
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
750
913
|
|
751
|
-
header_params = {
|
752
|
-
|
753
|
-
|
914
|
+
header_params = {}
|
915
|
+
if request.name
|
916
|
+
header_params["name"] = request.name
|
917
|
+
end
|
918
|
+
|
754
919
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
755
920
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
756
921
|
|
@@ -804,6 +969,21 @@ module Google
|
|
804
969
|
#
|
805
970
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
806
971
|
#
|
972
|
+
# @example Basic example
|
973
|
+
# require "google/cloud/dialogflow/cx/v3"
|
974
|
+
#
|
975
|
+
# # Create a client object. The client can be reused for multiple calls.
|
976
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Agents::Client.new
|
977
|
+
#
|
978
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
979
|
+
# request = Google::Cloud::Dialogflow::CX::V3::GetAgentValidationResultRequest.new
|
980
|
+
#
|
981
|
+
# # Call the get_agent_validation_result method.
|
982
|
+
# result = client.get_agent_validation_result request
|
983
|
+
#
|
984
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::AgentValidationResult.
|
985
|
+
# p result
|
986
|
+
#
|
807
987
|
def get_agent_validation_result request, options = nil
|
808
988
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
809
989
|
|
@@ -821,9 +1001,11 @@ module Google
|
|
821
1001
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
822
1002
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
823
1003
|
|
824
|
-
header_params = {
|
825
|
-
|
826
|
-
|
1004
|
+
header_params = {}
|
1005
|
+
if request.name
|
1006
|
+
header_params["name"] = request.name
|
1007
|
+
end
|
1008
|
+
|
827
1009
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
828
1010
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
829
1011
|
|
@@ -144,6 +144,27 @@ module Google
|
|
144
144
|
#
|
145
145
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
146
146
|
#
|
147
|
+
# @example Basic example
|
148
|
+
# require "google/longrunning"
|
149
|
+
#
|
150
|
+
# # Create a client object. The client can be reused for multiple calls.
|
151
|
+
# client = Google::Longrunning::Operations::Client.new
|
152
|
+
#
|
153
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
154
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
155
|
+
#
|
156
|
+
# # Call the list_operations method.
|
157
|
+
# result = client.list_operations request
|
158
|
+
#
|
159
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
160
|
+
# # iterate over all elements by calling #each, and the enumerable
|
161
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
162
|
+
# # methods are also available for managing paging directly.
|
163
|
+
# result.each do |response|
|
164
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
165
|
+
# p response
|
166
|
+
# end
|
167
|
+
#
|
147
168
|
def list_operations request, options = nil
|
148
169
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
149
170
|
|
@@ -161,9 +182,11 @@ module Google
|
|
161
182
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
162
183
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
163
184
|
|
164
|
-
header_params = {
|
165
|
-
|
166
|
-
|
185
|
+
header_params = {}
|
186
|
+
if request.name
|
187
|
+
header_params["name"] = request.name
|
188
|
+
end
|
189
|
+
|
167
190
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
168
191
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
169
192
|
|
@@ -216,6 +239,28 @@ module Google
|
|
216
239
|
#
|
217
240
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
218
241
|
#
|
242
|
+
# @example Basic example
|
243
|
+
# require "google/longrunning"
|
244
|
+
#
|
245
|
+
# # Create a client object. The client can be reused for multiple calls.
|
246
|
+
# client = Google::Longrunning::Operations::Client.new
|
247
|
+
#
|
248
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
249
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
250
|
+
#
|
251
|
+
# # Call the get_operation method.
|
252
|
+
# result = client.get_operation request
|
253
|
+
#
|
254
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
255
|
+
# # object to check the status of an operation, cancel it, or wait
|
256
|
+
# # for results. Here is how to block until completion:
|
257
|
+
# result.wait_until_done! timeout: 60
|
258
|
+
# if result.response?
|
259
|
+
# p result.response
|
260
|
+
# else
|
261
|
+
# puts "Error!"
|
262
|
+
# end
|
263
|
+
#
|
219
264
|
def get_operation request, options = nil
|
220
265
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
221
266
|
|
@@ -233,9 +278,11 @@ module Google
|
|
233
278
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
234
279
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
235
280
|
|
236
|
-
header_params = {
|
237
|
-
|
238
|
-
|
281
|
+
header_params = {}
|
282
|
+
if request.name
|
283
|
+
header_params["name"] = request.name
|
284
|
+
end
|
285
|
+
|
239
286
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
240
287
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
241
288
|
|
@@ -288,6 +335,21 @@ module Google
|
|
288
335
|
#
|
289
336
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
290
337
|
#
|
338
|
+
# @example Basic example
|
339
|
+
# require "google/longrunning"
|
340
|
+
#
|
341
|
+
# # Create a client object. The client can be reused for multiple calls.
|
342
|
+
# client = Google::Longrunning::Operations::Client.new
|
343
|
+
#
|
344
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
345
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
346
|
+
#
|
347
|
+
# # Call the delete_operation method.
|
348
|
+
# result = client.delete_operation request
|
349
|
+
#
|
350
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
351
|
+
# p result
|
352
|
+
#
|
291
353
|
def delete_operation request, options = nil
|
292
354
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
293
355
|
|
@@ -305,9 +367,11 @@ module Google
|
|
305
367
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
306
368
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
307
369
|
|
308
|
-
header_params = {
|
309
|
-
|
310
|
-
|
370
|
+
header_params = {}
|
371
|
+
if request.name
|
372
|
+
header_params["name"] = request.name
|
373
|
+
end
|
374
|
+
|
311
375
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
312
376
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
313
377
|
|
@@ -365,6 +429,21 @@ module Google
|
|
365
429
|
#
|
366
430
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
367
431
|
#
|
432
|
+
# @example Basic example
|
433
|
+
# require "google/longrunning"
|
434
|
+
#
|
435
|
+
# # Create a client object. The client can be reused for multiple calls.
|
436
|
+
# client = Google::Longrunning::Operations::Client.new
|
437
|
+
#
|
438
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
439
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
440
|
+
#
|
441
|
+
# # Call the cancel_operation method.
|
442
|
+
# result = client.cancel_operation request
|
443
|
+
#
|
444
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
445
|
+
# p result
|
446
|
+
#
|
368
447
|
def cancel_operation request, options = nil
|
369
448
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
370
449
|
|
@@ -382,9 +461,11 @@ module Google
|
|
382
461
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
383
462
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
384
463
|
|
385
|
-
header_params = {
|
386
|
-
|
387
|
-
|
464
|
+
header_params = {}
|
465
|
+
if request.name
|
466
|
+
header_params["name"] = request.name
|
467
|
+
end
|
468
|
+
|
388
469
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
389
470
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
390
471
|
|
@@ -445,6 +526,28 @@ module Google
|
|
445
526
|
#
|
446
527
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
447
528
|
#
|
529
|
+
# @example Basic example
|
530
|
+
# require "google/longrunning"
|
531
|
+
#
|
532
|
+
# # Create a client object. The client can be reused for multiple calls.
|
533
|
+
# client = Google::Longrunning::Operations::Client.new
|
534
|
+
#
|
535
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
536
|
+
# request = Google::Longrunning::WaitOperationRequest.new
|
537
|
+
#
|
538
|
+
# # Call the wait_operation method.
|
539
|
+
# result = client.wait_operation request
|
540
|
+
#
|
541
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
542
|
+
# # object to check the status of an operation, cancel it, or wait
|
543
|
+
# # for results. Here is how to block until completion:
|
544
|
+
# result.wait_until_done! timeout: 60
|
545
|
+
# if result.response?
|
546
|
+
# p result.response
|
547
|
+
# else
|
548
|
+
# puts "Error!"
|
549
|
+
# end
|
550
|
+
#
|
448
551
|
def wait_operation request, options = nil
|
449
552
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
450
553
|
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dialogflow/cx/v3/audio_config.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/field_behavior_pb'
|
7
5
|
require 'google/api/resource_pb'
|
8
6
|
require 'google/protobuf/duration_pb'
|
9
7
|
require 'google/protobuf/timestamp_pb'
|
10
8
|
require 'google/api/annotations_pb'
|
9
|
+
require 'google/protobuf'
|
10
|
+
|
11
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
12
|
add_file("google/cloud/dialogflow/cx/v3/audio_config.proto", :syntax => :proto3) do
|
13
13
|
add_message "google.cloud.dialogflow.cx.v3.SpeechWordInfo" do
|