@@ -30,7 +30,7 @@ option ruby_package = "Google::Cloud::Retail::V2beta";
30
30
31
31
// At which level we offer configuration for attributes.
32
32
enum AttributeConfigLevel {
33
- // Value used when unset. Defaults to
33
+ // Value used when unset. In this case, server behavior defaults to
34
34
// [CATALOG_LEVEL_ATTRIBUTE_CONFIG][google.cloud.retail.v2beta.AttributeConfigLevel.CATALOG_LEVEL_ATTRIBUTE_CONFIG].
35
35
ATTRIBUTE_CONFIG_LEVEL_UNSPECIFIED = 0 ;
36
36
@@ -55,10 +55,24 @@ enum SolutionType {
55
55
SOLUTION_TYPE_SEARCH = 2 ;
56
56
}
57
57
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
+
58
72
// The use case of Cloud Retail Search.
59
73
enum 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 ][].
62
76
SEARCH_SOLUTION_USE_CASE_UNSPECIFIED = 0 ;
63
77
64
78
// Search use case. Expects the traffic has a non-empty
@@ -157,10 +171,13 @@ message Rule {
157
171
}
158
172
159
173
// * 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
164
181
// retrieved products, in addition to any filters already provided with the
165
182
// SearchRequest. The AND operator is used to combine the query's existing
166
183
// filters with the filter rule(s). NOTE: May result in 0 results when
@@ -187,8 +204,10 @@ message Rule {
187
204
}
188
205
189
206
// Redirects a shopper to a specific page.
207
+ //
190
208
// * Rule Condition:
191
- // - Must specify [Condition][query_terms].
209
+ // - Must specify
210
+ // [Condition.query_terms][google.cloud.retail.v2beta.Condition.query_terms].
192
211
// * Action Input: Request Query
193
212
// * Action Result: Redirects shopper to provided uri.
194
213
message RedirectAction {
@@ -388,25 +407,30 @@ message CustomAttribute {
388
407
// set. Otherwise, an INVALID_ARGUMENT error is returned.
389
408
repeated double numbers = 2 ;
390
409
391
- // This field will only be used when
410
+ // This field is normally ignored unless
392
411
// [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
396
417
// [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search].
397
418
//
398
419
// This field is ignored in a
399
420
// [UserEvent][google.cloud.retail.v2beta.UserEvent].
400
421
//
401
422
// Only set if type [text][google.cloud.retail.v2beta.CustomAttribute.text] is
402
423
// set. Otherwise, a INVALID_ARGUMENT error is returned.
403
- optional bool searchable = 3 ;
424
+ optional bool searchable = 3 [ deprecated = true ] ;
404
425
405
- // This field will only be used when
426
+ // This field is normally ignored unless
406
427
// [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
410
434
// [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search].
411
435
//
412
436
// This field is ignored in a
@@ -418,7 +442,7 @@ message CustomAttribute {
418
442
// and
419
443
// [SearchRequest.boost_spec][google.cloud.retail.v2beta.SearchRequest.boost_spec]
420
444
// for more details.
421
- optional bool indexable = 4 ;
445
+ optional bool indexable = 4 [ deprecated = true ] ;
422
446
}
423
447
424
448
// Fulfillment information, such as the store IDs for in-store pickup or region
@@ -490,9 +514,8 @@ message Interval {
490
514
// The lower bound of the interval. If neither of the min fields are set, then
491
515
// the lower bound is negative infinity.
492
516
//
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.
496
519
oneof min {
497
520
// Inclusive lower bound.
498
521
double minimum = 1 ;
@@ -504,9 +527,8 @@ message Interval {
504
527
// The upper bound of the interval. If neither of the max fields are set, then
505
528
// the upper bound is positive infinity.
506
529
//
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.
510
532
oneof max {
511
533
// Inclusive upper bound.
512
534
double maximum = 3 ;
@@ -562,7 +584,11 @@ message PriceInfo {
562
584
float price = 2 ;
563
585
564
586
// 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.
566
592
float original_price = 3 ;
567
593
568
594
// The costs associated with the sale of a particular product. Used for gross
@@ -649,10 +675,14 @@ message Rating {
649
675
// Information of an end user.
650
676
message UserInfo {
651
677
// 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.
653
679
//
654
680
// Always use a hashed value for this ID.
655
681
//
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
+ //
656
686
// The field must be a UTF-8 encoded string with a length limit of 128
657
687
// characters. Otherwise, an INVALID_ARGUMENT error is returned.
658
688
string user_id = 1 ;
0 commit comments