google-cloud-dialogflow-v2 0.27.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_record_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +10 -1
- data/lib/google/cloud/dialogflow/v2/answer_records/paths.rb +126 -0
- data/lib/google/cloud/dialogflow/v2/answer_records/rest/client.rb +36 -0
- data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +1 -1
- 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_pb.rb +8 -1
- data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +2 -1
- 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/conversation_services_pb.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/conversations/client.rb +127 -1
- data/lib/google/cloud/dialogflow/v2/conversations/rest/client.rb +230 -0
- data/lib/google/cloud/dialogflow/v2/conversations/rest/service_stub.rb +84 -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/participant_pb.rb +4 -1
- data/lib/google/cloud/dialogflow/v2/participants/client.rb +13 -2
- data/lib/google/cloud/dialogflow/v2/participants/rest/client.rb +135 -1
- 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/session_pb.rb +1 -1
- 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
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/cloud/dialogflow/v2/answer_record.rb +25 -0
- data/proto_docs/google/cloud/dialogflow/v2/audio_config.rb +4 -0
- data/proto_docs/google/cloud/dialogflow/v2/conversation.rb +99 -0
- data/proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb +26 -1
- data/proto_docs/google/cloud/dialogflow/v2/participant.rb +53 -1
- data/proto_docs/google/cloud/dialogflow/v2/session.rb +4 -1
- metadata +5 -5
@@ -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
|
|
@@ -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
|
|
@@ -1357,6 +1358,14 @@ module Google
|
|
1357
1358
|
end
|
1358
1359
|
end
|
1359
1360
|
|
1361
|
+
##
|
1362
|
+
# Configuration for the channel pool
|
1363
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
1364
|
+
#
|
1365
|
+
def channel_pool
|
1366
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
1367
|
+
end
|
1368
|
+
|
1360
1369
|
##
|
1361
1370
|
# Configuration RPC class for the EntityTypes API.
|
1362
1371
|
#
|
@@ -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
|
#
|
@@ -207,6 +207,26 @@ module Google
|
|
207
207
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::V2::EntityType>]
|
208
208
|
#
|
209
209
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
210
|
+
#
|
211
|
+
# @example Basic example
|
212
|
+
# require "google/cloud/dialogflow/v2"
|
213
|
+
#
|
214
|
+
# # Create a client object. The client can be reused for multiple calls.
|
215
|
+
# client = Google::Cloud::Dialogflow::V2::EntityTypes::Rest::Client.new
|
216
|
+
#
|
217
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
218
|
+
# request = Google::Cloud::Dialogflow::V2::ListEntityTypesRequest.new
|
219
|
+
#
|
220
|
+
# # Call the list_entity_types method.
|
221
|
+
# result = client.list_entity_types request
|
222
|
+
#
|
223
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
224
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
225
|
+
# result.each do |item|
|
226
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::V2::EntityType.
|
227
|
+
# p item
|
228
|
+
# end
|
229
|
+
#
|
210
230
|
def list_entity_types request, options = nil
|
211
231
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
212
232
|
|
@@ -277,6 +297,22 @@ module Google
|
|
277
297
|
# @return [::Google::Cloud::Dialogflow::V2::EntityType]
|
278
298
|
#
|
279
299
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
300
|
+
#
|
301
|
+
# @example Basic example
|
302
|
+
# require "google/cloud/dialogflow/v2"
|
303
|
+
#
|
304
|
+
# # Create a client object. The client can be reused for multiple calls.
|
305
|
+
# client = Google::Cloud::Dialogflow::V2::EntityTypes::Rest::Client.new
|
306
|
+
#
|
307
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
308
|
+
# request = Google::Cloud::Dialogflow::V2::GetEntityTypeRequest.new
|
309
|
+
#
|
310
|
+
# # Call the get_entity_type method.
|
311
|
+
# result = client.get_entity_type request
|
312
|
+
#
|
313
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::EntityType.
|
314
|
+
# p result
|
315
|
+
#
|
280
316
|
def get_entity_type request, options = nil
|
281
317
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
282
318
|
|
@@ -352,6 +388,22 @@ module Google
|
|
352
388
|
# @return [::Google::Cloud::Dialogflow::V2::EntityType]
|
353
389
|
#
|
354
390
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
391
|
+
#
|
392
|
+
# @example Basic example
|
393
|
+
# require "google/cloud/dialogflow/v2"
|
394
|
+
#
|
395
|
+
# # Create a client object. The client can be reused for multiple calls.
|
396
|
+
# client = Google::Cloud::Dialogflow::V2::EntityTypes::Rest::Client.new
|
397
|
+
#
|
398
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
399
|
+
# request = Google::Cloud::Dialogflow::V2::CreateEntityTypeRequest.new
|
400
|
+
#
|
401
|
+
# # Call the create_entity_type method.
|
402
|
+
# result = client.create_entity_type request
|
403
|
+
#
|
404
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::EntityType.
|
405
|
+
# p result
|
406
|
+
#
|
355
407
|
def create_entity_type request, options = nil
|
356
408
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
357
409
|
|
@@ -426,6 +478,22 @@ module Google
|
|
426
478
|
# @return [::Google::Cloud::Dialogflow::V2::EntityType]
|
427
479
|
#
|
428
480
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
481
|
+
#
|
482
|
+
# @example Basic example
|
483
|
+
# require "google/cloud/dialogflow/v2"
|
484
|
+
#
|
485
|
+
# # Create a client object. The client can be reused for multiple calls.
|
486
|
+
# client = Google::Cloud::Dialogflow::V2::EntityTypes::Rest::Client.new
|
487
|
+
#
|
488
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
489
|
+
# request = Google::Cloud::Dialogflow::V2::UpdateEntityTypeRequest.new
|
490
|
+
#
|
491
|
+
# # Call the update_entity_type method.
|
492
|
+
# result = client.update_entity_type request
|
493
|
+
#
|
494
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::EntityType.
|
495
|
+
# p result
|
496
|
+
#
|
429
497
|
def update_entity_type request, options = nil
|
430
498
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
431
499
|
|
@@ -493,6 +561,22 @@ module Google
|
|
493
561
|
# @return [::Google::Protobuf::Empty]
|
494
562
|
#
|
495
563
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
564
|
+
#
|
565
|
+
# @example Basic example
|
566
|
+
# require "google/cloud/dialogflow/v2"
|
567
|
+
#
|
568
|
+
# # Create a client object. The client can be reused for multiple calls.
|
569
|
+
# client = Google::Cloud::Dialogflow::V2::EntityTypes::Rest::Client.new
|
570
|
+
#
|
571
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
572
|
+
# request = Google::Cloud::Dialogflow::V2::DeleteEntityTypeRequest.new
|
573
|
+
#
|
574
|
+
# # Call the delete_entity_type method.
|
575
|
+
# result = client.delete_entity_type request
|
576
|
+
#
|
577
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
578
|
+
# p result
|
579
|
+
#
|
496
580
|
def delete_entity_type request, options = nil
|
497
581
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
498
582
|
|
@@ -584,6 +668,29 @@ module Google
|
|
584
668
|
# @return [::Gapic::Operation]
|
585
669
|
#
|
586
670
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
671
|
+
#
|
672
|
+
# @example Basic example
|
673
|
+
# require "google/cloud/dialogflow/v2"
|
674
|
+
#
|
675
|
+
# # Create a client object. The client can be reused for multiple calls.
|
676
|
+
# client = Google::Cloud::Dialogflow::V2::EntityTypes::Rest::Client.new
|
677
|
+
#
|
678
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
679
|
+
# request = Google::Cloud::Dialogflow::V2::BatchUpdateEntityTypesRequest.new
|
680
|
+
#
|
681
|
+
# # Call the batch_update_entity_types method.
|
682
|
+
# result = client.batch_update_entity_types request
|
683
|
+
#
|
684
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
685
|
+
# # check the status of an operation, cancel it, or wait for results.
|
686
|
+
# # Here is how to wait for a response.
|
687
|
+
# result.wait_until_done! timeout: 60
|
688
|
+
# if result.response?
|
689
|
+
# p result.response
|
690
|
+
# else
|
691
|
+
# puts "No response received."
|
692
|
+
# end
|
693
|
+
#
|
587
694
|
def batch_update_entity_types request, options = nil
|
588
695
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
589
696
|
|
@@ -664,6 +771,29 @@ module Google
|
|
664
771
|
# @return [::Gapic::Operation]
|
665
772
|
#
|
666
773
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
774
|
+
#
|
775
|
+
# @example Basic example
|
776
|
+
# require "google/cloud/dialogflow/v2"
|
777
|
+
#
|
778
|
+
# # Create a client object. The client can be reused for multiple calls.
|
779
|
+
# client = Google::Cloud::Dialogflow::V2::EntityTypes::Rest::Client.new
|
780
|
+
#
|
781
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
782
|
+
# request = Google::Cloud::Dialogflow::V2::BatchDeleteEntityTypesRequest.new
|
783
|
+
#
|
784
|
+
# # Call the batch_delete_entity_types method.
|
785
|
+
# result = client.batch_delete_entity_types request
|
786
|
+
#
|
787
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
788
|
+
# # check the status of an operation, cancel it, or wait for results.
|
789
|
+
# # Here is how to wait for a response.
|
790
|
+
# result.wait_until_done! timeout: 60
|
791
|
+
# if result.response?
|
792
|
+
# p result.response
|
793
|
+
# else
|
794
|
+
# puts "No response received."
|
795
|
+
# end
|
796
|
+
#
|
667
797
|
def batch_delete_entity_types request, options = nil
|
668
798
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
669
799
|
|
@@ -749,6 +879,29 @@ module Google
|
|
749
879
|
# @return [::Gapic::Operation]
|
750
880
|
#
|
751
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::EntityTypes::Rest::Client.new
|
888
|
+
#
|
889
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
890
|
+
# request = Google::Cloud::Dialogflow::V2::BatchCreateEntitiesRequest.new
|
891
|
+
#
|
892
|
+
# # Call the batch_create_entities method.
|
893
|
+
# result = client.batch_create_entities request
|
894
|
+
#
|
895
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
896
|
+
# # check the status of an operation, cancel it, or wait for results.
|
897
|
+
# # Here is how to wait for a response.
|
898
|
+
# result.wait_until_done! timeout: 60
|
899
|
+
# if result.response?
|
900
|
+
# p result.response
|
901
|
+
# else
|
902
|
+
# puts "No response received."
|
903
|
+
# end
|
904
|
+
#
|
752
905
|
def batch_create_entities request, options = nil
|
753
906
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
754
907
|
|
@@ -838,6 +991,29 @@ module Google
|
|
838
991
|
# @return [::Gapic::Operation]
|
839
992
|
#
|
840
993
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
994
|
+
#
|
995
|
+
# @example Basic example
|
996
|
+
# require "google/cloud/dialogflow/v2"
|
997
|
+
#
|
998
|
+
# # Create a client object. The client can be reused for multiple calls.
|
999
|
+
# client = Google::Cloud::Dialogflow::V2::EntityTypes::Rest::Client.new
|
1000
|
+
#
|
1001
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1002
|
+
# request = Google::Cloud::Dialogflow::V2::BatchUpdateEntitiesRequest.new
|
1003
|
+
#
|
1004
|
+
# # Call the batch_update_entities method.
|
1005
|
+
# result = client.batch_update_entities request
|
1006
|
+
#
|
1007
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1008
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1009
|
+
# # Here is how to wait for a response.
|
1010
|
+
# result.wait_until_done! timeout: 60
|
1011
|
+
# if result.response?
|
1012
|
+
# p result.response
|
1013
|
+
# else
|
1014
|
+
# puts "No response received."
|
1015
|
+
# end
|
1016
|
+
#
|
841
1017
|
def batch_update_entities request, options = nil
|
842
1018
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
843
1019
|
|
@@ -925,6 +1101,29 @@ module Google
|
|
925
1101
|
# @return [::Gapic::Operation]
|
926
1102
|
#
|
927
1103
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1104
|
+
#
|
1105
|
+
# @example Basic example
|
1106
|
+
# require "google/cloud/dialogflow/v2"
|
1107
|
+
#
|
1108
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1109
|
+
# client = Google::Cloud::Dialogflow::V2::EntityTypes::Rest::Client.new
|
1110
|
+
#
|
1111
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1112
|
+
# request = Google::Cloud::Dialogflow::V2::BatchDeleteEntitiesRequest.new
|
1113
|
+
#
|
1114
|
+
# # Call the batch_delete_entities method.
|
1115
|
+
# result = client.batch_delete_entities request
|
1116
|
+
#
|
1117
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1118
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1119
|
+
# # Here is how to wait for a response.
|
1120
|
+
# result.wait_until_done! timeout: 60
|
1121
|
+
# if result.response?
|
1122
|
+
# p result.response
|
1123
|
+
# else
|
1124
|
+
# puts "No response received."
|
1125
|
+
# end
|
1126
|
+
#
|
928
1127
|
def batch_delete_entities request, options = nil
|
929
1128
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
930
1129
|
|
@@ -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
|
|
@@ -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
|
|
@@ -863,6 +864,14 @@ module Google
|
|
863
864
|
end
|
864
865
|
end
|
865
866
|
|
867
|
+
##
|
868
|
+
# Configuration for the channel pool
|
869
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
870
|
+
#
|
871
|
+
def channel_pool
|
872
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
873
|
+
end
|
874
|
+
|
866
875
|
##
|
867
876
|
# Configuration RPC class for the Environments API.
|
868
877
|
#
|