Skip to content

Commit 9feb291

Browse files
Adding unknownDocument
1 parent d8bb9b3 commit 9feb291

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Firestore/Protos/protos/firestore/local/maybe_document.proto

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,22 @@ message NoDocument {
2020
google.protobuf.Timestamp read_time = 2;
2121
}
2222

23-
// Represents either an existing document or the explicitly known absence of a
24-
// document.
23+
// Represents either an existing document, the explicitly known absence of a document, or a document
24+
// that is known to exist (at some version) but whose contents are unknown
2525
message MaybeDocument {
2626
oneof document_type {
2727
// Used if the document is known to not exist.
2828
NoDocument no_document = 1;
2929

3030
// The document (if it exists).
3131
google.firestore.v1beta1.Document document = 2;
32+
33+
// Used if the document is known to exist but its data is unknown
34+
UnknownDocument unknown_document = 3;
3235
}
36+
37+
// `hasCommittedMutations` marks documents that were written to the remote socument store based
38+
// on a write acknowledgment. These documents are potentially inconsistent with the backend's
39+
// copy and use the write's commit version as their document version.
40+
bool hasCommittedMutations = 4;
3341
}

0 commit comments

Comments
 (0)