public static final class CheckGroundingResponse.Claim extends com.google.protobuf.GeneratedMessageV3 implements CheckGroundingResponse.ClaimOrBuilder
Text and citation info for a claim in the answer candidate.Protobuf type
google.cloud.discoveryengine.v1alpha.CheckGroundingResponse.Claim| Modifier and Type | Class and Description |
|---|---|
static class |
CheckGroundingResponse.Claim.Builder
Text and citation info for a claim in the answer candidate.
|
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 |
CITATION_INDICES_FIELD_NUMBER |
static int |
CLAIM_TEXT_FIELD_NUMBER |
static int |
END_POS_FIELD_NUMBER |
static int |
GROUNDING_CHECK_REQUIRED_FIELD_NUMBER |
static int |
START_POS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
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.
|
static CheckGroundingResponse.Claim |
getDefaultInstance() |
CheckGroundingResponse.Claim |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
int |
getEndPos()
Position indicating the end of the claim in the answer candidate,
exclusive.
|
boolean |
getGroundingCheckRequired()
Indicates that this claim required grounding check.
|
com.google.protobuf.Parser<CheckGroundingResponse.Claim> |
getParserForType() |
int |
getSerializedSize() |
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.
|
int |
hashCode() |
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() |
static CheckGroundingResponse.Claim.Builder |
newBuilder() |
static CheckGroundingResponse.Claim.Builder |
newBuilder(CheckGroundingResponse.Claim prototype) |
CheckGroundingResponse.Claim.Builder |
newBuilderForType() |
protected CheckGroundingResponse.Claim.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static CheckGroundingResponse.Claim |
parseDelimitedFrom(InputStream input) |
static CheckGroundingResponse.Claim |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CheckGroundingResponse.Claim |
parseFrom(byte[] data) |
static CheckGroundingResponse.Claim |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CheckGroundingResponse.Claim |
parseFrom(ByteBuffer data) |
static CheckGroundingResponse.Claim |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CheckGroundingResponse.Claim |
parseFrom(com.google.protobuf.ByteString data) |
static CheckGroundingResponse.Claim |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CheckGroundingResponse.Claim |
parseFrom(com.google.protobuf.CodedInputStream input) |
static CheckGroundingResponse.Claim |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CheckGroundingResponse.Claim |
parseFrom(InputStream input) |
static CheckGroundingResponse.Claim |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<CheckGroundingResponse.Claim> |
parser() |
CheckGroundingResponse.Claim.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 START_POS_FIELD_NUMBER
public static final int END_POS_FIELD_NUMBER
public static final int CLAIM_TEXT_FIELD_NUMBER
public static final int CITATION_INDICES_FIELD_NUMBER
public static final int GROUNDING_CHECK_REQUIRED_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 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 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 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 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 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.v1alpha.CheckGroundingResponse.Claim.citation_indices], and [anti_citation_indices][google.cloud.discoveryengine.v1alpha.CheckGroundingResponse.Claim.anti_citation_indices] 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.v1alpha.CheckGroundingResponse.Claim.citation_indices], and [anti_citation_indices][google.cloud.discoveryengine.v1alpha.CheckGroundingResponse.Claim.anti_citation_indices] should not be returned.
optional bool grounding_check_required = 6;getGroundingCheckRequired in interface CheckGroundingResponse.ClaimOrBuilderpublic 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.Claim parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CheckGroundingResponse.Claim parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CheckGroundingResponse.Claim parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CheckGroundingResponse.Claim parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CheckGroundingResponse.Claim parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CheckGroundingResponse.Claim parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CheckGroundingResponse.Claim parseFrom(InputStream input) throws IOException
IOExceptionpublic static CheckGroundingResponse.Claim parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static CheckGroundingResponse.Claim parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static CheckGroundingResponse.Claim parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static CheckGroundingResponse.Claim parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static CheckGroundingResponse.Claim parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic CheckGroundingResponse.Claim.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static CheckGroundingResponse.Claim.Builder newBuilder()
public static CheckGroundingResponse.Claim.Builder newBuilder(CheckGroundingResponse.Claim prototype)
public CheckGroundingResponse.Claim.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected CheckGroundingResponse.Claim.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static CheckGroundingResponse.Claim getDefaultInstance()
public static com.google.protobuf.Parser<CheckGroundingResponse.Claim> parser()
public com.google.protobuf.Parser<CheckGroundingResponse.Claim> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public CheckGroundingResponse.Claim getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.