0.10.0 (latest) 0.9.0 0.8.4 0.7.0 0.6.0 0.5.3 0.4.0 0.3.1 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Model Armor V1 Client class FilterVersionSelector.

Represents the configuration for selecting a Filter Version.

Allows customers to choose to use either a specific version or a predefined
alias.

Generated from protobuf message `google.cloud.modelarmor.v1.FilterVersionSelector`

## Namespace

Google \\ Cloud \\ ModelArmor \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ version` | `string` Allows customers to pin to a specific, immutable Filter Version. This provides stability, as this will not change after a version upgrade. Expected format is a case-sensitive string, e.g., "v1", "v2". Requests providing an invalid or non-existent version string will be rejected with an `INVALID_ARGUMENT` error. |
| `↳ alias` | `int` Allows customers to use a predefined alias that dynamically points to a specific version based on internal upgrades. This offers flexibility and reduces the need for template updates. |

### getVersion

Allows customers to pin to a specific, immutable Filter Version.

This provides stability, as this will not change after a version upgrade.
Expected format is a case-sensitive string, e.g., "v1", "v2".
Requests providing an invalid or non-existent version string will be
rejected with an `INVALID_ARGUMENT` error.

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

### hasVersion

### setVersion

Allows customers to pin to a specific, immutable Filter Version.

This provides stability, as this will not change after a version upgrade.
Expected format is a case-sensitive string, e.g., "v1", "v2".
Requests providing an invalid or non-existent version string will be
rejected with an `INVALID_ARGUMENT` error.

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

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

### getAlias

Allows customers to use a predefined alias that dynamically
points to a specific version based on internal upgrades.

This offers flexibility and reduces the need for template updates.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [FilterVersionAlias](https://docs.cloud.google.com/php/docs/reference/cloud-modelarmor/latest/V1.FilterVersionAlias). |

### hasAlias

### setAlias

Allows customers to use a predefined alias that dynamically
points to a specific version based on internal upgrades.

This offers flexibility and reduces the need for template updates.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [FilterVersionAlias](https://docs.cloud.google.com/php/docs/reference/cloud-modelarmor/latest/V1.FilterVersionAlias). |

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

### getVersionSpec

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