Skip to content

Commit 627c638

Browse files
committed
feat(ai): add equals() to GenerativeBackend
1 parent df21d8b commit 627c638

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

firebase-ai/src/main/kotlin/com/google/firebase/ai/type/GenerativeBackend.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ internal constructor(internal val location: String, internal val backend: Genera
4040
return GenerativeBackend(location, GenerativeBackendEnum.VERTEX_AI)
4141
}
4242
}
43+
44+
override fun equals(other: Any?): Boolean {
45+
return other is GenerativeBackend && other.backend == this.backend
46+
}
4347
}
4448

4549
internal enum class GenerativeBackendEnum {

0 commit comments

Comments
 (0)