public static final class CheckGroundingResponse.Claim.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CheckGroundingResponse.Claim.Builder> implements CheckGroundingResponse.ClaimOrBuilder
Text and citation info for a claim in the answer candidate.Protobuf type
google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim| Modifier and Type | Method and Description |
|---|---|
CheckGroundingResponse.Claim.Builder |
addAllCitationIndices(Iterable<? extends Integer> values)
A list of indices (into 'cited_chunks') specifying the citations
associated with the claim.
|
CheckGroundingResponse.Claim.Builder |
addCitationIndices(int value)
A list of indices (into 'cited_chunks') specifying the citations
associated with the claim.
|
CheckGroundingResponse.Claim.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CheckGroundingResponse.Claim |
build() |
CheckGroundingResponse.Claim |
buildPartial() |
CheckGroundingResponse.Claim.Builder |
clear() |
CheckGroundingResponse.Claim.Builder |
clearCitationIndices()
A list of indices (into 'cited_chunks') specifying the citations
associated with the claim.
|
CheckGroundingResponse.Claim.Builder |
clearClaimText()
Text for the claim in the answer candidate.
|
CheckGroundingResponse.Claim.Builder |
clearEndPos()
Position indicating the end of the claim in the answer candidate,
exclusive.
|
CheckGroundingResponse.Claim.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
CheckGroundingResponse.Claim.Builder |
clearGroundingCheckRequired()
Indicates that this claim required grounding check.
|
CheckGroundingResponse.Claim.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
CheckGroundingResponse.Claim.Builder |
clearStartPos()
Position indicating the start of the claim in the answer candidate,
measured in bytes.
|
CheckGroundingResponse.Claim.Builder |
clone() |
int |
getCitationIndices(int index)
A list of indices (into 'cited_chunks') specifying the citations
associated with the claim.
|
int |
getCitationIndicesCount()
A list of indices (into 'cited_chunks') specifying the citations
associated with the claim.
|
List<Integer> |
getCitationIndicesList()
A list of indices (into 'cited_chunks') specifying the citations
associated with the claim.
|
String |
getClaimText()
Text for the claim in the answer candidate.
|
com.google.protobuf.ByteString |
getClaimTextBytes()
Text for the claim in the answer candidate.
|
CheckGroundingResponse.Claim |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getEndPos()
Position indicating the end of the claim in the answer candidate,
exclusive.
|
boolean |
getGroundingCheckRequired()
Indicates that this claim required grounding check.
|
int |
getStartPos()
Position indicating the start of the claim in the answer candidate,
measured in bytes.
|
boolean |
hasEndPos()
Position indicating the end of the claim in the answer candidate,
exclusive.
|
boolean |
hasGroundingCheckRequired()
Indicates that this claim required grounding check.
|
boolean |
hasStartPos()
Position indicating the start of the claim in the answer candidate,
measured in bytes.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
CheckGroundingResponse.Claim.Builder |
mergeFrom(CheckGroundingResponse.Claim other) |
CheckGroundingResponse.Claim.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
CheckGroundingResponse.Claim.Builder |
mergeFrom(com.google.protobuf.Message other) |
CheckGroundingResponse.Claim.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
CheckGroundingResponse.Claim.Builder |
setCitationIndices(int index,
int value)
A list of indices (into 'cited_chunks') specifying the citations
associated with the claim.
|
CheckGroundingResponse.Claim.Builder |
setClaimText(String value)
Text for the claim in the answer candidate.
|
CheckGroundingResponse.Claim.Builder |
setClaimTextBytes(com.google.protobuf.ByteString value)
Text for the claim in the answer candidate.
|
CheckGroundingResponse.Claim.Builder |
setEndPos(int value)
Position indicating the end of the claim in the answer candidate,
exclusive.
|
CheckGroundingResponse.Claim.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CheckGroundingResponse.Claim.Builder |
setGroundingCheckRequired(boolean value)
Indicates that this claim required grounding check.
|
CheckGroundingResponse.Claim.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
CheckGroundingResponse.Claim.Builder |
setStartPos(int value)
Position indicating the start of the claim in the answer candidate,
measured in bytes.
|
CheckGroundingResponse.Claim.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CheckGroundingResponse.Claim.Builder>public CheckGroundingResponse.Claim.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<CheckGroundingResponse.Claim.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.GeneratedMessageV3.Builder<CheckGroundingResponse.Claim.Builder>public CheckGroundingResponse.Claim getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic CheckGroundingResponse.Claim build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic CheckGroundingResponse.Claim buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic CheckGroundingResponse.Claim.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<CheckGroundingResponse.Claim.Builder>public CheckGroundingResponse.Claim.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<CheckGroundingResponse.Claim.Builder>public CheckGroundingResponse.Claim.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<CheckGroundingResponse.Claim.Builder>public CheckGroundingResponse.Claim.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CheckGroundingResponse.Claim.Builder>public CheckGroundingResponse.Claim.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CheckGroundingResponse.Claim.Builder>public CheckGroundingResponse.Claim.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CheckGroundingResponse.Claim.Builder>public CheckGroundingResponse.Claim.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CheckGroundingResponse.Claim.Builder>public CheckGroundingResponse.Claim.Builder mergeFrom(CheckGroundingResponse.Claim other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CheckGroundingResponse.Claim.Builder>public CheckGroundingResponse.Claim.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<CheckGroundingResponse.Claim.Builder>IOExceptionpublic boolean hasStartPos()
Position indicating the start of the claim in the answer candidate, measured in bytes.
optional int32 start_pos = 1;hasStartPos in interface CheckGroundingResponse.ClaimOrBuilderpublic int getStartPos()
Position indicating the start of the claim in the answer candidate, measured in bytes.
optional int32 start_pos = 1;getStartPos in interface CheckGroundingResponse.ClaimOrBuilderpublic CheckGroundingResponse.Claim.Builder setStartPos(int value)
Position indicating the start of the claim in the answer candidate, measured in bytes.
optional int32 start_pos = 1;value - The startPos to set.public CheckGroundingResponse.Claim.Builder clearStartPos()
Position indicating the start of the claim in the answer candidate, measured in bytes.
optional int32 start_pos = 1;public boolean hasEndPos()
Position indicating the end of the claim in the answer candidate, exclusive.
optional int32 end_pos = 2;hasEndPos in interface CheckGroundingResponse.ClaimOrBuilderpublic int getEndPos()
Position indicating the end of the claim in the answer candidate, exclusive.
optional int32 end_pos = 2;getEndPos in interface CheckGroundingResponse.ClaimOrBuilderpublic CheckGroundingResponse.Claim.Builder setEndPos(int value)
Position indicating the end of the claim in the answer candidate, exclusive.
optional int32 end_pos = 2;value - The endPos to set.public CheckGroundingResponse.Claim.Builder clearEndPos()
Position indicating the end of the claim in the answer candidate, exclusive.
optional int32 end_pos = 2;public String getClaimText()
Text for the claim in the answer candidate. Always provided regardless of whether citations or anti-citations are found.
string claim_text = 3;getClaimText in interface CheckGroundingResponse.ClaimOrBuilderpublic com.google.protobuf.ByteString getClaimTextBytes()
Text for the claim in the answer candidate. Always provided regardless of whether citations or anti-citations are found.
string claim_text = 3;getClaimTextBytes in interface CheckGroundingResponse.ClaimOrBuilderpublic CheckGroundingResponse.Claim.Builder setClaimText(String value)
Text for the claim in the answer candidate. Always provided regardless of whether citations or anti-citations are found.
string claim_text = 3;value - The claimText to set.public CheckGroundingResponse.Claim.Builder clearClaimText()
Text for the claim in the answer candidate. Always provided regardless of whether citations or anti-citations are found.
string claim_text = 3;public CheckGroundingResponse.Claim.Builder setClaimTextBytes(com.google.protobuf.ByteString value)
Text for the claim in the answer candidate. Always provided regardless of whether citations or anti-citations are found.
string claim_text = 3;value - The bytes for claimText to set.public List<Integer> getCitationIndicesList()
A list of indices (into 'cited_chunks') specifying the citations associated with the claim. For instance [1,3,4] means that cited_chunks[1], cited_chunks[3], cited_chunks[4] are the facts cited supporting for the claim. A citation to a fact indicates that the claim is supported by the fact.
repeated int32 citation_indices = 4;getCitationIndicesList in interface CheckGroundingResponse.ClaimOrBuilderpublic int getCitationIndicesCount()
A list of indices (into 'cited_chunks') specifying the citations associated with the claim. For instance [1,3,4] means that cited_chunks[1], cited_chunks[3], cited_chunks[4] are the facts cited supporting for the claim. A citation to a fact indicates that the claim is supported by the fact.
repeated int32 citation_indices = 4;getCitationIndicesCount in interface CheckGroundingResponse.ClaimOrBuilderpublic int getCitationIndices(int index)
A list of indices (into 'cited_chunks') specifying the citations associated with the claim. For instance [1,3,4] means that cited_chunks[1], cited_chunks[3], cited_chunks[4] are the facts cited supporting for the claim. A citation to a fact indicates that the claim is supported by the fact.
repeated int32 citation_indices = 4;getCitationIndices in interface CheckGroundingResponse.ClaimOrBuilderindex - The index of the element to return.public CheckGroundingResponse.Claim.Builder setCitationIndices(int index, int value)
A list of indices (into 'cited_chunks') specifying the citations associated with the claim. For instance [1,3,4] means that cited_chunks[1], cited_chunks[3], cited_chunks[4] are the facts cited supporting for the claim. A citation to a fact indicates that the claim is supported by the fact.
repeated int32 citation_indices = 4;index - The index to set the value at.value - The citationIndices to set.public CheckGroundingResponse.Claim.Builder addCitationIndices(int value)
A list of indices (into 'cited_chunks') specifying the citations associated with the claim. For instance [1,3,4] means that cited_chunks[1], cited_chunks[3], cited_chunks[4] are the facts cited supporting for the claim. A citation to a fact indicates that the claim is supported by the fact.
repeated int32 citation_indices = 4;value - The citationIndices to add.public CheckGroundingResponse.Claim.Builder addAllCitationIndices(Iterable<? extends Integer> values)
A list of indices (into 'cited_chunks') specifying the citations associated with the claim. For instance [1,3,4] means that cited_chunks[1], cited_chunks[3], cited_chunks[4] are the facts cited supporting for the claim. A citation to a fact indicates that the claim is supported by the fact.
repeated int32 citation_indices = 4;values - The citationIndices to add.public CheckGroundingResponse.Claim.Builder clearCitationIndices()
A list of indices (into 'cited_chunks') specifying the citations associated with the claim. For instance [1,3,4] means that cited_chunks[1], cited_chunks[3], cited_chunks[4] are the facts cited supporting for the claim. A citation to a fact indicates that the claim is supported by the fact.
repeated int32 citation_indices = 4;public boolean hasGroundingCheckRequired()
Indicates that this claim required grounding check. When the system decided this claim doesn't require attribution/grounding check, this field will be set to false. In that case, no grounding check was done for the claim and therefore [citation_indices][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.citation_indices], [anti_citation_indices][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.anti_citation_indices], and [score][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.score] should not be returned.
optional bool grounding_check_required = 6;hasGroundingCheckRequired in interface CheckGroundingResponse.ClaimOrBuilderpublic boolean getGroundingCheckRequired()
Indicates that this claim required grounding check. When the system decided this claim doesn't require attribution/grounding check, this field will be set to false. In that case, no grounding check was done for the claim and therefore [citation_indices][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.citation_indices], [anti_citation_indices][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.anti_citation_indices], and [score][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.score] should not be returned.
optional bool grounding_check_required = 6;getGroundingCheckRequired in interface CheckGroundingResponse.ClaimOrBuilderpublic CheckGroundingResponse.Claim.Builder setGroundingCheckRequired(boolean value)
Indicates that this claim required grounding check. When the system decided this claim doesn't require attribution/grounding check, this field will be set to false. In that case, no grounding check was done for the claim and therefore [citation_indices][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.citation_indices], [anti_citation_indices][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.anti_citation_indices], and [score][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.score] should not be returned.
optional bool grounding_check_required = 6;value - The groundingCheckRequired to set.public CheckGroundingResponse.Claim.Builder clearGroundingCheckRequired()
Indicates that this claim required grounding check. When the system decided this claim doesn't require attribution/grounding check, this field will be set to false. In that case, no grounding check was done for the claim and therefore [citation_indices][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.citation_indices], [anti_citation_indices][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.anti_citation_indices], and [score][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.score] should not be returned.
optional bool grounding_check_required = 6;public final CheckGroundingResponse.Claim.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CheckGroundingResponse.Claim.Builder>public final CheckGroundingResponse.Claim.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CheckGroundingResponse.Claim.Builder>Copyright © 2025 Google LLC. All rights reserved.