Retail v2 API - Class CompletionConfig (2.4.0)

public sealed class CompletionConfig : IMessage<CompletionConfig>, IEquatable<CompletionConfig>, IDeepCloneable<CompletionConfig>, IBufferMessage, IMessage

Reference documentation and code samples for the Retail v2 API class CompletionConfig.

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

Inheritance

Object > CompletionConfig

Namespace

Google.Cloud.Retail.V2

Assembly

Google.Cloud.Retail.V2.dll

Constructors

CompletionConfig()

public CompletionConfig()

CompletionConfig(CompletionConfig)

public CompletionConfig(CompletionConfig other)
Parameter
NameDescription
otherCompletionConfig

Properties

AllowlistInputConfig

public CompletionDataInputConfig AllowlistInputConfig { get; set; }

Output only. The source data for the latest import of the autocomplete allowlist phrases.

Property Value
TypeDescription
CompletionDataInputConfig

AutoLearning

public bool AutoLearning { get; set; }

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][google.cloud.retail.v2.CompleteQueryRequest].

Property Value
TypeDescription
Boolean

CompletionConfigName

public CompletionConfigName CompletionConfigName { get; set; }

CompletionConfigName-typed view over the Name resource name property.

Property Value
TypeDescription
CompletionConfigName

DenylistInputConfig

public CompletionDataInputConfig DenylistInputConfig { get; set; }

Output only. The source data for the latest import of the autocomplete denylist phrases.

Property Value
TypeDescription
CompletionDataInputConfig

LastAllowlistImportOperation

public string LastAllowlistImportOperation { get; set; }

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.

Property Value
TypeDescription
String

LastDenylistImportOperation

public string LastDenylistImportOperation { get; set; }

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.

Property Value
TypeDescription
String

LastSuggestionsImportOperation

public string LastSuggestionsImportOperation { get; set; }

Output only. Name of the LRO corresponding to the latest suggestion terms list import.

Can use [GetOperation][google.longrunning.Operations.GetOperation] API to retrieve the latest state of the Long Running Operation.

Property Value
TypeDescription
String

MatchingOrder

public string MatchingOrder { get; set; }

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'.

Property Value
TypeDescription
String

MaxSuggestions

public int MaxSuggestions { get; set; }

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.

Property Value
TypeDescription
Int32

MinPrefixLength

public int MinPrefixLength { get; set; }

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.

Property Value
TypeDescription
Int32

Name

public string Name { get; set; }

Required. Immutable. Fully qualified name projects/*/locations/*/catalogs/*/completionConfig

Property Value
TypeDescription
String

SuggestionsInputConfig

public CompletionDataInputConfig SuggestionsInputConfig { get; set; }

Output only. The source data for the latest import of the autocomplete suggestion phrases.

Property Value
TypeDescription
CompletionDataInputConfig