public sealed class CustomAttribute : IMessage<CustomAttribute>, IEquatable<CustomAttribute>, IDeepCloneable<CustomAttribute>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1 API class CustomAttribute.
A custom attribute that is not explicitly modeled in a resource, e.g.
[UserEvent][google.cloud.discoveryengine.v1.UserEvent].
The numerical values of this custom attribute. For example, [2.3, 15.4]
when the key is "lengths_cm".
Exactly one of
[CustomAttribute.text][google.cloud.discoveryengine.v1.CustomAttribute.text]
or
[CustomAttribute.numbers][google.cloud.discoveryengine.v1.CustomAttribute.numbers]
should be set. Otherwise, an INVALID_ARGUMENT error is returned.
The textual values of this custom attribute. For example, ["yellow",
"green"] when the key is "color".
Empty string is not allowed. Otherwise, an INVALID_ARGUMENT error is
returned.
Exactly one of
[CustomAttribute.text][google.cloud.discoveryengine.v1.CustomAttribute.text]
or
[CustomAttribute.numbers][google.cloud.discoveryengine.v1.CustomAttribute.numbers]
should be set. Otherwise, an INVALID_ARGUMENT error is returned.
[[["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 latest version of the \u003ccode\u003eCustomAttribute\u003c/code\u003e API class is 1.6.0, with 1.3.0 being one of the available versions.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCustomAttribute\u003c/code\u003e is a class in the \u003ccode\u003eGoogle.Cloud.DiscoveryEngine.V1\u003c/code\u003e namespace, which can be used to represent attributes not specifically defined within a resource like \u003ccode\u003eUserEvent\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCustomAttribute\u003c/code\u003e class implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCustomAttribute\u003c/code\u003e class provides two properties, \u003ccode\u003eNumbers\u003c/code\u003e and \u003ccode\u003eText\u003c/code\u003e, to hold either numerical or textual values, and only one of these should be populated.\u003c/p\u003e\n"],["\u003cp\u003eThe CustomAttribute class provides two constructors, one of which provides the capability to copy another CustomAttribute instance.\u003c/p\u003e\n"]]],[],null,[]]