-
Couldn't load subscription status.
- Fork 647
Update ImagenPersonFilterLevel refdocs to match the iOS SDK #6995
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Javadoc Changes:--- /home/runner/diff/original/firebase-kotlindoc/android/com/google/firebase/ai/type/ImagenPersonFilterLevel.html 2025-05-27 16:20:15.066206449 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/android/com/google/firebase/ai/type/ImagenPersonFilterLevel.html 2025-05-27 16:16:54.032005554 +0000
@@ -49,21 +49,21 @@
<td><code>static final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/ai/type/ImagenPersonFilterLevel.html">ImagenPersonFilterLevel</a></code></td>
<td>
<div><code><a href="/docs/reference/android/com/google/firebase/ai/type/ImagenPersonFilterLevel.Companion.html#ALLOW_ADULT()">ALLOW_ADULT</a></code></div>
- <p>Filters out any images containing depictions of children.</p>
+ <p>Allow generation of images containing adults only; images of children are filtered out.</p>
</td>
</tr>
<tr>
<td><code>static final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/ai/type/ImagenPersonFilterLevel.html">ImagenPersonFilterLevel</a></code></td>
<td>
<div><code><a href="/docs/reference/android/com/google/firebase/ai/type/ImagenPersonFilterLevel.Companion.html#ALLOW_ALL()">ALLOW_ALL</a></code></div>
- <p>No filters applied.</p>
+ <p>Allow generation of images containing people of all ages.</p>
</td>
</tr>
<tr>
<td><code>static final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/ai/type/ImagenPersonFilterLevel.html">ImagenPersonFilterLevel</a></code></td>
<td>
<div><code><a href="/docs/reference/android/com/google/firebase/ai/type/ImagenPersonFilterLevel.Companion.html#BLOCK_ALL()">BLOCK_ALL</a></code></div>
- <p>Filters out any images containing depictions of people.</p>
+ <p>Disallow generation of images containing people or faces; images of people are filtered out.</p>
</td>
</tr>
</tbody>
@@ -74,17 +74,23 @@
<div class="api-item"><a name="getALLOW_ADULT()"></a><a name="setALLOW_ADULT()"></a><a name="getALLOW_ADULT--"></a><a name="setALLOW_ADULT--"></a>
<h3 class="api-name" id="ALLOW_ADULT()">ALLOW_ADULT</h3>
<pre class="api-signature no-pretty-print">public static final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/ai/type/ImagenPersonFilterLevel.html">ImagenPersonFilterLevel</a> <a href="/docs/reference/android/com/google/firebase/ai/type/ImagenPersonFilterLevel.Companion.html#ALLOW_ADULT()">ALLOW_ADULT</a></pre>
- <p>Filters out any images containing depictions of children.</p>
+ <p>Allow generation of images containing adults only; images of children are filtered out.</p>
+ <blockquote>
+ <p>Important: Generation of images containing people or faces may require your use case to be reviewed and approved by Cloud support; see the <a href="https://cloud.google.com/vertex-ai/generative-ai/docs/image/responsible-ai-imagen#person-face-gen">Responsible AI and usage * guidelines</a> for more details.</p>
+ </blockquote>
</div>
<div class="api-item"><a name="getALLOW_ALL()"></a><a name="setALLOW_ALL()"></a><a name="getALLOW_ALL--"></a><a name="setALLOW_ALL--"></a>
<h3 class="api-name" id="ALLOW_ALL()">ALLOW_ALL</h3>
<pre class="api-signature no-pretty-print">public static final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/ai/type/ImagenPersonFilterLevel.html">ImagenPersonFilterLevel</a> <a href="/docs/reference/android/com/google/firebase/ai/type/ImagenPersonFilterLevel.Companion.html#ALLOW_ALL()">ALLOW_ALL</a></pre>
- <p>No filters applied.</p>
+ <p>Allow generation of images containing people of all ages.</p>
+ <blockquote>
+ <p>Important: Generation of images containing people or faces may require your use case to be reviewed and approved by Cloud support; see the <a href="https://cloud.google.com/vertex-ai/generative-ai/docs/image/responsible-ai-imagen#person-face-gen">Responsible AI and usage * guidelines</a> for more details.</p>
+ </blockquote>
</div>
<div class="api-item"><a name="getBLOCK_ALL()"></a><a name="setBLOCK_ALL()"></a><a name="getBLOCK_ALL--"></a><a name="setBLOCK_ALL--"></a>
<h3 class="api-name" id="BLOCK_ALL()">BLOCK_ALL</h3>
<pre class="api-signature no-pretty-print">public static final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/ai/type/ImagenPersonFilterLevel.html">ImagenPersonFilterLevel</a> <a href="/docs/reference/android/com/google/firebase/ai/type/ImagenPersonFilterLevel.Companion.html#BLOCK_ALL()">BLOCK_ALL</a></pre>
- <p>Filters out any images containing depictions of people.</p>
+ <p>Disallow generation of images containing people or faces; images of people are filtered out.</p>
</div>
</div>
</body>--- /home/runner/diff/original/firebase-kotlindoc/kotlin/com/google/firebase/ai/type/ImagenPersonFilterLevel.html 2025-05-27 16:20:15.120206503 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/kotlin/com/google/firebase/ai/type/ImagenPersonFilterLevel.html 2025-05-27 16:16:54.100005638 +0000
@@ -29,21 +29,21 @@
<td><code><a href="/docs/reference/kotlin/com/google/firebase/ai/type/ImagenPersonFilterLevel.html">ImagenPersonFilterLevel</a></code></td>
<td>
<div><code><a href="/docs/reference/kotlin/com/google/firebase/ai/type/ImagenPersonFilterLevel.Companion.html#ALLOW_ADULT()">ALLOW_ADULT</a></code></div>
- <p>Filters out any images containing depictions of children.</p>
+ <p>Allow generation of images containing adults only; images of children are filtered out.</p>
</td>
</tr>
<tr>
<td><code><a href="/docs/reference/kotlin/com/google/firebase/ai/type/ImagenPersonFilterLevel.html">ImagenPersonFilterLevel</a></code></td>
<td>
<div><code><a href="/docs/reference/kotlin/com/google/firebase/ai/type/ImagenPersonFilterLevel.Companion.html#ALLOW_ALL()">ALLOW_ALL</a></code></div>
- <p>No filters applied.</p>
+ <p>Allow generation of images containing people of all ages.</p>
</td>
</tr>
<tr>
<td><code><a href="/docs/reference/kotlin/com/google/firebase/ai/type/ImagenPersonFilterLevel.html">ImagenPersonFilterLevel</a></code></td>
<td>
<div><code><a href="/docs/reference/kotlin/com/google/firebase/ai/type/ImagenPersonFilterLevel.Companion.html#BLOCK_ALL()">BLOCK_ALL</a></code></div>
- <p>Filters out any images containing depictions of people.</p>
+ <p>Disallow generation of images containing people or faces; images of people are filtered out.</p>
</td>
</tr>
</tbody>
@@ -54,17 +54,23 @@
<div class="api-item"><a name="getALLOW_ADULT()"></a><a name="setALLOW_ADULT()"></a><a name="getALLOW_ADULT--"></a><a name="setALLOW_ADULT--"></a>
<h3 class="api-name" id="ALLOW_ADULT()">ALLOW_ADULT</h3>
<pre class="api-signature no-pretty-print">val <a href="/docs/reference/kotlin/com/google/firebase/ai/type/ImagenPersonFilterLevel.Companion.html#ALLOW_ADULT()">ALLOW_ADULT</a>: <a href="/docs/reference/kotlin/com/google/firebase/ai/type/ImagenPersonFilterLevel.html">ImagenPersonFilterLevel</a></pre>
- <p>Filters out any images containing depictions of children.</p>
+ <p>Allow generation of images containing adults only; images of children are filtered out.</p>
+ <blockquote>
+ <p>Important: Generation of images containing people or faces may require your use case to be reviewed and approved by Cloud support; see the <a href="https://cloud.google.com/vertex-ai/generative-ai/docs/image/responsible-ai-imagen#person-face-gen">Responsible AI and usage * guidelines</a> for more details.</p>
+ </blockquote>
</div>
<div class="api-item"><a name="getALLOW_ALL()"></a><a name="setALLOW_ALL()"></a><a name="getALLOW_ALL--"></a><a name="setALLOW_ALL--"></a>
<h3 class="api-name" id="ALLOW_ALL()">ALLOW_ALL</h3>
<pre class="api-signature no-pretty-print">val <a href="/docs/reference/kotlin/com/google/firebase/ai/type/ImagenPersonFilterLevel.Companion.html#ALLOW_ALL()">ALLOW_ALL</a>: <a href="/docs/reference/kotlin/com/google/firebase/ai/type/ImagenPersonFilterLevel.html">ImagenPersonFilterLevel</a></pre>
- <p>No filters applied.</p>
+ <p>Allow generation of images containing people of all ages.</p>
+ <blockquote>
+ <p>Important: Generation of images containing people or faces may require your use case to be reviewed and approved by Cloud support; see the <a href="https://cloud.google.com/vertex-ai/generative-ai/docs/image/responsible-ai-imagen#person-face-gen">Responsible AI and usage * guidelines</a> for more details.</p>
+ </blockquote>
</div>
<div class="api-item"><a name="getBLOCK_ALL()"></a><a name="setBLOCK_ALL()"></a><a name="getBLOCK_ALL--"></a><a name="setBLOCK_ALL--"></a>
<h3 class="api-name" id="BLOCK_ALL()">BLOCK_ALL</h3>
<pre class="api-signature no-pretty-print">val <a href="/docs/reference/kotlin/com/google/firebase/ai/type/ImagenPersonFilterLevel.Companion.html#BLOCK_ALL()">BLOCK_ALL</a>: <a href="/docs/reference/kotlin/com/google/firebase/ai/type/ImagenPersonFilterLevel.html">ImagenPersonFilterLevel</a></pre>
- <p>Filters out any images containing depictions of people.</p>
+ <p>Disallow generation of images containing people or faces; images of people are filtered out.</p>
</div>
</div>
</body> |
Generated by 🚫 Danger |
Test Results 24 files - 40 24 suites - 40 34s ⏱️ - 1m 47s Results for commit 8ea5863. ± Comparison against base commit ec4b353. This pull request removes 319 and adds 102 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
Coverage Report 1Affected ProductsNo changes between base commit (ec4b353) and merge commit (ec52df8).Test Logs |
Size Report 1Affected ProductsTest Logs |
This PR updates the ImagenPersonFilter refdocs to match the iOS SDK, including the information about the Person and face generation allowlist.