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“ Zulu”格式的时间戳,具有纳秒级分辨率和最多9个小数位。示例: "2014-10-02T15:01:23Z""2014-10-02T15:01:23.045123456Z"