Package com.google.api.serviceusage.v1
Class ServiceUsageSettings.Builder
- java.lang.Object
-
- com.google.api.gax.rpc.ClientSettings.Builder<ServiceUsageSettings,ServiceUsageSettings.Builder>
-
- com.google.api.serviceusage.v1.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 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,BatchEnableServicesResponse,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()
Returns the builder for the settings used for calls to batchEnableServices.com.google.api.gax.rpc.UnaryCallSettings.Builder<BatchGetServicesRequest,BatchGetServicesResponse>
batchGetServicesSettings()
Returns the builder for the settings used for calls to batchGetServices.ServiceUsageSettings
build()
com.google.api.gax.rpc.OperationCallSettings.Builder<DisableServiceRequest,DisableServiceResponse,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()
Returns the builder for the settings used for calls to disableService.com.google.api.gax.rpc.OperationCallSettings.Builder<EnableServiceRequest,EnableServiceResponse,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()
Returns the builder for the settings used for calls to enableService.com.google.api.gax.rpc.UnaryCallSettings.Builder<GetServiceRequest,Service>
getServiceSettings()
Returns the builder for the settings used for calls to getService.ServiceUsageStubSettings.Builder
getStubSettingsBuilder()
com.google.api.gax.rpc.PagedCallSettings.Builder<ListServicesRequest,ListServicesResponse,ServiceUsageClient.ListServicesPagedResponse>
listServicesSettings()
Returns the builder for the settings used for calls to listServices.-
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
public com.google.api.gax.rpc.UnaryCallSettings.Builder<EnableServiceRequest,com.google.longrunning.Operation> enableServiceSettings()
Returns the builder for the settings used for calls to enableService.
-
enableServiceOperationSettings
public com.google.api.gax.rpc.OperationCallSettings.Builder<EnableServiceRequest,EnableServiceResponse,OperationMetadata> enableServiceOperationSettings()
Returns the builder for the settings used for calls to enableService.
-
disableServiceSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<DisableServiceRequest,com.google.longrunning.Operation> disableServiceSettings()
Returns the builder for the settings used for calls to disableService.
-
disableServiceOperationSettings
public com.google.api.gax.rpc.OperationCallSettings.Builder<DisableServiceRequest,DisableServiceResponse,OperationMetadata> disableServiceOperationSettings()
Returns the builder for the settings used for calls to disableService.
-
getServiceSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<GetServiceRequest,Service> getServiceSettings()
Returns the builder for the settings used for calls to getService.
-
listServicesSettings
public com.google.api.gax.rpc.PagedCallSettings.Builder<ListServicesRequest,ListServicesResponse,ServiceUsageClient.ListServicesPagedResponse> listServicesSettings()
Returns the builder for the settings used for calls to listServices.
-
batchEnableServicesSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<BatchEnableServicesRequest,com.google.longrunning.Operation> batchEnableServicesSettings()
Returns the builder for the settings used for calls to batchEnableServices.
-
batchEnableServicesOperationSettings
public com.google.api.gax.rpc.OperationCallSettings.Builder<BatchEnableServicesRequest,BatchEnableServicesResponse,OperationMetadata> batchEnableServicesOperationSettings()
Returns the builder for the settings used for calls to batchEnableServices.
-
batchGetServicesSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<BatchGetServicesRequest,BatchGetServicesResponse> batchGetServicesSettings()
Returns the builder for the settings used for calls to batchGetServices.
-
build
public ServiceUsageSettings build() throws IOException
- Specified by:
build
in classcom.google.api.gax.rpc.ClientSettings.Builder<ServiceUsageSettings,ServiceUsageSettings.Builder>
- Throws:
IOException
-
-