com.evernote.edam.type
Class ResourceAttributes

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

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

Structure holding the optional attributes of a Resource

sourceURL
the original location where the resource was hosted
Length: EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX
timestamp
the date and time that is associated with this resource (e.g. the time embedded in an image from a digital camera with a clock)
latitude
the latitude where the resource was captured
longitude
the longitude where the resource was captured
altitude
the altitude where the resource was captured
cameraMake
information about an image's camera, e.g. as embedded in the image's EXIF data
Length: EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX
cameraModel
information about an image's camera, e.g. as embedded in the image's EXIF data
Length: EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX
clientWillIndex
if true, then the original client that submitted the resource plans to submit the recognition index for this resource at a later time.
recoType
DEPRECATED - this field is no longer set by the service, so should be ignored.
fileName
if the resource came from a source that provided an explicit file name, the original name will be stored here. Many resources come from unnamed sources, so this will not always be set.
attachment
this will be true if the resource is a Premium file attachment. This will be available within the search grammar so that you can identify notes that contain attachments.

See Also:
Serialized Form

Nested Class Summary
static class ResourceAttributes._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
static java.util.Map<ResourceAttributes._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 
Constructor Summary
ResourceAttributes()
           
ResourceAttributes(ResourceAttributes other)
          Performs a deep copy on other.
 
Method Summary
 ResourceAttributes clone()
          Deprecated. 
 int compareTo(ResourceAttributes other)
           
 ResourceAttributes deepCopy()
           
 boolean equals(java.lang.Object that)
           
 boolean equals(ResourceAttributes that)
           
 double getAltitude()
           
 java.lang.String getCameraMake()
           
 java.lang.String getCameraModel()
           
 java.lang.Object getFieldValue(int fieldId)
           
 java.lang.Object getFieldValue(ResourceAttributes._Fields field)
           
 java.lang.String getFileName()
           
 double getLatitude()
           
 double getLongitude()
           
 java.lang.String getRecoType()
           
 java.lang.String getSourceURL()
           
 long getTimestamp()
           
 int hashCode()
           
 boolean isAttachment()
           
 boolean isClientWillIndex()
           
 boolean isSet(int fieldID)
           
 boolean isSet(ResourceAttributes._Fields field)
          Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
 boolean isSetAltitude()
          Returns true if field altitude is set (has been asigned a value) and false otherwise
 boolean isSetAttachment()
          Returns true if field attachment is set (has been asigned a value) and false otherwise
 boolean isSetCameraMake()
          Returns true if field cameraMake is set (has been asigned a value) and false otherwise
 boolean isSetCameraModel()
          Returns true if field cameraModel is set (has been asigned a value) and false otherwise
 boolean isSetClientWillIndex()
          Returns true if field clientWillIndex is set (has been asigned a value) and false otherwise
 boolean isSetFileName()
          Returns true if field fileName is set (has been asigned a value) and false otherwise
 boolean isSetLatitude()
          Returns true if field latitude is set (has been asigned a value) and false otherwise
 boolean isSetLongitude()
          Returns true if field longitude is set (has been asigned a value) and false otherwise
 boolean isSetRecoType()
          Returns true if field recoType is set (has been asigned a value) and false otherwise
 boolean isSetSourceURL()
          Returns true if field sourceURL is set (has been asigned a value) and false otherwise
 boolean isSetTimestamp()
          Returns true if field timestamp is set (has been asigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setAltitude(double altitude)
           
 void setAltitudeIsSet(boolean value)
           
 void setAttachment(boolean attachment)
           
 void setAttachmentIsSet(boolean value)
           
 void setCameraMake(java.lang.String cameraMake)
           
 void setCameraMakeIsSet(boolean value)
           
 void setCameraModel(java.lang.String cameraModel)
           
 void setCameraModelIsSet(boolean value)
           
 void setClientWillIndex(boolean clientWillIndex)
           
 void setClientWillIndexIsSet(boolean value)
           
 void setFieldValue(int fieldID, java.lang.Object value)
           
 void setFieldValue(ResourceAttributes._Fields field, java.lang.Object value)
           
 void setFileName(java.lang.String fileName)
           
 void setFileNameIsSet(boolean value)
           
 void setLatitude(double latitude)
           
 void setLatitudeIsSet(boolean value)
           
 void setLongitude(double longitude)
           
 void setLongitudeIsSet(boolean value)
           
 void setRecoType(java.lang.String recoType)
           
 void setRecoTypeIsSet(boolean value)
           
 void setSourceURL(java.lang.String sourceURL)
           
 void setSourceURLIsSet(boolean value)
           
 void setTimestamp(long timestamp)
           
 void setTimestampIsSet(boolean value)
           
 java.lang.String toString()
           
 void unsetAltitude()
           
 void unsetAttachment()
           
 void unsetCameraMake()
           
 void unsetCameraModel()
           
 void unsetClientWillIndex()
           
 void unsetFileName()
           
 void unsetLatitude()
           
 void unsetLongitude()
           
 void unsetRecoType()
           
 void unsetSourceURL()
           
 void unsetTimestamp()
           
 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<ResourceAttributes._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

ResourceAttributes

public ResourceAttributes()

ResourceAttributes

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

Method Detail

deepCopy

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

clone

@Deprecated
public ResourceAttributes clone()
Deprecated. 

Overrides:
clone in class java.lang.Object

getSourceURL

public java.lang.String getSourceURL()

setSourceURL

public void setSourceURL(java.lang.String sourceURL)

unsetSourceURL

public void unsetSourceURL()

isSetSourceURL

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


setSourceURLIsSet

public void setSourceURLIsSet(boolean value)

getTimestamp

public long getTimestamp()

setTimestamp

public void setTimestamp(long timestamp)

unsetTimestamp

public void unsetTimestamp()

isSetTimestamp

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


setTimestampIsSet

public void setTimestampIsSet(boolean value)

getLatitude

public double getLatitude()

setLatitude

public void setLatitude(double latitude)

unsetLatitude

public void unsetLatitude()

isSetLatitude

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


setLatitudeIsSet

public void setLatitudeIsSet(boolean value)

getLongitude

public double getLongitude()

setLongitude

public void setLongitude(double longitude)

unsetLongitude

public void unsetLongitude()

isSetLongitude

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


setLongitudeIsSet

public void setLongitudeIsSet(boolean value)

getAltitude

public double getAltitude()

setAltitude

public void setAltitude(double altitude)

unsetAltitude

public void unsetAltitude()

isSetAltitude

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


setAltitudeIsSet

public void setAltitudeIsSet(boolean value)

getCameraMake

public java.lang.String getCameraMake()

setCameraMake

public void setCameraMake(java.lang.String cameraMake)

unsetCameraMake

public void unsetCameraMake()

isSetCameraMake

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


setCameraMakeIsSet

public void setCameraMakeIsSet(boolean value)

getCameraModel

public java.lang.String getCameraModel()

setCameraModel

public void setCameraModel(java.lang.String cameraModel)

unsetCameraModel

public void unsetCameraModel()

isSetCameraModel

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


setCameraModelIsSet

public void setCameraModelIsSet(boolean value)

isClientWillIndex

public boolean isClientWillIndex()

setClientWillIndex

public void setClientWillIndex(boolean clientWillIndex)

unsetClientWillIndex

public void unsetClientWillIndex()

isSetClientWillIndex

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


setClientWillIndexIsSet

public void setClientWillIndexIsSet(boolean value)

getRecoType

public java.lang.String getRecoType()

setRecoType

public void setRecoType(java.lang.String recoType)

unsetRecoType

public void unsetRecoType()

isSetRecoType

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


setRecoTypeIsSet

public void setRecoTypeIsSet(boolean value)

getFileName

public java.lang.String getFileName()

setFileName

public void setFileName(java.lang.String fileName)

unsetFileName

public void unsetFileName()

isSetFileName

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


setFileNameIsSet

public void setFileNameIsSet(boolean value)

isAttachment

public boolean isAttachment()

setAttachment

public void setAttachment(boolean attachment)

unsetAttachment

public void unsetAttachment()

isSetAttachment

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


setAttachmentIsSet

public void setAttachmentIsSet(boolean value)

setFieldValue

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

setFieldValue

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

getFieldValue

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

getFieldValue

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

isSet

public boolean isSet(ResourceAttributes._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<ResourceAttributes._Fields>

isSet

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

equals

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

equals

public boolean equals(ResourceAttributes that)

hashCode

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

compareTo

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

read

public void read(org.apache.thrift.protocol.TProtocol iprot)
          throws org.apache.thrift.TException
Specified by:
read in interface org.apache.thrift.TBase<ResourceAttributes._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<ResourceAttributes._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