1.8.4 (latest) 1.7.2 1.6.0 1.5.0 1.4.0 1.3.1 1.2.1 1.1.3 1.0.0 0.6.5 0.5.1 0.4.4 0.3.13 Reference documentation and code samples for the Google Cloud Artifact Registry V1 Client class BatchDeleteVersionsRequest.

The request to delete multiple versions across a repository.

Generated from protobuf message `google.devtools.artifactregistry.v1.BatchDeleteVersionsRequest`

## Namespace

Google \\ Cloud \\ ArtifactRegistry \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` The name of the repository holding all requested versions. |
| `↳ names` | `string[]` Required. The names of the versions to delete. The maximum number of versions deleted per batch is determined by the service and is dependent on the available resources in the region. |
| `↳ validate_only` | `bool` If true, the request is performed without deleting data, following AIP-163. |

### getParent

The name of the repository holding all requested versions.

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

### setParent

The name of the repository holding all requested versions.

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

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

### getNames

Required. The names of the versions to delete.

The maximum number of versions deleted per batch is determined by the
service and is dependent on the available resources in the region.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<string>` |   |

### setNames

Required. The names of the versions to delete.

The maximum number of versions deleted per batch is determined by the
service and is dependent on the available resources in the region.

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

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

### getValidateOnly

If true, the request is performed without deleting data, following AIP-163.

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

### setValidateOnly

If true, the request is performed without deleting data, following AIP-163.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` The name of the repository holding all requested versions. |
| `names` | `string[]` Required. The names of the versions to delete. The maximum number of versions deleted per batch is determined by the service and is dependent on the available resources in the region. Please see ArtifactRegistryClient::versionName() for help formatting this field. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-artifact-registry/latest/V1.BatchDeleteVersionsRequest` |   |