Class TextToSpeechSettings.Builder (2.96.0)

public static class TextToSpeechSettings.Builder extends ClientSettings.Builder<TextToSpeechSettings,TextToSpeechSettings.Builder>

Builder for TextToSpeechSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > TextToSpeechSettings.Builder

Constructors

Builder()

protected Builder()

Builder(@Nullable ClientContext clientContext)

protected Builder(@Nullable ClientContext clientContext)
Parameter
Name Description
clientContext @org.jspecify.annotations.Nullable com.google.api.gax.rpc.ClientContext

Builder(TextToSpeechSettings settings)

protected Builder(TextToSpeechSettings settings)
Parameter
Name Description
settings TextToSpeechSettings

Builder(TextToSpeechStubSettings.Builder stubSettings)

protected Builder(TextToSpeechStubSettings.Builder stubSettings)
Parameter
Name Description
stubSettings TextToSpeechStubSettings.Builder

Methods

applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

public TextToSpeechSettings.Builder applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

Applies the given settings updater function to all of the unary API methods in this service.

Note: This method does not support applying settings to streaming methods.

Parameter
Name Description
settingsUpdater ApiFunction<Builder<?,?>,java.lang.Void>
Returns
Type Description
TextToSpeechSettings.Builder

build()

public TextToSpeechSettings build()
Returns
Type Description
TextToSpeechSettings
Overrides
Exceptions
Type Description
IOException

getStubSettingsBuilder()

public TextToSpeechStubSettings.Builder getStubSettingsBuilder()
Returns
Type Description
TextToSpeechStubSettings.Builder

listVoicesSettings()

public UnaryCallSettings.Builder<ListVoicesRequest,ListVoicesResponse> listVoicesSettings()

Returns the builder for the settings used for calls to listVoices.

Returns
Type Description
Builder<ListVoicesRequest,ListVoicesResponse>

streamingSynthesizeSettings()

public StreamingCallSettings.Builder<StreamingSynthesizeRequest,StreamingSynthesizeResponse> streamingSynthesizeSettings()

Returns the builder for the settings used for calls to streamingSynthesize.

Returns
Type Description
Builder<StreamingSynthesizeRequest,StreamingSynthesizeResponse>

synthesizeSpeechSettings()

public UnaryCallSettings.Builder<SynthesizeSpeechRequest,SynthesizeSpeechResponse> synthesizeSpeechSettings()

Returns the builder for the settings used for calls to synthesizeSpeech.

Returns
Type Description
Builder<SynthesizeSpeechRequest,SynthesizeSpeechResponse>