1.0.0-beta25 (latest) 1.0.0-beta24

    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](https://learn.microsoft.com/dotnet/api/system.object) \> CustomAttribute

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CustomAttribute](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.CustomAttribute), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CustomAttribute](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.CustomAttribute), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CustomAttribute](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.CustomAttribute), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.DiscoveryEngine.V1Beta](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta)

## Assembly

Google.Cloud.DiscoveryEngine.V1Beta.dll

## Constructors

### CustomAttribute()

    public CustomAttribute()

### CustomAttribute(CustomAttribute)

    public CustomAttribute(CustomAttribute other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.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** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://learn.microsoft.com/dotnet/api/system.double` |   |

### 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** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://learn.microsoft.com/dotnet/api/system.string` |   |