Class ServiceUsageStubSettings.Builder
- java.lang.Object
-
- com.google.api.gax.rpc.StubSettings.Builder<ServiceUsageStubSettings,ServiceUsageStubSettings.Builder>
-
- com.google.api.serviceusage.v1.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 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,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.ServiceUsageStubSettings
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.com.google.api.gax.rpc.PagedCallSettings.Builder<ListServicesRequest,ListServicesResponse,ServiceUsageClient.ListServicesPagedResponse>
listServicesSettings()
Returns the builder for the settings used for calls to listServices.com.google.common.collect.ImmutableList<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>>
unaryMethodSettingsBuilders()
-
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
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
@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,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
@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,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
@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,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 ServiceUsageStubSettings build() throws IOException
- Specified by:
build
in classcom.google.api.gax.rpc.StubSettings.Builder<ServiceUsageStubSettings,ServiceUsageStubSettings.Builder>
- Throws:
IOException
-
-