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 DeletionType.

Who deleted the message and how it was deleted. More values may be added in
the future. See [Edit or delete a message in Google
Chat](https://support.google.com/chat/answer/7653281) for details on when
messages can be deleted.

Protobuf type `google.chat.v1.DeletionMetadata.DeletionType`

## Namespace

Google \\ Apps \\ Chat \\ V1 \\ DeletionMetadata

## Methods

### static::name

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

### static::value

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

## Constants

### DELETION_TYPE_UNSPECIFIED

```php
Value: 0
```
This value is unused.

Generated from protobuf enum `DELETION_TYPE_UNSPECIFIED = 0;`

### CREATOR

```php
Value: 1
```
User deleted their own message.

Generated from protobuf enum `CREATOR = 1;`

### SPACE_OWNER

```php
Value: 2
```
An owner or manager deleted the message.

Generated from protobuf enum `SPACE_OWNER = 2;`

### ADMIN

```php
Value: 3
```
A Google Workspace administrator deleted the message. Administrators can
delete any message in the space, including messages sent by any space
member or Chat app.

Generated from protobuf enum `ADMIN = 3;`

### APP_MESSAGE_EXPIRY

```php
Value: 4
```
A Chat app deleted its own message when it expired.

Generated from protobuf enum `APP_MESSAGE_EXPIRY = 4;`

### CREATOR_VIA_APP

```php
Value: 5
```
A Chat app deleted the message on behalf of the creator (using user
authentication).

Generated from protobuf enum `CREATOR_VIA_APP = 5;`

### SPACE_OWNER_VIA_APP

```php
Value: 6
```
A Chat app deleted the message on behalf of a space manager (using user
authentication).

Generated from protobuf enum `SPACE_OWNER_VIA_APP = 6;`

### SPACE_MEMBER

```php
Value: 7
```
A member of the space deleted the message. Users can delete messages sent
by apps.

Generated from protobuf enum `SPACE_MEMBER = 7;`