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
@@ -225,6 +225,26 @@ module Google
|
|
225
225
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::V2::Document>]
|
226
226
|
#
|
227
227
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
228
|
+
#
|
229
|
+
# @example Basic example
|
230
|
+
# require "google/cloud/dialogflow/v2"
|
231
|
+
#
|
232
|
+
# # Create a client object. The client can be reused for multiple calls.
|
233
|
+
# client = Google::Cloud::Dialogflow::V2::Documents::Rest::Client.new
|
234
|
+
#
|
235
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
236
|
+
# request = Google::Cloud::Dialogflow::V2::ListDocumentsRequest.new
|
237
|
+
#
|
238
|
+
# # Call the list_documents method.
|
239
|
+
# result = client.list_documents request
|
240
|
+
#
|
241
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
242
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
243
|
+
# result.each do |item|
|
244
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::V2::Document.
|
245
|
+
# p item
|
246
|
+
# end
|
247
|
+
#
|
228
248
|
def list_documents request, options = nil
|
229
249
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
230
250
|
|
@@ -290,6 +310,22 @@ module Google
|
|
290
310
|
# @return [::Google::Cloud::Dialogflow::V2::Document]
|
291
311
|
#
|
292
312
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
313
|
+
#
|
314
|
+
# @example Basic example
|
315
|
+
# require "google/cloud/dialogflow/v2"
|
316
|
+
#
|
317
|
+
# # Create a client object. The client can be reused for multiple calls.
|
318
|
+
# client = Google::Cloud::Dialogflow::V2::Documents::Rest::Client.new
|
319
|
+
#
|
320
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
321
|
+
# request = Google::Cloud::Dialogflow::V2::GetDocumentRequest.new
|
322
|
+
#
|
323
|
+
# # Call the get_document method.
|
324
|
+
# result = client.get_document request
|
325
|
+
#
|
326
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::Document.
|
327
|
+
# p result
|
328
|
+
#
|
293
329
|
def get_document request, options = nil
|
294
330
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
295
331
|
|
@@ -364,6 +400,29 @@ module Google
|
|
364
400
|
# @return [::Gapic::Operation]
|
365
401
|
#
|
366
402
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
403
|
+
#
|
404
|
+
# @example Basic example
|
405
|
+
# require "google/cloud/dialogflow/v2"
|
406
|
+
#
|
407
|
+
# # Create a client object. The client can be reused for multiple calls.
|
408
|
+
# client = Google::Cloud::Dialogflow::V2::Documents::Rest::Client.new
|
409
|
+
#
|
410
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
411
|
+
# request = Google::Cloud::Dialogflow::V2::CreateDocumentRequest.new
|
412
|
+
#
|
413
|
+
# # Call the create_document method.
|
414
|
+
# result = client.create_document request
|
415
|
+
#
|
416
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
417
|
+
# # check the status of an operation, cancel it, or wait for results.
|
418
|
+
# # Here is how to wait for a response.
|
419
|
+
# result.wait_until_done! timeout: 60
|
420
|
+
# if result.response?
|
421
|
+
# p result.response
|
422
|
+
# else
|
423
|
+
# puts "No response received."
|
424
|
+
# end
|
425
|
+
#
|
367
426
|
def create_document request, options = nil
|
368
427
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
369
428
|
|
@@ -452,6 +511,29 @@ module Google
|
|
452
511
|
# @return [::Gapic::Operation]
|
453
512
|
#
|
454
513
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
514
|
+
#
|
515
|
+
# @example Basic example
|
516
|
+
# require "google/cloud/dialogflow/v2"
|
517
|
+
#
|
518
|
+
# # Create a client object. The client can be reused for multiple calls.
|
519
|
+
# client = Google::Cloud::Dialogflow::V2::Documents::Rest::Client.new
|
520
|
+
#
|
521
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
522
|
+
# request = Google::Cloud::Dialogflow::V2::ImportDocumentsRequest.new
|
523
|
+
#
|
524
|
+
# # Call the import_documents method.
|
525
|
+
# result = client.import_documents request
|
526
|
+
#
|
527
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
528
|
+
# # check the status of an operation, cancel it, or wait for results.
|
529
|
+
# # Here is how to wait for a response.
|
530
|
+
# result.wait_until_done! timeout: 60
|
531
|
+
# if result.response?
|
532
|
+
# p result.response
|
533
|
+
# else
|
534
|
+
# puts "No response received."
|
535
|
+
# end
|
536
|
+
#
|
455
537
|
def import_documents request, options = nil
|
456
538
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
457
539
|
|
@@ -526,6 +608,29 @@ module Google
|
|
526
608
|
# @return [::Gapic::Operation]
|
527
609
|
#
|
528
610
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
611
|
+
#
|
612
|
+
# @example Basic example
|
613
|
+
# require "google/cloud/dialogflow/v2"
|
614
|
+
#
|
615
|
+
# # Create a client object. The client can be reused for multiple calls.
|
616
|
+
# client = Google::Cloud::Dialogflow::V2::Documents::Rest::Client.new
|
617
|
+
#
|
618
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
619
|
+
# request = Google::Cloud::Dialogflow::V2::DeleteDocumentRequest.new
|
620
|
+
#
|
621
|
+
# # Call the delete_document method.
|
622
|
+
# result = client.delete_document request
|
623
|
+
#
|
624
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
625
|
+
# # check the status of an operation, cancel it, or wait for results.
|
626
|
+
# # Here is how to wait for a response.
|
627
|
+
# result.wait_until_done! timeout: 60
|
628
|
+
# if result.response?
|
629
|
+
# p result.response
|
630
|
+
# else
|
631
|
+
# puts "No response received."
|
632
|
+
# end
|
633
|
+
#
|
529
634
|
def delete_document request, options = nil
|
530
635
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
531
636
|
|
@@ -601,6 +706,29 @@ module Google
|
|
601
706
|
# @return [::Gapic::Operation]
|
602
707
|
#
|
603
708
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
709
|
+
#
|
710
|
+
# @example Basic example
|
711
|
+
# require "google/cloud/dialogflow/v2"
|
712
|
+
#
|
713
|
+
# # Create a client object. The client can be reused for multiple calls.
|
714
|
+
# client = Google::Cloud::Dialogflow::V2::Documents::Rest::Client.new
|
715
|
+
#
|
716
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
717
|
+
# request = Google::Cloud::Dialogflow::V2::UpdateDocumentRequest.new
|
718
|
+
#
|
719
|
+
# # Call the update_document method.
|
720
|
+
# result = client.update_document request
|
721
|
+
#
|
722
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
723
|
+
# # check the status of an operation, cancel it, or wait for results.
|
724
|
+
# # Here is how to wait for a response.
|
725
|
+
# result.wait_until_done! timeout: 60
|
726
|
+
# if result.response?
|
727
|
+
# p result.response
|
728
|
+
# else
|
729
|
+
# puts "No response received."
|
730
|
+
# end
|
731
|
+
#
|
604
732
|
def update_document request, options = nil
|
605
733
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
606
734
|
|
@@ -692,6 +820,29 @@ module Google
|
|
692
820
|
# @return [::Gapic::Operation]
|
693
821
|
#
|
694
822
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
823
|
+
#
|
824
|
+
# @example Basic example
|
825
|
+
# require "google/cloud/dialogflow/v2"
|
826
|
+
#
|
827
|
+
# # Create a client object. The client can be reused for multiple calls.
|
828
|
+
# client = Google::Cloud::Dialogflow::V2::Documents::Rest::Client.new
|
829
|
+
#
|
830
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
831
|
+
# request = Google::Cloud::Dialogflow::V2::ReloadDocumentRequest.new
|
832
|
+
#
|
833
|
+
# # Call the reload_document method.
|
834
|
+
# result = client.reload_document request
|
835
|
+
#
|
836
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
837
|
+
# # check the status of an operation, cancel it, or wait for results.
|
838
|
+
# # Here is how to wait for a response.
|
839
|
+
# result.wait_until_done! timeout: 60
|
840
|
+
# if result.response?
|
841
|
+
# p result.response
|
842
|
+
# else
|
843
|
+
# puts "No response received."
|
844
|
+
# end
|
845
|
+
#
|
695
846
|
def reload_document request, options = nil
|
696
847
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
697
848
|
|
@@ -774,6 +925,29 @@ module Google
|
|
774
925
|
# @return [::Gapic::Operation]
|
775
926
|
#
|
776
927
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
928
|
+
#
|
929
|
+
# @example Basic example
|
930
|
+
# require "google/cloud/dialogflow/v2"
|
931
|
+
#
|
932
|
+
# # Create a client object. The client can be reused for multiple calls.
|
933
|
+
# client = Google::Cloud::Dialogflow::V2::Documents::Rest::Client.new
|
934
|
+
#
|
935
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
936
|
+
# request = Google::Cloud::Dialogflow::V2::ExportDocumentRequest.new
|
937
|
+
#
|
938
|
+
# # Call the export_document method.
|
939
|
+
# result = client.export_document request
|
940
|
+
#
|
941
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
942
|
+
# # check the status of an operation, cancel it, or wait for results.
|
943
|
+
# # Here is how to wait for a response.
|
944
|
+
# result.wait_until_done! timeout: 60
|
945
|
+
# if result.response?
|
946
|
+
# p result.response
|
947
|
+
# else
|
948
|
+
# puts "No response received."
|
949
|
+
# end
|
950
|
+
#
|
777
951
|
def export_document request, options = nil
|
778
952
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
779
953
|
|
@@ -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
|
|