Class ResponseInputItem.ImageGenerationCall
-
- All Implemented Interfaces:
public final class ResponseInputItem.ImageGenerationCall
An image generation request made by the model.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ResponseInputItem.ImageGenerationCall.Builder
A builder for ImageGenerationCall.
public final class
ResponseInputItem.ImageGenerationCall.Status
The status of the image generation call.
-
Method Summary
Modifier and Type Method Description final String
id()
The unique ID of the image generation call. final Optional<String>
result()
The generated image encoded in base64. final ResponseInputItem.ImageGenerationCall.Status
status()
The status of the image generation call. final JsonValue
_type()
The type of the image generation call. final JsonField<String>
_id()
Returns the raw JSON value of id. final JsonField<String>
_result()
Returns the raw JSON value of result. final JsonField<ResponseInputItem.ImageGenerationCall.Status>
_status()
Returns the raw JSON value of status. final Map<String, JsonValue>
_additionalProperties()
final ResponseInputItem.ImageGenerationCall.Builder
toBuilder()
final ResponseInputItem.ImageGenerationCall
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ResponseInputItem.ImageGenerationCall.Builder
builder()
Returns a mutable builder for constructing an instance of ImageGenerationCall. -
-
Method Detail
-
status
final ResponseInputItem.ImageGenerationCall.Status status()
The status of the image generation call.
-
_type
final JsonValue _type()
The type of the image generation call. Always
image_generation_call
.Expected to always return the following:
JsonValue.from("image_generation_call")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_result
final JsonField<String> _result()
Returns the raw JSON value of result.
Unlike result, this method doesn't throw if the JSON field has an unexpected type.
-
_status
final JsonField<ResponseInputItem.ImageGenerationCall.Status> _status()
Returns the raw JSON value of status.
Unlike status, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ResponseInputItem.ImageGenerationCall.Builder toBuilder()
-
validate
final ResponseInputItem.ImageGenerationCall validate()
-
builder
final static ResponseInputItem.ImageGenerationCall.Builder builder()
Returns a mutable builder for constructing an instance of ImageGenerationCall.
The following fields are required:
.id() .result() .status()
-
-
-
-