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.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/dialogflow/v2/agents/client.rb +10 -1
  3. data/lib/google/cloud/dialogflow/v2/agents/operations.rb +10 -1
  4. data/lib/google/cloud/dialogflow/v2/agents/rest/client.rb +176 -0
  5. data/lib/google/cloud/dialogflow/v2/agents/rest/operations.rb +75 -0
  6. data/lib/google/cloud/dialogflow/v2/answer_record_pb.rb +2 -1
  7. data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +10 -1
  8. data/lib/google/cloud/dialogflow/v2/answer_records/paths.rb +126 -0
  9. data/lib/google/cloud/dialogflow/v2/answer_records/rest/client.rb +36 -0
  10. data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +1 -1
  11. data/lib/google/cloud/dialogflow/v2/contexts/client.rb +10 -1
  12. data/lib/google/cloud/dialogflow/v2/contexts/rest/client.rb +100 -0
  13. data/lib/google/cloud/dialogflow/v2/conversation_datasets/client.rb +10 -1
  14. data/lib/google/cloud/dialogflow/v2/conversation_datasets/operations.rb +10 -1
  15. data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/client.rb +105 -0
  16. data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/operations.rb +75 -0
  17. data/lib/google/cloud/dialogflow/v2/conversation_models/client.rb +10 -1
  18. data/lib/google/cloud/dialogflow/v2/conversation_models/operations.rb +10 -1
  19. data/lib/google/cloud/dialogflow/v2/conversation_models/rest/client.rb +187 -0
  20. data/lib/google/cloud/dialogflow/v2/conversation_models/rest/operations.rb +75 -0
  21. data/lib/google/cloud/dialogflow/v2/conversation_pb.rb +8 -1
  22. data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +2 -1
  23. data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +10 -1
  24. data/lib/google/cloud/dialogflow/v2/conversation_profiles/operations.rb +10 -1
  25. data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/client.rb +130 -0
  26. data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/operations.rb +75 -0
  27. data/lib/google/cloud/dialogflow/v2/conversation_services_pb.rb +2 -0
  28. data/lib/google/cloud/dialogflow/v2/conversations/client.rb +127 -1
  29. data/lib/google/cloud/dialogflow/v2/conversations/rest/client.rb +230 -0
  30. data/lib/google/cloud/dialogflow/v2/conversations/rest/service_stub.rb +84 -0
  31. data/lib/google/cloud/dialogflow/v2/documents/client.rb +10 -1
  32. data/lib/google/cloud/dialogflow/v2/documents/operations.rb +10 -1
  33. data/lib/google/cloud/dialogflow/v2/documents/rest/client.rb +174 -0
  34. data/lib/google/cloud/dialogflow/v2/documents/rest/operations.rb +75 -0
  35. data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +10 -1
  36. data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +10 -1
  37. data/lib/google/cloud/dialogflow/v2/entity_types/rest/client.rb +199 -0
  38. data/lib/google/cloud/dialogflow/v2/entity_types/rest/operations.rb +75 -0
  39. data/lib/google/cloud/dialogflow/v2/environments/client.rb +10 -1
  40. data/lib/google/cloud/dialogflow/v2/environments/rest/client.rb +104 -0
  41. data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +10 -1
  42. data/lib/google/cloud/dialogflow/v2/fulfillments/rest/client.rb +32 -0
  43. data/lib/google/cloud/dialogflow/v2/intents/client.rb +10 -1
  44. data/lib/google/cloud/dialogflow/v2/intents/operations.rb +10 -1
  45. data/lib/google/cloud/dialogflow/v2/intents/rest/client.rb +130 -0
  46. data/lib/google/cloud/dialogflow/v2/intents/rest/operations.rb +75 -0
  47. data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +10 -1
  48. data/lib/google/cloud/dialogflow/v2/knowledge_bases/rest/client.rb +84 -0
  49. data/lib/google/cloud/dialogflow/v2/participant_pb.rb +4 -1
  50. data/lib/google/cloud/dialogflow/v2/participants/client.rb +13 -2
  51. data/lib/google/cloud/dialogflow/v2/participants/rest/client.rb +135 -1
  52. data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +10 -1
  53. data/lib/google/cloud/dialogflow/v2/session_entity_types/rest/client.rb +84 -0
  54. data/lib/google/cloud/dialogflow/v2/session_pb.rb +1 -1
  55. data/lib/google/cloud/dialogflow/v2/sessions/client.rb +10 -1
  56. data/lib/google/cloud/dialogflow/v2/sessions/rest/client.rb +16 -0
  57. data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
  58. data/lib/google/cloud/dialogflow/v2/versions/client.rb +10 -1
  59. data/lib/google/cloud/dialogflow/v2/versions/rest/client.rb +84 -0
  60. data/proto_docs/google/api/field_behavior.rb +14 -0
  61. data/proto_docs/google/cloud/dialogflow/v2/answer_record.rb +25 -0
  62. data/proto_docs/google/cloud/dialogflow/v2/audio_config.rb +4 -0
  63. data/proto_docs/google/cloud/dialogflow/v2/conversation.rb +99 -0
  64. data/proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb +26 -1
  65. data/proto_docs/google/cloud/dialogflow/v2/participant.rb +53 -1
  66. data/proto_docs/google/cloud/dialogflow/v2/session.rb +4 -1
  67. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f4ac21d9cd26d24a7e5e8fd00f7d7ea452fa4e821b104815375460ac914e415c
4
- data.tar.gz: b24d0241782d512313cc9af9811bd11f8c57b10284b2bf4b79eec7ee463c3177
3
+ metadata.gz: 683b7df63a41387881985f8d90368a402bb78080c4631dab8bcfa436de1cb8e7
4
+ data.tar.gz: c0007d4741b5f19ca1fcca97173b18f45c79fa4bf66b7269f55d76ea5f7b0242
5
5
  SHA512:
6
- metadata.gz: 5d5cc3414e6295707f7cf1035d4e2549e6768daeaaf05719e0ec4ca06aa8c402279a802f77be0288fad1c57b0b329db914d96043053067ba1314bd6d2e94f13e
7
- data.tar.gz: 4e3baaa120725cefbdfb1b997ab76e95ff912486d8a8d8867919d71364d2a4aed8268059fad963a07ccb3f6affcc91d748de9e55773d99f79b2bb4f2c18e1183
6
+ metadata.gz: bb464f53a6633924e449b30d73cf86b254078fd9228895893c4cfa4210960cf1d6499607f54e9c04f44bee5efc554bebcb6cb62e7fce95295df5da99e93b406c
7
+ data.tar.gz: 483b888cf9d2ce93f507d521460ebac121b6aef97df68f7afd73f802a639a09ac22dc0d2ee10163d613711c176041659c7c9acc3a78f404c23ec9d1b801e13c5
@@ -156,7 +156,8 @@ module Google
156
156
  credentials: credentials,
157
157
  endpoint: @config.endpoint,
158
158
  channel_args: @config.channel_args,
159
- interceptors: @config.interceptors
159
+ interceptors: @config.interceptors,
160
+ channel_pool_config: @config.channel_pool
160
161
  )
161
162
  end
162
163
 
@@ -1234,6 +1235,14 @@ module Google
1234
1235
  end
1235
1236
  end
1236
1237
 
1238
+ ##
1239
+ # Configuration for the channel pool
1240
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1241
+ #
1242
+ def channel_pool
1243
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1244
+ end
1245
+
1237
1246
  ##
1238
1247
  # Configuration RPC class for the Agents API.
1239
1248
  #
@@ -93,7 +93,8 @@ module Google
93
93
  credentials: credentials,
94
94
  endpoint: @config.endpoint,
95
95
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
96
+ interceptors: @config.interceptors,
97
+ channel_pool_config: @config.channel_pool
97
98
  )
98
99
 
99
100
  # Used by an LRO wrapper for some methods of this service
@@ -701,6 +702,14 @@ module Google
701
702
  end
702
703
  end
703
704
 
705
+ ##
706
+ # Configuration for the channel pool
707
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
708
+ #
709
+ def channel_pool
710
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
711
+ end
712
+
704
713
  ##
705
714
  # Configuration RPC class for the Operations API.
706
715
  #
@@ -196,6 +196,22 @@ module Google
196
196
  # @return [::Google::Cloud::Dialogflow::V2::Agent]
197
197
  #
198
198
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
199
+ #
200
+ # @example Basic example
201
+ # require "google/cloud/dialogflow/v2"
202
+ #
203
+ # # Create a client object. The client can be reused for multiple calls.
204
+ # client = Google::Cloud::Dialogflow::V2::Agents::Rest::Client.new
205
+ #
206
+ # # Create a request. To set request fields, pass in keyword arguments.
207
+ # request = Google::Cloud::Dialogflow::V2::GetAgentRequest.new
208
+ #
209
+ # # Call the get_agent method.
210
+ # result = client.get_agent request
211
+ #
212
+ # # The returned object is of type Google::Cloud::Dialogflow::V2::Agent.
213
+ # p result
214
+ #
199
215
  def get_agent request, options = nil
200
216
  raise ::ArgumentError, "request must be provided" if request.nil?
201
217
 
@@ -264,6 +280,22 @@ module Google
264
280
  # @return [::Google::Cloud::Dialogflow::V2::Agent]
265
281
  #
266
282
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
283
+ #
284
+ # @example Basic example
285
+ # require "google/cloud/dialogflow/v2"
286
+ #
287
+ # # Create a client object. The client can be reused for multiple calls.
288
+ # client = Google::Cloud::Dialogflow::V2::Agents::Rest::Client.new
289
+ #
290
+ # # Create a request. To set request fields, pass in keyword arguments.
291
+ # request = Google::Cloud::Dialogflow::V2::SetAgentRequest.new
292
+ #
293
+ # # Call the set_agent method.
294
+ # result = client.set_agent request
295
+ #
296
+ # # The returned object is of type Google::Cloud::Dialogflow::V2::Agent.
297
+ # p result
298
+ #
267
299
  def set_agent request, options = nil
268
300
  raise ::ArgumentError, "request must be provided" if request.nil?
269
301
 
@@ -327,6 +359,22 @@ module Google
327
359
  # @return [::Google::Protobuf::Empty]
328
360
  #
329
361
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
362
+ #
363
+ # @example Basic example
364
+ # require "google/cloud/dialogflow/v2"
365
+ #
366
+ # # Create a client object. The client can be reused for multiple calls.
367
+ # client = Google::Cloud::Dialogflow::V2::Agents::Rest::Client.new
368
+ #
369
+ # # Create a request. To set request fields, pass in keyword arguments.
370
+ # request = Google::Cloud::Dialogflow::V2::DeleteAgentRequest.new
371
+ #
372
+ # # Call the delete_agent method.
373
+ # result = client.delete_agent request
374
+ #
375
+ # # The returned object is of type Google::Protobuf::Empty.
376
+ # p result
377
+ #
330
378
  def delete_agent request, options = nil
331
379
  raise ::ArgumentError, "request must be provided" if request.nil?
332
380
 
@@ -401,6 +449,26 @@ module Google
401
449
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::V2::Agent>]
402
450
  #
403
451
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
452
+ #
453
+ # @example Basic example
454
+ # require "google/cloud/dialogflow/v2"
455
+ #
456
+ # # Create a client object. The client can be reused for multiple calls.
457
+ # client = Google::Cloud::Dialogflow::V2::Agents::Rest::Client.new
458
+ #
459
+ # # Create a request. To set request fields, pass in keyword arguments.
460
+ # request = Google::Cloud::Dialogflow::V2::SearchAgentsRequest.new
461
+ #
462
+ # # Call the search_agents method.
463
+ # result = client.search_agents request
464
+ #
465
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
466
+ # # over elements, and API calls will be issued to fetch pages as needed.
467
+ # result.each do |item|
468
+ # # Each element is of type ::Google::Cloud::Dialogflow::V2::Agent.
469
+ # p item
470
+ # end
471
+ #
404
472
  def search_agents request, options = nil
405
473
  raise ::ArgumentError, "request must be provided" if request.nil?
406
474
 
@@ -478,6 +546,29 @@ module Google
478
546
  # @return [::Gapic::Operation]
479
547
  #
480
548
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
549
+ #
550
+ # @example Basic example
551
+ # require "google/cloud/dialogflow/v2"
552
+ #
553
+ # # Create a client object. The client can be reused for multiple calls.
554
+ # client = Google::Cloud::Dialogflow::V2::Agents::Rest::Client.new
555
+ #
556
+ # # Create a request. To set request fields, pass in keyword arguments.
557
+ # request = Google::Cloud::Dialogflow::V2::TrainAgentRequest.new
558
+ #
559
+ # # Call the train_agent method.
560
+ # result = client.train_agent request
561
+ #
562
+ # # The returned object is of type Gapic::Operation. You can use it to
563
+ # # check the status of an operation, cancel it, or wait for results.
564
+ # # Here is how to wait for a response.
565
+ # result.wait_until_done! timeout: 60
566
+ # if result.response?
567
+ # p result.response
568
+ # else
569
+ # puts "No response received."
570
+ # end
571
+ #
481
572
  def train_agent request, options = nil
482
573
  raise ::ArgumentError, "request must be provided" if request.nil?
483
574
 
@@ -562,6 +653,29 @@ module Google
562
653
  # @return [::Gapic::Operation]
563
654
  #
564
655
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
656
+ #
657
+ # @example Basic example
658
+ # require "google/cloud/dialogflow/v2"
659
+ #
660
+ # # Create a client object. The client can be reused for multiple calls.
661
+ # client = Google::Cloud::Dialogflow::V2::Agents::Rest::Client.new
662
+ #
663
+ # # Create a request. To set request fields, pass in keyword arguments.
664
+ # request = Google::Cloud::Dialogflow::V2::ExportAgentRequest.new
665
+ #
666
+ # # Call the export_agent method.
667
+ # result = client.export_agent request
668
+ #
669
+ # # The returned object is of type Gapic::Operation. You can use it to
670
+ # # check the status of an operation, cancel it, or wait for results.
671
+ # # Here is how to wait for a response.
672
+ # result.wait_until_done! timeout: 60
673
+ # if result.response?
674
+ # p result.response
675
+ # else
676
+ # puts "No response received."
677
+ # end
678
+ #
565
679
  def export_agent request, options = nil
566
680
  raise ::ArgumentError, "request must be provided" if request.nil?
567
681
 
@@ -663,6 +777,29 @@ module Google
663
777
  # @return [::Gapic::Operation]
664
778
  #
665
779
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
780
+ #
781
+ # @example Basic example
782
+ # require "google/cloud/dialogflow/v2"
783
+ #
784
+ # # Create a client object. The client can be reused for multiple calls.
785
+ # client = Google::Cloud::Dialogflow::V2::Agents::Rest::Client.new
786
+ #
787
+ # # Create a request. To set request fields, pass in keyword arguments.
788
+ # request = Google::Cloud::Dialogflow::V2::ImportAgentRequest.new
789
+ #
790
+ # # Call the import_agent method.
791
+ # result = client.import_agent request
792
+ #
793
+ # # The returned object is of type Gapic::Operation. You can use it to
794
+ # # check the status of an operation, cancel it, or wait for results.
795
+ # # Here is how to wait for a response.
796
+ # result.wait_until_done! timeout: 60
797
+ # if result.response?
798
+ # p result.response
799
+ # else
800
+ # puts "No response received."
801
+ # end
802
+ #
666
803
  def import_agent request, options = nil
667
804
  raise ::ArgumentError, "request must be provided" if request.nil?
668
805
 
@@ -762,6 +899,29 @@ module Google
762
899
  # @return [::Gapic::Operation]
763
900
  #
764
901
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
902
+ #
903
+ # @example Basic example
904
+ # require "google/cloud/dialogflow/v2"
905
+ #
906
+ # # Create a client object. The client can be reused for multiple calls.
907
+ # client = Google::Cloud::Dialogflow::V2::Agents::Rest::Client.new
908
+ #
909
+ # # Create a request. To set request fields, pass in keyword arguments.
910
+ # request = Google::Cloud::Dialogflow::V2::RestoreAgentRequest.new
911
+ #
912
+ # # Call the restore_agent method.
913
+ # result = client.restore_agent request
914
+ #
915
+ # # The returned object is of type Gapic::Operation. You can use it to
916
+ # # check the status of an operation, cancel it, or wait for results.
917
+ # # Here is how to wait for a response.
918
+ # result.wait_until_done! timeout: 60
919
+ # if result.response?
920
+ # p result.response
921
+ # else
922
+ # puts "No response received."
923
+ # end
924
+ #
765
925
  def restore_agent request, options = nil
766
926
  raise ::ArgumentError, "request must be provided" if request.nil?
767
927
 
@@ -833,6 +993,22 @@ module Google
833
993
  # @return [::Google::Cloud::Dialogflow::V2::ValidationResult]
834
994
  #
835
995
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
996
+ #
997
+ # @example Basic example
998
+ # require "google/cloud/dialogflow/v2"
999
+ #
1000
+ # # Create a client object. The client can be reused for multiple calls.
1001
+ # client = Google::Cloud::Dialogflow::V2::Agents::Rest::Client.new
1002
+ #
1003
+ # # Create a request. To set request fields, pass in keyword arguments.
1004
+ # request = Google::Cloud::Dialogflow::V2::GetValidationResultRequest.new
1005
+ #
1006
+ # # Call the get_validation_result method.
1007
+ # result = client.get_validation_result request
1008
+ #
1009
+ # # The returned object is of type Google::Cloud::Dialogflow::V2::ValidationResult.
1010
+ # p result
1011
+ #
836
1012
  def get_validation_result request, options = nil
837
1013
  raise ::ArgumentError, "request must be provided" if request.nil?
838
1014
 
@@ -136,6 +136,26 @@ module Google
136
136
  # @return [::Gapic::Operation]
137
137
  #
138
138
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
139
+ #
140
+ # @example Basic example
141
+ # require "google/longrunning"
142
+ #
143
+ # # Create a client object. The client can be reused for multiple calls.
144
+ # client = Google::Longrunning::Operations::Rest::Client.new
145
+ #
146
+ # # Create a request. To set request fields, pass in keyword arguments.
147
+ # request = Google::Longrunning::ListOperationsRequest.new
148
+ #
149
+ # # Call the list_operations method.
150
+ # result = client.list_operations request
151
+ #
152
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
153
+ # # over elements, and API calls will be issued to fetch pages as needed.
154
+ # result.each do |item|
155
+ # # Each element is of type ::Google::Longrunning::Operation.
156
+ # p item
157
+ # end
158
+ #
139
159
  def list_operations request, options = nil
140
160
  raise ::ArgumentError, "request must be provided" if request.nil?
141
161
 
@@ -201,6 +221,29 @@ module Google
201
221
  # @return [::Gapic::Operation]
202
222
  #
203
223
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
224
+ #
225
+ # @example Basic example
226
+ # require "google/longrunning"
227
+ #
228
+ # # Create a client object. The client can be reused for multiple calls.
229
+ # client = Google::Longrunning::Operations::Rest::Client.new
230
+ #
231
+ # # Create a request. To set request fields, pass in keyword arguments.
232
+ # request = Google::Longrunning::GetOperationRequest.new
233
+ #
234
+ # # Call the get_operation method.
235
+ # result = client.get_operation request
236
+ #
237
+ # # The returned object is of type Gapic::Operation. You can use it to
238
+ # # check the status of an operation, cancel it, or wait for results.
239
+ # # Here is how to wait for a response.
240
+ # result.wait_until_done! timeout: 60
241
+ # if result.response?
242
+ # p result.response
243
+ # else
244
+ # puts "No response received."
245
+ # end
246
+ #
204
247
  def get_operation request, options = nil
205
248
  raise ::ArgumentError, "request must be provided" if request.nil?
206
249
 
@@ -267,6 +310,22 @@ module Google
267
310
  # @return [::Google::Protobuf::Empty]
268
311
  #
269
312
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
313
+ #
314
+ # @example Basic example
315
+ # require "google/longrunning"
316
+ #
317
+ # # Create a client object. The client can be reused for multiple calls.
318
+ # client = Google::Longrunning::Operations::Rest::Client.new
319
+ #
320
+ # # Create a request. To set request fields, pass in keyword arguments.
321
+ # request = Google::Longrunning::DeleteOperationRequest.new
322
+ #
323
+ # # Call the delete_operation method.
324
+ # result = client.delete_operation request
325
+ #
326
+ # # The returned object is of type Google::Protobuf::Empty.
327
+ # p result
328
+ #
270
329
  def delete_operation request, options = nil
271
330
  raise ::ArgumentError, "request must be provided" if request.nil?
272
331
 
@@ -338,6 +397,22 @@ module Google
338
397
  # @return [::Google::Protobuf::Empty]
339
398
  #
340
399
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
400
+ #
401
+ # @example Basic example
402
+ # require "google/longrunning"
403
+ #
404
+ # # Create a client object. The client can be reused for multiple calls.
405
+ # client = Google::Longrunning::Operations::Rest::Client.new
406
+ #
407
+ # # Create a request. To set request fields, pass in keyword arguments.
408
+ # request = Google::Longrunning::CancelOperationRequest.new
409
+ #
410
+ # # Call the cancel_operation method.
411
+ # result = client.cancel_operation request
412
+ #
413
+ # # The returned object is of type Google::Protobuf::Empty.
414
+ # p result
415
+ #
341
416
  def cancel_operation request, options = nil
342
417
  raise ::ArgumentError, "request must be provided" if request.nil?
343
418
 
@@ -13,7 +13,7 @@ require 'google/protobuf/field_mask_pb'
13
13
  require 'google/protobuf/timestamp_pb'
14
14
 
15
15
 
16
- descriptor_data = "\n.google/cloud/dialogflow/v2/answer_record.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a,google/cloud/dialogflow/v2/participant.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf1\x02\n\x0c\x41nswerRecord\x12\x0c\n\x04name\x18\x01 \x01(\t\x12H\n\x0f\x61nswer_feedback\x18\x02 \x01(\x0b\x32*.google.cloud.dialogflow.v2.AnswerFeedbackB\x03\xe0\x41\x02\x12W\n\x16\x61gent_assistant_record\x18\x04 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.AgentAssistantRecordB\x03\xe0\x41\x03H\x00:\xa5\x01\xea\x41\xa1\x01\n&dialogflow.googleapis.com/AnswerRecord\x12\x30projects/{project}/answerRecords/{answer_record}\x12\x45projects/{project}/locations/{location}/answerRecords/{answer_record}B\x08\n\x06record\"\xa2\x01\n\x18ListAnswerRecordsRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&dialogflow.googleapis.com/AnswerRecord\x12\x15\n\x06\x66ilter\x18\x02 \x01(\tB\x05\x18\x01\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\"v\n\x19ListAnswerRecordsResponse\x12@\n\x0e\x61nswer_records\x18\x01 \x03(\x0b\x32(.google.cloud.dialogflow.v2.AnswerRecord\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x97\x01\n\x19UpdateAnswerRecordRequest\x12\x44\n\ranswer_record\x18\x01 \x01(\x0b\x32(.google.cloud.dialogflow.v2.AnswerRecordB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xd2\x03\n\x0e\x41nswerFeedback\x12V\n\x11\x63orrectness_level\x18\x01 \x01(\x0e\x32;.google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel\x12]\n\x1f\x61gent_assistant_detail_feedback\x18\x02 \x01(\x0b\x32\x32.google.cloud.dialogflow.v2.AgentAssistantFeedbackH\x00\x12\x0f\n\x07\x63licked\x18\x03 \x01(\x08\x12.\n\nclick_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x11\n\tdisplayed\x18\x04 \x01(\x08\x12\x30\n\x0c\x64isplay_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"p\n\x10\x43orrectnessLevel\x12!\n\x1d\x43ORRECTNESS_LEVEL_UNSPECIFIED\x10\x00\x12\x0f\n\x0bNOT_CORRECT\x10\x01\x12\x15\n\x11PARTIALLY_CORRECT\x10\x02\x12\x11\n\rFULLY_CORRECT\x10\x03\x42\x11\n\x0f\x64\x65tail_feedback\"\xd6\x06\n\x16\x41gentAssistantFeedback\x12\x61\n\x10\x61nswer_relevance\x18\x01 \x01(\x0e\x32\x42.google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevanceB\x03\xe0\x41\x01\x12i\n\x14\x64ocument_correctness\x18\x02 \x01(\x0e\x32\x46.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectnessB\x03\xe0\x41\x01\x12g\n\x13\x64ocument_efficiency\x18\x03 \x01(\x0e\x32\x45.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiencyB\x03\xe0\x41\x01\x12m\n\x16summarization_feedback\x18\x04 \x01(\x0b\x32H.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedbackB\x03\xe0\x41\x01\x1a\x8e\x01\n\x15SummarizationFeedback\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bsubmit_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0csummary_text\x18\x03 \x01(\t\"Q\n\x0f\x41nswerRelevance\x12 \n\x1c\x41NSWER_RELEVANCE_UNSPECIFIED\x10\x00\x12\x0e\n\nIRRELEVANT\x10\x01\x12\x0c\n\x08RELEVANT\x10\x02\"W\n\x13\x44ocumentCorrectness\x12$\n DOCUMENT_CORRECTNESS_UNSPECIFIED\x10\x00\x12\r\n\tINCORRECT\x10\x01\x12\x0b\n\x07\x43ORRECT\x10\x02\"Y\n\x12\x44ocumentEfficiency\x12#\n\x1f\x44OCUMENT_EFFICIENCY_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINEFFICIENT\x10\x01\x12\r\n\tEFFICIENT\x10\x02\"\xb7\x01\n\x14\x41gentAssistantRecord\x12S\n\x19\x61rticle_suggestion_answer\x18\x05 \x01(\x0b\x32).google.cloud.dialogflow.v2.ArticleAnswerB\x03\xe0\x41\x03H\x00\x12@\n\nfaq_answer\x18\x06 \x01(\x0b\x32%.google.cloud.dialogflow.v2.FaqAnswerB\x03\xe0\x41\x03H\x00\x42\x08\n\x06\x61nswer2\xad\x05\n\rAnswerRecords\x12\xed\x01\n\x11ListAnswerRecords\x12\x34.google.cloud.dialogflow.v2.ListAnswerRecordsRequest\x1a\x35.google.cloud.dialogflow.v2.ListAnswerRecordsResponse\"k\x82\xd3\xe4\x93\x02\\\x12%/v2/{parent=projects/*}/answerRecordsZ3\x12\x31/v2/{parent=projects/*/locations/*}/answerRecords\xda\x41\x06parent\x12\xb1\x02\n\x12UpdateAnswerRecord\x12\x35.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest\x1a(.google.cloud.dialogflow.v2.AnswerRecord\"\xb9\x01\x82\xd3\xe4\x93\x02\x96\x01\x32\x33/v2/{answer_record.name=projects/*/answerRecords/*}:\ranswer_recordZP2?/v2/{answer_record.name=projects/*/locations/*/answerRecords/*}:\ranswer_record\xda\x41\x19\x61nswer_record,update_mask\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x9b\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x12\x41nswerRecordsProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3"
16
+ descriptor_data = "\n.google/cloud/dialogflow/v2/answer_record.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a,google/cloud/dialogflow/v2/participant.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf1\x02\n\x0c\x41nswerRecord\x12\x0c\n\x04name\x18\x01 \x01(\t\x12H\n\x0f\x61nswer_feedback\x18\x02 \x01(\x0b\x32*.google.cloud.dialogflow.v2.AnswerFeedbackB\x03\xe0\x41\x02\x12W\n\x16\x61gent_assistant_record\x18\x04 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.AgentAssistantRecordB\x03\xe0\x41\x03H\x00:\xa5\x01\xea\x41\xa1\x01\n&dialogflow.googleapis.com/AnswerRecord\x12\x30projects/{project}/answerRecords/{answer_record}\x12\x45projects/{project}/locations/{location}/answerRecords/{answer_record}B\x08\n\x06record\"\xa2\x01\n\x18ListAnswerRecordsRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&dialogflow.googleapis.com/AnswerRecord\x12\x15\n\x06\x66ilter\x18\x02 \x01(\tB\x05\x18\x01\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\"v\n\x19ListAnswerRecordsResponse\x12@\n\x0e\x61nswer_records\x18\x01 \x03(\x0b\x32(.google.cloud.dialogflow.v2.AnswerRecord\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x97\x01\n\x19UpdateAnswerRecordRequest\x12\x44\n\ranswer_record\x18\x01 \x01(\x0b\x32(.google.cloud.dialogflow.v2.AnswerRecordB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xd2\x03\n\x0e\x41nswerFeedback\x12V\n\x11\x63orrectness_level\x18\x01 \x01(\x0e\x32;.google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel\x12]\n\x1f\x61gent_assistant_detail_feedback\x18\x02 \x01(\x0b\x32\x32.google.cloud.dialogflow.v2.AgentAssistantFeedbackH\x00\x12\x0f\n\x07\x63licked\x18\x03 \x01(\x08\x12.\n\nclick_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x11\n\tdisplayed\x18\x04 \x01(\x08\x12\x30\n\x0c\x64isplay_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"p\n\x10\x43orrectnessLevel\x12!\n\x1d\x43ORRECTNESS_LEVEL_UNSPECIFIED\x10\x00\x12\x0f\n\x0bNOT_CORRECT\x10\x01\x12\x15\n\x11PARTIALLY_CORRECT\x10\x02\x12\x11\n\rFULLY_CORRECT\x10\x03\x42\x11\n\x0f\x64\x65tail_feedback\"\x92\x08\n\x16\x41gentAssistantFeedback\x12\x61\n\x10\x61nswer_relevance\x18\x01 \x01(\x0e\x32\x42.google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevanceB\x03\xe0\x41\x01\x12i\n\x14\x64ocument_correctness\x18\x02 \x01(\x0e\x32\x46.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectnessB\x03\xe0\x41\x01\x12g\n\x13\x64ocument_efficiency\x18\x03 \x01(\x0e\x32\x45.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiencyB\x03\xe0\x41\x01\x12m\n\x16summarization_feedback\x18\x04 \x01(\x0b\x32H.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedbackB\x03\xe0\x41\x01\x12r\n\x19knowledge_search_feedback\x18\x05 \x01(\x0b\x32J.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedbackB\x03\xe0\x41\x01\x1a\x8e\x01\n\x15SummarizationFeedback\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bsubmit_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0csummary_text\x18\x03 \x01(\t\x1a\x46\n\x17KnowledgeSearchFeedback\x12\x15\n\ranswer_copied\x18\x01 \x01(\x08\x12\x14\n\x0c\x63licked_uris\x18\x02 \x03(\t\"Q\n\x0f\x41nswerRelevance\x12 \n\x1c\x41NSWER_RELEVANCE_UNSPECIFIED\x10\x00\x12\x0e\n\nIRRELEVANT\x10\x01\x12\x0c\n\x08RELEVANT\x10\x02\"W\n\x13\x44ocumentCorrectness\x12$\n DOCUMENT_CORRECTNESS_UNSPECIFIED\x10\x00\x12\r\n\tINCORRECT\x10\x01\x12\x0b\n\x07\x43ORRECT\x10\x02\"Y\n\x12\x44ocumentEfficiency\x12#\n\x1f\x44OCUMENT_EFFICIENCY_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINEFFICIENT\x10\x01\x12\r\n\tEFFICIENT\x10\x02\"\x94\x02\n\x14\x41gentAssistantRecord\x12S\n\x19\x61rticle_suggestion_answer\x18\x05 \x01(\x0b\x32).google.cloud.dialogflow.v2.ArticleAnswerB\x03\xe0\x41\x03H\x00\x12@\n\nfaq_answer\x18\x06 \x01(\x0b\x32%.google.cloud.dialogflow.v2.FaqAnswerB\x03\xe0\x41\x03H\x00\x12[\n\x18\x64ialogflow_assist_answer\x18\x07 \x01(\x0b\x32\x32.google.cloud.dialogflow.v2.DialogflowAssistAnswerB\x03\xe0\x41\x03H\x00\x42\x08\n\x06\x61nswer2\xad\x05\n\rAnswerRecords\x12\xed\x01\n\x11ListAnswerRecords\x12\x34.google.cloud.dialogflow.v2.ListAnswerRecordsRequest\x1a\x35.google.cloud.dialogflow.v2.ListAnswerRecordsResponse\"k\x82\xd3\xe4\x93\x02\\\x12%/v2/{parent=projects/*}/answerRecordsZ3\x12\x31/v2/{parent=projects/*/locations/*}/answerRecords\xda\x41\x06parent\x12\xb1\x02\n\x12UpdateAnswerRecord\x12\x35.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest\x1a(.google.cloud.dialogflow.v2.AnswerRecord\"\xb9\x01\x82\xd3\xe4\x93\x02\x96\x01\x32\x33/v2/{answer_record.name=projects/*/answerRecords/*}:\ranswer_recordZP2?/v2/{answer_record.name=projects/*/locations/*/answerRecords/*}:\ranswer_record\xda\x41\x19\x61nswer_record,update_mask\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x9b\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x12\x41nswerRecordsProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3"
17
17
 
18
18
  pool = Google::Protobuf::DescriptorPool.generated_pool
19
19
 
@@ -54,6 +54,7 @@ module Google
54
54
  AnswerFeedback::CorrectnessLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel").enummodule
55
55
  AgentAssistantFeedback = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.AgentAssistantFeedback").msgclass
56
56
  AgentAssistantFeedback::SummarizationFeedback = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback").msgclass
57
+ AgentAssistantFeedback::KnowledgeSearchFeedback = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedback").msgclass
57
58
  AgentAssistantFeedback::AnswerRelevance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevance").enummodule
58
59
  AgentAssistantFeedback::DocumentCorrectness = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectness").enummodule
59
60
  AgentAssistantFeedback::DocumentEfficiency = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency").enummodule
@@ -151,7 +151,8 @@ module Google
151
151
  credentials: credentials,
152
152
  endpoint: @config.endpoint,
153
153
  channel_args: @config.channel_args,
154
- interceptors: @config.interceptors
154
+ interceptors: @config.interceptors,
155
+ channel_pool_config: @config.channel_pool
155
156
  )
156
157
  end
157
158
 
@@ -479,6 +480,14 @@ module Google
479
480
  end
480
481
  end
481
482
 
483
+ ##
484
+ # Configuration for the channel pool
485
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
486
+ #
487
+ def channel_pool
488
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
489
+ end
490
+
482
491
  ##
483
492
  # Configuration RPC class for the AnswerRecords API.
484
493
  #
@@ -65,6 +65,132 @@ module Google
65
65
  resource.call(**args)
66
66
  end
67
67
 
68
+ ##
69
+ # Create a fully-qualified Context resource string.
70
+ #
71
+ # @overload context_path(project:, session:, context:)
72
+ # The resource will be in the following format:
73
+ #
74
+ # `projects/{project}/agent/sessions/{session}/contexts/{context}`
75
+ #
76
+ # @param project [String]
77
+ # @param session [String]
78
+ # @param context [String]
79
+ #
80
+ # @overload context_path(project:, environment:, user:, session:, context:)
81
+ # The resource will be in the following format:
82
+ #
83
+ # `projects/{project}/agent/environments/{environment}/users/{user}/sessions/{session}/contexts/{context}`
84
+ #
85
+ # @param project [String]
86
+ # @param environment [String]
87
+ # @param user [String]
88
+ # @param session [String]
89
+ # @param context [String]
90
+ #
91
+ # @overload context_path(project:, location:, session:, context:)
92
+ # The resource will be in the following format:
93
+ #
94
+ # `projects/{project}/locations/{location}/agent/sessions/{session}/contexts/{context}`
95
+ #
96
+ # @param project [String]
97
+ # @param location [String]
98
+ # @param session [String]
99
+ # @param context [String]
100
+ #
101
+ # @overload context_path(project:, location:, environment:, user:, session:, context:)
102
+ # The resource will be in the following format:
103
+ #
104
+ # `projects/{project}/locations/{location}/agent/environments/{environment}/users/{user}/sessions/{session}/contexts/{context}`
105
+ #
106
+ # @param project [String]
107
+ # @param location [String]
108
+ # @param environment [String]
109
+ # @param user [String]
110
+ # @param session [String]
111
+ # @param context [String]
112
+ #
113
+ # @return [::String]
114
+ def context_path **args
115
+ resources = {
116
+ "context:project:session" => (proc do |project:, session:, context:|
117
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
118
+ raise ::ArgumentError, "session cannot contain /" if session.to_s.include? "/"
119
+
120
+ "projects/#{project}/agent/sessions/#{session}/contexts/#{context}"
121
+ end),
122
+ "context:environment:project:session:user" => (proc do |project:, environment:, user:, session:, context:|
123
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
124
+ raise ::ArgumentError, "environment cannot contain /" if environment.to_s.include? "/"
125
+ raise ::ArgumentError, "user cannot contain /" if user.to_s.include? "/"
126
+ raise ::ArgumentError, "session cannot contain /" if session.to_s.include? "/"
127
+
128
+ "projects/#{project}/agent/environments/#{environment}/users/#{user}/sessions/#{session}/contexts/#{context}"
129
+ end),
130
+ "context:location:project:session" => (proc do |project:, location:, session:, context:|
131
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
132
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
133
+ raise ::ArgumentError, "session cannot contain /" if session.to_s.include? "/"
134
+
135
+ "projects/#{project}/locations/#{location}/agent/sessions/#{session}/contexts/#{context}"
136
+ end),
137
+ "context:environment:location:project:session:user" => (proc do |project:, location:, environment:, user:, session:, context:|
138
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
139
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
140
+ raise ::ArgumentError, "environment cannot contain /" if environment.to_s.include? "/"
141
+ raise ::ArgumentError, "user cannot contain /" if user.to_s.include? "/"
142
+ raise ::ArgumentError, "session cannot contain /" if session.to_s.include? "/"
143
+
144
+ "projects/#{project}/locations/#{location}/agent/environments/#{environment}/users/#{user}/sessions/#{session}/contexts/#{context}"
145
+ end)
146
+ }
147
+
148
+ resource = resources[args.keys.sort.join(":")]
149
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
150
+ resource.call(**args)
151
+ end
152
+
153
+ ##
154
+ # Create a fully-qualified Intent resource string.
155
+ #
156
+ # @overload intent_path(project:, intent:)
157
+ # The resource will be in the following format:
158
+ #
159
+ # `projects/{project}/agent/intents/{intent}`
160
+ #
161
+ # @param project [String]
162
+ # @param intent [String]
163
+ #
164
+ # @overload intent_path(project:, location:, intent:)
165
+ # The resource will be in the following format:
166
+ #
167
+ # `projects/{project}/locations/{location}/agent/intents/{intent}`
168
+ #
169
+ # @param project [String]
170
+ # @param location [String]
171
+ # @param intent [String]
172
+ #
173
+ # @return [::String]
174
+ def intent_path **args
175
+ resources = {
176
+ "intent:project" => (proc do |project:, intent:|
177
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
178
+
179
+ "projects/#{project}/agent/intents/#{intent}"
180
+ end),
181
+ "intent:location:project" => (proc do |project:, location:, intent:|
182
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
183
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
184
+
185
+ "projects/#{project}/locations/#{location}/agent/intents/#{intent}"
186
+ end)
187
+ }
188
+
189
+ resource = resources[args.keys.sort.join(":")]
190
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
191
+ resource.call(**args)
192
+ end
193
+
68
194
  ##
69
195
  # Create a fully-qualified Location resource string.
70
196
  #
@@ -202,6 +202,26 @@ module Google
202
202
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::V2::AnswerRecord>]
203
203
  #
204
204
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
205
+ #
206
+ # @example Basic example
207
+ # require "google/cloud/dialogflow/v2"
208
+ #
209
+ # # Create a client object. The client can be reused for multiple calls.
210
+ # client = Google::Cloud::Dialogflow::V2::AnswerRecords::Rest::Client.new
211
+ #
212
+ # # Create a request. To set request fields, pass in keyword arguments.
213
+ # request = Google::Cloud::Dialogflow::V2::ListAnswerRecordsRequest.new
214
+ #
215
+ # # Call the list_answer_records method.
216
+ # result = client.list_answer_records request
217
+ #
218
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
219
+ # # over elements, and API calls will be issued to fetch pages as needed.
220
+ # result.each do |item|
221
+ # # Each element is of type ::Google::Cloud::Dialogflow::V2::AnswerRecord.
222
+ # p item
223
+ # end
224
+ #
205
225
  def list_answer_records request, options = nil
206
226
  raise ::ArgumentError, "request must be provided" if request.nil?
207
227
 
@@ -267,6 +287,22 @@ module Google
267
287
  # @return [::Google::Cloud::Dialogflow::V2::AnswerRecord]
268
288
  #
269
289
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
290
+ #
291
+ # @example Basic example
292
+ # require "google/cloud/dialogflow/v2"
293
+ #
294
+ # # Create a client object. The client can be reused for multiple calls.
295
+ # client = Google::Cloud::Dialogflow::V2::AnswerRecords::Rest::Client.new
296
+ #
297
+ # # Create a request. To set request fields, pass in keyword arguments.
298
+ # request = Google::Cloud::Dialogflow::V2::UpdateAnswerRecordRequest.new
299
+ #
300
+ # # Call the update_answer_record method.
301
+ # result = client.update_answer_record request
302
+ #
303
+ # # The returned object is of type Google::Cloud::Dialogflow::V2::AnswerRecord.
304
+ # p result
305
+ #
270
306
  def update_answer_record request, options = nil
271
307
  raise ::ArgumentError, "request must be provided" if request.nil?
272
308