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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public 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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessage.Builder<Match.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessage.Builder<Match.Builder>
public Match getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Match build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Match buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Match.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Match.Builder>
java.io.IOException
public java.lang.String getMatchId()
The match unique ID.
string match_id = 1 [json_name = "matchId"];
getMatchId
in interface MatchOrBuilder
public com.google.protobuf.ByteString getMatchIdBytes()
The match unique ID.
string match_id = 1 [json_name = "matchId"];
getMatchIdBytes
in interface MatchOrBuilder
public 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 MatchOrBuilder
public 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 MatchOrBuilder
public com.google.protobuf.StringValue getLabel()
Match label, if any.
.google.protobuf.StringValue label = 3 [json_name = "label"];
getLabel
in interface MatchOrBuilder
public 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 MatchOrBuilder
public int getSize()
The number of users currently in the match.
int32 size = 4 [json_name = "size"];
getSize
in interface MatchOrBuilder
public 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 MatchOrBuilder
public int getPresencesCount()
The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5 [json_name = "presences"];
getPresencesCount
in interface MatchOrBuilder
public UserPresence getPresences(int index)
The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5 [json_name = "presences"];
getPresences
in interface MatchOrBuilder
public 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 MatchOrBuilder
public java.util.List<? extends UserPresenceOrBuilder> getPresencesOrBuilderList()
The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5 [json_name = "presences"];
getPresencesOrBuilderList
in interface MatchOrBuilder
public 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 MatchOrBuilder
public UserPresence getSelf()
A reference to the current user's presence in the match.
.nakama.realtime.UserPresence self = 6 [json_name = "self"];
getSelf
in interface MatchOrBuilder
public 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