|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.evernote.edam.notestore.SyncChunk
public class SyncChunk
This structure is given out by the NoteStore when a client asks to receive the current state of an account. The client asks for the server's state one chunk at a time in order to allow clients to retrieve the state of a large account without needing to transfer the entire account in a single message. The server always gives SyncChunks using an ascending series of Update Sequence Numbers (USNs).
Constructor Summary | |
---|---|
SyncChunk()
|
|
SyncChunk(long currentTime,
int updateCount)
|
|
SyncChunk(SyncChunk other)
Performs a deep copy on other. |
Method Summary | |
---|---|
void |
addToExpungedLinkedNotebooks(java.lang.String elem)
|
void |
addToExpungedNotebooks(java.lang.String elem)
|
void |
addToExpungedNotes(java.lang.String elem)
|
void |
addToExpungedSearches(java.lang.String elem)
|
void |
addToExpungedTags(java.lang.String elem)
|
void |
addToLinkedNotebooks(LinkedNotebook elem)
|
void |
addToNotebooks(Notebook elem)
|
void |
addToNotes(Note elem)
|
void |
addToResources(Resource elem)
|
void |
addToSearches(SavedSearch elem)
|
void |
addToTags(Tag elem)
|
void |
clear()
Return to the state of having just been initialized, as though you had just called the default constructor. |
int |
compareTo(SyncChunk other)
|
SyncChunk |
deepCopy()
Creates a deep copy of the object. |
boolean |
equals(java.lang.Object that)
|
boolean |
equals(SyncChunk that)
|
int |
getChunkHighUSN()
|
long |
getCurrentTime()
|
java.util.List<java.lang.String> |
getExpungedLinkedNotebooks()
|
java.util.Iterator<java.lang.String> |
getExpungedLinkedNotebooksIterator()
|
int |
getExpungedLinkedNotebooksSize()
|
java.util.List<java.lang.String> |
getExpungedNotebooks()
|
java.util.Iterator<java.lang.String> |
getExpungedNotebooksIterator()
|
int |
getExpungedNotebooksSize()
|
java.util.List<java.lang.String> |
getExpungedNotes()
|
java.util.Iterator<java.lang.String> |
getExpungedNotesIterator()
|
int |
getExpungedNotesSize()
|
java.util.List<java.lang.String> |
getExpungedSearches()
|
java.util.Iterator<java.lang.String> |
getExpungedSearchesIterator()
|
int |
getExpungedSearchesSize()
|
java.util.List<java.lang.String> |
getExpungedTags()
|
java.util.Iterator<java.lang.String> |
getExpungedTagsIterator()
|
int |
getExpungedTagsSize()
|
java.util.List<LinkedNotebook> |
getLinkedNotebooks()
|
java.util.Iterator<LinkedNotebook> |
getLinkedNotebooksIterator()
|
int |
getLinkedNotebooksSize()
|
java.util.List<Notebook> |
getNotebooks()
|
java.util.Iterator<Notebook> |
getNotebooksIterator()
|
int |
getNotebooksSize()
|
java.util.List<Note> |
getNotes()
|
java.util.Iterator<Note> |
getNotesIterator()
|
int |
getNotesSize()
|
java.util.List<Resource> |
getResources()
|
java.util.Iterator<Resource> |
getResourcesIterator()
|
int |
getResourcesSize()
|
java.util.List<SavedSearch> |
getSearches()
|
java.util.Iterator<SavedSearch> |
getSearchesIterator()
|
int |
getSearchesSize()
|
java.util.List<Tag> |
getTags()
|
java.util.Iterator<Tag> |
getTagsIterator()
|
int |
getTagsSize()
|
int |
getUpdateCount()
|
int |
hashCode()
|
boolean |
isSetChunkHighUSN()
Returns true if field chunkHighUSN is set (has been asigned a value) and false otherwise |
boolean |
isSetCurrentTime()
Returns true if field currentTime is set (has been asigned a value) and false otherwise |
boolean |
isSetExpungedLinkedNotebooks()
Returns true if field expungedLinkedNotebooks is set (has been asigned a value) and false otherwise |
boolean |
isSetExpungedNotebooks()
Returns true if field expungedNotebooks is set (has been asigned a value) and false otherwise |
boolean |
isSetExpungedNotes()
Returns true if field expungedNotes is set (has been asigned a value) and false otherwise |
boolean |
isSetExpungedSearches()
Returns true if field expungedSearches is set (has been asigned a value) and false otherwise |
boolean |
isSetExpungedTags()
Returns true if field expungedTags is set (has been asigned a value) and false otherwise |
boolean |
isSetLinkedNotebooks()
Returns true if field linkedNotebooks is set (has been asigned a value) and false otherwise |
boolean |
isSetNotebooks()
Returns true if field notebooks is set (has been asigned a value) and false otherwise |
boolean |
isSetNotes()
Returns true if field notes is set (has been asigned a value) and false otherwise |
boolean |
isSetResources()
Returns true if field resources is set (has been asigned a value) and false otherwise |
boolean |
isSetSearches()
Returns true if field searches is set (has been asigned a value) and false otherwise |
boolean |
isSetTags()
Returns true if field tags is set (has been asigned a value) and false otherwise |
boolean |
isSetUpdateCount()
Returns true if field updateCount 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 |
setChunkHighUSN(int chunkHighUSN)
|
void |
setChunkHighUSNIsSet(boolean value)
|
void |
setCurrentTime(long currentTime)
|
void |
setCurrentTimeIsSet(boolean value)
|
void |
setExpungedLinkedNotebooks(java.util.List<java.lang.String> expungedLinkedNotebooks)
|
void |
setExpungedLinkedNotebooksIsSet(boolean value)
|
void |
setExpungedNotebooks(java.util.List<java.lang.String> expungedNotebooks)
|
void |
setExpungedNotebooksIsSet(boolean value)
|
void |
setExpungedNotes(java.util.List<java.lang.String> expungedNotes)
|
void |
setExpungedNotesIsSet(boolean value)
|
void |
setExpungedSearches(java.util.List<java.lang.String> expungedSearches)
|
void |
setExpungedSearchesIsSet(boolean value)
|
void |
setExpungedTags(java.util.List<java.lang.String> expungedTags)
|
void |
setExpungedTagsIsSet(boolean value)
|
void |
setLinkedNotebooks(java.util.List<LinkedNotebook> linkedNotebooks)
|
void |
setLinkedNotebooksIsSet(boolean value)
|
void |
setNotebooks(java.util.List<Notebook> notebooks)
|
void |
setNotebooksIsSet(boolean value)
|
void |
setNotes(java.util.List<Note> notes)
|
void |
setNotesIsSet(boolean value)
|
void |
setResources(java.util.List<Resource> resources)
|
void |
setResourcesIsSet(boolean value)
|
void |
setSearches(java.util.List<SavedSearch> searches)
|
void |
setSearchesIsSet(boolean value)
|
void |
setTags(java.util.List<Tag> tags)
|
void |
setTagsIsSet(boolean value)
|
void |
setUpdateCount(int updateCount)
|
void |
setUpdateCountIsSet(boolean value)
|
java.lang.String |
toString()
|
void |
unsetChunkHighUSN()
|
void |
unsetCurrentTime()
|
void |
unsetExpungedLinkedNotebooks()
|
void |
unsetExpungedNotebooks()
|
void |
unsetExpungedNotes()
|
void |
unsetExpungedSearches()
|
void |
unsetExpungedTags()
|
void |
unsetLinkedNotebooks()
|
void |
unsetNotebooks()
|
void |
unsetNotes()
|
void |
unsetResources()
|
void |
unsetSearches()
|
void |
unsetTags()
|
void |
unsetUpdateCount()
|
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 |
---|
public SyncChunk()
public SyncChunk(long currentTime, int updateCount)
public SyncChunk(SyncChunk other)
Method Detail |
---|
public SyncChunk deepCopy()
com.evernote.thrift.TBase
deepCopy
in interface com.evernote.thrift.TBase<SyncChunk>
public void clear()
com.evernote.thrift.TBase
clear
in interface com.evernote.thrift.TBase<SyncChunk>
public long getCurrentTime()
public void setCurrentTime(long currentTime)
public void unsetCurrentTime()
public boolean isSetCurrentTime()
public void setCurrentTimeIsSet(boolean value)
public int getChunkHighUSN()
public void setChunkHighUSN(int chunkHighUSN)
public void unsetChunkHighUSN()
public boolean isSetChunkHighUSN()
public void setChunkHighUSNIsSet(boolean value)
public int getUpdateCount()
public void setUpdateCount(int updateCount)
public void unsetUpdateCount()
public boolean isSetUpdateCount()
public void setUpdateCountIsSet(boolean value)
public int getNotesSize()
public java.util.Iterator<Note> getNotesIterator()
public void addToNotes(Note elem)
public java.util.List<Note> getNotes()
public void setNotes(java.util.List<Note> notes)
public void unsetNotes()
public boolean isSetNotes()
public void setNotesIsSet(boolean value)
public int getNotebooksSize()
public java.util.Iterator<Notebook> getNotebooksIterator()
public void addToNotebooks(Notebook elem)
public java.util.List<Notebook> getNotebooks()
public void setNotebooks(java.util.List<Notebook> notebooks)
public void unsetNotebooks()
public boolean isSetNotebooks()
public void setNotebooksIsSet(boolean value)
public int getTagsSize()
public java.util.Iterator<Tag> getTagsIterator()
public void addToTags(Tag elem)
public java.util.List<Tag> getTags()
public void setTags(java.util.List<Tag> tags)
public void unsetTags()
public boolean isSetTags()
public void setTagsIsSet(boolean value)
public int getSearchesSize()
public java.util.Iterator<SavedSearch> getSearchesIterator()
public void addToSearches(SavedSearch elem)
public java.util.List<SavedSearch> getSearches()
public void setSearches(java.util.List<SavedSearch> searches)
public void unsetSearches()
public boolean isSetSearches()
public void setSearchesIsSet(boolean value)
public int getResourcesSize()
public java.util.Iterator<Resource> getResourcesIterator()
public void addToResources(Resource elem)
public java.util.List<Resource> getResources()
public void setResources(java.util.List<Resource> resources)
public void unsetResources()
public boolean isSetResources()
public void setResourcesIsSet(boolean value)
public int getExpungedNotesSize()
public java.util.Iterator<java.lang.String> getExpungedNotesIterator()
public void addToExpungedNotes(java.lang.String elem)
public java.util.List<java.lang.String> getExpungedNotes()
public void setExpungedNotes(java.util.List<java.lang.String> expungedNotes)
public void unsetExpungedNotes()
public boolean isSetExpungedNotes()
public void setExpungedNotesIsSet(boolean value)
public int getExpungedNotebooksSize()
public java.util.Iterator<java.lang.String> getExpungedNotebooksIterator()
public void addToExpungedNotebooks(java.lang.String elem)
public java.util.List<java.lang.String> getExpungedNotebooks()
public void setExpungedNotebooks(java.util.List<java.lang.String> expungedNotebooks)
public void unsetExpungedNotebooks()
public boolean isSetExpungedNotebooks()
public void setExpungedNotebooksIsSet(boolean value)
public int getExpungedTagsSize()
public java.util.Iterator<java.lang.String> getExpungedTagsIterator()
public void addToExpungedTags(java.lang.String elem)
public java.util.List<java.lang.String> getExpungedTags()
public void setExpungedTags(java.util.List<java.lang.String> expungedTags)
public void unsetExpungedTags()
public boolean isSetExpungedTags()
public void setExpungedTagsIsSet(boolean value)
public int getExpungedSearchesSize()
public java.util.Iterator<java.lang.String> getExpungedSearchesIterator()
public void addToExpungedSearches(java.lang.String elem)
public java.util.List<java.lang.String> getExpungedSearches()
public void setExpungedSearches(java.util.List<java.lang.String> expungedSearches)
public void unsetExpungedSearches()
public boolean isSetExpungedSearches()
public void setExpungedSearchesIsSet(boolean value)
public int getLinkedNotebooksSize()
public java.util.Iterator<LinkedNotebook> getLinkedNotebooksIterator()
public void addToLinkedNotebooks(LinkedNotebook elem)
public java.util.List<LinkedNotebook> getLinkedNotebooks()
public void setLinkedNotebooks(java.util.List<LinkedNotebook> linkedNotebooks)
public void unsetLinkedNotebooks()
public boolean isSetLinkedNotebooks()
public void setLinkedNotebooksIsSet(boolean value)
public int getExpungedLinkedNotebooksSize()
public java.util.Iterator<java.lang.String> getExpungedLinkedNotebooksIterator()
public void addToExpungedLinkedNotebooks(java.lang.String elem)
public java.util.List<java.lang.String> getExpungedLinkedNotebooks()
public void setExpungedLinkedNotebooks(java.util.List<java.lang.String> expungedLinkedNotebooks)
public void unsetExpungedLinkedNotebooks()
public boolean isSetExpungedLinkedNotebooks()
public void setExpungedLinkedNotebooksIsSet(boolean value)
public boolean equals(java.lang.Object that)
equals
in class java.lang.Object
public boolean equals(SyncChunk that)
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(SyncChunk other)
compareTo
in interface java.lang.Comparable<SyncChunk>
public void read(com.evernote.thrift.protocol.TProtocol iprot) throws com.evernote.thrift.TException
com.evernote.thrift.TBase
read
in interface com.evernote.thrift.TBase<SyncChunk>
iprot
- Input protocol
com.evernote.thrift.TException
public void write(com.evernote.thrift.protocol.TProtocol oprot) throws com.evernote.thrift.TException
com.evernote.thrift.TBase
write
in interface com.evernote.thrift.TBase<SyncChunk>
oprot
- Output protocol
com.evernote.thrift.TException
public java.lang.String toString()
toString
in class java.lang.Object
public void validate() throws com.evernote.thrift.TException
com.evernote.thrift.TException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |