Subversion Repositories SmartDukaan

Rev

Rev 3378 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3378 Rev 3430
Line 1... Line 1...
1
/**
1
/**
2
 * Autogenerated by Thrift
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
5
 */
6
package in.shop2020.model.v1.user;
6
package in.shop2020.model.v1.user;
7
 
7
 
Line 13... Line 13...
13
import java.util.Set;
13
import java.util.Set;
14
import java.util.HashSet;
14
import java.util.HashSet;
15
import java.util.EnumSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
16
import java.util.Collections;
17
import java.util.BitSet;
17
import java.util.BitSet;
-
 
18
import java.nio.ByteBuffer;
18
import java.util.Arrays;
19
import java.util.Arrays;
19
import org.slf4j.Logger;
20
import org.slf4j.Logger;
20
import org.slf4j.LoggerFactory;
21
import org.slf4j.LoggerFactory;
21
 
22
 
22
import org.apache.thrift.*;
-
 
23
import org.apache.thrift.meta_data.*;
-
 
24
import org.apache.thrift.protocol.*;
-
 
25
 
-
 
26
public class TrackLog implements TBase<TrackLog._Fields>, java.io.Serializable, Cloneable, Comparable<TrackLog> {
23
public class TrackLog implements org.apache.thrift.TBase<TrackLog, TrackLog._Fields>, java.io.Serializable, Cloneable {
27
  private static final TStruct STRUCT_DESC = new TStruct("TrackLog");
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TrackLog");
28
 
25
 
29
  private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
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);
30
  private static final TField ADDED_ON_FIELD_DESC = new TField("addedOn", TType.I64, (short)2);
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);
31
  private static final TField AFFILIATE_ID_FIELD_DESC = new TField("affiliateId", TType.I64, (short)3);
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);
32
  private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)4);
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);
33
  private static final TField EVENT_TYPE_FIELD_DESC = new TField("eventType", TType.I32, (short)5);
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);
34
  private static final TField URL_FIELD_DESC = new TField("url", TType.STRING, (short)6);
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);
35
  private static final TField DATA_FIELD_DESC = new TField("data", TType.STRING, (short)7);
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);
36
 
33
 
37
  private long id;
34
  private long id; // required
38
  private long addedOn;
35
  private long addedOn; // required
39
  private long affiliateId;
36
  private long affiliateId; // required
40
  private long userId;
37
  private long userId; // required
41
  private TrackLogType eventType;
38
  private TrackLogType eventType; // required
42
  private String url;
39
  private String url; // required
43
  private String data;
40
  private String data; // required
44
 
41
 
45
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
42
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
46
  public enum _Fields implements TFieldIdEnum {
43
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
47
    ID((short)1, "id"),
44
    ID((short)1, "id"),
48
    ADDED_ON((short)2, "addedOn"),
45
    ADDED_ON((short)2, "addedOn"),
49
    AFFILIATE_ID((short)3, "affiliateId"),
46
    AFFILIATE_ID((short)3, "affiliateId"),
50
    USER_ID((short)4, "userId"),
47
    USER_ID((short)4, "userId"),
51
    /**
48
    /**
Line 54... Line 51...
54
     */
51
     */
55
    EVENT_TYPE((short)5, "eventType"),
52
    EVENT_TYPE((short)5, "eventType"),
56
    URL((short)6, "url"),
53
    URL((short)6, "url"),
57
    DATA((short)7, "data");
54
    DATA((short)7, "data");
58
 
55
 
59
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
60
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
56
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
61
 
57
 
62
    static {
58
    static {
63
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
59
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
64
        byId.put((int)field._thriftId, field);
-
 
65
        byName.put(field.getFieldName(), field);
60
        byName.put(field.getFieldName(), field);
66
      }
61
      }
67
    }
62
    }
68
 
63
 
69
    /**
64
    /**
70
     * Find the _Fields constant that matches fieldId, or null if its not found.
65
     * Find the _Fields constant that matches fieldId, or null if its not found.
71
     */
66
     */
72
    public static _Fields findByThriftId(int fieldId) {
67
    public static _Fields findByThriftId(int fieldId) {
73
      return byId.get(fieldId);
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
      }
74
    }
86
    }
75
 
87
 
76
    /**
88
    /**
77
     * Find the _Fields constant that matches fieldId, throwing an exception
89
     * Find the _Fields constant that matches fieldId, throwing an exception
78
     * if it is not found.
90
     * if it is not found.
Line 112... Line 124...
112
  private static final int __ADDEDON_ISSET_ID = 1;
124
  private static final int __ADDEDON_ISSET_ID = 1;
113
  private static final int __AFFILIATEID_ISSET_ID = 2;
125
  private static final int __AFFILIATEID_ISSET_ID = 2;
114
  private static final int __USERID_ISSET_ID = 3;
126
  private static final int __USERID_ISSET_ID = 3;
115
  private BitSet __isset_bit_vector = new BitSet(4);
127
  private BitSet __isset_bit_vector = new BitSet(4);
116
 
128
 
117
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
129
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
118
    put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
-
 
119
        new FieldValueMetaData(TType.I64)));
-
 
120
    put(_Fields.ADDED_ON, new FieldMetaData("addedOn", TFieldRequirementType.DEFAULT, 
-
 
121
        new FieldValueMetaData(TType.I64)));
-
 
122
    put(_Fields.AFFILIATE_ID, new FieldMetaData("affiliateId", TFieldRequirementType.DEFAULT, 
-
 
123
        new FieldValueMetaData(TType.I64)));
-
 
124
    put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
-
 
125
        new FieldValueMetaData(TType.I64)));
-
 
126
    put(_Fields.EVENT_TYPE, new FieldMetaData("eventType", TFieldRequirementType.DEFAULT, 
-
 
127
        new EnumMetaData(TType.ENUM, TrackLogType.class)));
-
 
128
    put(_Fields.URL, new FieldMetaData("url", TFieldRequirementType.DEFAULT, 
-
 
129
        new FieldValueMetaData(TType.STRING)));
-
 
130
    put(_Fields.DATA, new FieldMetaData("data", TFieldRequirementType.DEFAULT, 
-
 
131
        new FieldValueMetaData(TType.STRING)));
-
 
132
  }});
-
 
133
 
-
 
134
  static {
130
  static {
-
 
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);
135
    FieldMetaData.addStructMetaDataMap(TrackLog.class, metaDataMap);
147
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TrackLog.class, metaDataMap);
136
  }
148
  }
137
 
149
 
138
  public TrackLog() {
150
  public TrackLog() {
139
  }
151
  }
140
 
152
 
Line 184... Line 196...
184
 
196
 
185
  public TrackLog deepCopy() {
197
  public TrackLog deepCopy() {
186
    return new TrackLog(this);
198
    return new TrackLog(this);
187
  }
199
  }
188
 
200
 
189
  @Deprecated
201
  @Override
190
  public TrackLog clone() {
202
  public void clear() {
-
 
203
    setIdIsSet(false);
-
 
204
    this.id = 0;
-
 
205
    setAddedOnIsSet(false);
-
 
206
    this.addedOn = 0;
191
    return new TrackLog(this);
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;
192
  }
214
  }
193
 
215
 
194
  public long getId() {
216
  public long getId() {
195
    return this.id;
217
    return this.id;
196
  }
218
  }
197
 
219
 
198
  public TrackLog setId(long id) {
220
  public void setId(long id) {
199
    this.id = id;
221
    this.id = id;
200
    setIdIsSet(true);
222
    setIdIsSet(true);
201
    return this;
-
 
202
  }
223
  }
203
 
224
 
204
  public void unsetId() {
225
  public void unsetId() {
205
    __isset_bit_vector.clear(__ID_ISSET_ID);
226
    __isset_bit_vector.clear(__ID_ISSET_ID);
206
  }
227
  }
207
 
228
 
208
  /** Returns true if field id is set (has been asigned a value) and false otherwise */
229
  /** Returns true if field id is set (has been assigned a value) and false otherwise */
209
  public boolean isSetId() {
230
  public boolean isSetId() {
210
    return __isset_bit_vector.get(__ID_ISSET_ID);
231
    return __isset_bit_vector.get(__ID_ISSET_ID);
211
  }
232
  }
212
 
233
 
213
  public void setIdIsSet(boolean value) {
234
  public void setIdIsSet(boolean value) {
Line 216... Line 237...
216
 
237
 
217
  public long getAddedOn() {
238
  public long getAddedOn() {
218
    return this.addedOn;
239
    return this.addedOn;
219
  }
240
  }
220
 
241
 
221
  public TrackLog setAddedOn(long addedOn) {
242
  public void setAddedOn(long addedOn) {
222
    this.addedOn = addedOn;
243
    this.addedOn = addedOn;
223
    setAddedOnIsSet(true);
244
    setAddedOnIsSet(true);
224
    return this;
-
 
225
  }
245
  }
226
 
246
 
227
  public void unsetAddedOn() {
247
  public void unsetAddedOn() {
228
    __isset_bit_vector.clear(__ADDEDON_ISSET_ID);
248
    __isset_bit_vector.clear(__ADDEDON_ISSET_ID);
229
  }
249
  }
230
 
250
 
231
  /** Returns true if field addedOn is set (has been asigned a value) and false otherwise */
251
  /** Returns true if field addedOn is set (has been assigned a value) and false otherwise */
232
  public boolean isSetAddedOn() {
252
  public boolean isSetAddedOn() {
233
    return __isset_bit_vector.get(__ADDEDON_ISSET_ID);
253
    return __isset_bit_vector.get(__ADDEDON_ISSET_ID);
234
  }
254
  }
235
 
255
 
236
  public void setAddedOnIsSet(boolean value) {
256
  public void setAddedOnIsSet(boolean value) {
Line 239... Line 259...
239
 
259
 
240
  public long getAffiliateId() {
260
  public long getAffiliateId() {
241
    return this.affiliateId;
261
    return this.affiliateId;
242
  }
262
  }
243
 
263
 
244
  public TrackLog setAffiliateId(long affiliateId) {
264
  public void setAffiliateId(long affiliateId) {
245
    this.affiliateId = affiliateId;
265
    this.affiliateId = affiliateId;
246
    setAffiliateIdIsSet(true);
266
    setAffiliateIdIsSet(true);
247
    return this;
-
 
248
  }
267
  }
249
 
268
 
250
  public void unsetAffiliateId() {
269
  public void unsetAffiliateId() {
251
    __isset_bit_vector.clear(__AFFILIATEID_ISSET_ID);
270
    __isset_bit_vector.clear(__AFFILIATEID_ISSET_ID);
252
  }
271
  }
253
 
272
 
254
  /** Returns true if field affiliateId is set (has been asigned a value) and false otherwise */
273
  /** Returns true if field affiliateId is set (has been assigned a value) and false otherwise */
255
  public boolean isSetAffiliateId() {
274
  public boolean isSetAffiliateId() {
256
    return __isset_bit_vector.get(__AFFILIATEID_ISSET_ID);
275
    return __isset_bit_vector.get(__AFFILIATEID_ISSET_ID);
257
  }
276
  }
258
 
277
 
259
  public void setAffiliateIdIsSet(boolean value) {
278
  public void setAffiliateIdIsSet(boolean value) {
Line 262... Line 281...
262
 
281
 
263
  public long getUserId() {
282
  public long getUserId() {
264
    return this.userId;
283
    return this.userId;
265
  }
284
  }
266
 
285
 
267
  public TrackLog setUserId(long userId) {
286
  public void setUserId(long userId) {
268
    this.userId = userId;
287
    this.userId = userId;
269
    setUserIdIsSet(true);
288
    setUserIdIsSet(true);
270
    return this;
-
 
271
  }
289
  }
272
 
290
 
273
  public void unsetUserId() {
291
  public void unsetUserId() {
274
    __isset_bit_vector.clear(__USERID_ISSET_ID);
292
    __isset_bit_vector.clear(__USERID_ISSET_ID);
275
  }
293
  }
276
 
294
 
277
  /** Returns true if field userId is set (has been asigned a value) and false otherwise */
295
  /** Returns true if field userId is set (has been assigned a value) and false otherwise */
278
  public boolean isSetUserId() {
296
  public boolean isSetUserId() {
279
    return __isset_bit_vector.get(__USERID_ISSET_ID);
297
    return __isset_bit_vector.get(__USERID_ISSET_ID);
280
  }
298
  }
281
 
299
 
282
  public void setUserIdIsSet(boolean value) {
300
  public void setUserIdIsSet(boolean value) {
Line 293... Line 311...
293
 
311
 
294
  /**
312
  /**
295
   * 
313
   * 
296
   * @see TrackLogType
314
   * @see TrackLogType
297
   */
315
   */
298
  public TrackLog setEventType(TrackLogType eventType) {
316
  public void setEventType(TrackLogType eventType) {
299
    this.eventType = eventType;
317
    this.eventType = eventType;
300
    return this;
-
 
301
  }
318
  }
302
 
319
 
303
  public void unsetEventType() {
320
  public void unsetEventType() {
304
    this.eventType = null;
321
    this.eventType = null;
305
  }
322
  }
306
 
323
 
307
  /** Returns true if field eventType is set (has been asigned a value) and false otherwise */
324
  /** Returns true if field eventType is set (has been assigned a value) and false otherwise */
308
  public boolean isSetEventType() {
325
  public boolean isSetEventType() {
309
    return this.eventType != null;
326
    return this.eventType != null;
310
  }
327
  }
311
 
328
 
312
  public void setEventTypeIsSet(boolean value) {
329
  public void setEventTypeIsSet(boolean value) {
Line 317... Line 334...
317
 
334
 
318
  public String getUrl() {
335
  public String getUrl() {
319
    return this.url;
336
    return this.url;
320
  }
337
  }
321
 
338
 
322
  public TrackLog setUrl(String url) {
339
  public void setUrl(String url) {
323
    this.url = url;
340
    this.url = url;
324
    return this;
-
 
325
  }
341
  }
326
 
342
 
327
  public void unsetUrl() {
343
  public void unsetUrl() {
328
    this.url = null;
344
    this.url = null;
329
  }
345
  }
330
 
346
 
331
  /** Returns true if field url is set (has been asigned a value) and false otherwise */
347
  /** Returns true if field url is set (has been assigned a value) and false otherwise */
332
  public boolean isSetUrl() {
348
  public boolean isSetUrl() {
333
    return this.url != null;
349
    return this.url != null;
334
  }
350
  }
335
 
351
 
336
  public void setUrlIsSet(boolean value) {
352
  public void setUrlIsSet(boolean value) {
Line 341... Line 357...
341
 
357
 
342
  public String getData() {
358
  public String getData() {
343
    return this.data;
359
    return this.data;
344
  }
360
  }
345
 
361
 
346
  public TrackLog setData(String data) {
362
  public void setData(String data) {
347
    this.data = data;
363
    this.data = data;
348
    return this;
-
 
349
  }
364
  }
350
 
365
 
351
  public void unsetData() {
366
  public void unsetData() {
352
    this.data = null;
367
    this.data = null;
353
  }
368
  }
354
 
369
 
355
  /** Returns true if field data is set (has been asigned a value) and false otherwise */
370
  /** Returns true if field data is set (has been assigned a value) and false otherwise */
356
  public boolean isSetData() {
371
  public boolean isSetData() {
357
    return this.data != null;
372
    return this.data != null;
358
  }
373
  }
359
 
374
 
360
  public void setDataIsSet(boolean value) {
375
  public void setDataIsSet(boolean value) {
Line 422... Line 437...
422
      break;
437
      break;
423
 
438
 
424
    }
439
    }
425
  }
440
  }
426
 
441
 
427
  public void setFieldValue(int fieldID, Object value) {
-
 
428
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
429
  }
-
 
430
 
-
 
431
  public Object getFieldValue(_Fields field) {
442
  public Object getFieldValue(_Fields field) {
432
    switch (field) {
443
    switch (field) {
433
    case ID:
444
    case ID:
434
      return new Long(getId());
445
      return Long.valueOf(getId());
435
 
446
 
436
    case ADDED_ON:
447
    case ADDED_ON:
437
      return new Long(getAddedOn());
448
      return Long.valueOf(getAddedOn());
438
 
449
 
439
    case AFFILIATE_ID:
450
    case AFFILIATE_ID:
440
      return new Long(getAffiliateId());
451
      return Long.valueOf(getAffiliateId());
441
 
452
 
442
    case USER_ID:
453
    case USER_ID:
443
      return new Long(getUserId());
454
      return Long.valueOf(getUserId());
444
 
455
 
445
    case EVENT_TYPE:
456
    case EVENT_TYPE:
446
      return getEventType();
457
      return getEventType();
447
 
458
 
448
    case URL:
459
    case URL:
Line 453... Line 464...
453
 
464
 
454
    }
465
    }
455
    throw new IllegalStateException();
466
    throw new IllegalStateException();
456
  }
467
  }
457
 
468
 
458
  public Object getFieldValue(int fieldId) {
-
 
459
    return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
460
  }
-
 
461
 
-
 
462
  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
469
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
463
  public boolean isSet(_Fields field) {
470
  public boolean isSet(_Fields field) {
-
 
471
    if (field == null) {
-
 
472
      throw new IllegalArgumentException();
-
 
473
    }
-
 
474
 
464
    switch (field) {
475
    switch (field) {
465
    case ID:
476
    case ID:
466
      return isSetId();
477
      return isSetId();
467
    case ADDED_ON:
478
    case ADDED_ON:
468
      return isSetAddedOn();
479
      return isSetAddedOn();
Line 478... Line 489...
478
      return isSetData();
489
      return isSetData();
479
    }
490
    }
480
    throw new IllegalStateException();
491
    throw new IllegalStateException();
481
  }
492
  }
482
 
493
 
483
  public boolean isSet(int fieldID) {
-
 
484
    return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
485
  }
-
 
486
 
-
 
487
  @Override
494
  @Override
488
  public boolean equals(Object that) {
495
  public boolean equals(Object that) {
489
    if (that == null)
496
    if (that == null)
490
      return false;
497
      return false;
491
    if (that instanceof TrackLog)
498
    if (that instanceof TrackLog)
Line 574... Line 581...
574
    }
581
    }
575
 
582
 
576
    int lastComparison = 0;
583
    int lastComparison = 0;
577
    TrackLog typedOther = (TrackLog)other;
584
    TrackLog typedOther = (TrackLog)other;
578
 
585
 
579
    lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());
586
    lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
580
    if (lastComparison != 0) {
587
    if (lastComparison != 0) {
581
      return lastComparison;
588
      return lastComparison;
582
    }
589
    }
-
 
590
    if (isSetId()) {
583
    lastComparison = TBaseHelper.compareTo(id, typedOther.id);
591
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
584
    if (lastComparison != 0) {
592
      if (lastComparison != 0) {
585
      return lastComparison;
593
        return lastComparison;
-
 
594
      }
586
    }
595
    }
587
    lastComparison = Boolean.valueOf(isSetAddedOn()).compareTo(isSetAddedOn());
596
    lastComparison = Boolean.valueOf(isSetAddedOn()).compareTo(typedOther.isSetAddedOn());
588
    if (lastComparison != 0) {
597
    if (lastComparison != 0) {
589
      return lastComparison;
598
      return lastComparison;
590
    }
599
    }
-
 
600
    if (isSetAddedOn()) {
591
    lastComparison = TBaseHelper.compareTo(addedOn, typedOther.addedOn);
601
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addedOn, typedOther.addedOn);
592
    if (lastComparison != 0) {
602
      if (lastComparison != 0) {
593
      return lastComparison;
603
        return lastComparison;
-
 
604
      }
594
    }
605
    }
595
    lastComparison = Boolean.valueOf(isSetAffiliateId()).compareTo(isSetAffiliateId());
606
    lastComparison = Boolean.valueOf(isSetAffiliateId()).compareTo(typedOther.isSetAffiliateId());
596
    if (lastComparison != 0) {
607
    if (lastComparison != 0) {
597
      return lastComparison;
608
      return lastComparison;
598
    }
609
    }
-
 
610
    if (isSetAffiliateId()) {
599
    lastComparison = TBaseHelper.compareTo(affiliateId, typedOther.affiliateId);
611
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.affiliateId, typedOther.affiliateId);
600
    if (lastComparison != 0) {
612
      if (lastComparison != 0) {
601
      return lastComparison;
613
        return lastComparison;
-
 
614
      }
602
    }
615
    }
603
    lastComparison = Boolean.valueOf(isSetUserId()).compareTo(isSetUserId());
616
    lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
604
    if (lastComparison != 0) {
617
    if (lastComparison != 0) {
605
      return lastComparison;
618
      return lastComparison;
606
    }
619
    }
-
 
620
    if (isSetUserId()) {
607
    lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
621
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
608
    if (lastComparison != 0) {
622
      if (lastComparison != 0) {
609
      return lastComparison;
623
        return lastComparison;
-
 
624
      }
610
    }
625
    }
611
    lastComparison = Boolean.valueOf(isSetEventType()).compareTo(isSetEventType());
626
    lastComparison = Boolean.valueOf(isSetEventType()).compareTo(typedOther.isSetEventType());
612
    if (lastComparison != 0) {
627
    if (lastComparison != 0) {
613
      return lastComparison;
628
      return lastComparison;
614
    }
629
    }
-
 
630
    if (isSetEventType()) {
615
    lastComparison = TBaseHelper.compareTo(eventType, typedOther.eventType);
631
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.eventType, typedOther.eventType);
616
    if (lastComparison != 0) {
632
      if (lastComparison != 0) {
617
      return lastComparison;
633
        return lastComparison;
-
 
634
      }
618
    }
635
    }
619
    lastComparison = Boolean.valueOf(isSetUrl()).compareTo(isSetUrl());
636
    lastComparison = Boolean.valueOf(isSetUrl()).compareTo(typedOther.isSetUrl());
620
    if (lastComparison != 0) {
637
    if (lastComparison != 0) {
621
      return lastComparison;
638
      return lastComparison;
622
    }
639
    }
-
 
640
    if (isSetUrl()) {
623
    lastComparison = TBaseHelper.compareTo(url, typedOther.url);
641
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.url, typedOther.url);
624
    if (lastComparison != 0) {
642
      if (lastComparison != 0) {
625
      return lastComparison;
643
        return lastComparison;
-
 
644
      }
626
    }
645
    }
627
    lastComparison = Boolean.valueOf(isSetData()).compareTo(isSetData());
646
    lastComparison = Boolean.valueOf(isSetData()).compareTo(typedOther.isSetData());
628
    if (lastComparison != 0) {
647
    if (lastComparison != 0) {
629
      return lastComparison;
648
      return lastComparison;
630
    }
649
    }
-
 
650
    if (isSetData()) {
631
    lastComparison = TBaseHelper.compareTo(data, typedOther.data);
651
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.data, typedOther.data);
632
    if (lastComparison != 0) {
652
      if (lastComparison != 0) {
633
      return lastComparison;
653
        return lastComparison;
-
 
654
      }
634
    }
655
    }
635
    return 0;
656
    return 0;
636
  }
657
  }
637
 
658
 
-
 
659
  public _Fields fieldForId(int fieldId) {
-
 
660
    return _Fields.findByThriftId(fieldId);
-
 
661
  }
-
 
662
 
638
  public void read(TProtocol iprot) throws TException {
663
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
639
    TField field;
664
    org.apache.thrift.protocol.TField field;
640
    iprot.readStructBegin();
665
    iprot.readStructBegin();
641
    while (true)
666
    while (true)
642
    {
667
    {
643
      field = iprot.readFieldBegin();
668
      field = iprot.readFieldBegin();
644
      if (field.type == TType.STOP) { 
669
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
645
        break;
670
        break;
646
      }
671
      }
647
      _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
648
      if (fieldId == null) {
-
 
649
        TProtocolUtil.skip(iprot, field.type);
-
 
650
      } else {
-
 
651
        switch (fieldId) {
672
      switch (field.id) {
652
          case ID:
673
        case 1: // ID
653
            if (field.type == TType.I64) {
674
          if (field.type == org.apache.thrift.protocol.TType.I64) {
654
              this.id = iprot.readI64();
675
            this.id = iprot.readI64();
655
              setIdIsSet(true);
676
            setIdIsSet(true);
656
            } else { 
677
          } else { 
657
              TProtocolUtil.skip(iprot, field.type);
678
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
658
            }
679
          }
659
            break;
680
          break;
660
          case ADDED_ON:
681
        case 2: // ADDED_ON
661
            if (field.type == TType.I64) {
682
          if (field.type == org.apache.thrift.protocol.TType.I64) {
662
              this.addedOn = iprot.readI64();
683
            this.addedOn = iprot.readI64();
663
              setAddedOnIsSet(true);
684
            setAddedOnIsSet(true);
664
            } else { 
685
          } else { 
665
              TProtocolUtil.skip(iprot, field.type);
686
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
666
            }
687
          }
667
            break;
688
          break;
668
          case AFFILIATE_ID:
689
        case 3: // AFFILIATE_ID
669
            if (field.type == TType.I64) {
690
          if (field.type == org.apache.thrift.protocol.TType.I64) {
670
              this.affiliateId = iprot.readI64();
691
            this.affiliateId = iprot.readI64();
671
              setAffiliateIdIsSet(true);
692
            setAffiliateIdIsSet(true);
672
            } else { 
693
          } else { 
673
              TProtocolUtil.skip(iprot, field.type);
694
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
674
            }
695
          }
675
            break;
696
          break;
676
          case USER_ID:
697
        case 4: // USER_ID
677
            if (field.type == TType.I64) {
698
          if (field.type == org.apache.thrift.protocol.TType.I64) {
678
              this.userId = iprot.readI64();
699
            this.userId = iprot.readI64();
679
              setUserIdIsSet(true);
700
            setUserIdIsSet(true);
680
            } else { 
701
          } else { 
681
              TProtocolUtil.skip(iprot, field.type);
702
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
682
            }
703
          }
683
            break;
704
          break;
684
          case EVENT_TYPE:
705
        case 5: // EVENT_TYPE
685
            if (field.type == TType.I32) {
706
          if (field.type == org.apache.thrift.protocol.TType.I32) {
686
              this.eventType = TrackLogType.findByValue(iprot.readI32());
707
            this.eventType = TrackLogType.findByValue(iprot.readI32());
687
            } else { 
708
          } else { 
688
              TProtocolUtil.skip(iprot, field.type);
709
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
689
            }
710
          }
690
            break;
711
          break;
691
          case URL:
712
        case 6: // URL
692
            if (field.type == TType.STRING) {
713
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
693
              this.url = iprot.readString();
714
            this.url = iprot.readString();
694
            } else { 
715
          } else { 
695
              TProtocolUtil.skip(iprot, field.type);
716
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
696
            }
717
          }
697
            break;
718
          break;
698
          case DATA:
719
        case 7: // DATA
699
            if (field.type == TType.STRING) {
720
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
700
              this.data = iprot.readString();
721
            this.data = iprot.readString();
701
            } else { 
722
          } else { 
702
              TProtocolUtil.skip(iprot, field.type);
723
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
703
            }
724
          }
704
            break;
725
          break;
705
        }
726
        default:
706
        iprot.readFieldEnd();
727
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
707
      }
728
      }
-
 
729
      iprot.readFieldEnd();
708
    }
730
    }
709
    iprot.readStructEnd();
731
    iprot.readStructEnd();
710
    validate();
732
    validate();
711
  }
733
  }
712
 
734
 
713
  public void write(TProtocol oprot) throws TException {
735
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
714
    validate();
736
    validate();
715
 
737
 
716
    oprot.writeStructBegin(STRUCT_DESC);
738
    oprot.writeStructBegin(STRUCT_DESC);
717
    oprot.writeFieldBegin(ID_FIELD_DESC);
739
    oprot.writeFieldBegin(ID_FIELD_DESC);
718
    oprot.writeI64(this.id);
740
    oprot.writeI64(this.id);
Line 768... Line 790...
768
    if (!first) sb.append(", ");
790
    if (!first) sb.append(", ");
769
    sb.append("eventType:");
791
    sb.append("eventType:");
770
    if (this.eventType == null) {
792
    if (this.eventType == null) {
771
      sb.append("null");
793
      sb.append("null");
772
    } else {
794
    } else {
773
      String eventType_name = eventType.name();
-
 
774
      if (eventType_name != null) {
-
 
775
        sb.append(eventType_name);
-
 
776
        sb.append(" (");
-
 
777
      }
-
 
778
      sb.append(this.eventType);
795
      sb.append(this.eventType);
779
      if (eventType_name != null) {
-
 
780
        sb.append(")");
-
 
781
      }
-
 
782
    }
796
    }
783
    first = false;
797
    first = false;
784
    if (!first) sb.append(", ");
798
    if (!first) sb.append(", ");
785
    sb.append("url:");
799
    sb.append("url:");
786
    if (this.url == null) {
800
    if (this.url == null) {
Line 799... Line 813...
799
    first = false;
813
    first = false;
800
    sb.append(")");
814
    sb.append(")");
801
    return sb.toString();
815
    return sb.toString();
802
  }
816
  }
803
 
817
 
804
  public void validate() throws TException {
818
  public void validate() throws org.apache.thrift.TException {
805
    // check for required fields
819
    // check for required fields
806
  }
820
  }
807
 
821
 
-
 
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
 
808
}
840
}
809
 
841