Google Cloud Recommendation Engine V1beta1 Client - Class CategoryHierarchy (0.7.0)

Reference documentation and code samples for the Google Cloud Recommendation Engine V1beta1 Client class CategoryHierarchy.

Category represents catalog item category hierarchy.

Generated from protobuf message google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy

Namespace

Google \ Cloud \ RecommendationEngine \ V1beta1 \ CatalogItem

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ categories array

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

getCategories

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
TypeDescription
Google\Protobuf\Internal\RepeatedField

setCategories

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

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this