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"