Enum SearchRequest.RelevanceThreshold (2.48.0)

public enum SearchRequest.RelevanceThreshold extends Enum<SearchRequest.RelevanceThreshold> implements ProtocolMessageEnum

The relevance threshold of the search results. The higher relevance threshold is, the higher relevant results are shown and the less number of results are returned.

Protobuf enum google.cloud.retail.v2alpha.SearchRequest.RelevanceThreshold

Implements

ProtocolMessageEnum

Static Fields

Name Description
HIGH

High relevance threshold.

HIGH = 1;

HIGH_VALUE

High relevance threshold.

HIGH = 1;

LOW

Low relevance threshold.

LOW = 3;

LOWEST

Lowest relevance threshold.

LOWEST = 4;

LOWEST_VALUE

Lowest relevance threshold.

LOWEST = 4;

LOW_VALUE

Low relevance threshold.

LOW = 3;

MEDIUM

Medium relevance threshold.

MEDIUM = 2;

MEDIUM_VALUE

Medium relevance threshold.

MEDIUM = 2;

RELEVANCE_THRESHOLD_UNSPECIFIED

Default value. In this case, server behavior defaults to RelevanceThreshold.HIGH.

RELEVANCE_THRESHOLD_UNSPECIFIED = 0;

RELEVANCE_THRESHOLD_UNSPECIFIED_VALUE

Default value. In this case, server behavior defaults to RelevanceThreshold.HIGH.

RELEVANCE_THRESHOLD_UNSPECIFIED = 0;

UNRECOGNIZED

Static Methods

Name Description
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()