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 \ CatalogItemMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$this |