Class ImageEditCompletedEvent.Builder
-
- All Implemented Interfaces:
public final class ImageEditCompletedEvent.Builder
A builder for ImageEditCompletedEvent.
-
-
Method Summary
-
-
Method Detail
-
b64Json
final ImageEditCompletedEvent.Builder b64Json(String b64Json)
Base64-encoded final edited image data, suitable for rendering as an image.
-
b64Json
final ImageEditCompletedEvent.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 ImageEditCompletedEvent.Builder background(ImageEditCompletedEvent.Background background)
The background setting for the edited image.
-
background
final ImageEditCompletedEvent.Builder background(JsonField<ImageEditCompletedEvent.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 ImageEditCompletedEvent.Builder createdAt(Long createdAt)
The Unix timestamp when the event was created.
-
createdAt
final ImageEditCompletedEvent.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 ImageEditCompletedEvent.Builder outputFormat(ImageEditCompletedEvent.OutputFormat outputFormat)
The output format for the edited image.
-
outputFormat
final ImageEditCompletedEvent.Builder outputFormat(JsonField<ImageEditCompletedEvent.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 ImageEditCompletedEvent.Builder quality(ImageEditCompletedEvent.Quality quality)
The quality setting for the edited image.
-
quality
final ImageEditCompletedEvent.Builder quality(JsonField<ImageEditCompletedEvent.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 ImageEditCompletedEvent.Builder size(ImageEditCompletedEvent.Size size)
The size of the edited image.
-
size
final ImageEditCompletedEvent.Builder size(JsonField<ImageEditCompletedEvent.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 ImageEditCompletedEvent.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_edit.completed")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
usage
final ImageEditCompletedEvent.Builder usage(ImageEditCompletedEvent.Usage usage)
For
gpt-image-1
only, the token usage information for the image generation.
-
usage
final ImageEditCompletedEvent.Builder usage(JsonField<ImageEditCompletedEvent.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 ImageEditCompletedEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ImageEditCompletedEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ImageEditCompletedEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ImageEditCompletedEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ImageEditCompletedEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ImageEditCompletedEvent build()
Returns an immutable instance of ImageEditCompletedEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.b64Json() .background() .createdAt() .outputFormat() .quality() .size() .usage()
-
-
-
-