(::Boolean) — 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.
#auto_learning=
defauto_learning=(value)->::Boolean
Parameter
value (::Boolean) — 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.
Returns
(::Boolean) — 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.
(::String) — 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.
#last_denylist_import_operation
deflast_denylist_import_operation()->::String
Returns
(::String) — 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.
#last_suggestions_import_operation
deflast_suggestions_import_operation()->::String
Returns
(::String) — 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.
#matching_order
defmatching_order()->::String
Returns
(::String) — 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'.
#matching_order=
defmatching_order=(value)->::String
Parameter
value (::String) — 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'.
Returns
(::String) — 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
defmax_suggestions()->::Integer
Returns
(::Integer) — 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.
#max_suggestions=
defmax_suggestions=(value)->::Integer
Parameter
value (::Integer) — 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.
Returns
(::Integer) — 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
defmin_prefix_length()->::Integer
Returns
(::Integer) — 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.
#min_prefix_length=
defmin_prefix_length=(value)->::Integer
Parameter
value (::Integer) — 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.
Returns
(::Integer) — 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.
#name
defname()->::String
Returns
(::String) — Required. Immutable. Fully qualified name
projects/*/locations/*/catalogs/*/completionConfig
#name=
defname=(value)->::String
Parameter
value (::String) — Required. Immutable. Fully qualified name
projects/*/locations/*/catalogs/*/completionConfig
Returns
(::String) — Required. Immutable. Fully qualified name
projects/*/locations/*/catalogs/*/completionConfig
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Retail V2 API - Class Google::Cloud::Retail::V2::CompletionConfig (v2.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.3.0 (latest)](/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-CompletionConfig)\n- [2.2.0](/ruby/docs/reference/google-cloud-retail-v2/2.2.0/Google-Cloud-Retail-V2-CompletionConfig)\n- [2.1.0](/ruby/docs/reference/google-cloud-retail-v2/2.1.0/Google-Cloud-Retail-V2-CompletionConfig)\n- [2.0.0](/ruby/docs/reference/google-cloud-retail-v2/2.0.0/Google-Cloud-Retail-V2-CompletionConfig)\n- [1.3.0](/ruby/docs/reference/google-cloud-retail-v2/1.3.0/Google-Cloud-Retail-V2-CompletionConfig)\n- [1.2.0](/ruby/docs/reference/google-cloud-retail-v2/1.2.0/Google-Cloud-Retail-V2-CompletionConfig)\n- [1.1.0](/ruby/docs/reference/google-cloud-retail-v2/1.1.0/Google-Cloud-Retail-V2-CompletionConfig)\n- [1.0.1](/ruby/docs/reference/google-cloud-retail-v2/1.0.1/Google-Cloud-Retail-V2-CompletionConfig)\n- [0.21.0](/ruby/docs/reference/google-cloud-retail-v2/0.21.0/Google-Cloud-Retail-V2-CompletionConfig)\n- [0.20.0](/ruby/docs/reference/google-cloud-retail-v2/0.20.0/Google-Cloud-Retail-V2-CompletionConfig)\n- [0.19.0](/ruby/docs/reference/google-cloud-retail-v2/0.19.0/Google-Cloud-Retail-V2-CompletionConfig)\n- [0.18.2](/ruby/docs/reference/google-cloud-retail-v2/0.18.2/Google-Cloud-Retail-V2-CompletionConfig)\n- [0.17.0](/ruby/docs/reference/google-cloud-retail-v2/0.17.0/Google-Cloud-Retail-V2-CompletionConfig)\n- [0.16.1](/ruby/docs/reference/google-cloud-retail-v2/0.16.1/Google-Cloud-Retail-V2-CompletionConfig)\n- [0.15.0](/ruby/docs/reference/google-cloud-retail-v2/0.15.0/Google-Cloud-Retail-V2-CompletionConfig)\n- [0.14.0](/ruby/docs/reference/google-cloud-retail-v2/0.14.0/Google-Cloud-Retail-V2-CompletionConfig)\n- [0.13.0](/ruby/docs/reference/google-cloud-retail-v2/0.13.0/Google-Cloud-Retail-V2-CompletionConfig)\n- [0.12.0](/ruby/docs/reference/google-cloud-retail-v2/0.12.0/Google-Cloud-Retail-V2-CompletionConfig)\n- [0.11.0](/ruby/docs/reference/google-cloud-retail-v2/0.11.0/Google-Cloud-Retail-V2-CompletionConfig)\n- [0.10.0](/ruby/docs/reference/google-cloud-retail-v2/0.10.0/Google-Cloud-Retail-V2-CompletionConfig)\n- [0.9.0](/ruby/docs/reference/google-cloud-retail-v2/0.9.0/Google-Cloud-Retail-V2-CompletionConfig)\n- [0.8.0](/ruby/docs/reference/google-cloud-retail-v2/0.8.0/Google-Cloud-Retail-V2-CompletionConfig)\n- [0.7.0](/ruby/docs/reference/google-cloud-retail-v2/0.7.0/Google-Cloud-Retail-V2-CompletionConfig)\n- [0.6.4](/ruby/docs/reference/google-cloud-retail-v2/0.6.4/Google-Cloud-Retail-V2-CompletionConfig) \nReference documentation and code samples for the Retail V2 API class Google::Cloud::Retail::V2::CompletionConfig.\n\nCatalog level autocomplete config for customers to customize autocomplete\nfeature's settings. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #allowlist_input_config\n\n def allowlist_input_config() -\u003e ::Google::Cloud::Retail::V2::CompletionDataInputConfig\n\n**Returns**\n\n- ([::Google::Cloud::Retail::V2::CompletionDataInputConfig](./Google-Cloud-Retail-V2-CompletionDataInputConfig)) --- Output only. The source data for the latest import of the autocomplete allowlist phrases.\n\n### #auto_learning\n\n def auto_learning() -\u003e ::Boolean\n\n**Returns**\n\n- (::Boolean) --- 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](/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-CompleteQueryRequest \"Google::Cloud::Retail::V2::CompleteQueryRequest (class)\").\n\n### #auto_learning=\n\n def auto_learning=(value) -\u003e ::Boolean\n\n**Parameter**\n\n- **value** (::Boolean) --- 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](/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-CompleteQueryRequest \"Google::Cloud::Retail::V2::CompleteQueryRequest (class)\"). \n**Returns**\n\n- (::Boolean) --- 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](/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-CompleteQueryRequest \"Google::Cloud::Retail::V2::CompleteQueryRequest (class)\").\n\n### #denylist_input_config\n\n def denylist_input_config() -\u003e ::Google::Cloud::Retail::V2::CompletionDataInputConfig\n\n**Returns**\n\n- ([::Google::Cloud::Retail::V2::CompletionDataInputConfig](./Google-Cloud-Retail-V2-CompletionDataInputConfig)) --- Output only. The source data for the latest import of the autocomplete denylist phrases.\n\n### #last_allowlist_import_operation\n\n def last_allowlist_import_operation() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Output only. Name of the LRO corresponding to the latest allowlist import.\n\n Can use GetOperation API to\n retrieve the latest state of the Long Running Operation.\n\n### #last_denylist_import_operation\n\n def last_denylist_import_operation() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Output only. Name of the LRO corresponding to the latest denylist import.\n\n Can use GetOperation API to\n retrieve the latest state of the Long Running Operation.\n\n### #last_suggestions_import_operation\n\n def last_suggestions_import_operation() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Output only. Name of the LRO corresponding to the latest suggestion terms list import.\n\n Can use GetOperation API\n method to retrieve the latest state of the Long Running Operation.\n\n### #matching_order\n\n def matching_order() -\u003e ::String\n\n**Returns**\n\n- (::String) --- 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:\n\n - 'out-of-order'\n - 'exact-prefix'\n\n Default value: 'exact-prefix'.\n\n### #matching_order=\n\n def matching_order=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- 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:\n\n\n - 'out-of-order'\n - 'exact-prefix'\n\nDefault value: 'exact-prefix'. \n**Returns**\n\n- (::String) --- 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:\n\n - 'out-of-order'\n - 'exact-prefix'\n\n Default value: 'exact-prefix'.\n\n### #max_suggestions\n\n def max_suggestions() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- 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.\n\n Value range is 1 to 20.\n\n### #max_suggestions=\n\n def max_suggestions=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- 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.\n\n\nValue range is 1 to 20. \n**Returns**\n\n- (::Integer) --- 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.\n\n Value range is 1 to 20.\n\n### #min_prefix_length\n\n def min_prefix_length() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- 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.\n\n Value range is 1 to 20.\n\n### #min_prefix_length=\n\n def min_prefix_length=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- 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.\n\n\nValue range is 1 to 20. \n**Returns**\n\n- (::Integer) --- 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.\n\n Value range is 1 to 20.\n\n### #name\n\n def name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. Immutable. Fully qualified name `projects/*/locations/*/catalogs/*/completionConfig`\n\n### #name=\n\n def name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. Immutable. Fully qualified name `projects/*/locations/*/catalogs/*/completionConfig` \n**Returns**\n\n- (::String) --- Required. Immutable. Fully qualified name `projects/*/locations/*/catalogs/*/completionConfig`\n\n### #suggestions_input_config\n\n def suggestions_input_config() -\u003e ::Google::Cloud::Retail::V2::CompletionDataInputConfig\n\n**Returns**\n\n- ([::Google::Cloud::Retail::V2::CompletionDataInputConfig](./Google-Cloud-Retail-V2-CompletionDataInputConfig)) --- Output only. The source data for the latest import of the autocomplete suggestion phrases."]]