CatalogItemArgs

data class CatalogItemArgs(val catalogId: Output<String>? = null, val categoryHierarchies: Output<List<GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchyArgs>>? = null, val description: Output<String>? = null, val id: Output<String>? = null, val itemAttributes: Output<GoogleCloudRecommendationengineV1beta1FeatureMapArgs>? = null, val itemGroupId: Output<String>? = null, val languageCode: Output<String>? = null, val location: Output<String>? = null, val productMetadata: Output<GoogleCloudRecommendationengineV1beta1ProductCatalogItemArgs>? = null, val project: Output<String>? = null, val tags: Output<List<String>>? = null, val title: Output<String>? = null) : ConvertibleToJava<CatalogItemArgs>

Creates a catalog item. Auto-naming is currently not supported for this resource.

Constructors

Link copied to clipboard
fun CatalogItemArgs(catalogId: Output<String>? = null, categoryHierarchies: Output<List<GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchyArgs>>? = null, description: Output<String>? = null, id: Output<String>? = null, itemAttributes: Output<GoogleCloudRecommendationengineV1beta1FeatureMapArgs>? = null, itemGroupId: Output<String>? = null, languageCode: Output<String>? = null, location: Output<String>? = null, productMetadata: Output<GoogleCloudRecommendationengineV1beta1ProductCatalogItemArgs>? = null, project: Output<String>? = null, tags: Output<List<String>>? = null, title: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): CatalogItemArgs

Properties

Link copied to clipboard
val catalogId: Output<String>? = null
Link copied to clipboard

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" } ]

Link copied to clipboard
val description: Output<String>? = null

Optional. Catalog item description. UTF-8 encoded string with a length limit of 5 KiB.

Link copied to clipboard
val id: Output<String>? = null

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.

Link copied to clipboard

Optional. Highly encouraged. Extra catalog item attributes to be included in the recommendation model. For example, for retail products, this could include the store name, vendor, style, color, etc. These are very strong signals for recommendation model, thus we highly recommend providing the item attributes here.

Link copied to clipboard
val itemGroupId: Output<String>? = null

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. /recommendations-ai/docs/catalog#item-group-id.

Link copied to clipboard
val languageCode: Output<String>? = null

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.

Link copied to clipboard
val location: Output<String>? = null
Link copied to clipboard

Optional. Metadata specific to retail products.

Link copied to clipboard
val project: Output<String>? = null
Link copied to clipboard
val tags: Output<List<String>>? = null

Optional. Filtering tags associated with the catalog item. Each tag should be a UTF-8 encoded string with a length limit of 1 KiB. This tag can be used for filtering recommendation results by passing the tag as part of the predict request filter.

Link copied to clipboard
val title: Output<String>? = null

Catalog item title. UTF-8 encoded string with a length limit of 1 KiB.