Send feedback
Class GenerationOptions.Builder (0.9.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
public static final class GenerationOptions . Builder extends GeneratedMessageV3 . Builder<GenerationOptions . Builder > implements GenerationOptionsOrBuilder
Options to control query generation, execution, and response format.
Protobuf type google.cloud.geminidataanalytics.v1beta.GenerationOptions
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GenerationOptions . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public GenerationOptions build ()
buildPartial()
public GenerationOptions buildPartial ()
clear()
public GenerationOptions . Builder clear ()
Overrides
clearField(Descriptors.FieldDescriptor field)
public GenerationOptions . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
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];
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];
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];
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public GenerationOptions . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clone()
public GenerationOptions . Builder clone ()
Overrides
getDefaultInstanceForType()
public GenerationOptions getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
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 GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(GenerationOptions other)
public GenerationOptions . Builder mergeFrom ( GenerationOptions other )
public GenerationOptions . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public GenerationOptions . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GenerationOptions . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public GenerationOptions . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
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
boolean The generateDisambiguationQuestion to set.
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
boolean The generateExplanation to set.
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
boolean The generateNaturalLanguageAnswer to set.
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
boolean The generateQueryResult to set.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GenerationOptions . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final GenerationOptions . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-18 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-12-18 UTC."],[],[]]