Class CheckGroundingResponse
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.discoveryengine.v1beta.CheckGroundingResponse
- All Implemented Interfaces:
CheckGroundingResponseOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class CheckGroundingResponse
extends com.google.protobuf.GeneratedMessage
implements CheckGroundingResponseOrBuilder
Response message for the [GroundedGenerationService.CheckGrounding][google.cloud.discoveryengine.v1beta.GroundedGenerationService.CheckGrounding] method.Protobuf type
google.cloud.discoveryengine.v1beta.CheckGroundingResponse- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classResponse message for the [GroundedGenerationService.CheckGrounding][google.cloud.discoveryengine.v1beta.GroundedGenerationService.CheckGrounding] method.static final classFact chunk for grounding check.static interfacestatic final classText and citation info for a claim in the answer candidate.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
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 extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetCitedChunks(int index) List of facts cited across all claims in the answer candidate.intList of facts cited across all claims in the answer candidate.List of facts cited across all claims in the answer candidate.getCitedChunksOrBuilder(int index) List of facts cited across all claims in the answer candidate.List<? extends FactChunkOrBuilder>List of facts cited across all claims in the answer candidate.getCitedFacts(int index) List of facts cited across all claims in the answer candidate.intList of facts cited across all claims in the answer candidate.List of facts cited across all claims in the answer candidate.getCitedFactsOrBuilder(int index) List of facts cited across all claims in the answer candidate.List of facts cited across all claims in the answer candidate.getClaims(int index) Claim texts and citation info across all claims in the answer candidate.intClaim texts and citation info across all claims in the answer candidate.Claim texts and citation info across all claims in the answer candidate.getClaimsOrBuilder(int index) Claim texts and citation info across all claims in the answer candidate.List<? extends CheckGroundingResponse.ClaimOrBuilder>Claim texts and citation info across all claims in the answer candidate.static CheckGroundingResponsestatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Parser<CheckGroundingResponse>intfloatThe support score for the input answer candidate.inthashCode()booleanThe support score for the input answer candidate.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(CheckGroundingResponse prototype) protected CheckGroundingResponse.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static CheckGroundingResponseparseDelimitedFrom(InputStream input) static CheckGroundingResponseparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CheckGroundingResponseparseFrom(byte[] data) static CheckGroundingResponseparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CheckGroundingResponseparseFrom(com.google.protobuf.ByteString data) static CheckGroundingResponseparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CheckGroundingResponseparseFrom(com.google.protobuf.CodedInputStream input) static CheckGroundingResponseparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CheckGroundingResponseparseFrom(InputStream input) static CheckGroundingResponseparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CheckGroundingResponseparseFrom(ByteBuffer data) static CheckGroundingResponseparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<CheckGroundingResponse>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
SUPPORT_SCORE_FIELD_NUMBER
public static final int SUPPORT_SCORE_FIELD_NUMBER- See Also:
-
CITED_CHUNKS_FIELD_NUMBER
public static final int CITED_CHUNKS_FIELD_NUMBER- See Also:
-
CITED_FACTS_FIELD_NUMBER
public static final int CITED_FACTS_FIELD_NUMBER- See Also:
-
CLAIMS_FIELD_NUMBER
public static final int CLAIMS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
hasSupportScore
public 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;- Specified by:
hasSupportScorein interfaceCheckGroundingResponseOrBuilder- Returns:
- Whether the supportScore field is set.
-
getSupportScore
public 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;- Specified by:
getSupportScorein interfaceCheckGroundingResponseOrBuilder- Returns:
- The supportScore.
-
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;- Specified by:
getCitedChunksListin interfaceCheckGroundingResponseOrBuilder
-
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;- Specified by:
getCitedChunksOrBuilderListin interfaceCheckGroundingResponseOrBuilder
-
getCitedChunksCount
public 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;- Specified by:
getCitedChunksCountin interfaceCheckGroundingResponseOrBuilder
-
getCitedChunks
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;- Specified by:
getCitedChunksin interfaceCheckGroundingResponseOrBuilder
-
getCitedChunksOrBuilder
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;- Specified by:
getCitedChunksOrBuilderin interfaceCheckGroundingResponseOrBuilder
-
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;- Specified by:
getCitedFactsListin interfaceCheckGroundingResponseOrBuilder
-
getCitedFactsOrBuilderList
public 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;- Specified by:
getCitedFactsOrBuilderListin interfaceCheckGroundingResponseOrBuilder
-
getCitedFactsCount
public 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;- Specified by:
getCitedFactsCountin interfaceCheckGroundingResponseOrBuilder
-
getCitedFacts
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;- Specified by:
getCitedFactsin interfaceCheckGroundingResponseOrBuilder
-
getCitedFactsOrBuilder
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;- Specified by:
getCitedFactsOrBuilderin interfaceCheckGroundingResponseOrBuilder
-
getClaimsList
Claim texts and citation info across all claims in the answer candidate.
repeated .google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim claims = 4;- Specified by:
getClaimsListin interfaceCheckGroundingResponseOrBuilder
-
getClaimsOrBuilderList
Claim texts and citation info across all claims in the answer candidate.
repeated .google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim claims = 4;- Specified by:
getClaimsOrBuilderListin interfaceCheckGroundingResponseOrBuilder
-
getClaimsCount
public int getClaimsCount()Claim texts and citation info across all claims in the answer candidate.
repeated .google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim claims = 4;- Specified by:
getClaimsCountin interfaceCheckGroundingResponseOrBuilder
-
getClaims
Claim texts and citation info across all claims in the answer candidate.
repeated .google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim claims = 4;- Specified by:
getClaimsin interfaceCheckGroundingResponseOrBuilder
-
getClaimsOrBuilder
Claim texts and citation info across all claims in the answer candidate.
repeated .google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim claims = 4;- Specified by:
getClaimsOrBuilderin interfaceCheckGroundingResponseOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static CheckGroundingResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CheckGroundingResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CheckGroundingResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CheckGroundingResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CheckGroundingResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CheckGroundingResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static CheckGroundingResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static CheckGroundingResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static CheckGroundingResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static CheckGroundingResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected CheckGroundingResponse.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-