Class ServiceUsageStubSettings
- java.lang.Object
-
- com.google.api.gax.rpc.StubSettings<ServiceUsageStubSettings>
-
- com.google.api.serviceusage.v1beta1.stub.ServiceUsageStubSettings
-
@BetaApi @Generated("by gapic-generator-java") public class ServiceUsageStubSettings extends com.google.api.gax.rpc.StubSettings<ServiceUsageStubSettings>
Settings class to configure an instance ofServiceUsageStub
.The default instance has everything set to sensible defaults:
- The default service address (serviceusage.googleapis.com) and default port (443) are used.
- Credentials are acquired automatically through Application Default Credentials.
- Retries are configured for idempotent methods but not for non-idempotent methods.
The builder of this class is recursive, so contained classes are themselves builders. When build() is called, the tree of builders is called to create the complete settings object.
For example, to set the total timeout of getService to 30 seconds:
// This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library ServiceUsageStubSettings.Builder serviceUsageSettingsBuilder = ServiceUsageStubSettings.newBuilder(); serviceUsageSettingsBuilder .getServiceSettings() .setRetrySettings( serviceUsageSettingsBuilder .getServiceSettings() .getRetrySettings() .toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); ServiceUsageStubSettings serviceUsageSettings = serviceUsageSettingsBuilder.build();
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServiceUsageStubSettings.Builder
Builder for ServiceUsageStubSettings.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ServiceUsageStubSettings(ServiceUsageStubSettings.Builder settingsBuilder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description com.google.api.gax.rpc.OperationCallSettings<BatchEnableServicesRequest,com.google.protobuf.Empty,OperationMetadata>
batchEnableServicesOperationSettings()
Returns the object with the settings used for calls to batchEnableServices.com.google.api.gax.rpc.UnaryCallSettings<BatchEnableServicesRequest,com.google.longrunning.Operation>
batchEnableServicesSettings()
Deprecated.This method is deprecated and will be removed in the next major version update.com.google.api.gax.rpc.OperationCallSettings<CreateAdminOverrideRequest,QuotaOverride,OperationMetadata>
createAdminOverrideOperationSettings()
Returns the object with the settings used for calls to createAdminOverride.com.google.api.gax.rpc.UnaryCallSettings<CreateAdminOverrideRequest,com.google.longrunning.Operation>
createAdminOverrideSettings()
Returns the object with the settings used for calls to createAdminOverride.com.google.api.gax.rpc.OperationCallSettings<CreateConsumerOverrideRequest,QuotaOverride,OperationMetadata>
createConsumerOverrideOperationSettings()
Returns the object with the settings used for calls to createConsumerOverride.com.google.api.gax.rpc.UnaryCallSettings<CreateConsumerOverrideRequest,com.google.longrunning.Operation>
createConsumerOverrideSettings()
Returns the object with the settings used for calls to createConsumerOverride.ServiceUsageStub
createStub()
static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder
defaultApiClientHeaderProviderBuilder()
static com.google.api.gax.core.GoogleCredentialsProvider.Builder
defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.static com.google.api.gax.core.InstantiatingExecutorProvider.Builder
defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder
defaultGrpcApiClientHeaderProviderBuilder()
static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder
defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder
defaultHttpJsonApiClientHeaderProviderBuilder()
static com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider.Builder
defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default REST ChannelProvider for this service.static com.google.api.gax.rpc.TransportChannelProvider
defaultTransportChannelProvider()
com.google.api.gax.rpc.OperationCallSettings<DeleteAdminOverrideRequest,com.google.protobuf.Empty,OperationMetadata>
deleteAdminOverrideOperationSettings()
Returns the object with the settings used for calls to deleteAdminOverride.com.google.api.gax.rpc.UnaryCallSettings<DeleteAdminOverrideRequest,com.google.longrunning.Operation>
deleteAdminOverrideSettings()
Returns the object with the settings used for calls to deleteAdminOverride.com.google.api.gax.rpc.OperationCallSettings<DeleteConsumerOverrideRequest,com.google.protobuf.Empty,OperationMetadata>
deleteConsumerOverrideOperationSettings()
Returns the object with the settings used for calls to deleteConsumerOverride.com.google.api.gax.rpc.UnaryCallSettings<DeleteConsumerOverrideRequest,com.google.longrunning.Operation>
deleteConsumerOverrideSettings()
Returns the object with the settings used for calls to deleteConsumerOverride.com.google.api.gax.rpc.OperationCallSettings<DisableServiceRequest,com.google.protobuf.Empty,OperationMetadata>
disableServiceOperationSettings()
Returns the object with the settings used for calls to disableService.com.google.api.gax.rpc.UnaryCallSettings<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<EnableServiceRequest,com.google.protobuf.Empty,OperationMetadata>
enableServiceOperationSettings()
Returns the object with the settings used for calls to enableService.com.google.api.gax.rpc.UnaryCallSettings<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<GenerateServiceIdentityRequest,ServiceIdentity,com.google.protobuf.Empty>
generateServiceIdentityOperationSettings()
Returns the object with the settings used for calls to generateServiceIdentity.com.google.api.gax.rpc.UnaryCallSettings<GenerateServiceIdentityRequest,com.google.longrunning.Operation>
generateServiceIdentitySettings()
Returns the object with the settings used for calls to generateServiceIdentity.com.google.api.gax.rpc.UnaryCallSettings<GetConsumerQuotaLimitRequest,ConsumerQuotaLimit>
getConsumerQuotaLimitSettings()
Returns the object with the settings used for calls to getConsumerQuotaLimit.com.google.api.gax.rpc.UnaryCallSettings<GetConsumerQuotaMetricRequest,ConsumerQuotaMetric>
getConsumerQuotaMetricSettings()
Returns the object with the settings used for calls to getConsumerQuotaMetric.static String
getDefaultEndpoint()
Returns the default service endpoint.static String
getDefaultMtlsEndpoint()
Returns the default mTLS service endpoint.static List<String>
getDefaultServiceScopes()
Returns the default service scopes.com.google.api.gax.rpc.UnaryCallSettings<GetServiceRequest,Service>
getServiceSettings()
Deprecated.This method is deprecated and will be removed in the next major version update.com.google.api.gax.rpc.OperationCallSettings<ImportAdminOverridesRequest,ImportAdminOverridesResponse,ImportAdminOverridesMetadata>
importAdminOverridesOperationSettings()
Returns the object with the settings used for calls to importAdminOverrides.com.google.api.gax.rpc.UnaryCallSettings<ImportAdminOverridesRequest,com.google.longrunning.Operation>
importAdminOverridesSettings()
Returns the object with the settings used for calls to importAdminOverrides.com.google.api.gax.rpc.OperationCallSettings<ImportConsumerOverridesRequest,ImportConsumerOverridesResponse,ImportConsumerOverridesMetadata>
importConsumerOverridesOperationSettings()
Returns the object with the settings used for calls to importConsumerOverrides.com.google.api.gax.rpc.UnaryCallSettings<ImportConsumerOverridesRequest,com.google.longrunning.Operation>
importConsumerOverridesSettings()
Returns the object with the settings used for calls to importConsumerOverrides.com.google.api.gax.rpc.PagedCallSettings<ListAdminOverridesRequest,ListAdminOverridesResponse,ServiceUsageClient.ListAdminOverridesPagedResponse>
listAdminOverridesSettings()
Returns the object with the settings used for calls to listAdminOverrides.com.google.api.gax.rpc.PagedCallSettings<ListConsumerOverridesRequest,ListConsumerOverridesResponse,ServiceUsageClient.ListConsumerOverridesPagedResponse>
listConsumerOverridesSettings()
Returns the object with the settings used for calls to listConsumerOverrides.com.google.api.gax.rpc.PagedCallSettings<ListConsumerQuotaMetricsRequest,ListConsumerQuotaMetricsResponse,ServiceUsageClient.ListConsumerQuotaMetricsPagedResponse>
listConsumerQuotaMetricsSettings()
Returns the object with the settings used for calls to listConsumerQuotaMetrics.com.google.api.gax.rpc.PagedCallSettings<ListServicesRequest,ListServicesResponse,ServiceUsageClient.ListServicesPagedResponse>
listServicesSettings()
Deprecated.This method is deprecated and will be removed in the next major version update.static ServiceUsageStubSettings.Builder
newBuilder()
Returns a new gRPC builder for this class.static ServiceUsageStubSettings.Builder
newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.static ServiceUsageStubSettings.Builder
newHttpJsonBuilder()
Returns a new REST builder for this class.ServiceUsageStubSettings.Builder
toBuilder()
Returns a builder containing all the values of this settings class.com.google.api.gax.rpc.OperationCallSettings<UpdateAdminOverrideRequest,QuotaOverride,OperationMetadata>
updateAdminOverrideOperationSettings()
Returns the object with the settings used for calls to updateAdminOverride.com.google.api.gax.rpc.UnaryCallSettings<UpdateAdminOverrideRequest,com.google.longrunning.Operation>
updateAdminOverrideSettings()
Returns the object with the settings used for calls to updateAdminOverride.com.google.api.gax.rpc.OperationCallSettings<UpdateConsumerOverrideRequest,QuotaOverride,OperationMetadata>
updateConsumerOverrideOperationSettings()
Returns the object with the settings used for calls to updateConsumerOverride.com.google.api.gax.rpc.UnaryCallSettings<UpdateConsumerOverrideRequest,com.google.longrunning.Operation>
updateConsumerOverrideSettings()
Returns the object with the settings used for calls to updateConsumerOverride.-
Methods inherited from class com.google.api.gax.rpc.StubSettings
getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getMtlsEndpoint, getQuotaProjectId, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, toString
-
-
-
-
Constructor Detail
-
ServiceUsageStubSettings
protected ServiceUsageStubSettings(ServiceUsageStubSettings.Builder settingsBuilder) throws IOException
- Throws:
IOException
-
-
Method Detail
-
enableServiceSettings
@Deprecated public com.google.api.gax.rpc.UnaryCallSettings<EnableServiceRequest,com.google.longrunning.Operation> enableServiceSettings()
Deprecated.This method is deprecated and will be removed in the next major version update.Returns the object with the settings used for calls to enableService.
-
enableServiceOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<EnableServiceRequest,com.google.protobuf.Empty,OperationMetadata> enableServiceOperationSettings()
Returns the object with the settings used for calls to enableService.
-
disableServiceSettings
@Deprecated public com.google.api.gax.rpc.UnaryCallSettings<DisableServiceRequest,com.google.longrunning.Operation> disableServiceSettings()
Deprecated.This method is deprecated and will be removed in the next major version update.Returns the object with the settings used for calls to disableService.
-
disableServiceOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<DisableServiceRequest,com.google.protobuf.Empty,OperationMetadata> disableServiceOperationSettings()
Returns the object with the settings used for calls to disableService.
-
getServiceSettings
@Deprecated public com.google.api.gax.rpc.UnaryCallSettings<GetServiceRequest,Service> getServiceSettings()
Deprecated.This method is deprecated and will be removed in the next major version update.Returns the object with the settings used for calls to getService.
-
listServicesSettings
@Deprecated public com.google.api.gax.rpc.PagedCallSettings<ListServicesRequest,ListServicesResponse,ServiceUsageClient.ListServicesPagedResponse> listServicesSettings()
Deprecated.This method is deprecated and will be removed in the next major version update.Returns the object with the settings used for calls to listServices.
-
batchEnableServicesSettings
@Deprecated public com.google.api.gax.rpc.UnaryCallSettings<BatchEnableServicesRequest,com.google.longrunning.Operation> batchEnableServicesSettings()
Deprecated.This method is deprecated and will be removed in the next major version update.Returns the object with the settings used for calls to batchEnableServices.
-
batchEnableServicesOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<BatchEnableServicesRequest,com.google.protobuf.Empty,OperationMetadata> batchEnableServicesOperationSettings()
Returns the object with the settings used for calls to batchEnableServices.
-
listConsumerQuotaMetricsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListConsumerQuotaMetricsRequest,ListConsumerQuotaMetricsResponse,ServiceUsageClient.ListConsumerQuotaMetricsPagedResponse> listConsumerQuotaMetricsSettings()
Returns the object with the settings used for calls to listConsumerQuotaMetrics.
-
getConsumerQuotaMetricSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetConsumerQuotaMetricRequest,ConsumerQuotaMetric> getConsumerQuotaMetricSettings()
Returns the object with the settings used for calls to getConsumerQuotaMetric.
-
getConsumerQuotaLimitSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetConsumerQuotaLimitRequest,ConsumerQuotaLimit> getConsumerQuotaLimitSettings()
Returns the object with the settings used for calls to getConsumerQuotaLimit.
-
createAdminOverrideSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateAdminOverrideRequest,com.google.longrunning.Operation> createAdminOverrideSettings()
Returns the object with the settings used for calls to createAdminOverride.
-
createAdminOverrideOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<CreateAdminOverrideRequest,QuotaOverride,OperationMetadata> createAdminOverrideOperationSettings()
Returns the object with the settings used for calls to createAdminOverride.
-
updateAdminOverrideSettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateAdminOverrideRequest,com.google.longrunning.Operation> updateAdminOverrideSettings()
Returns the object with the settings used for calls to updateAdminOverride.
-
updateAdminOverrideOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<UpdateAdminOverrideRequest,QuotaOverride,OperationMetadata> updateAdminOverrideOperationSettings()
Returns the object with the settings used for calls to updateAdminOverride.
-
deleteAdminOverrideSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteAdminOverrideRequest,com.google.longrunning.Operation> deleteAdminOverrideSettings()
Returns the object with the settings used for calls to deleteAdminOverride.
-
deleteAdminOverrideOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<DeleteAdminOverrideRequest,com.google.protobuf.Empty,OperationMetadata> deleteAdminOverrideOperationSettings()
Returns the object with the settings used for calls to deleteAdminOverride.
-
listAdminOverridesSettings
public com.google.api.gax.rpc.PagedCallSettings<ListAdminOverridesRequest,ListAdminOverridesResponse,ServiceUsageClient.ListAdminOverridesPagedResponse> listAdminOverridesSettings()
Returns the object with the settings used for calls to listAdminOverrides.
-
importAdminOverridesSettings
public com.google.api.gax.rpc.UnaryCallSettings<ImportAdminOverridesRequest,com.google.longrunning.Operation> importAdminOverridesSettings()
Returns the object with the settings used for calls to importAdminOverrides.
-
importAdminOverridesOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<ImportAdminOverridesRequest,ImportAdminOverridesResponse,ImportAdminOverridesMetadata> importAdminOverridesOperationSettings()
Returns the object with the settings used for calls to importAdminOverrides.
-
createConsumerOverrideSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateConsumerOverrideRequest,com.google.longrunning.Operation> createConsumerOverrideSettings()
Returns the object with the settings used for calls to createConsumerOverride.
-
createConsumerOverrideOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<CreateConsumerOverrideRequest,QuotaOverride,OperationMetadata> createConsumerOverrideOperationSettings()
Returns the object with the settings used for calls to createConsumerOverride.
-
updateConsumerOverrideSettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateConsumerOverrideRequest,com.google.longrunning.Operation> updateConsumerOverrideSettings()
Returns the object with the settings used for calls to updateConsumerOverride.
-
updateConsumerOverrideOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<UpdateConsumerOverrideRequest,QuotaOverride,OperationMetadata> updateConsumerOverrideOperationSettings()
Returns the object with the settings used for calls to updateConsumerOverride.
-
deleteConsumerOverrideSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteConsumerOverrideRequest,com.google.longrunning.Operation> deleteConsumerOverrideSettings()
Returns the object with the settings used for calls to deleteConsumerOverride.
-
deleteConsumerOverrideOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<DeleteConsumerOverrideRequest,com.google.protobuf.Empty,OperationMetadata> deleteConsumerOverrideOperationSettings()
Returns the object with the settings used for calls to deleteConsumerOverride.
-
listConsumerOverridesSettings
public com.google.api.gax.rpc.PagedCallSettings<ListConsumerOverridesRequest,ListConsumerOverridesResponse,ServiceUsageClient.ListConsumerOverridesPagedResponse> listConsumerOverridesSettings()
Returns the object with the settings used for calls to listConsumerOverrides.
-
importConsumerOverridesSettings
public com.google.api.gax.rpc.UnaryCallSettings<ImportConsumerOverridesRequest,com.google.longrunning.Operation> importConsumerOverridesSettings()
Returns the object with the settings used for calls to importConsumerOverrides.
-
importConsumerOverridesOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<ImportConsumerOverridesRequest,ImportConsumerOverridesResponse,ImportConsumerOverridesMetadata> importConsumerOverridesOperationSettings()
Returns the object with the settings used for calls to importConsumerOverrides.
-
generateServiceIdentitySettings
public com.google.api.gax.rpc.UnaryCallSettings<GenerateServiceIdentityRequest,com.google.longrunning.Operation> generateServiceIdentitySettings()
Returns the object with the settings used for calls to generateServiceIdentity.
-
generateServiceIdentityOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<GenerateServiceIdentityRequest,ServiceIdentity,com.google.protobuf.Empty> generateServiceIdentityOperationSettings()
Returns the object with the settings used for calls to generateServiceIdentity.
-
createStub
public ServiceUsageStub createStub() throws IOException
- Throws:
IOException
-
defaultExecutorProviderBuilder
public static com.google.api.gax.core.InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
-
getDefaultEndpoint
public static String getDefaultEndpoint()
Returns the default service endpoint.
-
getDefaultMtlsEndpoint
public static String getDefaultMtlsEndpoint()
Returns the default mTLS service endpoint.
-
getDefaultServiceScopes
public static List<String> getDefaultServiceScopes()
Returns the default service scopes.
-
defaultCredentialsProviderBuilder
public static com.google.api.gax.core.GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
-
defaultGrpcTransportProviderBuilder
public static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.
-
defaultHttpJsonTransportProviderBuilder
@BetaApi public static com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default REST ChannelProvider for this service.
-
defaultTransportChannelProvider
public static com.google.api.gax.rpc.TransportChannelProvider defaultTransportChannelProvider()
-
defaultGrpcApiClientHeaderProviderBuilder
@BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder()
-
defaultHttpJsonApiClientHeaderProviderBuilder
@BetaApi("The surface for customizing headers is not stable yet and may change in the future.") public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder()
-
defaultApiClientHeaderProviderBuilder
public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
-
newBuilder
public static ServiceUsageStubSettings.Builder newBuilder()
Returns a new gRPC builder for this class.
-
newHttpJsonBuilder
public static ServiceUsageStubSettings.Builder newHttpJsonBuilder()
Returns a new REST builder for this class.
-
newBuilder
public static ServiceUsageStubSettings.Builder newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.
-
toBuilder
public ServiceUsageStubSettings.Builder toBuilder()
Returns a builder containing all the values of this settings class.- Specified by:
toBuilder
in classcom.google.api.gax.rpc.StubSettings<ServiceUsageStubSettings>
-
-