Class ServiceUsageSettings.Builder
- java.lang.Object
-
- com.google.api.gax.rpc.ClientSettings.Builder<ServiceUsageSettings,ServiceUsageSettings.Builder>
-
- com.google.api.serviceusage.v1beta1.ServiceUsageSettings.Builder
-
- Enclosing class:
- ServiceUsageSettings
public static class ServiceUsageSettings.Builder extends com.google.api.gax.rpc.ClientSettings.Builder<ServiceUsageSettings,ServiceUsageSettings.Builder>
Builder for ServiceUsageSettings.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
protected
Builder(com.google.api.gax.rpc.ClientContext clientContext)
protected
Builder(ServiceUsageSettings settings)
protected
Builder(ServiceUsageStubSettings.Builder stubSettings)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ServiceUsageSettings.Builder
applyToAllUnaryMethods(com.google.api.core.ApiFunction<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)
Applies the given settings updater function to all of the unary API methods in this service.com.google.api.gax.rpc.OperationCallSettings.Builder<BatchEnableServicesRequest,com.google.protobuf.Empty,OperationMetadata>
batchEnableServicesOperationSettings()
Deprecated.This method is deprecated and will be removed in the next major version update.com.google.api.gax.rpc.UnaryCallSettings.Builder<BatchEnableServicesRequest,com.google.longrunning.Operation>
batchEnableServicesSettings()
Deprecated.This method is deprecated and will be removed in the next major version update.ServiceUsageSettings
build()
com.google.api.gax.rpc.OperationCallSettings.Builder<CreateAdminOverrideRequest,QuotaOverride,OperationMetadata>
createAdminOverrideOperationSettings()
Returns the builder for the settings used for calls to createAdminOverride.com.google.api.gax.rpc.UnaryCallSettings.Builder<CreateAdminOverrideRequest,com.google.longrunning.Operation>
createAdminOverrideSettings()
Returns the builder for the settings used for calls to createAdminOverride.com.google.api.gax.rpc.OperationCallSettings.Builder<CreateConsumerOverrideRequest,QuotaOverride,OperationMetadata>
createConsumerOverrideOperationSettings()
Returns the builder for the settings used for calls to createConsumerOverride.com.google.api.gax.rpc.UnaryCallSettings.Builder<CreateConsumerOverrideRequest,com.google.longrunning.Operation>
createConsumerOverrideSettings()
Returns the builder for the settings used for calls to createConsumerOverride.com.google.api.gax.rpc.OperationCallSettings.Builder<DeleteAdminOverrideRequest,com.google.protobuf.Empty,OperationMetadata>
deleteAdminOverrideOperationSettings()
Returns the builder for the settings used for calls to deleteAdminOverride.com.google.api.gax.rpc.UnaryCallSettings.Builder<DeleteAdminOverrideRequest,com.google.longrunning.Operation>
deleteAdminOverrideSettings()
Returns the builder for the settings used for calls to deleteAdminOverride.com.google.api.gax.rpc.OperationCallSettings.Builder<DeleteConsumerOverrideRequest,com.google.protobuf.Empty,OperationMetadata>
deleteConsumerOverrideOperationSettings()
Returns the builder for the settings used for calls to deleteConsumerOverride.com.google.api.gax.rpc.UnaryCallSettings.Builder<DeleteConsumerOverrideRequest,com.google.longrunning.Operation>
deleteConsumerOverrideSettings()
Returns the builder for the settings used for calls to deleteConsumerOverride.com.google.api.gax.rpc.OperationCallSettings.Builder<DisableServiceRequest,com.google.protobuf.Empty,OperationMetadata>
disableServiceOperationSettings()
Deprecated.This method is deprecated and will be removed in the next major version update.com.google.api.gax.rpc.UnaryCallSettings.Builder<DisableServiceRequest,com.google.longrunning.Operation>
disableServiceSettings()
Deprecated.This method is deprecated and will be removed in the next major version update.com.google.api.gax.rpc.OperationCallSettings.Builder<EnableServiceRequest,com.google.protobuf.Empty,OperationMetadata>
enableServiceOperationSettings()
Deprecated.This method is deprecated and will be removed in the next major version update.com.google.api.gax.rpc.UnaryCallSettings.Builder<EnableServiceRequest,com.google.longrunning.Operation>
enableServiceSettings()
Deprecated.This method is deprecated and will be removed in the next major version update.com.google.api.gax.rpc.OperationCallSettings.Builder<GenerateServiceIdentityRequest,ServiceIdentity,com.google.protobuf.Empty>
generateServiceIdentityOperationSettings()
Returns the builder for the settings used for calls to generateServiceIdentity.com.google.api.gax.rpc.UnaryCallSettings.Builder<GenerateServiceIdentityRequest,com.google.longrunning.Operation>
generateServiceIdentitySettings()
Returns the builder for the settings used for calls to generateServiceIdentity.com.google.api.gax.rpc.UnaryCallSettings.Builder<GetConsumerQuotaLimitRequest,ConsumerQuotaLimit>
getConsumerQuotaLimitSettings()
Returns the builder for the settings used for calls to getConsumerQuotaLimit.com.google.api.gax.rpc.UnaryCallSettings.Builder<GetConsumerQuotaMetricRequest,ConsumerQuotaMetric>
getConsumerQuotaMetricSettings()
Returns the builder for the settings used for calls to getConsumerQuotaMetric.com.google.api.gax.rpc.UnaryCallSettings.Builder<GetServiceRequest,Service>
getServiceSettings()
Deprecated.This method is deprecated and will be removed in the next major version update.ServiceUsageStubSettings.Builder
getStubSettingsBuilder()
com.google.api.gax.rpc.OperationCallSettings.Builder<ImportAdminOverridesRequest,ImportAdminOverridesResponse,ImportAdminOverridesMetadata>
importAdminOverridesOperationSettings()
Returns the builder for the settings used for calls to importAdminOverrides.com.google.api.gax.rpc.UnaryCallSettings.Builder<ImportAdminOverridesRequest,com.google.longrunning.Operation>
importAdminOverridesSettings()
Returns the builder for the settings used for calls to importAdminOverrides.com.google.api.gax.rpc.OperationCallSettings.Builder<ImportConsumerOverridesRequest,ImportConsumerOverridesResponse,ImportConsumerOverridesMetadata>
importConsumerOverridesOperationSettings()
Returns the builder for the settings used for calls to importConsumerOverrides.com.google.api.gax.rpc.UnaryCallSettings.Builder<ImportConsumerOverridesRequest,com.google.longrunning.Operation>
importConsumerOverridesSettings()
Returns the builder for the settings used for calls to importConsumerOverrides.com.google.api.gax.rpc.PagedCallSettings.Builder<ListAdminOverridesRequest,ListAdminOverridesResponse,ServiceUsageClient.ListAdminOverridesPagedResponse>
listAdminOverridesSettings()
Returns the builder for the settings used for calls to listAdminOverrides.com.google.api.gax.rpc.PagedCallSettings.Builder<ListConsumerOverridesRequest,ListConsumerOverridesResponse,ServiceUsageClient.ListConsumerOverridesPagedResponse>
listConsumerOverridesSettings()
Returns the builder for the settings used for calls to listConsumerOverrides.com.google.api.gax.rpc.PagedCallSettings.Builder<ListConsumerQuotaMetricsRequest,ListConsumerQuotaMetricsResponse,ServiceUsageClient.ListConsumerQuotaMetricsPagedResponse>
listConsumerQuotaMetricsSettings()
Returns the builder for the settings used for calls to listConsumerQuotaMetrics.com.google.api.gax.rpc.PagedCallSettings.Builder<ListServicesRequest,ListServicesResponse,ServiceUsageClient.ListServicesPagedResponse>
listServicesSettings()
Deprecated.This method is deprecated and will be removed in the next major version update.com.google.api.gax.rpc.OperationCallSettings.Builder<UpdateAdminOverrideRequest,QuotaOverride,OperationMetadata>
updateAdminOverrideOperationSettings()
Returns the builder for the settings used for calls to updateAdminOverride.com.google.api.gax.rpc.UnaryCallSettings.Builder<UpdateAdminOverrideRequest,com.google.longrunning.Operation>
updateAdminOverrideSettings()
Returns the builder for the settings used for calls to updateAdminOverride.com.google.api.gax.rpc.OperationCallSettings.Builder<UpdateConsumerOverrideRequest,QuotaOverride,OperationMetadata>
updateConsumerOverrideOperationSettings()
Returns the builder for the settings used for calls to updateConsumerOverride.com.google.api.gax.rpc.UnaryCallSettings.Builder<UpdateConsumerOverrideRequest,com.google.longrunning.Operation>
updateConsumerOverrideSettings()
Returns the builder for the settings used for calls to updateConsumerOverride.-
Methods inherited from class com.google.api.gax.rpc.ClientSettings.Builder
applyToAllUnaryMethods, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getQuotaProjectId, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, self, setBackgroundExecutorProvider, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setGdchApiAudience, setHeaderProvider, setInternalHeaderProvider, setQuotaProjectId, setTransportChannelProvider, setWatchdogCheckInterval, setWatchdogProvider, toString
-
-
-
-
Constructor Detail
-
Builder
protected Builder() throws IOException
- Throws:
IOException
-
Builder
protected Builder(com.google.api.gax.rpc.ClientContext clientContext)
-
Builder
protected Builder(ServiceUsageSettings settings)
-
Builder
protected Builder(ServiceUsageStubSettings.Builder stubSettings)
-
-
Method Detail
-
getStubSettingsBuilder
public ServiceUsageStubSettings.Builder getStubSettingsBuilder()
-
applyToAllUnaryMethods
public ServiceUsageSettings.Builder applyToAllUnaryMethods(com.google.api.core.ApiFunction<com.google.api.gax.rpc.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.
-
enableServiceSettings
@Deprecated public com.google.api.gax.rpc.UnaryCallSettings.Builder<EnableServiceRequest,com.google.longrunning.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.
-
enableServiceOperationSettings
@Deprecated public com.google.api.gax.rpc.OperationCallSettings.Builder<EnableServiceRequest,com.google.protobuf.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.
-
disableServiceSettings
@Deprecated public com.google.api.gax.rpc.UnaryCallSettings.Builder<DisableServiceRequest,com.google.longrunning.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.
-
disableServiceOperationSettings
@Deprecated public com.google.api.gax.rpc.OperationCallSettings.Builder<DisableServiceRequest,com.google.protobuf.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.
-
getServiceSettings
@Deprecated public com.google.api.gax.rpc.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.
-
listServicesSettings
@Deprecated public com.google.api.gax.rpc.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.
-
batchEnableServicesSettings
@Deprecated public com.google.api.gax.rpc.UnaryCallSettings.Builder<BatchEnableServicesRequest,com.google.longrunning.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.
-
batchEnableServicesOperationSettings
@Deprecated public com.google.api.gax.rpc.OperationCallSettings.Builder<BatchEnableServicesRequest,com.google.protobuf.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.
-
listConsumerQuotaMetricsSettings
public com.google.api.gax.rpc.PagedCallSettings.Builder<ListConsumerQuotaMetricsRequest,ListConsumerQuotaMetricsResponse,ServiceUsageClient.ListConsumerQuotaMetricsPagedResponse> listConsumerQuotaMetricsSettings()
Returns the builder for the settings used for calls to listConsumerQuotaMetrics.
-
getConsumerQuotaMetricSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<GetConsumerQuotaMetricRequest,ConsumerQuotaMetric> getConsumerQuotaMetricSettings()
Returns the builder for the settings used for calls to getConsumerQuotaMetric.
-
getConsumerQuotaLimitSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<GetConsumerQuotaLimitRequest,ConsumerQuotaLimit> getConsumerQuotaLimitSettings()
Returns the builder for the settings used for calls to getConsumerQuotaLimit.
-
createAdminOverrideSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<CreateAdminOverrideRequest,com.google.longrunning.Operation> createAdminOverrideSettings()
Returns the builder for the settings used for calls to createAdminOverride.
-
createAdminOverrideOperationSettings
public com.google.api.gax.rpc.OperationCallSettings.Builder<CreateAdminOverrideRequest,QuotaOverride,OperationMetadata> createAdminOverrideOperationSettings()
Returns the builder for the settings used for calls to createAdminOverride.
-
updateAdminOverrideSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<UpdateAdminOverrideRequest,com.google.longrunning.Operation> updateAdminOverrideSettings()
Returns the builder for the settings used for calls to updateAdminOverride.
-
updateAdminOverrideOperationSettings
public com.google.api.gax.rpc.OperationCallSettings.Builder<UpdateAdminOverrideRequest,QuotaOverride,OperationMetadata> updateAdminOverrideOperationSettings()
Returns the builder for the settings used for calls to updateAdminOverride.
-
deleteAdminOverrideSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<DeleteAdminOverrideRequest,com.google.longrunning.Operation> deleteAdminOverrideSettings()
Returns the builder for the settings used for calls to deleteAdminOverride.
-
deleteAdminOverrideOperationSettings
public com.google.api.gax.rpc.OperationCallSettings.Builder<DeleteAdminOverrideRequest,com.google.protobuf.Empty,OperationMetadata> deleteAdminOverrideOperationSettings()
Returns the builder for the settings used for calls to deleteAdminOverride.
-
listAdminOverridesSettings
public com.google.api.gax.rpc.PagedCallSettings.Builder<ListAdminOverridesRequest,ListAdminOverridesResponse,ServiceUsageClient.ListAdminOverridesPagedResponse> listAdminOverridesSettings()
Returns the builder for the settings used for calls to listAdminOverrides.
-
importAdminOverridesSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<ImportAdminOverridesRequest,com.google.longrunning.Operation> importAdminOverridesSettings()
Returns the builder for the settings used for calls to importAdminOverrides.
-
importAdminOverridesOperationSettings
public com.google.api.gax.rpc.OperationCallSettings.Builder<ImportAdminOverridesRequest,ImportAdminOverridesResponse,ImportAdminOverridesMetadata> importAdminOverridesOperationSettings()
Returns the builder for the settings used for calls to importAdminOverrides.
-
createConsumerOverrideSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<CreateConsumerOverrideRequest,com.google.longrunning.Operation> createConsumerOverrideSettings()
Returns the builder for the settings used for calls to createConsumerOverride.
-
createConsumerOverrideOperationSettings
public com.google.api.gax.rpc.OperationCallSettings.Builder<CreateConsumerOverrideRequest,QuotaOverride,OperationMetadata> createConsumerOverrideOperationSettings()
Returns the builder for the settings used for calls to createConsumerOverride.
-
updateConsumerOverrideSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<UpdateConsumerOverrideRequest,com.google.longrunning.Operation> updateConsumerOverrideSettings()
Returns the builder for the settings used for calls to updateConsumerOverride.
-
updateConsumerOverrideOperationSettings
public com.google.api.gax.rpc.OperationCallSettings.Builder<UpdateConsumerOverrideRequest,QuotaOverride,OperationMetadata> updateConsumerOverrideOperationSettings()
Returns the builder for the settings used for calls to updateConsumerOverride.
-
deleteConsumerOverrideSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<DeleteConsumerOverrideRequest,com.google.longrunning.Operation> deleteConsumerOverrideSettings()
Returns the builder for the settings used for calls to deleteConsumerOverride.
-
deleteConsumerOverrideOperationSettings
public com.google.api.gax.rpc.OperationCallSettings.Builder<DeleteConsumerOverrideRequest,com.google.protobuf.Empty,OperationMetadata> deleteConsumerOverrideOperationSettings()
Returns the builder for the settings used for calls to deleteConsumerOverride.
-
listConsumerOverridesSettings
public com.google.api.gax.rpc.PagedCallSettings.Builder<ListConsumerOverridesRequest,ListConsumerOverridesResponse,ServiceUsageClient.ListConsumerOverridesPagedResponse> listConsumerOverridesSettings()
Returns the builder for the settings used for calls to listConsumerOverrides.
-
importConsumerOverridesSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<ImportConsumerOverridesRequest,com.google.longrunning.Operation> importConsumerOverridesSettings()
Returns the builder for the settings used for calls to importConsumerOverrides.
-
importConsumerOverridesOperationSettings
public com.google.api.gax.rpc.OperationCallSettings.Builder<ImportConsumerOverridesRequest,ImportConsumerOverridesResponse,ImportConsumerOverridesMetadata> importConsumerOverridesOperationSettings()
Returns the builder for the settings used for calls to importConsumerOverrides.
-
generateServiceIdentitySettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<GenerateServiceIdentityRequest,com.google.longrunning.Operation> generateServiceIdentitySettings()
Returns the builder for the settings used for calls to generateServiceIdentity.
-
generateServiceIdentityOperationSettings
public com.google.api.gax.rpc.OperationCallSettings.Builder<GenerateServiceIdentityRequest,ServiceIdentity,com.google.protobuf.Empty> generateServiceIdentityOperationSettings()
Returns the builder for the settings used for calls to generateServiceIdentity.
-
build
public ServiceUsageSettings build() throws IOException
- Specified by:
build
in classcom.google.api.gax.rpc.ClientSettings.Builder<ServiceUsageSettings,ServiceUsageSettings.Builder>
- Throws:
IOException
-
-