main.grpc.com.streamlayer.interactive.event.moderation.QuestionsModerationGrpc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sl-protofiles Show documentation
Show all versions of sl-protofiles Show documentation
StreamLayer Java Protofiles
package com.streamlayer.interactive.event.moderation;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.65.1)",
comments = "Source: streamlayer/interactive/event/moderation/interactive.event.moderation.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class QuestionsModerationGrpc {
private QuestionsModerationGrpc() {}
public static final java.lang.String SERVICE_NAME = "streamlayer.interactive.event.moderation.QuestionsModeration";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getCreateMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Create",
requestType = com.streamlayer.interactive.event.moderation.CreateModerationRequest.class,
responseType = com.streamlayer.interactive.event.moderation.CreateModerationResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getCreateMethod() {
io.grpc.MethodDescriptor getCreateMethod;
if ((getCreateMethod = QuestionsModerationGrpc.getCreateMethod) == null) {
synchronized (QuestionsModerationGrpc.class) {
if ((getCreateMethod = QuestionsModerationGrpc.getCreateMethod) == null) {
QuestionsModerationGrpc.getCreateMethod = getCreateMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Create"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.interactive.event.moderation.CreateModerationRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.interactive.event.moderation.CreateModerationResponse.getDefaultInstance()))
.build();
}
}
}
return getCreateMethod;
}
private static volatile io.grpc.MethodDescriptor getGetMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Get",
requestType = com.streamlayer.interactive.event.moderation.GetModerationRequest.class,
responseType = com.streamlayer.interactive.event.moderation.GetModerationResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetMethod() {
io.grpc.MethodDescriptor getGetMethod;
if ((getGetMethod = QuestionsModerationGrpc.getGetMethod) == null) {
synchronized (QuestionsModerationGrpc.class) {
if ((getGetMethod = QuestionsModerationGrpc.getGetMethod) == null) {
QuestionsModerationGrpc.getGetMethod = getGetMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Get"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.interactive.event.moderation.GetModerationRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.interactive.event.moderation.GetModerationResponse.getDefaultInstance()))
.build();
}
}
}
return getGetMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdateMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Update",
requestType = com.streamlayer.interactive.event.moderation.UpdateModerationRequest.class,
responseType = com.streamlayer.interactive.event.moderation.UpdateModerationResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUpdateMethod() {
io.grpc.MethodDescriptor getUpdateMethod;
if ((getUpdateMethod = QuestionsModerationGrpc.getUpdateMethod) == null) {
synchronized (QuestionsModerationGrpc.class) {
if ((getUpdateMethod = QuestionsModerationGrpc.getUpdateMethod) == null) {
QuestionsModerationGrpc.getUpdateMethod = getUpdateMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Update"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.interactive.event.moderation.UpdateModerationRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.interactive.event.moderation.UpdateModerationResponse.getDefaultInstance()))
.build();
}
}
}
return getUpdateMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static QuestionsModerationStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public QuestionsModerationStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new QuestionsModerationStub(channel, callOptions);
}
};
return QuestionsModerationStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static QuestionsModerationBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public QuestionsModerationBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new QuestionsModerationBlockingStub(channel, callOptions);
}
};
return QuestionsModerationBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static QuestionsModerationFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public QuestionsModerationFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new QuestionsModerationFutureStub(channel, callOptions);
}
};
return QuestionsModerationFutureStub.newStub(factory, channel);
}
/**
*/
public interface AsyncService {
/**
*/
default void create(com.streamlayer.interactive.event.moderation.CreateModerationRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateMethod(), responseObserver);
}
/**
*/
default void get(com.streamlayer.interactive.event.moderation.GetModerationRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMethod(), responseObserver);
}
/**
*/
default void update(com.streamlayer.interactive.event.moderation.UpdateModerationRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service QuestionsModeration.
*/
public static abstract class QuestionsModerationImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return QuestionsModerationGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service QuestionsModeration.
*/
public static final class QuestionsModerationStub
extends io.grpc.stub.AbstractAsyncStub {
private QuestionsModerationStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected QuestionsModerationStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new QuestionsModerationStub(channel, callOptions);
}
/**
*/
public void create(com.streamlayer.interactive.event.moderation.CreateModerationRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void get(com.streamlayer.interactive.event.moderation.GetModerationRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void update(com.streamlayer.interactive.event.moderation.UpdateModerationRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateMethod(), getCallOptions()), request, responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service QuestionsModeration.
*/
public static final class QuestionsModerationBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private QuestionsModerationBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected QuestionsModerationBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new QuestionsModerationBlockingStub(channel, callOptions);
}
/**
*/
public com.streamlayer.interactive.event.moderation.CreateModerationResponse create(com.streamlayer.interactive.event.moderation.CreateModerationRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateMethod(), getCallOptions(), request);
}
/**
*/
public com.streamlayer.interactive.event.moderation.GetModerationResponse get(com.streamlayer.interactive.event.moderation.GetModerationRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetMethod(), getCallOptions(), request);
}
/**
*/
public com.streamlayer.interactive.event.moderation.UpdateModerationResponse update(com.streamlayer.interactive.event.moderation.UpdateModerationRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service QuestionsModeration.
*/
public static final class QuestionsModerationFutureStub
extends io.grpc.stub.AbstractFutureStub {
private QuestionsModerationFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected QuestionsModerationFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new QuestionsModerationFutureStub(channel, callOptions);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture create(
com.streamlayer.interactive.event.moderation.CreateModerationRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture get(
com.streamlayer.interactive.event.moderation.GetModerationRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture update(
com.streamlayer.interactive.event.moderation.UpdateModerationRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateMethod(), getCallOptions()), request);
}
}
private static final int METHODID_CREATE = 0;
private static final int METHODID_GET = 1;
private static final int METHODID_UPDATE = 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 AsyncService serviceImpl;
private final int methodId;
MethodHandlers(AsyncService 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_CREATE:
serviceImpl.create((com.streamlayer.interactive.event.moderation.CreateModerationRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET:
serviceImpl.get((com.streamlayer.interactive.event.moderation.GetModerationRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE:
serviceImpl.update((com.streamlayer.interactive.event.moderation.UpdateModerationRequest) 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();
}
}
}
public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getCreateMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.streamlayer.interactive.event.moderation.CreateModerationRequest,
com.streamlayer.interactive.event.moderation.CreateModerationResponse>(
service, METHODID_CREATE)))
.addMethod(
getGetMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.streamlayer.interactive.event.moderation.GetModerationRequest,
com.streamlayer.interactive.event.moderation.GetModerationResponse>(
service, METHODID_GET)))
.addMethod(
getUpdateMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.streamlayer.interactive.event.moderation.UpdateModerationRequest,
com.streamlayer.interactive.event.moderation.UpdateModerationResponse>(
service, METHODID_UPDATE)))
.build();
}
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
io.grpc.ServiceDescriptor result = serviceDescriptor;
if (result == null) {
synchronized (QuestionsModerationGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.addMethod(getCreateMethod())
.addMethod(getGetMethod())
.addMethod(getUpdateMethod())
.build();
}
}
}
return result;
}
}