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.v1.SearchRequest.SpellCorrectionSpec.Mode
Implements
ProtocolMessageEnumStatic Fields | |
---|---|
Name | Description |
AUTO | Automatic spell correction built by the Search API. Search will be based on the corrected query if found. |
AUTO_VALUE | Automatic spell correction built by the Search API. Search will be based on the corrected query if found. |
MODE_UNSPECIFIED | Unspecified spell correction mode. In this case, server behavior defaults to Mode.AUTO. |
MODE_UNSPECIFIED_VALUE | Unspecified spell correction mode. In this case, server behavior defaults to Mode.AUTO. |
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_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. |
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() |