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
@@ -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
|
@@ -348,13 +348,11 @@ module Google
|
|
348
348
|
# # Call the list_conversations method.
|
349
349
|
# result = client.list_conversations request
|
350
350
|
#
|
351
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
352
|
-
# #
|
353
|
-
#
|
354
|
-
# # methods are also available for managing paging directly.
|
355
|
-
# result.each do |response|
|
351
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
352
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
353
|
+
# result.each do |item|
|
356
354
|
# # Each element is of type ::Google::Cloud::Dialogflow::V2::Conversation.
|
357
|
-
# p
|
355
|
+
# p item
|
358
356
|
# end
|
359
357
|
#
|
360
358
|
def list_conversations request, options = nil
|
@@ -635,13 +633,11 @@ module Google
|
|
635
633
|
# # Call the list_messages method.
|
636
634
|
# result = client.list_messages request
|
637
635
|
#
|
638
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
639
|
-
# #
|
640
|
-
#
|
641
|
-
# # methods are also available for managing paging directly.
|
642
|
-
# result.each do |response|
|
636
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
637
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
638
|
+
# result.each do |item|
|
643
639
|
# # Each element is of type ::Google::Cloud::Dialogflow::V2::Message.
|
644
|
-
# p
|
640
|
+
# p item
|
645
641
|
# end
|
646
642
|
#
|
647
643
|
def list_messages request, options = nil
|
@@ -701,7 +697,7 @@ module Google
|
|
701
697
|
# @param options [::Gapic::CallOptions, ::Hash]
|
702
698
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
703
699
|
#
|
704
|
-
# @overload suggest_conversation_summary(conversation: nil, latest_message: nil, context_size: nil)
|
700
|
+
# @overload suggest_conversation_summary(conversation: nil, latest_message: nil, context_size: nil, assist_query_params: nil)
|
705
701
|
# Pass arguments to `suggest_conversation_summary` via keyword arguments. Note that at
|
706
702
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
707
703
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -721,6 +717,8 @@ module Google
|
|
721
717
|
# Max number of messages prior to and including
|
722
718
|
# [latest_message] to use as context when compiling the
|
723
719
|
# suggestion. By default 500 and at most 1000.
|
720
|
+
# @param assist_query_params [::Google::Cloud::Dialogflow::V2::AssistQueryParameters, ::Hash]
|
721
|
+
# Parameters for a human assist query.
|
724
722
|
#
|
725
723
|
# @yield [response, operation] Access the result along with the RPC operation
|
726
724
|
# @yieldparam response [::Google::Cloud::Dialogflow::V2::SuggestConversationSummaryResponse]
|
@@ -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/field_mask_pb'
|
13
14
|
require 'google/protobuf/timestamp_pb'
|
14
15
|
require 'google/rpc/status_pb'
|
@@ -247,13 +247,11 @@ module Google
|
|
247
247
|
# # Call the list_documents method.
|
248
248
|
# result = client.list_documents request
|
249
249
|
#
|
250
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
251
|
-
# #
|
252
|
-
#
|
253
|
-
# # methods are also available for managing paging directly.
|
254
|
-
# result.each do |response|
|
250
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
251
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
252
|
+
# result.each do |item|
|
255
253
|
# # Each element is of type ::Google::Cloud::Dialogflow::V2::Document.
|
256
|
-
# p
|
254
|
+
# p item
|
257
255
|
# end
|
258
256
|
#
|
259
257
|
def list_documents request, options = nil
|
@@ -438,14 +436,14 @@ module Google
|
|
438
436
|
# # Call the create_document method.
|
439
437
|
# result = client.create_document request
|
440
438
|
#
|
441
|
-
# # The returned object is of type Gapic::Operation. You can use
|
442
|
-
# #
|
443
|
-
# #
|
439
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
440
|
+
# # check the status of an operation, cancel it, or wait for results.
|
441
|
+
# # Here is how to wait for a response.
|
444
442
|
# result.wait_until_done! timeout: 60
|
445
443
|
# if result.response?
|
446
444
|
# p result.response
|
447
445
|
# else
|
448
|
-
# puts "
|
446
|
+
# puts "No response received."
|
449
447
|
# end
|
450
448
|
#
|
451
449
|
def create_document request, options = nil
|
@@ -556,14 +554,14 @@ module Google
|
|
556
554
|
# # Call the import_documents method.
|
557
555
|
# result = client.import_documents request
|
558
556
|
#
|
559
|
-
# # The returned object is of type Gapic::Operation. You can use
|
560
|
-
# #
|
561
|
-
# #
|
557
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
558
|
+
# # check the status of an operation, cancel it, or wait for results.
|
559
|
+
# # Here is how to wait for a response.
|
562
560
|
# result.wait_until_done! timeout: 60
|
563
561
|
# if result.response?
|
564
562
|
# p result.response
|
565
563
|
# else
|
566
|
-
# puts "
|
564
|
+
# puts "No response received."
|
567
565
|
# end
|
568
566
|
#
|
569
567
|
def import_documents request, options = nil
|
@@ -660,14 +658,14 @@ module Google
|
|
660
658
|
# # Call the delete_document method.
|
661
659
|
# result = client.delete_document request
|
662
660
|
#
|
663
|
-
# # The returned object is of type Gapic::Operation. You can use
|
664
|
-
# #
|
665
|
-
# #
|
661
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
662
|
+
# # check the status of an operation, cancel it, or wait for results.
|
663
|
+
# # Here is how to wait for a response.
|
666
664
|
# result.wait_until_done! timeout: 60
|
667
665
|
# if result.response?
|
668
666
|
# p result.response
|
669
667
|
# else
|
670
|
-
# puts "
|
668
|
+
# puts "No response received."
|
671
669
|
# end
|
672
670
|
#
|
673
671
|
def delete_document request, options = nil
|
@@ -765,14 +763,14 @@ module Google
|
|
765
763
|
# # Call the update_document method.
|
766
764
|
# result = client.update_document request
|
767
765
|
#
|
768
|
-
# # The returned object is of type Gapic::Operation. You can use
|
769
|
-
# #
|
770
|
-
# #
|
766
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
767
|
+
# # check the status of an operation, cancel it, or wait for results.
|
768
|
+
# # Here is how to wait for a response.
|
771
769
|
# result.wait_until_done! timeout: 60
|
772
770
|
# if result.response?
|
773
771
|
# p result.response
|
774
772
|
# else
|
775
|
-
# puts "
|
773
|
+
# puts "No response received."
|
776
774
|
# end
|
777
775
|
#
|
778
776
|
def update_document request, options = nil
|
@@ -886,14 +884,14 @@ module Google
|
|
886
884
|
# # Call the reload_document method.
|
887
885
|
# result = client.reload_document request
|
888
886
|
#
|
889
|
-
# # The returned object is of type Gapic::Operation. You can use
|
890
|
-
# #
|
891
|
-
# #
|
887
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
888
|
+
# # check the status of an operation, cancel it, or wait for results.
|
889
|
+
# # Here is how to wait for a response.
|
892
890
|
# result.wait_until_done! timeout: 60
|
893
891
|
# if result.response?
|
894
892
|
# p result.response
|
895
893
|
# else
|
896
|
-
# puts "
|
894
|
+
# puts "No response received."
|
897
895
|
# end
|
898
896
|
#
|
899
897
|
def reload_document request, options = nil
|
@@ -998,14 +996,14 @@ module Google
|
|
998
996
|
# # Call the export_document method.
|
999
997
|
# result = client.export_document request
|
1000
998
|
#
|
1001
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1002
|
-
# #
|
1003
|
-
# #
|
999
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1000
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1001
|
+
# # Here is how to wait for a response.
|
1004
1002
|
# result.wait_until_done! timeout: 60
|
1005
1003
|
# if result.response?
|
1006
1004
|
# p result.response
|
1007
1005
|
# else
|
1008
|
-
# puts "
|
1006
|
+
# puts "No response received."
|
1009
1007
|
# end
|
1010
1008
|
#
|
1011
1009
|
def export_document 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
|
@@ -10,6 +10,7 @@ require 'google/api/resource_pb'
|
|
10
10
|
require 'google/longrunning/operations_pb'
|
11
11
|
require 'google/protobuf/empty_pb'
|
12
12
|
require 'google/protobuf/field_mask_pb'
|
13
|
+
require 'google/protobuf/struct_pb'
|
13
14
|
|
14
15
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
15
16
|
add_file("google/cloud/dialogflow/v2/entity_type.proto", :syntax => :proto3) do
|
@@ -229,13 +229,11 @@ module Google
|
|
229
229
|
# # Call the list_entity_types method.
|
230
230
|
# result = client.list_entity_types request
|
231
231
|
#
|
232
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
233
|
-
# #
|
234
|
-
#
|
235
|
-
# # methods are also available for managing paging directly.
|
236
|
-
# result.each do |response|
|
232
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
233
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
234
|
+
# result.each do |item|
|
237
235
|
# # Each element is of type ::Google::Cloud::Dialogflow::V2::EntityType.
|
238
|
-
# p
|
236
|
+
# p item
|
239
237
|
# end
|
240
238
|
#
|
241
239
|
def list_entity_types request, options = nil
|
@@ -727,14 +725,14 @@ module Google
|
|
727
725
|
# # Call the batch_update_entity_types method.
|
728
726
|
# result = client.batch_update_entity_types request
|
729
727
|
#
|
730
|
-
# # The returned object is of type Gapic::Operation. You can use
|
731
|
-
# #
|
732
|
-
# #
|
728
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
729
|
+
# # check the status of an operation, cancel it, or wait for results.
|
730
|
+
# # Here is how to wait for a response.
|
733
731
|
# result.wait_until_done! timeout: 60
|
734
732
|
# if result.response?
|
735
733
|
# p result.response
|
736
734
|
# else
|
737
|
-
# puts "
|
735
|
+
# puts "No response received."
|
738
736
|
# end
|
739
737
|
#
|
740
738
|
def batch_update_entity_types request, options = nil
|
@@ -837,14 +835,14 @@ module Google
|
|
837
835
|
# # Call the batch_delete_entity_types method.
|
838
836
|
# result = client.batch_delete_entity_types request
|
839
837
|
#
|
840
|
-
# # The returned object is of type Gapic::Operation. You can use
|
841
|
-
# #
|
842
|
-
# #
|
838
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
839
|
+
# # check the status of an operation, cancel it, or wait for results.
|
840
|
+
# # Here is how to wait for a response.
|
843
841
|
# result.wait_until_done! timeout: 60
|
844
842
|
# if result.response?
|
845
843
|
# p result.response
|
846
844
|
# else
|
847
|
-
# puts "
|
845
|
+
# puts "No response received."
|
848
846
|
# end
|
849
847
|
#
|
850
848
|
def batch_delete_entity_types request, options = nil
|
@@ -952,14 +950,14 @@ module Google
|
|
952
950
|
# # Call the batch_create_entities method.
|
953
951
|
# result = client.batch_create_entities request
|
954
952
|
#
|
955
|
-
# # The returned object is of type Gapic::Operation. You can use
|
956
|
-
# #
|
957
|
-
# #
|
953
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
954
|
+
# # check the status of an operation, cancel it, or wait for results.
|
955
|
+
# # Here is how to wait for a response.
|
958
956
|
# result.wait_until_done! timeout: 60
|
959
957
|
# if result.response?
|
960
958
|
# p result.response
|
961
959
|
# else
|
962
|
-
# puts "
|
960
|
+
# puts "No response received."
|
963
961
|
# end
|
964
962
|
#
|
965
963
|
def batch_create_entities request, options = nil
|
@@ -1071,14 +1069,14 @@ module Google
|
|
1071
1069
|
# # Call the batch_update_entities method.
|
1072
1070
|
# result = client.batch_update_entities request
|
1073
1071
|
#
|
1074
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1075
|
-
# #
|
1076
|
-
# #
|
1072
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1073
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1074
|
+
# # Here is how to wait for a response.
|
1077
1075
|
# result.wait_until_done! timeout: 60
|
1078
1076
|
# if result.response?
|
1079
1077
|
# p result.response
|
1080
1078
|
# else
|
1081
|
-
# puts "
|
1079
|
+
# puts "No response received."
|
1082
1080
|
# end
|
1083
1081
|
#
|
1084
1082
|
def batch_update_entities request, options = nil
|
@@ -1188,14 +1186,14 @@ module Google
|
|
1188
1186
|
# # Call the batch_delete_entities method.
|
1189
1187
|
# result = client.batch_delete_entities request
|
1190
1188
|
#
|
1191
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1192
|
-
# #
|
1193
|
-
# #
|
1189
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1190
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1191
|
+
# # Here is how to wait for a response.
|
1194
1192
|
# result.wait_until_done! timeout: 60
|
1195
1193
|
# if result.response?
|
1196
1194
|
# p result.response
|
1197
1195
|
# else
|
1198
|
-
# puts "
|
1196
|
+
# puts "No response received."
|
1199
1197
|
# end
|
1200
1198
|
#
|
1201
1199
|
def batch_delete_entities 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
|
@@ -213,13 +213,11 @@ module Google
|
|
213
213
|
# # Call the list_environments method.
|
214
214
|
# result = client.list_environments request
|
215
215
|
#
|
216
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
217
|
-
# #
|
218
|
-
#
|
219
|
-
# # methods are also available for managing paging directly.
|
220
|
-
# result.each do |response|
|
216
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
217
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
218
|
+
# result.each do |item|
|
221
219
|
# # Each element is of type ::Google::Cloud::Dialogflow::V2::Environment.
|
222
|
-
# p
|
220
|
+
# p item
|
223
221
|
# end
|
224
222
|
#
|
225
223
|
def list_environments request, options = nil
|
@@ -697,13 +695,11 @@ module Google
|
|
697
695
|
# # Call the get_environment_history method.
|
698
696
|
# result = client.get_environment_history request
|
699
697
|
#
|
700
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
701
|
-
# #
|
702
|
-
#
|
703
|
-
# # methods are also available for managing paging directly.
|
704
|
-
# result.each do |response|
|
698
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
699
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
700
|
+
# result.each do |item|
|
705
701
|
# # Each element is of type ::Google::Cloud::Dialogflow::V2::EnvironmentHistory::Entry.
|
706
|
-
# p
|
702
|
+
# p item
|
707
703
|
# end
|
708
704
|
#
|
709
705
|
def get_environment_history request, options = nil
|
@@ -239,13 +239,11 @@ module Google
|
|
239
239
|
# # Call the list_intents method.
|
240
240
|
# result = client.list_intents request
|
241
241
|
#
|
242
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
243
|
-
# #
|
244
|
-
#
|
245
|
-
# # methods are also available for managing paging directly.
|
246
|
-
# result.each do |response|
|
242
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
243
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
244
|
+
# result.each do |item|
|
247
245
|
# # Each element is of type ::Google::Cloud::Dialogflow::V2::Intent.
|
248
|
-
# p
|
246
|
+
# p item
|
249
247
|
# end
|
250
248
|
#
|
251
249
|
def list_intents request, options = nil
|
@@ -745,14 +743,14 @@ module Google
|
|
745
743
|
# # Call the batch_update_intents method.
|
746
744
|
# result = client.batch_update_intents request
|
747
745
|
#
|
748
|
-
# # The returned object is of type Gapic::Operation. You can use
|
749
|
-
# #
|
750
|
-
# #
|
746
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
747
|
+
# # check the status of an operation, cancel it, or wait for results.
|
748
|
+
# # Here is how to wait for a response.
|
751
749
|
# result.wait_until_done! timeout: 60
|
752
750
|
# if result.response?
|
753
751
|
# p result.response
|
754
752
|
# else
|
755
|
-
# puts "
|
753
|
+
# puts "No response received."
|
756
754
|
# end
|
757
755
|
#
|
758
756
|
def batch_update_intents request, options = nil
|
@@ -855,14 +853,14 @@ module Google
|
|
855
853
|
# # Call the batch_delete_intents method.
|
856
854
|
# result = client.batch_delete_intents request
|
857
855
|
#
|
858
|
-
# # The returned object is of type Gapic::Operation. You can use
|
859
|
-
# #
|
860
|
-
# #
|
856
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
857
|
+
# # check the status of an operation, cancel it, or wait for results.
|
858
|
+
# # Here is how to wait for a response.
|
861
859
|
# result.wait_until_done! timeout: 60
|
862
860
|
# if result.response?
|
863
861
|
# p result.response
|
864
862
|
# else
|
865
|
-
# puts "
|
863
|
+
# puts "No response received."
|
866
864
|
# end
|
867
865
|
#
|
868
866
|
def batch_delete_intents 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
|