ModifiedDateBehavior

Enums
fromBodySetmodifiedDate to the value provided in the body of the request. No change if no value was provided.
fromBodyIfNeededSetmodifiedDate to the value provided in the body of the request depending on other contents of the update.
fromBodyOrNowSet modifiedDate to the value provided in the body of the request, or to the current time if no value was provided.
noChangeMaintain the previous value ofmodifiedDate.
nowSetmodifiedDate to the current time.
nowIfNeededSetmodifiedDate to the current time depending on contents of the update.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-04-03 UTC.