Send feedback
Class AnswerQueryRequest.GroundingSpec.Builder (0.51.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.51.0 keyboard_arrow_down
public static final class AnswerQueryRequest . GroundingSpec . Builder extends GeneratedMessageV3 . Builder<AnswerQueryRequest . GroundingSpec . Builder > implements AnswerQueryRequest . GroundingSpecOrBuilder
Grounding specification.
Protobuf type google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec
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 AnswerQueryRequest . GroundingSpec . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public AnswerQueryRequest . GroundingSpec build ()
buildPartial()
public AnswerQueryRequest . GroundingSpec buildPartial ()
clear()
public AnswerQueryRequest . GroundingSpec . Builder clear ()
Overrides
clearField(Descriptors.FieldDescriptor field)
public AnswerQueryRequest . GroundingSpec . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearFilteringLevel()
public AnswerQueryRequest . GroundingSpec . Builder clearFilteringLevel ()
Optional. Specifies whether to enable the filtering based on grounding
score and at what level.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel filtering_level = 3 [(.google.api.field_behavior) = OPTIONAL];
clearIncludeGroundingSupports()
public AnswerQueryRequest . GroundingSpec . Builder clearIncludeGroundingSupports ()
Optional. Specifies whether to include grounding_supports in the answer.
The default value is false
.
When this field is set to true
, returned answer will have
grounding_score
and will contain GroundingSupports for each claim.
bool include_grounding_supports = 2 [(.google.api.field_behavior) = OPTIONAL];
clearOneof(Descriptors.OneofDescriptor oneof)
public AnswerQueryRequest . GroundingSpec . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clone()
public AnswerQueryRequest . GroundingSpec . Builder clone ()
Overrides
getDefaultInstanceForType()
public AnswerQueryRequest . GroundingSpec getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getFilteringLevel()
public AnswerQueryRequest . GroundingSpec . FilteringLevel getFilteringLevel ()
Optional. Specifies whether to enable the filtering based on grounding
score and at what level.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel filtering_level = 3 [(.google.api.field_behavior) = OPTIONAL];
getFilteringLevelValue()
public int getFilteringLevelValue ()
Optional. Specifies whether to enable the filtering based on grounding
score and at what level.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel filtering_level = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
int
The enum numeric value on the wire for filteringLevel.
getIncludeGroundingSupports()
public boolean getIncludeGroundingSupports ()
Optional. Specifies whether to include grounding_supports in the answer.
The default value is false
.
When this field is set to true
, returned answer will have
grounding_score
and will contain GroundingSupports for each claim.
bool include_grounding_supports = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
boolean
The includeGroundingSupports.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(AnswerQueryRequest.GroundingSpec other)
public AnswerQueryRequest . GroundingSpec . Builder mergeFrom ( AnswerQueryRequest . GroundingSpec other )
public AnswerQueryRequest . GroundingSpec . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public AnswerQueryRequest . GroundingSpec . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AnswerQueryRequest . GroundingSpec . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public AnswerQueryRequest . GroundingSpec . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setFilteringLevel(AnswerQueryRequest.GroundingSpec.FilteringLevel value)
public AnswerQueryRequest . GroundingSpec . Builder setFilteringLevel ( AnswerQueryRequest . GroundingSpec . FilteringLevel value )
Optional. Specifies whether to enable the filtering based on grounding
score and at what level.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel filtering_level = 3 [(.google.api.field_behavior) = OPTIONAL];
setFilteringLevelValue(int value)
public AnswerQueryRequest . GroundingSpec . Builder setFilteringLevelValue ( int value )
Optional. Specifies whether to enable the filtering based on grounding
score and at what level.
.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel filtering_level = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name
Description
value
int
The enum numeric value on the wire for filteringLevel to set.
setIncludeGroundingSupports(boolean value)
public AnswerQueryRequest . GroundingSpec . Builder setIncludeGroundingSupports ( boolean value )
Optional. Specifies whether to include grounding_supports in the answer.
The default value is false
.
When this field is set to true
, returned answer will have
grounding_score
and will contain GroundingSupports for each claim.
bool include_grounding_supports = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name
Description
value
boolean
The includeGroundingSupports to set.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AnswerQueryRequest . GroundingSpec . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AnswerQueryRequest . GroundingSpec . 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-01-28 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-01-28 UTC."],[],[]]