Class ResponseItem.ImageGenerationCall
-
- All Implemented Interfaces:
public final class ResponseItem.ImageGenerationCallAn image generation request made by the model.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classResponseItem.ImageGenerationCall.BuilderA builder for ImageGenerationCall.
public final classResponseItem.ImageGenerationCall.StatusThe status of the image generation call.
-
Method Summary
Modifier and Type Method Description final Stringid()The unique ID of the image generation call. final Optional<String>result()The generated image encoded in base64. final ResponseItem.ImageGenerationCall.Statusstatus()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<ResponseItem.ImageGenerationCall.Status>_status()Returns the raw JSON value of status. final Map<String, JsonValue>_additionalProperties()final ResponseItem.ImageGenerationCall.BuildertoBuilder()final ResponseItem.ImageGenerationCallvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ResponseItem.ImageGenerationCall.Builderbuilder()Returns a mutable builder for constructing an instance of ImageGenerationCall. -
-
Method Detail
-
status
final ResponseItem.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<ResponseItem.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 ResponseItem.ImageGenerationCall.Builder toBuilder()
-
validate
final ResponseItem.ImageGenerationCall validate()
-
builder
final static ResponseItem.ImageGenerationCall.Builder builder()
Returns a mutable builder for constructing an instance of ImageGenerationCall.
The following fields are required:
.id() .result() .status()
-
-
-
-