Class ServiceUsageSettings.Builder (2.18.0)

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

Builder for ServiceUsageSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > ServiceUsageSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(ServiceUsageSettings settings)

protected Builder(ServiceUsageSettings settings)
Parameter
NameDescription
settingsServiceUsageSettings

Builder(ServiceUsageStubSettings.Builder stubSettings)

protected Builder(ServiceUsageStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsServiceUsageStubSettings.Builder

Methods

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

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

batchEnableServicesOperationSettings() (deprecated)

public OperationCallSettings.Builder<BatchEnableServicesRequest,Empty,OperationMetadata> batchEnableServicesOperationSettings()

Deprecated. This method is deprecated and will be removed in the next major version update.

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

batchEnableServicesSettings() (deprecated)

public UnaryCallSettings.Builder<BatchEnableServicesRequest,Operation> batchEnableServicesSettings()

Deprecated. This method is deprecated and will be removed in the next major version update.

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

build()

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

createAdminOverrideOperationSettings()

public OperationCallSettings.Builder<CreateAdminOverrideRequest,QuotaOverride,OperationMetadata> createAdminOverrideOperationSettings()

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

createAdminOverrideSettings()

public UnaryCallSettings.Builder<CreateAdminOverrideRequest,Operation> createAdminOverrideSettings()

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

createConsumerOverrideOperationSettings()

public OperationCallSettings.Builder<CreateConsumerOverrideRequest,QuotaOverride,OperationMetadata> createConsumerOverrideOperationSettings()

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

createConsumerOverrideSettings()

public UnaryCallSettings.Builder<CreateConsumerOverrideRequest,Operation> createConsumerOverrideSettings()

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

deleteAdminOverrideOperationSettings()

public OperationCallSettings.Builder<DeleteAdminOverrideRequest,Empty,OperationMetadata> deleteAdminOverrideOperationSettings()

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

deleteAdminOverrideSettings()

public UnaryCallSettings.Builder<DeleteAdminOverrideRequest,Operation> deleteAdminOverrideSettings()

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

deleteConsumerOverrideOperationSettings()

public OperationCallSettings.Builder<DeleteConsumerOverrideRequest,Empty,OperationMetadata> deleteConsumerOverrideOperationSettings()

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

deleteConsumerOverrideSettings()

public UnaryCallSettings.Builder<DeleteConsumerOverrideRequest,Operation> deleteConsumerOverrideSettings()

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

disableServiceOperationSettings() (deprecated)

public OperationCallSettings.Builder<DisableServiceRequest,Empty,OperationMetadata> disableServiceOperationSettings()

Deprecated. This method is deprecated and will be removed in the next major version update.

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

disableServiceSettings() (deprecated)

public UnaryCallSettings.Builder<DisableServiceRequest,Operation> disableServiceSettings()

Deprecated. This method is deprecated and will be removed in the next major version update.

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

Returns
TypeDescription
Builder<DisableServiceRequest,Operation>

enableServiceOperationSettings() (deprecated)

public OperationCallSettings.Builder<EnableServiceRequest,Empty,OperationMetadata> enableServiceOperationSettings()

Deprecated. This method is deprecated and will be removed in the next major version update.

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

enableServiceSettings() (deprecated)

public UnaryCallSettings.Builder<EnableServiceRequest,Operation> enableServiceSettings()

Deprecated. This method is deprecated and will be removed in the next major version update.

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

Returns
TypeDescription
Builder<EnableServiceRequest,Operation>

generateServiceIdentityOperationSettings()

public OperationCallSettings.Builder<GenerateServiceIdentityRequest,ServiceIdentity,Empty> generateServiceIdentityOperationSettings()

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

generateServiceIdentitySettings()

public UnaryCallSettings.Builder<GenerateServiceIdentityRequest,Operation> generateServiceIdentitySettings()

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

getConsumerQuotaLimitSettings()

public UnaryCallSettings.Builder<GetConsumerQuotaLimitRequest,ConsumerQuotaLimit> getConsumerQuotaLimitSettings()

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

getConsumerQuotaMetricSettings()

public UnaryCallSettings.Builder<GetConsumerQuotaMetricRequest,ConsumerQuotaMetric> getConsumerQuotaMetricSettings()

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

getServiceSettings() (deprecated)

public UnaryCallSettings.Builder<GetServiceRequest,Service> getServiceSettings()

Deprecated. This method is deprecated and will be removed in the next major version update.

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

Returns
TypeDescription
Builder<GetServiceRequest,Service>

getStubSettingsBuilder()

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

importAdminOverridesOperationSettings()

public OperationCallSettings.Builder<ImportAdminOverridesRequest,ImportAdminOverridesResponse,ImportAdminOverridesMetadata> importAdminOverridesOperationSettings()

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

importAdminOverridesSettings()

public UnaryCallSettings.Builder<ImportAdminOverridesRequest,Operation> importAdminOverridesSettings()

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

importConsumerOverridesOperationSettings()

public OperationCallSettings.Builder<ImportConsumerOverridesRequest,ImportConsumerOverridesResponse,ImportConsumerOverridesMetadata> importConsumerOverridesOperationSettings()

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

importConsumerOverridesSettings()

public UnaryCallSettings.Builder<ImportConsumerOverridesRequest,Operation> importConsumerOverridesSettings()

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

listAdminOverridesSettings()

public PagedCallSettings.Builder<ListAdminOverridesRequest,ListAdminOverridesResponse,ServiceUsageClient.ListAdminOverridesPagedResponse> listAdminOverridesSettings()

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

listConsumerOverridesSettings()

public PagedCallSettings.Builder<ListConsumerOverridesRequest,ListConsumerOverridesResponse,ServiceUsageClient.ListConsumerOverridesPagedResponse> listConsumerOverridesSettings()

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

listConsumerQuotaMetricsSettings()

public PagedCallSettings.Builder<ListConsumerQuotaMetricsRequest,ListConsumerQuotaMetricsResponse,ServiceUsageClient.ListConsumerQuotaMetricsPagedResponse> listConsumerQuotaMetricsSettings()

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

listServicesSettings() (deprecated)

public PagedCallSettings.Builder<ListServicesRequest,ListServicesResponse,ServiceUsageClient.ListServicesPagedResponse> listServicesSettings()

Deprecated. This method is deprecated and will be removed in the next major version update.

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

updateAdminOverrideOperationSettings()

public OperationCallSettings.Builder<UpdateAdminOverrideRequest,QuotaOverride,OperationMetadata> updateAdminOverrideOperationSettings()

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

updateAdminOverrideSettings()

public UnaryCallSettings.Builder<UpdateAdminOverrideRequest,Operation> updateAdminOverrideSettings()

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

updateConsumerOverrideOperationSettings()

public OperationCallSettings.Builder<UpdateConsumerOverrideRequest,QuotaOverride,OperationMetadata> updateConsumerOverrideOperationSettings()

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

updateConsumerOverrideSettings()

public UnaryCallSettings.Builder<UpdateConsumerOverrideRequest,Operation> updateConsumerOverrideSettings()

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