Class WordInfo.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • word

      public abstract WordInfo.Builder word(String word)
      Setter for word.

      word: Transcript of the word.

    • clearWord

      @CanIgnoreReturnValue public WordInfo.Builder clearWord()
      Clears the value of word field.
    • startOffset

      public abstract WordInfo.Builder startOffset(String startOffset)
      Setter for startOffset.

      startOffset: Start offset in time of the word relative to the start of the audio.

    • clearStartOffset

      @CanIgnoreReturnValue public WordInfo.Builder clearStartOffset()
      Clears the value of startOffset field.
    • endOffset

      public abstract WordInfo.Builder endOffset(String endOffset)
      Setter for endOffset.

      endOffset: End offset in time of the word relative to the start of the audio.

    • clearEndOffset

      @CanIgnoreReturnValue public WordInfo.Builder clearEndOffset()
      Clears the value of endOffset field.
    • build

      public abstract WordInfo build()