@@ -30,8 +30,9 @@ option objc_class_prefix = "RETAIL";
3030option php_namespace = "Google\\Cloud\\Retail\\V2beta" ;
3131option ruby_package = "Google::Cloud::Retail::V2beta" ;
3232
33- // Configures dynamic serving time metadata that is used to pre and post
34- // process search/recommendation model results.
33+ // Configures dynamic metadata that can be linked to a
34+ // [ServingConfig][google.cloud.retail.v2beta.ServingConfig] and affect search
35+ // or recommendation results at serving time.
3536message Control {
3637 option (google.api.resource ) = {
3738 type : "retail.googleapis.com/Control"
@@ -45,7 +46,10 @@ message Control {
4546 // INVALID_ARGUMENT will be returned if either condition is violated.
4647 oneof control {
4748 // A facet specification to perform faceted search.
48- SearchRequest.FacetSpec facet_spec = 3 ;
49+ //
50+ // Note that this field is deprecated and will throw NOT_IMPLEMENTED if
51+ // used for creating a control.
52+ SearchRequest.FacetSpec facet_spec = 3 [deprecated = true ];
4953
5054 // A rule control - a condition-action pair.
5155 // Enacts a set action when the condition is triggered.
@@ -63,22 +67,34 @@ message Control {
6367 // characters. Otherwise, an INVALID_ARGUMENT error is thrown.
6468 string display_name = 2 [(google.api.field_behavior ) = REQUIRED ];
6569
66- // Output only. List of serving configuration ids that that are associated
67- // with this control. Note the association is managed via the ServingConfig,
68- // this is an output only denormalizeed view. Assumed to be in the same
69- // catalog.
70+ // Output only. List of [serving
71+ // configuration][google.cloud.retail.v2beta.ServingConfig] ids that are
72+ // associated with this control in the same
73+ // [Catalog][google.cloud.retail.v2beta.Catalog].
74+ //
75+ // Note the association is managed via the
76+ // [ServingConfig][google.cloud.retail.v2beta.ServingConfig], this is an
77+ // output only denormalized view.
7078 repeated string associated_serving_config_ids = 5
7179 [(google.api.field_behavior ) = OUTPUT_ONLY ];
7280
73- // Required. Immutable. The solution types that the serving config is used
74- // for. Currently we support setting only one type of solution at creation
75- // time.
81+ // Required. Immutable. The solution types that the control is used for.
82+ // Currently we support setting only one type of solution at creation time.
7683 //
7784 // Only `SOLUTION_TYPE_SEARCH` value is supported at the moment.
7885 // If no solution type is provided at creation time, will default to
79- // SOLUTION_TYPE_SEARCH.
86+ // [ SOLUTION_TYPE_SEARCH][google.cloud.retail.v2beta.SolutionType.SOLUTION_TYPE_SEARCH] .
8087 repeated SolutionType solution_types = 6 [
8188 (google.api.field_behavior ) = REQUIRED ,
8289 (google.api.field_behavior ) = IMMUTABLE
8390 ];
91+
92+ // Specifies the use case for the control.
93+ // Affects what condition fields can be set.
94+ // Only settable by search controls.
95+ // Will default to
96+ // [SEARCH_SOLUTION_USE_CASE_SEARCH][google.cloud.retail.v2beta.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH]
97+ // if not specified. Currently only allow one search_solution_use_case per
98+ // control.
99+ repeated SearchSolutionUseCase search_solution_use_case = 7 ;
84100}
0 commit comments