Interface SafetySettingsOrBuilder (0.89.0)

public interface SafetySettingsOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getBannedPhrases(int index)

public abstract SafetySettings.Phrase getBannedPhrases(int index)

Banned phrases for generated text.

repeated .google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase banned_phrases = 1;

Parameter
Name Description
index int
Returns
Type Description
SafetySettings.Phrase

getBannedPhrasesCount()

public abstract int getBannedPhrasesCount()

Banned phrases for generated text.

repeated .google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase banned_phrases = 1;

Returns
Type Description
int

getBannedPhrasesList()

public abstract List<SafetySettings.Phrase> getBannedPhrasesList()

Banned phrases for generated text.

repeated .google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase banned_phrases = 1;

Returns
Type Description
List<Phrase>

getBannedPhrasesOrBuilder(int index)

public abstract SafetySettings.PhraseOrBuilder getBannedPhrasesOrBuilder(int index)

Banned phrases for generated text.

repeated .google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase banned_phrases = 1;

Parameter
Name Description
index int
Returns
Type Description
SafetySettings.PhraseOrBuilder

getBannedPhrasesOrBuilderList()

public abstract List<? extends SafetySettings.PhraseOrBuilder> getBannedPhrasesOrBuilderList()

Banned phrases for generated text.

repeated .google.cloud.dialogflow.cx.v3beta1.SafetySettings.Phrase banned_phrases = 1;

Returns
Type Description
List<? extends com.google.cloud.dialogflow.cx.v3beta1.SafetySettings.PhraseOrBuilder>

getDefaultBannedPhraseMatchStrategy()

public abstract SafetySettings.PhraseMatchStrategy getDefaultBannedPhraseMatchStrategy()

Optional. Default phrase match strategy for banned phrases.

.google.cloud.dialogflow.cx.v3beta1.SafetySettings.PhraseMatchStrategy default_banned_phrase_match_strategy = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SafetySettings.PhraseMatchStrategy

The defaultBannedPhraseMatchStrategy.

getDefaultBannedPhraseMatchStrategyValue()

public abstract int getDefaultBannedPhraseMatchStrategyValue()

Optional. Default phrase match strategy for banned phrases.

.google.cloud.dialogflow.cx.v3beta1.SafetySettings.PhraseMatchStrategy default_banned_phrase_match_strategy = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for defaultBannedPhraseMatchStrategy.

getPromptSecuritySettings()

public abstract SafetySettings.PromptSecuritySettings getPromptSecuritySettings()

Optional. Settings for prompt security checks.

.google.cloud.dialogflow.cx.v3beta1.SafetySettings.PromptSecuritySettings prompt_security_settings = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SafetySettings.PromptSecuritySettings

The promptSecuritySettings.

getPromptSecuritySettingsOrBuilder()

public abstract SafetySettings.PromptSecuritySettingsOrBuilder getPromptSecuritySettingsOrBuilder()

Optional. Settings for prompt security checks.

.google.cloud.dialogflow.cx.v3beta1.SafetySettings.PromptSecuritySettings prompt_security_settings = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SafetySettings.PromptSecuritySettingsOrBuilder

hasPromptSecuritySettings()

public abstract boolean hasPromptSecuritySettings()

Optional. Settings for prompt security checks.

.google.cloud.dialogflow.cx.v3beta1.SafetySettings.PromptSecuritySettings prompt_security_settings = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the promptSecuritySettings field is set.