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 错误。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-05。
[null,null,["最后更新时间 (UTC):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. |"]]