main.grpc.com.streamlayer.interactive.leaderboard.admin.AdminLeaderboardGrpc 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.leaderboard.admin;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.65.1)",
comments = "Source: streamlayer/interactive/leaderboard/admin/interactive.leaderboard.admin.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class AdminLeaderboardGrpc {
private AdminLeaderboardGrpc() {}
public static final java.lang.String SERVICE_NAME = "streamlayer.interactive.leaderboard.admin.AdminLeaderboard";
// 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.leaderboard.admin.CreateRequest.class,
responseType = com.streamlayer.interactive.leaderboard.admin.CreateResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getCreateMethod() {
io.grpc.MethodDescriptor getCreateMethod;
if ((getCreateMethod = AdminLeaderboardGrpc.getCreateMethod) == null) {
synchronized (AdminLeaderboardGrpc.class) {
if ((getCreateMethod = AdminLeaderboardGrpc.getCreateMethod) == null) {
AdminLeaderboardGrpc.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.leaderboard.admin.CreateRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.interactive.leaderboard.admin.CreateResponse.getDefaultInstance()))
.build();
}
}
}
return getCreateMethod;
}
private static volatile io.grpc.MethodDescriptor getDeleteMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Delete",
requestType = com.streamlayer.interactive.leaderboard.admin.DeleteRequest.class,
responseType = com.streamlayer.interactive.leaderboard.admin.DeleteResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getDeleteMethod() {
io.grpc.MethodDescriptor getDeleteMethod;
if ((getDeleteMethod = AdminLeaderboardGrpc.getDeleteMethod) == null) {
synchronized (AdminLeaderboardGrpc.class) {
if ((getDeleteMethod = AdminLeaderboardGrpc.getDeleteMethod) == null) {
AdminLeaderboardGrpc.getDeleteMethod = getDeleteMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Delete"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.interactive.leaderboard.admin.DeleteRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.interactive.leaderboard.admin.DeleteResponse.getDefaultInstance()))
.build();
}
}
}
return getDeleteMethod;
}
private static volatile io.grpc.MethodDescriptor getAttachLeaderboardMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "AttachLeaderboard",
requestType = com.streamlayer.interactive.leaderboard.admin.AttachLeaderboardRequest.class,
responseType = com.streamlayer.interactive.leaderboard.admin.AttachLeaderboardResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getAttachLeaderboardMethod() {
io.grpc.MethodDescriptor getAttachLeaderboardMethod;
if ((getAttachLeaderboardMethod = AdminLeaderboardGrpc.getAttachLeaderboardMethod) == null) {
synchronized (AdminLeaderboardGrpc.class) {
if ((getAttachLeaderboardMethod = AdminLeaderboardGrpc.getAttachLeaderboardMethod) == null) {
AdminLeaderboardGrpc.getAttachLeaderboardMethod = getAttachLeaderboardMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "AttachLeaderboard"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.interactive.leaderboard.admin.AttachLeaderboardRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.interactive.leaderboard.admin.AttachLeaderboardResponse.getDefaultInstance()))
.build();
}
}
}
return getAttachLeaderboardMethod;
}
private static volatile io.grpc.MethodDescriptor getDetachLeaderboardMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "DetachLeaderboard",
requestType = com.streamlayer.interactive.leaderboard.admin.DetachLeaderboardRequest.class,
responseType = com.streamlayer.interactive.leaderboard.admin.DetachLeaderboardResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getDetachLeaderboardMethod() {
io.grpc.MethodDescriptor getDetachLeaderboardMethod;
if ((getDetachLeaderboardMethod = AdminLeaderboardGrpc.getDetachLeaderboardMethod) == null) {
synchronized (AdminLeaderboardGrpc.class) {
if ((getDetachLeaderboardMethod = AdminLeaderboardGrpc.getDetachLeaderboardMethod) == null) {
AdminLeaderboardGrpc.getDetachLeaderboardMethod = getDetachLeaderboardMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "DetachLeaderboard"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.interactive.leaderboard.admin.DetachLeaderboardRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.interactive.leaderboard.admin.DetachLeaderboardResponse.getDefaultInstance()))
.build();
}
}
}
return getDetachLeaderboardMethod;
}
private static volatile io.grpc.MethodDescriptor getAddEventMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "AddEvent",
requestType = com.streamlayer.interactive.leaderboard.admin.AddEventRequest.class,
responseType = com.streamlayer.interactive.leaderboard.admin.AddEventResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getAddEventMethod() {
io.grpc.MethodDescriptor getAddEventMethod;
if ((getAddEventMethod = AdminLeaderboardGrpc.getAddEventMethod) == null) {
synchronized (AdminLeaderboardGrpc.class) {
if ((getAddEventMethod = AdminLeaderboardGrpc.getAddEventMethod) == null) {
AdminLeaderboardGrpc.getAddEventMethod = getAddEventMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "AddEvent"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.interactive.leaderboard.admin.AddEventRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.interactive.leaderboard.admin.AddEventResponse.getDefaultInstance()))
.build();
}
}
}
return getAddEventMethod;
}
private static volatile io.grpc.MethodDescriptor getRemoveEventMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RemoveEvent",
requestType = com.streamlayer.interactive.leaderboard.admin.RemoveEventRequest.class,
responseType = com.streamlayer.interactive.leaderboard.admin.RemoveEventResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getRemoveEventMethod() {
io.grpc.MethodDescriptor getRemoveEventMethod;
if ((getRemoveEventMethod = AdminLeaderboardGrpc.getRemoveEventMethod) == null) {
synchronized (AdminLeaderboardGrpc.class) {
if ((getRemoveEventMethod = AdminLeaderboardGrpc.getRemoveEventMethod) == null) {
AdminLeaderboardGrpc.getRemoveEventMethod = getRemoveEventMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "RemoveEvent"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.interactive.leaderboard.admin.RemoveEventRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.interactive.leaderboard.admin.RemoveEventResponse.getDefaultInstance()))
.build();
}
}
}
return getRemoveEventMethod;
}
private static volatile io.grpc.MethodDescriptor getListMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "List",
requestType = com.streamlayer.interactive.leaderboard.admin.ListRequest.class,
responseType = com.streamlayer.interactive.leaderboard.admin.ListResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getListMethod() {
io.grpc.MethodDescriptor getListMethod;
if ((getListMethod = AdminLeaderboardGrpc.getListMethod) == null) {
synchronized (AdminLeaderboardGrpc.class) {
if ((getListMethod = AdminLeaderboardGrpc.getListMethod) == null) {
AdminLeaderboardGrpc.getListMethod = getListMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "List"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.interactive.leaderboard.admin.ListRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.interactive.leaderboard.admin.ListResponse.getDefaultInstance()))
.build();
}
}
}
return getListMethod;
}
private static volatile io.grpc.MethodDescriptor getRebuildMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Rebuild",
requestType = com.streamlayer.interactive.leaderboard.admin.RebuildLeaderboardRequest.class,
responseType = com.streamlayer.interactive.leaderboard.admin.RebuildLeaderboardResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getRebuildMethod() {
io.grpc.MethodDescriptor getRebuildMethod;
if ((getRebuildMethod = AdminLeaderboardGrpc.getRebuildMethod) == null) {
synchronized (AdminLeaderboardGrpc.class) {
if ((getRebuildMethod = AdminLeaderboardGrpc.getRebuildMethod) == null) {
AdminLeaderboardGrpc.getRebuildMethod = getRebuildMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Rebuild"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.interactive.leaderboard.admin.RebuildLeaderboardRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
com.streamlayer.interactive.leaderboard.admin.RebuildLeaderboardResponse.getDefaultInstance()))
.build();
}
}
}
return getRebuildMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static AdminLeaderboardStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public AdminLeaderboardStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AdminLeaderboardStub(channel, callOptions);
}
};
return AdminLeaderboardStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static AdminLeaderboardBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public AdminLeaderboardBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AdminLeaderboardBlockingStub(channel, callOptions);
}
};
return AdminLeaderboardBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static AdminLeaderboardFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public AdminLeaderboardFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AdminLeaderboardFutureStub(channel, callOptions);
}
};
return AdminLeaderboardFutureStub.newStub(factory, channel);
}
/**
*/
public interface AsyncService {
/**
*/
default void create(com.streamlayer.interactive.leaderboard.admin.CreateRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateMethod(), responseObserver);
}
/**
*/
default void delete(com.streamlayer.interactive.leaderboard.admin.DeleteRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteMethod(), responseObserver);
}
/**
*/
default void attachLeaderboard(com.streamlayer.interactive.leaderboard.admin.AttachLeaderboardRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAttachLeaderboardMethod(), responseObserver);
}
/**
*/
default void detachLeaderboard(com.streamlayer.interactive.leaderboard.admin.DetachLeaderboardRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDetachLeaderboardMethod(), responseObserver);
}
/**
*/
default void addEvent(com.streamlayer.interactive.leaderboard.admin.AddEventRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAddEventMethod(), responseObserver);
}
/**
*/
default void removeEvent(com.streamlayer.interactive.leaderboard.admin.RemoveEventRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRemoveEventMethod(), responseObserver);
}
/**
*/
default void list(com.streamlayer.interactive.leaderboard.admin.ListRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMethod(), responseObserver);
}
/**
*/
default void rebuild(com.streamlayer.interactive.leaderboard.admin.RebuildLeaderboardRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRebuildMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service AdminLeaderboard.
*/
public static abstract class AdminLeaderboardImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return AdminLeaderboardGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service AdminLeaderboard.
*/
public static final class AdminLeaderboardStub
extends io.grpc.stub.AbstractAsyncStub {
private AdminLeaderboardStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AdminLeaderboardStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AdminLeaderboardStub(channel, callOptions);
}
/**
*/
public void create(com.streamlayer.interactive.leaderboard.admin.CreateRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void delete(com.streamlayer.interactive.leaderboard.admin.DeleteRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDeleteMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void attachLeaderboard(com.streamlayer.interactive.leaderboard.admin.AttachLeaderboardRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getAttachLeaderboardMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void detachLeaderboard(com.streamlayer.interactive.leaderboard.admin.DetachLeaderboardRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDetachLeaderboardMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void addEvent(com.streamlayer.interactive.leaderboard.admin.AddEventRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getAddEventMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void removeEvent(com.streamlayer.interactive.leaderboard.admin.RemoveEventRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRemoveEventMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void list(com.streamlayer.interactive.leaderboard.admin.ListRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void rebuild(com.streamlayer.interactive.leaderboard.admin.RebuildLeaderboardRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRebuildMethod(), getCallOptions()), request, responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service AdminLeaderboard.
*/
public static final class AdminLeaderboardBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private AdminLeaderboardBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AdminLeaderboardBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AdminLeaderboardBlockingStub(channel, callOptions);
}
/**
*/
public com.streamlayer.interactive.leaderboard.admin.CreateResponse create(com.streamlayer.interactive.leaderboard.admin.CreateRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateMethod(), getCallOptions(), request);
}
/**
*/
public com.streamlayer.interactive.leaderboard.admin.DeleteResponse delete(com.streamlayer.interactive.leaderboard.admin.DeleteRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeleteMethod(), getCallOptions(), request);
}
/**
*/
public com.streamlayer.interactive.leaderboard.admin.AttachLeaderboardResponse attachLeaderboard(com.streamlayer.interactive.leaderboard.admin.AttachLeaderboardRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getAttachLeaderboardMethod(), getCallOptions(), request);
}
/**
*/
public com.streamlayer.interactive.leaderboard.admin.DetachLeaderboardResponse detachLeaderboard(com.streamlayer.interactive.leaderboard.admin.DetachLeaderboardRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDetachLeaderboardMethod(), getCallOptions(), request);
}
/**
*/
public com.streamlayer.interactive.leaderboard.admin.AddEventResponse addEvent(com.streamlayer.interactive.leaderboard.admin.AddEventRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getAddEventMethod(), getCallOptions(), request);
}
/**
*/
public com.streamlayer.interactive.leaderboard.admin.RemoveEventResponse removeEvent(com.streamlayer.interactive.leaderboard.admin.RemoveEventRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRemoveEventMethod(), getCallOptions(), request);
}
/**
*/
public com.streamlayer.interactive.leaderboard.admin.ListResponse list(com.streamlayer.interactive.leaderboard.admin.ListRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListMethod(), getCallOptions(), request);
}
/**
*/
public com.streamlayer.interactive.leaderboard.admin.RebuildLeaderboardResponse rebuild(com.streamlayer.interactive.leaderboard.admin.RebuildLeaderboardRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRebuildMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service AdminLeaderboard.
*/
public static final class AdminLeaderboardFutureStub
extends io.grpc.stub.AbstractFutureStub {
private AdminLeaderboardFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AdminLeaderboardFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AdminLeaderboardFutureStub(channel, callOptions);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture create(
com.streamlayer.interactive.leaderboard.admin.CreateRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture delete(
com.streamlayer.interactive.leaderboard.admin.DeleteRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDeleteMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture attachLeaderboard(
com.streamlayer.interactive.leaderboard.admin.AttachLeaderboardRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getAttachLeaderboardMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture detachLeaderboard(
com.streamlayer.interactive.leaderboard.admin.DetachLeaderboardRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDetachLeaderboardMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture addEvent(
com.streamlayer.interactive.leaderboard.admin.AddEventRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getAddEventMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture removeEvent(
com.streamlayer.interactive.leaderboard.admin.RemoveEventRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRemoveEventMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture list(
com.streamlayer.interactive.leaderboard.admin.ListRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture rebuild(
com.streamlayer.interactive.leaderboard.admin.RebuildLeaderboardRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRebuildMethod(), getCallOptions()), request);
}
}
private static final int METHODID_CREATE = 0;
private static final int METHODID_DELETE = 1;
private static final int METHODID_ATTACH_LEADERBOARD = 2;
private static final int METHODID_DETACH_LEADERBOARD = 3;
private static final int METHODID_ADD_EVENT = 4;
private static final int METHODID_REMOVE_EVENT = 5;
private static final int METHODID_LIST = 6;
private static final int METHODID_REBUILD = 7;
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.leaderboard.admin.CreateRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELETE:
serviceImpl.delete((com.streamlayer.interactive.leaderboard.admin.DeleteRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_ATTACH_LEADERBOARD:
serviceImpl.attachLeaderboard((com.streamlayer.interactive.leaderboard.admin.AttachLeaderboardRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DETACH_LEADERBOARD:
serviceImpl.detachLeaderboard((com.streamlayer.interactive.leaderboard.admin.DetachLeaderboardRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_ADD_EVENT:
serviceImpl.addEvent((com.streamlayer.interactive.leaderboard.admin.AddEventRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_REMOVE_EVENT:
serviceImpl.removeEvent((com.streamlayer.interactive.leaderboard.admin.RemoveEventRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST:
serviceImpl.list((com.streamlayer.interactive.leaderboard.admin.ListRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_REBUILD:
serviceImpl.rebuild((com.streamlayer.interactive.leaderboard.admin.RebuildLeaderboardRequest) 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.leaderboard.admin.CreateRequest,
com.streamlayer.interactive.leaderboard.admin.CreateResponse>(
service, METHODID_CREATE)))
.addMethod(
getDeleteMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.streamlayer.interactive.leaderboard.admin.DeleteRequest,
com.streamlayer.interactive.leaderboard.admin.DeleteResponse>(
service, METHODID_DELETE)))
.addMethod(
getAttachLeaderboardMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.streamlayer.interactive.leaderboard.admin.AttachLeaderboardRequest,
com.streamlayer.interactive.leaderboard.admin.AttachLeaderboardResponse>(
service, METHODID_ATTACH_LEADERBOARD)))
.addMethod(
getDetachLeaderboardMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.streamlayer.interactive.leaderboard.admin.DetachLeaderboardRequest,
com.streamlayer.interactive.leaderboard.admin.DetachLeaderboardResponse>(
service, METHODID_DETACH_LEADERBOARD)))
.addMethod(
getAddEventMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.streamlayer.interactive.leaderboard.admin.AddEventRequest,
com.streamlayer.interactive.leaderboard.admin.AddEventResponse>(
service, METHODID_ADD_EVENT)))
.addMethod(
getRemoveEventMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.streamlayer.interactive.leaderboard.admin.RemoveEventRequest,
com.streamlayer.interactive.leaderboard.admin.RemoveEventResponse>(
service, METHODID_REMOVE_EVENT)))
.addMethod(
getListMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.streamlayer.interactive.leaderboard.admin.ListRequest,
com.streamlayer.interactive.leaderboard.admin.ListResponse>(
service, METHODID_LIST)))
.addMethod(
getRebuildMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.streamlayer.interactive.leaderboard.admin.RebuildLeaderboardRequest,
com.streamlayer.interactive.leaderboard.admin.RebuildLeaderboardResponse>(
service, METHODID_REBUILD)))
.build();
}
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
io.grpc.ServiceDescriptor result = serviceDescriptor;
if (result == null) {
synchronized (AdminLeaderboardGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.addMethod(getCreateMethod())
.addMethod(getDeleteMethod())
.addMethod(getAttachLeaderboardMethod())
.addMethod(getDetachLeaderboardMethod())
.addMethod(getAddEventMethod())
.addMethod(getRemoveEventMethod())
.addMethod(getListMethod())
.addMethod(getRebuildMethod())
.build();
}
}
}
return result;
}
}