Enum SearchRequest.SpellCorrectionSpec.Mode (2.24.0)

public enum SearchRequest.SpellCorrectionSpec.Mode extends Enum<SearchRequest.SpellCorrectionSpec.Mode> implements ProtocolMessageEnum

Enum describing under which mode spell correction should occur.

Protobuf enum google.cloud.retail.v2alpha.SearchRequest.SpellCorrectionSpec.Mode

Implements

ProtocolMessageEnum

Static Fields

NameDescription
AUTO

Automatic spell correction built by Google Retail Search. Search will be based on the corrected query if found.

AUTO = 2;

AUTO_VALUE

Automatic spell correction built by Google Retail Search. Search will be based on the corrected query if found.

AUTO = 2;

MODE_UNSPECIFIED

Unspecified spell correction mode. In this case, server behavior defaults to Mode.AUTO.

MODE_UNSPECIFIED = 0;

MODE_UNSPECIFIED_VALUE

Unspecified spell correction mode. In this case, server behavior defaults to Mode.AUTO.

MODE_UNSPECIFIED = 0;

SUGGESTION_ONLY

Google Retail Search will try to find a spell suggestion if there is any and put in the SearchResponse.corrected_query. The spell suggestion will not be used as the search query.

SUGGESTION_ONLY = 1;

SUGGESTION_ONLY_VALUE

Google Retail Search will try to find a spell suggestion if there is any and put in the SearchResponse.corrected_query. The spell suggestion will not be used as the search query.

SUGGESTION_ONLY = 1;

UNRECOGNIZED

Static Methods

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

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

NameDescription
getDescriptorForType()
getNumber()
getValueDescriptor()