0.31.0 (latest) 0.30.0 0.29.0 0.28.0 0.27.0 0.23.0 0.20.0 0.19.0 0.18.0 0.17.1 0.16.1 0.15.0 0.14.0 0.13.1 0.12.1 0.11.2 0.10.0 0.9.0 0.8.1 0.7.2 0.6.1 0.5.0 0.4.0 0.3.0 0.2.0 0.1.4 Reference documentation and code samples for the Google Apps Chat V1 Client class State.

Represents the current availability state of the user.

Protobuf type `google.chat.v1.Availability.State`

## Namespace

Google \\ Apps \\ Chat \\ V1 \\ Availability

## Methods

### static::name

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

### static::value

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

## Constants

### STATE_UNSPECIFIED

```php
Value: 0
```
Default value. The state is unspecified.

Generated from protobuf enum `STATE_UNSPECIFIED = 0;`

### ACTIVE

```php
Value: 1
```
The user is currently active, based on recent activity.

Generated from protobuf enum `ACTIVE = 1;`

### IDLE

```php
Value: 2
```
The user is currently idle. This state indicates a period of inactivity
after being ACTIVE, before potentially transitioning to AWAY.

Generated from protobuf enum `IDLE = 2;`

### AWAY

```php
Value: 3
```
The user is currently away. This can be either automatically set after
a period of inactivity in ACTIVE or IDLE state, or it can be manually set
by the user. When manually set via `MarkAsAway`, this state persists
regardless of user activity.

Generated from protobuf enum `AWAY = 3;`

### DO_NOT_DISTURB

```php
Value: 4
```
The user is in Do Not Disturb state, which is manually set.

Generated from protobuf enum `DO_NOT_DISTURB = 4;`