public final class Fact extends com.google.protobuf.GeneratedMessageV3 implements FactOrBuilder
The fact used in grounding.Protobuf type
google.cloud.aiplatform.v1.Fact| Modifier and Type | Class and Description |
|---|---|
static class |
Fact.Builder
The fact used in grounding.
|
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 |
CHUNK_FIELD_NUMBER |
static int |
QUERY_FIELD_NUMBER |
static int |
SCORE_FIELD_NUMBER |
static int |
SUMMARY_FIELD_NUMBER |
static int |
TITLE_FIELD_NUMBER |
static int |
URI_FIELD_NUMBER |
static int |
VECTOR_DISTANCE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
RagChunk |
getChunk()
If present, chunk properties.
|
RagChunkOrBuilder |
getChunkOrBuilder()
If present, chunk properties.
|
static Fact |
getDefaultInstance() |
Fact |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<Fact> |
getParserForType() |
String |
getQuery()
Query that is used to retrieve this fact.
|
com.google.protobuf.ByteString |
getQueryBytes()
Query that is used to retrieve this fact.
|
double |
getScore()
If present, according to the underlying Vector DB and the selected metric
type, the score can be either the distance or the similarity between the
query and the fact and its range depends on the metric type.
|
int |
getSerializedSize() |
String |
getSummary()
If present, the summary/snippet of the fact.
|
com.google.protobuf.ByteString |
getSummaryBytes()
If present, the summary/snippet of the fact.
|
String |
getTitle()
If present, it refers to the title of this fact.
|
com.google.protobuf.ByteString |
getTitleBytes()
If present, it refers to the title of this fact.
|
String |
getUri()
If present, this uri links to the source of the fact.
|
com.google.protobuf.ByteString |
getUriBytes()
If present, this uri links to the source of the fact.
|
double |
getVectorDistance()
Deprecated.
google.cloud.aiplatform.v1.Fact.vector_distance is deprecated. See
google/cloud/aiplatform/v1/vertex_rag_service.proto;l=288
|
boolean |
hasChunk()
If present, chunk properties.
|
int |
hashCode() |
boolean |
hasQuery()
Query that is used to retrieve this fact.
|
boolean |
hasScore()
If present, according to the underlying Vector DB and the selected metric
type, the score can be either the distance or the similarity between the
query and the fact and its range depends on the metric type.
|
boolean |
hasSummary()
If present, the summary/snippet of the fact.
|
boolean |
hasTitle()
If present, it refers to the title of this fact.
|
boolean |
hasUri()
If present, this uri links to the source of the fact.
|
boolean |
hasVectorDistance()
Deprecated.
google.cloud.aiplatform.v1.Fact.vector_distance is deprecated. See
google/cloud/aiplatform/v1/vertex_rag_service.proto;l=288
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Fact.Builder |
newBuilder() |
static Fact.Builder |
newBuilder(Fact prototype) |
Fact.Builder |
newBuilderForType() |
protected Fact.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Fact |
parseDelimitedFrom(InputStream input) |
static Fact |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Fact |
parseFrom(byte[] data) |
static Fact |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Fact |
parseFrom(ByteBuffer data) |
static Fact |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Fact |
parseFrom(com.google.protobuf.ByteString data) |
static Fact |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Fact |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Fact |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Fact |
parseFrom(InputStream input) |
static Fact |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Fact> |
parser() |
Fact.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 QUERY_FIELD_NUMBER
public static final int TITLE_FIELD_NUMBER
public static final int URI_FIELD_NUMBER
public static final int SUMMARY_FIELD_NUMBER
public static final int VECTOR_DISTANCE_FIELD_NUMBER
public static final int SCORE_FIELD_NUMBER
public static final int CHUNK_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 hasQuery()
Query that is used to retrieve this fact.
optional string query = 1;hasQuery in interface FactOrBuilderpublic String getQuery()
Query that is used to retrieve this fact.
optional string query = 1;getQuery in interface FactOrBuilderpublic com.google.protobuf.ByteString getQueryBytes()
Query that is used to retrieve this fact.
optional string query = 1;getQueryBytes in interface FactOrBuilderpublic boolean hasTitle()
If present, it refers to the title of this fact.
optional string title = 2;hasTitle in interface FactOrBuilderpublic String getTitle()
If present, it refers to the title of this fact.
optional string title = 2;getTitle in interface FactOrBuilderpublic com.google.protobuf.ByteString getTitleBytes()
If present, it refers to the title of this fact.
optional string title = 2;getTitleBytes in interface FactOrBuilderpublic boolean hasUri()
If present, this uri links to the source of the fact.
optional string uri = 3;hasUri in interface FactOrBuilderpublic String getUri()
If present, this uri links to the source of the fact.
optional string uri = 3;getUri in interface FactOrBuilderpublic com.google.protobuf.ByteString getUriBytes()
If present, this uri links to the source of the fact.
optional string uri = 3;getUriBytes in interface FactOrBuilderpublic boolean hasSummary()
If present, the summary/snippet of the fact.
optional string summary = 4;hasSummary in interface FactOrBuilderpublic String getSummary()
If present, the summary/snippet of the fact.
optional string summary = 4;getSummary in interface FactOrBuilderpublic com.google.protobuf.ByteString getSummaryBytes()
If present, the summary/snippet of the fact.
optional string summary = 4;getSummaryBytes in interface FactOrBuilder@Deprecated public boolean hasVectorDistance()
If present, the distance between the query vector and this fact vector.
optional double vector_distance = 5 [deprecated = true];hasVectorDistance in interface FactOrBuilder@Deprecated public double getVectorDistance()
If present, the distance between the query vector and this fact vector.
optional double vector_distance = 5 [deprecated = true];getVectorDistance in interface FactOrBuilderpublic boolean hasScore()
If present, according to the underlying Vector DB and the selected metric type, the score can be either the distance or the similarity between the query and the fact and its range depends on the metric type. For example, if the metric type is COSINE_DISTANCE, it represents the distance between the query and the fact. The larger the distance, the less relevant the fact is to the query. The range is [0, 2], while 0 means the most relevant and 2 means the least relevant.
optional double score = 6;hasScore in interface FactOrBuilderpublic double getScore()
If present, according to the underlying Vector DB and the selected metric type, the score can be either the distance or the similarity between the query and the fact and its range depends on the metric type. For example, if the metric type is COSINE_DISTANCE, it represents the distance between the query and the fact. The larger the distance, the less relevant the fact is to the query. The range is [0, 2], while 0 means the most relevant and 2 means the least relevant.
optional double score = 6;getScore in interface FactOrBuilderpublic boolean hasChunk()
If present, chunk properties.
optional .google.cloud.aiplatform.v1.RagChunk chunk = 7;hasChunk in interface FactOrBuilderpublic RagChunk getChunk()
If present, chunk properties.
optional .google.cloud.aiplatform.v1.RagChunk chunk = 7;getChunk in interface FactOrBuilderpublic RagChunkOrBuilder getChunkOrBuilder()
If present, chunk properties.
optional .google.cloud.aiplatform.v1.RagChunk chunk = 7;getChunkOrBuilder in interface FactOrBuilderpublic 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 Fact parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Fact parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Fact parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Fact parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Fact parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Fact parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Fact parseFrom(InputStream input) throws IOException
IOExceptionpublic static Fact parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Fact parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Fact parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Fact parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Fact parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Fact.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Fact.Builder newBuilder()
public static Fact.Builder newBuilder(Fact prototype)
public Fact.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Fact.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Fact getDefaultInstance()
public static com.google.protobuf.Parser<Fact> parser()
public com.google.protobuf.Parser<Fact> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Fact getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.