Please wait. This can take some minutes ...
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.
com.wgtwo.api.v0.consent.ConsentServiceGrpc Maven / Gradle / Ivy
package com.wgtwo.api.v0.consent;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.52.1)",
comments = "Source: wgtwo/consents/v0/consents.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class ConsentServiceGrpc {
private ConsentServiceGrpc() {}
public static final String SERVICE_NAME = "wgtwo.consents.v0.ConsentService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getGetConsentsForSubscriptionMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetConsentsForSubscription",
requestType = com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest.class,
responseType = com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetConsentsForSubscriptionMethod() {
io.grpc.MethodDescriptor getGetConsentsForSubscriptionMethod;
if ((getGetConsentsForSubscriptionMethod = ConsentServiceGrpc.getGetConsentsForSubscriptionMethod) == null) {
synchronized (ConsentServiceGrpc.class) {
if ((getGetConsentsForSubscriptionMethod = ConsentServiceGrpc.getGetConsentsForSubscriptionMethod) == null) {
ConsentServiceGrpc.getGetConsentsForSubscriptionMethod = getGetConsentsForSubscriptionMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConsentsForSubscription"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse.getDefaultInstance()))
.setSchemaDescriptor(new ConsentServiceMethodDescriptorSupplier("GetConsentsForSubscription"))
.build();
}
}
}
return getGetConsentsForSubscriptionMethod;
}
private static volatile io.grpc.MethodDescriptor getCreateConsentForSubscriptionMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "CreateConsentForSubscription",
requestType = com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest.class,
responseType = com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getCreateConsentForSubscriptionMethod() {
io.grpc.MethodDescriptor getCreateConsentForSubscriptionMethod;
if ((getCreateConsentForSubscriptionMethod = ConsentServiceGrpc.getCreateConsentForSubscriptionMethod) == null) {
synchronized (ConsentServiceGrpc.class) {
if ((getCreateConsentForSubscriptionMethod = ConsentServiceGrpc.getCreateConsentForSubscriptionMethod) == null) {
ConsentServiceGrpc.getCreateConsentForSubscriptionMethod = getCreateConsentForSubscriptionMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConsentForSubscription"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponse.getDefaultInstance()))
.setSchemaDescriptor(new ConsentServiceMethodDescriptorSupplier("CreateConsentForSubscription"))
.build();
}
}
}
return getCreateConsentForSubscriptionMethod;
}
private static volatile io.grpc.MethodDescriptor getRevokeConsentForSubscriptionMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RevokeConsentForSubscription",
requestType = com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest.class,
responseType = com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getRevokeConsentForSubscriptionMethod() {
io.grpc.MethodDescriptor getRevokeConsentForSubscriptionMethod;
if ((getRevokeConsentForSubscriptionMethod = ConsentServiceGrpc.getRevokeConsentForSubscriptionMethod) == null) {
synchronized (ConsentServiceGrpc.class) {
if ((getRevokeConsentForSubscriptionMethod = ConsentServiceGrpc.getRevokeConsentForSubscriptionMethod) == null) {
ConsentServiceGrpc.getRevokeConsentForSubscriptionMethod = getRevokeConsentForSubscriptionMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "RevokeConsentForSubscription"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponse.getDefaultInstance()))
.setSchemaDescriptor(new ConsentServiceMethodDescriptorSupplier("RevokeConsentForSubscription"))
.build();
}
}
}
return getRevokeConsentForSubscriptionMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static ConsentServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ConsentServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ConsentServiceStub(channel, callOptions);
}
};
return ConsentServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static ConsentServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ConsentServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ConsentServiceBlockingStub(channel, callOptions);
}
};
return ConsentServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static ConsentServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ConsentServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ConsentServiceFutureStub(channel, callOptions);
}
};
return ConsentServiceFutureStub.newStub(factory, channel);
}
/**
*/
public static abstract class ConsentServiceImplBase implements io.grpc.BindableService {
/**
*/
public void getConsentsForSubscription(com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConsentsForSubscriptionMethod(), responseObserver);
}
/**
*/
public void createConsentForSubscription(com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateConsentForSubscriptionMethod(), responseObserver);
}
/**
*/
public void revokeConsentForSubscription(com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRevokeConsentForSubscriptionMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getGetConsentsForSubscriptionMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest,
com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse>(
this, METHODID_GET_CONSENTS_FOR_SUBSCRIPTION)))
.addMethod(
getCreateConsentForSubscriptionMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest,
com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponse>(
this, METHODID_CREATE_CONSENT_FOR_SUBSCRIPTION)))
.addMethod(
getRevokeConsentForSubscriptionMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest,
com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponse>(
this, METHODID_REVOKE_CONSENT_FOR_SUBSCRIPTION)))
.build();
}
}
/**
*/
public static final class ConsentServiceStub extends io.grpc.stub.AbstractAsyncStub {
private ConsentServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ConsentServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ConsentServiceStub(channel, callOptions);
}
/**
*/
public void getConsentsForSubscription(com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetConsentsForSubscriptionMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void createConsentForSubscription(com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateConsentForSubscriptionMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void revokeConsentForSubscription(com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRevokeConsentForSubscriptionMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*/
public static final class ConsentServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private ConsentServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ConsentServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ConsentServiceBlockingStub(channel, callOptions);
}
/**
*/
public com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionResponse getConsentsForSubscription(com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetConsentsForSubscriptionMethod(), getCallOptions(), request);
}
/**
*/
public com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionResponse createConsentForSubscription(com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateConsentForSubscriptionMethod(), getCallOptions(), request);
}
/**
*/
public com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionResponse revokeConsentForSubscription(com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRevokeConsentForSubscriptionMethod(), getCallOptions(), request);
}
}
/**
*/
public static final class ConsentServiceFutureStub extends io.grpc.stub.AbstractFutureStub {
private ConsentServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ConsentServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ConsentServiceFutureStub(channel, callOptions);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture getConsentsForSubscription(
com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetConsentsForSubscriptionMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture createConsentForSubscription(
com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateConsentForSubscriptionMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture revokeConsentForSubscription(
com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRevokeConsentForSubscriptionMethod(), getCallOptions()), request);
}
}
private static final int METHODID_GET_CONSENTS_FOR_SUBSCRIPTION = 0;
private static final int METHODID_CREATE_CONSENT_FOR_SUBSCRIPTION = 1;
private static final int METHODID_REVOKE_CONSENT_FOR_SUBSCRIPTION = 2;
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 ConsentServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(ConsentServiceImplBase 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_GET_CONSENTS_FOR_SUBSCRIPTION:
serviceImpl.getConsentsForSubscription((com.wgtwo.api.v0.consent.ConsentsProto.GetConsentsForSubscriptionRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CREATE_CONSENT_FOR_SUBSCRIPTION:
serviceImpl.createConsentForSubscription((com.wgtwo.api.v0.consent.ConsentsProto.CreateConsentForSubscriptionRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_REVOKE_CONSENT_FOR_SUBSCRIPTION:
serviceImpl.revokeConsentForSubscription((com.wgtwo.api.v0.consent.ConsentsProto.RevokeConsentForSubscriptionRequest) 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 ConsentServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
ConsentServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.wgtwo.api.v0.consent.ConsentsProto.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("ConsentService");
}
}
private static final class ConsentServiceFileDescriptorSupplier
extends ConsentServiceBaseDescriptorSupplier {
ConsentServiceFileDescriptorSupplier() {}
}
private static final class ConsentServiceMethodDescriptorSupplier
extends ConsentServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
ConsentServiceMethodDescriptorSupplier(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 (ConsentServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new ConsentServiceFileDescriptorSupplier())
.addMethod(getGetConsentsForSubscriptionMethod())
.addMethod(getCreateConsentForSubscriptionMethod())
.addMethod(getRevokeConsentForSubscriptionMethod())
.build();
}
}
}
return result;
}
}