Enum SearchRequest.SearchMode (2.36.0)

public enum SearchRequest.SearchMode extends Enum<SearchRequest.SearchMode> implements ProtocolMessageEnum

The search mode of each search request.

Protobuf enum google.cloud.retail.v2alpha.SearchRequest.SearchMode

Implements

ProtocolMessageEnum

Static Fields

NameDescription
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 and SearchRequest.dynamic_facet_spec should be set. Otherwise, an INVALID_ARGUMENT error is returned. Only SearchResponse.Facet will be returned. SearchResponse.SearchResult will not be returned.

FACETED_SEARCH_ONLY = 2;

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 and SearchRequest.dynamic_facet_spec should be set. Otherwise, an INVALID_ARGUMENT error is returned. Only SearchResponse.Facet will be returned. SearchResponse.SearchResult will not be returned.

FACETED_SEARCH_ONLY = 2;

PRODUCT_SEARCH_ONLY

Only product search will be performed. The faceted search will be disabled.

Only SearchResponse.SearchResult will be returned. SearchResponse.Facet will not be returned, even if SearchRequest.facet_specs or SearchRequest.dynamic_facet_spec is set.

PRODUCT_SEARCH_ONLY = 1;

PRODUCT_SEARCH_ONLY_VALUE

Only product search will be performed. The faceted search will be disabled.

Only SearchResponse.SearchResult will be returned. SearchResponse.Facet will not be returned, even if SearchRequest.facet_specs or SearchRequest.dynamic_facet_spec is set.

PRODUCT_SEARCH_ONLY = 1;

SEARCH_MODE_UNSPECIFIED

Default value. In this case both product search and faceted search will be performed. Both SearchResponse.SearchResult and SearchResponse.Facet will be returned.

SEARCH_MODE_UNSPECIFIED = 0;

SEARCH_MODE_UNSPECIFIED_VALUE

Default value. In this case both product search and faceted search will be performed. Both SearchResponse.SearchResult and SearchResponse.Facet will be returned.

SEARCH_MODE_UNSPECIFIED = 0;

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