All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.grpc.com.streamlayer.interactive.leaderboard.LeaderboardGrpc Maven / Gradle / Ivy

There is a newer version: 5.133.1
Show newest version
package com.streamlayer.interactive.leaderboard;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 */
@javax.annotation.Generated(
    value = "by gRPC proto compiler (version 1.65.1)",
    comments = "Source: streamlayer/interactive/leaderboard/interactive.leaderboard.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class LeaderboardGrpc {

  private LeaderboardGrpc() {}

  public static final java.lang.String SERVICE_NAME = "streamlayer.interactive.leaderboard.Leaderboard";

  // Static method descriptors that strictly reflect the proto.
  private static volatile io.grpc.MethodDescriptor getListMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "List",
      requestType = com.streamlayer.interactive.leaderboard.ListRequest.class,
      responseType = com.streamlayer.interactive.leaderboard.ListResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getListMethod() {
    io.grpc.MethodDescriptor getListMethod;
    if ((getListMethod = LeaderboardGrpc.getListMethod) == null) {
      synchronized (LeaderboardGrpc.class) {
        if ((getListMethod = LeaderboardGrpc.getListMethod) == null) {
          LeaderboardGrpc.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.ListRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
                  com.streamlayer.interactive.leaderboard.ListResponse.getDefaultInstance()))
              .build();
        }
      }
    }
    return getListMethod;
  }

  private static volatile io.grpc.MethodDescriptor getSummaryMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "Summary",
      requestType = com.streamlayer.interactive.leaderboard.SummaryRequest.class,
      responseType = com.streamlayer.interactive.leaderboard.SummaryResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getSummaryMethod() {
    io.grpc.MethodDescriptor getSummaryMethod;
    if ((getSummaryMethod = LeaderboardGrpc.getSummaryMethod) == null) {
      synchronized (LeaderboardGrpc.class) {
        if ((getSummaryMethod = LeaderboardGrpc.getSummaryMethod) == null) {
          LeaderboardGrpc.getSummaryMethod = getSummaryMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Summary"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
                  com.streamlayer.interactive.leaderboard.SummaryRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
                  com.streamlayer.interactive.leaderboard.SummaryResponse.getDefaultInstance()))
              .build();
        }
      }
    }
    return getSummaryMethod;
  }

  private static volatile io.grpc.MethodDescriptor getEventLeaderboardsMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "EventLeaderboards",
      requestType = com.streamlayer.interactive.leaderboard.EventLeaderboardsRequest.class,
      responseType = com.streamlayer.interactive.leaderboard.EventLeaderboardsResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getEventLeaderboardsMethod() {
    io.grpc.MethodDescriptor getEventLeaderboardsMethod;
    if ((getEventLeaderboardsMethod = LeaderboardGrpc.getEventLeaderboardsMethod) == null) {
      synchronized (LeaderboardGrpc.class) {
        if ((getEventLeaderboardsMethod = LeaderboardGrpc.getEventLeaderboardsMethod) == null) {
          LeaderboardGrpc.getEventLeaderboardsMethod = getEventLeaderboardsMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EventLeaderboards"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
                  com.streamlayer.interactive.leaderboard.EventLeaderboardsRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
                  com.streamlayer.interactive.leaderboard.EventLeaderboardsResponse.getDefaultInstance()))
              .build();
        }
      }
    }
    return getEventLeaderboardsMethod;
  }

  private static volatile io.grpc.MethodDescriptor getEventLeaderboardMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "EventLeaderboard",
      requestType = com.streamlayer.interactive.leaderboard.EventLeaderboardRequest.class,
      responseType = com.streamlayer.interactive.leaderboard.EventLeaderboardResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getEventLeaderboardMethod() {
    io.grpc.MethodDescriptor getEventLeaderboardMethod;
    if ((getEventLeaderboardMethod = LeaderboardGrpc.getEventLeaderboardMethod) == null) {
      synchronized (LeaderboardGrpc.class) {
        if ((getEventLeaderboardMethod = LeaderboardGrpc.getEventLeaderboardMethod) == null) {
          LeaderboardGrpc.getEventLeaderboardMethod = getEventLeaderboardMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EventLeaderboard"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
                  com.streamlayer.interactive.leaderboard.EventLeaderboardRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller(
                  com.streamlayer.interactive.leaderboard.EventLeaderboardResponse.getDefaultInstance()))
              .build();
        }
      }
    }
    return getEventLeaderboardMethod;
  }

  /**
   * Creates a new async stub that supports all call types for the service
   */
  public static LeaderboardStub newStub(io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory factory =
      new io.grpc.stub.AbstractStub.StubFactory() {
        @java.lang.Override
        public LeaderboardStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new LeaderboardStub(channel, callOptions);
        }
      };
    return LeaderboardStub.newStub(factory, channel);
  }

  /**
   * Creates a new blocking-style stub that supports unary and streaming output calls on the service
   */
  public static LeaderboardBlockingStub newBlockingStub(
      io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory factory =
      new io.grpc.stub.AbstractStub.StubFactory() {
        @java.lang.Override
        public LeaderboardBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new LeaderboardBlockingStub(channel, callOptions);
        }
      };
    return LeaderboardBlockingStub.newStub(factory, channel);
  }

  /**
   * Creates a new ListenableFuture-style stub that supports unary calls on the service
   */
  public static LeaderboardFutureStub newFutureStub(
      io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory factory =
      new io.grpc.stub.AbstractStub.StubFactory() {
        @java.lang.Override
        public LeaderboardFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new LeaderboardFutureStub(channel, callOptions);
        }
      };
    return LeaderboardFutureStub.newStub(factory, channel);
  }

  /**
   */
  public interface AsyncService {

    /**
     */
    default void list(com.streamlayer.interactive.leaderboard.ListRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMethod(), responseObserver);
    }

    /**
     */
    default void summary(com.streamlayer.interactive.leaderboard.SummaryRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSummaryMethod(), responseObserver);
    }

    /**
     */
    default void eventLeaderboards(com.streamlayer.interactive.leaderboard.EventLeaderboardsRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getEventLeaderboardsMethod(), responseObserver);
    }

    /**
     */
    default void eventLeaderboard(com.streamlayer.interactive.leaderboard.EventLeaderboardRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getEventLeaderboardMethod(), responseObserver);
    }
  }

  /**
   * Base class for the server implementation of the service Leaderboard.
   */
  public static abstract class LeaderboardImplBase
      implements io.grpc.BindableService, AsyncService {

    @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
      return LeaderboardGrpc.bindService(this);
    }
  }

  /**
   * A stub to allow clients to do asynchronous rpc calls to service Leaderboard.
   */
  public static final class LeaderboardStub
      extends io.grpc.stub.AbstractAsyncStub {
    private LeaderboardStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @java.lang.Override
    protected LeaderboardStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new LeaderboardStub(channel, callOptions);
    }

    /**
     */
    public void list(com.streamlayer.interactive.leaderboard.ListRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getListMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void summary(com.streamlayer.interactive.leaderboard.SummaryRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getSummaryMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void eventLeaderboards(com.streamlayer.interactive.leaderboard.EventLeaderboardsRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getEventLeaderboardsMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void eventLeaderboard(com.streamlayer.interactive.leaderboard.EventLeaderboardRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getEventLeaderboardMethod(), getCallOptions()), request, responseObserver);
    }
  }

  /**
   * A stub to allow clients to do synchronous rpc calls to service Leaderboard.
   */
  public static final class LeaderboardBlockingStub
      extends io.grpc.stub.AbstractBlockingStub {
    private LeaderboardBlockingStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @java.lang.Override
    protected LeaderboardBlockingStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new LeaderboardBlockingStub(channel, callOptions);
    }

    /**
     */
    public com.streamlayer.interactive.leaderboard.ListResponse list(com.streamlayer.interactive.leaderboard.ListRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getListMethod(), getCallOptions(), request);
    }

    /**
     */
    public com.streamlayer.interactive.leaderboard.SummaryResponse summary(com.streamlayer.interactive.leaderboard.SummaryRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getSummaryMethod(), getCallOptions(), request);
    }

    /**
     */
    public com.streamlayer.interactive.leaderboard.EventLeaderboardsResponse eventLeaderboards(com.streamlayer.interactive.leaderboard.EventLeaderboardsRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getEventLeaderboardsMethod(), getCallOptions(), request);
    }

    /**
     */
    public com.streamlayer.interactive.leaderboard.EventLeaderboardResponse eventLeaderboard(com.streamlayer.interactive.leaderboard.EventLeaderboardRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getEventLeaderboardMethod(), getCallOptions(), request);
    }
  }

  /**
   * A stub to allow clients to do ListenableFuture-style rpc calls to service Leaderboard.
   */
  public static final class LeaderboardFutureStub
      extends io.grpc.stub.AbstractFutureStub {
    private LeaderboardFutureStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @java.lang.Override
    protected LeaderboardFutureStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new LeaderboardFutureStub(channel, callOptions);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture list(
        com.streamlayer.interactive.leaderboard.ListRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getListMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture summary(
        com.streamlayer.interactive.leaderboard.SummaryRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getSummaryMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture eventLeaderboards(
        com.streamlayer.interactive.leaderboard.EventLeaderboardsRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getEventLeaderboardsMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture eventLeaderboard(
        com.streamlayer.interactive.leaderboard.EventLeaderboardRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getEventLeaderboardMethod(), getCallOptions()), request);
    }
  }

  private static final int METHODID_LIST = 0;
  private static final int METHODID_SUMMARY = 1;
  private static final int METHODID_EVENT_LEADERBOARDS = 2;
  private static final int METHODID_EVENT_LEADERBOARD = 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 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_LIST:
          serviceImpl.list((com.streamlayer.interactive.leaderboard.ListRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_SUMMARY:
          serviceImpl.summary((com.streamlayer.interactive.leaderboard.SummaryRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_EVENT_LEADERBOARDS:
          serviceImpl.eventLeaderboards((com.streamlayer.interactive.leaderboard.EventLeaderboardsRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_EVENT_LEADERBOARD:
          serviceImpl.eventLeaderboard((com.streamlayer.interactive.leaderboard.EventLeaderboardRequest) 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(
          getListMethod(),
          io.grpc.stub.ServerCalls.asyncUnaryCall(
            new MethodHandlers<
              com.streamlayer.interactive.leaderboard.ListRequest,
              com.streamlayer.interactive.leaderboard.ListResponse>(
                service, METHODID_LIST)))
        .addMethod(
          getSummaryMethod(),
          io.grpc.stub.ServerCalls.asyncUnaryCall(
            new MethodHandlers<
              com.streamlayer.interactive.leaderboard.SummaryRequest,
              com.streamlayer.interactive.leaderboard.SummaryResponse>(
                service, METHODID_SUMMARY)))
        .addMethod(
          getEventLeaderboardsMethod(),
          io.grpc.stub.ServerCalls.asyncUnaryCall(
            new MethodHandlers<
              com.streamlayer.interactive.leaderboard.EventLeaderboardsRequest,
              com.streamlayer.interactive.leaderboard.EventLeaderboardsResponse>(
                service, METHODID_EVENT_LEADERBOARDS)))
        .addMethod(
          getEventLeaderboardMethod(),
          io.grpc.stub.ServerCalls.asyncUnaryCall(
            new MethodHandlers<
              com.streamlayer.interactive.leaderboard.EventLeaderboardRequest,
              com.streamlayer.interactive.leaderboard.EventLeaderboardResponse>(
                service, METHODID_EVENT_LEADERBOARD)))
        .build();
  }

  private static volatile io.grpc.ServiceDescriptor serviceDescriptor;

  public static io.grpc.ServiceDescriptor getServiceDescriptor() {
    io.grpc.ServiceDescriptor result = serviceDescriptor;
    if (result == null) {
      synchronized (LeaderboardGrpc.class) {
        result = serviceDescriptor;
        if (result == null) {
          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
              .addMethod(getListMethod())
              .addMethod(getSummaryMethod())
              .addMethod(getEventLeaderboardsMethod())
              .addMethod(getEventLeaderboardMethod())
              .build();
        }
      }
    }
    return result;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy