Interface AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResultOrBuilder (0.90.0)

public static interface AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResultOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getBannedPhrases(int index)

public abstract String getBannedPhrases(int index)

The banned phrases that were found in the query or the answer.

repeated string banned_phrases = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The bannedPhrases at the given index.

getBannedPhrasesBytes(int index)

public abstract ByteString getBannedPhrasesBytes(int index)

The banned phrases that were found in the query or the answer.

repeated string banned_phrases = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the bannedPhrases at the given index.

getBannedPhrasesCount()

public abstract int getBannedPhrasesCount()

The banned phrases that were found in the query or the answer.

repeated string banned_phrases = 1;

Returns
Type Description
int

The count of bannedPhrases.

getBannedPhrasesList()

public abstract List<String> getBannedPhrasesList()

The banned phrases that were found in the query or the answer.

repeated string banned_phrases = 1;

Returns
Type Description
List<String>

A list containing the bannedPhrases.