com.evernote.edam.notestore
Class AdImpressions

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

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

Information for tracking the display of a particular ad by a client.

adId
The identifier for this ad, from a previous Ad.id given to the client
impressionCount
The number of times this ad was displayed since the last successful ad retrieval. The client should only report times the ad was selected when the client was visible.
impressionTime
The number of seconds that the client displayed the advertisement since the last successful ad retrieval. This corresponds to the seconds that the client application was visible.

See Also:
Serialized Form

Nested Class Summary
static class AdImpressions._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
static java.util.Map<AdImpressions._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 
Constructor Summary
AdImpressions()
           
AdImpressions(AdImpressions other)
          Performs a deep copy on other.
AdImpressions(int adId, int impressionCount, int impressionTime)
           
 
Method Summary
 AdImpressions clone()
          Deprecated. 
 int compareTo(AdImpressions other)
           
 AdImpressions deepCopy()
           
 boolean equals(AdImpressions that)
           
 boolean equals(java.lang.Object that)
           
 int getAdId()
           
 java.lang.Object getFieldValue(AdImpressions._Fields field)
           
 java.lang.Object getFieldValue(int fieldId)
           
 int getImpressionCount()
           
 int getImpressionTime()
           
 int hashCode()
           
 boolean isSet(AdImpressions._Fields field)
          Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
 boolean isSet(int fieldID)
           
 boolean isSetAdId()
          Returns true if field adId is set (has been asigned a value) and false otherwise
 boolean isSetImpressionCount()
          Returns true if field impressionCount is set (has been asigned a value) and false otherwise
 boolean isSetImpressionTime()
          Returns true if field impressionTime is set (has been asigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setAdId(int adId)
           
 void setAdIdIsSet(boolean value)
           
 void setFieldValue(AdImpressions._Fields field, java.lang.Object value)
           
 void setFieldValue(int fieldID, java.lang.Object value)
           
 void setImpressionCount(int impressionCount)
           
 void setImpressionCountIsSet(boolean value)
           
 void setImpressionTime(int impressionTime)
           
 void setImpressionTimeIsSet(boolean value)
           
 java.lang.String toString()
           
 void unsetAdId()
           
 void unsetImpressionCount()
           
 void unsetImpressionTime()
           
 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<AdImpressions._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

AdImpressions

public AdImpressions()

AdImpressions

public AdImpressions(int adId,
                     int impressionCount,
                     int impressionTime)

AdImpressions

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

Method Detail

deepCopy

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

clone

@Deprecated
public AdImpressions clone()
Deprecated. 

Overrides:
clone in class java.lang.Object

getAdId

public int getAdId()

setAdId

public void setAdId(int adId)

unsetAdId

public void unsetAdId()

isSetAdId

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


setAdIdIsSet

public void setAdIdIsSet(boolean value)

getImpressionCount

public int getImpressionCount()

setImpressionCount

public void setImpressionCount(int impressionCount)

unsetImpressionCount

public void unsetImpressionCount()

isSetImpressionCount

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


setImpressionCountIsSet

public void setImpressionCountIsSet(boolean value)

getImpressionTime

public int getImpressionTime()

setImpressionTime

public void setImpressionTime(int impressionTime)

unsetImpressionTime

public void unsetImpressionTime()

isSetImpressionTime

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


setImpressionTimeIsSet

public void setImpressionTimeIsSet(boolean value)

setFieldValue

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

setFieldValue

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

getFieldValue

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

getFieldValue

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

isSet

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

isSet

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

equals

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

equals

public boolean equals(AdImpressions that)

hashCode

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

compareTo

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

read

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