google-cloud-retail-v2 0.4.2 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/retail/v2/catalog_pb.rb +2 -2
- data/lib/google/cloud/retail/v2/catalog_service/client.rb +26 -18
- data/lib/google/cloud/retail/v2/catalog_service_pb.rb +2 -2
- data/lib/google/cloud/retail/v2/catalog_service_services_pb.rb +5 -5
- data/lib/google/cloud/retail/v2/common_pb.rb +2 -2
- data/lib/google/cloud/retail/v2/completion_service/client.rb +29 -23
- data/lib/google/cloud/retail/v2/completion_service/operations.rb +20 -12
- data/lib/google/cloud/retail/v2/completion_service.rb +2 -2
- data/lib/google/cloud/retail/v2/completion_service_pb.rb +2 -2
- data/lib/google/cloud/retail/v2/completion_service_services_pb.rb +7 -7
- data/lib/google/cloud/retail/v2/import_config_pb.rb +2 -2
- data/lib/google/cloud/retail/v2/prediction_service/client.rb +7 -5
- data/lib/google/cloud/retail/v2/prediction_service_pb.rb +2 -2
- data/lib/google/cloud/retail/v2/prediction_service_services_pb.rb +1 -1
- data/lib/google/cloud/retail/v2/product_pb.rb +2 -2
- data/lib/google/cloud/retail/v2/product_service/client.rb +66 -43
- data/lib/google/cloud/retail/v2/product_service/operations.rb +20 -12
- data/lib/google/cloud/retail/v2/product_service_pb.rb +3 -2
- data/lib/google/cloud/retail/v2/product_service_services_pb.rb +7 -7
- data/lib/google/cloud/retail/v2/purge_config_pb.rb +2 -2
- data/lib/google/cloud/retail/v2/search_service/client.rb +74 -45
- data/lib/google/cloud/retail/v2/search_service.rb +2 -2
- data/lib/google/cloud/retail/v2/search_service_pb.rb +11 -2
- data/lib/google/cloud/retail/v2/search_service_services_pb.rb +5 -5
- data/lib/google/cloud/retail/v2/user_event_pb.rb +2 -2
- data/lib/google/cloud/retail/v2/user_event_service/client.rb +37 -17
- data/lib/google/cloud/retail/v2/user_event_service/operations.rb +20 -12
- data/lib/google/cloud/retail/v2/user_event_service_pb.rb +2 -2
- data/lib/google/cloud/retail/v2/user_event_service_services_pb.rb +1 -1
- data/lib/google/cloud/retail/v2/version.rb +1 -1
- data/proto_docs/google/api/httpbody.rb +7 -3
- data/proto_docs/google/cloud/retail/v2/common.rb +6 -5
- data/proto_docs/google/cloud/retail/v2/completion_service.rb +14 -12
- data/proto_docs/google/cloud/retail/v2/import_config.rb +5 -5
- data/proto_docs/google/cloud/retail/v2/product.rb +23 -17
- data/proto_docs/google/cloud/retail/v2/product_service.rb +8 -8
- data/proto_docs/google/cloud/retail/v2/search_service.rb +141 -74
- data/proto_docs/google/cloud/retail/v2/user_event.rb +19 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa7d4acd45ffcbbead3c8f032ca013431be2688380d06ddeb82eafee320fd872
|
4
|
+
data.tar.gz: c7ba3e2fab456b2763928e531874a74f6b19aac86261acbd2ecbbd982d53fe11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d05a2cf36756a96ddcfb48fa6d684f4c71a555676e5f525d0104150c4a838e16b7b62f0d5e2bca6579c32a81c0c18b56a9a612825f8f9af03a141a1cc0093b59
|
7
|
+
data.tar.gz: 15033447d9a4bd67e8fa849a5ef2d23d4d25ceee77e3e81df82fcccd07376ab3fdae97acc3ddb603abb4f964f8b5a37fa5b7f3a6e20eb4161d218c2b37f61a28
|
@@ -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
|
@@ -64,9 +64,9 @@ module Google
|
|
64
64
|
end
|
65
65
|
default_config = Client::Configuration.new parent_config
|
66
66
|
|
67
|
-
default_config.timeout =
|
67
|
+
default_config.timeout = 5.0
|
68
68
|
default_config.retry_policy = {
|
69
|
-
initial_delay: 0.1, max_delay:
|
69
|
+
initial_delay: 0.1, max_delay: 5.0, multiplier: 1.3, retry_codes: [14, 4]
|
70
70
|
}
|
71
71
|
|
72
72
|
default_config
|
@@ -218,9 +218,11 @@ module Google
|
|
218
218
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
219
219
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
220
220
|
|
221
|
-
header_params = {
|
222
|
-
|
223
|
-
|
221
|
+
header_params = {}
|
222
|
+
if request.parent
|
223
|
+
header_params["parent"] = request.parent
|
224
|
+
end
|
225
|
+
|
224
226
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
225
227
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
226
228
|
|
@@ -300,9 +302,11 @@ module Google
|
|
300
302
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
301
303
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
302
304
|
|
303
|
-
header_params = {
|
304
|
-
|
305
|
-
|
305
|
+
header_params = {}
|
306
|
+
if request.catalog&.name
|
307
|
+
header_params["catalog.name"] = request.catalog.name
|
308
|
+
end
|
309
|
+
|
306
310
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
307
311
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
308
312
|
|
@@ -358,8 +362,8 @@ module Google
|
|
358
362
|
# \\{newBranch}.
|
359
363
|
#
|
360
364
|
# This feature is only available for users who have Retail Search enabled.
|
361
|
-
#
|
362
|
-
# interested in using Retail Search.
|
365
|
+
# Please submit a form [here](https://cloud.google.com/contact) to contact
|
366
|
+
# cloud sales if you are interested in using Retail Search.
|
363
367
|
#
|
364
368
|
# @overload set_default_branch(request, options = nil)
|
365
369
|
# Pass arguments to `set_default_branch` via a request object, either of type
|
@@ -417,9 +421,11 @@ module Google
|
|
417
421
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
418
422
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
419
423
|
|
420
|
-
header_params = {
|
421
|
-
|
422
|
-
|
424
|
+
header_params = {}
|
425
|
+
if request.catalog
|
426
|
+
header_params["catalog"] = request.catalog
|
427
|
+
end
|
428
|
+
|
423
429
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
424
430
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
425
431
|
|
@@ -445,8 +451,8 @@ module Google
|
|
445
451
|
# method under a specified parent catalog.
|
446
452
|
#
|
447
453
|
# This feature is only available for users who have Retail Search enabled.
|
448
|
-
#
|
449
|
-
# interested in using Retail Search.
|
454
|
+
# Please submit a form [here](https://cloud.google.com/contact) to contact
|
455
|
+
# cloud sales if you are interested in using Retail Search.
|
450
456
|
#
|
451
457
|
# @overload get_default_branch(request, options = nil)
|
452
458
|
# Pass arguments to `get_default_branch` via a request object, either of type
|
@@ -492,9 +498,11 @@ module Google
|
|
492
498
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
493
499
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
494
500
|
|
495
|
-
header_params = {
|
496
|
-
|
497
|
-
|
501
|
+
header_params = {}
|
502
|
+
if request.catalog
|
503
|
+
header_params["catalog"] = request.catalog
|
504
|
+
end
|
505
|
+
|
498
506
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
499
507
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
500
508
|
|
@@ -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
|
-
#
|
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
|
-
#
|
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
|
-
#
|
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
|
@@ -68,9 +68,9 @@ module Google
|
|
68
68
|
end
|
69
69
|
default_config = Client::Configuration.new parent_config
|
70
70
|
|
71
|
-
default_config.timeout =
|
71
|
+
default_config.timeout = 5.0
|
72
72
|
default_config.retry_policy = {
|
73
|
-
initial_delay: 0.1, max_delay:
|
73
|
+
initial_delay: 0.1, max_delay: 5.0, multiplier: 1.3, retry_codes: [14, 4]
|
74
74
|
}
|
75
75
|
|
76
76
|
default_config
|
@@ -169,8 +169,8 @@ module Google
|
|
169
169
|
# Completes the specified prefix with keyword suggestions.
|
170
170
|
#
|
171
171
|
# This feature is only available for users who have Retail Search enabled.
|
172
|
-
#
|
173
|
-
# 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.
|
174
174
|
#
|
175
175
|
# @overload complete_query(request, options = nil)
|
176
176
|
# Pass arguments to `complete_query` via a request object, either of type
|
@@ -215,18 +215,18 @@ module Google
|
|
215
215
|
# @param device_type [::String]
|
216
216
|
# The device type context for completion suggestions.
|
217
217
|
# It is useful to apply different suggestions on different device types, e.g.
|
218
|
-
# DESKTOP
|
218
|
+
# `DESKTOP`, `MOBILE`. If it is empty, the suggestions are across all device
|
219
219
|
# types.
|
220
220
|
#
|
221
221
|
# Supported formats:
|
222
222
|
#
|
223
|
-
# * UNKNOWN_DEVICE_TYPE
|
223
|
+
# * `UNKNOWN_DEVICE_TYPE`
|
224
224
|
#
|
225
|
-
# * DESKTOP
|
225
|
+
# * `DESKTOP`
|
226
226
|
#
|
227
|
-
# * MOBILE
|
227
|
+
# * `MOBILE`
|
228
228
|
#
|
229
|
-
# * A customized string starts with OTHER_
|
229
|
+
# * A customized string starts with `OTHER_`, e.g. `OTHER_IPHONE`.
|
230
230
|
# @param dataset [::String]
|
231
231
|
# Determines which dataset to use for fetching completion. "user-data" will
|
232
232
|
# use the imported dataset through
|
@@ -239,12 +239,14 @@ module Google
|
|
239
239
|
# * user-data
|
240
240
|
#
|
241
241
|
# * cloud-retail
|
242
|
-
# This option
|
243
|
-
# contact
|
242
|
+
# This option requires additional allowlisting. Before using cloud-retail,
|
243
|
+
# contact Cloud Retail support team first.
|
244
244
|
# @param max_suggestions [::Integer]
|
245
|
-
# 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][].
|
246
247
|
#
|
247
|
-
# The maximum allowed max suggestions is 20.
|
248
|
+
# The maximum allowed max suggestions is 20. If it is set higher, it will be
|
249
|
+
# capped by 20.
|
248
250
|
#
|
249
251
|
# @yield [response, operation] Access the result along with the RPC operation
|
250
252
|
# @yieldparam response [::Google::Cloud::Retail::V2::CompleteQueryResponse]
|
@@ -271,9 +273,11 @@ module Google
|
|
271
273
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
272
274
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
273
275
|
|
274
|
-
header_params = {
|
275
|
-
|
276
|
-
|
276
|
+
header_params = {}
|
277
|
+
if request.catalog
|
278
|
+
header_params["catalog"] = request.catalog
|
279
|
+
end
|
280
|
+
|
277
281
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
278
282
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
279
283
|
|
@@ -299,8 +303,8 @@ module Google
|
|
299
303
|
# Request processing may be synchronous. Partial updating is not supported.
|
300
304
|
#
|
301
305
|
# This feature is only available for users who have Retail Search enabled.
|
302
|
-
#
|
303
|
-
# interested in using Retail Search.
|
306
|
+
# Please submit a form [here](https://cloud.google.com/contact) to contact
|
307
|
+
# cloud sales if you are interested in using Retail Search.
|
304
308
|
#
|
305
309
|
# @overload import_completion_data(request, options = nil)
|
306
310
|
# Pass arguments to `import_completion_data` via a request object, either of type
|
@@ -355,9 +359,11 @@ module Google
|
|
355
359
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
356
360
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
357
361
|
|
358
|
-
header_params = {
|
359
|
-
|
360
|
-
|
362
|
+
header_params = {}
|
363
|
+
if request.parent
|
364
|
+
header_params["parent"] = request.parent
|
365
|
+
end
|
366
|
+
|
361
367
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
362
368
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
363
369
|
|
@@ -160,9 +160,11 @@ module Google
|
|
160
160
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
161
161
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
162
162
|
|
163
|
-
header_params = {
|
164
|
-
|
165
|
-
|
163
|
+
header_params = {}
|
164
|
+
if request.name
|
165
|
+
header_params["name"] = request.name
|
166
|
+
end
|
167
|
+
|
166
168
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
167
169
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
168
170
|
|
@@ -232,9 +234,11 @@ module Google
|
|
232
234
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
233
235
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
234
236
|
|
235
|
-
header_params = {
|
236
|
-
|
237
|
-
|
237
|
+
header_params = {}
|
238
|
+
if request.name
|
239
|
+
header_params["name"] = request.name
|
240
|
+
end
|
241
|
+
|
238
242
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
239
243
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
240
244
|
|
@@ -304,9 +308,11 @@ module Google
|
|
304
308
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
305
309
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
306
310
|
|
307
|
-
header_params = {
|
308
|
-
|
309
|
-
|
311
|
+
header_params = {}
|
312
|
+
if request.name
|
313
|
+
header_params["name"] = request.name
|
314
|
+
end
|
315
|
+
|
310
316
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
311
317
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
312
318
|
|
@@ -381,9 +387,11 @@ module Google
|
|
381
387
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
382
388
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
383
389
|
|
384
|
-
header_params = {
|
385
|
-
|
386
|
-
|
390
|
+
header_params = {}
|
391
|
+
if request.name
|
392
|
+
header_params["name"] = request.name
|
393
|
+
end
|
394
|
+
|
387
395
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
388
396
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
389
397
|
|
@@ -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
|
-
#
|
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
|
-
#
|
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
|
-
#
|
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
|
-
#
|
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
|
@@ -64,9 +64,9 @@ module Google
|
|
64
64
|
end
|
65
65
|
default_config = Client::Configuration.new parent_config
|
66
66
|
|
67
|
-
default_config.timeout =
|
67
|
+
default_config.timeout = 5.0
|
68
68
|
default_config.retry_policy = {
|
69
|
-
initial_delay: 0.1, max_delay:
|
69
|
+
initial_delay: 0.1, max_delay: 5.0, multiplier: 1.3, retry_codes: [14, 4]
|
70
70
|
}
|
71
71
|
|
72
72
|
default_config
|
@@ -291,9 +291,11 @@ module Google
|
|
291
291
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
292
292
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
293
293
|
|
294
|
-
header_params = {
|
295
|
-
|
296
|
-
|
294
|
+
header_params = {}
|
295
|
+
if request.placement
|
296
|
+
header_params["placement"] = request.placement
|
297
|
+
end
|
298
|
+
|
297
299
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
298
300
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
299
301
|
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/retail/v2/prediction_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'
|
9
7
|
require 'google/cloud/retail/v2/user_event_pb'
|
10
8
|
require 'google/protobuf/struct_pb'
|
9
|
+
require 'google/protobuf'
|
10
|
+
|
11
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
12
|
add_file("google/cloud/retail/v2/prediction_service.proto", :syntax => :proto3) do
|
13
13
|
add_message "google.cloud.retail.v2.PredictRequest" do
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/retail/v2/product.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'
|
@@ -11,6 +9,8 @@ require 'google/protobuf/duration_pb'
|
|
11
9
|
require 'google/protobuf/field_mask_pb'
|
12
10
|
require 'google/protobuf/timestamp_pb'
|
13
11
|
require 'google/protobuf/wrappers_pb'
|
12
|
+
require 'google/protobuf'
|
13
|
+
|
14
14
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
15
15
|
add_file("google/cloud/retail/v2/product.proto", :syntax => :proto3) do
|
16
16
|
add_message "google.cloud.retail.v2.Product" do
|