Subversion Repositories SmartDukaan

Rev

Rev 1424 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1424 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.utils;
6
package in.shop2020.utils;
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 UserEmail implements TBase<UserEmail._Fields>, java.io.Serializable, Cloneable, Comparable<UserEmail> {
23
public class UserEmail implements org.apache.thrift.TBase<UserEmail, UserEmail._Fields>, java.io.Serializable, Cloneable {
27
  private static final TStruct STRUCT_DESC = new TStruct("UserEmail");
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UserEmail");
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 EMAIL_TO_FIELD_DESC = new TField("emailTo", TType.STRING, (short)2);
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.STRING, (short)2);
31
  private static final TField EMAIL_FROM_FIELD_DESC = new TField("emailFrom", TType.STRING, (short)3);
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);
32
  private static final TField SUBJECT_FIELD_DESC = new TField("subject", TType.STRING, (short)4);
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);
33
  private static final TField BODY_FIELD_DESC = new TField("body", TType.STRING, (short)5);
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);
34
  private static final TField SOURCE_FIELD_DESC = new TField("source", TType.STRING, (short)6);
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);
35
  private static final TField EMAIL_TYPE_FIELD_DESC = new TField("emailType", TType.STRING, (short)7);
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);
36
  private static final TField STATUS_FIELD_DESC = new TField("status", TType.BOOL, (short)8);
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);
37
  private static final TField TIMESTAMP_FIELD_DESC = new TField("timestamp", TType.I64, (short)9);
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);
38
 
35
 
39
  private long id;
36
  private long id; // required
40
  private String emailTo;
37
  private String emailTo; // required
41
  private String emailFrom;
38
  private String emailFrom; // required
42
  private String subject;
39
  private String subject; // required
43
  private String body;
40
  private String body; // required
44
  private String source;
41
  private String source; // required
45
  private String emailType;
42
  private String emailType; // required
46
  private boolean status;
43
  private boolean status; // required
47
  private long timestamp;
44
  private long timestamp; // required
48
 
45
 
49
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
46
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
50
  public enum _Fields implements TFieldIdEnum {
47
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
51
    ID((short)1, "id"),
48
    ID((short)1, "id"),
52
    EMAIL_TO((short)2, "emailTo"),
49
    EMAIL_TO((short)2, "emailTo"),
53
    EMAIL_FROM((short)3, "emailFrom"),
50
    EMAIL_FROM((short)3, "emailFrom"),
54
    SUBJECT((short)4, "subject"),
51
    SUBJECT((short)4, "subject"),
55
    BODY((short)5, "body"),
52
    BODY((short)5, "body"),
56
    SOURCE((short)6, "source"),
53
    SOURCE((short)6, "source"),
57
    EMAIL_TYPE((short)7, "emailType"),
54
    EMAIL_TYPE((short)7, "emailType"),
58
    STATUS((short)8, "status"),
55
    STATUS((short)8, "status"),
59
    TIMESTAMP((short)9, "timestamp");
56
    TIMESTAMP((short)9, "timestamp");
60
 
57
 
61
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
62
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
58
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
63
 
59
 
64
    static {
60
    static {
65
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
61
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
66
        byId.put((int)field._thriftId, field);
-
 
67
        byName.put(field.getFieldName(), field);
62
        byName.put(field.getFieldName(), field);
68
      }
63
      }
69
    }
64
    }
70
 
65
 
71
    /**
66
    /**
72
     * Find the _Fields constant that matches fieldId, or null if its not found.
67
     * Find the _Fields constant that matches fieldId, or null if its not found.
73
     */
68
     */
74
    public static _Fields findByThriftId(int fieldId) {
69
    public static _Fields findByThriftId(int fieldId) {
75
      return byId.get(fieldId);
70
      switch(fieldId) {
-
 
71
        case 1: // ID
-
 
72
          return ID;
-
 
73
        case 2: // EMAIL_TO
-
 
74
          return EMAIL_TO;
-
 
75
        case 3: // EMAIL_FROM
-
 
76
          return EMAIL_FROM;
-
 
77
        case 4: // SUBJECT
-
 
78
          return SUBJECT;
-
 
79
        case 5: // BODY
-
 
80
          return BODY;
-
 
81
        case 6: // SOURCE
-
 
82
          return SOURCE;
-
 
83
        case 7: // EMAIL_TYPE
-
 
84
          return EMAIL_TYPE;
-
 
85
        case 8: // STATUS
-
 
86
          return STATUS;
-
 
87
        case 9: // TIMESTAMP
-
 
88
          return TIMESTAMP;
-
 
89
        default:
-
 
90
          return null;
-
 
91
      }
76
    }
92
    }
77
 
93
 
78
    /**
94
    /**
79
     * Find the _Fields constant that matches fieldId, throwing an exception
95
     * Find the _Fields constant that matches fieldId, throwing an exception
80
     * if it is not found.
96
     * if it is not found.
Line 113... Line 129...
113
  private static final int __ID_ISSET_ID = 0;
129
  private static final int __ID_ISSET_ID = 0;
114
  private static final int __STATUS_ISSET_ID = 1;
130
  private static final int __STATUS_ISSET_ID = 1;
115
  private static final int __TIMESTAMP_ISSET_ID = 2;
131
  private static final int __TIMESTAMP_ISSET_ID = 2;
116
  private BitSet __isset_bit_vector = new BitSet(3);
132
  private BitSet __isset_bit_vector = new BitSet(3);
117
 
133
 
118
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
134
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
119
    put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
-
 
120
        new FieldValueMetaData(TType.I64)));
-
 
121
    put(_Fields.EMAIL_TO, new FieldMetaData("emailTo", TFieldRequirementType.DEFAULT, 
-
 
122
        new FieldValueMetaData(TType.STRING)));
-
 
123
    put(_Fields.EMAIL_FROM, new FieldMetaData("emailFrom", TFieldRequirementType.DEFAULT, 
-
 
124
        new FieldValueMetaData(TType.STRING)));
-
 
125
    put(_Fields.SUBJECT, new FieldMetaData("subject", TFieldRequirementType.DEFAULT, 
-
 
126
        new FieldValueMetaData(TType.STRING)));
-
 
127
    put(_Fields.BODY, new FieldMetaData("body", TFieldRequirementType.DEFAULT, 
-
 
128
        new FieldValueMetaData(TType.STRING)));
-
 
129
    put(_Fields.SOURCE, new FieldMetaData("source", TFieldRequirementType.DEFAULT, 
-
 
130
        new FieldValueMetaData(TType.STRING)));
-
 
131
    put(_Fields.EMAIL_TYPE, new FieldMetaData("emailType", TFieldRequirementType.DEFAULT, 
-
 
132
        new FieldValueMetaData(TType.STRING)));
-
 
133
    put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT, 
-
 
134
        new FieldValueMetaData(TType.BOOL)));
-
 
135
    put(_Fields.TIMESTAMP, new FieldMetaData("timestamp", TFieldRequirementType.DEFAULT, 
-
 
136
        new FieldValueMetaData(TType.I64)));
-
 
137
  }});
-
 
138
 
-
 
139
  static {
135
  static {
-
 
136
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
137
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
138
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
139
    tmpMap.put(_Fields.EMAIL_TO, new org.apache.thrift.meta_data.FieldMetaData("emailTo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
140
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
141
    tmpMap.put(_Fields.EMAIL_FROM, new org.apache.thrift.meta_data.FieldMetaData("emailFrom", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
142
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
143
    tmpMap.put(_Fields.SUBJECT, new org.apache.thrift.meta_data.FieldMetaData("subject", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
144
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
145
    tmpMap.put(_Fields.BODY, new org.apache.thrift.meta_data.FieldMetaData("body", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
146
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
147
    tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
148
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
149
    tmpMap.put(_Fields.EMAIL_TYPE, new org.apache.thrift.meta_data.FieldMetaData("emailType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
150
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
151
    tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
152
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
153
    tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
154
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
155
    metaDataMap = Collections.unmodifiableMap(tmpMap);
140
    FieldMetaData.addStructMetaDataMap(UserEmail.class, metaDataMap);
156
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(UserEmail.class, metaDataMap);
141
  }
157
  }
142
 
158
 
143
  public UserEmail() {
159
  public UserEmail() {
144
  }
160
  }
145
 
161
 
Line 200... Line 216...
200
 
216
 
201
  public UserEmail deepCopy() {
217
  public UserEmail deepCopy() {
202
    return new UserEmail(this);
218
    return new UserEmail(this);
203
  }
219
  }
204
 
220
 
205
  @Deprecated
221
  @Override
206
  public UserEmail clone() {
222
  public void clear() {
-
 
223
    setIdIsSet(false);
-
 
224
    this.id = 0;
-
 
225
    this.emailTo = null;
-
 
226
    this.emailFrom = null;
-
 
227
    this.subject = null;
-
 
228
    this.body = null;
-
 
229
    this.source = null;
-
 
230
    this.emailType = null;
207
    return new UserEmail(this);
231
    setStatusIsSet(false);
-
 
232
    this.status = false;
-
 
233
    setTimestampIsSet(false);
-
 
234
    this.timestamp = 0;
208
  }
235
  }
209
 
236
 
210
  public long getId() {
237
  public long getId() {
211
    return this.id;
238
    return this.id;
212
  }
239
  }
213
 
240
 
214
  public UserEmail setId(long id) {
241
  public void setId(long id) {
215
    this.id = id;
242
    this.id = id;
216
    setIdIsSet(true);
243
    setIdIsSet(true);
217
    return this;
-
 
218
  }
244
  }
219
 
245
 
220
  public void unsetId() {
246
  public void unsetId() {
221
    __isset_bit_vector.clear(__ID_ISSET_ID);
247
    __isset_bit_vector.clear(__ID_ISSET_ID);
222
  }
248
  }
223
 
249
 
224
  /** Returns true if field id is set (has been asigned a value) and false otherwise */
250
  /** Returns true if field id is set (has been assigned a value) and false otherwise */
225
  public boolean isSetId() {
251
  public boolean isSetId() {
226
    return __isset_bit_vector.get(__ID_ISSET_ID);
252
    return __isset_bit_vector.get(__ID_ISSET_ID);
227
  }
253
  }
228
 
254
 
229
  public void setIdIsSet(boolean value) {
255
  public void setIdIsSet(boolean value) {
Line 232... Line 258...
232
 
258
 
233
  public String getEmailTo() {
259
  public String getEmailTo() {
234
    return this.emailTo;
260
    return this.emailTo;
235
  }
261
  }
236
 
262
 
237
  public UserEmail setEmailTo(String emailTo) {
263
  public void setEmailTo(String emailTo) {
238
    this.emailTo = emailTo;
264
    this.emailTo = emailTo;
239
    return this;
-
 
240
  }
265
  }
241
 
266
 
242
  public void unsetEmailTo() {
267
  public void unsetEmailTo() {
243
    this.emailTo = null;
268
    this.emailTo = null;
244
  }
269
  }
245
 
270
 
246
  /** Returns true if field emailTo is set (has been asigned a value) and false otherwise */
271
  /** Returns true if field emailTo is set (has been assigned a value) and false otherwise */
247
  public boolean isSetEmailTo() {
272
  public boolean isSetEmailTo() {
248
    return this.emailTo != null;
273
    return this.emailTo != null;
249
  }
274
  }
250
 
275
 
251
  public void setEmailToIsSet(boolean value) {
276
  public void setEmailToIsSet(boolean value) {
Line 256... Line 281...
256
 
281
 
257
  public String getEmailFrom() {
282
  public String getEmailFrom() {
258
    return this.emailFrom;
283
    return this.emailFrom;
259
  }
284
  }
260
 
285
 
261
  public UserEmail setEmailFrom(String emailFrom) {
286
  public void setEmailFrom(String emailFrom) {
262
    this.emailFrom = emailFrom;
287
    this.emailFrom = emailFrom;
263
    return this;
-
 
264
  }
288
  }
265
 
289
 
266
  public void unsetEmailFrom() {
290
  public void unsetEmailFrom() {
267
    this.emailFrom = null;
291
    this.emailFrom = null;
268
  }
292
  }
269
 
293
 
270
  /** Returns true if field emailFrom is set (has been asigned a value) and false otherwise */
294
  /** Returns true if field emailFrom is set (has been assigned a value) and false otherwise */
271
  public boolean isSetEmailFrom() {
295
  public boolean isSetEmailFrom() {
272
    return this.emailFrom != null;
296
    return this.emailFrom != null;
273
  }
297
  }
274
 
298
 
275
  public void setEmailFromIsSet(boolean value) {
299
  public void setEmailFromIsSet(boolean value) {
Line 280... Line 304...
280
 
304
 
281
  public String getSubject() {
305
  public String getSubject() {
282
    return this.subject;
306
    return this.subject;
283
  }
307
  }
284
 
308
 
285
  public UserEmail setSubject(String subject) {
309
  public void setSubject(String subject) {
286
    this.subject = subject;
310
    this.subject = subject;
287
    return this;
-
 
288
  }
311
  }
289
 
312
 
290
  public void unsetSubject() {
313
  public void unsetSubject() {
291
    this.subject = null;
314
    this.subject = null;
292
  }
315
  }
293
 
316
 
294
  /** Returns true if field subject is set (has been asigned a value) and false otherwise */
317
  /** Returns true if field subject is set (has been assigned a value) and false otherwise */
295
  public boolean isSetSubject() {
318
  public boolean isSetSubject() {
296
    return this.subject != null;
319
    return this.subject != null;
297
  }
320
  }
298
 
321
 
299
  public void setSubjectIsSet(boolean value) {
322
  public void setSubjectIsSet(boolean value) {
Line 304... Line 327...
304
 
327
 
305
  public String getBody() {
328
  public String getBody() {
306
    return this.body;
329
    return this.body;
307
  }
330
  }
308
 
331
 
309
  public UserEmail setBody(String body) {
332
  public void setBody(String body) {
310
    this.body = body;
333
    this.body = body;
311
    return this;
-
 
312
  }
334
  }
313
 
335
 
314
  public void unsetBody() {
336
  public void unsetBody() {
315
    this.body = null;
337
    this.body = null;
316
  }
338
  }
317
 
339
 
318
  /** Returns true if field body is set (has been asigned a value) and false otherwise */
340
  /** Returns true if field body is set (has been assigned a value) and false otherwise */
319
  public boolean isSetBody() {
341
  public boolean isSetBody() {
320
    return this.body != null;
342
    return this.body != null;
321
  }
343
  }
322
 
344
 
323
  public void setBodyIsSet(boolean value) {
345
  public void setBodyIsSet(boolean value) {
Line 328... Line 350...
328
 
350
 
329
  public String getSource() {
351
  public String getSource() {
330
    return this.source;
352
    return this.source;
331
  }
353
  }
332
 
354
 
333
  public UserEmail setSource(String source) {
355
  public void setSource(String source) {
334
    this.source = source;
356
    this.source = source;
335
    return this;
-
 
336
  }
357
  }
337
 
358
 
338
  public void unsetSource() {
359
  public void unsetSource() {
339
    this.source = null;
360
    this.source = null;
340
  }
361
  }
341
 
362
 
342
  /** Returns true if field source is set (has been asigned a value) and false otherwise */
363
  /** Returns true if field source is set (has been assigned a value) and false otherwise */
343
  public boolean isSetSource() {
364
  public boolean isSetSource() {
344
    return this.source != null;
365
    return this.source != null;
345
  }
366
  }
346
 
367
 
347
  public void setSourceIsSet(boolean value) {
368
  public void setSourceIsSet(boolean value) {
Line 352... Line 373...
352
 
373
 
353
  public String getEmailType() {
374
  public String getEmailType() {
354
    return this.emailType;
375
    return this.emailType;
355
  }
376
  }
356
 
377
 
357
  public UserEmail setEmailType(String emailType) {
378
  public void setEmailType(String emailType) {
358
    this.emailType = emailType;
379
    this.emailType = emailType;
359
    return this;
-
 
360
  }
380
  }
361
 
381
 
362
  public void unsetEmailType() {
382
  public void unsetEmailType() {
363
    this.emailType = null;
383
    this.emailType = null;
364
  }
384
  }
365
 
385
 
366
  /** Returns true if field emailType is set (has been asigned a value) and false otherwise */
386
  /** Returns true if field emailType is set (has been assigned a value) and false otherwise */
367
  public boolean isSetEmailType() {
387
  public boolean isSetEmailType() {
368
    return this.emailType != null;
388
    return this.emailType != null;
369
  }
389
  }
370
 
390
 
371
  public void setEmailTypeIsSet(boolean value) {
391
  public void setEmailTypeIsSet(boolean value) {
Line 376... Line 396...
376
 
396
 
377
  public boolean isStatus() {
397
  public boolean isStatus() {
378
    return this.status;
398
    return this.status;
379
  }
399
  }
380
 
400
 
381
  public UserEmail setStatus(boolean status) {
401
  public void setStatus(boolean status) {
382
    this.status = status;
402
    this.status = status;
383
    setStatusIsSet(true);
403
    setStatusIsSet(true);
384
    return this;
-
 
385
  }
404
  }
386
 
405
 
387
  public void unsetStatus() {
406
  public void unsetStatus() {
388
    __isset_bit_vector.clear(__STATUS_ISSET_ID);
407
    __isset_bit_vector.clear(__STATUS_ISSET_ID);
389
  }
408
  }
390
 
409
 
391
  /** Returns true if field status is set (has been asigned a value) and false otherwise */
410
  /** Returns true if field status is set (has been assigned a value) and false otherwise */
392
  public boolean isSetStatus() {
411
  public boolean isSetStatus() {
393
    return __isset_bit_vector.get(__STATUS_ISSET_ID);
412
    return __isset_bit_vector.get(__STATUS_ISSET_ID);
394
  }
413
  }
395
 
414
 
396
  public void setStatusIsSet(boolean value) {
415
  public void setStatusIsSet(boolean value) {
Line 399... Line 418...
399
 
418
 
400
  public long getTimestamp() {
419
  public long getTimestamp() {
401
    return this.timestamp;
420
    return this.timestamp;
402
  }
421
  }
403
 
422
 
404
  public UserEmail setTimestamp(long timestamp) {
423
  public void setTimestamp(long timestamp) {
405
    this.timestamp = timestamp;
424
    this.timestamp = timestamp;
406
    setTimestampIsSet(true);
425
    setTimestampIsSet(true);
407
    return this;
-
 
408
  }
426
  }
409
 
427
 
410
  public void unsetTimestamp() {
428
  public void unsetTimestamp() {
411
    __isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);
429
    __isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);
412
  }
430
  }
413
 
431
 
414
  /** Returns true if field timestamp is set (has been asigned a value) and false otherwise */
432
  /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
415
  public boolean isSetTimestamp() {
433
  public boolean isSetTimestamp() {
416
    return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);
434
    return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);
417
  }
435
  }
418
 
436
 
419
  public void setTimestampIsSet(boolean value) {
437
  public void setTimestampIsSet(boolean value) {
Line 495... Line 513...
495
      break;
513
      break;
496
 
514
 
497
    }
515
    }
498
  }
516
  }
499
 
517
 
500
  public void setFieldValue(int fieldID, Object value) {
-
 
501
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
502
  }
-
 
503
 
-
 
504
  public Object getFieldValue(_Fields field) {
518
  public Object getFieldValue(_Fields field) {
505
    switch (field) {
519
    switch (field) {
506
    case ID:
520
    case ID:
507
      return new Long(getId());
521
      return Long.valueOf(getId());
508
 
522
 
509
    case EMAIL_TO:
523
    case EMAIL_TO:
510
      return getEmailTo();
524
      return getEmailTo();
511
 
525
 
512
    case EMAIL_FROM:
526
    case EMAIL_FROM:
Line 523... Line 537...
523
 
537
 
524
    case EMAIL_TYPE:
538
    case EMAIL_TYPE:
525
      return getEmailType();
539
      return getEmailType();
526
 
540
 
527
    case STATUS:
541
    case STATUS:
528
      return new Boolean(isStatus());
542
      return Boolean.valueOf(isStatus());
529
 
543
 
530
    case TIMESTAMP:
544
    case TIMESTAMP:
531
      return new Long(getTimestamp());
545
      return Long.valueOf(getTimestamp());
532
 
546
 
533
    }
547
    }
534
    throw new IllegalStateException();
548
    throw new IllegalStateException();
535
  }
549
  }
536
 
550
 
537
  public Object getFieldValue(int fieldId) {
-
 
538
    return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
539
  }
-
 
540
 
-
 
541
  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
551
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
542
  public boolean isSet(_Fields field) {
552
  public boolean isSet(_Fields field) {
-
 
553
    if (field == null) {
-
 
554
      throw new IllegalArgumentException();
-
 
555
    }
-
 
556
 
543
    switch (field) {
557
    switch (field) {
544
    case ID:
558
    case ID:
545
      return isSetId();
559
      return isSetId();
546
    case EMAIL_TO:
560
    case EMAIL_TO:
547
      return isSetEmailTo();
561
      return isSetEmailTo();
Line 561... Line 575...
561
      return isSetTimestamp();
575
      return isSetTimestamp();
562
    }
576
    }
563
    throw new IllegalStateException();
577
    throw new IllegalStateException();
564
  }
578
  }
565
 
579
 
566
  public boolean isSet(int fieldID) {
-
 
567
    return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
568
  }
-
 
569
 
-
 
570
  @Override
580
  @Override
571
  public boolean equals(Object that) {
581
  public boolean equals(Object that) {
572
    if (that == null)
582
    if (that == null)
573
      return false;
583
      return false;
574
    if (that instanceof UserEmail)
584
    if (that instanceof UserEmail)
Line 675... Line 685...
675
    }
685
    }
676
 
686
 
677
    int lastComparison = 0;
687
    int lastComparison = 0;
678
    UserEmail typedOther = (UserEmail)other;
688
    UserEmail typedOther = (UserEmail)other;
679
 
689
 
680
    lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());
690
    lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
681
    if (lastComparison != 0) {
691
    if (lastComparison != 0) {
682
      return lastComparison;
692
      return lastComparison;
683
    }
693
    }
-
 
694
    if (isSetId()) {
684
    lastComparison = TBaseHelper.compareTo(id, typedOther.id);
695
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
685
    if (lastComparison != 0) {
696
      if (lastComparison != 0) {
686
      return lastComparison;
697
        return lastComparison;
-
 
698
      }
687
    }
699
    }
688
    lastComparison = Boolean.valueOf(isSetEmailTo()).compareTo(isSetEmailTo());
700
    lastComparison = Boolean.valueOf(isSetEmailTo()).compareTo(typedOther.isSetEmailTo());
689
    if (lastComparison != 0) {
701
    if (lastComparison != 0) {
690
      return lastComparison;
702
      return lastComparison;
691
    }
703
    }
-
 
704
    if (isSetEmailTo()) {
692
    lastComparison = TBaseHelper.compareTo(emailTo, typedOther.emailTo);
705
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailTo, typedOther.emailTo);
693
    if (lastComparison != 0) {
706
      if (lastComparison != 0) {
694
      return lastComparison;
707
        return lastComparison;
-
 
708
      }
695
    }
709
    }
696
    lastComparison = Boolean.valueOf(isSetEmailFrom()).compareTo(isSetEmailFrom());
710
    lastComparison = Boolean.valueOf(isSetEmailFrom()).compareTo(typedOther.isSetEmailFrom());
697
    if (lastComparison != 0) {
711
    if (lastComparison != 0) {
698
      return lastComparison;
712
      return lastComparison;
699
    }
713
    }
-
 
714
    if (isSetEmailFrom()) {
700
    lastComparison = TBaseHelper.compareTo(emailFrom, typedOther.emailFrom);
715
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailFrom, typedOther.emailFrom);
701
    if (lastComparison != 0) {
716
      if (lastComparison != 0) {
702
      return lastComparison;
717
        return lastComparison;
-
 
718
      }
703
    }
719
    }
704
    lastComparison = Boolean.valueOf(isSetSubject()).compareTo(isSetSubject());
720
    lastComparison = Boolean.valueOf(isSetSubject()).compareTo(typedOther.isSetSubject());
705
    if (lastComparison != 0) {
721
    if (lastComparison != 0) {
706
      return lastComparison;
722
      return lastComparison;
707
    }
723
    }
-
 
724
    if (isSetSubject()) {
708
    lastComparison = TBaseHelper.compareTo(subject, typedOther.subject);
725
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.subject, typedOther.subject);
709
    if (lastComparison != 0) {
726
      if (lastComparison != 0) {
710
      return lastComparison;
727
        return lastComparison;
-
 
728
      }
711
    }
729
    }
712
    lastComparison = Boolean.valueOf(isSetBody()).compareTo(isSetBody());
730
    lastComparison = Boolean.valueOf(isSetBody()).compareTo(typedOther.isSetBody());
713
    if (lastComparison != 0) {
731
    if (lastComparison != 0) {
714
      return lastComparison;
732
      return lastComparison;
715
    }
733
    }
-
 
734
    if (isSetBody()) {
716
    lastComparison = TBaseHelper.compareTo(body, typedOther.body);
735
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.body, typedOther.body);
717
    if (lastComparison != 0) {
736
      if (lastComparison != 0) {
718
      return lastComparison;
737
        return lastComparison;
-
 
738
      }
719
    }
739
    }
720
    lastComparison = Boolean.valueOf(isSetSource()).compareTo(isSetSource());
740
    lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
721
    if (lastComparison != 0) {
741
    if (lastComparison != 0) {
722
      return lastComparison;
742
      return lastComparison;
723
    }
743
    }
-
 
744
    if (isSetSource()) {
724
    lastComparison = TBaseHelper.compareTo(source, typedOther.source);
745
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
725
    if (lastComparison != 0) {
746
      if (lastComparison != 0) {
726
      return lastComparison;
747
        return lastComparison;
-
 
748
      }
727
    }
749
    }
728
    lastComparison = Boolean.valueOf(isSetEmailType()).compareTo(isSetEmailType());
750
    lastComparison = Boolean.valueOf(isSetEmailType()).compareTo(typedOther.isSetEmailType());
729
    if (lastComparison != 0) {
751
    if (lastComparison != 0) {
730
      return lastComparison;
752
      return lastComparison;
731
    }
753
    }
-
 
754
    if (isSetEmailType()) {
732
    lastComparison = TBaseHelper.compareTo(emailType, typedOther.emailType);
755
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailType, typedOther.emailType);
733
    if (lastComparison != 0) {
756
      if (lastComparison != 0) {
734
      return lastComparison;
757
        return lastComparison;
-
 
758
      }
735
    }
759
    }
736
    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());
760
    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
737
    if (lastComparison != 0) {
761
    if (lastComparison != 0) {
738
      return lastComparison;
762
      return lastComparison;
739
    }
763
    }
-
 
764
    if (isSetStatus()) {
740
    lastComparison = TBaseHelper.compareTo(status, typedOther.status);
765
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
741
    if (lastComparison != 0) {
766
      if (lastComparison != 0) {
742
      return lastComparison;
767
        return lastComparison;
-
 
768
      }
743
    }
769
    }
744
    lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(isSetTimestamp());
770
    lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
745
    if (lastComparison != 0) {
771
    if (lastComparison != 0) {
746
      return lastComparison;
772
      return lastComparison;
747
    }
773
    }
-
 
774
    if (isSetTimestamp()) {
748
    lastComparison = TBaseHelper.compareTo(timestamp, typedOther.timestamp);
775
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
749
    if (lastComparison != 0) {
776
      if (lastComparison != 0) {
750
      return lastComparison;
777
        return lastComparison;
-
 
778
      }
751
    }
779
    }
752
    return 0;
780
    return 0;
753
  }
781
  }
754
 
782
 
-
 
783
  public _Fields fieldForId(int fieldId) {
-
 
784
    return _Fields.findByThriftId(fieldId);
-
 
785
  }
-
 
786
 
755
  public void read(TProtocol iprot) throws TException {
787
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
756
    TField field;
788
    org.apache.thrift.protocol.TField field;
757
    iprot.readStructBegin();
789
    iprot.readStructBegin();
758
    while (true)
790
    while (true)
759
    {
791
    {
760
      field = iprot.readFieldBegin();
792
      field = iprot.readFieldBegin();
761
      if (field.type == TType.STOP) { 
793
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
762
        break;
794
        break;
763
      }
795
      }
764
      _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
765
      if (fieldId == null) {
-
 
766
        TProtocolUtil.skip(iprot, field.type);
-
 
767
      } else {
-
 
768
        switch (fieldId) {
796
      switch (field.id) {
769
          case ID:
797
        case 1: // ID
770
            if (field.type == TType.I64) {
798
          if (field.type == org.apache.thrift.protocol.TType.I64) {
771
              this.id = iprot.readI64();
799
            this.id = iprot.readI64();
772
              setIdIsSet(true);
800
            setIdIsSet(true);
773
            } else { 
801
          } else { 
774
              TProtocolUtil.skip(iprot, field.type);
802
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
775
            }
803
          }
776
            break;
804
          break;
777
          case EMAIL_TO:
805
        case 2: // EMAIL_TO
778
            if (field.type == TType.STRING) {
806
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
779
              this.emailTo = iprot.readString();
807
            this.emailTo = iprot.readString();
780
            } else { 
808
          } else { 
781
              TProtocolUtil.skip(iprot, field.type);
809
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
782
            }
810
          }
783
            break;
811
          break;
784
          case EMAIL_FROM:
812
        case 3: // EMAIL_FROM
785
            if (field.type == TType.STRING) {
813
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
786
              this.emailFrom = iprot.readString();
814
            this.emailFrom = iprot.readString();
787
            } else { 
815
          } else { 
788
              TProtocolUtil.skip(iprot, field.type);
816
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
789
            }
817
          }
790
            break;
818
          break;
791
          case SUBJECT:
819
        case 4: // SUBJECT
792
            if (field.type == TType.STRING) {
820
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
793
              this.subject = iprot.readString();
821
            this.subject = iprot.readString();
794
            } else { 
822
          } else { 
795
              TProtocolUtil.skip(iprot, field.type);
823
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
796
            }
824
          }
797
            break;
825
          break;
798
          case BODY:
826
        case 5: // BODY
799
            if (field.type == TType.STRING) {
827
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
800
              this.body = iprot.readString();
828
            this.body = iprot.readString();
801
            } else { 
829
          } else { 
802
              TProtocolUtil.skip(iprot, field.type);
830
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
803
            }
831
          }
804
            break;
832
          break;
805
          case SOURCE:
833
        case 6: // SOURCE
806
            if (field.type == TType.STRING) {
834
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
807
              this.source = iprot.readString();
835
            this.source = iprot.readString();
808
            } else { 
836
          } else { 
809
              TProtocolUtil.skip(iprot, field.type);
837
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
810
            }
838
          }
811
            break;
839
          break;
812
          case EMAIL_TYPE:
840
        case 7: // EMAIL_TYPE
813
            if (field.type == TType.STRING) {
841
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
814
              this.emailType = iprot.readString();
842
            this.emailType = iprot.readString();
815
            } else { 
843
          } else { 
816
              TProtocolUtil.skip(iprot, field.type);
844
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
817
            }
845
          }
818
            break;
846
          break;
819
          case STATUS:
847
        case 8: // STATUS
820
            if (field.type == TType.BOOL) {
848
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
821
              this.status = iprot.readBool();
849
            this.status = iprot.readBool();
822
              setStatusIsSet(true);
850
            setStatusIsSet(true);
823
            } else { 
851
          } else { 
824
              TProtocolUtil.skip(iprot, field.type);
852
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
825
            }
853
          }
826
            break;
854
          break;
827
          case TIMESTAMP:
855
        case 9: // TIMESTAMP
828
            if (field.type == TType.I64) {
856
          if (field.type == org.apache.thrift.protocol.TType.I64) {
829
              this.timestamp = iprot.readI64();
857
            this.timestamp = iprot.readI64();
830
              setTimestampIsSet(true);
858
            setTimestampIsSet(true);
831
            } else { 
859
          } else { 
832
              TProtocolUtil.skip(iprot, field.type);
860
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
833
            }
861
          }
834
            break;
862
          break;
835
        }
863
        default:
836
        iprot.readFieldEnd();
864
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
837
      }
865
      }
-
 
866
      iprot.readFieldEnd();
838
    }
867
    }
839
    iprot.readStructEnd();
868
    iprot.readStructEnd();
840
    validate();
869
    validate();
841
  }
870
  }
842
 
871
 
843
  public void write(TProtocol oprot) throws TException {
872
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
844
    validate();
873
    validate();
845
 
874
 
846
    oprot.writeStructBegin(STRUCT_DESC);
875
    oprot.writeStructBegin(STRUCT_DESC);
847
    oprot.writeFieldBegin(ID_FIELD_DESC);
876
    oprot.writeFieldBegin(ID_FIELD_DESC);
848
    oprot.writeI64(this.id);
877
    oprot.writeI64(this.id);
Line 953... Line 982...
953
    first = false;
982
    first = false;
954
    sb.append(")");
983
    sb.append(")");
955
    return sb.toString();
984
    return sb.toString();
956
  }
985
  }
957
 
986
 
958
  public void validate() throws TException {
987
  public void validate() throws org.apache.thrift.TException {
959
    // check for required fields
988
    // check for required fields
960
  }
989
  }
961
 
990
 
-
 
991
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
992
    try {
-
 
993
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
994
    } catch (org.apache.thrift.TException te) {
-
 
995
      throw new java.io.IOException(te);
-
 
996
    }
-
 
997
  }
-
 
998
 
-
 
999
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
1000
    try {
-
 
1001
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
1002
      __isset_bit_vector = new BitSet(1);
-
 
1003
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
1004
    } catch (org.apache.thrift.TException te) {
-
 
1005
      throw new java.io.IOException(te);
-
 
1006
    }
-
 
1007
  }
-
 
1008
 
962
}
1009
}
963
 
1010