public static enum SearchRequest.QueryExpansionSpec.Condition extends Enum<SearchRequest.QueryExpansionSpec.Condition> implements com.google.protobuf.ProtocolMessageEnum
Enum describing under which condition query expansion should occur.Protobuf enum
google.cloud.retail.v2.SearchRequest.QueryExpansionSpec.Condition| Enum Constant and Description |
|---|
AUTO
Automatic query expansion built by Google Retail Search.
|
CONDITION_UNSPECIFIED
Unspecified query expansion condition.
|
DISABLED
Disabled query expansion.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
AUTO_VALUE
Automatic query expansion built by Google Retail Search.
|
static int |
CONDITION_UNSPECIFIED_VALUE
Unspecified query expansion condition.
|
static int |
DISABLED_VALUE
Disabled query expansion.
|
| Modifier and Type | Method and Description |
|---|---|
static SearchRequest.QueryExpansionSpec.Condition |
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.QueryExpansionSpec.Condition> |
internalGetValueMap() |
static SearchRequest.QueryExpansionSpec.Condition |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static SearchRequest.QueryExpansionSpec.Condition |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static SearchRequest.QueryExpansionSpec.Condition |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SearchRequest.QueryExpansionSpec.Condition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SearchRequest.QueryExpansionSpec.Condition CONDITION_UNSPECIFIED
Unspecified query expansion condition. In this case, server behavior defaults to [Condition.DISABLED][google.cloud.retail.v2.SearchRequest.QueryExpansionSpec.Condition.DISABLED].
CONDITION_UNSPECIFIED = 0;public static final SearchRequest.QueryExpansionSpec.Condition DISABLED
Disabled query expansion. Only the exact search query is used, even if [SearchResponse.total_size][google.cloud.retail.v2.SearchResponse.total_size] is zero.
DISABLED = 1;public static final SearchRequest.QueryExpansionSpec.Condition AUTO
Automatic query expansion built by Google Retail Search.
AUTO = 3;public static final SearchRequest.QueryExpansionSpec.Condition UNRECOGNIZED
public static final int CONDITION_UNSPECIFIED_VALUE
Unspecified query expansion condition. In this case, server behavior defaults to [Condition.DISABLED][google.cloud.retail.v2.SearchRequest.QueryExpansionSpec.Condition.DISABLED].
CONDITION_UNSPECIFIED = 0;public static final int DISABLED_VALUE
Disabled query expansion. Only the exact search query is used, even if [SearchResponse.total_size][google.cloud.retail.v2.SearchResponse.total_size] is zero.
DISABLED = 1;public static final int AUTO_VALUE
Automatic query expansion built by Google Retail Search.
AUTO = 3;public static SearchRequest.QueryExpansionSpec.Condition[] values()
for (SearchRequest.QueryExpansionSpec.Condition c : SearchRequest.QueryExpansionSpec.Condition.values()) System.out.println(c);
public static SearchRequest.QueryExpansionSpec.Condition 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.QueryExpansionSpec.Condition valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static SearchRequest.QueryExpansionSpec.Condition forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<SearchRequest.QueryExpansionSpec.Condition> 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.QueryExpansionSpec.Condition valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.