From 627c638cb73570cf9a9173363ef259a25acbcb12 Mon Sep 17 00:00:00 2001 From: Rosario Fernandes Date: Wed, 10 Dec 2025 21:54:58 +0000 Subject: [PATCH 1/2] feat(ai): add equals() to GenerativeBackend --- .../kotlin/com/google/firebase/ai/type/GenerativeBackend.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/firebase-ai/src/main/kotlin/com/google/firebase/ai/type/GenerativeBackend.kt b/firebase-ai/src/main/kotlin/com/google/firebase/ai/type/GenerativeBackend.kt index 29af741a21e..5fe8683d300 100644 --- a/firebase-ai/src/main/kotlin/com/google/firebase/ai/type/GenerativeBackend.kt +++ b/firebase-ai/src/main/kotlin/com/google/firebase/ai/type/GenerativeBackend.kt @@ -40,6 +40,10 @@ internal constructor(internal val location: String, internal val backend: Genera return GenerativeBackend(location, GenerativeBackendEnum.VERTEX_AI) } } + + override fun equals(other: Any?): Boolean { + return other is GenerativeBackend && other.backend == this.backend + } } internal enum class GenerativeBackendEnum { From 40dc034b97b5c2710e0278bf9fc58f391390c02c Mon Sep 17 00:00:00 2001 From: Rosario Fernandes Date: Wed, 10 Dec 2025 22:11:34 +0000 Subject: [PATCH 2/2] add changelog --- firebase-ai/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/firebase-ai/CHANGELOG.md b/firebase-ai/CHANGELOG.md index 70e0cf2cf53..e4efb011621 100644 --- a/firebase-ai/CHANGELOG.md +++ b/firebase-ai/CHANGELOG.md @@ -3,6 +3,7 @@ - [changed] Added `LiveAudioConversationConfig` to control different aspects of the conversation while using the `startAudioConversation` function. - [fixed] Fixed an issue causing streaming chat interactions to drop thought signatures. (#7562) +- [changed] Added `equals()` function to `GenerativeBackend`. # 17.6.0