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

Additional supported options for serving Drive events.

Generated from protobuf message `google.apps.events.subscriptions.v1beta.Subscription.DriveOptions`

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ include_descendants` | `bool` Optional. Immutable. Whether to include all the descendant Drive files in the list of events. If false, the subscription will be created for the single file/drive that is specified as the [`target_resource`](https://docs.cloud.google.com/php/docs/reference/apps-events-subscriptions/latest/V1beta.Subscription#_Google_Apps_Events_Subscriptions_V1beta_Subscription__getTargetResource__). This flag can be used when the [`target_resource`](https://docs.cloud.google.com/php/docs/reference/apps-events-subscriptions/latest/V1beta.Subscription#_Google_Apps_Events_Subscriptions_V1beta_Subscription__getTargetResource__) is either a [Drive](https://developers.google.com/drive/api/reference/rest/v3/drives) or a [Drive file](https://developers.google.com/drive/api/reference/rest/v3/files) that has mimeType set to `application/vnd.google-apps.folder`. |

### getIncludeDescendants

Optional. Immutable. Whether to include all the descendant Drive files in
the list of events. If false, the subscription will be created for the
single file/drive that is specified as the
[`target_resource`](https://docs.cloud.google.com/php/docs/reference/apps-events-subscriptions/latest/V1beta.Subscription#_Google_Apps_Events_Subscriptions_V1beta_Subscription__getTargetResource__).

This flag can be used when the
[`target_resource`](https://docs.cloud.google.com/php/docs/reference/apps-events-subscriptions/latest/V1beta.Subscription#_Google_Apps_Events_Subscriptions_V1beta_Subscription__getTargetResource__)
is either a
[Drive](https://developers.google.com/drive/api/reference/rest/v3/drives)
or a [Drive
file](https://developers.google.com/drive/api/reference/rest/v3/files)
that has mimeType set to `application/vnd.google-apps.folder`.

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

### setIncludeDescendants

Optional. Immutable. Whether to include all the descendant Drive files in
the list of events. If false, the subscription will be created for the
single file/drive that is specified as the
[`target_resource`](https://docs.cloud.google.com/php/docs/reference/apps-events-subscriptions/latest/V1beta.Subscription#_Google_Apps_Events_Subscriptions_V1beta_Subscription__getTargetResource__).

This flag can be used when the
[`target_resource`](https://docs.cloud.google.com/php/docs/reference/apps-events-subscriptions/latest/V1beta.Subscription#_Google_Apps_Events_Subscriptions_V1beta_Subscription__getTargetResource__)
is either a
[Drive](https://developers.google.com/drive/api/reference/rest/v3/drives)
or a [Drive
file](https://developers.google.com/drive/api/reference/rest/v3/files)
that has mimeType set to `application/vnd.google-apps.folder`.

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

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