public sealed class CustomAttribute : IMessage<CustomAttribute>, IEquatable<CustomAttribute>, IDeepCloneable<CustomAttribute>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1beta API class CustomAttribute.
A custom attribute that is not explicitly modeled in a resource, e.g. [UserEvent][google.cloud.discoveryengine.v1beta.UserEvent].
Implements
IMessageCustomAttribute, IEquatableCustomAttribute, IDeepCloneableCustomAttribute, IBufferMessage, IMessageNamespace
Google.Cloud.DiscoveryEngine.V1BetaAssembly
Google.Cloud.DiscoveryEngine.V1Beta.dll
Constructors
CustomAttribute()
public CustomAttribute()
CustomAttribute(CustomAttribute)
public CustomAttribute(CustomAttribute other)
Parameter | |
---|---|
Name | Description |
other | CustomAttribute |
Properties
Numbers
public RepeatedField<double> Numbers { get; }
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.v1beta.CustomAttribute.text]
or
[CustomAttribute.numbers][google.cloud.discoveryengine.v1beta.CustomAttribute.numbers]
should be set. Otherwise, an INVALID_ARGUMENT
error is returned.
Property Value | |
---|---|
Type | Description |
RepeatedFielddouble |
Text
public RepeatedField<string> Text { get; }
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.v1beta.CustomAttribute.text]
or
[CustomAttribute.numbers][google.cloud.discoveryengine.v1beta.CustomAttribute.numbers]
should be set. Otherwise, an INVALID_ARGUMENT
error is returned.
Property Value | |
---|---|
Type | Description |
RepeatedFieldstring |