Precondition

文档的前提条件,用于基于条件的运算。

JSON 表示法
{

  // Union field condition_type can be only one of the following:
  "exists": boolean,
  "updateTime": string
  // End of list of possible types for union field condition_type.
}
字段
联合字段 condition_type。前提条件的类型。condition_type 只能是下列其中一项:
exists

boolean

如果设置为 true,则目标文档必须存在。如果设置为 false,则目标文档不得存在。

updateTime

string (Timestamp format)

设置后,目标文档必须存在,并且是当时最后一次更新。时间戳必须与微秒对齐。

采用 RFC3339 世界协调时间 (UTC)(即“祖鲁时”)格式的时间戳,采用纳秒级精度,最多包含九个小数位。示例:"2014-10-02T15:01:23Z""2014-10-02T15:01:23.045123456Z"