# Interface ConfigVariableTemplateOrBuilder (0.44.0)

0.44.0 (latest) 0.41.0 0.40.0 0.38.0 0.36.0 0.35.0 0.34.0 0.33.0 0.31.0 0.29.0 0.28.0 0.27.0 0.26.0 0.25.0 0.23.0 0.21.0 0.20.0 0.17.0 0.16.0 0.15.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.2.0 0.1.0

    public interface ConfigVariableTemplateOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getDescription()

    public abstract String getDescription()

Optional. Description.

`string description = 3 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The description. |

### getDescriptionBytes()

    public abstract ByteString getDescriptionBytes()

Optional. Description.

`string description = 3 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for description. |

### getEnumOptions(int index)

    public abstract ConfigValueOption getEnumOptions(int index)

Optional. Enum options. To be populated if `ValueType` is `ENUM`.

`
repeated .google.cloud.apihub.v1.ConfigValueOption enum_options = 6 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-apihub/latest/com.google.cloud.apihub.v1.ConfigValueOption` |   |

### getEnumOptionsCount()

    public abstract int getEnumOptionsCount()

Optional. Enum options. To be populated if `ValueType` is `ENUM`.

`
repeated .google.cloud.apihub.v1.ConfigValueOption enum_options = 6 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getEnumOptionsList()

    public abstract List<ConfigValueOption> getEnumOptionsList()

Optional. Enum options. To be populated if `ValueType` is `ENUM`.

`
repeated .google.cloud.apihub.v1.ConfigValueOption enum_options = 6 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-apihub/latest/com.google.cloud.apihub.v1.ConfigValueOption>` |   |

### getEnumOptionsOrBuilder(int index)

    public abstract ConfigValueOptionOrBuilder getEnumOptionsOrBuilder(int index)

Optional. Enum options. To be populated if `ValueType` is `ENUM`.

`
repeated .google.cloud.apihub.v1.ConfigValueOption enum_options = 6 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-apihub/latest/com.google.cloud.apihub.v1.ConfigValueOptionOrBuilder` |   |

### getEnumOptionsOrBuilderList()

    public abstract List<? extends ConfigValueOptionOrBuilder> getEnumOptionsOrBuilderList()

Optional. Enum options. To be populated if `ValueType` is `ENUM`.

`
repeated .google.cloud.apihub.v1.ConfigValueOption enum_options = 6 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.apihub.v1.ConfigValueOptionOrBuilder>` |   |

### getId()

    public abstract String getId()

Required. ID of the config variable. Must be unique within the
configuration.

`string id = 1 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The id. |

### getIdBytes()

    public abstract ByteString getIdBytes()

Required. ID of the config variable. Must be unique within the
configuration.

`string id = 1 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for id. |

### getMultiSelectOptions(int index)

    public abstract ConfigValueOption getMultiSelectOptions(int index)

Optional. Multi select options. To be populated if `ValueType` is
`MULTI_SELECT`.

`
repeated .google.cloud.apihub.v1.ConfigValueOption multi_select_options = 7 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-apihub/latest/com.google.cloud.apihub.v1.ConfigValueOption` |   |

### getMultiSelectOptionsCount()

    public abstract int getMultiSelectOptionsCount()

Optional. Multi select options. To be populated if `ValueType` is
`MULTI_SELECT`.

`
repeated .google.cloud.apihub.v1.ConfigValueOption multi_select_options = 7 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getMultiSelectOptionsList()

    public abstract List<ConfigValueOption> getMultiSelectOptionsList()

Optional. Multi select options. To be populated if `ValueType` is
`MULTI_SELECT`.

`
repeated .google.cloud.apihub.v1.ConfigValueOption multi_select_options = 7 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-apihub/latest/com.google.cloud.apihub.v1.ConfigValueOption>` |   |

### getMultiSelectOptionsOrBuilder(int index)

    public abstract ConfigValueOptionOrBuilder getMultiSelectOptionsOrBuilder(int index)

Optional. Multi select options. To be populated if `ValueType` is
`MULTI_SELECT`.

`
repeated .google.cloud.apihub.v1.ConfigValueOption multi_select_options = 7 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-apihub/latest/com.google.cloud.apihub.v1.ConfigValueOptionOrBuilder` |   |

### getMultiSelectOptionsOrBuilderList()

    public abstract List<? extends ConfigValueOptionOrBuilder> getMultiSelectOptionsOrBuilderList()

Optional. Multi select options. To be populated if `ValueType` is
`MULTI_SELECT`.

`
repeated .google.cloud.apihub.v1.ConfigValueOption multi_select_options = 7 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.apihub.v1.ConfigValueOptionOrBuilder>` |   |

### getRequired()

    public abstract boolean getRequired()

Optional. Flag represents that this `ConfigVariable` must be provided for a
PluginInstance.

`bool required = 5 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The required. |

### getValidationRegex()

    public abstract String getValidationRegex()

Optional. Regular expression in RE2 syntax used for validating the `value`
of a `ConfigVariable`.

`string validation_regex = 4 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The validationRegex. |

### getValidationRegexBytes()

    public abstract ByteString getValidationRegexBytes()

Optional. Regular expression in RE2 syntax used for validating the `value`
of a `ConfigVariable`.

`string validation_regex = 4 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for validationRegex. |

### getValueType()

    public abstract ConfigVariableTemplate.ValueType getValueType()

Required. Type of the parameter: string, int, bool etc.

`
.google.cloud.apihub.v1.ConfigVariableTemplate.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-apihub/latest/com.google.cloud.apihub.v1.ConfigVariableTemplate.ValueType` | The valueType. |

### getValueTypeValue()

    public abstract int getValueTypeValue()

Required. Type of the parameter: string, int, bool etc.

`
.google.cloud.apihub.v1.ConfigVariableTemplate.ValueType value_type = 2 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for valueType. |