Class PromotionsServiceStubSettings.Builder (0.4.0)

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

Builder for PromotionsServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > PromotionsServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(PromotionsServiceStubSettings settings)

protected Builder(PromotionsServiceStubSettings settings)
Parameter
Name Description
settings PromotionsServiceStubSettings

Methods

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

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

build()

public PromotionsServiceStubSettings build()
Returns
Type Description
PromotionsServiceStubSettings
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>

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>

unaryMethodSettingsBuilders()

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