Class TextToSpeechStubSettings.Builder (2.3.0)

public static class TextToSpeechStubSettings.Builder extends StubSettings.Builder<TextToSpeechStubSettings,TextToSpeechStubSettings.Builder>

Builder for TextToSpeechStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > TextToSpeechStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(TextToSpeechStubSettings settings)

protected Builder(TextToSpeechStubSettings settings)
Parameter
NameDescription
settingsTextToSpeechStubSettings

Methods

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

public TextToSpeechStubSettings.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
TextToSpeechStubSettings.Builder

build()

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

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>

unaryMethodSettingsBuilders()

public ImmutableList<UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
Returns
TypeDescription
com.google.common.collect.ImmutableList<Builder<?,?>>