# Google Apps Events Subscriptions V1beta Client - Class DeleteSubscriptionRequest (0.4.4)

0.4.4 (latest) 0.4.3 0.3.1 0.2.1 0.1.6

> [!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 Google Apps Events Subscriptions V1beta Client class DeleteSubscriptionRequest.

The request message for
[SubscriptionsService.DeleteSubscription](https://docs.cloud.google.com/php/docs/reference/apps-events-subscriptions/latest/V1beta.Client.SubscriptionsServiceClient#_Google_Apps_Events_Subscriptions_V1beta_Client_SubscriptionsServiceClient__deleteSubscription__).

Generated from protobuf message `google.apps.events.subscriptions.v1beta.DeleteSubscriptionRequest`

## Namespace

Google \\ Apps \\ Events \\ Subscriptions \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. Resource name of the subscription to delete. Format: `subscriptions/{subscription}` |
| `↳ validate_only` | `bool` Optional. If set to `true`, validates and previews the request, but doesn't delete the subscription. |
| `↳ allow_missing` | `bool` Optional. If set to `true` and the subscription isn't found, the request succeeds but doesn't delete the subscription. |
| `↳ etag` | `string` Optional. Etag of the subscription. If present, it must match with the server's etag. Otherwise, request fails with the status `ABORTED`. |

### getName

Required. Resource name of the subscription to delete.

Format: `subscriptions/{subscription}`

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

### setName

Required. Resource name of the subscription to delete.

Format: `subscriptions/{subscription}`

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

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

### getValidateOnly

Optional. If set to `true`, validates and previews the request, but doesn't
delete the subscription.

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

### setValidateOnly

Optional. If set to `true`, validates and previews the request, but doesn't
delete the subscription.

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

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

### getAllowMissing

Optional. If set to `true` and the subscription isn't found, the request
succeeds but doesn't delete the subscription.

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

### setAllowMissing

Optional. If set to `true` and the subscription isn't found, the request
succeeds but doesn't delete the subscription.

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

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

### getEtag

Optional. Etag of the subscription.

If present, it must match with the server's etag. Otherwise, request
fails with the status `ABORTED`.

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

### setEtag

Optional. Etag of the subscription.

If present, it must match with the server's etag. Otherwise, request
fails with the status `ABORTED`.

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Resource name of the subscription to delete. Format: `subscriptions/{subscription}` Please see SubscriptionsServiceClient::subscriptionName() for help formatting this field. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/apps-events-subscriptions/latest/V1beta.DeleteSubscriptionRequest` |   |