public sealed class FeatureMap : IMessage<FeatureMap>, IEquatable<FeatureMap>, IDeepCloneable<FeatureMap>, IBufferMessage, IMessage
FeatureMap represents extra features that customers want to include in the
recommendation model for catalogs/user events as categorical/numerical
features.
public MapField<string, FeatureMap.Types.StringList> CategoricalFeatures { get; }
Categorical features that can take on one of a limited number of possible
values. Some examples would be the brand/maker of a product, or country of
a customer.
Feature names and values must be UTF-8 encoded strings.
For example: { "colors": {"value": ["yellow", "green"]},
"sizes": {"value":["S", "M"]}
[[["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."],[[["\u003cp\u003eThe \u003ccode\u003eFeatureMap\u003c/code\u003e class allows you to include extra categorical or numerical features in the recommendation model for catalogs or user events.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eFeatureMap\u003c/code\u003e implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, indicating its capabilities for message handling, comparison, deep cloning, and buffer message operations.\u003c/p\u003e\n"],["\u003cp\u003eThe class contains properties \u003ccode\u003eCategoricalFeatures\u003c/code\u003e and \u003ccode\u003eNumericalFeatures\u003c/code\u003e, which are both \u003ccode\u003eMapField\u003c/code\u003e types used to store feature data using UTF-8 encoded strings as keys and corresponding list types as values.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available for the \u003ccode\u003eFeatureMap\u003c/code\u003e class, one default constructor and one that takes another \u003ccode\u003eFeatureMap\u003c/code\u003e as an argument for cloning.\u003c/p\u003e\n"],["\u003cp\u003eIt is part of the \u003ccode\u003eGoogle.Cloud.RecommendationEngine.V1Beta1\u003c/code\u003e namespace and is included in the \u003ccode\u003eGoogle.Cloud.RecommendationEngine.V1Beta1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,[]]