Class ImageGenPartialImageEvent
-
- All Implemented Interfaces:
public final class ImageGenPartialImageEvent
Emitted when a partial image is available during image generation streaming.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ImageGenPartialImageEvent.Builder
A builder for ImageGenPartialImageEvent.
public final class
ImageGenPartialImageEvent.Background
The background setting for the requested image.
public final class
ImageGenPartialImageEvent.OutputFormat
The output format for the requested image.
public final class
ImageGenPartialImageEvent.Quality
The quality setting for the requested image.
public final class
ImageGenPartialImageEvent.Size
The size of the requested image.
-
Method Summary
Modifier and Type Method Description final String
b64Json()
Base64-encoded partial image data, suitable for rendering as an image. final ImageGenPartialImageEvent.Background
background()
The background setting for the requested image. final Long
createdAt()
The Unix timestamp when the event was created. final ImageGenPartialImageEvent.OutputFormat
outputFormat()
The output format for the requested image. final Long
partialImageIndex()
0-based index for the partial image (streaming). final ImageGenPartialImageEvent.Quality
quality()
The quality setting for the requested image. final ImageGenPartialImageEvent.Size
size()
The size of the requested image. final JsonValue
_type()
The type of the event. final JsonField<String>
_b64Json()
Returns the raw JSON value of b64Json. final JsonField<ImageGenPartialImageEvent.Background>
_background()
Returns the raw JSON value of background. final JsonField<Long>
_createdAt()
Returns the raw JSON value of createdAt. final JsonField<ImageGenPartialImageEvent.OutputFormat>
_outputFormat()
Returns the raw JSON value of outputFormat. final JsonField<Long>
_partialImageIndex()
Returns the raw JSON value of partialImageIndex. final JsonField<ImageGenPartialImageEvent.Quality>
_quality()
Returns the raw JSON value of quality. final JsonField<ImageGenPartialImageEvent.Size>
_size()
Returns the raw JSON value of size. final Map<String, JsonValue>
_additionalProperties()
final ImageGenPartialImageEvent.Builder
toBuilder()
final ImageGenPartialImageEvent
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ImageGenPartialImageEvent.Builder
builder()
Returns a mutable builder for constructing an instance of ImageGenPartialImageEvent. -
-
Method Detail
-
b64Json
final String b64Json()
Base64-encoded partial image data, suitable for rendering as an image.
-
background
final ImageGenPartialImageEvent.Background background()
The background setting for the requested image.
-
outputFormat
final ImageGenPartialImageEvent.OutputFormat outputFormat()
The output format for the requested image.
-
partialImageIndex
final Long partialImageIndex()
0-based index for the partial image (streaming).
-
quality
final ImageGenPartialImageEvent.Quality quality()
The quality setting for the requested image.
-
size
final ImageGenPartialImageEvent.Size size()
The size of the requested image.
-
_type
final JsonValue _type()
The type of the event. Always
image_generation.partial_image
.Expected to always return the following:
JsonValue.from("image_generation.partial_image")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_b64Json
final JsonField<String> _b64Json()
Returns the raw JSON value of b64Json.
Unlike b64Json, this method doesn't throw if the JSON field has an unexpected type.
-
_background
final JsonField<ImageGenPartialImageEvent.Background> _background()
Returns the raw JSON value of background.
Unlike background, this method doesn't throw if the JSON field has an unexpected type.
-
_createdAt
final JsonField<Long> _createdAt()
Returns the raw JSON value of createdAt.
Unlike createdAt, this method doesn't throw if the JSON field has an unexpected type.
-
_outputFormat
final JsonField<ImageGenPartialImageEvent.OutputFormat> _outputFormat()
Returns the raw JSON value of outputFormat.
Unlike outputFormat, this method doesn't throw if the JSON field has an unexpected type.
-
_partialImageIndex
final JsonField<Long> _partialImageIndex()
Returns the raw JSON value of partialImageIndex.
Unlike partialImageIndex, this method doesn't throw if the JSON field has an unexpected type.
-
_quality
final JsonField<ImageGenPartialImageEvent.Quality> _quality()
Returns the raw JSON value of quality.
Unlike quality, this method doesn't throw if the JSON field has an unexpected type.
-
_size
final JsonField<ImageGenPartialImageEvent.Size> _size()
Returns the raw JSON value of size.
Unlike size, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ImageGenPartialImageEvent.Builder toBuilder()
-
validate
final ImageGenPartialImageEvent validate()
-
builder
final static ImageGenPartialImageEvent.Builder builder()
Returns a mutable builder for constructing an instance of ImageGenPartialImageEvent.
The following fields are required:
.b64Json() .background() .createdAt() .outputFormat() .partialImageIndex() .quality() .size()
-
-
-
-