Class SqlTranslationServiceSettings.Builder (0.54.0)

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

Builder for SqlTranslationServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > SqlTranslationServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(SqlTranslationServiceSettings settings)

protected Builder(SqlTranslationServiceSettings settings)
Parameter
Name Description
settings SqlTranslationServiceSettings

Builder(SqlTranslationServiceStubSettings.Builder stubSettings)

protected Builder(SqlTranslationServiceStubSettings.Builder stubSettings)
Parameter
Name Description
stubSettings SqlTranslationServiceStubSettings.Builder

Methods

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

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

build()

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

getStubSettingsBuilder()

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

translateQuerySettings()

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

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

Returns
Type Description
Builder<TranslateQueryRequest,TranslateQueryResponse>