Discovery Engine V1BETA API - Module Google::Cloud::DiscoveryEngine::V1beta::Assistant::CustomerPolicy::BannedPhrase::BannedPhraseMatchType (v0.28.0)

Reference documentation and code samples for the Discovery Engine V1BETA API module Google::Cloud::DiscoveryEngine::V1beta::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.