@Generated("by gapic-generator-java")
Package com.google.api.serviceusage.v1
A client to Service Usage API
The interfaces provided are listed below, along with usage samples.
======================= ServiceUsageClient =======================
Service Description: Enables services that service consumers want to use on Google Cloud Platform, lists the available or enabled services, or disables services that service consumers no longer use.
See [Service Usage API](https://cloud.google.com/service-usage/docs/overview)
Sample for ServiceUsageClient:
// 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
try (ServiceUsageClient serviceUsageClient = ServiceUsageClient.create()) {
GetServiceRequest request = GetServiceRequest.newBuilder().setName("name3373707").build();
Service response = serviceUsageClient.getService(request);
}
-
Interface Summary Interface Description BatchEnableServicesRequestOrBuilder BatchEnableServicesResponse.EnableFailureOrBuilder BatchEnableServicesResponseOrBuilder BatchGetServicesRequestOrBuilder BatchGetServicesResponseOrBuilder DisableServiceRequestOrBuilder DisableServiceResponseOrBuilder EnableServiceRequestOrBuilder EnableServiceResponseOrBuilder GetServiceRequestOrBuilder ListServicesRequestOrBuilder ListServicesResponseOrBuilder OperationMetadataOrBuilder ServiceConfigOrBuilder ServiceOrBuilder ServiceUsageGrpc.AsyncService Enables services that service consumers want to use on Google Cloud Platform, lists the available or enabled services, or disables services that service consumers no longer use. -
Class Summary Class Description BatchEnableServicesRequest Request message for the `BatchEnableServices` method.BatchEnableServicesRequest.Builder Request message for the `BatchEnableServices` method.BatchEnableServicesResponse Response message for the `BatchEnableServices` method.BatchEnableServicesResponse.Builder Response message for the `BatchEnableServices` method.BatchEnableServicesResponse.EnableFailure Provides error messages for the failing services.BatchEnableServicesResponse.EnableFailure.Builder Provides error messages for the failing services.BatchGetServicesRequest Request message for the `BatchGetServices` method.BatchGetServicesRequest.Builder Request message for the `BatchGetServices` method.BatchGetServicesResponse Response message for the `BatchGetServices` method.BatchGetServicesResponse.Builder Response message for the `BatchGetServices` method.DisableServiceRequest Request message for the `DisableService` method.DisableServiceRequest.Builder Request message for the `DisableService` method.DisableServiceResponse Response message for the `DisableService` method.DisableServiceResponse.Builder Response message for the `DisableService` method.EnableServiceRequest Request message for the `EnableService` method.EnableServiceRequest.Builder Request message for the `EnableService` method.EnableServiceResponse Response message for the `EnableService` method.EnableServiceResponse.Builder Response message for the `EnableService` method.GetServiceRequest Request message for the `GetService` method.GetServiceRequest.Builder Request message for the `GetService` method.ListServicesRequest Request message for the `ListServices` method.ListServicesRequest.Builder Request message for the `ListServices` method.ListServicesResponse Response message for the `ListServices` method.ListServicesResponse.Builder Response message for the `ListServices` method.OperationMetadata The operation metadata returned for the batchend services operation.OperationMetadata.Builder The operation metadata returned for the batchend services operation.ResourcesProto Service A service that is available for use by the consumer.Service.Builder A service that is available for use by the consumer.ServiceConfig The configuration of the service.ServiceConfig.Builder The configuration of the service.ServiceUsageClient Service Description: Enables services that service consumers want to use on Google Cloud Platform, lists the available or enabled services, or disables services that service consumers no longer use.ServiceUsageClient.ListServicesFixedSizeCollection ServiceUsageClient.ListServicesPage ServiceUsageClient.ListServicesPagedResponse ServiceUsageGrpc Enables services that service consumers want to use on Google Cloud Platform, lists the available or enabled services, or disables services that service consumers no longer use.ServiceUsageGrpc.ServiceUsageBlockingStub A stub to allow clients to do synchronous rpc calls to service ServiceUsage.ServiceUsageGrpc.ServiceUsageFutureStub A stub to allow clients to do ListenableFuture-style rpc calls to service ServiceUsage.ServiceUsageGrpc.ServiceUsageImplBase Base class for the server implementation of the service ServiceUsage.ServiceUsageGrpc.ServiceUsageStub A stub to allow clients to do asynchronous rpc calls to service ServiceUsage.ServiceUsageProto ServiceUsageSettings Settings class to configure an instance ofServiceUsageClient
.ServiceUsageSettings.Builder Builder for ServiceUsageSettings. -
Enum Summary Enum Description DisableServiceRequest.CheckIfServiceHasUsage Enum to determine if service usage should be checked when disabling a service.State Whether or not a service has been enabled for use by a consumer.