Package com.google.api.serviceusage.v1beta1 (2.2.6)

The interfaces provided are listed below, along with usage samples.

ServiceUsageClient

Service Description: Service Usage API

Sample for ServiceUsageClient:


 try (ServiceUsageClient serviceUsageClient = ServiceUsageClient.create()) {
   GetServiceRequest request = GetServiceRequest.newBuilder().setName("name3373707").build();
   Service response = serviceUsageClient.getService(request);
 }
 

Classes

AdminQuotaPolicy

Quota policy created by quota administrator.

Protobuf type google.api.serviceusage.v1beta1.AdminQuotaPolicy

AdminQuotaPolicy.Builder

Quota policy created by quota administrator.

Protobuf type google.api.serviceusage.v1beta1.AdminQuotaPolicy

BatchCreateAdminOverridesResponse

Response message for BatchCreateAdminOverrides

Protobuf type google.api.serviceusage.v1beta1.BatchCreateAdminOverridesResponse

BatchCreateAdminOverridesResponse.Builder

Response message for BatchCreateAdminOverrides

Protobuf type google.api.serviceusage.v1beta1.BatchCreateAdminOverridesResponse

BatchCreateConsumerOverridesResponse

Response message for BatchCreateConsumerOverrides

Protobuf type google.api.serviceusage.v1beta1.BatchCreateConsumerOverridesResponse

BatchCreateConsumerOverridesResponse.Builder

Response message for BatchCreateConsumerOverrides

Protobuf type google.api.serviceusage.v1beta1.BatchCreateConsumerOverridesResponse

BatchEnableServicesRequest

Request message for the BatchEnableServices method.

Protobuf type google.api.serviceusage.v1beta1.BatchEnableServicesRequest

BatchEnableServicesRequest.Builder

Request message for the BatchEnableServices method.

Protobuf type google.api.serviceusage.v1beta1.BatchEnableServicesRequest

ConsumerQuotaLimit

Consumer quota settings for a quota limit.

Protobuf type google.api.serviceusage.v1beta1.ConsumerQuotaLimit

ConsumerQuotaLimit.Builder

Consumer quota settings for a quota limit.

Protobuf type google.api.serviceusage.v1beta1.ConsumerQuotaLimit

ConsumerQuotaMetric

Consumer quota settings for a quota metric.

Protobuf type google.api.serviceusage.v1beta1.ConsumerQuotaMetric

ConsumerQuotaMetric.Builder

Consumer quota settings for a quota metric.

Protobuf type google.api.serviceusage.v1beta1.ConsumerQuotaMetric

CreateAdminOverrideRequest

Request message for CreateAdminOverride.

Protobuf type google.api.serviceusage.v1beta1.CreateAdminOverrideRequest

CreateAdminOverrideRequest.Builder

Request message for CreateAdminOverride.

Protobuf type google.api.serviceusage.v1beta1.CreateAdminOverrideRequest

CreateAdminQuotaPolicyMetadata

Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by CreateAdminQuotaPolicy.

Protobuf type google.api.serviceusage.v1beta1.CreateAdminQuotaPolicyMetadata

CreateAdminQuotaPolicyMetadata.Builder

Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by CreateAdminQuotaPolicy.

Protobuf type google.api.serviceusage.v1beta1.CreateAdminQuotaPolicyMetadata

CreateConsumerOverrideRequest

Request message for CreateConsumerOverride.

Protobuf type google.api.serviceusage.v1beta1.CreateConsumerOverrideRequest

CreateConsumerOverrideRequest.Builder

Request message for CreateConsumerOverride.

Protobuf type google.api.serviceusage.v1beta1.CreateConsumerOverrideRequest

DeleteAdminOverrideRequest

Request message for DeleteAdminOverride.

Protobuf type google.api.serviceusage.v1beta1.DeleteAdminOverrideRequest

DeleteAdminOverrideRequest.Builder

Request message for DeleteAdminOverride.

Protobuf type google.api.serviceusage.v1beta1.DeleteAdminOverrideRequest

DeleteAdminQuotaPolicyMetadata

Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by DeleteAdminQuotaPolicy.

Protobuf type google.api.serviceusage.v1beta1.DeleteAdminQuotaPolicyMetadata

DeleteAdminQuotaPolicyMetadata.Builder

Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by DeleteAdminQuotaPolicy.

Protobuf type google.api.serviceusage.v1beta1.DeleteAdminQuotaPolicyMetadata

DeleteConsumerOverrideRequest

Request message for DeleteConsumerOverride.

Protobuf type google.api.serviceusage.v1beta1.DeleteConsumerOverrideRequest

DeleteConsumerOverrideRequest.Builder

Request message for DeleteConsumerOverride.

Protobuf type google.api.serviceusage.v1beta1.DeleteConsumerOverrideRequest

DisableServiceRequest

Request message for the DisableService method.

Protobuf type google.api.serviceusage.v1beta1.DisableServiceRequest

DisableServiceRequest.Builder

Request message for the DisableService method.

Protobuf type google.api.serviceusage.v1beta1.DisableServiceRequest

EnableServiceRequest

Request message for the EnableService method.

Protobuf type google.api.serviceusage.v1beta1.EnableServiceRequest

EnableServiceRequest.Builder

Request message for the EnableService method.

Protobuf type google.api.serviceusage.v1beta1.EnableServiceRequest

GenerateServiceIdentityRequest

Request message for generating service identity.

Protobuf type google.api.serviceusage.v1beta1.GenerateServiceIdentityRequest

GenerateServiceIdentityRequest.Builder

Request message for generating service identity.

Protobuf type google.api.serviceusage.v1beta1.GenerateServiceIdentityRequest

GetConsumerQuotaLimitRequest

Request message for GetConsumerQuotaLimit

Protobuf type google.api.serviceusage.v1beta1.GetConsumerQuotaLimitRequest

GetConsumerQuotaLimitRequest.Builder

Request message for GetConsumerQuotaLimit

Protobuf type google.api.serviceusage.v1beta1.GetConsumerQuotaLimitRequest

GetConsumerQuotaMetricRequest

Request message for GetConsumerQuotaMetric

Protobuf type google.api.serviceusage.v1beta1.GetConsumerQuotaMetricRequest

GetConsumerQuotaMetricRequest.Builder

Request message for GetConsumerQuotaMetric

Protobuf type google.api.serviceusage.v1beta1.GetConsumerQuotaMetricRequest

GetServiceIdentityMetadata

Metadata for the GetServiceIdentity method.

Protobuf type google.api.serviceusage.v1beta1.GetServiceIdentityMetadata

GetServiceIdentityMetadata.Builder

Metadata for the GetServiceIdentity method.

Protobuf type google.api.serviceusage.v1beta1.GetServiceIdentityMetadata

GetServiceIdentityResponse

Response message for getting service identity.

Protobuf type google.api.serviceusage.v1beta1.GetServiceIdentityResponse

GetServiceIdentityResponse.Builder

Response message for getting service identity.

Protobuf type google.api.serviceusage.v1beta1.GetServiceIdentityResponse

GetServiceRequest

Request message for the GetService method.

Protobuf type google.api.serviceusage.v1beta1.GetServiceRequest

GetServiceRequest.Builder

Request message for the GetService method.

Protobuf type google.api.serviceusage.v1beta1.GetServiceRequest

ImportAdminOverridesMetadata

Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by ImportAdminOverrides.

Protobuf type google.api.serviceusage.v1beta1.ImportAdminOverridesMetadata

ImportAdminOverridesMetadata.Builder

Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by ImportAdminOverrides.

Protobuf type google.api.serviceusage.v1beta1.ImportAdminOverridesMetadata

ImportAdminOverridesRequest

Request message for ImportAdminOverrides

Protobuf type google.api.serviceusage.v1beta1.ImportAdminOverridesRequest

ImportAdminOverridesRequest.Builder

Request message for ImportAdminOverrides

Protobuf type google.api.serviceusage.v1beta1.ImportAdminOverridesRequest

ImportAdminOverridesResponse

Response message for ImportAdminOverrides

Protobuf type google.api.serviceusage.v1beta1.ImportAdminOverridesResponse

ImportAdminOverridesResponse.Builder

Response message for ImportAdminOverrides

Protobuf type google.api.serviceusage.v1beta1.ImportAdminOverridesResponse

ImportAdminQuotaPoliciesMetadata

Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by ImportAdminQuotaPolicies.

Protobuf type google.api.serviceusage.v1beta1.ImportAdminQuotaPoliciesMetadata

ImportAdminQuotaPoliciesMetadata.Builder

Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by ImportAdminQuotaPolicies.

Protobuf type google.api.serviceusage.v1beta1.ImportAdminQuotaPoliciesMetadata

ImportAdminQuotaPoliciesResponse

Response message for ImportAdminQuotaPolicies

Protobuf type google.api.serviceusage.v1beta1.ImportAdminQuotaPoliciesResponse

ImportAdminQuotaPoliciesResponse.Builder

Response message for ImportAdminQuotaPolicies

Protobuf type google.api.serviceusage.v1beta1.ImportAdminQuotaPoliciesResponse

ImportConsumerOverridesMetadata

Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by ImportConsumerOverrides.

Protobuf type google.api.serviceusage.v1beta1.ImportConsumerOverridesMetadata

ImportConsumerOverridesMetadata.Builder

Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by ImportConsumerOverrides.

Protobuf type google.api.serviceusage.v1beta1.ImportConsumerOverridesMetadata

ImportConsumerOverridesRequest

Request message for ImportConsumerOverrides

Protobuf type google.api.serviceusage.v1beta1.ImportConsumerOverridesRequest

ImportConsumerOverridesRequest.Builder

Request message for ImportConsumerOverrides

Protobuf type google.api.serviceusage.v1beta1.ImportConsumerOverridesRequest

ImportConsumerOverridesResponse

Response message for ImportConsumerOverrides

Protobuf type google.api.serviceusage.v1beta1.ImportConsumerOverridesResponse

ImportConsumerOverridesResponse.Builder

Response message for ImportConsumerOverrides

Protobuf type google.api.serviceusage.v1beta1.ImportConsumerOverridesResponse

ListAdminOverridesRequest

Request message for ListAdminOverrides

Protobuf type google.api.serviceusage.v1beta1.ListAdminOverridesRequest

ListAdminOverridesRequest.Builder

Request message for ListAdminOverrides

Protobuf type google.api.serviceusage.v1beta1.ListAdminOverridesRequest

ListAdminOverridesResponse

Response message for ListAdminOverrides.

Protobuf type google.api.serviceusage.v1beta1.ListAdminOverridesResponse

ListAdminOverridesResponse.Builder

Response message for ListAdminOverrides.

Protobuf type google.api.serviceusage.v1beta1.ListAdminOverridesResponse

ListConsumerOverridesRequest

Request message for ListConsumerOverrides

Protobuf type google.api.serviceusage.v1beta1.ListConsumerOverridesRequest

ListConsumerOverridesRequest.Builder

Request message for ListConsumerOverrides

Protobuf type google.api.serviceusage.v1beta1.ListConsumerOverridesRequest

ListConsumerOverridesResponse

Response message for ListConsumerOverrides.

Protobuf type google.api.serviceusage.v1beta1.ListConsumerOverridesResponse

ListConsumerOverridesResponse.Builder

Response message for ListConsumerOverrides.

Protobuf type google.api.serviceusage.v1beta1.ListConsumerOverridesResponse

ListConsumerQuotaMetricsRequest

Request message for ListConsumerQuotaMetrics

Protobuf type google.api.serviceusage.v1beta1.ListConsumerQuotaMetricsRequest

ListConsumerQuotaMetricsRequest.Builder

Request message for ListConsumerQuotaMetrics

Protobuf type google.api.serviceusage.v1beta1.ListConsumerQuotaMetricsRequest

ListConsumerQuotaMetricsResponse

Response message for ListConsumerQuotaMetrics

Protobuf type google.api.serviceusage.v1beta1.ListConsumerQuotaMetricsResponse

ListConsumerQuotaMetricsResponse.Builder

Response message for ListConsumerQuotaMetrics

Protobuf type google.api.serviceusage.v1beta1.ListConsumerQuotaMetricsResponse

ListServicesRequest

Request message for the ListServices method.

Protobuf type google.api.serviceusage.v1beta1.ListServicesRequest

ListServicesRequest.Builder

Request message for the ListServices method.

Protobuf type google.api.serviceusage.v1beta1.ListServicesRequest

ListServicesResponse

Response message for the ListServices method.

Protobuf type google.api.serviceusage.v1beta1.ListServicesResponse

ListServicesResponse.Builder

Response message for the ListServices method.

Protobuf type google.api.serviceusage.v1beta1.ListServicesResponse

OperationMetadata

The operation metadata returned for the batchend services operation.

Protobuf type google.api.serviceusage.v1beta1.OperationMetadata

OperationMetadata.Builder

The operation metadata returned for the batchend services operation.

Protobuf type google.api.serviceusage.v1beta1.OperationMetadata

OverrideInlineSource

Import data embedded in the request message

Protobuf type google.api.serviceusage.v1beta1.OverrideInlineSource

OverrideInlineSource.Builder

Import data embedded in the request message

Protobuf type google.api.serviceusage.v1beta1.OverrideInlineSource

QuotaBucket

A quota bucket is a quota provisioning unit for a specific set of dimensions.

Protobuf type google.api.serviceusage.v1beta1.QuotaBucket

QuotaBucket.Builder

A quota bucket is a quota provisioning unit for a specific set of dimensions.

Protobuf type google.api.serviceusage.v1beta1.QuotaBucket

QuotaOverride

A quota override

Protobuf type google.api.serviceusage.v1beta1.QuotaOverride

QuotaOverride.Builder

A quota override

Protobuf type google.api.serviceusage.v1beta1.QuotaOverride

ResourcesProto

Service

A service that is available for use by the consumer.

Protobuf type google.api.serviceusage.v1beta1.Service

Service.Builder

A service that is available for use by the consumer.

Protobuf type google.api.serviceusage.v1beta1.Service

ServiceConfig

The configuration of the service.

Protobuf type google.api.serviceusage.v1beta1.ServiceConfig

ServiceConfig.Builder

The configuration of the service.

Protobuf type google.api.serviceusage.v1beta1.ServiceConfig

ServiceIdentity

Service identity for a service. This is the identity that service producer should use to access consumer resources.

Protobuf type google.api.serviceusage.v1beta1.ServiceIdentity

ServiceIdentity.Builder

Service identity for a service. This is the identity that service producer should use to access consumer resources.

Protobuf type google.api.serviceusage.v1beta1.ServiceIdentity

ServiceUsageClient

Service Description: Service Usage API

This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started:


 try (ServiceUsageClient serviceUsageClient = ServiceUsageClient.create()) {
   GetServiceRequest request = GetServiceRequest.newBuilder().setName("name3373707").build();
   Service response = serviceUsageClient.getService(request);
 }
 

Note: close() needs to be called on the ServiceUsageClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().

The surface of this class includes several types of Java methods for each of the API's methods:

  1. A "flattened" method. With this type of method, the fields of the request type have been converted into function parameters. It may be the case that not all fields are available as parameters, and not every API method will have a flattened method entry point.
  2. A "request object" method. This type of method only takes one parameter, a request object, which must be constructed before the call. Not every API method will have a request object method.
  3. A "callable" method. This type of method takes no parameters and returns an immutable API callable object, which can be used to initiate calls to the service.

See the individual methods for example code.

Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.

This class can be customized by passing in a custom instance of ServiceUsageSettings to create(). For example:

To customize credentials:


 ServiceUsageSettings serviceUsageSettings =
     ServiceUsageSettings.newBuilder()
         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
         .build();
 ServiceUsageClient serviceUsageClient = ServiceUsageClient.create(serviceUsageSettings);
 

To customize the endpoint:


 ServiceUsageSettings serviceUsageSettings =
     ServiceUsageSettings.newBuilder().setEndpoint(myEndpoint).build();
 ServiceUsageClient serviceUsageClient = ServiceUsageClient.create(serviceUsageSettings);
 

Please refer to the GitHub repository's samples for more quickstart code snippets.

ServiceUsageClient.ListAdminOverridesFixedSizeCollection

ServiceUsageClient.ListAdminOverridesPage

ServiceUsageClient.ListAdminOverridesPagedResponse

ServiceUsageClient.ListConsumerOverridesFixedSizeCollection

ServiceUsageClient.ListConsumerOverridesPage

ServiceUsageClient.ListConsumerOverridesPagedResponse

ServiceUsageClient.ListConsumerQuotaMetricsFixedSizeCollection

ServiceUsageClient.ListConsumerQuotaMetricsPage

ServiceUsageClient.ListConsumerQuotaMetricsPagedResponse

ServiceUsageClient.ListServicesFixedSizeCollection

ServiceUsageClient.ListServicesPage

ServiceUsageClient.ListServicesPagedResponse

ServiceUsageGrpc

Service Usage API

ServiceUsageGrpc.ServiceUsageBlockingStub

Service Usage API

ServiceUsageGrpc.ServiceUsageFutureStub

Service Usage API

ServiceUsageGrpc.ServiceUsageImplBase

Service Usage API

ServiceUsageGrpc.ServiceUsageStub

Service Usage API

ServiceUsageProto

ServiceUsageSettings

Settings class to configure an instance of ServiceUsageClient.

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:


 ServiceUsageSettings.Builder serviceUsageSettingsBuilder = ServiceUsageSettings.newBuilder();
 serviceUsageSettingsBuilder
     .getServiceSettings()
     .setRetrySettings(
         serviceUsageSettingsBuilder
             .getServiceSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 ServiceUsageSettings serviceUsageSettings = serviceUsageSettingsBuilder.build();
 

ServiceUsageSettings.Builder

Builder for ServiceUsageSettings.

UpdateAdminOverrideRequest

Request message for UpdateAdminOverride.

Protobuf type google.api.serviceusage.v1beta1.UpdateAdminOverrideRequest

UpdateAdminOverrideRequest.Builder

Request message for UpdateAdminOverride.

Protobuf type google.api.serviceusage.v1beta1.UpdateAdminOverrideRequest

UpdateAdminQuotaPolicyMetadata

Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by UpdateAdminQuotaPolicy.

Protobuf type google.api.serviceusage.v1beta1.UpdateAdminQuotaPolicyMetadata

UpdateAdminQuotaPolicyMetadata.Builder

Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by UpdateAdminQuotaPolicy.

Protobuf type google.api.serviceusage.v1beta1.UpdateAdminQuotaPolicyMetadata

UpdateConsumerOverrideRequest

Request message for UpdateConsumerOverride.

Protobuf type google.api.serviceusage.v1beta1.UpdateConsumerOverrideRequest

UpdateConsumerOverrideRequest.Builder

Request message for UpdateConsumerOverride.

Protobuf type google.api.serviceusage.v1beta1.UpdateConsumerOverrideRequest

Interfaces

AdminQuotaPolicyOrBuilder

BatchCreateAdminOverridesResponseOrBuilder

BatchCreateConsumerOverridesResponseOrBuilder

BatchEnableServicesRequestOrBuilder

ConsumerQuotaLimitOrBuilder

ConsumerQuotaMetricOrBuilder

CreateAdminOverrideRequestOrBuilder

CreateAdminQuotaPolicyMetadataOrBuilder

CreateConsumerOverrideRequestOrBuilder

DeleteAdminOverrideRequestOrBuilder

DeleteAdminQuotaPolicyMetadataOrBuilder

DeleteConsumerOverrideRequestOrBuilder

DisableServiceRequestOrBuilder

EnableServiceRequestOrBuilder

GenerateServiceIdentityRequestOrBuilder

GetConsumerQuotaLimitRequestOrBuilder

GetConsumerQuotaMetricRequestOrBuilder

GetServiceIdentityMetadataOrBuilder

GetServiceIdentityResponseOrBuilder

GetServiceRequestOrBuilder

ImportAdminOverridesMetadataOrBuilder

ImportAdminOverridesRequestOrBuilder

ImportAdminOverridesResponseOrBuilder

ImportAdminQuotaPoliciesMetadataOrBuilder

ImportAdminQuotaPoliciesResponseOrBuilder

ImportConsumerOverridesMetadataOrBuilder

ImportConsumerOverridesRequestOrBuilder

ImportConsumerOverridesResponseOrBuilder

ListAdminOverridesRequestOrBuilder

ListAdminOverridesResponseOrBuilder

ListConsumerOverridesRequestOrBuilder

ListConsumerOverridesResponseOrBuilder

ListConsumerQuotaMetricsRequestOrBuilder

ListConsumerQuotaMetricsResponseOrBuilder

ListServicesRequestOrBuilder

ListServicesResponseOrBuilder

OperationMetadataOrBuilder

OverrideInlineSourceOrBuilder

QuotaBucketOrBuilder

QuotaOverrideOrBuilder

ServiceConfigOrBuilder

ServiceIdentityOrBuilder

ServiceOrBuilder

UpdateAdminOverrideRequestOrBuilder

UpdateAdminQuotaPolicyMetadataOrBuilder

UpdateConsumerOverrideRequestOrBuilder

Enums

GetServiceIdentityResponse.IdentityState

Enum for service identity state.

Protobuf enum google.api.serviceusage.v1beta1.GetServiceIdentityResponse.IdentityState

ImportAdminOverridesRequest.SourceCase

ImportConsumerOverridesRequest.SourceCase

QuotaSafetyCheck

Enumerations of quota safety checks.

Protobuf enum google.api.serviceusage.v1beta1.QuotaSafetyCheck

QuotaView

Selected view of quota. Can be used to request more detailed quota information when retrieving quota metrics and limits.

Protobuf enum google.api.serviceusage.v1beta1.QuotaView

State

Whether or not a service has been enabled for use by a consumer.

Protobuf enum google.api.serviceusage.v1beta1.State