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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashFields, toString
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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.GeneratedMessage
public java.lang.String getId()
The ID of the tournament.
string id = 1 [json_name = "id"];
getId
in interface TournamentOrBuilder
public com.google.protobuf.ByteString getIdBytes()
The ID of the tournament.
string id = 1 [json_name = "id"];
getIdBytes
in interface TournamentOrBuilder
public java.lang.String getTitle()
The title for the tournament.
string title = 2 [json_name = "title"];
getTitle
in interface TournamentOrBuilder
public com.google.protobuf.ByteString getTitleBytes()
The title for the tournament.
string title = 2 [json_name = "title"];
getTitleBytes
in interface TournamentOrBuilder
public java.lang.String getDescription()
The description of the tournament. May be blank.
string description = 3 [json_name = "description"];
getDescription
in interface TournamentOrBuilder
public com.google.protobuf.ByteString getDescriptionBytes()
The description of the tournament. May be blank.
string description = 3 [json_name = "description"];
getDescriptionBytes
in interface TournamentOrBuilder
public int getCategory()
The category of the tournament. e.g. "vip" could be category 1.
uint32 category = 4 [json_name = "category"];
getCategory
in interface TournamentOrBuilder
public int getSortOrder()
ASC (0) or DESC (1) sort mode of scores in the tournament.
uint32 sort_order = 5 [json_name = "sortOrder"];
getSortOrder
in interface TournamentOrBuilder
public int getSize()
The current number of players in the tournament.
uint32 size = 6 [json_name = "size"];
getSize
in interface TournamentOrBuilder
public int getMaxSize()
The maximum number of players for the tournament.
uint32 max_size = 7 [json_name = "maxSize"];
getMaxSize
in interface TournamentOrBuilder
public int getMaxNumScore()
The maximum score updates allowed per player for the current tournament.
uint32 max_num_score = 8 [json_name = "maxNumScore"];
getMaxNumScore
in interface TournamentOrBuilder
public boolean getCanEnter()
True if the tournament is active and can enter. A computed value.
bool can_enter = 9 [json_name = "canEnter"];
getCanEnter
in interface TournamentOrBuilder
public 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 TournamentOrBuilder
public int getNextReset()
The UNIX time when the tournament is next playable. A computed value.
uint32 next_reset = 11 [json_name = "nextReset"];
getNextReset
in interface TournamentOrBuilder
public java.lang.String getMetadata()
Additional information stored as a JSON object.
string metadata = 12 [json_name = "metadata"];
getMetadata
in interface TournamentOrBuilder
public com.google.protobuf.ByteString getMetadataBytes()
Additional information stored as a JSON object.
string metadata = 12 [json_name = "metadata"];
getMetadataBytes
in interface TournamentOrBuilder
public 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 TournamentOrBuilder
public 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 TournamentOrBuilder
public 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 TournamentOrBuilder
public 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 TournamentOrBuilder
public 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 TournamentOrBuilder
public 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 TournamentOrBuilder
public 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 TournamentOrBuilder
public 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 TournamentOrBuilder
public 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 TournamentOrBuilder
public int getDuration()
Duration of the tournament in seconds.
uint32 duration = 16 [json_name = "duration"];
getDuration
in interface TournamentOrBuilder
public int getStartActive()
The UNIX time when the tournament start being active. A computed value.
uint32 start_active = 17 [json_name = "startActive"];
getStartActive
in interface TournamentOrBuilder
public int getPrevReset()
The UNIX time when the tournament was last reset. A computed value.
uint32 prev_reset = 18 [json_name = "prevReset"];
getPrevReset
in interface TournamentOrBuilder
public int getOperatorValue()
Operator.
.nakama.api.Operator operator = 19 [json_name = "operator"];
getOperatorValue
in interface TournamentOrBuilder
public Operator getOperator()
Operator.
.nakama.api.Operator operator = 19 [json_name = "operator"];
getOperator
in interface TournamentOrBuilder
public boolean getAuthoritative()
Whether the leaderboard was created authoritatively or not.
bool authoritative = 20 [json_name = "authoritative"];
getAuthoritative
in interface TournamentOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessage
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessage
public boolean equals(java.lang.Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static Tournament parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Tournament parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Tournament parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Tournament parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Tournament parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Tournament parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Tournament parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Tournament parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Tournament parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Tournament parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Tournament parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Tournament parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Tournament.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static Tournament.Builder newBuilder()
public static Tournament.Builder newBuilder(Tournament prototype)
public Tournament.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected Tournament.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.AbstractMessage
public static Tournament getDefaultInstance()
public static com.google.protobuf.Parser<Tournament> parser()
public com.google.protobuf.Parser<Tournament> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public Tournament getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder