public static final class LeaderboardGrpc.LeaderboardBlockingStub extends io.grpc.stub.AbstractBlockingStub<LeaderboardGrpc.LeaderboardBlockingStub>
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.
| Modifier and Type | Method and Description |
|---|---|
protected LeaderboardGrpc.LeaderboardBlockingStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
_Empty |
deleteLeaderboard(_DeleteLeaderboardRequest request)
Deletes a leaderboard.
|
_GetByRankResponse |
getByRank(_GetByRankRequest request)
Get a range of elements.
|
_GetByScoreResponse |
getByScore(_GetByScoreRequest request)
Get a range of elements by a score range.
|
_GetLeaderboardLengthResponse |
getLeaderboardLength(_GetLeaderboardLengthRequest request)
Returns the length of a leaderboard in terms of ID count.
|
_GetRankResponse |
getRank(_GetRankRequest request)
Get the rank of a list of particular ids in the leaderboard.
|
_Empty |
removeElements(_RemoveElementsRequest request)
Remove up to 8192 elements at a time from a leaderboard.
|
_Empty |
upsertElements(_UpsertElementsRequest request)
Insert or update elements in a leaderboard.
|
protected LeaderboardGrpc.LeaderboardBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build in class io.grpc.stub.AbstractStub<LeaderboardGrpc.LeaderboardBlockingStub>public _Empty deleteLeaderboard(_DeleteLeaderboardRequest request)
Deletes a leaderboard. After this call, you're not incurring storage cost for this leaderboard anymore.
public _Empty upsertElements(_UpsertElementsRequest 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 _Empty removeElements(_RemoveElementsRequest request)
Remove up to 8192 elements at a time from a leaderboard. Elements are removed by id.
public _GetLeaderboardLengthResponse getLeaderboardLength(_GetLeaderboardLengthRequest request)
Returns the length of a leaderboard in terms of ID count.
public _GetByRankResponse getByRank(_GetByRankRequest 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 _GetRankResponse getRank(_GetRankRequest request)
Get the rank of a list of particular ids in the leaderboard. * Ordinal, 0-based rank.
public _GetByScoreResponse getByScore(_GetByScoreRequest 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.