@@ -104,8 +104,7 @@ message CatalogAttribute {
104
104
105
105
// The status of the indexable option of a catalog attribute.
106
106
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.
109
108
INDEXABLE_OPTION_UNSPECIFIED = 0 ;
110
109
111
110
// Indexable option enabled for an attribute.
@@ -117,8 +116,7 @@ message CatalogAttribute {
117
116
118
117
// The status of the dynamic facetable option of a catalog attribute.
119
118
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.
122
120
DYNAMIC_FACETABLE_OPTION_UNSPECIFIED = 0 ;
123
121
124
122
// Dynamic facetable option enabled for an attribute.
@@ -130,8 +128,7 @@ message CatalogAttribute {
130
128
131
129
// The status of the searchable option of a catalog attribute.
132
130
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.
135
132
SEARCHABLE_OPTION_UNSPECIFIED = 0 ;
136
133
137
134
// Searchable option enabled for an attribute.
@@ -141,6 +138,32 @@ message CatalogAttribute {
141
138
SEARCHABLE_DISABLED = 2 ;
142
139
}
143
140
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
+
144
167
// Required. Attribute name.
145
168
// For example: `color`, `brands`, `attributes.custom_attribute`, such as
146
169
// `attributes.xyz`.
@@ -164,13 +187,13 @@ message CatalogAttribute {
164
187
// APIs. This field is `False` for pre-loaded
165
188
// [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute]s.
166
189
//
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.
174
197
//
175
198
// After catalog changes, it takes about 10 minutes for this field to update.
176
199
bool in_use = 9 [(google.api.field_behavior ) = OUTPUT_ONLY ];
@@ -184,12 +207,16 @@ message CatalogAttribute {
184
207
// is CATALOG_LEVEL_ATTRIBUTE_CONFIG, if INDEXABLE_ENABLED attribute values
185
208
// are indexed so that it can be filtered, faceted, or boosted in
186
209
// [SearchService.Search][google.cloud.retail.v2.SearchService.Search].
210
+ //
211
+ // Must be specified, otherwise throws INVALID_FORMAT error.
187
212
IndexableOption indexable_option = 5 ;
188
213
189
214
// If DYNAMIC_FACETABLE_ENABLED, attribute values are available for dynamic
190
215
// facet. Could only be DYNAMIC_FACETABLE_DISABLED if
191
216
// [CatalogAttribute.indexable_option][google.cloud.retail.v2.CatalogAttribute.indexable_option]
192
217
// is INDEXABLE_DISABLED. Otherwise, an INVALID_ARGUMENT error is returned.
218
+ //
219
+ // Must be specified, otherwise throws INVALID_FORMAT error.
193
220
DynamicFacetableOption dynamic_facetable_option = 6 ;
194
221
195
222
// When
@@ -202,7 +229,18 @@ message CatalogAttribute {
202
229
// will not be searchable by text queries in
203
230
// [SearchService.Search][google.cloud.retail.v2.SearchService.Search], as
204
231
// there are no text values associated to numerical attributes.
232
+ //
233
+ // Must be specified, otherwise throws INVALID_FORMAT error.
205
234
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 ;
206
244
}
207
245
208
246
// Catalog level attribute config.
0 commit comments