Class RankServiceStubSettings.Builder (0.42.0)

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

Builder for RankServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > RankServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(RankServiceStubSettings settings)

protected Builder(RankServiceStubSettings settings)
Parameter
Name Description
settings RankServiceStubSettings

Methods

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

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

build()

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

rankSettings()

public UnaryCallSettings.Builder<RankRequest,RankResponse> rankSettings()

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

Returns
Type Description
Builder<RankRequest,RankResponse>

unaryMethodSettingsBuilders()

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