WriteControl
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Umożliwia kontrolowanie sposobu wykonywania żądań zapisu. Jeśli nie zostanie określony, wygrywa ostatni zapis.
Zapis JSON |
{
// Union field control can be only one of the following:
"requiredRevisionId": string
// End of list of possible types for union field control .
} |
Pola |
Pole unii control . Określa wersję etykiety, do której ma zostać zapisana informacja, oraz sposób, w jaki żądanie powinno się zachowywać, jeśli ta wersja nie jest bieżącą wersją etykiety. control może mieć tylko jedną z tych wartości: |
requiredRevisionId |
string
Identyfikator wersji etykiety, do której zostanie zastosowane żądanie zapisu. Jeśli nie jest to najnowsza wersja etykiety, żądanie nie zostanie przetworzone i zwróci błąd 400 (Nieprawidłowe żądanie).
|
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: 2025-08-05 UTC.
[null,null,["Ostatnia aktualizacja: 2025-08-05 UTC."],[],[],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. |"]]