WriteControl
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
可控管寫入要求的執行方式。如未指定,則以最後寫入者為準。
JSON 表示法 |
{
// Union field control can be only one of the following:
"requiredRevisionId": string
// End of list of possible types for union field control .
} |
欄位 |
聯集欄位 control 。決定要寫入的標籤修訂版本,以及如果該修訂版本不是標籤的目前修訂版本,要求應如何運作。control 只能是下列其中一項: |
requiredRevisionId |
string
寫入要求要套用的標籤修訂版本 ID。如果不是最新修訂版,系統就不會處理要求,並傳回 400 Bad Request 錯誤。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-05 (世界標準時間)。
[null,null,["上次更新時間:2025-08-05 (世界標準時間)。"],[],[],null,["# WriteControl\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nProvides control over how write requests are executed. When not specified, the last write wins.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { // Union field `control` can be only one of the following: \"requiredRevisionId\": string // End of list of possible types for union field `control`. } ``` |\n\n| Fields ||\n|----------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Union field `control`. Determines the revision of the label to write to and how the request should behave if that revision isn't the current revision of the label. `control` can be only one of the following: ||\n| `requiredRevisionId` | `string` The revision ID of the label that the write request will be applied to. If this isn't the latest revision of the label, the request will not be processed and will return a 400 Bad Request error. |"]]