Class RagRetrievalConfig.Filter.Builder (3.56.0)

public static final class RagRetrievalConfig.Filter.Builder extends GeneratedMessageV3.Builder<RagRetrievalConfig.Filter.Builder> implements RagRetrievalConfig.FilterOrBuilder

Config for filters.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RagRetrievalConfig.Filter.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RagRetrievalConfig.Filter.Builder
Overrides

build()

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

buildPartial()

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

clear()

public RagRetrievalConfig.Filter.Builder clear()
Returns
Type Description
RagRetrievalConfig.Filter.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public RagRetrievalConfig.Filter.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RagRetrievalConfig.Filter.Builder
Overrides

clearMetadataFilter()

public RagRetrievalConfig.Filter.Builder clearMetadataFilter()

Optional. String for metadata filtering.

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

Returns
Type Description
RagRetrievalConfig.Filter.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RagRetrievalConfig.Filter.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RagRetrievalConfig.Filter.Builder
Overrides

clearVectorDbThreshold()

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

clearVectorDistanceThreshold()

public RagRetrievalConfig.Filter.Builder clearVectorDistanceThreshold()

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

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

Returns
Type Description
RagRetrievalConfig.Filter.Builder

This builder for chaining.

clearVectorSimilarityThreshold()

public RagRetrievalConfig.Filter.Builder clearVectorSimilarityThreshold()

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

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

Returns
Type Description
RagRetrievalConfig.Filter.Builder

This builder for chaining.

clone()

public RagRetrievalConfig.Filter.Builder clone()
Returns
Type Description
RagRetrievalConfig.Filter.Builder
Overrides

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RagRetrievalConfig.Filter other)

public RagRetrievalConfig.Filter.Builder mergeFrom(RagRetrievalConfig.Filter other)
Parameter
Name Description
other RagRetrievalConfig.Filter
Returns
Type Description
RagRetrievalConfig.Filter.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RagRetrievalConfig.Filter.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RagRetrievalConfig.Filter.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RagRetrievalConfig.Filter.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RagRetrievalConfig.Filter.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RagRetrievalConfig.Filter.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RagRetrievalConfig.Filter.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public RagRetrievalConfig.Filter.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RagRetrievalConfig.Filter.Builder
Overrides

setMetadataFilter(String value)

public RagRetrievalConfig.Filter.Builder setMetadataFilter(String value)

Optional. String for metadata filtering.

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

Parameter
Name Description
value String

The metadataFilter to set.

Returns
Type Description
RagRetrievalConfig.Filter.Builder

This builder for chaining.

setMetadataFilterBytes(ByteString value)

public RagRetrievalConfig.Filter.Builder setMetadataFilterBytes(ByteString value)

Optional. String for metadata filtering.

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

Parameter
Name Description
value ByteString

The bytes for metadataFilter to set.

Returns
Type Description
RagRetrievalConfig.Filter.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public RagRetrievalConfig.Filter.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RagRetrievalConfig.Filter.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final RagRetrievalConfig.Filter.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RagRetrievalConfig.Filter.Builder
Overrides

setVectorDistanceThreshold(double value)

public RagRetrievalConfig.Filter.Builder setVectorDistanceThreshold(double value)

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

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

Parameter
Name Description
value double

The vectorDistanceThreshold to set.

Returns
Type Description
RagRetrievalConfig.Filter.Builder

This builder for chaining.

setVectorSimilarityThreshold(double value)

public RagRetrievalConfig.Filter.Builder setVectorSimilarityThreshold(double value)

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

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

Parameter
Name Description
value double

The vectorSimilarityThreshold to set.

Returns
Type Description
RagRetrievalConfig.Filter.Builder

This builder for chaining.