public static class TextToSpeechSettings.Builder extends ClientSettings.Builder<TextToSpeechSettings,TextToSpeechSettings.Builder>
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
protected |
Builder(ClientContext clientContext) |
protected |
Builder(TextToSpeechSettings settings) |
protected |
Builder(TextToSpeechStubSettings.Builder stubSettings) |
Modifier and Type | Method and Description |
---|---|
TextToSpeechSettings.Builder |
applyToAllUnaryMethods(com.google.api.core.ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)
Applies the given settings updater function to all of the unary API methods in this service.
|
TextToSpeechSettings |
build() |
TextToSpeechStubSettings.Builder |
getStubSettingsBuilder() |
UnaryCallSettings.Builder<com.google.cloud.texttospeech.v1.ListVoicesRequest,com.google.cloud.texttospeech.v1.ListVoicesResponse> |
listVoicesSettings()
Returns the builder for the settings used for calls to listVoices.
|
UnaryCallSettings.Builder<com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest,com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse> |
synthesizeSpeechSettings()
Returns the builder for the settings used for calls to synthesizeSpeech.
|
applyToAllUnaryMethods, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, self, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setHeaderProvider, setInternalHeaderProvider, setTransportChannelProvider, setWatchdogCheckInterval, setWatchdogProvider, toString
protected Builder() throws IOException
IOException
protected Builder(ClientContext clientContext)
protected Builder(TextToSpeechSettings settings)
protected Builder(TextToSpeechStubSettings.Builder stubSettings)
public TextToSpeechStubSettings.Builder getStubSettingsBuilder()
public TextToSpeechSettings.Builder applyToAllUnaryMethods(com.google.api.core.ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater) throws Exception
Note: This method does not support applying settings to streaming methods.
Exception
public UnaryCallSettings.Builder<com.google.cloud.texttospeech.v1.ListVoicesRequest,com.google.cloud.texttospeech.v1.ListVoicesResponse> listVoicesSettings()
public UnaryCallSettings.Builder<com.google.cloud.texttospeech.v1.SynthesizeSpeechRequest,com.google.cloud.texttospeech.v1.SynthesizeSpeechResponse> synthesizeSpeechSettings()
public TextToSpeechSettings build() throws IOException
build
in class ClientSettings.Builder<TextToSpeechSettings,TextToSpeechSettings.Builder>
IOException
Copyright © 2019 Google LLC. All rights reserved.