Interface Assistant.CustomerPolicyOrBuilder (0.90.0)

public static interface Assistant.CustomerPolicyOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getBannedPhrases(int index)

public abstract Assistant.CustomerPolicy.BannedPhrase getBannedPhrases(int index)

Optional. List of banned phrases.

repeated .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Assistant.CustomerPolicy.BannedPhrase

getBannedPhrasesCount()

public abstract int getBannedPhrasesCount()

Optional. List of banned phrases.

repeated .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getBannedPhrasesList()

public abstract List<Assistant.CustomerPolicy.BannedPhrase> getBannedPhrasesList()

Optional. List of banned phrases.

repeated .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<BannedPhrase>

getBannedPhrasesOrBuilder(int index)

public abstract Assistant.CustomerPolicy.BannedPhraseOrBuilder getBannedPhrasesOrBuilder(int index)

Optional. List of banned phrases.

repeated .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Assistant.CustomerPolicy.BannedPhraseOrBuilder

getBannedPhrasesOrBuilderList()

public abstract List<? extends Assistant.CustomerPolicy.BannedPhraseOrBuilder> getBannedPhrasesOrBuilderList()

Optional. List of banned phrases.

repeated .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhraseOrBuilder>

getModelArmorConfig()

public abstract Assistant.CustomerPolicy.ModelArmorConfig getModelArmorConfig()

Optional. Model Armor configuration to be used for sanitizing user prompts and assistant responses.

.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig model_armor_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Assistant.CustomerPolicy.ModelArmorConfig

The modelArmorConfig.

getModelArmorConfigOrBuilder()

public abstract Assistant.CustomerPolicy.ModelArmorConfigOrBuilder getModelArmorConfigOrBuilder()

Optional. Model Armor configuration to be used for sanitizing user prompts and assistant responses.

.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig model_armor_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Assistant.CustomerPolicy.ModelArmorConfigOrBuilder

hasModelArmorConfig()

public abstract boolean hasModelArmorConfig()

Optional. Model Armor configuration to be used for sanitizing user prompts and assistant responses.

.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig model_armor_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the modelArmorConfig field is set.