feat: Add support for new Firestore types #6928
--- /home/runner/diff/original/firebase-kotlindoc/kotlin/com/google/firebase/firestore/Int32Value.html 1970-01-01 00:00:00.000000000 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/kotlin/com/google/firebase/firestore/Int32Value.html 2025-05-05 16:45:13.593330723 +0000
@@ -0,0 +1,165 @@
+
+
+ Int32Value
+{% setvar book_path %}/_book.yaml{% endsetvar %}
+{% include "docs/reference/kotlin/_reference-head-tags.html" %}
+
+
+
+ Int32Value
+
+ class Int32Value
+
+
+ Represents a 32-bit integer type in Firestore documents.
+ Summary
+
+
+
+
+
+
+
+
+ Public constructors
+
+
+
+
+
+ Int32Value(value: Int)
+
+
+
+
+
+
+
+
+
+ Public functions
+
+ equals
+ fun equals(obj: Any!): Boolean
+ Returns true if this Int32Value is equal to the provided object.
+
+
+
+
+
+
+
+
+ Parameters
+
+
+
+
+ obj: Any!
+
+ The object to compare against.
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns
+
+
+
+
+ Boolean
+
+ Whether this Int32Value is equal to the provided object.
+
+
+
+
+
+
+
+
+
+
+
+
+
--- /home/runner/diff/original/firebase-kotlindoc/kotlin/com/google/firebase/firestore/MaxKey.html 1970-01-01 00:00:00.000000000 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/kotlin/com/google/firebase/firestore/MaxKey.html 2025-05-05 16:45:13.564330738 +0000
@@ -0,0 +1,110 @@
+
+
+ MaxKey
+{% setvar book_path %}/_book.yaml{% endsetvar %}
+{% include "docs/reference/kotlin/_reference-head-tags.html" %}
+
+
+
+ MaxKey
+
+ class MaxKey
+
+
+ Represents the Firestore "Max Key" data type.
+ Summary
+
+
+ Public functions
+
+ equals
+ fun equals(obj: Any!): Boolean
+ Returns true if this MaxKey is equal to the provided object.
+
+
+
+
+
+
+
+
+ Parameters
+
+
+
+
+ obj: Any!
+
+ The object to compare against.
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns
+
+
+
+
+ Boolean
+
+ Whether this MaxKey is equal to the provided object.
+
+
+
+
+
+
+
+
+
+
+
+
--- /home/runner/diff/original/firebase-kotlindoc/kotlin/com/google/firebase/firestore/MinKey.html 1970-01-01 00:00:00.000000000 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/kotlin/com/google/firebase/firestore/MinKey.html 2025-05-05 16:45:13.593330723 +0000
@@ -0,0 +1,110 @@
+
+
+ MinKey
+{% setvar book_path %}/_book.yaml{% endsetvar %}
+{% include "docs/reference/kotlin/_reference-head-tags.html" %}
+
+
+
+ MinKey
+
+ class MinKey
+
+
+ Represents the Firestore "Min Key" data type.
+ Summary
+
+
+ Public functions
+
+ equals
+ fun equals(obj: Any!): Boolean
+ Returns true if this MinKey is equal to the provided object.
+
+
+
+
+
+
+
+
+ Parameters
+
+
+
+
+ obj: Any!
+
+ The object to compare against.
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns
+
+
+
+
+ Boolean
+
+ Whether this MinKey is equal to the provided object.
+
+
+
+
+
+
+
+
+
+
+
+
--- /home/runner/diff/original/firebase-kotlindoc/kotlin/com/google/firebase/firestore/QueryDocumentSnapshot.html 2025-05-05 16:48:46.826222301 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/kotlin/com/google/firebase/firestore/QueryDocumentSnapshot.html 2025-05-05 16:45:13.594330723 +0000
@@ -233,6 +233,27 @@
+ BsonBinaryData?
+
+ getBsonBinaryData(field: String)
+ Returns the value of the field as a BsonBinaryData.
+
+
+
+ BsonObjectId?
+
+ getBsonObjectId(field: String)
+ Returns the value of the field as a BsonObjectId.
+
+
+
+ BsonTimestamp?
+
+ getBsonTimestamp(field: String)
+ Returns the value of the field as a BsonTimestampValue.
+
+
+
Date?
@@ -274,6 +295,13 @@
+ Int32Value?
+
+ getInt32Value(field: String)
+ Returns the value of the field as a 32-bit integer.
+
+
+
Long?
@@ -281,12 +309,26 @@
+ MaxKey?
+
+
+ Returns the value of the field as a MaxKey.
+
+
+
SnapshotMetadata
+ MinKey?
+
+
+ Returns the value of the field as a MinKey.
+
+
+
DocumentReference
@@ -294,6 +336,13 @@
+ RegexValue?
+
+ getRegexValue(field: String)
+ Returns the value of the field as a RegexValue.
+
+
+
String?
--- /home/runner/diff/original/firebase-kotlindoc/kotlin/com/google/firebase/firestore/RegexValue.html 1970-01-01 00:00:00.000000000 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/kotlin/com/google/firebase/firestore/RegexValue.html 2025-05-05 16:45:13.589330725 +0000
@@ -0,0 +1,175 @@
+
+
+ RegexValue
+{% setvar book_path %}/_book.yaml{% endsetvar %}
+{% include "docs/reference/kotlin/_reference-head-tags.html" %}
+
+
+
+ RegexValue
+
+ class RegexValue
+
+
+ Represents a regular expression type in Firestore documents.
+ Summary
+
+
+
+
+
+
+
+
+ Public constructors
+
+
+
+
+
+ RegexValue(pattern: String, options: String)
+
+
+
+
+
+
+
+
+
+ Public functions
+
+ equals
+ fun equals(obj: Any!): Boolean
+ Returns true if this RegexValue is equal to the provided object.
+
+
+
+
+
+
+
+
+ Parameters
+
+
+
+
+ obj: Any!
+
+ The object to compare against.
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns
+
+
+
+
+ Boolean
+
+ Whether this RegexValue is equal to the provided object.
+
+
+
+
+
+
+
+
+
+
+
+
+
--- /home/runner/diff/original/firebase-kotlindoc/kotlin/com/google/firebase/firestore/package-summary.html 2025-05-05 16:48:46.816222305 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/kotlin/com/google/firebase/firestore/package-summary.html 2025-05-05 16:45:13.574330733 +0000
@@ -108,6 +108,24 @@
+ BsonBinaryData
+
+ Represents a BSON Binary data type in Firestore documents.
+
+
+
+ BsonObjectId
+
+ Represents a BSON ObjectId type in Firestore documents.
+
+
+
+ BsonTimestamp
+
+ Represents a BSON Timestamp type in Firestore documents.
+
+
+
CollectionReference
A CollectionReference
can be used for adding documents, getting document references, and querying for documents (using the methods inherited from Query
).
@@ -175,6 +193,12 @@
+ Int32Value
+
+ Represents a 32-bit integer type in Firestore documents.
+
+
+
LoadBundleTask
Represents the task of loading a Firestore bundle.
@@ -187,6 +211,12 @@
+ MaxKey
+
+ Represents the Firestore "Max Key" data type.
+
+
+
MemoryCacheSettings
Configures the SDK to use a memory cache.
@@ -219,6 +249,12 @@
+ MinKey
+
+ Represents the Firestore "Min Key" data type.
+
+
+
PersistentCacheIndexManager
Persistent cache indexes can improve performance of local query execution.
@@ -255,6 +291,12 @@
+ RegexValue
+
+ Represents a regular expression type in Firestore documents.
+
+
+
SetOptions
An options object that configures the behavior of set()
calls.
Size Report 1Affected Products
Test Logs |
Startup Time Report 1Note: Layout is sometimes suboptimal due to limited formatting support on GitHub. Please check this report on GCS. Notes
Startup Times
|
@Test | ||
public void testSetMerge() { | ||
CollectionReference collection = testCollection(); | ||
CollectionReference collection = testCollectionOnNightly(); |
There was a problem hiding this comment.
These should be switched back
} | ||
|
||
// TODO(Mila/BSON): remove the cache population after updating the | ||
// assertSDKQueryResultsConsistentWithBackend |
There was a problem hiding this comment.
these should be resolved.
IIUC all of the
// Pre-populate the cache with all docs
waitFor(randomColl.get());
can now be removed.
Adds support for MinKey, MaxKey, RegexValue, Int32Value, BsonObjectId, BsonTimestamp, and BsonBinaryData.