google-cloud-dialogflow-v2 0.21.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/dialogflow/v2/agent_pb.rb +1 -0
- data/lib/google/cloud/dialogflow/v2/agents/client.rb +20 -22
- data/lib/google/cloud/dialogflow/v2/agents/operations.rb +12 -14
- data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +4 -6
- data/lib/google/cloud/dialogflow/v2/contexts/client.rb +4 -6
- data/lib/google/cloud/dialogflow/v2/conversation_dataset_pb.rb +1 -0
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/client.rb +16 -18
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/operations.rb +12 -14
- data/lib/google/cloud/dialogflow/v2/conversation_model_pb.rb +1 -0
- data/lib/google/cloud/dialogflow/v2/conversation_models/client.rb +28 -32
- data/lib/google/cloud/dialogflow/v2/conversation_models/operations.rb +12 -14
- data/lib/google/cloud/dialogflow/v2/conversation_pb.rb +1 -0
- data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +1 -0
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +12 -14
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/operations.rb +12 -14
- data/lib/google/cloud/dialogflow/v2/conversations/client.rb +11 -13
- data/lib/google/cloud/dialogflow/v2/document_pb.rb +1 -0
- data/lib/google/cloud/dialogflow/v2/documents/client.rb +28 -30
- data/lib/google/cloud/dialogflow/v2/documents/operations.rb +12 -14
- data/lib/google/cloud/dialogflow/v2/entity_type_pb.rb +1 -0
- data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +24 -26
- data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +12 -14
- data/lib/google/cloud/dialogflow/v2/environments/client.rb +8 -12
- data/lib/google/cloud/dialogflow/v2/intents/client.rb +12 -14
- data/lib/google/cloud/dialogflow/v2/intents/operations.rb +12 -14
- data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +4 -6
- data/lib/google/cloud/dialogflow/v2/participants/client.rb +11 -13
- data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +4 -6
- data/lib/google/cloud/dialogflow/v2/sessions/client.rb +7 -7
- data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/versions/client.rb +4 -6
- data/proto_docs/google/cloud/dialogflow/v2/conversation.rb +3 -0
- data/proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb +6 -0
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b97f96bbedfc61fd459280e9bf17e16bcdc1fba724c6edf86ff3a908378aa796
|
4
|
+
data.tar.gz: 7103e782d83e4013f5dab19e8777bbc5661425f29a814f2e1af086767ed70f02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c26d5a19a9e8f91dae3e100aba96c23cd5ecf2050ff5ae26e146acbcf546a78e52898255229b8083ee8b88e4e142299042a4d82621eb1b73c0d5da50932bfd6
|
7
|
+
data.tar.gz: 268a4b6af44fe879ef140431432e94668613a8504c374e4c7aeeb720fc0c092844a73527f0fa43af10d4c9ee0e8c4f4275c46be5cc6b3ee3fcd97e3f161fc0a5
|
@@ -11,6 +11,7 @@ require 'google/cloud/dialogflow/v2/validation_result_pb'
|
|
11
11
|
require 'google/longrunning/operations_pb'
|
12
12
|
require 'google/protobuf/empty_pb'
|
13
13
|
require 'google/protobuf/field_mask_pb'
|
14
|
+
require 'google/protobuf/struct_pb'
|
14
15
|
|
15
16
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
16
17
|
add_file("google/cloud/dialogflow/v2/agent.proto", :syntax => :proto3) do
|
@@ -492,13 +492,11 @@ module Google
|
|
492
492
|
# # Call the search_agents method.
|
493
493
|
# result = client.search_agents request
|
494
494
|
#
|
495
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
496
|
-
# #
|
497
|
-
#
|
498
|
-
# # methods are also available for managing paging directly.
|
499
|
-
# result.each do |response|
|
495
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
496
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
497
|
+
# result.each do |item|
|
500
498
|
# # Each element is of type ::Google::Cloud::Dialogflow::V2::Agent.
|
501
|
-
# p
|
499
|
+
# p item
|
502
500
|
# end
|
503
501
|
#
|
504
502
|
def search_agents request, options = nil
|
@@ -598,14 +596,14 @@ module Google
|
|
598
596
|
# # Call the train_agent method.
|
599
597
|
# result = client.train_agent request
|
600
598
|
#
|
601
|
-
# # The returned object is of type Gapic::Operation. You can use
|
602
|
-
# #
|
603
|
-
# #
|
599
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
600
|
+
# # check the status of an operation, cancel it, or wait for results.
|
601
|
+
# # Here is how to wait for a response.
|
604
602
|
# result.wait_until_done! timeout: 60
|
605
603
|
# if result.response?
|
606
604
|
# p result.response
|
607
605
|
# else
|
608
|
-
# puts "
|
606
|
+
# puts "No response received."
|
609
607
|
# end
|
610
608
|
#
|
611
609
|
def train_agent request, options = nil
|
@@ -712,14 +710,14 @@ module Google
|
|
712
710
|
# # Call the export_agent method.
|
713
711
|
# result = client.export_agent request
|
714
712
|
#
|
715
|
-
# # The returned object is of type Gapic::Operation. You can use
|
716
|
-
# #
|
717
|
-
# #
|
713
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
714
|
+
# # check the status of an operation, cancel it, or wait for results.
|
715
|
+
# # Here is how to wait for a response.
|
718
716
|
# result.wait_until_done! timeout: 60
|
719
717
|
# if result.response?
|
720
718
|
# p result.response
|
721
719
|
# else
|
722
|
-
# puts "
|
720
|
+
# puts "No response received."
|
723
721
|
# end
|
724
722
|
#
|
725
723
|
def export_agent request, options = nil
|
@@ -843,14 +841,14 @@ module Google
|
|
843
841
|
# # Call the import_agent method.
|
844
842
|
# result = client.import_agent request
|
845
843
|
#
|
846
|
-
# # The returned object is of type Gapic::Operation. You can use
|
847
|
-
# #
|
848
|
-
# #
|
844
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
845
|
+
# # check the status of an operation, cancel it, or wait for results.
|
846
|
+
# # Here is how to wait for a response.
|
849
847
|
# result.wait_until_done! timeout: 60
|
850
848
|
# if result.response?
|
851
849
|
# p result.response
|
852
850
|
# else
|
853
|
-
# puts "
|
851
|
+
# puts "No response received."
|
854
852
|
# end
|
855
853
|
#
|
856
854
|
def import_agent request, options = nil
|
@@ -972,14 +970,14 @@ module Google
|
|
972
970
|
# # Call the restore_agent method.
|
973
971
|
# result = client.restore_agent request
|
974
972
|
#
|
975
|
-
# # The returned object is of type Gapic::Operation. You can use
|
976
|
-
# #
|
977
|
-
# #
|
973
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
974
|
+
# # check the status of an operation, cancel it, or wait for results.
|
975
|
+
# # Here is how to wait for a response.
|
978
976
|
# result.wait_until_done! timeout: 60
|
979
977
|
# if result.response?
|
980
978
|
# p result.response
|
981
979
|
# else
|
982
|
-
# puts "
|
980
|
+
# puts "No response received."
|
983
981
|
# end
|
984
982
|
#
|
985
983
|
def restore_agent request, options = nil
|
@@ -158,13 +158,11 @@ module Google
|
|
158
158
|
# # Call the list_operations method.
|
159
159
|
# result = client.list_operations request
|
160
160
|
#
|
161
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
162
|
-
# #
|
163
|
-
#
|
164
|
-
# # methods are also available for managing paging directly.
|
165
|
-
# result.each do |response|
|
161
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
162
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
163
|
+
# result.each do |item|
|
166
164
|
# # Each element is of type ::Google::Longrunning::Operation.
|
167
|
-
# p
|
165
|
+
# p item
|
168
166
|
# end
|
169
167
|
#
|
170
168
|
def list_operations request, options = nil
|
@@ -253,14 +251,14 @@ module Google
|
|
253
251
|
# # Call the get_operation method.
|
254
252
|
# result = client.get_operation request
|
255
253
|
#
|
256
|
-
# # The returned object is of type Gapic::Operation. You can use
|
257
|
-
# #
|
258
|
-
# #
|
254
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
255
|
+
# # check the status of an operation, cancel it, or wait for results.
|
256
|
+
# # Here is how to wait for a response.
|
259
257
|
# result.wait_until_done! timeout: 60
|
260
258
|
# if result.response?
|
261
259
|
# p result.response
|
262
260
|
# else
|
263
|
-
# puts "
|
261
|
+
# puts "No response received."
|
264
262
|
# end
|
265
263
|
#
|
266
264
|
def get_operation request, options = nil
|
@@ -540,14 +538,14 @@ module Google
|
|
540
538
|
# # Call the wait_operation method.
|
541
539
|
# result = client.wait_operation request
|
542
540
|
#
|
543
|
-
# # The returned object is of type Gapic::Operation. You can use
|
544
|
-
# #
|
545
|
-
# #
|
541
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
542
|
+
# # check the status of an operation, cancel it, or wait for results.
|
543
|
+
# # Here is how to wait for a response.
|
546
544
|
# result.wait_until_done! timeout: 60
|
547
545
|
# if result.response?
|
548
546
|
# p result.response
|
549
547
|
# else
|
550
|
-
# puts "
|
548
|
+
# puts "No response received."
|
551
549
|
# end
|
552
550
|
#
|
553
551
|
def wait_operation request, options = nil
|
@@ -224,13 +224,11 @@ module Google
|
|
224
224
|
# # Call the list_answer_records method.
|
225
225
|
# result = client.list_answer_records 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::V2::AnswerRecord.
|
233
|
-
# p
|
231
|
+
# p item
|
234
232
|
# end
|
235
233
|
#
|
236
234
|
def list_answer_records request, options = nil
|
@@ -214,13 +214,11 @@ module Google
|
|
214
214
|
# # Call the list_contexts method.
|
215
215
|
# result = client.list_contexts 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::V2::Context.
|
223
|
-
# p
|
221
|
+
# p item
|
224
222
|
# end
|
225
223
|
#
|
226
224
|
def list_contexts request, options = nil
|
@@ -9,6 +9,7 @@ require 'google/api/field_behavior_pb'
|
|
9
9
|
require 'google/api/resource_pb'
|
10
10
|
require 'google/cloud/dialogflow/v2/gcs_pb'
|
11
11
|
require 'google/longrunning/operations_pb'
|
12
|
+
require 'google/protobuf/empty_pb'
|
12
13
|
require 'google/protobuf/timestamp_pb'
|
13
14
|
require 'google/rpc/status_pb'
|
14
15
|
|
@@ -232,14 +232,14 @@ module Google
|
|
232
232
|
# # Call the create_conversation_dataset method.
|
233
233
|
# result = client.create_conversation_dataset request
|
234
234
|
#
|
235
|
-
# # The returned object is of type Gapic::Operation. You can use
|
236
|
-
# #
|
237
|
-
# #
|
235
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
236
|
+
# # check the status of an operation, cancel it, or wait for results.
|
237
|
+
# # Here is how to wait for a response.
|
238
238
|
# result.wait_until_done! timeout: 60
|
239
239
|
# if result.response?
|
240
240
|
# p result.response
|
241
241
|
# else
|
242
|
-
# puts "
|
242
|
+
# puts "No response received."
|
243
243
|
# end
|
244
244
|
#
|
245
245
|
def create_conversation_dataset request, options = nil
|
@@ -419,13 +419,11 @@ module Google
|
|
419
419
|
# # Call the list_conversation_datasets method.
|
420
420
|
# result = client.list_conversation_datasets request
|
421
421
|
#
|
422
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
423
|
-
# #
|
424
|
-
#
|
425
|
-
# # methods are also available for managing paging directly.
|
426
|
-
# result.each do |response|
|
422
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
423
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
424
|
+
# result.each do |item|
|
427
425
|
# # Each element is of type ::Google::Cloud::Dialogflow::V2::ConversationDataset.
|
428
|
-
# p
|
426
|
+
# p item
|
429
427
|
# end
|
430
428
|
#
|
431
429
|
def list_conversation_datasets request, options = nil
|
@@ -522,14 +520,14 @@ module Google
|
|
522
520
|
# # Call the delete_conversation_dataset method.
|
523
521
|
# result = client.delete_conversation_dataset request
|
524
522
|
#
|
525
|
-
# # The returned object is of type Gapic::Operation. You can use
|
526
|
-
# #
|
527
|
-
# #
|
523
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
524
|
+
# # check the status of an operation, cancel it, or wait for results.
|
525
|
+
# # Here is how to wait for a response.
|
528
526
|
# result.wait_until_done! timeout: 60
|
529
527
|
# if result.response?
|
530
528
|
# p result.response
|
531
529
|
# else
|
532
|
-
# puts "
|
530
|
+
# puts "No response received."
|
533
531
|
# end
|
534
532
|
#
|
535
533
|
def delete_conversation_dataset request, options = nil
|
@@ -630,14 +628,14 @@ module Google
|
|
630
628
|
# # Call the import_conversation_data method.
|
631
629
|
# result = client.import_conversation_data request
|
632
630
|
#
|
633
|
-
# # The returned object is of type Gapic::Operation. You can use
|
634
|
-
# #
|
635
|
-
# #
|
631
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
632
|
+
# # check the status of an operation, cancel it, or wait for results.
|
633
|
+
# # Here is how to wait for a response.
|
636
634
|
# result.wait_until_done! timeout: 60
|
637
635
|
# if result.response?
|
638
636
|
# p result.response
|
639
637
|
# else
|
640
|
-
# puts "
|
638
|
+
# puts "No response received."
|
641
639
|
# end
|
642
640
|
#
|
643
641
|
def import_conversation_data request, options = nil
|
@@ -158,13 +158,11 @@ module Google
|
|
158
158
|
# # Call the list_operations method.
|
159
159
|
# result = client.list_operations request
|
160
160
|
#
|
161
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
162
|
-
# #
|
163
|
-
#
|
164
|
-
# # methods are also available for managing paging directly.
|
165
|
-
# result.each do |response|
|
161
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
162
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
163
|
+
# result.each do |item|
|
166
164
|
# # Each element is of type ::Google::Longrunning::Operation.
|
167
|
-
# p
|
165
|
+
# p item
|
168
166
|
# end
|
169
167
|
#
|
170
168
|
def list_operations request, options = nil
|
@@ -253,14 +251,14 @@ module Google
|
|
253
251
|
# # Call the get_operation method.
|
254
252
|
# result = client.get_operation request
|
255
253
|
#
|
256
|
-
# # The returned object is of type Gapic::Operation. You can use
|
257
|
-
# #
|
258
|
-
# #
|
254
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
255
|
+
# # check the status of an operation, cancel it, or wait for results.
|
256
|
+
# # Here is how to wait for a response.
|
259
257
|
# result.wait_until_done! timeout: 60
|
260
258
|
# if result.response?
|
261
259
|
# p result.response
|
262
260
|
# else
|
263
|
-
# puts "
|
261
|
+
# puts "No response received."
|
264
262
|
# end
|
265
263
|
#
|
266
264
|
def get_operation request, options = nil
|
@@ -540,14 +538,14 @@ module Google
|
|
540
538
|
# # Call the wait_operation method.
|
541
539
|
# result = client.wait_operation request
|
542
540
|
#
|
543
|
-
# # The returned object is of type Gapic::Operation. You can use
|
544
|
-
# #
|
545
|
-
# #
|
541
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
542
|
+
# # check the status of an operation, cancel it, or wait for results.
|
543
|
+
# # Here is how to wait for a response.
|
546
544
|
# result.wait_until_done! timeout: 60
|
547
545
|
# if result.response?
|
548
546
|
# p result.response
|
549
547
|
# else
|
550
|
-
# puts "
|
548
|
+
# puts "No response received."
|
551
549
|
# end
|
552
550
|
#
|
553
551
|
def wait_operation request, options = nil
|
@@ -8,6 +8,7 @@ require 'google/api/client_pb'
|
|
8
8
|
require 'google/api/field_behavior_pb'
|
9
9
|
require 'google/api/resource_pb'
|
10
10
|
require 'google/longrunning/operations_pb'
|
11
|
+
require 'google/protobuf/empty_pb'
|
11
12
|
require 'google/protobuf/timestamp_pb'
|
12
13
|
|
13
14
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
@@ -229,14 +229,14 @@ module Google
|
|
229
229
|
# # Call the create_conversation_model method.
|
230
230
|
# result = client.create_conversation_model request
|
231
231
|
#
|
232
|
-
# # The returned object is of type Gapic::Operation. You can use
|
233
|
-
# #
|
234
|
-
# #
|
232
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
233
|
+
# # check the status of an operation, cancel it, or wait for results.
|
234
|
+
# # Here is how to wait for a response.
|
235
235
|
# result.wait_until_done! timeout: 60
|
236
236
|
# if result.response?
|
237
237
|
# p result.response
|
238
238
|
# else
|
239
|
-
# puts "
|
239
|
+
# puts "No response received."
|
240
240
|
# end
|
241
241
|
#
|
242
242
|
def create_conversation_model request, options = nil
|
@@ -414,13 +414,11 @@ module Google
|
|
414
414
|
# # Call the list_conversation_models method.
|
415
415
|
# result = client.list_conversation_models request
|
416
416
|
#
|
417
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
418
|
-
# #
|
419
|
-
#
|
420
|
-
# # methods are also available for managing paging directly.
|
421
|
-
# result.each do |response|
|
417
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
418
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
419
|
+
# result.each do |item|
|
422
420
|
# # Each element is of type ::Google::Cloud::Dialogflow::V2::ConversationModel.
|
423
|
-
# p
|
421
|
+
# p item
|
424
422
|
# end
|
425
423
|
#
|
426
424
|
def list_conversation_models request, options = nil
|
@@ -516,14 +514,14 @@ module Google
|
|
516
514
|
# # Call the delete_conversation_model method.
|
517
515
|
# result = client.delete_conversation_model request
|
518
516
|
#
|
519
|
-
# # The returned object is of type Gapic::Operation. You can use
|
520
|
-
# #
|
521
|
-
# #
|
517
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
518
|
+
# # check the status of an operation, cancel it, or wait for results.
|
519
|
+
# # Here is how to wait for a response.
|
522
520
|
# result.wait_until_done! timeout: 60
|
523
521
|
# if result.response?
|
524
522
|
# p result.response
|
525
523
|
# else
|
526
|
-
# puts "
|
524
|
+
# puts "No response received."
|
527
525
|
# end
|
528
526
|
#
|
529
527
|
def delete_conversation_model request, options = nil
|
@@ -622,14 +620,14 @@ module Google
|
|
622
620
|
# # Call the deploy_conversation_model method.
|
623
621
|
# result = client.deploy_conversation_model request
|
624
622
|
#
|
625
|
-
# # The returned object is of type Gapic::Operation. You can use
|
626
|
-
# #
|
627
|
-
# #
|
623
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
624
|
+
# # check the status of an operation, cancel it, or wait for results.
|
625
|
+
# # Here is how to wait for a response.
|
628
626
|
# result.wait_until_done! timeout: 60
|
629
627
|
# if result.response?
|
630
628
|
# p result.response
|
631
629
|
# else
|
632
|
-
# puts "
|
630
|
+
# puts "No response received."
|
633
631
|
# end
|
634
632
|
#
|
635
633
|
def deploy_conversation_model request, options = nil
|
@@ -728,14 +726,14 @@ module Google
|
|
728
726
|
# # Call the undeploy_conversation_model method.
|
729
727
|
# result = client.undeploy_conversation_model request
|
730
728
|
#
|
731
|
-
# # The returned object is of type Gapic::Operation. You can use
|
732
|
-
# #
|
733
|
-
# #
|
729
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
730
|
+
# # check the status of an operation, cancel it, or wait for results.
|
731
|
+
# # Here is how to wait for a response.
|
734
732
|
# result.wait_until_done! timeout: 60
|
735
733
|
# if result.response?
|
736
734
|
# p result.response
|
737
735
|
# else
|
738
|
-
# puts "
|
736
|
+
# puts "No response received."
|
739
737
|
# end
|
740
738
|
#
|
741
739
|
def undeploy_conversation_model request, options = nil
|
@@ -914,13 +912,11 @@ module Google
|
|
914
912
|
# # Call the list_conversation_model_evaluations method.
|
915
913
|
# result = client.list_conversation_model_evaluations request
|
916
914
|
#
|
917
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
918
|
-
# #
|
919
|
-
#
|
920
|
-
# # methods are also available for managing paging directly.
|
921
|
-
# result.each do |response|
|
915
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
916
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
917
|
+
# result.each do |item|
|
922
918
|
# # Each element is of type ::Google::Cloud::Dialogflow::V2::ConversationModelEvaluation.
|
923
|
-
# p
|
919
|
+
# p item
|
924
920
|
# end
|
925
921
|
#
|
926
922
|
def list_conversation_model_evaluations request, options = nil
|
@@ -1010,14 +1006,14 @@ module Google
|
|
1010
1006
|
# # Call the create_conversation_model_evaluation method.
|
1011
1007
|
# result = client.create_conversation_model_evaluation request
|
1012
1008
|
#
|
1013
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1014
|
-
# #
|
1015
|
-
# #
|
1009
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1010
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1011
|
+
# # Here is how to wait for a response.
|
1016
1012
|
# result.wait_until_done! timeout: 60
|
1017
1013
|
# if result.response?
|
1018
1014
|
# p result.response
|
1019
1015
|
# else
|
1020
|
-
# puts "
|
1016
|
+
# puts "No response received."
|
1021
1017
|
# end
|
1022
1018
|
#
|
1023
1019
|
def create_conversation_model_evaluation request, options = nil
|
@@ -158,13 +158,11 @@ module Google
|
|
158
158
|
# # Call the list_operations method.
|
159
159
|
# result = client.list_operations request
|
160
160
|
#
|
161
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
162
|
-
# #
|
163
|
-
#
|
164
|
-
# # methods are also available for managing paging directly.
|
165
|
-
# result.each do |response|
|
161
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
162
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
163
|
+
# result.each do |item|
|
166
164
|
# # Each element is of type ::Google::Longrunning::Operation.
|
167
|
-
# p
|
165
|
+
# p item
|
168
166
|
# end
|
169
167
|
#
|
170
168
|
def list_operations request, options = nil
|
@@ -253,14 +251,14 @@ module Google
|
|
253
251
|
# # Call the get_operation method.
|
254
252
|
# result = client.get_operation request
|
255
253
|
#
|
256
|
-
# # The returned object is of type Gapic::Operation. You can use
|
257
|
-
# #
|
258
|
-
# #
|
254
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
255
|
+
# # check the status of an operation, cancel it, or wait for results.
|
256
|
+
# # Here is how to wait for a response.
|
259
257
|
# result.wait_until_done! timeout: 60
|
260
258
|
# if result.response?
|
261
259
|
# p result.response
|
262
260
|
# else
|
263
|
-
# puts "
|
261
|
+
# puts "No response received."
|
264
262
|
# end
|
265
263
|
#
|
266
264
|
def get_operation request, options = nil
|
@@ -540,14 +538,14 @@ module Google
|
|
540
538
|
# # Call the wait_operation method.
|
541
539
|
# result = client.wait_operation request
|
542
540
|
#
|
543
|
-
# # The returned object is of type Gapic::Operation. You can use
|
544
|
-
# #
|
545
|
-
# #
|
541
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
542
|
+
# # check the status of an operation, cancel it, or wait for results.
|
543
|
+
# # Here is how to wait for a response.
|
546
544
|
# result.wait_until_done! timeout: 60
|
547
545
|
# if result.response?
|
548
546
|
# p result.response
|
549
547
|
# else
|
550
|
-
# puts "
|
548
|
+
# puts "No response received."
|
551
549
|
# end
|
552
550
|
#
|
553
551
|
def wait_operation request, options = nil
|
@@ -69,6 +69,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
69
69
|
optional :conversation, :string, 1
|
70
70
|
optional :latest_message, :string, 3
|
71
71
|
optional :context_size, :int32, 4
|
72
|
+
optional :assist_query_params, :message, 5, "google.cloud.dialogflow.v2.AssistQueryParameters"
|
72
73
|
end
|
73
74
|
add_message "google.cloud.dialogflow.v2.SuggestConversationSummaryResponse" do
|
74
75
|
optional :summary, :message, 1, "google.cloud.dialogflow.v2.SuggestConversationSummaryResponse.Summary"
|
@@ -31,6 +31,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
31
31
|
optional :language_code, :string, 10
|
32
32
|
optional :time_zone, :string, 14
|
33
33
|
optional :security_settings, :string, 13
|
34
|
+
optional :tts_config, :message, 18, "google.cloud.dialogflow.v2.SynthesizeSpeechConfig"
|
34
35
|
end
|
35
36
|
add_message "google.cloud.dialogflow.v2.ListConversationProfilesRequest" do
|
36
37
|
optional :parent, :string, 1
|
@@ -224,13 +224,11 @@ module Google
|
|
224
224
|
# # Call the list_conversation_profiles method.
|
225
225
|
# result = client.list_conversation_profiles 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::V2::ConversationProfile.
|
233
|
-
# p
|
231
|
+
# p item
|
234
232
|
# end
|
235
233
|
#
|
236
234
|
def list_conversation_profiles request, options = nil
|
@@ -699,14 +697,14 @@ module Google
|
|
699
697
|
# # Call the set_suggestion_feature_config method.
|
700
698
|
# result = client.set_suggestion_feature_config request
|
701
699
|
#
|
702
|
-
# # The returned object is of type Gapic::Operation. You can use
|
703
|
-
# #
|
704
|
-
# #
|
700
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
701
|
+
# # check the status of an operation, cancel it, or wait for results.
|
702
|
+
# # Here is how to wait for a response.
|
705
703
|
# result.wait_until_done! timeout: 60
|
706
704
|
# if result.response?
|
707
705
|
# p result.response
|
708
706
|
# else
|
709
|
-
# puts "
|
707
|
+
# puts "No response received."
|
710
708
|
# end
|
711
709
|
#
|
712
710
|
def set_suggestion_feature_config request, options = nil
|
@@ -809,14 +807,14 @@ module Google
|
|
809
807
|
# # Call the clear_suggestion_feature_config method.
|
810
808
|
# result = client.clear_suggestion_feature_config request
|
811
809
|
#
|
812
|
-
# # The returned object is of type Gapic::Operation. You can use
|
813
|
-
# #
|
814
|
-
# #
|
810
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
811
|
+
# # check the status of an operation, cancel it, or wait for results.
|
812
|
+
# # Here is how to wait for a response.
|
815
813
|
# result.wait_until_done! timeout: 60
|
816
814
|
# if result.response?
|
817
815
|
# p result.response
|
818
816
|
# else
|
819
|
-
# puts "
|
817
|
+
# puts "No response received."
|
820
818
|
# end
|
821
819
|
#
|
822
820
|
def clear_suggestion_feature_config request, options = nil
|