responseSchema

public abstract GenerateContentConfig.Builder responseSchema(Schema responseSchema)

Setter for responseSchema.

responseSchema: The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). If set, a compatible response_mime_type must also be set. Compatible mimetypes: `application/json`: Schema for JSON response.

If `response_schema` doesn't process your schema correctly, try using `response_json_schema` instead.


@CanIgnoreReturnValue()
public GenerateContentConfig.Builder responseSchema(Schema.Builder responseSchemaBuilder)

Setter for responseSchema builder.

responseSchema: The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). If set, a compatible response_mime_type must also be set. Compatible mimetypes: `application/json`: Schema for JSON response.

If `response_schema` doesn't process your schema correctly, try using `response_json_schema` instead.