Package com.openai.models.images
Class ImageGenStreamEvent
-
- All Implemented Interfaces:
public final class ImageGenStreamEvent
Emitted when a partial image is available during image generation streaming.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
ImageGenStreamEvent.Visitor
An interface that defines how to map each variant of ImageGenStreamEvent to a value of type T.
-
Method Summary
Modifier and Type Method Description final Optional<ImageGenPartialImageEvent>
generationPartialImage()
Emitted when a partial image is available during image generation streaming. final Optional<ImageGenCompletedEvent>
generationCompleted()
Emitted when image generation has completed and the final image is available. final Boolean
isGenerationPartialImage()
final Boolean
isGenerationCompleted()
final ImageGenPartialImageEvent
asGenerationPartialImage()
Emitted when a partial image is available during image generation streaming. final ImageGenCompletedEvent
asGenerationCompleted()
Emitted when image generation has completed and the final image is available. final Optional<JsonValue>
_json()
final <T extends Any> T
accept(ImageGenStreamEvent.Visitor<T> visitor)
final ImageGenStreamEvent
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ImageGenStreamEvent
ofGenerationPartialImage(ImageGenPartialImageEvent generationPartialImage)
Emitted when a partial image is available during image generation streaming. final static ImageGenStreamEvent
ofGenerationCompleted(ImageGenCompletedEvent generationCompleted)
Emitted when image generation has completed and the final image is available. -
-
Method Detail
-
generationPartialImage
final Optional<ImageGenPartialImageEvent> generationPartialImage()
Emitted when a partial image is available during image generation streaming.
-
generationCompleted
final Optional<ImageGenCompletedEvent> generationCompleted()
Emitted when image generation has completed and the final image is available.
-
isGenerationPartialImage
final Boolean isGenerationPartialImage()
-
isGenerationCompleted
final Boolean isGenerationCompleted()
-
asGenerationPartialImage
final ImageGenPartialImageEvent asGenerationPartialImage()
Emitted when a partial image is available during image generation streaming.
-
asGenerationCompleted
final ImageGenCompletedEvent asGenerationCompleted()
Emitted when image generation has completed and the final image is available.
-
accept
final <T extends Any> T accept(ImageGenStreamEvent.Visitor<T> visitor)
-
validate
final ImageGenStreamEvent validate()
-
ofGenerationPartialImage
final static ImageGenStreamEvent ofGenerationPartialImage(ImageGenPartialImageEvent generationPartialImage)
Emitted when a partial image is available during image generation streaming.
-
ofGenerationCompleted
final static ImageGenStreamEvent ofGenerationCompleted(ImageGenCompletedEvent generationCompleted)
Emitted when image generation has completed and the final image is available.
-
-
-
-