google-cloud-dialogflow-v2 0.28.0 → 0.29.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/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
@@ -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
|
|
@@ -760,6 +761,14 @@ module Google
|
|
760
761
|
end
|
761
762
|
end
|
762
763
|
|
764
|
+
##
|
765
|
+
# Configuration for the channel pool
|
766
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
767
|
+
#
|
768
|
+
def channel_pool
|
769
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
770
|
+
end
|
771
|
+
|
763
772
|
##
|
764
773
|
# Configuration RPC class for the KnowledgeBases API.
|
765
774
|
#
|
@@ -216,6 +216,26 @@ module Google
|
|
216
216
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::V2::KnowledgeBase>]
|
217
217
|
#
|
218
218
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
219
|
+
#
|
220
|
+
# @example Basic example
|
221
|
+
# require "google/cloud/dialogflow/v2"
|
222
|
+
#
|
223
|
+
# # Create a client object. The client can be reused for multiple calls.
|
224
|
+
# client = Google::Cloud::Dialogflow::V2::KnowledgeBases::Rest::Client.new
|
225
|
+
#
|
226
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
227
|
+
# request = Google::Cloud::Dialogflow::V2::ListKnowledgeBasesRequest.new
|
228
|
+
#
|
229
|
+
# # Call the list_knowledge_bases method.
|
230
|
+
# result = client.list_knowledge_bases request
|
231
|
+
#
|
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|
|
235
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::V2::KnowledgeBase.
|
236
|
+
# p item
|
237
|
+
# end
|
238
|
+
#
|
219
239
|
def list_knowledge_bases request, options = nil
|
220
240
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
221
241
|
|
@@ -281,6 +301,22 @@ module Google
|
|
281
301
|
# @return [::Google::Cloud::Dialogflow::V2::KnowledgeBase]
|
282
302
|
#
|
283
303
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
304
|
+
#
|
305
|
+
# @example Basic example
|
306
|
+
# require "google/cloud/dialogflow/v2"
|
307
|
+
#
|
308
|
+
# # Create a client object. The client can be reused for multiple calls.
|
309
|
+
# client = Google::Cloud::Dialogflow::V2::KnowledgeBases::Rest::Client.new
|
310
|
+
#
|
311
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
312
|
+
# request = Google::Cloud::Dialogflow::V2::GetKnowledgeBaseRequest.new
|
313
|
+
#
|
314
|
+
# # Call the get_knowledge_base method.
|
315
|
+
# result = client.get_knowledge_base request
|
316
|
+
#
|
317
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::KnowledgeBase.
|
318
|
+
# p result
|
319
|
+
#
|
284
320
|
def get_knowledge_base request, options = nil
|
285
321
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
286
322
|
|
@@ -346,6 +382,22 @@ module Google
|
|
346
382
|
# @return [::Google::Cloud::Dialogflow::V2::KnowledgeBase]
|
347
383
|
#
|
348
384
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
385
|
+
#
|
386
|
+
# @example Basic example
|
387
|
+
# require "google/cloud/dialogflow/v2"
|
388
|
+
#
|
389
|
+
# # Create a client object. The client can be reused for multiple calls.
|
390
|
+
# client = Google::Cloud::Dialogflow::V2::KnowledgeBases::Rest::Client.new
|
391
|
+
#
|
392
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
393
|
+
# request = Google::Cloud::Dialogflow::V2::CreateKnowledgeBaseRequest.new
|
394
|
+
#
|
395
|
+
# # Call the create_knowledge_base method.
|
396
|
+
# result = client.create_knowledge_base request
|
397
|
+
#
|
398
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::KnowledgeBase.
|
399
|
+
# p result
|
400
|
+
#
|
349
401
|
def create_knowledge_base request, options = nil
|
350
402
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
351
403
|
|
@@ -413,6 +465,22 @@ module Google
|
|
413
465
|
# @return [::Google::Protobuf::Empty]
|
414
466
|
#
|
415
467
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
468
|
+
#
|
469
|
+
# @example Basic example
|
470
|
+
# require "google/cloud/dialogflow/v2"
|
471
|
+
#
|
472
|
+
# # Create a client object. The client can be reused for multiple calls.
|
473
|
+
# client = Google::Cloud::Dialogflow::V2::KnowledgeBases::Rest::Client.new
|
474
|
+
#
|
475
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
476
|
+
# request = Google::Cloud::Dialogflow::V2::DeleteKnowledgeBaseRequest.new
|
477
|
+
#
|
478
|
+
# # Call the delete_knowledge_base method.
|
479
|
+
# result = client.delete_knowledge_base request
|
480
|
+
#
|
481
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
482
|
+
# p result
|
483
|
+
#
|
416
484
|
def delete_knowledge_base request, options = nil
|
417
485
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
418
486
|
|
@@ -479,6 +547,22 @@ module Google
|
|
479
547
|
# @return [::Google::Cloud::Dialogflow::V2::KnowledgeBase]
|
480
548
|
#
|
481
549
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
550
|
+
#
|
551
|
+
# @example Basic example
|
552
|
+
# require "google/cloud/dialogflow/v2"
|
553
|
+
#
|
554
|
+
# # Create a client object. The client can be reused for multiple calls.
|
555
|
+
# client = Google::Cloud::Dialogflow::V2::KnowledgeBases::Rest::Client.new
|
556
|
+
#
|
557
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
558
|
+
# request = Google::Cloud::Dialogflow::V2::UpdateKnowledgeBaseRequest.new
|
559
|
+
#
|
560
|
+
# # Call the update_knowledge_base method.
|
561
|
+
# result = client.update_knowledge_base request
|
562
|
+
#
|
563
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::KnowledgeBase.
|
564
|
+
# p result
|
565
|
+
#
|
482
566
|
def update_knowledge_base request, options = nil
|
483
567
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
484
568
|
|
@@ -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
|
|
@@ -1163,6 +1164,14 @@ module Google
|
|
1163
1164
|
end
|
1164
1165
|
end
|
1165
1166
|
|
1167
|
+
##
|
1168
|
+
# Configuration for the channel pool
|
1169
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
1170
|
+
#
|
1171
|
+
def channel_pool
|
1172
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
1173
|
+
end
|
1174
|
+
|
1166
1175
|
##
|
1167
1176
|
# Configuration RPC class for the Participants API.
|
1168
1177
|
#
|
@@ -191,6 +191,22 @@ module Google
|
|
191
191
|
# @return [::Google::Cloud::Dialogflow::V2::Participant]
|
192
192
|
#
|
193
193
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
194
|
+
#
|
195
|
+
# @example Basic example
|
196
|
+
# require "google/cloud/dialogflow/v2"
|
197
|
+
#
|
198
|
+
# # Create a client object. The client can be reused for multiple calls.
|
199
|
+
# client = Google::Cloud::Dialogflow::V2::Participants::Rest::Client.new
|
200
|
+
#
|
201
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
202
|
+
# request = Google::Cloud::Dialogflow::V2::CreateParticipantRequest.new
|
203
|
+
#
|
204
|
+
# # Call the create_participant method.
|
205
|
+
# result = client.create_participant request
|
206
|
+
#
|
207
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::Participant.
|
208
|
+
# p result
|
209
|
+
#
|
194
210
|
def create_participant request, options = nil
|
195
211
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
196
212
|
|
@@ -255,6 +271,22 @@ module Google
|
|
255
271
|
# @return [::Google::Cloud::Dialogflow::V2::Participant]
|
256
272
|
#
|
257
273
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
274
|
+
#
|
275
|
+
# @example Basic example
|
276
|
+
# require "google/cloud/dialogflow/v2"
|
277
|
+
#
|
278
|
+
# # Create a client object. The client can be reused for multiple calls.
|
279
|
+
# client = Google::Cloud::Dialogflow::V2::Participants::Rest::Client.new
|
280
|
+
#
|
281
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
282
|
+
# request = Google::Cloud::Dialogflow::V2::GetParticipantRequest.new
|
283
|
+
#
|
284
|
+
# # Call the get_participant method.
|
285
|
+
# result = client.get_participant request
|
286
|
+
#
|
287
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::Participant.
|
288
|
+
# p result
|
289
|
+
#
|
258
290
|
def get_participant request, options = nil
|
259
291
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
260
292
|
|
@@ -324,6 +356,26 @@ module Google
|
|
324
356
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::V2::Participant>]
|
325
357
|
#
|
326
358
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
359
|
+
#
|
360
|
+
# @example Basic example
|
361
|
+
# require "google/cloud/dialogflow/v2"
|
362
|
+
#
|
363
|
+
# # Create a client object. The client can be reused for multiple calls.
|
364
|
+
# client = Google::Cloud::Dialogflow::V2::Participants::Rest::Client.new
|
365
|
+
#
|
366
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
367
|
+
# request = Google::Cloud::Dialogflow::V2::ListParticipantsRequest.new
|
368
|
+
#
|
369
|
+
# # Call the list_participants method.
|
370
|
+
# result = client.list_participants request
|
371
|
+
#
|
372
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
373
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
374
|
+
# result.each do |item|
|
375
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::V2::Participant.
|
376
|
+
# p item
|
377
|
+
# end
|
378
|
+
#
|
327
379
|
def list_participants request, options = nil
|
328
380
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
329
381
|
|
@@ -389,6 +441,22 @@ module Google
|
|
389
441
|
# @return [::Google::Cloud::Dialogflow::V2::Participant]
|
390
442
|
#
|
391
443
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
444
|
+
#
|
445
|
+
# @example Basic example
|
446
|
+
# require "google/cloud/dialogflow/v2"
|
447
|
+
#
|
448
|
+
# # Create a client object. The client can be reused for multiple calls.
|
449
|
+
# client = Google::Cloud::Dialogflow::V2::Participants::Rest::Client.new
|
450
|
+
#
|
451
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
452
|
+
# request = Google::Cloud::Dialogflow::V2::UpdateParticipantRequest.new
|
453
|
+
#
|
454
|
+
# # Call the update_participant method.
|
455
|
+
# result = client.update_participant request
|
456
|
+
#
|
457
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::Participant.
|
458
|
+
# p result
|
459
|
+
#
|
392
460
|
def update_participant request, options = nil
|
393
461
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
394
462
|
|
@@ -485,6 +553,22 @@ module Google
|
|
485
553
|
# @return [::Google::Cloud::Dialogflow::V2::AnalyzeContentResponse]
|
486
554
|
#
|
487
555
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
556
|
+
#
|
557
|
+
# @example Basic example
|
558
|
+
# require "google/cloud/dialogflow/v2"
|
559
|
+
#
|
560
|
+
# # Create a client object. The client can be reused for multiple calls.
|
561
|
+
# client = Google::Cloud::Dialogflow::V2::Participants::Rest::Client.new
|
562
|
+
#
|
563
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
564
|
+
# request = Google::Cloud::Dialogflow::V2::AnalyzeContentRequest.new
|
565
|
+
#
|
566
|
+
# # Call the analyze_content method.
|
567
|
+
# result = client.analyze_content request
|
568
|
+
#
|
569
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::AnalyzeContentResponse.
|
570
|
+
# p result
|
571
|
+
#
|
488
572
|
def analyze_content request, options = nil
|
489
573
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
490
574
|
|
@@ -563,6 +647,22 @@ module Google
|
|
563
647
|
# @return [::Google::Cloud::Dialogflow::V2::SuggestArticlesResponse]
|
564
648
|
#
|
565
649
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
650
|
+
#
|
651
|
+
# @example Basic example
|
652
|
+
# require "google/cloud/dialogflow/v2"
|
653
|
+
#
|
654
|
+
# # Create a client object. The client can be reused for multiple calls.
|
655
|
+
# client = Google::Cloud::Dialogflow::V2::Participants::Rest::Client.new
|
656
|
+
#
|
657
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
658
|
+
# request = Google::Cloud::Dialogflow::V2::SuggestArticlesRequest.new
|
659
|
+
#
|
660
|
+
# # Call the suggest_articles method.
|
661
|
+
# result = client.suggest_articles request
|
662
|
+
#
|
663
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::SuggestArticlesResponse.
|
664
|
+
# p result
|
665
|
+
#
|
566
666
|
def suggest_articles request, options = nil
|
567
667
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
568
668
|
|
@@ -640,6 +740,22 @@ module Google
|
|
640
740
|
# @return [::Google::Cloud::Dialogflow::V2::SuggestFaqAnswersResponse]
|
641
741
|
#
|
642
742
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
743
|
+
#
|
744
|
+
# @example Basic example
|
745
|
+
# require "google/cloud/dialogflow/v2"
|
746
|
+
#
|
747
|
+
# # Create a client object. The client can be reused for multiple calls.
|
748
|
+
# client = Google::Cloud::Dialogflow::V2::Participants::Rest::Client.new
|
749
|
+
#
|
750
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
751
|
+
# request = Google::Cloud::Dialogflow::V2::SuggestFaqAnswersRequest.new
|
752
|
+
#
|
753
|
+
# # Call the suggest_faq_answers method.
|
754
|
+
# result = client.suggest_faq_answers request
|
755
|
+
#
|
756
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::SuggestFaqAnswersResponse.
|
757
|
+
# p result
|
758
|
+
#
|
643
759
|
def suggest_faq_answers request, options = nil
|
644
760
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
645
761
|
|
@@ -719,6 +835,22 @@ module Google
|
|
719
835
|
# @return [::Google::Cloud::Dialogflow::V2::SuggestSmartRepliesResponse]
|
720
836
|
#
|
721
837
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
838
|
+
#
|
839
|
+
# @example Basic example
|
840
|
+
# require "google/cloud/dialogflow/v2"
|
841
|
+
#
|
842
|
+
# # Create a client object. The client can be reused for multiple calls.
|
843
|
+
# client = Google::Cloud::Dialogflow::V2::Participants::Rest::Client.new
|
844
|
+
#
|
845
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
846
|
+
# request = Google::Cloud::Dialogflow::V2::SuggestSmartRepliesRequest.new
|
847
|
+
#
|
848
|
+
# # Call the suggest_smart_replies method.
|
849
|
+
# result = client.suggest_smart_replies request
|
850
|
+
#
|
851
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::SuggestSmartRepliesResponse.
|
852
|
+
# p result
|
853
|
+
#
|
722
854
|
def suggest_smart_replies request, options = nil
|
723
855
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
724
856
|
|
@@ -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
|
|
@@ -767,6 +768,14 @@ module Google
|
|
767
768
|
end
|
768
769
|
end
|
769
770
|
|
771
|
+
##
|
772
|
+
# Configuration for the channel pool
|
773
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
774
|
+
#
|
775
|
+
def channel_pool
|
776
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
777
|
+
end
|
778
|
+
|
770
779
|
##
|
771
780
|
# Configuration RPC class for the SessionEntityTypes API.
|
772
781
|
#
|
@@ -197,6 +197,26 @@ module Google
|
|
197
197
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::V2::SessionEntityType>]
|
198
198
|
#
|
199
199
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
200
|
+
#
|
201
|
+
# @example Basic example
|
202
|
+
# require "google/cloud/dialogflow/v2"
|
203
|
+
#
|
204
|
+
# # Create a client object. The client can be reused for multiple calls.
|
205
|
+
# client = Google::Cloud::Dialogflow::V2::SessionEntityTypes::Rest::Client.new
|
206
|
+
#
|
207
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
208
|
+
# request = Google::Cloud::Dialogflow::V2::ListSessionEntityTypesRequest.new
|
209
|
+
#
|
210
|
+
# # Call the list_session_entity_types method.
|
211
|
+
# result = client.list_session_entity_types request
|
212
|
+
#
|
213
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
214
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
215
|
+
# result.each do |item|
|
216
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::V2::SessionEntityType.
|
217
|
+
# p item
|
218
|
+
# end
|
219
|
+
#
|
200
220
|
def list_session_entity_types request, options = nil
|
201
221
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
202
222
|
|
@@ -270,6 +290,22 @@ module Google
|
|
270
290
|
# @return [::Google::Cloud::Dialogflow::V2::SessionEntityType]
|
271
291
|
#
|
272
292
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
293
|
+
#
|
294
|
+
# @example Basic example
|
295
|
+
# require "google/cloud/dialogflow/v2"
|
296
|
+
#
|
297
|
+
# # Create a client object. The client can be reused for multiple calls.
|
298
|
+
# client = Google::Cloud::Dialogflow::V2::SessionEntityTypes::Rest::Client.new
|
299
|
+
#
|
300
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
301
|
+
# request = Google::Cloud::Dialogflow::V2::GetSessionEntityTypeRequest.new
|
302
|
+
#
|
303
|
+
# # Call the get_session_entity_type method.
|
304
|
+
# result = client.get_session_entity_type request
|
305
|
+
#
|
306
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::SessionEntityType.
|
307
|
+
# p result
|
308
|
+
#
|
273
309
|
def get_session_entity_type request, options = nil
|
274
310
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
275
311
|
|
@@ -346,6 +382,22 @@ module Google
|
|
346
382
|
# @return [::Google::Cloud::Dialogflow::V2::SessionEntityType]
|
347
383
|
#
|
348
384
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
385
|
+
#
|
386
|
+
# @example Basic example
|
387
|
+
# require "google/cloud/dialogflow/v2"
|
388
|
+
#
|
389
|
+
# # Create a client object. The client can be reused for multiple calls.
|
390
|
+
# client = Google::Cloud::Dialogflow::V2::SessionEntityTypes::Rest::Client.new
|
391
|
+
#
|
392
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
393
|
+
# request = Google::Cloud::Dialogflow::V2::CreateSessionEntityTypeRequest.new
|
394
|
+
#
|
395
|
+
# # Call the create_session_entity_type method.
|
396
|
+
# result = client.create_session_entity_type request
|
397
|
+
#
|
398
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::SessionEntityType.
|
399
|
+
# p result
|
400
|
+
#
|
349
401
|
def create_session_entity_type request, options = nil
|
350
402
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
351
403
|
|
@@ -414,6 +466,22 @@ module Google
|
|
414
466
|
# @return [::Google::Cloud::Dialogflow::V2::SessionEntityType]
|
415
467
|
#
|
416
468
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
469
|
+
#
|
470
|
+
# @example Basic example
|
471
|
+
# require "google/cloud/dialogflow/v2"
|
472
|
+
#
|
473
|
+
# # Create a client object. The client can be reused for multiple calls.
|
474
|
+
# client = Google::Cloud::Dialogflow::V2::SessionEntityTypes::Rest::Client.new
|
475
|
+
#
|
476
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
477
|
+
# request = Google::Cloud::Dialogflow::V2::UpdateSessionEntityTypeRequest.new
|
478
|
+
#
|
479
|
+
# # Call the update_session_entity_type method.
|
480
|
+
# result = client.update_session_entity_type request
|
481
|
+
#
|
482
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::SessionEntityType.
|
483
|
+
# p result
|
484
|
+
#
|
417
485
|
def update_session_entity_type request, options = nil
|
418
486
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
419
487
|
|
@@ -486,6 +554,22 @@ module Google
|
|
486
554
|
# @return [::Google::Protobuf::Empty]
|
487
555
|
#
|
488
556
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
557
|
+
#
|
558
|
+
# @example Basic example
|
559
|
+
# require "google/cloud/dialogflow/v2"
|
560
|
+
#
|
561
|
+
# # Create a client object. The client can be reused for multiple calls.
|
562
|
+
# client = Google::Cloud::Dialogflow::V2::SessionEntityTypes::Rest::Client.new
|
563
|
+
#
|
564
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
565
|
+
# request = Google::Cloud::Dialogflow::V2::DeleteSessionEntityTypeRequest.new
|
566
|
+
#
|
567
|
+
# # Call the delete_session_entity_type method.
|
568
|
+
# result = client.delete_session_entity_type request
|
569
|
+
#
|
570
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
571
|
+
# p result
|
572
|
+
#
|
489
573
|
def delete_session_entity_type request, options = nil
|
490
574
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
491
575
|
|
@@ -160,7 +160,8 @@ module Google
|
|
160
160
|
credentials: credentials,
|
161
161
|
endpoint: @config.endpoint,
|
162
162
|
channel_args: @config.channel_args,
|
163
|
-
interceptors: @config.interceptors
|
163
|
+
interceptors: @config.interceptors,
|
164
|
+
channel_pool_config: @config.channel_pool
|
164
165
|
)
|
165
166
|
end
|
166
167
|
|
@@ -526,6 +527,14 @@ module Google
|
|
526
527
|
end
|
527
528
|
end
|
528
529
|
|
530
|
+
##
|
531
|
+
# Configuration for the channel pool
|
532
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
533
|
+
#
|
534
|
+
def channel_pool
|
535
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
536
|
+
end
|
537
|
+
|
529
538
|
##
|
530
539
|
# Configuration RPC class for the Sessions API.
|
531
540
|
#
|
@@ -248,6 +248,22 @@ module Google
|
|
248
248
|
# @return [::Google::Cloud::Dialogflow::V2::DetectIntentResponse]
|
249
249
|
#
|
250
250
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
251
|
+
#
|
252
|
+
# @example Basic example
|
253
|
+
# require "google/cloud/dialogflow/v2"
|
254
|
+
#
|
255
|
+
# # Create a client object. The client can be reused for multiple calls.
|
256
|
+
# client = Google::Cloud::Dialogflow::V2::Sessions::Rest::Client.new
|
257
|
+
#
|
258
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
259
|
+
# request = Google::Cloud::Dialogflow::V2::DetectIntentRequest.new
|
260
|
+
#
|
261
|
+
# # Call the detect_intent method.
|
262
|
+
# result = client.detect_intent request
|
263
|
+
#
|
264
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::DetectIntentResponse.
|
265
|
+
# p result
|
266
|
+
#
|
251
267
|
def detect_intent request, options = nil
|
252
268
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
253
269
|
|
@@ -150,7 +150,8 @@ module Google
|
|
150
150
|
credentials: credentials,
|
151
151
|
endpoint: @config.endpoint,
|
152
152
|
channel_args: @config.channel_args,
|
153
|
-
interceptors: @config.interceptors
|
153
|
+
interceptors: @config.interceptors,
|
154
|
+
channel_pool_config: @config.channel_pool
|
154
155
|
)
|
155
156
|
end
|
156
157
|
|
@@ -750,6 +751,14 @@ module Google
|
|
750
751
|
end
|
751
752
|
end
|
752
753
|
|
754
|
+
##
|
755
|
+
# Configuration for the channel pool
|
756
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
757
|
+
#
|
758
|
+
def channel_pool
|
759
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
760
|
+
end
|
761
|
+
|
753
762
|
##
|
754
763
|
# Configuration RPC class for the Versions API.
|
755
764
|
#
|