google-cloud-retail-v2 0.5.0 → 0.5.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_service/client.rb +2 -2
- data/lib/google/cloud/retail/v2/completion_service/client.rb +2 -2
- data/lib/google/cloud/retail/v2/prediction_service/client.rb +2 -2
- data/lib/google/cloud/retail/v2/product_service/client.rb +7 -2
- data/lib/google/cloud/retail/v2/search_service/client.rb +6 -11
- data/lib/google/cloud/retail/v2/user_event_service/client.rb +12 -2
- data/lib/google/cloud/retail/v2/version.rb +1 -1
- data/proto_docs/google/cloud/retail/v2/product.rb +4 -1
- data/proto_docs/google/cloud/retail/v2/search_service.rb +7 -13
- 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: 422025455c4fa8d251bfa6ce1ac4a943b1888ecc0efdbaf16803ea3545926a52
|
4
|
+
data.tar.gz: dfc946b2a39132d32a90da0defa43aab97f8e24009573e405e6e691ca2ab3a36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82cb4d8e176954b73e53e73fd89ca45ef04655fa7e1fd57b2d1abf2e4801b22f937bd36d2fbd717d0db76477c25c6ada69c6e923d72ca384625194f07274a330
|
7
|
+
data.tar.gz: bfce46bb79939b1de5189510ff0230eedced58551f49de189104f2e47949965ce4c24d59df170bb85e4fdaf10921997682afada6412074f09ebce6d8388d905a
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -65,9 +65,14 @@ module Google
|
|
65
65
|
end
|
66
66
|
default_config = Client::Configuration.new parent_config
|
67
67
|
|
68
|
-
default_config.timeout =
|
68
|
+
default_config.timeout = 30.0
|
69
69
|
default_config.retry_policy = {
|
70
|
-
initial_delay: 0.1, max_delay:
|
70
|
+
initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14, 4]
|
71
|
+
}
|
72
|
+
|
73
|
+
default_config.rpcs.import_products.timeout = 300.0
|
74
|
+
default_config.rpcs.import_products.retry_policy = {
|
75
|
+
initial_delay: 0.1, max_delay: 300.0, multiplier: 1.3, retry_codes: [14, 4]
|
71
76
|
}
|
72
77
|
|
73
78
|
default_config
|
@@ -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
|
@@ -230,8 +230,7 @@ module Google
|
|
230
230
|
# @param filter [::String]
|
231
231
|
# The filter syntax consists of an expression language for constructing a
|
232
232
|
# predicate from one or more fields of the products being filtered. Filter
|
233
|
-
# expression is case-sensitive.
|
234
|
-
# guide](/retail/private/docs/filter-and-order#filter).
|
233
|
+
# expression is case-sensitive.
|
235
234
|
#
|
236
235
|
# If this field is unrecognizable, an INVALID_ARGUMENT is returned.
|
237
236
|
# @param canonical_filter [::String]
|
@@ -247,9 +246,7 @@ module Google
|
|
247
246
|
# @param order_by [::String]
|
248
247
|
# The order in which products are returned. Products can be ordered by
|
249
248
|
# a field in an {::Google::Cloud::Retail::V2::Product Product} object. Leave it
|
250
|
-
# unset if ordered by relevance. OrderBy expression is case-sensitive.
|
251
|
-
# more details at this [user
|
252
|
-
# guide](/retail/private/docs/filter-and-order#order).
|
249
|
+
# unset if ordered by relevance. OrderBy expression is case-sensitive.
|
253
250
|
#
|
254
251
|
# If this field is unrecognizable, an INVALID_ARGUMENT is returned.
|
255
252
|
# @param facet_specs [::Array<::Google::Cloud::Retail::V2::SearchRequest::FacetSpec, ::Hash>]
|
@@ -264,12 +261,10 @@ module Google
|
|
264
261
|
# This feature requires additional allowlisting. Contact Retail Search
|
265
262
|
# support team if you are interested in using dynamic facet feature.
|
266
263
|
# @param boost_spec [::Google::Cloud::Retail::V2::SearchRequest::BoostSpec, ::Hash]
|
267
|
-
# Boost specification to boost certain products.
|
268
|
-
# [user guide](/retail/private/docs/boosting).
|
264
|
+
# Boost specification to boost certain products.
|
269
265
|
# @param query_expansion_spec [::Google::Cloud::Retail::V2::SearchRequest::QueryExpansionSpec, ::Hash]
|
270
266
|
# The query expansion specification that specifies the conditions under which
|
271
|
-
# query expansion will occur.
|
272
|
-
# guide](/retail/private/docs/result-size#query_expansion).
|
267
|
+
# query expansion will occur.
|
273
268
|
# @param variant_rollup_keys [::Array<::String>]
|
274
269
|
# The keys to fetch and rollup the matching
|
275
270
|
# {::Google::Cloud::Retail::V2::Product::Type::VARIANT variant}
|
@@ -64,9 +64,19 @@ 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
|
+
}
|
71
|
+
|
72
|
+
default_config.rpcs.purge_user_events.timeout = 30.0
|
73
|
+
default_config.rpcs.purge_user_events.retry_policy = {
|
74
|
+
initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14, 4]
|
75
|
+
}
|
76
|
+
|
77
|
+
default_config.rpcs.import_user_events.timeout = 300.0
|
78
|
+
default_config.rpcs.import_user_events.retry_policy = {
|
79
|
+
initial_delay: 0.1, max_delay: 300.0, multiplier: 1.3, retry_codes: [14, 4]
|
70
80
|
}
|
71
81
|
|
72
82
|
default_config
|
@@ -120,6 +120,9 @@ module Google
|
|
120
120
|
# This field must be a UTF-8 encoded string with a length limit of 128
|
121
121
|
# characters. Otherwise, an INVALID_ARGUMENT error is returned.
|
122
122
|
#
|
123
|
+
# This field must be a Unigram. Otherwise, an INVALID_ARGUMENT error is
|
124
|
+
# returned.
|
125
|
+
#
|
123
126
|
# Google Merchant Center property
|
124
127
|
# [gtin](https://support.google.com/merchants/answer/6324461).
|
125
128
|
# Schema.org property
|
@@ -354,7 +357,7 @@ module Google
|
|
354
357
|
# The pattern or graphic print of the product. For example, "striped", "polka
|
355
358
|
# dot", "paisley".
|
356
359
|
#
|
357
|
-
# A maximum of
|
360
|
+
# A maximum of 20 values are allowed per
|
358
361
|
# {::Google::Cloud::Retail::V2::Product Product}. Each value must be a UTF-8
|
359
362
|
# encoded string with a length limit of 128 characters. Otherwise, an
|
360
363
|
# INVALID_ARGUMENT error is returned.
|
@@ -87,8 +87,7 @@ module Google
|
|
87
87
|
# @return [::String]
|
88
88
|
# The filter syntax consists of an expression language for constructing a
|
89
89
|
# predicate from one or more fields of the products being filtered. Filter
|
90
|
-
# expression is case-sensitive.
|
91
|
-
# guide](/retail/private/docs/filter-and-order#filter).
|
90
|
+
# expression is case-sensitive.
|
92
91
|
#
|
93
92
|
# If this field is unrecognizable, an INVALID_ARGUMENT is returned.
|
94
93
|
# @!attribute [rw] canonical_filter
|
@@ -106,9 +105,7 @@ module Google
|
|
106
105
|
# @return [::String]
|
107
106
|
# The order in which products are returned. Products can be ordered by
|
108
107
|
# a field in an {::Google::Cloud::Retail::V2::Product Product} object. Leave it
|
109
|
-
# unset if ordered by relevance. OrderBy expression is case-sensitive.
|
110
|
-
# more details at this [user
|
111
|
-
# guide](/retail/private/docs/filter-and-order#order).
|
108
|
+
# unset if ordered by relevance. OrderBy expression is case-sensitive.
|
112
109
|
#
|
113
110
|
# If this field is unrecognizable, an INVALID_ARGUMENT is returned.
|
114
111
|
# @!attribute [rw] facet_specs
|
@@ -126,13 +123,11 @@ module Google
|
|
126
123
|
# support team if you are interested in using dynamic facet feature.
|
127
124
|
# @!attribute [rw] boost_spec
|
128
125
|
# @return [::Google::Cloud::Retail::V2::SearchRequest::BoostSpec]
|
129
|
-
# Boost specification to boost certain products.
|
130
|
-
# [user guide](/retail/private/docs/boosting).
|
126
|
+
# Boost specification to boost certain products.
|
131
127
|
# @!attribute [rw] query_expansion_spec
|
132
128
|
# @return [::Google::Cloud::Retail::V2::SearchRequest::QueryExpansionSpec]
|
133
129
|
# The query expansion specification that specifies the conditions under which
|
134
|
-
# query expansion will occur.
|
135
|
-
# guide](/retail/private/docs/result-size#query_expansion).
|
130
|
+
# query expansion will occur.
|
136
131
|
# @!attribute [rw] variant_rollup_keys
|
137
132
|
# @return [::Array<::String>]
|
138
133
|
# The keys to fetch and rollup the matching
|
@@ -460,10 +455,9 @@ module Google
|
|
460
455
|
#
|
461
456
|
# * To boost products with product ID "product_1" or "product_2", and
|
462
457
|
# color
|
463
|
-
# "Red" or "Blue"
|
464
|
-
#
|
465
|
-
#
|
466
|
-
# *(colorFamilies: ANY("Red", "Blue"))<br>*
|
458
|
+
# "Red" or "Blue":
|
459
|
+
# * (id: ANY("product_1", "product_2")) AND (colorFamilies:
|
460
|
+
# ANY("Red","Blue"))
|
467
461
|
# @!attribute [rw] boost
|
468
462
|
# @return [::Float]
|
469
463
|
# Strength of the condition boost, which should be in [-1, 1]. Negative
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-retail-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08-
|
11
|
+
date: 2021-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|