google-cloud-retail-v2 0.4.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (24) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/retail/v2/catalog_service/client.rb +47 -46
  3. data/lib/google/cloud/retail/v2/catalog_service_services_pb.rb +4 -4
  4. data/lib/google/cloud/retail/v2/completion_service/client.rb +49 -50
  5. data/lib/google/cloud/retail/v2/completion_service/operations.rb +30 -21
  6. data/lib/google/cloud/retail/v2/completion_service.rb +2 -2
  7. data/lib/google/cloud/retail/v2/completion_service_services_pb.rb +6 -6
  8. data/lib/google/cloud/retail/v2/prediction_service/client.rb +34 -39
  9. data/lib/google/cloud/retail/v2/product_service/client.rb +69 -53
  10. data/lib/google/cloud/retail/v2/product_service/operations.rb +30 -21
  11. data/lib/google/cloud/retail/v2/product_service_services_pb.rb +6 -6
  12. data/lib/google/cloud/retail/v2/search_service/client.rb +83 -77
  13. data/lib/google/cloud/retail/v2/search_service.rb +2 -2
  14. data/lib/google/cloud/retail/v2/search_service_pb.rb +2 -0
  15. data/lib/google/cloud/retail/v2/search_service_services_pb.rb +4 -4
  16. data/lib/google/cloud/retail/v2/user_event_service/client.rb +56 -43
  17. data/lib/google/cloud/retail/v2/user_event_service/operations.rb +30 -21
  18. data/lib/google/cloud/retail/v2/version.rb +1 -1
  19. data/proto_docs/google/cloud/retail/v2/completion_service.rb +9 -7
  20. data/proto_docs/google/cloud/retail/v2/import_config.rb +4 -4
  21. data/proto_docs/google/cloud/retail/v2/product.rb +11 -8
  22. data/proto_docs/google/cloud/retail/v2/search_service.rb +103 -218
  23. data/proto_docs/google/cloud/retail/v2/user_event.rb +15 -3
  24. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0c775217886f336442c897f7ab810d219aeb65d75cb5c1af8e31dfb884b68202
4
- data.tar.gz: bc830f5824438ccfebc31eca687dabfc263c0855c5a17cff264db2b1eb22ba09
3
+ metadata.gz: 422025455c4fa8d251bfa6ce1ac4a943b1888ecc0efdbaf16803ea3545926a52
4
+ data.tar.gz: dfc946b2a39132d32a90da0defa43aab97f8e24009573e405e6e691ca2ab3a36
5
5
  SHA512:
6
- metadata.gz: 38e7ab1b9f161c0bca43f813ad1356f0267459ed35a17dd074f516e181df72284408dfe8ebf67fdd11fc00ce931d04bc862e827aaa4c82cd16c08b6df731ce99
7
- data.tar.gz: 0625bfe6a8d7e15ab43af987b1946475746f47f47144c20e28fc522052e3554f21904d7651ada0247abc16100dc6a4ddfc1a44b67308bed34640ec0b392628ff
6
+ metadata.gz: 82cb4d8e176954b73e53e73fd89ca45ef04655fa7e1fd57b2d1abf2e4801b22f937bd36d2fbd717d0db76477c25c6ada69c6e923d72ca384625194f07274a330
7
+ data.tar.gz: bfce46bb79939b1de5189510ff0230eedced58551f49de189104f2e47949965ce4c24d59df170bb85e4fdaf10921997682afada6412074f09ebce6d8388d905a
@@ -41,13 +41,12 @@ module Google
41
41
  # See {::Google::Cloud::Retail::V2::CatalogService::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 CatalogService clients:
47
- #
48
- # ::Google::Cloud::Retail::V2::CatalogService::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all CatalogService clients
47
+ # ::Google::Cloud::Retail::V2::CatalogService::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]
@@ -65,9 +64,9 @@ module Google
65
64
  end
66
65
  default_config = Client::Configuration.new parent_config
67
66
 
68
- default_config.timeout = 60.0
67
+ default_config.timeout = 5.0
69
68
  default_config.retry_policy = {
70
- initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
69
+ initial_delay: 0.1, max_delay: 5.0, multiplier: 1.3, retry_codes: [14, 4]
71
70
  }
72
71
 
73
72
  default_config
@@ -99,19 +98,15 @@ module Google
99
98
  ##
100
99
  # Create a new CatalogService client object.
101
100
  #
102
- # ## Examples
103
- #
104
- # To create a new CatalogService client with the default
105
- # configuration:
106
- #
107
- # client = ::Google::Cloud::Retail::V2::CatalogService::Client.new
101
+ # @example
108
102
  #
109
- # To create a new CatalogService client with a custom
110
- # configuration:
103
+ # # Create a client using the default configuration
104
+ # client = ::Google::Cloud::Retail::V2::CatalogService::Client.new
111
105
  #
112
- # client = ::Google::Cloud::Retail::V2::CatalogService::Client.new do |config|
113
- # config.timeout = 10.0
114
- # end
106
+ # # Create a client using a custom configuration
107
+ # client = ::Google::Cloud::Retail::V2::CatalogService::Client.new do |config|
108
+ # config.timeout = 10.0
109
+ # end
115
110
  #
116
111
  # @yield [config] Configure the CatalogService 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
@@ -233,7 +227,9 @@ module Google
233
227
  options.apply_defaults timeout: @config.rpcs.list_catalogs.timeout,
234
228
  metadata: metadata,
235
229
  retry_policy: @config.rpcs.list_catalogs.retry_policy
236
- options.apply_defaults metadata: @config.metadata,
230
+
231
+ options.apply_defaults timeout: @config.timeout,
232
+ metadata: @config.metadata,
237
233
  retry_policy: @config.retry_policy
238
234
 
239
235
  @catalog_service_stub.call_rpc :list_catalogs, request, options: options do |response, operation|
@@ -313,7 +309,9 @@ module Google
313
309
  options.apply_defaults timeout: @config.rpcs.update_catalog.timeout,
314
310
  metadata: metadata,
315
311
  retry_policy: @config.rpcs.update_catalog.retry_policy
316
- options.apply_defaults metadata: @config.metadata,
312
+
313
+ options.apply_defaults timeout: @config.timeout,
314
+ metadata: @config.metadata,
317
315
  retry_policy: @config.retry_policy
318
316
 
319
317
  @catalog_service_stub.call_rpc :update_catalog, request, options: options do |response, operation|
@@ -360,8 +358,8 @@ module Google
360
358
  # \\{newBranch}.
361
359
  #
362
360
  # This feature is only available for users who have Retail Search enabled.
363
- # Contact Retail Support (retail-search-support@google.com) if you are
364
- # interested in using Retail Search.
361
+ # Please submit a form [here](https://cloud.google.com/contact) to contact
362
+ # cloud sales if you are interested in using Retail Search.
365
363
  #
366
364
  # @overload set_default_branch(request, options = nil)
367
365
  # Pass arguments to `set_default_branch` via a request object, either of type
@@ -428,7 +426,9 @@ module Google
428
426
  options.apply_defaults timeout: @config.rpcs.set_default_branch.timeout,
429
427
  metadata: metadata,
430
428
  retry_policy: @config.rpcs.set_default_branch.retry_policy
431
- options.apply_defaults metadata: @config.metadata,
429
+
430
+ options.apply_defaults timeout: @config.timeout,
431
+ metadata: @config.metadata,
432
432
  retry_policy: @config.retry_policy
433
433
 
434
434
  @catalog_service_stub.call_rpc :set_default_branch, request, options: options do |response, operation|
@@ -445,8 +445,8 @@ module Google
445
445
  # method under a specified parent catalog.
446
446
  #
447
447
  # This feature is only available for users who have Retail Search enabled.
448
- # Contact Retail Support (retail-search-support@google.com) if you are
449
- # interested in using Retail Search.
448
+ # Please submit a form [here](https://cloud.google.com/contact) to contact
449
+ # cloud sales if you are interested in using Retail Search.
450
450
  #
451
451
  # @overload get_default_branch(request, options = nil)
452
452
  # Pass arguments to `get_default_branch` via a request object, either of type
@@ -501,7 +501,9 @@ module Google
501
501
  options.apply_defaults timeout: @config.rpcs.get_default_branch.timeout,
502
502
  metadata: metadata,
503
503
  retry_policy: @config.rpcs.get_default_branch.retry_policy
504
- options.apply_defaults metadata: @config.metadata,
504
+
505
+ options.apply_defaults timeout: @config.timeout,
506
+ metadata: @config.metadata,
505
507
  retry_policy: @config.retry_policy
506
508
 
507
509
  @catalog_service_stub.call_rpc :get_default_branch, request, options: options do |response, operation|
@@ -525,22 +527,21 @@ module Google
525
527
  # Configuration can be applied globally to all clients, or to a single client
526
528
  # on construction.
527
529
  #
528
- # # Examples
529
- #
530
- # To modify the global config, setting the timeout for list_catalogs
531
- # to 20 seconds, and all remaining timeouts to 10 seconds:
532
- #
533
- # ::Google::Cloud::Retail::V2::CatalogService::Client.configure do |config|
534
- # config.timeout = 10.0
535
- # config.rpcs.list_catalogs.timeout = 20.0
536
- # end
537
- #
538
- # To apply the above configuration only to a new client:
539
- #
540
- # client = ::Google::Cloud::Retail::V2::CatalogService::Client.new do |config|
541
- # config.timeout = 10.0
542
- # config.rpcs.list_catalogs.timeout = 20.0
543
- # end
530
+ # @example
531
+ #
532
+ # # Modify the global config, setting the timeout for
533
+ # # list_catalogs to 20 seconds,
534
+ # # and all remaining timeouts to 10 seconds.
535
+ # ::Google::Cloud::Retail::V2::CatalogService::Client.configure do |config|
536
+ # config.timeout = 10.0
537
+ # config.rpcs.list_catalogs.timeout = 20.0
538
+ # end
539
+ #
540
+ # # Apply the above configuration only to a new client.
541
+ # client = ::Google::Cloud::Retail::V2::CatalogService::Client.new do |config|
542
+ # config.timeout = 10.0
543
+ # config.rpcs.list_catalogs.timeout = 20.0
544
+ # end
544
545
  #
545
546
  # @!attribute [rw] endpoint
546
547
  # The hostname or hostname:port of the service endpoint.
@@ -73,16 +73,16 @@ module Google
73
73
  # {newBranch}.
74
74
  #
75
75
  # This feature is only available for users who have Retail Search enabled.
76
- # Contact Retail Support (retail-search-support@google.com) if you are
77
- # interested in using Retail Search.
76
+ # Please submit a form [here](https://cloud.google.com/contact) to contact
77
+ # cloud sales if you are interested in using Retail Search.
78
78
  rpc :SetDefaultBranch, ::Google::Cloud::Retail::V2::SetDefaultBranchRequest, ::Google::Protobuf::Empty
79
79
  # Get which branch is currently default branch set by
80
80
  # [CatalogService.SetDefaultBranch][google.cloud.retail.v2.CatalogService.SetDefaultBranch]
81
81
  # method under a specified parent catalog.
82
82
  #
83
83
  # This feature is only available for users who have Retail Search enabled.
84
- # Contact Retail Support (retail-search-support@google.com) if you are
85
- # interested in using Retail Search.
84
+ # Please submit a form [here](https://cloud.google.com/contact) to contact
85
+ # cloud sales if you are interested in using Retail Search.
86
86
  rpc :GetDefaultBranch, ::Google::Cloud::Retail::V2::GetDefaultBranchRequest, ::Google::Cloud::Retail::V2::GetDefaultBranchResponse
87
87
  end
88
88
 
@@ -30,8 +30,8 @@ module Google
30
30
  # Auto-completion service for retail.
31
31
  #
32
32
  # This feature is only available for users who have Retail Search enabled.
33
- # Contact Retail Support (retail-search-support@google.com) if you are
34
- # interested in using Retail Search.
33
+ # Please submit a form [here](https://cloud.google.com/contact) to contact
34
+ # cloud sales if you are interested in using Retail Search.
35
35
  #
36
36
  class Client
37
37
  include Paths
@@ -45,13 +45,12 @@ module Google
45
45
  # See {::Google::Cloud::Retail::V2::CompletionService::Client::Configuration}
46
46
  # for a description of the configuration fields.
47
47
  #
48
- # ## Example
48
+ # @example
49
49
  #
50
- # To modify the configuration for all CompletionService clients:
51
- #
52
- # ::Google::Cloud::Retail::V2::CompletionService::Client.configure do |config|
53
- # config.timeout = 10.0
54
- # end
50
+ # # Modify the configuration for all CompletionService clients
51
+ # ::Google::Cloud::Retail::V2::CompletionService::Client.configure do |config|
52
+ # config.timeout = 10.0
53
+ # end
55
54
  #
56
55
  # @yield [config] Configure the Client client.
57
56
  # @yieldparam config [Client::Configuration]
@@ -69,9 +68,9 @@ module Google
69
68
  end
70
69
  default_config = Client::Configuration.new parent_config
71
70
 
72
- default_config.timeout = 60.0
71
+ default_config.timeout = 5.0
73
72
  default_config.retry_policy = {
74
- initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
73
+ initial_delay: 0.1, max_delay: 5.0, multiplier: 1.3, retry_codes: [14, 4]
75
74
  }
76
75
 
77
76
  default_config
@@ -103,19 +102,15 @@ module Google
103
102
  ##
104
103
  # Create a new CompletionService client object.
105
104
  #
106
- # ## Examples
107
- #
108
- # To create a new CompletionService client with the default
109
- # configuration:
110
- #
111
- # client = ::Google::Cloud::Retail::V2::CompletionService::Client.new
105
+ # @example
112
106
  #
113
- # To create a new CompletionService client with a custom
114
- # configuration:
107
+ # # Create a client using the default configuration
108
+ # client = ::Google::Cloud::Retail::V2::CompletionService::Client.new
115
109
  #
116
- # client = ::Google::Cloud::Retail::V2::CompletionService::Client.new do |config|
117
- # config.timeout = 10.0
118
- # end
110
+ # # Create a client using a custom configuration
111
+ # client = ::Google::Cloud::Retail::V2::CompletionService::Client.new do |config|
112
+ # config.timeout = 10.0
113
+ # end
119
114
  #
120
115
  # @yield [config] Configure the CompletionService client.
121
116
  # @yieldparam config [Client::Configuration]
@@ -135,10 +130,9 @@ module Google
135
130
 
136
131
  # Create credentials
137
132
  credentials = @config.credentials
138
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
133
+ # Use self-signed JWT if the endpoint is unchanged from default,
139
134
  # but only if the default endpoint does not have a region prefix.
140
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
141
- @config.endpoint == Client.configure.endpoint &&
135
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
142
136
  !@config.endpoint.split(".").first.include?("-")
143
137
  credentials ||= Credentials.default scope: @config.scope,
144
138
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -175,8 +169,8 @@ module Google
175
169
  # Completes the specified prefix with keyword suggestions.
176
170
  #
177
171
  # This feature is only available for users who have Retail Search enabled.
178
- # Contact Retail Support (retail-search-support@google.com) if you are
179
- # interested in using Retail Search.
172
+ # Please submit a form [here](https://cloud.google.com/contact) to contact
173
+ # cloud sales if you are interested in using Retail Search.
180
174
  #
181
175
  # @overload complete_query(request, options = nil)
182
176
  # Pass arguments to `complete_query` via a request object, either of type
@@ -245,12 +239,14 @@ module Google
245
239
  # * user-data
246
240
  #
247
241
  # * cloud-retail
248
- # This option is not automatically enabled. Before using cloud-retail,
249
- # contact retail-search-support@google.com first.
242
+ # This option requires additional allowlisting. Before using cloud-retail,
243
+ # contact Cloud Retail support team first.
250
244
  # @param max_suggestions [::Integer]
251
- # Completion max suggestions.
245
+ # Completion max suggestions. If left unset or set to 0, then will fallback
246
+ # to the configured value [CompletionConfig.max_suggestions][].
252
247
  #
253
- # The maximum allowed max suggestions is 20. The default value is 20.
248
+ # The maximum allowed max suggestions is 20. If it is set higher, it will be
249
+ # capped by 20.
254
250
  #
255
251
  # @yield [response, operation] Access the result along with the RPC operation
256
252
  # @yieldparam response [::Google::Cloud::Retail::V2::CompleteQueryResponse]
@@ -286,7 +282,9 @@ module Google
286
282
  options.apply_defaults timeout: @config.rpcs.complete_query.timeout,
287
283
  metadata: metadata,
288
284
  retry_policy: @config.rpcs.complete_query.retry_policy
289
- options.apply_defaults metadata: @config.metadata,
285
+
286
+ options.apply_defaults timeout: @config.timeout,
287
+ metadata: @config.metadata,
290
288
  retry_policy: @config.retry_policy
291
289
 
292
290
  @completion_service_stub.call_rpc :complete_query, request, options: options do |response, operation|
@@ -303,8 +301,8 @@ module Google
303
301
  # Request processing may be synchronous. Partial updating is not supported.
304
302
  #
305
303
  # This feature is only available for users who have Retail Search enabled.
306
- # Contact Retail Support (retail-search-support@google.com) if you are
307
- # interested in using Retail Search.
304
+ # Please submit a form [here](https://cloud.google.com/contact) to contact
305
+ # cloud sales if you are interested in using Retail Search.
308
306
  #
309
307
  # @overload import_completion_data(request, options = nil)
310
308
  # Pass arguments to `import_completion_data` via a request object, either of type
@@ -368,7 +366,9 @@ module Google
368
366
  options.apply_defaults timeout: @config.rpcs.import_completion_data.timeout,
369
367
  metadata: metadata,
370
368
  retry_policy: @config.rpcs.import_completion_data.retry_policy
371
- options.apply_defaults metadata: @config.metadata,
369
+
370
+ options.apply_defaults timeout: @config.timeout,
371
+ metadata: @config.metadata,
372
372
  retry_policy: @config.retry_policy
373
373
 
374
374
  @completion_service_stub.call_rpc :import_completion_data, request, options: options do |response, operation|
@@ -393,22 +393,21 @@ module Google
393
393
  # Configuration can be applied globally to all clients, or to a single client
394
394
  # on construction.
395
395
  #
396
- # # Examples
397
- #
398
- # To modify the global config, setting the timeout for complete_query
399
- # to 20 seconds, and all remaining timeouts to 10 seconds:
400
- #
401
- # ::Google::Cloud::Retail::V2::CompletionService::Client.configure do |config|
402
- # config.timeout = 10.0
403
- # config.rpcs.complete_query.timeout = 20.0
404
- # end
405
- #
406
- # To apply the above configuration only to a new client:
407
- #
408
- # client = ::Google::Cloud::Retail::V2::CompletionService::Client.new do |config|
409
- # config.timeout = 10.0
410
- # config.rpcs.complete_query.timeout = 20.0
411
- # end
396
+ # @example
397
+ #
398
+ # # Modify the global config, setting the timeout for
399
+ # # complete_query to 20 seconds,
400
+ # # and all remaining timeouts to 10 seconds.
401
+ # ::Google::Cloud::Retail::V2::CompletionService::Client.configure do |config|
402
+ # config.timeout = 10.0
403
+ # config.rpcs.complete_query.timeout = 20.0
404
+ # end
405
+ #
406
+ # # Apply the above configuration only to a new client.
407
+ # client = ::Google::Cloud::Retail::V2::CompletionService::Client.new do |config|
408
+ # config.timeout = 10.0
409
+ # config.rpcs.complete_query.timeout = 20.0
410
+ # end
412
411
  #
413
412
  # @!attribute [rw] endpoint
414
413
  # 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.