public static final class CheckGroundingSpec.Builder extends com.google.protobuf.GeneratedMessage.Builder<CheckGroundingSpec.Builder> implements CheckGroundingSpecOrBuilder
Specification for the grounding check.Protobuf type
google.cloud.discoveryengine.v1.CheckGroundingSpec| Modifier and Type | Method and Description |
|---|---|
CheckGroundingSpec |
build() |
CheckGroundingSpec |
buildPartial() |
CheckGroundingSpec.Builder |
clear() |
CheckGroundingSpec.Builder |
clearCitationThreshold()
The threshold (in [0,1]) used for determining whether a fact must be
cited for a claim in the answer candidate.
|
CheckGroundingSpec.Builder |
clearEnableClaimLevelScore()
The control flag that enables claim-level grounding score in the response.
|
double |
getCitationThreshold()
The threshold (in [0,1]) used for determining whether a fact must be
cited for a claim in the answer candidate.
|
CheckGroundingSpec |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getEnableClaimLevelScore()
The control flag that enables claim-level grounding score in the response.
|
boolean |
hasCitationThreshold()
The threshold (in [0,1]) used for determining whether a fact must be
cited for a claim in the answer candidate.
|
boolean |
hasEnableClaimLevelScore()
The control flag that enables claim-level grounding score in the response.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
CheckGroundingSpec.Builder |
mergeFrom(CheckGroundingSpec other) |
CheckGroundingSpec.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
CheckGroundingSpec.Builder |
mergeFrom(com.google.protobuf.Message other) |
CheckGroundingSpec.Builder |
setCitationThreshold(double value)
The threshold (in [0,1]) used for determining whether a fact must be
cited for a claim in the answer candidate.
|
CheckGroundingSpec.Builder |
setEnableClaimLevelScore(boolean value)
The control flag that enables claim-level grounding score in the response.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CheckGroundingSpec.Builder>public CheckGroundingSpec.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<CheckGroundingSpec.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CheckGroundingSpec.Builder>public CheckGroundingSpec getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic CheckGroundingSpec build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic CheckGroundingSpec buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic CheckGroundingSpec.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CheckGroundingSpec.Builder>public CheckGroundingSpec.Builder mergeFrom(CheckGroundingSpec other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<CheckGroundingSpec.Builder>public CheckGroundingSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CheckGroundingSpec.Builder>IOExceptionpublic boolean hasCitationThreshold()
The threshold (in [0,1]) used for determining whether a fact must be cited for a claim in the answer candidate. Choosing a higher threshold will lead to fewer but very strong citations, while choosing a lower threshold may lead to more but somewhat weaker citations. If unset, the threshold will default to 0.6.
optional double citation_threshold = 1;hasCitationThreshold in interface CheckGroundingSpecOrBuilderpublic double getCitationThreshold()
The threshold (in [0,1]) used for determining whether a fact must be cited for a claim in the answer candidate. Choosing a higher threshold will lead to fewer but very strong citations, while choosing a lower threshold may lead to more but somewhat weaker citations. If unset, the threshold will default to 0.6.
optional double citation_threshold = 1;getCitationThreshold in interface CheckGroundingSpecOrBuilderpublic CheckGroundingSpec.Builder setCitationThreshold(double value)
The threshold (in [0,1]) used for determining whether a fact must be cited for a claim in the answer candidate. Choosing a higher threshold will lead to fewer but very strong citations, while choosing a lower threshold may lead to more but somewhat weaker citations. If unset, the threshold will default to 0.6.
optional double citation_threshold = 1;value - The citationThreshold to set.public CheckGroundingSpec.Builder clearCitationThreshold()
The threshold (in [0,1]) used for determining whether a fact must be cited for a claim in the answer candidate. Choosing a higher threshold will lead to fewer but very strong citations, while choosing a lower threshold may lead to more but somewhat weaker citations. If unset, the threshold will default to 0.6.
optional double citation_threshold = 1;public boolean hasEnableClaimLevelScore()
The control flag that enables claim-level grounding score in the response.
optional bool enable_claim_level_score = 4;hasEnableClaimLevelScore in interface CheckGroundingSpecOrBuilderpublic boolean getEnableClaimLevelScore()
The control flag that enables claim-level grounding score in the response.
optional bool enable_claim_level_score = 4;getEnableClaimLevelScore in interface CheckGroundingSpecOrBuilderpublic CheckGroundingSpec.Builder setEnableClaimLevelScore(boolean value)
The control flag that enables claim-level grounding score in the response.
optional bool enable_claim_level_score = 4;value - The enableClaimLevelScore to set.public CheckGroundingSpec.Builder clearEnableClaimLevelScore()
The control flag that enables claim-level grounding score in the response.
optional bool enable_claim_level_score = 4;Copyright © 2026 Google LLC. All rights reserved.