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
@@ -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
|
#
|
@@ -191,6 +191,26 @@ module Google
|
|
191
191
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::V2::Environment>]
|
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::Environments::Rest::Client.new
|
200
|
+
#
|
201
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
202
|
+
# request = Google::Cloud::Dialogflow::V2::ListEnvironmentsRequest.new
|
203
|
+
#
|
204
|
+
# # Call the list_environments method.
|
205
|
+
# result = client.list_environments request
|
206
|
+
#
|
207
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
208
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
209
|
+
# result.each do |item|
|
210
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::V2::Environment.
|
211
|
+
# p item
|
212
|
+
# end
|
213
|
+
#
|
194
214
|
def list_environments request, options = nil
|
195
215
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
196
216
|
|
@@ -261,6 +281,22 @@ module Google
|
|
261
281
|
# @return [::Google::Cloud::Dialogflow::V2::Environment]
|
262
282
|
#
|
263
283
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
284
|
+
#
|
285
|
+
# @example Basic example
|
286
|
+
# require "google/cloud/dialogflow/v2"
|
287
|
+
#
|
288
|
+
# # Create a client object. The client can be reused for multiple calls.
|
289
|
+
# client = Google::Cloud::Dialogflow::V2::Environments::Rest::Client.new
|
290
|
+
#
|
291
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
292
|
+
# request = Google::Cloud::Dialogflow::V2::GetEnvironmentRequest.new
|
293
|
+
#
|
294
|
+
# # Call the get_environment method.
|
295
|
+
# result = client.get_environment request
|
296
|
+
#
|
297
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::Environment.
|
298
|
+
# p result
|
299
|
+
#
|
264
300
|
def get_environment request, options = nil
|
265
301
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
266
302
|
|
@@ -331,6 +367,22 @@ module Google
|
|
331
367
|
# @return [::Google::Cloud::Dialogflow::V2::Environment]
|
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::Environments::Rest::Client.new
|
376
|
+
#
|
377
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
378
|
+
# request = Google::Cloud::Dialogflow::V2::CreateEnvironmentRequest.new
|
379
|
+
#
|
380
|
+
# # Call the create_environment method.
|
381
|
+
# result = client.create_environment request
|
382
|
+
#
|
383
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::Environment.
|
384
|
+
# p result
|
385
|
+
#
|
334
386
|
def create_environment request, options = nil
|
335
387
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
336
388
|
|
@@ -411,6 +463,22 @@ module Google
|
|
411
463
|
# @return [::Google::Cloud::Dialogflow::V2::Environment]
|
412
464
|
#
|
413
465
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
466
|
+
#
|
467
|
+
# @example Basic example
|
468
|
+
# require "google/cloud/dialogflow/v2"
|
469
|
+
#
|
470
|
+
# # Create a client object. The client can be reused for multiple calls.
|
471
|
+
# client = Google::Cloud::Dialogflow::V2::Environments::Rest::Client.new
|
472
|
+
#
|
473
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
474
|
+
# request = Google::Cloud::Dialogflow::V2::UpdateEnvironmentRequest.new
|
475
|
+
#
|
476
|
+
# # Call the update_environment method.
|
477
|
+
# result = client.update_environment request
|
478
|
+
#
|
479
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::Environment.
|
480
|
+
# p result
|
481
|
+
#
|
414
482
|
def update_environment request, options = nil
|
415
483
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
416
484
|
|
@@ -480,6 +548,22 @@ module Google
|
|
480
548
|
# @return [::Google::Protobuf::Empty]
|
481
549
|
#
|
482
550
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
551
|
+
#
|
552
|
+
# @example Basic example
|
553
|
+
# require "google/cloud/dialogflow/v2"
|
554
|
+
#
|
555
|
+
# # Create a client object. The client can be reused for multiple calls.
|
556
|
+
# client = Google::Cloud::Dialogflow::V2::Environments::Rest::Client.new
|
557
|
+
#
|
558
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
559
|
+
# request = Google::Cloud::Dialogflow::V2::DeleteEnvironmentRequest.new
|
560
|
+
#
|
561
|
+
# # Call the delete_environment method.
|
562
|
+
# result = client.delete_environment request
|
563
|
+
#
|
564
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
565
|
+
# p result
|
566
|
+
#
|
483
567
|
def delete_environment request, options = nil
|
484
568
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
485
569
|
|
@@ -554,6 +638,26 @@ module Google
|
|
554
638
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::V2::EnvironmentHistory::Entry>]
|
555
639
|
#
|
556
640
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
641
|
+
#
|
642
|
+
# @example Basic example
|
643
|
+
# require "google/cloud/dialogflow/v2"
|
644
|
+
#
|
645
|
+
# # Create a client object. The client can be reused for multiple calls.
|
646
|
+
# client = Google::Cloud::Dialogflow::V2::Environments::Rest::Client.new
|
647
|
+
#
|
648
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
649
|
+
# request = Google::Cloud::Dialogflow::V2::GetEnvironmentHistoryRequest.new
|
650
|
+
#
|
651
|
+
# # Call the get_environment_history method.
|
652
|
+
# result = client.get_environment_history request
|
653
|
+
#
|
654
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
655
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
656
|
+
# result.each do |item|
|
657
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::V2::EnvironmentHistory::Entry.
|
658
|
+
# p item
|
659
|
+
# end
|
660
|
+
#
|
557
661
|
def get_environment_history request, options = nil
|
558
662
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
559
663
|
|
@@ -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
|
|
@@ -456,6 +457,14 @@ module Google
|
|
456
457
|
end
|
457
458
|
end
|
458
459
|
|
460
|
+
##
|
461
|
+
# Configuration for the channel pool
|
462
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
463
|
+
#
|
464
|
+
def channel_pool
|
465
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
466
|
+
end
|
467
|
+
|
459
468
|
##
|
460
469
|
# Configuration RPC class for the Fulfillments API.
|
461
470
|
#
|
@@ -183,6 +183,22 @@ module Google
|
|
183
183
|
# @return [::Google::Cloud::Dialogflow::V2::Fulfillment]
|
184
184
|
#
|
185
185
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
186
|
+
#
|
187
|
+
# @example Basic example
|
188
|
+
# require "google/cloud/dialogflow/v2"
|
189
|
+
#
|
190
|
+
# # Create a client object. The client can be reused for multiple calls.
|
191
|
+
# client = Google::Cloud::Dialogflow::V2::Fulfillments::Rest::Client.new
|
192
|
+
#
|
193
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
194
|
+
# request = Google::Cloud::Dialogflow::V2::GetFulfillmentRequest.new
|
195
|
+
#
|
196
|
+
# # Call the get_fulfillment method.
|
197
|
+
# result = client.get_fulfillment request
|
198
|
+
#
|
199
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::Fulfillment.
|
200
|
+
# p result
|
201
|
+
#
|
186
202
|
def get_fulfillment request, options = nil
|
187
203
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
188
204
|
|
@@ -248,6 +264,22 @@ module Google
|
|
248
264
|
# @return [::Google::Cloud::Dialogflow::V2::Fulfillment]
|
249
265
|
#
|
250
266
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
267
|
+
#
|
268
|
+
# @example Basic example
|
269
|
+
# require "google/cloud/dialogflow/v2"
|
270
|
+
#
|
271
|
+
# # Create a client object. The client can be reused for multiple calls.
|
272
|
+
# client = Google::Cloud::Dialogflow::V2::Fulfillments::Rest::Client.new
|
273
|
+
#
|
274
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
275
|
+
# request = Google::Cloud::Dialogflow::V2::UpdateFulfillmentRequest.new
|
276
|
+
#
|
277
|
+
# # Call the update_fulfillment method.
|
278
|
+
# result = client.update_fulfillment request
|
279
|
+
#
|
280
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::Fulfillment.
|
281
|
+
# p result
|
282
|
+
#
|
251
283
|
def update_fulfillment request, options = nil
|
252
284
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
253
285
|
|
@@ -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
|
|
@@ -1024,6 +1025,14 @@ module Google
|
|
1024
1025
|
end
|
1025
1026
|
end
|
1026
1027
|
|
1028
|
+
##
|
1029
|
+
# Configuration for the channel pool
|
1030
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
1031
|
+
#
|
1032
|
+
def channel_pool
|
1033
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
1034
|
+
end
|
1035
|
+
|
1027
1036
|
##
|
1028
1037
|
# Configuration RPC class for the Intents API.
|
1029
1038
|
#
|
@@ -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
|
#
|
@@ -217,6 +217,26 @@ module Google
|
|
217
217
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::V2::Intent>]
|
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::Intents::Rest::Client.new
|
226
|
+
#
|
227
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
228
|
+
# request = Google::Cloud::Dialogflow::V2::ListIntentsRequest.new
|
229
|
+
#
|
230
|
+
# # Call the list_intents method.
|
231
|
+
# result = client.list_intents request
|
232
|
+
#
|
233
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
234
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
235
|
+
# result.each do |item|
|
236
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::V2::Intent.
|
237
|
+
# p item
|
238
|
+
# end
|
239
|
+
#
|
220
240
|
def list_intents request, options = nil
|
221
241
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
222
242
|
|
@@ -289,6 +309,22 @@ module Google
|
|
289
309
|
# @return [::Google::Cloud::Dialogflow::V2::Intent]
|
290
310
|
#
|
291
311
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
312
|
+
#
|
313
|
+
# @example Basic example
|
314
|
+
# require "google/cloud/dialogflow/v2"
|
315
|
+
#
|
316
|
+
# # Create a client object. The client can be reused for multiple calls.
|
317
|
+
# client = Google::Cloud::Dialogflow::V2::Intents::Rest::Client.new
|
318
|
+
#
|
319
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
320
|
+
# request = Google::Cloud::Dialogflow::V2::GetIntentRequest.new
|
321
|
+
#
|
322
|
+
# # Call the get_intent method.
|
323
|
+
# result = client.get_intent request
|
324
|
+
#
|
325
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::Intent.
|
326
|
+
# p result
|
327
|
+
#
|
292
328
|
def get_intent request, options = nil
|
293
329
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
294
330
|
|
@@ -366,6 +402,22 @@ module Google
|
|
366
402
|
# @return [::Google::Cloud::Dialogflow::V2::Intent]
|
367
403
|
#
|
368
404
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
405
|
+
#
|
406
|
+
# @example Basic example
|
407
|
+
# require "google/cloud/dialogflow/v2"
|
408
|
+
#
|
409
|
+
# # Create a client object. The client can be reused for multiple calls.
|
410
|
+
# client = Google::Cloud::Dialogflow::V2::Intents::Rest::Client.new
|
411
|
+
#
|
412
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
413
|
+
# request = Google::Cloud::Dialogflow::V2::CreateIntentRequest.new
|
414
|
+
#
|
415
|
+
# # Call the create_intent method.
|
416
|
+
# result = client.create_intent request
|
417
|
+
#
|
418
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::Intent.
|
419
|
+
# p result
|
420
|
+
#
|
369
421
|
def create_intent request, options = nil
|
370
422
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
371
423
|
|
@@ -442,6 +494,22 @@ module Google
|
|
442
494
|
# @return [::Google::Cloud::Dialogflow::V2::Intent]
|
443
495
|
#
|
444
496
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
497
|
+
#
|
498
|
+
# @example Basic example
|
499
|
+
# require "google/cloud/dialogflow/v2"
|
500
|
+
#
|
501
|
+
# # Create a client object. The client can be reused for multiple calls.
|
502
|
+
# client = Google::Cloud::Dialogflow::V2::Intents::Rest::Client.new
|
503
|
+
#
|
504
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
505
|
+
# request = Google::Cloud::Dialogflow::V2::UpdateIntentRequest.new
|
506
|
+
#
|
507
|
+
# # Call the update_intent method.
|
508
|
+
# result = client.update_intent request
|
509
|
+
#
|
510
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::Intent.
|
511
|
+
# p result
|
512
|
+
#
|
445
513
|
def update_intent request, options = nil
|
446
514
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
447
515
|
|
@@ -510,6 +578,22 @@ module Google
|
|
510
578
|
# @return [::Google::Protobuf::Empty]
|
511
579
|
#
|
512
580
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
581
|
+
#
|
582
|
+
# @example Basic example
|
583
|
+
# require "google/cloud/dialogflow/v2"
|
584
|
+
#
|
585
|
+
# # Create a client object. The client can be reused for multiple calls.
|
586
|
+
# client = Google::Cloud::Dialogflow::V2::Intents::Rest::Client.new
|
587
|
+
#
|
588
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
589
|
+
# request = Google::Cloud::Dialogflow::V2::DeleteIntentRequest.new
|
590
|
+
#
|
591
|
+
# # Call the delete_intent method.
|
592
|
+
# result = client.delete_intent request
|
593
|
+
#
|
594
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
595
|
+
# p result
|
596
|
+
#
|
513
597
|
def delete_intent request, options = nil
|
514
598
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
515
599
|
|
@@ -602,6 +686,29 @@ module Google
|
|
602
686
|
# @return [::Gapic::Operation]
|
603
687
|
#
|
604
688
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
689
|
+
#
|
690
|
+
# @example Basic example
|
691
|
+
# require "google/cloud/dialogflow/v2"
|
692
|
+
#
|
693
|
+
# # Create a client object. The client can be reused for multiple calls.
|
694
|
+
# client = Google::Cloud::Dialogflow::V2::Intents::Rest::Client.new
|
695
|
+
#
|
696
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
697
|
+
# request = Google::Cloud::Dialogflow::V2::BatchUpdateIntentsRequest.new
|
698
|
+
#
|
699
|
+
# # Call the batch_update_intents method.
|
700
|
+
# result = client.batch_update_intents request
|
701
|
+
#
|
702
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
703
|
+
# # check the status of an operation, cancel it, or wait for results.
|
704
|
+
# # Here is how to wait for a response.
|
705
|
+
# result.wait_until_done! timeout: 60
|
706
|
+
# if result.response?
|
707
|
+
# p result.response
|
708
|
+
# else
|
709
|
+
# puts "No response received."
|
710
|
+
# end
|
711
|
+
#
|
605
712
|
def batch_update_intents request, options = nil
|
606
713
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
607
714
|
|
@@ -682,6 +789,29 @@ module Google
|
|
682
789
|
# @return [::Gapic::Operation]
|
683
790
|
#
|
684
791
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
792
|
+
#
|
793
|
+
# @example Basic example
|
794
|
+
# require "google/cloud/dialogflow/v2"
|
795
|
+
#
|
796
|
+
# # Create a client object. The client can be reused for multiple calls.
|
797
|
+
# client = Google::Cloud::Dialogflow::V2::Intents::Rest::Client.new
|
798
|
+
#
|
799
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
800
|
+
# request = Google::Cloud::Dialogflow::V2::BatchDeleteIntentsRequest.new
|
801
|
+
#
|
802
|
+
# # Call the batch_delete_intents method.
|
803
|
+
# result = client.batch_delete_intents request
|
804
|
+
#
|
805
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
806
|
+
# # check the status of an operation, cancel it, or wait for results.
|
807
|
+
# # Here is how to wait for a response.
|
808
|
+
# result.wait_until_done! timeout: 60
|
809
|
+
# if result.response?
|
810
|
+
# p result.response
|
811
|
+
# else
|
812
|
+
# puts "No response received."
|
813
|
+
# end
|
814
|
+
#
|
685
815
|
def batch_delete_intents request, options = nil
|
686
816
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
687
817
|
|
@@ -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
|
|