BatchInlineResponse

@Serializable
data class BatchInlineResponse(val response: GenerateContentResponse? = null, val error: JsonElement? = null, val metadata: ResponseMetadata? = null)

Represents a single inline response in a batch job result.

Constructors

Link copied to clipboard
constructor(response: GenerateContentResponse? = null, error: JsonElement? = null, metadata: ResponseMetadata? = null)

Properties

Link copied to clipboard
val error: JsonElement?

Error details if the specific request failed.

Link copied to clipboard

An optional key to identify the request.

Link copied to clipboard

The response object (e.g., GenerateContentResponse). It is a JsonElement to allow flexible parsing or mapping.