# Recommendations AI V1beta1 API - Class Google::Cloud::RecommendationEngine::V1beta1::CatalogItem::CategoryHierarchy (v0.18.0)

0.18.0 (latest) 0.17.1 0.16.0 0.15.1 0.14.0 0.13.0 0.12.1 0.11.0 0.10.0 0.9.2 0.8.2 0.7.0 0.6.1 0.5.0 0.4.1 0.3.7 Reference documentation and code samples for the Recommendations AI V1beta1 API class Google::Cloud::RecommendationEngine::V1beta1::CatalogItem::CategoryHierarchy.

Category represents catalog item category hierarchy.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #categories

    def categories() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Required. Catalog item categories. Each category should be a UTF-8 encoded string with a length limit of 2 KiB.

  Note that the order in the list denotes the specificity (from least to
  most specific).

### #categories=

    def categories=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Required. Catalog item categories. Each category should be a UTF-8 encoded string with a length limit of 2 KiB.


  Note that the order in the list denotes the specificity (from least to
  most specific).
**Returns**

- (::Array\<::String\>) --- Required. Catalog item categories. Each category should be a UTF-8 encoded string with a length limit of 2 KiB.

  Note that the order in the list denotes the specificity (from least to
  most specific).