Interface Assistant.CustomerPolicy.BannedPhraseOrBuilder (0.90.0)

public static interface Assistant.CustomerPolicy.BannedPhraseOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getIgnoreDiacritics()

public abstract boolean getIgnoreDiacritics()

Optional. If true, diacritical marks (e.g., accents, umlauts) are ignored when matching banned phrases. For example, "cafe" would match "café".

bool ignore_diacritics = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The ignoreDiacritics.

getMatchType()

public abstract Assistant.CustomerPolicy.BannedPhrase.BannedPhraseMatchType getMatchType()

Optional. Match type for the banned phrase.

.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase.BannedPhraseMatchType match_type = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Assistant.CustomerPolicy.BannedPhrase.BannedPhraseMatchType

The matchType.

getMatchTypeValue()

public abstract int getMatchTypeValue()

Optional. Match type for the banned phrase.

.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase.BannedPhraseMatchType match_type = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for matchType.

getPhrase()

public abstract String getPhrase()

Required. The raw string content to be banned.

string phrase = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The phrase.

getPhraseBytes()

public abstract ByteString getPhraseBytes()

Required. The raw string content to be banned.

string phrase = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for phrase.