google-cloud-dialogflow-cx-v3 0.11.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/dialogflow/cx/v3/advanced_settings_pb.rb +2 -0
  3. data/lib/google/cloud/dialogflow/cx/v3/agent_pb.rb +4 -0
  4. data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +12 -14
  5. data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +12 -14
  6. data/lib/google/cloud/dialogflow/cx/v3/audio_config_pb.rb +4 -0
  7. data/lib/google/cloud/dialogflow/cx/v3/changelogs/client.rb +4 -6
  8. data/lib/google/cloud/dialogflow/cx/v3/deployments/client.rb +4 -6
  9. data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +4 -6
  10. data/lib/google/cloud/dialogflow/cx/v3/environment_pb.rb +1 -0
  11. data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +28 -34
  12. data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +12 -14
  13. data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +4 -6
  14. data/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb +1 -0
  15. data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +16 -18
  16. data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +12 -14
  17. data/lib/google/cloud/dialogflow/cx/v3/gcs_pb.rb +26 -0
  18. data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +4 -6
  19. data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +4 -6
  20. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +4 -6
  21. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +4 -6
  22. data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +7 -7
  23. data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +24 -28
  24. data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +12 -14
  25. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +4 -6
  26. data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
  27. data/lib/google/cloud/dialogflow/cx/v3/version_pb.rb +1 -0
  28. data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +12 -14
  29. data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +12 -14
  30. data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +4 -6
  31. data/proto_docs/google/cloud/dialogflow/cx/v3/advanced_settings.rb +7 -0
  32. data/proto_docs/google/cloud/dialogflow/cx/v3/agent.rb +7 -0
  33. data/proto_docs/google/cloud/dialogflow/cx/v3/audio_config.rb +20 -0
  34. data/proto_docs/google/cloud/dialogflow/cx/v3/environment.rb +2 -2
  35. data/proto_docs/google/cloud/dialogflow/cx/v3/gcs.rb +42 -0
  36. metadata +10 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9be94d2f7992aed5963b1d8576baccfad2ab7ae85927f02c496f2221918b913c
4
- data.tar.gz: 54ee32b0cef6844db92ada238cea3a824312ce8e631b3b950867100029fc35dc
3
+ metadata.gz: f75d553b85de288ebbab597ebb3cd13665ea1960c11153b46836609c70c54906
4
+ data.tar.gz: 62190435f98b5d5662c205d17eb88f610ede2f3374a201c8d3be83a161367d4f
5
5
  SHA512:
6
- metadata.gz: 8b9a09c637da89a505ef0ec3d1a74bd27222336b94b3a79223d494e244af9a99894ba44c1246d36354084ab389e9c42aff161a9ad3a72e57c48d65c9223b4b1b
7
- data.tar.gz: e91551a041bdad4dbeb490b51d03f91f89a20f350fa6e3a125b011bca09730fffb455d8425f606ecc794ed7301b53f1b54b16458cb17dfa3fbf240f7a437b2c3
6
+ metadata.gz: 552563d02aa575013557eabd0fe6d0ff6927d65c222ffd5e891cc99886a654597f581b67cc8e0021bcb2d8da8f37bc531782cfc1db3913fe82b7e148f4dd1053
7
+ data.tar.gz: 79a8901a888ed39fcf64a2e4d14e6bfbf9b29463b53a2b0b4510a159a370b1ac52bb64af45a68d2981d480e50f9266b8ad30e84f722d92c0f239edb5d401d3a9
@@ -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
@@ -66,6 +69,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
66
69
  add_enum "google.cloud.dialogflow.cx.v3.ExportAgentRequest.DataFormat" do
67
70
  value :DATA_FORMAT_UNSPECIFIED, 0
68
71
  value :BLOB, 1
72
+ value :JSON_PACKAGE, 4
69
73
  end
70
74
  add_message "google.cloud.dialogflow.cx.v3.ExportAgentResponse" do
71
75
  oneof :agent do
@@ -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
- # # iterate over all elements by calling #each, and the enumerable
229
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
704
- # # object to check the status of an operation, cancel it, or wait
705
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
828
- # # object to check the status of an operation, cancel it, or wait
829
- # # for results. Here is how to block until completion:
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 "Error!"
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
- # # iterate over all elements by calling #each, and the enumerable
164
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
258
- # # object to check the status of an operation, cancel it, or wait
259
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
545
- # # object to check the status of an operation, cancel it, or wait
546
- # # for results. Here is how to block until completion:
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 "Error!"
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
- # # iterate over all elements by calling #each, and the enumerable
237
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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
- # # iterate over all elements by calling #each, and the enumerable
219
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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
- # # iterate over all elements by calling #each, and the enumerable
229
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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
- # # iterate over all elements by calling #each, and the enumerable
232
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
425
- # # object to check the status of an operation, cancel it, or wait
426
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
529
- # # object to check the status of an operation, cancel it, or wait
530
- # # for results. Here is how to block until completion:
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 "Error!"
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
- # # iterate over all elements by calling #each, and the enumerable
720
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
822
- # # object to check the status of an operation, cancel it, or wait
823
- # # for results. Here is how to block until completion:
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 "Error!"
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
- # # iterate over all elements by calling #each, and the enumerable
923
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
1030
- # # object to check the status of an operation, cancel it, or wait
1031
- # # for results. Here is how to block until completion:
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 "Error!"
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
- # # iterate over all elements by calling #each, and the enumerable
164
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
258
- # # object to check the status of an operation, cancel it, or wait
259
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
545
- # # object to check the status of an operation, cancel it, or wait
546
- # # for results. Here is how to block until completion:
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 "Error!"
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
- # # iterate over all elements by calling #each, and the enumerable
219
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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
- # # iterate over all elements by calling #each, and the enumerable
446
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
759
- # # object to check the status of an operation, cancel it, or wait
760
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
1061
- # # object to check the status of an operation, cancel it, or wait
1062
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
1181
- # # object to check the status of an operation, cancel it, or wait
1182
- # # for results. Here is how to block until completion:
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 "Error!"
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
- # # iterate over all elements by calling #each, and the enumerable
164
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
258
- # # object to check the status of an operation, cancel it, or wait
259
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
545
- # # object to check the status of an operation, cancel it, or wait
546
- # # for results. Here is how to block until completion:
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 "Error!"
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