Interface SafetySettings.PhraseOrBuilder (0.41.0)

public static interface SafetySettings.PhraseOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getLanguageCode()

public abstract String getLanguageCode()

Required. Language code of the phrase.

string language_code = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The languageCode.

getLanguageCodeBytes()

public abstract ByteString getLanguageCodeBytes()

Required. Language code of the phrase.

string language_code = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for languageCode.

getText()

public abstract String getText()

Required. Text input which can be used for prompt or banned phrases.

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

Returns
Type Description
String

The text.

getTextBytes()

public abstract ByteString getTextBytes()

Required. Text input which can be used for prompt or banned phrases.

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

Returns
Type Description
ByteString

The bytes for text.