Class BetaResponseInputItem.ImageGenerationCall
-
- All Implemented Interfaces:
public final class BetaResponseInputItem.ImageGenerationCallAn image generation request made by the model.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseInputItem.ImageGenerationCall.BuilderA builder for ImageGenerationCall.
public final classBetaResponseInputItem.ImageGenerationCall.StatusThe status of the image generation call.
public final classBetaResponseInputItem.ImageGenerationCall.AgentThe agent that produced this item.
-
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 BetaResponseInputItem.ImageGenerationCall.Statusstatus()The status of the image generation call. final JsonValue_type()The type of the image generation call. final Optional<BetaResponseInputItem.ImageGenerationCall.Agent>agent()The agent that produced this item. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<String>_result()Returns the raw JSON value of result. final JsonField<BetaResponseInputItem.ImageGenerationCall.Status>_status()Returns the raw JSON value of status. final JsonField<BetaResponseInputItem.ImageGenerationCall.Agent>_agent()Returns the raw JSON value of agent. final Map<String, JsonValue>_additionalProperties()final BetaResponseInputItem.ImageGenerationCall.BuildertoBuilder()final BetaResponseInputItem.ImageGenerationCallvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaResponseInputItem.ImageGenerationCall.Builderbuilder()Returns a mutable builder for constructing an instance of ImageGenerationCall. -
-
Method Detail
-
status
final BetaResponseInputItem.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).
-
agent
final Optional<BetaResponseInputItem.ImageGenerationCall.Agent> agent()
The agent that produced this item.
-
_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<BetaResponseInputItem.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.
-
_agent
final JsonField<BetaResponseInputItem.ImageGenerationCall.Agent> _agent()
Returns the raw JSON value of agent.
Unlike agent, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaResponseInputItem.ImageGenerationCall.Builder toBuilder()
-
validate
final BetaResponseInputItem.ImageGenerationCall validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaResponseInputItem.ImageGenerationCall.Builder builder()
Returns a mutable builder for constructing an instance of ImageGenerationCall.
The following fields are required:
.id() .result() .status()
-
-
-
-