Package com.heroiclabs.nakama.rtapi
Class MatchDataSend.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<MatchDataSend.Builder>
com.heroiclabs.nakama.rtapi.MatchDataSend.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,MatchDataSendOrBuilder
,Cloneable
- Enclosing class:
- MatchDataSend
public static final class MatchDataSend.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<MatchDataSend.Builder>
implements MatchDataSendOrBuilder
Send realtime match data to the server.Protobuf type
nakama.realtime.MatchDataSend
-
Method Summary
Modifier and TypeMethodDescriptionaddAllPresences
(Iterable<? extends UserPresence> values) List of presences in the match to deliver to, if filtering is required.addPresences
(int index, UserPresence value) List of presences in the match to deliver to, if filtering is required.addPresences
(int index, UserPresence.Builder builderForValue) List of presences in the match to deliver to, if filtering is required.addPresences
(UserPresence value) List of presences in the match to deliver to, if filtering is required.addPresences
(UserPresence.Builder builderForValue) List of presences in the match to deliver to, if filtering is required.List of presences in the match to deliver to, if filtering is required.addPresencesBuilder
(int index) List of presences in the match to deliver to, if filtering is required.addRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
Data payload, if any.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) The match unique ID.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) Op code value.List of presences in the match to deliver to, if filtering is required.True if the data should be sent reliably, false otherwise.clone()
com.google.protobuf.ByteString
getData()
Data payload, if any.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
The match unique ID.com.google.protobuf.ByteString
The match unique ID.long
Op code value.getPresences
(int index) List of presences in the match to deliver to, if filtering is required.getPresencesBuilder
(int index) List of presences in the match to deliver to, if filtering is required.List of presences in the match to deliver to, if filtering is required.int
List of presences in the match to deliver to, if filtering is required.List of presences in the match to deliver to, if filtering is required.getPresencesOrBuilder
(int index) List of presences in the match to deliver to, if filtering is required.List<? extends UserPresenceOrBuilder>
List of presences in the match to deliver to, if filtering is required.boolean
True if the data should be sent reliably, false otherwise.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) mergeFrom
(MatchDataSend other) final MatchDataSend.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) removePresences
(int index) List of presences in the match to deliver to, if filtering is required.setData
(com.google.protobuf.ByteString value) Data payload, if any.setMatchId
(String value) The match unique ID.setMatchIdBytes
(com.google.protobuf.ByteString value) The match unique ID.setOpCode
(long value) Op code value.setPresences
(int index, UserPresence value) List of presences in the match to deliver to, if filtering is required.setPresences
(int index, UserPresence.Builder builderForValue) List of presences in the match to deliver to, if filtering is required.setReliable
(boolean value) True if the data should be sent reliably, false otherwise.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final MatchDataSend.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<MatchDataSend.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<MatchDataSend.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<MatchDataSend.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<MatchDataSend.Builder>
-
setField
public MatchDataSend.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MatchDataSend.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MatchDataSend.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<MatchDataSend.Builder>
-
setRepeatedField
public MatchDataSend.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<MatchDataSend.Builder>
-
addRepeatedField
public MatchDataSend.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<MatchDataSend.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<MatchDataSend.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<MatchDataSend.Builder>
-
mergeFrom
public MatchDataSend.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<MatchDataSend.Builder>
- Throws:
IOException
-
getMatchId
The match unique ID.
string match_id = 1;
- Specified by:
getMatchId
in interfaceMatchDataSendOrBuilder
- Returns:
- The matchId.
-
getMatchIdBytes
public com.google.protobuf.ByteString getMatchIdBytes()The match unique ID.
string match_id = 1;
- Specified by:
getMatchIdBytes
in interfaceMatchDataSendOrBuilder
- 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.
-
getOpCode
public long getOpCode()Op code value.
int64 op_code = 2;
- Specified by:
getOpCode
in interfaceMatchDataSendOrBuilder
- Returns:
- The opCode.
-
setOpCode
Op code value.
int64 op_code = 2;
- Parameters:
value
- The opCode to set.- Returns:
- This builder for chaining.
-
clearOpCode
Op code value.
int64 op_code = 2;
- Returns:
- This builder for chaining.
-
getData
public com.google.protobuf.ByteString getData()Data payload, if any.
bytes data = 3;
- Specified by:
getData
in interfaceMatchDataSendOrBuilder
- Returns:
- The data.
-
setData
Data payload, if any.
bytes data = 3;
- Parameters:
value
- The data to set.- Returns:
- This builder for chaining.
-
clearData
Data payload, if any.
bytes data = 3;
- Returns:
- This builder for chaining.
-
getPresencesList
List of presences in the match to deliver to, if filtering is required. Otherwise deliver to everyone in the match.
repeated .nakama.realtime.UserPresence presences = 4;
- Specified by:
getPresencesList
in interfaceMatchDataSendOrBuilder
-
getPresencesCount
public int getPresencesCount()List of presences in the match to deliver to, if filtering is required. Otherwise deliver to everyone in the match.
repeated .nakama.realtime.UserPresence presences = 4;
- Specified by:
getPresencesCount
in interfaceMatchDataSendOrBuilder
-
getPresences
List of presences in the match to deliver to, if filtering is required. Otherwise deliver to everyone in the match.
repeated .nakama.realtime.UserPresence presences = 4;
- Specified by:
getPresences
in interfaceMatchDataSendOrBuilder
-
setPresences
List of presences in the match to deliver to, if filtering is required. Otherwise deliver to everyone in the match.
repeated .nakama.realtime.UserPresence presences = 4;
-
setPresences
List of presences in the match to deliver to, if filtering is required. Otherwise deliver to everyone in the match.
repeated .nakama.realtime.UserPresence presences = 4;
-
addPresences
List of presences in the match to deliver to, if filtering is required. Otherwise deliver to everyone in the match.
repeated .nakama.realtime.UserPresence presences = 4;
-
addPresences
List of presences in the match to deliver to, if filtering is required. Otherwise deliver to everyone in the match.
repeated .nakama.realtime.UserPresence presences = 4;
-
addPresences
List of presences in the match to deliver to, if filtering is required. Otherwise deliver to everyone in the match.
repeated .nakama.realtime.UserPresence presences = 4;
-
addPresences
List of presences in the match to deliver to, if filtering is required. Otherwise deliver to everyone in the match.
repeated .nakama.realtime.UserPresence presences = 4;
-
addAllPresences
List of presences in the match to deliver to, if filtering is required. Otherwise deliver to everyone in the match.
repeated .nakama.realtime.UserPresence presences = 4;
-
clearPresences
List of presences in the match to deliver to, if filtering is required. Otherwise deliver to everyone in the match.
repeated .nakama.realtime.UserPresence presences = 4;
-
removePresences
List of presences in the match to deliver to, if filtering is required. Otherwise deliver to everyone in the match.
repeated .nakama.realtime.UserPresence presences = 4;
-
getPresencesBuilder
List of presences in the match to deliver to, if filtering is required. Otherwise deliver to everyone in the match.
repeated .nakama.realtime.UserPresence presences = 4;
-
getPresencesOrBuilder
List of presences in the match to deliver to, if filtering is required. Otherwise deliver to everyone in the match.
repeated .nakama.realtime.UserPresence presences = 4;
- Specified by:
getPresencesOrBuilder
in interfaceMatchDataSendOrBuilder
-
getPresencesOrBuilderList
List of presences in the match to deliver to, if filtering is required. Otherwise deliver to everyone in the match.
repeated .nakama.realtime.UserPresence presences = 4;
- Specified by:
getPresencesOrBuilderList
in interfaceMatchDataSendOrBuilder
-
addPresencesBuilder
List of presences in the match to deliver to, if filtering is required. Otherwise deliver to everyone in the match.
repeated .nakama.realtime.UserPresence presences = 4;
-
addPresencesBuilder
List of presences in the match to deliver to, if filtering is required. Otherwise deliver to everyone in the match.
repeated .nakama.realtime.UserPresence presences = 4;
-
getPresencesBuilderList
List of presences in the match to deliver to, if filtering is required. Otherwise deliver to everyone in the match.
repeated .nakama.realtime.UserPresence presences = 4;
-
getReliable
public boolean getReliable()True if the data should be sent reliably, false otherwise.
bool reliable = 5;
- Specified by:
getReliable
in interfaceMatchDataSendOrBuilder
- Returns:
- The reliable.
-
setReliable
True if the data should be sent reliably, false otherwise.
bool reliable = 5;
- Parameters:
value
- The reliable to set.- Returns:
- This builder for chaining.
-
clearReliable
True if the data should be sent reliably, false otherwise.
bool reliable = 5;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final MatchDataSend.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MatchDataSend.Builder>
-
mergeUnknownFields
public final MatchDataSend.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MatchDataSend.Builder>
-