@@ -30,7 +30,7 @@ option ruby_package = "Google::Cloud::Retail::V2beta";
3030
3131// At which level we offer configuration for attributes.
3232enum AttributeConfigLevel {
33- // Value used when unset. Defaults to
33+ // Value used when unset. In this case, server behavior defaults to
3434 // [CATALOG_LEVEL_ATTRIBUTE_CONFIG][google.cloud.retail.v2beta.AttributeConfigLevel.CATALOG_LEVEL_ATTRIBUTE_CONFIG].
3535 ATTRIBUTE_CONFIG_LEVEL_UNSPECIFIED = 0 ;
3636
@@ -55,10 +55,24 @@ enum SolutionType {
5555 SOLUTION_TYPE_SEARCH = 2 ;
5656}
5757
58+ // If filtering for recommendations is enabled.
59+ enum RecommendationsFilteringOption {
60+ // Value used when unset.
61+ // In this case, server behavior defaults to
62+ // [RECOMMENDATIONS_FILTERING_DISABLED][google.cloud.retail.v2beta.RecommendationsFilteringOption.RECOMMENDATIONS_FILTERING_DISABLED].
63+ RECOMMENDATIONS_FILTERING_OPTION_UNSPECIFIED = 0 ;
64+
65+ // Recommendation filtering is disabled.
66+ RECOMMENDATIONS_FILTERING_DISABLED = 1 ;
67+
68+ // Recommendation filtering is enabled.
69+ RECOMMENDATIONS_FILTERING_ENABLED = 3 ;
70+ }
71+
5872// The use case of Cloud Retail Search.
5973enum SearchSolutionUseCase {
60- // The value when it's unspecified. Defaults to
61- // [SEARCH ][].
74+ // The value when it's unspecified. In this case, server behavior defaults to
75+ // [SEARCH_SOLUTION_USE_CASE_SEARCH ][].
6276 SEARCH_SOLUTION_USE_CASE_UNSPECIFIED = 0 ;
6377
6478 // Search use case. Expects the traffic has a non-empty
@@ -157,10 +171,13 @@ message Rule {
157171 }
158172
159173 // * Rule Condition:
160- // - No [Condition][query_terms] provided is a global match.
161- // - 1 or more [Condition][query_terms] provided is combined with OR
162- // operator.
163- // * Action Input: The request query and filter that will be applied to the
174+ // - No
175+ // [Condition.query_terms][google.cloud.retail.v2beta.Condition.query_terms]
176+ // provided is a global match.
177+ // - 1 or more
178+ // [Condition.query_terms][google.cloud.retail.v2beta.Condition.query_terms]
179+ // provided are combined with OR operator.
180+ // * Action Input: The request query and filter that are applied to the
164181 // retrieved products, in addition to any filters already provided with the
165182 // SearchRequest. The AND operator is used to combine the query's existing
166183 // filters with the filter rule(s). NOTE: May result in 0 results when
@@ -187,8 +204,10 @@ message Rule {
187204 }
188205
189206 // Redirects a shopper to a specific page.
207+ //
190208 // * Rule Condition:
191- // - Must specify [Condition][query_terms].
209+ // - Must specify
210+ // [Condition.query_terms][google.cloud.retail.v2beta.Condition.query_terms].
192211 // * Action Input: Request Query
193212 // * Action Result: Redirects shopper to provided uri.
194213 message RedirectAction {
@@ -388,25 +407,30 @@ message CustomAttribute {
388407 // set. Otherwise, an INVALID_ARGUMENT error is returned.
389408 repeated double numbers = 2 ;
390409
391- // This field will only be used when
410+ // This field is normally ignored unless
392411 // [AttributesConfig.attribute_config_level][google.cloud.retail.v2beta.AttributesConfig.attribute_config_level]
393- // of the [Catalog][google.cloud.retail.v2beta.Catalog] is
394- // 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG', if true, custom attribute values are
395- // searchable by text queries in
412+ // of the [Catalog][google.cloud.retail.v2beta.Catalog] is set to the
413+ // deprecated 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG' mode. For information about
414+ // product-level attribute configuration, see [Configuration
415+ // modes](https://cloud.google.com/retail/docs/attribute-config#config-modes).
416+ // If true, custom attribute values are searchable by text queries in
396417 // [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search].
397418 //
398419 // This field is ignored in a
399420 // [UserEvent][google.cloud.retail.v2beta.UserEvent].
400421 //
401422 // Only set if type [text][google.cloud.retail.v2beta.CustomAttribute.text] is
402423 // set. Otherwise, a INVALID_ARGUMENT error is returned.
403- optional bool searchable = 3 ;
424+ optional bool searchable = 3 [ deprecated = true ] ;
404425
405- // This field will only be used when
426+ // This field is normally ignored unless
406427 // [AttributesConfig.attribute_config_level][google.cloud.retail.v2beta.AttributesConfig.attribute_config_level]
407- // of the [Catalog][google.cloud.retail.v2beta.Catalog] is
408- // 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG', if true, custom attribute values are
409- // indexed, so that it can be filtered, faceted or boosted in
428+ // of the [Catalog][google.cloud.retail.v2beta.Catalog] is set to the
429+ // deprecated 'PRODUCT_LEVEL_ATTRIBUTE_CONFIG' mode. For information about
430+ // product-level attribute configuration, see [Configuration
431+ // modes](https://cloud.google.com/retail/docs/attribute-config#config-modes).
432+ // If true, custom attribute values are indexed, so that they can be filtered,
433+ // faceted or boosted in
410434 // [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search].
411435 //
412436 // This field is ignored in a
@@ -418,7 +442,7 @@ message CustomAttribute {
418442 // and
419443 // [SearchRequest.boost_spec][google.cloud.retail.v2beta.SearchRequest.boost_spec]
420444 // for more details.
421- optional bool indexable = 4 ;
445+ optional bool indexable = 4 [ deprecated = true ] ;
422446}
423447
424448// Fulfillment information, such as the store IDs for in-store pickup or region
@@ -490,9 +514,8 @@ message Interval {
490514 // The lower bound of the interval. If neither of the min fields are set, then
491515 // the lower bound is negative infinity.
492516 //
493- // This field must be not larger than
494- // [max][google.cloud.retail.v2beta.Interval.max]. Otherwise, an
495- // INVALID_ARGUMENT error is returned.
517+ // This field must not be larger than max.
518+ // Otherwise, an INVALID_ARGUMENT error is returned.
496519 oneof min {
497520 // Inclusive lower bound.
498521 double minimum = 1 ;
@@ -504,9 +527,8 @@ message Interval {
504527 // The upper bound of the interval. If neither of the max fields are set, then
505528 // the upper bound is positive infinity.
506529 //
507- // This field must be not smaller than
508- // [min][google.cloud.retail.v2beta.Interval.min]. Otherwise, an
509- // INVALID_ARGUMENT error is returned.
530+ // This field must be not smaller than min.
531+ // Otherwise, an INVALID_ARGUMENT error is returned.
510532 oneof max {
511533 // Inclusive upper bound.
512534 double maximum = 3 ;
@@ -562,7 +584,11 @@ message PriceInfo {
562584 float price = 2 ;
563585
564586 // Price of the product without any discount. If zero, by default set to be
565- // the [price][google.cloud.retail.v2beta.PriceInfo.price].
587+ // the [price][google.cloud.retail.v2beta.PriceInfo.price]. If set,
588+ // [original_price][google.cloud.retail.v2beta.PriceInfo.original_price]
589+ // should be greater than or equal to
590+ // [price][google.cloud.retail.v2beta.PriceInfo.price], otherwise an
591+ // INVALID_ARGUMENT error is thrown.
566592 float original_price = 3 ;
567593
568594 // The costs associated with the sale of a particular product. Used for gross
@@ -649,10 +675,14 @@ message Rating {
649675// Information of an end user.
650676message UserInfo {
651677 // Highly recommended for logged-in users. Unique identifier for logged-in
652- // user, such as a user name.
678+ // user, such as a user name. Don't set for anonymous users.
653679 //
654680 // Always use a hashed value for this ID.
655681 //
682+ // Don't set the field to the same fixed ID for different users. This mixes
683+ // the event history of those users together, which results in degraded
684+ // model quality.
685+ //
656686 // The field must be a UTF-8 encoded string with a length limit of 128
657687 // characters. Otherwise, an INVALID_ARGUMENT error is returned.
658688 string user_id = 1 ;
0 commit comments