Class SpeechTranslationServiceStubSettings.Builder (0.46.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
NameDescription
clientContextClientContext

Builder(SpeechTranslationServiceStubSettings settings)

protected Builder(SpeechTranslationServiceStubSettings settings)
Parameter
NameDescription
settingsSpeechTranslationServiceStubSettings

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
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,java.lang.Void>
Returns
TypeDescription
SpeechTranslationServiceStubSettings.Builder

build()

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

getEndpoint()

public String getEndpoint()

Returns the endpoint set by the user or the the service's default endpoint.

Returns
TypeDescription
String
Overrides

streamingTranslateSpeechSettings()

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

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

Returns
TypeDescription
Builder<StreamingTranslateSpeechRequest,StreamingTranslateSpeechResponse>

unaryMethodSettingsBuilders()

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