Interface SearchRequest.CustomRankingParamsOrBuilder (0.90.0)

public static interface SearchRequest.CustomRankingParamsOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getExpressionsToPrecompute(int index)

public abstract String getExpressionsToPrecompute(int index)

Optional. A list of ranking expressions (see ranking_expression for the syntax documentation) to evaluate. The evaluation results will be returned in SearchResponse.SearchResult.rank_signals.precomputed_expression_values field.

repeated string expressions_to_precompute = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The expressionsToPrecompute at the given index.

getExpressionsToPrecomputeBytes(int index)

public abstract ByteString getExpressionsToPrecomputeBytes(int index)

Optional. A list of ranking expressions (see ranking_expression for the syntax documentation) to evaluate. The evaluation results will be returned in SearchResponse.SearchResult.rank_signals.precomputed_expression_values field.

repeated string expressions_to_precompute = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the expressionsToPrecompute at the given index.

getExpressionsToPrecomputeCount()

public abstract int getExpressionsToPrecomputeCount()

Optional. A list of ranking expressions (see ranking_expression for the syntax documentation) to evaluate. The evaluation results will be returned in SearchResponse.SearchResult.rank_signals.precomputed_expression_values field.

repeated string expressions_to_precompute = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of expressionsToPrecompute.

getExpressionsToPrecomputeList()

public abstract List<String> getExpressionsToPrecomputeList()

Optional. A list of ranking expressions (see ranking_expression for the syntax documentation) to evaluate. The evaluation results will be returned in SearchResponse.SearchResult.rank_signals.precomputed_expression_values field.

repeated string expressions_to_precompute = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<String>

A list containing the expressionsToPrecompute.