google-cloud-retail-v2 0.4.1 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/retail/v2/catalog_pb.rb +2 -2
  3. data/lib/google/cloud/retail/v2/catalog_service/client.rb +47 -46
  4. data/lib/google/cloud/retail/v2/catalog_service_pb.rb +2 -2
  5. data/lib/google/cloud/retail/v2/catalog_service_services_pb.rb +5 -5
  6. data/lib/google/cloud/retail/v2/common_pb.rb +2 -2
  7. data/lib/google/cloud/retail/v2/completion_service/client.rb +49 -50
  8. data/lib/google/cloud/retail/v2/completion_service/operations.rb +30 -21
  9. data/lib/google/cloud/retail/v2/completion_service.rb +2 -2
  10. data/lib/google/cloud/retail/v2/completion_service_pb.rb +2 -2
  11. data/lib/google/cloud/retail/v2/completion_service_services_pb.rb +7 -7
  12. data/lib/google/cloud/retail/v2/import_config_pb.rb +2 -2
  13. data/lib/google/cloud/retail/v2/prediction_service/client.rb +34 -39
  14. data/lib/google/cloud/retail/v2/prediction_service_pb.rb +2 -2
  15. data/lib/google/cloud/retail/v2/prediction_service_services_pb.rb +1 -1
  16. data/lib/google/cloud/retail/v2/product_pb.rb +2 -2
  17. data/lib/google/cloud/retail/v2/product_service/client.rb +74 -58
  18. data/lib/google/cloud/retail/v2/product_service/operations.rb +30 -21
  19. data/lib/google/cloud/retail/v2/product_service_pb.rb +3 -2
  20. data/lib/google/cloud/retail/v2/product_service_services_pb.rb +7 -7
  21. data/lib/google/cloud/retail/v2/purge_config_pb.rb +2 -2
  22. data/lib/google/cloud/retail/v2/search_service/client.rb +101 -79
  23. data/lib/google/cloud/retail/v2/search_service.rb +2 -2
  24. data/lib/google/cloud/retail/v2/search_service_pb.rb +11 -2
  25. data/lib/google/cloud/retail/v2/search_service_services_pb.rb +5 -5
  26. data/lib/google/cloud/retail/v2/user_event_pb.rb +2 -2
  27. data/lib/google/cloud/retail/v2/user_event_service/client.rb +56 -43
  28. data/lib/google/cloud/retail/v2/user_event_service/operations.rb +30 -21
  29. data/lib/google/cloud/retail/v2/user_event_service_pb.rb +2 -2
  30. data/lib/google/cloud/retail/v2/user_event_service_services_pb.rb +1 -1
  31. data/lib/google/cloud/retail/v2/version.rb +1 -1
  32. data/proto_docs/google/api/httpbody.rb +7 -3
  33. data/proto_docs/google/cloud/retail/v2/common.rb +3 -3
  34. data/proto_docs/google/cloud/retail/v2/completion_service.rb +9 -7
  35. data/proto_docs/google/cloud/retail/v2/import_config.rb +4 -4
  36. data/proto_docs/google/cloud/retail/v2/product.rb +22 -16
  37. data/proto_docs/google/cloud/retail/v2/product_service.rb +6 -6
  38. data/proto_docs/google/cloud/retail/v2/search_service.rb +141 -74
  39. data/proto_docs/google/cloud/retail/v2/user_event.rb +19 -7
  40. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1dc44cab7183e8c99dcff0174ca915af53d47e792de193605d4333dd65777ced
4
- data.tar.gz: 31deb9ad3ab11a76193b85fe3bc30c39eaa372dda44dd1b83c12a01a89e9e06c
3
+ metadata.gz: e3c54ec4291ffd18e3937aded888310475087affcd33884b0c861915dc5ebcc6
4
+ data.tar.gz: cf991b3ef78d6a416ef9ee8c73484eccc232423727c4432ed921ff17ea5785a1
5
5
  SHA512:
6
- metadata.gz: 8925f2040c7b54c45d4dc158735550f20cda1aacbf42b6e46e7abc02dcab586921cd2744b6b44573dd0fbe3164cfab9e5432ecb55a81c9275321337e3a654515
7
- data.tar.gz: 502150bb18dbb2fdbb9ba9911d1e6e1272c80506feb6a625bb4ac335d5fdfbfa5b62d901385dc115c0921dbcfd092b35219c44709e9cb1904d1ba02dd4ace9a9
6
+ metadata.gz: c91db3290823a29c95972da1f7dfbc08c9af44d5c1e538044a11d1087b5a319b6b5ed7dce3759000dc6d928e43549e9057ee3cade11c9c5760ccaa070c99147b
7
+ data.tar.gz: e81be02bca288b3cb0763c4a6497ad55bedfcf427f057f6e4a83694281df9a15d6140b1439463de41e64a1a8e0310dd768fd299f985a7031c882a43ad55afdd1
@@ -1,13 +1,13 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/retail/v2/catalog.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/field_behavior_pb'
8
6
  require 'google/api/resource_pb'
9
7
  require 'google/cloud/retail/v2/common_pb'
10
8
  require 'google/cloud/retail/v2/import_config_pb'
9
+ require 'google/protobuf'
10
+
11
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
12
  add_file("google/cloud/retail/v2/catalog.proto", :syntax => :proto3) do
13
13
  add_message "google.cloud.retail.v2.ProductLevelConfig" do
@@ -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.
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/retail/v2/catalog_service.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/api/field_behavior_pb'
@@ -11,6 +9,8 @@ require 'google/cloud/retail/v2/catalog_pb'
11
9
  require 'google/protobuf/empty_pb'
12
10
  require 'google/protobuf/field_mask_pb'
13
11
  require 'google/protobuf/timestamp_pb'
12
+ require 'google/protobuf'
13
+
14
14
  Google::Protobuf::DescriptorPool.generated_pool.build do
15
15
  add_file("google/cloud/retail/v2/catalog_service.proto", :syntax => :proto3) do
16
16
  add_message "google.cloud.retail.v2.ListCatalogsRequest" do
@@ -27,7 +27,7 @@ module Google
27
27
  # Service for managing catalog configuration.
28
28
  class Service
29
29
 
30
- include GRPC::GenericService
30
+ include ::GRPC::GenericService
31
31
 
32
32
  self.marshal_class_method = :encode
33
33
  self.unmarshal_class_method = :decode
@@ -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
 
@@ -1,11 +1,11 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/retail/v2/common.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/field_behavior_pb'
8
6
  require 'google/protobuf/timestamp_pb'
7
+ require 'google/protobuf'
8
+
9
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  add_file("google/cloud/retail/v2/common.proto", :syntax => :proto3) do
11
11
  add_message "google.cloud.retail.v2.Audience" do
@@ -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.
@@ -35,8 +35,8 @@ module Google
35
35
  # Auto-completion service for retail.
36
36
  #
37
37
  # This feature is only available for users who have Retail Search enabled.
38
- # Contact Retail Support (retail-search-support@google.com) if you are
39
- # interested in using Retail Search.
38
+ # Please submit a form [here](https://cloud.google.com/contact) to contact
39
+ # cloud sales if you are interested in using Retail Search.
40
40
  #
41
41
  # To load this service and instantiate a client:
42
42
  #
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/retail/v2/completion_service.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/api/field_behavior_pb'
@@ -10,6 +8,8 @@ require 'google/api/resource_pb'
10
8
  require 'google/cloud/retail/v2/common_pb'
11
9
  require 'google/cloud/retail/v2/import_config_pb'
12
10
  require 'google/longrunning/operations_pb'
11
+ require 'google/protobuf'
12
+
13
13
  Google::Protobuf::DescriptorPool.generated_pool.build do
14
14
  add_file("google/cloud/retail/v2/completion_service.proto", :syntax => :proto3) do
15
15
  add_message "google.cloud.retail.v2.CompleteQueryRequest" do
@@ -27,11 +27,11 @@ module Google
27
27
  # Auto-completion service for retail.
28
28
  #
29
29
  # This feature is only available for users who have Retail Search enabled.
30
- # Contact Retail Support (retail-search-support@google.com) if you are
31
- # interested in using Retail Search.
30
+ # Please submit a form [here](https://cloud.google.com/contact) to contact
31
+ # cloud sales if you are interested in using Retail Search.
32
32
  class Service
33
33
 
34
- include GRPC::GenericService
34
+ include ::GRPC::GenericService
35
35
 
36
36
  self.marshal_class_method = :encode
37
37
  self.unmarshal_class_method = :decode
@@ -40,16 +40,16 @@ module Google
40
40
  # Completes the specified prefix with keyword suggestions.
41
41
  #
42
42
  # This feature is only available for users who have Retail Search enabled.
43
- # Contact Retail Support (retail-search-support@google.com) if you are
44
- # interested in using Retail Search.
43
+ # Please submit a form [here](https://cloud.google.com/contact) to contact
44
+ # cloud sales if you are interested in using Retail Search.
45
45
  rpc :CompleteQuery, ::Google::Cloud::Retail::V2::CompleteQueryRequest, ::Google::Cloud::Retail::V2::CompleteQueryResponse
46
46
  # Bulk import of processed completion dataset.
47
47
  #
48
48
  # Request processing may be synchronous. Partial updating is not supported.
49
49
  #
50
50
  # This feature is only available for users who have Retail Search enabled.
51
- # Contact Retail Support (retail-search-support@google.com) if you are
52
- # interested in using Retail Search.
51
+ # Please submit a form [here](https://cloud.google.com/contact) to contact
52
+ # cloud sales if you are interested in using Retail Search.
53
53
  rpc :ImportCompletionData, ::Google::Cloud::Retail::V2::ImportCompletionDataRequest, ::Google::Longrunning::Operation
54
54
  end
55
55
 
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/retail/v2/import_config.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/field_behavior_pb'
8
6
  require 'google/api/resource_pb'
@@ -12,6 +10,8 @@ require 'google/protobuf/field_mask_pb'
12
10
  require 'google/protobuf/timestamp_pb'
13
11
  require 'google/rpc/status_pb'
14
12
  require 'google/type/date_pb'
13
+ require 'google/protobuf'
14
+
15
15
  Google::Protobuf::DescriptorPool.generated_pool.build do
16
16
  add_file("google/cloud/retail/v2/import_config.proto", :syntax => :proto3) do
17
17
  add_message "google.cloud.retail.v2.GcsSource" do