Discovery Engine v1beta API - Class CustomAttribute (1.0.0-beta12)

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].

Inheritance

object > CustomAttribute

Namespace

Google.Cloud.DiscoveryEngine.V1Beta

Assembly

Google.Cloud.DiscoveryEngine.V1Beta.dll

Constructors

CustomAttribute()

public CustomAttribute()

CustomAttribute(CustomAttribute)

public CustomAttribute(CustomAttribute other)
Parameter
NameDescription
otherCustomAttribute

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
TypeDescription
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
TypeDescription
RepeatedFieldstring