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.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/retail/v2/analytics_service/client.rb +5 -1
  4. data/lib/google/cloud/retail/v2/analytics_service/operations.rb +13 -5
  5. data/lib/google/cloud/retail/v2/analytics_service/rest/client.rb +5 -1
  6. data/lib/google/cloud/retail/v2/analytics_service/rest/operations.rb +11 -4
  7. data/lib/google/cloud/retail/v2/catalog_pb.rb +9 -1
  8. data/lib/google/cloud/retail/v2/catalog_service/client.rb +25 -11
  9. data/lib/google/cloud/retail/v2/catalog_service/rest/client.rb +25 -11
  10. data/lib/google/cloud/retail/v2/common_pb.rb +4 -1
  11. data/lib/google/cloud/retail/v2/completion_service/client.rb +15 -6
  12. data/lib/google/cloud/retail/v2/completion_service/operations.rb +13 -5
  13. data/lib/google/cloud/retail/v2/completion_service/rest/client.rb +15 -6
  14. data/lib/google/cloud/retail/v2/completion_service/rest/operations.rb +11 -4
  15. data/lib/google/cloud/retail/v2/completion_service_pb.rb +1 -1
  16. data/lib/google/cloud/retail/v2/control_service/client.rb +13 -5
  17. data/lib/google/cloud/retail/v2/control_service/rest/client.rb +13 -5
  18. data/lib/google/cloud/retail/v2/model_pb.rb +4 -1
  19. data/lib/google/cloud/retail/v2/model_service/client.rb +19 -8
  20. data/lib/google/cloud/retail/v2/model_service/operations.rb +13 -5
  21. data/lib/google/cloud/retail/v2/model_service/rest/client.rb +19 -8
  22. data/lib/google/cloud/retail/v2/model_service/rest/operations.rb +11 -4
  23. data/lib/google/cloud/retail/v2/prediction_service/client.rb +5 -1
  24. data/lib/google/cloud/retail/v2/prediction_service/rest/client.rb +5 -1
  25. data/lib/google/cloud/retail/v2/product_service/client.rb +206 -21
  26. data/lib/google/cloud/retail/v2/product_service/operations.rb +13 -5
  27. data/lib/google/cloud/retail/v2/product_service/rest/client.rb +199 -21
  28. data/lib/google/cloud/retail/v2/product_service/rest/operations.rb +11 -4
  29. data/lib/google/cloud/retail/v2/product_service/rest/service_stub.rb +60 -0
  30. data/lib/google/cloud/retail/v2/product_service_pb.rb +2 -1
  31. data/lib/google/cloud/retail/v2/product_service_services_pb.rb +26 -6
  32. data/lib/google/cloud/retail/v2/purge_config_pb.rb +6 -1
  33. data/lib/google/cloud/retail/v2/search_service/client.rb +27 -23
  34. data/lib/google/cloud/retail/v2/search_service/rest/client.rb +27 -23
  35. data/lib/google/cloud/retail/v2/serving_config_pb.rb +1 -1
  36. data/lib/google/cloud/retail/v2/serving_config_service/client.rb +17 -7
  37. data/lib/google/cloud/retail/v2/serving_config_service/rest/client.rb +17 -7
  38. data/lib/google/cloud/retail/v2/user_event_service/client.rb +14 -6
  39. data/lib/google/cloud/retail/v2/user_event_service/operations.rb +13 -5
  40. data/lib/google/cloud/retail/v2/user_event_service/rest/client.rb +14 -6
  41. data/lib/google/cloud/retail/v2/user_event_service/rest/operations.rb +11 -4
  42. data/lib/google/cloud/retail/v2/version.rb +1 -1
  43. data/proto_docs/google/api/client.rb +4 -0
  44. data/proto_docs/google/cloud/retail/v2/catalog.rb +143 -4
  45. data/proto_docs/google/cloud/retail/v2/common.rb +104 -10
  46. data/proto_docs/google/cloud/retail/v2/completion_service.rb +14 -7
  47. data/proto_docs/google/cloud/retail/v2/import_config.rb +10 -4
  48. data/proto_docs/google/cloud/retail/v2/model.rb +40 -0
  49. data/proto_docs/google/cloud/retail/v2/product.rb +23 -22
  50. data/proto_docs/google/cloud/retail/v2/promotion.rb +2 -2
  51. data/proto_docs/google/cloud/retail/v2/purge_config.rb +93 -0
  52. data/proto_docs/google/cloud/retail/v2/search_service.rb +42 -42
  53. data/proto_docs/google/cloud/retail/v2/serving_config.rb +4 -0
  54. data/proto_docs/google/cloud/retail/v2/user_event.rb +3 -2
  55. 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 will be used to make the search.
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. See more details at this [user
97
- # guide](https://cloud.google.com/retail/docs/filter-and-order#filter).
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. For example, if a query does not have enough
107
- # results, an expanded query with
108
- # {::Google::Cloud::Retail::V2::SearchRequest#canonical_filter SearchRequest.canonical_filter}
109
- # will be returned as a supplement of the original query. This field is
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
- # See {::Google::Cloud::Retail::V2::SearchRequest#filter SearchRequest.filter} for
113
- # more details about filter syntax.
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. See
119
- # more details at this [user
120
- # guide](https://cloud.google.com/retail/docs/filter-and-order#order).
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. See more details at this
140
- # [user guide](https://cloud.google.com/retail/docs/boosting).
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 will occur. See more details at this [user
153
- # guide](https://cloud.google.com/retail/docs/result-size#query_expansion).
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. Required for category
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
- # See [Google Cloud
273
- # Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
274
- # for more details.
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 will be ordered together with dynamic facets if dynamic
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 will be the same as in the request, and it will be ranked before
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 will be determined by
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 will generate a facet
356
- # 'gender'. Then the final order of the facets in the response can be
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" will always be
360
- # ranked at 1st and 2nd position since their enable_dynamic_position are
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 will become the bounds
421
- # for its intervals and will be returned in the response. If the
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 will be returned instead.
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 will give only "Women > Shoe" and "Women > Dress".
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 will give only "Women > Shoe" and "Men > Shoe".
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 will override the default behavior of facet
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
- # will be always "1" and
505
+ # is always "1" and
506
506
  # {::Google::Cloud::Retail::V2::SearchResponse::Facet::FacetValue#count SearchResponse.Facet.values.count}
507
- # will be the number of results that match the query.
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 will count the products that are both in stock and ship
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 [Experiments][].
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 the search
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
- # It is recommended to set this field to get better per-entity search,
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.20.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-02-26 00:00:00.000000000 Z
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: Cloud Retail service enables customers to build end-to-end personalized recommendation
254
- systems without requiring a high level of expertise in machine learning, recommendation
255
- system, or Google Cloud.
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: []