Class SpeechTranslationServiceSettings.Builder (0.21.0)

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

Builder for SpeechTranslationServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > SpeechTranslationServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(SpeechTranslationServiceSettings settings)

protected Builder(SpeechTranslationServiceSettings settings)
Parameter
NameDescription
settingsSpeechTranslationServiceSettings

Builder(SpeechTranslationServiceStubSettings.Builder stubSettings)

protected Builder(SpeechTranslationServiceStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsSpeechTranslationServiceStubSettings.Builder

Methods

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

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

build()

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

getStubSettingsBuilder()

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

streamingTranslateSpeechSettings()

public StreamingCallSettings.Builder<StreamingTranslateSpeechRequest,StreamingTranslateSpeechResponse> streamingTranslateSpeechSettings()

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

Returns
TypeDescription
Builder<StreamingTranslateSpeechRequest,StreamingTranslateSpeechResponse>