Class CloudQuotasSettings.Builder (0.12.0)

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

Builder for CloudQuotasSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > CloudQuotasSettings.Builder

Constructors

Builder()

protected Builder()

Builder(CloudQuotasSettings settings)

protected Builder(CloudQuotasSettings settings)
Parameter
Name Description
settings CloudQuotasSettings

Builder(CloudQuotasStubSettings.Builder stubSettings)

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

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Methods

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

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

build()

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

createQuotaPreferenceSettings()

public UnaryCallSettings.Builder<CreateQuotaPreferenceRequest,QuotaPreference> createQuotaPreferenceSettings()

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

Returns
Type Description
Builder<CreateQuotaPreferenceRequest,QuotaPreference>

getQuotaInfoSettings()

public UnaryCallSettings.Builder<GetQuotaInfoRequest,QuotaInfo> getQuotaInfoSettings()

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

Returns
Type Description
Builder<GetQuotaInfoRequest,QuotaInfo>

getQuotaPreferenceSettings()

public UnaryCallSettings.Builder<GetQuotaPreferenceRequest,QuotaPreference> getQuotaPreferenceSettings()

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

Returns
Type Description
Builder<GetQuotaPreferenceRequest,QuotaPreference>

getStubSettingsBuilder()

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

listQuotaInfosSettings()

public PagedCallSettings.Builder<ListQuotaInfosRequest,ListQuotaInfosResponse,CloudQuotasClient.ListQuotaInfosPagedResponse> listQuotaInfosSettings()

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

Returns
Type Description
Builder<ListQuotaInfosRequest,ListQuotaInfosResponse,ListQuotaInfosPagedResponse>

listQuotaPreferencesSettings()

public PagedCallSettings.Builder<ListQuotaPreferencesRequest,ListQuotaPreferencesResponse,CloudQuotasClient.ListQuotaPreferencesPagedResponse> listQuotaPreferencesSettings()

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

Returns
Type Description
Builder<ListQuotaPreferencesRequest,ListQuotaPreferencesResponse,ListQuotaPreferencesPagedResponse>

updateQuotaPreferenceSettings()

public UnaryCallSettings.Builder<UpdateQuotaPreferenceRequest,QuotaPreference> updateQuotaPreferenceSettings()

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

Returns
Type Description
Builder<UpdateQuotaPreferenceRequest,QuotaPreference>