# Google Apps Events Subscriptions V1beta Client - Class State (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 State.

Possible states for the subscription.

Protobuf type `google.apps.events.subscriptions.v1beta.Subscription.State`

## Namespace

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

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### STATE_UNSPECIFIED

    Value: 0

Default value. This value is unused.

Generated from protobuf enum `STATE_UNSPECIFIED = 0;`

### ACTIVE

    Value: 1

The subscription is active and can receive and deliver events to its
notification endpoint.

Generated from protobuf enum `ACTIVE = 1;`

### SUSPENDED

    Value: 2

The subscription is unable to receive events due to an error.

To identify the error, see the
[`suspension_reason`](https://docs.cloud.google.com/php/docs/reference/apps-events-subscriptions/latest/V1beta.Subscription#_Google_Apps_Events_Subscriptions_V1beta_Subscription__getSuspensionReason__)
field.

Generated from protobuf enum `SUSPENDED = 2;`

### DELETED

    Value: 3

The subscription is deleted.

Generated from protobuf enum `DELETED = 3;`