From fdeaef6b8b9f81c22bd92171b1cbab549a12a0c3 Mon Sep 17 00:00:00 2001 From: Emily Ploszaj Date: Fri, 30 May 2025 15:35:50 -0500 Subject: [PATCH 1/3] Change docs for m165 --- .../google/firebase/ai/type/ImagenPersonFilterLevel.kt | 10 ++++------ .../main/kotlin/com/google/firebase/ai/type/Voice.kt | 4 ++-- .../main/kotlin/com/google/firebase/ai/type/Voices.kt | 2 +- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/firebase-ai/src/main/kotlin/com/google/firebase/ai/type/ImagenPersonFilterLevel.kt b/firebase-ai/src/main/kotlin/com/google/firebase/ai/type/ImagenPersonFilterLevel.kt index 5daa354bbbd..b88a3d55d46 100644 --- a/firebase-ai/src/main/kotlin/com/google/firebase/ai/type/ImagenPersonFilterLevel.kt +++ b/firebase-ai/src/main/kotlin/com/google/firebase/ai/type/ImagenPersonFilterLevel.kt @@ -24,9 +24,8 @@ public class ImagenPersonFilterLevel private constructor(internal val internalVa * Allow generation of images containing people of all ages. * * > Important: Generation of images containing people or faces may require your use case to be - * reviewed and approved by Cloud support; see the - * [Responsible AI and usage - * guidelines](https://cloud.google.com/vertex-ai/generative-ai/docs/image/responsible-ai-imagen#person-face-gen) + * reviewed and approved by Cloud support; see the [Responsible AI and usage guidelines] + * (https://cloud.google.com/vertex-ai/generative-ai/docs/image/responsible-ai-imagen#person-face-gen) * for more details. */ @JvmField public val ALLOW_ALL: ImagenPersonFilterLevel = ImagenPersonFilterLevel("allow_all") @@ -34,9 +33,8 @@ public class ImagenPersonFilterLevel private constructor(internal val internalVa * Allow generation of images containing adults only; images of children are filtered out. * * > Important: Generation of images containing people or faces may require your use case to be - * reviewed and approved by Cloud support; see the - * [Responsible AI and usage - * guidelines](https://cloud.google.com/vertex-ai/generative-ai/docs/image/responsible-ai-imagen#person-face-gen) + * reviewed and approved by Cloud support; see the [Responsible AI and usage guidelines] + * (https://cloud.google.com/vertex-ai/generative-ai/docs/image/responsible-ai-imagen#person-face-gen) * for more details. */ @JvmField diff --git a/firebase-ai/src/main/kotlin/com/google/firebase/ai/type/Voice.kt b/firebase-ai/src/main/kotlin/com/google/firebase/ai/type/Voice.kt index 7053fc986cf..2a27dc681dc 100644 --- a/firebase-ai/src/main/kotlin/com/google/firebase/ai/type/Voice.kt +++ b/firebase-ai/src/main/kotlin/com/google/firebase/ai/type/Voice.kt @@ -20,8 +20,8 @@ import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable /** - * Various voices supported by the server. The list of all voices can be found - * [here](https://cloud.google.com/text-to-speech/docs/chirp3-hd) + * Various voices supported by the server. In the documentation, find the list of + * [all supported voices](https://cloud.google.com/text-to-speech/docs/chirp3-hd). */ @PublicPreviewAPI public class Voice public constructor(public val voiceName: String) { diff --git a/firebase-ai/src/main/kotlin/com/google/firebase/ai/type/Voices.kt b/firebase-ai/src/main/kotlin/com/google/firebase/ai/type/Voices.kt index d5e1f738dc2..5f97b3b36fb 100644 --- a/firebase-ai/src/main/kotlin/com/google/firebase/ai/type/Voices.kt +++ b/firebase-ai/src/main/kotlin/com/google/firebase/ai/type/Voices.kt @@ -20,7 +20,7 @@ import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable /** Various voices supported by the server */ -@Deprecated("Please use the Voice class instead.", ReplaceWith("Voice")) +@Deprecated("Use the Voice class instead.", ReplaceWith("Voice")) @PublicPreviewAPI public class Voices private constructor(public val ordinal: Int) { From 6faa8bc50dc7fd8e8ecbc5e9675587b60c3529e0 Mon Sep 17 00:00:00 2001 From: Emily Ploszaj Date: Wed, 4 Jun 2025 13:14:37 -0500 Subject: [PATCH 2/3] Fix link formatting --- .../google/firebase/ai/type/ImagenPersonFilterLevel.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/firebase-ai/src/main/kotlin/com/google/firebase/ai/type/ImagenPersonFilterLevel.kt b/firebase-ai/src/main/kotlin/com/google/firebase/ai/type/ImagenPersonFilterLevel.kt index b88a3d55d46..219e10d8419 100644 --- a/firebase-ai/src/main/kotlin/com/google/firebase/ai/type/ImagenPersonFilterLevel.kt +++ b/firebase-ai/src/main/kotlin/com/google/firebase/ai/type/ImagenPersonFilterLevel.kt @@ -24,8 +24,8 @@ public class ImagenPersonFilterLevel private constructor(internal val internalVa * Allow generation of images containing people of all ages. * * > Important: Generation of images containing people or faces may require your use case to be - * reviewed and approved by Cloud support; see the [Responsible AI and usage guidelines] - * (https://cloud.google.com/vertex-ai/generative-ai/docs/image/responsible-ai-imagen#person-face-gen) + * reviewed and approved by Cloud support; see the + * [Responsible AI and usage guidelines](https://cloud.google.com/vertex-ai/generative-ai/docs/image/responsible-ai-imagen#person-face-gen) * for more details. */ @JvmField public val ALLOW_ALL: ImagenPersonFilterLevel = ImagenPersonFilterLevel("allow_all") @@ -33,8 +33,8 @@ public class ImagenPersonFilterLevel private constructor(internal val internalVa * Allow generation of images containing adults only; images of children are filtered out. * * > Important: Generation of images containing people or faces may require your use case to be - * reviewed and approved by Cloud support; see the [Responsible AI and usage guidelines] - * (https://cloud.google.com/vertex-ai/generative-ai/docs/image/responsible-ai-imagen#person-face-gen) + * reviewed and approved by Cloud support; see the + * [Responsible AI and usage guidelines](https://cloud.google.com/vertex-ai/generative-ai/docs/image/responsible-ai-imagen#person-face-gen) * for more details. */ @JvmField From 1c1fe8afa694d992a0c77885eec578478320f3c7 Mon Sep 17 00:00:00 2001 From: Emily Ploszaj Date: Fri, 6 Jun 2025 14:40:23 -0500 Subject: [PATCH 3/3] Fix tutorial bundle generation typo --- .../firebase/gradle/bomgenerator/GenerateTutorialBundleTask.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/src/main/java/com/google/firebase/gradle/bomgenerator/GenerateTutorialBundleTask.kt b/plugins/src/main/java/com/google/firebase/gradle/bomgenerator/GenerateTutorialBundleTask.kt index 0534891761f..a5f6b47f0d0 100644 --- a/plugins/src/main/java/com/google/firebase/gradle/bomgenerator/GenerateTutorialBundleTask.kt +++ b/plugins/src/main/java/com/google/firebase/gradle/bomgenerator/GenerateTutorialBundleTask.kt @@ -236,7 +236,7 @@ abstract class GenerateTutorialBundleTask : DefaultTask() { "com.google.firebase:firebase-perf" to ArtifactTutorialMapping("Performance Monitoring", "perf-dependency"), "com.google.firebase:firebase-ai" to - ArtifactTutorialMapping("Firebase AI Logic", "firebase-ai-depedency"), + ArtifactTutorialMapping("Firebase AI Logic", "firebase-ai-dependency"), "com.google.firebase:firebase-messaging" to ArtifactTutorialMapping("Cloud Messaging", "messaging-dependency"), "com.google.firebase:firebase-auth" to