Stay organized with collections
Save and categorize content based on your preferences.
A precondition on a document, used for conditional operations.
JSON representation
{// 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.}
Fields
Union field condition_type. The type of precondition. condition_type can be only one of the following:
exists
boolean
When set to true, the target document must exist. When set to false, the target document must not exist.
When set, the target document must exist and have been last updated at that time. Timestamp must be microsecond aligned.
Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-22 UTC."],[[["This content describes a document precondition used for conditional operations."],["The `condition_type` field is a union that can be one of two types: `exists` or `updateTime`."],["The `exists` field, a boolean, checks if a target document must or must not exist."],["The `updateTime` field, a string in Timestamp format, ensures a document exists and was last updated at a specified time."]]],[]]