Class SpeechTranslationServiceSettings.Builder (0.61.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
Name Description
clientContext ClientContext

Builder(SpeechTranslationServiceSettings settings)

protected Builder(SpeechTranslationServiceSettings settings)
Parameter
Name Description
settings SpeechTranslationServiceSettings

Builder(SpeechTranslationServiceStubSettings.Builder stubSettings)

protected Builder(SpeechTranslationServiceStubSettings.Builder stubSettings)
Parameter
Name Description
stubSettings SpeechTranslationServiceStubSettings.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
Name Description
settingsUpdater ApiFunction<Builder<?,?>,java.lang.Void>
Returns
Type Description
SpeechTranslationServiceSettings.Builder

build()

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

getStubSettingsBuilder()

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

streamingTranslateSpeechSettings()

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

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

Returns
Type Description
Builder<StreamingTranslateSpeechRequest,StreamingTranslateSpeechResponse>