# Stackdriver Error Reporting V1beta1 Client - Class DeleteEventsRequest (0.26.1)

0.26.1 (latest) 0.26.0 0.25.3 0.24.0 0.23.1 0.22.10 0.21.1 0.20.2 0.19.12

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Stackdriver Error Reporting V1beta1 Client class DeleteEventsRequest.

Deletes all events in the project.

Generated from protobuf message `google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest`

## Namespace

Google \\ Cloud \\ ErrorReporting \\ V1beta1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ project_name` | `string` Required. The resource name of the Google Cloud Platform project. Written as `projects/{projectID}` or `projects/{projectID}/locations/{location}`, where `{projectID}` is the [Google Cloud Platform project ID](https://support.google.com/cloud/answer/6158840) and `{location}` is a Cloud region. Examples: `projects/my-project-123`, `projects/my-project-123/locations/global`. For a list of supported locations, see [Supported Regions](https://cloud.google.com/logging/docs/region-support). `global` is the default when unspecified. |

### getProjectName

Required. The resource name of the Google Cloud Platform project. Written
as `projects/{projectID}` or `projects/{projectID}/locations/{location}`,
where `{projectID}` is the [Google Cloud Platform project
ID](https://support.google.com/cloud/answer/6158840) and `{location}` is
a Cloud region.

Examples: `projects/my-project-123`,
`projects/my-project-123/locations/global`.
For a list of supported locations, see [Supported
Regions](https://cloud.google.com/logging/docs/region-support). `global` is
the default when unspecified.

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

### setProjectName

Required. The resource name of the Google Cloud Platform project. Written
as `projects/{projectID}` or `projects/{projectID}/locations/{location}`,
where `{projectID}` is the [Google Cloud Platform project
ID](https://support.google.com/cloud/answer/6158840) and `{location}` is
a Cloud region.

Examples: `projects/my-project-123`,
`projects/my-project-123/locations/global`.
For a list of supported locations, see [Supported
Regions](https://cloud.google.com/logging/docs/region-support). `global` is
the default when unspecified.

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `projectName` | `string` Required. The resource name of the Google Cloud Platform project. Written as `projects/{projectID}` or `projects/{projectID}/locations/{location}`, where `{projectID}` is the [Google Cloud Platform project ID](https://support.google.com/cloud/answer/6158840) and `{location}` is a Cloud region. Examples: `projects/my-project-123`, `projects/my-project-123/locations/global`. For a list of supported locations, see [Supported Regions](https://cloud.google.com/logging/docs/region-support). `global` is the default when unspecified. Please see ErrorStatsServiceClient::projectName() for help formatting this field. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-error-reporting/latest/V1beta1.DeleteEventsRequest` |   |