Class AdUnitServiceSettings.Builder (0.4.0)

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

Builder for AdUnitServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > AdUnitServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(AdUnitServiceSettings settings)

protected Builder(AdUnitServiceSettings settings)
Parameter
Name Description
settings AdUnitServiceSettings

Builder(AdUnitServiceStubSettings.Builder stubSettings)

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

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Methods

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

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

build()

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

getAdUnitSettings()

public UnaryCallSettings.Builder<GetAdUnitRequest,AdUnit> getAdUnitSettings()

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

Returns
Type Description
Builder<GetAdUnitRequest,AdUnit>

getStubSettingsBuilder()

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

listAdUnitsSettings()

public PagedCallSettings.Builder<ListAdUnitsRequest,ListAdUnitsResponse,AdUnitServiceClient.ListAdUnitsPagedResponse> listAdUnitsSettings()

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

Returns
Type Description
Builder<ListAdUnitsRequest,ListAdUnitsResponse,ListAdUnitsPagedResponse>