# Recommendations AI v1beta1 API - Class CatalogItem (2.0.0-beta07)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.0.0-beta07 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecommendationEngine.V1Beta1/latest/Google.Cloud.RecommendationEngine.V1Beta1.CatalogItem)
- [2.0.0-beta06](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecommendationEngine.V1Beta1/2.0.0-beta06/Google.Cloud.RecommendationEngine.V1Beta1.CatalogItem)
- [1.0.0-beta03](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecommendationEngine.V1Beta1/1.0.0-beta03/Google.Cloud.RecommendationEngine.V1Beta1.CatalogItem)

    public sealed class CatalogItem : IMessage<CatalogItem>, IEquatable<CatalogItem>, IDeepCloneable<CatalogItem>, IBufferMessage, IMessage

Reference documentation and code samples for the Recommendations AI v1beta1 API class CatalogItem.

CatalogItem captures all metadata information of items to be recommended.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> CatalogItem

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CatalogItem](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecommendationEngine.V1Beta1/latest/Google.Cloud.RecommendationEngine.V1Beta1.CatalogItem), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CatalogItem](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecommendationEngine.V1Beta1/latest/Google.Cloud.RecommendationEngine.V1Beta1.CatalogItem), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CatalogItem](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecommendationEngine.V1Beta1/latest/Google.Cloud.RecommendationEngine.V1Beta1.CatalogItem), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.RecommendationEngine.V1Beta1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecommendationEngine.V1Beta1/latest/Google.Cloud.RecommendationEngine.V1Beta1)

## Assembly

Google.Cloud.RecommendationEngine.V1Beta1.dll

## Constructors

### CatalogItem()

    public CatalogItem()

### CatalogItem(CatalogItem)

    public CatalogItem(CatalogItem other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecommendationEngine.V1Beta1/latest/Google.Cloud.RecommendationEngine.V1Beta1.CatalogItem` |

## Properties

### CategoryHierarchies

    public RepeatedField<CatalogItem.Types.CategoryHierarchy> CategoryHierarchies { get; }

Required. Catalog item categories. This field is repeated for supporting
one catalog item belonging to several parallel category hierarchies.

For example, if a shoes product belongs to both
\["Shoes \& Accessories" -\> "Shoes"\] and
\["Sports \& Fitness" -\> "Athletic Clothing" -\> "Shoes"\], it could be
represented as:

     "categoryHierarchies": [
       { "categories": ["Shoes & Accessories", "Shoes"]},
       { "categories": ["Sports & Fitness", "Athletic Clothing", "Shoes"] }
     ]

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecommendationEngine.V1Beta1/latest/Google.Cloud.RecommendationEngine.V1Beta1.CatalogItemhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecommendationEngine.V1Beta1/latest/Google.Cloud.RecommendationEngine.V1Beta1.CatalogItem.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecommendationEngine.V1Beta1/latest/Google.Cloud.RecommendationEngine.V1Beta1.CatalogItem.Types.CategoryHierarchy` |   |

### Description

    public string Description { get; set; }

Optional. Catalog item description. UTF-8 encoded string with a length
limit of 5 KiB.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### Id

    public string Id { get; set; }

Required. Catalog item identifier. UTF-8 encoded string with a length limit
of 128 bytes.

This id must be unique among all catalog items within the same catalog. It
should also be used when logging user events in order for the user events
to be joined with the Catalog.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ItemAttributes

    public FeatureMap ItemAttributes { get; set; }

Optional. Highly encouraged. Extra catalog item attributes to be
included in the recommendation model. For example, for retail products,
this could include the store name, vendor, style, color, etc. These are
very strong signals for recommendation model, thus we highly recommend
providing the item attributes here.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecommendationEngine.V1Beta1/latest/Google.Cloud.RecommendationEngine.V1Beta1.FeatureMap` |   |

### ItemGroupId

    public string ItemGroupId { get; set; }

Optional. Variant group identifier for prediction results. UTF-8 encoded
string with a length limit of 128 bytes.

This field must be enabled before it can be used. [Learn
more](https://docs.cloud.google.com/recommendations-ai/docs/catalog#item-group-id).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### LanguageCode

    public string LanguageCode { get; set; }

Optional. Language of the title/description/item_attributes. Use language
tags defined by BCP 47. <https://www.rfc-editor.org/rfc/bcp/bcp47.txt>. Our
supported language codes include 'en', 'es', 'fr', 'de', 'ar', 'fa', 'zh',
'ja', 'ko', 'sv', 'ro', 'nl'. For other languages, contact
your Google account manager.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ProductMetadata

    public ProductCatalogItem ProductMetadata { get; set; }

Optional. Metadata specific to retail products.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecommendationEngine.V1Beta1/latest/Google.Cloud.RecommendationEngine.V1Beta1.ProductCatalogItem` |   |

### RecommendationTypeCase

    public CatalogItem.RecommendationTypeOneofCase RecommendationTypeCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecommendationEngine.V1Beta1/latest/Google.Cloud.RecommendationEngine.V1Beta1.CatalogItemhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.RecommendationEngine.V1Beta1/latest/Google.Cloud.RecommendationEngine.V1Beta1.CatalogItem.RecommendationTypeOneofCase` |   |

### Tags

    public RepeatedField<string> Tags { get; }

Optional. Filtering tags associated with the catalog item. Each tag should
be a UTF-8 encoded string with a length limit of 1 KiB.

This tag can be used for filtering recommendation results by passing the
tag as part of the predict request filter.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### Title

    public string Title { get; set; }

Required. Catalog item title. UTF-8 encoded string with a length limit of 1
KiB.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |