Interface WidgetConfig.UiSettings.GenerativeAnswerConfigOrBuilder (0.99.0)

public static interface WidgetConfig.UiSettings.GenerativeAnswerConfigOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getDisableRelatedQuestions()

public abstract boolean getDisableRelatedQuestions()

Whether generated answer contains suggested related questions.

bool disable_related_questions = 8;

Returns
Type Description
boolean

The disableRelatedQuestions.

getIgnoreAdversarialQuery()

public abstract boolean getIgnoreAdversarialQuery()

Optional. Specifies whether to filter out queries that are adversarial.

bool ignore_adversarial_query = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The ignoreAdversarialQuery.

getIgnoreLowRelevantContent()

public abstract boolean getIgnoreLowRelevantContent()

Optional. Specifies whether to filter out queries that are not relevant to the content.

bool ignore_low_relevant_content = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The ignoreLowRelevantContent.

getIgnoreNonAnswerSeekingQuery()

public abstract boolean getIgnoreNonAnswerSeekingQuery()

Optional. Specifies whether to filter out queries that are not answer-seeking. The default value is false.

No answer is returned if the search query is classified as a non-answer seeking query. If this field is set to true, we skip generating answers for non-answer seeking queries and return fallback messages instead.

bool ignore_non_answer_seeking_query = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The ignoreNonAnswerSeekingQuery.

getImageSource()

public abstract WidgetConfig.UiSettings.GenerativeAnswerConfig.ImageSource getImageSource()

Optional. Source of image returned in the answer.

.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig.ImageSource image_source = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
WidgetConfig.UiSettings.GenerativeAnswerConfig.ImageSource

The imageSource.

getImageSourceValue()

public abstract int getImageSourceValue()

Optional. Source of image returned in the answer.

.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.GenerativeAnswerConfig.ImageSource image_source = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for imageSource.

getLanguageCode()

public abstract String getLanguageCode()

Language code for Summary. Use language tags defined by BCP47. Note: This is an experimental feature.

string language_code = 7;

Returns
Type Description
String

The languageCode.

getLanguageCodeBytes()

public abstract ByteString getLanguageCodeBytes()

Language code for Summary. Use language tags defined by BCP47. Note: This is an experimental feature.

string language_code = 7;

Returns
Type Description
ByteString

The bytes for languageCode.

getMaxRephraseSteps()

public abstract int getMaxRephraseSteps()

Max rephrase steps. The max number is 5 steps. If not set or set to < 1, it will be set to 1 by default.

int32 max_rephrase_steps = 6;

Returns
Type Description
int

The maxRephraseSteps.

getModelPromptPreamble()

public abstract String getModelPromptPreamble()

Text at the beginning of the prompt that instructs the model that generates the answer.

string model_prompt_preamble = 5;

Returns
Type Description
String

The modelPromptPreamble.

getModelPromptPreambleBytes()

public abstract ByteString getModelPromptPreambleBytes()

Text at the beginning of the prompt that instructs the model that generates the answer.

string model_prompt_preamble = 5;

Returns
Type Description
ByteString

The bytes for modelPromptPreamble.

getModelVersion()

public abstract String getModelVersion()

The model version used to generate the answer.

string model_version = 4;

Returns
Type Description
String

The modelVersion.

getModelVersionBytes()

public abstract ByteString getModelVersionBytes()

The model version used to generate the answer.

string model_version = 4;

Returns
Type Description
ByteString

The bytes for modelVersion.

getResultCount()

public abstract int getResultCount()

The number of top results to generate the answer from. Up to 10.

int32 result_count = 3;

Returns
Type Description
int

The resultCount.