public static class ServiceControllerGrpc.ServiceControllerStub extends io.grpc.stub.AbstractStub<ServiceControllerGrpc.ServiceControllerStub> implements ServiceControllerGrpc.ServiceController
| Modifier and Type | Method and Description |
|---|---|
protected ServiceControllerGrpc.ServiceControllerStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
void |
check(CheckRequest request,
io.grpc.stub.StreamObserver<CheckResponse> responseObserver)
Checks an operation with Google Service Control to decide whether
the given operation should proceed.
|
void |
report(ReportRequest request,
io.grpc.stub.StreamObserver<ReportResponse> responseObserver)
Reports operations to Google Service Control.
|
protected ServiceControllerGrpc.ServiceControllerStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build in class io.grpc.stub.AbstractStub<ServiceControllerGrpc.ServiceControllerStub>public void check(CheckRequest request, io.grpc.stub.StreamObserver<CheckResponse> responseObserver)
ServiceControllerGrpc.ServiceControllerChecks an operation with Google Service Control to decide whether the given operation should proceed. It should be called before the operation is executed. If feasible, the client should cache the check results and reuse them for up to 60s. In case of server errors, the client may rely on the cached results for longer time. This method requires the `servicemanagement.services.check` permission on the specified service. For more information, see [Google Cloud IAM](https://cloud.google.com/iam).
check in interface ServiceControllerGrpc.ServiceControllerpublic void report(ReportRequest request, io.grpc.stub.StreamObserver<ReportResponse> responseObserver)
ServiceControllerGrpc.ServiceControllerReports operations to Google Service Control. It should be called after the operation is completed. If feasible, the client should aggregate reporting data for up to 5s to reduce API traffic. Limiting aggregation to 5s is to reduce data loss during client crashes. Clients should carefully choose the aggregation window to avoid data loss risk more than 0.01% for business and compliance reasons. This method requires the `servicemanagement.services.report` permission on the specified service. For more information, see [Google Cloud IAM](https://cloud.google.com/iam).
report in interface ServiceControllerGrpc.ServiceController