# Google Apps Meet V2beta Client - Class ModerationRestrictions (0.5.4)

0.5.4 (latest) 0.5.3 0.4.1 0.3.0 0.2.6 0.1.0

> [!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 Meet V2beta Client class ModerationRestrictions.

Defines restrictions for features when the meeting is moderated.

Generated from protobuf message `google.apps.meet.v2beta.SpaceConfig.ModerationRestrictions`

## Namespace

Google \\ Apps \\ Meet \\ V2beta \\ SpaceConfig

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ chat_restriction` | `int` Defines who has permission to send chat messages in the meeting space. |
| `↳ reaction_restriction` | `int` Defines who has permission to send reactions in the meeting space. |
| `↳ present_restriction` | `int` Defines who has permission to share their screen in the meeting space. |
| `↳ default_join_as_viewer_type` | `int` Defines whether to restrict the default role assigned to users as viewer. |

### getChatRestriction

Defines who has permission to send chat messages in the meeting space.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [RestrictionType](https://docs.cloud.google.com/php/docs/reference/apps-meet/latest/V2beta.SpaceConfig.ModerationRestrictions.RestrictionType). |

### setChatRestriction

Defines who has permission to send chat messages in the meeting space.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [RestrictionType](https://docs.cloud.google.com/php/docs/reference/apps-meet/latest/V2beta.SpaceConfig.ModerationRestrictions.RestrictionType). |

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

### getReactionRestriction

Defines who has permission to send reactions in the meeting space.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [RestrictionType](https://docs.cloud.google.com/php/docs/reference/apps-meet/latest/V2beta.SpaceConfig.ModerationRestrictions.RestrictionType). |

### setReactionRestriction

Defines who has permission to send reactions in the meeting space.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [RestrictionType](https://docs.cloud.google.com/php/docs/reference/apps-meet/latest/V2beta.SpaceConfig.ModerationRestrictions.RestrictionType). |

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

### getPresentRestriction

Defines who has permission to share their screen in the meeting space.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [RestrictionType](https://docs.cloud.google.com/php/docs/reference/apps-meet/latest/V2beta.SpaceConfig.ModerationRestrictions.RestrictionType). |

### setPresentRestriction

Defines who has permission to share their screen in the meeting space.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [RestrictionType](https://docs.cloud.google.com/php/docs/reference/apps-meet/latest/V2beta.SpaceConfig.ModerationRestrictions.RestrictionType). |

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

### getDefaultJoinAsViewerType

Defines whether to restrict the default role assigned to users as viewer.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [DefaultJoinAsViewerType](https://docs.cloud.google.com/php/docs/reference/apps-meet/latest/V2beta.SpaceConfig.ModerationRestrictions.DefaultJoinAsViewerType). |

### setDefaultJoinAsViewerType

Defines whether to restrict the default role assigned to users as viewer.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [DefaultJoinAsViewerType](https://docs.cloud.google.com/php/docs/reference/apps-meet/latest/V2beta.SpaceConfig.ModerationRestrictions.DefaultJoinAsViewerType). |

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