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

grpc.leaderboard.LeaderboardGrpc Maven / Gradle / Ivy

There is a newer version: 0.119.4
Show newest version
package grpc.leaderboard;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 * Like a sorted set, but for leaderboards!
 * Elements in a leaderboard are keyed by an ID, which is an unsigned 64 bit integer.
 * Scores are single-precision floating point numbers.
 * Each ID can have only 1 score.
 * For batchy, multi-element apis, limits are 8192 elements per api call.
 * Scores are IEEE 754 single-precision floating point numbers. This has a few
 * implications you should be aware of, but the one most likely to affect you is that
 * below -16777216 and above 16777216, not all integers are able to be represented.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.57.2)", comments = "Source: leaderboard.proto") @io.grpc.stub.annotations.GrpcGenerated public final class LeaderboardGrpc { private LeaderboardGrpc() {} public static final java.lang.String SERVICE_NAME = "leaderboard.Leaderboard"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getDeleteLeaderboardMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteLeaderboard", requestType = grpc.leaderboard._DeleteLeaderboardRequest.class, responseType = grpc.common._Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getDeleteLeaderboardMethod() { io.grpc.MethodDescriptor getDeleteLeaderboardMethod; if ((getDeleteLeaderboardMethod = LeaderboardGrpc.getDeleteLeaderboardMethod) == null) { synchronized (LeaderboardGrpc.class) { if ((getDeleteLeaderboardMethod = LeaderboardGrpc.getDeleteLeaderboardMethod) == null) { LeaderboardGrpc.getDeleteLeaderboardMethod = getDeleteLeaderboardMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteLeaderboard")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( grpc.leaderboard._DeleteLeaderboardRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( grpc.common._Empty.getDefaultInstance())) .setSchemaDescriptor(new LeaderboardMethodDescriptorSupplier("DeleteLeaderboard")) .build(); } } } return getDeleteLeaderboardMethod; } private static volatile io.grpc.MethodDescriptor getUpsertElementsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpsertElements", requestType = grpc.leaderboard._UpsertElementsRequest.class, responseType = grpc.common._Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getUpsertElementsMethod() { io.grpc.MethodDescriptor getUpsertElementsMethod; if ((getUpsertElementsMethod = LeaderboardGrpc.getUpsertElementsMethod) == null) { synchronized (LeaderboardGrpc.class) { if ((getUpsertElementsMethod = LeaderboardGrpc.getUpsertElementsMethod) == null) { LeaderboardGrpc.getUpsertElementsMethod = getUpsertElementsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpsertElements")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( grpc.leaderboard._UpsertElementsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( grpc.common._Empty.getDefaultInstance())) .setSchemaDescriptor(new LeaderboardMethodDescriptorSupplier("UpsertElements")) .build(); } } } return getUpsertElementsMethod; } private static volatile io.grpc.MethodDescriptor getRemoveElementsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "RemoveElements", requestType = grpc.leaderboard._RemoveElementsRequest.class, responseType = grpc.common._Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getRemoveElementsMethod() { io.grpc.MethodDescriptor getRemoveElementsMethod; if ((getRemoveElementsMethod = LeaderboardGrpc.getRemoveElementsMethod) == null) { synchronized (LeaderboardGrpc.class) { if ((getRemoveElementsMethod = LeaderboardGrpc.getRemoveElementsMethod) == null) { LeaderboardGrpc.getRemoveElementsMethod = getRemoveElementsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RemoveElements")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( grpc.leaderboard._RemoveElementsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( grpc.common._Empty.getDefaultInstance())) .setSchemaDescriptor(new LeaderboardMethodDescriptorSupplier("RemoveElements")) .build(); } } } return getRemoveElementsMethod; } private static volatile io.grpc.MethodDescriptor getGetLeaderboardLengthMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetLeaderboardLength", requestType = grpc.leaderboard._GetLeaderboardLengthRequest.class, responseType = grpc.leaderboard._GetLeaderboardLengthResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetLeaderboardLengthMethod() { io.grpc.MethodDescriptor getGetLeaderboardLengthMethod; if ((getGetLeaderboardLengthMethod = LeaderboardGrpc.getGetLeaderboardLengthMethod) == null) { synchronized (LeaderboardGrpc.class) { if ((getGetLeaderboardLengthMethod = LeaderboardGrpc.getGetLeaderboardLengthMethod) == null) { LeaderboardGrpc.getGetLeaderboardLengthMethod = getGetLeaderboardLengthMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLeaderboardLength")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( grpc.leaderboard._GetLeaderboardLengthRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( grpc.leaderboard._GetLeaderboardLengthResponse.getDefaultInstance())) .setSchemaDescriptor(new LeaderboardMethodDescriptorSupplier("GetLeaderboardLength")) .build(); } } } return getGetLeaderboardLengthMethod; } private static volatile io.grpc.MethodDescriptor getGetByRankMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetByRank", requestType = grpc.leaderboard._GetByRankRequest.class, responseType = grpc.leaderboard._GetByRankResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetByRankMethod() { io.grpc.MethodDescriptor getGetByRankMethod; if ((getGetByRankMethod = LeaderboardGrpc.getGetByRankMethod) == null) { synchronized (LeaderboardGrpc.class) { if ((getGetByRankMethod = LeaderboardGrpc.getGetByRankMethod) == null) { LeaderboardGrpc.getGetByRankMethod = getGetByRankMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetByRank")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( grpc.leaderboard._GetByRankRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( grpc.leaderboard._GetByRankResponse.getDefaultInstance())) .setSchemaDescriptor(new LeaderboardMethodDescriptorSupplier("GetByRank")) .build(); } } } return getGetByRankMethod; } private static volatile io.grpc.MethodDescriptor getGetRankMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetRank", requestType = grpc.leaderboard._GetRankRequest.class, responseType = grpc.leaderboard._GetRankResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetRankMethod() { io.grpc.MethodDescriptor getGetRankMethod; if ((getGetRankMethod = LeaderboardGrpc.getGetRankMethod) == null) { synchronized (LeaderboardGrpc.class) { if ((getGetRankMethod = LeaderboardGrpc.getGetRankMethod) == null) { LeaderboardGrpc.getGetRankMethod = getGetRankMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRank")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( grpc.leaderboard._GetRankRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( grpc.leaderboard._GetRankResponse.getDefaultInstance())) .setSchemaDescriptor(new LeaderboardMethodDescriptorSupplier("GetRank")) .build(); } } } return getGetRankMethod; } private static volatile io.grpc.MethodDescriptor getGetByScoreMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetByScore", requestType = grpc.leaderboard._GetByScoreRequest.class, responseType = grpc.leaderboard._GetByScoreResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetByScoreMethod() { io.grpc.MethodDescriptor getGetByScoreMethod; if ((getGetByScoreMethod = LeaderboardGrpc.getGetByScoreMethod) == null) { synchronized (LeaderboardGrpc.class) { if ((getGetByScoreMethod = LeaderboardGrpc.getGetByScoreMethod) == null) { LeaderboardGrpc.getGetByScoreMethod = getGetByScoreMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetByScore")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( grpc.leaderboard._GetByScoreRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( grpc.leaderboard._GetByScoreResponse.getDefaultInstance())) .setSchemaDescriptor(new LeaderboardMethodDescriptorSupplier("GetByScore")) .build(); } } } return getGetByScoreMethod; } /** * 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); } /** *
   * Like a sorted set, but for leaderboards!
   * Elements in a leaderboard are keyed by an ID, which is an unsigned 64 bit integer.
   * Scores are single-precision floating point numbers.
   * Each ID can have only 1 score.
   * For batchy, multi-element apis, limits are 8192 elements per api call.
   * Scores are IEEE 754 single-precision floating point numbers. This has a few
   * implications you should be aware of, but the one most likely to affect you is that
   * below -16777216 and above 16777216, not all integers are able to be represented.
   * 
*/ public interface AsyncService { /** *
     * Deletes a leaderboard. After this call, you're not incurring storage cost for this leaderboard anymore.
     * 
*/ default void deleteLeaderboard(grpc.leaderboard._DeleteLeaderboardRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteLeaderboardMethod(), responseObserver); } /** *
     * Insert or update elements in a leaderboard. You can do up to 8192 elements per call.
     * There is no partial failure: Upsert succeeds or fails.
     * 
*/ default void upsertElements(grpc.leaderboard._UpsertElementsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpsertElementsMethod(), responseObserver); } /** *
     * Remove up to 8192 elements at a time from a leaderboard. Elements are removed by id.
     * 
*/ default void removeElements(grpc.leaderboard._RemoveElementsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRemoveElementsMethod(), responseObserver); } /** *
     * Returns the length of a leaderboard in terms of ID count.
     * 
*/ default void getLeaderboardLength(grpc.leaderboard._GetLeaderboardLengthRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLeaderboardLengthMethod(), responseObserver); } /** *
     * Get a range of elements.
     * * Ordinal, 0-based rank.
     * * Range can span up to 8192 elements.
     * See RankRange for details about permissible ranges.
     * 
*/ default void getByRank(grpc.leaderboard._GetByRankRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetByRankMethod(), responseObserver); } /** *
     * Get the rank of a list of particular ids in the leaderboard.
     * * Ordinal, 0-based rank.
     * 
*/ default void getRank(grpc.leaderboard._GetRankRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRankMethod(), responseObserver); } /** *
     * Get a range of elements by a score range.
     * * Ordinal, 0-based rank.
     * You can request up to 8192 elements at a time. To page through many elements that all
     * fall into a score range you can repeatedly invoke this api with the offset parameter.
     * 
*/ default void getByScore(grpc.leaderboard._GetByScoreRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetByScoreMethod(), responseObserver); } } /** * Base class for the server implementation of the service Leaderboard. *
   * Like a sorted set, but for leaderboards!
   * Elements in a leaderboard are keyed by an ID, which is an unsigned 64 bit integer.
   * Scores are single-precision floating point numbers.
   * Each ID can have only 1 score.
   * For batchy, multi-element apis, limits are 8192 elements per api call.
   * Scores are IEEE 754 single-precision floating point numbers. This has a few
   * implications you should be aware of, but the one most likely to affect you is that
   * below -16777216 and above 16777216, not all integers are able to be represented.
   * 
*/ 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. *
   * Like a sorted set, but for leaderboards!
   * Elements in a leaderboard are keyed by an ID, which is an unsigned 64 bit integer.
   * Scores are single-precision floating point numbers.
   * Each ID can have only 1 score.
   * For batchy, multi-element apis, limits are 8192 elements per api call.
   * Scores are IEEE 754 single-precision floating point numbers. This has a few
   * implications you should be aware of, but the one most likely to affect you is that
   * below -16777216 and above 16777216, not all integers are able to be represented.
   * 
*/ 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); } /** *
     * Deletes a leaderboard. After this call, you're not incurring storage cost for this leaderboard anymore.
     * 
*/ public void deleteLeaderboard(grpc.leaderboard._DeleteLeaderboardRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteLeaderboardMethod(), getCallOptions()), request, responseObserver); } /** *
     * Insert or update elements in a leaderboard. You can do up to 8192 elements per call.
     * There is no partial failure: Upsert succeeds or fails.
     * 
*/ public void upsertElements(grpc.leaderboard._UpsertElementsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpsertElementsMethod(), getCallOptions()), request, responseObserver); } /** *
     * Remove up to 8192 elements at a time from a leaderboard. Elements are removed by id.
     * 
*/ public void removeElements(grpc.leaderboard._RemoveElementsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getRemoveElementsMethod(), getCallOptions()), request, responseObserver); } /** *
     * Returns the length of a leaderboard in terms of ID count.
     * 
*/ public void getLeaderboardLength(grpc.leaderboard._GetLeaderboardLengthRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetLeaderboardLengthMethod(), getCallOptions()), request, responseObserver); } /** *
     * Get a range of elements.
     * * Ordinal, 0-based rank.
     * * Range can span up to 8192 elements.
     * See RankRange for details about permissible ranges.
     * 
*/ public void getByRank(grpc.leaderboard._GetByRankRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetByRankMethod(), getCallOptions()), request, responseObserver); } /** *
     * Get the rank of a list of particular ids in the leaderboard.
     * * Ordinal, 0-based rank.
     * 
*/ public void getRank(grpc.leaderboard._GetRankRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetRankMethod(), getCallOptions()), request, responseObserver); } /** *
     * Get a range of elements by a score range.
     * * Ordinal, 0-based rank.
     * You can request up to 8192 elements at a time. To page through many elements that all
     * fall into a score range you can repeatedly invoke this api with the offset parameter.
     * 
*/ public void getByScore(grpc.leaderboard._GetByScoreRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetByScoreMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service Leaderboard. *
   * Like a sorted set, but for leaderboards!
   * Elements in a leaderboard are keyed by an ID, which is an unsigned 64 bit integer.
   * Scores are single-precision floating point numbers.
   * Each ID can have only 1 score.
   * For batchy, multi-element apis, limits are 8192 elements per api call.
   * Scores are IEEE 754 single-precision floating point numbers. This has a few
   * implications you should be aware of, but the one most likely to affect you is that
   * below -16777216 and above 16777216, not all integers are able to be represented.
   * 
*/ 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); } /** *
     * Deletes a leaderboard. After this call, you're not incurring storage cost for this leaderboard anymore.
     * 
*/ public grpc.common._Empty deleteLeaderboard(grpc.leaderboard._DeleteLeaderboardRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteLeaderboardMethod(), getCallOptions(), request); } /** *
     * Insert or update elements in a leaderboard. You can do up to 8192 elements per call.
     * There is no partial failure: Upsert succeeds or fails.
     * 
*/ public grpc.common._Empty upsertElements(grpc.leaderboard._UpsertElementsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpsertElementsMethod(), getCallOptions(), request); } /** *
     * Remove up to 8192 elements at a time from a leaderboard. Elements are removed by id.
     * 
*/ public grpc.common._Empty removeElements(grpc.leaderboard._RemoveElementsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRemoveElementsMethod(), getCallOptions(), request); } /** *
     * Returns the length of a leaderboard in terms of ID count.
     * 
*/ public grpc.leaderboard._GetLeaderboardLengthResponse getLeaderboardLength(grpc.leaderboard._GetLeaderboardLengthRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetLeaderboardLengthMethod(), getCallOptions(), request); } /** *
     * Get a range of elements.
     * * Ordinal, 0-based rank.
     * * Range can span up to 8192 elements.
     * See RankRange for details about permissible ranges.
     * 
*/ public grpc.leaderboard._GetByRankResponse getByRank(grpc.leaderboard._GetByRankRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetByRankMethod(), getCallOptions(), request); } /** *
     * Get the rank of a list of particular ids in the leaderboard.
     * * Ordinal, 0-based rank.
     * 
*/ public grpc.leaderboard._GetRankResponse getRank(grpc.leaderboard._GetRankRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetRankMethod(), getCallOptions(), request); } /** *
     * Get a range of elements by a score range.
     * * Ordinal, 0-based rank.
     * You can request up to 8192 elements at a time. To page through many elements that all
     * fall into a score range you can repeatedly invoke this api with the offset parameter.
     * 
*/ public grpc.leaderboard._GetByScoreResponse getByScore(grpc.leaderboard._GetByScoreRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetByScoreMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service Leaderboard. *
   * Like a sorted set, but for leaderboards!
   * Elements in a leaderboard are keyed by an ID, which is an unsigned 64 bit integer.
   * Scores are single-precision floating point numbers.
   * Each ID can have only 1 score.
   * For batchy, multi-element apis, limits are 8192 elements per api call.
   * Scores are IEEE 754 single-precision floating point numbers. This has a few
   * implications you should be aware of, but the one most likely to affect you is that
   * below -16777216 and above 16777216, not all integers are able to be represented.
   * 
*/ 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); } /** *
     * Deletes a leaderboard. After this call, you're not incurring storage cost for this leaderboard anymore.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture deleteLeaderboard( grpc.leaderboard._DeleteLeaderboardRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteLeaderboardMethod(), getCallOptions()), request); } /** *
     * Insert or update elements in a leaderboard. You can do up to 8192 elements per call.
     * There is no partial failure: Upsert succeeds or fails.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture upsertElements( grpc.leaderboard._UpsertElementsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpsertElementsMethod(), getCallOptions()), request); } /** *
     * Remove up to 8192 elements at a time from a leaderboard. Elements are removed by id.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture removeElements( grpc.leaderboard._RemoveElementsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRemoveElementsMethod(), getCallOptions()), request); } /** *
     * Returns the length of a leaderboard in terms of ID count.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getLeaderboardLength( grpc.leaderboard._GetLeaderboardLengthRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetLeaderboardLengthMethod(), getCallOptions()), request); } /** *
     * Get a range of elements.
     * * Ordinal, 0-based rank.
     * * Range can span up to 8192 elements.
     * See RankRange for details about permissible ranges.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getByRank( grpc.leaderboard._GetByRankRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetByRankMethod(), getCallOptions()), request); } /** *
     * Get the rank of a list of particular ids in the leaderboard.
     * * Ordinal, 0-based rank.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getRank( grpc.leaderboard._GetRankRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetRankMethod(), getCallOptions()), request); } /** *
     * Get a range of elements by a score range.
     * * Ordinal, 0-based rank.
     * You can request up to 8192 elements at a time. To page through many elements that all
     * fall into a score range you can repeatedly invoke this api with the offset parameter.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getByScore( grpc.leaderboard._GetByScoreRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetByScoreMethod(), getCallOptions()), request); } } private static final int METHODID_DELETE_LEADERBOARD = 0; private static final int METHODID_UPSERT_ELEMENTS = 1; private static final int METHODID_REMOVE_ELEMENTS = 2; private static final int METHODID_GET_LEADERBOARD_LENGTH = 3; private static final int METHODID_GET_BY_RANK = 4; private static final int METHODID_GET_RANK = 5; private static final int METHODID_GET_BY_SCORE = 6; 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_DELETE_LEADERBOARD: serviceImpl.deleteLeaderboard((grpc.leaderboard._DeleteLeaderboardRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPSERT_ELEMENTS: serviceImpl.upsertElements((grpc.leaderboard._UpsertElementsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_REMOVE_ELEMENTS: serviceImpl.removeElements((grpc.leaderboard._RemoveElementsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_LEADERBOARD_LENGTH: serviceImpl.getLeaderboardLength((grpc.leaderboard._GetLeaderboardLengthRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_BY_RANK: serviceImpl.getByRank((grpc.leaderboard._GetByRankRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_RANK: serviceImpl.getRank((grpc.leaderboard._GetRankRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_BY_SCORE: serviceImpl.getByScore((grpc.leaderboard._GetByScoreRequest) 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( getDeleteLeaderboardMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< grpc.leaderboard._DeleteLeaderboardRequest, grpc.common._Empty>( service, METHODID_DELETE_LEADERBOARD))) .addMethod( getUpsertElementsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< grpc.leaderboard._UpsertElementsRequest, grpc.common._Empty>( service, METHODID_UPSERT_ELEMENTS))) .addMethod( getRemoveElementsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< grpc.leaderboard._RemoveElementsRequest, grpc.common._Empty>( service, METHODID_REMOVE_ELEMENTS))) .addMethod( getGetLeaderboardLengthMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< grpc.leaderboard._GetLeaderboardLengthRequest, grpc.leaderboard._GetLeaderboardLengthResponse>( service, METHODID_GET_LEADERBOARD_LENGTH))) .addMethod( getGetByRankMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< grpc.leaderboard._GetByRankRequest, grpc.leaderboard._GetByRankResponse>( service, METHODID_GET_BY_RANK))) .addMethod( getGetRankMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< grpc.leaderboard._GetRankRequest, grpc.leaderboard._GetRankResponse>( service, METHODID_GET_RANK))) .addMethod( getGetByScoreMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< grpc.leaderboard._GetByScoreRequest, grpc.leaderboard._GetByScoreResponse>( service, METHODID_GET_BY_SCORE))) .build(); } private static abstract class LeaderboardBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { LeaderboardBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return grpc.leaderboard.LeaderboardOuterClass.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("Leaderboard"); } } private static final class LeaderboardFileDescriptorSupplier extends LeaderboardBaseDescriptorSupplier { LeaderboardFileDescriptorSupplier() {} } private static final class LeaderboardMethodDescriptorSupplier extends LeaderboardBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final java.lang.String methodName; LeaderboardMethodDescriptorSupplier(java.lang.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 (LeaderboardGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new LeaderboardFileDescriptorSupplier()) .addMethod(getDeleteLeaderboardMethod()) .addMethod(getUpsertElementsMethod()) .addMethod(getRemoveElementsMethod()) .addMethod(getGetLeaderboardLengthMethod()) .addMethod(getGetByRankMethod()) .addMethod(getGetRankMethod()) .addMethod(getGetByScoreMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy