Class SuggestionDenyListEntry (0.11.11)

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

Suggestion deny list entry identifying the phrase to block from suggestions and the applied operation for the phrase.

Attributes

NameDescription
block_phrase str
Required. Phrase to block from suggestions served. Can be maximum 125 characters.
match_operator google.cloud.discoveryengine_v1alpha.types.SuggestionDenyListEntry.MatchOperator
Required. The match operator to apply for this phrase. Whether to block the exact phrase, or block any suggestions containing this phrase.

Classes

MatchOperator

MatchOperator(value)

Operator for matching with the generated suggestions.

Values: MATCH_OPERATOR_UNSPECIFIED (0): Default value. Should not be used EXACT_MATCH (1): If the suggestion is an exact match to the block_phrase, then block it. CONTAINS (2): If the suggestion contains the block_phrase, then block it.