google-cloud-dialogflow-v2 0.28.0 → 0.29.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/dialogflow/v2/agents/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/agents/operations.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/agents/rest/client.rb +176 -0
- data/lib/google/cloud/dialogflow/v2/agents/rest/operations.rb +75 -0
- data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/answer_records/rest/client.rb +36 -0
- data/lib/google/cloud/dialogflow/v2/contexts/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/contexts/rest/client.rb +100 -0
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/operations.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/client.rb +105 -0
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/operations.rb +75 -0
- data/lib/google/cloud/dialogflow/v2/conversation_models/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/conversation_models/operations.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/conversation_models/rest/client.rb +187 -0
- data/lib/google/cloud/dialogflow/v2/conversation_models/rest/operations.rb +75 -0
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/operations.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/client.rb +130 -0
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/operations.rb +75 -0
- data/lib/google/cloud/dialogflow/v2/conversations/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/conversations/rest/client.rb +136 -0
- data/lib/google/cloud/dialogflow/v2/documents/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/documents/operations.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/documents/rest/client.rb +174 -0
- data/lib/google/cloud/dialogflow/v2/documents/rest/operations.rb +75 -0
- data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/entity_types/rest/client.rb +199 -0
- data/lib/google/cloud/dialogflow/v2/entity_types/rest/operations.rb +75 -0
- data/lib/google/cloud/dialogflow/v2/environments/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/environments/rest/client.rb +104 -0
- data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/fulfillments/rest/client.rb +32 -0
- data/lib/google/cloud/dialogflow/v2/intents/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/intents/operations.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/intents/rest/client.rb +130 -0
- data/lib/google/cloud/dialogflow/v2/intents/rest/operations.rb +75 -0
- data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/knowledge_bases/rest/client.rb +84 -0
- data/lib/google/cloud/dialogflow/v2/participants/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/participants/rest/client.rb +132 -0
- data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/session_entity_types/rest/client.rb +84 -0
- data/lib/google/cloud/dialogflow/v2/sessions/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/sessions/rest/client.rb +16 -0
- data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/versions/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/versions/rest/client.rb +84 -0
- metadata +4 -4
@@ -157,7 +157,8 @@ module Google
|
|
157
157
|
credentials: credentials,
|
158
158
|
endpoint: @config.endpoint,
|
159
159
|
channel_args: @config.channel_args,
|
160
|
-
interceptors: @config.interceptors
|
160
|
+
interceptors: @config.interceptors,
|
161
|
+
channel_pool_config: @config.channel_pool
|
161
162
|
)
|
162
163
|
end
|
163
164
|
|
@@ -978,6 +979,14 @@ module Google
|
|
978
979
|
end
|
979
980
|
end
|
980
981
|
|
982
|
+
##
|
983
|
+
# Configuration for the channel pool
|
984
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
985
|
+
#
|
986
|
+
def channel_pool
|
987
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
988
|
+
end
|
989
|
+
|
981
990
|
##
|
982
991
|
# Configuration RPC class for the ConversationProfiles API.
|
983
992
|
#
|
@@ -93,7 +93,8 @@ module Google
|
|
93
93
|
credentials: credentials,
|
94
94
|
endpoint: @config.endpoint,
|
95
95
|
channel_args: @config.channel_args,
|
96
|
-
interceptors: @config.interceptors
|
96
|
+
interceptors: @config.interceptors,
|
97
|
+
channel_pool_config: @config.channel_pool
|
97
98
|
)
|
98
99
|
|
99
100
|
# Used by an LRO wrapper for some methods of this service
|
@@ -701,6 +702,14 @@ module Google
|
|
701
702
|
end
|
702
703
|
end
|
703
704
|
|
705
|
+
##
|
706
|
+
# Configuration for the channel pool
|
707
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
708
|
+
#
|
709
|
+
def channel_pool
|
710
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
711
|
+
end
|
712
|
+
|
704
713
|
##
|
705
714
|
# Configuration RPC class for the Operations API.
|
706
715
|
#
|
@@ -202,6 +202,26 @@ module Google
|
|
202
202
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::V2::ConversationProfile>]
|
203
203
|
#
|
204
204
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
205
|
+
#
|
206
|
+
# @example Basic example
|
207
|
+
# require "google/cloud/dialogflow/v2"
|
208
|
+
#
|
209
|
+
# # Create a client object. The client can be reused for multiple calls.
|
210
|
+
# client = Google::Cloud::Dialogflow::V2::ConversationProfiles::Rest::Client.new
|
211
|
+
#
|
212
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
213
|
+
# request = Google::Cloud::Dialogflow::V2::ListConversationProfilesRequest.new
|
214
|
+
#
|
215
|
+
# # Call the list_conversation_profiles method.
|
216
|
+
# result = client.list_conversation_profiles request
|
217
|
+
#
|
218
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
219
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
220
|
+
# result.each do |item|
|
221
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::V2::ConversationProfile.
|
222
|
+
# p item
|
223
|
+
# end
|
224
|
+
#
|
205
225
|
def list_conversation_profiles request, options = nil
|
206
226
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
207
227
|
|
@@ -267,6 +287,22 @@ module Google
|
|
267
287
|
# @return [::Google::Cloud::Dialogflow::V2::ConversationProfile]
|
268
288
|
#
|
269
289
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
290
|
+
#
|
291
|
+
# @example Basic example
|
292
|
+
# require "google/cloud/dialogflow/v2"
|
293
|
+
#
|
294
|
+
# # Create a client object. The client can be reused for multiple calls.
|
295
|
+
# client = Google::Cloud::Dialogflow::V2::ConversationProfiles::Rest::Client.new
|
296
|
+
#
|
297
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
298
|
+
# request = Google::Cloud::Dialogflow::V2::GetConversationProfileRequest.new
|
299
|
+
#
|
300
|
+
# # Call the get_conversation_profile method.
|
301
|
+
# result = client.get_conversation_profile request
|
302
|
+
#
|
303
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::ConversationProfile.
|
304
|
+
# p result
|
305
|
+
#
|
270
306
|
def get_conversation_profile request, options = nil
|
271
307
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
272
308
|
|
@@ -337,6 +373,22 @@ module Google
|
|
337
373
|
# @return [::Google::Cloud::Dialogflow::V2::ConversationProfile]
|
338
374
|
#
|
339
375
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
376
|
+
#
|
377
|
+
# @example Basic example
|
378
|
+
# require "google/cloud/dialogflow/v2"
|
379
|
+
#
|
380
|
+
# # Create a client object. The client can be reused for multiple calls.
|
381
|
+
# client = Google::Cloud::Dialogflow::V2::ConversationProfiles::Rest::Client.new
|
382
|
+
#
|
383
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
384
|
+
# request = Google::Cloud::Dialogflow::V2::CreateConversationProfileRequest.new
|
385
|
+
#
|
386
|
+
# # Call the create_conversation_profile method.
|
387
|
+
# result = client.create_conversation_profile request
|
388
|
+
#
|
389
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::ConversationProfile.
|
390
|
+
# p result
|
391
|
+
#
|
340
392
|
def create_conversation_profile request, options = nil
|
341
393
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
342
394
|
|
@@ -406,6 +458,22 @@ module Google
|
|
406
458
|
# @return [::Google::Cloud::Dialogflow::V2::ConversationProfile]
|
407
459
|
#
|
408
460
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
461
|
+
#
|
462
|
+
# @example Basic example
|
463
|
+
# require "google/cloud/dialogflow/v2"
|
464
|
+
#
|
465
|
+
# # Create a client object. The client can be reused for multiple calls.
|
466
|
+
# client = Google::Cloud::Dialogflow::V2::ConversationProfiles::Rest::Client.new
|
467
|
+
#
|
468
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
469
|
+
# request = Google::Cloud::Dialogflow::V2::UpdateConversationProfileRequest.new
|
470
|
+
#
|
471
|
+
# # Call the update_conversation_profile method.
|
472
|
+
# result = client.update_conversation_profile request
|
473
|
+
#
|
474
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::ConversationProfile.
|
475
|
+
# p result
|
476
|
+
#
|
409
477
|
def update_conversation_profile request, options = nil
|
410
478
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
411
479
|
|
@@ -470,6 +538,22 @@ module Google
|
|
470
538
|
# @return [::Google::Protobuf::Empty]
|
471
539
|
#
|
472
540
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
541
|
+
#
|
542
|
+
# @example Basic example
|
543
|
+
# require "google/cloud/dialogflow/v2"
|
544
|
+
#
|
545
|
+
# # Create a client object. The client can be reused for multiple calls.
|
546
|
+
# client = Google::Cloud::Dialogflow::V2::ConversationProfiles::Rest::Client.new
|
547
|
+
#
|
548
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
549
|
+
# request = Google::Cloud::Dialogflow::V2::DeleteConversationProfileRequest.new
|
550
|
+
#
|
551
|
+
# # Call the delete_conversation_profile method.
|
552
|
+
# result = client.delete_conversation_profile request
|
553
|
+
#
|
554
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
555
|
+
# p result
|
556
|
+
#
|
473
557
|
def delete_conversation_profile request, options = nil
|
474
558
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
475
559
|
|
@@ -556,6 +640,29 @@ module Google
|
|
556
640
|
# @return [::Gapic::Operation]
|
557
641
|
#
|
558
642
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
643
|
+
#
|
644
|
+
# @example Basic example
|
645
|
+
# require "google/cloud/dialogflow/v2"
|
646
|
+
#
|
647
|
+
# # Create a client object. The client can be reused for multiple calls.
|
648
|
+
# client = Google::Cloud::Dialogflow::V2::ConversationProfiles::Rest::Client.new
|
649
|
+
#
|
650
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
651
|
+
# request = Google::Cloud::Dialogflow::V2::SetSuggestionFeatureConfigRequest.new
|
652
|
+
#
|
653
|
+
# # Call the set_suggestion_feature_config method.
|
654
|
+
# result = client.set_suggestion_feature_config request
|
655
|
+
#
|
656
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
657
|
+
# # check the status of an operation, cancel it, or wait for results.
|
658
|
+
# # Here is how to wait for a response.
|
659
|
+
# result.wait_until_done! timeout: 60
|
660
|
+
# if result.response?
|
661
|
+
# p result.response
|
662
|
+
# else
|
663
|
+
# puts "No response received."
|
664
|
+
# end
|
665
|
+
#
|
559
666
|
def set_suggestion_feature_config request, options = nil
|
560
667
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
561
668
|
|
@@ -636,6 +743,29 @@ module Google
|
|
636
743
|
# @return [::Gapic::Operation]
|
637
744
|
#
|
638
745
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
746
|
+
#
|
747
|
+
# @example Basic example
|
748
|
+
# require "google/cloud/dialogflow/v2"
|
749
|
+
#
|
750
|
+
# # Create a client object. The client can be reused for multiple calls.
|
751
|
+
# client = Google::Cloud::Dialogflow::V2::ConversationProfiles::Rest::Client.new
|
752
|
+
#
|
753
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
754
|
+
# request = Google::Cloud::Dialogflow::V2::ClearSuggestionFeatureConfigRequest.new
|
755
|
+
#
|
756
|
+
# # Call the clear_suggestion_feature_config method.
|
757
|
+
# result = client.clear_suggestion_feature_config request
|
758
|
+
#
|
759
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
760
|
+
# # check the status of an operation, cancel it, or wait for results.
|
761
|
+
# # Here is how to wait for a response.
|
762
|
+
# result.wait_until_done! timeout: 60
|
763
|
+
# if result.response?
|
764
|
+
# p result.response
|
765
|
+
# else
|
766
|
+
# puts "No response received."
|
767
|
+
# end
|
768
|
+
#
|
639
769
|
def clear_suggestion_feature_config request, options = nil
|
640
770
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
641
771
|
|
@@ -136,6 +136,26 @@ module Google
|
|
136
136
|
# @return [::Gapic::Operation]
|
137
137
|
#
|
138
138
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
139
|
+
#
|
140
|
+
# @example Basic example
|
141
|
+
# require "google/longrunning"
|
142
|
+
#
|
143
|
+
# # Create a client object. The client can be reused for multiple calls.
|
144
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
145
|
+
#
|
146
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
147
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
148
|
+
#
|
149
|
+
# # Call the list_operations method.
|
150
|
+
# result = client.list_operations request
|
151
|
+
#
|
152
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
153
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
154
|
+
# result.each do |item|
|
155
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
156
|
+
# p item
|
157
|
+
# end
|
158
|
+
#
|
139
159
|
def list_operations request, options = nil
|
140
160
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
141
161
|
|
@@ -201,6 +221,29 @@ module Google
|
|
201
221
|
# @return [::Gapic::Operation]
|
202
222
|
#
|
203
223
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
224
|
+
#
|
225
|
+
# @example Basic example
|
226
|
+
# require "google/longrunning"
|
227
|
+
#
|
228
|
+
# # Create a client object. The client can be reused for multiple calls.
|
229
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
230
|
+
#
|
231
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
232
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
233
|
+
#
|
234
|
+
# # Call the get_operation method.
|
235
|
+
# result = client.get_operation request
|
236
|
+
#
|
237
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
238
|
+
# # check the status of an operation, cancel it, or wait for results.
|
239
|
+
# # Here is how to wait for a response.
|
240
|
+
# result.wait_until_done! timeout: 60
|
241
|
+
# if result.response?
|
242
|
+
# p result.response
|
243
|
+
# else
|
244
|
+
# puts "No response received."
|
245
|
+
# end
|
246
|
+
#
|
204
247
|
def get_operation request, options = nil
|
205
248
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
206
249
|
|
@@ -267,6 +310,22 @@ module Google
|
|
267
310
|
# @return [::Google::Protobuf::Empty]
|
268
311
|
#
|
269
312
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
313
|
+
#
|
314
|
+
# @example Basic example
|
315
|
+
# require "google/longrunning"
|
316
|
+
#
|
317
|
+
# # Create a client object. The client can be reused for multiple calls.
|
318
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
319
|
+
#
|
320
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
321
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
322
|
+
#
|
323
|
+
# # Call the delete_operation method.
|
324
|
+
# result = client.delete_operation request
|
325
|
+
#
|
326
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
327
|
+
# p result
|
328
|
+
#
|
270
329
|
def delete_operation request, options = nil
|
271
330
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
272
331
|
|
@@ -338,6 +397,22 @@ module Google
|
|
338
397
|
# @return [::Google::Protobuf::Empty]
|
339
398
|
#
|
340
399
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
400
|
+
#
|
401
|
+
# @example Basic example
|
402
|
+
# require "google/longrunning"
|
403
|
+
#
|
404
|
+
# # Create a client object. The client can be reused for multiple calls.
|
405
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
406
|
+
#
|
407
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
408
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
409
|
+
#
|
410
|
+
# # Call the cancel_operation method.
|
411
|
+
# result = client.cancel_operation request
|
412
|
+
#
|
413
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
414
|
+
# p result
|
415
|
+
#
|
341
416
|
def cancel_operation request, options = nil
|
342
417
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
343
418
|
|
@@ -151,7 +151,8 @@ module Google
|
|
151
151
|
credentials: credentials,
|
152
152
|
endpoint: @config.endpoint,
|
153
153
|
channel_args: @config.channel_args,
|
154
|
-
interceptors: @config.interceptors
|
154
|
+
interceptors: @config.interceptors,
|
155
|
+
channel_pool_config: @config.channel_pool
|
155
156
|
)
|
156
157
|
end
|
157
158
|
|
@@ -1113,6 +1114,14 @@ module Google
|
|
1113
1114
|
end
|
1114
1115
|
end
|
1115
1116
|
|
1117
|
+
##
|
1118
|
+
# Configuration for the channel pool
|
1119
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
1120
|
+
#
|
1121
|
+
def channel_pool
|
1122
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
1123
|
+
end
|
1124
|
+
|
1116
1125
|
##
|
1117
1126
|
# Configuration RPC class for the Conversations API.
|
1118
1127
|
#
|
@@ -217,6 +217,22 @@ module Google
|
|
217
217
|
# @return [::Google::Cloud::Dialogflow::V2::Conversation]
|
218
218
|
#
|
219
219
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
220
|
+
#
|
221
|
+
# @example Basic example
|
222
|
+
# require "google/cloud/dialogflow/v2"
|
223
|
+
#
|
224
|
+
# # Create a client object. The client can be reused for multiple calls.
|
225
|
+
# client = Google::Cloud::Dialogflow::V2::Conversations::Rest::Client.new
|
226
|
+
#
|
227
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
228
|
+
# request = Google::Cloud::Dialogflow::V2::CreateConversationRequest.new
|
229
|
+
#
|
230
|
+
# # Call the create_conversation method.
|
231
|
+
# result = client.create_conversation request
|
232
|
+
#
|
233
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::Conversation.
|
234
|
+
# p result
|
235
|
+
#
|
220
236
|
def create_conversation request, options = nil
|
221
237
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
222
238
|
|
@@ -303,6 +319,26 @@ module Google
|
|
303
319
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::V2::Conversation>]
|
304
320
|
#
|
305
321
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
322
|
+
#
|
323
|
+
# @example Basic example
|
324
|
+
# require "google/cloud/dialogflow/v2"
|
325
|
+
#
|
326
|
+
# # Create a client object. The client can be reused for multiple calls.
|
327
|
+
# client = Google::Cloud::Dialogflow::V2::Conversations::Rest::Client.new
|
328
|
+
#
|
329
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
330
|
+
# request = Google::Cloud::Dialogflow::V2::ListConversationsRequest.new
|
331
|
+
#
|
332
|
+
# # Call the list_conversations method.
|
333
|
+
# result = client.list_conversations request
|
334
|
+
#
|
335
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
336
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
337
|
+
# result.each do |item|
|
338
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::V2::Conversation.
|
339
|
+
# p item
|
340
|
+
# end
|
341
|
+
#
|
306
342
|
def list_conversations request, options = nil
|
307
343
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
308
344
|
|
@@ -368,6 +404,22 @@ module Google
|
|
368
404
|
# @return [::Google::Cloud::Dialogflow::V2::Conversation]
|
369
405
|
#
|
370
406
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
407
|
+
#
|
408
|
+
# @example Basic example
|
409
|
+
# require "google/cloud/dialogflow/v2"
|
410
|
+
#
|
411
|
+
# # Create a client object. The client can be reused for multiple calls.
|
412
|
+
# client = Google::Cloud::Dialogflow::V2::Conversations::Rest::Client.new
|
413
|
+
#
|
414
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
415
|
+
# request = Google::Cloud::Dialogflow::V2::GetConversationRequest.new
|
416
|
+
#
|
417
|
+
# # Call the get_conversation method.
|
418
|
+
# result = client.get_conversation request
|
419
|
+
#
|
420
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::Conversation.
|
421
|
+
# p result
|
422
|
+
#
|
371
423
|
def get_conversation request, options = nil
|
372
424
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
373
425
|
|
@@ -433,6 +485,22 @@ module Google
|
|
433
485
|
# @return [::Google::Cloud::Dialogflow::V2::Conversation]
|
434
486
|
#
|
435
487
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
488
|
+
#
|
489
|
+
# @example Basic example
|
490
|
+
# require "google/cloud/dialogflow/v2"
|
491
|
+
#
|
492
|
+
# # Create a client object. The client can be reused for multiple calls.
|
493
|
+
# client = Google::Cloud::Dialogflow::V2::Conversations::Rest::Client.new
|
494
|
+
#
|
495
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
496
|
+
# request = Google::Cloud::Dialogflow::V2::CompleteConversationRequest.new
|
497
|
+
#
|
498
|
+
# # Call the complete_conversation method.
|
499
|
+
# result = client.complete_conversation request
|
500
|
+
#
|
501
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::Conversation.
|
502
|
+
# p result
|
503
|
+
#
|
436
504
|
def complete_conversation request, options = nil
|
437
505
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
438
506
|
|
@@ -515,6 +583,26 @@ module Google
|
|
515
583
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::V2::Message>]
|
516
584
|
#
|
517
585
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
586
|
+
#
|
587
|
+
# @example Basic example
|
588
|
+
# require "google/cloud/dialogflow/v2"
|
589
|
+
#
|
590
|
+
# # Create a client object. The client can be reused for multiple calls.
|
591
|
+
# client = Google::Cloud::Dialogflow::V2::Conversations::Rest::Client.new
|
592
|
+
#
|
593
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
594
|
+
# request = Google::Cloud::Dialogflow::V2::ListMessagesRequest.new
|
595
|
+
#
|
596
|
+
# # Call the list_messages method.
|
597
|
+
# result = client.list_messages request
|
598
|
+
#
|
599
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
600
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
601
|
+
# result.each do |item|
|
602
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::V2::Message.
|
603
|
+
# p item
|
604
|
+
# end
|
605
|
+
#
|
518
606
|
def list_messages request, options = nil
|
519
607
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
520
608
|
|
@@ -595,6 +683,22 @@ module Google
|
|
595
683
|
# @return [::Google::Cloud::Dialogflow::V2::SuggestConversationSummaryResponse]
|
596
684
|
#
|
597
685
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
686
|
+
#
|
687
|
+
# @example Basic example
|
688
|
+
# require "google/cloud/dialogflow/v2"
|
689
|
+
#
|
690
|
+
# # Create a client object. The client can be reused for multiple calls.
|
691
|
+
# client = Google::Cloud::Dialogflow::V2::Conversations::Rest::Client.new
|
692
|
+
#
|
693
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
694
|
+
# request = Google::Cloud::Dialogflow::V2::SuggestConversationSummaryRequest.new
|
695
|
+
#
|
696
|
+
# # Call the suggest_conversation_summary method.
|
697
|
+
# result = client.suggest_conversation_summary request
|
698
|
+
#
|
699
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::SuggestConversationSummaryResponse.
|
700
|
+
# p result
|
701
|
+
#
|
598
702
|
def suggest_conversation_summary request, options = nil
|
599
703
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
600
704
|
|
@@ -672,6 +776,22 @@ module Google
|
|
672
776
|
# @return [::Google::Cloud::Dialogflow::V2::GenerateStatelessSummaryResponse]
|
673
777
|
#
|
674
778
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
779
|
+
#
|
780
|
+
# @example Basic example
|
781
|
+
# require "google/cloud/dialogflow/v2"
|
782
|
+
#
|
783
|
+
# # Create a client object. The client can be reused for multiple calls.
|
784
|
+
# client = Google::Cloud::Dialogflow::V2::Conversations::Rest::Client.new
|
785
|
+
#
|
786
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
787
|
+
# request = Google::Cloud::Dialogflow::V2::GenerateStatelessSummaryRequest.new
|
788
|
+
#
|
789
|
+
# # Call the generate_stateless_summary method.
|
790
|
+
# result = client.generate_stateless_summary request
|
791
|
+
#
|
792
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::GenerateStatelessSummaryResponse.
|
793
|
+
# p result
|
794
|
+
#
|
675
795
|
def generate_stateless_summary request, options = nil
|
676
796
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
677
797
|
|
@@ -759,6 +879,22 @@ module Google
|
|
759
879
|
# @return [::Google::Cloud::Dialogflow::V2::SearchKnowledgeResponse]
|
760
880
|
#
|
761
881
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
882
|
+
#
|
883
|
+
# @example Basic example
|
884
|
+
# require "google/cloud/dialogflow/v2"
|
885
|
+
#
|
886
|
+
# # Create a client object. The client can be reused for multiple calls.
|
887
|
+
# client = Google::Cloud::Dialogflow::V2::Conversations::Rest::Client.new
|
888
|
+
#
|
889
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
890
|
+
# request = Google::Cloud::Dialogflow::V2::SearchKnowledgeRequest.new
|
891
|
+
#
|
892
|
+
# # Call the search_knowledge method.
|
893
|
+
# result = client.search_knowledge request
|
894
|
+
#
|
895
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::SearchKnowledgeResponse.
|
896
|
+
# p result
|
897
|
+
#
|
762
898
|
def search_knowledge request, options = nil
|
763
899
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
764
900
|
|
@@ -157,7 +157,8 @@ module Google
|
|
157
157
|
credentials: credentials,
|
158
158
|
endpoint: @config.endpoint,
|
159
159
|
channel_args: @config.channel_args,
|
160
|
-
interceptors: @config.interceptors
|
160
|
+
interceptors: @config.interceptors,
|
161
|
+
channel_pool_config: @config.channel_pool
|
161
162
|
)
|
162
163
|
end
|
163
164
|
|
@@ -1167,6 +1168,14 @@ module Google
|
|
1167
1168
|
end
|
1168
1169
|
end
|
1169
1170
|
|
1171
|
+
##
|
1172
|
+
# Configuration for the channel pool
|
1173
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
1174
|
+
#
|
1175
|
+
def channel_pool
|
1176
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
1177
|
+
end
|
1178
|
+
|
1170
1179
|
##
|
1171
1180
|
# Configuration RPC class for the Documents API.
|
1172
1181
|
#
|
@@ -93,7 +93,8 @@ module Google
|
|
93
93
|
credentials: credentials,
|
94
94
|
endpoint: @config.endpoint,
|
95
95
|
channel_args: @config.channel_args,
|
96
|
-
interceptors: @config.interceptors
|
96
|
+
interceptors: @config.interceptors,
|
97
|
+
channel_pool_config: @config.channel_pool
|
97
98
|
)
|
98
99
|
|
99
100
|
# Used by an LRO wrapper for some methods of this service
|
@@ -701,6 +702,14 @@ module Google
|
|
701
702
|
end
|
702
703
|
end
|
703
704
|
|
705
|
+
##
|
706
|
+
# Configuration for the channel pool
|
707
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
708
|
+
#
|
709
|
+
def channel_pool
|
710
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
711
|
+
end
|
712
|
+
|
704
713
|
##
|
705
714
|
# Configuration RPC class for the Operations API.
|
706
715
|
#
|