Class ServiceUsageStubSettings.Builder
- java.lang.Object
-
- com.google.api.gax.rpc.StubSettings.Builder<ServiceUsageStubSettings,ServiceUsageStubSettings.Builder>
-
- com.google.api.serviceusage.v1beta1.stub.ServiceUsageStubSettings.Builder
-
- Enclosing class:
- ServiceUsageStubSettings
public static class ServiceUsageStubSettings.Builder extends com.google.api.gax.rpc.StubSettings.Builder<ServiceUsageStubSettings,ServiceUsageStubSettings.Builder>
Builder for ServiceUsageStubSettings.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
protected
Builder(com.google.api.gax.rpc.ClientContext clientContext)
protected
Builder(ServiceUsageStubSettings settings)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ServiceUsageStubSettings.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()
Returns the builder for the settings used for calls to batchEnableServices.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.ServiceUsageStubSettings
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()
Returns the builder for the settings used for calls to disableService.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()
Returns the builder for the settings used for calls to enableService.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.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.common.collect.ImmutableList<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>>
unaryMethodSettingsBuilders()
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.StubSettings.Builder
applyToAllUnaryMethods, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getMtlsEndpoint, getQuotaProjectId, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, self, setBackgroundExecutorProvider, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setGdchApiAudience, setHeaderProvider, setInternalHeaderProvider, setMtlsEndpoint, setQuotaProjectId, setStreamWatchdogCheckInterval, setStreamWatchdogProvider, setSwitchToMtlsEndpointAllowed, setTracerFactory, setTransportChannelProvider, toString
-
-
-
-
Constructor Detail
-
Builder
protected Builder()
-
Builder
protected Builder(com.google.api.gax.rpc.ClientContext clientContext)
-
Builder
protected Builder(ServiceUsageStubSettings settings)
-
-
Method Detail
-
applyToAllUnaryMethods
public ServiceUsageStubSettings.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.
-
unaryMethodSettingsBuilders
public com.google.common.collect.ImmutableList<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
-
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
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public com.google.api.gax.rpc.OperationCallSettings.Builder<EnableServiceRequest,com.google.protobuf.Empty,OperationMetadata> enableServiceOperationSettings()
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
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public com.google.api.gax.rpc.OperationCallSettings.Builder<DisableServiceRequest,com.google.protobuf.Empty,OperationMetadata> disableServiceOperationSettings()
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
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public com.google.api.gax.rpc.OperationCallSettings.Builder<BatchEnableServicesRequest,com.google.protobuf.Empty,OperationMetadata> batchEnableServicesOperationSettings()
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
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") 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
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") 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
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") 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
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") 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
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") 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
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") 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
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") 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
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") 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
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") 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 ServiceUsageStubSettings build() throws IOException
- Specified by:
build
in classcom.google.api.gax.rpc.StubSettings.Builder<ServiceUsageStubSettings,ServiceUsageStubSettings.Builder>
- Throws:
IOException
-
-