Subversion Repositories SmartDukaan

Rev

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

Rev 2816 Rev 3430
Line 1... Line 1...
1
/**
1
/**
2
 * Autogenerated by Thrift
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
5
 */
6
package in.shop2020.model.v1.user;
6
package in.shop2020.model.v1.user;
7
 
7
 
Line 13... Line 13...
13
import java.util.Set;
13
import java.util.Set;
14
import java.util.HashSet;
14
import java.util.HashSet;
15
import java.util.EnumSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
16
import java.util.Collections;
17
import java.util.BitSet;
17
import java.util.BitSet;
-
 
18
import java.nio.ByteBuffer;
18
import java.util.Arrays;
19
import java.util.Arrays;
19
import org.slf4j.Logger;
20
import org.slf4j.Logger;
20
import org.slf4j.LoggerFactory;
21
import org.slf4j.LoggerFactory;
21
 
22
 
22
import org.apache.thrift.*;
-
 
23
import org.apache.thrift.meta_data.*;
-
 
24
import org.apache.thrift.protocol.*;
-
 
25
 
-
 
26
/**
23
/**
27
 * The user structure holding the basic information that identifies the user.
24
 * The user structure holding the basic information that identifies the user.
28
 * *
25
 * *
29
 */
26
 */
30
public class User implements TBase<User._Fields>, java.io.Serializable, Cloneable, Comparable<User> {
27
public class User implements org.apache.thrift.TBase<User, User._Fields>, java.io.Serializable, Cloneable {
31
  private static final TStruct STRUCT_DESC = new TStruct("User");
28
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("User");
32
 
29
 
33
  private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
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);
34
  private static final TField EMAIL_FIELD_DESC = new TField("email", TType.STRING, (short)2);
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);
35
  private static final TField PASSWORD_FIELD_DESC = new TField("password", TType.STRING, (short)3);
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);
36
  private static final TField NAME_FIELD_DESC = new TField("name", TType.STRING, (short)4);
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);
37
  private static final TField DATE_OF_BIRTH_FIELD_DESC = new TField("dateOfBirth", TType.STRING, (short)5);
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);
38
  private static final TField SEX_FIELD_DESC = new TField("sex", TType.I32, (short)6);
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);
39
  private static final TField MOBILE_NUMBER_FIELD_DESC = new TField("mobileNumber", TType.STRING, (short)7);
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);
40
  private static final TField SOCIAL_HANDLES_FIELD_DESC = new TField("socialHandles", TType.STRUCT, (short)8);
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);
41
  private static final TField ADDRESSES_FIELD_DESC = new TField("addresses", TType.LIST, (short)9);
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);
42
  private static final TField DEFAULT_ADDRESS_ID_FIELD_DESC = new TField("defaultAddressId", TType.I64, (short)10);
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);
43
  private static final TField COMMUNICATION_EMAIL_FIELD_DESC = new TField("communicationEmail", TType.STRING, (short)11);
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);
44
  private static final TField ACTIVE_CART_ID_FIELD_DESC = new TField("activeCartId", TType.I64, (short)12);
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);
45
  private static final TField JSESSION_ID_FIELD_DESC = new TField("jsessionId", TType.STRING, (short)13);
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);
46
  private static final TField IS_ANONYMOUS_FIELD_DESC = new TField("isAnonymous", TType.BOOL, (short)14);
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);
47
  private static final TField SOURCE_FIELD_DESC = new TField("source", TType.STRING, (short)15);
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);
48
  private static final TField SOURCE_START_TIME_FIELD_DESC = new TField("sourceStartTime", TType.I64, (short)16);
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);
49
 
46
 
50
  private long userId;
47
  private long userId; // required
51
  private String email;
48
  private String email; // required
52
  private String password;
49
  private String password; // required
53
  private String name;
50
  private String name; // required
54
  private String dateOfBirth;
51
  private String dateOfBirth; // required
55
  private Sex sex;
52
  private Sex sex; // required
56
  private String mobileNumber;
53
  private String mobileNumber; // required
57
  private SocialHandles socialHandles;
54
  private SocialHandles socialHandles; // required
58
  private List<Address> addresses;
55
  private List<Address> addresses; // required
59
  private long defaultAddressId;
56
  private long defaultAddressId; // required
60
  private String communicationEmail;
57
  private String communicationEmail; // required
61
  private long activeCartId;
58
  private long activeCartId; // required
62
  private String jsessionId;
59
  private String jsessionId; // required
63
  private boolean isAnonymous;
60
  private boolean isAnonymous; // required
64
  private String source;
61
  private String source; // required
65
  private long sourceStartTime;
62
  private long sourceStartTime; // required
66
 
63
 
67
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
64
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
68
  public enum _Fields implements TFieldIdEnum {
65
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
69
    USER_ID((short)1, "userId"),
66
    USER_ID((short)1, "userId"),
70
    EMAIL((short)2, "email"),
67
    EMAIL((short)2, "email"),
71
    PASSWORD((short)3, "password"),
68
    PASSWORD((short)3, "password"),
72
    NAME((short)4, "name"),
69
    NAME((short)4, "name"),
73
    DATE_OF_BIRTH((short)5, "dateOfBirth"),
70
    DATE_OF_BIRTH((short)5, "dateOfBirth"),
Line 85... Line 82...
85
    JSESSION_ID((short)13, "jsessionId"),
82
    JSESSION_ID((short)13, "jsessionId"),
86
    IS_ANONYMOUS((short)14, "isAnonymous"),
83
    IS_ANONYMOUS((short)14, "isAnonymous"),
87
    SOURCE((short)15, "source"),
84
    SOURCE((short)15, "source"),
88
    SOURCE_START_TIME((short)16, "sourceStartTime");
85
    SOURCE_START_TIME((short)16, "sourceStartTime");
89
 
86
 
90
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
91
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
87
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
92
 
88
 
93
    static {
89
    static {
94
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
90
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
95
        byId.put((int)field._thriftId, field);
-
 
96
        byName.put(field.getFieldName(), field);
91
        byName.put(field.getFieldName(), field);
97
      }
92
      }
98
    }
93
    }
99
 
94
 
100
    /**
95
    /**
101
     * Find the _Fields constant that matches fieldId, or null if its not found.
96
     * Find the _Fields constant that matches fieldId, or null if its not found.
102
     */
97
     */
103
    public static _Fields findByThriftId(int fieldId) {
98
    public static _Fields findByThriftId(int fieldId) {
-
 
99
      switch(fieldId) {
-
 
100
        case 1: // USER_ID
-
 
101
          return USER_ID;
-
 
102
        case 2: // EMAIL
-
 
103
          return EMAIL;
-
 
104
        case 3: // PASSWORD
-
 
105
          return PASSWORD;
-
 
106
        case 4: // NAME
-
 
107
          return NAME;
-
 
108
        case 5: // DATE_OF_BIRTH
-
 
109
          return DATE_OF_BIRTH;
-
 
110
        case 6: // SEX
-
 
111
          return SEX;
-
 
112
        case 7: // MOBILE_NUMBER
-
 
113
          return MOBILE_NUMBER;
-
 
114
        case 8: // SOCIAL_HANDLES
-
 
115
          return SOCIAL_HANDLES;
-
 
116
        case 9: // ADDRESSES
-
 
117
          return ADDRESSES;
-
 
118
        case 10: // DEFAULT_ADDRESS_ID
-
 
119
          return DEFAULT_ADDRESS_ID;
-
 
120
        case 11: // COMMUNICATION_EMAIL
-
 
121
          return COMMUNICATION_EMAIL;
-
 
122
        case 12: // ACTIVE_CART_ID
-
 
123
          return ACTIVE_CART_ID;
-
 
124
        case 13: // JSESSION_ID
-
 
125
          return JSESSION_ID;
-
 
126
        case 14: // IS_ANONYMOUS
-
 
127
          return IS_ANONYMOUS;
-
 
128
        case 15: // SOURCE
-
 
129
          return SOURCE;
-
 
130
        case 16: // SOURCE_START_TIME
104
      return byId.get(fieldId);
131
          return SOURCE_START_TIME;
-
 
132
        default:
-
 
133
          return null;
-
 
134
      }
105
    }
135
    }
106
 
136
 
107
    /**
137
    /**
108
     * Find the _Fields constant that matches fieldId, throwing an exception
138
     * Find the _Fields constant that matches fieldId, throwing an exception
109
     * if it is not found.
139
     * if it is not found.
Line 144... Line 174...
144
  private static final int __ACTIVECARTID_ISSET_ID = 2;
174
  private static final int __ACTIVECARTID_ISSET_ID = 2;
145
  private static final int __ISANONYMOUS_ISSET_ID = 3;
175
  private static final int __ISANONYMOUS_ISSET_ID = 3;
146
  private static final int __SOURCESTARTTIME_ISSET_ID = 4;
176
  private static final int __SOURCESTARTTIME_ISSET_ID = 4;
147
  private BitSet __isset_bit_vector = new BitSet(5);
177
  private BitSet __isset_bit_vector = new BitSet(5);
148
 
178
 
149
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
179
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
150
    put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
-
 
151
        new FieldValueMetaData(TType.I64)));
-
 
152
    put(_Fields.EMAIL, new FieldMetaData("email", TFieldRequirementType.DEFAULT, 
-
 
153
        new FieldValueMetaData(TType.STRING)));
-
 
154
    put(_Fields.PASSWORD, new FieldMetaData("password", TFieldRequirementType.DEFAULT, 
-
 
155
        new FieldValueMetaData(TType.STRING)));
-
 
156
    put(_Fields.NAME, new FieldMetaData("name", TFieldRequirementType.DEFAULT, 
-
 
157
        new FieldValueMetaData(TType.STRING)));
-
 
158
    put(_Fields.DATE_OF_BIRTH, new FieldMetaData("dateOfBirth", TFieldRequirementType.DEFAULT, 
-
 
159
        new FieldValueMetaData(TType.STRING)));
-
 
160
    put(_Fields.SEX, new FieldMetaData("sex", TFieldRequirementType.DEFAULT, 
-
 
161
        new EnumMetaData(TType.ENUM, Sex.class)));
-
 
162
    put(_Fields.MOBILE_NUMBER, new FieldMetaData("mobileNumber", TFieldRequirementType.DEFAULT, 
-
 
163
        new FieldValueMetaData(TType.STRING)));
-
 
164
    put(_Fields.SOCIAL_HANDLES, new FieldMetaData("socialHandles", TFieldRequirementType.DEFAULT, 
-
 
165
        new StructMetaData(TType.STRUCT, SocialHandles.class)));
-
 
166
    put(_Fields.ADDRESSES, new FieldMetaData("addresses", TFieldRequirementType.DEFAULT, 
-
 
167
        new ListMetaData(TType.LIST, 
-
 
168
            new StructMetaData(TType.STRUCT, Address.class))));
-
 
169
    put(_Fields.DEFAULT_ADDRESS_ID, new FieldMetaData("defaultAddressId", TFieldRequirementType.DEFAULT, 
-
 
170
        new FieldValueMetaData(TType.I64)));
-
 
171
    put(_Fields.COMMUNICATION_EMAIL, new FieldMetaData("communicationEmail", TFieldRequirementType.DEFAULT, 
-
 
172
        new FieldValueMetaData(TType.STRING)));
-
 
173
    put(_Fields.ACTIVE_CART_ID, new FieldMetaData("activeCartId", TFieldRequirementType.DEFAULT, 
-
 
174
        new FieldValueMetaData(TType.I64)));
-
 
175
    put(_Fields.JSESSION_ID, new FieldMetaData("jsessionId", TFieldRequirementType.DEFAULT, 
-
 
176
        new FieldValueMetaData(TType.STRING)));
-
 
177
    put(_Fields.IS_ANONYMOUS, new FieldMetaData("isAnonymous", TFieldRequirementType.DEFAULT, 
-
 
178
        new FieldValueMetaData(TType.BOOL)));
-
 
179
    put(_Fields.SOURCE, new FieldMetaData("source", TFieldRequirementType.DEFAULT, 
-
 
180
        new FieldValueMetaData(TType.STRING)));
-
 
181
    put(_Fields.SOURCE_START_TIME, new FieldMetaData("sourceStartTime", TFieldRequirementType.DEFAULT, 
-
 
182
        new FieldValueMetaData(TType.I64)));
-
 
183
  }});
-
 
184
 
-
 
185
  static {
180
  static {
-
 
181
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
182
    tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
183
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
184
    tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
185
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
186
    tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
187
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
188
    tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
189
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
190
    tmpMap.put(_Fields.DATE_OF_BIRTH, new org.apache.thrift.meta_data.FieldMetaData("dateOfBirth", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
191
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
192
    tmpMap.put(_Fields.SEX, new org.apache.thrift.meta_data.FieldMetaData("sex", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
193
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, Sex.class)));
-
 
194
    tmpMap.put(_Fields.MOBILE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("mobileNumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
195
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
196
    tmpMap.put(_Fields.SOCIAL_HANDLES, new org.apache.thrift.meta_data.FieldMetaData("socialHandles", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
197
        new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SocialHandles.class)));
-
 
198
    tmpMap.put(_Fields.ADDRESSES, new org.apache.thrift.meta_data.FieldMetaData("addresses", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
199
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
200
            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Address.class))));
-
 
201
    tmpMap.put(_Fields.DEFAULT_ADDRESS_ID, new org.apache.thrift.meta_data.FieldMetaData("defaultAddressId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
202
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
203
    tmpMap.put(_Fields.COMMUNICATION_EMAIL, new org.apache.thrift.meta_data.FieldMetaData("communicationEmail", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
204
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
205
    tmpMap.put(_Fields.ACTIVE_CART_ID, new org.apache.thrift.meta_data.FieldMetaData("activeCartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
206
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
207
    tmpMap.put(_Fields.JSESSION_ID, new org.apache.thrift.meta_data.FieldMetaData("jsessionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
208
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
209
    tmpMap.put(_Fields.IS_ANONYMOUS, new org.apache.thrift.meta_data.FieldMetaData("isAnonymous", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
210
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
211
    tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
212
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
213
    tmpMap.put(_Fields.SOURCE_START_TIME, new org.apache.thrift.meta_data.FieldMetaData("sourceStartTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
214
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
215
    metaDataMap = Collections.unmodifiableMap(tmpMap);
186
    FieldMetaData.addStructMetaDataMap(User.class, metaDataMap);
216
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(User.class, metaDataMap);
187
  }
217
  }
188
 
218
 
189
  public User() {
219
  public User() {
190
  }
220
  }
191
 
221
 
Line 283... Line 313...
283
 
313
 
284
  public User deepCopy() {
314
  public User deepCopy() {
285
    return new User(this);
315
    return new User(this);
286
  }
316
  }
287
 
317
 
288
  @Deprecated
318
  @Override
289
  public User clone() {
319
  public void clear() {
-
 
320
    setUserIdIsSet(false);
-
 
321
    this.userId = 0;
-
 
322
    this.email = null;
-
 
323
    this.password = null;
-
 
324
    this.name = null;
-
 
325
    this.dateOfBirth = null;
-
 
326
    this.sex = null;
-
 
327
    this.mobileNumber = null;
-
 
328
    this.socialHandles = null;
-
 
329
    this.addresses = null;
-
 
330
    setDefaultAddressIdIsSet(false);
-
 
331
    this.defaultAddressId = 0;
-
 
332
    this.communicationEmail = null;
-
 
333
    setActiveCartIdIsSet(false);
-
 
334
    this.activeCartId = 0;
-
 
335
    this.jsessionId = null;
290
    return new User(this);
336
    setIsAnonymousIsSet(false);
-
 
337
    this.isAnonymous = false;
-
 
338
    this.source = null;
-
 
339
    setSourceStartTimeIsSet(false);
-
 
340
    this.sourceStartTime = 0;
291
  }
341
  }
292
 
342
 
293
  public long getUserId() {
343
  public long getUserId() {
294
    return this.userId;
344
    return this.userId;
295
  }
345
  }
296
 
346
 
297
  public User setUserId(long userId) {
347
  public void setUserId(long userId) {
298
    this.userId = userId;
348
    this.userId = userId;
299
    setUserIdIsSet(true);
349
    setUserIdIsSet(true);
300
    return this;
-
 
301
  }
350
  }
302
 
351
 
303
  public void unsetUserId() {
352
  public void unsetUserId() {
304
    __isset_bit_vector.clear(__USERID_ISSET_ID);
353
    __isset_bit_vector.clear(__USERID_ISSET_ID);
305
  }
354
  }
306
 
355
 
307
  /** Returns true if field userId is set (has been asigned a value) and false otherwise */
356
  /** Returns true if field userId is set (has been assigned a value) and false otherwise */
308
  public boolean isSetUserId() {
357
  public boolean isSetUserId() {
309
    return __isset_bit_vector.get(__USERID_ISSET_ID);
358
    return __isset_bit_vector.get(__USERID_ISSET_ID);
310
  }
359
  }
311
 
360
 
312
  public void setUserIdIsSet(boolean value) {
361
  public void setUserIdIsSet(boolean value) {
Line 315... Line 364...
315
 
364
 
316
  public String getEmail() {
365
  public String getEmail() {
317
    return this.email;
366
    return this.email;
318
  }
367
  }
319
 
368
 
320
  public User setEmail(String email) {
369
  public void setEmail(String email) {
321
    this.email = email;
370
    this.email = email;
322
    return this;
-
 
323
  }
371
  }
324
 
372
 
325
  public void unsetEmail() {
373
  public void unsetEmail() {
326
    this.email = null;
374
    this.email = null;
327
  }
375
  }
328
 
376
 
329
  /** Returns true if field email is set (has been asigned a value) and false otherwise */
377
  /** Returns true if field email is set (has been assigned a value) and false otherwise */
330
  public boolean isSetEmail() {
378
  public boolean isSetEmail() {
331
    return this.email != null;
379
    return this.email != null;
332
  }
380
  }
333
 
381
 
334
  public void setEmailIsSet(boolean value) {
382
  public void setEmailIsSet(boolean value) {
Line 339... Line 387...
339
 
387
 
340
  public String getPassword() {
388
  public String getPassword() {
341
    return this.password;
389
    return this.password;
342
  }
390
  }
343
 
391
 
344
  public User setPassword(String password) {
392
  public void setPassword(String password) {
345
    this.password = password;
393
    this.password = password;
346
    return this;
-
 
347
  }
394
  }
348
 
395
 
349
  public void unsetPassword() {
396
  public void unsetPassword() {
350
    this.password = null;
397
    this.password = null;
351
  }
398
  }
352
 
399
 
353
  /** Returns true if field password is set (has been asigned a value) and false otherwise */
400
  /** Returns true if field password is set (has been assigned a value) and false otherwise */
354
  public boolean isSetPassword() {
401
  public boolean isSetPassword() {
355
    return this.password != null;
402
    return this.password != null;
356
  }
403
  }
357
 
404
 
358
  public void setPasswordIsSet(boolean value) {
405
  public void setPasswordIsSet(boolean value) {
Line 363... Line 410...
363
 
410
 
364
  public String getName() {
411
  public String getName() {
365
    return this.name;
412
    return this.name;
366
  }
413
  }
367
 
414
 
368
  public User setName(String name) {
415
  public void setName(String name) {
369
    this.name = name;
416
    this.name = name;
370
    return this;
-
 
371
  }
417
  }
372
 
418
 
373
  public void unsetName() {
419
  public void unsetName() {
374
    this.name = null;
420
    this.name = null;
375
  }
421
  }
376
 
422
 
377
  /** Returns true if field name is set (has been asigned a value) and false otherwise */
423
  /** Returns true if field name is set (has been assigned a value) and false otherwise */
378
  public boolean isSetName() {
424
  public boolean isSetName() {
379
    return this.name != null;
425
    return this.name != null;
380
  }
426
  }
381
 
427
 
382
  public void setNameIsSet(boolean value) {
428
  public void setNameIsSet(boolean value) {
Line 387... Line 433...
387
 
433
 
388
  public String getDateOfBirth() {
434
  public String getDateOfBirth() {
389
    return this.dateOfBirth;
435
    return this.dateOfBirth;
390
  }
436
  }
391
 
437
 
392
  public User setDateOfBirth(String dateOfBirth) {
438
  public void setDateOfBirth(String dateOfBirth) {
393
    this.dateOfBirth = dateOfBirth;
439
    this.dateOfBirth = dateOfBirth;
394
    return this;
-
 
395
  }
440
  }
396
 
441
 
397
  public void unsetDateOfBirth() {
442
  public void unsetDateOfBirth() {
398
    this.dateOfBirth = null;
443
    this.dateOfBirth = null;
399
  }
444
  }
400
 
445
 
401
  /** Returns true if field dateOfBirth is set (has been asigned a value) and false otherwise */
446
  /** Returns true if field dateOfBirth is set (has been assigned a value) and false otherwise */
402
  public boolean isSetDateOfBirth() {
447
  public boolean isSetDateOfBirth() {
403
    return this.dateOfBirth != null;
448
    return this.dateOfBirth != null;
404
  }
449
  }
405
 
450
 
406
  public void setDateOfBirthIsSet(boolean value) {
451
  public void setDateOfBirthIsSet(boolean value) {
Line 419... Line 464...
419
 
464
 
420
  /**
465
  /**
421
   * 
466
   * 
422
   * @see Sex
467
   * @see Sex
423
   */
468
   */
424
  public User setSex(Sex sex) {
469
  public void setSex(Sex sex) {
425
    this.sex = sex;
470
    this.sex = sex;
426
    return this;
-
 
427
  }
471
  }
428
 
472
 
429
  public void unsetSex() {
473
  public void unsetSex() {
430
    this.sex = null;
474
    this.sex = null;
431
  }
475
  }
432
 
476
 
433
  /** Returns true if field sex is set (has been asigned a value) and false otherwise */
477
  /** Returns true if field sex is set (has been assigned a value) and false otherwise */
434
  public boolean isSetSex() {
478
  public boolean isSetSex() {
435
    return this.sex != null;
479
    return this.sex != null;
436
  }
480
  }
437
 
481
 
438
  public void setSexIsSet(boolean value) {
482
  public void setSexIsSet(boolean value) {
Line 443... Line 487...
443
 
487
 
444
  public String getMobileNumber() {
488
  public String getMobileNumber() {
445
    return this.mobileNumber;
489
    return this.mobileNumber;
446
  }
490
  }
447
 
491
 
448
  public User setMobileNumber(String mobileNumber) {
492
  public void setMobileNumber(String mobileNumber) {
449
    this.mobileNumber = mobileNumber;
493
    this.mobileNumber = mobileNumber;
450
    return this;
-
 
451
  }
494
  }
452
 
495
 
453
  public void unsetMobileNumber() {
496
  public void unsetMobileNumber() {
454
    this.mobileNumber = null;
497
    this.mobileNumber = null;
455
  }
498
  }
456
 
499
 
457
  /** Returns true if field mobileNumber is set (has been asigned a value) and false otherwise */
500
  /** Returns true if field mobileNumber is set (has been assigned a value) and false otherwise */
458
  public boolean isSetMobileNumber() {
501
  public boolean isSetMobileNumber() {
459
    return this.mobileNumber != null;
502
    return this.mobileNumber != null;
460
  }
503
  }
461
 
504
 
462
  public void setMobileNumberIsSet(boolean value) {
505
  public void setMobileNumberIsSet(boolean value) {
Line 467... Line 510...
467
 
510
 
468
  public SocialHandles getSocialHandles() {
511
  public SocialHandles getSocialHandles() {
469
    return this.socialHandles;
512
    return this.socialHandles;
470
  }
513
  }
471
 
514
 
472
  public User setSocialHandles(SocialHandles socialHandles) {
515
  public void setSocialHandles(SocialHandles socialHandles) {
473
    this.socialHandles = socialHandles;
516
    this.socialHandles = socialHandles;
474
    return this;
-
 
475
  }
517
  }
476
 
518
 
477
  public void unsetSocialHandles() {
519
  public void unsetSocialHandles() {
478
    this.socialHandles = null;
520
    this.socialHandles = null;
479
  }
521
  }
480
 
522
 
481
  /** Returns true if field socialHandles is set (has been asigned a value) and false otherwise */
523
  /** Returns true if field socialHandles is set (has been assigned a value) and false otherwise */
482
  public boolean isSetSocialHandles() {
524
  public boolean isSetSocialHandles() {
483
    return this.socialHandles != null;
525
    return this.socialHandles != null;
484
  }
526
  }
485
 
527
 
486
  public void setSocialHandlesIsSet(boolean value) {
528
  public void setSocialHandlesIsSet(boolean value) {
Line 506... Line 548...
506
 
548
 
507
  public List<Address> getAddresses() {
549
  public List<Address> getAddresses() {
508
    return this.addresses;
550
    return this.addresses;
509
  }
551
  }
510
 
552
 
511
  public User setAddresses(List<Address> addresses) {
553
  public void setAddresses(List<Address> addresses) {
512
    this.addresses = addresses;
554
    this.addresses = addresses;
513
    return this;
-
 
514
  }
555
  }
515
 
556
 
516
  public void unsetAddresses() {
557
  public void unsetAddresses() {
517
    this.addresses = null;
558
    this.addresses = null;
518
  }
559
  }
519
 
560
 
520
  /** Returns true if field addresses is set (has been asigned a value) and false otherwise */
561
  /** Returns true if field addresses is set (has been assigned a value) and false otherwise */
521
  public boolean isSetAddresses() {
562
  public boolean isSetAddresses() {
522
    return this.addresses != null;
563
    return this.addresses != null;
523
  }
564
  }
524
 
565
 
525
  public void setAddressesIsSet(boolean value) {
566
  public void setAddressesIsSet(boolean value) {
Line 530... Line 571...
530
 
571
 
531
  public long getDefaultAddressId() {
572
  public long getDefaultAddressId() {
532
    return this.defaultAddressId;
573
    return this.defaultAddressId;
533
  }
574
  }
534
 
575
 
535
  public User setDefaultAddressId(long defaultAddressId) {
576
  public void setDefaultAddressId(long defaultAddressId) {
536
    this.defaultAddressId = defaultAddressId;
577
    this.defaultAddressId = defaultAddressId;
537
    setDefaultAddressIdIsSet(true);
578
    setDefaultAddressIdIsSet(true);
538
    return this;
-
 
539
  }
579
  }
540
 
580
 
541
  public void unsetDefaultAddressId() {
581
  public void unsetDefaultAddressId() {
542
    __isset_bit_vector.clear(__DEFAULTADDRESSID_ISSET_ID);
582
    __isset_bit_vector.clear(__DEFAULTADDRESSID_ISSET_ID);
543
  }
583
  }
544
 
584
 
545
  /** Returns true if field defaultAddressId is set (has been asigned a value) and false otherwise */
585
  /** Returns true if field defaultAddressId is set (has been assigned a value) and false otherwise */
546
  public boolean isSetDefaultAddressId() {
586
  public boolean isSetDefaultAddressId() {
547
    return __isset_bit_vector.get(__DEFAULTADDRESSID_ISSET_ID);
587
    return __isset_bit_vector.get(__DEFAULTADDRESSID_ISSET_ID);
548
  }
588
  }
549
 
589
 
550
  public void setDefaultAddressIdIsSet(boolean value) {
590
  public void setDefaultAddressIdIsSet(boolean value) {
Line 553... Line 593...
553
 
593
 
554
  public String getCommunicationEmail() {
594
  public String getCommunicationEmail() {
555
    return this.communicationEmail;
595
    return this.communicationEmail;
556
  }
596
  }
557
 
597
 
558
  public User setCommunicationEmail(String communicationEmail) {
598
  public void setCommunicationEmail(String communicationEmail) {
559
    this.communicationEmail = communicationEmail;
599
    this.communicationEmail = communicationEmail;
560
    return this;
-
 
561
  }
600
  }
562
 
601
 
563
  public void unsetCommunicationEmail() {
602
  public void unsetCommunicationEmail() {
564
    this.communicationEmail = null;
603
    this.communicationEmail = null;
565
  }
604
  }
566
 
605
 
567
  /** Returns true if field communicationEmail is set (has been asigned a value) and false otherwise */
606
  /** Returns true if field communicationEmail is set (has been assigned a value) and false otherwise */
568
  public boolean isSetCommunicationEmail() {
607
  public boolean isSetCommunicationEmail() {
569
    return this.communicationEmail != null;
608
    return this.communicationEmail != null;
570
  }
609
  }
571
 
610
 
572
  public void setCommunicationEmailIsSet(boolean value) {
611
  public void setCommunicationEmailIsSet(boolean value) {
Line 577... Line 616...
577
 
616
 
578
  public long getActiveCartId() {
617
  public long getActiveCartId() {
579
    return this.activeCartId;
618
    return this.activeCartId;
580
  }
619
  }
581
 
620
 
582
  public User setActiveCartId(long activeCartId) {
621
  public void setActiveCartId(long activeCartId) {
583
    this.activeCartId = activeCartId;
622
    this.activeCartId = activeCartId;
584
    setActiveCartIdIsSet(true);
623
    setActiveCartIdIsSet(true);
585
    return this;
-
 
586
  }
624
  }
587
 
625
 
588
  public void unsetActiveCartId() {
626
  public void unsetActiveCartId() {
589
    __isset_bit_vector.clear(__ACTIVECARTID_ISSET_ID);
627
    __isset_bit_vector.clear(__ACTIVECARTID_ISSET_ID);
590
  }
628
  }
591
 
629
 
592
  /** Returns true if field activeCartId is set (has been asigned a value) and false otherwise */
630
  /** Returns true if field activeCartId is set (has been assigned a value) and false otherwise */
593
  public boolean isSetActiveCartId() {
631
  public boolean isSetActiveCartId() {
594
    return __isset_bit_vector.get(__ACTIVECARTID_ISSET_ID);
632
    return __isset_bit_vector.get(__ACTIVECARTID_ISSET_ID);
595
  }
633
  }
596
 
634
 
597
  public void setActiveCartIdIsSet(boolean value) {
635
  public void setActiveCartIdIsSet(boolean value) {
Line 600... Line 638...
600
 
638
 
601
  public String getJsessionId() {
639
  public String getJsessionId() {
602
    return this.jsessionId;
640
    return this.jsessionId;
603
  }
641
  }
604
 
642
 
605
  public User setJsessionId(String jsessionId) {
643
  public void setJsessionId(String jsessionId) {
606
    this.jsessionId = jsessionId;
644
    this.jsessionId = jsessionId;
607
    return this;
-
 
608
  }
645
  }
609
 
646
 
610
  public void unsetJsessionId() {
647
  public void unsetJsessionId() {
611
    this.jsessionId = null;
648
    this.jsessionId = null;
612
  }
649
  }
613
 
650
 
614
  /** Returns true if field jsessionId is set (has been asigned a value) and false otherwise */
651
  /** Returns true if field jsessionId is set (has been assigned a value) and false otherwise */
615
  public boolean isSetJsessionId() {
652
  public boolean isSetJsessionId() {
616
    return this.jsessionId != null;
653
    return this.jsessionId != null;
617
  }
654
  }
618
 
655
 
619
  public void setJsessionIdIsSet(boolean value) {
656
  public void setJsessionIdIsSet(boolean value) {
Line 624... Line 661...
624
 
661
 
625
  public boolean isIsAnonymous() {
662
  public boolean isIsAnonymous() {
626
    return this.isAnonymous;
663
    return this.isAnonymous;
627
  }
664
  }
628
 
665
 
629
  public User setIsAnonymous(boolean isAnonymous) {
666
  public void setIsAnonymous(boolean isAnonymous) {
630
    this.isAnonymous = isAnonymous;
667
    this.isAnonymous = isAnonymous;
631
    setIsAnonymousIsSet(true);
668
    setIsAnonymousIsSet(true);
632
    return this;
-
 
633
  }
669
  }
634
 
670
 
635
  public void unsetIsAnonymous() {
671
  public void unsetIsAnonymous() {
636
    __isset_bit_vector.clear(__ISANONYMOUS_ISSET_ID);
672
    __isset_bit_vector.clear(__ISANONYMOUS_ISSET_ID);
637
  }
673
  }
638
 
674
 
639
  /** Returns true if field isAnonymous is set (has been asigned a value) and false otherwise */
675
  /** Returns true if field isAnonymous is set (has been assigned a value) and false otherwise */
640
  public boolean isSetIsAnonymous() {
676
  public boolean isSetIsAnonymous() {
641
    return __isset_bit_vector.get(__ISANONYMOUS_ISSET_ID);
677
    return __isset_bit_vector.get(__ISANONYMOUS_ISSET_ID);
642
  }
678
  }
643
 
679
 
644
  public void setIsAnonymousIsSet(boolean value) {
680
  public void setIsAnonymousIsSet(boolean value) {
Line 647... Line 683...
647
 
683
 
648
  public String getSource() {
684
  public String getSource() {
649
    return this.source;
685
    return this.source;
650
  }
686
  }
651
 
687
 
652
  public User setSource(String source) {
688
  public void setSource(String source) {
653
    this.source = source;
689
    this.source = source;
654
    return this;
-
 
655
  }
690
  }
656
 
691
 
657
  public void unsetSource() {
692
  public void unsetSource() {
658
    this.source = null;
693
    this.source = null;
659
  }
694
  }
660
 
695
 
661
  /** Returns true if field source is set (has been asigned a value) and false otherwise */
696
  /** Returns true if field source is set (has been assigned a value) and false otherwise */
662
  public boolean isSetSource() {
697
  public boolean isSetSource() {
663
    return this.source != null;
698
    return this.source != null;
664
  }
699
  }
665
 
700
 
666
  public void setSourceIsSet(boolean value) {
701
  public void setSourceIsSet(boolean value) {
Line 671... Line 706...
671
 
706
 
672
  public long getSourceStartTime() {
707
  public long getSourceStartTime() {
673
    return this.sourceStartTime;
708
    return this.sourceStartTime;
674
  }
709
  }
675
 
710
 
676
  public User setSourceStartTime(long sourceStartTime) {
711
  public void setSourceStartTime(long sourceStartTime) {
677
    this.sourceStartTime = sourceStartTime;
712
    this.sourceStartTime = sourceStartTime;
678
    setSourceStartTimeIsSet(true);
713
    setSourceStartTimeIsSet(true);
679
    return this;
-
 
680
  }
714
  }
681
 
715
 
682
  public void unsetSourceStartTime() {
716
  public void unsetSourceStartTime() {
683
    __isset_bit_vector.clear(__SOURCESTARTTIME_ISSET_ID);
717
    __isset_bit_vector.clear(__SOURCESTARTTIME_ISSET_ID);
684
  }
718
  }
685
 
719
 
686
  /** Returns true if field sourceStartTime is set (has been asigned a value) and false otherwise */
720
  /** Returns true if field sourceStartTime is set (has been assigned a value) and false otherwise */
687
  public boolean isSetSourceStartTime() {
721
  public boolean isSetSourceStartTime() {
688
    return __isset_bit_vector.get(__SOURCESTARTTIME_ISSET_ID);
722
    return __isset_bit_vector.get(__SOURCESTARTTIME_ISSET_ID);
689
  }
723
  }
690
 
724
 
691
  public void setSourceStartTimeIsSet(boolean value) {
725
  public void setSourceStartTimeIsSet(boolean value) {
Line 823... Line 857...
823
      break;
857
      break;
824
 
858
 
825
    }
859
    }
826
  }
860
  }
827
 
861
 
828
  public void setFieldValue(int fieldID, Object value) {
-
 
829
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
830
  }
-
 
831
 
-
 
832
  public Object getFieldValue(_Fields field) {
862
  public Object getFieldValue(_Fields field) {
833
    switch (field) {
863
    switch (field) {
834
    case USER_ID:
864
    case USER_ID:
835
      return new Long(getUserId());
865
      return Long.valueOf(getUserId());
836
 
866
 
837
    case EMAIL:
867
    case EMAIL:
838
      return getEmail();
868
      return getEmail();
839
 
869
 
840
    case PASSWORD:
870
    case PASSWORD:
Line 857... Line 887...
857
 
887
 
858
    case ADDRESSES:
888
    case ADDRESSES:
859
      return getAddresses();
889
      return getAddresses();
860
 
890
 
861
    case DEFAULT_ADDRESS_ID:
891
    case DEFAULT_ADDRESS_ID:
862
      return new Long(getDefaultAddressId());
892
      return Long.valueOf(getDefaultAddressId());
863
 
893
 
864
    case COMMUNICATION_EMAIL:
894
    case COMMUNICATION_EMAIL:
865
      return getCommunicationEmail();
895
      return getCommunicationEmail();
866
 
896
 
867
    case ACTIVE_CART_ID:
897
    case ACTIVE_CART_ID:
868
      return new Long(getActiveCartId());
898
      return Long.valueOf(getActiveCartId());
869
 
899
 
870
    case JSESSION_ID:
900
    case JSESSION_ID:
871
      return getJsessionId();
901
      return getJsessionId();
872
 
902
 
873
    case IS_ANONYMOUS:
903
    case IS_ANONYMOUS:
874
      return new Boolean(isIsAnonymous());
904
      return Boolean.valueOf(isIsAnonymous());
875
 
905
 
876
    case SOURCE:
906
    case SOURCE:
877
      return getSource();
907
      return getSource();
878
 
908
 
879
    case SOURCE_START_TIME:
909
    case SOURCE_START_TIME:
880
      return new Long(getSourceStartTime());
910
      return Long.valueOf(getSourceStartTime());
881
 
911
 
882
    }
912
    }
883
    throw new IllegalStateException();
913
    throw new IllegalStateException();
884
  }
914
  }
885
 
915
 
886
  public Object getFieldValue(int fieldId) {
-
 
887
    return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
888
  }
-
 
889
 
-
 
890
  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
916
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
891
  public boolean isSet(_Fields field) {
917
  public boolean isSet(_Fields field) {
-
 
918
    if (field == null) {
-
 
919
      throw new IllegalArgumentException();
-
 
920
    }
-
 
921
 
892
    switch (field) {
922
    switch (field) {
893
    case USER_ID:
923
    case USER_ID:
894
      return isSetUserId();
924
      return isSetUserId();
895
    case EMAIL:
925
    case EMAIL:
896
      return isSetEmail();
926
      return isSetEmail();
Line 924... Line 954...
924
      return isSetSourceStartTime();
954
      return isSetSourceStartTime();
925
    }
955
    }
926
    throw new IllegalStateException();
956
    throw new IllegalStateException();
927
  }
957
  }
928
 
958
 
929
  public boolean isSet(int fieldID) {
-
 
930
    return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
931
  }
-
 
932
 
-
 
933
  @Override
959
  @Override
934
  public boolean equals(Object that) {
960
  public boolean equals(Object that) {
935
    if (that == null)
961
    if (that == null)
936
      return false;
962
      return false;
937
    if (that instanceof User)
963
    if (that instanceof User)
Line 1101... Line 1127...
1101
    }
1127
    }
1102
 
1128
 
1103
    int lastComparison = 0;
1129
    int lastComparison = 0;
1104
    User typedOther = (User)other;
1130
    User typedOther = (User)other;
1105
 
1131
 
1106
    lastComparison = Boolean.valueOf(isSetUserId()).compareTo(isSetUserId());
1132
    lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
1107
    if (lastComparison != 0) {
1133
    if (lastComparison != 0) {
1108
      return lastComparison;
1134
      return lastComparison;
1109
    }
1135
    }
-
 
1136
    if (isSetUserId()) {
1110
    lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
1137
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
1111
    if (lastComparison != 0) {
1138
      if (lastComparison != 0) {
1112
      return lastComparison;
1139
        return lastComparison;
-
 
1140
      }
1113
    }
1141
    }
1114
    lastComparison = Boolean.valueOf(isSetEmail()).compareTo(isSetEmail());
1142
    lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
1115
    if (lastComparison != 0) {
1143
    if (lastComparison != 0) {
1116
      return lastComparison;
1144
      return lastComparison;
1117
    }
1145
    }
-
 
1146
    if (isSetEmail()) {
1118
    lastComparison = TBaseHelper.compareTo(email, typedOther.email);
1147
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
1119
    if (lastComparison != 0) {
1148
      if (lastComparison != 0) {
1120
      return lastComparison;
1149
        return lastComparison;
-
 
1150
      }
1121
    }
1151
    }
1122
    lastComparison = Boolean.valueOf(isSetPassword()).compareTo(isSetPassword());
1152
    lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
1123
    if (lastComparison != 0) {
1153
    if (lastComparison != 0) {
1124
      return lastComparison;
1154
      return lastComparison;
1125
    }
1155
    }
-
 
1156
    if (isSetPassword()) {
1126
    lastComparison = TBaseHelper.compareTo(password, typedOther.password);
1157
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
1127
    if (lastComparison != 0) {
1158
      if (lastComparison != 0) {
1128
      return lastComparison;
1159
        return lastComparison;
-
 
1160
      }
1129
    }
1161
    }
1130
    lastComparison = Boolean.valueOf(isSetName()).compareTo(isSetName());
1162
    lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
1131
    if (lastComparison != 0) {
1163
    if (lastComparison != 0) {
1132
      return lastComparison;
1164
      return lastComparison;
1133
    }
1165
    }
-
 
1166
    if (isSetName()) {
1134
    lastComparison = TBaseHelper.compareTo(name, typedOther.name);
1167
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
1135
    if (lastComparison != 0) {
1168
      if (lastComparison != 0) {
1136
      return lastComparison;
1169
        return lastComparison;
-
 
1170
      }
1137
    }
1171
    }
1138
    lastComparison = Boolean.valueOf(isSetDateOfBirth()).compareTo(isSetDateOfBirth());
1172
    lastComparison = Boolean.valueOf(isSetDateOfBirth()).compareTo(typedOther.isSetDateOfBirth());
1139
    if (lastComparison != 0) {
1173
    if (lastComparison != 0) {
1140
      return lastComparison;
1174
      return lastComparison;
1141
    }
1175
    }
-
 
1176
    if (isSetDateOfBirth()) {
1142
    lastComparison = TBaseHelper.compareTo(dateOfBirth, typedOther.dateOfBirth);
1177
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dateOfBirth, typedOther.dateOfBirth);
1143
    if (lastComparison != 0) {
1178
      if (lastComparison != 0) {
1144
      return lastComparison;
1179
        return lastComparison;
-
 
1180
      }
1145
    }
1181
    }
1146
    lastComparison = Boolean.valueOf(isSetSex()).compareTo(isSetSex());
1182
    lastComparison = Boolean.valueOf(isSetSex()).compareTo(typedOther.isSetSex());
1147
    if (lastComparison != 0) {
1183
    if (lastComparison != 0) {
1148
      return lastComparison;
1184
      return lastComparison;
1149
    }
1185
    }
-
 
1186
    if (isSetSex()) {
1150
    lastComparison = TBaseHelper.compareTo(sex, typedOther.sex);
1187
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sex, typedOther.sex);
1151
    if (lastComparison != 0) {
1188
      if (lastComparison != 0) {
1152
      return lastComparison;
1189
        return lastComparison;
-
 
1190
      }
1153
    }
1191
    }
1154
    lastComparison = Boolean.valueOf(isSetMobileNumber()).compareTo(isSetMobileNumber());
1192
    lastComparison = Boolean.valueOf(isSetMobileNumber()).compareTo(typedOther.isSetMobileNumber());
1155
    if (lastComparison != 0) {
1193
    if (lastComparison != 0) {
1156
      return lastComparison;
1194
      return lastComparison;
1157
    }
1195
    }
-
 
1196
    if (isSetMobileNumber()) {
1158
    lastComparison = TBaseHelper.compareTo(mobileNumber, typedOther.mobileNumber);
1197
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mobileNumber, typedOther.mobileNumber);
1159
    if (lastComparison != 0) {
1198
      if (lastComparison != 0) {
1160
      return lastComparison;
1199
        return lastComparison;
-
 
1200
      }
1161
    }
1201
    }
1162
    lastComparison = Boolean.valueOf(isSetSocialHandles()).compareTo(isSetSocialHandles());
1202
    lastComparison = Boolean.valueOf(isSetSocialHandles()).compareTo(typedOther.isSetSocialHandles());
1163
    if (lastComparison != 0) {
1203
    if (lastComparison != 0) {
1164
      return lastComparison;
1204
      return lastComparison;
1165
    }
1205
    }
-
 
1206
    if (isSetSocialHandles()) {
1166
    lastComparison = TBaseHelper.compareTo(socialHandles, typedOther.socialHandles);
1207
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.socialHandles, typedOther.socialHandles);
1167
    if (lastComparison != 0) {
1208
      if (lastComparison != 0) {
1168
      return lastComparison;
1209
        return lastComparison;
-
 
1210
      }
1169
    }
1211
    }
1170
    lastComparison = Boolean.valueOf(isSetAddresses()).compareTo(isSetAddresses());
1212
    lastComparison = Boolean.valueOf(isSetAddresses()).compareTo(typedOther.isSetAddresses());
1171
    if (lastComparison != 0) {
1213
    if (lastComparison != 0) {
1172
      return lastComparison;
1214
      return lastComparison;
1173
    }
1215
    }
-
 
1216
    if (isSetAddresses()) {
1174
    lastComparison = TBaseHelper.compareTo(addresses, typedOther.addresses);
1217
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addresses, typedOther.addresses);
1175
    if (lastComparison != 0) {
1218
      if (lastComparison != 0) {
1176
      return lastComparison;
1219
        return lastComparison;
-
 
1220
      }
1177
    }
1221
    }
1178
    lastComparison = Boolean.valueOf(isSetDefaultAddressId()).compareTo(isSetDefaultAddressId());
1222
    lastComparison = Boolean.valueOf(isSetDefaultAddressId()).compareTo(typedOther.isSetDefaultAddressId());
1179
    if (lastComparison != 0) {
1223
    if (lastComparison != 0) {
1180
      return lastComparison;
1224
      return lastComparison;
1181
    }
1225
    }
-
 
1226
    if (isSetDefaultAddressId()) {
1182
    lastComparison = TBaseHelper.compareTo(defaultAddressId, typedOther.defaultAddressId);
1227
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.defaultAddressId, typedOther.defaultAddressId);
1183
    if (lastComparison != 0) {
1228
      if (lastComparison != 0) {
1184
      return lastComparison;
1229
        return lastComparison;
-
 
1230
      }
1185
    }
1231
    }
1186
    lastComparison = Boolean.valueOf(isSetCommunicationEmail()).compareTo(isSetCommunicationEmail());
1232
    lastComparison = Boolean.valueOf(isSetCommunicationEmail()).compareTo(typedOther.isSetCommunicationEmail());
1187
    if (lastComparison != 0) {
1233
    if (lastComparison != 0) {
1188
      return lastComparison;
1234
      return lastComparison;
1189
    }
1235
    }
-
 
1236
    if (isSetCommunicationEmail()) {
1190
    lastComparison = TBaseHelper.compareTo(communicationEmail, typedOther.communicationEmail);
1237
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.communicationEmail, typedOther.communicationEmail);
1191
    if (lastComparison != 0) {
1238
      if (lastComparison != 0) {
1192
      return lastComparison;
1239
        return lastComparison;
-
 
1240
      }
1193
    }
1241
    }
1194
    lastComparison = Boolean.valueOf(isSetActiveCartId()).compareTo(isSetActiveCartId());
1242
    lastComparison = Boolean.valueOf(isSetActiveCartId()).compareTo(typedOther.isSetActiveCartId());
1195
    if (lastComparison != 0) {
1243
    if (lastComparison != 0) {
1196
      return lastComparison;
1244
      return lastComparison;
1197
    }
1245
    }
-
 
1246
    if (isSetActiveCartId()) {
1198
    lastComparison = TBaseHelper.compareTo(activeCartId, typedOther.activeCartId);
1247
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.activeCartId, typedOther.activeCartId);
1199
    if (lastComparison != 0) {
1248
      if (lastComparison != 0) {
1200
      return lastComparison;
1249
        return lastComparison;
-
 
1250
      }
1201
    }
1251
    }
1202
    lastComparison = Boolean.valueOf(isSetJsessionId()).compareTo(isSetJsessionId());
1252
    lastComparison = Boolean.valueOf(isSetJsessionId()).compareTo(typedOther.isSetJsessionId());
1203
    if (lastComparison != 0) {
1253
    if (lastComparison != 0) {
1204
      return lastComparison;
1254
      return lastComparison;
1205
    }
1255
    }
-
 
1256
    if (isSetJsessionId()) {
1206
    lastComparison = TBaseHelper.compareTo(jsessionId, typedOther.jsessionId);
1257
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.jsessionId, typedOther.jsessionId);
1207
    if (lastComparison != 0) {
1258
      if (lastComparison != 0) {
1208
      return lastComparison;
1259
        return lastComparison;
-
 
1260
      }
1209
    }
1261
    }
1210
    lastComparison = Boolean.valueOf(isSetIsAnonymous()).compareTo(isSetIsAnonymous());
1262
    lastComparison = Boolean.valueOf(isSetIsAnonymous()).compareTo(typedOther.isSetIsAnonymous());
1211
    if (lastComparison != 0) {
1263
    if (lastComparison != 0) {
1212
      return lastComparison;
1264
      return lastComparison;
1213
    }
1265
    }
-
 
1266
    if (isSetIsAnonymous()) {
1214
    lastComparison = TBaseHelper.compareTo(isAnonymous, typedOther.isAnonymous);
1267
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isAnonymous, typedOther.isAnonymous);
1215
    if (lastComparison != 0) {
1268
      if (lastComparison != 0) {
1216
      return lastComparison;
1269
        return lastComparison;
-
 
1270
      }
1217
    }
1271
    }
1218
    lastComparison = Boolean.valueOf(isSetSource()).compareTo(isSetSource());
1272
    lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
1219
    if (lastComparison != 0) {
1273
    if (lastComparison != 0) {
1220
      return lastComparison;
1274
      return lastComparison;
1221
    }
1275
    }
-
 
1276
    if (isSetSource()) {
1222
    lastComparison = TBaseHelper.compareTo(source, typedOther.source);
1277
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
1223
    if (lastComparison != 0) {
1278
      if (lastComparison != 0) {
1224
      return lastComparison;
1279
        return lastComparison;
-
 
1280
      }
1225
    }
1281
    }
1226
    lastComparison = Boolean.valueOf(isSetSourceStartTime()).compareTo(isSetSourceStartTime());
1282
    lastComparison = Boolean.valueOf(isSetSourceStartTime()).compareTo(typedOther.isSetSourceStartTime());
1227
    if (lastComparison != 0) {
1283
    if (lastComparison != 0) {
1228
      return lastComparison;
1284
      return lastComparison;
1229
    }
1285
    }
-
 
1286
    if (isSetSourceStartTime()) {
1230
    lastComparison = TBaseHelper.compareTo(sourceStartTime, typedOther.sourceStartTime);
1287
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceStartTime, typedOther.sourceStartTime);
1231
    if (lastComparison != 0) {
1288
      if (lastComparison != 0) {
1232
      return lastComparison;
1289
        return lastComparison;
-
 
1290
      }
1233
    }
1291
    }
1234
    return 0;
1292
    return 0;
1235
  }
1293
  }
1236
 
1294
 
-
 
1295
  public _Fields fieldForId(int fieldId) {
-
 
1296
    return _Fields.findByThriftId(fieldId);
-
 
1297
  }
-
 
1298
 
1237
  public void read(TProtocol iprot) throws TException {
1299
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1238
    TField field;
1300
    org.apache.thrift.protocol.TField field;
1239
    iprot.readStructBegin();
1301
    iprot.readStructBegin();
1240
    while (true)
1302
    while (true)
1241
    {
1303
    {
1242
      field = iprot.readFieldBegin();
1304
      field = iprot.readFieldBegin();
1243
      if (field.type == TType.STOP) { 
1305
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1244
        break;
1306
        break;
1245
      }
1307
      }
1246
      _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
1247
      if (fieldId == null) {
-
 
1248
        TProtocolUtil.skip(iprot, field.type);
-
 
1249
      } else {
-
 
1250
        switch (fieldId) {
1308
      switch (field.id) {
1251
          case USER_ID:
1309
        case 1: // USER_ID
1252
            if (field.type == TType.I64) {
1310
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1253
              this.userId = iprot.readI64();
1311
            this.userId = iprot.readI64();
1254
              setUserIdIsSet(true);
1312
            setUserIdIsSet(true);
1255
            } else { 
1313
          } else { 
1256
              TProtocolUtil.skip(iprot, field.type);
1314
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1257
            }
1315
          }
1258
            break;
1316
          break;
1259
          case EMAIL:
1317
        case 2: // EMAIL
1260
            if (field.type == TType.STRING) {
1318
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1261
              this.email = iprot.readString();
1319
            this.email = iprot.readString();
1262
            } else { 
1320
          } else { 
1263
              TProtocolUtil.skip(iprot, field.type);
1321
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1264
            }
1322
          }
1265
            break;
1323
          break;
1266
          case PASSWORD:
1324
        case 3: // PASSWORD
1267
            if (field.type == TType.STRING) {
1325
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1268
              this.password = iprot.readString();
1326
            this.password = iprot.readString();
1269
            } else { 
1327
          } else { 
1270
              TProtocolUtil.skip(iprot, field.type);
1328
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1271
            }
1329
          }
1272
            break;
1330
          break;
1273
          case NAME:
1331
        case 4: // NAME
1274
            if (field.type == TType.STRING) {
1332
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1275
              this.name = iprot.readString();
1333
            this.name = iprot.readString();
1276
            } else { 
1334
          } else { 
1277
              TProtocolUtil.skip(iprot, field.type);
1335
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1278
            }
1336
          }
1279
            break;
1337
          break;
1280
          case DATE_OF_BIRTH:
1338
        case 5: // DATE_OF_BIRTH
1281
            if (field.type == TType.STRING) {
1339
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1282
              this.dateOfBirth = iprot.readString();
1340
            this.dateOfBirth = iprot.readString();
1283
            } else { 
1341
          } else { 
1284
              TProtocolUtil.skip(iprot, field.type);
1342
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1285
            }
1343
          }
1286
            break;
1344
          break;
1287
          case SEX:
1345
        case 6: // SEX
1288
            if (field.type == TType.I32) {
1346
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1289
              this.sex = Sex.findByValue(iprot.readI32());
1347
            this.sex = Sex.findByValue(iprot.readI32());
1290
            } else { 
1348
          } else { 
1291
              TProtocolUtil.skip(iprot, field.type);
1349
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1292
            }
1350
          }
1293
            break;
1351
          break;
1294
          case MOBILE_NUMBER:
1352
        case 7: // MOBILE_NUMBER
1295
            if (field.type == TType.STRING) {
1353
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1296
              this.mobileNumber = iprot.readString();
1354
            this.mobileNumber = iprot.readString();
1297
            } else { 
1355
          } else { 
1298
              TProtocolUtil.skip(iprot, field.type);
1356
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1299
            }
1357
          }
1300
            break;
1358
          break;
1301
          case SOCIAL_HANDLES:
1359
        case 8: // SOCIAL_HANDLES
1302
            if (field.type == TType.STRUCT) {
1360
          if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
1303
              this.socialHandles = new SocialHandles();
1361
            this.socialHandles = new SocialHandles();
1304
              this.socialHandles.read(iprot);
1362
            this.socialHandles.read(iprot);
1305
            } else { 
1363
          } else { 
1306
              TProtocolUtil.skip(iprot, field.type);
1364
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1307
            }
1365
          }
1308
            break;
1366
          break;
1309
          case ADDRESSES:
1367
        case 9: // ADDRESSES
1310
            if (field.type == TType.LIST) {
1368
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
1369
            {
-
 
1370
              org.apache.thrift.protocol.TList _list4 = iprot.readListBegin();
-
 
1371
              this.addresses = new ArrayList<Address>(_list4.size);
-
 
1372
              for (int _i5 = 0; _i5 < _list4.size; ++_i5)
1311
              {
1373
              {
1312
                TList _list4 = iprot.readListBegin();
-
 
1313
                this.addresses = new ArrayList<Address>(_list4.size);
-
 
1314
                for (int _i5 = 0; _i5 < _list4.size; ++_i5)
-
 
1315
                {
-
 
1316
                  Address _elem6;
1374
                Address _elem6; // required
1317
                  _elem6 = new Address();
1375
                _elem6 = new Address();
1318
                  _elem6.read(iprot);
1376
                _elem6.read(iprot);
1319
                  this.addresses.add(_elem6);
1377
                this.addresses.add(_elem6);
1320
                }
-
 
1321
                iprot.readListEnd();
-
 
1322
              }
1378
              }
1323
            } else { 
-
 
1324
              TProtocolUtil.skip(iprot, field.type);
-
 
1325
            }
-
 
1326
            break;
-
 
1327
          case DEFAULT_ADDRESS_ID:
-
 
1328
            if (field.type == TType.I64) {
-
 
1329
              this.defaultAddressId = iprot.readI64();
-
 
1330
              setDefaultAddressIdIsSet(true);
-
 
1331
            } else { 
-
 
1332
              TProtocolUtil.skip(iprot, field.type);
-
 
1333
            }
-
 
1334
            break;
-
 
1335
          case COMMUNICATION_EMAIL:
-
 
1336
            if (field.type == TType.STRING) {
-
 
1337
              this.communicationEmail = iprot.readString();
-
 
1338
            } else { 
-
 
1339
              TProtocolUtil.skip(iprot, field.type);
-
 
1340
            }
-
 
1341
            break;
-
 
1342
          case ACTIVE_CART_ID:
-
 
1343
            if (field.type == TType.I64) {
-
 
1344
              this.activeCartId = iprot.readI64();
-
 
1345
              setActiveCartIdIsSet(true);
1379
              iprot.readListEnd();
1346
            } else { 
-
 
1347
              TProtocolUtil.skip(iprot, field.type);
-
 
1348
            }
-
 
1349
            break;
-
 
1350
          case JSESSION_ID:
-
 
1351
            if (field.type == TType.STRING) {
-
 
1352
              this.jsessionId = iprot.readString();
-
 
1353
            } else { 
-
 
1354
              TProtocolUtil.skip(iprot, field.type);
-
 
1355
            }
1380
            }
-
 
1381
          } else { 
-
 
1382
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1383
          }
1356
            break;
1384
          break;
-
 
1385
        case 10: // DEFAULT_ADDRESS_ID
-
 
1386
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
1387
            this.defaultAddressId = iprot.readI64();
-
 
1388
            setDefaultAddressIdIsSet(true);
-
 
1389
          } else { 
-
 
1390
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1391
          }
-
 
1392
          break;
-
 
1393
        case 11: // COMMUNICATION_EMAIL
-
 
1394
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
1395
            this.communicationEmail = iprot.readString();
-
 
1396
          } else { 
-
 
1397
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1398
          }
-
 
1399
          break;
-
 
1400
        case 12: // ACTIVE_CART_ID
-
 
1401
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
1402
            this.activeCartId = iprot.readI64();
-
 
1403
            setActiveCartIdIsSet(true);
-
 
1404
          } else { 
-
 
1405
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1406
          }
-
 
1407
          break;
-
 
1408
        case 13: // JSESSION_ID
-
 
1409
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
1410
            this.jsessionId = iprot.readString();
-
 
1411
          } else { 
-
 
1412
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1413
          }
-
 
1414
          break;
1357
          case IS_ANONYMOUS:
1415
        case 14: // IS_ANONYMOUS
1358
            if (field.type == TType.BOOL) {
1416
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1359
              this.isAnonymous = iprot.readBool();
1417
            this.isAnonymous = iprot.readBool();
1360
              setIsAnonymousIsSet(true);
1418
            setIsAnonymousIsSet(true);
1361
            } else { 
1419
          } else { 
1362
              TProtocolUtil.skip(iprot, field.type);
1420
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1363
            }
1421
          }
1364
            break;
1422
          break;
1365
          case SOURCE:
1423
        case 15: // SOURCE
1366
            if (field.type == TType.STRING) {
1424
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1367
              this.source = iprot.readString();
1425
            this.source = iprot.readString();
1368
            } else { 
1426
          } else { 
1369
              TProtocolUtil.skip(iprot, field.type);
1427
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1370
            }
1428
          }
1371
            break;
1429
          break;
1372
          case SOURCE_START_TIME:
1430
        case 16: // SOURCE_START_TIME
1373
            if (field.type == TType.I64) {
1431
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1374
              this.sourceStartTime = iprot.readI64();
1432
            this.sourceStartTime = iprot.readI64();
1375
              setSourceStartTimeIsSet(true);
1433
            setSourceStartTimeIsSet(true);
1376
            } else { 
1434
          } else { 
1377
              TProtocolUtil.skip(iprot, field.type);
1435
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1378
            }
1436
          }
1379
            break;
1437
          break;
1380
        }
1438
        default:
1381
        iprot.readFieldEnd();
1439
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1382
      }
1440
      }
-
 
1441
      iprot.readFieldEnd();
1383
    }
1442
    }
1384
    iprot.readStructEnd();
1443
    iprot.readStructEnd();
1385
    validate();
1444
    validate();
1386
  }
1445
  }
1387
 
1446
 
1388
  public void write(TProtocol oprot) throws TException {
1447
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1389
    validate();
1448
    validate();
1390
 
1449
 
1391
    oprot.writeStructBegin(STRUCT_DESC);
1450
    oprot.writeStructBegin(STRUCT_DESC);
1392
    oprot.writeFieldBegin(USER_ID_FIELD_DESC);
1451
    oprot.writeFieldBegin(USER_ID_FIELD_DESC);
1393
    oprot.writeI64(this.userId);
1452
    oprot.writeI64(this.userId);
Line 1428... Line 1487...
1428
      oprot.writeFieldEnd();
1487
      oprot.writeFieldEnd();
1429
    }
1488
    }
1430
    if (this.addresses != null) {
1489
    if (this.addresses != null) {
1431
      oprot.writeFieldBegin(ADDRESSES_FIELD_DESC);
1490
      oprot.writeFieldBegin(ADDRESSES_FIELD_DESC);
1432
      {
1491
      {
1433
        oprot.writeListBegin(new TList(TType.STRUCT, this.addresses.size()));
1492
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.addresses.size()));
1434
        for (Address _iter7 : this.addresses)
1493
        for (Address _iter7 : this.addresses)
1435
        {
1494
        {
1436
          _iter7.write(oprot);
1495
          _iter7.write(oprot);
1437
        }
1496
        }
1438
        oprot.writeListEnd();
1497
        oprot.writeListEnd();
Line 1513... Line 1572...
1513
    if (!first) sb.append(", ");
1572
    if (!first) sb.append(", ");
1514
    sb.append("sex:");
1573
    sb.append("sex:");
1515
    if (this.sex == null) {
1574
    if (this.sex == null) {
1516
      sb.append("null");
1575
      sb.append("null");
1517
    } else {
1576
    } else {
1518
      String sex_name = sex.name();
-
 
1519
      if (sex_name != null) {
-
 
1520
        sb.append(sex_name);
-
 
1521
        sb.append(" (");
-
 
1522
      }
-
 
1523
      sb.append(this.sex);
1577
      sb.append(this.sex);
1524
      if (sex_name != null) {
-
 
1525
        sb.append(")");
-
 
1526
      }
-
 
1527
    }
1578
    }
1528
    first = false;
1579
    first = false;
1529
    if (!first) sb.append(", ");
1580
    if (!first) sb.append(", ");
1530
    sb.append("mobileNumber:");
1581
    sb.append("mobileNumber:");
1531
    if (this.mobileNumber == null) {
1582
    if (this.mobileNumber == null) {
Line 1592... Line 1643...
1592
    first = false;
1643
    first = false;
1593
    sb.append(")");
1644
    sb.append(")");
1594
    return sb.toString();
1645
    return sb.toString();
1595
  }
1646
  }
1596
 
1647
 
1597
  public void validate() throws TException {
1648
  public void validate() throws org.apache.thrift.TException {
1598
    // check for required fields
1649
    // check for required fields
1599
  }
1650
  }
1600
 
1651
 
-
 
1652
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
1653
    try {
-
 
1654
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
1655
    } catch (org.apache.thrift.TException te) {
-
 
1656
      throw new java.io.IOException(te);
-
 
1657
    }
-
 
1658
  }
-
 
1659
 
-
 
1660
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
1661
    try {
-
 
1662
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
1663
      __isset_bit_vector = new BitSet(1);
-
 
1664
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
1665
    } catch (org.apache.thrift.TException te) {
-
 
1666
      throw new java.io.IOException(te);
-
 
1667
    }
-
 
1668
  }
-
 
1669
 
1601
}
1670
}
1602
 
1671