com.evernote.edam.type
Class SavedSearch

java.lang.Object
  extended by com.evernote.edam.type.SavedSearch
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<SavedSearch>, org.apache.thrift.TBase<SavedSearch._Fields>

public class SavedSearch
extends java.lang.Object
implements org.apache.thrift.TBase<SavedSearch._Fields>, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<SavedSearch>

A named search associated with the account that can be quickly re-used.

guid
The unique identifier of this search. Will be set by the service, so may be omitted by the client when creating.
Length: EDAM_GUID_LEN_MIN - EDAM_GUID_LEN_MAX
Regex: EDAM_GUID_REGEX
name
The name of the saved search to display in the GUI. The account may only contain one search with a given name (case-insensitive compare). Can't begin or end with a space.
Length: EDAM_SAVED_SEARCH_NAME_LEN_MIN - EDAM_SAVED_SEARCH_NAME_LEN_MAX
Regex: EDAM_SAVED_SEARCH_NAME_REGEX
query
A string expressing the search to be performed.
Length: EDAM_SAVED_SEARCH_QUERY_LEN_MIN - EDAM_SAVED_SEARCH_QUERY_LEN_MAX
format
The format of the query string, to determine how to parse and process it.
updateSequenceNum
A number identifying the last transaction to modify the state of this object. The USN values are sequential within an account, and can be used to compare the order of modifications within the service.

See Also:
Serialized Form

Nested Class Summary
static class SavedSearch._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
static java.util.Map<SavedSearch._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 
Constructor Summary
SavedSearch()
           
SavedSearch(SavedSearch other)
          Performs a deep copy on other.
 
Method Summary
 SavedSearch clone()
          Deprecated. 
 int compareTo(SavedSearch other)
           
 SavedSearch deepCopy()
           
 boolean equals(java.lang.Object that)
           
 boolean equals(SavedSearch that)
           
 java.lang.Object getFieldValue(int fieldId)
           
 java.lang.Object getFieldValue(SavedSearch._Fields field)
           
 QueryFormat getFormat()
           
 java.lang.String getGuid()
           
 java.lang.String getName()
           
 java.lang.String getQuery()
           
 int getUpdateSequenceNum()
           
 int hashCode()
           
 boolean isSet(int fieldID)
           
 boolean isSet(SavedSearch._Fields field)
          Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
 boolean isSetFormat()
          Returns true if field format 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 isSetName()
          Returns true if field name is set (has been asigned a value) and false otherwise
 boolean isSetQuery()
          Returns true if field query 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(org.apache.thrift.protocol.TProtocol iprot)
           
 void setFieldValue(int fieldID, java.lang.Object value)
           
 void setFieldValue(SavedSearch._Fields field, java.lang.Object value)
           
 void setFormat(QueryFormat format)
           
 void setFormatIsSet(boolean value)
           
 void setGuid(java.lang.String guid)
           
 void setGuidIsSet(boolean value)
           
 void setName(java.lang.String name)
           
 void setNameIsSet(boolean value)
           
 void setQuery(java.lang.String query)
           
 void setQueryIsSet(boolean value)
           
 void setUpdateSequenceNum(int updateSequenceNum)
           
 void setUpdateSequenceNumIsSet(boolean value)
           
 java.lang.String toString()
           
 void unsetFormat()
           
 void unsetGuid()
           
 void unsetName()
           
 void unsetQuery()
           
 void unsetUpdateSequenceNum()
           
 void validate()
           
 void write(org.apache.thrift.protocol.TProtocol oprot)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

metaDataMap

public static final java.util.Map<SavedSearch._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

SavedSearch

public SavedSearch()

SavedSearch

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

Method Detail

deepCopy

public SavedSearch deepCopy()
Specified by:
deepCopy in interface org.apache.thrift.TBase<SavedSearch._Fields>

clone

@Deprecated
public SavedSearch clone()
Deprecated. 

Overrides:
clone in class java.lang.Object

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)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

unsetName

public void unsetName()

isSetName

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


setNameIsSet

public void setNameIsSet(boolean value)

getQuery

public java.lang.String getQuery()

setQuery

public void setQuery(java.lang.String query)

unsetQuery

public void unsetQuery()

isSetQuery

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


setQueryIsSet

public void setQueryIsSet(boolean value)

getFormat

public QueryFormat getFormat()
See Also:
QueryFormat

setFormat

public void setFormat(QueryFormat format)
See Also:
QueryFormat

unsetFormat

public void unsetFormat()

isSetFormat

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


setFormatIsSet

public void setFormatIsSet(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)

setFieldValue

public void setFieldValue(SavedSearch._Fields field,
                          java.lang.Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<SavedSearch._Fields>

setFieldValue

public void setFieldValue(int fieldID,
                          java.lang.Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<SavedSearch._Fields>

getFieldValue

public java.lang.Object getFieldValue(SavedSearch._Fields field)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<SavedSearch._Fields>

getFieldValue

public java.lang.Object getFieldValue(int fieldId)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<SavedSearch._Fields>

isSet

public boolean isSet(SavedSearch._Fields field)
Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise

Specified by:
isSet in interface org.apache.thrift.TBase<SavedSearch._Fields>

isSet

public boolean isSet(int fieldID)
Specified by:
isSet in interface org.apache.thrift.TBase<SavedSearch._Fields>

equals

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

equals

public boolean equals(SavedSearch that)

hashCode

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

compareTo

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

read

public void read(org.apache.thrift.protocol.TProtocol iprot)
          throws org.apache.thrift.TException
Specified by:
read in interface org.apache.thrift.TBase<SavedSearch._Fields>
Throws:
org.apache.thrift.TException

write

public void write(org.apache.thrift.protocol.TProtocol oprot)
           throws org.apache.thrift.TException
Specified by:
write in interface org.apache.thrift.TBase<SavedSearch._Fields>
Throws:
org.apache.thrift.TException

toString

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

validate

public void validate()
              throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException