Reference documentation and code samples for the Google Cloud Retail V2 Client class ContextProductsType.
Use single or multiple context products for recommendations.
Protobuf type google.cloud.retail.v2.Model.ContextProductsType
Namespace
Google \ Cloud \ Retail \ V2 \ ModelMethods
static::name
Parameter | |
---|---|
Name | Description |
value |
mixed
|
static::value
Parameter | |
---|---|
Name | Description |
name |
mixed
|
Constants
CONTEXT_PRODUCTS_TYPE_UNSPECIFIED
Value: 0
Unspecified default value, should never be explicitly set.
Defaults to MULTIPLE_CONTEXT_PRODUCTS.
Generated from protobuf enum CONTEXT_PRODUCTS_TYPE_UNSPECIFIED = 0;
SINGLE_CONTEXT_PRODUCT
Value: 1
Use only a single product as context for the recommendation. Typically used on pages like add-to-cart or product details.
Generated from protobuf enum SINGLE_CONTEXT_PRODUCT = 1;
MULTIPLE_CONTEXT_PRODUCTS
Value: 2
Use one or multiple products as context for the recommendation. Typically used on shopping cart pages.
Generated from protobuf enum MULTIPLE_CONTEXT_PRODUCTS = 2;