Interface SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpecOrBuilder (0.90.0)

public static interface SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpecOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getRelevanceThreshold()

public abstract SearchRequest.RelevanceThreshold getRelevanceThreshold()

Pre-defined relevance threshold for the sub-search.

.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold relevance_threshold = 1;

Returns
Type Description
SearchRequest.RelevanceThreshold

The relevanceThreshold.

getRelevanceThresholdSpecCase()

public abstract SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec.RelevanceThresholdSpecCase getRelevanceThresholdSpecCase()
Returns
Type Description
SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec.RelevanceThresholdSpecCase

getRelevanceThresholdValue()

public abstract int getRelevanceThresholdValue()

Pre-defined relevance threshold for the sub-search.

.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold relevance_threshold = 1;

Returns
Type Description
int

The enum numeric value on the wire for relevanceThreshold.

getSemanticRelevanceThreshold()

public abstract float getSemanticRelevanceThreshold()

Custom relevance threshold for the sub-search. The value must be in [0.0, 1.0].

float semantic_relevance_threshold = 2;

Returns
Type Description
float

The semanticRelevanceThreshold.

hasRelevanceThreshold()

public abstract boolean hasRelevanceThreshold()

Pre-defined relevance threshold for the sub-search.

.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold relevance_threshold = 1;

Returns
Type Description
boolean

Whether the relevanceThreshold field is set.

hasSemanticRelevanceThreshold()

public abstract boolean hasSemanticRelevanceThreshold()

Custom relevance threshold for the sub-search. The value must be in [0.0, 1.0].

float semantic_relevance_threshold = 2;

Returns
Type Description
boolean

Whether the semanticRelevanceThreshold field is set.