# Google Cloud Retail V2 Client - Class Type (2.5.3)

2.5.3 (latest) 2.5.2 2.4.0 2.3.1 2.2.1 2.1.3 2.0.0 1.7.0 1.6.4 1.5.0 1.4.2 1.3.1 1.2.1 1.1.1 1.0.1 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](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.ProductLevelConfig#_Google_Cloud_Retail_V2_ProductLevelConfig__getIngestionProductType__)
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](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.Product.Type#_Google_Cloud_Retail_V2_Product_Type__PRIMARY)
[Product](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.Product) is grouped with multiple
[Type.VARIANT](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.Product.Type#_Google_Cloud_Retail_V2_Product_Type__VARIANT)
[Product](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.Product)s.

Generated from protobuf enum `PRIMARY = 1;`

### VARIANT

    Value: 2

The variant type.

[Type.VARIANT](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.Product.Type#_Google_Cloud_Retail_V2_Product_Type__VARIANT)
[Product](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.Product)s usually share some common
attributes on the same
[Type.PRIMARY](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.Product.Type#_Google_Cloud_Retail_V2_Product_Type__PRIMARY)
[Product](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.Product)s, 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](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.Product.Type#_Google_Cloud_Retail_V2_Product_Type__PRIMARY)
[Product](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.Product)s or
[Type.VARIANT](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.Product.Type#_Google_Cloud_Retail_V2_Product_Type__VARIANT)
[Product](https://docs.cloud.google.com/php/docs/reference/cloud-retail/latest/V2.Product)s that are sold together, such
as a jewelry set with necklaces, earrings and rings, etc.

Generated from protobuf enum `COLLECTION = 3;`