Enum Product.Type (2.25.0)

public enum Product.Type extends Enum<Product.Type> implements ProtocolMessageEnum

The type of this product.

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

Implements

ProtocolMessageEnum

Static Fields

NameDescription
COLLECTION

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.

COLLECTION = 3;

COLLECTION_VALUE

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.

COLLECTION = 3;

PRIMARY

The primary type.

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

PRIMARY = 1;

PRIMARY_VALUE

The primary type.

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

PRIMARY = 1;

TYPE_UNSPECIFIED

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

TYPE_UNSPECIFIED = 0;

TYPE_UNSPECIFIED_VALUE

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

TYPE_UNSPECIFIED = 0;

UNRECOGNIZED
VARIANT

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.

VARIANT = 2;

VARIANT_VALUE

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.

VARIANT = 2;

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