Discovery Engine V1 API - Module Google::Cloud::DiscoveryEngine::V1::Assistant::CustomerPolicy::BannedPhrase::BannedPhraseMatchType (v2.14.0)

Reference documentation and code samples for the Discovery Engine V1 API module Google::Cloud::DiscoveryEngine::V1::Assistant::CustomerPolicy::BannedPhrase::BannedPhraseMatchType.

The matching method for the banned phrase.

Constants

BANNED_PHRASE_MATCH_TYPE_UNSPECIFIED

value: 0
Defaults to SIMPLE_STRING_MATCH.

SIMPLE_STRING_MATCH

value: 1
The banned phrase matches if it is found anywhere in the text as an exact substring.

WORD_BOUNDARY_STRING_MATCH

value: 2
Banned phrase only matches if the pattern found in the text is surrounded by word delimiters. The phrase itself may still contain word delimiters.