class Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItem
CatalogItem captures all metadata information of items to be recommended.
Attributes
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”] ` ] Corresponds to the JSON property `categoryHierarchies` @return [Array<Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy>]
Optional. Catalog item description. UTF-8 encoded string with a length limit of 5 KiB. Corresponds to the JSON property `description` @return [String]
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. Corresponds to the JSON property `id` @return [String]
FeatureMap represents extra features that customers want to include in the recommendation model for catalogs/user events as categorical/numerical features. Corresponds to the JSON property `itemAttributes` @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1FeatureMap]
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](/recommendations-ai/docs/catalog#item-group-id). Corresponds to the JSON property `itemGroupId` @return [String]
Optional. Deprecated. The model automatically detects the text language. Your catalog can include text in different languages, but duplicating catalog items to provide text in multiple languages can result in degraded model performance. Corresponds to the JSON property `languageCode` @return [String]
ProductCatalogItem captures item metadata specific to retail products. Corresponds to the JSON property `productMetadata` @return [Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1ProductCatalogItem]
Required. Catalog item title. UTF-8 encoded string with a length limit of 1 KiB. Corresponds to the JSON property `title` @return [String]
Public Class Methods
# File lib/google/apis/recommendationengine_v1beta1/classes.rb, line 319 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/recommendationengine_v1beta1/classes.rb, line 324 def update!(**args) @category_hierarchies = args[:category_hierarchies] if args.key?(:category_hierarchies) @description = args[:description] if args.key?(:description) @id = args[:id] if args.key?(:id) @item_attributes = args[:item_attributes] if args.key?(:item_attributes) @item_group_id = args[:item_group_id] if args.key?(:item_group_id) @language_code = args[:language_code] if args.key?(:language_code) @product_metadata = args[:product_metadata] if args.key?(:product_metadata) @tags = args[:tags] if args.key?(:tags) @title = args[:title] if args.key?(:title) end