public static enum SearchRequest.SearchMode extends Enum<SearchRequest.SearchMode> implements com.google.protobuf.ProtocolMessageEnum
The search mode of each search request.Protobuf enum
google.cloud.retail.v2beta.SearchRequest.SearchMode| Enum Constant and Description |
|---|
FACETED_SEARCH_ONLY
Only faceted search will be performed.
|
PRODUCT_SEARCH_ONLY
Only product search will be performed.
|
SEARCH_MODE_UNSPECIFIED
Default value.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
FACETED_SEARCH_ONLY_VALUE
Only faceted search will be performed.
|
static int |
PRODUCT_SEARCH_ONLY_VALUE
Only product search will be performed.
|
static int |
SEARCH_MODE_UNSPECIFIED_VALUE
Default value.
|
| Modifier and Type | Method and Description |
|---|---|
static SearchRequest.SearchMode |
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.SearchMode> |
internalGetValueMap() |
static SearchRequest.SearchMode |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static SearchRequest.SearchMode |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static SearchRequest.SearchMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SearchRequest.SearchMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SearchRequest.SearchMode SEARCH_MODE_UNSPECIFIED
Default value. In this case both product search and faceted search will be performed. Both [SearchResponse.SearchResult][google.cloud.retail.v2beta.SearchResponse.SearchResult] and [SearchResponse.Facet][google.cloud.retail.v2beta.SearchResponse.Facet] will be returned.
SEARCH_MODE_UNSPECIFIED = 0;public static final SearchRequest.SearchMode PRODUCT_SEARCH_ONLY
Only product search will be performed. The faceted search will be disabled. Only [SearchResponse.SearchResult][google.cloud.retail.v2beta.SearchResponse.SearchResult] will be returned. [SearchResponse.Facet][google.cloud.retail.v2beta.SearchResponse.Facet] will not be returned, even if [SearchRequest.facet_specs][google.cloud.retail.v2beta.SearchRequest.facet_specs] or [SearchRequest.dynamic_facet_spec][google.cloud.retail.v2beta.SearchRequest.dynamic_facet_spec] is set.
PRODUCT_SEARCH_ONLY = 1;public static final SearchRequest.SearchMode FACETED_SEARCH_ONLY
Only faceted search will be performed. The product search will be disabled. When in this mode, one or both of [SearchRequest.facet_specs][google.cloud.retail.v2beta.SearchRequest.facet_specs] and [SearchRequest.dynamic_facet_spec][google.cloud.retail.v2beta.SearchRequest.dynamic_facet_spec] should be set. Otherwise, an INVALID_ARGUMENT error is returned. Only [SearchResponse.Facet][google.cloud.retail.v2beta.SearchResponse.Facet] will be returned. [SearchResponse.SearchResult][google.cloud.retail.v2beta.SearchResponse.SearchResult] will not be returned.
FACETED_SEARCH_ONLY = 2;public static final SearchRequest.SearchMode UNRECOGNIZED
public static final int SEARCH_MODE_UNSPECIFIED_VALUE
Default value. In this case both product search and faceted search will be performed. Both [SearchResponse.SearchResult][google.cloud.retail.v2beta.SearchResponse.SearchResult] and [SearchResponse.Facet][google.cloud.retail.v2beta.SearchResponse.Facet] will be returned.
SEARCH_MODE_UNSPECIFIED = 0;public static final int PRODUCT_SEARCH_ONLY_VALUE
Only product search will be performed. The faceted search will be disabled. Only [SearchResponse.SearchResult][google.cloud.retail.v2beta.SearchResponse.SearchResult] will be returned. [SearchResponse.Facet][google.cloud.retail.v2beta.SearchResponse.Facet] will not be returned, even if [SearchRequest.facet_specs][google.cloud.retail.v2beta.SearchRequest.facet_specs] or [SearchRequest.dynamic_facet_spec][google.cloud.retail.v2beta.SearchRequest.dynamic_facet_spec] is set.
PRODUCT_SEARCH_ONLY = 1;public static final int FACETED_SEARCH_ONLY_VALUE
Only faceted search will be performed. The product search will be disabled. When in this mode, one or both of [SearchRequest.facet_specs][google.cloud.retail.v2beta.SearchRequest.facet_specs] and [SearchRequest.dynamic_facet_spec][google.cloud.retail.v2beta.SearchRequest.dynamic_facet_spec] should be set. Otherwise, an INVALID_ARGUMENT error is returned. Only [SearchResponse.Facet][google.cloud.retail.v2beta.SearchResponse.Facet] will be returned. [SearchResponse.SearchResult][google.cloud.retail.v2beta.SearchResponse.SearchResult] will not be returned.
FACETED_SEARCH_ONLY = 2;public static SearchRequest.SearchMode[] values()
for (SearchRequest.SearchMode c : SearchRequest.SearchMode.values()) System.out.println(c);
public static SearchRequest.SearchMode 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.SearchMode valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static SearchRequest.SearchMode forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<SearchRequest.SearchMode> 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.SearchMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 Google LLC. All rights reserved.