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

Builder(RecommendationServiceSettings settings)

protected Builder(RecommendationServiceSettings settings)
Parameter
NameDescription
settingsRecommendationServiceSettings

Builder(RecommendationServiceStubSettings.Builder stubSettings)

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

build()

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

getStubSettingsBuilder()

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

recommendSettings()

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

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

Returns
TypeDescription
Builder<RecommendRequest,RecommendResponse>