-
Notifications
You must be signed in to change notification settings - Fork 642
Make token count details fields non-nullable #6695
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
If missing, they'll default to empty.
Javadoc Changes:--- /home/runner/diff/original/firebase-kotlindoc/android/com/google/firebase/vertexai/type/CountTokensResponse.html 2025-02-11 20:12:17.599506705 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/android/com/google/firebase/vertexai/type/CountTokensResponse.html 2025-02-11 20:10:08.218103022 +0000
@@ -27,7 +27,7 @@
</thead>
<tbody class="list">
<tr>
- <td><code>final <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a><@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>></code></td>
+ <td><code>final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a><@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>></code></td>
<td>
<div><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/CountTokensResponse.html#promptTokensDetails()">promptTokensDetails</a></code></div>
<p>The breakdown, by modality, of how many tokens are consumed by the prompt.</p>
@@ -64,7 +64,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,kotlin.collections.List)">CountTokensResponse</a>(<br> int totalTokens,<br> <a href="https://developer.android.com/reference/kotlin/java/lang/Integer.html">Integer</a> totalBillableCharacters,<br> <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a><@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>> promptTokensDetails<br>)</code></div>
+ <div><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/CountTokensResponse.html#CountTokensResponse(kotlin.Int,kotlin.Int,kotlin.collections.List)">CountTokensResponse</a>(<br> int totalTokens,<br> <a href="https://developer.android.com/reference/kotlin/java/lang/Integer.html">Integer</a> totalBillableCharacters,<br> @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a><@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>> promptTokensDetails<br>)</code></div>
</td>
</tr>
</tbody>
@@ -107,7 +107,7 @@
<h2>Public fields</h2>
<div class="api-item"><a name="getPromptTokensDetails()"></a><a name="setPromptTokensDetails()"></a><a name="getPromptTokensDetails--"></a><a name="setPromptTokensDetails--"></a>
<h3 class="api-name" id="promptTokensDetails()">promptTokensDetails</h3>
- <pre class="api-signature no-pretty-print">public final <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a><@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>> <a href="/docs/reference/android/com/google/firebase/vertexai/type/CountTokensResponse.html#promptTokensDetails()">promptTokensDetails</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="https://developer.android.com/reference/kotlin/java/util/List.html">List</a><@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>> <a href="/docs/reference/android/com/google/firebase/vertexai/type/CountTokensResponse.html#promptTokensDetails()">promptTokensDetails</a></pre>
<p>The breakdown, by modality, of how many tokens are consumed by the prompt.</p>
</div>
<div class="api-item"><a name="getTotalBillableCharacters()"></a><a name="setTotalBillableCharacters()"></a><a name="getTotalBillableCharacters--"></a><a name="setTotalBillableCharacters--"></a>
@@ -125,7 +125,7 @@
<h2>Public constructors</h2>
<div class="api-item"><a name="CountTokensResponse(kotlin.Int, kotlin.Int, kotlin.collections.List)"></a><a name="CountTokensResponse-kotlin.Int-kotlin.Int-kotlin.collections.List-"></a><a name="counttokensresponse"></a>
<h3 class="api-name" id="CountTokensResponse(kotlin.Int,kotlin.Int,kotlin.collections.List)">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,kotlin.collections.List)">CountTokensResponse</a>(<br> int totalTokens,<br> <a href="https://developer.android.com/reference/kotlin/java/lang/Integer.html">Integer</a> totalBillableCharacters,<br> <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a><@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>> promptTokensDetails<br>)</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,kotlin.collections.List)">CountTokensResponse</a>(<br> int totalTokens,<br> <a href="https://developer.android.com/reference/kotlin/java/lang/Integer.html">Integer</a> totalBillableCharacters,<br> @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a><@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>> promptTokensDetails<br>)</pre>
</div>
</div>
<div class="list"> --- /home/runner/diff/original/firebase-kotlindoc/android/com/google/firebase/vertexai/type/UsageMetadata.html 2025-02-11 20:12:17.600506692 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/android/com/google/firebase/vertexai/type/UsageMetadata.html 2025-02-11 20:10:08.218103022 +0000
@@ -33,7 +33,7 @@
</td>
</tr>
<tr>
- <td><code>final <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a><@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>></code></td>
+ <td><code>final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a><@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>></code></td>
<td>
<div><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/UsageMetadata.html#candidatesTokensDetails()">candidatesTokensDetails</a></code></div>
<p>The breakdown, by modality, of how many tokens are consumed by the candidates.</p>
@@ -47,7 +47,7 @@
</td>
</tr>
<tr>
- <td><code>final <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a><@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>></code></td>
+ <td><code>final @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a><@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>></code></td>
<td>
<div><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/UsageMetadata.html#promptTokensDetails()">promptTokensDetails</a></code></div>
<p>The breakdown, by modality, of how many tokens are consumed by the prompt.</p>
@@ -77,7 +77,7 @@
<tbody class="list">
<tr>
<td>
- <div><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/UsageMetadata.html#UsageMetadata(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.collections.List,kotlin.collections.List)">UsageMetadata</a>(<br> int promptTokenCount,<br> <a href="https://developer.android.com/reference/kotlin/java/lang/Integer.html">Integer</a> candidatesTokenCount,<br> int totalTokenCount,<br> <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a><@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>> promptTokensDetails,<br> <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a><@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>> candidatesTokensDetails<br>)</code></div>
+ <div><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/UsageMetadata.html#UsageMetadata(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.collections.List,kotlin.collections.List)">UsageMetadata</a>(<br> int promptTokenCount,<br> <a href="https://developer.android.com/reference/kotlin/java/lang/Integer.html">Integer</a> candidatesTokenCount,<br> int totalTokenCount,<br> @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a><@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>> promptTokensDetails,<br> @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a><@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>> candidatesTokensDetails<br>)</code></div>
</td>
</tr>
</tbody>
@@ -92,7 +92,7 @@
</div>
<div class="api-item"><a name="getCandidatesTokensDetails()"></a><a name="setCandidatesTokensDetails()"></a><a name="getCandidatesTokensDetails--"></a><a name="setCandidatesTokensDetails--"></a>
<h3 class="api-name" id="candidatesTokensDetails()">candidatesTokensDetails</h3>
- <pre class="api-signature no-pretty-print">public final <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a><@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>> <a href="/docs/reference/android/com/google/firebase/vertexai/type/UsageMetadata.html#candidatesTokensDetails()">candidatesTokensDetails</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="https://developer.android.com/reference/kotlin/java/util/List.html">List</a><@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>> <a href="/docs/reference/android/com/google/firebase/vertexai/type/UsageMetadata.html#candidatesTokensDetails()">candidatesTokensDetails</a></pre>
<p>The breakdown, by modality, of how many tokens are consumed by the candidates.</p>
</div>
<div class="api-item"><a name="getPromptTokenCount()"></a><a name="setPromptTokenCount()"></a><a name="getPromptTokenCount--"></a><a name="setPromptTokenCount--"></a>
@@ -102,7 +102,7 @@
</div>
<div class="api-item"><a name="getPromptTokensDetails()"></a><a name="setPromptTokensDetails()"></a><a name="getPromptTokensDetails--"></a><a name="setPromptTokensDetails--"></a>
<h3 class="api-name" id="promptTokensDetails()">promptTokensDetails</h3>
- <pre class="api-signature no-pretty-print">public final <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a><@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>> <a href="/docs/reference/android/com/google/firebase/vertexai/type/UsageMetadata.html#promptTokensDetails()">promptTokensDetails</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="https://developer.android.com/reference/kotlin/java/util/List.html">List</a><@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>> <a href="/docs/reference/android/com/google/firebase/vertexai/type/UsageMetadata.html#promptTokensDetails()">promptTokensDetails</a></pre>
<p>The breakdown, by modality, of how many tokens are consumed by the prompt.</p>
</div>
<div class="api-item"><a name="getTotalTokenCount()"></a><a name="setTotalTokenCount()"></a><a name="getTotalTokenCount--"></a><a name="setTotalTokenCount--"></a>
@@ -115,7 +115,7 @@
<h2>Public constructors</h2>
<div class="api-item"><a name="UsageMetadata(kotlin.Int, kotlin.Int, kotlin.Int, kotlin.collections.List, kotlin.collections.List)"></a><a name="UsageMetadata-kotlin.Int-kotlin.Int-kotlin.Int-kotlin.collections.List-kotlin.collections.List-"></a><a name="usagemetadata"></a>
<h3 class="api-name" id="UsageMetadata(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.collections.List,kotlin.collections.List)">UsageMetadata</h3>
- <pre class="api-signature no-pretty-print">public <a href="/docs/reference/android/com/google/firebase/vertexai/type/UsageMetadata.html#UsageMetadata(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.collections.List,kotlin.collections.List)">UsageMetadata</a>(<br> int promptTokenCount,<br> <a href="https://developer.android.com/reference/kotlin/java/lang/Integer.html">Integer</a> candidatesTokenCount,<br> int totalTokenCount,<br> <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a><@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>> promptTokensDetails,<br> <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a><@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>> candidatesTokensDetails<br>)</pre>
+ <pre class="api-signature no-pretty-print">public <a href="/docs/reference/android/com/google/firebase/vertexai/type/UsageMetadata.html#UsageMetadata(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.collections.List,kotlin.collections.List)">UsageMetadata</a>(<br> int promptTokenCount,<br> <a href="https://developer.android.com/reference/kotlin/java/lang/Integer.html">Integer</a> candidatesTokenCount,<br> int totalTokenCount,<br> @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a><@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>> promptTokensDetails,<br> @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a><@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>> candidatesTokensDetails<br>)</pre>
<div class="devsite-table-wrapper">
<table class="responsive">
<colgroup>
@@ -147,13 +147,13 @@
</td>
</tr>
<tr>
- <td><code><a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a><@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>> promptTokensDetails</code></td>
+ <td><code>@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a><@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>> promptTokensDetails</code></td>
<td>
<p>The breakdown, by modality, of how many tokens are consumed by the prompt.</p>
</td>
</tr>
<tr>
- <td><code><a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a><@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>> candidatesTokensDetails</code></td>
+ <td><code>@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="https://developer.android.com/reference/kotlin/java/util/List.html">List</a><@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>> candidatesTokensDetails</code></td>
<td>
<p>The breakdown, by modality, of how many tokens are consumed by the candidates.</p>
</td> --- /home/runner/diff/original/firebase-kotlindoc/kotlin/com/google/firebase/vertexai/type/CountTokensResponse.html 2025-02-11 20:12:17.606506618 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/kotlin/com/google/firebase/vertexai/type/CountTokensResponse.html 2025-02-11 20:10:08.225102935 +0000
@@ -28,7 +28,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,kotlin.collections.List)">CountTokensResponse</a>(<br> totalTokens: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>,<br> totalBillableCharacters: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>?,<br> promptTokensDetails: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a><<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>>?<br>)</code></div>
+ <div><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/CountTokensResponse.html#CountTokensResponse(kotlin.Int,kotlin.Int,kotlin.collections.List)">CountTokensResponse</a>(<br> totalTokens: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>,<br> totalBillableCharacters: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>?,<br> promptTokensDetails: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a><<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>><br>)</code></div>
</td>
</tr>
</tbody>
@@ -80,7 +80,7 @@
</thead>
<tbody class="list">
<tr>
- <td><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a><<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>>?</code></td>
+ <td><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a><<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>></code></td>
<td>
<div><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/CountTokensResponse.html#promptTokensDetails()">promptTokensDetails</a></code></div>
<p>The breakdown, by modality, of how many tokens are consumed by the prompt.</p>
@@ -107,7 +107,7 @@
<h2>Public constructors</h2>
<div class="api-item"><a name="CountTokensResponse(kotlin.Int, kotlin.Int, kotlin.collections.List)"></a><a name="CountTokensResponse-kotlin.Int-kotlin.Int-kotlin.collections.List-"></a><a name="counttokensresponse"></a>
<h3 class="api-name" id="CountTokensResponse(kotlin.Int,kotlin.Int,kotlin.collections.List)">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,kotlin.collections.List)">CountTokensResponse</a>(<br> totalTokens: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>,<br> totalBillableCharacters: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>? = null,<br> promptTokensDetails: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a><<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>>? = null<br>)</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,kotlin.collections.List)">CountTokensResponse</a>(<br> totalTokens: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>,<br> totalBillableCharacters: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>? = null,<br> promptTokensDetails: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a><<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>> = emptyList()<br>)</pre>
</div>
</div>
<div class="list">
@@ -129,7 +129,7 @@
<h2>Public properties</h2>
<div class="api-item"><a name="getPromptTokensDetails()"></a><a name="setPromptTokensDetails()"></a><a name="getPromptTokensDetails--"></a><a name="setPromptTokensDetails--"></a>
<h3 class="api-name" id="promptTokensDetails()">promptTokensDetails</h3>
- <pre class="api-signature no-pretty-print">val <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/CountTokensResponse.html#promptTokensDetails()">promptTokensDetails</a>: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a><<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>>?</pre>
+ <pre class="api-signature no-pretty-print">val <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/CountTokensResponse.html#promptTokensDetails()">promptTokensDetails</a>: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a><<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>></pre>
<p>The breakdown, by modality, of how many tokens are consumed by the prompt.</p>
</div>
<div class="api-item"><a name="getTotalBillableCharacters()"></a><a name="setTotalBillableCharacters()"></a><a name="getTotalBillableCharacters--"></a><a name="setTotalBillableCharacters--"></a> --- /home/runner/diff/original/firebase-kotlindoc/kotlin/com/google/firebase/vertexai/type/UsageMetadata.html 2025-02-11 20:12:17.607506606 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/kotlin/com/google/firebase/vertexai/type/UsageMetadata.html 2025-02-11 20:10:08.226102922 +0000
@@ -27,7 +27,7 @@
<tbody class="list">
<tr>
<td>
- <div><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/UsageMetadata.html#UsageMetadata(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.collections.List,kotlin.collections.List)">UsageMetadata</a>(<br> promptTokenCount: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>,<br> candidatesTokenCount: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>?,<br> totalTokenCount: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>,<br> promptTokensDetails: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a><<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>>?,<br> candidatesTokensDetails: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a><<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>>?<br>)</code></div>
+ <div><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/UsageMetadata.html#UsageMetadata(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.collections.List,kotlin.collections.List)">UsageMetadata</a>(<br> promptTokenCount: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>,<br> candidatesTokenCount: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>?,<br> totalTokenCount: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>,<br> promptTokensDetails: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a><<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>>,<br> candidatesTokensDetails: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a><<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>><br>)</code></div>
</td>
</tr>
</tbody>
@@ -53,7 +53,7 @@
</td>
</tr>
<tr>
- <td><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a><<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>>?</code></td>
+ <td><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a><<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>></code></td>
<td>
<div><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/UsageMetadata.html#candidatesTokensDetails()">candidatesTokensDetails</a></code></div>
<p>The breakdown, by modality, of how many tokens are consumed by the candidates.</p>
@@ -67,7 +67,7 @@
</td>
</tr>
<tr>
- <td><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a><<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>>?</code></td>
+ <td><code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a><<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>></code></td>
<td>
<div><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/UsageMetadata.html#promptTokensDetails()">promptTokensDetails</a></code></div>
<p>The breakdown, by modality, of how many tokens are consumed by the prompt.</p>
@@ -87,7 +87,7 @@
<h2>Public constructors</h2>
<div class="api-item"><a name="UsageMetadata(kotlin.Int, kotlin.Int, kotlin.Int, kotlin.collections.List, kotlin.collections.List)"></a><a name="UsageMetadata-kotlin.Int-kotlin.Int-kotlin.Int-kotlin.collections.List-kotlin.collections.List-"></a><a name="usagemetadata"></a>
<h3 class="api-name" id="UsageMetadata(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.collections.List,kotlin.collections.List)">UsageMetadata</h3>
- <pre class="api-signature no-pretty-print"><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/UsageMetadata.html#UsageMetadata(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.collections.List,kotlin.collections.List)">UsageMetadata</a>(<br> promptTokenCount: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>,<br> candidatesTokenCount: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>?,<br> totalTokenCount: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>,<br> promptTokensDetails: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a><<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>>?,<br> candidatesTokensDetails: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a><<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>>?<br>)</pre>
+ <pre class="api-signature no-pretty-print"><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/UsageMetadata.html#UsageMetadata(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.collections.List,kotlin.collections.List)">UsageMetadata</a>(<br> promptTokenCount: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>,<br> candidatesTokenCount: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>?,<br> totalTokenCount: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html">Int</a>,<br> promptTokensDetails: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a><<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>>,<br> candidatesTokensDetails: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a><<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>><br>)</pre>
<div class="devsite-table-wrapper">
<table class="responsive">
<colgroup>
@@ -119,13 +119,13 @@
</td>
</tr>
<tr>
- <td><code>promptTokensDetails: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a><<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>>?</code></td>
+ <td><code>promptTokensDetails: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a><<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>></code></td>
<td>
<p>The breakdown, by modality, of how many tokens are consumed by the prompt.</p>
</td>
</tr>
<tr>
- <td><code>candidatesTokensDetails: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a><<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>>?</code></td>
+ <td><code>candidatesTokensDetails: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a><<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>></code></td>
<td>
<p>The breakdown, by modality, of how many tokens are consumed by the candidates.</p>
</td>
@@ -144,7 +144,7 @@
</div>
<div class="api-item"><a name="getCandidatesTokensDetails()"></a><a name="setCandidatesTokensDetails()"></a><a name="getCandidatesTokensDetails--"></a><a name="setCandidatesTokensDetails--"></a>
<h3 class="api-name" id="candidatesTokensDetails()">candidatesTokensDetails</h3>
- <pre class="api-signature no-pretty-print">val <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/UsageMetadata.html#candidatesTokensDetails()">candidatesTokensDetails</a>: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a><<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>>?</pre>
+ <pre class="api-signature no-pretty-print">val <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/UsageMetadata.html#candidatesTokensDetails()">candidatesTokensDetails</a>: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a><<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>></pre>
<p>The breakdown, by modality, of how many tokens are consumed by the candidates.</p>
</div>
<div class="api-item"><a name="getPromptTokenCount()"></a><a name="setPromptTokenCount()"></a><a name="getPromptTokenCount--"></a><a name="setPromptTokenCount--"></a>
@@ -154,7 +154,7 @@
</div>
<div class="api-item"><a name="getPromptTokensDetails()"></a><a name="setPromptTokensDetails()"></a><a name="getPromptTokensDetails--"></a><a name="setPromptTokensDetails--"></a>
<h3 class="api-name" id="promptTokensDetails()">promptTokensDetails</h3>
- <pre class="api-signature no-pretty-print">val <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/UsageMetadata.html#promptTokensDetails()">promptTokensDetails</a>: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a><<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>>?</pre>
+ <pre class="api-signature no-pretty-print">val <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/UsageMetadata.html#promptTokensDetails()">promptTokensDetails</a>: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a><<a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/ModalityTokenCount.html">ModalityTokenCount</a>></pre>
<p>The breakdown, by modality, of how many tokens are consumed by the prompt.</p>
</div>
<div class="api-item"><a name="getTotalTokenCount()"></a><a name="setTotalTokenCount()"></a><a name="getTotalTokenCount--"></a><a name="setTotalTokenCount--"></a> |
Generated by 🚫 Danger |
Coverage Report 1Affected ProductsNo changes between base commit (f6b59f6) and merge commit (ed9c65c).Test Logs |
The public api surface has changed for the subproject firebase-vertexai: Please update the api.txt files for the subprojects being affected by this change by running ./gradlew ${subproject}:generateApiTxtFile. Also perform a major/minor bump accordingly. |
Test Results 20 files + 6 20 suites +6 12s ⏱️ -1s Results for commit b287a27. ± Comparison against base commit f6b59f6. This pull request removes 23 and adds 114 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
Size Report 1Affected Products
Test Logs |
The public api surface has changed for the subproject firebase-vertexai: Please update the api.txt files for the subprojects being affected by this change by running ./gradlew ${subproject}:generateApiTxtFile. Also perform a major/minor bump accordingly. |
If missing, they'll default to empty.