Class QuotaControllerSettings.Builder (1.11.0)

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

Builder for QuotaControllerSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > QuotaControllerSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(QuotaControllerSettings settings)

protected Builder(QuotaControllerSettings settings)
Parameter
NameDescription
settingsQuotaControllerSettings

Builder(QuotaControllerStubSettings.Builder stubSettings)

protected Builder(QuotaControllerStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsQuotaControllerStubSettings.Builder

Methods

allocateQuotaSettings()

public UnaryCallSettings.Builder<AllocateQuotaRequest,AllocateQuotaResponse> allocateQuotaSettings()

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

Returns
TypeDescription
Builder<AllocateQuotaRequest,AllocateQuotaResponse>

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

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

build()

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

getStubSettingsBuilder()

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