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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashFields, toString
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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.GeneratedMessage
public java.lang.String getLeaderboardId()
The ID of the leaderboard this score belongs to.
string leaderboard_id = 1 [json_name = "leaderboardId"];
getLeaderboardId
in interface LeaderboardRecordOrBuilder
public com.google.protobuf.ByteString getLeaderboardIdBytes()
The ID of the leaderboard this score belongs to.
string leaderboard_id = 1 [json_name = "leaderboardId"];
getLeaderboardIdBytes
in interface LeaderboardRecordOrBuilder
public 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 LeaderboardRecordOrBuilder
public 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 LeaderboardRecordOrBuilder
public 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 LeaderboardRecordOrBuilder
public 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 LeaderboardRecordOrBuilder
public 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 LeaderboardRecordOrBuilder
public long getScore()
The score value.
int64 score = 4 [json_name = "score"];
getScore
in interface LeaderboardRecordOrBuilder
public long getSubscore()
An optional subscore value.
int64 subscore = 5 [json_name = "subscore"];
getSubscore
in interface LeaderboardRecordOrBuilder
public int getNumScore()
The number of submissions to this score record.
int32 num_score = 6 [json_name = "numScore"];
getNumScore
in interface LeaderboardRecordOrBuilder
public java.lang.String getMetadata()
Metadata.
string metadata = 7 [json_name = "metadata"];
getMetadata
in interface LeaderboardRecordOrBuilder
public com.google.protobuf.ByteString getMetadataBytes()
Metadata.
string metadata = 7 [json_name = "metadata"];
getMetadataBytes
in interface LeaderboardRecordOrBuilder
public 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 LeaderboardRecordOrBuilder
public 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 LeaderboardRecordOrBuilder
public 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 LeaderboardRecordOrBuilder
public 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 LeaderboardRecordOrBuilder
public 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 LeaderboardRecordOrBuilder
public 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 LeaderboardRecordOrBuilder
public 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 LeaderboardRecordOrBuilder
public 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 LeaderboardRecordOrBuilder
public 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 LeaderboardRecordOrBuilder
public long getRank()
The rank of this record.
int64 rank = 11 [json_name = "rank"];
getRank
in interface LeaderboardRecordOrBuilder
public int getMaxNumScore()
The maximum number of score updates allowed by the owner.
uint32 max_num_score = 12 [json_name = "maxNumScore"];
getMaxNumScore
in interface LeaderboardRecordOrBuilder
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 LeaderboardRecord parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LeaderboardRecord parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LeaderboardRecord parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LeaderboardRecord parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LeaderboardRecord parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LeaderboardRecord parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static LeaderboardRecord parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static LeaderboardRecord parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static LeaderboardRecord parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static LeaderboardRecord parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static LeaderboardRecord parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static LeaderboardRecord parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public LeaderboardRecord.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static LeaderboardRecord.Builder newBuilder()
public static LeaderboardRecord.Builder newBuilder(LeaderboardRecord prototype)
public LeaderboardRecord.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected LeaderboardRecord.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.AbstractMessage
public static LeaderboardRecord getDefaultInstance()
public static com.google.protobuf.Parser<LeaderboardRecord> parser()
public com.google.protobuf.Parser<LeaderboardRecord> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public LeaderboardRecord getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder