Class QuotaServiceSettings.Builder (0.4.0)

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

Builder for QuotaServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > QuotaServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(QuotaServiceSettings settings)

protected Builder(QuotaServiceSettings settings)
Parameter
NameDescription
settingsQuotaServiceSettings

Builder(QuotaServiceStubSettings.Builder stubSettings)

protected Builder(QuotaServiceStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsQuotaServiceStubSettings.Builder

Methods

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

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

build()

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

getStubSettingsBuilder()

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

listQuotaGroupsSettings()

public PagedCallSettings.Builder<ListQuotaGroupsRequest,ListQuotaGroupsResponse,QuotaServiceClient.ListQuotaGroupsPagedResponse> listQuotaGroupsSettings()

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

Returns
TypeDescription
Builder<ListQuotaGroupsRequest,ListQuotaGroupsResponse,ListQuotaGroupsPagedResponse>