Skip to content

Commit 1c43b60

Browse files
schmidt-sebastianpongad
authored andcommitted
---
yaml --- r: 9413 b: refs/heads/spanner-gapic-migration c: 412cf0d h: refs/heads/master i: 9411: 4669b76
1 parent f6b2ad9 commit 1c43b60

5 files changed

Lines changed: 21 additions & 5 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ refs/tags/v0.34.0: bf31760a31a66acb239322a70dcd03dbe1d0c7ca
8080
refs/tags/v0.35.0: c28951c5f4cc97a1be07900d19df6984115a4bd6
8181
refs/tags/v0.36.0: 6b75c61f73e6827b3ca379bd54f88f750290162f
8282
refs/tags/v0.37.0: db2e142f92601709fdd48db159776f905742e30f
83-
refs/heads/spanner-gapic-migration: c001e14a6119affebd94dcbcc715509392d2c527
83+
refs/heads/spanner-gapic-migration: 412cf0df77c4ea55e4e85a545f622ff4f14db0b4
8484
refs/tags/v0.38.0: c235ee4df5e1248e1769dae3f86a0d7ab7fd8301
8585
refs/tags/v0.39.0: ab231c9d22475242a43d6d9554aa4a3f736dab01
8686
refs/tags/v0.40.0: a1d5b05206cce7734365f1b910396a2c9d6605ec

branches/spanner-gapic-migration/google-cloud-firestore/src/main/java/com/google/cloud/firestore/CollectionReference.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,13 @@
2626

2727
/**
2828
* A CollectionReference can be used for adding documents, getting document references, and querying
29-
* for documents (using the methods inherited from Query)
29+
* for documents (using the methods inherited from Query).
30+
*
31+
* <p><b>Subclassing Note</b>: Firestore classes are not meant to be subclassed except for use in
32+
* test mocks. Subclassing is not supported in production code and new SDK releases may break code
33+
* that does so.
3034
*/
31-
public final class CollectionReference extends Query {
35+
public class CollectionReference extends Query {
3236

3337
/**
3438
* Creates a CollectionReference from a complete collection path.

branches/spanner-gapic-migration/google-cloud-firestore/src/main/java/com/google/cloud/firestore/DocumentReference.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,12 @@
3636
* write, read, or listen to the location. There may or may not exist a document at the referenced
3737
* location. A DocumentReference can also be used to create a CollectionReference to a
3838
* subcollection.
39+
*
40+
* <p><b>Subclassing Note</b>: Firestore classes are not meant to be subclassed except for use in
41+
* test mocks. Subclassing is not supported in production code and new SDK releases may break code
42+
* that does so.
3943
*/
40-
public final class DocumentReference {
44+
public class DocumentReference {
4145

4246
private final ResourcePath path;
4347
private final FirestoreImpl firestore;

branches/spanner-gapic-migration/google-cloud-firestore/src/main/java/com/google/cloud/firestore/DocumentSnapshot.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@
4141
* <p>If the DocumentSnapshot points to a non-existing document, getData() and its corresponding
4242
* methods will return null. You can always explicitly check for a document's existence by calling
4343
* {@link #exists()}.
44+
*
45+
* <p><b>Subclassing Note</b>: Firestore classes are not meant to be subclassed except for use in
46+
* test mocks. Subclassing is not supported in production code and new SDK releases may break code
47+
* that does so.
4448
*/
4549
public class DocumentSnapshot {
4650

branches/spanner-gapic-migration/google-cloud-firestore/src/main/java/com/google/cloud/firestore/QueryDocumentSnapshot.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,12 @@
3232
* <p>QueryDocumentSnapshot offers the same API surface as {@link DocumentSnapshot}. Since query
3333
* results contain only existing documents, the {@link #exists()} method will always return true and
3434
* {@code getData()} will never be null.
35+
*
36+
* <p><b>Subclassing Note</b>: Firestore classes are not meant to be subclassed except for use in
37+
* test mocks. Subclassing is not supported in production code and new SDK releases may break code
38+
* that does so.
3539
*/
36-
public final class QueryDocumentSnapshot extends DocumentSnapshot {
40+
public class QueryDocumentSnapshot extends DocumentSnapshot {
3741
private QueryDocumentSnapshot(
3842
FirestoreImpl firestore,
3943
DocumentReference docRef,

0 commit comments

Comments
 (0)