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 \ BannedPhraseMethods
static::name
| Parameter | |
|---|---|
| Name | Description |
value |
mixed
|
static::value
| Parameter | |
|---|---|
| Name | Description |
name |
mixed
|
Constants
BANNED_PHRASE_MATCH_TYPE_UNSPECIFIED
Value: 0Defaults to SIMPLE_STRING_MATCH.
Generated from protobuf enum BANNED_PHRASE_MATCH_TYPE_UNSPECIFIED = 0;
SIMPLE_STRING_MATCH
Value: 1The 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: 2Banned 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;