Google Cloud Discovery Engine V1 Client - Class BannedPhraseMatchType (1.17.0)

Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class BannedPhraseMatchType.

The matching method for the banned phrase.

Protobuf type google.cloud.discoveryengine.v1.Assistant.CustomerPolicy.BannedPhrase.BannedPhraseMatchType

Namespace

Google \ Cloud \ DiscoveryEngine \ V1 \ Assistant \ CustomerPolicy \ BannedPhrase

Methods

static::name

Parameter
Name Description
value mixed

static::value

Parameter
Name Description
name mixed

Constants

BANNED_PHRASE_MATCH_TYPE_UNSPECIFIED

Value: 0

Defaults to SIMPLE_STRING_MATCH.

Generated from protobuf enum BANNED_PHRASE_MATCH_TYPE_UNSPECIFIED = 0;

SIMPLE_STRING_MATCH

Value: 1

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

Generated from protobuf enum SIMPLE_STRING_MATCH = 1;

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.

Generated from protobuf enum WORD_BOUNDARY_STRING_MATCH = 2;