com.evernote.edam.userstore
Class PublicUserInfo

java.lang.Object
  extended by com.evernote.edam.userstore.PublicUserInfo
All Implemented Interfaces:
com.evernote.thrift.TBase<PublicUserInfo>, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<PublicUserInfo>

public class PublicUserInfo
extends java.lang.Object
implements com.evernote.thrift.TBase<PublicUserInfo>, java.io.Serializable, java.lang.Cloneable

This structure is used to provide publicly-available user information about a particular account.

userId:
The unique numeric user identifier for the user account.
shardId:
DEPRECATED - Client applications should have no need to use this field.
privilege:
The privilege level of the account, to determine whether this is a Premium or Free account.
noteStoreUrl:
This field will contain the full URL that clients should use to make NoteStore requests to the server shard that contains that user's data. I.e. this is the URL that should be used to create the Thrift HTTP client transport to send messages to the NoteStore service for the account.
webApiUrlPrefix:
This field will contain the initial part of the URLs that should be used to make requests to Evernote's thin client "web API", which provide optimized operations for clients that aren't capable of manipulating the full contents of accounts via the full Thrift data model. Clients should concatenate the relative path for the various servlets onto the end of this string to construct the full URL, as documented on our developer web site.

See Also:
Serialized Form

Constructor Summary
PublicUserInfo()
           
PublicUserInfo(int userId, java.lang.String shardId)
           
PublicUserInfo(PublicUserInfo other)
          Performs a deep copy on other.
 
Method Summary
 void clear()
          Return to the state of having just been initialized, as though you had just called the default constructor.
 int compareTo(PublicUserInfo other)
           
 PublicUserInfo deepCopy()
          Creates a deep copy of the object.
 boolean equals(java.lang.Object that)
           
 boolean equals(PublicUserInfo that)
           
 java.lang.String getNoteStoreUrl()
           
 PrivilegeLevel getPrivilege()
           
 java.lang.String getShardId()
           
 int getUserId()
           
 java.lang.String getUsername()
           
 java.lang.String getWebApiUrlPrefix()
           
 int hashCode()
           
 boolean isSetNoteStoreUrl()
          Returns true if field noteStoreUrl is set (has been asigned a value) and false otherwise
 boolean isSetPrivilege()
          Returns true if field privilege is set (has been asigned a value) and false otherwise
 boolean isSetShardId()
          Returns true if field shardId is set (has been asigned a value) and false otherwise
 boolean isSetUserId()
          Returns true if field userId is set (has been asigned a value) and false otherwise
 boolean isSetUsername()
          Returns true if field username is set (has been asigned a value) and false otherwise
 boolean isSetWebApiUrlPrefix()
          Returns true if field webApiUrlPrefix is set (has been asigned a value) and false otherwise
 void read(com.evernote.thrift.protocol.TProtocol iprot)
          Reads an instance of the object from the given protocol.
 void setNoteStoreUrl(java.lang.String noteStoreUrl)
           
 void setNoteStoreUrlIsSet(boolean value)
           
 void setPrivilege(PrivilegeLevel privilege)
           
 void setPrivilegeIsSet(boolean value)
           
 void setShardId(java.lang.String shardId)
           
 void setShardIdIsSet(boolean value)
           
 void setUserId(int userId)
           
 void setUserIdIsSet(boolean value)
           
 void setUsername(java.lang.String username)
           
 void setUsernameIsSet(boolean value)
           
 void setWebApiUrlPrefix(java.lang.String webApiUrlPrefix)
           
 void setWebApiUrlPrefixIsSet(boolean value)
           
 java.lang.String toString()
           
 void unsetNoteStoreUrl()
           
 void unsetPrivilege()
           
 void unsetShardId()
           
 void unsetUserId()
           
 void unsetUsername()
           
 void unsetWebApiUrlPrefix()
           
 void validate()
           
 void write(com.evernote.thrift.protocol.TProtocol oprot)
          Writes the object to the given protocol.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PublicUserInfo

public PublicUserInfo()

PublicUserInfo

public PublicUserInfo(int userId,
                      java.lang.String shardId)

PublicUserInfo

public PublicUserInfo(PublicUserInfo other)
Performs a deep copy on other.

Method Detail

deepCopy

public PublicUserInfo deepCopy()
Description copied from interface: com.evernote.thrift.TBase
Creates a deep copy of the object.

Specified by:
deepCopy in interface com.evernote.thrift.TBase<PublicUserInfo>

clear

public void clear()
Description copied from interface: com.evernote.thrift.TBase
Return to the state of having just been initialized, as though you had just called the default constructor.

Specified by:
clear in interface com.evernote.thrift.TBase<PublicUserInfo>

getUserId

public int getUserId()

setUserId

public void setUserId(int userId)

unsetUserId

public void unsetUserId()

isSetUserId

public boolean isSetUserId()
Returns true if field userId is set (has been asigned a value) and false otherwise


setUserIdIsSet

public void setUserIdIsSet(boolean value)

getShardId

public java.lang.String getShardId()

setShardId

public void setShardId(java.lang.String shardId)

unsetShardId

public void unsetShardId()

isSetShardId

public boolean isSetShardId()
Returns true if field shardId is set (has been asigned a value) and false otherwise


setShardIdIsSet

public void setShardIdIsSet(boolean value)

getPrivilege

public PrivilegeLevel getPrivilege()
See Also:
PrivilegeLevel

setPrivilege

public void setPrivilege(PrivilegeLevel privilege)
See Also:
PrivilegeLevel

unsetPrivilege

public void unsetPrivilege()

isSetPrivilege

public boolean isSetPrivilege()
Returns true if field privilege is set (has been asigned a value) and false otherwise


setPrivilegeIsSet

public void setPrivilegeIsSet(boolean value)

getUsername

public java.lang.String getUsername()

setUsername

public void setUsername(java.lang.String username)

unsetUsername

public void unsetUsername()

isSetUsername

public boolean isSetUsername()
Returns true if field username is set (has been asigned a value) and false otherwise


setUsernameIsSet

public void setUsernameIsSet(boolean value)

getNoteStoreUrl

public java.lang.String getNoteStoreUrl()

setNoteStoreUrl

public void setNoteStoreUrl(java.lang.String noteStoreUrl)

unsetNoteStoreUrl

public void unsetNoteStoreUrl()

isSetNoteStoreUrl

public boolean isSetNoteStoreUrl()
Returns true if field noteStoreUrl is set (has been asigned a value) and false otherwise


setNoteStoreUrlIsSet

public void setNoteStoreUrlIsSet(boolean value)

getWebApiUrlPrefix

public java.lang.String getWebApiUrlPrefix()

setWebApiUrlPrefix

public void setWebApiUrlPrefix(java.lang.String webApiUrlPrefix)

unsetWebApiUrlPrefix

public void unsetWebApiUrlPrefix()

isSetWebApiUrlPrefix

public boolean isSetWebApiUrlPrefix()
Returns true if field webApiUrlPrefix is set (has been asigned a value) and false otherwise


setWebApiUrlPrefixIsSet

public void setWebApiUrlPrefixIsSet(boolean value)

equals

public boolean equals(java.lang.Object that)
Overrides:
equals in class java.lang.Object

equals

public boolean equals(PublicUserInfo that)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

compareTo

public int compareTo(PublicUserInfo other)
Specified by:
compareTo in interface java.lang.Comparable<PublicUserInfo>

read

public void read(com.evernote.thrift.protocol.TProtocol iprot)
          throws com.evernote.thrift.TException
Description copied from interface: com.evernote.thrift.TBase
Reads an instance of the object from the given protocol.

Specified by:
read in interface com.evernote.thrift.TBase<PublicUserInfo>
Parameters:
iprot - Input protocol
Throws:
com.evernote.thrift.TException

write

public void write(com.evernote.thrift.protocol.TProtocol oprot)
           throws com.evernote.thrift.TException
Description copied from interface: com.evernote.thrift.TBase
Writes the object to the given protocol.

Specified by:
write in interface com.evernote.thrift.TBase<PublicUserInfo>
Parameters:
oprot - Output protocol
Throws:
com.evernote.thrift.TException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

validate

public void validate()
              throws com.evernote.thrift.TException
Throws:
com.evernote.thrift.TException