public static final class Answer.GroundingSupport extends com.google.protobuf.GeneratedMessage implements Answer.GroundingSupportOrBuilder
Grounding support for a claim in `answer_text`.Protobuf type
google.cloud.discoveryengine.v1.Answer.GroundingSupport| Modifier and Type | Class and Description |
|---|---|
static class |
Answer.GroundingSupport.Builder
Grounding support for a claim in `answer_text`.
|
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
END_INDEX_FIELD_NUMBER |
static int |
GROUNDING_CHECK_REQUIRED_FIELD_NUMBER |
static int |
GROUNDING_SCORE_FIELD_NUMBER |
static int |
SOURCES_FIELD_NUMBER |
static int |
START_INDEX_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static Answer.GroundingSupport |
getDefaultInstance() |
Answer.GroundingSupport |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
long |
getEndIndex()
Required.
|
boolean |
getGroundingCheckRequired()
Indicates that this claim required grounding check.
|
double |
getGroundingScore()
A score in the range of [0, 1] describing how grounded is a specific
claim by the references.
|
com.google.protobuf.Parser<Answer.GroundingSupport> |
getParserForType() |
int |
getSerializedSize() |
Answer.CitationSource |
getSources(int index)
Optional.
|
int |
getSourcesCount()
Optional.
|
List<Answer.CitationSource> |
getSourcesList()
Optional.
|
Answer.CitationSourceOrBuilder |
getSourcesOrBuilder(int index)
Optional.
|
List<? extends Answer.CitationSourceOrBuilder> |
getSourcesOrBuilderList()
Optional.
|
long |
getStartIndex()
Required.
|
boolean |
hasGroundingCheckRequired()
Indicates that this claim required grounding check.
|
boolean |
hasGroundingScore()
A score in the range of [0, 1] describing how grounded is a specific
claim by the references.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Answer.GroundingSupport.Builder |
newBuilder() |
static Answer.GroundingSupport.Builder |
newBuilder(Answer.GroundingSupport prototype) |
Answer.GroundingSupport.Builder |
newBuilderForType() |
protected Answer.GroundingSupport.Builder |
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) |
static Answer.GroundingSupport |
parseDelimitedFrom(InputStream input) |
static Answer.GroundingSupport |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Answer.GroundingSupport |
parseFrom(byte[] data) |
static Answer.GroundingSupport |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Answer.GroundingSupport |
parseFrom(ByteBuffer data) |
static Answer.GroundingSupport |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Answer.GroundingSupport |
parseFrom(com.google.protobuf.ByteString data) |
static Answer.GroundingSupport |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Answer.GroundingSupport |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Answer.GroundingSupport |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Answer.GroundingSupport |
parseFrom(InputStream input) |
static Answer.GroundingSupport |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Answer.GroundingSupport> |
parser() |
Answer.GroundingSupport.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashFields, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int START_INDEX_FIELD_NUMBER
public static final int END_INDEX_FIELD_NUMBER
public static final int GROUNDING_SCORE_FIELD_NUMBER
public static final int GROUNDING_CHECK_REQUIRED_FIELD_NUMBER
public static final int SOURCES_FIELD_NUMBER
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic long getStartIndex()
Required. Index indicates the start of the claim, measured in bytes (UTF-8 unicode).
int64 start_index = 1 [(.google.api.field_behavior) = REQUIRED];getStartIndex in interface Answer.GroundingSupportOrBuilderpublic long getEndIndex()
Required. End of the claim, exclusive.
int64 end_index = 2 [(.google.api.field_behavior) = REQUIRED];getEndIndex in interface Answer.GroundingSupportOrBuilderpublic boolean hasGroundingScore()
A score in the range of [0, 1] describing how grounded is a specific claim by the references. Higher value means that the claim is better supported by the reference chunks.
optional double grounding_score = 3;hasGroundingScore in interface Answer.GroundingSupportOrBuilderpublic double getGroundingScore()
A score in the range of [0, 1] describing how grounded is a specific claim by the references. Higher value means that the claim is better supported by the reference chunks.
optional double grounding_score = 3;getGroundingScore in interface Answer.GroundingSupportOrBuilderpublic boolean hasGroundingCheckRequired()
Indicates that this claim required grounding check. When the system decided this claim didn't require attribution/grounding check, this field is set to false. In that case, no grounding check was done for the claim and therefore `grounding_score`, `sources` is not returned.
optional bool grounding_check_required = 4;hasGroundingCheckRequired in interface Answer.GroundingSupportOrBuilderpublic boolean getGroundingCheckRequired()
Indicates that this claim required grounding check. When the system decided this claim didn't require attribution/grounding check, this field is set to false. In that case, no grounding check was done for the claim and therefore `grounding_score`, `sources` is not returned.
optional bool grounding_check_required = 4;getGroundingCheckRequired in interface Answer.GroundingSupportOrBuilderpublic List<Answer.CitationSource> getSourcesList()
Optional. Citation sources for the claim.
repeated .google.cloud.discoveryengine.v1.Answer.CitationSource sources = 5 [(.google.api.field_behavior) = OPTIONAL];
getSourcesList in interface Answer.GroundingSupportOrBuilderpublic List<? extends Answer.CitationSourceOrBuilder> getSourcesOrBuilderList()
Optional. Citation sources for the claim.
repeated .google.cloud.discoveryengine.v1.Answer.CitationSource sources = 5 [(.google.api.field_behavior) = OPTIONAL];
getSourcesOrBuilderList in interface Answer.GroundingSupportOrBuilderpublic int getSourcesCount()
Optional. Citation sources for the claim.
repeated .google.cloud.discoveryengine.v1.Answer.CitationSource sources = 5 [(.google.api.field_behavior) = OPTIONAL];
getSourcesCount in interface Answer.GroundingSupportOrBuilderpublic Answer.CitationSource getSources(int index)
Optional. Citation sources for the claim.
repeated .google.cloud.discoveryengine.v1.Answer.CitationSource sources = 5 [(.google.api.field_behavior) = OPTIONAL];
getSources in interface Answer.GroundingSupportOrBuilderpublic Answer.CitationSourceOrBuilder getSourcesOrBuilder(int index)
Optional. Citation sources for the claim.
repeated .google.cloud.discoveryengine.v1.Answer.CitationSource sources = 5 [(.google.api.field_behavior) = OPTIONAL];
getSourcesOrBuilder in interface Answer.GroundingSupportOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageIOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessagepublic boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Answer.GroundingSupport parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Answer.GroundingSupport parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Answer.GroundingSupport parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Answer.GroundingSupport parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Answer.GroundingSupport parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Answer.GroundingSupport parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Answer.GroundingSupport parseFrom(InputStream input) throws IOException
IOExceptionpublic static Answer.GroundingSupport parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Answer.GroundingSupport parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Answer.GroundingSupport parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Answer.GroundingSupport parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Answer.GroundingSupport parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Answer.GroundingSupport.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Answer.GroundingSupport.Builder newBuilder()
public static Answer.GroundingSupport.Builder newBuilder(Answer.GroundingSupport prototype)
public Answer.GroundingSupport.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Answer.GroundingSupport.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.AbstractMessagepublic static Answer.GroundingSupport getDefaultInstance()
public static com.google.protobuf.Parser<Answer.GroundingSupport> parser()
public com.google.protobuf.Parser<Answer.GroundingSupport> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic Answer.GroundingSupport getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2026 Google LLC. All rights reserved.