live.lingting.protobuf.SecurityGrpcAuthorizationServiceGrpc Maven / Gradle / Ivy
The newest version!
package live.lingting.protobuf;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.53.0)",
comments = "Source: SecurityGrpcAuthorization.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class SecurityGrpcAuthorizationServiceGrpc {
private SecurityGrpcAuthorizationServiceGrpc() {}
public static final String SERVICE_NAME = "SecurityGrpcAuthorizationService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getLogoutMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "logout",
requestType = com.google.protobuf.Empty.class,
responseType = live.lingting.protobuf.SecurityGrpcAuthorization.AuthorizationVO.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getLogoutMethod() {
io.grpc.MethodDescriptor getLogoutMethod;
if ((getLogoutMethod = SecurityGrpcAuthorizationServiceGrpc.getLogoutMethod) == null) {
synchronized (SecurityGrpcAuthorizationServiceGrpc.class) {
if ((getLogoutMethod = SecurityGrpcAuthorizationServiceGrpc.getLogoutMethod) == null) {
SecurityGrpcAuthorizationServiceGrpc.getLogoutMethod = getLogoutMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "logout"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
live.lingting.protobuf.SecurityGrpcAuthorization.AuthorizationVO.getDefaultInstance()))
.setSchemaDescriptor(new SecurityGrpcAuthorizationServiceMethodDescriptorSupplier("logout"))
.build();
}
}
}
return getLogoutMethod;
}
private static volatile io.grpc.MethodDescriptor getPasswordMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "password",
requestType = live.lingting.protobuf.SecurityGrpcAuthorization.AuthorizationPasswordPO.class,
responseType = live.lingting.protobuf.SecurityGrpcAuthorization.AuthorizationVO.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getPasswordMethod() {
io.grpc.MethodDescriptor getPasswordMethod;
if ((getPasswordMethod = SecurityGrpcAuthorizationServiceGrpc.getPasswordMethod) == null) {
synchronized (SecurityGrpcAuthorizationServiceGrpc.class) {
if ((getPasswordMethod = SecurityGrpcAuthorizationServiceGrpc.getPasswordMethod) == null) {
SecurityGrpcAuthorizationServiceGrpc.getPasswordMethod = getPasswordMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "password"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
live.lingting.protobuf.SecurityGrpcAuthorization.AuthorizationPasswordPO.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
live.lingting.protobuf.SecurityGrpcAuthorization.AuthorizationVO.getDefaultInstance()))
.setSchemaDescriptor(new SecurityGrpcAuthorizationServiceMethodDescriptorSupplier("password"))
.build();
}
}
}
return getPasswordMethod;
}
private static volatile io.grpc.MethodDescriptor getRefreshMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "refresh",
requestType = com.google.protobuf.Empty.class,
responseType = live.lingting.protobuf.SecurityGrpcAuthorization.AuthorizationVO.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getRefreshMethod() {
io.grpc.MethodDescriptor getRefreshMethod;
if ((getRefreshMethod = SecurityGrpcAuthorizationServiceGrpc.getRefreshMethod) == null) {
synchronized (SecurityGrpcAuthorizationServiceGrpc.class) {
if ((getRefreshMethod = SecurityGrpcAuthorizationServiceGrpc.getRefreshMethod) == null) {
SecurityGrpcAuthorizationServiceGrpc.getRefreshMethod = getRefreshMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "refresh"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
live.lingting.protobuf.SecurityGrpcAuthorization.AuthorizationVO.getDefaultInstance()))
.setSchemaDescriptor(new SecurityGrpcAuthorizationServiceMethodDescriptorSupplier("refresh"))
.build();
}
}
}
return getRefreshMethod;
}
private static volatile io.grpc.MethodDescriptor getResolveMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "resolve",
requestType = com.google.protobuf.Empty.class,
responseType = live.lingting.protobuf.SecurityGrpcAuthorization.AuthorizationVO.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getResolveMethod() {
io.grpc.MethodDescriptor getResolveMethod;
if ((getResolveMethod = SecurityGrpcAuthorizationServiceGrpc.getResolveMethod) == null) {
synchronized (SecurityGrpcAuthorizationServiceGrpc.class) {
if ((getResolveMethod = SecurityGrpcAuthorizationServiceGrpc.getResolveMethod) == null) {
SecurityGrpcAuthorizationServiceGrpc.getResolveMethod = getResolveMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "resolve"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
live.lingting.protobuf.SecurityGrpcAuthorization.AuthorizationVO.getDefaultInstance()))
.setSchemaDescriptor(new SecurityGrpcAuthorizationServiceMethodDescriptorSupplier("resolve"))
.build();
}
}
}
return getResolveMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static SecurityGrpcAuthorizationServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public SecurityGrpcAuthorizationServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SecurityGrpcAuthorizationServiceStub(channel, callOptions);
}
};
return SecurityGrpcAuthorizationServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static SecurityGrpcAuthorizationServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public SecurityGrpcAuthorizationServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SecurityGrpcAuthorizationServiceBlockingStub(channel, callOptions);
}
};
return SecurityGrpcAuthorizationServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static SecurityGrpcAuthorizationServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public SecurityGrpcAuthorizationServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SecurityGrpcAuthorizationServiceFutureStub(channel, callOptions);
}
};
return SecurityGrpcAuthorizationServiceFutureStub.newStub(factory, channel);
}
/**
*/
public static abstract class SecurityGrpcAuthorizationServiceImplBase implements io.grpc.BindableService {
/**
*/
public void logout(com.google.protobuf.Empty request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLogoutMethod(), responseObserver);
}
/**
*/
public void password(live.lingting.protobuf.SecurityGrpcAuthorization.AuthorizationPasswordPO request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPasswordMethod(), responseObserver);
}
/**
*/
public void refresh(com.google.protobuf.Empty request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRefreshMethod(), responseObserver);
}
/**
*/
public void resolve(com.google.protobuf.Empty request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getResolveMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getLogoutMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.protobuf.Empty,
live.lingting.protobuf.SecurityGrpcAuthorization.AuthorizationVO>(
this, METHODID_LOGOUT)))
.addMethod(
getPasswordMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
live.lingting.protobuf.SecurityGrpcAuthorization.AuthorizationPasswordPO,
live.lingting.protobuf.SecurityGrpcAuthorization.AuthorizationVO>(
this, METHODID_PASSWORD)))
.addMethod(
getRefreshMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.protobuf.Empty,
live.lingting.protobuf.SecurityGrpcAuthorization.AuthorizationVO>(
this, METHODID_REFRESH)))
.addMethod(
getResolveMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.protobuf.Empty,
live.lingting.protobuf.SecurityGrpcAuthorization.AuthorizationVO>(
this, METHODID_RESOLVE)))
.build();
}
}
/**
*/
public static final class SecurityGrpcAuthorizationServiceStub extends io.grpc.stub.AbstractAsyncStub {
private SecurityGrpcAuthorizationServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected SecurityGrpcAuthorizationServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SecurityGrpcAuthorizationServiceStub(channel, callOptions);
}
/**
*/
public void logout(com.google.protobuf.Empty request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getLogoutMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void password(live.lingting.protobuf.SecurityGrpcAuthorization.AuthorizationPasswordPO request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getPasswordMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void refresh(com.google.protobuf.Empty request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRefreshMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void resolve(com.google.protobuf.Empty request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getResolveMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*/
public static final class SecurityGrpcAuthorizationServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private SecurityGrpcAuthorizationServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected SecurityGrpcAuthorizationServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SecurityGrpcAuthorizationServiceBlockingStub(channel, callOptions);
}
/**
*/
public live.lingting.protobuf.SecurityGrpcAuthorization.AuthorizationVO logout(com.google.protobuf.Empty request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getLogoutMethod(), getCallOptions(), request);
}
/**
*/
public live.lingting.protobuf.SecurityGrpcAuthorization.AuthorizationVO password(live.lingting.protobuf.SecurityGrpcAuthorization.AuthorizationPasswordPO request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getPasswordMethod(), getCallOptions(), request);
}
/**
*/
public live.lingting.protobuf.SecurityGrpcAuthorization.AuthorizationVO refresh(com.google.protobuf.Empty request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRefreshMethod(), getCallOptions(), request);
}
/**
*/
public live.lingting.protobuf.SecurityGrpcAuthorization.AuthorizationVO resolve(com.google.protobuf.Empty request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getResolveMethod(), getCallOptions(), request);
}
}
/**
*/
public static final class SecurityGrpcAuthorizationServiceFutureStub extends io.grpc.stub.AbstractFutureStub {
private SecurityGrpcAuthorizationServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected SecurityGrpcAuthorizationServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SecurityGrpcAuthorizationServiceFutureStub(channel, callOptions);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture logout(
com.google.protobuf.Empty request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getLogoutMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture password(
live.lingting.protobuf.SecurityGrpcAuthorization.AuthorizationPasswordPO request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getPasswordMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture refresh(
com.google.protobuf.Empty request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRefreshMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture resolve(
com.google.protobuf.Empty request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getResolveMethod(), getCallOptions()), request);
}
}
private static final int METHODID_LOGOUT = 0;
private static final int METHODID_PASSWORD = 1;
private static final int METHODID_REFRESH = 2;
private static final int METHODID_RESOLVE = 3;
private static final class MethodHandlers implements
io.grpc.stub.ServerCalls.UnaryMethod,
io.grpc.stub.ServerCalls.ServerStreamingMethod,
io.grpc.stub.ServerCalls.ClientStreamingMethod,
io.grpc.stub.ServerCalls.BidiStreamingMethod {
private final SecurityGrpcAuthorizationServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(SecurityGrpcAuthorizationServiceImplBase serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
case METHODID_LOGOUT:
serviceImpl.logout((com.google.protobuf.Empty) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_PASSWORD:
serviceImpl.password((live.lingting.protobuf.SecurityGrpcAuthorization.AuthorizationPasswordPO) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_REFRESH:
serviceImpl.refresh((com.google.protobuf.Empty) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_RESOLVE:
serviceImpl.resolve((com.google.protobuf.Empty) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
default:
throw new AssertionError();
}
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public io.grpc.stub.StreamObserver invoke(
io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
default:
throw new AssertionError();
}
}
}
private static abstract class SecurityGrpcAuthorizationServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
SecurityGrpcAuthorizationServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return live.lingting.protobuf.SecurityGrpcAuthorization.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("SecurityGrpcAuthorizationService");
}
}
private static final class SecurityGrpcAuthorizationServiceFileDescriptorSupplier
extends SecurityGrpcAuthorizationServiceBaseDescriptorSupplier {
SecurityGrpcAuthorizationServiceFileDescriptorSupplier() {}
}
private static final class SecurityGrpcAuthorizationServiceMethodDescriptorSupplier
extends SecurityGrpcAuthorizationServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
SecurityGrpcAuthorizationServiceMethodDescriptorSupplier(String methodName) {
this.methodName = methodName;
}
@java.lang.Override
public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
return getServiceDescriptor().findMethodByName(methodName);
}
}
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
io.grpc.ServiceDescriptor result = serviceDescriptor;
if (result == null) {
synchronized (SecurityGrpcAuthorizationServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new SecurityGrpcAuthorizationServiceFileDescriptorSupplier())
.addMethod(getLogoutMethod())
.addMethod(getPasswordMethod())
.addMethod(getRefreshMethod())
.addMethod(getResolveMethod())
.build();
}
}
}
return result;
}
}