Package com.heroiclabs.nakama.api
Class User
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.heroiclabs.nakama.api.User
- All Implemented Interfaces:
com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,UserOrBuilder
,Serializable
A user in the server.Protobuf type
nakama.api.User
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,
BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Fields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFields
Fields inherited from class com.google.protobuf.AbstractMessage
memoizedSize
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
Method Summary
Modifier and TypeMethodDescriptionboolean
The Apple Sign In ID in the user's account.com.google.protobuf.ByteString
The Apple Sign In ID in the user's account.A URL for an avatar image.com.google.protobuf.ByteString
A URL for an avatar image.The UNIX time when the user was created.The UNIX time when the user was created.static User
static final com.google.protobuf.Descriptors.Descriptor
The display name of the user.com.google.protobuf.ByteString
The display name of the user.int
Number of related edges to this user.The Facebook id in the user's account.com.google.protobuf.ByteString
The Facebook id in the user's account.The Facebook Instant Game ID in the user's account.com.google.protobuf.ByteString
The Facebook Instant Game ID in the user's account.The Apple Game Center in of the user's account.com.google.protobuf.ByteString
The Apple Game Center in of the user's account.The Google id in the user's account.com.google.protobuf.ByteString
The Google id in the user's account.getId()
The id of the user's account.com.google.protobuf.ByteString
The id of the user's account.The language expected to be a tag which follows the BCP-47 spec.com.google.protobuf.ByteString
The language expected to be a tag which follows the BCP-47 spec.The location set by the user.com.google.protobuf.ByteString
The location set by the user.Additional information stored as a JSON object.com.google.protobuf.ByteString
Additional information stored as a JSON object.boolean
Indicates whether the user is currently online.com.google.protobuf.Parser<User>
int
The Steam id in the user's account.com.google.protobuf.ByteString
The Steam id in the user's account.The timezone set by the user.com.google.protobuf.ByteString
The timezone set by the user.final com.google.protobuf.UnknownFieldSet
The UNIX time when the user was last updated.The UNIX time when the user was last updated.The username of the user's account.com.google.protobuf.ByteString
The username of the user's account.boolean
The UNIX time when the user was created.int
hashCode()
boolean
The UNIX time when the user was last updated.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
static User.Builder
static User.Builder
newBuilder
(User prototype) protected User.Builder
newBuilderForType
(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected Object
newInstance
(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static User
parseDelimitedFrom
(InputStream input) static User
parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static User
parseFrom
(byte[] data) static User
parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static User
parseFrom
(com.google.protobuf.ByteString data) static User
parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static User
parseFrom
(com.google.protobuf.CodedInputStream input) static User
parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static User
parseFrom
(InputStream input) static User
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static User
parseFrom
(ByteBuffer data) static User
parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<User>
parser()
void
writeTo
(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
-
Field Details
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER- See Also:
-
USERNAME_FIELD_NUMBER
public static final int USERNAME_FIELD_NUMBER- See Also:
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER- See Also:
-
AVATAR_URL_FIELD_NUMBER
public static final int AVATAR_URL_FIELD_NUMBER- See Also:
-
LANG_TAG_FIELD_NUMBER
public static final int LANG_TAG_FIELD_NUMBER- See Also:
-
LOCATION_FIELD_NUMBER
public static final int LOCATION_FIELD_NUMBER- See Also:
-
TIMEZONE_FIELD_NUMBER
public static final int TIMEZONE_FIELD_NUMBER- See Also:
-
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER- See Also:
-
FACEBOOK_ID_FIELD_NUMBER
public static final int FACEBOOK_ID_FIELD_NUMBER- See Also:
-
GOOGLE_ID_FIELD_NUMBER
public static final int GOOGLE_ID_FIELD_NUMBER- See Also:
-
GAMECENTER_ID_FIELD_NUMBER
public static final int GAMECENTER_ID_FIELD_NUMBER- See Also:
-
STEAM_ID_FIELD_NUMBER
public static final int STEAM_ID_FIELD_NUMBER- See Also:
-
ONLINE_FIELD_NUMBER
public static final int ONLINE_FIELD_NUMBER- See Also:
-
EDGE_COUNT_FIELD_NUMBER
public static final int EDGE_COUNT_FIELD_NUMBER- See Also:
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER- See Also:
-
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER- See Also:
-
FACEBOOK_INSTANT_GAME_ID_FIELD_NUMBER
public static final int FACEBOOK_INSTANT_GAME_ID_FIELD_NUMBER- See Also:
-
APPLE_ID_FIELD_NUMBER
public static final int APPLE_ID_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()- Specified by:
getUnknownFields
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getUnknownFields
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getId
The id of the user's account.
string id = 1;
- Specified by:
getId
in interfaceUserOrBuilder
- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()The id of the user's account.
string id = 1;
- Specified by:
getIdBytes
in interfaceUserOrBuilder
- Returns:
- The bytes for id.
-
getUsername
The username of the user's account.
string username = 2;
- Specified by:
getUsername
in interfaceUserOrBuilder
- Returns:
- The username.
-
getUsernameBytes
public com.google.protobuf.ByteString getUsernameBytes()The username of the user's account.
string username = 2;
- Specified by:
getUsernameBytes
in interfaceUserOrBuilder
- Returns:
- The bytes for username.
-
getDisplayName
The display name of the user.
string display_name = 3;
- Specified by:
getDisplayName
in interfaceUserOrBuilder
- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()The display name of the user.
string display_name = 3;
- Specified by:
getDisplayNameBytes
in interfaceUserOrBuilder
- Returns:
- The bytes for displayName.
-
getAvatarUrl
A URL for an avatar image.
string avatar_url = 4;
- Specified by:
getAvatarUrl
in interfaceUserOrBuilder
- Returns:
- The avatarUrl.
-
getAvatarUrlBytes
public com.google.protobuf.ByteString getAvatarUrlBytes()A URL for an avatar image.
string avatar_url = 4;
- Specified by:
getAvatarUrlBytes
in interfaceUserOrBuilder
- Returns:
- The bytes for avatarUrl.
-
getLangTag
The language expected to be a tag which follows the BCP-47 spec.
string lang_tag = 5;
- Specified by:
getLangTag
in interfaceUserOrBuilder
- Returns:
- The langTag.
-
getLangTagBytes
public com.google.protobuf.ByteString getLangTagBytes()The language expected to be a tag which follows the BCP-47 spec.
string lang_tag = 5;
- Specified by:
getLangTagBytes
in interfaceUserOrBuilder
- Returns:
- The bytes for langTag.
-
getLocation
The location set by the user.
string location = 6;
- Specified by:
getLocation
in interfaceUserOrBuilder
- Returns:
- The location.
-
getLocationBytes
public com.google.protobuf.ByteString getLocationBytes()The location set by the user.
string location = 6;
- Specified by:
getLocationBytes
in interfaceUserOrBuilder
- Returns:
- The bytes for location.
-
getTimezone
The timezone set by the user.
string timezone = 7;
- Specified by:
getTimezone
in interfaceUserOrBuilder
- Returns:
- The timezone.
-
getTimezoneBytes
public com.google.protobuf.ByteString getTimezoneBytes()The timezone set by the user.
string timezone = 7;
- Specified by:
getTimezoneBytes
in interfaceUserOrBuilder
- Returns:
- The bytes for timezone.
-
getMetadata
Additional information stored as a JSON object.
string metadata = 8;
- Specified by:
getMetadata
in interfaceUserOrBuilder
- Returns:
- The metadata.
-
getMetadataBytes
public com.google.protobuf.ByteString getMetadataBytes()Additional information stored as a JSON object.
string metadata = 8;
- Specified by:
getMetadataBytes
in interfaceUserOrBuilder
- Returns:
- The bytes for metadata.
-
getFacebookId
The Facebook id in the user's account.
string facebook_id = 9;
- Specified by:
getFacebookId
in interfaceUserOrBuilder
- Returns:
- The facebookId.
-
getFacebookIdBytes
public com.google.protobuf.ByteString getFacebookIdBytes()The Facebook id in the user's account.
string facebook_id = 9;
- Specified by:
getFacebookIdBytes
in interfaceUserOrBuilder
- Returns:
- The bytes for facebookId.
-
getGoogleId
The Google id in the user's account.
string google_id = 10;
- Specified by:
getGoogleId
in interfaceUserOrBuilder
- Returns:
- The googleId.
-
getGoogleIdBytes
public com.google.protobuf.ByteString getGoogleIdBytes()The Google id in the user's account.
string google_id = 10;
- Specified by:
getGoogleIdBytes
in interfaceUserOrBuilder
- Returns:
- The bytes for googleId.
-
getGamecenterId
The Apple Game Center in of the user's account.
string gamecenter_id = 11;
- Specified by:
getGamecenterId
in interfaceUserOrBuilder
- Returns:
- The gamecenterId.
-
getGamecenterIdBytes
public com.google.protobuf.ByteString getGamecenterIdBytes()The Apple Game Center in of the user's account.
string gamecenter_id = 11;
- Specified by:
getGamecenterIdBytes
in interfaceUserOrBuilder
- Returns:
- The bytes for gamecenterId.
-
getSteamId
The Steam id in the user's account.
string steam_id = 12;
- Specified by:
getSteamId
in interfaceUserOrBuilder
- Returns:
- The steamId.
-
getSteamIdBytes
public com.google.protobuf.ByteString getSteamIdBytes()The Steam id in the user's account.
string steam_id = 12;
- Specified by:
getSteamIdBytes
in interfaceUserOrBuilder
- Returns:
- The bytes for steamId.
-
getOnline
public boolean getOnline()Indicates whether the user is currently online.
bool online = 13;
- Specified by:
getOnline
in interfaceUserOrBuilder
- Returns:
- The online.
-
getEdgeCount
public int getEdgeCount()Number of related edges to this user.
int32 edge_count = 14;
- Specified by:
getEdgeCount
in interfaceUserOrBuilder
- Returns:
- The edgeCount.
-
hasCreateTime
public boolean hasCreateTime()The UNIX time when the user was created.
.google.protobuf.Timestamp create_time = 15;
- Specified by:
hasCreateTime
in interfaceUserOrBuilder
- Returns:
- Whether the createTime field is set.
-
getCreateTime
The UNIX time when the user was created.
.google.protobuf.Timestamp create_time = 15;
- Specified by:
getCreateTime
in interfaceUserOrBuilder
- Returns:
- The createTime.
-
getCreateTimeOrBuilder
The UNIX time when the user was created.
.google.protobuf.Timestamp create_time = 15;
- Specified by:
getCreateTimeOrBuilder
in interfaceUserOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()The UNIX time when the user was last updated.
.google.protobuf.Timestamp update_time = 16;
- Specified by:
hasUpdateTime
in interfaceUserOrBuilder
- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
The UNIX time when the user was last updated.
.google.protobuf.Timestamp update_time = 16;
- Specified by:
getUpdateTime
in interfaceUserOrBuilder
- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
The UNIX time when the user was last updated.
.google.protobuf.Timestamp update_time = 16;
- Specified by:
getUpdateTimeOrBuilder
in interfaceUserOrBuilder
-
getFacebookInstantGameId
The Facebook Instant Game ID in the user's account.
string facebook_instant_game_id = 17;
- Specified by:
getFacebookInstantGameId
in interfaceUserOrBuilder
- Returns:
- The facebookInstantGameId.
-
getFacebookInstantGameIdBytes
public com.google.protobuf.ByteString getFacebookInstantGameIdBytes()The Facebook Instant Game ID in the user's account.
string facebook_instant_game_id = 17;
- Specified by:
getFacebookInstantGameIdBytes
in interfaceUserOrBuilder
- Returns:
- The bytes for facebookInstantGameId.
-
getAppleId
The Apple Sign In ID in the user's account.
string apple_id = 18;
- Specified by:
getAppleId
in interfaceUserOrBuilder
- Returns:
- The appleId.
-
getAppleIdBytes
public com.google.protobuf.ByteString getAppleIdBytes()The Apple Sign In ID in the user's account.
string apple_id = 18;
- Specified by:
getAppleIdBytes
in interfaceUserOrBuilder
- Returns:
- The bytes for appleId.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static User parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static User parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static User parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static User parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static User parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static User parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static User parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static User parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected User.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-