public final class GroundingSupport extends com.google.protobuf.GeneratedMessageV3 implements GroundingSupportOrBuilder
Grounding support.Protobuf type
google.cloud.aiplatform.v1beta1.GroundingSupport| Modifier and Type | Class and Description |
|---|---|
static class |
GroundingSupport.Builder
Grounding support.
|
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 |
CONFIDENCE_SCORES_FIELD_NUMBER |
static int |
GROUNDING_CHUNK_INDICES_FIELD_NUMBER |
static int |
SEGMENT_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
float |
getConfidenceScores(int index)
Confidence score of the support references.
|
int |
getConfidenceScoresCount()
Confidence score of the support references.
|
List<Float> |
getConfidenceScoresList()
Confidence score of the support references.
|
static GroundingSupport |
getDefaultInstance() |
GroundingSupport |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
int |
getGroundingChunkIndices(int index)
A list of indices (into 'grounding_chunk') specifying the
citations associated with the claim.
|
int |
getGroundingChunkIndicesCount()
A list of indices (into 'grounding_chunk') specifying the
citations associated with the claim.
|
List<Integer> |
getGroundingChunkIndicesList()
A list of indices (into 'grounding_chunk') specifying the
citations associated with the claim.
|
com.google.protobuf.Parser<GroundingSupport> |
getParserForType() |
Segment |
getSegment()
Segment of the content this support belongs to.
|
SegmentOrBuilder |
getSegmentOrBuilder()
Segment of the content this support belongs to.
|
int |
getSerializedSize() |
int |
hashCode() |
boolean |
hasSegment()
Segment of the content this support belongs to.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static GroundingSupport.Builder |
newBuilder() |
static GroundingSupport.Builder |
newBuilder(GroundingSupport prototype) |
GroundingSupport.Builder |
newBuilderForType() |
protected GroundingSupport.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static GroundingSupport |
parseDelimitedFrom(InputStream input) |
static GroundingSupport |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GroundingSupport |
parseFrom(byte[] data) |
static GroundingSupport |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GroundingSupport |
parseFrom(ByteBuffer data) |
static GroundingSupport |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GroundingSupport |
parseFrom(com.google.protobuf.ByteString data) |
static GroundingSupport |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GroundingSupport |
parseFrom(com.google.protobuf.CodedInputStream input) |
static GroundingSupport |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GroundingSupport |
parseFrom(InputStream input) |
static GroundingSupport |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<GroundingSupport> |
parser() |
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, 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 SEGMENT_FIELD_NUMBER
public static final int GROUNDING_CHUNK_INDICES_FIELD_NUMBER
public static final int CONFIDENCE_SCORES_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 hasSegment()
Segment of the content this support belongs to.
optional .google.cloud.aiplatform.v1beta1.Segment segment = 1;hasSegment in interface GroundingSupportOrBuilderpublic Segment getSegment()
Segment of the content this support belongs to.
optional .google.cloud.aiplatform.v1beta1.Segment segment = 1;getSegment in interface GroundingSupportOrBuilderpublic SegmentOrBuilder getSegmentOrBuilder()
Segment of the content this support belongs to.
optional .google.cloud.aiplatform.v1beta1.Segment segment = 1;getSegmentOrBuilder in interface GroundingSupportOrBuilderpublic List<Integer> getGroundingChunkIndicesList()
A list of indices (into 'grounding_chunk') specifying the citations associated with the claim. For instance [1,3,4] means that grounding_chunk[1], grounding_chunk[3], grounding_chunk[4] are the retrieved content attributed to the claim.
repeated int32 grounding_chunk_indices = 2;getGroundingChunkIndicesList in interface GroundingSupportOrBuilderpublic int getGroundingChunkIndicesCount()
A list of indices (into 'grounding_chunk') specifying the citations associated with the claim. For instance [1,3,4] means that grounding_chunk[1], grounding_chunk[3], grounding_chunk[4] are the retrieved content attributed to the claim.
repeated int32 grounding_chunk_indices = 2;getGroundingChunkIndicesCount in interface GroundingSupportOrBuilderpublic int getGroundingChunkIndices(int index)
A list of indices (into 'grounding_chunk') specifying the citations associated with the claim. For instance [1,3,4] means that grounding_chunk[1], grounding_chunk[3], grounding_chunk[4] are the retrieved content attributed to the claim.
repeated int32 grounding_chunk_indices = 2;getGroundingChunkIndices in interface GroundingSupportOrBuilderindex - The index of the element to return.public List<Float> getConfidenceScoresList()
Confidence score of the support references. Ranges from 0 to 1. 1 is the most confident. This list must have the same size as the grounding_chunk_indices.
repeated float confidence_scores = 3;getConfidenceScoresList in interface GroundingSupportOrBuilderpublic int getConfidenceScoresCount()
Confidence score of the support references. Ranges from 0 to 1. 1 is the most confident. This list must have the same size as the grounding_chunk_indices.
repeated float confidence_scores = 3;getConfidenceScoresCount in interface GroundingSupportOrBuilderpublic float getConfidenceScores(int index)
Confidence score of the support references. Ranges from 0 to 1. 1 is the most confident. This list must have the same size as the grounding_chunk_indices.
repeated float confidence_scores = 3;getConfidenceScores in interface GroundingSupportOrBuilderindex - The index of the element to return.public 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 GroundingSupport parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GroundingSupport parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GroundingSupport parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GroundingSupport parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GroundingSupport parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GroundingSupport parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GroundingSupport parseFrom(InputStream input) throws IOException
IOExceptionpublic static GroundingSupport parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GroundingSupport parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static GroundingSupport parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GroundingSupport parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static GroundingSupport parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic GroundingSupport.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static GroundingSupport.Builder newBuilder()
public static GroundingSupport.Builder newBuilder(GroundingSupport prototype)
public GroundingSupport.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected GroundingSupport.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static GroundingSupport getDefaultInstance()
public static com.google.protobuf.Parser<GroundingSupport> parser()
public com.google.protobuf.Parser<GroundingSupport> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public GroundingSupport getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.