public static final class GenerationOptions.Builder extends GeneratedMessage.Builder<GenerationOptions.Builder> implements GenerationOptionsOrBuilderOptions to control query generation, execution, and response format.
Protobuf type google.cloud.geminidataanalytics.v1beta.GenerationOptions
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > GenerationOptions.BuilderImplements
GenerationOptionsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public GenerationOptions build()| Returns | |
|---|---|
| Type | Description |
GenerationOptions |
|
buildPartial()
public GenerationOptions buildPartial()| Returns | |
|---|---|
| Type | Description |
GenerationOptions |
|
clear()
public GenerationOptions.Builder clear()| Returns | |
|---|---|
| Type | Description |
GenerationOptions.Builder |
|
clearGenerateDisambiguationQuestion()
public GenerationOptions.Builder clearGenerateDisambiguationQuestion()Optional. If true (default to false), the service may return a clarifying_question if the input query is ambiguous.
bool generate_disambiguation_question = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GenerationOptions.Builder |
This builder for chaining. |
clearGenerateExplanation()
public GenerationOptions.Builder clearGenerateExplanation()Optional. If true, an explanation of the generated query will be returned in the response.
bool generate_explanation = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GenerationOptions.Builder |
This builder for chaining. |
clearGenerateNaturalLanguageAnswer()
public GenerationOptions.Builder clearGenerateNaturalLanguageAnswer()Optional. If true, a natural language answer based on the query execution result will be generated and returned in the response.
bool generate_natural_language_answer = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GenerationOptions.Builder |
This builder for chaining. |
clearGenerateQueryResult()
public GenerationOptions.Builder clearGenerateQueryResult()Optional. If true, the generated query will be executed, and the result data will be returned in the response.
bool generate_query_result = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GenerationOptions.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public GenerationOptions getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
GenerationOptions |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getGenerateDisambiguationQuestion()
public boolean getGenerateDisambiguationQuestion()Optional. If true (default to false), the service may return a clarifying_question if the input query is ambiguous.
bool generate_disambiguation_question = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The generateDisambiguationQuestion. |
getGenerateExplanation()
public boolean getGenerateExplanation()Optional. If true, an explanation of the generated query will be returned in the response.
bool generate_explanation = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The generateExplanation. |
getGenerateNaturalLanguageAnswer()
public boolean getGenerateNaturalLanguageAnswer()Optional. If true, a natural language answer based on the query execution result will be generated and returned in the response.
bool generate_natural_language_answer = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The generateNaturalLanguageAnswer. |
getGenerateQueryResult()
public boolean getGenerateQueryResult()Optional. If true, the generated query will be executed, and the result data will be returned in the response.
bool generate_query_result = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The generateQueryResult. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(GenerationOptions other)
public GenerationOptions.Builder mergeFrom(GenerationOptions other)| Parameter | |
|---|---|
| Name | Description |
other |
GenerationOptions |
| Returns | |
|---|---|
| Type | Description |
GenerationOptions.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GenerationOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
GenerationOptions.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public GenerationOptions.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
GenerationOptions.Builder |
|
setGenerateDisambiguationQuestion(boolean value)
public GenerationOptions.Builder setGenerateDisambiguationQuestion(boolean value)Optional. If true (default to false), the service may return a clarifying_question if the input query is ambiguous.
bool generate_disambiguation_question = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe generateDisambiguationQuestion to set. |
| Returns | |
|---|---|
| Type | Description |
GenerationOptions.Builder |
This builder for chaining. |
setGenerateExplanation(boolean value)
public GenerationOptions.Builder setGenerateExplanation(boolean value)Optional. If true, an explanation of the generated query will be returned in the response.
bool generate_explanation = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe generateExplanation to set. |
| Returns | |
|---|---|
| Type | Description |
GenerationOptions.Builder |
This builder for chaining. |
setGenerateNaturalLanguageAnswer(boolean value)
public GenerationOptions.Builder setGenerateNaturalLanguageAnswer(boolean value)Optional. If true, a natural language answer based on the query execution result will be generated and returned in the response.
bool generate_natural_language_answer = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe generateNaturalLanguageAnswer to set. |
| Returns | |
|---|---|
| Type | Description |
GenerationOptions.Builder |
This builder for chaining. |
setGenerateQueryResult(boolean value)
public GenerationOptions.Builder setGenerateQueryResult(boolean value)Optional. If true, the generated query will be executed, and the result data will be returned in the response.
bool generate_query_result = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe generateQueryResult to set. |
| Returns | |
|---|---|
| Type | Description |
GenerationOptions.Builder |
This builder for chaining. |