Class LiveClientContent.Builder
-
- All Implemented Interfaces:
public abstract class LiveClientContent.BuilderBuilder for LiveClientContent.
-
-
Constructor Summary
Constructors Constructor Description LiveClientContent.Builder()
-
Method Summary
Modifier and Type Method Description abstract LiveClientContent.Builderturns(List<Content> turns)Setter for turns. LiveClientContent.Builderturns(Array<Content> turns)Setter for turns. LiveClientContent.Builderturns(Array<Content.Builder> turnsBuilders)Setter for turns builder. LiveClientContent.BuilderclearTurns()Clears the value of turns field. abstract LiveClientContent.BuilderturnComplete(boolean turnComplete)Setter for turnComplete. LiveClientContent.BuilderclearTurnComplete()Clears the value of turnComplete field. abstract LiveClientContentbuild()-
-
Method Detail
-
turns
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
@CanIgnoreReturnValue() LiveClientContent.Builder turns(Array<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
@CanIgnoreReturnValue() LiveClientContent.Builder turns(Array<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.
-
clearTurns
@CanIgnoreReturnValue() LiveClientContent.Builder clearTurns()
Clears the value of turns field.
-
turnComplete
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.
-
clearTurnComplete
@CanIgnoreReturnValue() LiveClientContent.Builder clearTurnComplete()
Clears the value of turnComplete field.
-
build
abstract LiveClientContent build()
-
-
-
-