Generated from protobuf message google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy
Namespace
Google \ Cloud \ RecommendationEngine \ V1beta1 \ CatalogItem
Methods
__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).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# Google Cloud Recommendation Engine V1beta1 Client - Class CategoryHierarchy (0.8.2)\n\nVersion latestkeyboard_arrow_down\n\n- [0.8.2 (latest)](/php/docs/reference/cloud-recommendations-ai/latest/V1beta1.CatalogItem.CategoryHierarchy)\n- [0.8.1](/php/docs/reference/cloud-recommendations-ai/0.8.1/V1beta1.CatalogItem.CategoryHierarchy)\n- [0.7.7](/php/docs/reference/cloud-recommendations-ai/0.7.7/V1beta1.CatalogItem.CategoryHierarchy)\n- [0.6.4](/php/docs/reference/cloud-recommendations-ai/0.6.4/V1beta1.CatalogItem.CategoryHierarchy)\n- [0.5.0](/php/docs/reference/cloud-recommendations-ai/0.5.0/V1beta1.CatalogItem.CategoryHierarchy)\n- [0.4.12](/php/docs/reference/cloud-recommendations-ai/0.4.12/V1beta1.CatalogItem.CategoryHierarchy) \n| **Beta**\n|\n|\n| This library is covered by the [Pre-GA Offerings Terms](/terms/service-terms#1)\n| of the Terms of Service. Pre-GA libraries might have limited support,\n| and changes to pre-GA libraries might not be compatible with other pre-GA versions.\n| For more information, see the\n[launch stage descriptions](/products#product-launch-stages). \nReference documentation and code samples for the Google Cloud Recommendation Engine V1beta1 Client class CategoryHierarchy.\n\nCategory represents catalog item category hierarchy.\n\nGenerated from protobuf message `google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ RecommendationEngine \\\\ V1beta1 \\\\ CatalogItem\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getCategories\n\nRequired. Catalog item categories. Each category should be a UTF-8\nencoded string with a length limit of 2 KiB.\n\nNote that the order in the list denotes the specificity (from least to\nmost specific).\n\n### setCategories\n\nRequired. Catalog item categories. Each category should be a UTF-8\nencoded string with a length limit of 2 KiB.\n\nNote that the order in the list denotes the specificity (from least to\nmost specific)."]]