Package com.heroiclabs.nakama.rtapi
Interface MatchOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Match
,Match.Builder
public interface MatchOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionboolean
True if it's an server-managed authoritative match, false otherwise.getLabel()
Match label, if any.Match label, if any.The match unique ID.com.google.protobuf.ByteString
The match unique ID.getPresences
(int index) The users currently in the match.int
The users currently in the match.The users currently in the match.getPresencesOrBuilder
(int index) The users currently in the match.List<? extends UserPresenceOrBuilder>
The users currently in the match.getSelf()
A reference to the current user's presence in the match.A reference to the current user's presence in the match.int
getSize()
The number of users currently in the match.boolean
hasLabel()
Match label, if any.boolean
hasSelf()
A reference to the current user's presence in the match.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getMatchId
String getMatchId()The match unique ID.
string match_id = 1;
- Returns:
- The matchId.
-
getMatchIdBytes
com.google.protobuf.ByteString getMatchIdBytes()The match unique ID.
string match_id = 1;
- Returns:
- The bytes for matchId.
-
getAuthoritative
boolean getAuthoritative()True if it's an server-managed authoritative match, false otherwise.
bool authoritative = 2;
- Returns:
- The authoritative.
-
hasLabel
boolean hasLabel()Match label, if any.
.google.protobuf.StringValue label = 3;
- Returns:
- Whether the label field is set.
-
getLabel
StringValue getLabel()Match label, if any.
.google.protobuf.StringValue label = 3;
- Returns:
- The label.
-
getLabelOrBuilder
StringValueOrBuilder getLabelOrBuilder()Match label, if any.
.google.protobuf.StringValue label = 3;
-
getSize
int getSize()The number of users currently in the match.
int32 size = 4;
- Returns:
- The size.
-
getPresencesList
List<UserPresence> getPresencesList()The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5;
-
getPresences
The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5;
-
getPresencesCount
int getPresencesCount()The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5;
-
getPresencesOrBuilderList
List<? extends UserPresenceOrBuilder> getPresencesOrBuilderList()The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5;
-
getPresencesOrBuilder
The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5;
-
hasSelf
boolean hasSelf()A reference to the current user's presence in the match.
.nakama.realtime.UserPresence self = 6;
- Returns:
- Whether the self field is set.
-
getSelf
UserPresence getSelf()A reference to the current user's presence in the match.
.nakama.realtime.UserPresence self = 6;
- Returns:
- The self.
-
getSelfOrBuilder
UserPresenceOrBuilder getSelfOrBuilder()A reference to the current user's presence in the match.
.nakama.realtime.UserPresence self = 6;
-