# Google Cloud Discovery Engine V1 Client - Class PurgeDocumentsRequest (1.11.1)

1.11.1 (latest) 1.11.0 1.10.1 1.9.1 1.8.0 1.7.0 1.6.1 1.5.1 1.4.0 1.3.3 1.2.0 1.1.0 1.0.0 0.11.3 0.8.0 0.7.1 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class PurgeDocumentsRequest.

Request message for
[DocumentService.PurgeDocuments](https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.Client.DocumentServiceClient#_Google_Cloud_DiscoveryEngine_V1_Client_DocumentServiceClient__purgeDocuments__)
method.

Generated from protobuf message `google.cloud.discoveryengine.v1.PurgeDocumentsRequest`

## Namespace

Google \\ Cloud \\ DiscoveryEngine \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ gcs_source` | `https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.GcsSource` Cloud Storage location for the input content. Supported `data_schema`: \* \* `document_id`: One valid [Document.id](https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.Document#_Google_Cloud_DiscoveryEngine_V1_Document__getId__) per line. |
| `↳ inline_source` | `https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.PurgeDocumentsRequest.InlineSource` Inline source for the input content for purge. |
| `↳ parent` | `string` Required. The parent resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. |
| `↳ filter` | `string` Required. Filter matching documents to purge. Only currently supported value is `*` (all items). |
| `↳ error_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.PurgeErrorConfig` The desired location of errors incurred during the purge. |
| `↳ force` | `bool` Actually performs the purge. If `force` is set to false, return the expected purge count without deleting any documents. |

### getGcsSource

Cloud Storage location for the input content.

Supported `data_schema`:

- `document_id`: One valid [Document.id](https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.Document#_Google_Cloud_DiscoveryEngine_V1_Document__getId__) per line.

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

### hasGcsSource

### setGcsSource

Cloud Storage location for the input content.

Supported `data_schema`:

- `document_id`: One valid [Document.id](https://docs.cloud.google.com/php/docs/reference/cloud-discoveryengine/latest/V1.Document#_Google_Cloud_DiscoveryEngine_V1_Document__getId__) per line.

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

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

### getInlineSource

Inline source for the input content for purge.

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

### hasInlineSource

### setInlineSource

Inline source for the input content for purge.

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

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

### getParent

Required. The parent resource name, such as
`projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.

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

### setParent

Required. The parent resource name, such as
`projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`.

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

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

### getFilter

Required. Filter matching documents to purge. Only currently supported
value is
`*` (all items).

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

### setFilter

Required. Filter matching documents to purge. Only currently supported
value is
`*` (all items).

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

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

### getErrorConfig

The desired location of errors incurred during the purge.

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

### hasErrorConfig

### clearErrorConfig

### setErrorConfig

The desired location of errors incurred during the purge.

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

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

### getForce

Actually performs the purge. If `force` is set to false, return the
expected purge count without deleting any documents.

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

### setForce

Actually performs the purge. If `force` is set to false, return the
expected purge count without deleting any documents.

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

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

### getSource

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