Skip to content

Commit d0588f8

Browse files
committed
Addressing documentation comments.
1 parent 06eae54 commit d0588f8

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

google-cloud-firestore/src/main/java/com/google/cloud/firestore/Firestore.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ void getAll(
170170

171171
/**
172172
* Returns a FirestoreBundle.Builder {@link FirestoreBundle.Builder} instance using an
173-
* automatically generated ID. The ID is used by the client SDKs loading bundles to identify if a
174-
* bundle has been loaded before.
173+
* automatically generated bundle ID. When loaded on clients, client SDKs use the bundle ID and
174+
* the timestamp associated with the built bundle to tell if it has been loaded already.
175175
*/
176176
@Nonnull
177177
FirestoreBundle.Builder bundleBuilder();
@@ -180,8 +180,8 @@ void getAll(
180180
* Returns a FirestoreBundle.Builder {@link FirestoreBundle.Builder} instance for the given bundle
181181
* ID.
182182
*
183-
* @param bundleId The ID is used by the client SDKs loading bundles to identify if a bundle has
184-
* been loaded before. If null, a random string will be used for the ID.
183+
* @param bundleId The ID of the bundle. When loaded on clients, client SDKs use this id and the
184+
* timestamp associated with the built bundle to tell if it has been loaded already.
185185
*/
186186
@Nonnull
187187
FirestoreBundle.Builder bundleBuilder(@Nonnull String bundleId);

google-cloud-firestore/src/main/java/com/google/cloud/firestore/FirestoreBundle.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public String getId() {
6464
}
6565

6666
/**
67-
* Adds a Firestore document snapshot to the bundle. Both the documents data and the document
67+
* Adds a Firestore document snapshot to the bundle. Both the document data and the document
6868
* read time will be included in the bundle.
6969
*
7070
* @param documentSnapshot A document snapshot to add.
@@ -126,7 +126,7 @@ private Builder add(DocumentSnapshot documentSnapshot, Optional<String> queryNam
126126
}
127127

128128
/**
129-
* Adds a Firestore query snapshots to the bundle. Both the documents in the query snapshots and
129+
* Adds a Firestore query snapshot to the bundle. Both the documents in the query snapshot and
130130
* the query read time will be included in the bundle.
131131
*
132132
* @param queryName The name of the query to add.

0 commit comments

Comments
 (0)