Google Cloud Retail V2 Client - Class Type (1.6.4)

Reference documentation and code samples for the Google Cloud Retail V2 Client class Type.

The type of this product.

Protobuf type google.cloud.retail.v2.Product.Type

Namespace

Google \ Cloud \ Retail \ V2 \ Product

Methods

static::name

Parameter
Name Description
value mixed

static::value

Parameter
Name Description
name mixed

Constants

TYPE_UNSPECIFIED

Value: 0

Default value. Default to Catalog.product_level_config.ingestion_product_type if unset.

Generated from protobuf enum TYPE_UNSPECIFIED = 0;

PRIMARY

Value: 1

The primary type.

As the primary unit for predicting, indexing and search serving, a Type.PRIMARY Product is grouped with multiple Type.VARIANT Products.

Generated from protobuf enum PRIMARY = 1;

VARIANT

Value: 2

The variant type.

Type.VARIANT Products usually share some common attributes on the same Type.PRIMARY Products, but they have variant attributes like different colors, sizes and prices, etc.

Generated from protobuf enum VARIANT = 2;

COLLECTION

Value: 3

The collection type. Collection products are bundled Type.PRIMARY Products or Type.VARIANT Products that are sold together, such as a jewelry set with necklaces, earrings and rings, etc.

Generated from protobuf enum COLLECTION = 3;