Class SqlTranslationServiceSettings.Builder (0.27.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
NameDescription
clientContextClientContext

Builder(SqlTranslationServiceSettings settings)

protected Builder(SqlTranslationServiceSettings settings)
Parameter
NameDescription
settingsSqlTranslationServiceSettings

Builder(SqlTranslationServiceStubSettings.Builder stubSettings)

protected Builder(SqlTranslationServiceStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsSqlTranslationServiceStubSettings.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
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,java.lang.Void>
Returns
TypeDescription
SqlTranslationServiceSettings.Builder

build()

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

getStubSettingsBuilder()

public SqlTranslationServiceStubSettings.Builder getStubSettingsBuilder()
Returns
TypeDescription
SqlTranslationServiceStubSettings.Builder

translateQuerySettings()

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

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

Returns
TypeDescription
Builder<TranslateQueryRequest,TranslateQueryResponse>