google-cloud-retail-v2 0.20.0 → 1.0.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.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/retail/v2/analytics_service/client.rb +5 -1
- data/lib/google/cloud/retail/v2/analytics_service/operations.rb +13 -5
- data/lib/google/cloud/retail/v2/analytics_service/rest/client.rb +5 -1
- data/lib/google/cloud/retail/v2/analytics_service/rest/operations.rb +11 -4
- data/lib/google/cloud/retail/v2/catalog_pb.rb +9 -1
- data/lib/google/cloud/retail/v2/catalog_service/client.rb +25 -11
- data/lib/google/cloud/retail/v2/catalog_service/rest/client.rb +25 -11
- data/lib/google/cloud/retail/v2/common_pb.rb +4 -1
- data/lib/google/cloud/retail/v2/completion_service/client.rb +15 -6
- data/lib/google/cloud/retail/v2/completion_service/operations.rb +13 -5
- data/lib/google/cloud/retail/v2/completion_service/rest/client.rb +15 -6
- data/lib/google/cloud/retail/v2/completion_service/rest/operations.rb +11 -4
- data/lib/google/cloud/retail/v2/completion_service_pb.rb +1 -1
- data/lib/google/cloud/retail/v2/control_service/client.rb +13 -5
- data/lib/google/cloud/retail/v2/control_service/rest/client.rb +13 -5
- data/lib/google/cloud/retail/v2/model_pb.rb +4 -1
- data/lib/google/cloud/retail/v2/model_service/client.rb +19 -8
- data/lib/google/cloud/retail/v2/model_service/operations.rb +13 -5
- data/lib/google/cloud/retail/v2/model_service/rest/client.rb +19 -8
- data/lib/google/cloud/retail/v2/model_service/rest/operations.rb +11 -4
- data/lib/google/cloud/retail/v2/prediction_service/client.rb +5 -1
- data/lib/google/cloud/retail/v2/prediction_service/rest/client.rb +5 -1
- data/lib/google/cloud/retail/v2/product_service/client.rb +206 -21
- data/lib/google/cloud/retail/v2/product_service/operations.rb +13 -5
- data/lib/google/cloud/retail/v2/product_service/rest/client.rb +199 -21
- data/lib/google/cloud/retail/v2/product_service/rest/operations.rb +11 -4
- data/lib/google/cloud/retail/v2/product_service/rest/service_stub.rb +60 -0
- data/lib/google/cloud/retail/v2/product_service_pb.rb +2 -1
- data/lib/google/cloud/retail/v2/product_service_services_pb.rb +26 -6
- data/lib/google/cloud/retail/v2/purge_config_pb.rb +6 -1
- data/lib/google/cloud/retail/v2/search_service/client.rb +27 -23
- data/lib/google/cloud/retail/v2/search_service/rest/client.rb +27 -23
- data/lib/google/cloud/retail/v2/serving_config_pb.rb +1 -1
- data/lib/google/cloud/retail/v2/serving_config_service/client.rb +17 -7
- data/lib/google/cloud/retail/v2/serving_config_service/rest/client.rb +17 -7
- data/lib/google/cloud/retail/v2/user_event_service/client.rb +14 -6
- data/lib/google/cloud/retail/v2/user_event_service/operations.rb +13 -5
- data/lib/google/cloud/retail/v2/user_event_service/rest/client.rb +14 -6
- data/lib/google/cloud/retail/v2/user_event_service/rest/operations.rb +11 -4
- data/lib/google/cloud/retail/v2/version.rb +1 -1
- data/proto_docs/google/api/client.rb +4 -0
- data/proto_docs/google/cloud/retail/v2/catalog.rb +143 -4
- data/proto_docs/google/cloud/retail/v2/common.rb +104 -10
- data/proto_docs/google/cloud/retail/v2/completion_service.rb +14 -7
- data/proto_docs/google/cloud/retail/v2/import_config.rb +10 -4
- data/proto_docs/google/cloud/retail/v2/model.rb +40 -0
- data/proto_docs/google/cloud/retail/v2/product.rb +23 -22
- data/proto_docs/google/cloud/retail/v2/promotion.rb +2 -2
- data/proto_docs/google/cloud/retail/v2/purge_config.rb +93 -0
- data/proto_docs/google/cloud/retail/v2/search_service.rb +42 -42
- data/proto_docs/google/cloud/retail/v2/serving_config.rb +4 -0
- data/proto_docs/google/cloud/retail/v2/user_event.rb +3 -2
- metadata +6 -5
@@ -30,7 +30,7 @@ module Google
|
|
30
30
|
# or the name of the legacy placement resource, such as
|
31
31
|
# `projects/*/locations/global/catalogs/default_catalog/placements/default_search`.
|
32
32
|
# This field is used to identify the serving config name and the set
|
33
|
-
# of models that
|
33
|
+
# of models that are used to make the search.
|
34
34
|
# @!attribute [rw] branch
|
35
35
|
# @return [::String]
|
36
36
|
# The branch resource name, such as
|
@@ -93,8 +93,8 @@ module Google
|
|
93
93
|
# @return [::String]
|
94
94
|
# The filter syntax consists of an expression language for constructing a
|
95
95
|
# predicate from one or more fields of the products being filtered. Filter
|
96
|
-
# expression is case-sensitive.
|
97
|
-
#
|
96
|
+
# expression is case-sensitive. For more information, see
|
97
|
+
# [Filter](https://cloud.google.com/retail/docs/filter-and-order#filter).
|
98
98
|
#
|
99
99
|
# If this field is unrecognizable, an INVALID_ARGUMENT is returned.
|
100
100
|
# @!attribute [rw] canonical_filter
|
@@ -103,21 +103,21 @@ module Google
|
|
103
103
|
# checking any filters on the search page.
|
104
104
|
#
|
105
105
|
# The filter applied to every search request when quality improvement such as
|
106
|
-
# query expansion is needed.
|
107
|
-
# results
|
108
|
-
#
|
109
|
-
#
|
110
|
-
# strongly recommended to achieve high search quality.
|
106
|
+
# query expansion is needed. In the case a query does not have a sufficient
|
107
|
+
# amount of results this filter will be used to determine whether or not to
|
108
|
+
# enable the query expansion flow. The original filter will still be used for
|
109
|
+
# the query expanded search.
|
110
|
+
# This field is strongly recommended to achieve high search quality.
|
111
111
|
#
|
112
|
-
#
|
113
|
-
#
|
112
|
+
# For more information about filter syntax, see
|
113
|
+
# {::Google::Cloud::Retail::V2::SearchRequest#filter SearchRequest.filter}.
|
114
114
|
# @!attribute [rw] order_by
|
115
115
|
# @return [::String]
|
116
116
|
# The order in which products are returned. Products can be ordered by
|
117
117
|
# a field in an {::Google::Cloud::Retail::V2::Product Product} object. Leave it
|
118
|
-
# unset if ordered by relevance. OrderBy expression is case-sensitive.
|
119
|
-
# more
|
120
|
-
#
|
118
|
+
# unset if ordered by relevance. OrderBy expression is case-sensitive. For
|
119
|
+
# more information, see
|
120
|
+
# [Order](https://cloud.google.com/retail/docs/filter-and-order#order).
|
121
121
|
#
|
122
122
|
# If this field is unrecognizable, an INVALID_ARGUMENT is returned.
|
123
123
|
# @!attribute [rw] facet_specs
|
@@ -136,8 +136,8 @@ module Google
|
|
136
136
|
# textual facets can be dynamically generated.
|
137
137
|
# @!attribute [rw] boost_spec
|
138
138
|
# @return [::Google::Cloud::Retail::V2::SearchRequest::BoostSpec]
|
139
|
-
# Boost specification to boost certain products.
|
140
|
-
# [
|
139
|
+
# Boost specification to boost certain products. For more information, see
|
140
|
+
# [Boost results](https://cloud.google.com/retail/docs/boosting).
|
141
141
|
#
|
142
142
|
# Notice that if both
|
143
143
|
# {::Google::Cloud::Retail::V2::ServingConfig#boost_control_ids ServingConfig.boost_control_ids}
|
@@ -149,8 +149,8 @@ module Google
|
|
149
149
|
# @!attribute [rw] query_expansion_spec
|
150
150
|
# @return [::Google::Cloud::Retail::V2::SearchRequest::QueryExpansionSpec]
|
151
151
|
# The query expansion specification that specifies the conditions under which
|
152
|
-
# query expansion
|
153
|
-
#
|
152
|
+
# query expansion occurs. For more information, see [Query
|
153
|
+
# expansion](https://cloud.google.com/retail/docs/result-size#query_expansion).
|
154
154
|
# @!attribute [rw] variant_rollup_keys
|
155
155
|
# @return [::Array<::String>]
|
156
156
|
# The keys to fetch and rollup the matching
|
@@ -225,7 +225,7 @@ module Google
|
|
225
225
|
# INVALID_ARGUMENT error is returned.
|
226
226
|
# @!attribute [rw] page_categories
|
227
227
|
# @return [::Array<::String>]
|
228
|
-
# The categories associated with a category page.
|
228
|
+
# The categories associated with a category page. Must be set for category
|
229
229
|
# navigation queries to achieve good search quality. The format should be
|
230
230
|
# the same as
|
231
231
|
# {::Google::Cloud::Retail::V2::UserEvent#page_categories UserEvent.page_categories};
|
@@ -269,9 +269,9 @@ module Google
|
|
269
269
|
# key with multiple resources.
|
270
270
|
# * Keys must start with a lowercase letter or international character.
|
271
271
|
#
|
272
|
-
#
|
273
|
-
#
|
274
|
-
#
|
272
|
+
# For more information, see [Requirements for
|
273
|
+
# labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
|
274
|
+
# in the Resource Manager documentation.
|
275
275
|
# @!attribute [rw] spell_correction_spec
|
276
276
|
# @return [::Google::Cloud::Retail::V2::SearchRequest::SpellCorrectionSpec]
|
277
277
|
# The spell correction specification that specifies the mode under
|
@@ -333,15 +333,15 @@ module Google
|
|
333
333
|
# @return [::Boolean]
|
334
334
|
# Enables dynamic position for this facet. If set to true, the position of
|
335
335
|
# this facet among all facets in the response is determined by Google
|
336
|
-
# Retail Search. It
|
336
|
+
# Retail Search. It is ordered together with dynamic facets if dynamic
|
337
337
|
# facets is enabled. If set to false, the position of this facet in the
|
338
|
-
# response
|
338
|
+
# response is the same as in the request, and it is ranked before
|
339
339
|
# the facets with dynamic position enable and all dynamic facets.
|
340
340
|
#
|
341
341
|
# For example, you may always want to have rating facet returned in
|
342
342
|
# the response, but it's not necessarily to always display the rating facet
|
343
343
|
# at the top. In that case, you can set enable_dynamic_position to true so
|
344
|
-
# that the position of rating facet in response
|
344
|
+
# that the position of rating facet in response is determined by
|
345
345
|
# Google Retail Search.
|
346
346
|
#
|
347
347
|
# Another example, assuming you have the following facets in the request:
|
@@ -352,13 +352,13 @@ module Google
|
|
352
352
|
#
|
353
353
|
# * "brands", enable_dynamic_position = false
|
354
354
|
#
|
355
|
-
# And also you have a dynamic facets enable, which
|
356
|
-
#
|
355
|
+
# And also you have a dynamic facets enable, which generates a facet
|
356
|
+
# "gender". Then, the final order of the facets in the response can be
|
357
357
|
# ("price", "brands", "rating", "gender") or ("price", "brands", "gender",
|
358
358
|
# "rating") depends on how Google Retail Search orders "gender" and
|
359
|
-
# "rating" facets. However, notice that "price" and "brands"
|
360
|
-
# ranked at
|
361
|
-
# false.
|
359
|
+
# "rating" facets. However, notice that "price" and "brands" are always
|
360
|
+
# ranked at first and second position because their enable_dynamic_position
|
361
|
+
# values are false.
|
362
362
|
class FacetSpec
|
363
363
|
include ::Google::Protobuf::MessageExts
|
364
364
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -414,13 +414,13 @@ module Google
|
|
414
414
|
# values. Maximum number of intervals is 40.
|
415
415
|
#
|
416
416
|
# For all numerical facet keys that appear in the list of products from
|
417
|
-
# the catalog, the percentiles 0, 10, 30, 50, 70, 90 and 100 are
|
417
|
+
# the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are
|
418
418
|
# computed from their distribution weekly. If the model assigns a high
|
419
419
|
# score to a numerical facet key and its intervals are not specified in
|
420
|
-
# the search request, these percentiles
|
421
|
-
# for its intervals and
|
420
|
+
# the search request, these percentiles become the bounds
|
421
|
+
# for its intervals and are returned in the response. If the
|
422
422
|
# facet key intervals are specified in the request, then the specified
|
423
|
-
# intervals
|
423
|
+
# intervals are returned instead.
|
424
424
|
# @!attribute [rw] restricted_values
|
425
425
|
# @return [::Array<::String>]
|
426
426
|
# Only get facet for the given restricted values. For example, when using
|
@@ -453,14 +453,14 @@ module Google
|
|
453
453
|
# Only get facet values that start with the given string prefix. For
|
454
454
|
# example, suppose "categories" has three values "Women > Shoe",
|
455
455
|
# "Women > Dress" and "Men > Shoe". If set "prefixes" to "Women", the
|
456
|
-
# "categories" facet
|
456
|
+
# "categories" facet gives only "Women > Shoe" and "Women > Dress".
|
457
457
|
# Only supported on textual fields. Maximum is 10.
|
458
458
|
# @!attribute [rw] contains
|
459
459
|
# @return [::Array<::String>]
|
460
460
|
# Only get facet values that contains the given strings. For example,
|
461
461
|
# suppose "categories" has three values "Women > Shoe",
|
462
462
|
# "Women > Dress" and "Men > Shoe". If set "contains" to "Shoe", the
|
463
|
-
# "categories" facet
|
463
|
+
# "categories" facet gives only "Women > Shoe" and "Men > Shoe".
|
464
464
|
# Only supported on textual fields. Maximum is 10.
|
465
465
|
# @!attribute [rw] case_insensitive
|
466
466
|
# @return [::Boolean]
|
@@ -493,7 +493,7 @@ module Google
|
|
493
493
|
# @!attribute [rw] query
|
494
494
|
# @return [::String]
|
495
495
|
# The query that is used to compute facet for the given facet key.
|
496
|
-
# When provided, it
|
496
|
+
# When provided, it overrides the default behavior of facet
|
497
497
|
# computation. The query syntax is the same as a filter expression. See
|
498
498
|
# {::Google::Cloud::Retail::V2::SearchRequest#filter SearchRequest.filter} for
|
499
499
|
# detail syntax and limitations. Notice that there is no limitation on
|
@@ -502,9 +502,9 @@ module Google
|
|
502
502
|
#
|
503
503
|
# In the response,
|
504
504
|
# {::Google::Cloud::Retail::V2::SearchResponse::Facet::FacetValue#value SearchResponse.Facet.values.value}
|
505
|
-
#
|
505
|
+
# is always "1" and
|
506
506
|
# {::Google::Cloud::Retail::V2::SearchResponse::Facet::FacetValue#count SearchResponse.Facet.values.count}
|
507
|
-
#
|
507
|
+
# is the number of results that match the query.
|
508
508
|
#
|
509
509
|
# For example, you can set a customized facet for "shipToStore",
|
510
510
|
# where
|
@@ -512,7 +512,7 @@ module Google
|
|
512
512
|
# is "customizedShipToStore", and
|
513
513
|
# {::Google::Cloud::Retail::V2::SearchRequest::FacetSpec::FacetKey#query FacetKey.query}
|
514
514
|
# is "availability: ANY(\"IN_STOCK\") AND shipToStore: ANY(\"123\")".
|
515
|
-
# Then the facet
|
515
|
+
# Then the facet counts the products that are both in stock and ship
|
516
516
|
# to store "123".
|
517
517
|
# @!attribute [rw] return_min_max
|
518
518
|
# @return [::Boolean]
|
@@ -970,7 +970,7 @@ module Google
|
|
970
970
|
end
|
971
971
|
end
|
972
972
|
|
973
|
-
# Metadata for active A/B testing [
|
973
|
+
# Metadata for active A/B testing [Experiment][].
|
974
974
|
# @!attribute [rw] serving_config_experiment
|
975
975
|
# @return [::Google::Cloud::Retail::V2::ExperimentInfo::ServingConfigExperiment]
|
976
976
|
# A/B test between existing Cloud Retail Search
|
@@ -994,8 +994,8 @@ module Google
|
|
994
994
|
# @!attribute [rw] experiment_serving_config
|
995
995
|
# @return [::String]
|
996
996
|
# The fully qualified resource name of the serving config
|
997
|
-
# [VariantArm.serving_config_id][] responsible for generating
|
998
|
-
# response. For example:
|
997
|
+
# [Experiment.VariantArm.serving_config_id][] responsible for generating
|
998
|
+
# the search response. For example:
|
999
999
|
# `projects/*/locations/*/catalogs/*/servingConfigs/*`.
|
1000
1000
|
class ServingConfigExperiment
|
1001
1001
|
include ::Google::Protobuf::MessageExts
|
@@ -213,6 +213,10 @@ module Google
|
|
213
213
|
# Can only be set if
|
214
214
|
# {::Google::Cloud::Retail::V2::ServingConfig#solution_types solution_types} is
|
215
215
|
# [SOLUTION_TYPE_RECOMMENDATION][google.cloud.retail.v2main.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
|
216
|
+
# @!attribute [rw] ignore_recs_denylist
|
217
|
+
# @return [::Boolean]
|
218
|
+
# When the flag is enabled, the products in the denylist will not be filtered
|
219
|
+
# out in the recommendation filtering results.
|
216
220
|
# @!attribute [rw] personalization_spec
|
217
221
|
# @return [::Google::Cloud::Retail::V2::SearchRequest::PersonalizationSpec]
|
218
222
|
# The specification for personalization spec.
|
@@ -28,6 +28,7 @@ module Google
|
|
28
28
|
# Required. User event type. Allowed values are:
|
29
29
|
#
|
30
30
|
# * `add-to-cart`: Products being added to cart.
|
31
|
+
# * `remove-from-cart`: Products being removed from cart.
|
31
32
|
# * `category-page-view`: Special pages such as sale or promotion pages
|
32
33
|
# viewed.
|
33
34
|
# * `detail-page-view`: Products detail page viewed.
|
@@ -262,8 +263,8 @@ module Google
|
|
262
263
|
# The entity for customers that may run multiple different entities, domains,
|
263
264
|
# sites or regions, for example, `Google US`, `Google Ads`, `Waymo`,
|
264
265
|
# `google.com`, `youtube.com`, etc.
|
265
|
-
#
|
266
|
-
# completion and prediction results.
|
266
|
+
# We recommend that you set this field to get better per-entity search,
|
267
|
+
# completion, and prediction results.
|
267
268
|
class UserEvent
|
268
269
|
include ::Google::Protobuf::MessageExts
|
269
270
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
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.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -250,7 +250,8 @@ requirements: []
|
|
250
250
|
rubygems_version: 3.5.6
|
251
251
|
signing_key:
|
252
252
|
specification_version: 4
|
253
|
-
summary:
|
254
|
-
|
255
|
-
|
253
|
+
summary: Vertex AI Search for Retail API is made up of Retail Search, Browse and Recommendations.
|
254
|
+
These discovery AI solutions help you implement personalized search, browse and
|
255
|
+
recommendations, based on machine learning models, across your websites and mobile
|
256
|
+
applications.
|
256
257
|
test_files: []
|