# Class CompletionConfig (2.11.0)

2.11.0 (latest) 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.25.0 1.24.0 1.23.1 1.22.0 1.21.2 1.20.1 1.19.1 1.18.0 1.17.0 1.16.3 1.15.1 1.14.1 1.13.0 1.12.0 1.11.0 1.10.2 1.9.0 1.8.1 1.7.0 1.6.1 1.5.0 1.4.1 1.3.0 1.2.1 1.1.0 1.0.2 0.4.2 0.3.1 0.2.0 0.1.0

    CompletionConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Catalog level autocomplete config for customers to customize
autocomplete feature's settings.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` Required. Immutable. Fully qualified name `projects/*/locations/*/catalogs/*/completionConfig` |
| `matching_order` | `str` Specifies the matching order for autocomplete suggestions, e.g., a query consisting of 'sh' with 'out-of-order' specified would suggest "women's shoes", whereas a query of 'red s' with 'exact-prefix' specified would suggest "red shoes". Currently supported values: - 'out-of-order' - 'exact-prefix' Default value: 'exact-prefix'. |
| `max_suggestions` | `int` 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. |
| `min_prefix_length` | `int` 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. |
| `auto_learning` | `bool` 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. |
| `suggestions_input_config` | `https://docs.cloud.google.com/python/docs/reference/retail/latest/google.cloud.retail_v2beta.types.CompletionDataInputConfig` Output only. The source data for the latest import of the autocomplete suggestion phrases. |
| `last_suggestions_import_operation` | `str` Output only. Name of the LRO corresponding to the latest suggestion terms list import. Can use `GetOperation][google.longrunning.Operations.GetOperation]` API method to retrieve the latest state of the Long Running Operation. |
| `denylist_input_config` | `https://docs.cloud.google.com/python/docs/reference/retail/latest/google.cloud.retail_v2beta.types.CompletionDataInputConfig` Output only. The source data for the latest import of the autocomplete denylist phrases. |
| `last_denylist_import_operation` | `str` Output only. Name of the LRO corresponding to the latest denylist import. Can use `GetOperation][google.longrunning.Operations.GetOperation]` API to retrieve the latest state of the Long Running Operation. |
| `allowlist_input_config` | `https://docs.cloud.google.com/python/docs/reference/retail/latest/google.cloud.retail_v2beta.types.CompletionDataInputConfig` Output only. The source data for the latest import of the autocomplete allowlist phrases. |
| `last_allowlist_import_operation` | `str` Output only. Name of the LRO corresponding to the latest allowlist import. Can use `GetOperation][google.longrunning.Operations.GetOperation]` API to retrieve the latest state of the Long Running Operation. |