Class RagRetrievalConfig.Filter (3.56.0)

public static final class RagRetrievalConfig.Filter extends GeneratedMessageV3 implements RagRetrievalConfig.FilterOrBuilder

Config for filters.

Protobuf type google.cloud.aiplatform.v1.RagRetrievalConfig.Filter

Static Fields

METADATA_FILTER_FIELD_NUMBER

public static final int METADATA_FILTER_FIELD_NUMBER
Field Value
Type Description
int

VECTOR_DISTANCE_THRESHOLD_FIELD_NUMBER

public static final int VECTOR_DISTANCE_THRESHOLD_FIELD_NUMBER
Field Value
Type Description
int

VECTOR_SIMILARITY_THRESHOLD_FIELD_NUMBER

public static final int VECTOR_SIMILARITY_THRESHOLD_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static RagRetrievalConfig.Filter getDefaultInstance()
Returns
Type Description
RagRetrievalConfig.Filter

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static RagRetrievalConfig.Filter.Builder newBuilder()
Returns
Type Description
RagRetrievalConfig.Filter.Builder

newBuilder(RagRetrievalConfig.Filter prototype)

public static RagRetrievalConfig.Filter.Builder newBuilder(RagRetrievalConfig.Filter prototype)
Parameter
Name Description
prototype RagRetrievalConfig.Filter
Returns
Type Description
RagRetrievalConfig.Filter.Builder

parseDelimitedFrom(InputStream input)

public static RagRetrievalConfig.Filter parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RagRetrievalConfig.Filter
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RagRetrievalConfig.Filter parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RagRetrievalConfig.Filter
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static RagRetrievalConfig.Filter parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
RagRetrievalConfig.Filter
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RagRetrievalConfig.Filter parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RagRetrievalConfig.Filter
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RagRetrievalConfig.Filter parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
RagRetrievalConfig.Filter
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RagRetrievalConfig.Filter parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RagRetrievalConfig.Filter
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RagRetrievalConfig.Filter parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
RagRetrievalConfig.Filter
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RagRetrievalConfig.Filter parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RagRetrievalConfig.Filter
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static RagRetrievalConfig.Filter parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RagRetrievalConfig.Filter
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RagRetrievalConfig.Filter parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RagRetrievalConfig.Filter
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static RagRetrievalConfig.Filter parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
RagRetrievalConfig.Filter
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RagRetrievalConfig.Filter parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RagRetrievalConfig.Filter
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<RagRetrievalConfig.Filter> parser()
Returns
Type Description
Parser<Filter>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public RagRetrievalConfig.Filter getDefaultInstanceForType()
Returns
Type Description
RagRetrievalConfig.Filter

getMetadataFilter()

public String getMetadataFilter()

Optional. String for metadata filtering.

string metadata_filter = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The metadataFilter.

getMetadataFilterBytes()

public ByteString getMetadataFilterBytes()

Optional. String for metadata filtering.

string metadata_filter = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for metadataFilter.

getParserForType()

public Parser<RagRetrievalConfig.Filter> getParserForType()
Returns
Type Description
Parser<Filter>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getVectorDbThresholdCase()

public RagRetrievalConfig.Filter.VectorDbThresholdCase getVectorDbThresholdCase()
Returns
Type Description
RagRetrievalConfig.Filter.VectorDbThresholdCase

getVectorDistanceThreshold()

public double getVectorDistanceThreshold()

Optional. Only returns contexts with vector distance smaller than the threshold.

double vector_distance_threshold = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
double

The vectorDistanceThreshold.

getVectorSimilarityThreshold()

public double getVectorSimilarityThreshold()

Optional. Only returns contexts with vector similarity larger than the threshold.

double vector_similarity_threshold = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
double

The vectorSimilarityThreshold.

hasVectorDistanceThreshold()

public boolean hasVectorDistanceThreshold()

Optional. Only returns contexts with vector distance smaller than the threshold.

double vector_distance_threshold = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the vectorDistanceThreshold field is set.

hasVectorSimilarityThreshold()

public boolean hasVectorSimilarityThreshold()

Optional. Only returns contexts with vector similarity larger than the threshold.

double vector_similarity_threshold = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the vectorSimilarityThreshold field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public RagRetrievalConfig.Filter.Builder newBuilderForType()
Returns
Type Description
RagRetrievalConfig.Filter.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RagRetrievalConfig.Filter.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
RagRetrievalConfig.Filter.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public RagRetrievalConfig.Filter.Builder toBuilder()
Returns
Type Description
RagRetrievalConfig.Filter.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException