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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 683b7df63a41387881985f8d90368a402bb78080c4631dab8bcfa436de1cb8e7
|
4
|
+
data.tar.gz: c0007d4741b5f19ca1fcca97173b18f45c79fa4bf66b7269f55d76ea5f7b0242
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb464f53a6633924e449b30d73cf86b254078fd9228895893c4cfa4210960cf1d6499607f54e9c04f44bee5efc554bebcb6cb62e7fce95295df5da99e93b406c
|
7
|
+
data.tar.gz: 483b888cf9d2ce93f507d521460ebac121b6aef97df68f7afd73f802a639a09ac22dc0d2ee10163d613711c176041659c7c9acc3a78f404c23ec9d1b801e13c5
|
@@ -156,7 +156,8 @@ module Google
|
|
156
156
|
credentials: credentials,
|
157
157
|
endpoint: @config.endpoint,
|
158
158
|
channel_args: @config.channel_args,
|
159
|
-
interceptors: @config.interceptors
|
159
|
+
interceptors: @config.interceptors,
|
160
|
+
channel_pool_config: @config.channel_pool
|
160
161
|
)
|
161
162
|
end
|
162
163
|
|
@@ -1234,6 +1235,14 @@ module Google
|
|
1234
1235
|
end
|
1235
1236
|
end
|
1236
1237
|
|
1238
|
+
##
|
1239
|
+
# Configuration for the channel pool
|
1240
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
1241
|
+
#
|
1242
|
+
def channel_pool
|
1243
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
1244
|
+
end
|
1245
|
+
|
1237
1246
|
##
|
1238
1247
|
# Configuration RPC class for the Agents API.
|
1239
1248
|
#
|
@@ -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
|
#
|
@@ -196,6 +196,22 @@ module Google
|
|
196
196
|
# @return [::Google::Cloud::Dialogflow::V2::Agent]
|
197
197
|
#
|
198
198
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
199
|
+
#
|
200
|
+
# @example Basic example
|
201
|
+
# require "google/cloud/dialogflow/v2"
|
202
|
+
#
|
203
|
+
# # Create a client object. The client can be reused for multiple calls.
|
204
|
+
# client = Google::Cloud::Dialogflow::V2::Agents::Rest::Client.new
|
205
|
+
#
|
206
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
207
|
+
# request = Google::Cloud::Dialogflow::V2::GetAgentRequest.new
|
208
|
+
#
|
209
|
+
# # Call the get_agent method.
|
210
|
+
# result = client.get_agent request
|
211
|
+
#
|
212
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::Agent.
|
213
|
+
# p result
|
214
|
+
#
|
199
215
|
def get_agent request, options = nil
|
200
216
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
201
217
|
|
@@ -264,6 +280,22 @@ module Google
|
|
264
280
|
# @return [::Google::Cloud::Dialogflow::V2::Agent]
|
265
281
|
#
|
266
282
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
283
|
+
#
|
284
|
+
# @example Basic example
|
285
|
+
# require "google/cloud/dialogflow/v2"
|
286
|
+
#
|
287
|
+
# # Create a client object. The client can be reused for multiple calls.
|
288
|
+
# client = Google::Cloud::Dialogflow::V2::Agents::Rest::Client.new
|
289
|
+
#
|
290
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
291
|
+
# request = Google::Cloud::Dialogflow::V2::SetAgentRequest.new
|
292
|
+
#
|
293
|
+
# # Call the set_agent method.
|
294
|
+
# result = client.set_agent request
|
295
|
+
#
|
296
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::Agent.
|
297
|
+
# p result
|
298
|
+
#
|
267
299
|
def set_agent request, options = nil
|
268
300
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
269
301
|
|
@@ -327,6 +359,22 @@ module Google
|
|
327
359
|
# @return [::Google::Protobuf::Empty]
|
328
360
|
#
|
329
361
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
362
|
+
#
|
363
|
+
# @example Basic example
|
364
|
+
# require "google/cloud/dialogflow/v2"
|
365
|
+
#
|
366
|
+
# # Create a client object. The client can be reused for multiple calls.
|
367
|
+
# client = Google::Cloud::Dialogflow::V2::Agents::Rest::Client.new
|
368
|
+
#
|
369
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
370
|
+
# request = Google::Cloud::Dialogflow::V2::DeleteAgentRequest.new
|
371
|
+
#
|
372
|
+
# # Call the delete_agent method.
|
373
|
+
# result = client.delete_agent request
|
374
|
+
#
|
375
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
376
|
+
# p result
|
377
|
+
#
|
330
378
|
def delete_agent request, options = nil
|
331
379
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
332
380
|
|
@@ -401,6 +449,26 @@ module Google
|
|
401
449
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::V2::Agent>]
|
402
450
|
#
|
403
451
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
452
|
+
#
|
453
|
+
# @example Basic example
|
454
|
+
# require "google/cloud/dialogflow/v2"
|
455
|
+
#
|
456
|
+
# # Create a client object. The client can be reused for multiple calls.
|
457
|
+
# client = Google::Cloud::Dialogflow::V2::Agents::Rest::Client.new
|
458
|
+
#
|
459
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
460
|
+
# request = Google::Cloud::Dialogflow::V2::SearchAgentsRequest.new
|
461
|
+
#
|
462
|
+
# # Call the search_agents method.
|
463
|
+
# result = client.search_agents request
|
464
|
+
#
|
465
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
466
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
467
|
+
# result.each do |item|
|
468
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::V2::Agent.
|
469
|
+
# p item
|
470
|
+
# end
|
471
|
+
#
|
404
472
|
def search_agents request, options = nil
|
405
473
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
406
474
|
|
@@ -478,6 +546,29 @@ module Google
|
|
478
546
|
# @return [::Gapic::Operation]
|
479
547
|
#
|
480
548
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
549
|
+
#
|
550
|
+
# @example Basic example
|
551
|
+
# require "google/cloud/dialogflow/v2"
|
552
|
+
#
|
553
|
+
# # Create a client object. The client can be reused for multiple calls.
|
554
|
+
# client = Google::Cloud::Dialogflow::V2::Agents::Rest::Client.new
|
555
|
+
#
|
556
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
557
|
+
# request = Google::Cloud::Dialogflow::V2::TrainAgentRequest.new
|
558
|
+
#
|
559
|
+
# # Call the train_agent method.
|
560
|
+
# result = client.train_agent request
|
561
|
+
#
|
562
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
563
|
+
# # check the status of an operation, cancel it, or wait for results.
|
564
|
+
# # Here is how to wait for a response.
|
565
|
+
# result.wait_until_done! timeout: 60
|
566
|
+
# if result.response?
|
567
|
+
# p result.response
|
568
|
+
# else
|
569
|
+
# puts "No response received."
|
570
|
+
# end
|
571
|
+
#
|
481
572
|
def train_agent request, options = nil
|
482
573
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
483
574
|
|
@@ -562,6 +653,29 @@ module Google
|
|
562
653
|
# @return [::Gapic::Operation]
|
563
654
|
#
|
564
655
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
656
|
+
#
|
657
|
+
# @example Basic example
|
658
|
+
# require "google/cloud/dialogflow/v2"
|
659
|
+
#
|
660
|
+
# # Create a client object. The client can be reused for multiple calls.
|
661
|
+
# client = Google::Cloud::Dialogflow::V2::Agents::Rest::Client.new
|
662
|
+
#
|
663
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
664
|
+
# request = Google::Cloud::Dialogflow::V2::ExportAgentRequest.new
|
665
|
+
#
|
666
|
+
# # Call the export_agent method.
|
667
|
+
# result = client.export_agent request
|
668
|
+
#
|
669
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
670
|
+
# # check the status of an operation, cancel it, or wait for results.
|
671
|
+
# # Here is how to wait for a response.
|
672
|
+
# result.wait_until_done! timeout: 60
|
673
|
+
# if result.response?
|
674
|
+
# p result.response
|
675
|
+
# else
|
676
|
+
# puts "No response received."
|
677
|
+
# end
|
678
|
+
#
|
565
679
|
def export_agent request, options = nil
|
566
680
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
567
681
|
|
@@ -663,6 +777,29 @@ module Google
|
|
663
777
|
# @return [::Gapic::Operation]
|
664
778
|
#
|
665
779
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
780
|
+
#
|
781
|
+
# @example Basic example
|
782
|
+
# require "google/cloud/dialogflow/v2"
|
783
|
+
#
|
784
|
+
# # Create a client object. The client can be reused for multiple calls.
|
785
|
+
# client = Google::Cloud::Dialogflow::V2::Agents::Rest::Client.new
|
786
|
+
#
|
787
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
788
|
+
# request = Google::Cloud::Dialogflow::V2::ImportAgentRequest.new
|
789
|
+
#
|
790
|
+
# # Call the import_agent method.
|
791
|
+
# result = client.import_agent request
|
792
|
+
#
|
793
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
794
|
+
# # check the status of an operation, cancel it, or wait for results.
|
795
|
+
# # Here is how to wait for a response.
|
796
|
+
# result.wait_until_done! timeout: 60
|
797
|
+
# if result.response?
|
798
|
+
# p result.response
|
799
|
+
# else
|
800
|
+
# puts "No response received."
|
801
|
+
# end
|
802
|
+
#
|
666
803
|
def import_agent request, options = nil
|
667
804
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
668
805
|
|
@@ -762,6 +899,29 @@ module Google
|
|
762
899
|
# @return [::Gapic::Operation]
|
763
900
|
#
|
764
901
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
902
|
+
#
|
903
|
+
# @example Basic example
|
904
|
+
# require "google/cloud/dialogflow/v2"
|
905
|
+
#
|
906
|
+
# # Create a client object. The client can be reused for multiple calls.
|
907
|
+
# client = Google::Cloud::Dialogflow::V2::Agents::Rest::Client.new
|
908
|
+
#
|
909
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
910
|
+
# request = Google::Cloud::Dialogflow::V2::RestoreAgentRequest.new
|
911
|
+
#
|
912
|
+
# # Call the restore_agent method.
|
913
|
+
# result = client.restore_agent request
|
914
|
+
#
|
915
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
916
|
+
# # check the status of an operation, cancel it, or wait for results.
|
917
|
+
# # Here is how to wait for a response.
|
918
|
+
# result.wait_until_done! timeout: 60
|
919
|
+
# if result.response?
|
920
|
+
# p result.response
|
921
|
+
# else
|
922
|
+
# puts "No response received."
|
923
|
+
# end
|
924
|
+
#
|
765
925
|
def restore_agent request, options = nil
|
766
926
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
767
927
|
|
@@ -833,6 +993,22 @@ module Google
|
|
833
993
|
# @return [::Google::Cloud::Dialogflow::V2::ValidationResult]
|
834
994
|
#
|
835
995
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
996
|
+
#
|
997
|
+
# @example Basic example
|
998
|
+
# require "google/cloud/dialogflow/v2"
|
999
|
+
#
|
1000
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1001
|
+
# client = Google::Cloud::Dialogflow::V2::Agents::Rest::Client.new
|
1002
|
+
#
|
1003
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1004
|
+
# request = Google::Cloud::Dialogflow::V2::GetValidationResultRequest.new
|
1005
|
+
#
|
1006
|
+
# # Call the get_validation_result method.
|
1007
|
+
# result = client.get_validation_result request
|
1008
|
+
#
|
1009
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::ValidationResult.
|
1010
|
+
# p result
|
1011
|
+
#
|
836
1012
|
def get_validation_result request, options = nil
|
837
1013
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
838
1014
|
|
@@ -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
|
|
@@ -479,6 +480,14 @@ module Google
|
|
479
480
|
end
|
480
481
|
end
|
481
482
|
|
483
|
+
##
|
484
|
+
# Configuration for the channel pool
|
485
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
486
|
+
#
|
487
|
+
def channel_pool
|
488
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
489
|
+
end
|
490
|
+
|
482
491
|
##
|
483
492
|
# Configuration RPC class for the AnswerRecords API.
|
484
493
|
#
|
@@ -202,6 +202,26 @@ module Google
|
|
202
202
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::V2::AnswerRecord>]
|
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::AnswerRecords::Rest::Client.new
|
211
|
+
#
|
212
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
213
|
+
# request = Google::Cloud::Dialogflow::V2::ListAnswerRecordsRequest.new
|
214
|
+
#
|
215
|
+
# # Call the list_answer_records method.
|
216
|
+
# result = client.list_answer_records 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::AnswerRecord.
|
222
|
+
# p item
|
223
|
+
# end
|
224
|
+
#
|
205
225
|
def list_answer_records 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::AnswerRecord]
|
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::AnswerRecords::Rest::Client.new
|
296
|
+
#
|
297
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
298
|
+
# request = Google::Cloud::Dialogflow::V2::UpdateAnswerRecordRequest.new
|
299
|
+
#
|
300
|
+
# # Call the update_answer_record method.
|
301
|
+
# result = client.update_answer_record request
|
302
|
+
#
|
303
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::AnswerRecord.
|
304
|
+
# p result
|
305
|
+
#
|
270
306
|
def update_answer_record request, options = nil
|
271
307
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
272
308
|
|
@@ -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
|
|
@@ -833,6 +834,14 @@ module Google
|
|
833
834
|
end
|
834
835
|
end
|
835
836
|
|
837
|
+
##
|
838
|
+
# Configuration for the channel pool
|
839
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
840
|
+
#
|
841
|
+
def channel_pool
|
842
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
843
|
+
end
|
844
|
+
|
836
845
|
##
|
837
846
|
# Configuration RPC class for the Contexts API.
|
838
847
|
#
|
@@ -192,6 +192,26 @@ module Google
|
|
192
192
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::V2::Context>]
|
193
193
|
#
|
194
194
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
195
|
+
#
|
196
|
+
# @example Basic example
|
197
|
+
# require "google/cloud/dialogflow/v2"
|
198
|
+
#
|
199
|
+
# # Create a client object. The client can be reused for multiple calls.
|
200
|
+
# client = Google::Cloud::Dialogflow::V2::Contexts::Rest::Client.new
|
201
|
+
#
|
202
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
203
|
+
# request = Google::Cloud::Dialogflow::V2::ListContextsRequest.new
|
204
|
+
#
|
205
|
+
# # Call the list_contexts method.
|
206
|
+
# result = client.list_contexts request
|
207
|
+
#
|
208
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
209
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
210
|
+
# result.each do |item|
|
211
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::V2::Context.
|
212
|
+
# p item
|
213
|
+
# end
|
214
|
+
#
|
195
215
|
def list_contexts request, options = nil
|
196
216
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
197
217
|
|
@@ -260,6 +280,22 @@ module Google
|
|
260
280
|
# @return [::Google::Cloud::Dialogflow::V2::Context]
|
261
281
|
#
|
262
282
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
283
|
+
#
|
284
|
+
# @example Basic example
|
285
|
+
# require "google/cloud/dialogflow/v2"
|
286
|
+
#
|
287
|
+
# # Create a client object. The client can be reused for multiple calls.
|
288
|
+
# client = Google::Cloud::Dialogflow::V2::Contexts::Rest::Client.new
|
289
|
+
#
|
290
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
291
|
+
# request = Google::Cloud::Dialogflow::V2::GetContextRequest.new
|
292
|
+
#
|
293
|
+
# # Call the get_context method.
|
294
|
+
# result = client.get_context request
|
295
|
+
#
|
296
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::Context.
|
297
|
+
# p result
|
298
|
+
#
|
263
299
|
def get_context request, options = nil
|
264
300
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
265
301
|
|
@@ -331,6 +367,22 @@ module Google
|
|
331
367
|
# @return [::Google::Cloud::Dialogflow::V2::Context]
|
332
368
|
#
|
333
369
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
370
|
+
#
|
371
|
+
# @example Basic example
|
372
|
+
# require "google/cloud/dialogflow/v2"
|
373
|
+
#
|
374
|
+
# # Create a client object. The client can be reused for multiple calls.
|
375
|
+
# client = Google::Cloud::Dialogflow::V2::Contexts::Rest::Client.new
|
376
|
+
#
|
377
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
378
|
+
# request = Google::Cloud::Dialogflow::V2::CreateContextRequest.new
|
379
|
+
#
|
380
|
+
# # Call the create_context method.
|
381
|
+
# result = client.create_context request
|
382
|
+
#
|
383
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::Context.
|
384
|
+
# p result
|
385
|
+
#
|
334
386
|
def create_context request, options = nil
|
335
387
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
336
388
|
|
@@ -395,6 +447,22 @@ module Google
|
|
395
447
|
# @return [::Google::Cloud::Dialogflow::V2::Context]
|
396
448
|
#
|
397
449
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
450
|
+
#
|
451
|
+
# @example Basic example
|
452
|
+
# require "google/cloud/dialogflow/v2"
|
453
|
+
#
|
454
|
+
# # Create a client object. The client can be reused for multiple calls.
|
455
|
+
# client = Google::Cloud::Dialogflow::V2::Contexts::Rest::Client.new
|
456
|
+
#
|
457
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
458
|
+
# request = Google::Cloud::Dialogflow::V2::UpdateContextRequest.new
|
459
|
+
#
|
460
|
+
# # Call the update_context method.
|
461
|
+
# result = client.update_context request
|
462
|
+
#
|
463
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::Context.
|
464
|
+
# p result
|
465
|
+
#
|
398
466
|
def update_context request, options = nil
|
399
467
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
400
468
|
|
@@ -462,6 +530,22 @@ module Google
|
|
462
530
|
# @return [::Google::Protobuf::Empty]
|
463
531
|
#
|
464
532
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
533
|
+
#
|
534
|
+
# @example Basic example
|
535
|
+
# require "google/cloud/dialogflow/v2"
|
536
|
+
#
|
537
|
+
# # Create a client object. The client can be reused for multiple calls.
|
538
|
+
# client = Google::Cloud::Dialogflow::V2::Contexts::Rest::Client.new
|
539
|
+
#
|
540
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
541
|
+
# request = Google::Cloud::Dialogflow::V2::DeleteContextRequest.new
|
542
|
+
#
|
543
|
+
# # Call the delete_context method.
|
544
|
+
# result = client.delete_context request
|
545
|
+
#
|
546
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
547
|
+
# p result
|
548
|
+
#
|
465
549
|
def delete_context request, options = nil
|
466
550
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
467
551
|
|
@@ -529,6 +613,22 @@ module Google
|
|
529
613
|
# @return [::Google::Protobuf::Empty]
|
530
614
|
#
|
531
615
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
616
|
+
#
|
617
|
+
# @example Basic example
|
618
|
+
# require "google/cloud/dialogflow/v2"
|
619
|
+
#
|
620
|
+
# # Create a client object. The client can be reused for multiple calls.
|
621
|
+
# client = Google::Cloud::Dialogflow::V2::Contexts::Rest::Client.new
|
622
|
+
#
|
623
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
624
|
+
# request = Google::Cloud::Dialogflow::V2::DeleteAllContextsRequest.new
|
625
|
+
#
|
626
|
+
# # Call the delete_all_contexts method.
|
627
|
+
# result = client.delete_all_contexts request
|
628
|
+
#
|
629
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
630
|
+
# p result
|
631
|
+
#
|
532
632
|
def delete_all_contexts request, options = nil
|
533
633
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
534
634
|
|
@@ -159,7 +159,8 @@ module Google
|
|
159
159
|
credentials: credentials,
|
160
160
|
endpoint: @config.endpoint,
|
161
161
|
channel_args: @config.channel_args,
|
162
|
-
interceptors: @config.interceptors
|
162
|
+
interceptors: @config.interceptors,
|
163
|
+
channel_pool_config: @config.channel_pool
|
163
164
|
)
|
164
165
|
end
|
165
166
|
|
@@ -799,6 +800,14 @@ module Google
|
|
799
800
|
end
|
800
801
|
end
|
801
802
|
|
803
|
+
##
|
804
|
+
# Configuration for the channel pool
|
805
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
806
|
+
#
|
807
|
+
def channel_pool
|
808
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
809
|
+
end
|
810
|
+
|
802
811
|
##
|
803
812
|
# Configuration RPC class for the ConversationDatasets API.
|
804
813
|
#
|