google-cloud-dialogflow-cx-v3 0.12.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/advanced_settings_pb.rb +2 -0
- data/lib/google/cloud/dialogflow/cx/v3/agent_pb.rb +3 -0
- data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +12 -14
- data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +12 -14
- data/lib/google/cloud/dialogflow/cx/v3/audio_config_pb.rb +4 -0
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/client.rb +4 -6
- data/lib/google/cloud/dialogflow/cx/v3/deployments/client.rb +4 -6
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +4 -6
- data/lib/google/cloud/dialogflow/cx/v3/environment_pb.rb +1 -0
- data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +28 -34
- data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +12 -14
- data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +4 -6
- data/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb +1 -0
- data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +16 -18
- data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +12 -14
- data/lib/google/cloud/dialogflow/cx/v3/gcs_pb.rb +26 -0
- data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +4 -6
- data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +4 -6
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +4 -6
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +4 -6
- data/lib/google/cloud/dialogflow/cx/v3/session_pb.rb +1 -0
- data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +10 -8
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +24 -28
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +12 -14
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +4 -6
- data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/version_pb.rb +1 -0
- data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +12 -14
- data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +12 -14
- data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +4 -6
- data/proto_docs/google/cloud/dialogflow/cx/v3/advanced_settings.rb +7 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/agent.rb +4 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/audio_config.rb +20 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/environment.rb +2 -2
- data/proto_docs/google/cloud/dialogflow/cx/v3/gcs.rb +42 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +3 -0
- metadata +12 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90f5e461c1865448aeb52d03e2294ed44bb1d5cfd4dc9445f3a97438fa1d016a
|
4
|
+
data.tar.gz: c29af2770e93e85f3e4a5b8857b90672e09f6df9c222b98260976faf86aff5ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 339674e0d4782d54a12229367dbdfb4a755d3a6d413891fac2b46318c0d5305535e2d3394ab8f6f468c281aa1ea2c9a274c6716affbdcc9bbc1c9dc11cfcf474
|
7
|
+
data.tar.gz: e27f3e65e6608e1d10617f30fc3431c667cf9ec0fd20f894e8c6a479a9d3f793bcb8300a7ac4f23a59e78cdde5c74a77ba9ef6006398d6e3686068d799b887ea
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the Dialogflow CX V3 API
|
2
2
|
|
3
|
-
|
3
|
+
Builds conversational interfaces (for example, chatbots, and voice-powered apps and devices).
|
4
4
|
|
5
5
|
Dialogflow is an end-to-end, build-once deploy-everywhere development suite for creating conversational interfaces for websites, mobile applications, popular messaging platforms, and IoT devices. You can use it to build interfaces (such as chatbots and conversational IVR) that enable natural and rich interactions between your users and your business. This client is for Dialogflow CX, providing an advanced agent type suitable for large or very complex agents.
|
6
6
|
|
@@ -4,10 +4,12 @@
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
6
|
require 'google/api/field_behavior_pb'
|
7
|
+
require 'google/cloud/dialogflow/cx/v3/gcs_pb'
|
7
8
|
|
8
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
10
|
add_file("google/cloud/dialogflow/cx/v3/advanced_settings.proto", :syntax => :proto3) do
|
10
11
|
add_message "google.cloud.dialogflow.cx.v3.AdvancedSettings" do
|
12
|
+
optional :audio_export_gcs_destination, :message, 2, "google.cloud.dialogflow.cx.v3.GcsDestination"
|
11
13
|
optional :logging_settings, :message, 6, "google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings"
|
12
14
|
end
|
13
15
|
add_message "google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings" do
|
@@ -8,10 +8,12 @@ require 'google/api/client_pb'
|
|
8
8
|
require 'google/api/field_behavior_pb'
|
9
9
|
require 'google/api/resource_pb'
|
10
10
|
require 'google/cloud/dialogflow/cx/v3/advanced_settings_pb'
|
11
|
+
require 'google/cloud/dialogflow/cx/v3/audio_config_pb'
|
11
12
|
require 'google/cloud/dialogflow/cx/v3/flow_pb'
|
12
13
|
require 'google/longrunning/operations_pb'
|
13
14
|
require 'google/protobuf/empty_pb'
|
14
15
|
require 'google/protobuf/field_mask_pb'
|
16
|
+
require 'google/protobuf/struct_pb'
|
15
17
|
|
16
18
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
17
19
|
add_file("google/cloud/dialogflow/cx/v3/agent.proto", :syntax => :proto3) do
|
@@ -33,6 +35,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
33
35
|
optional :enable_spell_correction, :bool, 20
|
34
36
|
optional :locked, :bool, 27
|
35
37
|
optional :advanced_settings, :message, 22, "google.cloud.dialogflow.cx.v3.AdvancedSettings"
|
38
|
+
optional :text_to_speech_settings, :message, 31, "google.cloud.dialogflow.cx.v3.TextToSpeechSettings"
|
36
39
|
end
|
37
40
|
add_message "google.cloud.dialogflow.cx.v3.ListAgentsRequest" do
|
38
41
|
optional :parent, :string, 1
|
@@ -224,13 +224,11 @@ module Google
|
|
224
224
|
# # Call the list_agents method.
|
225
225
|
# result = client.list_agents request
|
226
226
|
#
|
227
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
228
|
-
# #
|
229
|
-
#
|
230
|
-
# # methods are also available for managing paging directly.
|
231
|
-
# result.each do |response|
|
227
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
228
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
229
|
+
# result.each do |item|
|
232
230
|
# # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::Agent.
|
233
|
-
# p
|
231
|
+
# p item
|
234
232
|
# end
|
235
233
|
#
|
236
234
|
def list_agents request, options = nil
|
@@ -700,14 +698,14 @@ module Google
|
|
700
698
|
# # Call the export_agent method.
|
701
699
|
# result = client.export_agent request
|
702
700
|
#
|
703
|
-
# # The returned object is of type Gapic::Operation. You can use
|
704
|
-
# #
|
705
|
-
# #
|
701
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
702
|
+
# # check the status of an operation, cancel it, or wait for results.
|
703
|
+
# # Here is how to wait for a response.
|
706
704
|
# result.wait_until_done! timeout: 60
|
707
705
|
# if result.response?
|
708
706
|
# p result.response
|
709
707
|
# else
|
710
|
-
# puts "
|
708
|
+
# puts "No response received."
|
711
709
|
# end
|
712
710
|
#
|
713
711
|
def export_agent request, options = nil
|
@@ -824,14 +822,14 @@ module Google
|
|
824
822
|
# # Call the restore_agent method.
|
825
823
|
# result = client.restore_agent request
|
826
824
|
#
|
827
|
-
# # The returned object is of type Gapic::Operation. You can use
|
828
|
-
# #
|
829
|
-
# #
|
825
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
826
|
+
# # check the status of an operation, cancel it, or wait for results.
|
827
|
+
# # Here is how to wait for a response.
|
830
828
|
# result.wait_until_done! timeout: 60
|
831
829
|
# if result.response?
|
832
830
|
# p result.response
|
833
831
|
# else
|
834
|
-
# puts "
|
832
|
+
# puts "No response received."
|
835
833
|
# end
|
836
834
|
#
|
837
835
|
def restore_agent request, options = nil
|
@@ -159,13 +159,11 @@ module Google
|
|
159
159
|
# # Call the list_operations method.
|
160
160
|
# result = client.list_operations request
|
161
161
|
#
|
162
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
163
|
-
# #
|
164
|
-
#
|
165
|
-
# # methods are also available for managing paging directly.
|
166
|
-
# result.each do |response|
|
162
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
163
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
164
|
+
# result.each do |item|
|
167
165
|
# # Each element is of type ::Google::Longrunning::Operation.
|
168
|
-
# p
|
166
|
+
# p item
|
169
167
|
# end
|
170
168
|
#
|
171
169
|
def list_operations request, options = nil
|
@@ -254,14 +252,14 @@ module Google
|
|
254
252
|
# # Call the get_operation method.
|
255
253
|
# result = client.get_operation request
|
256
254
|
#
|
257
|
-
# # The returned object is of type Gapic::Operation. You can use
|
258
|
-
# #
|
259
|
-
# #
|
255
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
256
|
+
# # check the status of an operation, cancel it, or wait for results.
|
257
|
+
# # Here is how to wait for a response.
|
260
258
|
# result.wait_until_done! timeout: 60
|
261
259
|
# if result.response?
|
262
260
|
# p result.response
|
263
261
|
# else
|
264
|
-
# puts "
|
262
|
+
# puts "No response received."
|
265
263
|
# end
|
266
264
|
#
|
267
265
|
def get_operation request, options = nil
|
@@ -541,14 +539,14 @@ module Google
|
|
541
539
|
# # Call the wait_operation method.
|
542
540
|
# result = client.wait_operation request
|
543
541
|
#
|
544
|
-
# # The returned object is of type Gapic::Operation. You can use
|
545
|
-
# #
|
546
|
-
# #
|
542
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
543
|
+
# # check the status of an operation, cancel it, or wait for results.
|
544
|
+
# # Here is how to wait for a response.
|
547
545
|
# result.wait_until_done! timeout: 60
|
548
546
|
# if result.response?
|
549
547
|
# p result.response
|
550
548
|
# else
|
551
|
-
# puts "
|
549
|
+
# puts "No response received."
|
552
550
|
# end
|
553
551
|
#
|
554
552
|
def wait_operation request, options = nil
|
@@ -40,6 +40,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
40
40
|
optional :sample_rate_hertz, :int32, 2
|
41
41
|
optional :synthesize_speech_config, :message, 3, "google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig"
|
42
42
|
end
|
43
|
+
add_message "google.cloud.dialogflow.cx.v3.TextToSpeechSettings" do
|
44
|
+
map :synthesize_speech_configs, :string, :message, 1, "google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig"
|
45
|
+
end
|
43
46
|
add_enum "google.cloud.dialogflow.cx.v3.AudioEncoding" do
|
44
47
|
value :AUDIO_ENCODING_UNSPECIFIED, 0
|
45
48
|
value :AUDIO_ENCODING_LINEAR_16, 1
|
@@ -83,6 +86,7 @@ module Google
|
|
83
86
|
VoiceSelectionParams = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.VoiceSelectionParams").msgclass
|
84
87
|
SynthesizeSpeechConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig").msgclass
|
85
88
|
OutputAudioConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.OutputAudioConfig").msgclass
|
89
|
+
TextToSpeechSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.TextToSpeechSettings").msgclass
|
86
90
|
AudioEncoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.AudioEncoding").enummodule
|
87
91
|
SpeechModelVariant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.SpeechModelVariant").enummodule
|
88
92
|
SsmlVoiceGender = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.SsmlVoiceGender").enummodule
|
@@ -232,13 +232,11 @@ module Google
|
|
232
232
|
# # Call the list_changelogs method.
|
233
233
|
# result = client.list_changelogs request
|
234
234
|
#
|
235
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
236
|
-
# #
|
237
|
-
#
|
238
|
-
# # methods are also available for managing paging directly.
|
239
|
-
# result.each do |response|
|
235
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
236
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
237
|
+
# result.each do |item|
|
240
238
|
# # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::Changelog.
|
241
|
-
# p
|
239
|
+
# p item
|
242
240
|
# end
|
243
241
|
#
|
244
242
|
def list_changelogs request, options = nil
|
@@ -214,13 +214,11 @@ module Google
|
|
214
214
|
# # Call the list_deployments method.
|
215
215
|
# result = client.list_deployments request
|
216
216
|
#
|
217
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
218
|
-
# #
|
219
|
-
#
|
220
|
-
# # methods are also available for managing paging directly.
|
221
|
-
# result.each do |response|
|
217
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
218
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
219
|
+
# result.each do |item|
|
222
220
|
# # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::Deployment.
|
223
|
-
# p
|
221
|
+
# p item
|
224
222
|
# end
|
225
223
|
#
|
226
224
|
def list_deployments request, options = nil
|
@@ -224,13 +224,11 @@ module Google
|
|
224
224
|
# # Call the list_entity_types method.
|
225
225
|
# result = client.list_entity_types request
|
226
226
|
#
|
227
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
228
|
-
# #
|
229
|
-
#
|
230
|
-
# # methods are also available for managing paging directly.
|
231
|
-
# result.each do |response|
|
227
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
228
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
229
|
+
# result.each do |item|
|
232
230
|
# # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::EntityType.
|
233
|
-
# p
|
231
|
+
# p item
|
234
232
|
# end
|
235
233
|
#
|
236
234
|
def list_entity_types request, options = nil
|
@@ -12,6 +12,7 @@ require 'google/cloud/dialogflow/cx/v3/webhook_pb'
|
|
12
12
|
require 'google/longrunning/operations_pb'
|
13
13
|
require 'google/protobuf/empty_pb'
|
14
14
|
require 'google/protobuf/field_mask_pb'
|
15
|
+
require 'google/protobuf/struct_pb'
|
15
16
|
require 'google/protobuf/timestamp_pb'
|
16
17
|
|
17
18
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
@@ -227,13 +227,11 @@ module Google
|
|
227
227
|
# # Call the list_environments method.
|
228
228
|
# result = client.list_environments request
|
229
229
|
#
|
230
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
231
|
-
# #
|
232
|
-
#
|
233
|
-
# # methods are also available for managing paging directly.
|
234
|
-
# result.each do |response|
|
230
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
231
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
232
|
+
# result.each do |item|
|
235
233
|
# # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::Environment.
|
236
|
-
# p
|
234
|
+
# p item
|
237
235
|
# end
|
238
236
|
#
|
239
237
|
def list_environments request, options = nil
|
@@ -421,14 +419,14 @@ module Google
|
|
421
419
|
# # Call the create_environment method.
|
422
420
|
# result = client.create_environment request
|
423
421
|
#
|
424
|
-
# # The returned object is of type Gapic::Operation. You can use
|
425
|
-
# #
|
426
|
-
# #
|
422
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
423
|
+
# # check the status of an operation, cancel it, or wait for results.
|
424
|
+
# # Here is how to wait for a response.
|
427
425
|
# result.wait_until_done! timeout: 60
|
428
426
|
# if result.response?
|
429
427
|
# p result.response
|
430
428
|
# else
|
431
|
-
# puts "
|
429
|
+
# puts "No response received."
|
432
430
|
# end
|
433
431
|
#
|
434
432
|
def create_environment request, options = nil
|
@@ -525,14 +523,14 @@ module Google
|
|
525
523
|
# # Call the update_environment method.
|
526
524
|
# result = client.update_environment request
|
527
525
|
#
|
528
|
-
# # The returned object is of type Gapic::Operation. You can use
|
529
|
-
# #
|
530
|
-
# #
|
526
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
527
|
+
# # check the status of an operation, cancel it, or wait for results.
|
528
|
+
# # Here is how to wait for a response.
|
531
529
|
# result.wait_until_done! timeout: 60
|
532
530
|
# if result.response?
|
533
531
|
# p result.response
|
534
532
|
# else
|
535
|
-
# puts "
|
533
|
+
# puts "No response received."
|
536
534
|
# end
|
537
535
|
#
|
538
536
|
def update_environment request, options = nil
|
@@ -715,13 +713,11 @@ module Google
|
|
715
713
|
# # Call the lookup_environment_history method.
|
716
714
|
# result = client.lookup_environment_history request
|
717
715
|
#
|
718
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
719
|
-
# #
|
720
|
-
#
|
721
|
-
# # methods are also available for managing paging directly.
|
722
|
-
# result.each do |response|
|
716
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
717
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
718
|
+
# result.each do |item|
|
723
719
|
# # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::Environment.
|
724
|
-
# p
|
720
|
+
# p item
|
725
721
|
# end
|
726
722
|
#
|
727
723
|
def lookup_environment_history request, options = nil
|
@@ -818,14 +814,14 @@ module Google
|
|
818
814
|
# # Call the run_continuous_test method.
|
819
815
|
# result = client.run_continuous_test request
|
820
816
|
#
|
821
|
-
# # The returned object is of type Gapic::Operation. You can use
|
822
|
-
# #
|
823
|
-
# #
|
817
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
818
|
+
# # check the status of an operation, cancel it, or wait for results.
|
819
|
+
# # Here is how to wait for a response.
|
824
820
|
# result.wait_until_done! timeout: 60
|
825
821
|
# if result.response?
|
826
822
|
# p result.response
|
827
823
|
# else
|
828
|
-
# puts "
|
824
|
+
# puts "No response received."
|
829
825
|
# end
|
830
826
|
#
|
831
827
|
def run_continuous_test request, options = nil
|
@@ -918,13 +914,11 @@ module Google
|
|
918
914
|
# # Call the list_continuous_test_results method.
|
919
915
|
# result = client.list_continuous_test_results request
|
920
916
|
#
|
921
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
922
|
-
# #
|
923
|
-
#
|
924
|
-
# # methods are also available for managing paging directly.
|
925
|
-
# result.each do |response|
|
917
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
918
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
919
|
+
# result.each do |item|
|
926
920
|
# # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::ContinuousTestResult.
|
927
|
-
# p
|
921
|
+
# p item
|
928
922
|
# end
|
929
923
|
#
|
930
924
|
def list_continuous_test_results request, options = nil
|
@@ -1026,14 +1020,14 @@ module Google
|
|
1026
1020
|
# # Call the deploy_flow method.
|
1027
1021
|
# result = client.deploy_flow request
|
1028
1022
|
#
|
1029
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1030
|
-
# #
|
1031
|
-
# #
|
1023
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1024
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1025
|
+
# # Here is how to wait for a response.
|
1032
1026
|
# result.wait_until_done! timeout: 60
|
1033
1027
|
# if result.response?
|
1034
1028
|
# p result.response
|
1035
1029
|
# else
|
1036
|
-
# puts "
|
1030
|
+
# puts "No response received."
|
1037
1031
|
# end
|
1038
1032
|
#
|
1039
1033
|
def deploy_flow request, options = nil
|
@@ -159,13 +159,11 @@ module Google
|
|
159
159
|
# # Call the list_operations method.
|
160
160
|
# result = client.list_operations request
|
161
161
|
#
|
162
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
163
|
-
# #
|
164
|
-
#
|
165
|
-
# # methods are also available for managing paging directly.
|
166
|
-
# result.each do |response|
|
162
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
163
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
164
|
+
# result.each do |item|
|
167
165
|
# # Each element is of type ::Google::Longrunning::Operation.
|
168
|
-
# p
|
166
|
+
# p item
|
169
167
|
# end
|
170
168
|
#
|
171
169
|
def list_operations request, options = nil
|
@@ -254,14 +252,14 @@ module Google
|
|
254
252
|
# # Call the get_operation method.
|
255
253
|
# result = client.get_operation request
|
256
254
|
#
|
257
|
-
# # The returned object is of type Gapic::Operation. You can use
|
258
|
-
# #
|
259
|
-
# #
|
255
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
256
|
+
# # check the status of an operation, cancel it, or wait for results.
|
257
|
+
# # Here is how to wait for a response.
|
260
258
|
# result.wait_until_done! timeout: 60
|
261
259
|
# if result.response?
|
262
260
|
# p result.response
|
263
261
|
# else
|
264
|
-
# puts "
|
262
|
+
# puts "No response received."
|
265
263
|
# end
|
266
264
|
#
|
267
265
|
def get_operation request, options = nil
|
@@ -541,14 +539,14 @@ module Google
|
|
541
539
|
# # Call the wait_operation method.
|
542
540
|
# result = client.wait_operation request
|
543
541
|
#
|
544
|
-
# # The returned object is of type Gapic::Operation. You can use
|
545
|
-
# #
|
546
|
-
# #
|
542
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
543
|
+
# # check the status of an operation, cancel it, or wait for results.
|
544
|
+
# # Here is how to wait for a response.
|
547
545
|
# result.wait_until_done! timeout: 60
|
548
546
|
# if result.response?
|
549
547
|
# p result.response
|
550
548
|
# else
|
551
|
-
# puts "
|
549
|
+
# puts "No response received."
|
552
550
|
# end
|
553
551
|
#
|
554
552
|
def wait_operation request, options = nil
|
@@ -214,13 +214,11 @@ module Google
|
|
214
214
|
# # Call the list_experiments method.
|
215
215
|
# result = client.list_experiments request
|
216
216
|
#
|
217
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
218
|
-
# #
|
219
|
-
#
|
220
|
-
# # methods are also available for managing paging directly.
|
221
|
-
# result.each do |response|
|
217
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
218
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
219
|
+
# result.each do |item|
|
222
220
|
# # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::Experiment.
|
223
|
-
# p
|
221
|
+
# p item
|
224
222
|
# end
|
225
223
|
#
|
226
224
|
def list_experiments request, options = nil
|
@@ -12,6 +12,7 @@ require 'google/cloud/dialogflow/cx/v3/validation_message_pb'
|
|
12
12
|
require 'google/longrunning/operations_pb'
|
13
13
|
require 'google/protobuf/empty_pb'
|
14
14
|
require 'google/protobuf/field_mask_pb'
|
15
|
+
require 'google/protobuf/struct_pb'
|
15
16
|
require 'google/protobuf/timestamp_pb'
|
16
17
|
|
17
18
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
@@ -441,13 +441,11 @@ module Google
|
|
441
441
|
# # Call the list_flows method.
|
442
442
|
# result = client.list_flows request
|
443
443
|
#
|
444
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
445
|
-
# #
|
446
|
-
#
|
447
|
-
# # methods are also available for managing paging directly.
|
448
|
-
# result.each do |response|
|
444
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
445
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
446
|
+
# result.each do |item|
|
449
447
|
# # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::Flow.
|
450
|
-
# p
|
448
|
+
# p item
|
451
449
|
# end
|
452
450
|
#
|
453
451
|
def list_flows request, options = nil
|
@@ -755,14 +753,14 @@ module Google
|
|
755
753
|
# # Call the train_flow method.
|
756
754
|
# result = client.train_flow request
|
757
755
|
#
|
758
|
-
# # The returned object is of type Gapic::Operation. You can use
|
759
|
-
# #
|
760
|
-
# #
|
756
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
757
|
+
# # check the status of an operation, cancel it, or wait for results.
|
758
|
+
# # Here is how to wait for a response.
|
761
759
|
# result.wait_until_done! timeout: 60
|
762
760
|
# if result.response?
|
763
761
|
# p result.response
|
764
762
|
# else
|
765
|
-
# puts "
|
763
|
+
# puts "No response received."
|
766
764
|
# end
|
767
765
|
#
|
768
766
|
def train_flow request, options = nil
|
@@ -1057,14 +1055,14 @@ module Google
|
|
1057
1055
|
# # Call the import_flow method.
|
1058
1056
|
# result = client.import_flow request
|
1059
1057
|
#
|
1060
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1061
|
-
# #
|
1062
|
-
# #
|
1058
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1059
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1060
|
+
# # Here is how to wait for a response.
|
1063
1061
|
# result.wait_until_done! timeout: 60
|
1064
1062
|
# if result.response?
|
1065
1063
|
# p result.response
|
1066
1064
|
# else
|
1067
|
-
# puts "
|
1065
|
+
# puts "No response received."
|
1068
1066
|
# end
|
1069
1067
|
#
|
1070
1068
|
def import_flow request, options = nil
|
@@ -1177,14 +1175,14 @@ module Google
|
|
1177
1175
|
# # Call the export_flow method.
|
1178
1176
|
# result = client.export_flow request
|
1179
1177
|
#
|
1180
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1181
|
-
# #
|
1182
|
-
# #
|
1178
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1179
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1180
|
+
# # Here is how to wait for a response.
|
1183
1181
|
# result.wait_until_done! timeout: 60
|
1184
1182
|
# if result.response?
|
1185
1183
|
# p result.response
|
1186
1184
|
# else
|
1187
|
-
# puts "
|
1185
|
+
# puts "No response received."
|
1188
1186
|
# end
|
1189
1187
|
#
|
1190
1188
|
def export_flow request, options = nil
|
@@ -159,13 +159,11 @@ module Google
|
|
159
159
|
# # Call the list_operations method.
|
160
160
|
# result = client.list_operations request
|
161
161
|
#
|
162
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
163
|
-
# #
|
164
|
-
#
|
165
|
-
# # methods are also available for managing paging directly.
|
166
|
-
# result.each do |response|
|
162
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
163
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
164
|
+
# result.each do |item|
|
167
165
|
# # Each element is of type ::Google::Longrunning::Operation.
|
168
|
-
# p
|
166
|
+
# p item
|
169
167
|
# end
|
170
168
|
#
|
171
169
|
def list_operations request, options = nil
|
@@ -254,14 +252,14 @@ module Google
|
|
254
252
|
# # Call the get_operation method.
|
255
253
|
# result = client.get_operation request
|
256
254
|
#
|
257
|
-
# # The returned object is of type Gapic::Operation. You can use
|
258
|
-
# #
|
259
|
-
# #
|
255
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
256
|
+
# # check the status of an operation, cancel it, or wait for results.
|
257
|
+
# # Here is how to wait for a response.
|
260
258
|
# result.wait_until_done! timeout: 60
|
261
259
|
# if result.response?
|
262
260
|
# p result.response
|
263
261
|
# else
|
264
|
-
# puts "
|
262
|
+
# puts "No response received."
|
265
263
|
# end
|
266
264
|
#
|
267
265
|
def get_operation request, options = nil
|
@@ -541,14 +539,14 @@ module Google
|
|
541
539
|
# # Call the wait_operation method.
|
542
540
|
# result = client.wait_operation request
|
543
541
|
#
|
544
|
-
# # The returned object is of type Gapic::Operation. You can use
|
545
|
-
# #
|
546
|
-
# #
|
542
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
543
|
+
# # check the status of an operation, cancel it, or wait for results.
|
544
|
+
# # Here is how to wait for a response.
|
547
545
|
# result.wait_until_done! timeout: 60
|
548
546
|
# if result.response?
|
549
547
|
# p result.response
|
550
548
|
# else
|
551
|
-
# puts "
|
549
|
+
# puts "No response received."
|
552
550
|
# end
|
553
551
|
#
|
554
552
|
def wait_operation request, options = nil
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/dialogflow/cx/v3/gcs.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
|
8
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
|
+
add_file("google/cloud/dialogflow/cx/v3/gcs.proto", :syntax => :proto3) do
|
10
|
+
add_message "google.cloud.dialogflow.cx.v3.GcsDestination" do
|
11
|
+
optional :uri, :string, 1
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
module Google
|
17
|
+
module Cloud
|
18
|
+
module Dialogflow
|
19
|
+
module CX
|
20
|
+
module V3
|
21
|
+
GcsDestination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.GcsDestination").msgclass
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|