public final class CheckGroundingResponse extends com.google.protobuf.GeneratedMessageV3 implements CheckGroundingResponseOrBuilder
Response message for the [GroundedGenerationService.CheckGrounding][google.cloud.discoveryengine.v1beta.GroundedGenerationService.CheckGrounding] method.Protobuf type
google.cloud.discoveryengine.v1beta.CheckGroundingResponse| Modifier and Type | Class and Description |
|---|---|
static class |
CheckGroundingResponse.Builder
Response message for the
[GroundedGenerationService.CheckGrounding][google.cloud.discoveryengine.v1beta.GroundedGenerationService.CheckGrounding]
method.
|
static class |
CheckGroundingResponse.CheckGroundingFactChunk
Fact chunk for grounding check.
|
static interface |
CheckGroundingResponse.CheckGroundingFactChunkOrBuilder |
static class |
CheckGroundingResponse.Claim
Text and citation info for a claim in the answer candidate.
|
static interface |
CheckGroundingResponse.ClaimOrBuilder |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CITED_CHUNKS_FIELD_NUMBER |
static int |
CITED_FACTS_FIELD_NUMBER |
static int |
CLAIMS_FIELD_NUMBER |
static int |
SUPPORT_SCORE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
FactChunk |
getCitedChunks(int index)
List of facts cited across all claims in the answer candidate.
|
int |
getCitedChunksCount()
List of facts cited across all claims in the answer candidate.
|
List<FactChunk> |
getCitedChunksList()
List of facts cited across all claims in the answer candidate.
|
FactChunkOrBuilder |
getCitedChunksOrBuilder(int index)
List of facts cited across all claims in the answer candidate.
|
List<? extends FactChunkOrBuilder> |
getCitedChunksOrBuilderList()
List of facts cited across all claims in the answer candidate.
|
CheckGroundingResponse.CheckGroundingFactChunk |
getCitedFacts(int index)
List of facts cited across all claims in the answer candidate.
|
int |
getCitedFactsCount()
List of facts cited across all claims in the answer candidate.
|
List<CheckGroundingResponse.CheckGroundingFactChunk> |
getCitedFactsList()
List of facts cited across all claims in the answer candidate.
|
CheckGroundingResponse.CheckGroundingFactChunkOrBuilder |
getCitedFactsOrBuilder(int index)
List of facts cited across all claims in the answer candidate.
|
List<? extends CheckGroundingResponse.CheckGroundingFactChunkOrBuilder> |
getCitedFactsOrBuilderList()
List of facts cited across all claims in the answer candidate.
|
CheckGroundingResponse.Claim |
getClaims(int index)
Claim texts and citation info across all claims in the answer candidate.
|
int |
getClaimsCount()
Claim texts and citation info across all claims in the answer candidate.
|
List<CheckGroundingResponse.Claim> |
getClaimsList()
Claim texts and citation info across all claims in the answer candidate.
|
CheckGroundingResponse.ClaimOrBuilder |
getClaimsOrBuilder(int index)
Claim texts and citation info across all claims in the answer candidate.
|
List<? extends CheckGroundingResponse.ClaimOrBuilder> |
getClaimsOrBuilderList()
Claim texts and citation info across all claims in the answer candidate.
|
static CheckGroundingResponse |
getDefaultInstance() |
CheckGroundingResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<CheckGroundingResponse> |
getParserForType() |
int |
getSerializedSize() |
float |
getSupportScore()
The support score for the input answer candidate.
|
int |
hashCode() |
boolean |
hasSupportScore()
The support score for the input answer candidate.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static CheckGroundingResponse.Builder |
newBuilder() |
static CheckGroundingResponse.Builder |
newBuilder(CheckGroundingResponse prototype) |
CheckGroundingResponse.Builder |
newBuilderForType() |
protected CheckGroundingResponse.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static CheckGroundingResponse |
parseDelimitedFrom(InputStream input) |
static CheckGroundingResponse |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CheckGroundingResponse |
parseFrom(byte[] data) |
static CheckGroundingResponse |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CheckGroundingResponse |
parseFrom(ByteBuffer data) |
static CheckGroundingResponse |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CheckGroundingResponse |
parseFrom(com.google.protobuf.ByteString data) |
static CheckGroundingResponse |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CheckGroundingResponse |
parseFrom(com.google.protobuf.CodedInputStream input) |
static CheckGroundingResponse |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CheckGroundingResponse |
parseFrom(InputStream input) |
static CheckGroundingResponse |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<CheckGroundingResponse> |
parser() |
CheckGroundingResponse.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, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int SUPPORT_SCORE_FIELD_NUMBER
public static final int CITED_CHUNKS_FIELD_NUMBER
public static final int CITED_FACTS_FIELD_NUMBER
public static final int CLAIMS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasSupportScore()
The support score for the input answer candidate. Higher the score, higher is the fraction of claims that are supported by the provided facts. This is always set when a response is returned.
optional float support_score = 1;hasSupportScore in interface CheckGroundingResponseOrBuilderpublic float getSupportScore()
The support score for the input answer candidate. Higher the score, higher is the fraction of claims that are supported by the provided facts. This is always set when a response is returned.
optional float support_score = 1;getSupportScore in interface CheckGroundingResponseOrBuilderpublic List<FactChunk> getCitedChunksList()
List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request.
repeated .google.cloud.discoveryengine.v1beta.FactChunk cited_chunks = 3;getCitedChunksList in interface CheckGroundingResponseOrBuilderpublic List<? extends FactChunkOrBuilder> getCitedChunksOrBuilderList()
List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request.
repeated .google.cloud.discoveryengine.v1beta.FactChunk cited_chunks = 3;getCitedChunksOrBuilderList in interface CheckGroundingResponseOrBuilderpublic int getCitedChunksCount()
List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request.
repeated .google.cloud.discoveryengine.v1beta.FactChunk cited_chunks = 3;getCitedChunksCount in interface CheckGroundingResponseOrBuilderpublic FactChunk getCitedChunks(int index)
List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request.
repeated .google.cloud.discoveryengine.v1beta.FactChunk cited_chunks = 3;getCitedChunks in interface CheckGroundingResponseOrBuilderpublic FactChunkOrBuilder getCitedChunksOrBuilder(int index)
List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request.
repeated .google.cloud.discoveryengine.v1beta.FactChunk cited_chunks = 3;getCitedChunksOrBuilder in interface CheckGroundingResponseOrBuilderpublic List<CheckGroundingResponse.CheckGroundingFactChunk> getCitedFactsList()
List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request.
repeated .google.cloud.discoveryengine.v1beta.CheckGroundingResponse.CheckGroundingFactChunk cited_facts = 6;
getCitedFactsList in interface CheckGroundingResponseOrBuilderpublic List<? extends CheckGroundingResponse.CheckGroundingFactChunkOrBuilder> getCitedFactsOrBuilderList()
List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request.
repeated .google.cloud.discoveryengine.v1beta.CheckGroundingResponse.CheckGroundingFactChunk cited_facts = 6;
getCitedFactsOrBuilderList in interface CheckGroundingResponseOrBuilderpublic int getCitedFactsCount()
List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request.
repeated .google.cloud.discoveryengine.v1beta.CheckGroundingResponse.CheckGroundingFactChunk cited_facts = 6;
getCitedFactsCount in interface CheckGroundingResponseOrBuilderpublic CheckGroundingResponse.CheckGroundingFactChunk getCitedFacts(int index)
List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request.
repeated .google.cloud.discoveryengine.v1beta.CheckGroundingResponse.CheckGroundingFactChunk cited_facts = 6;
getCitedFacts in interface CheckGroundingResponseOrBuilderpublic CheckGroundingResponse.CheckGroundingFactChunkOrBuilder getCitedFactsOrBuilder(int index)
List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request.
repeated .google.cloud.discoveryengine.v1beta.CheckGroundingResponse.CheckGroundingFactChunk cited_facts = 6;
getCitedFactsOrBuilder in interface CheckGroundingResponseOrBuilderpublic List<CheckGroundingResponse.Claim> getClaimsList()
Claim texts and citation info across all claims in the answer candidate.
repeated .google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim claims = 4;
getClaimsList in interface CheckGroundingResponseOrBuilderpublic List<? extends CheckGroundingResponse.ClaimOrBuilder> getClaimsOrBuilderList()
Claim texts and citation info across all claims in the answer candidate.
repeated .google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim claims = 4;
getClaimsOrBuilderList in interface CheckGroundingResponseOrBuilderpublic int getClaimsCount()
Claim texts and citation info across all claims in the answer candidate.
repeated .google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim claims = 4;
getClaimsCount in interface CheckGroundingResponseOrBuilderpublic CheckGroundingResponse.Claim getClaims(int index)
Claim texts and citation info across all claims in the answer candidate.
repeated .google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim claims = 4;
getClaims in interface CheckGroundingResponseOrBuilderpublic CheckGroundingResponse.ClaimOrBuilder getClaimsOrBuilder(int index)
Claim texts and citation info across all claims in the answer candidate.
repeated .google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim claims = 4;
getClaimsOrBuilder in interface CheckGroundingResponseOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public 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 CheckGroundingResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CheckGroundingResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CheckGroundingResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CheckGroundingResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CheckGroundingResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CheckGroundingResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CheckGroundingResponse parseFrom(InputStream input) throws IOException
IOExceptionpublic static CheckGroundingResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static CheckGroundingResponse parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static CheckGroundingResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static CheckGroundingResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static CheckGroundingResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic CheckGroundingResponse.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static CheckGroundingResponse.Builder newBuilder()
public static CheckGroundingResponse.Builder newBuilder(CheckGroundingResponse prototype)
public CheckGroundingResponse.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected CheckGroundingResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static CheckGroundingResponse getDefaultInstance()
public static com.google.protobuf.Parser<CheckGroundingResponse> parser()
public com.google.protobuf.Parser<CheckGroundingResponse> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public CheckGroundingResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.