Class LiveClientContent.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • turns

      public abstract LiveClientContent.Builder turns(List<Content> turns)
      Setter for turns.

      turns: The content appended to the current conversation with the model.

      For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history and latest request.

    • turns

      public LiveClientContent.Builder turns(Content... turns)
      Setter for turns.

      turns: The content appended to the current conversation with the model.

      For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history and latest request.

    • turns

      public LiveClientContent.Builder turns(Content.Builder... turnsBuilders)
      Setter for turns builder.

      turns: The content appended to the current conversation with the model.

      For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history and latest request.

    • turnComplete

      public abstract LiveClientContent.Builder turnComplete(boolean turnComplete)
      Setter for turnComplete.

      turnComplete: If true, indicates that the server content generation should start with the currently accumulated prompt. Otherwise, the server will await additional messages before starting generation.

    • build

      public abstract LiveClientContent build()