Interface SearchRequest.QueryExpansionSpecOrBuilder (0.33.0)

public static interface SearchRequest.QueryExpansionSpecOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCondition()

public abstract SearchRequest.QueryExpansionSpec.Condition getCondition()

The condition under which query expansion should occur. Default to Condition.DISABLED.

.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Condition condition = 1;

Returns
TypeDescription
SearchRequest.QueryExpansionSpec.Condition

The condition.

getConditionValue()

public abstract int getConditionValue()

The condition under which query expansion should occur. Default to Condition.DISABLED.

.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Condition condition = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for condition.

getPinUnexpandedResults()

public abstract boolean getPinUnexpandedResults()

Whether to pin unexpanded results. If this field is set to true, unexpanded products are always at the top of the search results, followed by the expanded results.

bool pin_unexpanded_results = 2;

Returns
TypeDescription
boolean

The pinUnexpandedResults.