2.16.0 (latest) 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class Audience : IMessage<Audience>, IEquatable<Audience>, IDeepCloneable<Audience>, IBufferMessage, IMessage

Reference documentation and code samples for the Retail v2 API class Audience.

An intended audience of the \[Product\]\[google.cloud.retail.v2.Product\] for
whom it's sold.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> Audience

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[Audience](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.Audience.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Audience](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.Audience.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[Audience](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.Audience.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## 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.Retail.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.md.txt)

## Assembly

Google.Cloud.Retail.V2.dll

## Constructors

### Audience()

    public Audience()

### Audience(Audience)

    public Audience(Audience other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `Audience` |

## Properties

### AgeGroups

    public RepeatedField<string> AgeGroups { get; }

The age groups of the audience. Strongly encouraged to use the standard
values: "newborn" (up to 3 months old), "infant" (3--12 months old),
"toddler" (1--5 years old), "kids" (5--13 years old), "adult" (typically
teens or older).

At most 5 values are allowed. Each value must be a UTF-8 encoded string
with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error
is returned.

Google Merchant Center property
[age_group](https://support.google.com/merchants/answer/6324463).
Schema.org property
[Product.audience.suggestedMinAge](https://schema.org/suggestedMinAge) and
[Product.audience.suggestedMaxAge](https://schema.org/suggestedMaxAge).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldstring` |   |

### Genders

    public RepeatedField<string> Genders { get; }

The genders of the audience. Strongly encouraged to use the standard
values: "male", "female", "unisex".

At most 5 values are allowed. Each value must be a UTF-8 encoded string
with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error
is returned.

Google Merchant Center property
[gender](https://support.google.com/merchants/answer/6324479). Schema.org
property
[Product.audience.suggestedGender](https://schema.org/suggestedGender).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldstring` |   |