public final class Leaderboard extends com.google.protobuf.GeneratedMessage implements LeaderboardOrBuilder
A leaderboard on the server.Protobuf type
nakama.api.Leaderboard| Modifier and Type | Class and Description |
|---|---|
static class |
Leaderboard.Builder
A leaderboard 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 |
CREATE_TIME_FIELD_NUMBER |
static int |
ID_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 |
SORT_ORDER_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
boolean |
getAuthoritative()
Whether the leaderboard was created authoritatively or not.
|
com.google.protobuf.Timestamp |
getCreateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the leaderboard was created.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the leaderboard was created.
|
static Leaderboard |
getDefaultInstance() |
Leaderboard |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
java.lang.String |
getId()
The ID of the leaderboard.
|
com.google.protobuf.ByteString |
getIdBytes()
The ID of the leaderboard.
|
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 leaderboard is next playable.
|
Operator |
getOperator()
BEST, SET, INCREMENT or DECREMENT operator mode of the leaderboard.
|
int |
getOperatorValue()
BEST, SET, INCREMENT or DECREMENT operator mode of the leaderboard.
|
com.google.protobuf.Parser<Leaderboard> |
getParserForType() |
int |
getPrevReset()
The UNIX time when the leaderboard was previously reset.
|
int |
getSerializedSize() |
int |
getSortOrder()
ASC(0) or DESC(1) sort mode of scores in the leaderboard.
|
boolean |
hasCreateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the leaderboard was created.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Leaderboard.Builder |
newBuilder() |
static Leaderboard.Builder |
newBuilder(Leaderboard prototype) |
Leaderboard.Builder |
newBuilderForType() |
protected Leaderboard.Builder |
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) |
static Leaderboard |
parseDelimitedFrom(java.io.InputStream input) |
static Leaderboard |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Leaderboard |
parseFrom(byte[] data) |
static Leaderboard |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Leaderboard |
parseFrom(java.nio.ByteBuffer data) |
static Leaderboard |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Leaderboard |
parseFrom(com.google.protobuf.ByteString data) |
static Leaderboard |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Leaderboard |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Leaderboard |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Leaderboard |
parseFrom(java.io.InputStream input) |
static Leaderboard |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Leaderboard> |
parser() |
Leaderboard.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 SORT_ORDER_FIELD_NUMBER
public static final int OPERATOR_FIELD_NUMBER
public static final int PREV_RESET_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 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 leaderboard.
string id = 1 [json_name = "id"];getId in interface LeaderboardOrBuilderpublic com.google.protobuf.ByteString getIdBytes()
The ID of the leaderboard.
string id = 1 [json_name = "id"];getIdBytes in interface LeaderboardOrBuilderpublic int getSortOrder()
ASC(0) or DESC(1) sort mode of scores in the leaderboard.
uint32 sort_order = 2 [json_name = "sortOrder"];getSortOrder in interface LeaderboardOrBuilderpublic int getOperatorValue()
BEST, SET, INCREMENT or DECREMENT operator mode of the leaderboard.
.nakama.api.Operator operator = 3 [json_name = "operator"];getOperatorValue in interface LeaderboardOrBuilderpublic Operator getOperator()
BEST, SET, INCREMENT or DECREMENT operator mode of the leaderboard.
.nakama.api.Operator operator = 3 [json_name = "operator"];getOperator in interface LeaderboardOrBuilderpublic int getPrevReset()
The UNIX time when the leaderboard was previously reset. A computed value.
uint32 prev_reset = 4 [json_name = "prevReset"];getPrevReset in interface LeaderboardOrBuilderpublic int getNextReset()
The UNIX time when the leaderboard is next playable. A computed value.
uint32 next_reset = 5 [json_name = "nextReset"];getNextReset in interface LeaderboardOrBuilderpublic java.lang.String getMetadata()
Additional information stored as a JSON object.
string metadata = 6 [json_name = "metadata"];getMetadata in interface LeaderboardOrBuilderpublic com.google.protobuf.ByteString getMetadataBytes()
Additional information stored as a JSON object.
string metadata = 6 [json_name = "metadata"];getMetadataBytes in interface LeaderboardOrBuilderpublic boolean hasCreateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the leaderboard was created.
.google.protobuf.Timestamp create_time = 7 [json_name = "createTime"];hasCreateTime in interface LeaderboardOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the leaderboard was created.
.google.protobuf.Timestamp create_time = 7 [json_name = "createTime"];getCreateTime in interface LeaderboardOrBuilderpublic com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the leaderboard was created.
.google.protobuf.Timestamp create_time = 7 [json_name = "createTime"];getCreateTimeOrBuilder in interface LeaderboardOrBuilderpublic boolean getAuthoritative()
Whether the leaderboard was created authoritatively or not.
bool authoritative = 8 [json_name = "authoritative"];getAuthoritative in interface LeaderboardOrBuilderpublic 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 Leaderboard parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Leaderboard parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Leaderboard parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Leaderboard parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Leaderboard parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Leaderboard parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Leaderboard parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Leaderboard parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Leaderboard parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Leaderboard parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Leaderboard parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Leaderboard parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Leaderboard.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Leaderboard.Builder newBuilder()
public static Leaderboard.Builder newBuilder(Leaderboard prototype)
public Leaderboard.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Leaderboard.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.AbstractMessagepublic static Leaderboard getDefaultInstance()
public static com.google.protobuf.Parser<Leaderboard> parser()
public com.google.protobuf.Parser<Leaderboard> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic Leaderboard getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder