public static final class Match.Builder extends com.google.protobuf.GeneratedMessage.Builder<Match.Builder> implements MatchOrBuilder
Represents a realtime match.Protobuf type
nakama.api.Match| Modifier and Type | Method and Description |
|---|---|
Match |
build() |
Match |
buildPartial() |
Match.Builder |
clear() |
Match.Builder |
clearAuthoritative()
True if it's an server-managed authoritative match, false otherwise.
|
Match.Builder |
clearHandlerName()
Handler name
|
Match.Builder |
clearLabel()
Match label, if any.
|
Match.Builder |
clearMatchId()
The ID of the match, can be used to join.
|
Match.Builder |
clearSize()
Current number of users in the match.
|
Match.Builder |
clearTickRate()
Tick Rate
|
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() |
java.lang.String |
getHandlerName()
Handler name
|
com.google.protobuf.ByteString |
getHandlerNameBytes()
Handler name
|
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 ID of the match, can be used to join.
|
com.google.protobuf.ByteString |
getMatchIdBytes()
The ID of the match, can be used to join.
|
int |
getSize()
Current number of users in the match.
|
int |
getTickRate()
Tick Rate
|
boolean |
hasLabel()
Match label, if any.
|
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 |
setAuthoritative(boolean value)
True if it's an server-managed authoritative match, false otherwise.
|
Match.Builder |
setHandlerName(java.lang.String value)
Handler name
|
Match.Builder |
setHandlerNameBytes(com.google.protobuf.ByteString value)
Handler name
|
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 ID of the match, can be used to join.
|
Match.Builder |
setMatchIdBytes(com.google.protobuf.ByteString value)
The ID of the match, can be used to join.
|
Match.Builder |
setSize(int value)
Current number of users in the match.
|
Match.Builder |
setTickRate(int value)
Tick Rate
|
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 ID of the match, can be used to join.
string match_id = 1 [json_name = "matchId"];getMatchId in interface MatchOrBuilderpublic com.google.protobuf.ByteString getMatchIdBytes()
The ID of the match, can be used to join.
string match_id = 1 [json_name = "matchId"];getMatchIdBytes in interface MatchOrBuilderpublic Match.Builder setMatchId(java.lang.String value)
The ID of the match, can be used to join.
string match_id = 1 [json_name = "matchId"];value - The matchId to set.public Match.Builder clearMatchId()
The ID of the match, can be used to join.
string match_id = 1 [json_name = "matchId"];public Match.Builder setMatchIdBytes(com.google.protobuf.ByteString value)
The ID of the match, can be used to join.
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()
Current number of users in the match.
int32 size = 4 [json_name = "size"];getSize in interface MatchOrBuilderpublic Match.Builder setSize(int value)
Current number of users in the match.
int32 size = 4 [json_name = "size"];value - The size to set.public Match.Builder clearSize()
Current number of users in the match.
int32 size = 4 [json_name = "size"];public int getTickRate()
Tick Rate
int32 tick_rate = 5 [json_name = "tickRate"];getTickRate in interface MatchOrBuilderpublic Match.Builder setTickRate(int value)
Tick Rate
int32 tick_rate = 5 [json_name = "tickRate"];value - The tickRate to set.public Match.Builder clearTickRate()
Tick Rate
int32 tick_rate = 5 [json_name = "tickRate"];public java.lang.String getHandlerName()
Handler name
string handler_name = 6 [json_name = "handlerName"];getHandlerName in interface MatchOrBuilderpublic com.google.protobuf.ByteString getHandlerNameBytes()
Handler name
string handler_name = 6 [json_name = "handlerName"];getHandlerNameBytes in interface MatchOrBuilderpublic Match.Builder setHandlerName(java.lang.String value)
Handler name
string handler_name = 6 [json_name = "handlerName"];value - The handlerName to set.public Match.Builder clearHandlerName()
Handler name
string handler_name = 6 [json_name = "handlerName"];public Match.Builder setHandlerNameBytes(com.google.protobuf.ByteString value)
Handler name
string handler_name = 6 [json_name = "handlerName"];value - The bytes for handlerName to set.