public final class Tournament extends com.google.protobuf.GeneratedMessage implements TournamentOrBuilder
A tournament on the server.Protobuf type
nakama.api.Tournament| Modifier and Type | Class and Description |
|---|---|
static class |
Tournament.Builder
A tournament on the server.
|
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
AUTHORITATIVE_FIELD_NUMBER |
static int |
CAN_ENTER_FIELD_NUMBER |
static int |
CATEGORY_FIELD_NUMBER |
static int |
CREATE_TIME_FIELD_NUMBER |
static int |
DESCRIPTION_FIELD_NUMBER |
static int |
DURATION_FIELD_NUMBER |
static int |
END_ACTIVE_FIELD_NUMBER |
static int |
END_TIME_FIELD_NUMBER |
static int |
ID_FIELD_NUMBER |
static int |
MAX_NUM_SCORE_FIELD_NUMBER |
static int |
MAX_SIZE_FIELD_NUMBER |
static int |
METADATA_FIELD_NUMBER |
static int |
NEXT_RESET_FIELD_NUMBER |
static int |
OPERATOR_FIELD_NUMBER |
static int |
PREV_RESET_FIELD_NUMBER |
static int |
SIZE_FIELD_NUMBER |
static int |
SORT_ORDER_FIELD_NUMBER |
static int |
START_ACTIVE_FIELD_NUMBER |
static int |
START_TIME_FIELD_NUMBER |
static int |
TITLE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
boolean |
getAuthoritative()
Whether the leaderboard was created authoritatively or not.
|
boolean |
getCanEnter()
True if the tournament is active and can enter.
|
int |
getCategory()
The category of the tournament.
|
com.google.protobuf.Timestamp |
getCreateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the tournament was created.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the tournament was created.
|
static Tournament |
getDefaultInstance() |
Tournament |
getDefaultInstanceForType() |
java.lang.String |
getDescription()
The description of the tournament.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
The description of the tournament.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
int |
getDuration()
Duration of the tournament in seconds.
|
int |
getEndActive()
The UNIX time when the tournament stops being active until next reset.
|
com.google.protobuf.Timestamp |
getEndTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the tournament will be stopped.
|
com.google.protobuf.TimestampOrBuilder |
getEndTimeOrBuilder()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the tournament will be stopped.
|
java.lang.String |
getId()
The ID of the tournament.
|
com.google.protobuf.ByteString |
getIdBytes()
The ID of the tournament.
|
int |
getMaxNumScore()
The maximum score updates allowed per player for the current tournament.
|
int |
getMaxSize()
The maximum number of players for the tournament.
|
java.lang.String |
getMetadata()
Additional information stored as a JSON object.
|
com.google.protobuf.ByteString |
getMetadataBytes()
Additional information stored as a JSON object.
|
int |
getNextReset()
The UNIX time when the tournament is next playable.
|
Operator |
getOperator()
Operator.
|
int |
getOperatorValue()
Operator.
|
com.google.protobuf.Parser<Tournament> |
getParserForType() |
int |
getPrevReset()
The UNIX time when the tournament was last reset.
|
int |
getSerializedSize() |
int |
getSize()
The current number of players in the tournament.
|
int |
getSortOrder()
ASC (0) or DESC (1) sort mode of scores in the tournament.
|
int |
getStartActive()
The UNIX time when the tournament start being active.
|
com.google.protobuf.Timestamp |
getStartTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the tournament will start.
|
com.google.protobuf.TimestampOrBuilder |
getStartTimeOrBuilder()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the tournament will start.
|
java.lang.String |
getTitle()
The title for the tournament.
|
com.google.protobuf.ByteString |
getTitleBytes()
The title for the tournament.
|
boolean |
hasCreateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the tournament was created.
|
boolean |
hasEndTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the tournament will be stopped.
|
int |
hashCode() |
boolean |
hasStartTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the tournament will start.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Tournament.Builder |
newBuilder() |
static Tournament.Builder |
newBuilder(Tournament prototype) |
Tournament.Builder |
newBuilderForType() |
protected Tournament.Builder |
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) |
static Tournament |
parseDelimitedFrom(java.io.InputStream input) |
static Tournament |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Tournament |
parseFrom(byte[] data) |
static Tournament |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Tournament |
parseFrom(java.nio.ByteBuffer data) |
static Tournament |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Tournament |
parseFrom(com.google.protobuf.ByteString data) |
static Tournament |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Tournament |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Tournament |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Tournament |
parseFrom(java.io.InputStream input) |
static Tournament |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Tournament> |
parser() |
Tournament.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashFields, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int ID_FIELD_NUMBER
public static final int TITLE_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
public static final int CATEGORY_FIELD_NUMBER
public static final int SORT_ORDER_FIELD_NUMBER
public static final int SIZE_FIELD_NUMBER
public static final int MAX_SIZE_FIELD_NUMBER
public static final int MAX_NUM_SCORE_FIELD_NUMBER
public static final int CAN_ENTER_FIELD_NUMBER
public static final int END_ACTIVE_FIELD_NUMBER
public static final int NEXT_RESET_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
public static final int START_TIME_FIELD_NUMBER
public static final int END_TIME_FIELD_NUMBER
public static final int DURATION_FIELD_NUMBER
public static final int START_ACTIVE_FIELD_NUMBER
public static final int PREV_RESET_FIELD_NUMBER
public static final int OPERATOR_FIELD_NUMBER
public static final int AUTHORITATIVE_FIELD_NUMBER
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic java.lang.String getId()
The ID of the tournament.
string id = 1 [json_name = "id"];getId in interface TournamentOrBuilderpublic com.google.protobuf.ByteString getIdBytes()
The ID of the tournament.
string id = 1 [json_name = "id"];getIdBytes in interface TournamentOrBuilderpublic java.lang.String getTitle()
The title for the tournament.
string title = 2 [json_name = "title"];getTitle in interface TournamentOrBuilderpublic com.google.protobuf.ByteString getTitleBytes()
The title for the tournament.
string title = 2 [json_name = "title"];getTitleBytes in interface TournamentOrBuilderpublic java.lang.String getDescription()
The description of the tournament. May be blank.
string description = 3 [json_name = "description"];getDescription in interface TournamentOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
The description of the tournament. May be blank.
string description = 3 [json_name = "description"];getDescriptionBytes in interface TournamentOrBuilderpublic int getCategory()
The category of the tournament. e.g. "vip" could be category 1.
uint32 category = 4 [json_name = "category"];getCategory in interface TournamentOrBuilderpublic int getSortOrder()
ASC (0) or DESC (1) sort mode of scores in the tournament.
uint32 sort_order = 5 [json_name = "sortOrder"];getSortOrder in interface TournamentOrBuilderpublic int getSize()
The current number of players in the tournament.
uint32 size = 6 [json_name = "size"];getSize in interface TournamentOrBuilderpublic int getMaxSize()
The maximum number of players for the tournament.
uint32 max_size = 7 [json_name = "maxSize"];getMaxSize in interface TournamentOrBuilderpublic int getMaxNumScore()
The maximum score updates allowed per player for the current tournament.
uint32 max_num_score = 8 [json_name = "maxNumScore"];getMaxNumScore in interface TournamentOrBuilderpublic boolean getCanEnter()
True if the tournament is active and can enter. A computed value.
bool can_enter = 9 [json_name = "canEnter"];getCanEnter in interface TournamentOrBuilderpublic int getEndActive()
The UNIX time when the tournament stops being active until next reset. A computed value.
uint32 end_active = 10 [json_name = "endActive"];getEndActive in interface TournamentOrBuilderpublic int getNextReset()
The UNIX time when the tournament is next playable. A computed value.
uint32 next_reset = 11 [json_name = "nextReset"];getNextReset in interface TournamentOrBuilderpublic java.lang.String getMetadata()
Additional information stored as a JSON object.
string metadata = 12 [json_name = "metadata"];getMetadata in interface TournamentOrBuilderpublic com.google.protobuf.ByteString getMetadataBytes()
Additional information stored as a JSON object.
string metadata = 12 [json_name = "metadata"];getMetadataBytes in interface TournamentOrBuilderpublic boolean hasCreateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the tournament was created.
.google.protobuf.Timestamp create_time = 13 [json_name = "createTime"];hasCreateTime in interface TournamentOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the tournament was created.
.google.protobuf.Timestamp create_time = 13 [json_name = "createTime"];getCreateTime in interface TournamentOrBuilderpublic com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the tournament was created.
.google.protobuf.Timestamp create_time = 13 [json_name = "createTime"];getCreateTimeOrBuilder in interface TournamentOrBuilderpublic boolean hasStartTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the tournament will start.
.google.protobuf.Timestamp start_time = 14 [json_name = "startTime"];hasStartTime in interface TournamentOrBuilderpublic com.google.protobuf.Timestamp getStartTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the tournament will start.
.google.protobuf.Timestamp start_time = 14 [json_name = "startTime"];getStartTime in interface TournamentOrBuilderpublic com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the tournament will start.
.google.protobuf.Timestamp start_time = 14 [json_name = "startTime"];getStartTimeOrBuilder in interface TournamentOrBuilderpublic boolean hasEndTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the tournament will be stopped.
.google.protobuf.Timestamp end_time = 15 [json_name = "endTime"];hasEndTime in interface TournamentOrBuilderpublic com.google.protobuf.Timestamp getEndTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the tournament will be stopped.
.google.protobuf.Timestamp end_time = 15 [json_name = "endTime"];getEndTime in interface TournamentOrBuilderpublic com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the tournament will be stopped.
.google.protobuf.Timestamp end_time = 15 [json_name = "endTime"];getEndTimeOrBuilder in interface TournamentOrBuilderpublic int getDuration()
Duration of the tournament in seconds.
uint32 duration = 16 [json_name = "duration"];getDuration in interface TournamentOrBuilderpublic int getStartActive()
The UNIX time when the tournament start being active. A computed value.
uint32 start_active = 17 [json_name = "startActive"];getStartActive in interface TournamentOrBuilderpublic int getPrevReset()
The UNIX time when the tournament was last reset. A computed value.
uint32 prev_reset = 18 [json_name = "prevReset"];getPrevReset in interface TournamentOrBuilderpublic int getOperatorValue()
Operator.
.nakama.api.Operator operator = 19 [json_name = "operator"];getOperatorValue in interface TournamentOrBuilderpublic Operator getOperator()
Operator.
.nakama.api.Operator operator = 19 [json_name = "operator"];getOperator in interface TournamentOrBuilderpublic boolean getAuthoritative()
Whether the leaderboard was created authoritatively or not.
bool authoritative = 20 [json_name = "authoritative"];getAuthoritative in interface TournamentOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessagejava.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessagepublic boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Tournament parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Tournament parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Tournament parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Tournament parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Tournament parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Tournament parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Tournament parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Tournament parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Tournament parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Tournament parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Tournament parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Tournament parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Tournament.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Tournament.Builder newBuilder()
public static Tournament.Builder newBuilder(Tournament prototype)
public Tournament.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Tournament.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.AbstractMessagepublic static Tournament getDefaultInstance()
public static com.google.protobuf.Parser<Tournament> parser()
public com.google.protobuf.Parser<Tournament> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic Tournament getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder