Class ImageGenCompletedEvent.Builder
-
- All Implemented Interfaces:
public final class ImageGenCompletedEvent.Builder
A builder for ImageGenCompletedEvent.
-
-
Method Summary
-
-
Method Detail
-
b64Json
final ImageGenCompletedEvent.Builder b64Json(String b64Json)
Base64-encoded image data, suitable for rendering as an image.
-
b64Json
final ImageGenCompletedEvent.Builder b64Json(JsonField<String> b64Json)
Sets Builder.b64Json to an arbitrary JSON value.
You should usually call Builder.b64Json with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
background
final ImageGenCompletedEvent.Builder background(ImageGenCompletedEvent.Background background)
The background setting for the generated image.
-
background
final ImageGenCompletedEvent.Builder background(JsonField<ImageGenCompletedEvent.Background> background)
Sets Builder.background to an arbitrary JSON value.
You should usually call Builder.background with a well-typed Background value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
createdAt
final ImageGenCompletedEvent.Builder createdAt(Long createdAt)
The Unix timestamp when the event was created.
-
createdAt
final ImageGenCompletedEvent.Builder createdAt(JsonField<Long> createdAt)
Sets Builder.createdAt to an arbitrary JSON value.
You should usually call Builder.createdAt with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
outputFormat
final ImageGenCompletedEvent.Builder outputFormat(ImageGenCompletedEvent.OutputFormat outputFormat)
The output format for the generated image.
-
outputFormat
final ImageGenCompletedEvent.Builder outputFormat(JsonField<ImageGenCompletedEvent.OutputFormat> outputFormat)
Sets Builder.outputFormat to an arbitrary JSON value.
You should usually call Builder.outputFormat with a well-typed OutputFormat value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
quality
final ImageGenCompletedEvent.Builder quality(ImageGenCompletedEvent.Quality quality)
The quality setting for the generated image.
-
quality
final ImageGenCompletedEvent.Builder quality(JsonField<ImageGenCompletedEvent.Quality> quality)
Sets Builder.quality to an arbitrary JSON value.
You should usually call Builder.quality with a well-typed Quality value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
size
final ImageGenCompletedEvent.Builder size(ImageGenCompletedEvent.Size size)
The size of the generated image.
-
size
final ImageGenCompletedEvent.Builder size(JsonField<ImageGenCompletedEvent.Size> size)
Sets Builder.size to an arbitrary JSON value.
You should usually call Builder.size with a well-typed Size value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final ImageGenCompletedEvent.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("image_generation.completed")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
usage
final ImageGenCompletedEvent.Builder usage(ImageGenCompletedEvent.Usage usage)
For
gpt-image-1
only, the token usage information for the image generation.
-
usage
final ImageGenCompletedEvent.Builder usage(JsonField<ImageGenCompletedEvent.Usage> usage)
Sets Builder.usage to an arbitrary JSON value.
You should usually call Builder.usage with a well-typed Usage value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ImageGenCompletedEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ImageGenCompletedEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ImageGenCompletedEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ImageGenCompletedEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ImageGenCompletedEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ImageGenCompletedEvent build()
Returns an immutable instance of ImageGenCompletedEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.b64Json() .background() .createdAt() .outputFormat() .quality() .size() .usage()
-
-
-
-