Package com.heroiclabs.nakama.api
Class Tournament
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.heroiclabs.nakama.api.Tournament
- All Implemented Interfaces:
com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,TournamentOrBuilder
,Serializable
public final class Tournament
extends com.google.protobuf.GeneratedMessageV3
implements TournamentOrBuilder
A tournament on the server.Protobuf type
nakama.api.Tournament
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A tournament on the server.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,
BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Fields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFields
Fields inherited from class com.google.protobuf.AbstractMessage
memoizedSize
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
True if the tournament is active and can enter.int
The category of the tournament.The UNIX time when the tournament was created.The UNIX time when the tournament was created.static Tournament
The description of the tournament.com.google.protobuf.ByteString
The description of the tournament.static final com.google.protobuf.Descriptors.Descriptor
int
Duration of the tournament in seconds.int
The UNIX time when the tournament stops being active until next reset.The UNIX time when the tournament will be stopped.The UNIX time when the tournament will be stopped.getId()
The ID of the tournament.com.google.protobuf.ByteString
The ID of the tournament.int
The maximum score updates allowed per player for the current tournament.int
The maximum number of players for the tournament.Additional information stored as a JSON object.com.google.protobuf.ByteString
Additional information stored as a JSON object.int
The UNIX time when the tournament is next playable.com.google.protobuf.Parser<Tournament>
int
int
getSize()
The current number of players in the tournament.int
ASC or DESC sort mode of scores in the tournament.int
The UNIX time when the tournament start being active.The UNIX time when the tournament will start.The UNIX time when the tournament will start.getTitle()
The title for the tournament.com.google.protobuf.ByteString
The title for the tournament.final com.google.protobuf.UnknownFieldSet
boolean
The UNIX time when the tournament was created.boolean
The UNIX time when the tournament will be stopped.int
hashCode()
boolean
The UNIX time when the tournament will start.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
static Tournament.Builder
static Tournament.Builder
newBuilder
(Tournament prototype) protected Tournament.Builder
newBuilderForType
(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected Object
newInstance
(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static Tournament
parseDelimitedFrom
(InputStream input) static Tournament
parseDelimitedFrom
(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
(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
(InputStream input) static Tournament
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Tournament
parseFrom
(ByteBuffer data) static Tournament
parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Tournament>
parser()
void
writeTo
(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
-
Field Details
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER- See Also:
-
TITLE_FIELD_NUMBER
public static final int TITLE_FIELD_NUMBER- See Also:
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER- See Also:
-
CATEGORY_FIELD_NUMBER
public static final int CATEGORY_FIELD_NUMBER- See Also:
-
SORT_ORDER_FIELD_NUMBER
public static final int SORT_ORDER_FIELD_NUMBER- See Also:
-
SIZE_FIELD_NUMBER
public static final int SIZE_FIELD_NUMBER- See Also:
-
MAX_SIZE_FIELD_NUMBER
public static final int MAX_SIZE_FIELD_NUMBER- See Also:
-
MAX_NUM_SCORE_FIELD_NUMBER
public static final int MAX_NUM_SCORE_FIELD_NUMBER- See Also:
-
CAN_ENTER_FIELD_NUMBER
public static final int CAN_ENTER_FIELD_NUMBER- See Also:
-
END_ACTIVE_FIELD_NUMBER
public static final int END_ACTIVE_FIELD_NUMBER- See Also:
-
NEXT_RESET_FIELD_NUMBER
public static final int NEXT_RESET_FIELD_NUMBER- See Also:
-
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER- See Also:
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER- See Also:
-
START_TIME_FIELD_NUMBER
public static final int START_TIME_FIELD_NUMBER- See Also:
-
END_TIME_FIELD_NUMBER
public static final int END_TIME_FIELD_NUMBER- See Also:
-
DURATION_FIELD_NUMBER
public static final int DURATION_FIELD_NUMBER- See Also:
-
START_ACTIVE_FIELD_NUMBER
public static final int START_ACTIVE_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()- Specified by:
getUnknownFields
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getUnknownFields
in classcom.google.protobuf.GeneratedMessageV3
-
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
-
getId
The ID of the tournament.
string id = 1;
- Specified by:
getId
in interfaceTournamentOrBuilder
- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()The ID of the tournament.
string id = 1;
- Specified by:
getIdBytes
in interfaceTournamentOrBuilder
- Returns:
- The bytes for id.
-
getTitle
The title for the tournament.
string title = 2;
- Specified by:
getTitle
in interfaceTournamentOrBuilder
- Returns:
- The title.
-
getTitleBytes
public com.google.protobuf.ByteString getTitleBytes()The title for the tournament.
string title = 2;
- Specified by:
getTitleBytes
in interfaceTournamentOrBuilder
- Returns:
- The bytes for title.
-
getDescription
The description of the tournament. May be blank.
string description = 3;
- Specified by:
getDescription
in interfaceTournamentOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()The description of the tournament. May be blank.
string description = 3;
- Specified by:
getDescriptionBytes
in interfaceTournamentOrBuilder
- Returns:
- The bytes for description.
-
getCategory
public int getCategory()The category of the tournament. e.g. "vip" could be category 1.
uint32 category = 4;
- Specified by:
getCategory
in interfaceTournamentOrBuilder
- Returns:
- The category.
-
getSortOrder
public int getSortOrder()ASC or DESC sort mode of scores in the tournament.
uint32 sort_order = 5;
- Specified by:
getSortOrder
in interfaceTournamentOrBuilder
- Returns:
- The sortOrder.
-
getSize
public int getSize()The current number of players in the tournament.
uint32 size = 6;
- Specified by:
getSize
in interfaceTournamentOrBuilder
- Returns:
- The size.
-
getMaxSize
public int getMaxSize()The maximum number of players for the tournament.
uint32 max_size = 7;
- Specified by:
getMaxSize
in interfaceTournamentOrBuilder
- Returns:
- The maxSize.
-
getMaxNumScore
public int getMaxNumScore()The maximum score updates allowed per player for the current tournament.
uint32 max_num_score = 8;
- Specified by:
getMaxNumScore
in interfaceTournamentOrBuilder
- Returns:
- The maxNumScore.
-
getCanEnter
public boolean getCanEnter()True if the tournament is active and can enter. A computed value.
bool can_enter = 9;
- Specified by:
getCanEnter
in interfaceTournamentOrBuilder
- Returns:
- The canEnter.
-
getEndActive
public int getEndActive()The UNIX time when the tournament stops being active until next reset. A computed value.
uint32 end_active = 10;
- Specified by:
getEndActive
in interfaceTournamentOrBuilder
- Returns:
- The endActive.
-
getNextReset
public int getNextReset()The UNIX time when the tournament is next playable. A computed value.
uint32 next_reset = 11;
- Specified by:
getNextReset
in interfaceTournamentOrBuilder
- Returns:
- The nextReset.
-
getMetadata
Additional information stored as a JSON object.
string metadata = 12;
- Specified by:
getMetadata
in interfaceTournamentOrBuilder
- Returns:
- The metadata.
-
getMetadataBytes
public com.google.protobuf.ByteString getMetadataBytes()Additional information stored as a JSON object.
string metadata = 12;
- Specified by:
getMetadataBytes
in interfaceTournamentOrBuilder
- Returns:
- The bytes for metadata.
-
hasCreateTime
public boolean hasCreateTime()The UNIX time when the tournament was created.
.google.protobuf.Timestamp create_time = 13;
- Specified by:
hasCreateTime
in interfaceTournamentOrBuilder
- Returns:
- Whether the createTime field is set.
-
getCreateTime
The UNIX time when the tournament was created.
.google.protobuf.Timestamp create_time = 13;
- Specified by:
getCreateTime
in interfaceTournamentOrBuilder
- Returns:
- The createTime.
-
getCreateTimeOrBuilder
The UNIX time when the tournament was created.
.google.protobuf.Timestamp create_time = 13;
- Specified by:
getCreateTimeOrBuilder
in interfaceTournamentOrBuilder
-
hasStartTime
public boolean hasStartTime()The UNIX time when the tournament will start.
.google.protobuf.Timestamp start_time = 14;
- Specified by:
hasStartTime
in interfaceTournamentOrBuilder
- Returns:
- Whether the startTime field is set.
-
getStartTime
The UNIX time when the tournament will start.
.google.protobuf.Timestamp start_time = 14;
- Specified by:
getStartTime
in interfaceTournamentOrBuilder
- Returns:
- The startTime.
-
getStartTimeOrBuilder
The UNIX time when the tournament will start.
.google.protobuf.Timestamp start_time = 14;
- Specified by:
getStartTimeOrBuilder
in interfaceTournamentOrBuilder
-
hasEndTime
public boolean hasEndTime()The UNIX time when the tournament will be stopped.
.google.protobuf.Timestamp end_time = 15;
- Specified by:
hasEndTime
in interfaceTournamentOrBuilder
- Returns:
- Whether the endTime field is set.
-
getEndTime
The UNIX time when the tournament will be stopped.
.google.protobuf.Timestamp end_time = 15;
- Specified by:
getEndTime
in interfaceTournamentOrBuilder
- Returns:
- The endTime.
-
getEndTimeOrBuilder
The UNIX time when the tournament will be stopped.
.google.protobuf.Timestamp end_time = 15;
- Specified by:
getEndTimeOrBuilder
in interfaceTournamentOrBuilder
-
getDuration
public int getDuration()Duration of the tournament in seconds.
uint32 duration = 16;
- Specified by:
getDuration
in interfaceTournamentOrBuilder
- Returns:
- The duration.
-
getStartActive
public int getStartActive()The UNIX time when the tournament start being active. A computed value.
uint32 start_active = 17;
- Specified by:
getStartActive
in interfaceTournamentOrBuilder
- Returns:
- The startActive.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Tournament parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Tournament parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Tournament parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Tournament parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Tournament parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Tournament parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Tournament parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Tournament parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Tournament parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Tournament.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-