Method ResourceId.generate
Stay organized with collections
Save and categorize content based on your preferences.
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 |
DocumentObject |
No |
The document to generate a resource ID for. |
Returns
string
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-20 UTC.
[null,null,["Last updated 2025-06-20 UTC."],[],[],null,["# Method ResourceId.generate\n\nGenerate a resource ID for a document.\n\nSignature\n---------\n\n static generate(document: DocumentObject): string;\n\nDetails\n-------\n\n| Optional | No |\n| Final | No |\n| Protected | No |\n| Static | Yes |\n|-----------|-----|\n\nParameters\n----------\n\n| Name | Type | Optional | Description |\n|------------|-------------------------------------------|----------|---------------------------------------------|\n| `document` | [DocumentObject](./picker.documentobject) | No | The document to generate a resource ID for. |\n\nReturns\n-------\n\n`string`"]]