Class SpeechTranslationServiceStubSettings.Builder (0.49.0)

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

Builder for SpeechTranslationServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > SpeechTranslationServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(SpeechTranslationServiceStubSettings settings)

protected Builder(SpeechTranslationServiceStubSettings settings)
Parameter
Name Description
settings SpeechTranslationServiceStubSettings

Methods

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

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

build()

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

streamingTranslateSpeechSettings()

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

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

Returns
Type Description
Builder<StreamingTranslateSpeechRequest,StreamingTranslateSpeechResponse>

unaryMethodSettingsBuilders()

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