Package com.heroiclabs.nakama.rtapi
Class Match.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Match.Builder>
com.heroiclabs.nakama.rtapi.Match.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,MatchOrBuilder
,Cloneable
- Enclosing class:
- Match
public static final class Match.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Match.Builder>
implements MatchOrBuilder
A realtime match.Protobuf type
nakama.realtime.Match
-
Method Summary
Modifier and TypeMethodDescriptionaddAllPresences
(Iterable<? extends UserPresence> values) The users currently in the match.addPresences
(int index, UserPresence value) The users currently in the match.addPresences
(int index, UserPresence.Builder builderForValue) The users currently in the match.addPresences
(UserPresence value) The users currently in the match.addPresences
(UserPresence.Builder builderForValue) The users currently in the match.The users currently in the match.addPresencesBuilder
(int index) The users currently in the match.addRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
True if it's an server-managed authoritative match, false otherwise.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) Match label, if any.The match unique ID.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) The users currently in the match.A reference to the current user's presence in the match.The number of users currently in the match.clone()
boolean
True if it's an server-managed authoritative match, false otherwise.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getLabel()
Match label, if any.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.getPresencesBuilder
(int index) The users currently in the match.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.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.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeLabel
(StringValue value) Match label, if any.mergeSelf
(UserPresence value) A reference to the current user's presence in the match.final Match.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) removePresences
(int index) The users currently in the match.setAuthoritative
(boolean value) True if it's an server-managed authoritative match, false otherwise.setLabel
(StringValue value) Match label, if any.setLabel
(StringValue.Builder builderForValue) Match label, if any.setMatchId
(String value) The match unique ID.setMatchIdBytes
(com.google.protobuf.ByteString value) The match unique ID.setPresences
(int index, UserPresence value) The users currently in the match.setPresences
(int index, UserPresence.Builder builderForValue) The users currently in the match.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSelf
(UserPresence value) A reference to the current user's presence in the match.setSelf
(UserPresence.Builder builderForValue) A reference to the current user's presence in the match.setSize
(int value) The number of users currently in the match.final Match.Builder
setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Match.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Match.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Match.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Match.Builder>
-
setField
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Match.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Match.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Match.Builder>
-
setRepeatedField
public Match.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Match.Builder>
-
addRepeatedField
public Match.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Match.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Match.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Match.Builder>
-
mergeFrom
public Match.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Match.Builder>
- Throws:
IOException
-
getMatchId
The match unique ID.
string match_id = 1;
- Specified by:
getMatchId
in interfaceMatchOrBuilder
- Returns:
- The matchId.
-
getMatchIdBytes
public com.google.protobuf.ByteString getMatchIdBytes()The match unique ID.
string match_id = 1;
- Specified by:
getMatchIdBytes
in interfaceMatchOrBuilder
- Returns:
- The bytes for matchId.
-
setMatchId
The match unique ID.
string match_id = 1;
- Parameters:
value
- The matchId to set.- Returns:
- This builder for chaining.
-
clearMatchId
The match unique ID.
string match_id = 1;
- Returns:
- This builder for chaining.
-
setMatchIdBytes
The match unique ID.
string match_id = 1;
- Parameters:
value
- The bytes for matchId to set.- Returns:
- This builder for chaining.
-
getAuthoritative
public boolean getAuthoritative()True if it's an server-managed authoritative match, false otherwise.
bool authoritative = 2;
- Specified by:
getAuthoritative
in interfaceMatchOrBuilder
- Returns:
- The authoritative.
-
setAuthoritative
True if it's an server-managed authoritative match, false otherwise.
bool authoritative = 2;
- Parameters:
value
- The authoritative to set.- Returns:
- This builder for chaining.
-
clearAuthoritative
True if it's an server-managed authoritative match, false otherwise.
bool authoritative = 2;
- Returns:
- This builder for chaining.
-
hasLabel
public boolean hasLabel()Match label, if any.
.google.protobuf.StringValue label = 3;
- Specified by:
hasLabel
in interfaceMatchOrBuilder
- Returns:
- Whether the label field is set.
-
getLabel
Match label, if any.
.google.protobuf.StringValue label = 3;
- Specified by:
getLabel
in interfaceMatchOrBuilder
- Returns:
- The label.
-
setLabel
Match label, if any.
.google.protobuf.StringValue label = 3;
-
setLabel
Match label, if any.
.google.protobuf.StringValue label = 3;
-
mergeLabel
Match label, if any.
.google.protobuf.StringValue label = 3;
-
clearLabel
Match label, if any.
.google.protobuf.StringValue label = 3;
-
getLabelBuilder
Match label, if any.
.google.protobuf.StringValue label = 3;
-
getLabelOrBuilder
Match label, if any.
.google.protobuf.StringValue label = 3;
- Specified by:
getLabelOrBuilder
in interfaceMatchOrBuilder
-
getSize
public int getSize()The number of users currently in the match.
int32 size = 4;
- Specified by:
getSize
in interfaceMatchOrBuilder
- Returns:
- The size.
-
setSize
The number of users currently in the match.
int32 size = 4;
- Parameters:
value
- The size to set.- Returns:
- This builder for chaining.
-
clearSize
The number of users currently in the match.
int32 size = 4;
- Returns:
- This builder for chaining.
-
getPresencesList
The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5;
- Specified by:
getPresencesList
in interfaceMatchOrBuilder
-
getPresencesCount
public int getPresencesCount()The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5;
- Specified by:
getPresencesCount
in interfaceMatchOrBuilder
-
getPresences
The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5;
- Specified by:
getPresences
in interfaceMatchOrBuilder
-
setPresences
The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5;
-
setPresences
The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5;
-
addPresences
The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5;
-
addPresences
The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5;
-
addPresences
The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5;
-
addPresences
The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5;
-
addAllPresences
The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5;
-
clearPresences
The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5;
-
removePresences
The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5;
-
getPresencesBuilder
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;
- Specified by:
getPresencesOrBuilder
in interfaceMatchOrBuilder
-
getPresencesOrBuilderList
The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5;
- Specified by:
getPresencesOrBuilderList
in interfaceMatchOrBuilder
-
addPresencesBuilder
The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5;
-
addPresencesBuilder
The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5;
-
getPresencesBuilderList
The users currently in the match.
repeated .nakama.realtime.UserPresence presences = 5;
-
hasSelf
public boolean hasSelf()A reference to the current user's presence in the match.
.nakama.realtime.UserPresence self = 6;
- Specified by:
hasSelf
in interfaceMatchOrBuilder
- Returns:
- Whether the self field is set.
-
getSelf
A reference to the current user's presence in the match.
.nakama.realtime.UserPresence self = 6;
- Specified by:
getSelf
in interfaceMatchOrBuilder
- Returns:
- The self.
-
setSelf
A reference to the current user's presence in the match.
.nakama.realtime.UserPresence self = 6;
-
setSelf
A reference to the current user's presence in the match.
.nakama.realtime.UserPresence self = 6;
-
mergeSelf
A reference to the current user's presence in the match.
.nakama.realtime.UserPresence self = 6;
-
clearSelf
A reference to the current user's presence in the match.
.nakama.realtime.UserPresence self = 6;
-
getSelfBuilder
A reference to the current user's presence in the match.
.nakama.realtime.UserPresence self = 6;
-
getSelfOrBuilder
A reference to the current user's presence in the match.
.nakama.realtime.UserPresence self = 6;
- Specified by:
getSelfOrBuilder
in interfaceMatchOrBuilder
-
setUnknownFields
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Match.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Match.Builder>
-