Debian Codegraph @

docs/dyn/retail_v2.projects.locations.catalogs.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="retail_v2.html">Vertex AI Search for commerce API</a> . <a href="retail_v2.projects.html">projects</a> . <a href="retail_v2.projects.locations.html">locations</a> . <a href="retail_v2.projects.locations.catalogs.html">catalogs</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="retail_v2.projects.locations.catalogs.attributesConfig.html">attributesConfig()</a></code>
79 </p>
80 <p class="firstline">Returns the attributesConfig Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="retail_v2.projects.locations.catalogs.branches.html">branches()</a></code>
84 </p>
85 <p class="firstline">Returns the branches Resource.</p>
86
87 <p class="toc_element">
88 <code><a href="retail_v2.projects.locations.catalogs.completionData.html">completionData()</a></code>
89 </p>
90 <p class="firstline">Returns the completionData Resource.</p>
91
92 <p class="toc_element">
93 <code><a href="retail_v2.projects.locations.catalogs.controls.html">controls()</a></code>
94 </p>
95 <p class="firstline">Returns the controls Resource.</p>
96
97 <p class="toc_element">
98 <code><a href="retail_v2.projects.locations.catalogs.generativeQuestion.html">generativeQuestion()</a></code>
99 </p>
100 <p class="firstline">Returns the generativeQuestion Resource.</p>
101
102 <p class="toc_element">
103 <code><a href="retail_v2.projects.locations.catalogs.generativeQuestions.html">generativeQuestions()</a></code>
104 </p>
105 <p class="firstline">Returns the generativeQuestions Resource.</p>
106
107 <p class="toc_element">
108 <code><a href="retail_v2.projects.locations.catalogs.models.html">models()</a></code>
109 </p>
110 <p class="firstline">Returns the models Resource.</p>
111
112 <p class="toc_element">
113 <code><a href="retail_v2.projects.locations.catalogs.operations.html">operations()</a></code>
114 </p>
115 <p class="firstline">Returns the operations Resource.</p>
116
117 <p class="toc_element">
118 <code><a href="retail_v2.projects.locations.catalogs.placements.html">placements()</a></code>
119 </p>
120 <p class="firstline">Returns the placements Resource.</p>
121
122 <p class="toc_element">
123 <code><a href="retail_v2.projects.locations.catalogs.servingConfigs.html">servingConfigs()</a></code>
124 </p>
125 <p class="firstline">Returns the servingConfigs Resource.</p>
126
127 <p class="toc_element">
128 <code><a href="retail_v2.projects.locations.catalogs.userEvents.html">userEvents()</a></code>
129 </p>
130 <p class="firstline">Returns the userEvents Resource.</p>
131
132 <p class="toc_element">
133 <code><a href="#close">close()</a></code></p>
134 <p class="firstline">Close httplib2 connections.</p>
135 <p class="toc_element">
136 <code><a href="#completeQuery">completeQuery(catalog, dataset=None, deviceType=None, enableAttributeSuggestions=None, entity=None, languageCodes=None, maxSuggestions=None, query=None, visitorId=None, x__xgafv=None)</a></code></p>
137 <p class="firstline">Completes the specified prefix with keyword suggestions. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.</p>
138 <p class="toc_element">
139 <code><a href="#exportAnalyticsMetrics">exportAnalyticsMetrics(catalog, body=None, x__xgafv=None)</a></code></p>
140 <p class="firstline">Exports analytics metrics. `Operation.response` is of type `ExportAnalyticsMetricsResponse`. `Operation.metadata` is of type `ExportMetadata`.</p>
141 <p class="toc_element">
142 <code><a href="#getAttributesConfig">getAttributesConfig(name, x__xgafv=None)</a></code></p>
143 <p class="firstline">Gets an AttributesConfig.</p>
144 <p class="toc_element">
145 <code><a href="#getCompletionConfig">getCompletionConfig(name, x__xgafv=None)</a></code></p>
146 <p class="firstline">Gets a CompletionConfig.</p>
147 <p class="toc_element">
148 <code><a href="#getConversationalSearchCustomizationConfig">getConversationalSearchCustomizationConfig(name, x__xgafv=None)</a></code></p>
149 <p class="firstline">Returns the conversational search customization config for a given catalog.</p>
150 <p class="toc_element">
151 <code><a href="#getDefaultBranch">getDefaultBranch(catalog, x__xgafv=None)</a></code></p>
152 <p class="firstline">Get which branch is currently default branch set by CatalogService.SetDefaultBranch method under a specified parent catalog.</p>
153 <p class="toc_element">
154 <code><a href="#getGenerativeQuestionFeature">getGenerativeQuestionFeature(catalog, x__xgafv=None)</a></code></p>
155 <p class="firstline">Manages overal generative question feature state -- enables toggling feature on and off.</p>
156 <p class="toc_element">
157 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
158 <p class="firstline">Lists all the Catalogs associated with the project.</p>
159 <p class="toc_element">
160 <code><a href="#list_next">list_next()</a></code></p>
161 <p class="firstline">Retrieves the next page of results.</p>
162 <p class="toc_element">
163 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
164 <p class="firstline">Updates the Catalogs.</p>
165 <p class="toc_element">
166 <code><a href="#setDefaultBranch">setDefaultBranch(catalog, body=None, x__xgafv=None)</a></code></p>
167 <p class="firstline">Set a specified branch id as default branch. API methods such as SearchService.Search, ProductService.GetProduct, ProductService.ListProducts will treat requests using "default_branch" to the actual branch id set as default. For example, if `projects/*/locations/*/catalogs/*/branches/1` is set as default, setting SearchRequest.branch to `projects/*/locations/*/catalogs/*/branches/default_branch` is equivalent to setting SearchRequest.branch to `projects/*/locations/*/catalogs/*/branches/1`. Using multiple branches can be useful when developers would like to have a staging branch to test and verify for future usage. When it becomes ready, developers switch on the staging branch using this API while keeping using `projects/*/locations/*/catalogs/*/branches/default_branch` as SearchRequest.branch to route the traffic to this staging branch. CAUTION: If you have live predict/search traffic, switching the default branch could potentially cause outages if the ID space of the new branch is very different from the old one. More specifically: * PredictionService will only return product IDs from branch {newBranch}. * SearchService will only return product IDs from branch {newBranch} (if branch is not explicitly set). * UserEventService will only join events with products from branch {newBranch}.</p>
168 <p class="toc_element">
169 <code><a href="#updateAttributesConfig">updateAttributesConfig(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
170 <p class="firstline">Updates the AttributesConfig. The catalog attributes in the request will be updated in the catalog, or inserted if they do not exist. Existing catalog attributes not included in the request will remain unchanged. Attributes that are assigned to products, but do not exist at the catalog level, are always included in the response. The product attribute is assigned default values for missing catalog attribute fields, e.g., searchable and dynamic facetable options.</p>
171 <p class="toc_element">
172 <code><a href="#updateCompletionConfig">updateCompletionConfig(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
173 <p class="firstline">Updates the CompletionConfigs.</p>
174 <p class="toc_element">
175 <code><a href="#updateConversationalSearchCustomizationConfig">updateConversationalSearchCustomizationConfig(catalog, body=None, updateMask=None, x__xgafv=None)</a></code></p>
176 <p class="firstline">Updates the conversational search customization config for a given catalog.</p>
177 <p class="toc_element">
178 <code><a href="#updateGenerativeQuestion">updateGenerativeQuestion(catalog, body=None, updateMask=None, x__xgafv=None)</a></code></p>
179 <p class="firstline">Allows management of individual questions.</p>
180 <p class="toc_element">
181 <code><a href="#updateGenerativeQuestionFeature">updateGenerativeQuestionFeature(catalog, body=None, updateMask=None, x__xgafv=None)</a></code></p>
182 <p class="firstline">Manages overal generative question feature state -- enables toggling feature on and off.</p>
183 <h3>Method Details</h3>
184 <div class="method">
185 <code class="details" id="close">close()</code>
186 <pre>Close httplib2 connections.</pre>
187 </div>
188
189 <div class="method">
190 <code class="details" id="completeQuery">completeQuery(catalog, dataset=None, deviceType=None, enableAttributeSuggestions=None, entity=None, languageCodes=None, maxSuggestions=None, query=None, visitorId=None, x__xgafv=None)</code>
191 <pre>Completes the specified prefix with keyword suggestions. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.
192
193 Args:
194 catalog: string, Required. Catalog for which the completion is performed. Full resource name of catalog, such as `projects/*/locations/global/catalogs/default_catalog`. (required)
195 dataset: string, Determines which dataset to use for fetching completion. &quot;user-data&quot; will use the dataset imported through CompletionService.ImportCompletionData. `cloud-retail` will use the dataset generated by Cloud Retail based on user events. If left empty, completions will be fetched from the `user-data` dataset. Current supported values: * user-data * cloud-retail: This option requires enabling auto-learning function first. See [guidelines](https://cloud.google.com/retail/docs/completion-overview#generated-completion-dataset).
196 deviceType: string, The device type context for completion suggestions. We recommend that you leave this field empty. It can apply different suggestions on different device types, e.g. `DESKTOP`, `MOBILE`. If it is empty, the suggestions are across all device types. Supported formats: * `UNKNOWN_DEVICE_TYPE` * `DESKTOP` * `MOBILE` * A customized string starts with `OTHER_`, e.g. `OTHER_IPHONE`.
197 enableAttributeSuggestions: boolean, If true, attribute suggestions are enabled and provided in the response. This field is only available for the `cloud-retail` dataset.
198 entity: string, The entity for customers who run multiple entities, domains, sites, or regions, for example, `Google US`, `Google Ads`, `Waymo`, `google.com`, `youtube.com`, etc. If this is set, it must be an exact match with UserEvent.entity to get per-entity autocomplete results. This field will be applied to `completion_results` only. It has no effect on the `attribute_results`. Also, this entity should be limited to 256 characters, if too long, it will be truncated to 256 characters in both generation and serving time, and may lead to mis-match. To ensure it works, please set the entity with string within 256 characters.
199 languageCodes: string, Note that this field applies for `user-data` dataset only. For requests with `cloud-retail` dataset, setting this field has no effect. The language filters applied to the output suggestions. If set, it should contain the language of the query. If not set, suggestions are returned without considering language restrictions. This is the BCP-47 language code, such as &quot;en-US&quot; or &quot;sr-Latn&quot;. For more information, see [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). The maximum number of language codes is 3. (repeated)
200 maxSuggestions: integer, Completion max suggestions. If left unset or set to 0, then will fallback to the configured value CompletionConfig.max_suggestions. The maximum allowed max suggestions is 20. If it is set higher, it will be capped by 20.
201 query: string, Required. The query used to generate suggestions. The maximum number of allowed characters is 255.
202 visitorId: string, Recommended field. A unique identifier for tracking visitors. For example, this could be implemented with an HTTP cookie, which should be able to uniquely identify a visitor on a single device. This unique identifier should not change if the visitor logs in or out of the website. The field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
203 x__xgafv: string, V1 error format.
204 Allowed values
205 1 - v1 error format
206 2 - v2 error format
207
208 Returns:
209 An object of the form:
210
211 { # Response of the autocomplete query.
212 &quot;attributeResults&quot;: { # A map of matched attribute suggestions. This field is only available for `cloud-retail` dataset. Current supported keys: * `brands` * `categories`
213 &quot;a_key&quot;: { # Resource that represents attribute results.
214 &quot;suggestions&quot;: [ # The list of suggestions for the attribute.
215 &quot;A String&quot;,
216 ],
217 },
218 },
219 &quot;attributionToken&quot;: &quot;A String&quot;, # A unique complete token. This should be included in the UserEvent.completion_detail for search events resulting from this completion, which enables accurate attribution of complete model performance.
220 &quot;completionResults&quot;: [ # Results of the matching suggestions. The result list is ordered and the first result is top suggestion.
221 { # Resource that represents completion results.
222 &quot;attributes&quot;: { # Custom attributes for the suggestion term. * For `user-data`, the attributes are additional custom attributes ingested through BigQuery. * For `cloud-retail`, the attributes are product attributes generated by Cloud Retail. It requires UserEvent.product_details is imported properly.
223 &quot;a_key&quot;: { # A custom attribute that is not explicitly modeled in Product.
224 &quot;indexable&quot;: True or False, # This field is normally ignored unless AttributesConfig.attribute_config_level of the Catalog is set to the deprecated &#x27;PRODUCT_LEVEL_ATTRIBUTE_CONFIG&#x27; mode. For information about product-level attribute configuration, see [Configuration modes](https://cloud.google.com/retail/docs/attribute-config#config-modes). If true, custom attribute values are indexed, so that they can be filtered, faceted or boosted in SearchService.Search. This field is ignored in a UserEvent. See SearchRequest.filter, SearchRequest.facet_specs and SearchRequest.boost_spec for more details.
225 &quot;numbers&quot;: [ # The numerical values of this custom attribute. For example, `[2.3, 15.4]` when the key is &quot;lengths_cm&quot;. Exactly one of text or numbers should be set. Otherwise, an INVALID_ARGUMENT error is returned.
226 3.14,
227 ],
228 &quot;searchable&quot;: True or False, # This field is normally ignored unless AttributesConfig.attribute_config_level of the Catalog is set to the deprecated &#x27;PRODUCT_LEVEL_ATTRIBUTE_CONFIG&#x27; mode. For information about product-level attribute configuration, see [Configuration modes](https://cloud.google.com/retail/docs/attribute-config#config-modes). If true, custom attribute values are searchable by text queries in SearchService.Search. This field is ignored in a UserEvent. Only set if type text is set. Otherwise, a INVALID_ARGUMENT error is returned.
229 &quot;text&quot;: [ # The textual values of this custom attribute. For example, `[&quot;yellow&quot;, &quot;green&quot;]` when the key is &quot;color&quot;. Empty string is not allowed. Otherwise, an INVALID_ARGUMENT error is returned. Exactly one of text or numbers should be set. Otherwise, an INVALID_ARGUMENT error is returned.
230 &quot;A String&quot;,
231 ],
232 },
233 },
234 &quot;suggestion&quot;: &quot;A String&quot;, # The suggestion for the query.
235 },
236 ],
237 &quot;recentSearchResults&quot;: [ # Deprecated. Matched recent searches of this user. The maximum number of recent searches is 10. This field is a restricted feature. If you want to enable it, contact Retail Search support. This feature is only available when CompleteQueryRequest.visitor_id field is set and UserEvent is imported. The recent searches satisfy the follow rules: * They are ordered from latest to oldest. * They are matched with CompleteQueryRequest.query case insensitively. * They are transformed to lower case. * They are UTF-8 safe. Recent searches are deduplicated. More recent searches will be reserved when duplication happens.
238 { # Deprecated: Recent search of this user.
239 &quot;recentSearch&quot;: &quot;A String&quot;, # The recent search query.
240 },
241 ],
242 }</pre>
243 </div>
244
245 <div class="method">
246 <code class="details" id="exportAnalyticsMetrics">exportAnalyticsMetrics(catalog, body=None, x__xgafv=None)</code>
247 <pre>Exports analytics metrics. `Operation.response` is of type `ExportAnalyticsMetricsResponse`. `Operation.metadata` is of type `ExportMetadata`.
248
249 Args:
250 catalog: string, Required. Full resource name of the parent catalog. Expected format: `projects/*/locations/*/catalogs/*` (required)
251 body: object, The request body.
252 The object takes the form of:
253
254 { # Request message for the `ExportAnalyticsMetrics` method.
255 &quot;filter&quot;: &quot;A String&quot;, # A filtering expression to specify restrictions on returned metrics. The expression is a sequence of terms. Each term applies a restriction to the returned metrics. Use this expression to restrict results to a specific time range. Currently we expect only one types of fields: * `timestamp`: This can be specified twice, once with a less than operator and once with a greater than operator. The `timestamp` restriction should result in one, contiguous, valid, `timestamp` range. Some examples of valid filters expressions: * Example 1: `timestamp &gt; &quot;2012-04-23T18:25:43.511Z&quot; timestamp &lt; &quot;2012-04-23T18:30:43.511Z&quot;` * Example 2: `timestamp &gt; &quot;2012-04-23T18:25:43.511Z&quot;`
256 &quot;outputConfig&quot;: { # The output configuration setting. # Required. The output location of the data. Only `bigquery_destination` is supported, and `bigquery_destination.table_type` must be set to `view`.
257 &quot;bigqueryDestination&quot;: { # The BigQuery output destination configuration. # The BigQuery location where the output is to be written to.
258 &quot;datasetId&quot;: &quot;A String&quot;, # Required. The ID of a BigQuery Dataset.
259 &quot;tableIdPrefix&quot;: &quot;A String&quot;, # Required. The prefix of exported BigQuery tables.
260 &quot;tableType&quot;: &quot;A String&quot;, # Required. Describes the table type. The following values are supported: * `table`: A BigQuery native table. * `view`: A virtual table defined by a SQL query.
261 },
262 &quot;gcsDestination&quot;: { # The Google Cloud Storage output destination configuration. # The Google Cloud Storage location where the output is to be written to.
263 &quot;outputUriPrefix&quot;: &quot;A String&quot;, # Required. The output uri prefix for saving output data to json files. Some mapping examples are as follows: output_uri_prefix sample output(assuming the object is foo.json) ======================== ============================================= gs://bucket/ gs://bucket/foo.json gs://bucket/folder/ gs://bucket/folder/foo.json gs://bucket/folder/item_ gs://bucket/folder/item_foo.json
264 },
265 },
266 }
267
268 x__xgafv: string, V1 error format.
269 Allowed values
270 1 - v1 error format
271 2 - v2 error format
272
273 Returns:
274 An object of the form:
275
276 { # This resource represents a long-running operation that is the result of a network API call.
277 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
278 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
279 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
280 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
281 {
282 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
283 },
284 ],
285 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
286 },
287 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
288 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
289 },
290 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
291 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
292 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
293 },
294 }</pre>
295 </div>
296
297 <div class="method">
298 <code class="details" id="getAttributesConfig">getAttributesConfig(name, x__xgafv=None)</code>
299 <pre>Gets an AttributesConfig.
300
301 Args:
302 name: string, Required. Full AttributesConfig resource name. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/attributesConfig` (required)
303 x__xgafv: string, V1 error format.
304 Allowed values
305 1 - v1 error format
306 2 - v2 error format
307
308 Returns:
309 An object of the form:
310
311 { # Catalog level attribute config.
312 &quot;attributeConfigLevel&quot;: &quot;A String&quot;, # Output only. The AttributeConfigLevel used for this catalog.
313 &quot;catalogAttributes&quot;: { # Enable attribute(s) config at catalog level. For example, indexable, dynamic_facetable, or searchable for each attribute. The key is catalog attribute&#x27;s name. For example: `color`, `brands`, `attributes.custom_attribute`, such as `attributes.xyz`. The maximum number of catalog attributes allowed in a request is 1000.
314 &quot;a_key&quot;: { # Catalog level attribute config for an attribute. For example, if customers want to enable/disable facet for a specific attribute.
315 &quot;dynamicFacetableOption&quot;: &quot;A String&quot;, # If DYNAMIC_FACETABLE_ENABLED, attribute values are available for dynamic facet. Could only be DYNAMIC_FACETABLE_DISABLED if CatalogAttribute.indexable_option is INDEXABLE_DISABLED. Otherwise, an INVALID_ARGUMENT error is returned. Must be specified, otherwise throws INVALID_FORMAT error.
316 &quot;exactSearchableOption&quot;: &quot;A String&quot;, # If EXACT_SEARCHABLE_ENABLED, attribute values will be exact searchable. This property only applies to textual custom attributes and requires indexable set to enabled to enable exact-searchable. If unset, the server behavior defaults to EXACT_SEARCHABLE_DISABLED.
317 &quot;facetConfig&quot;: { # Possible options for the facet that corresponds to the current attribute config. # Contains facet options.
318 &quot;facetIntervals&quot;: [ # If you don&#x27;t set the facet SearchRequest.FacetSpec.FacetKey.intervals in the request to a numerical attribute, then we use the computed intervals with rounded bounds obtained from all its product numerical attribute values. The computed intervals might not be ideal for some attributes. Therefore, we give you the option to overwrite them with the facet_intervals field. The maximum of facet intervals per CatalogAttribute is 40. Each interval must have a lower bound or an upper bound. If both bounds are provided, then the lower bound must be smaller or equal than the upper bound.
319 { # A floating point interval.
320 &quot;exclusiveMaximum&quot;: 3.14, # Exclusive upper bound.
321 &quot;exclusiveMinimum&quot;: 3.14, # Exclusive lower bound.
322 &quot;maximum&quot;: 3.14, # Inclusive upper bound.
323 &quot;minimum&quot;: 3.14, # Inclusive lower bound.
324 },
325 ],
326 &quot;ignoredFacetValues&quot;: [ # Each instance represents a list of attribute values to ignore as facet values for a specific time range. The maximum number of instances per CatalogAttribute is 25.
327 { # Facet values to ignore on facets during the specified time range for the given SearchResponse.Facet.key attribute.
328 &quot;endTime&quot;: &quot;A String&quot;, # If start time is empty and end time is not empty, then ignore these facet values before end time.
329 &quot;startTime&quot;: &quot;A String&quot;, # Time range for the current list of facet values to ignore. If multiple time ranges are specified for an facet value for the current attribute, consider all of them. If both are empty, ignore always. If start time and end time are set, then start time must be before end time. If start time is not empty and end time is empty, then will ignore these facet values after the start time.
330 &quot;values&quot;: [ # List of facet values to ignore for the following time range. The facet values are the same as the attribute values. There is a limit of 10 values per instance of IgnoredFacetValues. Each value can have at most 128 characters.
331 &quot;A String&quot;,
332 ],
333 },
334 ],
335 &quot;mergedFacet&quot;: { # The current facet key (i.e. attribute config) maps into the merged_facet_key. A facet key can have at most one child. The current facet key and the merged facet key need both to be textual custom attributes or both numerical custom attributes (same type). # Use this field only if you want to merge a facet key into another facet key.
336 &quot;mergedFacetKey&quot;: &quot;A String&quot;, # The merged facet key should be a valid facet key that is different than the facet key of the current catalog attribute. We refer this is merged facet key as the child of the current catalog attribute. This merged facet key can&#x27;t be a parent of another facet key (i.e. no directed path of length 2). This merged facet key needs to be either a textual custom attribute or a numerical custom attribute.
337 },
338 &quot;mergedFacetValues&quot;: [ # Each instance replaces a list of facet values by a merged facet value. If a facet value is not in any list, then it will stay the same. To avoid conflicts, only paths of length 1 are accepted. In other words, if &quot;dark_blue&quot; merged into &quot;BLUE&quot;, then the latter can&#x27;t merge into &quot;blues&quot; because this would create a path of length 2. The maximum number of instances of MergedFacetValue per CatalogAttribute is 100. This feature is available only for textual custom attributes.
339 { # Replaces a set of textual facet values by the same (possibly different) merged facet value. Each facet value should appear at most once as a value per CatalogAttribute. This feature is available only for textual custom attributes.
340 &quot;mergedValue&quot;: &quot;A String&quot;, # All the previous values are replaced by this merged facet value. This merged_value must be non-empty and can have up to 128 characters.
341 &quot;values&quot;: [ # All the facet values that are replaces by the same merged_value that follows. The maximum number of values per MergedFacetValue is 25. Each value can have up to 128 characters.
342 &quot;A String&quot;,
343 ],
344 },
345 ],
346 &quot;rerankConfig&quot;: { # Options to rerank based on facet values engaged by the user for the current key. That key needs to be a custom textual key and facetable. To use this control, you also need to pass all the facet keys engaged by the user in the request using the field [SearchRequest.FacetSpec]. In particular, if you don&#x27;t pass the facet keys engaged that you want to rerank on, this control won&#x27;t be effective. Moreover, to obtain better results, the facet values that you want to rerank on should be close to English (ideally made of words, underscores, and spaces). # Set this field only if you want to rerank based on facet values engaged by the user for the current key. This option is only possible for custom facetable textual keys.
347 &quot;facetValues&quot;: [ # If empty, rerank on all facet values for the current key. Otherwise, will rerank on the facet values from this list only.
348 &quot;A String&quot;,
349 ],
350 &quot;rerankFacet&quot;: True or False, # If set to true, then we also rerank the dynamic facets based on the facet values engaged by the user for the current attribute key during serving.
351 },
352 },
353 &quot;inUse&quot;: True or False, # Output only. Indicates whether this attribute has been used by any products. `True` if at least one Product is using this attribute in Product.attributes. Otherwise, this field is `False`. CatalogAttribute can be pre-loaded by using CatalogService.AddCatalogAttribute or CatalogService.UpdateAttributesConfig APIs. This field is `False` for pre-loaded CatalogAttributes. Only pre-loaded catalog attributes that are neither in use by products nor predefined can be deleted. Catalog attributes that are either in use by products or are predefined attributes cannot be deleted; however, their configuration properties will reset to default values upon removal request. After catalog changes, it takes about 10 minutes for this field to update.
354 &quot;indexableOption&quot;: &quot;A String&quot;, # When AttributesConfig.attribute_config_level is CATALOG_LEVEL_ATTRIBUTE_CONFIG, if INDEXABLE_ENABLED attribute values are indexed so that it can be filtered, faceted, or boosted in SearchService.Search. Must be specified when AttributesConfig.attribute_config_level is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error.
355 &quot;key&quot;: &quot;A String&quot;, # Required. Attribute name. For example: `color`, `brands`, `attributes.custom_attribute`, such as `attributes.xyz`. To be indexable, the attribute name can contain only alpha-numeric characters and underscores. For example, an attribute named `attributes.abc_xyz` can be indexed, but an attribute named `attributes.abc-xyz` cannot be indexed. If the attribute key starts with `attributes.`, then the attribute is a custom attribute. Attributes such as `brands`, `patterns`, and `title` are built-in and called system attributes.
356 &quot;retrievableOption&quot;: &quot;A String&quot;, # If RETRIEVABLE_ENABLED, attribute values are retrievable in the search results. If unset, the server behavior defaults to RETRIEVABLE_DISABLED.
357 &quot;searchableOption&quot;: &quot;A String&quot;, # When AttributesConfig.attribute_config_level is CATALOG_LEVEL_ATTRIBUTE_CONFIG, if SEARCHABLE_ENABLED, attribute values are searchable by text queries in SearchService.Search. If SEARCHABLE_ENABLED but attribute type is numerical, attribute values will not be searchable by text queries in SearchService.Search, as there are no text values associated to numerical attributes. Must be specified, when AttributesConfig.attribute_config_level is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error.
358 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of this attribute. This is derived from the attribute in Product.attributes.
359 },
360 },
361 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The fully qualified resource name of the attribute config. Format: `projects/*/locations/*/catalogs/*/attributesConfig`
362 }</pre>
363 </div>
364
365 <div class="method">
366 <code class="details" id="getCompletionConfig">getCompletionConfig(name, x__xgafv=None)</code>
367 <pre>Gets a CompletionConfig.
368
369 Args:
370 name: string, Required. Full CompletionConfig resource name. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/completionConfig` (required)
371 x__xgafv: string, V1 error format.
372 Allowed values
373 1 - v1 error format
374 2 - v2 error format
375
376 Returns:
377 An object of the form:
378
379 { # Catalog level autocomplete config for customers to customize autocomplete feature&#x27;s settings.
380 &quot;allowlistInputConfig&quot;: { # The input config source for completion data. # Output only. The source data for the latest import of the autocomplete allowlist phrases.
381 &quot;bigQuerySource&quot;: { # BigQuery source import data from. # Required. BigQuery input source. Add the IAM permission &quot;BigQuery Data Viewer&quot; for [email protected] before using this feature otherwise an error is thrown.
382 &quot;dataSchema&quot;: &quot;A String&quot;, # The schema to use when parsing the data from the source. Supported values for product imports: * `product` (default): One JSON Product per line. Each product must have a valid Product.id. * `product_merchant_center`: See [Importing catalog data from Merchant Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc). Supported values for user events imports: * `user_event` (default): One JSON UserEvent per line. * `user_event_ga360`: The schema is available here: https://support.google.com/analytics/answer/3437719. * `user_event_ga4`: The schema is available here: https://support.google.com/analytics/answer/7029846. Supported values for autocomplete imports: * `suggestions` (default): One JSON completion suggestion per line. * `denylist`: One JSON deny suggestion per line. * `allowlist`: One JSON allow suggestion per line.
383 &quot;datasetId&quot;: &quot;A String&quot;, # Required. The BigQuery data set to copy the data from with a length limit of 1,024 characters.
384 &quot;gcsStagingDir&quot;: &quot;A String&quot;, # Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters. Can be specified if one wants to have the BigQuery export to a specific Cloud Storage directory.
385 &quot;partitionDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # BigQuery time partitioned table&#x27;s _PARTITIONDATE in YYYY-MM-DD format.
386 &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
387 &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
388 &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
389 },
390 &quot;projectId&quot;: &quot;A String&quot;, # The project ID (can be project # or ID) that the BigQuery source is in with a length limit of 128 characters. If not specified, inherits the project ID from the parent request.
391 &quot;tableId&quot;: &quot;A String&quot;, # Required. The BigQuery table to copy the data from with a length limit of 1,024 characters.
392 },
393 },
394 &quot;autoLearning&quot;: True or False, # If set to true, the auto learning function is enabled. Auto learning uses user data to generate suggestions using ML techniques. Default value is false. Only after enabling auto learning can users use `cloud-retail` data in CompleteQueryRequest.
395 &quot;denylistInputConfig&quot;: { # The input config source for completion data. # Output only. The source data for the latest import of the autocomplete denylist phrases.
396 &quot;bigQuerySource&quot;: { # BigQuery source import data from. # Required. BigQuery input source. Add the IAM permission &quot;BigQuery Data Viewer&quot; for [email protected] before using this feature otherwise an error is thrown.
397 &quot;dataSchema&quot;: &quot;A String&quot;, # The schema to use when parsing the data from the source. Supported values for product imports: * `product` (default): One JSON Product per line. Each product must have a valid Product.id. * `product_merchant_center`: See [Importing catalog data from Merchant Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc). Supported values for user events imports: * `user_event` (default): One JSON UserEvent per line. * `user_event_ga360`: The schema is available here: https://support.google.com/analytics/answer/3437719. * `user_event_ga4`: The schema is available here: https://support.google.com/analytics/answer/7029846. Supported values for autocomplete imports: * `suggestions` (default): One JSON completion suggestion per line. * `denylist`: One JSON deny suggestion per line. * `allowlist`: One JSON allow suggestion per line.
398 &quot;datasetId&quot;: &quot;A String&quot;, # Required. The BigQuery data set to copy the data from with a length limit of 1,024 characters.
399 &quot;gcsStagingDir&quot;: &quot;A String&quot;, # Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters. Can be specified if one wants to have the BigQuery export to a specific Cloud Storage directory.
400 &quot;partitionDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # BigQuery time partitioned table&#x27;s _PARTITIONDATE in YYYY-MM-DD format.
401 &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
402 &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
403 &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
404 },
405 &quot;projectId&quot;: &quot;A String&quot;, # The project ID (can be project # or ID) that the BigQuery source is in with a length limit of 128 characters. If not specified, inherits the project ID from the parent request.
406 &quot;tableId&quot;: &quot;A String&quot;, # Required. The BigQuery table to copy the data from with a length limit of 1,024 characters.
407 },
408 },
409 &quot;lastAllowlistImportOperation&quot;: &quot;A String&quot;, # Output only. Name of the LRO corresponding to the latest allowlist import. Can use GetOperation API to retrieve the latest state of the Long Running Operation.
410 &quot;lastDenylistImportOperation&quot;: &quot;A String&quot;, # Output only. Name of the LRO corresponding to the latest denylist import. Can use GetOperation API to retrieve the latest state of the Long Running Operation.
411 &quot;lastSuggestionsImportOperation&quot;: &quot;A String&quot;, # Output only. Name of the LRO corresponding to the latest suggestion terms list import. Can use GetOperation API method to retrieve the latest state of the Long Running Operation.
412 &quot;matchingOrder&quot;: &quot;A String&quot;, # Specifies the matching order for autocomplete suggestions, e.g., a query consisting of &#x27;sh&#x27; with &#x27;out-of-order&#x27; specified would suggest &quot;women&#x27;s shoes&quot;, whereas a query of &#x27;red s&#x27; with &#x27;exact-prefix&#x27; specified would suggest &quot;red shoes&quot;. Currently supported values: * &#x27;out-of-order&#x27; * &#x27;exact-prefix&#x27; Default value: &#x27;exact-prefix&#x27;.
413 &quot;maxSuggestions&quot;: 42, # The maximum number of autocomplete suggestions returned per term. Default value is 20. If left unset or set to 0, then will fallback to default value. Value range is 1 to 20.
414 &quot;minPrefixLength&quot;: 42, # The minimum number of characters needed to be typed in order to get suggestions. Default value is 2. If left unset or set to 0, then will fallback to default value. Value range is 1 to 20.
415 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. Fully qualified name `projects/*/locations/*/catalogs/*/completionConfig`
416 &quot;suggestionsInputConfig&quot;: { # The input config source for completion data. # Output only. The source data for the latest import of the autocomplete suggestion phrases.
417 &quot;bigQuerySource&quot;: { # BigQuery source import data from. # Required. BigQuery input source. Add the IAM permission &quot;BigQuery Data Viewer&quot; for [email protected] before using this feature otherwise an error is thrown.
418 &quot;dataSchema&quot;: &quot;A String&quot;, # The schema to use when parsing the data from the source. Supported values for product imports: * `product` (default): One JSON Product per line. Each product must have a valid Product.id. * `product_merchant_center`: See [Importing catalog data from Merchant Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc). Supported values for user events imports: * `user_event` (default): One JSON UserEvent per line. * `user_event_ga360`: The schema is available here: https://support.google.com/analytics/answer/3437719. * `user_event_ga4`: The schema is available here: https://support.google.com/analytics/answer/7029846. Supported values for autocomplete imports: * `suggestions` (default): One JSON completion suggestion per line. * `denylist`: One JSON deny suggestion per line. * `allowlist`: One JSON allow suggestion per line.
419 &quot;datasetId&quot;: &quot;A String&quot;, # Required. The BigQuery data set to copy the data from with a length limit of 1,024 characters.
420 &quot;gcsStagingDir&quot;: &quot;A String&quot;, # Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters. Can be specified if one wants to have the BigQuery export to a specific Cloud Storage directory.
421 &quot;partitionDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # BigQuery time partitioned table&#x27;s _PARTITIONDATE in YYYY-MM-DD format.
422 &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
423 &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
424 &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
425 },
426 &quot;projectId&quot;: &quot;A String&quot;, # The project ID (can be project # or ID) that the BigQuery source is in with a length limit of 128 characters. If not specified, inherits the project ID from the parent request.
427 &quot;tableId&quot;: &quot;A String&quot;, # Required. The BigQuery table to copy the data from with a length limit of 1,024 characters.
428 },
429 },
430 }</pre>
431 </div>
432
433 <div class="method">
434 <code class="details" id="getConversationalSearchCustomizationConfig">getConversationalSearchCustomizationConfig(name, x__xgafv=None)</code>
435 <pre>Returns the conversational search customization config for a given catalog.
436
437 Args:
438 name: string, Required. Resource name of the parent catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog} (required)
439 x__xgafv: string, V1 error format.
440 Allowed values
441 1 - v1 error format
442 2 - v2 error format
443
444 Returns:
445 An object of the form:
446
447 { # The public proto to represent the conversational search customization config. It will be converted to the internal proto in the backend.
448 &quot;catalog&quot;: &quot;A String&quot;, # Required. Resource name of the catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}
449 &quot;intentClassificationConfig&quot;: { # The public proto to represent the intent classification config. It will be converted to the internal proto in the backend. # Optional. The configs for intent classification.
450 &quot;blocklistKeywords&quot;: [ # Optional. A list of keywords that will be used to classify the query to the &quot;BLOCKLISTED&quot; intent type. The keywords are case insensitive.
451 &quot;A String&quot;,
452 ],
453 &quot;disabledIntentTypes&quot;: [ # Optional. A list of intent types that will be disabled for this customer. The intent types must match one of the predefined intent types defined at https://cloud.google.com/retail/docs/reference/rpc/google.cloud.retail.v2alpha#querytype
454 &quot;A String&quot;,
455 ],
456 &quot;example&quot;: [ # Optional. A list of examples for intent classification.
457 { # An example for intent classification.
458 &quot;classifiedPositive&quot;: True or False, # Required. Whether the example is classified positively.
459 &quot;intentType&quot;: &quot;A String&quot;, # Optional. The intent_type must match one of the predefined intent types defined at https://cloud.google.com/retail/docs/reference/rpc/google.cloud.retail.v2alpha#querytype
460 &quot;query&quot;: &quot;A String&quot;, # Required. Example query.
461 &quot;reason&quot;: &quot;A String&quot;, # Optional. The reason for the intent classification. This is used to explain the intent classification decision.
462 },
463 ],
464 &quot;inlineSource&quot;: { # Inline source for intent classifications. # Optional. Inline source for intent classifications.
465 &quot;inlineForceIntents&quot;: [ # Optional. A list of inline force intent classifications.
466 { # An inline force intent classification configuration.
467 &quot;intentType&quot;: &quot;A String&quot;, # Optional. The intent_type must match one of the predefined intent types defined at https://cloud.google.com/retail/docs/reference/rpc/google.cloud.retail.v2alpha#querytype
468 &quot;operation&quot;: &quot;A String&quot;, # Optional. The operation to perform for the query.
469 &quot;query&quot;: &quot;A String&quot;, # Optional. A example query.
470 },
471 ],
472 },
473 &quot;modelPreamble&quot;: &quot;A String&quot;, # Optional. Customers can use the preamble to specify any requirements for blocklisting intent classification. This preamble will be added to the blocklisting intent classification model prompt.
474 },
475 &quot;retailerDisplayName&quot;: &quot;A String&quot;, # Optional. The retailer&#x27;s display name that could be used in our LLM answers. Example - &quot;Google&quot;
476 }</pre>
477 </div>
478
479 <div class="method">
480 <code class="details" id="getDefaultBranch">getDefaultBranch(catalog, x__xgafv=None)</code>
481 <pre>Get which branch is currently default branch set by CatalogService.SetDefaultBranch method under a specified parent catalog.
482
483 Args:
484 catalog: string, The parent catalog resource name, such as `projects/*/locations/global/catalogs/default_catalog`. (required)
485 x__xgafv: string, V1 error format.
486 Allowed values
487 1 - v1 error format
488 2 - v2 error format
489
490 Returns:
491 An object of the form:
492
493 { # Response message of CatalogService.GetDefaultBranch.
494 &quot;branch&quot;: &quot;A String&quot;, # Full resource name of the branch id currently set as default branch.
495 &quot;note&quot;: &quot;A String&quot;, # This corresponds to SetDefaultBranchRequest.note field, when this branch was set as default.
496 &quot;setTime&quot;: &quot;A String&quot;, # The time when this branch is set to default.
497 }</pre>
498 </div>
499
500 <div class="method">
501 <code class="details" id="getGenerativeQuestionFeature">getGenerativeQuestionFeature(catalog, x__xgafv=None)</code>
502 <pre>Manages overal generative question feature state -- enables toggling feature on and off.
503
504 Args:
505 catalog: string, Required. Resource name of the parent catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog} (required)
506 x__xgafv: string, V1 error format.
507 Allowed values
508 1 - v1 error format
509 2 - v2 error format
510
511 Returns:
512 An object of the form:
513
514 { # Configuration for overall generative question feature state.
515 &quot;catalog&quot;: &quot;A String&quot;, # Required. Resource name of the affected catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}
516 &quot;featureEnabled&quot;: True or False, # Optional. Determines whether questions will be used at serving time. Note: This feature cannot be enabled until initial data requirements are satisfied.
517 &quot;minimumProducts&quot;: 42, # Optional. Minimum number of products in the response to trigger follow-up questions. Value must be 0 or positive.
518 }</pre>
519 </div>
520
521 <div class="method">
522 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
523 <pre>Lists all the Catalogs associated with the project.
524
525 Args:
526 parent: string, Required. The account resource name with an associated location. If the caller does not have permission to list Catalogs under this location, regardless of whether or not this location exists, a PERMISSION_DENIED error is returned. (required)
527 pageSize: integer, Maximum number of Catalogs to return. If unspecified, defaults to 50. The maximum allowed value is 1000. Values above 1000 will be coerced to 1000. If this field is negative, an INVALID_ARGUMENT is returned.
528 pageToken: string, A page token ListCatalogsResponse.next_page_token, received from a previous CatalogService.ListCatalogs call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to CatalogService.ListCatalogs must match the call that provided the page token. Otherwise, an INVALID_ARGUMENT error is returned.
529 x__xgafv: string, V1 error format.
530 Allowed values
531 1 - v1 error format
532 2 - v2 error format
533
534 Returns:
535 An object of the form:
536
537 { # Response for CatalogService.ListCatalogs method.
538 &quot;catalogs&quot;: [ # All the customer&#x27;s Catalogs.
539 { # The catalog configuration.
540 &quot;displayName&quot;: &quot;A String&quot;, # Required. Immutable. The catalog display name. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
541 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The fully qualified resource name of the catalog.
542 &quot;productLevelConfig&quot;: { # Configures what level the product should be uploaded with regards to how users will be send events and how predictions will be made. # Required. The product level configuration.
543 &quot;ingestionProductType&quot;: &quot;A String&quot;, # The type of Products allowed to be ingested into the catalog. Acceptable values are: * `primary` (default): You can ingest Products of all types. When ingesting a Product, its type will default to Product.Type.PRIMARY if unset. * `variant` (incompatible with Retail Search): You can only ingest Product.Type.VARIANT Products. This means Product.primary_product_id cannot be empty. If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned. If this field is `variant` and merchant_center_product_id_field is `itemGroupId`, an INVALID_ARGUMENT error is returned. See [Product levels](https://cloud.google.com/retail/docs/catalog#product-levels) for more details.
544 &quot;merchantCenterProductIdField&quot;: &quot;A String&quot;, # Which field of [Merchant Center Product](/bigquery-transfer/docs/merchant-center-products-schema) should be imported as Product.id. Acceptable values are: * `offerId` (default): Import `offerId` as the product ID. * `itemGroupId`: Import `itemGroupId` as the product ID. Notice that Retail API will choose one item from the ones with the same `itemGroupId`, and use it to represent the item group. If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned. If this field is `itemGroupId` and ingestion_product_type is `variant`, an INVALID_ARGUMENT error is returned. See [Product levels](https://cloud.google.com/retail/docs/catalog#product-levels) for more details.
545 },
546 },
547 ],
548 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token that can be sent as ListCatalogsRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.
549 }</pre>
550 </div>
551
552 <div class="method">
553 <code class="details" id="list_next">list_next()</code>
554 <pre>Retrieves the next page of results.
555
556 Args:
557 previous_request: The request for the previous page. (required)
558 previous_response: The response from the request for the previous page. (required)
559
560 Returns:
561 A request object that you can call &#x27;execute()&#x27; on to request the next
562 page. Returns None if there are no more items in the collection.
563 </pre>
564 </div>
565
566 <div class="method">
567 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
568 <pre>Updates the Catalogs.
569
570 Args:
571 name: string, Required. Immutable. The fully qualified resource name of the catalog. (required)
572 body: object, The request body.
573 The object takes the form of:
574
575 { # The catalog configuration.
576 &quot;displayName&quot;: &quot;A String&quot;, # Required. Immutable. The catalog display name. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
577 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The fully qualified resource name of the catalog.
578 &quot;productLevelConfig&quot;: { # Configures what level the product should be uploaded with regards to how users will be send events and how predictions will be made. # Required. The product level configuration.
579 &quot;ingestionProductType&quot;: &quot;A String&quot;, # The type of Products allowed to be ingested into the catalog. Acceptable values are: * `primary` (default): You can ingest Products of all types. When ingesting a Product, its type will default to Product.Type.PRIMARY if unset. * `variant` (incompatible with Retail Search): You can only ingest Product.Type.VARIANT Products. This means Product.primary_product_id cannot be empty. If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned. If this field is `variant` and merchant_center_product_id_field is `itemGroupId`, an INVALID_ARGUMENT error is returned. See [Product levels](https://cloud.google.com/retail/docs/catalog#product-levels) for more details.
580 &quot;merchantCenterProductIdField&quot;: &quot;A String&quot;, # Which field of [Merchant Center Product](/bigquery-transfer/docs/merchant-center-products-schema) should be imported as Product.id. Acceptable values are: * `offerId` (default): Import `offerId` as the product ID. * `itemGroupId`: Import `itemGroupId` as the product ID. Notice that Retail API will choose one item from the ones with the same `itemGroupId`, and use it to represent the item group. If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned. If this field is `itemGroupId` and ingestion_product_type is `variant`, an INVALID_ARGUMENT error is returned. See [Product levels](https://cloud.google.com/retail/docs/catalog#product-levels) for more details.
581 },
582 }
583
584 updateMask: string, Optional. Indicates which fields in the provided Catalog to update. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned.
585 x__xgafv: string, V1 error format.
586 Allowed values
587 1 - v1 error format
588 2 - v2 error format
589
590 Returns:
591 An object of the form:
592
593 { # The catalog configuration.
594 &quot;displayName&quot;: &quot;A String&quot;, # Required. Immutable. The catalog display name. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
595 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The fully qualified resource name of the catalog.
596 &quot;productLevelConfig&quot;: { # Configures what level the product should be uploaded with regards to how users will be send events and how predictions will be made. # Required. The product level configuration.
597 &quot;ingestionProductType&quot;: &quot;A String&quot;, # The type of Products allowed to be ingested into the catalog. Acceptable values are: * `primary` (default): You can ingest Products of all types. When ingesting a Product, its type will default to Product.Type.PRIMARY if unset. * `variant` (incompatible with Retail Search): You can only ingest Product.Type.VARIANT Products. This means Product.primary_product_id cannot be empty. If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned. If this field is `variant` and merchant_center_product_id_field is `itemGroupId`, an INVALID_ARGUMENT error is returned. See [Product levels](https://cloud.google.com/retail/docs/catalog#product-levels) for more details.
598 &quot;merchantCenterProductIdField&quot;: &quot;A String&quot;, # Which field of [Merchant Center Product](/bigquery-transfer/docs/merchant-center-products-schema) should be imported as Product.id. Acceptable values are: * `offerId` (default): Import `offerId` as the product ID. * `itemGroupId`: Import `itemGroupId` as the product ID. Notice that Retail API will choose one item from the ones with the same `itemGroupId`, and use it to represent the item group. If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned. If this field is `itemGroupId` and ingestion_product_type is `variant`, an INVALID_ARGUMENT error is returned. See [Product levels](https://cloud.google.com/retail/docs/catalog#product-levels) for more details.
599 },
600 }</pre>
601 </div>
602
603 <div class="method">
604 <code class="details" id="setDefaultBranch">setDefaultBranch(catalog, body=None, x__xgafv=None)</code>
605 <pre>Set a specified branch id as default branch. API methods such as SearchService.Search, ProductService.GetProduct, ProductService.ListProducts will treat requests using &quot;default_branch&quot; to the actual branch id set as default. For example, if `projects/*/locations/*/catalogs/*/branches/1` is set as default, setting SearchRequest.branch to `projects/*/locations/*/catalogs/*/branches/default_branch` is equivalent to setting SearchRequest.branch to `projects/*/locations/*/catalogs/*/branches/1`. Using multiple branches can be useful when developers would like to have a staging branch to test and verify for future usage. When it becomes ready, developers switch on the staging branch using this API while keeping using `projects/*/locations/*/catalogs/*/branches/default_branch` as SearchRequest.branch to route the traffic to this staging branch. CAUTION: If you have live predict/search traffic, switching the default branch could potentially cause outages if the ID space of the new branch is very different from the old one. More specifically: * PredictionService will only return product IDs from branch {newBranch}. * SearchService will only return product IDs from branch {newBranch} (if branch is not explicitly set). * UserEventService will only join events with products from branch {newBranch}.
606
607 Args:
608 catalog: string, Full resource name of the catalog, such as `projects/*/locations/global/catalogs/default_catalog`. (required)
609 body: object, The request body.
610 The object takes the form of:
611
612 { # Request message to set a specified branch as new default_branch.
613 &quot;branchId&quot;: &quot;A String&quot;, # The final component of the resource name of a branch. This field must be one of &quot;0&quot;, &quot;1&quot; or &quot;2&quot;. Otherwise, an INVALID_ARGUMENT error is returned. If there are no sufficient active products in the targeted branch and force is not set, a FAILED_PRECONDITION error is returned.
614 &quot;force&quot;: True or False, # If set to true, it permits switching to a branch with branch_id even if it has no sufficient active products.
615 &quot;note&quot;: &quot;A String&quot;, # Some note on this request, this can be retrieved by CatalogService.GetDefaultBranch before next valid default branch set occurs. This field must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
616 }
617
618 x__xgafv: string, V1 error format.
619 Allowed values
620 1 - v1 error format
621 2 - v2 error format
622
623 Returns:
624 An object of the form:
625
626 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
627 }</pre>
628 </div>
629
630 <div class="method">
631 <code class="details" id="updateAttributesConfig">updateAttributesConfig(name, body=None, updateMask=None, x__xgafv=None)</code>
632 <pre>Updates the AttributesConfig. The catalog attributes in the request will be updated in the catalog, or inserted if they do not exist. Existing catalog attributes not included in the request will remain unchanged. Attributes that are assigned to products, but do not exist at the catalog level, are always included in the response. The product attribute is assigned default values for missing catalog attribute fields, e.g., searchable and dynamic facetable options.
633
634 Args:
635 name: string, Required. Immutable. The fully qualified resource name of the attribute config. Format: `projects/*/locations/*/catalogs/*/attributesConfig` (required)
636 body: object, The request body.
637 The object takes the form of:
638
639 { # Catalog level attribute config.
640 &quot;attributeConfigLevel&quot;: &quot;A String&quot;, # Output only. The AttributeConfigLevel used for this catalog.
641 &quot;catalogAttributes&quot;: { # Enable attribute(s) config at catalog level. For example, indexable, dynamic_facetable, or searchable for each attribute. The key is catalog attribute&#x27;s name. For example: `color`, `brands`, `attributes.custom_attribute`, such as `attributes.xyz`. The maximum number of catalog attributes allowed in a request is 1000.
642 &quot;a_key&quot;: { # Catalog level attribute config for an attribute. For example, if customers want to enable/disable facet for a specific attribute.
643 &quot;dynamicFacetableOption&quot;: &quot;A String&quot;, # If DYNAMIC_FACETABLE_ENABLED, attribute values are available for dynamic facet. Could only be DYNAMIC_FACETABLE_DISABLED if CatalogAttribute.indexable_option is INDEXABLE_DISABLED. Otherwise, an INVALID_ARGUMENT error is returned. Must be specified, otherwise throws INVALID_FORMAT error.
644 &quot;exactSearchableOption&quot;: &quot;A String&quot;, # If EXACT_SEARCHABLE_ENABLED, attribute values will be exact searchable. This property only applies to textual custom attributes and requires indexable set to enabled to enable exact-searchable. If unset, the server behavior defaults to EXACT_SEARCHABLE_DISABLED.
645 &quot;facetConfig&quot;: { # Possible options for the facet that corresponds to the current attribute config. # Contains facet options.
646 &quot;facetIntervals&quot;: [ # If you don&#x27;t set the facet SearchRequest.FacetSpec.FacetKey.intervals in the request to a numerical attribute, then we use the computed intervals with rounded bounds obtained from all its product numerical attribute values. The computed intervals might not be ideal for some attributes. Therefore, we give you the option to overwrite them with the facet_intervals field. The maximum of facet intervals per CatalogAttribute is 40. Each interval must have a lower bound or an upper bound. If both bounds are provided, then the lower bound must be smaller or equal than the upper bound.
647 { # A floating point interval.
648 &quot;exclusiveMaximum&quot;: 3.14, # Exclusive upper bound.
649 &quot;exclusiveMinimum&quot;: 3.14, # Exclusive lower bound.
650 &quot;maximum&quot;: 3.14, # Inclusive upper bound.
651 &quot;minimum&quot;: 3.14, # Inclusive lower bound.
652 },
653 ],
654 &quot;ignoredFacetValues&quot;: [ # Each instance represents a list of attribute values to ignore as facet values for a specific time range. The maximum number of instances per CatalogAttribute is 25.
655 { # Facet values to ignore on facets during the specified time range for the given SearchResponse.Facet.key attribute.
656 &quot;endTime&quot;: &quot;A String&quot;, # If start time is empty and end time is not empty, then ignore these facet values before end time.
657 &quot;startTime&quot;: &quot;A String&quot;, # Time range for the current list of facet values to ignore. If multiple time ranges are specified for an facet value for the current attribute, consider all of them. If both are empty, ignore always. If start time and end time are set, then start time must be before end time. If start time is not empty and end time is empty, then will ignore these facet values after the start time.
658 &quot;values&quot;: [ # List of facet values to ignore for the following time range. The facet values are the same as the attribute values. There is a limit of 10 values per instance of IgnoredFacetValues. Each value can have at most 128 characters.
659 &quot;A String&quot;,
660 ],
661 },
662 ],
663 &quot;mergedFacet&quot;: { # The current facet key (i.e. attribute config) maps into the merged_facet_key. A facet key can have at most one child. The current facet key and the merged facet key need both to be textual custom attributes or both numerical custom attributes (same type). # Use this field only if you want to merge a facet key into another facet key.
664 &quot;mergedFacetKey&quot;: &quot;A String&quot;, # The merged facet key should be a valid facet key that is different than the facet key of the current catalog attribute. We refer this is merged facet key as the child of the current catalog attribute. This merged facet key can&#x27;t be a parent of another facet key (i.e. no directed path of length 2). This merged facet key needs to be either a textual custom attribute or a numerical custom attribute.
665 },
666 &quot;mergedFacetValues&quot;: [ # Each instance replaces a list of facet values by a merged facet value. If a facet value is not in any list, then it will stay the same. To avoid conflicts, only paths of length 1 are accepted. In other words, if &quot;dark_blue&quot; merged into &quot;BLUE&quot;, then the latter can&#x27;t merge into &quot;blues&quot; because this would create a path of length 2. The maximum number of instances of MergedFacetValue per CatalogAttribute is 100. This feature is available only for textual custom attributes.
667 { # Replaces a set of textual facet values by the same (possibly different) merged facet value. Each facet value should appear at most once as a value per CatalogAttribute. This feature is available only for textual custom attributes.
668 &quot;mergedValue&quot;: &quot;A String&quot;, # All the previous values are replaced by this merged facet value. This merged_value must be non-empty and can have up to 128 characters.
669 &quot;values&quot;: [ # All the facet values that are replaces by the same merged_value that follows. The maximum number of values per MergedFacetValue is 25. Each value can have up to 128 characters.
670 &quot;A String&quot;,
671 ],
672 },
673 ],
674 &quot;rerankConfig&quot;: { # Options to rerank based on facet values engaged by the user for the current key. That key needs to be a custom textual key and facetable. To use this control, you also need to pass all the facet keys engaged by the user in the request using the field [SearchRequest.FacetSpec]. In particular, if you don&#x27;t pass the facet keys engaged that you want to rerank on, this control won&#x27;t be effective. Moreover, to obtain better results, the facet values that you want to rerank on should be close to English (ideally made of words, underscores, and spaces). # Set this field only if you want to rerank based on facet values engaged by the user for the current key. This option is only possible for custom facetable textual keys.
675 &quot;facetValues&quot;: [ # If empty, rerank on all facet values for the current key. Otherwise, will rerank on the facet values from this list only.
676 &quot;A String&quot;,
677 ],
678 &quot;rerankFacet&quot;: True or False, # If set to true, then we also rerank the dynamic facets based on the facet values engaged by the user for the current attribute key during serving.
679 },
680 },
681 &quot;inUse&quot;: True or False, # Output only. Indicates whether this attribute has been used by any products. `True` if at least one Product is using this attribute in Product.attributes. Otherwise, this field is `False`. CatalogAttribute can be pre-loaded by using CatalogService.AddCatalogAttribute or CatalogService.UpdateAttributesConfig APIs. This field is `False` for pre-loaded CatalogAttributes. Only pre-loaded catalog attributes that are neither in use by products nor predefined can be deleted. Catalog attributes that are either in use by products or are predefined attributes cannot be deleted; however, their configuration properties will reset to default values upon removal request. After catalog changes, it takes about 10 minutes for this field to update.
682 &quot;indexableOption&quot;: &quot;A String&quot;, # When AttributesConfig.attribute_config_level is CATALOG_LEVEL_ATTRIBUTE_CONFIG, if INDEXABLE_ENABLED attribute values are indexed so that it can be filtered, faceted, or boosted in SearchService.Search. Must be specified when AttributesConfig.attribute_config_level is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error.
683 &quot;key&quot;: &quot;A String&quot;, # Required. Attribute name. For example: `color`, `brands`, `attributes.custom_attribute`, such as `attributes.xyz`. To be indexable, the attribute name can contain only alpha-numeric characters and underscores. For example, an attribute named `attributes.abc_xyz` can be indexed, but an attribute named `attributes.abc-xyz` cannot be indexed. If the attribute key starts with `attributes.`, then the attribute is a custom attribute. Attributes such as `brands`, `patterns`, and `title` are built-in and called system attributes.
684 &quot;retrievableOption&quot;: &quot;A String&quot;, # If RETRIEVABLE_ENABLED, attribute values are retrievable in the search results. If unset, the server behavior defaults to RETRIEVABLE_DISABLED.
685 &quot;searchableOption&quot;: &quot;A String&quot;, # When AttributesConfig.attribute_config_level is CATALOG_LEVEL_ATTRIBUTE_CONFIG, if SEARCHABLE_ENABLED, attribute values are searchable by text queries in SearchService.Search. If SEARCHABLE_ENABLED but attribute type is numerical, attribute values will not be searchable by text queries in SearchService.Search, as there are no text values associated to numerical attributes. Must be specified, when AttributesConfig.attribute_config_level is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error.
686 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of this attribute. This is derived from the attribute in Product.attributes.
687 },
688 },
689 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The fully qualified resource name of the attribute config. Format: `projects/*/locations/*/catalogs/*/attributesConfig`
690 }
691
692 updateMask: string, Optional. Indicates which fields in the provided AttributesConfig to update. The following is the only supported field: * AttributesConfig.catalog_attributes If not set, all supported fields are updated.
693 x__xgafv: string, V1 error format.
694 Allowed values
695 1 - v1 error format
696 2 - v2 error format
697
698 Returns:
699 An object of the form:
700
701 { # Catalog level attribute config.
702 &quot;attributeConfigLevel&quot;: &quot;A String&quot;, # Output only. The AttributeConfigLevel used for this catalog.
703 &quot;catalogAttributes&quot;: { # Enable attribute(s) config at catalog level. For example, indexable, dynamic_facetable, or searchable for each attribute. The key is catalog attribute&#x27;s name. For example: `color`, `brands`, `attributes.custom_attribute`, such as `attributes.xyz`. The maximum number of catalog attributes allowed in a request is 1000.
704 &quot;a_key&quot;: { # Catalog level attribute config for an attribute. For example, if customers want to enable/disable facet for a specific attribute.
705 &quot;dynamicFacetableOption&quot;: &quot;A String&quot;, # If DYNAMIC_FACETABLE_ENABLED, attribute values are available for dynamic facet. Could only be DYNAMIC_FACETABLE_DISABLED if CatalogAttribute.indexable_option is INDEXABLE_DISABLED. Otherwise, an INVALID_ARGUMENT error is returned. Must be specified, otherwise throws INVALID_FORMAT error.
706 &quot;exactSearchableOption&quot;: &quot;A String&quot;, # If EXACT_SEARCHABLE_ENABLED, attribute values will be exact searchable. This property only applies to textual custom attributes and requires indexable set to enabled to enable exact-searchable. If unset, the server behavior defaults to EXACT_SEARCHABLE_DISABLED.
707 &quot;facetConfig&quot;: { # Possible options for the facet that corresponds to the current attribute config. # Contains facet options.
708 &quot;facetIntervals&quot;: [ # If you don&#x27;t set the facet SearchRequest.FacetSpec.FacetKey.intervals in the request to a numerical attribute, then we use the computed intervals with rounded bounds obtained from all its product numerical attribute values. The computed intervals might not be ideal for some attributes. Therefore, we give you the option to overwrite them with the facet_intervals field. The maximum of facet intervals per CatalogAttribute is 40. Each interval must have a lower bound or an upper bound. If both bounds are provided, then the lower bound must be smaller or equal than the upper bound.
709 { # A floating point interval.
710 &quot;exclusiveMaximum&quot;: 3.14, # Exclusive upper bound.
711 &quot;exclusiveMinimum&quot;: 3.14, # Exclusive lower bound.
712 &quot;maximum&quot;: 3.14, # Inclusive upper bound.
713 &quot;minimum&quot;: 3.14, # Inclusive lower bound.
714 },
715 ],
716 &quot;ignoredFacetValues&quot;: [ # Each instance represents a list of attribute values to ignore as facet values for a specific time range. The maximum number of instances per CatalogAttribute is 25.
717 { # Facet values to ignore on facets during the specified time range for the given SearchResponse.Facet.key attribute.
718 &quot;endTime&quot;: &quot;A String&quot;, # If start time is empty and end time is not empty, then ignore these facet values before end time.
719 &quot;startTime&quot;: &quot;A String&quot;, # Time range for the current list of facet values to ignore. If multiple time ranges are specified for an facet value for the current attribute, consider all of them. If both are empty, ignore always. If start time and end time are set, then start time must be before end time. If start time is not empty and end time is empty, then will ignore these facet values after the start time.
720 &quot;values&quot;: [ # List of facet values to ignore for the following time range. The facet values are the same as the attribute values. There is a limit of 10 values per instance of IgnoredFacetValues. Each value can have at most 128 characters.
721 &quot;A String&quot;,
722 ],
723 },
724 ],
725 &quot;mergedFacet&quot;: { # The current facet key (i.e. attribute config) maps into the merged_facet_key. A facet key can have at most one child. The current facet key and the merged facet key need both to be textual custom attributes or both numerical custom attributes (same type). # Use this field only if you want to merge a facet key into another facet key.
726 &quot;mergedFacetKey&quot;: &quot;A String&quot;, # The merged facet key should be a valid facet key that is different than the facet key of the current catalog attribute. We refer this is merged facet key as the child of the current catalog attribute. This merged facet key can&#x27;t be a parent of another facet key (i.e. no directed path of length 2). This merged facet key needs to be either a textual custom attribute or a numerical custom attribute.
727 },
728 &quot;mergedFacetValues&quot;: [ # Each instance replaces a list of facet values by a merged facet value. If a facet value is not in any list, then it will stay the same. To avoid conflicts, only paths of length 1 are accepted. In other words, if &quot;dark_blue&quot; merged into &quot;BLUE&quot;, then the latter can&#x27;t merge into &quot;blues&quot; because this would create a path of length 2. The maximum number of instances of MergedFacetValue per CatalogAttribute is 100. This feature is available only for textual custom attributes.
729 { # Replaces a set of textual facet values by the same (possibly different) merged facet value. Each facet value should appear at most once as a value per CatalogAttribute. This feature is available only for textual custom attributes.
730 &quot;mergedValue&quot;: &quot;A String&quot;, # All the previous values are replaced by this merged facet value. This merged_value must be non-empty and can have up to 128 characters.
731 &quot;values&quot;: [ # All the facet values that are replaces by the same merged_value that follows. The maximum number of values per MergedFacetValue is 25. Each value can have up to 128 characters.
732 &quot;A String&quot;,
733 ],
734 },
735 ],
736 &quot;rerankConfig&quot;: { # Options to rerank based on facet values engaged by the user for the current key. That key needs to be a custom textual key and facetable. To use this control, you also need to pass all the facet keys engaged by the user in the request using the field [SearchRequest.FacetSpec]. In particular, if you don&#x27;t pass the facet keys engaged that you want to rerank on, this control won&#x27;t be effective. Moreover, to obtain better results, the facet values that you want to rerank on should be close to English (ideally made of words, underscores, and spaces). # Set this field only if you want to rerank based on facet values engaged by the user for the current key. This option is only possible for custom facetable textual keys.
737 &quot;facetValues&quot;: [ # If empty, rerank on all facet values for the current key. Otherwise, will rerank on the facet values from this list only.
738 &quot;A String&quot;,
739 ],
740 &quot;rerankFacet&quot;: True or False, # If set to true, then we also rerank the dynamic facets based on the facet values engaged by the user for the current attribute key during serving.
741 },
742 },
743 &quot;inUse&quot;: True or False, # Output only. Indicates whether this attribute has been used by any products. `True` if at least one Product is using this attribute in Product.attributes. Otherwise, this field is `False`. CatalogAttribute can be pre-loaded by using CatalogService.AddCatalogAttribute or CatalogService.UpdateAttributesConfig APIs. This field is `False` for pre-loaded CatalogAttributes. Only pre-loaded catalog attributes that are neither in use by products nor predefined can be deleted. Catalog attributes that are either in use by products or are predefined attributes cannot be deleted; however, their configuration properties will reset to default values upon removal request. After catalog changes, it takes about 10 minutes for this field to update.
744 &quot;indexableOption&quot;: &quot;A String&quot;, # When AttributesConfig.attribute_config_level is CATALOG_LEVEL_ATTRIBUTE_CONFIG, if INDEXABLE_ENABLED attribute values are indexed so that it can be filtered, faceted, or boosted in SearchService.Search. Must be specified when AttributesConfig.attribute_config_level is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error.
745 &quot;key&quot;: &quot;A String&quot;, # Required. Attribute name. For example: `color`, `brands`, `attributes.custom_attribute`, such as `attributes.xyz`. To be indexable, the attribute name can contain only alpha-numeric characters and underscores. For example, an attribute named `attributes.abc_xyz` can be indexed, but an attribute named `attributes.abc-xyz` cannot be indexed. If the attribute key starts with `attributes.`, then the attribute is a custom attribute. Attributes such as `brands`, `patterns`, and `title` are built-in and called system attributes.
746 &quot;retrievableOption&quot;: &quot;A String&quot;, # If RETRIEVABLE_ENABLED, attribute values are retrievable in the search results. If unset, the server behavior defaults to RETRIEVABLE_DISABLED.
747 &quot;searchableOption&quot;: &quot;A String&quot;, # When AttributesConfig.attribute_config_level is CATALOG_LEVEL_ATTRIBUTE_CONFIG, if SEARCHABLE_ENABLED, attribute values are searchable by text queries in SearchService.Search. If SEARCHABLE_ENABLED but attribute type is numerical, attribute values will not be searchable by text queries in SearchService.Search, as there are no text values associated to numerical attributes. Must be specified, when AttributesConfig.attribute_config_level is CATALOG_LEVEL_ATTRIBUTE_CONFIG, otherwise throws INVALID_FORMAT error.
748 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of this attribute. This is derived from the attribute in Product.attributes.
749 },
750 },
751 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The fully qualified resource name of the attribute config. Format: `projects/*/locations/*/catalogs/*/attributesConfig`
752 }</pre>
753 </div>
754
755 <div class="method">
756 <code class="details" id="updateCompletionConfig">updateCompletionConfig(name, body=None, updateMask=None, x__xgafv=None)</code>
757 <pre>Updates the CompletionConfigs.
758
759 Args:
760 name: string, Required. Immutable. Fully qualified name `projects/*/locations/*/catalogs/*/completionConfig` (required)
761 body: object, The request body.
762 The object takes the form of:
763
764 { # Catalog level autocomplete config for customers to customize autocomplete feature&#x27;s settings.
765 &quot;allowlistInputConfig&quot;: { # The input config source for completion data. # Output only. The source data for the latest import of the autocomplete allowlist phrases.
766 &quot;bigQuerySource&quot;: { # BigQuery source import data from. # Required. BigQuery input source. Add the IAM permission &quot;BigQuery Data Viewer&quot; for [email protected] before using this feature otherwise an error is thrown.
767 &quot;dataSchema&quot;: &quot;A String&quot;, # The schema to use when parsing the data from the source. Supported values for product imports: * `product` (default): One JSON Product per line. Each product must have a valid Product.id. * `product_merchant_center`: See [Importing catalog data from Merchant Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc). Supported values for user events imports: * `user_event` (default): One JSON UserEvent per line. * `user_event_ga360`: The schema is available here: https://support.google.com/analytics/answer/3437719. * `user_event_ga4`: The schema is available here: https://support.google.com/analytics/answer/7029846. Supported values for autocomplete imports: * `suggestions` (default): One JSON completion suggestion per line. * `denylist`: One JSON deny suggestion per line. * `allowlist`: One JSON allow suggestion per line.
768 &quot;datasetId&quot;: &quot;A String&quot;, # Required. The BigQuery data set to copy the data from with a length limit of 1,024 characters.
769 &quot;gcsStagingDir&quot;: &quot;A String&quot;, # Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters. Can be specified if one wants to have the BigQuery export to a specific Cloud Storage directory.
770 &quot;partitionDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # BigQuery time partitioned table&#x27;s _PARTITIONDATE in YYYY-MM-DD format.
771 &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
772 &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
773 &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
774 },
775 &quot;projectId&quot;: &quot;A String&quot;, # The project ID (can be project # or ID) that the BigQuery source is in with a length limit of 128 characters. If not specified, inherits the project ID from the parent request.
776 &quot;tableId&quot;: &quot;A String&quot;, # Required. The BigQuery table to copy the data from with a length limit of 1,024 characters.
777 },
778 },
779 &quot;autoLearning&quot;: True or False, # If set to true, the auto learning function is enabled. Auto learning uses user data to generate suggestions using ML techniques. Default value is false. Only after enabling auto learning can users use `cloud-retail` data in CompleteQueryRequest.
780 &quot;denylistInputConfig&quot;: { # The input config source for completion data. # Output only. The source data for the latest import of the autocomplete denylist phrases.
781 &quot;bigQuerySource&quot;: { # BigQuery source import data from. # Required. BigQuery input source. Add the IAM permission &quot;BigQuery Data Viewer&quot; for [email protected] before using this feature otherwise an error is thrown.
782 &quot;dataSchema&quot;: &quot;A String&quot;, # The schema to use when parsing the data from the source. Supported values for product imports: * `product` (default): One JSON Product per line. Each product must have a valid Product.id. * `product_merchant_center`: See [Importing catalog data from Merchant Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc). Supported values for user events imports: * `user_event` (default): One JSON UserEvent per line. * `user_event_ga360`: The schema is available here: https://support.google.com/analytics/answer/3437719. * `user_event_ga4`: The schema is available here: https://support.google.com/analytics/answer/7029846. Supported values for autocomplete imports: * `suggestions` (default): One JSON completion suggestion per line. * `denylist`: One JSON deny suggestion per line. * `allowlist`: One JSON allow suggestion per line.
783 &quot;datasetId&quot;: &quot;A String&quot;, # Required. The BigQuery data set to copy the data from with a length limit of 1,024 characters.
784 &quot;gcsStagingDir&quot;: &quot;A String&quot;, # Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters. Can be specified if one wants to have the BigQuery export to a specific Cloud Storage directory.
785 &quot;partitionDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # BigQuery time partitioned table&#x27;s _PARTITIONDATE in YYYY-MM-DD format.
786 &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
787 &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
788 &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
789 },
790 &quot;projectId&quot;: &quot;A String&quot;, # The project ID (can be project # or ID) that the BigQuery source is in with a length limit of 128 characters. If not specified, inherits the project ID from the parent request.
791 &quot;tableId&quot;: &quot;A String&quot;, # Required. The BigQuery table to copy the data from with a length limit of 1,024 characters.
792 },
793 },
794 &quot;lastAllowlistImportOperation&quot;: &quot;A String&quot;, # Output only. Name of the LRO corresponding to the latest allowlist import. Can use GetOperation API to retrieve the latest state of the Long Running Operation.
795 &quot;lastDenylistImportOperation&quot;: &quot;A String&quot;, # Output only. Name of the LRO corresponding to the latest denylist import. Can use GetOperation API to retrieve the latest state of the Long Running Operation.
796 &quot;lastSuggestionsImportOperation&quot;: &quot;A String&quot;, # Output only. Name of the LRO corresponding to the latest suggestion terms list import. Can use GetOperation API method to retrieve the latest state of the Long Running Operation.
797 &quot;matchingOrder&quot;: &quot;A String&quot;, # Specifies the matching order for autocomplete suggestions, e.g., a query consisting of &#x27;sh&#x27; with &#x27;out-of-order&#x27; specified would suggest &quot;women&#x27;s shoes&quot;, whereas a query of &#x27;red s&#x27; with &#x27;exact-prefix&#x27; specified would suggest &quot;red shoes&quot;. Currently supported values: * &#x27;out-of-order&#x27; * &#x27;exact-prefix&#x27; Default value: &#x27;exact-prefix&#x27;.
798 &quot;maxSuggestions&quot;: 42, # The maximum number of autocomplete suggestions returned per term. Default value is 20. If left unset or set to 0, then will fallback to default value. Value range is 1 to 20.
799 &quot;minPrefixLength&quot;: 42, # The minimum number of characters needed to be typed in order to get suggestions. Default value is 2. If left unset or set to 0, then will fallback to default value. Value range is 1 to 20.
800 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. Fully qualified name `projects/*/locations/*/catalogs/*/completionConfig`
801 &quot;suggestionsInputConfig&quot;: { # The input config source for completion data. # Output only. The source data for the latest import of the autocomplete suggestion phrases.
802 &quot;bigQuerySource&quot;: { # BigQuery source import data from. # Required. BigQuery input source. Add the IAM permission &quot;BigQuery Data Viewer&quot; for [email protected] before using this feature otherwise an error is thrown.
803 &quot;dataSchema&quot;: &quot;A String&quot;, # The schema to use when parsing the data from the source. Supported values for product imports: * `product` (default): One JSON Product per line. Each product must have a valid Product.id. * `product_merchant_center`: See [Importing catalog data from Merchant Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc). Supported values for user events imports: * `user_event` (default): One JSON UserEvent per line. * `user_event_ga360`: The schema is available here: https://support.google.com/analytics/answer/3437719. * `user_event_ga4`: The schema is available here: https://support.google.com/analytics/answer/7029846. Supported values for autocomplete imports: * `suggestions` (default): One JSON completion suggestion per line. * `denylist`: One JSON deny suggestion per line. * `allowlist`: One JSON allow suggestion per line.
804 &quot;datasetId&quot;: &quot;A String&quot;, # Required. The BigQuery data set to copy the data from with a length limit of 1,024 characters.
805 &quot;gcsStagingDir&quot;: &quot;A String&quot;, # Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters. Can be specified if one wants to have the BigQuery export to a specific Cloud Storage directory.
806 &quot;partitionDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # BigQuery time partitioned table&#x27;s _PARTITIONDATE in YYYY-MM-DD format.
807 &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
808 &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
809 &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
810 },
811 &quot;projectId&quot;: &quot;A String&quot;, # The project ID (can be project # or ID) that the BigQuery source is in with a length limit of 128 characters. If not specified, inherits the project ID from the parent request.
812 &quot;tableId&quot;: &quot;A String&quot;, # Required. The BigQuery table to copy the data from with a length limit of 1,024 characters.
813 },
814 },
815 }
816
817 updateMask: string, Optional. Indicates which fields in the provided CompletionConfig to update. The following are the only supported fields: * CompletionConfig.matching_order * CompletionConfig.max_suggestions * CompletionConfig.min_prefix_length * CompletionConfig.auto_learning If not set, all supported fields are updated.
818 x__xgafv: string, V1 error format.
819 Allowed values
820 1 - v1 error format
821 2 - v2 error format
822
823 Returns:
824 An object of the form:
825
826 { # Catalog level autocomplete config for customers to customize autocomplete feature&#x27;s settings.
827 &quot;allowlistInputConfig&quot;: { # The input config source for completion data. # Output only. The source data for the latest import of the autocomplete allowlist phrases.
828 &quot;bigQuerySource&quot;: { # BigQuery source import data from. # Required. BigQuery input source. Add the IAM permission &quot;BigQuery Data Viewer&quot; for [email protected] before using this feature otherwise an error is thrown.
829 &quot;dataSchema&quot;: &quot;A String&quot;, # The schema to use when parsing the data from the source. Supported values for product imports: * `product` (default): One JSON Product per line. Each product must have a valid Product.id. * `product_merchant_center`: See [Importing catalog data from Merchant Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc). Supported values for user events imports: * `user_event` (default): One JSON UserEvent per line. * `user_event_ga360`: The schema is available here: https://support.google.com/analytics/answer/3437719. * `user_event_ga4`: The schema is available here: https://support.google.com/analytics/answer/7029846. Supported values for autocomplete imports: * `suggestions` (default): One JSON completion suggestion per line. * `denylist`: One JSON deny suggestion per line. * `allowlist`: One JSON allow suggestion per line.
830 &quot;datasetId&quot;: &quot;A String&quot;, # Required. The BigQuery data set to copy the data from with a length limit of 1,024 characters.
831 &quot;gcsStagingDir&quot;: &quot;A String&quot;, # Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters. Can be specified if one wants to have the BigQuery export to a specific Cloud Storage directory.
832 &quot;partitionDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # BigQuery time partitioned table&#x27;s _PARTITIONDATE in YYYY-MM-DD format.
833 &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
834 &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
835 &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
836 },
837 &quot;projectId&quot;: &quot;A String&quot;, # The project ID (can be project # or ID) that the BigQuery source is in with a length limit of 128 characters. If not specified, inherits the project ID from the parent request.
838 &quot;tableId&quot;: &quot;A String&quot;, # Required. The BigQuery table to copy the data from with a length limit of 1,024 characters.
839 },
840 },
841 &quot;autoLearning&quot;: True or False, # If set to true, the auto learning function is enabled. Auto learning uses user data to generate suggestions using ML techniques. Default value is false. Only after enabling auto learning can users use `cloud-retail` data in CompleteQueryRequest.
842 &quot;denylistInputConfig&quot;: { # The input config source for completion data. # Output only. The source data for the latest import of the autocomplete denylist phrases.
843 &quot;bigQuerySource&quot;: { # BigQuery source import data from. # Required. BigQuery input source. Add the IAM permission &quot;BigQuery Data Viewer&quot; for [email protected] before using this feature otherwise an error is thrown.
844 &quot;dataSchema&quot;: &quot;A String&quot;, # The schema to use when parsing the data from the source. Supported values for product imports: * `product` (default): One JSON Product per line. Each product must have a valid Product.id. * `product_merchant_center`: See [Importing catalog data from Merchant Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc). Supported values for user events imports: * `user_event` (default): One JSON UserEvent per line. * `user_event_ga360`: The schema is available here: https://support.google.com/analytics/answer/3437719. * `user_event_ga4`: The schema is available here: https://support.google.com/analytics/answer/7029846. Supported values for autocomplete imports: * `suggestions` (default): One JSON completion suggestion per line. * `denylist`: One JSON deny suggestion per line. * `allowlist`: One JSON allow suggestion per line.
845 &quot;datasetId&quot;: &quot;A String&quot;, # Required. The BigQuery data set to copy the data from with a length limit of 1,024 characters.
846 &quot;gcsStagingDir&quot;: &quot;A String&quot;, # Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters. Can be specified if one wants to have the BigQuery export to a specific Cloud Storage directory.
847 &quot;partitionDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # BigQuery time partitioned table&#x27;s _PARTITIONDATE in YYYY-MM-DD format.
848 &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
849 &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
850 &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
851 },
852 &quot;projectId&quot;: &quot;A String&quot;, # The project ID (can be project # or ID) that the BigQuery source is in with a length limit of 128 characters. If not specified, inherits the project ID from the parent request.
853 &quot;tableId&quot;: &quot;A String&quot;, # Required. The BigQuery table to copy the data from with a length limit of 1,024 characters.
854 },
855 },
856 &quot;lastAllowlistImportOperation&quot;: &quot;A String&quot;, # Output only. Name of the LRO corresponding to the latest allowlist import. Can use GetOperation API to retrieve the latest state of the Long Running Operation.
857 &quot;lastDenylistImportOperation&quot;: &quot;A String&quot;, # Output only. Name of the LRO corresponding to the latest denylist import. Can use GetOperation API to retrieve the latest state of the Long Running Operation.
858 &quot;lastSuggestionsImportOperation&quot;: &quot;A String&quot;, # Output only. Name of the LRO corresponding to the latest suggestion terms list import. Can use GetOperation API method to retrieve the latest state of the Long Running Operation.
859 &quot;matchingOrder&quot;: &quot;A String&quot;, # Specifies the matching order for autocomplete suggestions, e.g., a query consisting of &#x27;sh&#x27; with &#x27;out-of-order&#x27; specified would suggest &quot;women&#x27;s shoes&quot;, whereas a query of &#x27;red s&#x27; with &#x27;exact-prefix&#x27; specified would suggest &quot;red shoes&quot;. Currently supported values: * &#x27;out-of-order&#x27; * &#x27;exact-prefix&#x27; Default value: &#x27;exact-prefix&#x27;.
860 &quot;maxSuggestions&quot;: 42, # The maximum number of autocomplete suggestions returned per term. Default value is 20. If left unset or set to 0, then will fallback to default value. Value range is 1 to 20.
861 &quot;minPrefixLength&quot;: 42, # The minimum number of characters needed to be typed in order to get suggestions. Default value is 2. If left unset or set to 0, then will fallback to default value. Value range is 1 to 20.
862 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. Fully qualified name `projects/*/locations/*/catalogs/*/completionConfig`
863 &quot;suggestionsInputConfig&quot;: { # The input config source for completion data. # Output only. The source data for the latest import of the autocomplete suggestion phrases.
864 &quot;bigQuerySource&quot;: { # BigQuery source import data from. # Required. BigQuery input source. Add the IAM permission &quot;BigQuery Data Viewer&quot; for [email protected] before using this feature otherwise an error is thrown.
865 &quot;dataSchema&quot;: &quot;A String&quot;, # The schema to use when parsing the data from the source. Supported values for product imports: * `product` (default): One JSON Product per line. Each product must have a valid Product.id. * `product_merchant_center`: See [Importing catalog data from Merchant Center](https://cloud.google.com/retail/recommendations-ai/docs/upload-catalog#mc). Supported values for user events imports: * `user_event` (default): One JSON UserEvent per line. * `user_event_ga360`: The schema is available here: https://support.google.com/analytics/answer/3437719. * `user_event_ga4`: The schema is available here: https://support.google.com/analytics/answer/7029846. Supported values for autocomplete imports: * `suggestions` (default): One JSON completion suggestion per line. * `denylist`: One JSON deny suggestion per line. * `allowlist`: One JSON allow suggestion per line.
866 &quot;datasetId&quot;: &quot;A String&quot;, # Required. The BigQuery data set to copy the data from with a length limit of 1,024 characters.
867 &quot;gcsStagingDir&quot;: &quot;A String&quot;, # Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters. Can be specified if one wants to have the BigQuery export to a specific Cloud Storage directory.
868 &quot;partitionDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # BigQuery time partitioned table&#x27;s _PARTITIONDATE in YYYY-MM-DD format.
869 &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
870 &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
871 &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
872 },
873 &quot;projectId&quot;: &quot;A String&quot;, # The project ID (can be project # or ID) that the BigQuery source is in with a length limit of 128 characters. If not specified, inherits the project ID from the parent request.
874 &quot;tableId&quot;: &quot;A String&quot;, # Required. The BigQuery table to copy the data from with a length limit of 1,024 characters.
875 },
876 },
877 }</pre>
878 </div>
879
880 <div class="method">
881 <code class="details" id="updateConversationalSearchCustomizationConfig">updateConversationalSearchCustomizationConfig(catalog, body=None, updateMask=None, x__xgafv=None)</code>
882 <pre>Updates the conversational search customization config for a given catalog.
883
884 Args:
885 catalog: string, Required. Resource name of the catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog} (required)
886 body: object, The request body.
887 The object takes the form of:
888
889 { # The public proto to represent the conversational search customization config. It will be converted to the internal proto in the backend.
890 &quot;catalog&quot;: &quot;A String&quot;, # Required. Resource name of the catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}
891 &quot;intentClassificationConfig&quot;: { # The public proto to represent the intent classification config. It will be converted to the internal proto in the backend. # Optional. The configs for intent classification.
892 &quot;blocklistKeywords&quot;: [ # Optional. A list of keywords that will be used to classify the query to the &quot;BLOCKLISTED&quot; intent type. The keywords are case insensitive.
893 &quot;A String&quot;,
894 ],
895 &quot;disabledIntentTypes&quot;: [ # Optional. A list of intent types that will be disabled for this customer. The intent types must match one of the predefined intent types defined at https://cloud.google.com/retail/docs/reference/rpc/google.cloud.retail.v2alpha#querytype
896 &quot;A String&quot;,
897 ],
898 &quot;example&quot;: [ # Optional. A list of examples for intent classification.
899 { # An example for intent classification.
900 &quot;classifiedPositive&quot;: True or False, # Required. Whether the example is classified positively.
901 &quot;intentType&quot;: &quot;A String&quot;, # Optional. The intent_type must match one of the predefined intent types defined at https://cloud.google.com/retail/docs/reference/rpc/google.cloud.retail.v2alpha#querytype
902 &quot;query&quot;: &quot;A String&quot;, # Required. Example query.
903 &quot;reason&quot;: &quot;A String&quot;, # Optional. The reason for the intent classification. This is used to explain the intent classification decision.
904 },
905 ],
906 &quot;inlineSource&quot;: { # Inline source for intent classifications. # Optional. Inline source for intent classifications.
907 &quot;inlineForceIntents&quot;: [ # Optional. A list of inline force intent classifications.
908 { # An inline force intent classification configuration.
909 &quot;intentType&quot;: &quot;A String&quot;, # Optional. The intent_type must match one of the predefined intent types defined at https://cloud.google.com/retail/docs/reference/rpc/google.cloud.retail.v2alpha#querytype
910 &quot;operation&quot;: &quot;A String&quot;, # Optional. The operation to perform for the query.
911 &quot;query&quot;: &quot;A String&quot;, # Optional. A example query.
912 },
913 ],
914 },
915 &quot;modelPreamble&quot;: &quot;A String&quot;, # Optional. Customers can use the preamble to specify any requirements for blocklisting intent classification. This preamble will be added to the blocklisting intent classification model prompt.
916 },
917 &quot;retailerDisplayName&quot;: &quot;A String&quot;, # Optional. The retailer&#x27;s display name that could be used in our LLM answers. Example - &quot;Google&quot;
918 }
919
920 updateMask: string, Optional. Indicates which fields in the provided ConversationalSearchCustomizationConfig to update. If not set or empty, all supported fields are updated.
921 x__xgafv: string, V1 error format.
922 Allowed values
923 1 - v1 error format
924 2 - v2 error format
925
926 Returns:
927 An object of the form:
928
929 { # The public proto to represent the conversational search customization config. It will be converted to the internal proto in the backend.
930 &quot;catalog&quot;: &quot;A String&quot;, # Required. Resource name of the catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}
931 &quot;intentClassificationConfig&quot;: { # The public proto to represent the intent classification config. It will be converted to the internal proto in the backend. # Optional. The configs for intent classification.
932 &quot;blocklistKeywords&quot;: [ # Optional. A list of keywords that will be used to classify the query to the &quot;BLOCKLISTED&quot; intent type. The keywords are case insensitive.
933 &quot;A String&quot;,
934 ],
935 &quot;disabledIntentTypes&quot;: [ # Optional. A list of intent types that will be disabled for this customer. The intent types must match one of the predefined intent types defined at https://cloud.google.com/retail/docs/reference/rpc/google.cloud.retail.v2alpha#querytype
936 &quot;A String&quot;,
937 ],
938 &quot;example&quot;: [ # Optional. A list of examples for intent classification.
939 { # An example for intent classification.
940 &quot;classifiedPositive&quot;: True or False, # Required. Whether the example is classified positively.
941 &quot;intentType&quot;: &quot;A String&quot;, # Optional. The intent_type must match one of the predefined intent types defined at https://cloud.google.com/retail/docs/reference/rpc/google.cloud.retail.v2alpha#querytype
942 &quot;query&quot;: &quot;A String&quot;, # Required. Example query.
943 &quot;reason&quot;: &quot;A String&quot;, # Optional. The reason for the intent classification. This is used to explain the intent classification decision.
944 },
945 ],
946 &quot;inlineSource&quot;: { # Inline source for intent classifications. # Optional. Inline source for intent classifications.
947 &quot;inlineForceIntents&quot;: [ # Optional. A list of inline force intent classifications.
948 { # An inline force intent classification configuration.
949 &quot;intentType&quot;: &quot;A String&quot;, # Optional. The intent_type must match one of the predefined intent types defined at https://cloud.google.com/retail/docs/reference/rpc/google.cloud.retail.v2alpha#querytype
950 &quot;operation&quot;: &quot;A String&quot;, # Optional. The operation to perform for the query.
951 &quot;query&quot;: &quot;A String&quot;, # Optional. A example query.
952 },
953 ],
954 },
955 &quot;modelPreamble&quot;: &quot;A String&quot;, # Optional. Customers can use the preamble to specify any requirements for blocklisting intent classification. This preamble will be added to the blocklisting intent classification model prompt.
956 },
957 &quot;retailerDisplayName&quot;: &quot;A String&quot;, # Optional. The retailer&#x27;s display name that could be used in our LLM answers. Example - &quot;Google&quot;
958 }</pre>
959 </div>
960
961 <div class="method">
962 <code class="details" id="updateGenerativeQuestion">updateGenerativeQuestion(catalog, body=None, updateMask=None, x__xgafv=None)</code>
963 <pre>Allows management of individual questions.
964
965 Args:
966 catalog: string, Required. Resource name of the catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog} (required)
967 body: object, The request body.
968 The object takes the form of:
969
970 { # Configuration for a single generated question.
971 &quot;allowedInConversation&quot;: True or False, # Optional. Whether the question is asked at serving time.
972 &quot;catalog&quot;: &quot;A String&quot;, # Required. Resource name of the catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}
973 &quot;exampleValues&quot;: [ # Output only. Values that can be used to answer the question.
974 &quot;A String&quot;,
975 ],
976 &quot;facet&quot;: &quot;A String&quot;, # Required. The facet to which the question is associated.
977 &quot;finalQuestion&quot;: &quot;A String&quot;, # Optional. The question that will be used at serving time. Question can have a max length of 300 bytes. When not populated, generated_question should be used.
978 &quot;frequency&quot;: 3.14, # Output only. The ratio of how often a question was asked.
979 &quot;generatedQuestion&quot;: &quot;A String&quot;, # Output only. The LLM generated question.
980 }
981
982 updateMask: string, Optional. Indicates which fields in the provided GenerativeQuestionConfig to update. The following are NOT supported: * GenerativeQuestionConfig.frequency If not set or empty, all supported fields are updated.
983 x__xgafv: string, V1 error format.
984 Allowed values
985 1 - v1 error format
986 2 - v2 error format
987
988 Returns:
989 An object of the form:
990
991 { # Configuration for a single generated question.
992 &quot;allowedInConversation&quot;: True or False, # Optional. Whether the question is asked at serving time.
993 &quot;catalog&quot;: &quot;A String&quot;, # Required. Resource name of the catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}
994 &quot;exampleValues&quot;: [ # Output only. Values that can be used to answer the question.
995 &quot;A String&quot;,
996 ],
997 &quot;facet&quot;: &quot;A String&quot;, # Required. The facet to which the question is associated.
998 &quot;finalQuestion&quot;: &quot;A String&quot;, # Optional. The question that will be used at serving time. Question can have a max length of 300 bytes. When not populated, generated_question should be used.
999 &quot;frequency&quot;: 3.14, # Output only. The ratio of how often a question was asked.
1000 &quot;generatedQuestion&quot;: &quot;A String&quot;, # Output only. The LLM generated question.
1001 }</pre>
1002 </div>
1003
1004 <div class="method">
1005 <code class="details" id="updateGenerativeQuestionFeature">updateGenerativeQuestionFeature(catalog, body=None, updateMask=None, x__xgafv=None)</code>
1006 <pre>Manages overal generative question feature state -- enables toggling feature on and off.
1007
1008 Args:
1009 catalog: string, Required. Resource name of the affected catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog} (required)
1010 body: object, The request body.
1011 The object takes the form of:
1012
1013 { # Configuration for overall generative question feature state.
1014 &quot;catalog&quot;: &quot;A String&quot;, # Required. Resource name of the affected catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}
1015 &quot;featureEnabled&quot;: True or False, # Optional. Determines whether questions will be used at serving time. Note: This feature cannot be enabled until initial data requirements are satisfied.
1016 &quot;minimumProducts&quot;: 42, # Optional. Minimum number of products in the response to trigger follow-up questions. Value must be 0 or positive.
1017 }
1018
1019 updateMask: string, Optional. Indicates which fields in the provided GenerativeQuestionsFeatureConfig to update. If not set or empty, all supported fields are updated.
1020 x__xgafv: string, V1 error format.
1021 Allowed values
1022 1 - v1 error format
1023 2 - v2 error format
1024
1025 Returns:
1026 An object of the form:
1027
1028 { # Configuration for overall generative question feature state.
1029 &quot;catalog&quot;: &quot;A String&quot;, # Required. Resource name of the affected catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}
1030 &quot;featureEnabled&quot;: True or False, # Optional. Determines whether questions will be used at serving time. Note: This feature cannot be enabled until initial data requirements are satisfied.
1031 &quot;minimumProducts&quot;: 42, # Optional. Minimum number of products in the response to trigger follow-up questions. Value must be 0 or positive.
1032 }</pre>
1033 </div>
1034
1035 </body></html>