0.5.3 (latest) 0.4.4 0.3.0 0.2.1 0.1.4 Reference documentation and code samples for the Google Cloud Api Hub V1 Client class ConfigVariable.

ConfigVariable represents a additional configuration variable present in a
PluginInstance Config or AuthConfig, based on a ConfigVariableTemplate.

Generated from protobuf message `google.cloud.apihub.v1.ConfigVariable`

## Namespace

Google \\ Cloud \\ ApiHub \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ string_value` | `string` Optional. The config variable value in case of config variable of type string. |
| `↳ int_value` | `int|string` Optional. The config variable value in case of config variable of type integer. |
| `↳ bool_value` | `bool` Optional. The config variable value in case of config variable of type boolean. |
| `↳ secret_value` | `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.Secret` Optional. The config variable value in case of config variable of type secret. |
| `↳ enum_value` | `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.ConfigValueOption` Optional. The config variable value in case of config variable of type enum. |
| `↳ multi_select_values` | `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.ConfigVariable.MultiSelectValues` Optional. The config variable value in case of config variable of type multi select. |
| `↳ multi_string_values` | `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.ConfigVariable.MultiStringValues` Optional. The config variable value in case of config variable of type multi string. |
| `↳ multi_int_values` | `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.ConfigVariable.MultiIntValues` Optional. The config variable value in case of config variable of type multi integer. |
| `↳ key` | `string` Output only. Key will be the [id](https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.ConfigVariableTemplate#_Google_Cloud_ApiHub_V1_ConfigVariableTemplate__getId__) to uniquely identify the config variable. |

### getStringValue

Optional. The config variable value in case of config variable of type
string.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasStringValue

### setStringValue

Optional. The config variable value in case of config variable of type
string.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getIntValue

Optional. The config variable value in case of config variable of type
integer.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int|string` |   |

### hasIntValue

### setIntValue

Optional. The config variable value in case of config variable of type
integer.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getBoolValue

Optional. The config variable value in case of config variable of type
boolean.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasBoolValue

### setBoolValue

Optional. The config variable value in case of config variable of type
boolean.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSecretValue

Optional. The config variable value in case of config variable of type
secret.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.Secret|null` |   |

### hasSecretValue

### setSecretValue

Optional. The config variable value in case of config variable of type
secret.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.Secret` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEnumValue

Optional. The config variable value in case of config variable of type
enum.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.ConfigValueOption|null` |   |

### hasEnumValue

### setEnumValue

Optional. The config variable value in case of config variable of type
enum.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.ConfigValueOption` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getMultiSelectValues

Optional. The config variable value in case of config variable of type
multi select.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.ConfigVariable.MultiSelectValues|null` |   |

### hasMultiSelectValues

### setMultiSelectValues

Optional. The config variable value in case of config variable of type
multi select.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.ConfigVariable.MultiSelectValues` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getMultiStringValues

Optional. The config variable value in case of config variable of type
multi string.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.ConfigVariable.MultiStringValues|null` |   |

### hasMultiStringValues

### setMultiStringValues

Optional. The config variable value in case of config variable of type
multi string.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.ConfigVariable.MultiStringValues` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getMultiIntValues

Optional. The config variable value in case of config variable of type
multi integer.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.ConfigVariable.MultiIntValues|null` |   |

### hasMultiIntValues

### setMultiIntValues

Optional. The config variable value in case of config variable of type
multi integer.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.ConfigVariable.MultiIntValues` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getKey

Output only. Key will be the
[id](https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.ConfigVariableTemplate#_Google_Cloud_ApiHub_V1_ConfigVariableTemplate__getId__) to uniquely identify
the config variable.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setKey

Output only. Key will be the
[id](https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.ConfigVariableTemplate#_Google_Cloud_ApiHub_V1_ConfigVariableTemplate__getId__) to uniquely identify
the config variable.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getValue

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |