Class RankServiceSettings.Builder (0.42.0)

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

Builder for RankServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > RankServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(RankServiceSettings settings)

protected Builder(RankServiceSettings settings)
Parameter
Name Description
settings RankServiceSettings

Builder(RankServiceStubSettings.Builder stubSettings)

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

Methods

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

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

build()

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

getStubSettingsBuilder()

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

rankSettings()

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

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

Returns
Type Description
Builder<RankRequest,RankResponse>