Discovery Engine v1 API - Class CustomAttribute (1.4.0)

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

Inheritance

object > CustomAttribute

Namespace

Google.Cloud.DiscoveryEngine.V1

Assembly

Google.Cloud.DiscoveryEngine.V1.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.v1.CustomAttribute.text] or [CustomAttribute.numbers][google.cloud.discoveryengine.v1.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.v1.CustomAttribute.text] or [CustomAttribute.numbers][google.cloud.discoveryengine.v1.CustomAttribute.numbers] should be set. Otherwise, an INVALID_ARGUMENT error is returned.

Property Value
Type Description
RepeatedFieldstring