| 1847 |
vikas |
1 |
/**
|
| 3430 |
rajveer |
2 |
* Autogenerated by Thrift Compiler (0.7.0)
|
| 1847 |
vikas |
3 |
*
|
|
|
4 |
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
*/
|
|
|
6 |
package in.shop2020.model.v1.user;
|
|
|
7 |
|
|
|
8 |
import java.util.List;
|
|
|
9 |
import java.util.ArrayList;
|
|
|
10 |
import java.util.Map;
|
|
|
11 |
import java.util.HashMap;
|
|
|
12 |
import java.util.EnumMap;
|
|
|
13 |
import java.util.Set;
|
|
|
14 |
import java.util.HashSet;
|
|
|
15 |
import java.util.EnumSet;
|
|
|
16 |
import java.util.Collections;
|
|
|
17 |
import java.util.BitSet;
|
| 3430 |
rajveer |
18 |
import java.nio.ByteBuffer;
|
| 1847 |
vikas |
19 |
import java.util.Arrays;
|
|
|
20 |
import org.slf4j.Logger;
|
|
|
21 |
import org.slf4j.LoggerFactory;
|
|
|
22 |
|
| 3430 |
rajveer |
23 |
public class TrackLog implements org.apache.thrift.TBase<TrackLog, TrackLog._Fields>, java.io.Serializable, Cloneable {
|
|
|
24 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TrackLog");
|
| 1847 |
vikas |
25 |
|
| 3430 |
rajveer |
26 |
private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
27 |
private static final org.apache.thrift.protocol.TField ADDED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("addedOn", org.apache.thrift.protocol.TType.I64, (short)2);
|
|
|
28 |
private static final org.apache.thrift.protocol.TField AFFILIATE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("affiliateId", org.apache.thrift.protocol.TType.I64, (short)3);
|
|
|
29 |
private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)4);
|
|
|
30 |
private static final org.apache.thrift.protocol.TField EVENT_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("eventType", org.apache.thrift.protocol.TType.I32, (short)5);
|
|
|
31 |
private static final org.apache.thrift.protocol.TField URL_FIELD_DESC = new org.apache.thrift.protocol.TField("url", org.apache.thrift.protocol.TType.STRING, (short)6);
|
|
|
32 |
private static final org.apache.thrift.protocol.TField DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("data", org.apache.thrift.protocol.TType.STRING, (short)7);
|
| 1847 |
vikas |
33 |
|
| 3430 |
rajveer |
34 |
private long id; // required
|
|
|
35 |
private long addedOn; // required
|
|
|
36 |
private long affiliateId; // required
|
|
|
37 |
private long userId; // required
|
|
|
38 |
private TrackLogType eventType; // required
|
|
|
39 |
private String url; // required
|
|
|
40 |
private String data; // required
|
| 1847 |
vikas |
41 |
|
|
|
42 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
43 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 1847 |
vikas |
44 |
ID((short)1, "id"),
|
| 1860 |
vikas |
45 |
ADDED_ON((short)2, "addedOn"),
|
| 1998 |
vikas |
46 |
AFFILIATE_ID((short)3, "affiliateId"),
|
| 1860 |
vikas |
47 |
USER_ID((short)4, "userId"),
|
| 3378 |
vikas |
48 |
/**
|
|
|
49 |
*
|
|
|
50 |
* @see TrackLogType
|
|
|
51 |
*/
|
|
|
52 |
EVENT_TYPE((short)5, "eventType"),
|
| 1860 |
vikas |
53 |
URL((short)6, "url"),
|
|
|
54 |
DATA((short)7, "data");
|
| 1847 |
vikas |
55 |
|
|
|
56 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
57 |
|
|
|
58 |
static {
|
|
|
59 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
60 |
byName.put(field.getFieldName(), field);
|
|
|
61 |
}
|
|
|
62 |
}
|
|
|
63 |
|
|
|
64 |
/**
|
|
|
65 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
66 |
*/
|
|
|
67 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
68 |
switch(fieldId) {
|
|
|
69 |
case 1: // ID
|
|
|
70 |
return ID;
|
|
|
71 |
case 2: // ADDED_ON
|
|
|
72 |
return ADDED_ON;
|
|
|
73 |
case 3: // AFFILIATE_ID
|
|
|
74 |
return AFFILIATE_ID;
|
|
|
75 |
case 4: // USER_ID
|
|
|
76 |
return USER_ID;
|
|
|
77 |
case 5: // EVENT_TYPE
|
|
|
78 |
return EVENT_TYPE;
|
|
|
79 |
case 6: // URL
|
|
|
80 |
return URL;
|
|
|
81 |
case 7: // DATA
|
|
|
82 |
return DATA;
|
|
|
83 |
default:
|
|
|
84 |
return null;
|
|
|
85 |
}
|
| 1847 |
vikas |
86 |
}
|
|
|
87 |
|
|
|
88 |
/**
|
|
|
89 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
90 |
* if it is not found.
|
|
|
91 |
*/
|
|
|
92 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
93 |
_Fields fields = findByThriftId(fieldId);
|
|
|
94 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
95 |
return fields;
|
|
|
96 |
}
|
|
|
97 |
|
|
|
98 |
/**
|
|
|
99 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
100 |
*/
|
|
|
101 |
public static _Fields findByName(String name) {
|
|
|
102 |
return byName.get(name);
|
|
|
103 |
}
|
|
|
104 |
|
|
|
105 |
private final short _thriftId;
|
|
|
106 |
private final String _fieldName;
|
|
|
107 |
|
|
|
108 |
_Fields(short thriftId, String fieldName) {
|
|
|
109 |
_thriftId = thriftId;
|
|
|
110 |
_fieldName = fieldName;
|
|
|
111 |
}
|
|
|
112 |
|
|
|
113 |
public short getThriftFieldId() {
|
|
|
114 |
return _thriftId;
|
|
|
115 |
}
|
|
|
116 |
|
|
|
117 |
public String getFieldName() {
|
|
|
118 |
return _fieldName;
|
|
|
119 |
}
|
|
|
120 |
}
|
|
|
121 |
|
|
|
122 |
// isset id assignments
|
|
|
123 |
private static final int __ID_ISSET_ID = 0;
|
| 1860 |
vikas |
124 |
private static final int __ADDEDON_ISSET_ID = 1;
|
| 1998 |
vikas |
125 |
private static final int __AFFILIATEID_ISSET_ID = 2;
|
| 1860 |
vikas |
126 |
private static final int __USERID_ISSET_ID = 3;
|
|
|
127 |
private BitSet __isset_bit_vector = new BitSet(4);
|
| 1847 |
vikas |
128 |
|
| 3430 |
rajveer |
129 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 1847 |
vikas |
130 |
static {
|
| 3430 |
rajveer |
131 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
132 |
tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
133 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
134 |
tmpMap.put(_Fields.ADDED_ON, new org.apache.thrift.meta_data.FieldMetaData("addedOn", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
135 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
136 |
tmpMap.put(_Fields.AFFILIATE_ID, new org.apache.thrift.meta_data.FieldMetaData("affiliateId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
137 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
138 |
tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
139 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
140 |
tmpMap.put(_Fields.EVENT_TYPE, new org.apache.thrift.meta_data.FieldMetaData("eventType", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
141 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TrackLogType.class)));
|
|
|
142 |
tmpMap.put(_Fields.URL, new org.apache.thrift.meta_data.FieldMetaData("url", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
143 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
144 |
tmpMap.put(_Fields.DATA, new org.apache.thrift.meta_data.FieldMetaData("data", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
145 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
146 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
147 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TrackLog.class, metaDataMap);
|
| 1847 |
vikas |
148 |
}
|
|
|
149 |
|
|
|
150 |
public TrackLog() {
|
|
|
151 |
}
|
|
|
152 |
|
|
|
153 |
public TrackLog(
|
|
|
154 |
long id,
|
| 1860 |
vikas |
155 |
long addedOn,
|
| 1998 |
vikas |
156 |
long affiliateId,
|
| 1847 |
vikas |
157 |
long userId,
|
| 3378 |
vikas |
158 |
TrackLogType eventType,
|
| 1847 |
vikas |
159 |
String url,
|
|
|
160 |
String data)
|
|
|
161 |
{
|
|
|
162 |
this();
|
|
|
163 |
this.id = id;
|
|
|
164 |
setIdIsSet(true);
|
| 1860 |
vikas |
165 |
this.addedOn = addedOn;
|
|
|
166 |
setAddedOnIsSet(true);
|
| 1998 |
vikas |
167 |
this.affiliateId = affiliateId;
|
|
|
168 |
setAffiliateIdIsSet(true);
|
| 1847 |
vikas |
169 |
this.userId = userId;
|
|
|
170 |
setUserIdIsSet(true);
|
| 3378 |
vikas |
171 |
this.eventType = eventType;
|
| 1847 |
vikas |
172 |
this.url = url;
|
|
|
173 |
this.data = data;
|
|
|
174 |
}
|
|
|
175 |
|
|
|
176 |
/**
|
|
|
177 |
* Performs a deep copy on <i>other</i>.
|
|
|
178 |
*/
|
|
|
179 |
public TrackLog(TrackLog other) {
|
|
|
180 |
__isset_bit_vector.clear();
|
|
|
181 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
182 |
this.id = other.id;
|
| 1860 |
vikas |
183 |
this.addedOn = other.addedOn;
|
| 1998 |
vikas |
184 |
this.affiliateId = other.affiliateId;
|
| 1847 |
vikas |
185 |
this.userId = other.userId;
|
| 3378 |
vikas |
186 |
if (other.isSetEventType()) {
|
|
|
187 |
this.eventType = other.eventType;
|
| 1847 |
vikas |
188 |
}
|
|
|
189 |
if (other.isSetUrl()) {
|
|
|
190 |
this.url = other.url;
|
|
|
191 |
}
|
|
|
192 |
if (other.isSetData()) {
|
|
|
193 |
this.data = other.data;
|
|
|
194 |
}
|
|
|
195 |
}
|
|
|
196 |
|
|
|
197 |
public TrackLog deepCopy() {
|
|
|
198 |
return new TrackLog(this);
|
|
|
199 |
}
|
|
|
200 |
|
| 3430 |
rajveer |
201 |
@Override
|
|
|
202 |
public void clear() {
|
|
|
203 |
setIdIsSet(false);
|
|
|
204 |
this.id = 0;
|
|
|
205 |
setAddedOnIsSet(false);
|
|
|
206 |
this.addedOn = 0;
|
|
|
207 |
setAffiliateIdIsSet(false);
|
|
|
208 |
this.affiliateId = 0;
|
|
|
209 |
setUserIdIsSet(false);
|
|
|
210 |
this.userId = 0;
|
|
|
211 |
this.eventType = null;
|
|
|
212 |
this.url = null;
|
|
|
213 |
this.data = null;
|
| 1847 |
vikas |
214 |
}
|
|
|
215 |
|
|
|
216 |
public long getId() {
|
|
|
217 |
return this.id;
|
|
|
218 |
}
|
|
|
219 |
|
| 3430 |
rajveer |
220 |
public void setId(long id) {
|
| 1847 |
vikas |
221 |
this.id = id;
|
|
|
222 |
setIdIsSet(true);
|
|
|
223 |
}
|
|
|
224 |
|
|
|
225 |
public void unsetId() {
|
|
|
226 |
__isset_bit_vector.clear(__ID_ISSET_ID);
|
|
|
227 |
}
|
|
|
228 |
|
| 3430 |
rajveer |
229 |
/** Returns true if field id is set (has been assigned a value) and false otherwise */
|
| 1847 |
vikas |
230 |
public boolean isSetId() {
|
|
|
231 |
return __isset_bit_vector.get(__ID_ISSET_ID);
|
|
|
232 |
}
|
|
|
233 |
|
|
|
234 |
public void setIdIsSet(boolean value) {
|
|
|
235 |
__isset_bit_vector.set(__ID_ISSET_ID, value);
|
|
|
236 |
}
|
|
|
237 |
|
| 1860 |
vikas |
238 |
public long getAddedOn() {
|
|
|
239 |
return this.addedOn;
|
|
|
240 |
}
|
|
|
241 |
|
| 3430 |
rajveer |
242 |
public void setAddedOn(long addedOn) {
|
| 1860 |
vikas |
243 |
this.addedOn = addedOn;
|
|
|
244 |
setAddedOnIsSet(true);
|
|
|
245 |
}
|
|
|
246 |
|
|
|
247 |
public void unsetAddedOn() {
|
|
|
248 |
__isset_bit_vector.clear(__ADDEDON_ISSET_ID);
|
|
|
249 |
}
|
|
|
250 |
|
| 3430 |
rajveer |
251 |
/** Returns true if field addedOn is set (has been assigned a value) and false otherwise */
|
| 1860 |
vikas |
252 |
public boolean isSetAddedOn() {
|
|
|
253 |
return __isset_bit_vector.get(__ADDEDON_ISSET_ID);
|
|
|
254 |
}
|
|
|
255 |
|
|
|
256 |
public void setAddedOnIsSet(boolean value) {
|
|
|
257 |
__isset_bit_vector.set(__ADDEDON_ISSET_ID, value);
|
|
|
258 |
}
|
|
|
259 |
|
| 1998 |
vikas |
260 |
public long getAffiliateId() {
|
|
|
261 |
return this.affiliateId;
|
| 1847 |
vikas |
262 |
}
|
|
|
263 |
|
| 3430 |
rajveer |
264 |
public void setAffiliateId(long affiliateId) {
|
| 1998 |
vikas |
265 |
this.affiliateId = affiliateId;
|
|
|
266 |
setAffiliateIdIsSet(true);
|
| 1847 |
vikas |
267 |
}
|
|
|
268 |
|
| 1998 |
vikas |
269 |
public void unsetAffiliateId() {
|
|
|
270 |
__isset_bit_vector.clear(__AFFILIATEID_ISSET_ID);
|
| 1847 |
vikas |
271 |
}
|
|
|
272 |
|
| 3430 |
rajveer |
273 |
/** Returns true if field affiliateId is set (has been assigned a value) and false otherwise */
|
| 1998 |
vikas |
274 |
public boolean isSetAffiliateId() {
|
|
|
275 |
return __isset_bit_vector.get(__AFFILIATEID_ISSET_ID);
|
| 1847 |
vikas |
276 |
}
|
|
|
277 |
|
| 1998 |
vikas |
278 |
public void setAffiliateIdIsSet(boolean value) {
|
|
|
279 |
__isset_bit_vector.set(__AFFILIATEID_ISSET_ID, value);
|
| 1847 |
vikas |
280 |
}
|
|
|
281 |
|
|
|
282 |
public long getUserId() {
|
|
|
283 |
return this.userId;
|
|
|
284 |
}
|
|
|
285 |
|
| 3430 |
rajveer |
286 |
public void setUserId(long userId) {
|
| 1847 |
vikas |
287 |
this.userId = userId;
|
|
|
288 |
setUserIdIsSet(true);
|
|
|
289 |
}
|
|
|
290 |
|
|
|
291 |
public void unsetUserId() {
|
|
|
292 |
__isset_bit_vector.clear(__USERID_ISSET_ID);
|
|
|
293 |
}
|
|
|
294 |
|
| 3430 |
rajveer |
295 |
/** Returns true if field userId is set (has been assigned a value) and false otherwise */
|
| 1847 |
vikas |
296 |
public boolean isSetUserId() {
|
|
|
297 |
return __isset_bit_vector.get(__USERID_ISSET_ID);
|
|
|
298 |
}
|
|
|
299 |
|
|
|
300 |
public void setUserIdIsSet(boolean value) {
|
|
|
301 |
__isset_bit_vector.set(__USERID_ISSET_ID, value);
|
|
|
302 |
}
|
|
|
303 |
|
| 3378 |
vikas |
304 |
/**
|
|
|
305 |
*
|
|
|
306 |
* @see TrackLogType
|
|
|
307 |
*/
|
|
|
308 |
public TrackLogType getEventType() {
|
|
|
309 |
return this.eventType;
|
| 1847 |
vikas |
310 |
}
|
|
|
311 |
|
| 3378 |
vikas |
312 |
/**
|
|
|
313 |
*
|
|
|
314 |
* @see TrackLogType
|
|
|
315 |
*/
|
| 3430 |
rajveer |
316 |
public void setEventType(TrackLogType eventType) {
|
| 3378 |
vikas |
317 |
this.eventType = eventType;
|
| 1847 |
vikas |
318 |
}
|
|
|
319 |
|
| 3378 |
vikas |
320 |
public void unsetEventType() {
|
|
|
321 |
this.eventType = null;
|
| 1847 |
vikas |
322 |
}
|
|
|
323 |
|
| 3430 |
rajveer |
324 |
/** Returns true if field eventType is set (has been assigned a value) and false otherwise */
|
| 3378 |
vikas |
325 |
public boolean isSetEventType() {
|
|
|
326 |
return this.eventType != null;
|
| 1847 |
vikas |
327 |
}
|
|
|
328 |
|
| 3378 |
vikas |
329 |
public void setEventTypeIsSet(boolean value) {
|
| 1847 |
vikas |
330 |
if (!value) {
|
| 3378 |
vikas |
331 |
this.eventType = null;
|
| 1847 |
vikas |
332 |
}
|
|
|
333 |
}
|
|
|
334 |
|
|
|
335 |
public String getUrl() {
|
|
|
336 |
return this.url;
|
|
|
337 |
}
|
|
|
338 |
|
| 3430 |
rajveer |
339 |
public void setUrl(String url) {
|
| 1847 |
vikas |
340 |
this.url = url;
|
|
|
341 |
}
|
|
|
342 |
|
|
|
343 |
public void unsetUrl() {
|
|
|
344 |
this.url = null;
|
|
|
345 |
}
|
|
|
346 |
|
| 3430 |
rajveer |
347 |
/** Returns true if field url is set (has been assigned a value) and false otherwise */
|
| 1847 |
vikas |
348 |
public boolean isSetUrl() {
|
|
|
349 |
return this.url != null;
|
|
|
350 |
}
|
|
|
351 |
|
|
|
352 |
public void setUrlIsSet(boolean value) {
|
|
|
353 |
if (!value) {
|
|
|
354 |
this.url = null;
|
|
|
355 |
}
|
|
|
356 |
}
|
|
|
357 |
|
|
|
358 |
public String getData() {
|
|
|
359 |
return this.data;
|
|
|
360 |
}
|
|
|
361 |
|
| 3430 |
rajveer |
362 |
public void setData(String data) {
|
| 1847 |
vikas |
363 |
this.data = data;
|
|
|
364 |
}
|
|
|
365 |
|
|
|
366 |
public void unsetData() {
|
|
|
367 |
this.data = null;
|
|
|
368 |
}
|
|
|
369 |
|
| 3430 |
rajveer |
370 |
/** Returns true if field data is set (has been assigned a value) and false otherwise */
|
| 1847 |
vikas |
371 |
public boolean isSetData() {
|
|
|
372 |
return this.data != null;
|
|
|
373 |
}
|
|
|
374 |
|
|
|
375 |
public void setDataIsSet(boolean value) {
|
|
|
376 |
if (!value) {
|
|
|
377 |
this.data = null;
|
|
|
378 |
}
|
|
|
379 |
}
|
|
|
380 |
|
|
|
381 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
382 |
switch (field) {
|
|
|
383 |
case ID:
|
|
|
384 |
if (value == null) {
|
|
|
385 |
unsetId();
|
|
|
386 |
} else {
|
|
|
387 |
setId((Long)value);
|
|
|
388 |
}
|
|
|
389 |
break;
|
|
|
390 |
|
| 1860 |
vikas |
391 |
case ADDED_ON:
|
|
|
392 |
if (value == null) {
|
|
|
393 |
unsetAddedOn();
|
|
|
394 |
} else {
|
|
|
395 |
setAddedOn((Long)value);
|
|
|
396 |
}
|
|
|
397 |
break;
|
|
|
398 |
|
| 1998 |
vikas |
399 |
case AFFILIATE_ID:
|
| 1847 |
vikas |
400 |
if (value == null) {
|
| 1998 |
vikas |
401 |
unsetAffiliateId();
|
| 1847 |
vikas |
402 |
} else {
|
| 1998 |
vikas |
403 |
setAffiliateId((Long)value);
|
| 1847 |
vikas |
404 |
}
|
|
|
405 |
break;
|
|
|
406 |
|
|
|
407 |
case USER_ID:
|
|
|
408 |
if (value == null) {
|
|
|
409 |
unsetUserId();
|
|
|
410 |
} else {
|
|
|
411 |
setUserId((Long)value);
|
|
|
412 |
}
|
|
|
413 |
break;
|
|
|
414 |
|
| 3378 |
vikas |
415 |
case EVENT_TYPE:
|
| 1847 |
vikas |
416 |
if (value == null) {
|
| 3378 |
vikas |
417 |
unsetEventType();
|
| 1847 |
vikas |
418 |
} else {
|
| 3378 |
vikas |
419 |
setEventType((TrackLogType)value);
|
| 1847 |
vikas |
420 |
}
|
|
|
421 |
break;
|
|
|
422 |
|
|
|
423 |
case URL:
|
|
|
424 |
if (value == null) {
|
|
|
425 |
unsetUrl();
|
|
|
426 |
} else {
|
|
|
427 |
setUrl((String)value);
|
|
|
428 |
}
|
|
|
429 |
break;
|
|
|
430 |
|
|
|
431 |
case DATA:
|
|
|
432 |
if (value == null) {
|
|
|
433 |
unsetData();
|
|
|
434 |
} else {
|
|
|
435 |
setData((String)value);
|
|
|
436 |
}
|
|
|
437 |
break;
|
|
|
438 |
|
|
|
439 |
}
|
|
|
440 |
}
|
|
|
441 |
|
|
|
442 |
public Object getFieldValue(_Fields field) {
|
|
|
443 |
switch (field) {
|
|
|
444 |
case ID:
|
| 3430 |
rajveer |
445 |
return Long.valueOf(getId());
|
| 1847 |
vikas |
446 |
|
| 1860 |
vikas |
447 |
case ADDED_ON:
|
| 3430 |
rajveer |
448 |
return Long.valueOf(getAddedOn());
|
| 1860 |
vikas |
449 |
|
| 1998 |
vikas |
450 |
case AFFILIATE_ID:
|
| 3430 |
rajveer |
451 |
return Long.valueOf(getAffiliateId());
|
| 1847 |
vikas |
452 |
|
|
|
453 |
case USER_ID:
|
| 3430 |
rajveer |
454 |
return Long.valueOf(getUserId());
|
| 1847 |
vikas |
455 |
|
| 3378 |
vikas |
456 |
case EVENT_TYPE:
|
|
|
457 |
return getEventType();
|
| 1847 |
vikas |
458 |
|
|
|
459 |
case URL:
|
|
|
460 |
return getUrl();
|
|
|
461 |
|
|
|
462 |
case DATA:
|
|
|
463 |
return getData();
|
|
|
464 |
|
|
|
465 |
}
|
|
|
466 |
throw new IllegalStateException();
|
|
|
467 |
}
|
|
|
468 |
|
| 3430 |
rajveer |
469 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
470 |
public boolean isSet(_Fields field) {
|
|
|
471 |
if (field == null) {
|
|
|
472 |
throw new IllegalArgumentException();
|
|
|
473 |
}
|
| 1847 |
vikas |
474 |
|
|
|
475 |
switch (field) {
|
|
|
476 |
case ID:
|
|
|
477 |
return isSetId();
|
| 1860 |
vikas |
478 |
case ADDED_ON:
|
|
|
479 |
return isSetAddedOn();
|
| 1998 |
vikas |
480 |
case AFFILIATE_ID:
|
|
|
481 |
return isSetAffiliateId();
|
| 1847 |
vikas |
482 |
case USER_ID:
|
|
|
483 |
return isSetUserId();
|
| 3378 |
vikas |
484 |
case EVENT_TYPE:
|
|
|
485 |
return isSetEventType();
|
| 1847 |
vikas |
486 |
case URL:
|
|
|
487 |
return isSetUrl();
|
|
|
488 |
case DATA:
|
|
|
489 |
return isSetData();
|
|
|
490 |
}
|
|
|
491 |
throw new IllegalStateException();
|
|
|
492 |
}
|
|
|
493 |
|
|
|
494 |
@Override
|
|
|
495 |
public boolean equals(Object that) {
|
|
|
496 |
if (that == null)
|
|
|
497 |
return false;
|
|
|
498 |
if (that instanceof TrackLog)
|
|
|
499 |
return this.equals((TrackLog)that);
|
|
|
500 |
return false;
|
|
|
501 |
}
|
|
|
502 |
|
|
|
503 |
public boolean equals(TrackLog that) {
|
|
|
504 |
if (that == null)
|
|
|
505 |
return false;
|
|
|
506 |
|
|
|
507 |
boolean this_present_id = true;
|
|
|
508 |
boolean that_present_id = true;
|
|
|
509 |
if (this_present_id || that_present_id) {
|
|
|
510 |
if (!(this_present_id && that_present_id))
|
|
|
511 |
return false;
|
|
|
512 |
if (this.id != that.id)
|
|
|
513 |
return false;
|
|
|
514 |
}
|
|
|
515 |
|
| 1860 |
vikas |
516 |
boolean this_present_addedOn = true;
|
|
|
517 |
boolean that_present_addedOn = true;
|
|
|
518 |
if (this_present_addedOn || that_present_addedOn) {
|
|
|
519 |
if (!(this_present_addedOn && that_present_addedOn))
|
|
|
520 |
return false;
|
|
|
521 |
if (this.addedOn != that.addedOn)
|
|
|
522 |
return false;
|
|
|
523 |
}
|
|
|
524 |
|
| 1998 |
vikas |
525 |
boolean this_present_affiliateId = true;
|
|
|
526 |
boolean that_present_affiliateId = true;
|
|
|
527 |
if (this_present_affiliateId || that_present_affiliateId) {
|
|
|
528 |
if (!(this_present_affiliateId && that_present_affiliateId))
|
| 1847 |
vikas |
529 |
return false;
|
| 1998 |
vikas |
530 |
if (this.affiliateId != that.affiliateId)
|
| 1847 |
vikas |
531 |
return false;
|
|
|
532 |
}
|
|
|
533 |
|
|
|
534 |
boolean this_present_userId = true;
|
|
|
535 |
boolean that_present_userId = true;
|
|
|
536 |
if (this_present_userId || that_present_userId) {
|
|
|
537 |
if (!(this_present_userId && that_present_userId))
|
|
|
538 |
return false;
|
|
|
539 |
if (this.userId != that.userId)
|
|
|
540 |
return false;
|
|
|
541 |
}
|
|
|
542 |
|
| 3378 |
vikas |
543 |
boolean this_present_eventType = true && this.isSetEventType();
|
|
|
544 |
boolean that_present_eventType = true && that.isSetEventType();
|
|
|
545 |
if (this_present_eventType || that_present_eventType) {
|
|
|
546 |
if (!(this_present_eventType && that_present_eventType))
|
| 1847 |
vikas |
547 |
return false;
|
| 3378 |
vikas |
548 |
if (!this.eventType.equals(that.eventType))
|
| 1847 |
vikas |
549 |
return false;
|
|
|
550 |
}
|
|
|
551 |
|
|
|
552 |
boolean this_present_url = true && this.isSetUrl();
|
|
|
553 |
boolean that_present_url = true && that.isSetUrl();
|
|
|
554 |
if (this_present_url || that_present_url) {
|
|
|
555 |
if (!(this_present_url && that_present_url))
|
|
|
556 |
return false;
|
|
|
557 |
if (!this.url.equals(that.url))
|
|
|
558 |
return false;
|
|
|
559 |
}
|
|
|
560 |
|
|
|
561 |
boolean this_present_data = true && this.isSetData();
|
|
|
562 |
boolean that_present_data = true && that.isSetData();
|
|
|
563 |
if (this_present_data || that_present_data) {
|
|
|
564 |
if (!(this_present_data && that_present_data))
|
|
|
565 |
return false;
|
|
|
566 |
if (!this.data.equals(that.data))
|
|
|
567 |
return false;
|
|
|
568 |
}
|
|
|
569 |
|
|
|
570 |
return true;
|
|
|
571 |
}
|
|
|
572 |
|
|
|
573 |
@Override
|
|
|
574 |
public int hashCode() {
|
|
|
575 |
return 0;
|
|
|
576 |
}
|
|
|
577 |
|
|
|
578 |
public int compareTo(TrackLog other) {
|
|
|
579 |
if (!getClass().equals(other.getClass())) {
|
|
|
580 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
581 |
}
|
|
|
582 |
|
|
|
583 |
int lastComparison = 0;
|
|
|
584 |
TrackLog typedOther = (TrackLog)other;
|
|
|
585 |
|
| 3430 |
rajveer |
586 |
lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
|
| 1847 |
vikas |
587 |
if (lastComparison != 0) {
|
|
|
588 |
return lastComparison;
|
|
|
589 |
}
|
| 3430 |
rajveer |
590 |
if (isSetId()) {
|
|
|
591 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
|
|
|
592 |
if (lastComparison != 0) {
|
|
|
593 |
return lastComparison;
|
|
|
594 |
}
|
| 1847 |
vikas |
595 |
}
|
| 3430 |
rajveer |
596 |
lastComparison = Boolean.valueOf(isSetAddedOn()).compareTo(typedOther.isSetAddedOn());
|
| 1860 |
vikas |
597 |
if (lastComparison != 0) {
|
|
|
598 |
return lastComparison;
|
|
|
599 |
}
|
| 3430 |
rajveer |
600 |
if (isSetAddedOn()) {
|
|
|
601 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addedOn, typedOther.addedOn);
|
|
|
602 |
if (lastComparison != 0) {
|
|
|
603 |
return lastComparison;
|
|
|
604 |
}
|
| 1860 |
vikas |
605 |
}
|
| 3430 |
rajveer |
606 |
lastComparison = Boolean.valueOf(isSetAffiliateId()).compareTo(typedOther.isSetAffiliateId());
|
| 1847 |
vikas |
607 |
if (lastComparison != 0) {
|
|
|
608 |
return lastComparison;
|
|
|
609 |
}
|
| 3430 |
rajveer |
610 |
if (isSetAffiliateId()) {
|
|
|
611 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.affiliateId, typedOther.affiliateId);
|
|
|
612 |
if (lastComparison != 0) {
|
|
|
613 |
return lastComparison;
|
|
|
614 |
}
|
| 1847 |
vikas |
615 |
}
|
| 3430 |
rajveer |
616 |
lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
|
| 1847 |
vikas |
617 |
if (lastComparison != 0) {
|
|
|
618 |
return lastComparison;
|
|
|
619 |
}
|
| 3430 |
rajveer |
620 |
if (isSetUserId()) {
|
|
|
621 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
|
|
|
622 |
if (lastComparison != 0) {
|
|
|
623 |
return lastComparison;
|
|
|
624 |
}
|
| 1847 |
vikas |
625 |
}
|
| 3430 |
rajveer |
626 |
lastComparison = Boolean.valueOf(isSetEventType()).compareTo(typedOther.isSetEventType());
|
| 1847 |
vikas |
627 |
if (lastComparison != 0) {
|
|
|
628 |
return lastComparison;
|
|
|
629 |
}
|
| 3430 |
rajveer |
630 |
if (isSetEventType()) {
|
|
|
631 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eventType, typedOther.eventType);
|
|
|
632 |
if (lastComparison != 0) {
|
|
|
633 |
return lastComparison;
|
|
|
634 |
}
|
| 1847 |
vikas |
635 |
}
|
| 3430 |
rajveer |
636 |
lastComparison = Boolean.valueOf(isSetUrl()).compareTo(typedOther.isSetUrl());
|
| 1847 |
vikas |
637 |
if (lastComparison != 0) {
|
|
|
638 |
return lastComparison;
|
|
|
639 |
}
|
| 3430 |
rajveer |
640 |
if (isSetUrl()) {
|
|
|
641 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.url, typedOther.url);
|
|
|
642 |
if (lastComparison != 0) {
|
|
|
643 |
return lastComparison;
|
|
|
644 |
}
|
| 1847 |
vikas |
645 |
}
|
| 3430 |
rajveer |
646 |
lastComparison = Boolean.valueOf(isSetData()).compareTo(typedOther.isSetData());
|
| 1847 |
vikas |
647 |
if (lastComparison != 0) {
|
|
|
648 |
return lastComparison;
|
|
|
649 |
}
|
| 3430 |
rajveer |
650 |
if (isSetData()) {
|
|
|
651 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.data, typedOther.data);
|
|
|
652 |
if (lastComparison != 0) {
|
|
|
653 |
return lastComparison;
|
|
|
654 |
}
|
| 1847 |
vikas |
655 |
}
|
|
|
656 |
return 0;
|
|
|
657 |
}
|
|
|
658 |
|
| 3430 |
rajveer |
659 |
public _Fields fieldForId(int fieldId) {
|
|
|
660 |
return _Fields.findByThriftId(fieldId);
|
|
|
661 |
}
|
|
|
662 |
|
|
|
663 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
664 |
org.apache.thrift.protocol.TField field;
|
| 1847 |
vikas |
665 |
iprot.readStructBegin();
|
|
|
666 |
while (true)
|
|
|
667 |
{
|
|
|
668 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
669 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 1847 |
vikas |
670 |
break;
|
|
|
671 |
}
|
| 3430 |
rajveer |
672 |
switch (field.id) {
|
|
|
673 |
case 1: // ID
|
|
|
674 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
675 |
this.id = iprot.readI64();
|
|
|
676 |
setIdIsSet(true);
|
|
|
677 |
} else {
|
|
|
678 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
679 |
}
|
|
|
680 |
break;
|
|
|
681 |
case 2: // ADDED_ON
|
|
|
682 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
683 |
this.addedOn = iprot.readI64();
|
|
|
684 |
setAddedOnIsSet(true);
|
|
|
685 |
} else {
|
|
|
686 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
687 |
}
|
|
|
688 |
break;
|
|
|
689 |
case 3: // AFFILIATE_ID
|
|
|
690 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
691 |
this.affiliateId = iprot.readI64();
|
|
|
692 |
setAffiliateIdIsSet(true);
|
|
|
693 |
} else {
|
|
|
694 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
695 |
}
|
|
|
696 |
break;
|
|
|
697 |
case 4: // USER_ID
|
|
|
698 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
699 |
this.userId = iprot.readI64();
|
|
|
700 |
setUserIdIsSet(true);
|
|
|
701 |
} else {
|
|
|
702 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
703 |
}
|
|
|
704 |
break;
|
|
|
705 |
case 5: // EVENT_TYPE
|
|
|
706 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
707 |
this.eventType = TrackLogType.findByValue(iprot.readI32());
|
|
|
708 |
} else {
|
|
|
709 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
710 |
}
|
|
|
711 |
break;
|
|
|
712 |
case 6: // URL
|
|
|
713 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
714 |
this.url = iprot.readString();
|
|
|
715 |
} else {
|
|
|
716 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
717 |
}
|
|
|
718 |
break;
|
|
|
719 |
case 7: // DATA
|
|
|
720 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
721 |
this.data = iprot.readString();
|
|
|
722 |
} else {
|
|
|
723 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
724 |
}
|
|
|
725 |
break;
|
|
|
726 |
default:
|
|
|
727 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 1847 |
vikas |
728 |
}
|
| 3430 |
rajveer |
729 |
iprot.readFieldEnd();
|
| 1847 |
vikas |
730 |
}
|
|
|
731 |
iprot.readStructEnd();
|
|
|
732 |
validate();
|
|
|
733 |
}
|
|
|
734 |
|
| 3430 |
rajveer |
735 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 1847 |
vikas |
736 |
validate();
|
|
|
737 |
|
|
|
738 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
739 |
oprot.writeFieldBegin(ID_FIELD_DESC);
|
|
|
740 |
oprot.writeI64(this.id);
|
|
|
741 |
oprot.writeFieldEnd();
|
| 1860 |
vikas |
742 |
oprot.writeFieldBegin(ADDED_ON_FIELD_DESC);
|
|
|
743 |
oprot.writeI64(this.addedOn);
|
|
|
744 |
oprot.writeFieldEnd();
|
| 1998 |
vikas |
745 |
oprot.writeFieldBegin(AFFILIATE_ID_FIELD_DESC);
|
|
|
746 |
oprot.writeI64(this.affiliateId);
|
| 1847 |
vikas |
747 |
oprot.writeFieldEnd();
|
|
|
748 |
oprot.writeFieldBegin(USER_ID_FIELD_DESC);
|
|
|
749 |
oprot.writeI64(this.userId);
|
|
|
750 |
oprot.writeFieldEnd();
|
| 3378 |
vikas |
751 |
if (this.eventType != null) {
|
|
|
752 |
oprot.writeFieldBegin(EVENT_TYPE_FIELD_DESC);
|
|
|
753 |
oprot.writeI32(this.eventType.getValue());
|
| 1847 |
vikas |
754 |
oprot.writeFieldEnd();
|
|
|
755 |
}
|
|
|
756 |
if (this.url != null) {
|
|
|
757 |
oprot.writeFieldBegin(URL_FIELD_DESC);
|
|
|
758 |
oprot.writeString(this.url);
|
|
|
759 |
oprot.writeFieldEnd();
|
|
|
760 |
}
|
|
|
761 |
if (this.data != null) {
|
|
|
762 |
oprot.writeFieldBegin(DATA_FIELD_DESC);
|
|
|
763 |
oprot.writeString(this.data);
|
|
|
764 |
oprot.writeFieldEnd();
|
|
|
765 |
}
|
|
|
766 |
oprot.writeFieldStop();
|
|
|
767 |
oprot.writeStructEnd();
|
|
|
768 |
}
|
|
|
769 |
|
|
|
770 |
@Override
|
|
|
771 |
public String toString() {
|
|
|
772 |
StringBuilder sb = new StringBuilder("TrackLog(");
|
|
|
773 |
boolean first = true;
|
|
|
774 |
|
|
|
775 |
sb.append("id:");
|
|
|
776 |
sb.append(this.id);
|
|
|
777 |
first = false;
|
|
|
778 |
if (!first) sb.append(", ");
|
| 1860 |
vikas |
779 |
sb.append("addedOn:");
|
|
|
780 |
sb.append(this.addedOn);
|
|
|
781 |
first = false;
|
|
|
782 |
if (!first) sb.append(", ");
|
| 1998 |
vikas |
783 |
sb.append("affiliateId:");
|
|
|
784 |
sb.append(this.affiliateId);
|
| 1847 |
vikas |
785 |
first = false;
|
|
|
786 |
if (!first) sb.append(", ");
|
|
|
787 |
sb.append("userId:");
|
|
|
788 |
sb.append(this.userId);
|
|
|
789 |
first = false;
|
|
|
790 |
if (!first) sb.append(", ");
|
| 3378 |
vikas |
791 |
sb.append("eventType:");
|
|
|
792 |
if (this.eventType == null) {
|
| 1847 |
vikas |
793 |
sb.append("null");
|
|
|
794 |
} else {
|
| 3378 |
vikas |
795 |
sb.append(this.eventType);
|
| 1847 |
vikas |
796 |
}
|
|
|
797 |
first = false;
|
|
|
798 |
if (!first) sb.append(", ");
|
|
|
799 |
sb.append("url:");
|
|
|
800 |
if (this.url == null) {
|
|
|
801 |
sb.append("null");
|
|
|
802 |
} else {
|
|
|
803 |
sb.append(this.url);
|
|
|
804 |
}
|
|
|
805 |
first = false;
|
|
|
806 |
if (!first) sb.append(", ");
|
|
|
807 |
sb.append("data:");
|
|
|
808 |
if (this.data == null) {
|
|
|
809 |
sb.append("null");
|
|
|
810 |
} else {
|
|
|
811 |
sb.append(this.data);
|
|
|
812 |
}
|
|
|
813 |
first = false;
|
|
|
814 |
sb.append(")");
|
|
|
815 |
return sb.toString();
|
|
|
816 |
}
|
|
|
817 |
|
| 3430 |
rajveer |
818 |
public void validate() throws org.apache.thrift.TException {
|
| 1847 |
vikas |
819 |
// check for required fields
|
|
|
820 |
}
|
|
|
821 |
|
| 3430 |
rajveer |
822 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
823 |
try {
|
|
|
824 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
825 |
} catch (org.apache.thrift.TException te) {
|
|
|
826 |
throw new java.io.IOException(te);
|
|
|
827 |
}
|
|
|
828 |
}
|
|
|
829 |
|
|
|
830 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
831 |
try {
|
|
|
832 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
833 |
__isset_bit_vector = new BitSet(1);
|
|
|
834 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
835 |
} catch (org.apache.thrift.TException te) {
|
|
|
836 |
throw new java.io.IOException(te);
|
|
|
837 |
}
|
|
|
838 |
}
|
|
|
839 |
|
| 1847 |
vikas |
840 |
}
|
|
|
841 |
|