Package com.heroiclabs.nakama.api
Class NakamaGrpc.NakamaStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<NakamaGrpc.NakamaStub>
com.heroiclabs.nakama.api.NakamaGrpc.NakamaStub
- Enclosing class:
- NakamaGrpc
public static final class NakamaGrpc.NakamaStub
extends io.grpc.stub.AbstractAsyncStub<NakamaGrpc.NakamaStub>
The Nakama RPC protocol service built with GRPC.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>>
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFriends
(AddFriendsRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver) Add friends by ID or username to a user's account.void
addGroupUsers
(AddGroupUsersRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver) Add users to a group.void
authenticateApple
(AuthenticateAppleRequest request, io.grpc.stub.StreamObserver<Session> responseObserver) Authenticate a user with an Apple ID against the server.void
authenticateCustom
(AuthenticateCustomRequest request, io.grpc.stub.StreamObserver<Session> responseObserver) Authenticate a user with a custom id against the server.void
authenticateDevice
(AuthenticateDeviceRequest request, io.grpc.stub.StreamObserver<Session> responseObserver) Authenticate a user with a device id against the server.void
authenticateEmail
(AuthenticateEmailRequest request, io.grpc.stub.StreamObserver<Session> responseObserver) Authenticate a user with an email+password against the server.void
authenticateFacebook
(AuthenticateFacebookRequest request, io.grpc.stub.StreamObserver<Session> responseObserver) Authenticate a user with a Facebook OAuth token against the server.void
authenticateFacebookInstantGame
(AuthenticateFacebookInstantGameRequest request, io.grpc.stub.StreamObserver<Session> responseObserver) Authenticate a user with a Facebook Instant Game token against the server.void
authenticateGameCenter
(AuthenticateGameCenterRequest request, io.grpc.stub.StreamObserver<Session> responseObserver) Authenticate a user with Apple's GameCenter against the server.void
authenticateGoogle
(AuthenticateGoogleRequest request, io.grpc.stub.StreamObserver<Session> responseObserver) Authenticate a user with Google against the server.void
authenticateSteam
(AuthenticateSteamRequest request, io.grpc.stub.StreamObserver<Session> responseObserver) Authenticate a user with Steam against the server.void
banGroupUsers
(BanGroupUsersRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver) Ban a set of users from a group.void
blockFriends
(BlockFriendsRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver) Block one or more users by ID or username.protected NakamaGrpc.NakamaStub
build
(io.grpc.Channel channel, io.grpc.CallOptions callOptions) void
createGroup
(CreateGroupRequest request, io.grpc.stub.StreamObserver<Group> responseObserver) Create a new group with the current user as the owner.void
deleteFriends
(DeleteFriendsRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver) Delete one or more users by ID or username.void
deleteGroup
(DeleteGroupRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver) Delete a group by ID.void
deleteLeaderboardRecord
(DeleteLeaderboardRecordRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver) Delete a leaderboard record.void
deleteNotifications
(DeleteNotificationsRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver) Delete one or more notifications for the current user.void
deleteStorageObjects
(DeleteStorageObjectsRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver) Delete one or more objects by ID or username.void
demoteGroupUsers
(DemoteGroupUsersRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver) Demote a set of users in a group to the next role down.void
Submit an event for processing in the server's registered runtime custom events handler.void
getAccount
(Empty request, io.grpc.stub.StreamObserver<Account> responseObserver) Fetch the current user's account.void
getUsers
(GetUsersRequest request, io.grpc.stub.StreamObserver<Users> responseObserver) Fetch zero or more users by ID and/or username.void
healthcheck
(Empty request, io.grpc.stub.StreamObserver<Empty> responseObserver) A healthcheck which load balancers can use to check the service.void
importFacebookFriends
(ImportFacebookFriendsRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver) Import Facebook friends and add them to a user's account.void
joinGroup
(JoinGroupRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver) Immediately join an open group, or request to join a closed one.void
joinTournament
(JoinTournamentRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver) Attempt to join an open and running tournament.void
kickGroupUsers
(KickGroupUsersRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver) Kick a set of users from a group.void
leaveGroup
(LeaveGroupRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver) Leave a group the user is a member of.void
linkApple
(AccountApple request, io.grpc.stub.StreamObserver<Empty> responseObserver) Add an Apple ID to the social profiles on the current user's account.void
linkCustom
(AccountCustom request, io.grpc.stub.StreamObserver<Empty> responseObserver) Add a custom ID to the social profiles on the current user's account.void
linkDevice
(AccountDevice request, io.grpc.stub.StreamObserver<Empty> responseObserver) Add a device ID to the social profiles on the current user's account.void
linkEmail
(AccountEmail request, io.grpc.stub.StreamObserver<Empty> responseObserver) Add an email+password to the social profiles on the current user's account.void
linkFacebook
(LinkFacebookRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver) Add Facebook to the social profiles on the current user's account.void
linkFacebookInstantGame
(AccountFacebookInstantGame request, io.grpc.stub.StreamObserver<Empty> responseObserver) Add Facebook Instant Game to the social profiles on the current user's account.void
linkGameCenter
(AccountGameCenter request, io.grpc.stub.StreamObserver<Empty> responseObserver) Add Apple's GameCenter to the social profiles on the current user's account.void
linkGoogle
(AccountGoogle request, io.grpc.stub.StreamObserver<Empty> responseObserver) Add Google to the social profiles on the current user's account.void
linkSteam
(AccountSteam request, io.grpc.stub.StreamObserver<Empty> responseObserver) Add Steam to the social profiles on the current user's account.void
listChannelMessages
(ListChannelMessagesRequest request, io.grpc.stub.StreamObserver<ChannelMessageList> responseObserver) List a channel's message history.void
listFriends
(ListFriendsRequest request, io.grpc.stub.StreamObserver<FriendList> responseObserver) List all friends for the current user.void
listGroups
(ListGroupsRequest request, io.grpc.stub.StreamObserver<GroupList> responseObserver) List groups based on given filters.void
listGroupUsers
(ListGroupUsersRequest request, io.grpc.stub.StreamObserver<GroupUserList> responseObserver) List all users that are part of a group.void
listLeaderboardRecords
(ListLeaderboardRecordsRequest request, io.grpc.stub.StreamObserver<LeaderboardRecordList> responseObserver) List leaderboard records.void
listLeaderboardRecordsAroundOwner
(ListLeaderboardRecordsAroundOwnerRequest request, io.grpc.stub.StreamObserver<LeaderboardRecordList> responseObserver) List leaderboard records that belong to a user.void
listMatches
(ListMatchesRequest request, io.grpc.stub.StreamObserver<MatchList> responseObserver) Fetch list of running matches.void
listNotifications
(ListNotificationsRequest request, io.grpc.stub.StreamObserver<NotificationList> responseObserver) Fetch list of notifications.void
listStorageObjects
(ListStorageObjectsRequest request, io.grpc.stub.StreamObserver<StorageObjectList> responseObserver) List publicly readable storage objects in a given collection.void
listTournamentRecords
(ListTournamentRecordsRequest request, io.grpc.stub.StreamObserver<TournamentRecordList> responseObserver) List tournament records.void
listTournamentRecordsAroundOwner
(ListTournamentRecordsAroundOwnerRequest request, io.grpc.stub.StreamObserver<TournamentRecordList> responseObserver) List tournament records for a given owner.void
listTournaments
(ListTournamentsRequest request, io.grpc.stub.StreamObserver<TournamentList> responseObserver) List current or upcoming tournaments.void
listUserGroups
(ListUserGroupsRequest request, io.grpc.stub.StreamObserver<UserGroupList> responseObserver) List groups the current user belongs to.void
promoteGroupUsers
(PromoteGroupUsersRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver) Promote a set of users in a group to the next role up.void
readStorageObjects
(ReadStorageObjectsRequest request, io.grpc.stub.StreamObserver<StorageObjects> responseObserver) Get storage objects.void
Execute a Lua function on the server.void
unlinkApple
(AccountApple request, io.grpc.stub.StreamObserver<Empty> responseObserver) Remove the Apple ID from the social profiles on the current user's account.void
unlinkCustom
(AccountCustom request, io.grpc.stub.StreamObserver<Empty> responseObserver) Remove the custom ID from the social profiles on the current user's account.void
unlinkDevice
(AccountDevice request, io.grpc.stub.StreamObserver<Empty> responseObserver) Remove the device ID from the social profiles on the current user's account.void
unlinkEmail
(AccountEmail request, io.grpc.stub.StreamObserver<Empty> responseObserver) Remove the email+password from the social profiles on the current user's account.void
unlinkFacebook
(AccountFacebook request, io.grpc.stub.StreamObserver<Empty> responseObserver) Remove Facebook from the social profiles on the current user's account.void
unlinkFacebookInstantGame
(AccountFacebookInstantGame request, io.grpc.stub.StreamObserver<Empty> responseObserver) Remove Facebook Instant Game profile from the social profiles on the current user's account.void
unlinkGameCenter
(AccountGameCenter request, io.grpc.stub.StreamObserver<Empty> responseObserver) Remove Apple's GameCenter from the social profiles on the current user's account.void
unlinkGoogle
(AccountGoogle request, io.grpc.stub.StreamObserver<Empty> responseObserver) Remove Google from the social profiles on the current user's account.void
unlinkSteam
(AccountSteam request, io.grpc.stub.StreamObserver<Empty> responseObserver) Remove Steam from the social profiles on the current user's account.void
updateAccount
(UpdateAccountRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver) Update fields in the current user's account.void
updateGroup
(UpdateGroupRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver) Update fields in a given group.void
writeLeaderboardRecord
(WriteLeaderboardRecordRequest request, io.grpc.stub.StreamObserver<LeaderboardRecord> responseObserver) Write a record to a leaderboard.void
writeStorageObjects
(WriteStorageObjectsRequest request, io.grpc.stub.StreamObserver<StorageObjectAcks> responseObserver) Write objects into the storage engine.void
writeTournamentRecord
(WriteTournamentRecordRequest request, io.grpc.stub.StreamObserver<LeaderboardRecord> responseObserver) Write a record to a tournament.Methods inherited from class io.grpc.stub.AbstractAsyncStub
newStub, newStub
Methods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOption, withWaitForReady
-
Method Details
-
build
- Specified by:
build
in classio.grpc.stub.AbstractStub<NakamaGrpc.NakamaStub>
-
addFriends
public void addFriends(AddFriendsRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver) Add friends by ID or username to a user's account.
-
addGroupUsers
public void addGroupUsers(AddGroupUsersRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver) Add users to a group.
-
authenticateApple
public void authenticateApple(AuthenticateAppleRequest request, io.grpc.stub.StreamObserver<Session> responseObserver) Authenticate a user with an Apple ID against the server.
-
authenticateCustom
public void authenticateCustom(AuthenticateCustomRequest request, io.grpc.stub.StreamObserver<Session> responseObserver) Authenticate a user with a custom id against the server.
-
authenticateDevice
public void authenticateDevice(AuthenticateDeviceRequest request, io.grpc.stub.StreamObserver<Session> responseObserver) Authenticate a user with a device id against the server.
-
authenticateEmail
public void authenticateEmail(AuthenticateEmailRequest request, io.grpc.stub.StreamObserver<Session> responseObserver) Authenticate a user with an email+password against the server.
-
authenticateFacebook
public void authenticateFacebook(AuthenticateFacebookRequest request, io.grpc.stub.StreamObserver<Session> responseObserver) Authenticate a user with a Facebook OAuth token against the server.
-
authenticateFacebookInstantGame
public void authenticateFacebookInstantGame(AuthenticateFacebookInstantGameRequest request, io.grpc.stub.StreamObserver<Session> responseObserver) Authenticate a user with a Facebook Instant Game token against the server.
-
authenticateGameCenter
public void authenticateGameCenter(AuthenticateGameCenterRequest request, io.grpc.stub.StreamObserver<Session> responseObserver) Authenticate a user with Apple's GameCenter against the server.
-
authenticateGoogle
public void authenticateGoogle(AuthenticateGoogleRequest request, io.grpc.stub.StreamObserver<Session> responseObserver) Authenticate a user with Google against the server.
-
authenticateSteam
public void authenticateSteam(AuthenticateSteamRequest request, io.grpc.stub.StreamObserver<Session> responseObserver) Authenticate a user with Steam against the server.
-
banGroupUsers
public void banGroupUsers(BanGroupUsersRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver) Ban a set of users from a group.
-
blockFriends
public void blockFriends(BlockFriendsRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver) Block one or more users by ID or username.
-
createGroup
public void createGroup(CreateGroupRequest request, io.grpc.stub.StreamObserver<Group> responseObserver) Create a new group with the current user as the owner.
-
deleteFriends
public void deleteFriends(DeleteFriendsRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver) Delete one or more users by ID or username.
-
deleteGroup
public void deleteGroup(DeleteGroupRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver) Delete a group by ID.
-
deleteLeaderboardRecord
public void deleteLeaderboardRecord(DeleteLeaderboardRecordRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver) Delete a leaderboard record.
-
deleteNotifications
public void deleteNotifications(DeleteNotificationsRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver) Delete one or more notifications for the current user.
-
deleteStorageObjects
public void deleteStorageObjects(DeleteStorageObjectsRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver) Delete one or more objects by ID or username.
-
event
Submit an event for processing in the server's registered runtime custom events handler.
-
getAccount
Fetch the current user's account.
-
getUsers
Fetch zero or more users by ID and/or username.
-
healthcheck
A healthcheck which load balancers can use to check the service.
-
importFacebookFriends
public void importFacebookFriends(ImportFacebookFriendsRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver) Import Facebook friends and add them to a user's account.
-
joinGroup
public void joinGroup(JoinGroupRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver) Immediately join an open group, or request to join a closed one.
-
joinTournament
public void joinTournament(JoinTournamentRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver) Attempt to join an open and running tournament.
-
kickGroupUsers
public void kickGroupUsers(KickGroupUsersRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver) Kick a set of users from a group.
-
leaveGroup
public void leaveGroup(LeaveGroupRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver) Leave a group the user is a member of.
-
linkApple
Add an Apple ID to the social profiles on the current user's account.
-
linkCustom
Add a custom ID to the social profiles on the current user's account.
-
linkDevice
Add a device ID to the social profiles on the current user's account.
-
linkEmail
Add an email+password to the social profiles on the current user's account.
-
linkFacebook
public void linkFacebook(LinkFacebookRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver) Add Facebook to the social profiles on the current user's account.
-
linkFacebookInstantGame
public void linkFacebookInstantGame(AccountFacebookInstantGame request, io.grpc.stub.StreamObserver<Empty> responseObserver) Add Facebook Instant Game to the social profiles on the current user's account.
-
linkGameCenter
public void linkGameCenter(AccountGameCenter request, io.grpc.stub.StreamObserver<Empty> responseObserver) Add Apple's GameCenter to the social profiles on the current user's account.
-
linkGoogle
Add Google to the social profiles on the current user's account.
-
linkSteam
Add Steam to the social profiles on the current user's account.
-
listChannelMessages
public void listChannelMessages(ListChannelMessagesRequest request, io.grpc.stub.StreamObserver<ChannelMessageList> responseObserver) List a channel's message history.
-
listFriends
public void listFriends(ListFriendsRequest request, io.grpc.stub.StreamObserver<FriendList> responseObserver) List all friends for the current user.
-
listGroups
public void listGroups(ListGroupsRequest request, io.grpc.stub.StreamObserver<GroupList> responseObserver) List groups based on given filters.
-
listGroupUsers
public void listGroupUsers(ListGroupUsersRequest request, io.grpc.stub.StreamObserver<GroupUserList> responseObserver) List all users that are part of a group.
-
listLeaderboardRecords
public void listLeaderboardRecords(ListLeaderboardRecordsRequest request, io.grpc.stub.StreamObserver<LeaderboardRecordList> responseObserver) List leaderboard records.
-
listLeaderboardRecordsAroundOwner
public void listLeaderboardRecordsAroundOwner(ListLeaderboardRecordsAroundOwnerRequest request, io.grpc.stub.StreamObserver<LeaderboardRecordList> responseObserver) List leaderboard records that belong to a user.
-
listMatches
public void listMatches(ListMatchesRequest request, io.grpc.stub.StreamObserver<MatchList> responseObserver) Fetch list of running matches.
-
listNotifications
public void listNotifications(ListNotificationsRequest request, io.grpc.stub.StreamObserver<NotificationList> responseObserver) Fetch list of notifications.
-
listStorageObjects
public void listStorageObjects(ListStorageObjectsRequest request, io.grpc.stub.StreamObserver<StorageObjectList> responseObserver) List publicly readable storage objects in a given collection.
-
listTournaments
public void listTournaments(ListTournamentsRequest request, io.grpc.stub.StreamObserver<TournamentList> responseObserver) List current or upcoming tournaments.
-
listTournamentRecords
public void listTournamentRecords(ListTournamentRecordsRequest request, io.grpc.stub.StreamObserver<TournamentRecordList> responseObserver) List tournament records.
-
listTournamentRecordsAroundOwner
public void listTournamentRecordsAroundOwner(ListTournamentRecordsAroundOwnerRequest request, io.grpc.stub.StreamObserver<TournamentRecordList> responseObserver) List tournament records for a given owner.
-
listUserGroups
public void listUserGroups(ListUserGroupsRequest request, io.grpc.stub.StreamObserver<UserGroupList> responseObserver) List groups the current user belongs to.
-
promoteGroupUsers
public void promoteGroupUsers(PromoteGroupUsersRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver) Promote a set of users in a group to the next role up.
-
demoteGroupUsers
public void demoteGroupUsers(DemoteGroupUsersRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver) Demote a set of users in a group to the next role down.
-
readStorageObjects
public void readStorageObjects(ReadStorageObjectsRequest request, io.grpc.stub.StreamObserver<StorageObjects> responseObserver) Get storage objects.
-
rpcFunc
Execute a Lua function on the server.
-
unlinkApple
Remove the Apple ID from the social profiles on the current user's account.
-
unlinkCustom
public void unlinkCustom(AccountCustom request, io.grpc.stub.StreamObserver<Empty> responseObserver) Remove the custom ID from the social profiles on the current user's account.
-
unlinkDevice
public void unlinkDevice(AccountDevice request, io.grpc.stub.StreamObserver<Empty> responseObserver) Remove the device ID from the social profiles on the current user's account.
-
unlinkEmail
Remove the email+password from the social profiles on the current user's account.
-
unlinkFacebook
public void unlinkFacebook(AccountFacebook request, io.grpc.stub.StreamObserver<Empty> responseObserver) Remove Facebook from the social profiles on the current user's account.
-
unlinkFacebookInstantGame
public void unlinkFacebookInstantGame(AccountFacebookInstantGame request, io.grpc.stub.StreamObserver<Empty> responseObserver) Remove Facebook Instant Game profile from the social profiles on the current user's account.
-
unlinkGameCenter
public void unlinkGameCenter(AccountGameCenter request, io.grpc.stub.StreamObserver<Empty> responseObserver) Remove Apple's GameCenter from the social profiles on the current user's account.
-
unlinkGoogle
public void unlinkGoogle(AccountGoogle request, io.grpc.stub.StreamObserver<Empty> responseObserver) Remove Google from the social profiles on the current user's account.
-
unlinkSteam
Remove Steam from the social profiles on the current user's account.
-
updateAccount
public void updateAccount(UpdateAccountRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver) Update fields in the current user's account.
-
updateGroup
public void updateGroup(UpdateGroupRequest request, io.grpc.stub.StreamObserver<Empty> responseObserver) Update fields in a given group.
-
writeLeaderboardRecord
public void writeLeaderboardRecord(WriteLeaderboardRecordRequest request, io.grpc.stub.StreamObserver<LeaderboardRecord> responseObserver) Write a record to a leaderboard.
-
writeStorageObjects
public void writeStorageObjects(WriteStorageObjectsRequest request, io.grpc.stub.StreamObserver<StorageObjectAcks> responseObserver) Write objects into the storage engine.
-
writeTournamentRecord
public void writeTournamentRecord(WriteTournamentRecordRequest request, io.grpc.stub.StreamObserver<LeaderboardRecord> responseObserver) Write a record to a tournament.
-