Interface AudioContent.Builder

Enclosing interface:
AudioContent

public static interface AudioContent.Builder
Builder for AudioContent.
  • Method Details

    • data

      Sets the base64-encoded audio data.
      Parameters:
      data - the audio data
      Returns:
      this builder
    • mimeType

      AudioContent.Builder mimeType(String mimeType)
      Sets the MIME type of the audio content.
      Parameters:
      mimeType - the audio MIME type
      Returns:
      this builder
    • annotations

      AudioContent.Builder annotations(@Nullable Annotations annotations)
      Sets the annotations.
      Parameters:
      annotations - the annotations, or null
      Returns:
      this builder
    • meta

      AudioContent.Builder meta(@Nullable Map<String,?> entries)
      Sets the metadata entries.
      Parameters:
      entries - the metadata map, or null
      Returns:
      this builder
    • build

      AudioContent build()
      Builds the AudioContent instance.
      Returns:
      a new audio content