# Method ResourceId.generate

Generate a resource ID for a document.

## Signature

    static generate(document: DocumentObject): string;

## Details

| Optional | No |
| Final | No |
| Protected | No |
| Static | Yes |
|---|---|

## Parameters

| Name | Type | Optional | Description |
|---|---|---|---|
| `document` | `https://developers.google.com/workspace/drive/picker/reference/picker.documentobject` | No | The document to generate a resource ID for. |

## Returns

`string`