Subversion Repositories SmartDukaan

Rev

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