Skip to content

Commit f4de563

Browse files
author
David Motsonashvili
committed
added java interop layer annotation
1 parent 0bcbd63 commit f4de563

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/ImagenModel.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ internal constructor(
128128
}
129129
}
130130

131+
@OptIn(PublicPreviewAPI::class)
131132
private fun ImagenGenerationResponse.Internal.validate(): ImagenGenerationResponse.Internal {
132133
if (predictions.none { it.mimeType != null }) {
133134
throw ContentBlockedException(

firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/java/ImagenModelFutures.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ package com.google.firebase.vertexai.java
1919
import androidx.concurrent.futures.SuspendToFutureAdapter
2020
import com.google.common.util.concurrent.ListenableFuture
2121
import com.google.firebase.vertexai.ImagenModel
22+
import com.google.firebase.vertexai.common.PublicPreviewAPI
2223
import com.google.firebase.vertexai.type.ImagenGCSImage
2324
import com.google.firebase.vertexai.type.ImagenGenerationResponse
2425
import com.google.firebase.vertexai.type.ImagenInlineImage
@@ -28,6 +29,7 @@ import com.google.firebase.vertexai.type.ImagenInlineImage
2829
*
2930
* @see [ImagenModel]
3031
*/
32+
@OptIn(PublicPreviewAPI::class)
3133
public abstract class ImagenModelFutures internal constructor() {
3234
/**
3335
* Generates an image, returning the result directly to the caller.

0 commit comments

Comments
 (0)