Reference documentation and code samples for the Google Cloud Retail V2 Client class FrequentlyBoughtTogetherFeaturesConfig.
Additional configs for the frequently-bought-together model type.
Generated from protobuf message google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig
Namespace
Google \ Cloud \ Retail \ V2 \ Model
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ context_products_type
int
Optional. Specifies the context of the model when it is used in predict requests. Can only be set for the frequently-bought-together type. If it isn't specified, it defaults to MULTIPLE_CONTEXT_PRODUCTS.
getContextProductsType
Optional. Specifies the context of the model when it is used in predict
requests. Can only be set for the frequently-bought-together type. If
it isn't specified, it defaults to
MULTIPLE_CONTEXT_PRODUCTS.
Returns
Type
Description
int
setContextProductsType
Optional. Specifies the context of the model when it is used in predict
requests. Can only be set for the frequently-bought-together type. If
it isn't specified, it defaults to
MULTIPLE_CONTEXT_PRODUCTS.