Class ServiceUsageSettings.Builder (2.27.0)

publicstaticclass ServiceUsageSettings.BuilderextendsClientSettings.Builder<ServiceUsageSettings,ServiceUsageSettings.Builder>

Builder for ServiceUsageSettings.

Inheritance

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

Inherited Members

Constructors

Builder()

protectedBuilder()

Builder(ClientContext clientContext)

protectedBuilder(ClientContextclientContext)
Parameter
Name Description
clientContext ClientContext

Builder(ServiceUsageSettings settings)

protectedBuilder(ServiceUsageSettingssettings)
Parameter
Name Description
settings ServiceUsageSettings

Builder(ServiceUsageStubSettings.Builder stubSettings)

protectedBuilder(ServiceUsageStubSettings.BuilderstubSettings)
Parameter
Name Description
stubSettings ServiceUsageStubSettings.Builder

Methods

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

publicServiceUsageSettings.BuilderapplyToAllUnaryMethods(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
ServiceUsageSettings.Builder

batchEnableServicesOperationSettings()

publicOperationCallSettings.Builder<BatchEnableServicesRequest,BatchEnableServicesResponse,OperationMetadata>batchEnableServicesOperationSettings()

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

Returns
Type Description
Builder<BatchEnableServicesRequest,BatchEnableServicesResponse,OperationMetadata>

batchEnableServicesSettings()

publicUnaryCallSettings.Builder<BatchEnableServicesRequest,Operation>batchEnableServicesSettings()

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

Returns
Type Description
Builder<BatchEnableServicesRequest,Operation>

batchGetServicesSettings()

publicUnaryCallSettings.Builder<BatchGetServicesRequest,BatchGetServicesResponse>batchGetServicesSettings()

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

Returns
Type Description
Builder<BatchGetServicesRequest,BatchGetServicesResponse>

build()

publicServiceUsageSettingsbuild()
Returns
Type Description
ServiceUsageSettings
Overrides
Exceptions
Type Description
IOException

disableServiceOperationSettings()

publicOperationCallSettings.Builder<DisableServiceRequest,DisableServiceResponse,OperationMetadata>disableServiceOperationSettings()

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

Returns
Type Description
Builder<DisableServiceRequest,DisableServiceResponse,OperationMetadata>

disableServiceSettings()

publicUnaryCallSettings.Builder<DisableServiceRequest,Operation>disableServiceSettings()

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

Returns
Type Description
Builder<DisableServiceRequest,Operation>

enableServiceOperationSettings()

publicOperationCallSettings.Builder<EnableServiceRequest,EnableServiceResponse,OperationMetadata>enableServiceOperationSettings()

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

Returns
Type Description
Builder<EnableServiceRequest,EnableServiceResponse,OperationMetadata>

enableServiceSettings()

publicUnaryCallSettings.Builder<EnableServiceRequest,Operation>enableServiceSettings()

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

Returns
Type Description
Builder<EnableServiceRequest,Operation>

getServiceSettings()

publicUnaryCallSettings.Builder<GetServiceRequest,Service>getServiceSettings()

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

Returns
Type Description
Builder<GetServiceRequest,Service>

getStubSettingsBuilder()

publicServiceUsageStubSettings.BuildergetStubSettingsBuilder()
Returns
Type Description
ServiceUsageStubSettings.Builder

listServicesSettings()

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

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

Returns
Type Description
Builder<ListServicesRequest,ListServicesResponse,ListServicesPagedResponse>

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.