Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
123 ashish 1
/**
3430 rajveer 2
 * Autogenerated by Thrift Compiler (0.7.0)
123 ashish 3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.model.v1.user;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
3430 rajveer 18
import java.nio.ByteBuffer;
123 ashish 19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
/**
24
 * dynamic user state
25
 * *
26
 */
3430 rajveer 27
public class UserState implements org.apache.thrift.TBase<UserState, UserState._Fields>, java.io.Serializable, Cloneable {
28
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UserState");
123 ashish 29
 
3430 rajveer 30
  private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
31
  private static final org.apache.thrift.protocol.TField LAST_LOGIN_FIELD_DESC = new org.apache.thrift.protocol.TField("lastLogin", org.apache.thrift.protocol.TType.I64, (short)2);
32
  private static final org.apache.thrift.protocol.TField LAST_LOGOUT_FIELD_DESC = new org.apache.thrift.protocol.TField("lastLogout", org.apache.thrift.protocol.TType.I64, (short)3);
33
  private static final org.apache.thrift.protocol.TField EMAIL_VERIFICATION_SENT_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("emailVerificationSentOn", org.apache.thrift.protocol.TType.I64, (short)4);
34
  private static final org.apache.thrift.protocol.TField SMS_VERIFICATION_SENT_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("smsVerificationSentOn", org.apache.thrift.protocol.TType.I64, (short)5);
35
  private static final org.apache.thrift.protocol.TField IS_EMAIL_VERIFIED_FIELD_DESC = new org.apache.thrift.protocol.TField("isEmailVerified", org.apache.thrift.protocol.TType.BOOL, (short)6);
36
  private static final org.apache.thrift.protocol.TField IS_SMSVERIFIED_FIELD_DESC = new org.apache.thrift.protocol.TField("isSMSVerified", org.apache.thrift.protocol.TType.BOOL, (short)7);
37
  private static final org.apache.thrift.protocol.TField ACTIVE_SINCE_FIELD_DESC = new org.apache.thrift.protocol.TField("activeSince", org.apache.thrift.protocol.TType.I64, (short)8);
38
  private static final org.apache.thrift.protocol.TField IPS_FIELD_DESC = new org.apache.thrift.protocol.TField("ips", org.apache.thrift.protocol.TType.LIST, (short)9);
39
  private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I32, (short)10);
123 ashish 40
 
3430 rajveer 41
  private long userId; // required
42
  private long lastLogin; // required
43
  private long lastLogout; // required
44
  private long emailVerificationSentOn; // required
45
  private long smsVerificationSentOn; // required
46
  private boolean isEmailVerified; // required
47
  private boolean isSMSVerified; // required
48
  private long activeSince; // required
49
  private List<IPMap> ips; // required
50
  private AccountStatus status; // required
123 ashish 51
 
52
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 53
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
123 ashish 54
    USER_ID((short)1, "userId"),
553 chandransh 55
    LAST_LOGIN((short)2, "lastLogin"),
56
    LAST_LOGOUT((short)3, "lastLogout"),
57
    EMAIL_VERIFICATION_SENT_ON((short)4, "emailVerificationSentOn"),
58
    SMS_VERIFICATION_SENT_ON((short)5, "smsVerificationSentOn"),
59
    IS_EMAIL_VERIFIED((short)6, "isEmailVerified"),
123 ashish 60
    IS_SMSVERIFIED((short)7, "isSMSVerified"),
61
    ACTIVE_SINCE((short)8, "activeSince"),
553 chandransh 62
    IPS((short)9, "ips"),
130 ashish 63
    /**
64
     * 
65
     * @see AccountStatus
66
     */
553 chandransh 67
    STATUS((short)10, "status");
123 ashish 68
 
69
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
70
 
71
    static {
72
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
73
        byName.put(field.getFieldName(), field);
74
      }
75
    }
76
 
77
    /**
78
     * Find the _Fields constant that matches fieldId, or null if its not found.
79
     */
80
    public static _Fields findByThriftId(int fieldId) {
3430 rajveer 81
      switch(fieldId) {
82
        case 1: // USER_ID
83
          return USER_ID;
84
        case 2: // LAST_LOGIN
85
          return LAST_LOGIN;
86
        case 3: // LAST_LOGOUT
87
          return LAST_LOGOUT;
88
        case 4: // EMAIL_VERIFICATION_SENT_ON
89
          return EMAIL_VERIFICATION_SENT_ON;
90
        case 5: // SMS_VERIFICATION_SENT_ON
91
          return SMS_VERIFICATION_SENT_ON;
92
        case 6: // IS_EMAIL_VERIFIED
93
          return IS_EMAIL_VERIFIED;
94
        case 7: // IS_SMSVERIFIED
95
          return IS_SMSVERIFIED;
96
        case 8: // ACTIVE_SINCE
97
          return ACTIVE_SINCE;
98
        case 9: // IPS
99
          return IPS;
100
        case 10: // STATUS
101
          return STATUS;
102
        default:
103
          return null;
104
      }
123 ashish 105
    }
106
 
107
    /**
108
     * Find the _Fields constant that matches fieldId, throwing an exception
109
     * if it is not found.
110
     */
111
    public static _Fields findByThriftIdOrThrow(int fieldId) {
112
      _Fields fields = findByThriftId(fieldId);
113
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
114
      return fields;
115
    }
116
 
117
    /**
118
     * Find the _Fields constant that matches name, or null if its not found.
119
     */
120
    public static _Fields findByName(String name) {
121
      return byName.get(name);
122
    }
123
 
124
    private final short _thriftId;
125
    private final String _fieldName;
126
 
127
    _Fields(short thriftId, String fieldName) {
128
      _thriftId = thriftId;
129
      _fieldName = fieldName;
130
    }
131
 
132
    public short getThriftFieldId() {
133
      return _thriftId;
134
    }
135
 
136
    public String getFieldName() {
137
      return _fieldName;
138
    }
139
  }
140
 
141
  // isset id assignments
142
  private static final int __USERID_ISSET_ID = 0;
553 chandransh 143
  private static final int __LASTLOGIN_ISSET_ID = 1;
144
  private static final int __LASTLOGOUT_ISSET_ID = 2;
145
  private static final int __EMAILVERIFICATIONSENTON_ISSET_ID = 3;
146
  private static final int __SMSVERIFICATIONSENTON_ISSET_ID = 4;
147
  private static final int __ISEMAILVERIFIED_ISSET_ID = 5;
123 ashish 148
  private static final int __ISSMSVERIFIED_ISSET_ID = 6;
149
  private static final int __ACTIVESINCE_ISSET_ID = 7;
553 chandransh 150
  private BitSet __isset_bit_vector = new BitSet(8);
123 ashish 151
 
3430 rajveer 152
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 153
  static {
3430 rajveer 154
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
155
    tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
156
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
157
    tmpMap.put(_Fields.LAST_LOGIN, new org.apache.thrift.meta_data.FieldMetaData("lastLogin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
158
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
159
    tmpMap.put(_Fields.LAST_LOGOUT, new org.apache.thrift.meta_data.FieldMetaData("lastLogout", org.apache.thrift.TFieldRequirementType.DEFAULT, 
160
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
161
    tmpMap.put(_Fields.EMAIL_VERIFICATION_SENT_ON, new org.apache.thrift.meta_data.FieldMetaData("emailVerificationSentOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
162
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
163
    tmpMap.put(_Fields.SMS_VERIFICATION_SENT_ON, new org.apache.thrift.meta_data.FieldMetaData("smsVerificationSentOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
164
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
165
    tmpMap.put(_Fields.IS_EMAIL_VERIFIED, new org.apache.thrift.meta_data.FieldMetaData("isEmailVerified", org.apache.thrift.TFieldRequirementType.DEFAULT, 
166
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
167
    tmpMap.put(_Fields.IS_SMSVERIFIED, new org.apache.thrift.meta_data.FieldMetaData("isSMSVerified", org.apache.thrift.TFieldRequirementType.DEFAULT, 
168
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
169
    tmpMap.put(_Fields.ACTIVE_SINCE, new org.apache.thrift.meta_data.FieldMetaData("activeSince", org.apache.thrift.TFieldRequirementType.DEFAULT, 
170
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
171
    tmpMap.put(_Fields.IPS, new org.apache.thrift.meta_data.FieldMetaData("ips", org.apache.thrift.TFieldRequirementType.DEFAULT, 
172
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
173
            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, IPMap.class))));
174
    tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
175
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, AccountStatus.class)));
176
    metaDataMap = Collections.unmodifiableMap(tmpMap);
177
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(UserState.class, metaDataMap);
123 ashish 178
  }
179
 
180
  public UserState() {
181
  }
182
 
183
  public UserState(
184
    long userId,
185
    long lastLogin,
186
    long lastLogout,
187
    long emailVerificationSentOn,
188
    long smsVerificationSentOn,
553 chandransh 189
    boolean isEmailVerified,
123 ashish 190
    boolean isSMSVerified,
191
    long activeSince,
192
    List<IPMap> ips,
130 ashish 193
    AccountStatus status)
123 ashish 194
  {
195
    this();
196
    this.userId = userId;
197
    setUserIdIsSet(true);
198
    this.lastLogin = lastLogin;
199
    setLastLoginIsSet(true);
200
    this.lastLogout = lastLogout;
201
    setLastLogoutIsSet(true);
202
    this.emailVerificationSentOn = emailVerificationSentOn;
203
    setEmailVerificationSentOnIsSet(true);
204
    this.smsVerificationSentOn = smsVerificationSentOn;
205
    setSmsVerificationSentOnIsSet(true);
553 chandransh 206
    this.isEmailVerified = isEmailVerified;
207
    setIsEmailVerifiedIsSet(true);
123 ashish 208
    this.isSMSVerified = isSMSVerified;
209
    setIsSMSVerifiedIsSet(true);
210
    this.activeSince = activeSince;
211
    setActiveSinceIsSet(true);
212
    this.ips = ips;
130 ashish 213
    this.status = status;
123 ashish 214
  }
215
 
216
  /**
217
   * Performs a deep copy on <i>other</i>.
218
   */
219
  public UserState(UserState other) {
220
    __isset_bit_vector.clear();
221
    __isset_bit_vector.or(other.__isset_bit_vector);
222
    this.userId = other.userId;
223
    this.lastLogin = other.lastLogin;
224
    this.lastLogout = other.lastLogout;
225
    this.emailVerificationSentOn = other.emailVerificationSentOn;
226
    this.smsVerificationSentOn = other.smsVerificationSentOn;
553 chandransh 227
    this.isEmailVerified = other.isEmailVerified;
123 ashish 228
    this.isSMSVerified = other.isSMSVerified;
229
    this.activeSince = other.activeSince;
230
    if (other.isSetIps()) {
231
      List<IPMap> __this__ips = new ArrayList<IPMap>();
232
      for (IPMap other_element : other.ips) {
233
        __this__ips.add(new IPMap(other_element));
234
      }
235
      this.ips = __this__ips;
236
    }
130 ashish 237
    if (other.isSetStatus()) {
238
      this.status = other.status;
239
    }
123 ashish 240
  }
241
 
242
  public UserState deepCopy() {
243
    return new UserState(this);
244
  }
245
 
3430 rajveer 246
  @Override
247
  public void clear() {
248
    setUserIdIsSet(false);
249
    this.userId = 0;
250
    setLastLoginIsSet(false);
251
    this.lastLogin = 0;
252
    setLastLogoutIsSet(false);
253
    this.lastLogout = 0;
254
    setEmailVerificationSentOnIsSet(false);
255
    this.emailVerificationSentOn = 0;
256
    setSmsVerificationSentOnIsSet(false);
257
    this.smsVerificationSentOn = 0;
258
    setIsEmailVerifiedIsSet(false);
259
    this.isEmailVerified = false;
260
    setIsSMSVerifiedIsSet(false);
261
    this.isSMSVerified = false;
262
    setActiveSinceIsSet(false);
263
    this.activeSince = 0;
264
    this.ips = null;
265
    this.status = null;
123 ashish 266
  }
267
 
268
  public long getUserId() {
269
    return this.userId;
270
  }
271
 
3430 rajveer 272
  public void setUserId(long userId) {
123 ashish 273
    this.userId = userId;
274
    setUserIdIsSet(true);
275
  }
276
 
277
  public void unsetUserId() {
278
    __isset_bit_vector.clear(__USERID_ISSET_ID);
279
  }
280
 
3430 rajveer 281
  /** Returns true if field userId is set (has been assigned a value) and false otherwise */
123 ashish 282
  public boolean isSetUserId() {
283
    return __isset_bit_vector.get(__USERID_ISSET_ID);
284
  }
285
 
286
  public void setUserIdIsSet(boolean value) {
287
    __isset_bit_vector.set(__USERID_ISSET_ID, value);
288
  }
289
 
290
  public long getLastLogin() {
291
    return this.lastLogin;
292
  }
293
 
3430 rajveer 294
  public void setLastLogin(long lastLogin) {
123 ashish 295
    this.lastLogin = lastLogin;
296
    setLastLoginIsSet(true);
297
  }
298
 
299
  public void unsetLastLogin() {
300
    __isset_bit_vector.clear(__LASTLOGIN_ISSET_ID);
301
  }
302
 
3430 rajveer 303
  /** Returns true if field lastLogin is set (has been assigned a value) and false otherwise */
123 ashish 304
  public boolean isSetLastLogin() {
305
    return __isset_bit_vector.get(__LASTLOGIN_ISSET_ID);
306
  }
307
 
308
  public void setLastLoginIsSet(boolean value) {
309
    __isset_bit_vector.set(__LASTLOGIN_ISSET_ID, value);
310
  }
311
 
312
  public long getLastLogout() {
313
    return this.lastLogout;
314
  }
315
 
3430 rajveer 316
  public void setLastLogout(long lastLogout) {
123 ashish 317
    this.lastLogout = lastLogout;
318
    setLastLogoutIsSet(true);
319
  }
320
 
321
  public void unsetLastLogout() {
322
    __isset_bit_vector.clear(__LASTLOGOUT_ISSET_ID);
323
  }
324
 
3430 rajveer 325
  /** Returns true if field lastLogout is set (has been assigned a value) and false otherwise */
123 ashish 326
  public boolean isSetLastLogout() {
327
    return __isset_bit_vector.get(__LASTLOGOUT_ISSET_ID);
328
  }
329
 
330
  public void setLastLogoutIsSet(boolean value) {
331
    __isset_bit_vector.set(__LASTLOGOUT_ISSET_ID, value);
332
  }
333
 
334
  public long getEmailVerificationSentOn() {
335
    return this.emailVerificationSentOn;
336
  }
337
 
3430 rajveer 338
  public void setEmailVerificationSentOn(long emailVerificationSentOn) {
123 ashish 339
    this.emailVerificationSentOn = emailVerificationSentOn;
340
    setEmailVerificationSentOnIsSet(true);
341
  }
342
 
343
  public void unsetEmailVerificationSentOn() {
344
    __isset_bit_vector.clear(__EMAILVERIFICATIONSENTON_ISSET_ID);
345
  }
346
 
3430 rajveer 347
  /** Returns true if field emailVerificationSentOn is set (has been assigned a value) and false otherwise */
123 ashish 348
  public boolean isSetEmailVerificationSentOn() {
349
    return __isset_bit_vector.get(__EMAILVERIFICATIONSENTON_ISSET_ID);
350
  }
351
 
352
  public void setEmailVerificationSentOnIsSet(boolean value) {
353
    __isset_bit_vector.set(__EMAILVERIFICATIONSENTON_ISSET_ID, value);
354
  }
355
 
356
  public long getSmsVerificationSentOn() {
357
    return this.smsVerificationSentOn;
358
  }
359
 
3430 rajveer 360
  public void setSmsVerificationSentOn(long smsVerificationSentOn) {
123 ashish 361
    this.smsVerificationSentOn = smsVerificationSentOn;
362
    setSmsVerificationSentOnIsSet(true);
363
  }
364
 
365
  public void unsetSmsVerificationSentOn() {
366
    __isset_bit_vector.clear(__SMSVERIFICATIONSENTON_ISSET_ID);
367
  }
368
 
3430 rajveer 369
  /** Returns true if field smsVerificationSentOn is set (has been assigned a value) and false otherwise */
123 ashish 370
  public boolean isSetSmsVerificationSentOn() {
371
    return __isset_bit_vector.get(__SMSVERIFICATIONSENTON_ISSET_ID);
372
  }
373
 
374
  public void setSmsVerificationSentOnIsSet(boolean value) {
375
    __isset_bit_vector.set(__SMSVERIFICATIONSENTON_ISSET_ID, value);
376
  }
377
 
553 chandransh 378
  public boolean isIsEmailVerified() {
379
    return this.isEmailVerified;
380
  }
381
 
3430 rajveer 382
  public void setIsEmailVerified(boolean isEmailVerified) {
553 chandransh 383
    this.isEmailVerified = isEmailVerified;
384
    setIsEmailVerifiedIsSet(true);
385
  }
386
 
387
  public void unsetIsEmailVerified() {
388
    __isset_bit_vector.clear(__ISEMAILVERIFIED_ISSET_ID);
389
  }
390
 
3430 rajveer 391
  /** Returns true if field isEmailVerified is set (has been assigned a value) and false otherwise */
553 chandransh 392
  public boolean isSetIsEmailVerified() {
393
    return __isset_bit_vector.get(__ISEMAILVERIFIED_ISSET_ID);
394
  }
395
 
396
  public void setIsEmailVerifiedIsSet(boolean value) {
397
    __isset_bit_vector.set(__ISEMAILVERIFIED_ISSET_ID, value);
398
  }
399
 
123 ashish 400
  public boolean isIsSMSVerified() {
401
    return this.isSMSVerified;
402
  }
403
 
3430 rajveer 404
  public void setIsSMSVerified(boolean isSMSVerified) {
123 ashish 405
    this.isSMSVerified = isSMSVerified;
406
    setIsSMSVerifiedIsSet(true);
407
  }
408
 
409
  public void unsetIsSMSVerified() {
410
    __isset_bit_vector.clear(__ISSMSVERIFIED_ISSET_ID);
411
  }
412
 
3430 rajveer 413
  /** Returns true if field isSMSVerified is set (has been assigned a value) and false otherwise */
123 ashish 414
  public boolean isSetIsSMSVerified() {
415
    return __isset_bit_vector.get(__ISSMSVERIFIED_ISSET_ID);
416
  }
417
 
418
  public void setIsSMSVerifiedIsSet(boolean value) {
419
    __isset_bit_vector.set(__ISSMSVERIFIED_ISSET_ID, value);
420
  }
421
 
422
  public long getActiveSince() {
423
    return this.activeSince;
424
  }
425
 
3430 rajveer 426
  public void setActiveSince(long activeSince) {
123 ashish 427
    this.activeSince = activeSince;
428
    setActiveSinceIsSet(true);
429
  }
430
 
431
  public void unsetActiveSince() {
432
    __isset_bit_vector.clear(__ACTIVESINCE_ISSET_ID);
433
  }
434
 
3430 rajveer 435
  /** Returns true if field activeSince is set (has been assigned a value) and false otherwise */
123 ashish 436
  public boolean isSetActiveSince() {
437
    return __isset_bit_vector.get(__ACTIVESINCE_ISSET_ID);
438
  }
439
 
440
  public void setActiveSinceIsSet(boolean value) {
441
    __isset_bit_vector.set(__ACTIVESINCE_ISSET_ID, value);
442
  }
443
 
444
  public int getIpsSize() {
445
    return (this.ips == null) ? 0 : this.ips.size();
446
  }
447
 
448
  public java.util.Iterator<IPMap> getIpsIterator() {
449
    return (this.ips == null) ? null : this.ips.iterator();
450
  }
451
 
452
  public void addToIps(IPMap elem) {
453
    if (this.ips == null) {
454
      this.ips = new ArrayList<IPMap>();
455
    }
456
    this.ips.add(elem);
457
  }
458
 
459
  public List<IPMap> getIps() {
460
    return this.ips;
461
  }
462
 
3430 rajveer 463
  public void setIps(List<IPMap> ips) {
123 ashish 464
    this.ips = ips;
465
  }
466
 
467
  public void unsetIps() {
468
    this.ips = null;
469
  }
470
 
3430 rajveer 471
  /** Returns true if field ips is set (has been assigned a value) and false otherwise */
123 ashish 472
  public boolean isSetIps() {
473
    return this.ips != null;
474
  }
475
 
476
  public void setIpsIsSet(boolean value) {
477
    if (!value) {
478
      this.ips = null;
479
    }
480
  }
481
 
130 ashish 482
  /**
483
   * 
484
   * @see AccountStatus
485
   */
486
  public AccountStatus getStatus() {
487
    return this.status;
488
  }
489
 
490
  /**
491
   * 
492
   * @see AccountStatus
493
   */
3430 rajveer 494
  public void setStatus(AccountStatus status) {
130 ashish 495
    this.status = status;
496
  }
497
 
498
  public void unsetStatus() {
499
    this.status = null;
500
  }
501
 
3430 rajveer 502
  /** Returns true if field status is set (has been assigned a value) and false otherwise */
130 ashish 503
  public boolean isSetStatus() {
504
    return this.status != null;
505
  }
506
 
507
  public void setStatusIsSet(boolean value) {
508
    if (!value) {
509
      this.status = null;
510
    }
511
  }
512
 
123 ashish 513
  public void setFieldValue(_Fields field, Object value) {
514
    switch (field) {
515
    case USER_ID:
516
      if (value == null) {
517
        unsetUserId();
518
      } else {
519
        setUserId((Long)value);
520
      }
521
      break;
522
 
523
    case LAST_LOGIN:
524
      if (value == null) {
525
        unsetLastLogin();
526
      } else {
527
        setLastLogin((Long)value);
528
      }
529
      break;
530
 
531
    case LAST_LOGOUT:
532
      if (value == null) {
533
        unsetLastLogout();
534
      } else {
535
        setLastLogout((Long)value);
536
      }
537
      break;
538
 
539
    case EMAIL_VERIFICATION_SENT_ON:
540
      if (value == null) {
541
        unsetEmailVerificationSentOn();
542
      } else {
543
        setEmailVerificationSentOn((Long)value);
544
      }
545
      break;
546
 
547
    case SMS_VERIFICATION_SENT_ON:
548
      if (value == null) {
549
        unsetSmsVerificationSentOn();
550
      } else {
551
        setSmsVerificationSentOn((Long)value);
552
      }
553
      break;
554
 
553 chandransh 555
    case IS_EMAIL_VERIFIED:
556
      if (value == null) {
557
        unsetIsEmailVerified();
558
      } else {
559
        setIsEmailVerified((Boolean)value);
560
      }
561
      break;
562
 
123 ashish 563
    case IS_SMSVERIFIED:
564
      if (value == null) {
565
        unsetIsSMSVerified();
566
      } else {
567
        setIsSMSVerified((Boolean)value);
568
      }
569
      break;
570
 
571
    case ACTIVE_SINCE:
572
      if (value == null) {
573
        unsetActiveSince();
574
      } else {
575
        setActiveSince((Long)value);
576
      }
577
      break;
578
 
579
    case IPS:
580
      if (value == null) {
581
        unsetIps();
582
      } else {
583
        setIps((List<IPMap>)value);
584
      }
585
      break;
586
 
130 ashish 587
    case STATUS:
588
      if (value == null) {
589
        unsetStatus();
590
      } else {
591
        setStatus((AccountStatus)value);
592
      }
593
      break;
594
 
123 ashish 595
    }
596
  }
597
 
598
  public Object getFieldValue(_Fields field) {
599
    switch (field) {
600
    case USER_ID:
3430 rajveer 601
      return Long.valueOf(getUserId());
123 ashish 602
 
603
    case LAST_LOGIN:
3430 rajveer 604
      return Long.valueOf(getLastLogin());
123 ashish 605
 
606
    case LAST_LOGOUT:
3430 rajveer 607
      return Long.valueOf(getLastLogout());
123 ashish 608
 
609
    case EMAIL_VERIFICATION_SENT_ON:
3430 rajveer 610
      return Long.valueOf(getEmailVerificationSentOn());
123 ashish 611
 
612
    case SMS_VERIFICATION_SENT_ON:
3430 rajveer 613
      return Long.valueOf(getSmsVerificationSentOn());
123 ashish 614
 
553 chandransh 615
    case IS_EMAIL_VERIFIED:
3430 rajveer 616
      return Boolean.valueOf(isIsEmailVerified());
553 chandransh 617
 
123 ashish 618
    case IS_SMSVERIFIED:
3430 rajveer 619
      return Boolean.valueOf(isIsSMSVerified());
123 ashish 620
 
621
    case ACTIVE_SINCE:
3430 rajveer 622
      return Long.valueOf(getActiveSince());
123 ashish 623
 
624
    case IPS:
625
      return getIps();
626
 
130 ashish 627
    case STATUS:
628
      return getStatus();
629
 
123 ashish 630
    }
631
    throw new IllegalStateException();
632
  }
633
 
3430 rajveer 634
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
635
  public boolean isSet(_Fields field) {
636
    if (field == null) {
637
      throw new IllegalArgumentException();
638
    }
123 ashish 639
 
640
    switch (field) {
641
    case USER_ID:
642
      return isSetUserId();
643
    case LAST_LOGIN:
644
      return isSetLastLogin();
645
    case LAST_LOGOUT:
646
      return isSetLastLogout();
647
    case EMAIL_VERIFICATION_SENT_ON:
648
      return isSetEmailVerificationSentOn();
649
    case SMS_VERIFICATION_SENT_ON:
650
      return isSetSmsVerificationSentOn();
553 chandransh 651
    case IS_EMAIL_VERIFIED:
652
      return isSetIsEmailVerified();
123 ashish 653
    case IS_SMSVERIFIED:
654
      return isSetIsSMSVerified();
655
    case ACTIVE_SINCE:
656
      return isSetActiveSince();
657
    case IPS:
658
      return isSetIps();
130 ashish 659
    case STATUS:
660
      return isSetStatus();
123 ashish 661
    }
662
    throw new IllegalStateException();
663
  }
664
 
665
  @Override
666
  public boolean equals(Object that) {
667
    if (that == null)
668
      return false;
669
    if (that instanceof UserState)
670
      return this.equals((UserState)that);
671
    return false;
672
  }
673
 
674
  public boolean equals(UserState that) {
675
    if (that == null)
676
      return false;
677
 
678
    boolean this_present_userId = true;
679
    boolean that_present_userId = true;
680
    if (this_present_userId || that_present_userId) {
681
      if (!(this_present_userId && that_present_userId))
682
        return false;
683
      if (this.userId != that.userId)
684
        return false;
685
    }
686
 
687
    boolean this_present_lastLogin = true;
688
    boolean that_present_lastLogin = true;
689
    if (this_present_lastLogin || that_present_lastLogin) {
690
      if (!(this_present_lastLogin && that_present_lastLogin))
691
        return false;
692
      if (this.lastLogin != that.lastLogin)
693
        return false;
694
    }
695
 
696
    boolean this_present_lastLogout = true;
697
    boolean that_present_lastLogout = true;
698
    if (this_present_lastLogout || that_present_lastLogout) {
699
      if (!(this_present_lastLogout && that_present_lastLogout))
700
        return false;
701
      if (this.lastLogout != that.lastLogout)
702
        return false;
703
    }
704
 
705
    boolean this_present_emailVerificationSentOn = true;
706
    boolean that_present_emailVerificationSentOn = true;
707
    if (this_present_emailVerificationSentOn || that_present_emailVerificationSentOn) {
708
      if (!(this_present_emailVerificationSentOn && that_present_emailVerificationSentOn))
709
        return false;
710
      if (this.emailVerificationSentOn != that.emailVerificationSentOn)
711
        return false;
712
    }
713
 
714
    boolean this_present_smsVerificationSentOn = true;
715
    boolean that_present_smsVerificationSentOn = true;
716
    if (this_present_smsVerificationSentOn || that_present_smsVerificationSentOn) {
717
      if (!(this_present_smsVerificationSentOn && that_present_smsVerificationSentOn))
718
        return false;
719
      if (this.smsVerificationSentOn != that.smsVerificationSentOn)
720
        return false;
721
    }
722
 
553 chandransh 723
    boolean this_present_isEmailVerified = true;
724
    boolean that_present_isEmailVerified = true;
725
    if (this_present_isEmailVerified || that_present_isEmailVerified) {
726
      if (!(this_present_isEmailVerified && that_present_isEmailVerified))
727
        return false;
728
      if (this.isEmailVerified != that.isEmailVerified)
729
        return false;
730
    }
731
 
123 ashish 732
    boolean this_present_isSMSVerified = true;
733
    boolean that_present_isSMSVerified = true;
734
    if (this_present_isSMSVerified || that_present_isSMSVerified) {
735
      if (!(this_present_isSMSVerified && that_present_isSMSVerified))
736
        return false;
737
      if (this.isSMSVerified != that.isSMSVerified)
738
        return false;
739
    }
740
 
741
    boolean this_present_activeSince = true;
742
    boolean that_present_activeSince = true;
743
    if (this_present_activeSince || that_present_activeSince) {
744
      if (!(this_present_activeSince && that_present_activeSince))
745
        return false;
746
      if (this.activeSince != that.activeSince)
747
        return false;
748
    }
749
 
750
    boolean this_present_ips = true && this.isSetIps();
751
    boolean that_present_ips = true && that.isSetIps();
752
    if (this_present_ips || that_present_ips) {
753
      if (!(this_present_ips && that_present_ips))
754
        return false;
755
      if (!this.ips.equals(that.ips))
756
        return false;
757
    }
758
 
130 ashish 759
    boolean this_present_status = true && this.isSetStatus();
760
    boolean that_present_status = true && that.isSetStatus();
761
    if (this_present_status || that_present_status) {
762
      if (!(this_present_status && that_present_status))
763
        return false;
764
      if (!this.status.equals(that.status))
765
        return false;
766
    }
767
 
123 ashish 768
    return true;
769
  }
770
 
771
  @Override
772
  public int hashCode() {
773
    return 0;
774
  }
775
 
776
  public int compareTo(UserState other) {
777
    if (!getClass().equals(other.getClass())) {
778
      return getClass().getName().compareTo(other.getClass().getName());
779
    }
780
 
781
    int lastComparison = 0;
782
    UserState typedOther = (UserState)other;
783
 
3430 rajveer 784
    lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
123 ashish 785
    if (lastComparison != 0) {
786
      return lastComparison;
787
    }
3430 rajveer 788
    if (isSetUserId()) {
789
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
790
      if (lastComparison != 0) {
791
        return lastComparison;
792
      }
123 ashish 793
    }
3430 rajveer 794
    lastComparison = Boolean.valueOf(isSetLastLogin()).compareTo(typedOther.isSetLastLogin());
123 ashish 795
    if (lastComparison != 0) {
796
      return lastComparison;
797
    }
3430 rajveer 798
    if (isSetLastLogin()) {
799
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastLogin, typedOther.lastLogin);
800
      if (lastComparison != 0) {
801
        return lastComparison;
802
      }
123 ashish 803
    }
3430 rajveer 804
    lastComparison = Boolean.valueOf(isSetLastLogout()).compareTo(typedOther.isSetLastLogout());
123 ashish 805
    if (lastComparison != 0) {
806
      return lastComparison;
807
    }
3430 rajveer 808
    if (isSetLastLogout()) {
809
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lastLogout, typedOther.lastLogout);
810
      if (lastComparison != 0) {
811
        return lastComparison;
812
      }
123 ashish 813
    }
3430 rajveer 814
    lastComparison = Boolean.valueOf(isSetEmailVerificationSentOn()).compareTo(typedOther.isSetEmailVerificationSentOn());
123 ashish 815
    if (lastComparison != 0) {
816
      return lastComparison;
817
    }
3430 rajveer 818
    if (isSetEmailVerificationSentOn()) {
819
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailVerificationSentOn, typedOther.emailVerificationSentOn);
820
      if (lastComparison != 0) {
821
        return lastComparison;
822
      }
123 ashish 823
    }
3430 rajveer 824
    lastComparison = Boolean.valueOf(isSetSmsVerificationSentOn()).compareTo(typedOther.isSetSmsVerificationSentOn());
123 ashish 825
    if (lastComparison != 0) {
826
      return lastComparison;
827
    }
3430 rajveer 828
    if (isSetSmsVerificationSentOn()) {
829
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.smsVerificationSentOn, typedOther.smsVerificationSentOn);
830
      if (lastComparison != 0) {
831
        return lastComparison;
832
      }
123 ashish 833
    }
3430 rajveer 834
    lastComparison = Boolean.valueOf(isSetIsEmailVerified()).compareTo(typedOther.isSetIsEmailVerified());
123 ashish 835
    if (lastComparison != 0) {
836
      return lastComparison;
837
    }
3430 rajveer 838
    if (isSetIsEmailVerified()) {
839
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isEmailVerified, typedOther.isEmailVerified);
840
      if (lastComparison != 0) {
841
        return lastComparison;
842
      }
123 ashish 843
    }
3430 rajveer 844
    lastComparison = Boolean.valueOf(isSetIsSMSVerified()).compareTo(typedOther.isSetIsSMSVerified());
123 ashish 845
    if (lastComparison != 0) {
846
      return lastComparison;
847
    }
3430 rajveer 848
    if (isSetIsSMSVerified()) {
849
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isSMSVerified, typedOther.isSMSVerified);
850
      if (lastComparison != 0) {
851
        return lastComparison;
852
      }
123 ashish 853
    }
3430 rajveer 854
    lastComparison = Boolean.valueOf(isSetActiveSince()).compareTo(typedOther.isSetActiveSince());
123 ashish 855
    if (lastComparison != 0) {
856
      return lastComparison;
857
    }
3430 rajveer 858
    if (isSetActiveSince()) {
859
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.activeSince, typedOther.activeSince);
860
      if (lastComparison != 0) {
861
        return lastComparison;
862
      }
123 ashish 863
    }
3430 rajveer 864
    lastComparison = Boolean.valueOf(isSetIps()).compareTo(typedOther.isSetIps());
123 ashish 865
    if (lastComparison != 0) {
866
      return lastComparison;
867
    }
3430 rajveer 868
    if (isSetIps()) {
869
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ips, typedOther.ips);
870
      if (lastComparison != 0) {
871
        return lastComparison;
872
      }
123 ashish 873
    }
3430 rajveer 874
    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
130 ashish 875
    if (lastComparison != 0) {
876
      return lastComparison;
877
    }
3430 rajveer 878
    if (isSetStatus()) {
879
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
880
      if (lastComparison != 0) {
881
        return lastComparison;
882
      }
130 ashish 883
    }
123 ashish 884
    return 0;
885
  }
886
 
3430 rajveer 887
  public _Fields fieldForId(int fieldId) {
888
    return _Fields.findByThriftId(fieldId);
889
  }
890
 
891
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
892
    org.apache.thrift.protocol.TField field;
123 ashish 893
    iprot.readStructBegin();
894
    while (true)
895
    {
896
      field = iprot.readFieldBegin();
3430 rajveer 897
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 898
        break;
899
      }
3430 rajveer 900
      switch (field.id) {
901
        case 1: // USER_ID
902
          if (field.type == org.apache.thrift.protocol.TType.I64) {
903
            this.userId = iprot.readI64();
904
            setUserIdIsSet(true);
905
          } else { 
906
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
907
          }
908
          break;
909
        case 2: // LAST_LOGIN
910
          if (field.type == org.apache.thrift.protocol.TType.I64) {
911
            this.lastLogin = iprot.readI64();
912
            setLastLoginIsSet(true);
913
          } else { 
914
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
915
          }
916
          break;
917
        case 3: // LAST_LOGOUT
918
          if (field.type == org.apache.thrift.protocol.TType.I64) {
919
            this.lastLogout = iprot.readI64();
920
            setLastLogoutIsSet(true);
921
          } else { 
922
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
923
          }
924
          break;
925
        case 4: // EMAIL_VERIFICATION_SENT_ON
926
          if (field.type == org.apache.thrift.protocol.TType.I64) {
927
            this.emailVerificationSentOn = iprot.readI64();
928
            setEmailVerificationSentOnIsSet(true);
929
          } else { 
930
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
931
          }
932
          break;
933
        case 5: // SMS_VERIFICATION_SENT_ON
934
          if (field.type == org.apache.thrift.protocol.TType.I64) {
935
            this.smsVerificationSentOn = iprot.readI64();
936
            setSmsVerificationSentOnIsSet(true);
937
          } else { 
938
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
939
          }
940
          break;
941
        case 6: // IS_EMAIL_VERIFIED
942
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
943
            this.isEmailVerified = iprot.readBool();
944
            setIsEmailVerifiedIsSet(true);
945
          } else { 
946
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
947
          }
948
          break;
949
        case 7: // IS_SMSVERIFIED
950
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
951
            this.isSMSVerified = iprot.readBool();
952
            setIsSMSVerifiedIsSet(true);
953
          } else { 
954
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
955
          }
956
          break;
957
        case 8: // ACTIVE_SINCE
958
          if (field.type == org.apache.thrift.protocol.TType.I64) {
959
            this.activeSince = iprot.readI64();
960
            setActiveSinceIsSet(true);
961
          } else { 
962
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
963
          }
964
          break;
965
        case 9: // IPS
966
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
967
            {
968
              org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
969
              this.ips = new ArrayList<IPMap>(_list0.size);
970
              for (int _i1 = 0; _i1 < _list0.size; ++_i1)
123 ashish 971
              {
3430 rajveer 972
                IPMap _elem2; // required
973
                _elem2 = new IPMap();
974
                _elem2.read(iprot);
975
                this.ips.add(_elem2);
123 ashish 976
              }
3430 rajveer 977
              iprot.readListEnd();
123 ashish 978
            }
3430 rajveer 979
          } else { 
980
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
981
          }
982
          break;
983
        case 10: // STATUS
984
          if (field.type == org.apache.thrift.protocol.TType.I32) {
985
            this.status = AccountStatus.findByValue(iprot.readI32());
986
          } else { 
987
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
988
          }
989
          break;
990
        default:
991
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 992
      }
3430 rajveer 993
      iprot.readFieldEnd();
123 ashish 994
    }
995
    iprot.readStructEnd();
996
    validate();
997
  }
998
 
3430 rajveer 999
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 1000
    validate();
1001
 
1002
    oprot.writeStructBegin(STRUCT_DESC);
1003
    oprot.writeFieldBegin(USER_ID_FIELD_DESC);
1004
    oprot.writeI64(this.userId);
1005
    oprot.writeFieldEnd();
1006
    oprot.writeFieldBegin(LAST_LOGIN_FIELD_DESC);
1007
    oprot.writeI64(this.lastLogin);
1008
    oprot.writeFieldEnd();
1009
    oprot.writeFieldBegin(LAST_LOGOUT_FIELD_DESC);
1010
    oprot.writeI64(this.lastLogout);
1011
    oprot.writeFieldEnd();
1012
    oprot.writeFieldBegin(EMAIL_VERIFICATION_SENT_ON_FIELD_DESC);
1013
    oprot.writeI64(this.emailVerificationSentOn);
1014
    oprot.writeFieldEnd();
1015
    oprot.writeFieldBegin(SMS_VERIFICATION_SENT_ON_FIELD_DESC);
1016
    oprot.writeI64(this.smsVerificationSentOn);
1017
    oprot.writeFieldEnd();
553 chandransh 1018
    oprot.writeFieldBegin(IS_EMAIL_VERIFIED_FIELD_DESC);
1019
    oprot.writeBool(this.isEmailVerified);
1020
    oprot.writeFieldEnd();
123 ashish 1021
    oprot.writeFieldBegin(IS_SMSVERIFIED_FIELD_DESC);
1022
    oprot.writeBool(this.isSMSVerified);
1023
    oprot.writeFieldEnd();
1024
    oprot.writeFieldBegin(ACTIVE_SINCE_FIELD_DESC);
1025
    oprot.writeI64(this.activeSince);
1026
    oprot.writeFieldEnd();
1027
    if (this.ips != null) {
1028
      oprot.writeFieldBegin(IPS_FIELD_DESC);
1029
      {
3430 rajveer 1030
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.ips.size()));
553 chandransh 1031
        for (IPMap _iter3 : this.ips)
123 ashish 1032
        {
553 chandransh 1033
          _iter3.write(oprot);
123 ashish 1034
        }
1035
        oprot.writeListEnd();
1036
      }
1037
      oprot.writeFieldEnd();
1038
    }
130 ashish 1039
    if (this.status != null) {
1040
      oprot.writeFieldBegin(STATUS_FIELD_DESC);
1041
      oprot.writeI32(this.status.getValue());
1042
      oprot.writeFieldEnd();
1043
    }
123 ashish 1044
    oprot.writeFieldStop();
1045
    oprot.writeStructEnd();
1046
  }
1047
 
1048
  @Override
1049
  public String toString() {
1050
    StringBuilder sb = new StringBuilder("UserState(");
1051
    boolean first = true;
1052
 
1053
    sb.append("userId:");
1054
    sb.append(this.userId);
1055
    first = false;
1056
    if (!first) sb.append(", ");
1057
    sb.append("lastLogin:");
1058
    sb.append(this.lastLogin);
1059
    first = false;
1060
    if (!first) sb.append(", ");
1061
    sb.append("lastLogout:");
1062
    sb.append(this.lastLogout);
1063
    first = false;
1064
    if (!first) sb.append(", ");
1065
    sb.append("emailVerificationSentOn:");
1066
    sb.append(this.emailVerificationSentOn);
1067
    first = false;
1068
    if (!first) sb.append(", ");
1069
    sb.append("smsVerificationSentOn:");
1070
    sb.append(this.smsVerificationSentOn);
1071
    first = false;
1072
    if (!first) sb.append(", ");
553 chandransh 1073
    sb.append("isEmailVerified:");
1074
    sb.append(this.isEmailVerified);
1075
    first = false;
1076
    if (!first) sb.append(", ");
123 ashish 1077
    sb.append("isSMSVerified:");
1078
    sb.append(this.isSMSVerified);
1079
    first = false;
1080
    if (!first) sb.append(", ");
1081
    sb.append("activeSince:");
1082
    sb.append(this.activeSince);
1083
    first = false;
1084
    if (!first) sb.append(", ");
1085
    sb.append("ips:");
1086
    if (this.ips == null) {
1087
      sb.append("null");
1088
    } else {
1089
      sb.append(this.ips);
1090
    }
1091
    first = false;
1092
    if (!first) sb.append(", ");
130 ashish 1093
    sb.append("status:");
1094
    if (this.status == null) {
1095
      sb.append("null");
1096
    } else {
1097
      sb.append(this.status);
1098
    }
1099
    first = false;
123 ashish 1100
    sb.append(")");
1101
    return sb.toString();
1102
  }
1103
 
3430 rajveer 1104
  public void validate() throws org.apache.thrift.TException {
123 ashish 1105
    // check for required fields
1106
  }
1107
 
3430 rajveer 1108
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1109
    try {
1110
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1111
    } catch (org.apache.thrift.TException te) {
1112
      throw new java.io.IOException(te);
1113
    }
1114
  }
1115
 
1116
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1117
    try {
1118
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
1119
      __isset_bit_vector = new BitSet(1);
1120
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1121
    } catch (org.apache.thrift.TException te) {
1122
      throw new java.io.IOException(te);
1123
    }
1124
  }
1125
 
123 ashish 1126
}
1127