# Google Cloud Migration Center V1 Client - Class BatchDeleteAssetsRequest (1.2.3)

1.2.3 (latest) 1.2.2 1.1.2 1.0.3 0.4.5 0.3.1 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Migration Center V1 Client class BatchDeleteAssetsRequest.

A request to delete a list of asset.

Generated from protobuf message `google.cloud.migrationcenter.v1.BatchDeleteAssetsRequest`

## Namespace

Google \\ Cloud \\ MigrationCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. Parent value for batch asset delete. |
| `↳ names` | `string[]` Required. The IDs of the assets to delete. A maximum of 1000 assets can be deleted in a batch. Format: projects/{project}/locations/{location}/assets/{name}. |
| `↳ allow_missing` | `bool` Optional. When this value is set to `true` the request is a no-op for non-existing assets. See <https://google.aip.dev/135#delete-if-existing> for additional details. Default value is `false`. |

### getParent

Required. Parent value for batch asset delete.

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

### setParent

Required. Parent value for batch asset delete.

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

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

### getNames

Required. The IDs of the assets to delete.

A maximum of 1000 assets can be deleted in a batch.
Format: projects/{project}/locations/{location}/assets/{name}.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setNames

Required. The IDs of the assets to delete.

A maximum of 1000 assets can be deleted in a batch.
Format: projects/{project}/locations/{location}/assets/{name}.

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

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

### getAllowMissing

Optional. When this value is set to `true` the request is a no-op for
non-existing assets. See <https://google.aip.dev/135#delete-if-existing> for
additional details. Default value is `false`.

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

### setAllowMissing

Optional. When this value is set to `true` the request is a no-op for
non-existing assets. See <https://google.aip.dev/135#delete-if-existing> for
additional details. Default value is `false`.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Parent value for batch asset delete. Please see MigrationCenterClient::locationName() for help formatting this field. |
| `names` | `string[]` Required. The IDs of the assets to delete. A maximum of 1000 assets can be deleted in a batch. Format: projects/{project}/locations/{location}/assets/{name}. Please see MigrationCenterClient::assetName() for help formatting this field. |

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