列舉 | |
---|---|
fromBody |
將 modifiedDate 設為要求主體中提供的值。如果未提供值,則不會有任何變更。 |
fromBodyIfNeeded |
視更新的其他內容而定,將 modifiedDate 設為要求主體中提供的值。 |
fromBodyOrNow |
將 modifiedDate 設為要求主體中提供的值,如果未提供值,則設為目前時間。 |
noChange |
保留 modifiedDate 的先前值。 |
now |
將 modifiedDate 設為目前時間。 |
nowIfNeeded |
視更新內容而定,將 modifiedDate 設為目前時間。 |
ModifiedDateBehavior
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-04-03 (世界標準時間)。
[null,null,["上次更新時間:2025-04-03 (世界標準時間)。"],[],[],null,["# ModifiedDateBehavior\n\n| Enums ||\n|--------------------|---------------------------------------------------------------------------------------------------------------------|\n| `fromBody` | Set `modifiedDate` to the value provided in the body of the request. No change if no value was provided. |\n| `fromBodyIfNeeded` | Set `modifiedDate` to the value provided in the body of the request depending on other contents of the update. |\n| `fromBodyOrNow` | Set modifiedDate to the value provided in the body of the request, or to the current time if no value was provided. |\n| `noChange` | Maintain the previous value of `modifiedDate`. |\n| `now` | Set `modifiedDate` to the current time. |\n| `nowIfNeeded` | Set `modifiedDate` to the current time depending on contents of the update. |"]]