com.evernote.edam.notestore
Class NoteMetadata

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

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

This structure is used in the set of results returned by the findNotesMetadata function. It represents the high-level information about a single Note, without some of the larger deep structure. This allows for the information about a list of Notes to be returned relatively quickly with less marshalling and data transfer to remote clients. Most fields in this structure are identical to the corresponding field in the Note structure, with the exception of:

largestResourceMime
If set, then this will contain the MIME type of the largest Resource (in bytes) within the Note. This may be useful, for example, to choose an appropriate icon or thumbnail to represent the Note.
largestResourceSize
If set, this will contain the size of the largest Resource file, in bytes, within the Note. This may be useful, for example, to decide whether to ask the server for a thumbnail to represent the Note.

See Also:
Serialized Form

Constructor Summary
NoteMetadata()
           
NoteMetadata(NoteMetadata other)
          Performs a deep copy on other.
NoteMetadata(java.lang.String guid)
           
 
Method Summary
 void addToTagGuids(java.lang.String elem)
           
 void clear()
          Return to the state of having just been initialized, as though you had just called the default constructor.
 int compareTo(NoteMetadata other)
           
 NoteMetadata deepCopy()
          Creates a deep copy of the object.
 boolean equals(NoteMetadata that)
           
 boolean equals(java.lang.Object that)
           
 NoteAttributes getAttributes()
           
 int getContentLength()
           
 long getCreated()
           
 long getDeleted()
           
 java.lang.String getGuid()
           
 java.lang.String getLargestResourceMime()
           
 int getLargestResourceSize()
           
 java.lang.String getNotebookGuid()
           
 java.util.List<java.lang.String> getTagGuids()
           
 java.util.Iterator<java.lang.String> getTagGuidsIterator()
           
 int getTagGuidsSize()
           
 java.lang.String getTitle()
           
 long getUpdated()
           
 int getUpdateSequenceNum()
           
 int hashCode()
           
 boolean isSetAttributes()
          Returns true if field attributes is set (has been asigned a value) and false otherwise
 boolean isSetContentLength()
          Returns true if field contentLength is set (has been asigned a value) and false otherwise
 boolean isSetCreated()
          Returns true if field created is set (has been asigned a value) and false otherwise
 boolean isSetDeleted()
          Returns true if field deleted is set (has been asigned a value) and false otherwise
 boolean isSetGuid()
          Returns true if field guid is set (has been asigned a value) and false otherwise
 boolean isSetLargestResourceMime()
          Returns true if field largestResourceMime is set (has been asigned a value) and false otherwise
 boolean isSetLargestResourceSize()
          Returns true if field largestResourceSize is set (has been asigned a value) and false otherwise
 boolean isSetNotebookGuid()
          Returns true if field notebookGuid is set (has been asigned a value) and false otherwise
 boolean isSetTagGuids()
          Returns true if field tagGuids is set (has been asigned a value) and false otherwise
 boolean isSetTitle()
          Returns true if field title is set (has been asigned a value) and false otherwise
 boolean isSetUpdated()
          Returns true if field updated is set (has been asigned a value) and false otherwise
 boolean isSetUpdateSequenceNum()
          Returns true if field updateSequenceNum 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 setAttributes(NoteAttributes attributes)
           
 void setAttributesIsSet(boolean value)
           
 void setContentLength(int contentLength)
           
 void setContentLengthIsSet(boolean value)
           
 void setCreated(long created)
           
 void setCreatedIsSet(boolean value)
           
 void setDeleted(long deleted)
           
 void setDeletedIsSet(boolean value)
           
 void setGuid(java.lang.String guid)
           
 void setGuidIsSet(boolean value)
           
 void setLargestResourceMime(java.lang.String largestResourceMime)
           
 void setLargestResourceMimeIsSet(boolean value)
           
 void setLargestResourceSize(int largestResourceSize)
           
 void setLargestResourceSizeIsSet(boolean value)
           
 void setNotebookGuid(java.lang.String notebookGuid)
           
 void setNotebookGuidIsSet(boolean value)
           
 void setTagGuids(java.util.List<java.lang.String> tagGuids)
           
 void setTagGuidsIsSet(boolean value)
           
 void setTitle(java.lang.String title)
           
 void setTitleIsSet(boolean value)
           
 void setUpdated(long updated)
           
 void setUpdatedIsSet(boolean value)
           
 void setUpdateSequenceNum(int updateSequenceNum)
           
 void setUpdateSequenceNumIsSet(boolean value)
           
 java.lang.String toString()
           
 void unsetAttributes()
           
 void unsetContentLength()
           
 void unsetCreated()
           
 void unsetDeleted()
           
 void unsetGuid()
           
 void unsetLargestResourceMime()
           
 void unsetLargestResourceSize()
           
 void unsetNotebookGuid()
           
 void unsetTagGuids()
           
 void unsetTitle()
           
 void unsetUpdated()
           
 void unsetUpdateSequenceNum()
           
 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

NoteMetadata

public NoteMetadata()

NoteMetadata

public NoteMetadata(java.lang.String guid)

NoteMetadata

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

Method Detail

deepCopy

public NoteMetadata 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<NoteMetadata>

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<NoteMetadata>

getGuid

public java.lang.String getGuid()

setGuid

public void setGuid(java.lang.String guid)

unsetGuid

public void unsetGuid()

isSetGuid

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


setGuidIsSet

public void setGuidIsSet(boolean value)

getTitle

public java.lang.String getTitle()

setTitle

public void setTitle(java.lang.String title)

unsetTitle

public void unsetTitle()

isSetTitle

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


setTitleIsSet

public void setTitleIsSet(boolean value)

getContentLength

public int getContentLength()

setContentLength

public void setContentLength(int contentLength)

unsetContentLength

public void unsetContentLength()

isSetContentLength

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


setContentLengthIsSet

public void setContentLengthIsSet(boolean value)

getCreated

public long getCreated()

setCreated

public void setCreated(long created)

unsetCreated

public void unsetCreated()

isSetCreated

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


setCreatedIsSet

public void setCreatedIsSet(boolean value)

getUpdated

public long getUpdated()

setUpdated

public void setUpdated(long updated)

unsetUpdated

public void unsetUpdated()

isSetUpdated

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


setUpdatedIsSet

public void setUpdatedIsSet(boolean value)

getDeleted

public long getDeleted()

setDeleted

public void setDeleted(long deleted)

unsetDeleted

public void unsetDeleted()

isSetDeleted

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


setDeletedIsSet

public void setDeletedIsSet(boolean value)

getUpdateSequenceNum

public int getUpdateSequenceNum()

setUpdateSequenceNum

public void setUpdateSequenceNum(int updateSequenceNum)

unsetUpdateSequenceNum

public void unsetUpdateSequenceNum()

isSetUpdateSequenceNum

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


setUpdateSequenceNumIsSet

public void setUpdateSequenceNumIsSet(boolean value)

getNotebookGuid

public java.lang.String getNotebookGuid()

setNotebookGuid

public void setNotebookGuid(java.lang.String notebookGuid)

unsetNotebookGuid

public void unsetNotebookGuid()

isSetNotebookGuid

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


setNotebookGuidIsSet

public void setNotebookGuidIsSet(boolean value)

getTagGuidsSize

public int getTagGuidsSize()

getTagGuidsIterator

public java.util.Iterator<java.lang.String> getTagGuidsIterator()

addToTagGuids

public void addToTagGuids(java.lang.String elem)

getTagGuids

public java.util.List<java.lang.String> getTagGuids()

setTagGuids

public void setTagGuids(java.util.List<java.lang.String> tagGuids)

unsetTagGuids

public void unsetTagGuids()

isSetTagGuids

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


setTagGuidsIsSet

public void setTagGuidsIsSet(boolean value)

getAttributes

public NoteAttributes getAttributes()

setAttributes

public void setAttributes(NoteAttributes attributes)

unsetAttributes

public void unsetAttributes()

isSetAttributes

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


setAttributesIsSet

public void setAttributesIsSet(boolean value)

getLargestResourceMime

public java.lang.String getLargestResourceMime()

setLargestResourceMime

public void setLargestResourceMime(java.lang.String largestResourceMime)

unsetLargestResourceMime

public void unsetLargestResourceMime()

isSetLargestResourceMime

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


setLargestResourceMimeIsSet

public void setLargestResourceMimeIsSet(boolean value)

getLargestResourceSize

public int getLargestResourceSize()

setLargestResourceSize

public void setLargestResourceSize(int largestResourceSize)

unsetLargestResourceSize

public void unsetLargestResourceSize()

isSetLargestResourceSize

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


setLargestResourceSizeIsSet

public void setLargestResourceSizeIsSet(boolean value)

equals

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

equals

public boolean equals(NoteMetadata that)

hashCode

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

compareTo

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

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<NoteMetadata>
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<NoteMetadata>
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