Interface SafetySettingsOrBuilder (0.92.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.

getDefaultRaiSettings()

public abstract SafetySettings.RaiSettings getDefaultRaiSettings()

Optional. Immutable. Default RAI settings to be annotated on the agent, so that users will be able to restore their RAI configurations to the default settings. Read-only field for the API proto only.

.google.cloud.dialogflow.cx.v3beta1.SafetySettings.RaiSettings default_rai_settings = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
SafetySettings.RaiSettings

The defaultRaiSettings.

getDefaultRaiSettingsOrBuilder()

public abstract SafetySettings.RaiSettingsOrBuilder getDefaultRaiSettingsOrBuilder()

Optional. Immutable. Default RAI settings to be annotated on the agent, so that users will be able to restore their RAI configurations to the default settings. Read-only field for the API proto only.

.google.cloud.dialogflow.cx.v3beta1.SafetySettings.RaiSettings default_rai_settings = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
SafetySettings.RaiSettingsOrBuilder

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

getRaiSettings()

public abstract SafetySettings.RaiSettings getRaiSettings()

Optional. Settings for Responsible AI checks.

.google.cloud.dialogflow.cx.v3beta1.SafetySettings.RaiSettings rai_settings = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SafetySettings.RaiSettings

The raiSettings.

getRaiSettingsOrBuilder()

public abstract SafetySettings.RaiSettingsOrBuilder getRaiSettingsOrBuilder()

Optional. Settings for Responsible AI checks.

.google.cloud.dialogflow.cx.v3beta1.SafetySettings.RaiSettings rai_settings = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SafetySettings.RaiSettingsOrBuilder

hasDefaultRaiSettings()

public abstract boolean hasDefaultRaiSettings()

Optional. Immutable. Default RAI settings to be annotated on the agent, so that users will be able to restore their RAI configurations to the default settings. Read-only field for the API proto only.

.google.cloud.dialogflow.cx.v3beta1.SafetySettings.RaiSettings default_rai_settings = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
boolean

Whether the defaultRaiSettings field is set.

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.

hasRaiSettings()

public abstract boolean hasRaiSettings()

Optional. Settings for Responsible AI checks.

.google.cloud.dialogflow.cx.v3beta1.SafetySettings.RaiSettings rai_settings = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the raiSettings field is set.