Class SqlTranslationServiceStubSettings.Builder (0.32.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
NameDescription
clientContextClientContext

Builder(SqlTranslationServiceStubSettings settings)

protected Builder(SqlTranslationServiceStubSettings settings)
Parameter
NameDescription
settingsSqlTranslationServiceStubSettings

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

build()

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

translateQuerySettings()

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

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

Returns
TypeDescription
Builder<TranslateQueryRequest,TranslateQueryResponse>

unaryMethodSettingsBuilders()

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