public final class LeaderboardRecord extends com.google.protobuf.GeneratedMessage implements LeaderboardRecordOrBuilder
Represents a complete leaderboard record with all scores and associated metadata.Protobuf type
nakama.api.LeaderboardRecord| Modifier and Type | Class and Description |
|---|---|
static class |
LeaderboardRecord.Builder
Represents a complete leaderboard record with all scores and associated metadata.
|
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 |
CREATE_TIME_FIELD_NUMBER |
static int |
EXPIRY_TIME_FIELD_NUMBER |
static int |
LEADERBOARD_ID_FIELD_NUMBER |
static int |
MAX_NUM_SCORE_FIELD_NUMBER |
static int |
METADATA_FIELD_NUMBER |
static int |
NUM_SCORE_FIELD_NUMBER |
static int |
OWNER_ID_FIELD_NUMBER |
static int |
RANK_FIELD_NUMBER |
static int |
SCORE_FIELD_NUMBER |
static int |
SUBSCORE_FIELD_NUMBER |
static int |
UPDATE_TIME_FIELD_NUMBER |
static int |
USERNAME_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
com.google.protobuf.Timestamp |
getCreateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the leaderboard record was created.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the leaderboard record was created.
|
static LeaderboardRecord |
getDefaultInstance() |
LeaderboardRecord |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Timestamp |
getExpiryTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the leaderboard record expires.
|
com.google.protobuf.TimestampOrBuilder |
getExpiryTimeOrBuilder()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the leaderboard record expires.
|
java.lang.String |
getLeaderboardId()
The ID of the leaderboard this score belongs to.
|
com.google.protobuf.ByteString |
getLeaderboardIdBytes()
The ID of the leaderboard this score belongs to.
|
int |
getMaxNumScore()
The maximum number of score updates allowed by the owner.
|
java.lang.String |
getMetadata()
Metadata.
|
com.google.protobuf.ByteString |
getMetadataBytes()
Metadata.
|
int |
getNumScore()
The number of submissions to this score record.
|
java.lang.String |
getOwnerId()
The ID of the score owner, usually a user or group.
|
com.google.protobuf.ByteString |
getOwnerIdBytes()
The ID of the score owner, usually a user or group.
|
com.google.protobuf.Parser<LeaderboardRecord> |
getParserForType() |
long |
getRank()
The rank of this record.
|
long |
getScore()
The score value.
|
int |
getSerializedSize() |
long |
getSubscore()
An optional subscore value.
|
com.google.protobuf.Timestamp |
getUpdateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the leaderboard record was updated.
|
com.google.protobuf.TimestampOrBuilder |
getUpdateTimeOrBuilder()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the leaderboard record was updated.
|
com.google.protobuf.StringValue |
getUsername()
The username of the score owner, if the owner is a user.
|
com.google.protobuf.StringValueOrBuilder |
getUsernameOrBuilder()
The username of the score owner, if the owner is a user.
|
boolean |
hasCreateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the leaderboard record was created.
|
boolean |
hasExpiryTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the leaderboard record expires.
|
int |
hashCode() |
boolean |
hasUpdateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the leaderboard record was updated.
|
boolean |
hasUsername()
The username of the score owner, if the owner is a user.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static LeaderboardRecord.Builder |
newBuilder() |
static LeaderboardRecord.Builder |
newBuilder(LeaderboardRecord prototype) |
LeaderboardRecord.Builder |
newBuilderForType() |
protected LeaderboardRecord.Builder |
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) |
static LeaderboardRecord |
parseDelimitedFrom(java.io.InputStream input) |
static LeaderboardRecord |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LeaderboardRecord |
parseFrom(byte[] data) |
static LeaderboardRecord |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LeaderboardRecord |
parseFrom(java.nio.ByteBuffer data) |
static LeaderboardRecord |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LeaderboardRecord |
parseFrom(com.google.protobuf.ByteString data) |
static LeaderboardRecord |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LeaderboardRecord |
parseFrom(com.google.protobuf.CodedInputStream input) |
static LeaderboardRecord |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static LeaderboardRecord |
parseFrom(java.io.InputStream input) |
static LeaderboardRecord |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<LeaderboardRecord> |
parser() |
LeaderboardRecord.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 LEADERBOARD_ID_FIELD_NUMBER
public static final int OWNER_ID_FIELD_NUMBER
public static final int USERNAME_FIELD_NUMBER
public static final int SCORE_FIELD_NUMBER
public static final int SUBSCORE_FIELD_NUMBER
public static final int NUM_SCORE_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
public static final int EXPIRY_TIME_FIELD_NUMBER
public static final int RANK_FIELD_NUMBER
public static final int MAX_NUM_SCORE_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 getLeaderboardId()
The ID of the leaderboard this score belongs to.
string leaderboard_id = 1 [json_name = "leaderboardId"];getLeaderboardId in interface LeaderboardRecordOrBuilderpublic com.google.protobuf.ByteString getLeaderboardIdBytes()
The ID of the leaderboard this score belongs to.
string leaderboard_id = 1 [json_name = "leaderboardId"];getLeaderboardIdBytes in interface LeaderboardRecordOrBuilderpublic java.lang.String getOwnerId()
The ID of the score owner, usually a user or group.
string owner_id = 2 [json_name = "ownerId"];getOwnerId in interface LeaderboardRecordOrBuilderpublic com.google.protobuf.ByteString getOwnerIdBytes()
The ID of the score owner, usually a user or group.
string owner_id = 2 [json_name = "ownerId"];getOwnerIdBytes in interface LeaderboardRecordOrBuilderpublic boolean hasUsername()
The username of the score owner, if the owner is a user.
.google.protobuf.StringValue username = 3 [json_name = "username"];hasUsername in interface LeaderboardRecordOrBuilderpublic com.google.protobuf.StringValue getUsername()
The username of the score owner, if the owner is a user.
.google.protobuf.StringValue username = 3 [json_name = "username"];getUsername in interface LeaderboardRecordOrBuilderpublic com.google.protobuf.StringValueOrBuilder getUsernameOrBuilder()
The username of the score owner, if the owner is a user.
.google.protobuf.StringValue username = 3 [json_name = "username"];getUsernameOrBuilder in interface LeaderboardRecordOrBuilderpublic long getScore()
The score value.
int64 score = 4 [json_name = "score"];getScore in interface LeaderboardRecordOrBuilderpublic long getSubscore()
An optional subscore value.
int64 subscore = 5 [json_name = "subscore"];getSubscore in interface LeaderboardRecordOrBuilderpublic int getNumScore()
The number of submissions to this score record.
int32 num_score = 6 [json_name = "numScore"];getNumScore in interface LeaderboardRecordOrBuilderpublic java.lang.String getMetadata()
Metadata.
string metadata = 7 [json_name = "metadata"];getMetadata in interface LeaderboardRecordOrBuilderpublic com.google.protobuf.ByteString getMetadataBytes()
Metadata.
string metadata = 7 [json_name = "metadata"];getMetadataBytes in interface LeaderboardRecordOrBuilderpublic boolean hasCreateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the leaderboard record was created.
.google.protobuf.Timestamp create_time = 8 [json_name = "createTime"];hasCreateTime in interface LeaderboardRecordOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the leaderboard record was created.
.google.protobuf.Timestamp create_time = 8 [json_name = "createTime"];getCreateTime in interface LeaderboardRecordOrBuilderpublic com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the leaderboard record was created.
.google.protobuf.Timestamp create_time = 8 [json_name = "createTime"];getCreateTimeOrBuilder in interface LeaderboardRecordOrBuilderpublic boolean hasUpdateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the leaderboard record was updated.
.google.protobuf.Timestamp update_time = 9 [json_name = "updateTime"];hasUpdateTime in interface LeaderboardRecordOrBuilderpublic com.google.protobuf.Timestamp getUpdateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the leaderboard record was updated.
.google.protobuf.Timestamp update_time = 9 [json_name = "updateTime"];getUpdateTime in interface LeaderboardRecordOrBuilderpublic com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the leaderboard record was updated.
.google.protobuf.Timestamp update_time = 9 [json_name = "updateTime"];getUpdateTimeOrBuilder in interface LeaderboardRecordOrBuilderpublic boolean hasExpiryTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the leaderboard record expires.
.google.protobuf.Timestamp expiry_time = 10 [json_name = "expiryTime"];hasExpiryTime in interface LeaderboardRecordOrBuilderpublic com.google.protobuf.Timestamp getExpiryTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the leaderboard record expires.
.google.protobuf.Timestamp expiry_time = 10 [json_name = "expiryTime"];getExpiryTime in interface LeaderboardRecordOrBuilderpublic com.google.protobuf.TimestampOrBuilder getExpiryTimeOrBuilder()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the leaderboard record expires.
.google.protobuf.Timestamp expiry_time = 10 [json_name = "expiryTime"];getExpiryTimeOrBuilder in interface LeaderboardRecordOrBuilderpublic long getRank()
The rank of this record.
int64 rank = 11 [json_name = "rank"];getRank in interface LeaderboardRecordOrBuilderpublic int getMaxNumScore()
The maximum number of score updates allowed by the owner.
uint32 max_num_score = 12 [json_name = "maxNumScore"];getMaxNumScore in interface LeaderboardRecordOrBuilderpublic 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 LeaderboardRecord parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LeaderboardRecord parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LeaderboardRecord parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LeaderboardRecord parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LeaderboardRecord parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LeaderboardRecord parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static LeaderboardRecord parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static LeaderboardRecord parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static LeaderboardRecord parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static LeaderboardRecord parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static LeaderboardRecord parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static LeaderboardRecord parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic LeaderboardRecord.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static LeaderboardRecord.Builder newBuilder()
public static LeaderboardRecord.Builder newBuilder(LeaderboardRecord prototype)
public LeaderboardRecord.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected LeaderboardRecord.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.AbstractMessagepublic static LeaderboardRecord getDefaultInstance()
public static com.google.protobuf.Parser<LeaderboardRecord> parser()
public com.google.protobuf.Parser<LeaderboardRecord> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic LeaderboardRecord getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder