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. This flag can be used when the target_resource is either a Drive or a Drive file 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.
This flag can be used when the
target_resource
is either a
Drive
or a Drive
file
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.
This flag can be used when the
target_resource
is either a
Drive
or a Drive
file
that has mimeType set to application/vnd.google-apps.folder.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Google Apps Events Subscriptions V1beta Client - Class DriveOptions (0.3.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.3.1 (latest)](/php/docs/reference/apps-events-subscriptions/latest/V1beta.Subscription.DriveOptions)\n- [0.3.0](/php/docs/reference/apps-events-subscriptions/0.3.0/V1beta.Subscription.DriveOptions)\n- [0.2.1](/php/docs/reference/apps-events-subscriptions/0.2.1/V1beta.Subscription.DriveOptions)\n- [0.1.6](/php/docs/reference/apps-events-subscriptions/0.1.6/V1beta.Subscription.DriveOptions) \n| **Beta**\n|\n|\n| This library is covered by the [Pre-GA Offerings Terms](/terms/service-terms#1)\n| of the Terms of Service. Pre-GA libraries might have limited support,\n| and changes to pre-GA libraries might not be compatible with other pre-GA versions.\n| For more information, see the\n[launch stage descriptions](/products#product-launch-stages). \nReference documentation and code samples for the Google Apps Events Subscriptions V1beta Client class DriveOptions.\n\nAdditional supported options for serving Drive events.\n\nGenerated from protobuf message `google.apps.events.subscriptions.v1beta.Subscription.DriveOptions`\n\nNamespace\n---------\n\nGoogle \\\\ Apps \\\\ Events \\\\ Subscriptions \\\\ V1beta \\\\ Subscription\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getIncludeDescendants\n\nOptional. Immutable. Whether to include all the descendant Drive files in\nthe list of events. If false, the subscription will be created for the\nsingle file/drive that is specified as the\n[`target_resource`](/php/docs/reference/apps-events-subscriptions/latest/V1beta.Subscription#_Google_Apps_Events_Subscriptions_V1beta_Subscription__getTargetResource__).\n\nThis flag can be used when the\n[`target_resource`](/php/docs/reference/apps-events-subscriptions/latest/V1beta.Subscription#_Google_Apps_Events_Subscriptions_V1beta_Subscription__getTargetResource__)\nis either a\n[Drive](https://developers.google.com/drive/api/reference/rest/v3/drives)\nor a [Drive\nfile](https://developers.google.com/drive/api/reference/rest/v3/files)\nthat has mimeType set to `application/vnd.google-apps.folder`.\n\n### setIncludeDescendants\n\nOptional. Immutable. Whether to include all the descendant Drive files in\nthe list of events. If false, the subscription will be created for the\nsingle file/drive that is specified as the\n[`target_resource`](/php/docs/reference/apps-events-subscriptions/latest/V1beta.Subscription#_Google_Apps_Events_Subscriptions_V1beta_Subscription__getTargetResource__).\n\nThis flag can be used when the\n[`target_resource`](/php/docs/reference/apps-events-subscriptions/latest/V1beta.Subscription#_Google_Apps_Events_Subscriptions_V1beta_Subscription__getTargetResource__)\nis either a\n[Drive](https://developers.google.com/drive/api/reference/rest/v3/drives)\nor a [Drive\nfile](https://developers.google.com/drive/api/reference/rest/v3/files)\nthat has mimeType set to `application/vnd.google-apps.folder`."]]