Class PromotionsServiceSettings.Builder (0.10.0)

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

Builder for PromotionsServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > PromotionsServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(PromotionsServiceSettings settings)

protected Builder(PromotionsServiceSettings settings)
Parameter
Name Description
settings PromotionsServiceSettings

Builder(PromotionsServiceStubSettings.Builder stubSettings)

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

Methods

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

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

build()

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

getPromotionSettings()

public UnaryCallSettings.Builder<GetPromotionRequest,Promotion> getPromotionSettings()

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

Returns
Type Description
Builder<GetPromotionRequest,Promotion>

getStubSettingsBuilder()

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

insertPromotionSettings()

public UnaryCallSettings.Builder<InsertPromotionRequest,Promotion> insertPromotionSettings()

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

Returns
Type Description
Builder<InsertPromotionRequest,Promotion>

listPromotionsSettings()

public PagedCallSettings.Builder<ListPromotionsRequest,ListPromotionsResponse,PromotionsServiceClient.ListPromotionsPagedResponse> listPromotionsSettings()

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

Returns
Type Description
Builder<ListPromotionsRequest,ListPromotionsResponse,ListPromotionsPagedResponse>