-
Notifications
You must be signed in to change notification settings - Fork 578
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
Several small changes to enums API #6294
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The changes restricted to enum values and names are: - Remove `UNSPECIFIED` from `FinishReason` - Renamed `BlockThreshold` to `HarmBlockThreshold` - Rename UNSPECIFIED to UNKNOWN in `HarmBlockThreshold` - Remove `UNSPECIFIED` from `HarmProbability` - Remove `UNSPECIFIED` from `HarmSeverity` - Remove `UNSPECIFIED` from `BlockReason` Additionally, additional changes to non-enum values include - Make `totalBillableCharacters` nullable and optional
Javadoc Changes:--- /home/runner/diff/original/firebase-kotlindoc/android/client/firebase-vertexai/_toc.yaml 2024-09-24 05:37:46.382293059 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/android/client/firebase-vertexai/_toc.yaml 2024-09-24 05:35:39.551320153 +0000
@@ -109,12 +109,12 @@
section:
- title: "BlockReason"
path: "/docs/reference/android/com/google/firebase/vertexai/type/BlockReason.html"
- - title: "BlockThreshold"
- path: "/docs/reference/android/com/google/firebase/vertexai/type/BlockThreshold.html"
- title: "FinishReason"
path: "/docs/reference/android/com/google/firebase/vertexai/type/FinishReason.html"
- title: "FunctionCallingConfig.Mode"
path: "/docs/reference/android/com/google/firebase/vertexai/type/FunctionCallingConfig.Mode.html"
+ - title: "HarmBlockThreshold"
+ path: "/docs/reference/android/com/google/firebase/vertexai/type/HarmBlockThreshold.html"
- title: "HarmCategory"
path: "/docs/reference/android/com/google/firebase/vertexai/type/HarmCategory.html"
- title: "HarmProbability" --- /home/runner/diff/original/firebase-kotlindoc/android/com/google/firebase/vertexai/type/BlockReason.html 2024-09-24 05:37:46.379293058 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/android/com/google/firebase/vertexai/type/BlockReason.html 2024-09-24 05:35:39.549320154 +0000
@@ -61,12 +61,6 @@
<p>A new and not yet supported value.</p>
</td>
</tr>
- <tr>
- <td><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/BlockReason.html#UNSPECIFIED">UNSPECIFIED</a></code></td>
- <td>
- <p>Content was blocked for an unspecified reason.</p>
- </td>
- </tr>
</tbody>
</table>
</div>
@@ -116,11 +110,6 @@
<pre class="api-signature no-pretty-print"><a href="/docs/reference/android/com/google/firebase/vertexai/type/BlockReason.html">BlockReason</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/BlockReason.html#UNKNOWN">BlockReason.UNKNOWN</a></pre>
<p>A new and not yet supported value.</p>
</div>
- <div class="api-item">
- <h3 class="api-name" id="UNSPECIFIED">UNSPECIFIED</h3>
- <pre class="api-signature no-pretty-print"><a href="/docs/reference/android/com/google/firebase/vertexai/type/BlockReason.html">BlockReason</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/BlockReason.html#UNSPECIFIED">BlockReason.UNSPECIFIED</a></pre>
- <p>Content was blocked for an unspecified reason.</p>
- </div>
</div>
<div class="list">
<h2>Public methods</h2> --- /home/runner/diff/original/firebase-kotlindoc/android/com/google/firebase/vertexai/type/BlockThreshold.html 2024-09-24 05:37:46.379293058 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/android/com/google/firebase/vertexai/type/BlockThreshold.html 1970-01-01 00:00:00.000000000 +0000
@@ -1,173 +0,0 @@
-<html devsite="true">
- <head>
- <title>BlockThreshold</title>
-{% setvar book_path %}/_book.yaml{% endsetvar %}
-{% include "docs/reference/android/_reference-head-tags.html" %}
- </head>
- <body>
- <div id="metadata-info-block"></div>
- <h1>BlockThreshold</h1>
- <p>
- <pre>public enum <a href="/docs/reference/android/com/google/firebase/vertexai/type/BlockThreshold.html">BlockThreshold</a> extends <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html">Enum</a></pre>
- </p>
- <div class="devsite-table-wrapper">
- <table class="jd-inheritance-table">
- <tbody>
- <tr>
- <td colspan="3"><a href="https://developer.android.com/reference/kotlin/java/lang/Object.html">java.lang.Object</a></td>
- </tr>
- <tr>
- <td class="jd-inheritance-space"> ↳</td>
- <td colspan="2"><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html">kotlin.Enum</a></td>
- </tr>
- <tr>
- <td> </td>
- <td class="jd-inheritance-space"> ↳</td>
- <td colspan="1"><a href="/docs/reference/android/com/google/firebase/vertexai/type/BlockThreshold.html">com.google.firebase.vertexai.type.BlockThreshold</a></td>
- </tr>
- </tbody>
- </table>
- </div>
- <hr>
- <p>Represents the threshold for some <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmCategory.html">HarmCategory</a></code> that is allowed and blocked by <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/SafetySetting.html">SafetySetting</a></code>.</p>
- <h2>Summary</h2>
- <div class="devsite-table-wrapper">
- <table class="responsive">
- <colgroup>
- <col width="40%">
- <col>
- </colgroup>
- <thead>
- <tr>
- <th colspan="100%"><h3>Enum Values</h3></th>
- </tr>
- </thead>
- <tbody class="list">
- <tr>
- <td><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/BlockThreshold.html#LOW_AND_ABOVE">LOW_AND_ABOVE</a></code></td>
- <td>
- <p>Content with negligible harm is allowed.</p>
- </td>
- </tr>
- <tr>
- <td><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/BlockThreshold.html#MEDIUM_AND_ABOVE">MEDIUM_AND_ABOVE</a></code></td>
- <td>
- <p>Content with negligible to low harm is allowed.</p>
- </td>
- </tr>
- <tr>
- <td><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/BlockThreshold.html#NONE">NONE</a></code></td>
- <td>
- <p>All content is allowed regardless of harm.</p>
- </td>
- </tr>
- <tr>
- <td><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/BlockThreshold.html#ONLY_HIGH">ONLY_HIGH</a></code></td>
- <td>
- <p>Content with negligible to medium harm is allowed.</p>
- </td>
- </tr>
- <tr>
- <td><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/BlockThreshold.html#UNSPECIFIED">UNSPECIFIED</a></code></td>
- <td>
- <p>The threshold was not specified.</p>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <div class="devsite-table-wrapper">
- <table class="responsive">
- <colgroup>
- <col width="40%">
- <col>
- </colgroup>
- <thead>
- <tr>
- <th colspan="100%"><h3>Public methods</h3></th>
- </tr>
- </thead>
- <tbody class="list">
- <tr>
- <td><code>final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/BlockThreshold.html">BlockThreshold</a></code></td>
- <td>
- <div><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/BlockThreshold.html#valueOf(kotlin.String)">valueOf</a>(@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a> value)</code></div>
- <p>Returns the enum constant of this type with the specified name.</p>
- </td>
- </tr>
- <tr>
- <td><code>final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> BlockThreshold[]</code></td>
- <td>
- <div><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/BlockThreshold.html#values()">values</a>()</code></div>
- <p>Returns an array containing the constants of this enum type, in the order they're declared.</p>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <div class="list">
- <h2>Enum Values</h2>
- <div class="api-item">
- <h3 class="api-name" id="LOW_AND_ABOVE">LOW_AND_ABOVE</h3>
- <pre class="api-signature no-pretty-print"><a href="/docs/reference/android/com/google/firebase/vertexai/type/BlockThreshold.html">BlockThreshold</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/BlockThreshold.html#LOW_AND_ABOVE">BlockThreshold.LOW_AND_ABOVE</a></pre>
- <p>Content with negligible harm is allowed.</p>
- </div>
- <div class="api-item">
- <h3 class="api-name" id="MEDIUM_AND_ABOVE">MEDIUM_AND_ABOVE</h3>
- <pre class="api-signature no-pretty-print"><a href="/docs/reference/android/com/google/firebase/vertexai/type/BlockThreshold.html">BlockThreshold</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/BlockThreshold.html#MEDIUM_AND_ABOVE">BlockThreshold.MEDIUM_AND_ABOVE</a></pre>
- <p>Content with negligible to low harm is allowed.</p>
- </div>
- <div class="api-item">
- <h3 class="api-name" id="NONE">NONE</h3>
- <pre class="api-signature no-pretty-print"><a href="/docs/reference/android/com/google/firebase/vertexai/type/BlockThreshold.html">BlockThreshold</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/BlockThreshold.html#NONE">BlockThreshold.NONE</a></pre>
- <p>All content is allowed regardless of harm.</p>
- </div>
- <div class="api-item">
- <h3 class="api-name" id="ONLY_HIGH">ONLY_HIGH</h3>
- <pre class="api-signature no-pretty-print"><a href="/docs/reference/android/com/google/firebase/vertexai/type/BlockThreshold.html">BlockThreshold</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/BlockThreshold.html#ONLY_HIGH">BlockThreshold.ONLY_HIGH</a></pre>
- <p>Content with negligible to medium harm is allowed.</p>
- </div>
- <div class="api-item">
- <h3 class="api-name" id="UNSPECIFIED">UNSPECIFIED</h3>
- <pre class="api-signature no-pretty-print"><a href="/docs/reference/android/com/google/firebase/vertexai/type/BlockThreshold.html">BlockThreshold</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/BlockThreshold.html#UNSPECIFIED">BlockThreshold.UNSPECIFIED</a></pre>
- <p>The threshold was not specified.</p>
- </div>
- </div>
- <div class="list">
- <h2>Public methods</h2>
- <div class="api-item"><a name="valueOf-kotlin.String-"></a><a name="valueof"></a>
- <h3 class="api-name" id="valueOf(kotlin.String)">valueOf</h3>
- <pre class="api-signature no-pretty-print">public final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/BlockThreshold.html">BlockThreshold</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/BlockThreshold.html#valueOf(kotlin.String)">valueOf</a>(@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a> value)</pre>
- <p>Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)</p>
- <div class="devsite-table-wrapper">
- <table class="responsive">
- <colgroup>
- <col width="40%">
- <col>
- </colgroup>
- <thead>
- <tr>
- <th colspan="100%">Throws</th>
- </tr>
- </thead>
- <tbody class="list">
- <tr>
- <td><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-illegal-argument-exception/index.html">kotlin.IllegalArgumentException</a> kotlin.IllegalArgumentException</code></td>
- <td>
- <p>if this enum type has no constant with the specified name</p>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <div class="api-item"><a name="values--"></a><a name="values"></a>
- <h3 class="api-name" id="values()">values</h3>
- <pre class="api-signature no-pretty-print">public final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> BlockThreshold[] <a href="/docs/reference/android/com/google/firebase/vertexai/type/BlockThreshold.html#values()">values</a>()</pre>
- <p>Returns an array containing the constants of this enum type, in the order they're declared.</p>
- <p>This method may be used to iterate over the constants.</p>
- </div>
- </div>
- </body>
-</html>
- --- /home/runner/diff/original/firebase-kotlindoc/android/com/google/firebase/vertexai/type/CountTokensResponse.html 2024-09-24 05:37:46.376293058 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/android/com/google/firebase/vertexai/type/CountTokensResponse.html 2024-09-24 05:35:39.545320154 +0000
@@ -26,10 +26,10 @@
</thead>
<tbody class="list">
<tr>
- <td><code>final int</code></td>
+ <td><code>final <a href="https://developer.android.com/reference/kotlin/java/lang/Integer.html">Integer</a></code></td>
<td>
<div><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/CountTokensResponse.html#totalBillableCharacters()">totalBillableCharacters</a></code></div>
- <p>A count of the characters that are billable in the input</p>
+ <p>A count of the characters that are billable in the input, if available.</p>
</td>
</tr>
<tr>
@@ -56,7 +56,7 @@
<tbody class="list">
<tr>
<td>
- <div><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/CountTokensResponse.html#CountTokensResponse(kotlin.Int,kotlin.Int)">CountTokensResponse</a>(int totalTokens, int totalBillableCharacters)</code></div>
+ <div><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/CountTokensResponse.html#CountTokensResponse(kotlin.Int,kotlin.Int)">CountTokensResponse</a>(int totalTokens, <a href="https://developer.android.com/reference/kotlin/java/lang/Integer.html">Integer</a> totalBillableCharacters)</code></div>
</td>
</tr>
</tbody>
@@ -81,7 +81,7 @@
</td>
</tr>
<tr>
- <td><code>final int</code></td>
+ <td><code>final <a href="https://developer.android.com/reference/kotlin/java/lang/Integer.html">Integer</a></code></td>
<td>
<div><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/CountTokensResponse.html#component2()">component2</a>()</code></div>
</td>
@@ -93,8 +93,8 @@
<h2>Public fields</h2>
<div class="api-item"><a name="getTotalBillableCharacters()"></a><a name="setTotalBillableCharacters()"></a><a name="getTotalBillableCharacters--"></a><a name="setTotalBillableCharacters--"></a>
<h3 class="api-name" id="totalBillableCharacters()">totalBillableCharacters</h3>
- <pre class="api-signature no-pretty-print">public final int <a href="/docs/reference/android/com/google/firebase/vertexai/type/CountTokensResponse.html#totalBillableCharacters()">totalBillableCharacters</a></pre>
- <p>A count of the characters that are billable in the input</p>
+ <pre class="api-signature no-pretty-print">public final <a href="https://developer.android.com/reference/kotlin/java/lang/Integer.html">Integer</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/CountTokensResponse.html#totalBillableCharacters()">totalBillableCharacters</a></pre>
+ <p>A count of the characters that are billable in the input, if available.</p>
</div>
<div class="api-item"><a name="getTotalTokens()"></a><a name="setTotalTokens()"></a><a name="getTotalTokens--"></a><a name="setTotalTokens--"></a>
<h3 class="api-name" id="totalTokens()">totalTokens</h3>
@@ -106,7 +106,7 @@
<h2>Public constructors</h2>
<div class="api-item"><a name="CountTokensResponse(kotlin.Int, kotlin.Int)"></a><a name="CountTokensResponse-kotlin.Int-kotlin.Int-"></a><a name="counttokensresponse"></a>
<h3 class="api-name" id="CountTokensResponse(kotlin.Int,kotlin.Int)">CountTokensResponse</h3>
- <pre class="api-signature no-pretty-print">public <a href="/docs/reference/android/com/google/firebase/vertexai/type/CountTokensResponse.html#CountTokensResponse(kotlin.Int,kotlin.Int)">CountTokensResponse</a>(int totalTokens, int totalBillableCharacters)</pre>
+ <pre class="api-signature no-pretty-print">public <a href="/docs/reference/android/com/google/firebase/vertexai/type/CountTokensResponse.html#CountTokensResponse(kotlin.Int,kotlin.Int)">CountTokensResponse</a>(int totalTokens, <a href="https://developer.android.com/reference/kotlin/java/lang/Integer.html">Integer</a> totalBillableCharacters)</pre>
</div>
</div>
<div class="list">
@@ -117,7 +117,7 @@
</div>
<div class="api-item"><a name="component2--"></a><a name="component2"></a>
<h3 class="api-name" id="component2()">component2</h3>
- <pre class="api-signature no-pretty-print">public final int <a href="/docs/reference/android/com/google/firebase/vertexai/type/CountTokensResponse.html#component2()">component2</a>()</pre>
+ <pre class="api-signature no-pretty-print">public final <a href="https://developer.android.com/reference/kotlin/java/lang/Integer.html">Integer</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/CountTokensResponse.html#component2()">component2</a>()</pre>
</div>
</div>
</body> --- /home/runner/diff/original/firebase-kotlindoc/android/com/google/firebase/vertexai/type/FinishReason.html 2024-09-24 05:37:46.378293058 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/android/com/google/firebase/vertexai/type/FinishReason.html 2024-09-24 05:35:39.548320154 +0000
@@ -79,12 +79,6 @@
<p>A new and not yet supported value.</p>
</td>
</tr>
- <tr>
- <td><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/FinishReason.html#UNSPECIFIED">UNSPECIFIED</a></code></td>
- <td>
- <p>Reason is unspecified.</p>
- </td>
- </tr>
</tbody>
</table>
</div>
@@ -149,11 +143,6 @@
<pre class="api-signature no-pretty-print"><a href="/docs/reference/android/com/google/firebase/vertexai/type/FinishReason.html">FinishReason</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/FinishReason.html#UNKNOWN">FinishReason.UNKNOWN</a></pre>
<p>A new and not yet supported value.</p>
</div>
- <div class="api-item">
- <h3 class="api-name" id="UNSPECIFIED">UNSPECIFIED</h3>
- <pre class="api-signature no-pretty-print"><a href="/docs/reference/android/com/google/firebase/vertexai/type/FinishReason.html">FinishReason</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/FinishReason.html#UNSPECIFIED">FinishReason.UNSPECIFIED</a></pre>
- <p>Reason is unspecified.</p>
- </div>
</div>
<div class="list">
<h2>Public methods</h2> --- /home/runner/diff/original/firebase-kotlindoc/android/com/google/firebase/vertexai/type/HarmBlockThreshold.html 1970-01-01 00:00:00.000000000 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/android/com/google/firebase/vertexai/type/HarmBlockThreshold.html 2024-09-24 05:35:39.549320154 +0000
@@ -0,0 +1,162 @@
+<html devsite="true">
+ <head>
+ <title>HarmBlockThreshold</title>
+{% setvar book_path %}/_book.yaml{% endsetvar %}
+{% include "docs/reference/android/_reference-head-tags.html" %}
+ </head>
+ <body>
+ <div id="metadata-info-block"></div>
+ <h1>HarmBlockThreshold</h1>
+ <p>
+ <pre>public enum <a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmBlockThreshold.html">HarmBlockThreshold</a> extends <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html">Enum</a></pre>
+ </p>
+ <div class="devsite-table-wrapper">
+ <table class="jd-inheritance-table">
+ <tbody>
+ <tr>
+ <td colspan="3"><a href="https://developer.android.com/reference/kotlin/java/lang/Object.html">java.lang.Object</a></td>
+ </tr>
+ <tr>
+ <td class="jd-inheritance-space"> ↳</td>
+ <td colspan="2"><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html">kotlin.Enum</a></td>
+ </tr>
+ <tr>
+ <td> </td>
+ <td class="jd-inheritance-space"> ↳</td>
+ <td colspan="1"><a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmBlockThreshold.html">com.google.firebase.vertexai.type.HarmBlockThreshold</a></td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <hr>
+ <p>Represents the threshold for some <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmCategory.html">HarmCategory</a></code> that is allowed and blocked by <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/SafetySetting.html">SafetySetting</a></code>.</p>
+ <h2>Summary</h2>
+ <div class="devsite-table-wrapper">
+ <table class="responsive">
+ <colgroup>
+ <col width="40%">
+ <col>
+ </colgroup>
+ <thead>
+ <tr>
+ <th colspan="100%"><h3>Enum Values</h3></th>
+ </tr>
+ </thead>
+ <tbody class="list">
+ <tr>
+ <td><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmBlockThreshold.html#LOW_AND_ABOVE">LOW_AND_ABOVE</a></code></td>
+ <td>
+ <p>Content with negligible harm is allowed.</p>
+ </td>
+ </tr>
+ <tr>
+ <td><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmBlockThreshold.html#MEDIUM_AND_ABOVE">MEDIUM_AND_ABOVE</a></code></td>
+ <td>
+ <p>Content with negligible to low harm is allowed.</p>
+ </td>
+ </tr>
+ <tr>
+ <td><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmBlockThreshold.html#NONE">NONE</a></code></td>
+ <td>
+ <p>All content is allowed regardless of harm.</p>
+ </td>
+ </tr>
+ <tr>
+ <td><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmBlockThreshold.html#ONLY_HIGH">ONLY_HIGH</a></code></td>
+ <td>
+ <p>Content with negligible to medium harm is allowed.</p>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div class="devsite-table-wrapper">
+ <table class="responsive">
+ <colgroup>
+ <col width="40%">
+ <col>
+ </colgroup>
+ <thead>
+ <tr>
+ <th colspan="100%"><h3>Public methods</h3></th>
+ </tr>
+ </thead>
+ <tbody class="list">
+ <tr>
+ <td><code>final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmBlockThreshold.html">HarmBlockThreshold</a></code></td>
+ <td>
+ <div><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmBlockThreshold.html#valueOf(kotlin.String)">valueOf</a>(@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a> value)</code></div>
+ <p>Returns the enum constant of this type with the specified name.</p>
+ </td>
+ </tr>
+ <tr>
+ <td><code>final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> HarmBlockThreshold[]</code></td>
+ <td>
+ <div><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmBlockThreshold.html#values()">values</a>()</code></div>
+ <p>Returns an array containing the constants of this enum type, in the order they're declared.</p>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div class="list">
+ <h2>Enum Values</h2>
+ <div class="api-item">
+ <h3 class="api-name" id="LOW_AND_ABOVE">LOW_AND_ABOVE</h3>
+ <pre class="api-signature no-pretty-print"><a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmBlockThreshold.html">HarmBlockThreshold</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmBlockThreshold.html#LOW_AND_ABOVE">HarmBlockThreshold.LOW_AND_ABOVE</a></pre>
+ <p>Content with negligible harm is allowed.</p>
+ </div>
+ <div class="api-item">
+ <h3 class="api-name" id="MEDIUM_AND_ABOVE">MEDIUM_AND_ABOVE</h3>
+ <pre class="api-signature no-pretty-print"><a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmBlockThreshold.html">HarmBlockThreshold</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmBlockThreshold.html#MEDIUM_AND_ABOVE">HarmBlockThreshold.MEDIUM_AND_ABOVE</a></pre>
+ <p>Content with negligible to low harm is allowed.</p>
+ </div>
+ <div class="api-item">
+ <h3 class="api-name" id="NONE">NONE</h3>
+ <pre class="api-signature no-pretty-print"><a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmBlockThreshold.html">HarmBlockThreshold</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmBlockThreshold.html#NONE">HarmBlockThreshold.NONE</a></pre>
+ <p>All content is allowed regardless of harm.</p>
+ </div>
+ <div class="api-item">
+ <h3 class="api-name" id="ONLY_HIGH">ONLY_HIGH</h3>
+ <pre class="api-signature no-pretty-print"><a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmBlockThreshold.html">HarmBlockThreshold</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmBlockThreshold.html#ONLY_HIGH">HarmBlockThreshold.ONLY_HIGH</a></pre>
+ <p>Content with negligible to medium harm is allowed.</p>
+ </div>
+ </div>
+ <div class="list">
+ <h2>Public methods</h2>
+ <div class="api-item"><a name="valueOf-kotlin.String-"></a><a name="valueof"></a>
+ <h3 class="api-name" id="valueOf(kotlin.String)">valueOf</h3>
+ <pre class="api-signature no-pretty-print">public final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmBlockThreshold.html">HarmBlockThreshold</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmBlockThreshold.html#valueOf(kotlin.String)">valueOf</a>(@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a> value)</pre>
+ <p>Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)</p>
+ <div class="devsite-table-wrapper">
+ <table class="responsive">
+ <colgroup>
+ <col width="40%">
+ <col>
+ </colgroup>
+ <thead>
+ <tr>
+ <th colspan="100%">Throws</th>
+ </tr>
+ </thead>
+ <tbody class="list">
+ <tr>
+ <td><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-illegal-argument-exception/index.html">kotlin.IllegalArgumentException</a> kotlin.IllegalArgumentException</code></td>
+ <td>
+ <p>if this enum type has no constant with the specified name</p>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ </div>
+ <div class="api-item"><a name="values--"></a><a name="values"></a>
+ <h3 class="api-name" id="values()">values</h3>
+ <pre class="api-signature no-pretty-print">public final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> HarmBlockThreshold[] <a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmBlockThreshold.html#values()">values</a>()</pre>
+ <p>Returns an array containing the constants of this enum type, in the order they're declared.</p>
+ <p>This method may be used to iterate over the constants.</p>
+ </div>
+ </div>
+ </body>
+</html>
+ --- /home/runner/diff/original/firebase-kotlindoc/android/com/google/firebase/vertexai/type/HarmProbability.html 2024-09-24 05:37:46.377293058 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/android/com/google/firebase/vertexai/type/HarmProbability.html 2024-09-24 05:35:39.547320154 +0000
@@ -73,12 +73,6 @@
<p>A new and not yet supported value.</p>
</td>
</tr>
- <tr>
- <td><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmProbability.html#UNSPECIFIED">UNSPECIFIED</a></code></td>
- <td>
- <p>Probability for harm is unspecified.</p>
- </td>
- </tr>
</tbody>
</table>
</div>
@@ -138,11 +132,6 @@
<pre class="api-signature no-pretty-print"><a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmProbability.html">HarmProbability</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmProbability.html#UNKNOWN">HarmProbability.UNKNOWN</a></pre>
<p>A new and not yet supported value.</p>
</div>
- <div class="api-item">
- <h3 class="api-name" id="UNSPECIFIED">UNSPECIFIED</h3>
- <pre class="api-signature no-pretty-print"><a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmProbability.html">HarmProbability</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmProbability.html#UNSPECIFIED">HarmProbability.UNSPECIFIED</a></pre>
- <p>Probability for harm is unspecified.</p>
- </div>
</div>
<div class="list">
<h2>Public methods</h2> --- /home/runner/diff/original/firebase-kotlindoc/android/com/google/firebase/vertexai/type/HarmSeverity.html 2024-09-24 05:37:46.377293058 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/android/com/google/firebase/vertexai/type/HarmSeverity.html 2024-09-24 05:35:39.547320154 +0000
@@ -73,12 +73,6 @@
<p>A new and not yet supported value.</p>
</td>
</tr>
- <tr>
- <td><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmSeverity.html#UNSPECIFIED">UNSPECIFIED</a></code></td>
- <td>
- <p>Severity for harm is unspecified.</p>
- </td>
- </tr>
</tbody>
</table>
</div>
@@ -138,11 +132,6 @@
<pre class="api-signature no-pretty-print"><a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmSeverity.html">HarmSeverity</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmSeverity.html#UNKNOWN">HarmSeverity.UNKNOWN</a></pre>
<p>A new and not yet supported value.</p>
</div>
- <div class="api-item">
- <h3 class="api-name" id="UNSPECIFIED">UNSPECIFIED</h3>
- <pre class="api-signature no-pretty-print"><a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmSeverity.html">HarmSeverity</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmSeverity.html#UNSPECIFIED">HarmSeverity.UNSPECIFIED</a></pre>
- <p>Severity for harm is unspecified.</p>
- </div>
</div>
<div class="list">
<h2>Public methods</h2> --- /home/runner/diff/original/firebase-kotlindoc/android/com/google/firebase/vertexai/type/SafetySetting.html 2024-09-24 05:37:46.379293058 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/android/com/google/firebase/vertexai/type/SafetySetting.html 2024-09-24 05:35:39.549320154 +0000
@@ -11,7 +11,7 @@
<pre>public final class <a href="/docs/reference/android/com/google/firebase/vertexai/type/SafetySetting.html">SafetySetting</a></pre>
</p>
<hr>
- <p>A configuration for a <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/BlockThreshold.html">BlockThreshold</a></code> of some <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmCategory.html">HarmCategory</a></code> allowed and blocked in responses.</p>
+ <p>A configuration for a <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmBlockThreshold.html">HarmBlockThreshold</a></code> of some <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmCategory.html">HarmCategory</a></code> allowed and blocked in responses.</p>
<h2>Summary</h2>
<div class="devsite-table-wrapper">
<table class="responsive">
@@ -33,7 +33,7 @@
</td>
</tr>
<tr>
- <td><code>final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/BlockThreshold.html">BlockThreshold</a></code></td>
+ <td><code>final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmBlockThreshold.html">HarmBlockThreshold</a></code></td>
<td>
<div><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/SafetySetting.html#threshold()">threshold</a></code></div>
<p>The threshold form harm allowable.</p>
@@ -56,7 +56,7 @@
<tbody class="list">
<tr>
<td>
- <div><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/SafetySetting.html#SafetySetting(com.google.firebase.vertexai.type.HarmCategory,com.google.firebase.vertexai.type.BlockThreshold)">SafetySetting</a>(<br> @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmCategory.html">HarmCategory</a> harmCategory,<br> @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/BlockThreshold.html">BlockThreshold</a> threshold<br>)</code></div>
+ <div><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/SafetySetting.html#SafetySetting(com.google.firebase.vertexai.type.HarmCategory,com.google.firebase.vertexai.type.HarmBlockThreshold)">SafetySetting</a>(<br> @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmCategory.html">HarmCategory</a> harmCategory,<br> @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmBlockThreshold.html">HarmBlockThreshold</a> threshold<br>)</code></div>
</td>
</tr>
</tbody>
@@ -71,15 +71,15 @@
</div>
<div class="api-item"><a name="getThreshold()"></a><a name="setThreshold()"></a><a name="getThreshold--"></a><a name="setThreshold--"></a>
<h3 class="api-name" id="threshold()">threshold</h3>
- <pre class="api-signature no-pretty-print">public final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/BlockThreshold.html">BlockThreshold</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/SafetySetting.html#threshold()">threshold</a></pre>
+ <pre class="api-signature no-pretty-print">public final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmBlockThreshold.html">HarmBlockThreshold</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/SafetySetting.html#threshold()">threshold</a></pre>
<p>The threshold form harm allowable.</p>
</div>
</div>
<div class="list">
<h2>Public constructors</h2>
- <div class="api-item"><a name="SafetySetting(com.google.firebase.vertexai.type.HarmCategory, com.google.firebase.vertexai.type.BlockThreshold)"></a><a name="SafetySetting-com.google.firebase.vertexai.type.HarmCategory-com.google.firebase.vertexai.type.BlockThreshold-"></a><a name="safetysetting"></a>
- <h3 class="api-name" id="SafetySetting(com.google.firebase.vertexai.type.HarmCategory,com.google.firebase.vertexai.type.BlockThreshold)">SafetySetting</h3>
- <pre class="api-signature no-pretty-print">public <a href="/docs/reference/android/com/google/firebase/vertexai/type/SafetySetting.html#SafetySetting(com.google.firebase.vertexai.type.HarmCategory,com.google.firebase.vertexai.type.BlockThreshold)">SafetySetting</a>(<br> @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmCategory.html">HarmCategory</a> harmCategory,<br> @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/BlockThreshold.html">BlockThreshold</a> threshold<br>)</pre>
+ <div class="api-item"><a name="SafetySetting(com.google.firebase.vertexai.type.HarmCategory, com.google.firebase.vertexai.type.HarmBlockThreshold)"></a><a name="SafetySetting-com.google.firebase.vertexai.type.HarmCategory-com.google.firebase.vertexai.type.HarmBlockThreshold-"></a><a name="safetysetting"></a>
+ <h3 class="api-name" id="SafetySetting(com.google.firebase.vertexai.type.HarmCategory,com.google.firebase.vertexai.type.HarmBlockThreshold)">SafetySetting</h3>
+ <pre class="api-signature no-pretty-print">public <a href="/docs/reference/android/com/google/firebase/vertexai/type/SafetySetting.html#SafetySetting(com.google.firebase.vertexai.type.HarmCategory,com.google.firebase.vertexai.type.HarmBlockThreshold)">SafetySetting</a>(<br> @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmCategory.html">HarmCategory</a> harmCategory,<br> @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmBlockThreshold.html">HarmBlockThreshold</a> threshold<br>)</pre>
<div class="devsite-table-wrapper">
<table class="responsive">
<colgroup>
@@ -99,7 +99,7 @@
</td>
</tr>
<tr>
- <td><code>@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/BlockThreshold.html">BlockThreshold</a> threshold</code></td>
+ <td><code>@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmBlockThreshold.html">HarmBlockThreshold</a> threshold</code></td>
<td>
<p>The threshold form harm allowable.</p>
</td> --- /home/runner/diff/original/firebase-kotlindoc/android/com/google/firebase/vertexai/type/package-summary.html 2024-09-24 05:37:46.377293058 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/android/com/google/firebase/vertexai/type/package-summary.html 2024-09-24 05:35:39.547320154 +0000
@@ -160,7 +160,7 @@
<tr>
<td><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/SafetySetting.html">SafetySetting</a></code></td>
<td>
- <p>A configuration for a <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/BlockThreshold.html">BlockThreshold</a></code> of some <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmCategory.html">HarmCategory</a></code> allowed and blocked in responses.</p>
+ <p>A configuration for a <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmBlockThreshold.html">HarmBlockThreshold</a></code> of some <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmCategory.html">HarmCategory</a></code> allowed and blocked in responses.</p>
</td>
</tr>
<tr>
@@ -219,12 +219,6 @@
</td>
</tr>
<tr>
- <td><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/BlockThreshold.html">BlockThreshold</a></code></td>
- <td>
- <p>Represents the threshold for some <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmCategory.html">HarmCategory</a></code> that is allowed and blocked by <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/SafetySetting.html">SafetySetting</a></code>.</p>
- </td>
- </tr>
- <tr>
<td><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/FinishReason.html">FinishReason</a></code></td>
<td>
<p>The reason for content finishing.</p>
@@ -237,6 +231,12 @@
</td>
</tr>
<tr>
+ <td><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmBlockThreshold.html">HarmBlockThreshold</a></code></td>
+ <td>
+ <p>Represents the threshold for some <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmCategory.html">HarmCategory</a></code> that is allowed and blocked by <code><a href="/docs/reference/android/com/google/firebase/vertexai/type/SafetySetting.html">SafetySetting</a></code>.</p>
+ </td>
+ </tr>
+ <tr>
<td><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/HarmCategory.html">HarmCategory</a></code></td>
<td>
<p>Category for a given harm rating.</p> --- /home/runner/diff/original/firebase-kotlindoc/kotlin/client/firebase-vertexai/_toc.yaml 2024-09-24 05:37:46.375293057 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/kotlin/client/firebase-vertexai/_toc.yaml 2024-09-24 05:35:39.544320154 +0000
@@ -101,12 +101,12 @@
section:
- title: "BlockReason"
path: "/docs/reference/kotlin/com/google/firebase/vertexai/type/BlockReason.html"
- - title: "BlockThreshold"
- path: "/docs/reference/kotlin/com/google/firebase/vertexai/type/BlockThreshold.html"
- title: "FinishReason"
path: "/docs/reference/kotlin/com/google/firebase/vertexai/type/FinishReason.html"
- title: "FunctionCallingConfig.Mode"
path: "/docs/reference/kotlin/com/google/firebase/vertexai/type/FunctionCallingConfig.Mode.html"
+ - title: "HarmBlockThreshold"
+ path: "/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmBlockThreshold.html"
- title: "HarmCategory"
path: "/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmCategory.html"
- title: "HarmProbability" --- /home/runner/diff/original/firebase-kotlindoc/kotlin/com/google/firebase/vertexai/type/BlockReason.html 2024-09-24 05:37:46.373293057 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/kotlin/com/google/firebase/vertexai/type/BlockReason.html 2024-09-24 05:35:39.542320154 +0000
@@ -61,12 +61,6 @@
<p>A new and not yet supported value.</p>
</td>
</tr>
- <tr>
- <td><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/BlockReason.html#UNSPECIFIED">UNSPECIFIED</a></code></td>
- <td>
- <p>Content was blocked for an unspecified reason.</p>
- </td>
- </tr>
</tbody>
</table>
</div>
@@ -116,11 +110,6 @@
<pre class="api-signature no-pretty-print">val <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/BlockReason.html#UNKNOWN">BlockReason.UNKNOWN</a>: <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/BlockReason.html">BlockReason</a></pre>
<p>A new and not yet supported value.</p>
</div>
- <div class="api-item">
- <h3 class="api-name" id="UNSPECIFIED">UNSPECIFIED</h3>
- <pre class="api-signature no-pretty-print">val <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/BlockReason.html#UNSPECIFIED">BlockReason.UNSPECIFIED</a>: <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/BlockReason.html">BlockReason</a></pre>
- <p>Content was blocked for an unspecified reason.</p>
- </div>
</div>
<div class="list">
<h2>Public functions</h2> --- /home/runner/diff/original/firebase-kotlindoc/kotlin/com/google/firebase/vertexai/type/BlockThreshold.html 2024-09-24 05:37:46.372293057 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/kotlin/com/google/firebase/vertexai/type/BlockThreshold.html 1970-01-01 00:00:00.000000000 +0000
@@ -1,173 +0,0 @@
-<html devsite="true">
- <head>
- <title>BlockThreshold</title>
-{% setvar book_path %}/_book.yaml{% endsetvar %}
-{% include "docs/reference/kotlin/_reference-head-tags.html" %}
- </head>
- <body>
- <div id="metadata-info-block"></div>
- <h1>BlockThreshold</h1>
- <p>
- <pre>enum <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/BlockThreshold.html">BlockThreshold</a> : <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html">Enum</a></pre>
- </p>
- <div class="devsite-table-wrapper">
- <table class="jd-inheritance-table">
- <tbody>
- <tr>
- <td colspan="3"><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">kotlin.Any</a></td>
- </tr>
- <tr>
- <td class="jd-inheritance-space"> ↳</td>
- <td colspan="2"><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html">kotlin.Enum</a></td>
- </tr>
- <tr>
- <td> </td>
- <td class="jd-inheritance-space"> ↳</td>
- <td colspan="1"><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/BlockThreshold.html">com.google.firebase.vertexai.type.BlockThreshold</a></td>
- </tr>
- </tbody>
- </table>
- </div>
- <hr>
- <p>Represents the threshold for some <code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmCategory.html">HarmCategory</a></code> that is allowed and blocked by <code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/SafetySetting.html">SafetySetting</a></code>.</p>
- <h2>Summary</h2>
- <div class="devsite-table-wrapper">
- <table class="responsive">
- <colgroup>
- <col width="40%">
- <col>
- </colgroup>
- <thead>
- <tr>
- <th colspan="100%"><h3>Enum Values</h3></th>
- </tr>
- </thead>
- <tbody class="list">
- <tr>
- <td><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/BlockThreshold.html#LOW_AND_ABOVE">LOW_AND_ABOVE</a></code></td>
- <td>
- <p>Content with negligible harm is allowed.</p>
- </td>
- </tr>
- <tr>
- <td><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/BlockThreshold.html#MEDIUM_AND_ABOVE">MEDIUM_AND_ABOVE</a></code></td>
- <td>
- <p>Content with negligible to low harm is allowed.</p>
- </td>
- </tr>
- <tr>
- <td><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/BlockThreshold.html#NONE">NONE</a></code></td>
- <td>
- <p>All content is allowed regardless of harm.</p>
- </td>
- </tr>
- <tr>
- <td><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/BlockThreshold.html#ONLY_HIGH">ONLY_HIGH</a></code></td>
- <td>
- <p>Content with negligible to medium harm is allowed.</p>
- </td>
- </tr>
- <tr>
- <td><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/BlockThreshold.html#UNSPECIFIED">UNSPECIFIED</a></code></td>
- <td>
- <p>The threshold was not specified.</p>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <div class="devsite-table-wrapper">
- <table class="responsive">
- <colgroup>
- <col width="40%">
- <col>
- </colgroup>
- <thead>
- <tr>
- <th colspan="100%"><h3>Public functions</h3></th>
- </tr>
- </thead>
- <tbody class="list">
- <tr>
- <td><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/BlockThreshold.html">BlockThreshold</a></code></td>
- <td>
- <div><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/BlockThreshold.html#valueOf(kotlin.String)">valueOf</a>(value: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>)</code></div>
- <p>Returns the enum constant of this type with the specified name.</p>
- </td>
- </tr>
- <tr>
- <td><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html">Array</a><<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/BlockThreshold.html">BlockThreshold</a>></code></td>
- <td>
- <div><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/BlockThreshold.html#values()">values</a>()</code></div>
- <p>Returns an array containing the constants of this enum type, in the order they're declared.</p>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <div class="list">
- <h2>Enum Values</h2>
- <div class="api-item">
- <h3 class="api-name" id="LOW_AND_ABOVE">LOW_AND_ABOVE</h3>
- <pre class="api-signature no-pretty-print">val <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/BlockThreshold.html#LOW_AND_ABOVE">BlockThreshold.LOW_AND_ABOVE</a>: <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/BlockThreshold.html">BlockThreshold</a></pre>
- <p>Content with negligible harm is allowed.</p>
- </div>
- <div class="api-item">
- <h3 class="api-name" id="MEDIUM_AND_ABOVE">MEDIUM_AND_ABOVE</h3>
- <pre class="api-signature no-pretty-print">val <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/BlockThreshold.html#MEDIUM_AND_ABOVE">BlockThreshold.MEDIUM_AND_ABOVE</a>: <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/BlockThreshold.html">BlockThreshold</a></pre>
- <p>Content with negligible to low harm is allowed.</p>
- </div>
- <div class="api-item">
- <h3 class="api-name" id="NONE">NONE</h3>
- <pre class="api-signature no-pretty-print">val <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/BlockThreshold.html#NONE">BlockThreshold.NONE</a>: <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/BlockThreshold.html">BlockThreshold</a></pre>
- <p>All content is allowed regardless of harm.</p>
- </div>
- <div class="api-item">
- <h3 class="api-name" id="ONLY_HIGH">ONLY_HIGH</h3>
- <pre class="api-signature no-pretty-print">val <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/BlockThreshold.html#ONLY_HIGH">BlockThreshold.ONLY_HIGH</a>: <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/BlockThreshold.html">BlockThreshold</a></pre>
- <p>Content with negligible to medium harm is allowed.</p>
- </div>
- <div class="api-item">
- <h3 class="api-name" id="UNSPECIFIED">UNSPECIFIED</h3>
- <pre class="api-signature no-pretty-print">val <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/BlockThreshold.html#UNSPECIFIED">BlockThreshold.UNSPECIFIED</a>: <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/BlockThreshold.html">BlockThreshold</a></pre>
- <p>The threshold was not specified.</p>
- </div>
- </div>
- <div class="list">
- <h2>Public functions</h2>
- <div class="api-item"><a name="valueOf-kotlin.String-"></a><a name="valueof"></a>
- <h3 class="api-name" id="valueOf(kotlin.String)">valueOf</h3>
- <pre class="api-signature no-pretty-print">fun <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/BlockThreshold.html#valueOf(kotlin.String)">valueOf</a>(value: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>): <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/BlockThreshold.html">BlockThreshold</a></pre>
- <p>Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)</p>
- <div class="devsite-table-wrapper">
- <table class="responsive">
- <colgroup>
- <col width="40%">
- <col>
- </colgroup>
- <thead>
- <tr>
- <th colspan="100%">Throws</th>
- </tr>
- </thead>
- <tbody class="list">
- <tr>
- <td><code>kotlin.IllegalArgumentException: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-illegal-argument-exception/index.html">kotlin.IllegalArgumentException</a></code></td>
- <td>
- <p>if this enum type has no constant with the specified name</p>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <div class="api-item"><a name="values--"></a><a name="values"></a>
- <h3 class="api-name" id="values()">values</h3>
- <pre class="api-signature no-pretty-print">fun <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/BlockThreshold.html#values()">values</a>(): <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html">Array</a><<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/BlockThreshold.html">BlockThreshold</a>></pre>
- <p>Returns an array containing the constants of this enum type, in the order they're declared.</p>
- <p>This method may be used to iterate over the constants.</p>
- </div>
- </div>
- </body>
-</html>
- --- /home/runner/diff/original/firebase-kotlindoc/kotlin/com/google/firebase/vertexai/type/CountTokensResponse.html 2024-09-24 05:37:46.370293056 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/kotlin/com/google/firebase/vertexai/type/CountTokensResponse.html 2024-09-24 05:35:39.539320155 +0000
@@ -27,7 +27,7 @@
<tbody class="list">
<tr>
<td>
- <div><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/CountTokensResponse.html#CountTokensResponse(kotlin.Int,kotlin.Int)">CountTokensResponse</a>(totalTokens: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>, totalBillableCharacters: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>)</code></div>
+ <div><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/CountTokensResponse.html#CountTokensResponse(kotlin.Int,kotlin.Int)">CountTokensResponse</a>(totalTokens: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>, totalBillableCharacters: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>?)</code></div>
</td>
</tr>
</tbody>
@@ -52,7 +52,7 @@
</td>
</tr>
<tr>
- <td><code>operator <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a></code></td>
+ <td><code>operator <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>?</code></td>
<td>
<div><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/CountTokensResponse.html#component2()">component2</a>()</code></div>
</td>
@@ -73,10 +73,10 @@
</thead>
<tbody class="list">
<tr>
- <td><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a></code></td>
+ <td><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>?</code></td>
<td>
<div><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/CountTokensResponse.html#totalBillableCharacters()">totalBillableCharacters</a></code></div>
- <p>A count of the characters that are billable in the input</p>
+ <p>A count of the characters that are billable in the input, if available.</p>
</td>
</tr>
<tr>
@@ -93,7 +93,7 @@
<h2>Public constructors</h2>
<div class="api-item"><a name="CountTokensResponse(kotlin.Int, kotlin.Int)"></a><a name="CountTokensResponse-kotlin.Int-kotlin.Int-"></a><a name="counttokensresponse"></a>
<h3 class="api-name" id="CountTokensResponse(kotlin.Int,kotlin.Int)">CountTokensResponse</h3>
- <pre class="api-signature no-pretty-print"><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/CountTokensResponse.html#CountTokensResponse(kotlin.Int,kotlin.Int)">CountTokensResponse</a>(totalTokens: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>, totalBillableCharacters: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>)</pre>
+ <pre class="api-signature no-pretty-print"><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/CountTokensResponse.html#CountTokensResponse(kotlin.Int,kotlin.Int)">CountTokensResponse</a>(totalTokens: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>, totalBillableCharacters: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>? = null)</pre>
</div>
</div>
<div class="list">
@@ -104,15 +104,15 @@
</div>
<div class="api-item"><a name="component2--"></a><a name="component2"></a>
<h3 class="api-name" id="component2()">component2</h3>
- <pre class="api-signature no-pretty-print">operator fun <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/CountTokensResponse.html#component2()">component2</a>(): <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a></pre>
+ <pre class="api-signature no-pretty-print">operator fun <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/CountTokensResponse.html#component2()">component2</a>(): <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>?</pre>
</div>
</div>
<div class="list">
<h2>Public properties</h2>
<div class="api-item"><a name="getTotalBillableCharacters()"></a><a name="setTotalBillableCharacters()"></a><a name="getTotalBillableCharacters--"></a><a name="setTotalBillableCharacters--"></a>
<h3 class="api-name" id="totalBillableCharacters()">totalBillableCharacters</h3>
- <pre class="api-signature no-pretty-print">val <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/CountTokensResponse.html#totalBillableCharacters()">totalBillableCharacters</a>: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a></pre>
- <p>A count of the characters that are billable in the input</p>
+ <pre class="api-signature no-pretty-print">val <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/CountTokensResponse.html#totalBillableCharacters()">totalBillableCharacters</a>: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>?</pre>
+ <p>A count of the characters that are billable in the input, if available.</p>
</div>
<div class="api-item"><a name="getTotalTokens()"></a><a name="setTotalTokens()"></a><a name="getTotalTokens--"></a><a name="setTotalTokens--"></a>
<h3 class="api-name" id="totalTokens()">totalTokens</h3> --- /home/runner/diff/original/firebase-kotlindoc/kotlin/com/google/firebase/vertexai/type/FinishReason.html 2024-09-24 05:37:46.371293057 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/kotlin/com/google/firebase/vertexai/type/FinishReason.html 2024-09-24 05:35:39.541320154 +0000
@@ -79,12 +79,6 @@
<p>A new and not yet supported value.</p>
</td>
</tr>
- <tr>
- <td><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/FinishReason.html#UNSPECIFIED">UNSPECIFIED</a></code></td>
- <td>
- <p>Reason is unspecified.</p>
- </td>
- </tr>
</tbody>
</table>
</div>
@@ -149,11 +143,6 @@
<pre class="api-signature no-pretty-print">val <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/FinishReason.html#UNKNOWN">FinishReason.UNKNOWN</a>: <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/FinishReason.html">FinishReason</a></pre>
<p>A new and not yet supported value.</p>
</div>
- <div class="api-item">
- <h3 class="api-name" id="UNSPECIFIED">UNSPECIFIED</h3>
- <pre class="api-signature no-pretty-print">val <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/FinishReason.html#UNSPECIFIED">FinishReason.UNSPECIFIED</a>: <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/FinishReason.html">FinishReason</a></pre>
- <p>Reason is unspecified.</p>
- </div>
</div>
<div class="list">
<h2>Public functions</h2> --- /home/runner/diff/original/firebase-kotlindoc/kotlin/com/google/firebase/vertexai/type/HarmBlockThreshold.html 1970-01-01 00:00:00.000000000 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/kotlin/com/google/firebase/vertexai/type/HarmBlockThreshold.html 2024-09-24 05:35:39.542320154 +0000
@@ -0,0 +1,162 @@
+<html devsite="true">
+ <head>
+ <title>HarmBlockThreshold</title>
+{% setvar book_path %}/_book.yaml{% endsetvar %}
+{% include "docs/reference/kotlin/_reference-head-tags.html" %}
+ </head>
+ <body>
+ <div id="metadata-info-block"></div>
+ <h1>HarmBlockThreshold</h1>
+ <p>
+ <pre>enum <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmBlockThreshold.html">HarmBlockThreshold</a> : <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html">Enum</a></pre>
+ </p>
+ <div class="devsite-table-wrapper">
+ <table class="jd-inheritance-table">
+ <tbody>
+ <tr>
+ <td colspan="3"><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">kotlin.Any</a></td>
+ </tr>
+ <tr>
+ <td class="jd-inheritance-space"> ↳</td>
+ <td colspan="2"><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html">kotlin.Enum</a></td>
+ </tr>
+ <tr>
+ <td> </td>
+ <td class="jd-inheritance-space"> ↳</td>
+ <td colspan="1"><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmBlockThreshold.html">com.google.firebase.vertexai.type.HarmBlockThreshold</a></td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <hr>
+ <p>Represents the threshold for some <code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmCategory.html">HarmCategory</a></code> that is allowed and blocked by <code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/SafetySetting.html">SafetySetting</a></code>.</p>
+ <h2>Summary</h2>
+ <div class="devsite-table-wrapper">
+ <table class="responsive">
+ <colgroup>
+ <col width="40%">
+ <col>
+ </colgroup>
+ <thead>
+ <tr>
+ <th colspan="100%"><h3>Enum Values</h3></th>
+ </tr>
+ </thead>
+ <tbody class="list">
+ <tr>
+ <td><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmBlockThreshold.html#LOW_AND_ABOVE">LOW_AND_ABOVE</a></code></td>
+ <td>
+ <p>Content with negligible harm is allowed.</p>
+ </td>
+ </tr>
+ <tr>
+ <td><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmBlockThreshold.html#MEDIUM_AND_ABOVE">MEDIUM_AND_ABOVE</a></code></td>
+ <td>
+ <p>Content with negligible to low harm is allowed.</p>
+ </td>
+ </tr>
+ <tr>
+ <td><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmBlockThreshold.html#NONE">NONE</a></code></td>
+ <td>
+ <p>All content is allowed regardless of harm.</p>
+ </td>
+ </tr>
+ <tr>
+ <td><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmBlockThreshold.html#ONLY_HIGH">ONLY_HIGH</a></code></td>
+ <td>
+ <p>Content with negligible to medium harm is allowed.</p>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div class="devsite-table-wrapper">
+ <table class="responsive">
+ <colgroup>
+ <col width="40%">
+ <col>
+ </colgroup>
+ <thead>
+ <tr>
+ <th colspan="100%"><h3>Public functions</h3></th>
+ </tr>
+ </thead>
+ <tbody class="list">
+ <tr>
+ <td><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmBlockThreshold.html">HarmBlockThreshold</a></code></td>
+ <td>
+ <div><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmBlockThreshold.html#valueOf(kotlin.String)">valueOf</a>(value: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>)</code></div>
+ <p>Returns the enum constant of this type with the specified name.</p>
+ </td>
+ </tr>
+ <tr>
+ <td><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html">Array</a><<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmBlockThreshold.html">HarmBlockThreshold</a>></code></td>
+ <td>
+ <div><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmBlockThreshold.html#values()">values</a>()</code></div>
+ <p>Returns an array containing the constants of this enum type, in the order they're declared.</p>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div class="list">
+ <h2>Enum Values</h2>
+ <div class="api-item">
+ <h3 class="api-name" id="LOW_AND_ABOVE">LOW_AND_ABOVE</h3>
+ <pre class="api-signature no-pretty-print">val <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmBlockThreshold.html#LOW_AND_ABOVE">HarmBlockThreshold.LOW_AND_ABOVE</a>: <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmBlockThreshold.html">HarmBlockThreshold</a></pre>
+ <p>Content with negligible harm is allowed.</p>
+ </div>
+ <div class="api-item">
+ <h3 class="api-name" id="MEDIUM_AND_ABOVE">MEDIUM_AND_ABOVE</h3>
+ <pre class="api-signature no-pretty-print">val <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmBlockThreshold.html#MEDIUM_AND_ABOVE">HarmBlockThreshold.MEDIUM_AND_ABOVE</a>: <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmBlockThreshold.html">HarmBlockThreshold</a></pre>
+ <p>Content with negligible to low harm is allowed.</p>
+ </div>
+ <div class="api-item">
+ <h3 class="api-name" id="NONE">NONE</h3>
+ <pre class="api-signature no-pretty-print">val <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmBlockThreshold.html#NONE">HarmBlockThreshold.NONE</a>: <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmBlockThreshold.html">HarmBlockThreshold</a></pre>
+ <p>All content is allowed regardless of harm.</p>
+ </div>
+ <div class="api-item">
+ <h3 class="api-name" id="ONLY_HIGH">ONLY_HIGH</h3>
+ <pre class="api-signature no-pretty-print">val <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmBlockThreshold.html#ONLY_HIGH">HarmBlockThreshold.ONLY_HIGH</a>: <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmBlockThreshold.html">HarmBlockThreshold</a></pre>
+ <p>Content with negligible to medium harm is allowed.</p>
+ </div>
+ </div>
+ <div class="list">
+ <h2>Public functions</h2>
+ <div class="api-item"><a name="valueOf-kotlin.String-"></a><a name="valueof"></a>
+ <h3 class="api-name" id="valueOf(kotlin.String)">valueOf</h3>
+ <pre class="api-signature no-pretty-print">fun <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmBlockThreshold.html#valueOf(kotlin.String)">valueOf</a>(value: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>): <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmBlockThreshold.html">HarmBlockThreshold</a></pre>
+ <p>Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)</p>
+ <div class="devsite-table-wrapper">
+ <table class="responsive">
+ <colgroup>
+ <col width="40%">
+ <col>
+ </colgroup>
+ <thead>
+ <tr>
+ <th colspan="100%">Throws</th>
+ </tr>
+ </thead>
+ <tbody class="list">
+ <tr>
+ <td><code>kotlin.IllegalArgumentException: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-illegal-argument-exception/index.html">kotlin.IllegalArgumentException</a></code></td>
+ <td>
+ <p>if this enum type has no constant with the specified name</p>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ </div>
+ <div class="api-item"><a name="values--"></a><a name="values"></a>
+ <h3 class="api-name" id="values()">values</h3>
+ <pre class="api-signature no-pretty-print">fun <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmBlockThreshold.html#values()">values</a>(): <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html">Array</a><<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmBlockThreshold.html">HarmBlockThreshold</a>></pre>
+ <p>Returns an array containing the constants of this enum type, in the order they're declared.</p>
+ <p>This method may be used to iterate over the constants.</p>
+ </div>
+ </div>
+ </body>
+</html>
+ --- /home/runner/diff/original/firebase-kotlindoc/kotlin/com/google/firebase/vertexai/type/HarmProbability.html 2024-09-24 05:37:46.371293057 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/kotlin/com/google/firebase/vertexai/type/HarmProbability.html 2024-09-24 05:35:39.541320154 +0000
@@ -73,12 +73,6 @@
<p>A new and not yet supported value.</p>
</td>
</tr>
- <tr>
- <td><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmProbability.html#UNSPECIFIED">UNSPECIFIED</a></code></td>
- <td>
- <p>Probability for harm is unspecified.</p>
- </td>
- </tr>
</tbody>
</table>
</div>
@@ -138,11 +132,6 @@
<pre class="api-signature no-pretty-print">val <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmProbability.html#UNKNOWN">HarmProbability.UNKNOWN</a>: <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmProbability.html">HarmProbability</a></pre>
<p>A new and not yet supported value.</p>
</div>
- <div class="api-item">
- <h3 class="api-name" id="UNSPECIFIED">UNSPECIFIED</h3>
- <pre class="api-signature no-pretty-print">val <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmProbability.html#UNSPECIFIED">HarmProbability.UNSPECIFIED</a>: <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmProbability.html">HarmProbability</a></pre>
- <p>Probability for harm is unspecified.</p>
- </div>
</div>
<div class="list">
<h2>Public functions</h2> --- /home/runner/diff/original/firebase-kotlindoc/kotlin/com/google/firebase/vertexai/type/HarmSeverity.html 2024-09-24 05:37:46.370293056 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/kotlin/com/google/firebase/vertexai/type/HarmSeverity.html 2024-09-24 05:35:39.540320154 +0000
@@ -73,12 +73,6 @@
<p>A new and not yet supported value.</p>
</td>
</tr>
- <tr>
- <td><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmSeverity.html#UNSPECIFIED">UNSPECIFIED</a></code></td>
- <td>
- <p>Severity for harm is unspecified.</p>
- </td>
- </tr>
</tbody>
</table>
</div>
@@ -138,11 +132,6 @@
<pre class="api-signature no-pretty-print">val <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmSeverity.html#UNKNOWN">HarmSeverity.UNKNOWN</a>: <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmSeverity.html">HarmSeverity</a></pre>
<p>A new and not yet supported value.</p>
</div>
- <div class="api-item">
- <h3 class="api-name" id="UNSPECIFIED">UNSPECIFIED</h3>
- <pre class="api-signature no-pretty-print">val <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmSeverity.html#UNSPECIFIED">HarmSeverity.UNSPECIFIED</a>: <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmSeverity.html">HarmSeverity</a></pre>
- <p>Severity for harm is unspecified.</p>
- </div>
</div>
<div class="list">
<h2>Public functions</h2> --- /home/runner/diff/original/firebase-kotlindoc/kotlin/com/google/firebase/vertexai/type/SafetySetting.html 2024-09-24 05:37:46.373293057 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/kotlin/com/google/firebase/vertexai/type/SafetySetting.html 2024-09-24 05:35:39.542320154 +0000
@@ -11,7 +11,7 @@
<pre>class <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/SafetySetting.html">SafetySetting</a></pre>
</p>
<hr>
- <p>A configuration for a <code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/BlockThreshold.html">BlockThreshold</a></code> of some <code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmCategory.html">HarmCategory</a></code> allowed and blocked in responses.</p>
+ <p>A configuration for a <code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmBlockThreshold.html">HarmBlockThreshold</a></code> of some <code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmCategory.html">HarmCategory</a></code> allowed and blocked in responses.</p>
<h2>Summary</h2>
<div class="devsite-table-wrapper">
<table class="responsive">
@@ -27,7 +27,7 @@
<tbody class="list">
<tr>
<td>
- <div><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/SafetySetting.html#SafetySetting(com.google.firebase.vertexai.type.HarmCategory,com.google.firebase.vertexai.type.BlockThreshold)">SafetySetting</a>(harmCategory: <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmCategory.html">HarmCategory</a>, threshold: <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/BlockThreshold.html">BlockThreshold</a>)</code></div>
+ <div><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/SafetySetting.html#SafetySetting(com.google.firebase.vertexai.type.HarmCategory,com.google.firebase.vertexai.type.HarmBlockThreshold)">SafetySetting</a>(harmCategory: <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmCategory.html">HarmCategory</a>, threshold: <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmBlockThreshold.html">HarmBlockThreshold</a>)</code></div>
</td>
</tr>
</tbody>
@@ -53,7 +53,7 @@
</td>
</tr>
<tr>
- <td><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/BlockThreshold.html">BlockThreshold</a></code></td>
+ <td><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmBlockThreshold.html">HarmBlockThreshold</a></code></td>
<td>
<div><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/SafetySetting.html#threshold()">threshold</a></code></div>
<p>The threshold form harm allowable.</p>
@@ -64,9 +64,9 @@
</div>
<div class="list">
<h2>Public constructors</h2>
- <div class="api-item"><a name="SafetySetting(com.google.firebase.vertexai.type.HarmCategory, com.google.firebase.vertexai.type.BlockThreshold)"></a><a name="SafetySetting-com.google.firebase.vertexai.type.HarmCategory-com.google.firebase.vertexai.type.BlockThreshold-"></a><a name="safetysetting"></a>
- <h3 class="api-name" id="SafetySetting(com.google.firebase.vertexai.type.HarmCategory,com.google.firebase.vertexai.type.BlockThreshold)">SafetySetting</h3>
- <pre class="api-signature no-pretty-print"><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/SafetySetting.html#SafetySetting(com.google.firebase.vertexai.type.HarmCategory,com.google.firebase.vertexai.type.BlockThreshold)">SafetySetting</a>(harmCategory: <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmCategory.html">HarmCategory</a>, threshold: <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/BlockThreshold.html">BlockThreshold</a>)</pre>
+ <div class="api-item"><a name="SafetySetting(com.google.firebase.vertexai.type.HarmCategory, com.google.firebase.vertexai.type.HarmBlockThreshold)"></a><a name="SafetySetting-com.google.firebase.vertexai.type.HarmCategory-com.google.firebase.vertexai.type.HarmBlockThreshold-"></a><a name="safetysetting"></a>
+ <h3 class="api-name" id="SafetySetting(com.google.firebase.vertexai.type.HarmCategory,com.google.firebase.vertexai.type.HarmBlockThreshold)">SafetySetting</h3>
+ <pre class="api-signature no-pretty-print"><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/SafetySetting.html#SafetySetting(com.google.firebase.vertexai.type.HarmCategory,com.google.firebase.vertexai.type.HarmBlockThreshold)">SafetySetting</a>(harmCategory: <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmCategory.html">HarmCategory</a>, threshold: <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmBlockThreshold.html">HarmBlockThreshold</a>)</pre>
<div class="devsite-table-wrapper">
<table class="responsive">
<colgroup>
@@ -86,7 +86,7 @@
</td>
</tr>
<tr>
- <td><code>threshold: <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/BlockThreshold.html">BlockThreshold</a></code></td>
+ <td><code>threshold: <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmBlockThreshold.html">HarmBlockThreshold</a></code></td>
<td>
<p>The threshold form harm allowable.</p>
</td>
@@ -105,7 +105,7 @@
</div>
<div class="api-item"><a name="getThreshold()"></a><a name="setThreshold()"></a><a name="getThreshold--"></a><a name="setThreshold--"></a>
<h3 class="api-name" id="threshold()">threshold</h3>
- <pre class="api-signature no-pretty-print">val <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/SafetySetting.html#threshold()">threshold</a>: <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/BlockThreshold.html">BlockThreshold</a></pre>
+ <pre class="api-signature no-pretty-print">val <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/SafetySetting.html#threshold()">threshold</a>: <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmBlockThreshold.html">HarmBlockThreshold</a></pre>
<p>The threshold form harm allowable.</p>
</div>
</div> --- /home/runner/diff/original/firebase-kotlindoc/kotlin/com/google/firebase/vertexai/type/package-summary.html 2024-09-24 05:37:46.371293057 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/kotlin/com/google/firebase/vertexai/type/package-summary.html 2024-09-24 05:35:39.540320154 +0000
@@ -148,7 +148,7 @@
<tr>
<td><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/SafetySetting.html">SafetySetting</a></code></td>
<td>
- <p>A configuration for a <code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/BlockThreshold.html">BlockThreshold</a></code> of some <code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmCategory.html">HarmCategory</a></code> allowed and blocked in responses.</p>
+ <p>A configuration for a <code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmBlockThreshold.html">HarmBlockThreshold</a></code> of some <code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmCategory.html">HarmCategory</a></code> allowed and blocked in responses.</p>
</td>
</tr>
<tr>
@@ -290,12 +290,6 @@
</td>
</tr>
<tr>
- <td><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/BlockThreshold.html">BlockThreshold</a></code></td>
- <td>
- <p>Represents the threshold for some <code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmCategory.html">HarmCategory</a></code> that is allowed and blocked by <code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/SafetySetting.html">SafetySetting</a></code>.</p>
- </td>
- </tr>
- <tr>
<td><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/FinishReason.html">FinishReason</a></code></td>
<td>
<p>The reason for content finishing.</p>
@@ -308,6 +302,12 @@
</td>
</tr>
<tr>
+ <td><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmBlockThreshold.html">HarmBlockThreshold</a></code></td>
+ <td>
+ <p>Represents the threshold for some <code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmCategory.html">HarmCategory</a></code> that is allowed and blocked by <code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/SafetySetting.html">SafetySetting</a></code>.</p>
+ </td>
+ </tr>
+ <tr>
<td><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/HarmCategory.html">HarmCategory</a></code></td>
<td>
<p>Category for a given harm rating.</p> |
Generated by 🚫 Danger |
rlazo
requested review from
emilypgoogle,
VinayGuthal and
daymxn
and removed request for
VinayGuthal,
daymxn and
emilypgoogle
September 21, 2024 05:17
The value is always specified by the developer and sent to the backend (not read back), so we don't need to include that option in the enum.
daymxn
approved these changes
Sep 24, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Falling back to UNKNOWN
is a good idea, me like; LGTM
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The changes restricted to enum values and names are:
UNSPECIFIED
fromFinishReason
BlockThreshold
toHarmBlockThreshold
UNSPECIFIED
toUNKNOWN
inHarmBlockThreshold
UNSPECIFIED
fromHarmProbability
UNSPECIFIED
fromHarmSeverity
UNSPECIFIED
fromBlockReason
Additionally, additional changes to non-enum values include
totalBillableCharacters
nullable and optionalb/367308641