# Config Delivery v1beta API - Class FleetPackage.Types.VariantSelector (1.0.0-beta01)

    public sealed class FleetPackage.Types.VariantSelector : IMessage<FleetPackage.Types.VariantSelector>, IEquatable<FleetPackage.Types.VariantSelector>, IDeepCloneable<FleetPackage.Types.VariantSelector>, IBufferMessage, IMessage

Reference documentation and code samples for the Config Delivery v1beta API class FleetPackage.Types.VariantSelector.

VariantSelector contains information for selecting a variant in
`ResourceBundle` to deploy to a target cluster.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[FleetPackage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfigDelivery.V1Beta/latest/Google.Cloud.ConfigDelivery.V1Beta.FleetPackage)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfigDelivery.V1Beta/latest/Google.Cloud.ConfigDelivery.V1Beta.FleetPackage.Types)[VariantSelector](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfigDelivery.V1Beta/latest/Google.Cloud.ConfigDelivery.V1Beta.FleetPackage.Types.VariantSelector), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[FleetPackage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfigDelivery.V1Beta/latest/Google.Cloud.ConfigDelivery.V1Beta.FleetPackage)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfigDelivery.V1Beta/latest/Google.Cloud.ConfigDelivery.V1Beta.FleetPackage.Types)[VariantSelector](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfigDelivery.V1Beta/latest/Google.Cloud.ConfigDelivery.V1Beta.FleetPackage.Types.VariantSelector), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[FleetPackage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfigDelivery.V1Beta/latest/Google.Cloud.ConfigDelivery.V1Beta.FleetPackage)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfigDelivery.V1Beta/latest/Google.Cloud.ConfigDelivery.V1Beta.FleetPackage.Types)[VariantSelector](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfigDelivery.V1Beta/latest/Google.Cloud.ConfigDelivery.V1Beta.FleetPackage.Types.VariantSelector), [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.ConfigDelivery.V1Beta](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfigDelivery.V1Beta/latest/Google.Cloud.ConfigDelivery.V1Beta)

## Assembly

Google.Cloud.ConfigDelivery.V1Beta.dll

## Constructors

### VariantSelector()

    public VariantSelector()

### VariantSelector(VariantSelector)

    public VariantSelector(FleetPackage.Types.VariantSelector other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfigDelivery.V1Beta/latest/Google.Cloud.ConfigDelivery.V1Beta.FleetPackagehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfigDelivery.V1Beta/latest/Google.Cloud.ConfigDelivery.V1Beta.FleetPackage.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfigDelivery.V1Beta/latest/Google.Cloud.ConfigDelivery.V1Beta.FleetPackage.Types.VariantSelector` |

## Properties

### HasVariantNameTemplate

    public bool HasVariantNameTemplate { get; }

Gets whether the "variant_name_template" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### StrategyCase

    public FleetPackage.Types.VariantSelector.StrategyOneofCase StrategyCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfigDelivery.V1Beta/latest/Google.Cloud.ConfigDelivery.V1Beta.FleetPackagehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfigDelivery.V1Beta/latest/Google.Cloud.ConfigDelivery.V1Beta.FleetPackage.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfigDelivery.V1Beta/latest/Google.Cloud.ConfigDelivery.V1Beta.FleetPackage.Types.VariantSelectorhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ConfigDelivery.V1Beta/latest/Google.Cloud.ConfigDelivery.V1Beta.FleetPackage.Types.VariantSelector.StrategyOneofCase` |   |

### VariantNameTemplate

    public string VariantNameTemplate { get; set; }

Required. variant_name_template is a template that can refer to
variables containing cluster membership metadata such as location,
name, and labels to generate the name of the variant for a target
cluster. The variable syntax is similar to the unix shell variables.

Available variables are `${membership.name}`, `${membership.location}`,
`${membership.project}` and `${membership.labels['label_name']}`.

If you want to deploy a specific variant, say "default" to all the
clusters, you can use "default" (string without any variables) as
the variant_name_template.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |