public static final class Match.Builder extends com.google.protobuf.GeneratedMessage.Builder<Match.Builder> implements MatchOrBuilder
A realtime match.Protobuf type
nakama.realtime.Match| Modifier and Type | Method and Description |
|---|---|
Match.Builder |
addAllPresences(java.lang.Iterable<? extends UserPresence> values)
The users currently in the match.
|
Match.Builder |
addPresences(int index,
UserPresence.Builder builderForValue)
The users currently in the match.
|
Match.Builder |
addPresences(int index,
UserPresence value)
The users currently in the match.
|
Match.Builder |
addPresences(UserPresence.Builder builderForValue)
The users currently in the match.
|
Match.Builder |
addPresences(UserPresence value)
The users currently in the match.
|
UserPresence.Builder |
addPresencesBuilder()
The users currently in the match.
|
UserPresence.Builder |
addPresencesBuilder(int index)
The users currently in the match.
|
Match |
build() |
Match |
buildPartial() |
Match.Builder |
clear() |
Match.Builder |
clearAuthoritative()
True if it's an server-managed authoritative match, false otherwise.
|
Match.Builder |
clearLabel()
Match label, if any.
|
Match.Builder |
clearMatchId()
The match unique ID.
|
Match.Builder |
clearPresences()
The users currently in the match.
|
Match.Builder |
clearSelf()
A reference to the current user's presence in the match.
|
Match.Builder |
clearSize()
The number of users currently in the match.
|
boolean |
getAuthoritative()
True if it's an server-managed authoritative match, false otherwise.
|
Match |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.StringValue |
getLabel()
Match label, if any.
|
com.google.protobuf.StringValue.Builder |
getLabelBuilder()
Match label, if any.
|
com.google.protobuf.StringValueOrBuilder |
getLabelOrBuilder()
Match label, if any.
|
java.lang.String |
getMatchId()
The match unique ID.
|
com.google.protobuf.ByteString |
getMatchIdBytes()
The match unique ID.
|
UserPresence |
getPresences(int index)
The users currently in the match.
|
UserPresence.Builder |
getPresencesBuilder(int index)
The users currently in the match.
|
java.util.List<UserPresence.Builder> |
getPresencesBuilderList()
The users currently in the match.
|
int |
getPresencesCount()
The users currently in the match.
|
java.util.List<UserPresence> |
getPresencesList()
The users currently in the match.
|
UserPresenceOrBuilder |
getPresencesOrBuilder(int index)
The users currently in the match.
|
java.util.List<? extends UserPresenceOrBuilder> |
getPresencesOrBuilderList()
The users currently in the match.
|
UserPresence |
getSelf()
A reference to the current user's presence in the match.
|
UserPresence.Builder |
getSelfBuilder()
A reference to the current user's presence in the match.
|
UserPresenceOrBuilder |
getSelfOrBuilder()
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.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Match.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Match.Builder |
mergeFrom(Match other) |
Match.Builder |
mergeFrom(com.google.protobuf.Message other) |
Match.Builder |
mergeLabel(com.google.protobuf.StringValue value)
Match label, if any.
|
Match.Builder |
mergeSelf(UserPresence value)
A reference to the current user's presence in the match.
|
Match.Builder |
removePresences(int index)
The users currently in the match.
|
Match.Builder |
setAuthoritative(boolean value)
True if it's an server-managed authoritative match, false otherwise.
|
Match.Builder |
setLabel(com.google.protobuf.StringValue.Builder builderForValue)
Match label, if any.
|
Match.Builder |
setLabel(com.google.protobuf.StringValue value)
Match label, if any.
|
Match.Builder |
setMatchId(java.lang.String value)
The match unique ID.
|
Match.Builder |
setMatchIdBytes(com.google.protobuf.ByteString value)
The match unique ID.
|
Match.Builder |
setPresences(int index,
UserPresence.Builder builderForValue)
The users currently in the match.
|
Match.Builder |
setPresences(int index,
UserPresence value)
The users currently in the match.
|
Match.Builder |
setSelf(UserPresence.Builder builderForValue)
A reference to the current user's presence in the match.
|
Match.Builder |
setSelf(UserPresence value)
A reference to the current user's presence in the match.
|
Match.Builder |
setSize(int value)
The number of users currently in the match.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Match.Builder>public Match.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<Match.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Match.Builder>public Match getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Match build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Match buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Match.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Match.Builder>public Match.Builder mergeFrom(Match other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<Match.Builder>public Match.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Match.Builder>java.io.IOExceptionpublic java.lang.String getMatchId()
The match unique ID.
string match_id = 1 [json_name = "matchId"];getMatchId in interface MatchOrBuilderpublic com.google.protobuf.ByteString getMatchIdBytes()
The match unique ID.
string match_id = 1 [json_name = "matchId"];getMatchIdBytes in interface MatchOrBuilderpublic Match.Builder setMatchId(java.lang.String value)
The match unique ID.
string match_id = 1 [json_name = "matchId"];value - The matchId to set.public Match.Builder clearMatchId()
The match unique ID.
string match_id = 1 [json_name = "matchId"];public Match.Builder setMatchIdBytes(com.google.protobuf.ByteString value)
The match unique ID.
string match_id = 1 [json_name = "matchId"];value - The bytes for matchId to set.public boolean getAuthoritative()
True if it's an server-managed authoritative match, false otherwise.
bool authoritative = 2 [json_name = "authoritative"];getAuthoritative in interface MatchOrBuilderpublic Match.Builder setAuthoritative(boolean value)
True if it's an server-managed authoritative match, false otherwise.
bool authoritative = 2 [json_name = "authoritative"];value - The authoritative to set.public Match.Builder clearAuthoritative()
True if it's an server-managed authoritative match, false otherwise.
bool authoritative = 2 [json_name = "authoritative"];public boolean hasLabel()
Match label, if any.
.google.protobuf.StringValue label = 3 [json_name = "label"];hasLabel in interface MatchOrBuilderpublic com.google.protobuf.StringValue getLabel()
Match label, if any.
.google.protobuf.StringValue label = 3 [json_name = "label"];getLabel in interface MatchOrBuilderpublic Match.Builder setLabel(com.google.protobuf.StringValue value)
Match label, if any.
.google.protobuf.StringValue label = 3 [json_name = "label"];public Match.Builder setLabel(com.google.protobuf.StringValue.Builder builderForValue)
Match label, if any.
.google.protobuf.StringValue label = 3 [json_name = "label"];public Match.Builder mergeLabel(com.google.protobuf.StringValue value)
Match label, if any.
.google.protobuf.StringValue label = 3 [json_name = "label"];public Match.Builder clearLabel()
Match label, if any.
.google.protobuf.StringValue label = 3 [json_name = "label"];public com.google.protobuf.StringValue.Builder getLabelBuilder()
Match label, if any.
.google.protobuf.StringValue label = 3 [json_name = "label"];public com.google.protobuf.StringValueOrBuilder getLabelOrBuilder()
Match label, if any.
.google.protobuf.StringValue label = 3 [json_name = "label"];getLabelOrBuilder in interface MatchOrBuilderpublic int getSize()
The number of users currently in the match.
int32 size = 4 [json_name = "size"];getSize in interface MatchOrBuilderpublic Match.Builder setSize(int value)
The number of users currently in the match.
int32 size = 4 [json_name = "size"];value - The size to set.public Match.Builder clearSize()
The number of users currently in the match.
int32 size = 4 [json_name = "size"];public java.util.List<UserPresence> getPresencesList()
The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5 [json_name = "presences"];getPresencesList in interface MatchOrBuilderpublic int getPresencesCount()
The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5 [json_name = "presences"];getPresencesCount in interface MatchOrBuilderpublic UserPresence getPresences(int index)
The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5 [json_name = "presences"];getPresences in interface MatchOrBuilderpublic Match.Builder setPresences(int index, UserPresence value)
The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5 [json_name = "presences"];public Match.Builder setPresences(int index, UserPresence.Builder builderForValue)
The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5 [json_name = "presences"];public Match.Builder addPresences(UserPresence value)
The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5 [json_name = "presences"];public Match.Builder addPresences(int index, UserPresence value)
The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5 [json_name = "presences"];public Match.Builder addPresences(UserPresence.Builder builderForValue)
The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5 [json_name = "presences"];public Match.Builder addPresences(int index, UserPresence.Builder builderForValue)
The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5 [json_name = "presences"];public Match.Builder addAllPresences(java.lang.Iterable<? extends UserPresence> values)
The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5 [json_name = "presences"];public Match.Builder clearPresences()
The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5 [json_name = "presences"];public Match.Builder removePresences(int index)
The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5 [json_name = "presences"];public UserPresence.Builder getPresencesBuilder(int index)
The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5 [json_name = "presences"];public UserPresenceOrBuilder getPresencesOrBuilder(int index)
The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5 [json_name = "presences"];getPresencesOrBuilder in interface MatchOrBuilderpublic java.util.List<? extends UserPresenceOrBuilder> getPresencesOrBuilderList()
The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5 [json_name = "presences"];getPresencesOrBuilderList in interface MatchOrBuilderpublic UserPresence.Builder addPresencesBuilder()
The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5 [json_name = "presences"];public UserPresence.Builder addPresencesBuilder(int index)
The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5 [json_name = "presences"];public java.util.List<UserPresence.Builder> getPresencesBuilderList()
The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5 [json_name = "presences"];public boolean hasSelf()
A reference to the current user's presence in the match.
.nakama.realtime.UserPresence self = 6 [json_name = "self"];hasSelf in interface MatchOrBuilderpublic UserPresence getSelf()
A reference to the current user's presence in the match.
.nakama.realtime.UserPresence self = 6 [json_name = "self"];getSelf in interface MatchOrBuilderpublic Match.Builder setSelf(UserPresence value)
A reference to the current user's presence in the match.
.nakama.realtime.UserPresence self = 6 [json_name = "self"];public Match.Builder setSelf(UserPresence.Builder builderForValue)
A reference to the current user's presence in the match.
.nakama.realtime.UserPresence self = 6 [json_name = "self"];public Match.Builder mergeSelf(UserPresence value)
A reference to the current user's presence in the match.
.nakama.realtime.UserPresence self = 6 [json_name = "self"];public Match.Builder clearSelf()
A reference to the current user's presence in the match.
.nakama.realtime.UserPresence self = 6 [json_name = "self"];public UserPresence.Builder getSelfBuilder()
A reference to the current user's presence in the match.
.nakama.realtime.UserPresence self = 6 [json_name = "self"];public UserPresenceOrBuilder getSelfOrBuilder()
A reference to the current user's presence in the match.
.nakama.realtime.UserPresence self = 6 [json_name = "self"];getSelfOrBuilder in interface MatchOrBuilder