Facts
Stay organized with collections
Save and categorize content based on your preferences.
User-provided data attached to a module extension that is persisted across reevaluations of
the extension.
This type supports dict-like access (e.g. `facts["key"]` and `facts.get("key")`) as well as
membership tests (e.g. `"key" in facts`). It does not support iteration or methods like
`keys()`, `items()`, or `len()`.
Members
get
unknown Facts.get(key, default=None)
Returns the value for
key
if it exists, or
default
.
Parameters
Parameter |
Description |
key
|
string;
required
The key to look up.
|
default
|
default is None
The value to return if key is not present.
|
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-10-16 UTC.
[null,null,["Last updated 2025-10-16 UTC."],[],[]]