google-cloud-dialogflow-v2 0.11.0 → 0.11.1

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.
@@ -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::EntityTypes::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 EntityTypes clients:
47
- #
48
- # ::Google::Cloud::Dialogflow::V2::EntityTypes::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all EntityTypes clients
47
+ # ::Google::Cloud::Dialogflow::V2::EntityTypes::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 EntityTypes client object.
101
100
  #
102
- # ## Examples
103
- #
104
- # To create a new EntityTypes client with the default
105
- # configuration:
106
- #
107
- # client = ::Google::Cloud::Dialogflow::V2::EntityTypes::Client.new
101
+ # @example
108
102
  #
109
- # To create a new EntityTypes client with a custom
110
- # configuration:
103
+ # # Create a client using the default configuration
104
+ # client = ::Google::Cloud::Dialogflow::V2::EntityTypes::Client.new
111
105
  #
112
- # client = ::Google::Cloud::Dialogflow::V2::EntityTypes::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::EntityTypes::Client.new do |config|
108
+ # config.timeout = 10.0
109
+ # end
115
110
  #
116
111
  # @yield [config] Configure the EntityTypes 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
@@ -234,7 +228,9 @@ module Google
234
228
  options.apply_defaults timeout: @config.rpcs.list_entity_types.timeout,
235
229
  metadata: metadata,
236
230
  retry_policy: @config.rpcs.list_entity_types.retry_policy
237
- options.apply_defaults metadata: @config.metadata,
231
+
232
+ options.apply_defaults timeout: @config.timeout,
233
+ metadata: @config.metadata,
238
234
  retry_policy: @config.retry_policy
239
235
 
240
236
  @entity_types_stub.call_rpc :list_entity_types, request, options: options do |response, operation|
@@ -308,7 +304,9 @@ module Google
308
304
  options.apply_defaults timeout: @config.rpcs.get_entity_type.timeout,
309
305
  metadata: metadata,
310
306
  retry_policy: @config.rpcs.get_entity_type.retry_policy
311
- options.apply_defaults metadata: @config.metadata,
307
+
308
+ options.apply_defaults timeout: @config.timeout,
309
+ metadata: @config.metadata,
312
310
  retry_policy: @config.retry_policy
313
311
 
314
312
  @entity_types_stub.call_rpc :get_entity_type, request, options: options do |response, operation|
@@ -387,7 +385,9 @@ module Google
387
385
  options.apply_defaults timeout: @config.rpcs.create_entity_type.timeout,
388
386
  metadata: metadata,
389
387
  retry_policy: @config.rpcs.create_entity_type.retry_policy
390
- options.apply_defaults metadata: @config.metadata,
388
+
389
+ options.apply_defaults timeout: @config.timeout,
390
+ metadata: @config.metadata,
391
391
  retry_policy: @config.retry_policy
392
392
 
393
393
  @entity_types_stub.call_rpc :create_entity_type, request, options: options do |response, operation|
@@ -465,7 +465,9 @@ module Google
465
465
  options.apply_defaults timeout: @config.rpcs.update_entity_type.timeout,
466
466
  metadata: metadata,
467
467
  retry_policy: @config.rpcs.update_entity_type.retry_policy
468
- options.apply_defaults metadata: @config.metadata,
468
+
469
+ options.apply_defaults timeout: @config.timeout,
470
+ metadata: @config.metadata,
469
471
  retry_policy: @config.retry_policy
470
472
 
471
473
  @entity_types_stub.call_rpc :update_entity_type, request, options: options do |response, operation|
@@ -536,7 +538,9 @@ module Google
536
538
  options.apply_defaults timeout: @config.rpcs.delete_entity_type.timeout,
537
539
  metadata: metadata,
538
540
  retry_policy: @config.rpcs.delete_entity_type.retry_policy
539
- options.apply_defaults metadata: @config.metadata,
541
+
542
+ options.apply_defaults timeout: @config.timeout,
543
+ metadata: @config.metadata,
540
544
  retry_policy: @config.retry_policy
541
545
 
542
546
  @entity_types_stub.call_rpc :delete_entity_type, request, options: options do |response, operation|
@@ -623,7 +627,9 @@ module Google
623
627
  options.apply_defaults timeout: @config.rpcs.batch_update_entity_types.timeout,
624
628
  metadata: metadata,
625
629
  retry_policy: @config.rpcs.batch_update_entity_types.retry_policy
626
- options.apply_defaults metadata: @config.metadata,
630
+
631
+ options.apply_defaults timeout: @config.timeout,
632
+ metadata: @config.metadata,
627
633
  retry_policy: @config.retry_policy
628
634
 
629
635
  @entity_types_stub.call_rpc :batch_update_entity_types, request, options: options do |response, operation|
@@ -698,7 +704,9 @@ module Google
698
704
  options.apply_defaults timeout: @config.rpcs.batch_delete_entity_types.timeout,
699
705
  metadata: metadata,
700
706
  retry_policy: @config.rpcs.batch_delete_entity_types.retry_policy
701
- options.apply_defaults metadata: @config.metadata,
707
+
708
+ options.apply_defaults timeout: @config.timeout,
709
+ metadata: @config.metadata,
702
710
  retry_policy: @config.retry_policy
703
711
 
704
712
  @entity_types_stub.call_rpc :batch_delete_entity_types, request, options: options do |response, operation|
@@ -778,7 +786,9 @@ module Google
778
786
  options.apply_defaults timeout: @config.rpcs.batch_create_entities.timeout,
779
787
  metadata: metadata,
780
788
  retry_policy: @config.rpcs.batch_create_entities.retry_policy
781
- options.apply_defaults metadata: @config.metadata,
789
+
790
+ options.apply_defaults timeout: @config.timeout,
791
+ metadata: @config.metadata,
782
792
  retry_policy: @config.retry_policy
783
793
 
784
794
  @entity_types_stub.call_rpc :batch_create_entities, request, options: options do |response, operation|
@@ -862,7 +872,9 @@ module Google
862
872
  options.apply_defaults timeout: @config.rpcs.batch_update_entities.timeout,
863
873
  metadata: metadata,
864
874
  retry_policy: @config.rpcs.batch_update_entities.retry_policy
865
- options.apply_defaults metadata: @config.metadata,
875
+
876
+ options.apply_defaults timeout: @config.timeout,
877
+ metadata: @config.metadata,
866
878
  retry_policy: @config.retry_policy
867
879
 
868
880
  @entity_types_stub.call_rpc :batch_update_entities, request, options: options do |response, operation|
@@ -944,7 +956,9 @@ module Google
944
956
  options.apply_defaults timeout: @config.rpcs.batch_delete_entities.timeout,
945
957
  metadata: metadata,
946
958
  retry_policy: @config.rpcs.batch_delete_entities.retry_policy
947
- options.apply_defaults metadata: @config.metadata,
959
+
960
+ options.apply_defaults timeout: @config.timeout,
961
+ metadata: @config.metadata,
948
962
  retry_policy: @config.retry_policy
949
963
 
950
964
  @entity_types_stub.call_rpc :batch_delete_entities, request, options: options do |response, operation|
@@ -969,22 +983,21 @@ module Google
969
983
  # Configuration can be applied globally to all clients, or to a single client
970
984
  # on construction.
971
985
  #
972
- # # Examples
973
- #
974
- # To modify the global config, setting the timeout for list_entity_types
975
- # to 20 seconds, and all remaining timeouts to 10 seconds:
976
- #
977
- # ::Google::Cloud::Dialogflow::V2::EntityTypes::Client.configure do |config|
978
- # config.timeout = 10.0
979
- # config.rpcs.list_entity_types.timeout = 20.0
980
- # end
981
- #
982
- # To apply the above configuration only to a new client:
983
- #
984
- # client = ::Google::Cloud::Dialogflow::V2::EntityTypes::Client.new do |config|
985
- # config.timeout = 10.0
986
- # config.rpcs.list_entity_types.timeout = 20.0
987
- # end
986
+ # @example
987
+ #
988
+ # # Modify the global config, setting the timeout for
989
+ # # list_entity_types to 20 seconds,
990
+ # # and all remaining timeouts to 10 seconds.
991
+ # ::Google::Cloud::Dialogflow::V2::EntityTypes::Client.configure do |config|
992
+ # config.timeout = 10.0
993
+ # config.rpcs.list_entity_types.timeout = 20.0
994
+ # end
995
+ #
996
+ # # Apply the above configuration only to a new client.
997
+ # client = ::Google::Cloud::Dialogflow::V2::EntityTypes::Client.new do |config|
998
+ # config.timeout = 10.0
999
+ # config.rpcs.list_entity_types.timeout = 20.0
1000
+ # end
988
1001
  #
989
1002
  # @!attribute [rw] endpoint
990
1003
  # 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::Environments::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 Environments clients:
47
- #
48
- # ::Google::Cloud::Dialogflow::V2::Environments::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all Environments clients
47
+ # ::Google::Cloud::Dialogflow::V2::Environments::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 Environments client object.
101
100
  #
102
- # ## Examples
103
- #
104
- # To create a new Environments client with the default
105
- # configuration:
101
+ # @example
106
102
  #
107
- # client = ::Google::Cloud::Dialogflow::V2::Environments::Client.new
103
+ # # Create a client using the default configuration
104
+ # client = ::Google::Cloud::Dialogflow::V2::Environments::Client.new
108
105
  #
109
- # To create a new Environments client with a custom
110
- # configuration:
111
- #
112
- # client = ::Google::Cloud::Dialogflow::V2::Environments::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::Environments::Client.new do |config|
108
+ # config.timeout = 10.0
109
+ # end
115
110
  #
116
111
  # @yield [config] Configure the Environments 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
@@ -219,7 +213,9 @@ module Google
219
213
  options.apply_defaults timeout: @config.rpcs.list_environments.timeout,
220
214
  metadata: metadata,
221
215
  retry_policy: @config.rpcs.list_environments.retry_policy
222
- options.apply_defaults metadata: @config.metadata,
216
+
217
+ options.apply_defaults timeout: @config.timeout,
218
+ metadata: @config.metadata,
223
219
  retry_policy: @config.retry_policy
224
220
 
225
221
  @environments_stub.call_rpc :list_environments, request, options: options do |response, operation|
@@ -293,7 +289,9 @@ module Google
293
289
  options.apply_defaults timeout: @config.rpcs.get_environment.timeout,
294
290
  metadata: metadata,
295
291
  retry_policy: @config.rpcs.get_environment.retry_policy
296
- options.apply_defaults metadata: @config.metadata,
292
+
293
+ options.apply_defaults timeout: @config.timeout,
294
+ metadata: @config.metadata,
297
295
  retry_policy: @config.retry_policy
298
296
 
299
297
  @environments_stub.call_rpc :get_environment, request, options: options do |response, operation|
@@ -367,7 +365,9 @@ module Google
367
365
  options.apply_defaults timeout: @config.rpcs.create_environment.timeout,
368
366
  metadata: metadata,
369
367
  retry_policy: @config.rpcs.create_environment.retry_policy
370
- options.apply_defaults metadata: @config.metadata,
368
+
369
+ options.apply_defaults timeout: @config.timeout,
370
+ metadata: @config.metadata,
371
371
  retry_policy: @config.retry_policy
372
372
 
373
373
  @environments_stub.call_rpc :create_environment, request, options: options do |response, operation|
@@ -451,7 +451,9 @@ module Google
451
451
  options.apply_defaults timeout: @config.rpcs.update_environment.timeout,
452
452
  metadata: metadata,
453
453
  retry_policy: @config.rpcs.update_environment.retry_policy
454
- options.apply_defaults metadata: @config.metadata,
454
+
455
+ options.apply_defaults timeout: @config.timeout,
456
+ metadata: @config.metadata,
455
457
  retry_policy: @config.retry_policy
456
458
 
457
459
  @environments_stub.call_rpc :update_environment, request, options: options do |response, operation|
@@ -524,7 +526,9 @@ module Google
524
526
  options.apply_defaults timeout: @config.rpcs.delete_environment.timeout,
525
527
  metadata: metadata,
526
528
  retry_policy: @config.rpcs.delete_environment.retry_policy
527
- options.apply_defaults metadata: @config.metadata,
529
+
530
+ options.apply_defaults timeout: @config.timeout,
531
+ metadata: @config.metadata,
528
532
  retry_policy: @config.retry_policy
529
533
 
530
534
  @environments_stub.call_rpc :delete_environment, request, options: options do |response, operation|
@@ -602,7 +606,9 @@ module Google
602
606
  options.apply_defaults timeout: @config.rpcs.get_environment_history.timeout,
603
607
  metadata: metadata,
604
608
  retry_policy: @config.rpcs.get_environment_history.retry_policy
605
- options.apply_defaults metadata: @config.metadata,
609
+
610
+ options.apply_defaults timeout: @config.timeout,
611
+ metadata: @config.metadata,
606
612
  retry_policy: @config.retry_policy
607
613
 
608
614
  @environments_stub.call_rpc :get_environment_history, request, options: options do |response, operation|
@@ -627,22 +633,21 @@ module Google
627
633
  # Configuration can be applied globally to all clients, or to a single client
628
634
  # on construction.
629
635
  #
630
- # # Examples
631
- #
632
- # To modify the global config, setting the timeout for list_environments
633
- # to 20 seconds, and all remaining timeouts to 10 seconds:
634
- #
635
- # ::Google::Cloud::Dialogflow::V2::Environments::Client.configure do |config|
636
- # config.timeout = 10.0
637
- # config.rpcs.list_environments.timeout = 20.0
638
- # end
639
- #
640
- # To apply the above configuration only to a new client:
641
- #
642
- # client = ::Google::Cloud::Dialogflow::V2::Environments::Client.new do |config|
643
- # config.timeout = 10.0
644
- # config.rpcs.list_environments.timeout = 20.0
645
- # end
636
+ # @example
637
+ #
638
+ # # Modify the global config, setting the timeout for
639
+ # # list_environments to 20 seconds,
640
+ # # and all remaining timeouts to 10 seconds.
641
+ # ::Google::Cloud::Dialogflow::V2::Environments::Client.configure do |config|
642
+ # config.timeout = 10.0
643
+ # config.rpcs.list_environments.timeout = 20.0
644
+ # end
645
+ #
646
+ # # Apply the above configuration only to a new client.
647
+ # client = ::Google::Cloud::Dialogflow::V2::Environments::Client.new do |config|
648
+ # config.timeout = 10.0
649
+ # config.rpcs.list_environments.timeout = 20.0
650
+ # end
646
651
  #
647
652
  # @!attribute [rw] endpoint
648
653
  # The hostname or hostname:port of the service endpoint.