- 0.49.0 (latest)
- 0.48.0
- 0.47.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.0
public static interface AnswerQueryRequest.AnswerGenerationSpecOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
getAnswerLanguageCode()
public abstract String getAnswerLanguageCode()
Language code for Answer. Use language tags defined by BCP47. Note: This is an experimental feature.
string answer_language_code = 4;
Returns | |
---|---|
Type | Description |
String |
The answerLanguageCode. |
getAnswerLanguageCodeBytes()
public abstract ByteString getAnswerLanguageCodeBytes()
Language code for Answer. Use language tags defined by BCP47. Note: This is an experimental feature.
string answer_language_code = 4;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for answerLanguageCode. |
getIgnoreAdversarialQuery()
public abstract boolean getIgnoreAdversarialQuery()
Specifies whether to filter out adversarial queries. The default value
is false
.
Google employs search-query classification to detect adversarial
queries. No answer is returned if the search query is classified as an
adversarial query. For example, a user might ask a question regarding
negative comments about the company or submit a query designed to
generate unsafe, policy-violating output. If this field is set to
true
, we skip generating answers for adversarial queries and return
fallback messages instead.
bool ignore_adversarial_query = 5;
Returns | |
---|---|
Type | Description |
boolean |
The ignoreAdversarialQuery. |
getIgnoreLowRelevantContent()
public abstract boolean getIgnoreLowRelevantContent()
Specifies whether to filter out queries that have low relevance.
If this field is set to false
, all search results are used regardless
of relevance to generate answers. If set to true
or unset, the behavior
will be determined automatically by the service.
optional bool ignore_low_relevant_content = 7;
Returns | |
---|---|
Type | Description |
boolean |
The ignoreLowRelevantContent. |
getIgnoreNonAnswerSeekingQuery()
public abstract boolean getIgnoreNonAnswerSeekingQuery()
Specifies whether to filter out queries that are not answer-seeking.
The default value is false
.
Google employs search-query classification to detect answer-seeking
queries. 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 = 6;
Returns | |
---|---|
Type | Description |
boolean |
The ignoreNonAnswerSeekingQuery. |
getIncludeCitations()
public abstract boolean getIncludeCitations()
Specifies whether to include citation metadata in the answer. The default
value is false
.
bool include_citations = 3;
Returns | |
---|---|
Type | Description |
boolean |
The includeCitations. |
getModelSpec()
public abstract AnswerQueryRequest.AnswerGenerationSpec.ModelSpec getModelSpec()
Answer generation model specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec model_spec = 1;
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.AnswerGenerationSpec.ModelSpec |
The modelSpec. |
getModelSpecOrBuilder()
public abstract AnswerQueryRequest.AnswerGenerationSpec.ModelSpecOrBuilder getModelSpecOrBuilder()
Answer generation model specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec model_spec = 1;
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.AnswerGenerationSpec.ModelSpecOrBuilder |
getPromptSpec()
public abstract AnswerQueryRequest.AnswerGenerationSpec.PromptSpec getPromptSpec()
Answer generation prompt specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec prompt_spec = 2;
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.AnswerGenerationSpec.PromptSpec |
The promptSpec. |
getPromptSpecOrBuilder()
public abstract AnswerQueryRequest.AnswerGenerationSpec.PromptSpecOrBuilder getPromptSpecOrBuilder()
Answer generation prompt specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec prompt_spec = 2;
Returns | |
---|---|
Type | Description |
AnswerQueryRequest.AnswerGenerationSpec.PromptSpecOrBuilder |
hasIgnoreLowRelevantContent()
public abstract boolean hasIgnoreLowRelevantContent()
Specifies whether to filter out queries that have low relevance.
If this field is set to false
, all search results are used regardless
of relevance to generate answers. If set to true
or unset, the behavior
will be determined automatically by the service.
optional bool ignore_low_relevant_content = 7;
Returns | |
---|---|
Type | Description |
boolean |
Whether the ignoreLowRelevantContent field is set. |
hasModelSpec()
public abstract boolean hasModelSpec()
Answer generation model specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec model_spec = 1;
Returns | |
---|---|
Type | Description |
boolean |
Whether the modelSpec field is set. |
hasPromptSpec()
public abstract boolean hasPromptSpec()
Answer generation prompt specification.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec prompt_spec = 2;
Returns | |
---|---|
Type | Description |
boolean |
Whether the promptSpec field is set. |