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 DeleteVersionRequest.

The [DeleteVersion](https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.Client.ApiHubClient#_Google_Cloud_ApiHub_V1_Client_ApiHubClient__deleteVersion__) method's
request.

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

## Namespace

Google \\ Cloud \\ ApiHub \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. The name of the version to delete. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}` |
| `↳ force` | `bool` Optional. If set to true, any specs from this version will also be deleted. Otherwise, the request will only work if the version has no specs. |

### getName

Required. The name of the version to delete.

Format:
`projects/{project}/locations/{location}/apis/{api}/versions/{version}`

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

### setName

Required. The name of the version to delete.

Format:
`projects/{project}/locations/{location}/apis/{api}/versions/{version}`

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

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

### getForce

Optional. If set to true, any specs from this version will also be deleted.

Otherwise, the request will only work if the version has no specs.

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

### setForce

Optional. If set to true, any specs from this version will also be deleted.

Otherwise, the request will only work if the version has no specs.

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the version to delete. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}` Please see ApiHubClient::versionName() for help formatting this field. |

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