Skip to content

Commit b01cefd

Browse files
Backport Protobuf changes (#75)
* Backport Protobuf changes * Changing comment to use has_committed_mutations
1 parent 29ba4eb commit b01cefd

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

firebase-firestore/src/proto/google/firebase/firestore/proto/maybe_document.proto

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ message NoDocument {
3434
google.protobuf.Timestamp read_time = 2;
3535
}
3636

37-
// A message indicating that the document that is known to exist but its data is unknown.
37+
// A message indicating that the document that is known to exist but its data
38+
// is unknown.
3839
message UnknownDocument {
3940
// The name of the document that is known to exist, in the standard format:
4041
// `projects/{project_id}/databases/{database_id}/documents/{document_path}`
@@ -44,8 +45,9 @@ message UnknownDocument {
4445
google.protobuf.Timestamp version = 2;
4546
}
4647

47-
// Represents either an existing document, the explicitly known absence of a document, or a document
48-
// that is known to exist (at some version) but whose contents are unknown
48+
// Represents either an existing document, the explicitly known absence of a
49+
// document, or a document that is known to exist (at some version) but whose
50+
// contents are unknown.
4951
message MaybeDocument {
5052
oneof document_type {
5153
// Used if the document is known to not exist.
@@ -54,12 +56,13 @@ message MaybeDocument {
5456
// The document (if it exists).
5557
google.firestore.v1beta1.Document document = 2;
5658

57-
// Used if the document is known to exist but its data is unknown
59+
// Used if the document is known to exist but its data is unknown.
5860
UnknownDocument unknown_document = 3;
5961
}
6062

61-
// `hasCommittedMutations` marks documents that were written to the remote socument store based
62-
// on a write acknowledgment. These documents are potentially inconsistent with the backend's
63-
// copy and use the write's commit version as their document version.
64-
bool hasCommittedMutations = 4;
63+
// `has_committed_mutations` marks documents that were written to the remote
64+
// document store based on a write acknowledgment. These documents are
65+
// potentially inconsistent with the backend's copy and use the write's
66+
// commit version as their document version.
67+
bool has_committed_mutations = 4;
6568
}

0 commit comments

Comments
 (0)