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 |
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 2024-09-17 UTC.
[null,null,["Last updated 2024-09-17 UTC."],[[["The `generate` method creates a unique resource ID for a given document."],["This method is static, meaning it's called directly on the class itself, not an instance of it."],["It requires a `DocumentObject` as input, representing the document for which to generate the ID."],["The generated resource ID is returned as a string."]]],[]]