Class ImageGenPartialImageEvent.Builder
-
- All Implemented Interfaces:
public final class ImageGenPartialImageEvent.Builder
A builder for ImageGenPartialImageEvent.
-
-
Method Summary
-
-
Method Detail
-
b64Json
final ImageGenPartialImageEvent.Builder b64Json(String b64Json)
Base64-encoded partial image data, suitable for rendering as an image.
-
b64Json
final ImageGenPartialImageEvent.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 ImageGenPartialImageEvent.Builder background(ImageGenPartialImageEvent.Background background)
The background setting for the requested image.
-
background
final ImageGenPartialImageEvent.Builder background(JsonField<ImageGenPartialImageEvent.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 ImageGenPartialImageEvent.Builder createdAt(Long createdAt)
The Unix timestamp when the event was created.
-
createdAt
final ImageGenPartialImageEvent.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 ImageGenPartialImageEvent.Builder outputFormat(ImageGenPartialImageEvent.OutputFormat outputFormat)
The output format for the requested image.
-
outputFormat
final ImageGenPartialImageEvent.Builder outputFormat(JsonField<ImageGenPartialImageEvent.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.
-
partialImageIndex
final ImageGenPartialImageEvent.Builder partialImageIndex(Long partialImageIndex)
0-based index for the partial image (streaming).
-
partialImageIndex
final ImageGenPartialImageEvent.Builder partialImageIndex(JsonField<Long> partialImageIndex)
Sets Builder.partialImageIndex to an arbitrary JSON value.
You should usually call Builder.partialImageIndex with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
quality
final ImageGenPartialImageEvent.Builder quality(ImageGenPartialImageEvent.Quality quality)
The quality setting for the requested image.
-
quality
final ImageGenPartialImageEvent.Builder quality(JsonField<ImageGenPartialImageEvent.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 ImageGenPartialImageEvent.Builder size(ImageGenPartialImageEvent.Size size)
The size of the requested image.
-
size
final ImageGenPartialImageEvent.Builder size(JsonField<ImageGenPartialImageEvent.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 ImageGenPartialImageEvent.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.partial_image")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ImageGenPartialImageEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ImageGenPartialImageEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ImageGenPartialImageEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ImageGenPartialImageEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ImageGenPartialImageEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ImageGenPartialImageEvent build()
Returns an immutable instance of ImageGenPartialImageEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.b64Json() .background() .createdAt() .outputFormat() .partialImageIndex() .quality() .size()
-
-
-
-