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.
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-18 UTC."],[],[],null,["# Interface FleetPackage.VariantSelectorOrBuilder (0.6.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.6.0 (latest)](/java/docs/reference/google-cloud-configdelivery/latest/com.google.cloud.configdelivery.v1beta.FleetPackage.VariantSelectorOrBuilder)\n- [0.4.0](/java/docs/reference/google-cloud-configdelivery/0.4.0/com.google.cloud.configdelivery.v1beta.FleetPackage.VariantSelectorOrBuilder)\n- [0.2.0](/java/docs/reference/google-cloud-configdelivery/0.2.0/com.google.cloud.configdelivery.v1beta.FleetPackage.VariantSelectorOrBuilder)\n- [0.1.0](/java/docs/reference/google-cloud-configdelivery/0.1.0/com.google.cloud.configdelivery.v1beta.FleetPackage.VariantSelectorOrBuilder) \n\n public static interface FleetPackage.VariantSelectorOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getStrategyCase()\n\n public abstract FleetPackage.VariantSelector.StrategyCase getStrategyCase()\n\n### getVariantNameTemplate()\n\n public abstract String getVariantNameTemplate()\n\nRequired. variant_name_template is a template that can refer to\nvariables containing cluster membership metadata such as location,\nname, and labels to generate the name of the variant for a target\ncluster. The variable syntax is similar to the unix shell variables.\n\nAvailable variables are `${membership.name}`, `${membership.location}`,\n`${membership.project}` and `${membership.labels['label_name']}`.\n\nIf you want to deploy a specific variant, say \"default\" to all the\nclusters, you can use \"default\" (string without any variables) as\nthe variant_name_template.\n\n`string variant_name_template = 1 [(.google.api.field_behavior) = REQUIRED];`\n\n### getVariantNameTemplateBytes()\n\n public abstract ByteString getVariantNameTemplateBytes()\n\nRequired. variant_name_template is a template that can refer to\nvariables containing cluster membership metadata such as location,\nname, and labels to generate the name of the variant for a target\ncluster. The variable syntax is similar to the unix shell variables.\n\nAvailable variables are `${membership.name}`, `${membership.location}`,\n`${membership.project}` and `${membership.labels['label_name']}`.\n\nIf you want to deploy a specific variant, say \"default\" to all the\nclusters, you can use \"default\" (string without any variables) as\nthe variant_name_template.\n\n`string variant_name_template = 1 [(.google.api.field_behavior) = REQUIRED];`\n\n### hasVariantNameTemplate()\n\n public abstract boolean hasVariantNameTemplate()\n\nRequired. variant_name_template is a template that can refer to\nvariables containing cluster membership metadata such as location,\nname, and labels to generate the name of the variant for a target\ncluster. The variable syntax is similar to the unix shell variables.\n\nAvailable variables are `${membership.name}`, `${membership.location}`,\n`${membership.project}` and `${membership.labels['label_name']}`.\n\nIf you want to deploy a specific variant, say \"default\" to all the\nclusters, you can use \"default\" (string without any variables) as\nthe variant_name_template.\n\n`string variant_name_template = 1 [(.google.api.field_behavior) = REQUIRED];`"]]