Send feedback
Class ReciprocalRankFusion.Builder (0.1.0)
Stay organized with collections
Save and categorize content based on your preferences.
public static final class ReciprocalRankFusion . Builder extends GeneratedMessageV3 . Builder<ReciprocalRankFusion . Builder > implements ReciprocalRankFusionOrBuilder
Defines the Reciprocal Rank Fusion (RRF) algorithm for result ranking.
Protobuf type google.cloud.vectorsearch.v1beta.ReciprocalRankFusion
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addAllWeights(Iterable<? extends Double> values)
public ReciprocalRankFusion . Builder addAllWeights ( Iterable <? extends Double > values )
Required. The weights to apply to each search result set during fusion.
repeated double weights = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
values
Iterable <? extends java.lang.Double >The weights to add.
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ReciprocalRankFusion . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
addWeights(double value)
public ReciprocalRankFusion . Builder addWeights ( double value )
Required. The weights to apply to each search result set during fusion.
repeated double weights = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
value
double The weights to add.
build()
public ReciprocalRankFusion build ()
buildPartial()
public ReciprocalRankFusion buildPartial ()
clear()
public ReciprocalRankFusion . Builder clear ()
Overrides
clearField(Descriptors.FieldDescriptor field)
public ReciprocalRankFusion . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ReciprocalRankFusion . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearWeights()
public ReciprocalRankFusion . Builder clearWeights ()
Required. The weights to apply to each search result set during fusion.
repeated double weights = 1 [(.google.api.field_behavior) = REQUIRED];
clone()
public ReciprocalRankFusion . Builder clone ()
Overrides
getDefaultInstanceForType()
public ReciprocalRankFusion getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getWeights(int index)
public double getWeights ( int index )
Required. The weights to apply to each search result set during fusion.
repeated double weights = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name
Description
index
int The index of the element to return.
Returns
Type
Description
double
The weights at the given index.
getWeightsCount()
public int getWeightsCount ()
Required. The weights to apply to each search result set during fusion.
repeated double weights = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
int
The count of weights.
getWeightsList()
public List<Double> getWeightsList ()
Required. The weights to apply to each search result set during fusion.
repeated double weights = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type
Description
List <Double >
A list containing the weights.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(ReciprocalRankFusion other)
public ReciprocalRankFusion . Builder mergeFrom ( ReciprocalRankFusion other )
public ReciprocalRankFusion . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public ReciprocalRankFusion . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ReciprocalRankFusion . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public ReciprocalRankFusion . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ReciprocalRankFusion . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ReciprocalRankFusion . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setWeights(int index, double value)
public ReciprocalRankFusion . Builder setWeights ( int index , double value )
Required. The weights to apply to each search result set during fusion.
repeated double weights = 1 [(.google.api.field_behavior) = REQUIRED];
Parameters
Name
Description
index
int The index to set the value at.
value
double The weights to set.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-11-19 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-11-19 UTC."],[],[]]