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, 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 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.GeneratedMessage
public java.lang.String getId()
The ID of the leaderboard.
string id = 1 [json_name = "id"];
getId
in interface LeaderboardOrBuilder
public com.google.protobuf.ByteString getIdBytes()
The ID of the leaderboard.
string id = 1 [json_name = "id"];
getIdBytes
in interface LeaderboardOrBuilder
public int getSortOrder()
ASC(0) or DESC(1) sort mode of scores in the leaderboard.
uint32 sort_order = 2 [json_name = "sortOrder"];
getSortOrder
in interface LeaderboardOrBuilder
public int getOperatorValue()
BEST, SET, INCREMENT or DECREMENT operator mode of the leaderboard.
.nakama.api.Operator operator = 3 [json_name = "operator"];
getOperatorValue
in interface LeaderboardOrBuilder
public Operator getOperator()
BEST, SET, INCREMENT or DECREMENT operator mode of the leaderboard.
.nakama.api.Operator operator = 3 [json_name = "operator"];
getOperator
in interface LeaderboardOrBuilder
public int getPrevReset()
The UNIX time when the leaderboard was previously reset. A computed value.
uint32 prev_reset = 4 [json_name = "prevReset"];
getPrevReset
in interface LeaderboardOrBuilder
public int getNextReset()
The UNIX time when the leaderboard is next playable. A computed value.
uint32 next_reset = 5 [json_name = "nextReset"];
getNextReset
in interface LeaderboardOrBuilder
public java.lang.String getMetadata()
Additional information stored as a JSON object.
string metadata = 6 [json_name = "metadata"];
getMetadata
in interface LeaderboardOrBuilder
public com.google.protobuf.ByteString getMetadataBytes()
Additional information stored as a JSON object.
string metadata = 6 [json_name = "metadata"];
getMetadataBytes
in interface LeaderboardOrBuilder
public 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 LeaderboardOrBuilder
public 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 LeaderboardOrBuilder
public 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 LeaderboardOrBuilder
public boolean getAuthoritative()
Whether the leaderboard was created authoritatively or not.
bool authoritative = 8 [json_name = "authoritative"];
getAuthoritative
in interface LeaderboardOrBuilder
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 Leaderboard parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Leaderboard parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Leaderboard parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Leaderboard parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Leaderboard parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Leaderboard parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Leaderboard parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Leaderboard parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Leaderboard parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Leaderboard parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Leaderboard parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Leaderboard parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Leaderboard.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static Leaderboard.Builder newBuilder()
public static Leaderboard.Builder newBuilder(Leaderboard prototype)
public Leaderboard.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected Leaderboard.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.AbstractMessage
public static Leaderboard getDefaultInstance()
public static com.google.protobuf.Parser<Leaderboard> parser()
public com.google.protobuf.Parser<Leaderboard> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public Leaderboard getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder