Class LiveClientSetup.Builder
-
- All Implemented Interfaces:
public abstract class LiveClientSetup.BuilderBuilder for LiveClientSetup.
-
-
Constructor Summary
Constructors Constructor Description LiveClientSetup.Builder()
-
Method Summary
Modifier and Type Method Description abstract LiveClientSetup.Buildermodel(String model)Setter for model. LiveClientSetup.BuilderclearModel()Clears the value of model field. abstract LiveClientSetup.BuildergenerationConfig(GenerationConfig generationConfig)Setter for generationConfig. LiveClientSetup.BuildergenerationConfig(GenerationConfig.Builder generationConfigBuilder)Setter for generationConfig builder. LiveClientSetup.BuilderclearGenerationConfig()Clears the value of generationConfig field. abstract LiveClientSetup.BuildersystemInstruction(Content systemInstruction)Setter for systemInstruction. LiveClientSetup.BuildersystemInstruction(Content.Builder systemInstructionBuilder)Setter for systemInstruction builder. LiveClientSetup.BuilderclearSystemInstruction()Clears the value of systemInstruction field. abstract LiveClientSetup.Buildertools(List<Tool> tools)Setter for tools. LiveClientSetup.Buildertools(Array<Tool> tools)Setter for tools. LiveClientSetup.Buildertools(Array<Tool.Builder> toolsBuilders)Setter for tools builder. LiveClientSetup.BuilderclearTools()Clears the value of tools field. abstract LiveClientSetup.BuilderrealtimeInputConfig(RealtimeInputConfig realtimeInputConfig)Setter for realtimeInputConfig. LiveClientSetup.BuilderrealtimeInputConfig(RealtimeInputConfig.Builder realtimeInputConfigBuilder)Setter for realtimeInputConfig builder. LiveClientSetup.BuilderclearRealtimeInputConfig()Clears the value of realtimeInputConfig field. abstract LiveClientSetup.BuildersessionResumption(SessionResumptionConfig sessionResumption)Setter for sessionResumption. LiveClientSetup.BuildersessionResumption(SessionResumptionConfig.Builder sessionResumptionBuilder)Setter for sessionResumption builder. LiveClientSetup.BuilderclearSessionResumption()Clears the value of sessionResumption field. abstract LiveClientSetup.BuildercontextWindowCompression(ContextWindowCompressionConfig contextWindowCompression)Setter for contextWindowCompression. LiveClientSetup.BuildercontextWindowCompression(ContextWindowCompressionConfig.Builder contextWindowCompressionBuilder)Setter for contextWindowCompression builder. LiveClientSetup.BuilderclearContextWindowCompression()Clears the value of contextWindowCompression field. abstract LiveClientSetup.BuilderinputAudioTranscription(AudioTranscriptionConfig inputAudioTranscription)Setter for inputAudioTranscription. LiveClientSetup.BuilderinputAudioTranscription(AudioTranscriptionConfig.Builder inputAudioTranscriptionBuilder)Setter for inputAudioTranscription builder. LiveClientSetup.BuilderclearInputAudioTranscription()Clears the value of inputAudioTranscription field. abstract LiveClientSetup.BuilderoutputAudioTranscription(AudioTranscriptionConfig outputAudioTranscription)Setter for outputAudioTranscription. LiveClientSetup.BuilderoutputAudioTranscription(AudioTranscriptionConfig.Builder outputAudioTranscriptionBuilder)Setter for outputAudioTranscription builder. LiveClientSetup.BuilderclearOutputAudioTranscription()Clears the value of outputAudioTranscription field. abstract LiveClientSetup.Builderproactivity(ProactivityConfig proactivity)Setter for proactivity. LiveClientSetup.Builderproactivity(ProactivityConfig.Builder proactivityBuilder)Setter for proactivity builder. LiveClientSetup.BuilderclearProactivity()Clears the value of proactivity field. abstract LiveClientSetup.BuilderexplicitVadSignal(boolean explicitVadSignal)Setter for explicitVadSignal. LiveClientSetup.BuilderclearExplicitVadSignal()Clears the value of explicitVadSignal field. abstract LiveClientSetup.BuilderavatarConfig(AvatarConfig avatarConfig)Setter for avatarConfig. LiveClientSetup.BuilderavatarConfig(AvatarConfig.Builder avatarConfigBuilder)Setter for avatarConfig builder. LiveClientSetup.BuilderclearAvatarConfig()Clears the value of avatarConfig field. abstract LiveClientSetup.BuildersafetySettings(List<SafetySetting> safetySettings)Setter for safetySettings. LiveClientSetup.BuildersafetySettings(Array<SafetySetting> safetySettings)Setter for safetySettings. LiveClientSetup.BuildersafetySettings(Array<SafetySetting.Builder> safetySettingsBuilders)Setter for safetySettings builder. LiveClientSetup.BuilderclearSafetySettings()Clears the value of safetySettings field. abstract LiveClientSetupbuild()-
-
Method Detail
-
model
abstract LiveClientSetup.Builder model(String model)
Setter for model.
model: The fully qualified name of the publisher model or tuned model endpoint to use.
-
clearModel
@CanIgnoreReturnValue() LiveClientSetup.Builder clearModel()
Clears the value of model field.
-
generationConfig
abstract LiveClientSetup.Builder generationConfig(GenerationConfig generationConfig)
Setter for generationConfig.
generationConfig: The generation configuration for the session. Note: only a subset of fields are supported.
-
generationConfig
@CanIgnoreReturnValue() LiveClientSetup.Builder generationConfig(GenerationConfig.Builder generationConfigBuilder)
Setter for generationConfig builder.
generationConfig: The generation configuration for the session. Note: only a subset of fields are supported.
-
clearGenerationConfig
@CanIgnoreReturnValue() LiveClientSetup.Builder clearGenerationConfig()
Clears the value of generationConfig field.
-
systemInstruction
abstract LiveClientSetup.Builder systemInstruction(Content systemInstruction)
Setter for systemInstruction.
systemInstruction: The user provided system instructions for the model. Note: only text should be used in parts and content in each part will be in a separate paragraph.
-
systemInstruction
@CanIgnoreReturnValue() LiveClientSetup.Builder systemInstruction(Content.Builder systemInstructionBuilder)
Setter for systemInstruction builder.
systemInstruction: The user provided system instructions for the model. Note: only text should be used in parts and content in each part will be in a separate paragraph.
-
clearSystemInstruction
@CanIgnoreReturnValue() LiveClientSetup.Builder clearSystemInstruction()
Clears the value of systemInstruction field.
-
tools
abstract LiveClientSetup.Builder tools(List<Tool> tools)
Setter for tools.
tools: A list of `Tools` the model may use to generate the next response.
A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.
-
tools
@CanIgnoreReturnValue() LiveClientSetup.Builder tools(Array<Tool> tools)
Setter for tools.
tools: A list of `Tools` the model may use to generate the next response.
A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.
-
tools
@CanIgnoreReturnValue() LiveClientSetup.Builder tools(Array<Tool.Builder> toolsBuilders)
Setter for tools builder.
tools: A list of `Tools` the model may use to generate the next response.
A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.
-
clearTools
@CanIgnoreReturnValue() LiveClientSetup.Builder clearTools()
Clears the value of tools field.
-
realtimeInputConfig
abstract LiveClientSetup.Builder realtimeInputConfig(RealtimeInputConfig realtimeInputConfig)
Setter for realtimeInputConfig.
realtimeInputConfig: Configures the realtime input behavior in BidiGenerateContent.
-
realtimeInputConfig
@CanIgnoreReturnValue() LiveClientSetup.Builder realtimeInputConfig(RealtimeInputConfig.Builder realtimeInputConfigBuilder)
Setter for realtimeInputConfig builder.
realtimeInputConfig: Configures the realtime input behavior in BidiGenerateContent.
-
clearRealtimeInputConfig
@CanIgnoreReturnValue() LiveClientSetup.Builder clearRealtimeInputConfig()
Clears the value of realtimeInputConfig field.
-
sessionResumption
abstract LiveClientSetup.Builder sessionResumption(SessionResumptionConfig sessionResumption)
Setter for sessionResumption.
sessionResumption: Configures session resumption mechanism.
If included server will send SessionResumptionUpdate messages.
-
sessionResumption
@CanIgnoreReturnValue() LiveClientSetup.Builder sessionResumption(SessionResumptionConfig.Builder sessionResumptionBuilder)
Setter for sessionResumption builder.
sessionResumption: Configures session resumption mechanism.
If included server will send SessionResumptionUpdate messages.
-
clearSessionResumption
@CanIgnoreReturnValue() LiveClientSetup.Builder clearSessionResumption()
Clears the value of sessionResumption field.
-
contextWindowCompression
abstract LiveClientSetup.Builder contextWindowCompression(ContextWindowCompressionConfig contextWindowCompression)
Setter for contextWindowCompression.
contextWindowCompression: Configures context window compression mechanism.
If included, server will compress context window to fit into given length.
-
contextWindowCompression
@CanIgnoreReturnValue() LiveClientSetup.Builder contextWindowCompression(ContextWindowCompressionConfig.Builder contextWindowCompressionBuilder)
Setter for contextWindowCompression builder.
contextWindowCompression: Configures context window compression mechanism.
If included, server will compress context window to fit into given length.
-
clearContextWindowCompression
@CanIgnoreReturnValue() LiveClientSetup.Builder clearContextWindowCompression()
Clears the value of contextWindowCompression field.
-
inputAudioTranscription
abstract LiveClientSetup.Builder inputAudioTranscription(AudioTranscriptionConfig inputAudioTranscription)
Setter for inputAudioTranscription.
inputAudioTranscription: The transcription of the input aligns with the input audio language.
-
inputAudioTranscription
@CanIgnoreReturnValue() LiveClientSetup.Builder inputAudioTranscription(AudioTranscriptionConfig.Builder inputAudioTranscriptionBuilder)
Setter for inputAudioTranscription builder.
inputAudioTranscription: The transcription of the input aligns with the input audio language.
-
clearInputAudioTranscription
@CanIgnoreReturnValue() LiveClientSetup.Builder clearInputAudioTranscription()
Clears the value of inputAudioTranscription field.
-
outputAudioTranscription
abstract LiveClientSetup.Builder outputAudioTranscription(AudioTranscriptionConfig outputAudioTranscription)
Setter for outputAudioTranscription.
outputAudioTranscription: The transcription of the output aligns with the language code specified for the output audio.
-
outputAudioTranscription
@CanIgnoreReturnValue() LiveClientSetup.Builder outputAudioTranscription(AudioTranscriptionConfig.Builder outputAudioTranscriptionBuilder)
Setter for outputAudioTranscription builder.
outputAudioTranscription: The transcription of the output aligns with the language code specified for the output audio.
-
clearOutputAudioTranscription
@CanIgnoreReturnValue() LiveClientSetup.Builder clearOutputAudioTranscription()
Clears the value of outputAudioTranscription field.
-
proactivity
abstract LiveClientSetup.Builder proactivity(ProactivityConfig proactivity)
Setter for proactivity.
proactivity: Configures the proactivity of the model. This allows the model to respond proactively to the input and to ignore irrelevant input.
-
proactivity
@CanIgnoreReturnValue() LiveClientSetup.Builder proactivity(ProactivityConfig.Builder proactivityBuilder)
Setter for proactivity builder.
proactivity: Configures the proactivity of the model. This allows the model to respond proactively to the input and to ignore irrelevant input.
-
clearProactivity
@CanIgnoreReturnValue() LiveClientSetup.Builder clearProactivity()
Clears the value of proactivity field.
-
explicitVadSignal
abstract LiveClientSetup.Builder explicitVadSignal(boolean explicitVadSignal)
Setter for explicitVadSignal.
explicitVadSignal: Configures the explicit VAD signal. If enabled, the client will send vad_signal to indicate the start and end of speech. This allows the server to process the audio more efficiently.
-
clearExplicitVadSignal
@CanIgnoreReturnValue() LiveClientSetup.Builder clearExplicitVadSignal()
Clears the value of explicitVadSignal field.
-
avatarConfig
abstract LiveClientSetup.Builder avatarConfig(AvatarConfig avatarConfig)
Setter for avatarConfig.
avatarConfig: Configures the avatar model behavior.
-
avatarConfig
@CanIgnoreReturnValue() LiveClientSetup.Builder avatarConfig(AvatarConfig.Builder avatarConfigBuilder)
Setter for avatarConfig builder.
avatarConfig: Configures the avatar model behavior.
-
clearAvatarConfig
@CanIgnoreReturnValue() LiveClientSetup.Builder clearAvatarConfig()
Clears the value of avatarConfig field.
-
safetySettings
abstract LiveClientSetup.Builder safetySettings(List<SafetySetting> safetySettings)
Setter for safetySettings.
safetySettings: Safety settings in the request to block unsafe content in the response.
-
safetySettings
@CanIgnoreReturnValue() LiveClientSetup.Builder safetySettings(Array<SafetySetting> safetySettings)
Setter for safetySettings.
safetySettings: Safety settings in the request to block unsafe content in the response.
-
safetySettings
@CanIgnoreReturnValue() LiveClientSetup.Builder safetySettings(Array<SafetySetting.Builder> safetySettingsBuilders)
Setter for safetySettings builder.
safetySettings: Safety settings in the request to block unsafe content in the response.
-
clearSafetySettings
@CanIgnoreReturnValue() LiveClientSetup.Builder clearSafetySettings()
Clears the value of safetySettings field.
-
build
abstract LiveClientSetup build()
-
-
-
-