-
Notifications
You must be signed in to change notification settings - Fork 573
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
Change InlineDataPart to match ImagePart #6346
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 order of the parameters should be consistent between them, and it should be (url/byte, mime-type).
Javadoc Changes:--- /home/runner/diff/original/firebase-kotlindoc/android/com/google/firebase/vertexai/type/InlineDataPart.html 2024-10-03 21:50:21.636682731 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/android/com/google/firebase/vertexai/type/InlineDataPart.html 2024-10-03 21:48:15.115852396 +0000
@@ -56,7 +56,7 @@
<tbody class="list">
<tr>
<td>
- <div><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/InlineDataPart.html#InlineDataPart(kotlin.String,kotlin.ByteArray)">InlineDataPart</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> mimeType, @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> byte[] inlineData)</code></div>
+ <div><code><a href="/docs/reference/android/com/google/firebase/vertexai/type/InlineDataPart.html#InlineDataPart(kotlin.ByteArray,kotlin.String)">InlineDataPart</a>(@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> byte[] inlineData, @<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> mimeType)</code></div>
</td>
</tr>
</tbody>
@@ -72,14 +72,14 @@
<div class="api-item"><a name="getMimeType()"></a><a name="setMimeType()"></a><a name="getMimeType--"></a><a name="setMimeType--"></a>
<h3 class="api-name" id="mimeType()">mimeType</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="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a> <a href="/docs/reference/android/com/google/firebase/vertexai/type/InlineDataPart.html#mimeType()">mimeType</a></pre>
- <p>an IANA standard MIME type. For supported values, see the <a href="https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/send-multimodal-prompts#media_requirements">Vertex AI documentation</a> .</p>
+ <p>an IANA standard MIME type. For supported values, see the <a href="https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/send-multimodal-prompts#media_requirements">Vertex AI documentation</a></p>
</div>
</div>
<div class="list">
<h2>Public constructors</h2>
- <div class="api-item"><a name="InlineDataPart(kotlin.String, kotlin.ByteArray)"></a><a name="InlineDataPart-kotlin.String-kotlin.ByteArray-"></a><a name="inlinedatapart"></a>
- <h3 class="api-name" id="InlineDataPart(kotlin.String,kotlin.ByteArray)">InlineDataPart</h3>
- <pre class="api-signature no-pretty-print">public <a href="/docs/reference/android/com/google/firebase/vertexai/type/InlineDataPart.html#InlineDataPart(kotlin.String,kotlin.ByteArray)">InlineDataPart</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> mimeType, @<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> byte[] inlineData)</pre>
+ <div class="api-item"><a name="InlineDataPart(kotlin.ByteArray, kotlin.String)"></a><a name="InlineDataPart-kotlin.ByteArray-kotlin.String-"></a><a name="inlinedatapart"></a>
+ <h3 class="api-name" id="InlineDataPart(kotlin.ByteArray,kotlin.String)">InlineDataPart</h3>
+ <pre class="api-signature no-pretty-print">public <a href="/docs/reference/android/com/google/firebase/vertexai/type/InlineDataPart.html#InlineDataPart(kotlin.ByteArray,kotlin.String)">InlineDataPart</a>(@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> byte[] inlineData, @<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> mimeType)</pre>
<div class="devsite-table-wrapper">
<table class="responsive">
<colgroup>
@@ -93,15 +93,15 @@
</thead>
<tbody class="list">
<tr>
- <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/lang/String.html">String</a> mimeType</code></td>
+ <td><code>@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> byte[] inlineData</code></td>
<td>
- <p>an IANA standard MIME type. For supported values, see the <a href="https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/send-multimodal-prompts#media_requirements">Vertex AI documentation</a> .</p>
+ <p>the binary data as a <code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a></code></p>
</td>
</tr>
<tr>
- <td><code>@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html">NonNull</a> byte[] inlineData</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/lang/String.html">String</a> mimeType</code></td>
<td>
- <p>the binary data as a <code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a></code></p>
+ <p>an IANA standard MIME type. For supported values, see the <a href="https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/send-multimodal-prompts#media_requirements">Vertex AI documentation</a></p>
</td>
</tr>
</tbody> --- /home/runner/diff/original/firebase-kotlindoc/kotlin/com/google/firebase/vertexai/type/InlineDataPart.html 2024-10-03 21:50:21.630682740 +0000
+++ /home/runner/diff/modified/firebase-kotlindoc/kotlin/com/google/firebase/vertexai/type/InlineDataPart.html 2024-10-03 21:48:15.106852409 +0000
@@ -27,7 +27,7 @@
<tbody class="list">
<tr>
<td>
- <div><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/InlineDataPart.html#InlineDataPart(kotlin.String,kotlin.ByteArray)">InlineDataPart</a>(mimeType: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>, inlineData: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a>)</code></div>
+ <div><code><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/InlineDataPart.html#InlineDataPart(kotlin.ByteArray,kotlin.String)">InlineDataPart</a>(inlineData: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a>, mimeType: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>)</code></div>
</td>
</tr>
</tbody>
@@ -64,9 +64,9 @@
</div>
<div class="list">
<h2>Public constructors</h2>
- <div class="api-item"><a name="InlineDataPart(kotlin.String, kotlin.ByteArray)"></a><a name="InlineDataPart-kotlin.String-kotlin.ByteArray-"></a><a name="inlinedatapart"></a>
- <h3 class="api-name" id="InlineDataPart(kotlin.String,kotlin.ByteArray)">InlineDataPart</h3>
- <pre class="api-signature no-pretty-print"><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/InlineDataPart.html#InlineDataPart(kotlin.String,kotlin.ByteArray)">InlineDataPart</a>(mimeType: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>, inlineData: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a>)</pre>
+ <div class="api-item"><a name="InlineDataPart(kotlin.ByteArray, kotlin.String)"></a><a name="InlineDataPart-kotlin.ByteArray-kotlin.String-"></a><a name="inlinedatapart"></a>
+ <h3 class="api-name" id="InlineDataPart(kotlin.ByteArray,kotlin.String)">InlineDataPart</h3>
+ <pre class="api-signature no-pretty-print"><a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/InlineDataPart.html#InlineDataPart(kotlin.ByteArray,kotlin.String)">InlineDataPart</a>(inlineData: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a>, mimeType: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>)</pre>
<div class="devsite-table-wrapper">
<table class="responsive">
<colgroup>
@@ -80,15 +80,15 @@
</thead>
<tbody class="list">
<tr>
- <td><code>mimeType: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a></code></td>
+ <td><code>inlineData: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a></code></td>
<td>
- <p>an IANA standard MIME type. For supported values, see the <a href="https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/send-multimodal-prompts#media_requirements">Vertex AI documentation</a> .</p>
+ <p>the binary data as a <code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a></code></p>
</td>
</tr>
<tr>
- <td><code>inlineData: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a></code></td>
+ <td><code>mimeType: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a></code></td>
<td>
- <p>the binary data as a <code><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a></code></p>
+ <p>an IANA standard MIME type. For supported values, see the <a href="https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/send-multimodal-prompts#media_requirements">Vertex AI documentation</a></p>
</td>
</tr>
</tbody>
@@ -106,7 +106,7 @@
<div class="api-item"><a name="getMimeType()"></a><a name="setMimeType()"></a><a name="getMimeType--"></a><a name="setMimeType--"></a>
<h3 class="api-name" id="mimeType()">mimeType</h3>
<pre class="api-signature no-pretty-print">val <a href="/docs/reference/kotlin/com/google/firebase/vertexai/type/InlineDataPart.html#mimeType()">mimeType</a>: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a></pre>
- <p>an IANA standard MIME type. For supported values, see the <a href="https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/send-multimodal-prompts#media_requirements">Vertex AI documentation</a> .</p>
+ <p>an IANA standard MIME type. For supported values, see the <a href="https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/send-multimodal-prompts#media_requirements">Vertex AI documentation</a></p>
</div>
</div>
</body> |
Generated by 🚫 Danger |
Test Results 16 files - 1 002 16 suites - 1 002 15s ⏱️ - 36m 48s Results for commit f6349cd. ± Comparison against base commit 13ef861. This pull request removes 5697 tests.
|
daymxn
approved these changes
Oct 4, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 order of the parameters should be consistent between them, and it should be (url/byte, mime-type).