Class AdPartnerServiceSettings.Builder (0.10.0)

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

Builder for AdPartnerServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > AdPartnerServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(AdPartnerServiceSettings settings)

protected Builder(AdPartnerServiceSettings settings)
Parameter
Name Description
settings AdPartnerServiceSettings

Builder(AdPartnerServiceStubSettings.Builder stubSettings)

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

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Methods

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

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

build()

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

getAdPartnerSettings()

public UnaryCallSettings.Builder<GetAdPartnerRequest,AdPartner> getAdPartnerSettings()

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

Returns
Type Description
Builder<GetAdPartnerRequest,AdPartner>

getStubSettingsBuilder()

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

listAdPartnersSettings()

public PagedCallSettings.Builder<ListAdPartnersRequest,ListAdPartnersResponse,AdPartnerServiceClient.ListAdPartnersPagedResponse> listAdPartnersSettings()

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

Returns
Type Description
Builder<ListAdPartnersRequest,ListAdPartnersResponse,ListAdPartnersPagedResponse>