public static final class FleetPackage.VariantSelector.Builder extends GeneratedMessage.Builder<FleetPackage.VariantSelector.Builder> implements FleetPackage.VariantSelectorOrBuilder VariantSelector contains information for selecting a variant in
ResourceBundle to deploy to a target cluster.
Protobuf type google.cloud.configdelivery.v1.FleetPackage.VariantSelector
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > FleetPackage.VariantSelector.BuilderImplements
FleetPackage.VariantSelectorOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public FleetPackage.VariantSelector build()| Returns | |
|---|---|
| Type | Description |
FleetPackage.VariantSelector |
|
buildPartial()
public FleetPackage.VariantSelector buildPartial()| Returns | |
|---|---|
| Type | Description |
FleetPackage.VariantSelector |
|
clear()
public FleetPackage.VariantSelector.Builder clear()| Returns | |
|---|---|
| Type | Description |
FleetPackage.VariantSelector.Builder |
|
clearStrategy()
public FleetPackage.VariantSelector.Builder clearStrategy()| Returns | |
|---|---|
| Type | Description |
FleetPackage.VariantSelector.Builder |
|
clearVariantNameTemplate()
public FleetPackage.VariantSelector.Builder clearVariantNameTemplate()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.
string variant_name_template = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
FleetPackage.VariantSelector.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public FleetPackage.VariantSelector getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
FleetPackage.VariantSelector |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getStrategyCase()
public FleetPackage.VariantSelector.StrategyCase getStrategyCase()| Returns | |
|---|---|
| Type | Description |
FleetPackage.VariantSelector.StrategyCase |
|
getVariantNameTemplate()
public String getVariantNameTemplate()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.
string variant_name_template = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The variantNameTemplate. |
getVariantNameTemplateBytes()
public ByteString getVariantNameTemplateBytes()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.
string variant_name_template = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for variantNameTemplate. |
hasVariantNameTemplate()
public boolean hasVariantNameTemplate()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.
string variant_name_template = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the variantNameTemplate field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(FleetPackage.VariantSelector other)
public FleetPackage.VariantSelector.Builder mergeFrom(FleetPackage.VariantSelector other)| Parameter | |
|---|---|
| Name | Description |
other |
FleetPackage.VariantSelector |
| Returns | |
|---|---|
| Type | Description |
FleetPackage.VariantSelector.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public FleetPackage.VariantSelector.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
FleetPackage.VariantSelector.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public FleetPackage.VariantSelector.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
FleetPackage.VariantSelector.Builder |
|
setVariantNameTemplate(String value)
public FleetPackage.VariantSelector.Builder setVariantNameTemplate(String value)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.
string variant_name_template = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe variantNameTemplate to set. |
| Returns | |
|---|---|
| Type | Description |
FleetPackage.VariantSelector.Builder |
This builder for chaining. |
setVariantNameTemplateBytes(ByteString value)
public FleetPackage.VariantSelector.Builder setVariantNameTemplateBytes(ByteString value)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.
string variant_name_template = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for variantNameTemplate to set. |
| Returns | |
|---|---|
| Type | Description |
FleetPackage.VariantSelector.Builder |
This builder for chaining. |