public static enum SearchRequest.SpellCorrectionSpec.Mode extends Enum<SearchRequest.SpellCorrectionSpec.Mode> implements com.google.protobuf.ProtocolMessageEnum
Enum describing under which mode spell correction should occur.Protobuf enum
google.cloud.retail.v2alpha.SearchRequest.SpellCorrectionSpec.Mode| Enum Constant and Description |
|---|
AUTO
Automatic spell correction built by Google Retail Search.
|
MODE_UNSPECIFIED
Unspecified spell correction mode.
|
SUGGESTION_ONLY
Google Retail Search will try to find a spell suggestion if there
is any and put in the
[SearchResponse.corrected_query][google.cloud.retail.v2alpha.SearchResponse.corrected_query].
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
AUTO_VALUE
Automatic spell correction built by Google Retail Search.
|
static int |
MODE_UNSPECIFIED_VALUE
Unspecified spell correction mode.
|
static int |
SUGGESTION_ONLY_VALUE
Google Retail Search will try to find a spell suggestion if there
is any and put in the
[SearchResponse.corrected_query][google.cloud.retail.v2alpha.SearchResponse.corrected_query].
|
| Modifier and Type | Method and Description |
|---|---|
static SearchRequest.SpellCorrectionSpec.Mode |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<SearchRequest.SpellCorrectionSpec.Mode> |
internalGetValueMap() |
static SearchRequest.SpellCorrectionSpec.Mode |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static SearchRequest.SpellCorrectionSpec.Mode |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static SearchRequest.SpellCorrectionSpec.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SearchRequest.SpellCorrectionSpec.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SearchRequest.SpellCorrectionSpec.Mode MODE_UNSPECIFIED
Unspecified spell correction mode. In this case, server behavior defaults to [Mode.AUTO][google.cloud.retail.v2alpha.SearchRequest.SpellCorrectionSpec.Mode.AUTO].
MODE_UNSPECIFIED = 0;public static final SearchRequest.SpellCorrectionSpec.Mode SUGGESTION_ONLY
Google Retail Search will try to find a spell suggestion if there is any and put in the [SearchResponse.corrected_query][google.cloud.retail.v2alpha.SearchResponse.corrected_query]. The spell suggestion will not be used as the search query.
SUGGESTION_ONLY = 1;public static final SearchRequest.SpellCorrectionSpec.Mode AUTO
Automatic spell correction built by Google Retail Search. Search will be based on the corrected query if found.
AUTO = 2;public static final SearchRequest.SpellCorrectionSpec.Mode UNRECOGNIZED
public static final int MODE_UNSPECIFIED_VALUE
Unspecified spell correction mode. In this case, server behavior defaults to [Mode.AUTO][google.cloud.retail.v2alpha.SearchRequest.SpellCorrectionSpec.Mode.AUTO].
MODE_UNSPECIFIED = 0;public static final int SUGGESTION_ONLY_VALUE
Google Retail Search will try to find a spell suggestion if there is any and put in the [SearchResponse.corrected_query][google.cloud.retail.v2alpha.SearchResponse.corrected_query]. The spell suggestion will not be used as the search query.
SUGGESTION_ONLY = 1;public static final int AUTO_VALUE
Automatic spell correction built by Google Retail Search. Search will be based on the corrected query if found.
AUTO = 2;public static SearchRequest.SpellCorrectionSpec.Mode[] values()
for (SearchRequest.SpellCorrectionSpec.Mode c : SearchRequest.SpellCorrectionSpec.Mode.values()) System.out.println(c);
public static SearchRequest.SpellCorrectionSpec.Mode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static SearchRequest.SpellCorrectionSpec.Mode valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static SearchRequest.SpellCorrectionSpec.Mode forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<SearchRequest.SpellCorrectionSpec.Mode> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static SearchRequest.SpellCorrectionSpec.Mode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 Google LLC. All rights reserved.