Class TextResponseFormat.Builder

java.lang.Object
com.google.genai.types.TextResponseFormat.Builder
Enclosing class:
TextResponseFormat

public abstract static class TextResponseFormat.Builder extends Object
Builder for TextResponseFormat.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • mimeType

      public abstract TextResponseFormat.Builder mimeType(String mimeType)
      Setter for mimeType.

      mimeType: Optional. The IANA standard MIME type of the response.

    • clearMimeType

      @CanIgnoreReturnValue public TextResponseFormat.Builder clearMimeType()
      Clears the value of mimeType field.
    • schema

      public abstract TextResponseFormat.Builder schema(Object schema)
      Setter for schema.

      schema: Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON.

    • clearSchema

      @CanIgnoreReturnValue public TextResponseFormat.Builder clearSchema()
      Clears the value of schema field.
    • build

      public abstract TextResponseFormat build()