Enum Model.ContextProductsType (2.48.0)

public enum Model.ContextProductsType extends Enum<Model.ContextProductsType> implements ProtocolMessageEnum

Use single or multiple context products for recommendations.

Protobuf enum google.cloud.retail.v2.Model.ContextProductsType

Implements

ProtocolMessageEnum

Static Fields

Name Description
CONTEXT_PRODUCTS_TYPE_UNSPECIFIED

Unspecified default value, should never be explicitly set. Defaults to MULTIPLE_CONTEXT_PRODUCTS.

CONTEXT_PRODUCTS_TYPE_UNSPECIFIED = 0;

CONTEXT_PRODUCTS_TYPE_UNSPECIFIED_VALUE

Unspecified default value, should never be explicitly set. Defaults to MULTIPLE_CONTEXT_PRODUCTS.

CONTEXT_PRODUCTS_TYPE_UNSPECIFIED = 0;

MULTIPLE_CONTEXT_PRODUCTS

Use one or multiple products as context for the recommendation. Typically used on shopping cart pages.

MULTIPLE_CONTEXT_PRODUCTS = 2;

MULTIPLE_CONTEXT_PRODUCTS_VALUE

Use one or multiple products as context for the recommendation. Typically used on shopping cart pages.

MULTIPLE_CONTEXT_PRODUCTS = 2;

SINGLE_CONTEXT_PRODUCT

Use only a single product as context for the recommendation. Typically used on pages like add-to-cart or product details.

SINGLE_CONTEXT_PRODUCT = 1;

SINGLE_CONTEXT_PRODUCT_VALUE

Use only a single product as context for the recommendation. Typically used on pages like add-to-cart or product details.

SINGLE_CONTEXT_PRODUCT = 1;

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