@@ -104,8 +104,7 @@ message CatalogAttribute {
104104
105105 // The status of the indexable option of a catalog attribute.
106106 enum IndexableOption {
107- // Value used when unset. Defaults to
108- // [INDEXABLE_ENABLED][google.cloud.retail.v2.CatalogAttribute.IndexableOption.INDEXABLE_ENABLED].
107+ // Value used when unset.
109108 INDEXABLE_OPTION_UNSPECIFIED = 0 ;
110109
111110 // Indexable option enabled for an attribute.
@@ -117,8 +116,7 @@ message CatalogAttribute {
117116
118117 // The status of the dynamic facetable option of a catalog attribute.
119118 enum DynamicFacetableOption {
120- // Value used when unset. Defaults to
121- // [DYNAMIC_FACETABLE_ENABLED][google.cloud.retail.v2.CatalogAttribute.DynamicFacetableOption.DYNAMIC_FACETABLE_ENABLED].
119+ // Value used when unset.
122120 DYNAMIC_FACETABLE_OPTION_UNSPECIFIED = 0 ;
123121
124122 // Dynamic facetable option enabled for an attribute.
@@ -130,8 +128,7 @@ message CatalogAttribute {
130128
131129 // The status of the searchable option of a catalog attribute.
132130 enum SearchableOption {
133- // Value used when unset. Defaults to
134- // [SEARCHABLE_DISABLED][google.cloud.retail.v2.CatalogAttribute.SearchableOption.SEARCHABLE_DISABLED].
131+ // Value used when unset.
135132 SEARCHABLE_OPTION_UNSPECIFIED = 0 ;
136133
137134 // Searchable option enabled for an attribute.
@@ -141,6 +138,32 @@ message CatalogAttribute {
141138 SEARCHABLE_DISABLED = 2 ;
142139 }
143140
141+ // The status of the exact-searchable option of a catalog attribute.
142+ enum ExactSearchableOption {
143+ // Value used when unset. Defaults to
144+ // [EXACT_SEARCHABLE_DISABLED][google.cloud.retail.v2.CatalogAttribute.ExactSearchableOption.EXACT_SEARCHABLE_DISABLED].
145+ EXACT_SEARCHABLE_OPTION_UNSPECIFIED = 0 ;
146+
147+ // Exact searchable option enabled for an attribute.
148+ EXACT_SEARCHABLE_ENABLED = 1 ;
149+
150+ // Exact searchable option disabled for an attribute.
151+ EXACT_SEARCHABLE_DISABLED = 2 ;
152+ }
153+
154+ // The status of the retrievable option of a catalog attribute.
155+ enum RetrievableOption {
156+ // Value used when unset. Defaults to
157+ // [RETRIEVABLE_DISABLED][google.cloud.retail.v2.CatalogAttribute.RetrievableOption.RETRIEVABLE_DISABLED].
158+ RETRIEVABLE_OPTION_UNSPECIFIED = 0 ;
159+
160+ // Retrievable option enabled for an attribute.
161+ RETRIEVABLE_ENABLED = 1 ;
162+
163+ // Retrievable option disabled for an attribute.
164+ RETRIEVABLE_DISABLED = 2 ;
165+ }
166+
144167 // Required. Attribute name.
145168 // For example: `color`, `brands`, `attributes.custom_attribute`, such as
146169 // `attributes.xyz`.
@@ -164,13 +187,13 @@ message CatalogAttribute {
164187 // APIs. This field is `False` for pre-loaded
165188 // [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute]s.
166189 //
167- // Only pre-loaded
168- // [CatalogAttribute ][google.cloud.retail.v2.CatalogAttribute]s that are
169- // neither in use by products nor predefined can be deleted.
170- // [CatalogAttribute ][google.cloud.retail.v2.CatalogAttribute]s that are
171- // either in use by products or are predefined cannot be deleted; however,
172- // their configuration properties will reset to default values upon removal
173- // request.
190+ // Only pre-loaded [catalog
191+ // attributes ][google.cloud.retail.v2.CatalogAttribute] that are neither in
192+ // use by products nor predefined can be deleted. [Catalog
193+ // attributes ][google.cloud.retail.v2.CatalogAttribute] that are
194+ // either in use by products or are predefined attributes cannot be deleted;
195+ // however, their configuration properties will reset to default values upon
196+ // removal request.
174197 //
175198 // After catalog changes, it takes about 10 minutes for this field to update.
176199 bool in_use = 9 [(google.api.field_behavior ) = OUTPUT_ONLY ];
@@ -184,12 +207,16 @@ message CatalogAttribute {
184207 // is CATALOG_LEVEL_ATTRIBUTE_CONFIG, if INDEXABLE_ENABLED attribute values
185208 // are indexed so that it can be filtered, faceted, or boosted in
186209 // [SearchService.Search][google.cloud.retail.v2.SearchService.Search].
210+ //
211+ // Must be specified, otherwise throws INVALID_FORMAT error.
187212 IndexableOption indexable_option = 5 ;
188213
189214 // If DYNAMIC_FACETABLE_ENABLED, attribute values are available for dynamic
190215 // facet. Could only be DYNAMIC_FACETABLE_DISABLED if
191216 // [CatalogAttribute.indexable_option][google.cloud.retail.v2.CatalogAttribute.indexable_option]
192217 // is INDEXABLE_DISABLED. Otherwise, an INVALID_ARGUMENT error is returned.
218+ //
219+ // Must be specified, otherwise throws INVALID_FORMAT error.
193220 DynamicFacetableOption dynamic_facetable_option = 6 ;
194221
195222 // When
@@ -202,7 +229,18 @@ message CatalogAttribute {
202229 // will not be searchable by text queries in
203230 // [SearchService.Search][google.cloud.retail.v2.SearchService.Search], as
204231 // there are no text values associated to numerical attributes.
232+ //
233+ // Must be specified, otherwise throws INVALID_FORMAT error.
205234 SearchableOption searchable_option = 7 ;
235+
236+ // If EXACT_SEARCHABLE_ENABLED, attribute values will be exact searchable.
237+ // This property only applies to textual custom attributes and requires
238+ // indexable set to enabled to enable exact-searchable.
239+ ExactSearchableOption exact_searchable_option = 11 ;
240+
241+ // If RETRIEVABLE_ENABLED, attribute values are retrievable in the search
242+ // results.
243+ RetrievableOption retrievable_option = 12 ;
206244}
207245
208246// Catalog level attribute config.
0 commit comments