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

public final class User extends com.google.protobuf.GeneratedMessageV3 implements UserOrBuilder
 A user in the server.
 
Protobuf type nakama.api.User
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    A user in the server.

    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

    Fields
    Modifier and Type
    Field
    Description
    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
     
    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 Type
    Method
    Description
    boolean
     
    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.
    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
     
    boolean
    The UNIX time when the user was last updated.
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
    newBuilder(User prototype)
     
     
    protected User.Builder
    newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
     
    protected Object
    newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
     
    static User
     
    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
     
    static User
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static User
     
    static User
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<User>
     
     
    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

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getUnknownFields

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      Specified by:
      getUnknownFields in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getUnknownFields in class com.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 class com.google.protobuf.GeneratedMessageV3
    • getId

      public String getId()
       The id of the user's account.
       
      string id = 1;
      Specified by:
      getId in interface UserOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       The id of the user's account.
       
      string id = 1;
      Specified by:
      getIdBytes in interface UserOrBuilder
      Returns:
      The bytes for id.
    • getUsername

      public String getUsername()
       The username of the user's account.
       
      string username = 2;
      Specified by:
      getUsername in interface UserOrBuilder
      Returns:
      The username.
    • getUsernameBytes

      public com.google.protobuf.ByteString getUsernameBytes()
       The username of the user's account.
       
      string username = 2;
      Specified by:
      getUsernameBytes in interface UserOrBuilder
      Returns:
      The bytes for username.
    • getDisplayName

      public String getDisplayName()
       The display name of the user.
       
      string display_name = 3;
      Specified by:
      getDisplayName in interface UserOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       The display name of the user.
       
      string display_name = 3;
      Specified by:
      getDisplayNameBytes in interface UserOrBuilder
      Returns:
      The bytes for displayName.
    • getAvatarUrl

      public String getAvatarUrl()
       A URL for an avatar image.
       
      string avatar_url = 4;
      Specified by:
      getAvatarUrl in interface UserOrBuilder
      Returns:
      The avatarUrl.
    • getAvatarUrlBytes

      public com.google.protobuf.ByteString getAvatarUrlBytes()
       A URL for an avatar image.
       
      string avatar_url = 4;
      Specified by:
      getAvatarUrlBytes in interface UserOrBuilder
      Returns:
      The bytes for avatarUrl.
    • getLangTag

      public String getLangTag()
       The language expected to be a tag which follows the BCP-47 spec.
       
      string lang_tag = 5;
      Specified by:
      getLangTag in interface UserOrBuilder
      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 interface UserOrBuilder
      Returns:
      The bytes for langTag.
    • getLocation

      public String getLocation()
       The location set by the user.
       
      string location = 6;
      Specified by:
      getLocation in interface UserOrBuilder
      Returns:
      The location.
    • getLocationBytes

      public com.google.protobuf.ByteString getLocationBytes()
       The location set by the user.
       
      string location = 6;
      Specified by:
      getLocationBytes in interface UserOrBuilder
      Returns:
      The bytes for location.
    • getTimezone

      public String getTimezone()
       The timezone set by the user.
       
      string timezone = 7;
      Specified by:
      getTimezone in interface UserOrBuilder
      Returns:
      The timezone.
    • getTimezoneBytes

      public com.google.protobuf.ByteString getTimezoneBytes()
       The timezone set by the user.
       
      string timezone = 7;
      Specified by:
      getTimezoneBytes in interface UserOrBuilder
      Returns:
      The bytes for timezone.
    • getMetadata

      public String getMetadata()
       Additional information stored as a JSON object.
       
      string metadata = 8;
      Specified by:
      getMetadata in interface UserOrBuilder
      Returns:
      The metadata.
    • getMetadataBytes

      public com.google.protobuf.ByteString getMetadataBytes()
       Additional information stored as a JSON object.
       
      string metadata = 8;
      Specified by:
      getMetadataBytes in interface UserOrBuilder
      Returns:
      The bytes for metadata.
    • getFacebookId

      public String getFacebookId()
       The Facebook id in the user's account.
       
      string facebook_id = 9;
      Specified by:
      getFacebookId in interface UserOrBuilder
      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 interface UserOrBuilder
      Returns:
      The bytes for facebookId.
    • getGoogleId

      public String getGoogleId()
       The Google id in the user's account.
       
      string google_id = 10;
      Specified by:
      getGoogleId in interface UserOrBuilder
      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 interface UserOrBuilder
      Returns:
      The bytes for googleId.
    • getGamecenterId

      public String getGamecenterId()
       The Apple Game Center in of the user's account.
       
      string gamecenter_id = 11;
      Specified by:
      getGamecenterId in interface UserOrBuilder
      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 interface UserOrBuilder
      Returns:
      The bytes for gamecenterId.
    • getSteamId

      public String getSteamId()
       The Steam id in the user's account.
       
      string steam_id = 12;
      Specified by:
      getSteamId in interface UserOrBuilder
      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 interface UserOrBuilder
      Returns:
      The bytes for steamId.
    • getOnline

      public boolean getOnline()
       Indicates whether the user is currently online.
       
      bool online = 13;
      Specified by:
      getOnline in interface UserOrBuilder
      Returns:
      The online.
    • getEdgeCount

      public int getEdgeCount()
       Number of related edges to this user.
       
      int32 edge_count = 14;
      Specified by:
      getEdgeCount in interface UserOrBuilder
      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 interface UserOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public Timestamp getCreateTime()
       The UNIX time when the user was created.
       
      .google.protobuf.Timestamp create_time = 15;
      Specified by:
      getCreateTime in interface UserOrBuilder
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

      public TimestampOrBuilder getCreateTimeOrBuilder()
       The UNIX time when the user was created.
       
      .google.protobuf.Timestamp create_time = 15;
      Specified by:
      getCreateTimeOrBuilder in interface UserOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       The UNIX time when the user was last updated.
       
      .google.protobuf.Timestamp update_time = 16;
      Specified by:
      hasUpdateTime in interface UserOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public Timestamp getUpdateTime()
       The UNIX time when the user was last updated.
       
      .google.protobuf.Timestamp update_time = 16;
      Specified by:
      getUpdateTime in interface UserOrBuilder
      Returns:
      The updateTime.
    • getUpdateTimeOrBuilder

      public TimestampOrBuilder getUpdateTimeOrBuilder()
       The UNIX time when the user was last updated.
       
      .google.protobuf.Timestamp update_time = 16;
      Specified by:
      getUpdateTimeOrBuilder in interface UserOrBuilder
    • getFacebookInstantGameId

      public String getFacebookInstantGameId()
       The Facebook Instant Game ID in the user's account.
       
      string facebook_instant_game_id = 17;
      Specified by:
      getFacebookInstantGameId in interface UserOrBuilder
      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 interface UserOrBuilder
      Returns:
      The bytes for facebookInstantGameId.
    • getAppleId

      public String getAppleId()
       The Apple Sign In ID in the user's account.
       
      string apple_id = 18;
      Specified by:
      getAppleId in interface UserOrBuilder
      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 interface UserOrBuilder
      Returns:
      The bytes for appleId.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static User parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      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

      public static User parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static User parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static User parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static User parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static User parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static User parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public User.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static User.Builder newBuilder()
    • newBuilder

      public static User.Builder newBuilder(User prototype)
    • toBuilder

      public User.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected User.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static User getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<User> parser()
    • getParserForType

      public com.google.protobuf.Parser<User> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public User getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder