Enum SearchRequest.SpellCorrectionSpec.Mode (0.18.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.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Mode

Implements

ProtocolMessageEnum

Static Fields

NameDescription
AUTO

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

AUTO = 2;

AUTO_VALUE

Automatic spell correction built by the Search API. 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

Search API 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

Search API 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()