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\u003eThis document provides reference documentation for the \u003ccode\u003eCustomAttribute\u003c/code\u003e class within the Google Cloud Discovery Engine v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCustomAttribute\u003c/code\u003e class represents a custom attribute not explicitly defined in a resource, such as \u003ccode\u003eUserEvent\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class 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.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCustomAttribute\u003c/code\u003e supports numerical values via the \u003ccode\u003eNumbers\u003c/code\u003e property and textual values via the \u003ccode\u003eText\u003c/code\u003e property, but only one of these should be set at a time to avoid errors.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the API available is version 1.6.0, with the current document focusing on version 1.2.0 and previous versions going as far back as 1.0.0-beta06.\u003c/p\u003e\n"]]],[],null,[]]