Subversion Repositories SmartDukaan

Rev

Rev 1847 | Rev 1998 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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