Skip to content

Commit 32f93ff

Browse files
committed
Add totalBytes and totalDocuments
1 parent b9beadb commit 32f93ff

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

packages/firestore/src/protos/firestore/bundle.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@ message BundleMetadata {
9191

9292
// The schema version of the bundle.
9393
uint32 version = 3;
94+
95+
// The number of documents in the bundle.
96+
uint32 total_documents = 4;
97+
98+
// The size of the bundle in bytes, excluding this `BundleMetadata`.
99+
uint64 total_bytes = 5;
94100
}
95101

96102
// A Firestore bundle is a length-prefixed stream of JSON representations of

packages/firestore/src/protos/firestore_bundle_proto.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ interface BundleMetadata {
6868

6969
/** BundleMetadata version */
7070
version?: number | null;
71+
72+
/** BundleMetadata totalDocuments */
73+
totalDocuments?: number | null;
74+
75+
/** BundleMetadata totalBytes */
76+
totalBytes?: number | null;
7177
}
7278

7379
/** Properties of a BundleElement. */

0 commit comments

Comments
 (0)