Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
* A generic interface for performing authorization check on incoming
* requests to a networked service.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.22.1)",
comments = "Source: envoy/service/auth/v2alpha/external_auth.proto")
public final class AuthorizationGrpc {
private AuthorizationGrpc() {}
public static final String SERVICE_NAME = "envoy.service.auth.v2alpha.Authorization";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getCheckMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Check",
requestType = io.envoyproxy.envoy.service.auth.v2.CheckRequest.class,
responseType = io.envoyproxy.envoy.service.auth.v2.CheckResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getCheckMethod() {
io.grpc.MethodDescriptor getCheckMethod;
if ((getCheckMethod = AuthorizationGrpc.getCheckMethod) == null) {
synchronized (AuthorizationGrpc.class) {
if ((getCheckMethod = AuthorizationGrpc.getCheckMethod) == null) {
AuthorizationGrpc.getCheckMethod = getCheckMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"envoy.service.auth.v2alpha.Authorization", "Check"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.envoyproxy.envoy.service.auth.v2.CheckRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.envoyproxy.envoy.service.auth.v2.CheckResponse.getDefaultInstance()))
.setSchemaDescriptor(new AuthorizationMethodDescriptorSupplier("Check"))
.build();
}
}
}
return getCheckMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static AuthorizationStub newStub(io.grpc.Channel channel) {
return new AuthorizationStub(channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static AuthorizationBlockingStub newBlockingStub(
io.grpc.Channel channel) {
return new AuthorizationBlockingStub(channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static AuthorizationFutureStub newFutureStub(
io.grpc.Channel channel) {
return new AuthorizationFutureStub(channel);
}
/**
*
* A generic interface for performing authorization check on incoming
* requests to a networked service.
*
*/
public static abstract class AuthorizationImplBase implements io.grpc.BindableService {
/**
*
* Performs authorization check based on the attributes associated with the
* incoming request, and returns status `OK` or not `OK`.
*
*/
public void check(io.envoyproxy.envoy.service.auth.v2.CheckRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getCheckMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getCheckMethod(),
asyncUnaryCall(
new MethodHandlers<
io.envoyproxy.envoy.service.auth.v2.CheckRequest,
io.envoyproxy.envoy.service.auth.v2.CheckResponse>(
this, METHODID_CHECK)))
.build();
}
}
/**
*
* A generic interface for performing authorization check on incoming
* requests to a networked service.
*
*/
public static final class AuthorizationStub extends io.grpc.stub.AbstractStub {
private AuthorizationStub(io.grpc.Channel channel) {
super(channel);
}
private AuthorizationStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AuthorizationStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new AuthorizationStub(channel, callOptions);
}
/**
*
* Performs authorization check based on the attributes associated with the
* incoming request, and returns status `OK` or not `OK`.
*