Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
553 chandransh 1
/**
3430 rajveer 2
 * Autogenerated by Thrift Compiler (0.7.0)
553 chandransh 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;
553 chandransh 19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
/**
24
 * The user structure holding the basic information that identifies the user.
25
 * *
26
 */
3430 rajveer 27
public class User implements org.apache.thrift.TBase<User, User._Fields>, java.io.Serializable, Cloneable {
28
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("User");
553 chandransh 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 EMAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("email", org.apache.thrift.protocol.TType.STRING, (short)2);
32
  private static final org.apache.thrift.protocol.TField PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("password", org.apache.thrift.protocol.TType.STRING, (short)3);
33
  private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)4);
34
  private static final org.apache.thrift.protocol.TField DATE_OF_BIRTH_FIELD_DESC = new org.apache.thrift.protocol.TField("dateOfBirth", org.apache.thrift.protocol.TType.STRING, (short)5);
35
  private static final org.apache.thrift.protocol.TField SEX_FIELD_DESC = new org.apache.thrift.protocol.TField("sex", org.apache.thrift.protocol.TType.I32, (short)6);
36
  private static final org.apache.thrift.protocol.TField MOBILE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("mobileNumber", org.apache.thrift.protocol.TType.STRING, (short)7);
37
  private static final org.apache.thrift.protocol.TField SOCIAL_HANDLES_FIELD_DESC = new org.apache.thrift.protocol.TField("socialHandles", org.apache.thrift.protocol.TType.STRUCT, (short)8);
38
  private static final org.apache.thrift.protocol.TField ADDRESSES_FIELD_DESC = new org.apache.thrift.protocol.TField("addresses", org.apache.thrift.protocol.TType.LIST, (short)9);
39
  private static final org.apache.thrift.protocol.TField DEFAULT_ADDRESS_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("defaultAddressId", org.apache.thrift.protocol.TType.I64, (short)10);
40
  private static final org.apache.thrift.protocol.TField COMMUNICATION_EMAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("communicationEmail", org.apache.thrift.protocol.TType.STRING, (short)11);
41
  private static final org.apache.thrift.protocol.TField ACTIVE_CART_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("activeCartId", org.apache.thrift.protocol.TType.I64, (short)12);
42
  private static final org.apache.thrift.protocol.TField JSESSION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("jsessionId", org.apache.thrift.protocol.TType.STRING, (short)13);
43
  private static final org.apache.thrift.protocol.TField IS_ANONYMOUS_FIELD_DESC = new org.apache.thrift.protocol.TField("isAnonymous", org.apache.thrift.protocol.TType.BOOL, (short)14);
44
  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)15);
45
  private static final org.apache.thrift.protocol.TField SOURCE_START_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("sourceStartTime", org.apache.thrift.protocol.TType.I64, (short)16);
3499 mandeep.dh 46
  private static final org.apache.thrift.protocol.TField TRUST_LEVEL_FIELD_DESC = new org.apache.thrift.protocol.TField("trustLevel", org.apache.thrift.protocol.TType.DOUBLE, (short)17);
553 chandransh 47
 
3430 rajveer 48
  private long userId; // required
49
  private String email; // required
50
  private String password; // required
51
  private String name; // required
52
  private String dateOfBirth; // required
53
  private Sex sex; // required
54
  private String mobileNumber; // required
55
  private SocialHandles socialHandles; // required
56
  private List<Address> addresses; // required
57
  private long defaultAddressId; // required
58
  private String communicationEmail; // required
59
  private long activeCartId; // required
60
  private String jsessionId; // required
61
  private boolean isAnonymous; // required
62
  private String source; // required
63
  private long sourceStartTime; // required
3499 mandeep.dh 64
  private double trustLevel; // required
553 chandransh 65
 
66
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 67
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
553 chandransh 68
    USER_ID((short)1, "userId"),
69
    EMAIL((short)2, "email"),
70
    PASSWORD((short)3, "password"),
71
    NAME((short)4, "name"),
72
    DATE_OF_BIRTH((short)5, "dateOfBirth"),
73
    /**
74
     * 
75
     * @see Sex
76
     */
77
    SEX((short)6, "sex"),
571 rajveer 78
    MOBILE_NUMBER((short)7, "mobileNumber"),
553 chandransh 79
    SOCIAL_HANDLES((short)8, "socialHandles"),
80
    ADDRESSES((short)9, "addresses"),
81
    DEFAULT_ADDRESS_ID((short)10, "defaultAddressId"),
82
    COMMUNICATION_EMAIL((short)11, "communicationEmail"),
83
    ACTIVE_CART_ID((short)12, "activeCartId"),
84
    JSESSION_ID((short)13, "jsessionId"),
2020 vikas 85
    IS_ANONYMOUS((short)14, "isAnonymous"),
2816 vikas 86
    SOURCE((short)15, "source"),
3499 mandeep.dh 87
    SOURCE_START_TIME((short)16, "sourceStartTime"),
88
    TRUST_LEVEL((short)17, "trustLevel");
553 chandransh 89
 
90
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
91
 
92
    static {
93
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
94
        byName.put(field.getFieldName(), field);
95
      }
96
    }
97
 
98
    /**
99
     * Find the _Fields constant that matches fieldId, or null if its not found.
100
     */
101
    public static _Fields findByThriftId(int fieldId) {
3430 rajveer 102
      switch(fieldId) {
103
        case 1: // USER_ID
104
          return USER_ID;
105
        case 2: // EMAIL
106
          return EMAIL;
107
        case 3: // PASSWORD
108
          return PASSWORD;
109
        case 4: // NAME
110
          return NAME;
111
        case 5: // DATE_OF_BIRTH
112
          return DATE_OF_BIRTH;
113
        case 6: // SEX
114
          return SEX;
115
        case 7: // MOBILE_NUMBER
116
          return MOBILE_NUMBER;
117
        case 8: // SOCIAL_HANDLES
118
          return SOCIAL_HANDLES;
119
        case 9: // ADDRESSES
120
          return ADDRESSES;
121
        case 10: // DEFAULT_ADDRESS_ID
122
          return DEFAULT_ADDRESS_ID;
123
        case 11: // COMMUNICATION_EMAIL
124
          return COMMUNICATION_EMAIL;
125
        case 12: // ACTIVE_CART_ID
126
          return ACTIVE_CART_ID;
127
        case 13: // JSESSION_ID
128
          return JSESSION_ID;
129
        case 14: // IS_ANONYMOUS
130
          return IS_ANONYMOUS;
131
        case 15: // SOURCE
132
          return SOURCE;
133
        case 16: // SOURCE_START_TIME
134
          return SOURCE_START_TIME;
3499 mandeep.dh 135
        case 17: // TRUST_LEVEL
136
          return TRUST_LEVEL;
3430 rajveer 137
        default:
138
          return null;
139
      }
553 chandransh 140
    }
141
 
142
    /**
143
     * Find the _Fields constant that matches fieldId, throwing an exception
144
     * if it is not found.
145
     */
146
    public static _Fields findByThriftIdOrThrow(int fieldId) {
147
      _Fields fields = findByThriftId(fieldId);
148
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
149
      return fields;
150
    }
151
 
152
    /**
153
     * Find the _Fields constant that matches name, or null if its not found.
154
     */
155
    public static _Fields findByName(String name) {
156
      return byName.get(name);
157
    }
158
 
159
    private final short _thriftId;
160
    private final String _fieldName;
161
 
162
    _Fields(short thriftId, String fieldName) {
163
      _thriftId = thriftId;
164
      _fieldName = fieldName;
165
    }
166
 
167
    public short getThriftFieldId() {
168
      return _thriftId;
169
    }
170
 
171
    public String getFieldName() {
172
      return _fieldName;
173
    }
174
  }
175
 
176
  // isset id assignments
177
  private static final int __USERID_ISSET_ID = 0;
571 rajveer 178
  private static final int __DEFAULTADDRESSID_ISSET_ID = 1;
179
  private static final int __ACTIVECARTID_ISSET_ID = 2;
180
  private static final int __ISANONYMOUS_ISSET_ID = 3;
2816 vikas 181
  private static final int __SOURCESTARTTIME_ISSET_ID = 4;
3499 mandeep.dh 182
  private static final int __TRUSTLEVEL_ISSET_ID = 5;
183
  private BitSet __isset_bit_vector = new BitSet(6);
553 chandransh 184
 
3430 rajveer 185
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
553 chandransh 186
  static {
3430 rajveer 187
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
188
    tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
189
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
190
    tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
191
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
192
    tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
193
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
194
    tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
195
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
196
    tmpMap.put(_Fields.DATE_OF_BIRTH, new org.apache.thrift.meta_data.FieldMetaData("dateOfBirth", org.apache.thrift.TFieldRequirementType.DEFAULT, 
197
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
198
    tmpMap.put(_Fields.SEX, new org.apache.thrift.meta_data.FieldMetaData("sex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
199
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, Sex.class)));
200
    tmpMap.put(_Fields.MOBILE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("mobileNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
201
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
202
    tmpMap.put(_Fields.SOCIAL_HANDLES, new org.apache.thrift.meta_data.FieldMetaData("socialHandles", org.apache.thrift.TFieldRequirementType.DEFAULT, 
203
        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SocialHandles.class)));
204
    tmpMap.put(_Fields.ADDRESSES, new org.apache.thrift.meta_data.FieldMetaData("addresses", org.apache.thrift.TFieldRequirementType.DEFAULT, 
205
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
206
            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Address.class))));
207
    tmpMap.put(_Fields.DEFAULT_ADDRESS_ID, new org.apache.thrift.meta_data.FieldMetaData("defaultAddressId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
208
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
209
    tmpMap.put(_Fields.COMMUNICATION_EMAIL, new org.apache.thrift.meta_data.FieldMetaData("communicationEmail", org.apache.thrift.TFieldRequirementType.DEFAULT, 
210
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
211
    tmpMap.put(_Fields.ACTIVE_CART_ID, new org.apache.thrift.meta_data.FieldMetaData("activeCartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
212
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
213
    tmpMap.put(_Fields.JSESSION_ID, new org.apache.thrift.meta_data.FieldMetaData("jsessionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
214
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
215
    tmpMap.put(_Fields.IS_ANONYMOUS, new org.apache.thrift.meta_data.FieldMetaData("isAnonymous", org.apache.thrift.TFieldRequirementType.DEFAULT, 
216
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
217
    tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
218
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
219
    tmpMap.put(_Fields.SOURCE_START_TIME, new org.apache.thrift.meta_data.FieldMetaData("sourceStartTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
220
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3499 mandeep.dh 221
    tmpMap.put(_Fields.TRUST_LEVEL, new org.apache.thrift.meta_data.FieldMetaData("trustLevel", org.apache.thrift.TFieldRequirementType.DEFAULT, 
222
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
3430 rajveer 223
    metaDataMap = Collections.unmodifiableMap(tmpMap);
224
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(User.class, metaDataMap);
553 chandransh 225
  }
226
 
227
  public User() {
228
  }
229
 
230
  public User(
231
    long userId,
232
    String email,
233
    String password,
234
    String name,
571 rajveer 235
    String dateOfBirth,
553 chandransh 236
    Sex sex,
571 rajveer 237
    String mobileNumber,
553 chandransh 238
    SocialHandles socialHandles,
239
    List<Address> addresses,
240
    long defaultAddressId,
241
    String communicationEmail,
242
    long activeCartId,
243
    String jsessionId,
2020 vikas 244
    boolean isAnonymous,
2816 vikas 245
    String source,
3499 mandeep.dh 246
    long sourceStartTime,
247
    double trustLevel)
553 chandransh 248
  {
249
    this();
250
    this.userId = userId;
251
    setUserIdIsSet(true);
252
    this.email = email;
253
    this.password = password;
254
    this.name = name;
255
    this.dateOfBirth = dateOfBirth;
256
    this.sex = sex;
571 rajveer 257
    this.mobileNumber = mobileNumber;
553 chandransh 258
    this.socialHandles = socialHandles;
259
    this.addresses = addresses;
260
    this.defaultAddressId = defaultAddressId;
261
    setDefaultAddressIdIsSet(true);
262
    this.communicationEmail = communicationEmail;
263
    this.activeCartId = activeCartId;
264
    setActiveCartIdIsSet(true);
265
    this.jsessionId = jsessionId;
266
    this.isAnonymous = isAnonymous;
267
    setIsAnonymousIsSet(true);
2020 vikas 268
    this.source = source;
2816 vikas 269
    this.sourceStartTime = sourceStartTime;
270
    setSourceStartTimeIsSet(true);
3499 mandeep.dh 271
    this.trustLevel = trustLevel;
272
    setTrustLevelIsSet(true);
553 chandransh 273
  }
274
 
275
  /**
276
   * Performs a deep copy on <i>other</i>.
277
   */
278
  public User(User other) {
279
    __isset_bit_vector.clear();
280
    __isset_bit_vector.or(other.__isset_bit_vector);
281
    this.userId = other.userId;
282
    if (other.isSetEmail()) {
283
      this.email = other.email;
284
    }
285
    if (other.isSetPassword()) {
286
      this.password = other.password;
287
    }
288
    if (other.isSetName()) {
289
      this.name = other.name;
290
    }
571 rajveer 291
    if (other.isSetDateOfBirth()) {
292
      this.dateOfBirth = other.dateOfBirth;
293
    }
553 chandransh 294
    if (other.isSetSex()) {
295
      this.sex = other.sex;
296
    }
571 rajveer 297
    if (other.isSetMobileNumber()) {
298
      this.mobileNumber = other.mobileNumber;
553 chandransh 299
    }
300
    if (other.isSetSocialHandles()) {
301
      this.socialHandles = new SocialHandles(other.socialHandles);
302
    }
303
    if (other.isSetAddresses()) {
304
      List<Address> __this__addresses = new ArrayList<Address>();
305
      for (Address other_element : other.addresses) {
306
        __this__addresses.add(new Address(other_element));
307
      }
308
      this.addresses = __this__addresses;
309
    }
310
    this.defaultAddressId = other.defaultAddressId;
311
    if (other.isSetCommunicationEmail()) {
312
      this.communicationEmail = other.communicationEmail;
313
    }
314
    this.activeCartId = other.activeCartId;
315
    if (other.isSetJsessionId()) {
316
      this.jsessionId = other.jsessionId;
317
    }
318
    this.isAnonymous = other.isAnonymous;
2020 vikas 319
    if (other.isSetSource()) {
320
      this.source = other.source;
321
    }
2816 vikas 322
    this.sourceStartTime = other.sourceStartTime;
3499 mandeep.dh 323
    this.trustLevel = other.trustLevel;
553 chandransh 324
  }
325
 
326
  public User deepCopy() {
327
    return new User(this);
328
  }
329
 
3430 rajveer 330
  @Override
331
  public void clear() {
332
    setUserIdIsSet(false);
333
    this.userId = 0;
334
    this.email = null;
335
    this.password = null;
336
    this.name = null;
337
    this.dateOfBirth = null;
338
    this.sex = null;
339
    this.mobileNumber = null;
340
    this.socialHandles = null;
341
    this.addresses = null;
342
    setDefaultAddressIdIsSet(false);
343
    this.defaultAddressId = 0;
344
    this.communicationEmail = null;
345
    setActiveCartIdIsSet(false);
346
    this.activeCartId = 0;
347
    this.jsessionId = null;
348
    setIsAnonymousIsSet(false);
349
    this.isAnonymous = false;
350
    this.source = null;
351
    setSourceStartTimeIsSet(false);
352
    this.sourceStartTime = 0;
3499 mandeep.dh 353
    setTrustLevelIsSet(false);
354
    this.trustLevel = 0.0;
553 chandransh 355
  }
356
 
357
  public long getUserId() {
358
    return this.userId;
359
  }
360
 
3430 rajveer 361
  public void setUserId(long userId) {
553 chandransh 362
    this.userId = userId;
363
    setUserIdIsSet(true);
364
  }
365
 
366
  public void unsetUserId() {
367
    __isset_bit_vector.clear(__USERID_ISSET_ID);
368
  }
369
 
3430 rajveer 370
  /** Returns true if field userId is set (has been assigned a value) and false otherwise */
553 chandransh 371
  public boolean isSetUserId() {
372
    return __isset_bit_vector.get(__USERID_ISSET_ID);
373
  }
374
 
375
  public void setUserIdIsSet(boolean value) {
376
    __isset_bit_vector.set(__USERID_ISSET_ID, value);
377
  }
378
 
379
  public String getEmail() {
380
    return this.email;
381
  }
382
 
3430 rajveer 383
  public void setEmail(String email) {
553 chandransh 384
    this.email = email;
385
  }
386
 
387
  public void unsetEmail() {
388
    this.email = null;
389
  }
390
 
3430 rajveer 391
  /** Returns true if field email is set (has been assigned a value) and false otherwise */
553 chandransh 392
  public boolean isSetEmail() {
393
    return this.email != null;
394
  }
395
 
396
  public void setEmailIsSet(boolean value) {
397
    if (!value) {
398
      this.email = null;
399
    }
400
  }
401
 
402
  public String getPassword() {
403
    return this.password;
404
  }
405
 
3430 rajveer 406
  public void setPassword(String password) {
553 chandransh 407
    this.password = password;
408
  }
409
 
410
  public void unsetPassword() {
411
    this.password = null;
412
  }
413
 
3430 rajveer 414
  /** Returns true if field password is set (has been assigned a value) and false otherwise */
553 chandransh 415
  public boolean isSetPassword() {
416
    return this.password != null;
417
  }
418
 
419
  public void setPasswordIsSet(boolean value) {
420
    if (!value) {
421
      this.password = null;
422
    }
423
  }
424
 
425
  public String getName() {
426
    return this.name;
427
  }
428
 
3430 rajveer 429
  public void setName(String name) {
553 chandransh 430
    this.name = name;
431
  }
432
 
433
  public void unsetName() {
434
    this.name = null;
435
  }
436
 
3430 rajveer 437
  /** Returns true if field name is set (has been assigned a value) and false otherwise */
553 chandransh 438
  public boolean isSetName() {
439
    return this.name != null;
440
  }
441
 
442
  public void setNameIsSet(boolean value) {
443
    if (!value) {
444
      this.name = null;
445
    }
446
  }
447
 
571 rajveer 448
  public String getDateOfBirth() {
553 chandransh 449
    return this.dateOfBirth;
450
  }
451
 
3430 rajveer 452
  public void setDateOfBirth(String dateOfBirth) {
553 chandransh 453
    this.dateOfBirth = dateOfBirth;
454
  }
455
 
456
  public void unsetDateOfBirth() {
571 rajveer 457
    this.dateOfBirth = null;
553 chandransh 458
  }
459
 
3430 rajveer 460
  /** Returns true if field dateOfBirth is set (has been assigned a value) and false otherwise */
553 chandransh 461
  public boolean isSetDateOfBirth() {
571 rajveer 462
    return this.dateOfBirth != null;
553 chandransh 463
  }
464
 
465
  public void setDateOfBirthIsSet(boolean value) {
571 rajveer 466
    if (!value) {
467
      this.dateOfBirth = null;
468
    }
553 chandransh 469
  }
470
 
471
  /**
472
   * 
473
   * @see Sex
474
   */
475
  public Sex getSex() {
476
    return this.sex;
477
  }
478
 
479
  /**
480
   * 
481
   * @see Sex
482
   */
3430 rajveer 483
  public void setSex(Sex sex) {
553 chandransh 484
    this.sex = sex;
485
  }
486
 
487
  public void unsetSex() {
488
    this.sex = null;
489
  }
490
 
3430 rajveer 491
  /** Returns true if field sex is set (has been assigned a value) and false otherwise */
553 chandransh 492
  public boolean isSetSex() {
493
    return this.sex != null;
494
  }
495
 
496
  public void setSexIsSet(boolean value) {
497
    if (!value) {
498
      this.sex = null;
499
    }
500
  }
501
 
571 rajveer 502
  public String getMobileNumber() {
503
    return this.mobileNumber;
553 chandransh 504
  }
505
 
3430 rajveer 506
  public void setMobileNumber(String mobileNumber) {
571 rajveer 507
    this.mobileNumber = mobileNumber;
553 chandransh 508
  }
509
 
571 rajveer 510
  public void unsetMobileNumber() {
511
    this.mobileNumber = null;
553 chandransh 512
  }
513
 
3430 rajveer 514
  /** Returns true if field mobileNumber is set (has been assigned a value) and false otherwise */
571 rajveer 515
  public boolean isSetMobileNumber() {
516
    return this.mobileNumber != null;
553 chandransh 517
  }
518
 
571 rajveer 519
  public void setMobileNumberIsSet(boolean value) {
553 chandransh 520
    if (!value) {
571 rajveer 521
      this.mobileNumber = null;
553 chandransh 522
    }
523
  }
524
 
525
  public SocialHandles getSocialHandles() {
526
    return this.socialHandles;
527
  }
528
 
3430 rajveer 529
  public void setSocialHandles(SocialHandles socialHandles) {
553 chandransh 530
    this.socialHandles = socialHandles;
531
  }
532
 
533
  public void unsetSocialHandles() {
534
    this.socialHandles = null;
535
  }
536
 
3430 rajveer 537
  /** Returns true if field socialHandles is set (has been assigned a value) and false otherwise */
553 chandransh 538
  public boolean isSetSocialHandles() {
539
    return this.socialHandles != null;
540
  }
541
 
542
  public void setSocialHandlesIsSet(boolean value) {
543
    if (!value) {
544
      this.socialHandles = null;
545
    }
546
  }
547
 
548
  public int getAddressesSize() {
549
    return (this.addresses == null) ? 0 : this.addresses.size();
550
  }
551
 
552
  public java.util.Iterator<Address> getAddressesIterator() {
553
    return (this.addresses == null) ? null : this.addresses.iterator();
554
  }
555
 
556
  public void addToAddresses(Address elem) {
557
    if (this.addresses == null) {
558
      this.addresses = new ArrayList<Address>();
559
    }
560
    this.addresses.add(elem);
561
  }
562
 
563
  public List<Address> getAddresses() {
564
    return this.addresses;
565
  }
566
 
3430 rajveer 567
  public void setAddresses(List<Address> addresses) {
553 chandransh 568
    this.addresses = addresses;
569
  }
570
 
571
  public void unsetAddresses() {
572
    this.addresses = null;
573
  }
574
 
3430 rajveer 575
  /** Returns true if field addresses is set (has been assigned a value) and false otherwise */
553 chandransh 576
  public boolean isSetAddresses() {
577
    return this.addresses != null;
578
  }
579
 
580
  public void setAddressesIsSet(boolean value) {
581
    if (!value) {
582
      this.addresses = null;
583
    }
584
  }
585
 
586
  public long getDefaultAddressId() {
587
    return this.defaultAddressId;
588
  }
589
 
3430 rajveer 590
  public void setDefaultAddressId(long defaultAddressId) {
553 chandransh 591
    this.defaultAddressId = defaultAddressId;
592
    setDefaultAddressIdIsSet(true);
593
  }
594
 
595
  public void unsetDefaultAddressId() {
596
    __isset_bit_vector.clear(__DEFAULTADDRESSID_ISSET_ID);
597
  }
598
 
3430 rajveer 599
  /** Returns true if field defaultAddressId is set (has been assigned a value) and false otherwise */
553 chandransh 600
  public boolean isSetDefaultAddressId() {
601
    return __isset_bit_vector.get(__DEFAULTADDRESSID_ISSET_ID);
602
  }
603
 
604
  public void setDefaultAddressIdIsSet(boolean value) {
605
    __isset_bit_vector.set(__DEFAULTADDRESSID_ISSET_ID, value);
606
  }
607
 
608
  public String getCommunicationEmail() {
609
    return this.communicationEmail;
610
  }
611
 
3430 rajveer 612
  public void setCommunicationEmail(String communicationEmail) {
553 chandransh 613
    this.communicationEmail = communicationEmail;
614
  }
615
 
616
  public void unsetCommunicationEmail() {
617
    this.communicationEmail = null;
618
  }
619
 
3430 rajveer 620
  /** Returns true if field communicationEmail is set (has been assigned a value) and false otherwise */
553 chandransh 621
  public boolean isSetCommunicationEmail() {
622
    return this.communicationEmail != null;
623
  }
624
 
625
  public void setCommunicationEmailIsSet(boolean value) {
626
    if (!value) {
627
      this.communicationEmail = null;
628
    }
629
  }
630
 
631
  public long getActiveCartId() {
632
    return this.activeCartId;
633
  }
634
 
3430 rajveer 635
  public void setActiveCartId(long activeCartId) {
553 chandransh 636
    this.activeCartId = activeCartId;
637
    setActiveCartIdIsSet(true);
638
  }
639
 
640
  public void unsetActiveCartId() {
641
    __isset_bit_vector.clear(__ACTIVECARTID_ISSET_ID);
642
  }
643
 
3430 rajveer 644
  /** Returns true if field activeCartId is set (has been assigned a value) and false otherwise */
553 chandransh 645
  public boolean isSetActiveCartId() {
646
    return __isset_bit_vector.get(__ACTIVECARTID_ISSET_ID);
647
  }
648
 
649
  public void setActiveCartIdIsSet(boolean value) {
650
    __isset_bit_vector.set(__ACTIVECARTID_ISSET_ID, value);
651
  }
652
 
653
  public String getJsessionId() {
654
    return this.jsessionId;
655
  }
656
 
3430 rajveer 657
  public void setJsessionId(String jsessionId) {
553 chandransh 658
    this.jsessionId = jsessionId;
659
  }
660
 
661
  public void unsetJsessionId() {
662
    this.jsessionId = null;
663
  }
664
 
3430 rajveer 665
  /** Returns true if field jsessionId is set (has been assigned a value) and false otherwise */
553 chandransh 666
  public boolean isSetJsessionId() {
667
    return this.jsessionId != null;
668
  }
669
 
670
  public void setJsessionIdIsSet(boolean value) {
671
    if (!value) {
672
      this.jsessionId = null;
673
    }
674
  }
675
 
676
  public boolean isIsAnonymous() {
677
    return this.isAnonymous;
678
  }
679
 
3430 rajveer 680
  public void setIsAnonymous(boolean isAnonymous) {
553 chandransh 681
    this.isAnonymous = isAnonymous;
682
    setIsAnonymousIsSet(true);
683
  }
684
 
685
  public void unsetIsAnonymous() {
686
    __isset_bit_vector.clear(__ISANONYMOUS_ISSET_ID);
687
  }
688
 
3430 rajveer 689
  /** Returns true if field isAnonymous is set (has been assigned a value) and false otherwise */
553 chandransh 690
  public boolean isSetIsAnonymous() {
691
    return __isset_bit_vector.get(__ISANONYMOUS_ISSET_ID);
692
  }
693
 
694
  public void setIsAnonymousIsSet(boolean value) {
695
    __isset_bit_vector.set(__ISANONYMOUS_ISSET_ID, value);
696
  }
697
 
2020 vikas 698
  public String getSource() {
699
    return this.source;
700
  }
701
 
3430 rajveer 702
  public void setSource(String source) {
2020 vikas 703
    this.source = source;
704
  }
705
 
706
  public void unsetSource() {
707
    this.source = null;
708
  }
709
 
3430 rajveer 710
  /** Returns true if field source is set (has been assigned a value) and false otherwise */
2020 vikas 711
  public boolean isSetSource() {
712
    return this.source != null;
713
  }
714
 
715
  public void setSourceIsSet(boolean value) {
716
    if (!value) {
717
      this.source = null;
718
    }
719
  }
720
 
2816 vikas 721
  public long getSourceStartTime() {
722
    return this.sourceStartTime;
723
  }
724
 
3430 rajveer 725
  public void setSourceStartTime(long sourceStartTime) {
2816 vikas 726
    this.sourceStartTime = sourceStartTime;
727
    setSourceStartTimeIsSet(true);
728
  }
729
 
730
  public void unsetSourceStartTime() {
731
    __isset_bit_vector.clear(__SOURCESTARTTIME_ISSET_ID);
732
  }
733
 
3430 rajveer 734
  /** Returns true if field sourceStartTime is set (has been assigned a value) and false otherwise */
2816 vikas 735
  public boolean isSetSourceStartTime() {
736
    return __isset_bit_vector.get(__SOURCESTARTTIME_ISSET_ID);
737
  }
738
 
739
  public void setSourceStartTimeIsSet(boolean value) {
740
    __isset_bit_vector.set(__SOURCESTARTTIME_ISSET_ID, value);
741
  }
742
 
3499 mandeep.dh 743
  public double getTrustLevel() {
744
    return this.trustLevel;
745
  }
746
 
747
  public void setTrustLevel(double trustLevel) {
748
    this.trustLevel = trustLevel;
749
    setTrustLevelIsSet(true);
750
  }
751
 
752
  public void unsetTrustLevel() {
753
    __isset_bit_vector.clear(__TRUSTLEVEL_ISSET_ID);
754
  }
755
 
756
  /** Returns true if field trustLevel is set (has been assigned a value) and false otherwise */
757
  public boolean isSetTrustLevel() {
758
    return __isset_bit_vector.get(__TRUSTLEVEL_ISSET_ID);
759
  }
760
 
761
  public void setTrustLevelIsSet(boolean value) {
762
    __isset_bit_vector.set(__TRUSTLEVEL_ISSET_ID, value);
763
  }
764
 
553 chandransh 765
  public void setFieldValue(_Fields field, Object value) {
766
    switch (field) {
767
    case USER_ID:
768
      if (value == null) {
769
        unsetUserId();
770
      } else {
771
        setUserId((Long)value);
772
      }
773
      break;
774
 
775
    case EMAIL:
776
      if (value == null) {
777
        unsetEmail();
778
      } else {
779
        setEmail((String)value);
780
      }
781
      break;
782
 
783
    case PASSWORD:
784
      if (value == null) {
785
        unsetPassword();
786
      } else {
787
        setPassword((String)value);
788
      }
789
      break;
790
 
791
    case NAME:
792
      if (value == null) {
793
        unsetName();
794
      } else {
795
        setName((String)value);
796
      }
797
      break;
798
 
799
    case DATE_OF_BIRTH:
800
      if (value == null) {
801
        unsetDateOfBirth();
802
      } else {
571 rajveer 803
        setDateOfBirth((String)value);
553 chandransh 804
      }
805
      break;
806
 
807
    case SEX:
808
      if (value == null) {
809
        unsetSex();
810
      } else {
811
        setSex((Sex)value);
812
      }
813
      break;
814
 
571 rajveer 815
    case MOBILE_NUMBER:
553 chandransh 816
      if (value == null) {
571 rajveer 817
        unsetMobileNumber();
553 chandransh 818
      } else {
571 rajveer 819
        setMobileNumber((String)value);
553 chandransh 820
      }
821
      break;
822
 
823
    case SOCIAL_HANDLES:
824
      if (value == null) {
825
        unsetSocialHandles();
826
      } else {
827
        setSocialHandles((SocialHandles)value);
828
      }
829
      break;
830
 
831
    case ADDRESSES:
832
      if (value == null) {
833
        unsetAddresses();
834
      } else {
835
        setAddresses((List<Address>)value);
836
      }
837
      break;
838
 
839
    case DEFAULT_ADDRESS_ID:
840
      if (value == null) {
841
        unsetDefaultAddressId();
842
      } else {
843
        setDefaultAddressId((Long)value);
844
      }
845
      break;
846
 
847
    case COMMUNICATION_EMAIL:
848
      if (value == null) {
849
        unsetCommunicationEmail();
850
      } else {
851
        setCommunicationEmail((String)value);
852
      }
853
      break;
854
 
855
    case ACTIVE_CART_ID:
856
      if (value == null) {
857
        unsetActiveCartId();
858
      } else {
859
        setActiveCartId((Long)value);
860
      }
861
      break;
862
 
863
    case JSESSION_ID:
864
      if (value == null) {
865
        unsetJsessionId();
866
      } else {
867
        setJsessionId((String)value);
868
      }
869
      break;
870
 
871
    case IS_ANONYMOUS:
872
      if (value == null) {
873
        unsetIsAnonymous();
874
      } else {
875
        setIsAnonymous((Boolean)value);
876
      }
877
      break;
878
 
2020 vikas 879
    case SOURCE:
880
      if (value == null) {
881
        unsetSource();
882
      } else {
883
        setSource((String)value);
884
      }
885
      break;
886
 
2816 vikas 887
    case SOURCE_START_TIME:
888
      if (value == null) {
889
        unsetSourceStartTime();
890
      } else {
891
        setSourceStartTime((Long)value);
892
      }
893
      break;
894
 
3499 mandeep.dh 895
    case TRUST_LEVEL:
896
      if (value == null) {
897
        unsetTrustLevel();
898
      } else {
899
        setTrustLevel((Double)value);
900
      }
901
      break;
902
 
553 chandransh 903
    }
904
  }
905
 
906
  public Object getFieldValue(_Fields field) {
907
    switch (field) {
908
    case USER_ID:
3430 rajveer 909
      return Long.valueOf(getUserId());
553 chandransh 910
 
911
    case EMAIL:
912
      return getEmail();
913
 
914
    case PASSWORD:
915
      return getPassword();
916
 
917
    case NAME:
918
      return getName();
919
 
920
    case DATE_OF_BIRTH:
571 rajveer 921
      return getDateOfBirth();
553 chandransh 922
 
923
    case SEX:
924
      return getSex();
925
 
571 rajveer 926
    case MOBILE_NUMBER:
927
      return getMobileNumber();
553 chandransh 928
 
929
    case SOCIAL_HANDLES:
930
      return getSocialHandles();
931
 
932
    case ADDRESSES:
933
      return getAddresses();
934
 
935
    case DEFAULT_ADDRESS_ID:
3430 rajveer 936
      return Long.valueOf(getDefaultAddressId());
553 chandransh 937
 
938
    case COMMUNICATION_EMAIL:
939
      return getCommunicationEmail();
940
 
941
    case ACTIVE_CART_ID:
3430 rajveer 942
      return Long.valueOf(getActiveCartId());
553 chandransh 943
 
944
    case JSESSION_ID:
945
      return getJsessionId();
946
 
947
    case IS_ANONYMOUS:
3430 rajveer 948
      return Boolean.valueOf(isIsAnonymous());
553 chandransh 949
 
2020 vikas 950
    case SOURCE:
951
      return getSource();
952
 
2816 vikas 953
    case SOURCE_START_TIME:
3430 rajveer 954
      return Long.valueOf(getSourceStartTime());
2816 vikas 955
 
3499 mandeep.dh 956
    case TRUST_LEVEL:
957
      return Double.valueOf(getTrustLevel());
958
 
553 chandransh 959
    }
960
    throw new IllegalStateException();
961
  }
962
 
3430 rajveer 963
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
964
  public boolean isSet(_Fields field) {
965
    if (field == null) {
966
      throw new IllegalArgumentException();
967
    }
553 chandransh 968
 
969
    switch (field) {
970
    case USER_ID:
971
      return isSetUserId();
972
    case EMAIL:
973
      return isSetEmail();
974
    case PASSWORD:
975
      return isSetPassword();
976
    case NAME:
977
      return isSetName();
978
    case DATE_OF_BIRTH:
979
      return isSetDateOfBirth();
980
    case SEX:
981
      return isSetSex();
571 rajveer 982
    case MOBILE_NUMBER:
983
      return isSetMobileNumber();
553 chandransh 984
    case SOCIAL_HANDLES:
985
      return isSetSocialHandles();
986
    case ADDRESSES:
987
      return isSetAddresses();
988
    case DEFAULT_ADDRESS_ID:
989
      return isSetDefaultAddressId();
990
    case COMMUNICATION_EMAIL:
991
      return isSetCommunicationEmail();
992
    case ACTIVE_CART_ID:
993
      return isSetActiveCartId();
994
    case JSESSION_ID:
995
      return isSetJsessionId();
996
    case IS_ANONYMOUS:
997
      return isSetIsAnonymous();
2020 vikas 998
    case SOURCE:
999
      return isSetSource();
2816 vikas 1000
    case SOURCE_START_TIME:
1001
      return isSetSourceStartTime();
3499 mandeep.dh 1002
    case TRUST_LEVEL:
1003
      return isSetTrustLevel();
553 chandransh 1004
    }
1005
    throw new IllegalStateException();
1006
  }
1007
 
1008
  @Override
1009
  public boolean equals(Object that) {
1010
    if (that == null)
1011
      return false;
1012
    if (that instanceof User)
1013
      return this.equals((User)that);
1014
    return false;
1015
  }
1016
 
1017
  public boolean equals(User that) {
1018
    if (that == null)
1019
      return false;
1020
 
1021
    boolean this_present_userId = true;
1022
    boolean that_present_userId = true;
1023
    if (this_present_userId || that_present_userId) {
1024
      if (!(this_present_userId && that_present_userId))
1025
        return false;
1026
      if (this.userId != that.userId)
1027
        return false;
1028
    }
1029
 
1030
    boolean this_present_email = true && this.isSetEmail();
1031
    boolean that_present_email = true && that.isSetEmail();
1032
    if (this_present_email || that_present_email) {
1033
      if (!(this_present_email && that_present_email))
1034
        return false;
1035
      if (!this.email.equals(that.email))
1036
        return false;
1037
    }
1038
 
1039
    boolean this_present_password = true && this.isSetPassword();
1040
    boolean that_present_password = true && that.isSetPassword();
1041
    if (this_present_password || that_present_password) {
1042
      if (!(this_present_password && that_present_password))
1043
        return false;
1044
      if (!this.password.equals(that.password))
1045
        return false;
1046
    }
1047
 
1048
    boolean this_present_name = true && this.isSetName();
1049
    boolean that_present_name = true && that.isSetName();
1050
    if (this_present_name || that_present_name) {
1051
      if (!(this_present_name && that_present_name))
1052
        return false;
1053
      if (!this.name.equals(that.name))
1054
        return false;
1055
    }
1056
 
571 rajveer 1057
    boolean this_present_dateOfBirth = true && this.isSetDateOfBirth();
1058
    boolean that_present_dateOfBirth = true && that.isSetDateOfBirth();
553 chandransh 1059
    if (this_present_dateOfBirth || that_present_dateOfBirth) {
1060
      if (!(this_present_dateOfBirth && that_present_dateOfBirth))
1061
        return false;
571 rajveer 1062
      if (!this.dateOfBirth.equals(that.dateOfBirth))
553 chandransh 1063
        return false;
1064
    }
1065
 
1066
    boolean this_present_sex = true && this.isSetSex();
1067
    boolean that_present_sex = true && that.isSetSex();
1068
    if (this_present_sex || that_present_sex) {
1069
      if (!(this_present_sex && that_present_sex))
1070
        return false;
1071
      if (!this.sex.equals(that.sex))
1072
        return false;
1073
    }
1074
 
571 rajveer 1075
    boolean this_present_mobileNumber = true && this.isSetMobileNumber();
1076
    boolean that_present_mobileNumber = true && that.isSetMobileNumber();
1077
    if (this_present_mobileNumber || that_present_mobileNumber) {
1078
      if (!(this_present_mobileNumber && that_present_mobileNumber))
553 chandransh 1079
        return false;
571 rajveer 1080
      if (!this.mobileNumber.equals(that.mobileNumber))
553 chandransh 1081
        return false;
1082
    }
1083
 
1084
    boolean this_present_socialHandles = true && this.isSetSocialHandles();
1085
    boolean that_present_socialHandles = true && that.isSetSocialHandles();
1086
    if (this_present_socialHandles || that_present_socialHandles) {
1087
      if (!(this_present_socialHandles && that_present_socialHandles))
1088
        return false;
1089
      if (!this.socialHandles.equals(that.socialHandles))
1090
        return false;
1091
    }
1092
 
1093
    boolean this_present_addresses = true && this.isSetAddresses();
1094
    boolean that_present_addresses = true && that.isSetAddresses();
1095
    if (this_present_addresses || that_present_addresses) {
1096
      if (!(this_present_addresses && that_present_addresses))
1097
        return false;
1098
      if (!this.addresses.equals(that.addresses))
1099
        return false;
1100
    }
1101
 
1102
    boolean this_present_defaultAddressId = true;
1103
    boolean that_present_defaultAddressId = true;
1104
    if (this_present_defaultAddressId || that_present_defaultAddressId) {
1105
      if (!(this_present_defaultAddressId && that_present_defaultAddressId))
1106
        return false;
1107
      if (this.defaultAddressId != that.defaultAddressId)
1108
        return false;
1109
    }
1110
 
1111
    boolean this_present_communicationEmail = true && this.isSetCommunicationEmail();
1112
    boolean that_present_communicationEmail = true && that.isSetCommunicationEmail();
1113
    if (this_present_communicationEmail || that_present_communicationEmail) {
1114
      if (!(this_present_communicationEmail && that_present_communicationEmail))
1115
        return false;
1116
      if (!this.communicationEmail.equals(that.communicationEmail))
1117
        return false;
1118
    }
1119
 
1120
    boolean this_present_activeCartId = true;
1121
    boolean that_present_activeCartId = true;
1122
    if (this_present_activeCartId || that_present_activeCartId) {
1123
      if (!(this_present_activeCartId && that_present_activeCartId))
1124
        return false;
1125
      if (this.activeCartId != that.activeCartId)
1126
        return false;
1127
    }
1128
 
1129
    boolean this_present_jsessionId = true && this.isSetJsessionId();
1130
    boolean that_present_jsessionId = true && that.isSetJsessionId();
1131
    if (this_present_jsessionId || that_present_jsessionId) {
1132
      if (!(this_present_jsessionId && that_present_jsessionId))
1133
        return false;
1134
      if (!this.jsessionId.equals(that.jsessionId))
1135
        return false;
1136
    }
1137
 
1138
    boolean this_present_isAnonymous = true;
1139
    boolean that_present_isAnonymous = true;
1140
    if (this_present_isAnonymous || that_present_isAnonymous) {
1141
      if (!(this_present_isAnonymous && that_present_isAnonymous))
1142
        return false;
1143
      if (this.isAnonymous != that.isAnonymous)
1144
        return false;
1145
    }
1146
 
2020 vikas 1147
    boolean this_present_source = true && this.isSetSource();
1148
    boolean that_present_source = true && that.isSetSource();
1149
    if (this_present_source || that_present_source) {
1150
      if (!(this_present_source && that_present_source))
1151
        return false;
1152
      if (!this.source.equals(that.source))
1153
        return false;
1154
    }
1155
 
2816 vikas 1156
    boolean this_present_sourceStartTime = true;
1157
    boolean that_present_sourceStartTime = true;
1158
    if (this_present_sourceStartTime || that_present_sourceStartTime) {
1159
      if (!(this_present_sourceStartTime && that_present_sourceStartTime))
1160
        return false;
1161
      if (this.sourceStartTime != that.sourceStartTime)
1162
        return false;
1163
    }
1164
 
3499 mandeep.dh 1165
    boolean this_present_trustLevel = true;
1166
    boolean that_present_trustLevel = true;
1167
    if (this_present_trustLevel || that_present_trustLevel) {
1168
      if (!(this_present_trustLevel && that_present_trustLevel))
1169
        return false;
1170
      if (this.trustLevel != that.trustLevel)
1171
        return false;
1172
    }
1173
 
553 chandransh 1174
    return true;
1175
  }
1176
 
1177
  @Override
1178
  public int hashCode() {
1179
    return 0;
1180
  }
1181
 
571 rajveer 1182
  public int compareTo(User other) {
1183
    if (!getClass().equals(other.getClass())) {
1184
      return getClass().getName().compareTo(other.getClass().getName());
1185
    }
1186
 
1187
    int lastComparison = 0;
1188
    User typedOther = (User)other;
1189
 
3430 rajveer 1190
    lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
571 rajveer 1191
    if (lastComparison != 0) {
1192
      return lastComparison;
1193
    }
3430 rajveer 1194
    if (isSetUserId()) {
1195
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
1196
      if (lastComparison != 0) {
1197
        return lastComparison;
1198
      }
571 rajveer 1199
    }
3430 rajveer 1200
    lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
571 rajveer 1201
    if (lastComparison != 0) {
1202
      return lastComparison;
1203
    }
3430 rajveer 1204
    if (isSetEmail()) {
1205
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
1206
      if (lastComparison != 0) {
1207
        return lastComparison;
1208
      }
571 rajveer 1209
    }
3430 rajveer 1210
    lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
571 rajveer 1211
    if (lastComparison != 0) {
1212
      return lastComparison;
1213
    }
3430 rajveer 1214
    if (isSetPassword()) {
1215
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
1216
      if (lastComparison != 0) {
1217
        return lastComparison;
1218
      }
571 rajveer 1219
    }
3430 rajveer 1220
    lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
571 rajveer 1221
    if (lastComparison != 0) {
1222
      return lastComparison;
1223
    }
3430 rajveer 1224
    if (isSetName()) {
1225
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
1226
      if (lastComparison != 0) {
1227
        return lastComparison;
1228
      }
571 rajveer 1229
    }
3430 rajveer 1230
    lastComparison = Boolean.valueOf(isSetDateOfBirth()).compareTo(typedOther.isSetDateOfBirth());
571 rajveer 1231
    if (lastComparison != 0) {
1232
      return lastComparison;
1233
    }
3430 rajveer 1234
    if (isSetDateOfBirth()) {
1235
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dateOfBirth, typedOther.dateOfBirth);
1236
      if (lastComparison != 0) {
1237
        return lastComparison;
1238
      }
571 rajveer 1239
    }
3430 rajveer 1240
    lastComparison = Boolean.valueOf(isSetSex()).compareTo(typedOther.isSetSex());
571 rajveer 1241
    if (lastComparison != 0) {
1242
      return lastComparison;
1243
    }
3430 rajveer 1244
    if (isSetSex()) {
1245
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sex, typedOther.sex);
1246
      if (lastComparison != 0) {
1247
        return lastComparison;
1248
      }
571 rajveer 1249
    }
3430 rajveer 1250
    lastComparison = Boolean.valueOf(isSetMobileNumber()).compareTo(typedOther.isSetMobileNumber());
571 rajveer 1251
    if (lastComparison != 0) {
1252
      return lastComparison;
1253
    }
3430 rajveer 1254
    if (isSetMobileNumber()) {
1255
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mobileNumber, typedOther.mobileNumber);
1256
      if (lastComparison != 0) {
1257
        return lastComparison;
1258
      }
571 rajveer 1259
    }
3430 rajveer 1260
    lastComparison = Boolean.valueOf(isSetSocialHandles()).compareTo(typedOther.isSetSocialHandles());
571 rajveer 1261
    if (lastComparison != 0) {
1262
      return lastComparison;
1263
    }
3430 rajveer 1264
    if (isSetSocialHandles()) {
1265
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.socialHandles, typedOther.socialHandles);
1266
      if (lastComparison != 0) {
1267
        return lastComparison;
1268
      }
571 rajveer 1269
    }
3430 rajveer 1270
    lastComparison = Boolean.valueOf(isSetAddresses()).compareTo(typedOther.isSetAddresses());
571 rajveer 1271
    if (lastComparison != 0) {
1272
      return lastComparison;
1273
    }
3430 rajveer 1274
    if (isSetAddresses()) {
1275
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addresses, typedOther.addresses);
1276
      if (lastComparison != 0) {
1277
        return lastComparison;
1278
      }
571 rajveer 1279
    }
3430 rajveer 1280
    lastComparison = Boolean.valueOf(isSetDefaultAddressId()).compareTo(typedOther.isSetDefaultAddressId());
571 rajveer 1281
    if (lastComparison != 0) {
1282
      return lastComparison;
1283
    }
3430 rajveer 1284
    if (isSetDefaultAddressId()) {
1285
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.defaultAddressId, typedOther.defaultAddressId);
1286
      if (lastComparison != 0) {
1287
        return lastComparison;
1288
      }
571 rajveer 1289
    }
3430 rajveer 1290
    lastComparison = Boolean.valueOf(isSetCommunicationEmail()).compareTo(typedOther.isSetCommunicationEmail());
571 rajveer 1291
    if (lastComparison != 0) {
1292
      return lastComparison;
1293
    }
3430 rajveer 1294
    if (isSetCommunicationEmail()) {
1295
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.communicationEmail, typedOther.communicationEmail);
1296
      if (lastComparison != 0) {
1297
        return lastComparison;
1298
      }
571 rajveer 1299
    }
3430 rajveer 1300
    lastComparison = Boolean.valueOf(isSetActiveCartId()).compareTo(typedOther.isSetActiveCartId());
571 rajveer 1301
    if (lastComparison != 0) {
1302
      return lastComparison;
1303
    }
3430 rajveer 1304
    if (isSetActiveCartId()) {
1305
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.activeCartId, typedOther.activeCartId);
1306
      if (lastComparison != 0) {
1307
        return lastComparison;
1308
      }
571 rajveer 1309
    }
3430 rajveer 1310
    lastComparison = Boolean.valueOf(isSetJsessionId()).compareTo(typedOther.isSetJsessionId());
571 rajveer 1311
    if (lastComparison != 0) {
1312
      return lastComparison;
1313
    }
3430 rajveer 1314
    if (isSetJsessionId()) {
1315
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.jsessionId, typedOther.jsessionId);
1316
      if (lastComparison != 0) {
1317
        return lastComparison;
1318
      }
571 rajveer 1319
    }
3430 rajveer 1320
    lastComparison = Boolean.valueOf(isSetIsAnonymous()).compareTo(typedOther.isSetIsAnonymous());
571 rajveer 1321
    if (lastComparison != 0) {
1322
      return lastComparison;
1323
    }
3430 rajveer 1324
    if (isSetIsAnonymous()) {
1325
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isAnonymous, typedOther.isAnonymous);
1326
      if (lastComparison != 0) {
1327
        return lastComparison;
1328
      }
571 rajveer 1329
    }
3430 rajveer 1330
    lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
2020 vikas 1331
    if (lastComparison != 0) {
1332
      return lastComparison;
1333
    }
3430 rajveer 1334
    if (isSetSource()) {
1335
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
1336
      if (lastComparison != 0) {
1337
        return lastComparison;
1338
      }
2020 vikas 1339
    }
3430 rajveer 1340
    lastComparison = Boolean.valueOf(isSetSourceStartTime()).compareTo(typedOther.isSetSourceStartTime());
2816 vikas 1341
    if (lastComparison != 0) {
1342
      return lastComparison;
1343
    }
3430 rajveer 1344
    if (isSetSourceStartTime()) {
1345
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceStartTime, typedOther.sourceStartTime);
1346
      if (lastComparison != 0) {
1347
        return lastComparison;
1348
      }
2816 vikas 1349
    }
3499 mandeep.dh 1350
    lastComparison = Boolean.valueOf(isSetTrustLevel()).compareTo(typedOther.isSetTrustLevel());
1351
    if (lastComparison != 0) {
1352
      return lastComparison;
1353
    }
1354
    if (isSetTrustLevel()) {
1355
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.trustLevel, typedOther.trustLevel);
1356
      if (lastComparison != 0) {
1357
        return lastComparison;
1358
      }
1359
    }
571 rajveer 1360
    return 0;
1361
  }
1362
 
3430 rajveer 1363
  public _Fields fieldForId(int fieldId) {
1364
    return _Fields.findByThriftId(fieldId);
1365
  }
1366
 
1367
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1368
    org.apache.thrift.protocol.TField field;
553 chandransh 1369
    iprot.readStructBegin();
1370
    while (true)
1371
    {
1372
      field = iprot.readFieldBegin();
3430 rajveer 1373
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
553 chandransh 1374
        break;
1375
      }
3430 rajveer 1376
      switch (field.id) {
1377
        case 1: // USER_ID
1378
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1379
            this.userId = iprot.readI64();
1380
            setUserIdIsSet(true);
1381
          } else { 
1382
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1383
          }
1384
          break;
1385
        case 2: // EMAIL
1386
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1387
            this.email = iprot.readString();
1388
          } else { 
1389
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1390
          }
1391
          break;
1392
        case 3: // PASSWORD
1393
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1394
            this.password = iprot.readString();
1395
          } else { 
1396
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1397
          }
1398
          break;
1399
        case 4: // NAME
1400
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1401
            this.name = iprot.readString();
1402
          } else { 
1403
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1404
          }
1405
          break;
1406
        case 5: // DATE_OF_BIRTH
1407
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1408
            this.dateOfBirth = iprot.readString();
1409
          } else { 
1410
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1411
          }
1412
          break;
1413
        case 6: // SEX
1414
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1415
            this.sex = Sex.findByValue(iprot.readI32());
1416
          } else { 
1417
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1418
          }
1419
          break;
1420
        case 7: // MOBILE_NUMBER
1421
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1422
            this.mobileNumber = iprot.readString();
1423
          } else { 
1424
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1425
          }
1426
          break;
1427
        case 8: // SOCIAL_HANDLES
1428
          if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
1429
            this.socialHandles = new SocialHandles();
1430
            this.socialHandles.read(iprot);
1431
          } else { 
1432
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1433
          }
1434
          break;
1435
        case 9: // ADDRESSES
1436
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
1437
            {
1438
              org.apache.thrift.protocol.TList _list4 = iprot.readListBegin();
1439
              this.addresses = new ArrayList<Address>(_list4.size);
1440
              for (int _i5 = 0; _i5 < _list4.size; ++_i5)
553 chandransh 1441
              {
3430 rajveer 1442
                Address _elem6; // required
1443
                _elem6 = new Address();
1444
                _elem6.read(iprot);
1445
                this.addresses.add(_elem6);
553 chandransh 1446
              }
3430 rajveer 1447
              iprot.readListEnd();
553 chandransh 1448
            }
3430 rajveer 1449
          } else { 
1450
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1451
          }
1452
          break;
1453
        case 10: // DEFAULT_ADDRESS_ID
1454
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1455
            this.defaultAddressId = iprot.readI64();
1456
            setDefaultAddressIdIsSet(true);
1457
          } else { 
1458
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1459
          }
1460
          break;
1461
        case 11: // COMMUNICATION_EMAIL
1462
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1463
            this.communicationEmail = iprot.readString();
1464
          } else { 
1465
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1466
          }
1467
          break;
1468
        case 12: // ACTIVE_CART_ID
1469
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1470
            this.activeCartId = iprot.readI64();
1471
            setActiveCartIdIsSet(true);
1472
          } else { 
1473
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1474
          }
1475
          break;
1476
        case 13: // JSESSION_ID
1477
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1478
            this.jsessionId = iprot.readString();
1479
          } else { 
1480
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1481
          }
1482
          break;
1483
        case 14: // IS_ANONYMOUS
1484
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1485
            this.isAnonymous = iprot.readBool();
1486
            setIsAnonymousIsSet(true);
1487
          } else { 
1488
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1489
          }
1490
          break;
1491
        case 15: // SOURCE
1492
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1493
            this.source = iprot.readString();
1494
          } else { 
1495
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1496
          }
1497
          break;
1498
        case 16: // SOURCE_START_TIME
1499
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1500
            this.sourceStartTime = iprot.readI64();
1501
            setSourceStartTimeIsSet(true);
1502
          } else { 
1503
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1504
          }
1505
          break;
3499 mandeep.dh 1506
        case 17: // TRUST_LEVEL
1507
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1508
            this.trustLevel = iprot.readDouble();
1509
            setTrustLevelIsSet(true);
1510
          } else { 
1511
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1512
          }
1513
          break;
3430 rajveer 1514
        default:
1515
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
553 chandransh 1516
      }
3430 rajveer 1517
      iprot.readFieldEnd();
553 chandransh 1518
    }
1519
    iprot.readStructEnd();
1520
    validate();
1521
  }
1522
 
3430 rajveer 1523
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
553 chandransh 1524
    validate();
1525
 
1526
    oprot.writeStructBegin(STRUCT_DESC);
1527
    oprot.writeFieldBegin(USER_ID_FIELD_DESC);
1528
    oprot.writeI64(this.userId);
1529
    oprot.writeFieldEnd();
1530
    if (this.email != null) {
1531
      oprot.writeFieldBegin(EMAIL_FIELD_DESC);
1532
      oprot.writeString(this.email);
1533
      oprot.writeFieldEnd();
1534
    }
1535
    if (this.password != null) {
1536
      oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
1537
      oprot.writeString(this.password);
1538
      oprot.writeFieldEnd();
1539
    }
1540
    if (this.name != null) {
1541
      oprot.writeFieldBegin(NAME_FIELD_DESC);
1542
      oprot.writeString(this.name);
1543
      oprot.writeFieldEnd();
1544
    }
571 rajveer 1545
    if (this.dateOfBirth != null) {
1546
      oprot.writeFieldBegin(DATE_OF_BIRTH_FIELD_DESC);
1547
      oprot.writeString(this.dateOfBirth);
1548
      oprot.writeFieldEnd();
1549
    }
553 chandransh 1550
    if (this.sex != null) {
1551
      oprot.writeFieldBegin(SEX_FIELD_DESC);
1552
      oprot.writeI32(this.sex.getValue());
1553
      oprot.writeFieldEnd();
1554
    }
571 rajveer 1555
    if (this.mobileNumber != null) {
1556
      oprot.writeFieldBegin(MOBILE_NUMBER_FIELD_DESC);
1557
      oprot.writeString(this.mobileNumber);
553 chandransh 1558
      oprot.writeFieldEnd();
1559
    }
1560
    if (this.socialHandles != null) {
1561
      oprot.writeFieldBegin(SOCIAL_HANDLES_FIELD_DESC);
1562
      this.socialHandles.write(oprot);
1563
      oprot.writeFieldEnd();
1564
    }
1565
    if (this.addresses != null) {
1566
      oprot.writeFieldBegin(ADDRESSES_FIELD_DESC);
1567
      {
3430 rajveer 1568
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.addresses.size()));
571 rajveer 1569
        for (Address _iter7 : this.addresses)
553 chandransh 1570
        {
571 rajveer 1571
          _iter7.write(oprot);
553 chandransh 1572
        }
1573
        oprot.writeListEnd();
1574
      }
1575
      oprot.writeFieldEnd();
1576
    }
1577
    oprot.writeFieldBegin(DEFAULT_ADDRESS_ID_FIELD_DESC);
1578
    oprot.writeI64(this.defaultAddressId);
1579
    oprot.writeFieldEnd();
1580
    if (this.communicationEmail != null) {
1581
      oprot.writeFieldBegin(COMMUNICATION_EMAIL_FIELD_DESC);
1582
      oprot.writeString(this.communicationEmail);
1583
      oprot.writeFieldEnd();
1584
    }
1585
    oprot.writeFieldBegin(ACTIVE_CART_ID_FIELD_DESC);
1586
    oprot.writeI64(this.activeCartId);
1587
    oprot.writeFieldEnd();
1588
    if (this.jsessionId != null) {
1589
      oprot.writeFieldBegin(JSESSION_ID_FIELD_DESC);
1590
      oprot.writeString(this.jsessionId);
1591
      oprot.writeFieldEnd();
1592
    }
1593
    oprot.writeFieldBegin(IS_ANONYMOUS_FIELD_DESC);
1594
    oprot.writeBool(this.isAnonymous);
1595
    oprot.writeFieldEnd();
2020 vikas 1596
    if (this.source != null) {
1597
      oprot.writeFieldBegin(SOURCE_FIELD_DESC);
1598
      oprot.writeString(this.source);
1599
      oprot.writeFieldEnd();
1600
    }
2816 vikas 1601
    oprot.writeFieldBegin(SOURCE_START_TIME_FIELD_DESC);
1602
    oprot.writeI64(this.sourceStartTime);
1603
    oprot.writeFieldEnd();
3499 mandeep.dh 1604
    oprot.writeFieldBegin(TRUST_LEVEL_FIELD_DESC);
1605
    oprot.writeDouble(this.trustLevel);
1606
    oprot.writeFieldEnd();
553 chandransh 1607
    oprot.writeFieldStop();
1608
    oprot.writeStructEnd();
1609
  }
1610
 
1611
  @Override
1612
  public String toString() {
1613
    StringBuilder sb = new StringBuilder("User(");
1614
    boolean first = true;
1615
 
1616
    sb.append("userId:");
1617
    sb.append(this.userId);
1618
    first = false;
1619
    if (!first) sb.append(", ");
1620
    sb.append("email:");
1621
    if (this.email == null) {
1622
      sb.append("null");
1623
    } else {
1624
      sb.append(this.email);
1625
    }
1626
    first = false;
1627
    if (!first) sb.append(", ");
1628
    sb.append("password:");
1629
    if (this.password == null) {
1630
      sb.append("null");
1631
    } else {
1632
      sb.append(this.password);
1633
    }
1634
    first = false;
1635
    if (!first) sb.append(", ");
1636
    sb.append("name:");
1637
    if (this.name == null) {
1638
      sb.append("null");
1639
    } else {
1640
      sb.append(this.name);
1641
    }
1642
    first = false;
1643
    if (!first) sb.append(", ");
1644
    sb.append("dateOfBirth:");
571 rajveer 1645
    if (this.dateOfBirth == null) {
1646
      sb.append("null");
1647
    } else {
1648
      sb.append(this.dateOfBirth);
1649
    }
553 chandransh 1650
    first = false;
1651
    if (!first) sb.append(", ");
1652
    sb.append("sex:");
1653
    if (this.sex == null) {
1654
      sb.append("null");
1655
    } else {
1656
      sb.append(this.sex);
1657
    }
1658
    first = false;
1659
    if (!first) sb.append(", ");
571 rajveer 1660
    sb.append("mobileNumber:");
1661
    if (this.mobileNumber == null) {
553 chandransh 1662
      sb.append("null");
1663
    } else {
571 rajveer 1664
      sb.append(this.mobileNumber);
553 chandransh 1665
    }
1666
    first = false;
1667
    if (!first) sb.append(", ");
1668
    sb.append("socialHandles:");
1669
    if (this.socialHandles == null) {
1670
      sb.append("null");
1671
    } else {
1672
      sb.append(this.socialHandles);
1673
    }
1674
    first = false;
1675
    if (!first) sb.append(", ");
1676
    sb.append("addresses:");
1677
    if (this.addresses == null) {
1678
      sb.append("null");
1679
    } else {
1680
      sb.append(this.addresses);
1681
    }
1682
    first = false;
1683
    if (!first) sb.append(", ");
1684
    sb.append("defaultAddressId:");
1685
    sb.append(this.defaultAddressId);
1686
    first = false;
1687
    if (!first) sb.append(", ");
1688
    sb.append("communicationEmail:");
1689
    if (this.communicationEmail == null) {
1690
      sb.append("null");
1691
    } else {
1692
      sb.append(this.communicationEmail);
1693
    }
1694
    first = false;
1695
    if (!first) sb.append(", ");
1696
    sb.append("activeCartId:");
1697
    sb.append(this.activeCartId);
1698
    first = false;
1699
    if (!first) sb.append(", ");
1700
    sb.append("jsessionId:");
1701
    if (this.jsessionId == null) {
1702
      sb.append("null");
1703
    } else {
1704
      sb.append(this.jsessionId);
1705
    }
1706
    first = false;
1707
    if (!first) sb.append(", ");
1708
    sb.append("isAnonymous:");
1709
    sb.append(this.isAnonymous);
1710
    first = false;
2020 vikas 1711
    if (!first) sb.append(", ");
1712
    sb.append("source:");
1713
    if (this.source == null) {
1714
      sb.append("null");
1715
    } else {
1716
      sb.append(this.source);
1717
    }
1718
    first = false;
2816 vikas 1719
    if (!first) sb.append(", ");
1720
    sb.append("sourceStartTime:");
1721
    sb.append(this.sourceStartTime);
1722
    first = false;
3499 mandeep.dh 1723
    if (!first) sb.append(", ");
1724
    sb.append("trustLevel:");
1725
    sb.append(this.trustLevel);
1726
    first = false;
553 chandransh 1727
    sb.append(")");
1728
    return sb.toString();
1729
  }
1730
 
3430 rajveer 1731
  public void validate() throws org.apache.thrift.TException {
553 chandransh 1732
    // check for required fields
1733
  }
1734
 
3430 rajveer 1735
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1736
    try {
1737
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1738
    } catch (org.apache.thrift.TException te) {
1739
      throw new java.io.IOException(te);
1740
    }
1741
  }
1742
 
1743
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1744
    try {
1745
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
1746
      __isset_bit_vector = new BitSet(1);
1747
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1748
    } catch (org.apache.thrift.TException te) {
1749
      throw new java.io.IOException(te);
1750
    }
1751
  }
1752
 
553 chandransh 1753
}
1754