Class CloudQuotasSettings.Builder (0.3.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
NameDescription
settingsCloudQuotasSettings

Builder(CloudQuotasStubSettings.Builder stubSettings)

protected Builder(CloudQuotasStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsCloudQuotasStubSettings.Builder

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

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
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,java.lang.Void>
Returns
TypeDescription
CloudQuotasSettings.Builder

build()

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

createQuotaPreferenceSettings()

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

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

Returns
TypeDescription
Builder<CreateQuotaPreferenceRequest,QuotaPreference>

getQuotaInfoSettings()

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

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

Returns
TypeDescription
Builder<GetQuotaInfoRequest,QuotaInfo>

getQuotaPreferenceSettings()

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

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

Returns
TypeDescription
Builder<GetQuotaPreferenceRequest,QuotaPreference>

getStubSettingsBuilder()

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

listQuotaInfosSettings()

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

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

Returns
TypeDescription
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
TypeDescription
Builder<ListQuotaPreferencesRequest,ListQuotaPreferencesResponse,ListQuotaPreferencesPagedResponse>

updateQuotaPreferenceSettings()

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

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

Returns
TypeDescription
Builder<UpdateQuotaPreferenceRequest,QuotaPreference>