Add update transforms proto
@@ -48,9 +48,6 @@ message Write {
string verify = 5;
// Applies a tranformation to a document.
- // At most one `transform` per document is allowed in a given request.
- // An `update` cannot follow a `transform` on the same document in a given
- // request.
DocumentTransform transform = 6;
}
@@ -66,6 +63,13 @@ message Write {
// The field paths in this mask must not contain a reserved field name.
DocumentMask update_mask = 3;
+ // The transforms to perform after update.
+ //
+ // This field can be set only when the operation is `update`. If present, this
+ // write is equivalent to performing `update` and `transform` to the same
+ // document atomically and in order.
+ repeated DocumentTransform.FieldTransform update_transforms = 7;
+
// An optional precondition on the document.
//
// The write will fail if this is set and not met by the target document.
