public final class User extends com.google.protobuf.GeneratedMessage implements UserOrBuilder
A user in the server.Protobuf type
nakama.api.User| Modifier and Type | Class and Description |
|---|---|
static class |
User.Builder
A user in 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 |
APPLE_ID_FIELD_NUMBER |
static int |
AVATAR_URL_FIELD_NUMBER |
static int |
CREATE_TIME_FIELD_NUMBER |
static int |
DISPLAY_NAME_FIELD_NUMBER |
static int |
EDGE_COUNT_FIELD_NUMBER |
static int |
FACEBOOK_ID_FIELD_NUMBER |
static int |
FACEBOOK_INSTANT_GAME_ID_FIELD_NUMBER |
static int |
GAMECENTER_ID_FIELD_NUMBER |
static int |
GOOGLE_ID_FIELD_NUMBER |
static int |
ID_FIELD_NUMBER |
static int |
LANG_TAG_FIELD_NUMBER |
static int |
LOCATION_FIELD_NUMBER |
static int |
METADATA_FIELD_NUMBER |
static int |
ONLINE_FIELD_NUMBER |
static int |
STEAM_ID_FIELD_NUMBER |
static int |
TIMEZONE_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) |
java.lang.String |
getAppleId()
The Apple Sign In ID in the user's account.
|
com.google.protobuf.ByteString |
getAppleIdBytes()
The Apple Sign In ID in the user's account.
|
java.lang.String |
getAvatarUrl()
A URL for an avatar image.
|
com.google.protobuf.ByteString |
getAvatarUrlBytes()
A URL for an avatar image.
|
com.google.protobuf.Timestamp |
getCreateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the user was created.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the user was created.
|
static User |
getDefaultInstance() |
User |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
java.lang.String |
getDisplayName()
The display name of the user.
|
com.google.protobuf.ByteString |
getDisplayNameBytes()
The display name of the user.
|
int |
getEdgeCount()
Number of related edges to this user.
|
java.lang.String |
getFacebookId()
The Facebook id in the user's account.
|
com.google.protobuf.ByteString |
getFacebookIdBytes()
The Facebook id in the user's account.
|
java.lang.String |
getFacebookInstantGameId()
The Facebook Instant Game ID in the user's account.
|
com.google.protobuf.ByteString |
getFacebookInstantGameIdBytes()
The Facebook Instant Game ID in the user's account.
|
java.lang.String |
getGamecenterId()
The Apple Game Center in of the user's account.
|
com.google.protobuf.ByteString |
getGamecenterIdBytes()
The Apple Game Center in of the user's account.
|
java.lang.String |
getGoogleId()
The Google id in the user's account.
|
com.google.protobuf.ByteString |
getGoogleIdBytes()
The Google id in the user's account.
|
java.lang.String |
getId()
The id of the user's account.
|
com.google.protobuf.ByteString |
getIdBytes()
The id of the user's account.
|
java.lang.String |
getLangTag()
The language expected to be a tag which follows the BCP-47 spec.
|
com.google.protobuf.ByteString |
getLangTagBytes()
The language expected to be a tag which follows the BCP-47 spec.
|
java.lang.String |
getLocation()
The location set by the user.
|
com.google.protobuf.ByteString |
getLocationBytes()
The location set by the user.
|
java.lang.String |
getMetadata()
Additional information stored as a JSON object.
|
com.google.protobuf.ByteString |
getMetadataBytes()
Additional information stored as a JSON object.
|
boolean |
getOnline()
Indicates whether the user is currently online.
|
com.google.protobuf.Parser<User> |
getParserForType() |
int |
getSerializedSize() |
java.lang.String |
getSteamId()
The Steam id in the user's account.
|
com.google.protobuf.ByteString |
getSteamIdBytes()
The Steam id in the user's account.
|
java.lang.String |
getTimezone()
The timezone set by the user.
|
com.google.protobuf.ByteString |
getTimezoneBytes()
The timezone set by the user.
|
com.google.protobuf.Timestamp |
getUpdateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the user was last updated.
|
com.google.protobuf.TimestampOrBuilder |
getUpdateTimeOrBuilder()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the user was last updated.
|
java.lang.String |
getUsername()
The username of the user's account.
|
com.google.protobuf.ByteString |
getUsernameBytes()
The username of the user's account.
|
boolean |
hasCreateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the user was created.
|
int |
hashCode() |
boolean |
hasUpdateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the user was last updated.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static User.Builder |
newBuilder() |
static User.Builder |
newBuilder(User prototype) |
User.Builder |
newBuilderForType() |
protected User.Builder |
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) |
static User |
parseDelimitedFrom(java.io.InputStream input) |
static User |
parseDelimitedFrom(java.io.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(java.nio.ByteBuffer data) |
static User |
parseFrom(java.nio.ByteBuffer 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(java.io.InputStream input) |
static User |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<User> |
parser() |
User.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 USERNAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
public static final int AVATAR_URL_FIELD_NUMBER
public static final int LANG_TAG_FIELD_NUMBER
public static final int LOCATION_FIELD_NUMBER
public static final int TIMEZONE_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
public static final int FACEBOOK_ID_FIELD_NUMBER
public static final int GOOGLE_ID_FIELD_NUMBER
public static final int GAMECENTER_ID_FIELD_NUMBER
public static final int STEAM_ID_FIELD_NUMBER
public static final int ONLINE_FIELD_NUMBER
public static final int EDGE_COUNT_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
public static final int FACEBOOK_INSTANT_GAME_ID_FIELD_NUMBER
public static final int APPLE_ID_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 user's account.
string id = 1 [json_name = "id"];getId in interface UserOrBuilderpublic com.google.protobuf.ByteString getIdBytes()
The id of the user's account.
string id = 1 [json_name = "id"];getIdBytes in interface UserOrBuilderpublic java.lang.String getUsername()
The username of the user's account.
string username = 2 [json_name = "username"];getUsername in interface UserOrBuilderpublic com.google.protobuf.ByteString getUsernameBytes()
The username of the user's account.
string username = 2 [json_name = "username"];getUsernameBytes in interface UserOrBuilderpublic java.lang.String getDisplayName()
The display name of the user.
string display_name = 3 [json_name = "displayName"];getDisplayName in interface UserOrBuilderpublic com.google.protobuf.ByteString getDisplayNameBytes()
The display name of the user.
string display_name = 3 [json_name = "displayName"];getDisplayNameBytes in interface UserOrBuilderpublic java.lang.String getAvatarUrl()
A URL for an avatar image.
string avatar_url = 4 [json_name = "avatarUrl"];getAvatarUrl in interface UserOrBuilderpublic com.google.protobuf.ByteString getAvatarUrlBytes()
A URL for an avatar image.
string avatar_url = 4 [json_name = "avatarUrl"];getAvatarUrlBytes in interface UserOrBuilderpublic java.lang.String getLangTag()
The language expected to be a tag which follows the BCP-47 spec.
string lang_tag = 5 [json_name = "langTag"];getLangTag in interface UserOrBuilderpublic com.google.protobuf.ByteString getLangTagBytes()
The language expected to be a tag which follows the BCP-47 spec.
string lang_tag = 5 [json_name = "langTag"];getLangTagBytes in interface UserOrBuilderpublic java.lang.String getLocation()
The location set by the user.
string location = 6 [json_name = "location"];getLocation in interface UserOrBuilderpublic com.google.protobuf.ByteString getLocationBytes()
The location set by the user.
string location = 6 [json_name = "location"];getLocationBytes in interface UserOrBuilderpublic java.lang.String getTimezone()
The timezone set by the user.
string timezone = 7 [json_name = "timezone"];getTimezone in interface UserOrBuilderpublic com.google.protobuf.ByteString getTimezoneBytes()
The timezone set by the user.
string timezone = 7 [json_name = "timezone"];getTimezoneBytes in interface UserOrBuilderpublic java.lang.String getMetadata()
Additional information stored as a JSON object.
string metadata = 8 [json_name = "metadata"];getMetadata in interface UserOrBuilderpublic com.google.protobuf.ByteString getMetadataBytes()
Additional information stored as a JSON object.
string metadata = 8 [json_name = "metadata"];getMetadataBytes in interface UserOrBuilderpublic java.lang.String getFacebookId()
The Facebook id in the user's account.
string facebook_id = 9 [json_name = "facebookId"];getFacebookId in interface UserOrBuilderpublic com.google.protobuf.ByteString getFacebookIdBytes()
The Facebook id in the user's account.
string facebook_id = 9 [json_name = "facebookId"];getFacebookIdBytes in interface UserOrBuilderpublic java.lang.String getGoogleId()
The Google id in the user's account.
string google_id = 10 [json_name = "googleId"];getGoogleId in interface UserOrBuilderpublic com.google.protobuf.ByteString getGoogleIdBytes()
The Google id in the user's account.
string google_id = 10 [json_name = "googleId"];getGoogleIdBytes in interface UserOrBuilderpublic java.lang.String getGamecenterId()
The Apple Game Center in of the user's account.
string gamecenter_id = 11 [json_name = "gamecenterId"];getGamecenterId in interface UserOrBuilderpublic com.google.protobuf.ByteString getGamecenterIdBytes()
The Apple Game Center in of the user's account.
string gamecenter_id = 11 [json_name = "gamecenterId"];getGamecenterIdBytes in interface UserOrBuilderpublic java.lang.String getSteamId()
The Steam id in the user's account.
string steam_id = 12 [json_name = "steamId"];getSteamId in interface UserOrBuilderpublic com.google.protobuf.ByteString getSteamIdBytes()
The Steam id in the user's account.
string steam_id = 12 [json_name = "steamId"];getSteamIdBytes in interface UserOrBuilderpublic boolean getOnline()
Indicates whether the user is currently online.
bool online = 13 [json_name = "online"];getOnline in interface UserOrBuilderpublic int getEdgeCount()
Number of related edges to this user.
int32 edge_count = 14 [json_name = "edgeCount"];getEdgeCount in interface UserOrBuilderpublic boolean hasCreateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the user was created.
.google.protobuf.Timestamp create_time = 15 [json_name = "createTime"];hasCreateTime in interface UserOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the user was created.
.google.protobuf.Timestamp create_time = 15 [json_name = "createTime"];getCreateTime in interface UserOrBuilderpublic com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the user was created.
.google.protobuf.Timestamp create_time = 15 [json_name = "createTime"];getCreateTimeOrBuilder in interface UserOrBuilderpublic boolean hasUpdateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the user was last updated.
.google.protobuf.Timestamp update_time = 16 [json_name = "updateTime"];hasUpdateTime in interface UserOrBuilderpublic com.google.protobuf.Timestamp getUpdateTime()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the user was last updated.
.google.protobuf.Timestamp update_time = 16 [json_name = "updateTime"];getUpdateTime in interface UserOrBuilderpublic com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
The UNIX time (for gRPC clients) or ISO string (for REST clients) when the user was last updated.
.google.protobuf.Timestamp update_time = 16 [json_name = "updateTime"];getUpdateTimeOrBuilder in interface UserOrBuilderpublic java.lang.String getFacebookInstantGameId()
The Facebook Instant Game ID in the user's account.
string facebook_instant_game_id = 17 [json_name = "facebookInstantGameId"];getFacebookInstantGameId in interface UserOrBuilderpublic com.google.protobuf.ByteString getFacebookInstantGameIdBytes()
The Facebook Instant Game ID in the user's account.
string facebook_instant_game_id = 17 [json_name = "facebookInstantGameId"];getFacebookInstantGameIdBytes in interface UserOrBuilderpublic java.lang.String getAppleId()
The Apple Sign In ID in the user's account.
string apple_id = 18 [json_name = "appleId"];getAppleId in interface UserOrBuilderpublic com.google.protobuf.ByteString getAppleIdBytes()
The Apple Sign In ID in the user's account.
string apple_id = 18 [json_name = "appleId"];getAppleIdBytes in interface UserOrBuilderpublic 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 User parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static User parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static User parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static User parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static User parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static User parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static User parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static User parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static User parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static User parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static User parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static User parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic User.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static User.Builder newBuilder()
public static User.Builder newBuilder(User prototype)
public User.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected User.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.AbstractMessagepublic static User getDefaultInstance()
public static com.google.protobuf.Parser<User> parser()
public com.google.protobuf.Parser<User> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic User getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder