Wartości w polu enum | |
---|---|
fromBody |
Ustaw modifiedDate na wartość podaną w treści żądania. Bez zmian, jeśli nie podano wartości. |
fromBodyIfNeeded |
W zależności od innej treści aktualizacji ustaw modifiedDate na treść żądania. |
fromBodyOrNow |
Ustaw wartość „ModifiedDate” na wartość podaną w treści żądania lub bieżącą godzinę, jeśli nie podano żadnej wartości. |
noChange |
Zachowaj poprzednią wartość ustawienia modifiedDate . |
now |
Ustaw modifiedDate na bieżącą godzinę. |
nowIfNeeded |
W zależności od treści aktualizacji ustaw modifiedDate na obecny czas. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-09-04 UTC.
[null,null,["Ostatnia aktualizacja: 2024-09-04 UTC."],[[["`modifiedDate` can be updated using various strategies, including values from the request body, the current time, or maintaining the existing value."],["Enums such as `fromBody`, `fromBodyOrNow`, and `now` offer direct control over `modifiedDate` updates."],["Conditional updates to `modifiedDate` are possible with enums like `fromBodyIfNeeded` and `nowIfNeeded`, depending on other request data."],["`noChange` enum preserves the original `modifiedDate` value, preventing any modifications."]]],["The content defines enums for managing a `modifiedDate` field. `fromBody` uses the request body's value, if present. `fromBodyIfNeeded` conditionally uses the body's value. `fromBodyOrNow` uses the body's value or the current time. `noChange` preserves the existing date. `now` sets the date to the current time. `nowIfNeeded` conditionally sets the date to the current time based on update contents.\n"]]