Class CheckGroundingResponse.Claim
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim
- All Implemented Interfaces:
CheckGroundingResponse.ClaimOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- CheckGroundingResponse
public static final class CheckGroundingResponse.Claim
extends com.google.protobuf.GeneratedMessage
implements CheckGroundingResponse.ClaimOrBuilder
Text and citation info for a claim in the answer candidate.Protobuf type
google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classText and citation info for a claim in the answer candidate.Nested 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 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 TypeMethodDescriptionbooleanintgetCitationIndices(int index) A list of indices (into 'cited_chunks') specifying the citations associated with the claim.intA list of indices (into 'cited_chunks') specifying the citations associated with the claim.A list of indices (into 'cited_chunks') specifying the citations associated with the claim.Text for the claim in the answer candidate.com.google.protobuf.ByteStringText for the claim in the answer candidate.static CheckGroundingResponse.Claimstatic final com.google.protobuf.Descriptors.DescriptorintPosition indicating the end of the claim in the answer candidate, exclusive.booleanIndicates that this claim required grounding check.com.google.protobuf.Parser<CheckGroundingResponse.Claim>intintPosition indicating the start of the claim in the answer candidate, measured in bytes.booleanPosition indicating the end of the claim in the answer candidate, exclusive.booleanIndicates that this claim required grounding check.inthashCode()booleanPosition indicating the start of the claim in the answer candidate, measured in bytes.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(CheckGroundingResponse.Claim prototype) protected CheckGroundingResponse.Claim.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static CheckGroundingResponse.ClaimparseDelimitedFrom(InputStream input) static CheckGroundingResponse.ClaimparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CheckGroundingResponse.ClaimparseFrom(byte[] data) static CheckGroundingResponse.ClaimparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CheckGroundingResponse.ClaimparseFrom(com.google.protobuf.ByteString data) static CheckGroundingResponse.ClaimparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CheckGroundingResponse.ClaimparseFrom(com.google.protobuf.CodedInputStream input) static CheckGroundingResponse.ClaimparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CheckGroundingResponse.ClaimparseFrom(InputStream input) static CheckGroundingResponse.ClaimparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CheckGroundingResponse.ClaimparseFrom(ByteBuffer data) static CheckGroundingResponse.ClaimparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<CheckGroundingResponse.Claim>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
-
START_POS_FIELD_NUMBER
public static final int START_POS_FIELD_NUMBER- See Also:
-
END_POS_FIELD_NUMBER
public static final int END_POS_FIELD_NUMBER- See Also:
-
CLAIM_TEXT_FIELD_NUMBER
public static final int CLAIM_TEXT_FIELD_NUMBER- See Also:
-
CITATION_INDICES_FIELD_NUMBER
public static final int CITATION_INDICES_FIELD_NUMBER- See Also:
-
GROUNDING_CHECK_REQUIRED_FIELD_NUMBER
public static final int GROUNDING_CHECK_REQUIRED_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
-
hasStartPos
public boolean hasStartPos()Position indicating the start of the claim in the answer candidate, measured in bytes.
optional int32 start_pos = 1;- Specified by:
hasStartPosin interfaceCheckGroundingResponse.ClaimOrBuilder- Returns:
- Whether the startPos field is set.
-
getStartPos
public int getStartPos()Position indicating the start of the claim in the answer candidate, measured in bytes.
optional int32 start_pos = 1;- Specified by:
getStartPosin interfaceCheckGroundingResponse.ClaimOrBuilder- Returns:
- The startPos.
-
hasEndPos
public boolean hasEndPos()Position indicating the end of the claim in the answer candidate, exclusive.
optional int32 end_pos = 2;- Specified by:
hasEndPosin interfaceCheckGroundingResponse.ClaimOrBuilder- Returns:
- Whether the endPos field is set.
-
getEndPos
public int getEndPos()Position indicating the end of the claim in the answer candidate, exclusive.
optional int32 end_pos = 2;- Specified by:
getEndPosin interfaceCheckGroundingResponse.ClaimOrBuilder- Returns:
- The endPos.
-
getClaimText
Text for the claim in the answer candidate. Always provided regardless of whether citations or anti-citations are found.
string claim_text = 3;- Specified by:
getClaimTextin interfaceCheckGroundingResponse.ClaimOrBuilder- Returns:
- The claimText.
-
getClaimTextBytes
public 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;- Specified by:
getClaimTextBytesin interfaceCheckGroundingResponse.ClaimOrBuilder- Returns:
- The bytes for claimText.
-
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;- Specified by:
getCitationIndicesListin interfaceCheckGroundingResponse.ClaimOrBuilder- Returns:
- A list containing the citationIndices.
-
getCitationIndicesCount
public 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;- Specified by:
getCitationIndicesCountin interfaceCheckGroundingResponse.ClaimOrBuilder- Returns:
- The count of citationIndices.
-
getCitationIndices
public 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;- Specified by:
getCitationIndicesin interfaceCheckGroundingResponse.ClaimOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The citationIndices at the given index.
-
hasGroundingCheckRequired
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;- Specified by:
hasGroundingCheckRequiredin interfaceCheckGroundingResponse.ClaimOrBuilder- Returns:
- Whether the groundingCheckRequired field is set.
-
getGroundingCheckRequired
public 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;- Specified by:
getGroundingCheckRequiredin interfaceCheckGroundingResponse.ClaimOrBuilder- Returns:
- The groundingCheckRequired.
-
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.Claim parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CheckGroundingResponse.Claim parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CheckGroundingResponse.Claim parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CheckGroundingResponse.Claim 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.Claim parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CheckGroundingResponse.Claim 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.Claim parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static CheckGroundingResponse.Claim parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static CheckGroundingResponse.Claim parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static CheckGroundingResponse.Claim 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
public static CheckGroundingResponse.Claim.Builder newBuilder(CheckGroundingResponse.Claim prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected CheckGroundingResponse.Claim.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
-