Class QuotaControllerSettings.Builder (1.47.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
Name Description
clientContext ClientContext

Builder(QuotaControllerSettings settings)

protected Builder(QuotaControllerSettings settings)
Parameter
Name Description
settings QuotaControllerSettings

Builder(QuotaControllerStubSettings.Builder stubSettings)

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

Methods

allocateQuotaSettings()

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

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

Returns
Type Description
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
Name Description
settingsUpdater ApiFunction<Builder<?,?>,java.lang.Void>
Returns
Type Description
QuotaControllerSettings.Builder

build()

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

getStubSettingsBuilder()

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