Class RecommendationServiceSettings.Builder (0.39.0)

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

Builder for RecommendationServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > RecommendationServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(RecommendationServiceSettings settings)

protected Builder(RecommendationServiceSettings settings)
Parameter
Name Description
settings RecommendationServiceSettings

Builder(RecommendationServiceStubSettings.Builder stubSettings)

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

Methods

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

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

build()

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

getStubSettingsBuilder()

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

recommendSettings()

public UnaryCallSettings.Builder<RecommendRequest,RecommendResponse> recommendSettings()

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

Returns
Type Description
Builder<RecommendRequest,RecommendResponse>