@Generated("by gapic-generator-java")
Package com.google.api.servicecontrol.v1
The interfaces provided are listed below, along with usage samples.
======================= QuotaControllerClient =======================
Service Description: [Google Quota Control API](/service-control/overview)
Allows clients to allocate and release quota against a [managed service](https://cloud.google.com/service-management/reference/rpc/google.api/servicemanagement.v1#google.api.servicemanagement.v1.ManagedService).
Sample for QuotaControllerClient:
// 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 (QuotaControllerClient quotaControllerClient = QuotaControllerClient.create()) {
AllocateQuotaRequest request =
AllocateQuotaRequest.newBuilder()
.setServiceName("serviceName-1928572192")
.setAllocateOperation(QuotaOperation.newBuilder().build())
.setServiceConfigId("serviceConfigId650537426")
.build();
AllocateQuotaResponse response = quotaControllerClient.allocateQuota(request);
}
======================= ServiceControllerClient =======================
Service Description: [Google Service Control API](/service-control/overview)
Lets clients check and report operations against a [managed service](https://cloud.google.com/service-management/reference/rpc/google.api/servicemanagement.v1#google.api.servicemanagement.v1.ManagedService).
Sample for ServiceControllerClient:
// 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 (ServiceControllerClient serviceControllerClient = ServiceControllerClient.create()) {
CheckRequest request =
CheckRequest.newBuilder()
.setServiceName("serviceName-1928572192")
.setOperation(Operation.newBuilder().build())
.setServiceConfigId("serviceConfigId650537426")
.build();
CheckResponse response = serviceControllerClient.check(request);
}
-
Class Summary Class Description AllocateQuotaRequest Request message for the AllocateQuota method.AllocateQuotaRequest.Builder Request message for the AllocateQuota method.AllocateQuotaResponse Response message for the AllocateQuota method.AllocateQuotaResponse.Builder Response message for the AllocateQuota method.CheckError Defines the errors to be returned in [google.api.servicecontrol.v1.CheckResponse.check_errors][google.api.servicecontrol.v1.CheckResponse.check_errors].CheckError.Builder Defines the errors to be returned in [google.api.servicecontrol.v1.CheckResponse.check_errors][google.api.servicecontrol.v1.CheckResponse.check_errors].CheckErrorProto CheckRequest Request message for the Check method.CheckRequest.Builder Request message for the Check method.CheckResponse Response message for the Check method.CheckResponse.Builder Response message for the Check method.CheckResponse.CheckInfo Contains additional information about the check operation.CheckResponse.CheckInfo.Builder Contains additional information about the check operation.CheckResponse.ConsumerInfo `ConsumerInfo` provides information about the consumer.CheckResponse.ConsumerInfo.Builder `ConsumerInfo` provides information about the consumer.Distribution Distribution represents a frequency distribution of double-valued sample points.Distribution.Builder Distribution represents a frequency distribution of double-valued sample points.Distribution.ExplicitBuckets Describing buckets with arbitrary user-provided width.Distribution.ExplicitBuckets.Builder Describing buckets with arbitrary user-provided width.Distribution.ExponentialBuckets Describing buckets with exponentially growing width.Distribution.ExponentialBuckets.Builder Describing buckets with exponentially growing width.Distribution.LinearBuckets Describing buckets with constant width.Distribution.LinearBuckets.Builder Describing buckets with constant width.DistributionProto HttpRequest A common proto for logging HTTP requests.HttpRequest.Builder A common proto for logging HTTP requests.HttpRequestProto LogEntry An individual log entry.LogEntry.Builder An individual log entry.LogEntryOperation Additional information about a potentially long-running operation with which a log entry is associated.LogEntryOperation.Builder Additional information about a potentially long-running operation with which a log entry is associated.LogEntryProto LogEntrySourceLocation Additional information about the source code location that produced the log entry.LogEntrySourceLocation.Builder Additional information about the source code location that produced the log entry.MetricValue Represents a single metric value.MetricValue.Builder Represents a single metric value.MetricValueSet Represents a set of metric values in the same metric.MetricValueSet.Builder Represents a set of metric values in the same metric.MetricValueSetProto Operation Represents information regarding an operation.Operation.Builder Represents information regarding an operation.OperationProto QuotaControllerClient Service Description: [Google Quota Control API](/service-control/overview)QuotaControllerGrpc [Google Quota Control API](/service-control/overview) Allows clients to allocate and release quota against a [managed service](https://cloud.google.com/service-management/reference/rpc/google.api/servicemanagement.v1#google.api.servicemanagement.v1.ManagedService).QuotaControllerGrpc.QuotaControllerBlockingStub A stub to allow clients to do synchronous rpc calls to service QuotaController.QuotaControllerGrpc.QuotaControllerFutureStub A stub to allow clients to do ListenableFuture-style rpc calls to service QuotaController.QuotaControllerGrpc.QuotaControllerImplBase Base class for the server implementation of the service QuotaController.QuotaControllerGrpc.QuotaControllerStub A stub to allow clients to do asynchronous rpc calls to service QuotaController.QuotaControllerProto QuotaControllerSettings Settings class to configure an instance ofQuotaControllerClient
.QuotaControllerSettings.Builder Builder for QuotaControllerSettings.QuotaError Represents error information for [QuotaOperation][google.api.servicecontrol.v1.QuotaOperation].QuotaError.Builder Represents error information for [QuotaOperation][google.api.servicecontrol.v1.QuotaOperation].QuotaOperation Represents information regarding a quota operation.QuotaOperation.Builder Represents information regarding a quota operation.ReportRequest Request message for the Report method.ReportRequest.Builder Request message for the Report method.ReportResponse Response message for the Report method.ReportResponse.Builder Response message for the Report method.ReportResponse.ReportError Represents the processing error of one [Operation][google.api.servicecontrol.v1.Operation] in the request.ReportResponse.ReportError.Builder Represents the processing error of one [Operation][google.api.servicecontrol.v1.Operation] in the request.ServiceControllerClient Service Description: [Google Service Control API](/service-control/overview)ServiceControllerGrpc [Google Service Control API](/service-control/overview) Lets clients check and report operations against a [managed service](https://cloud.google.com/service-management/reference/rpc/google.api/servicemanagement.v1#google.api.servicemanagement.v1.ManagedService).ServiceControllerGrpc.ServiceControllerBlockingStub A stub to allow clients to do synchronous rpc calls to service ServiceController.ServiceControllerGrpc.ServiceControllerFutureStub A stub to allow clients to do ListenableFuture-style rpc calls to service ServiceController.ServiceControllerGrpc.ServiceControllerImplBase Base class for the server implementation of the service ServiceController.ServiceControllerGrpc.ServiceControllerStub A stub to allow clients to do asynchronous rpc calls to service ServiceController.ServiceControllerProto ServiceControllerSettings Settings class to configure an instance ofServiceControllerClient
.ServiceControllerSettings.Builder Builder for ServiceControllerSettings. -
Enum Summary Enum Description CheckError.Code Error codes for Check responses.CheckResponse.ConsumerInfo.ConsumerType The type of the consumer as defined in [Google Resource Manager](https://cloud.google.com/resource-manager/).Distribution.BucketOptionCase LogEntry.PayloadCase MetricValue.ValueCase Operation.Importance Defines the importance of the data contained in the operation.QuotaError.Code Error codes related to project config validations are deprecated since the quota controller methods do not perform these validations.QuotaOperation.QuotaMode Supported quota modes.