Subversion Repositories SmartDukaan

Rev

Rev 3430 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1396 varun.gupt 1
/**
3430 rajveer 2
 * Autogenerated by Thrift Compiler (0.7.0)
1396 varun.gupt 3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.utils;
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;
1396 varun.gupt 19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
3430 rajveer 23
public class UserEmail implements org.apache.thrift.TBase<UserEmail, UserEmail._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UserEmail");
1396 varun.gupt 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);
5864 rajveer 27
  private static final org.apache.thrift.protocol.TField EMAIL_TO_FIELD_DESC = new org.apache.thrift.protocol.TField("emailTo", org.apache.thrift.protocol.TType.LIST, (short)2);
3430 rajveer 28
  private static final org.apache.thrift.protocol.TField EMAIL_FROM_FIELD_DESC = new org.apache.thrift.protocol.TField("emailFrom", org.apache.thrift.protocol.TType.STRING, (short)3);
29
  private static final org.apache.thrift.protocol.TField SUBJECT_FIELD_DESC = new org.apache.thrift.protocol.TField("subject", org.apache.thrift.protocol.TType.STRING, (short)4);
30
  private static final org.apache.thrift.protocol.TField BODY_FIELD_DESC = new org.apache.thrift.protocol.TField("body", org.apache.thrift.protocol.TType.STRING, (short)5);
31
  private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.STRING, (short)6);
32
  private static final org.apache.thrift.protocol.TField EMAIL_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("emailType", org.apache.thrift.protocol.TType.STRING, (short)7);
33
  private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.BOOL, (short)8);
34
  private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)9);
5864 rajveer 35
  private static final org.apache.thrift.protocol.TField CC_FIELD_DESC = new org.apache.thrift.protocol.TField("cc", org.apache.thrift.protocol.TType.LIST, (short)10);
36
  private static final org.apache.thrift.protocol.TField BCC_FIELD_DESC = new org.apache.thrift.protocol.TField("bcc", org.apache.thrift.protocol.TType.LIST, (short)11);
1396 varun.gupt 37
 
3430 rajveer 38
  private long id; // required
5864 rajveer 39
  private List<String> emailTo; // required
3430 rajveer 40
  private String emailFrom; // required
41
  private String subject; // required
42
  private String body; // required
43
  private String source; // required
44
  private String emailType; // required
45
  private boolean status; // required
46
  private long timestamp; // required
5864 rajveer 47
  private List<String> cc; // required
48
  private List<String> bcc; // required
1396 varun.gupt 49
 
50
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 51
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1424 varun.gupt 52
    ID((short)1, "id"),
53
    EMAIL_TO((short)2, "emailTo"),
54
    EMAIL_FROM((short)3, "emailFrom"),
55
    SUBJECT((short)4, "subject"),
56
    BODY((short)5, "body"),
57
    SOURCE((short)6, "source"),
58
    EMAIL_TYPE((short)7, "emailType"),
59
    STATUS((short)8, "status"),
5864 rajveer 60
    TIMESTAMP((short)9, "timestamp"),
61
    CC((short)10, "cc"),
62
    BCC((short)11, "bcc");
1396 varun.gupt 63
 
64
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
65
 
66
    static {
67
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
68
        byName.put(field.getFieldName(), field);
69
      }
70
    }
71
 
72
    /**
73
     * Find the _Fields constant that matches fieldId, or null if its not found.
74
     */
75
    public static _Fields findByThriftId(int fieldId) {
3430 rajveer 76
      switch(fieldId) {
77
        case 1: // ID
78
          return ID;
79
        case 2: // EMAIL_TO
80
          return EMAIL_TO;
81
        case 3: // EMAIL_FROM
82
          return EMAIL_FROM;
83
        case 4: // SUBJECT
84
          return SUBJECT;
85
        case 5: // BODY
86
          return BODY;
87
        case 6: // SOURCE
88
          return SOURCE;
89
        case 7: // EMAIL_TYPE
90
          return EMAIL_TYPE;
91
        case 8: // STATUS
92
          return STATUS;
93
        case 9: // TIMESTAMP
94
          return TIMESTAMP;
5864 rajveer 95
        case 10: // CC
96
          return CC;
97
        case 11: // BCC
98
          return BCC;
3430 rajveer 99
        default:
100
          return null;
101
      }
1396 varun.gupt 102
    }
103
 
104
    /**
105
     * Find the _Fields constant that matches fieldId, throwing an exception
106
     * if it is not found.
107
     */
108
    public static _Fields findByThriftIdOrThrow(int fieldId) {
109
      _Fields fields = findByThriftId(fieldId);
110
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
111
      return fields;
112
    }
113
 
114
    /**
115
     * Find the _Fields constant that matches name, or null if its not found.
116
     */
117
    public static _Fields findByName(String name) {
118
      return byName.get(name);
119
    }
120
 
121
    private final short _thriftId;
122
    private final String _fieldName;
123
 
124
    _Fields(short thriftId, String fieldName) {
125
      _thriftId = thriftId;
126
      _fieldName = fieldName;
127
    }
128
 
129
    public short getThriftFieldId() {
130
      return _thriftId;
131
    }
132
 
133
    public String getFieldName() {
134
      return _fieldName;
135
    }
136
  }
137
 
138
  // isset id assignments
1424 varun.gupt 139
  private static final int __ID_ISSET_ID = 0;
140
  private static final int __STATUS_ISSET_ID = 1;
141
  private static final int __TIMESTAMP_ISSET_ID = 2;
142
  private BitSet __isset_bit_vector = new BitSet(3);
1396 varun.gupt 143
 
3430 rajveer 144
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1396 varun.gupt 145
  static {
3430 rajveer 146
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
147
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
148
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
149
    tmpMap.put(_Fields.EMAIL_TO, new org.apache.thrift.meta_data.FieldMetaData("emailTo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5864 rajveer 150
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
151
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
3430 rajveer 152
    tmpMap.put(_Fields.EMAIL_FROM, new org.apache.thrift.meta_data.FieldMetaData("emailFrom", org.apache.thrift.TFieldRequirementType.DEFAULT, 
153
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
154
    tmpMap.put(_Fields.SUBJECT, new org.apache.thrift.meta_data.FieldMetaData("subject", org.apache.thrift.TFieldRequirementType.DEFAULT, 
155
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
156
    tmpMap.put(_Fields.BODY, new org.apache.thrift.meta_data.FieldMetaData("body", org.apache.thrift.TFieldRequirementType.DEFAULT, 
157
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
158
    tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
159
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
160
    tmpMap.put(_Fields.EMAIL_TYPE, new org.apache.thrift.meta_data.FieldMetaData("emailType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
161
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
162
    tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
163
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
164
    tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
165
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5864 rajveer 166
    tmpMap.put(_Fields.CC, new org.apache.thrift.meta_data.FieldMetaData("cc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
167
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
168
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
169
    tmpMap.put(_Fields.BCC, new org.apache.thrift.meta_data.FieldMetaData("bcc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
170
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
171
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
3430 rajveer 172
    metaDataMap = Collections.unmodifiableMap(tmpMap);
173
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(UserEmail.class, metaDataMap);
1396 varun.gupt 174
  }
175
 
176
  public UserEmail() {
177
  }
178
 
179
  public UserEmail(
1424 varun.gupt 180
    long id,
5864 rajveer 181
    List<String> emailTo,
1396 varun.gupt 182
    String emailFrom,
183
    String subject,
184
    String body,
185
    String source,
186
    String emailType,
187
    boolean status,
5864 rajveer 188
    long timestamp,
189
    List<String> cc,
190
    List<String> bcc)
1396 varun.gupt 191
  {
192
    this();
1424 varun.gupt 193
    this.id = id;
194
    setIdIsSet(true);
1396 varun.gupt 195
    this.emailTo = emailTo;
196
    this.emailFrom = emailFrom;
197
    this.subject = subject;
198
    this.body = body;
199
    this.source = source;
200
    this.emailType = emailType;
201
    this.status = status;
202
    setStatusIsSet(true);
203
    this.timestamp = timestamp;
204
    setTimestampIsSet(true);
5864 rajveer 205
    this.cc = cc;
206
    this.bcc = bcc;
1396 varun.gupt 207
  }
208
 
209
  /**
210
   * Performs a deep copy on <i>other</i>.
211
   */
212
  public UserEmail(UserEmail other) {
213
    __isset_bit_vector.clear();
214
    __isset_bit_vector.or(other.__isset_bit_vector);
1424 varun.gupt 215
    this.id = other.id;
1396 varun.gupt 216
    if (other.isSetEmailTo()) {
5864 rajveer 217
      List<String> __this__emailTo = new ArrayList<String>();
218
      for (String other_element : other.emailTo) {
219
        __this__emailTo.add(other_element);
220
      }
221
      this.emailTo = __this__emailTo;
1396 varun.gupt 222
    }
223
    if (other.isSetEmailFrom()) {
224
      this.emailFrom = other.emailFrom;
225
    }
226
    if (other.isSetSubject()) {
227
      this.subject = other.subject;
228
    }
229
    if (other.isSetBody()) {
230
      this.body = other.body;
231
    }
232
    if (other.isSetSource()) {
233
      this.source = other.source;
234
    }
235
    if (other.isSetEmailType()) {
236
      this.emailType = other.emailType;
237
    }
238
    this.status = other.status;
239
    this.timestamp = other.timestamp;
5864 rajveer 240
    if (other.isSetCc()) {
241
      List<String> __this__cc = new ArrayList<String>();
242
      for (String other_element : other.cc) {
243
        __this__cc.add(other_element);
244
      }
245
      this.cc = __this__cc;
246
    }
247
    if (other.isSetBcc()) {
248
      List<String> __this__bcc = new ArrayList<String>();
249
      for (String other_element : other.bcc) {
250
        __this__bcc.add(other_element);
251
      }
252
      this.bcc = __this__bcc;
253
    }
1396 varun.gupt 254
  }
255
 
256
  public UserEmail deepCopy() {
257
    return new UserEmail(this);
258
  }
259
 
3430 rajveer 260
  @Override
261
  public void clear() {
262
    setIdIsSet(false);
263
    this.id = 0;
264
    this.emailTo = null;
265
    this.emailFrom = null;
266
    this.subject = null;
267
    this.body = null;
268
    this.source = null;
269
    this.emailType = null;
270
    setStatusIsSet(false);
271
    this.status = false;
272
    setTimestampIsSet(false);
273
    this.timestamp = 0;
5864 rajveer 274
    this.cc = null;
275
    this.bcc = null;
1396 varun.gupt 276
  }
277
 
1424 varun.gupt 278
  public long getId() {
279
    return this.id;
280
  }
281
 
3430 rajveer 282
  public void setId(long id) {
1424 varun.gupt 283
    this.id = id;
284
    setIdIsSet(true);
285
  }
286
 
287
  public void unsetId() {
288
    __isset_bit_vector.clear(__ID_ISSET_ID);
289
  }
290
 
3430 rajveer 291
  /** Returns true if field id is set (has been assigned a value) and false otherwise */
1424 varun.gupt 292
  public boolean isSetId() {
293
    return __isset_bit_vector.get(__ID_ISSET_ID);
294
  }
295
 
296
  public void setIdIsSet(boolean value) {
297
    __isset_bit_vector.set(__ID_ISSET_ID, value);
298
  }
299
 
5864 rajveer 300
  public int getEmailToSize() {
301
    return (this.emailTo == null) ? 0 : this.emailTo.size();
302
  }
303
 
304
  public java.util.Iterator<String> getEmailToIterator() {
305
    return (this.emailTo == null) ? null : this.emailTo.iterator();
306
  }
307
 
308
  public void addToEmailTo(String elem) {
309
    if (this.emailTo == null) {
310
      this.emailTo = new ArrayList<String>();
311
    }
312
    this.emailTo.add(elem);
313
  }
314
 
315
  public List<String> getEmailTo() {
1396 varun.gupt 316
    return this.emailTo;
317
  }
318
 
5864 rajveer 319
  public void setEmailTo(List<String> emailTo) {
1396 varun.gupt 320
    this.emailTo = emailTo;
321
  }
322
 
323
  public void unsetEmailTo() {
324
    this.emailTo = null;
325
  }
326
 
3430 rajveer 327
  /** Returns true if field emailTo is set (has been assigned a value) and false otherwise */
1396 varun.gupt 328
  public boolean isSetEmailTo() {
329
    return this.emailTo != null;
330
  }
331
 
332
  public void setEmailToIsSet(boolean value) {
333
    if (!value) {
334
      this.emailTo = null;
335
    }
336
  }
337
 
338
  public String getEmailFrom() {
339
    return this.emailFrom;
340
  }
341
 
3430 rajveer 342
  public void setEmailFrom(String emailFrom) {
1396 varun.gupt 343
    this.emailFrom = emailFrom;
344
  }
345
 
346
  public void unsetEmailFrom() {
347
    this.emailFrom = null;
348
  }
349
 
3430 rajveer 350
  /** Returns true if field emailFrom is set (has been assigned a value) and false otherwise */
1396 varun.gupt 351
  public boolean isSetEmailFrom() {
352
    return this.emailFrom != null;
353
  }
354
 
355
  public void setEmailFromIsSet(boolean value) {
356
    if (!value) {
357
      this.emailFrom = null;
358
    }
359
  }
360
 
361
  public String getSubject() {
362
    return this.subject;
363
  }
364
 
3430 rajveer 365
  public void setSubject(String subject) {
1396 varun.gupt 366
    this.subject = subject;
367
  }
368
 
369
  public void unsetSubject() {
370
    this.subject = null;
371
  }
372
 
3430 rajveer 373
  /** Returns true if field subject is set (has been assigned a value) and false otherwise */
1396 varun.gupt 374
  public boolean isSetSubject() {
375
    return this.subject != null;
376
  }
377
 
378
  public void setSubjectIsSet(boolean value) {
379
    if (!value) {
380
      this.subject = null;
381
    }
382
  }
383
 
384
  public String getBody() {
385
    return this.body;
386
  }
387
 
3430 rajveer 388
  public void setBody(String body) {
1396 varun.gupt 389
    this.body = body;
390
  }
391
 
392
  public void unsetBody() {
393
    this.body = null;
394
  }
395
 
3430 rajveer 396
  /** Returns true if field body is set (has been assigned a value) and false otherwise */
1396 varun.gupt 397
  public boolean isSetBody() {
398
    return this.body != null;
399
  }
400
 
401
  public void setBodyIsSet(boolean value) {
402
    if (!value) {
403
      this.body = null;
404
    }
405
  }
406
 
407
  public String getSource() {
408
    return this.source;
409
  }
410
 
3430 rajveer 411
  public void setSource(String source) {
1396 varun.gupt 412
    this.source = source;
413
  }
414
 
415
  public void unsetSource() {
416
    this.source = null;
417
  }
418
 
3430 rajveer 419
  /** Returns true if field source is set (has been assigned a value) and false otherwise */
1396 varun.gupt 420
  public boolean isSetSource() {
421
    return this.source != null;
422
  }
423
 
424
  public void setSourceIsSet(boolean value) {
425
    if (!value) {
426
      this.source = null;
427
    }
428
  }
429
 
430
  public String getEmailType() {
431
    return this.emailType;
432
  }
433
 
3430 rajveer 434
  public void setEmailType(String emailType) {
1396 varun.gupt 435
    this.emailType = emailType;
436
  }
437
 
438
  public void unsetEmailType() {
439
    this.emailType = null;
440
  }
441
 
3430 rajveer 442
  /** Returns true if field emailType is set (has been assigned a value) and false otherwise */
1396 varun.gupt 443
  public boolean isSetEmailType() {
444
    return this.emailType != null;
445
  }
446
 
447
  public void setEmailTypeIsSet(boolean value) {
448
    if (!value) {
449
      this.emailType = null;
450
    }
451
  }
452
 
453
  public boolean isStatus() {
454
    return this.status;
455
  }
456
 
3430 rajveer 457
  public void setStatus(boolean status) {
1396 varun.gupt 458
    this.status = status;
459
    setStatusIsSet(true);
460
  }
461
 
462
  public void unsetStatus() {
463
    __isset_bit_vector.clear(__STATUS_ISSET_ID);
464
  }
465
 
3430 rajveer 466
  /** Returns true if field status is set (has been assigned a value) and false otherwise */
1396 varun.gupt 467
  public boolean isSetStatus() {
468
    return __isset_bit_vector.get(__STATUS_ISSET_ID);
469
  }
470
 
471
  public void setStatusIsSet(boolean value) {
472
    __isset_bit_vector.set(__STATUS_ISSET_ID, value);
473
  }
474
 
475
  public long getTimestamp() {
476
    return this.timestamp;
477
  }
478
 
3430 rajveer 479
  public void setTimestamp(long timestamp) {
1396 varun.gupt 480
    this.timestamp = timestamp;
481
    setTimestampIsSet(true);
482
  }
483
 
484
  public void unsetTimestamp() {
485
    __isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);
486
  }
487
 
3430 rajveer 488
  /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
1396 varun.gupt 489
  public boolean isSetTimestamp() {
490
    return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);
491
  }
492
 
493
  public void setTimestampIsSet(boolean value) {
494
    __isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);
495
  }
496
 
5864 rajveer 497
  public int getCcSize() {
498
    return (this.cc == null) ? 0 : this.cc.size();
499
  }
500
 
501
  public java.util.Iterator<String> getCcIterator() {
502
    return (this.cc == null) ? null : this.cc.iterator();
503
  }
504
 
505
  public void addToCc(String elem) {
506
    if (this.cc == null) {
507
      this.cc = new ArrayList<String>();
508
    }
509
    this.cc.add(elem);
510
  }
511
 
512
  public List<String> getCc() {
513
    return this.cc;
514
  }
515
 
516
  public void setCc(List<String> cc) {
517
    this.cc = cc;
518
  }
519
 
520
  public void unsetCc() {
521
    this.cc = null;
522
  }
523
 
524
  /** Returns true if field cc is set (has been assigned a value) and false otherwise */
525
  public boolean isSetCc() {
526
    return this.cc != null;
527
  }
528
 
529
  public void setCcIsSet(boolean value) {
530
    if (!value) {
531
      this.cc = null;
532
    }
533
  }
534
 
535
  public int getBccSize() {
536
    return (this.bcc == null) ? 0 : this.bcc.size();
537
  }
538
 
539
  public java.util.Iterator<String> getBccIterator() {
540
    return (this.bcc == null) ? null : this.bcc.iterator();
541
  }
542
 
543
  public void addToBcc(String elem) {
544
    if (this.bcc == null) {
545
      this.bcc = new ArrayList<String>();
546
    }
547
    this.bcc.add(elem);
548
  }
549
 
550
  public List<String> getBcc() {
551
    return this.bcc;
552
  }
553
 
554
  public void setBcc(List<String> bcc) {
555
    this.bcc = bcc;
556
  }
557
 
558
  public void unsetBcc() {
559
    this.bcc = null;
560
  }
561
 
562
  /** Returns true if field bcc is set (has been assigned a value) and false otherwise */
563
  public boolean isSetBcc() {
564
    return this.bcc != null;
565
  }
566
 
567
  public void setBccIsSet(boolean value) {
568
    if (!value) {
569
      this.bcc = null;
570
    }
571
  }
572
 
1396 varun.gupt 573
  public void setFieldValue(_Fields field, Object value) {
574
    switch (field) {
1424 varun.gupt 575
    case ID:
576
      if (value == null) {
577
        unsetId();
578
      } else {
579
        setId((Long)value);
580
      }
581
      break;
582
 
1396 varun.gupt 583
    case EMAIL_TO:
584
      if (value == null) {
585
        unsetEmailTo();
586
      } else {
5864 rajveer 587
        setEmailTo((List<String>)value);
1396 varun.gupt 588
      }
589
      break;
590
 
591
    case EMAIL_FROM:
592
      if (value == null) {
593
        unsetEmailFrom();
594
      } else {
595
        setEmailFrom((String)value);
596
      }
597
      break;
598
 
599
    case SUBJECT:
600
      if (value == null) {
601
        unsetSubject();
602
      } else {
603
        setSubject((String)value);
604
      }
605
      break;
606
 
607
    case BODY:
608
      if (value == null) {
609
        unsetBody();
610
      } else {
611
        setBody((String)value);
612
      }
613
      break;
614
 
615
    case SOURCE:
616
      if (value == null) {
617
        unsetSource();
618
      } else {
619
        setSource((String)value);
620
      }
621
      break;
622
 
623
    case EMAIL_TYPE:
624
      if (value == null) {
625
        unsetEmailType();
626
      } else {
627
        setEmailType((String)value);
628
      }
629
      break;
630
 
631
    case STATUS:
632
      if (value == null) {
633
        unsetStatus();
634
      } else {
635
        setStatus((Boolean)value);
636
      }
637
      break;
638
 
639
    case TIMESTAMP:
640
      if (value == null) {
641
        unsetTimestamp();
642
      } else {
643
        setTimestamp((Long)value);
644
      }
645
      break;
646
 
5864 rajveer 647
    case CC:
648
      if (value == null) {
649
        unsetCc();
650
      } else {
651
        setCc((List<String>)value);
652
      }
653
      break;
654
 
655
    case BCC:
656
      if (value == null) {
657
        unsetBcc();
658
      } else {
659
        setBcc((List<String>)value);
660
      }
661
      break;
662
 
1396 varun.gupt 663
    }
664
  }
665
 
666
  public Object getFieldValue(_Fields field) {
667
    switch (field) {
1424 varun.gupt 668
    case ID:
3430 rajveer 669
      return Long.valueOf(getId());
1424 varun.gupt 670
 
1396 varun.gupt 671
    case EMAIL_TO:
672
      return getEmailTo();
673
 
674
    case EMAIL_FROM:
675
      return getEmailFrom();
676
 
677
    case SUBJECT:
678
      return getSubject();
679
 
680
    case BODY:
681
      return getBody();
682
 
683
    case SOURCE:
684
      return getSource();
685
 
686
    case EMAIL_TYPE:
687
      return getEmailType();
688
 
689
    case STATUS:
3430 rajveer 690
      return Boolean.valueOf(isStatus());
1396 varun.gupt 691
 
692
    case TIMESTAMP:
3430 rajveer 693
      return Long.valueOf(getTimestamp());
1396 varun.gupt 694
 
5864 rajveer 695
    case CC:
696
      return getCc();
697
 
698
    case BCC:
699
      return getBcc();
700
 
1396 varun.gupt 701
    }
702
    throw new IllegalStateException();
703
  }
704
 
3430 rajveer 705
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
706
  public boolean isSet(_Fields field) {
707
    if (field == null) {
708
      throw new IllegalArgumentException();
709
    }
1396 varun.gupt 710
 
711
    switch (field) {
1424 varun.gupt 712
    case ID:
713
      return isSetId();
1396 varun.gupt 714
    case EMAIL_TO:
715
      return isSetEmailTo();
716
    case EMAIL_FROM:
717
      return isSetEmailFrom();
718
    case SUBJECT:
719
      return isSetSubject();
720
    case BODY:
721
      return isSetBody();
722
    case SOURCE:
723
      return isSetSource();
724
    case EMAIL_TYPE:
725
      return isSetEmailType();
726
    case STATUS:
727
      return isSetStatus();
728
    case TIMESTAMP:
729
      return isSetTimestamp();
5864 rajveer 730
    case CC:
731
      return isSetCc();
732
    case BCC:
733
      return isSetBcc();
1396 varun.gupt 734
    }
735
    throw new IllegalStateException();
736
  }
737
 
738
  @Override
739
  public boolean equals(Object that) {
740
    if (that == null)
741
      return false;
742
    if (that instanceof UserEmail)
743
      return this.equals((UserEmail)that);
744
    return false;
745
  }
746
 
747
  public boolean equals(UserEmail that) {
748
    if (that == null)
749
      return false;
750
 
1424 varun.gupt 751
    boolean this_present_id = true;
752
    boolean that_present_id = true;
753
    if (this_present_id || that_present_id) {
754
      if (!(this_present_id && that_present_id))
755
        return false;
756
      if (this.id != that.id)
757
        return false;
758
    }
759
 
1396 varun.gupt 760
    boolean this_present_emailTo = true && this.isSetEmailTo();
761
    boolean that_present_emailTo = true && that.isSetEmailTo();
762
    if (this_present_emailTo || that_present_emailTo) {
763
      if (!(this_present_emailTo && that_present_emailTo))
764
        return false;
765
      if (!this.emailTo.equals(that.emailTo))
766
        return false;
767
    }
768
 
769
    boolean this_present_emailFrom = true && this.isSetEmailFrom();
770
    boolean that_present_emailFrom = true && that.isSetEmailFrom();
771
    if (this_present_emailFrom || that_present_emailFrom) {
772
      if (!(this_present_emailFrom && that_present_emailFrom))
773
        return false;
774
      if (!this.emailFrom.equals(that.emailFrom))
775
        return false;
776
    }
777
 
778
    boolean this_present_subject = true && this.isSetSubject();
779
    boolean that_present_subject = true && that.isSetSubject();
780
    if (this_present_subject || that_present_subject) {
781
      if (!(this_present_subject && that_present_subject))
782
        return false;
783
      if (!this.subject.equals(that.subject))
784
        return false;
785
    }
786
 
787
    boolean this_present_body = true && this.isSetBody();
788
    boolean that_present_body = true && that.isSetBody();
789
    if (this_present_body || that_present_body) {
790
      if (!(this_present_body && that_present_body))
791
        return false;
792
      if (!this.body.equals(that.body))
793
        return false;
794
    }
795
 
796
    boolean this_present_source = true && this.isSetSource();
797
    boolean that_present_source = true && that.isSetSource();
798
    if (this_present_source || that_present_source) {
799
      if (!(this_present_source && that_present_source))
800
        return false;
801
      if (!this.source.equals(that.source))
802
        return false;
803
    }
804
 
805
    boolean this_present_emailType = true && this.isSetEmailType();
806
    boolean that_present_emailType = true && that.isSetEmailType();
807
    if (this_present_emailType || that_present_emailType) {
808
      if (!(this_present_emailType && that_present_emailType))
809
        return false;
810
      if (!this.emailType.equals(that.emailType))
811
        return false;
812
    }
813
 
814
    boolean this_present_status = true;
815
    boolean that_present_status = true;
816
    if (this_present_status || that_present_status) {
817
      if (!(this_present_status && that_present_status))
818
        return false;
819
      if (this.status != that.status)
820
        return false;
821
    }
822
 
823
    boolean this_present_timestamp = true;
824
    boolean that_present_timestamp = true;
825
    if (this_present_timestamp || that_present_timestamp) {
826
      if (!(this_present_timestamp && that_present_timestamp))
827
        return false;
828
      if (this.timestamp != that.timestamp)
829
        return false;
830
    }
831
 
5864 rajveer 832
    boolean this_present_cc = true && this.isSetCc();
833
    boolean that_present_cc = true && that.isSetCc();
834
    if (this_present_cc || that_present_cc) {
835
      if (!(this_present_cc && that_present_cc))
836
        return false;
837
      if (!this.cc.equals(that.cc))
838
        return false;
839
    }
840
 
841
    boolean this_present_bcc = true && this.isSetBcc();
842
    boolean that_present_bcc = true && that.isSetBcc();
843
    if (this_present_bcc || that_present_bcc) {
844
      if (!(this_present_bcc && that_present_bcc))
845
        return false;
846
      if (!this.bcc.equals(that.bcc))
847
        return false;
848
    }
849
 
1396 varun.gupt 850
    return true;
851
  }
852
 
853
  @Override
854
  public int hashCode() {
855
    return 0;
856
  }
857
 
858
  public int compareTo(UserEmail other) {
859
    if (!getClass().equals(other.getClass())) {
860
      return getClass().getName().compareTo(other.getClass().getName());
861
    }
862
 
863
    int lastComparison = 0;
864
    UserEmail typedOther = (UserEmail)other;
865
 
3430 rajveer 866
    lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
1424 varun.gupt 867
    if (lastComparison != 0) {
868
      return lastComparison;
869
    }
3430 rajveer 870
    if (isSetId()) {
871
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
872
      if (lastComparison != 0) {
873
        return lastComparison;
874
      }
1424 varun.gupt 875
    }
3430 rajveer 876
    lastComparison = Boolean.valueOf(isSetEmailTo()).compareTo(typedOther.isSetEmailTo());
1396 varun.gupt 877
    if (lastComparison != 0) {
878
      return lastComparison;
879
    }
3430 rajveer 880
    if (isSetEmailTo()) {
881
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailTo, typedOther.emailTo);
882
      if (lastComparison != 0) {
883
        return lastComparison;
884
      }
1396 varun.gupt 885
    }
3430 rajveer 886
    lastComparison = Boolean.valueOf(isSetEmailFrom()).compareTo(typedOther.isSetEmailFrom());
1396 varun.gupt 887
    if (lastComparison != 0) {
888
      return lastComparison;
889
    }
3430 rajveer 890
    if (isSetEmailFrom()) {
891
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailFrom, typedOther.emailFrom);
892
      if (lastComparison != 0) {
893
        return lastComparison;
894
      }
1396 varun.gupt 895
    }
3430 rajveer 896
    lastComparison = Boolean.valueOf(isSetSubject()).compareTo(typedOther.isSetSubject());
1396 varun.gupt 897
    if (lastComparison != 0) {
898
      return lastComparison;
899
    }
3430 rajveer 900
    if (isSetSubject()) {
901
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.subject, typedOther.subject);
902
      if (lastComparison != 0) {
903
        return lastComparison;
904
      }
1396 varun.gupt 905
    }
3430 rajveer 906
    lastComparison = Boolean.valueOf(isSetBody()).compareTo(typedOther.isSetBody());
1396 varun.gupt 907
    if (lastComparison != 0) {
908
      return lastComparison;
909
    }
3430 rajveer 910
    if (isSetBody()) {
911
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.body, typedOther.body);
912
      if (lastComparison != 0) {
913
        return lastComparison;
914
      }
1396 varun.gupt 915
    }
3430 rajveer 916
    lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
1396 varun.gupt 917
    if (lastComparison != 0) {
918
      return lastComparison;
919
    }
3430 rajveer 920
    if (isSetSource()) {
921
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
922
      if (lastComparison != 0) {
923
        return lastComparison;
924
      }
1396 varun.gupt 925
    }
3430 rajveer 926
    lastComparison = Boolean.valueOf(isSetEmailType()).compareTo(typedOther.isSetEmailType());
1396 varun.gupt 927
    if (lastComparison != 0) {
928
      return lastComparison;
929
    }
3430 rajveer 930
    if (isSetEmailType()) {
931
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailType, typedOther.emailType);
932
      if (lastComparison != 0) {
933
        return lastComparison;
934
      }
1396 varun.gupt 935
    }
3430 rajveer 936
    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
1396 varun.gupt 937
    if (lastComparison != 0) {
938
      return lastComparison;
939
    }
3430 rajveer 940
    if (isSetStatus()) {
941
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
942
      if (lastComparison != 0) {
943
        return lastComparison;
944
      }
1396 varun.gupt 945
    }
3430 rajveer 946
    lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
1396 varun.gupt 947
    if (lastComparison != 0) {
948
      return lastComparison;
949
    }
3430 rajveer 950
    if (isSetTimestamp()) {
951
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
952
      if (lastComparison != 0) {
953
        return lastComparison;
954
      }
1396 varun.gupt 955
    }
5864 rajveer 956
    lastComparison = Boolean.valueOf(isSetCc()).compareTo(typedOther.isSetCc());
957
    if (lastComparison != 0) {
958
      return lastComparison;
959
    }
960
    if (isSetCc()) {
961
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cc, typedOther.cc);
962
      if (lastComparison != 0) {
963
        return lastComparison;
964
      }
965
    }
966
    lastComparison = Boolean.valueOf(isSetBcc()).compareTo(typedOther.isSetBcc());
967
    if (lastComparison != 0) {
968
      return lastComparison;
969
    }
970
    if (isSetBcc()) {
971
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bcc, typedOther.bcc);
972
      if (lastComparison != 0) {
973
        return lastComparison;
974
      }
975
    }
1396 varun.gupt 976
    return 0;
977
  }
978
 
3430 rajveer 979
  public _Fields fieldForId(int fieldId) {
980
    return _Fields.findByThriftId(fieldId);
981
  }
982
 
983
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
984
    org.apache.thrift.protocol.TField field;
1396 varun.gupt 985
    iprot.readStructBegin();
986
    while (true)
987
    {
988
      field = iprot.readFieldBegin();
3430 rajveer 989
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1396 varun.gupt 990
        break;
991
      }
3430 rajveer 992
      switch (field.id) {
993
        case 1: // ID
994
          if (field.type == org.apache.thrift.protocol.TType.I64) {
995
            this.id = iprot.readI64();
996
            setIdIsSet(true);
997
          } else { 
998
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
999
          }
1000
          break;
1001
        case 2: // EMAIL_TO
5864 rajveer 1002
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
1003
            {
1004
              org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
1005
              this.emailTo = new ArrayList<String>(_list8.size);
1006
              for (int _i9 = 0; _i9 < _list8.size; ++_i9)
1007
              {
1008
                String _elem10; // required
1009
                _elem10 = iprot.readString();
1010
                this.emailTo.add(_elem10);
1011
              }
1012
              iprot.readListEnd();
1013
            }
3430 rajveer 1014
          } else { 
1015
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1016
          }
1017
          break;
1018
        case 3: // EMAIL_FROM
1019
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1020
            this.emailFrom = iprot.readString();
1021
          } else { 
1022
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1023
          }
1024
          break;
1025
        case 4: // SUBJECT
1026
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1027
            this.subject = iprot.readString();
1028
          } else { 
1029
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1030
          }
1031
          break;
1032
        case 5: // BODY
1033
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1034
            this.body = iprot.readString();
1035
          } else { 
1036
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1037
          }
1038
          break;
1039
        case 6: // SOURCE
1040
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1041
            this.source = iprot.readString();
1042
          } else { 
1043
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1044
          }
1045
          break;
1046
        case 7: // EMAIL_TYPE
1047
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1048
            this.emailType = iprot.readString();
1049
          } else { 
1050
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1051
          }
1052
          break;
1053
        case 8: // STATUS
1054
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1055
            this.status = iprot.readBool();
1056
            setStatusIsSet(true);
1057
          } else { 
1058
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1059
          }
1060
          break;
1061
        case 9: // TIMESTAMP
1062
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1063
            this.timestamp = iprot.readI64();
1064
            setTimestampIsSet(true);
1065
          } else { 
1066
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1067
          }
1068
          break;
5864 rajveer 1069
        case 10: // CC
1070
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
1071
            {
1072
              org.apache.thrift.protocol.TList _list11 = iprot.readListBegin();
1073
              this.cc = new ArrayList<String>(_list11.size);
1074
              for (int _i12 = 0; _i12 < _list11.size; ++_i12)
1075
              {
1076
                String _elem13; // required
1077
                _elem13 = iprot.readString();
1078
                this.cc.add(_elem13);
1079
              }
1080
              iprot.readListEnd();
1081
            }
1082
          } else { 
1083
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1084
          }
1085
          break;
1086
        case 11: // BCC
1087
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
1088
            {
1089
              org.apache.thrift.protocol.TList _list14 = iprot.readListBegin();
1090
              this.bcc = new ArrayList<String>(_list14.size);
1091
              for (int _i15 = 0; _i15 < _list14.size; ++_i15)
1092
              {
1093
                String _elem16; // required
1094
                _elem16 = iprot.readString();
1095
                this.bcc.add(_elem16);
1096
              }
1097
              iprot.readListEnd();
1098
            }
1099
          } else { 
1100
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1101
          }
1102
          break;
3430 rajveer 1103
        default:
1104
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1396 varun.gupt 1105
      }
3430 rajveer 1106
      iprot.readFieldEnd();
1396 varun.gupt 1107
    }
1108
    iprot.readStructEnd();
1109
    validate();
1110
  }
1111
 
3430 rajveer 1112
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1396 varun.gupt 1113
    validate();
1114
 
1115
    oprot.writeStructBegin(STRUCT_DESC);
1424 varun.gupt 1116
    oprot.writeFieldBegin(ID_FIELD_DESC);
1117
    oprot.writeI64(this.id);
1118
    oprot.writeFieldEnd();
1396 varun.gupt 1119
    if (this.emailTo != null) {
1120
      oprot.writeFieldBegin(EMAIL_TO_FIELD_DESC);
5864 rajveer 1121
      {
1122
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.emailTo.size()));
1123
        for (String _iter17 : this.emailTo)
1124
        {
1125
          oprot.writeString(_iter17);
1126
        }
1127
        oprot.writeListEnd();
1128
      }
1396 varun.gupt 1129
      oprot.writeFieldEnd();
1130
    }
1131
    if (this.emailFrom != null) {
1132
      oprot.writeFieldBegin(EMAIL_FROM_FIELD_DESC);
1133
      oprot.writeString(this.emailFrom);
1134
      oprot.writeFieldEnd();
1135
    }
1136
    if (this.subject != null) {
1137
      oprot.writeFieldBegin(SUBJECT_FIELD_DESC);
1138
      oprot.writeString(this.subject);
1139
      oprot.writeFieldEnd();
1140
    }
1141
    if (this.body != null) {
1142
      oprot.writeFieldBegin(BODY_FIELD_DESC);
1143
      oprot.writeString(this.body);
1144
      oprot.writeFieldEnd();
1145
    }
1146
    if (this.source != null) {
1147
      oprot.writeFieldBegin(SOURCE_FIELD_DESC);
1148
      oprot.writeString(this.source);
1149
      oprot.writeFieldEnd();
1150
    }
1151
    if (this.emailType != null) {
1152
      oprot.writeFieldBegin(EMAIL_TYPE_FIELD_DESC);
1153
      oprot.writeString(this.emailType);
1154
      oprot.writeFieldEnd();
1155
    }
1156
    oprot.writeFieldBegin(STATUS_FIELD_DESC);
1157
    oprot.writeBool(this.status);
1158
    oprot.writeFieldEnd();
1159
    oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
1160
    oprot.writeI64(this.timestamp);
1161
    oprot.writeFieldEnd();
5864 rajveer 1162
    if (this.cc != null) {
1163
      oprot.writeFieldBegin(CC_FIELD_DESC);
1164
      {
1165
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.cc.size()));
1166
        for (String _iter18 : this.cc)
1167
        {
1168
          oprot.writeString(_iter18);
1169
        }
1170
        oprot.writeListEnd();
1171
      }
1172
      oprot.writeFieldEnd();
1173
    }
1174
    if (this.bcc != null) {
1175
      oprot.writeFieldBegin(BCC_FIELD_DESC);
1176
      {
1177
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.bcc.size()));
1178
        for (String _iter19 : this.bcc)
1179
        {
1180
          oprot.writeString(_iter19);
1181
        }
1182
        oprot.writeListEnd();
1183
      }
1184
      oprot.writeFieldEnd();
1185
    }
1396 varun.gupt 1186
    oprot.writeFieldStop();
1187
    oprot.writeStructEnd();
1188
  }
1189
 
1190
  @Override
1191
  public String toString() {
1192
    StringBuilder sb = new StringBuilder("UserEmail(");
1193
    boolean first = true;
1194
 
1424 varun.gupt 1195
    sb.append("id:");
1196
    sb.append(this.id);
1197
    first = false;
1198
    if (!first) sb.append(", ");
1396 varun.gupt 1199
    sb.append("emailTo:");
1200
    if (this.emailTo == null) {
1201
      sb.append("null");
1202
    } else {
1203
      sb.append(this.emailTo);
1204
    }
1205
    first = false;
1206
    if (!first) sb.append(", ");
1207
    sb.append("emailFrom:");
1208
    if (this.emailFrom == null) {
1209
      sb.append("null");
1210
    } else {
1211
      sb.append(this.emailFrom);
1212
    }
1213
    first = false;
1214
    if (!first) sb.append(", ");
1215
    sb.append("subject:");
1216
    if (this.subject == null) {
1217
      sb.append("null");
1218
    } else {
1219
      sb.append(this.subject);
1220
    }
1221
    first = false;
1222
    if (!first) sb.append(", ");
1223
    sb.append("body:");
1224
    if (this.body == null) {
1225
      sb.append("null");
1226
    } else {
1227
      sb.append(this.body);
1228
    }
1229
    first = false;
1230
    if (!first) sb.append(", ");
1231
    sb.append("source:");
1232
    if (this.source == null) {
1233
      sb.append("null");
1234
    } else {
1235
      sb.append(this.source);
1236
    }
1237
    first = false;
1238
    if (!first) sb.append(", ");
1239
    sb.append("emailType:");
1240
    if (this.emailType == null) {
1241
      sb.append("null");
1242
    } else {
1243
      sb.append(this.emailType);
1244
    }
1245
    first = false;
1246
    if (!first) sb.append(", ");
1247
    sb.append("status:");
1248
    sb.append(this.status);
1249
    first = false;
1250
    if (!first) sb.append(", ");
1251
    sb.append("timestamp:");
1252
    sb.append(this.timestamp);
1253
    first = false;
5864 rajveer 1254
    if (!first) sb.append(", ");
1255
    sb.append("cc:");
1256
    if (this.cc == null) {
1257
      sb.append("null");
1258
    } else {
1259
      sb.append(this.cc);
1260
    }
1261
    first = false;
1262
    if (!first) sb.append(", ");
1263
    sb.append("bcc:");
1264
    if (this.bcc == null) {
1265
      sb.append("null");
1266
    } else {
1267
      sb.append(this.bcc);
1268
    }
1269
    first = false;
1396 varun.gupt 1270
    sb.append(")");
1271
    return sb.toString();
1272
  }
1273
 
3430 rajveer 1274
  public void validate() throws org.apache.thrift.TException {
1396 varun.gupt 1275
    // check for required fields
1276
  }
1277
 
3430 rajveer 1278
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1279
    try {
1280
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1281
    } catch (org.apache.thrift.TException te) {
1282
      throw new java.io.IOException(te);
1283
    }
1284
  }
1285
 
1286
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1287
    try {
1288
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
1289
      __isset_bit_vector = new BitSet(1);
1290
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1291
    } catch (org.apache.thrift.TException te) {
1292
      throw new java.io.IOException(te);
1293
    }
1294
  }
1295
 
1396 varun.gupt 1296
}
1297