Class SqlTranslationServiceStubSettings.Builder (0.58.0)

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

Builder for SqlTranslationServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > SqlTranslationServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(SqlTranslationServiceStubSettings settings)

protected Builder(SqlTranslationServiceStubSettings settings)
Parameter
Name Description
settings SqlTranslationServiceStubSettings

Methods

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

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

build()

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

translateQuerySettings()

public UnaryCallSettings.Builder<TranslateQueryRequest,TranslateQueryResponse> translateQuerySettings()

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

Returns
Type Description
Builder<TranslateQueryRequest,TranslateQueryResponse>

unaryMethodSettingsBuilders()

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