google-cloud-dialogflow-v2 0.11.0 → 0.11.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -41,13 +41,12 @@ module Google
41
41
  # See {::Google::Cloud::Dialogflow::V2::Fulfillments::Client::Configuration}
42
42
  # for a description of the configuration fields.
43
43
  #
44
- # ## Example
44
+ # @example
45
45
  #
46
- # To modify the configuration for all Fulfillments clients:
47
- #
48
- # ::Google::Cloud::Dialogflow::V2::Fulfillments::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all Fulfillments clients
47
+ # ::Google::Cloud::Dialogflow::V2::Fulfillments::Client.configure do |config|
48
+ # config.timeout = 10.0
49
+ # end
51
50
  #
52
51
  # @yield [config] Configure the Client client.
53
52
  # @yieldparam config [Client::Configuration]
@@ -99,19 +98,15 @@ module Google
99
98
  ##
100
99
  # Create a new Fulfillments client object.
101
100
  #
102
- # ## Examples
103
- #
104
- # To create a new Fulfillments client with the default
105
- # configuration:
106
- #
107
- # client = ::Google::Cloud::Dialogflow::V2::Fulfillments::Client.new
101
+ # @example
108
102
  #
109
- # To create a new Fulfillments client with a custom
110
- # configuration:
103
+ # # Create a client using the default configuration
104
+ # client = ::Google::Cloud::Dialogflow::V2::Fulfillments::Client.new
111
105
  #
112
- # client = ::Google::Cloud::Dialogflow::V2::Fulfillments::Client.new do |config|
113
- # config.timeout = 10.0
114
- # end
106
+ # # Create a client using a custom configuration
107
+ # client = ::Google::Cloud::Dialogflow::V2::Fulfillments::Client.new do |config|
108
+ # config.timeout = 10.0
109
+ # end
115
110
  #
116
111
  # @yield [config] Configure the Fulfillments client.
117
112
  # @yieldparam config [Client::Configuration]
@@ -131,10 +126,9 @@ module Google
131
126
 
132
127
  # Create credentials
133
128
  credentials = @config.credentials
134
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
129
+ # Use self-signed JWT if the endpoint is unchanged from default,
135
130
  # but only if the default endpoint does not have a region prefix.
136
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
137
- @config.endpoint == Client.configure.endpoint &&
131
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
138
132
  !@config.endpoint.split(".").first.include?("-")
139
133
  credentials ||= Credentials.default scope: @config.scope,
140
134
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -211,7 +205,9 @@ module Google
211
205
  options.apply_defaults timeout: @config.rpcs.get_fulfillment.timeout,
212
206
  metadata: metadata,
213
207
  retry_policy: @config.rpcs.get_fulfillment.retry_policy
214
- options.apply_defaults metadata: @config.metadata,
208
+
209
+ options.apply_defaults timeout: @config.timeout,
210
+ metadata: @config.metadata,
215
211
  retry_policy: @config.retry_policy
216
212
 
217
213
  @fulfillments_stub.call_rpc :get_fulfillment, request, options: options do |response, operation|
@@ -280,7 +276,9 @@ module Google
280
276
  options.apply_defaults timeout: @config.rpcs.update_fulfillment.timeout,
281
277
  metadata: metadata,
282
278
  retry_policy: @config.rpcs.update_fulfillment.retry_policy
283
- options.apply_defaults metadata: @config.metadata,
279
+
280
+ options.apply_defaults timeout: @config.timeout,
281
+ metadata: @config.metadata,
284
282
  retry_policy: @config.retry_policy
285
283
 
286
284
  @fulfillments_stub.call_rpc :update_fulfillment, request, options: options do |response, operation|
@@ -304,22 +302,21 @@ module Google
304
302
  # Configuration can be applied globally to all clients, or to a single client
305
303
  # on construction.
306
304
  #
307
- # # Examples
308
- #
309
- # To modify the global config, setting the timeout for get_fulfillment
310
- # to 20 seconds, and all remaining timeouts to 10 seconds:
311
- #
312
- # ::Google::Cloud::Dialogflow::V2::Fulfillments::Client.configure do |config|
313
- # config.timeout = 10.0
314
- # config.rpcs.get_fulfillment.timeout = 20.0
315
- # end
316
- #
317
- # To apply the above configuration only to a new client:
318
- #
319
- # client = ::Google::Cloud::Dialogflow::V2::Fulfillments::Client.new do |config|
320
- # config.timeout = 10.0
321
- # config.rpcs.get_fulfillment.timeout = 20.0
322
- # end
305
+ # @example
306
+ #
307
+ # # Modify the global config, setting the timeout for
308
+ # # get_fulfillment to 20 seconds,
309
+ # # and all remaining timeouts to 10 seconds.
310
+ # ::Google::Cloud::Dialogflow::V2::Fulfillments::Client.configure do |config|
311
+ # config.timeout = 10.0
312
+ # config.rpcs.get_fulfillment.timeout = 20.0
313
+ # end
314
+ #
315
+ # # Apply the above configuration only to a new client.
316
+ # client = ::Google::Cloud::Dialogflow::V2::Fulfillments::Client.new do |config|
317
+ # config.timeout = 10.0
318
+ # config.rpcs.get_fulfillment.timeout = 20.0
319
+ # end
323
320
  #
324
321
  # @!attribute [rw] endpoint
325
322
  # The hostname or hostname:port of the service endpoint.
@@ -41,13 +41,12 @@ module Google
41
41
  # See {::Google::Cloud::Dialogflow::V2::Intents::Client::Configuration}
42
42
  # for a description of the configuration fields.
43
43
  #
44
- # ## Example
44
+ # @example
45
45
  #
46
- # To modify the configuration for all Intents clients:
47
- #
48
- # ::Google::Cloud::Dialogflow::V2::Intents::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all Intents clients
47
+ # ::Google::Cloud::Dialogflow::V2::Intents::Client.configure do |config|
48
+ # config.timeout = 10.0
49
+ # end
51
50
  #
52
51
  # @yield [config] Configure the Client client.
53
52
  # @yieldparam config [Client::Configuration]
@@ -99,19 +98,15 @@ module Google
99
98
  ##
100
99
  # Create a new Intents client object.
101
100
  #
102
- # ## Examples
103
- #
104
- # To create a new Intents client with the default
105
- # configuration:
101
+ # @example
106
102
  #
107
- # client = ::Google::Cloud::Dialogflow::V2::Intents::Client.new
103
+ # # Create a client using the default configuration
104
+ # client = ::Google::Cloud::Dialogflow::V2::Intents::Client.new
108
105
  #
109
- # To create a new Intents client with a custom
110
- # configuration:
111
- #
112
- # client = ::Google::Cloud::Dialogflow::V2::Intents::Client.new do |config|
113
- # config.timeout = 10.0
114
- # end
106
+ # # Create a client using a custom configuration
107
+ # client = ::Google::Cloud::Dialogflow::V2::Intents::Client.new do |config|
108
+ # config.timeout = 10.0
109
+ # end
115
110
  #
116
111
  # @yield [config] Configure the Intents client.
117
112
  # @yieldparam config [Client::Configuration]
@@ -131,10 +126,9 @@ module Google
131
126
 
132
127
  # Create credentials
133
128
  credentials = @config.credentials
134
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
129
+ # Use self-signed JWT if the endpoint is unchanged from default,
135
130
  # but only if the default endpoint does not have a region prefix.
136
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
137
- @config.endpoint == Client.configure.endpoint &&
131
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
138
132
  !@config.endpoint.split(".").first.include?("-")
139
133
  credentials ||= Credentials.default scope: @config.scope,
140
134
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -244,7 +238,9 @@ module Google
244
238
  options.apply_defaults timeout: @config.rpcs.list_intents.timeout,
245
239
  metadata: metadata,
246
240
  retry_policy: @config.rpcs.list_intents.retry_policy
247
- options.apply_defaults metadata: @config.metadata,
241
+
242
+ options.apply_defaults timeout: @config.timeout,
243
+ metadata: @config.metadata,
248
244
  retry_policy: @config.retry_policy
249
245
 
250
246
  @intents_stub.call_rpc :list_intents, request, options: options do |response, operation|
@@ -320,7 +316,9 @@ module Google
320
316
  options.apply_defaults timeout: @config.rpcs.get_intent.timeout,
321
317
  metadata: metadata,
322
318
  retry_policy: @config.rpcs.get_intent.retry_policy
323
- options.apply_defaults metadata: @config.metadata,
319
+
320
+ options.apply_defaults timeout: @config.timeout,
321
+ metadata: @config.metadata,
324
322
  retry_policy: @config.retry_policy
325
323
 
326
324
  @intents_stub.call_rpc :get_intent, request, options: options do |response, operation|
@@ -401,7 +399,9 @@ module Google
401
399
  options.apply_defaults timeout: @config.rpcs.create_intent.timeout,
402
400
  metadata: metadata,
403
401
  retry_policy: @config.rpcs.create_intent.retry_policy
404
- options.apply_defaults metadata: @config.metadata,
402
+
403
+ options.apply_defaults timeout: @config.timeout,
404
+ metadata: @config.metadata,
405
405
  retry_policy: @config.retry_policy
406
406
 
407
407
  @intents_stub.call_rpc :create_intent, request, options: options do |response, operation|
@@ -481,7 +481,9 @@ module Google
481
481
  options.apply_defaults timeout: @config.rpcs.update_intent.timeout,
482
482
  metadata: metadata,
483
483
  retry_policy: @config.rpcs.update_intent.retry_policy
484
- options.apply_defaults metadata: @config.metadata,
484
+
485
+ options.apply_defaults timeout: @config.timeout,
486
+ metadata: @config.metadata,
485
487
  retry_policy: @config.retry_policy
486
488
 
487
489
  @intents_stub.call_rpc :update_intent, request, options: options do |response, operation|
@@ -553,7 +555,9 @@ module Google
553
555
  options.apply_defaults timeout: @config.rpcs.delete_intent.timeout,
554
556
  metadata: metadata,
555
557
  retry_policy: @config.rpcs.delete_intent.retry_policy
556
- options.apply_defaults metadata: @config.metadata,
558
+
559
+ options.apply_defaults timeout: @config.timeout,
560
+ metadata: @config.metadata,
557
561
  retry_policy: @config.retry_policy
558
562
 
559
563
  @intents_stub.call_rpc :delete_intent, request, options: options do |response, operation|
@@ -641,7 +645,9 @@ module Google
641
645
  options.apply_defaults timeout: @config.rpcs.batch_update_intents.timeout,
642
646
  metadata: metadata,
643
647
  retry_policy: @config.rpcs.batch_update_intents.retry_policy
644
- options.apply_defaults metadata: @config.metadata,
648
+
649
+ options.apply_defaults timeout: @config.timeout,
650
+ metadata: @config.metadata,
645
651
  retry_policy: @config.retry_policy
646
652
 
647
653
  @intents_stub.call_rpc :batch_update_intents, request, options: options do |response, operation|
@@ -717,7 +723,9 @@ module Google
717
723
  options.apply_defaults timeout: @config.rpcs.batch_delete_intents.timeout,
718
724
  metadata: metadata,
719
725
  retry_policy: @config.rpcs.batch_delete_intents.retry_policy
720
- options.apply_defaults metadata: @config.metadata,
726
+
727
+ options.apply_defaults timeout: @config.timeout,
728
+ metadata: @config.metadata,
721
729
  retry_policy: @config.retry_policy
722
730
 
723
731
  @intents_stub.call_rpc :batch_delete_intents, request, options: options do |response, operation|
@@ -742,22 +750,21 @@ module Google
742
750
  # Configuration can be applied globally to all clients, or to a single client
743
751
  # on construction.
744
752
  #
745
- # # Examples
746
- #
747
- # To modify the global config, setting the timeout for list_intents
748
- # to 20 seconds, and all remaining timeouts to 10 seconds:
749
- #
750
- # ::Google::Cloud::Dialogflow::V2::Intents::Client.configure do |config|
751
- # config.timeout = 10.0
752
- # config.rpcs.list_intents.timeout = 20.0
753
- # end
754
- #
755
- # To apply the above configuration only to a new client:
756
- #
757
- # client = ::Google::Cloud::Dialogflow::V2::Intents::Client.new do |config|
758
- # config.timeout = 10.0
759
- # config.rpcs.list_intents.timeout = 20.0
760
- # end
753
+ # @example
754
+ #
755
+ # # Modify the global config, setting the timeout for
756
+ # # list_intents to 20 seconds,
757
+ # # and all remaining timeouts to 10 seconds.
758
+ # ::Google::Cloud::Dialogflow::V2::Intents::Client.configure do |config|
759
+ # config.timeout = 10.0
760
+ # config.rpcs.list_intents.timeout = 20.0
761
+ # end
762
+ #
763
+ # # Apply the above configuration only to a new client.
764
+ # client = ::Google::Cloud::Dialogflow::V2::Intents::Client.new do |config|
765
+ # config.timeout = 10.0
766
+ # config.rpcs.list_intents.timeout = 20.0
767
+ # end
761
768
  #
762
769
  # @!attribute [rw] endpoint
763
770
  # The hostname or hostname:port of the service endpoint.
@@ -169,7 +169,9 @@ module Google
169
169
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
170
170
  metadata: metadata,
171
171
  retry_policy: @config.rpcs.list_operations.retry_policy
172
- options.apply_defaults metadata: @config.metadata,
172
+
173
+ options.apply_defaults timeout: @config.timeout,
174
+ metadata: @config.metadata,
173
175
  retry_policy: @config.retry_policy
174
176
 
175
177
  @operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
@@ -239,7 +241,9 @@ module Google
239
241
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
240
242
  metadata: metadata,
241
243
  retry_policy: @config.rpcs.get_operation.retry_policy
242
- options.apply_defaults metadata: @config.metadata,
244
+
245
+ options.apply_defaults timeout: @config.timeout,
246
+ metadata: @config.metadata,
243
247
  retry_policy: @config.retry_policy
244
248
 
245
249
  @operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
@@ -309,7 +313,9 @@ module Google
309
313
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
310
314
  metadata: metadata,
311
315
  retry_policy: @config.rpcs.delete_operation.retry_policy
312
- options.apply_defaults metadata: @config.metadata,
316
+
317
+ options.apply_defaults timeout: @config.timeout,
318
+ metadata: @config.metadata,
313
319
  retry_policy: @config.retry_policy
314
320
 
315
321
  @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
@@ -384,7 +390,9 @@ module Google
384
390
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
385
391
  metadata: metadata,
386
392
  retry_policy: @config.rpcs.cancel_operation.retry_policy
387
- options.apply_defaults metadata: @config.metadata,
393
+
394
+ options.apply_defaults timeout: @config.timeout,
395
+ metadata: @config.metadata,
388
396
  retry_policy: @config.retry_policy
389
397
 
390
398
  @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
@@ -456,7 +464,9 @@ module Google
456
464
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
457
465
  metadata: metadata,
458
466
  retry_policy: @config.rpcs.wait_operation.retry_policy
459
- options.apply_defaults metadata: @config.metadata,
467
+
468
+ options.apply_defaults timeout: @config.timeout,
469
+ metadata: @config.metadata,
460
470
  retry_policy: @config.retry_policy
461
471
 
462
472
  @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
@@ -481,22 +491,21 @@ module Google
481
491
  # Configuration can be applied globally to all clients, or to a single client
482
492
  # on construction.
483
493
  #
484
- # # Examples
485
- #
486
- # To modify the global config, setting the timeout for list_operations
487
- # to 20 seconds, and all remaining timeouts to 10 seconds:
488
- #
489
- # ::Google::Longrunning::Operations::Client.configure do |config|
490
- # config.timeout = 10.0
491
- # config.rpcs.list_operations.timeout = 20.0
492
- # end
493
- #
494
- # To apply the above configuration only to a new client:
495
- #
496
- # client = ::Google::Longrunning::Operations::Client.new do |config|
497
- # config.timeout = 10.0
498
- # config.rpcs.list_operations.timeout = 20.0
499
- # end
494
+ # @example
495
+ #
496
+ # # Modify the global config, setting the timeout for
497
+ # # list_operations to 20 seconds,
498
+ # # and all remaining timeouts to 10 seconds.
499
+ # ::Google::Longrunning::Operations::Client.configure do |config|
500
+ # config.timeout = 10.0
501
+ # config.rpcs.list_operations.timeout = 20.0
502
+ # end
503
+ #
504
+ # # Apply the above configuration only to a new client.
505
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
506
+ # config.timeout = 10.0
507
+ # config.rpcs.list_operations.timeout = 20.0
508
+ # end
500
509
  #
501
510
  # @!attribute [rw] endpoint
502
511
  # The hostname or hostname:port of the service endpoint.
@@ -41,13 +41,12 @@ module Google
41
41
  # See {::Google::Cloud::Dialogflow::V2::KnowledgeBases::Client::Configuration}
42
42
  # for a description of the configuration fields.
43
43
  #
44
- # ## Example
44
+ # @example
45
45
  #
46
- # To modify the configuration for all KnowledgeBases clients:
47
- #
48
- # ::Google::Cloud::Dialogflow::V2::KnowledgeBases::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all KnowledgeBases clients
47
+ # ::Google::Cloud::Dialogflow::V2::KnowledgeBases::Client.configure do |config|
48
+ # config.timeout = 10.0
49
+ # end
51
50
  #
52
51
  # @yield [config] Configure the Client client.
53
52
  # @yieldparam config [Client::Configuration]
@@ -99,19 +98,15 @@ module Google
99
98
  ##
100
99
  # Create a new KnowledgeBases client object.
101
100
  #
102
- # ## Examples
103
- #
104
- # To create a new KnowledgeBases client with the default
105
- # configuration:
106
- #
107
- # client = ::Google::Cloud::Dialogflow::V2::KnowledgeBases::Client.new
101
+ # @example
108
102
  #
109
- # To create a new KnowledgeBases client with a custom
110
- # configuration:
103
+ # # Create a client using the default configuration
104
+ # client = ::Google::Cloud::Dialogflow::V2::KnowledgeBases::Client.new
111
105
  #
112
- # client = ::Google::Cloud::Dialogflow::V2::KnowledgeBases::Client.new do |config|
113
- # config.timeout = 10.0
114
- # end
106
+ # # Create a client using a custom configuration
107
+ # client = ::Google::Cloud::Dialogflow::V2::KnowledgeBases::Client.new do |config|
108
+ # config.timeout = 10.0
109
+ # end
115
110
  #
116
111
  # @yield [config] Configure the KnowledgeBases client.
117
112
  # @yieldparam config [Client::Configuration]
@@ -131,10 +126,9 @@ module Google
131
126
 
132
127
  # Create credentials
133
128
  credentials = @config.credentials
134
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
129
+ # Use self-signed JWT if the endpoint is unchanged from default,
135
130
  # but only if the default endpoint does not have a region prefix.
136
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
137
- @config.endpoint == Client.configure.endpoint &&
131
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
138
132
  !@config.endpoint.split(".").first.include?("-")
139
133
  credentials ||= Credentials.default scope: @config.scope,
140
134
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -216,7 +210,9 @@ module Google
216
210
  options.apply_defaults timeout: @config.rpcs.list_knowledge_bases.timeout,
217
211
  metadata: metadata,
218
212
  retry_policy: @config.rpcs.list_knowledge_bases.retry_policy
219
- options.apply_defaults metadata: @config.metadata,
213
+
214
+ options.apply_defaults timeout: @config.timeout,
215
+ metadata: @config.metadata,
220
216
  retry_policy: @config.retry_policy
221
217
 
222
218
  @knowledge_bases_stub.call_rpc :list_knowledge_bases, request, options: options do |response, operation|
@@ -285,7 +281,9 @@ module Google
285
281
  options.apply_defaults timeout: @config.rpcs.get_knowledge_base.timeout,
286
282
  metadata: metadata,
287
283
  retry_policy: @config.rpcs.get_knowledge_base.retry_policy
288
- options.apply_defaults metadata: @config.metadata,
284
+
285
+ options.apply_defaults timeout: @config.timeout,
286
+ metadata: @config.metadata,
289
287
  retry_policy: @config.retry_policy
290
288
 
291
289
  @knowledge_bases_stub.call_rpc :get_knowledge_base, request, options: options do |response, operation|
@@ -354,7 +352,9 @@ module Google
354
352
  options.apply_defaults timeout: @config.rpcs.create_knowledge_base.timeout,
355
353
  metadata: metadata,
356
354
  retry_policy: @config.rpcs.create_knowledge_base.retry_policy
357
- options.apply_defaults metadata: @config.metadata,
355
+
356
+ options.apply_defaults timeout: @config.timeout,
357
+ metadata: @config.metadata,
358
358
  retry_policy: @config.retry_policy
359
359
 
360
360
  @knowledge_bases_stub.call_rpc :create_knowledge_base, request, options: options do |response, operation|
@@ -425,7 +425,9 @@ module Google
425
425
  options.apply_defaults timeout: @config.rpcs.delete_knowledge_base.timeout,
426
426
  metadata: metadata,
427
427
  retry_policy: @config.rpcs.delete_knowledge_base.retry_policy
428
- options.apply_defaults metadata: @config.metadata,
428
+
429
+ options.apply_defaults timeout: @config.timeout,
430
+ metadata: @config.metadata,
429
431
  retry_policy: @config.retry_policy
430
432
 
431
433
  @knowledge_bases_stub.call_rpc :delete_knowledge_base, request, options: options do |response, operation|
@@ -495,7 +497,9 @@ module Google
495
497
  options.apply_defaults timeout: @config.rpcs.update_knowledge_base.timeout,
496
498
  metadata: metadata,
497
499
  retry_policy: @config.rpcs.update_knowledge_base.retry_policy
498
- options.apply_defaults metadata: @config.metadata,
500
+
501
+ options.apply_defaults timeout: @config.timeout,
502
+ metadata: @config.metadata,
499
503
  retry_policy: @config.retry_policy
500
504
 
501
505
  @knowledge_bases_stub.call_rpc :update_knowledge_base, request, options: options do |response, operation|
@@ -519,22 +523,21 @@ module Google
519
523
  # Configuration can be applied globally to all clients, or to a single client
520
524
  # on construction.
521
525
  #
522
- # # Examples
523
- #
524
- # To modify the global config, setting the timeout for list_knowledge_bases
525
- # to 20 seconds, and all remaining timeouts to 10 seconds:
526
- #
527
- # ::Google::Cloud::Dialogflow::V2::KnowledgeBases::Client.configure do |config|
528
- # config.timeout = 10.0
529
- # config.rpcs.list_knowledge_bases.timeout = 20.0
530
- # end
531
- #
532
- # To apply the above configuration only to a new client:
533
- #
534
- # client = ::Google::Cloud::Dialogflow::V2::KnowledgeBases::Client.new do |config|
535
- # config.timeout = 10.0
536
- # config.rpcs.list_knowledge_bases.timeout = 20.0
537
- # end
526
+ # @example
527
+ #
528
+ # # Modify the global config, setting the timeout for
529
+ # # list_knowledge_bases to 20 seconds,
530
+ # # and all remaining timeouts to 10 seconds.
531
+ # ::Google::Cloud::Dialogflow::V2::KnowledgeBases::Client.configure do |config|
532
+ # config.timeout = 10.0
533
+ # config.rpcs.list_knowledge_bases.timeout = 20.0
534
+ # end
535
+ #
536
+ # # Apply the above configuration only to a new client.
537
+ # client = ::Google::Cloud::Dialogflow::V2::KnowledgeBases::Client.new do |config|
538
+ # config.timeout = 10.0
539
+ # config.rpcs.list_knowledge_bases.timeout = 20.0
540
+ # end
538
541
  #
539
542
  # @!attribute [rw] endpoint
540
543
  # The hostname or hostname:port of the service endpoint.