Class TextToSpeechSettings.Builder (2.38.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(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(TextToSpeechSettings settings)

protected Builder(TextToSpeechSettings settings)
Parameter
NameDescription
settingsTextToSpeechSettings

Builder(TextToSpeechStubSettings.Builder stubSettings)

protected Builder(TextToSpeechStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsTextToSpeechStubSettings.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
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,java.lang.Void>
Returns
TypeDescription
TextToSpeechSettings.Builder

build()

public TextToSpeechSettings build()
Returns
TypeDescription
TextToSpeechSettings
Overrides
Exceptions
TypeDescription
IOException

getStubSettingsBuilder()

public TextToSpeechStubSettings.Builder getStubSettingsBuilder()
Returns
TypeDescription
TextToSpeechStubSettings.Builder

listVoicesSettings()

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

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

Returns
TypeDescription
Builder<ListVoicesRequest,ListVoicesResponse>

synthesizeSpeechSettings()

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

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

Returns
TypeDescription
Builder<SynthesizeSpeechRequest,SynthesizeSpeechResponse>