Subversion Repositories SmartDukaan

Rev

Rev 123 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 123 Rev 130
Line 34... Line 34...
34
  private static final TField TITLE_FIELD_DESC = new TField("title", TType.STRING, (short)2);
34
  private static final TField TITLE_FIELD_DESC = new TField("title", TType.STRING, (short)2);
35
  private static final TField FIRST_NAME_FIELD_DESC = new TField("firstName", TType.STRING, (short)3);
35
  private static final TField FIRST_NAME_FIELD_DESC = new TField("firstName", TType.STRING, (short)3);
36
  private static final TField LAST_NAME_FIELD_DESC = new TField("lastName", TType.STRING, (short)4);
36
  private static final TField LAST_NAME_FIELD_DESC = new TField("lastName", TType.STRING, (short)4);
37
  private static final TField PICTURE_URL_FIELD_DESC = new TField("pictureUrl", TType.STRING, (short)5);
37
  private static final TField PICTURE_URL_FIELD_DESC = new TField("pictureUrl", TType.STRING, (short)5);
38
  private static final TField EMAIL_FIELD_DESC = new TField("email", TType.STRING, (short)6);
38
  private static final TField EMAIL_FIELD_DESC = new TField("email", TType.STRING, (short)6);
39
  private static final TField MOBILE_FIELD_DESC = new TField("mobile", TType.STRING, (short)7);
39
  private static final TField DUMMY_FIELD_DESC = new TField("dummy", TType.STRING, (short)7);
40
  private static final TField WORK_PHONE_FIELD_DESC = new TField("workPhone", TType.STRING, (short)8);
40
  private static final TField PHONES_FIELD_DESC = new TField("phones", TType.SET, (short)8);
41
  private static final TField USER_HANDLE_FIELD_DESC = new TField("userHandle", TType.STRING, (short)9);
41
  private static final TField USER_HANDLE_FIELD_DESC = new TField("userHandle", TType.STRING, (short)9);
42
  private static final TField PASSWORD_FIELD_DESC = new TField("password", TType.STRING, (short)10);
42
  private static final TField PASSWORD_FIELD_DESC = new TField("password", TType.STRING, (short)10);
43
  private static final TField SOCIAL_HANDLES_FIELD_DESC = new TField("socialHandles", TType.STRUCT, (short)11);
43
  private static final TField SOCIAL_HANDLES_FIELD_DESC = new TField("socialHandles", TType.STRUCT, (short)11);
44
  private static final TField DATE_OF_BIRTH_FIELD_DESC = new TField("dateOfBirth", TType.I64, (short)12);
44
  private static final TField DATE_OF_BIRTH_FIELD_DESC = new TField("dateOfBirth", TType.I64, (short)12);
45
  private static final TField ANNIVERSARY_FIELD_DESC = new TField("anniversary", TType.I64, (short)13);
45
  private static final TField ANNIVERSARY_FIELD_DESC = new TField("anniversary", TType.I64, (short)13);
46
  private static final TField ADDRESSES_FIELD_DESC = new TField("addresses", TType.SET, (short)14);
46
  private static final TField ADDRESSES_FIELD_DESC = new TField("addresses", TType.SET, (short)14);
47
  private static final TField SHIPMENT_OPTION_FIELD_DESC = new TField("shipmentOption", TType.I32, (short)16);
47
  private static final TField SHIPMENT_OPTION_FIELD_DESC = new TField("shipmentOption", TType.I32, (short)16);
48
  private static final TField MIDDLE_NAME_FIELD_DESC = new TField("middleName", TType.STRING, (short)17);
48
  private static final TField MIDDLE_NAME_FIELD_DESC = new TField("middleName", TType.STRING, (short)17);
49
  private static final TField OCCUPATION_FIELD_DESC = new TField("occupation", TType.STRING, (short)18);
49
  private static final TField OCCUPATION_FIELD_DESC = new TField("occupation", TType.STRING, (short)18);
-
 
50
  private static final TField HINT_QUESTION_FIELD_DESC = new TField("hintQuestion", TType.STRING, (short)19);
-
 
51
  private static final TField HINT_ANSWER_FIELD_DESC = new TField("hintAnswer", TType.STRING, (short)20);
50
 
52
 
51
  private long userId;
53
  private long userId;
52
  private String title;
54
  private String title;
53
  private String firstName;
55
  private String firstName;
54
  private String lastName;
56
  private String lastName;
55
  private String pictureUrl;
57
  private String pictureUrl;
56
  private String email;
58
  private String email;
57
  private String mobile;
59
  private String dummy;
58
  private String workPhone;
60
  private Set<Phone> phones;
59
  private String userHandle;
61
  private String userHandle;
60
  private String password;
62
  private String password;
61
  private SocialHandles socialHandles;
63
  private SocialHandles socialHandles;
62
  private long dateOfBirth;
64
  private long dateOfBirth;
63
  private long anniversary;
65
  private long anniversary;
64
  private Set<Address> addresses;
66
  private Set<Address> addresses;
65
  private int shipmentOption;
67
  private int shipmentOption;
66
  private String middleName;
68
  private String middleName;
67
  private String occupation;
69
  private String occupation;
-
 
70
  private String hintQuestion;
-
 
71
  private String hintAnswer;
68
 
72
 
69
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
73
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
70
  public enum _Fields implements TFieldIdEnum {
74
  public enum _Fields implements TFieldIdEnum {
71
    USER_ID((short)1, "userId"),
75
    USER_ID((short)1, "userId"),
72
    TITLE((short)2, "title"),
76
    TITLE((short)2, "title"),
73
    FIRST_NAME((short)3, "firstName"),
77
    FIRST_NAME((short)3, "firstName"),
74
    LAST_NAME((short)4, "lastName"),
78
    LAST_NAME((short)4, "lastName"),
75
    PICTURE_URL((short)5, "pictureUrl"),
79
    PICTURE_URL((short)5, "pictureUrl"),
76
    EMAIL((short)6, "email"),
80
    EMAIL((short)6, "email"),
77
    MOBILE((short)7, "mobile"),
81
    DUMMY((short)7, "dummy"),
78
    WORK_PHONE((short)8, "workPhone"),
82
    PHONES((short)8, "phones"),
79
    USER_HANDLE((short)9, "userHandle"),
83
    USER_HANDLE((short)9, "userHandle"),
80
    PASSWORD((short)10, "password"),
84
    PASSWORD((short)10, "password"),
81
    SOCIAL_HANDLES((short)11, "socialHandles"),
85
    SOCIAL_HANDLES((short)11, "socialHandles"),
82
    DATE_OF_BIRTH((short)12, "dateOfBirth"),
86
    DATE_OF_BIRTH((short)12, "dateOfBirth"),
83
    ANNIVERSARY((short)13, "anniversary"),
87
    ANNIVERSARY((short)13, "anniversary"),
84
    ADDRESSES((short)14, "addresses"),
88
    ADDRESSES((short)14, "addresses"),
85
    SHIPMENT_OPTION((short)16, "shipmentOption"),
89
    SHIPMENT_OPTION((short)16, "shipmentOption"),
86
    MIDDLE_NAME((short)17, "middleName"),
90
    MIDDLE_NAME((short)17, "middleName"),
87
    OCCUPATION((short)18, "occupation");
91
    OCCUPATION((short)18, "occupation"),
-
 
92
    HINT_QUESTION((short)19, "hintQuestion"),
-
 
93
    HINT_ANSWER((short)20, "hintAnswer");
88
 
94
 
89
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
95
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
90
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
96
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
91
 
97
 
92
    static {
98
    static {
Line 155... Line 161...
155
        new FieldValueMetaData(TType.STRING)));
161
        new FieldValueMetaData(TType.STRING)));
156
    put(_Fields.PICTURE_URL, new FieldMetaData("pictureUrl", TFieldRequirementType.DEFAULT, 
162
    put(_Fields.PICTURE_URL, new FieldMetaData("pictureUrl", TFieldRequirementType.DEFAULT, 
157
        new FieldValueMetaData(TType.STRING)));
163
        new FieldValueMetaData(TType.STRING)));
158
    put(_Fields.EMAIL, new FieldMetaData("email", TFieldRequirementType.DEFAULT, 
164
    put(_Fields.EMAIL, new FieldMetaData("email", TFieldRequirementType.DEFAULT, 
159
        new FieldValueMetaData(TType.STRING)));
165
        new FieldValueMetaData(TType.STRING)));
160
    put(_Fields.MOBILE, new FieldMetaData("mobile", TFieldRequirementType.DEFAULT, 
166
    put(_Fields.DUMMY, new FieldMetaData("dummy", TFieldRequirementType.DEFAULT, 
161
        new FieldValueMetaData(TType.STRING)));
-
 
162
    put(_Fields.WORK_PHONE, new FieldMetaData("workPhone", TFieldRequirementType.DEFAULT, 
-
 
163
        new FieldValueMetaData(TType.STRING)));
167
        new FieldValueMetaData(TType.STRING)));
-
 
168
    put(_Fields.PHONES, new FieldMetaData("phones", TFieldRequirementType.DEFAULT, 
-
 
169
        new SetMetaData(TType.SET, 
-
 
170
            new StructMetaData(TType.STRUCT, Phone.class))));
164
    put(_Fields.USER_HANDLE, new FieldMetaData("userHandle", TFieldRequirementType.DEFAULT, 
171
    put(_Fields.USER_HANDLE, new FieldMetaData("userHandle", TFieldRequirementType.DEFAULT, 
165
        new FieldValueMetaData(TType.STRING)));
172
        new FieldValueMetaData(TType.STRING)));
166
    put(_Fields.PASSWORD, new FieldMetaData("password", TFieldRequirementType.DEFAULT, 
173
    put(_Fields.PASSWORD, new FieldMetaData("password", TFieldRequirementType.DEFAULT, 
167
        new FieldValueMetaData(TType.STRING)));
174
        new FieldValueMetaData(TType.STRING)));
168
    put(_Fields.SOCIAL_HANDLES, new FieldMetaData("socialHandles", TFieldRequirementType.DEFAULT, 
175
    put(_Fields.SOCIAL_HANDLES, new FieldMetaData("socialHandles", TFieldRequirementType.DEFAULT, 
Line 178... Line 185...
178
        new FieldValueMetaData(TType.I32)));
185
        new FieldValueMetaData(TType.I32)));
179
    put(_Fields.MIDDLE_NAME, new FieldMetaData("middleName", TFieldRequirementType.DEFAULT, 
186
    put(_Fields.MIDDLE_NAME, new FieldMetaData("middleName", TFieldRequirementType.DEFAULT, 
180
        new FieldValueMetaData(TType.STRING)));
187
        new FieldValueMetaData(TType.STRING)));
181
    put(_Fields.OCCUPATION, new FieldMetaData("occupation", TFieldRequirementType.DEFAULT, 
188
    put(_Fields.OCCUPATION, new FieldMetaData("occupation", TFieldRequirementType.DEFAULT, 
182
        new FieldValueMetaData(TType.STRING)));
189
        new FieldValueMetaData(TType.STRING)));
-
 
190
    put(_Fields.HINT_QUESTION, new FieldMetaData("hintQuestion", TFieldRequirementType.DEFAULT, 
-
 
191
        new FieldValueMetaData(TType.STRING)));
-
 
192
    put(_Fields.HINT_ANSWER, new FieldMetaData("hintAnswer", TFieldRequirementType.DEFAULT, 
-
 
193
        new FieldValueMetaData(TType.STRING)));
183
  }});
194
  }});
184
 
195
 
185
  static {
196
  static {
186
    FieldMetaData.addStructMetaDataMap(UserPrimaryInfo.class, metaDataMap);
197
    FieldMetaData.addStructMetaDataMap(UserPrimaryInfo.class, metaDataMap);
187
  }
198
  }
Line 194... Line 205...
194
    String title,
205
    String title,
195
    String firstName,
206
    String firstName,
196
    String lastName,
207
    String lastName,
197
    String pictureUrl,
208
    String pictureUrl,
198
    String email,
209
    String email,
199
    String mobile,
210
    String dummy,
200
    String workPhone,
211
    Set<Phone> phones,
201
    String userHandle,
212
    String userHandle,
202
    String password,
213
    String password,
203
    SocialHandles socialHandles,
214
    SocialHandles socialHandles,
204
    long dateOfBirth,
215
    long dateOfBirth,
205
    long anniversary,
216
    long anniversary,
206
    Set<Address> addresses,
217
    Set<Address> addresses,
207
    int shipmentOption,
218
    int shipmentOption,
208
    String middleName,
219
    String middleName,
209
    String occupation)
220
    String occupation,
-
 
221
    String hintQuestion,
-
 
222
    String hintAnswer)
210
  {
223
  {
211
    this();
224
    this();
212
    this.userId = userId;
225
    this.userId = userId;
213
    setUserIdIsSet(true);
226
    setUserIdIsSet(true);
214
    this.title = title;
227
    this.title = title;
215
    this.firstName = firstName;
228
    this.firstName = firstName;
216
    this.lastName = lastName;
229
    this.lastName = lastName;
217
    this.pictureUrl = pictureUrl;
230
    this.pictureUrl = pictureUrl;
218
    this.email = email;
231
    this.email = email;
219
    this.mobile = mobile;
232
    this.dummy = dummy;
220
    this.workPhone = workPhone;
233
    this.phones = phones;
221
    this.userHandle = userHandle;
234
    this.userHandle = userHandle;
222
    this.password = password;
235
    this.password = password;
223
    this.socialHandles = socialHandles;
236
    this.socialHandles = socialHandles;
224
    this.dateOfBirth = dateOfBirth;
237
    this.dateOfBirth = dateOfBirth;
225
    setDateOfBirthIsSet(true);
238
    setDateOfBirthIsSet(true);
Line 228... Line 241...
228
    this.addresses = addresses;
241
    this.addresses = addresses;
229
    this.shipmentOption = shipmentOption;
242
    this.shipmentOption = shipmentOption;
230
    setShipmentOptionIsSet(true);
243
    setShipmentOptionIsSet(true);
231
    this.middleName = middleName;
244
    this.middleName = middleName;
232
    this.occupation = occupation;
245
    this.occupation = occupation;
-
 
246
    this.hintQuestion = hintQuestion;
-
 
247
    this.hintAnswer = hintAnswer;
233
  }
248
  }
234
 
249
 
235
  /**
250
  /**
236
   * Performs a deep copy on <i>other</i>.
251
   * Performs a deep copy on <i>other</i>.
237
   */
252
   */
Line 252... Line 267...
252
      this.pictureUrl = other.pictureUrl;
267
      this.pictureUrl = other.pictureUrl;
253
    }
268
    }
254
    if (other.isSetEmail()) {
269
    if (other.isSetEmail()) {
255
      this.email = other.email;
270
      this.email = other.email;
256
    }
271
    }
257
    if (other.isSetMobile()) {
272
    if (other.isSetDummy()) {
258
      this.mobile = other.mobile;
273
      this.dummy = other.dummy;
259
    }
274
    }
260
    if (other.isSetWorkPhone()) {
275
    if (other.isSetPhones()) {
-
 
276
      Set<Phone> __this__phones = new HashSet<Phone>();
-
 
277
      for (Phone other_element : other.phones) {
-
 
278
        __this__phones.add(new Phone(other_element));
-
 
279
      }
261
      this.workPhone = other.workPhone;
280
      this.phones = __this__phones;
262
    }
281
    }
263
    if (other.isSetUserHandle()) {
282
    if (other.isSetUserHandle()) {
264
      this.userHandle = other.userHandle;
283
      this.userHandle = other.userHandle;
265
    }
284
    }
266
    if (other.isSetPassword()) {
285
    if (other.isSetPassword()) {
Line 283... Line 302...
283
      this.middleName = other.middleName;
302
      this.middleName = other.middleName;
284
    }
303
    }
285
    if (other.isSetOccupation()) {
304
    if (other.isSetOccupation()) {
286
      this.occupation = other.occupation;
305
      this.occupation = other.occupation;
287
    }
306
    }
-
 
307
    if (other.isSetHintQuestion()) {
-
 
308
      this.hintQuestion = other.hintQuestion;
-
 
309
    }
-
 
310
    if (other.isSetHintAnswer()) {
-
 
311
      this.hintAnswer = other.hintAnswer;
-
 
312
    }
288
  }
313
  }
289
 
314
 
290
  public UserPrimaryInfo deepCopy() {
315
  public UserPrimaryInfo deepCopy() {
291
    return new UserPrimaryInfo(this);
316
    return new UserPrimaryInfo(this);
292
  }
317
  }
Line 437... Line 462...
437
    if (!value) {
462
    if (!value) {
438
      this.email = null;
463
      this.email = null;
439
    }
464
    }
440
  }
465
  }
441
 
466
 
442
  public String getMobile() {
467
  public String getDummy() {
443
    return this.mobile;
468
    return this.dummy;
444
  }
469
  }
445
 
470
 
446
  public UserPrimaryInfo setMobile(String mobile) {
471
  public UserPrimaryInfo setDummy(String dummy) {
447
    this.mobile = mobile;
472
    this.dummy = dummy;
448
    return this;
473
    return this;
449
  }
474
  }
450
 
475
 
451
  public void unsetMobile() {
476
  public void unsetDummy() {
452
    this.mobile = null;
477
    this.dummy = null;
453
  }
478
  }
454
 
479
 
455
  /** Returns true if field mobile is set (has been asigned a value) and false otherwise */
480
  /** Returns true if field dummy is set (has been asigned a value) and false otherwise */
456
  public boolean isSetMobile() {
481
  public boolean isSetDummy() {
457
    return this.mobile != null;
482
    return this.dummy != null;
458
  }
483
  }
459
 
484
 
460
  public void setMobileIsSet(boolean value) {
485
  public void setDummyIsSet(boolean value) {
461
    if (!value) {
486
    if (!value) {
462
      this.mobile = null;
487
      this.dummy = null;
-
 
488
    }
-
 
489
  }
-
 
490
 
-
 
491
  public int getPhonesSize() {
-
 
492
    return (this.phones == null) ? 0 : this.phones.size();
-
 
493
  }
-
 
494
 
-
 
495
  public java.util.Iterator<Phone> getPhonesIterator() {
-
 
496
    return (this.phones == null) ? null : this.phones.iterator();
-
 
497
  }
-
 
498
 
-
 
499
  public void addToPhones(Phone elem) {
-
 
500
    if (this.phones == null) {
-
 
501
      this.phones = new HashSet<Phone>();
463
    }
502
    }
-
 
503
    this.phones.add(elem);
464
  }
504
  }
465
 
505
 
466
  public String getWorkPhone() {
506
  public Set<Phone> getPhones() {
467
    return this.workPhone;
507
    return this.phones;
468
  }
508
  }
469
 
509
 
470
  public UserPrimaryInfo setWorkPhone(String workPhone) {
510
  public UserPrimaryInfo setPhones(Set<Phone> phones) {
471
    this.workPhone = workPhone;
511
    this.phones = phones;
472
    return this;
512
    return this;
473
  }
513
  }
474
 
514
 
475
  public void unsetWorkPhone() {
515
  public void unsetPhones() {
476
    this.workPhone = null;
516
    this.phones = null;
477
  }
517
  }
478
 
518
 
479
  /** Returns true if field workPhone is set (has been asigned a value) and false otherwise */
519
  /** Returns true if field phones is set (has been asigned a value) and false otherwise */
480
  public boolean isSetWorkPhone() {
520
  public boolean isSetPhones() {
481
    return this.workPhone != null;
521
    return this.phones != null;
482
  }
522
  }
483
 
523
 
484
  public void setWorkPhoneIsSet(boolean value) {
524
  public void setPhonesIsSet(boolean value) {
485
    if (!value) {
525
    if (!value) {
486
      this.workPhone = null;
526
      this.phones = null;
487
    }
527
    }
488
  }
528
  }
489
 
529
 
490
  public String getUserHandle() {
530
  public String getUserHandle() {
491
    return this.userHandle;
531
    return this.userHandle;
Line 713... Line 753...
713
    if (!value) {
753
    if (!value) {
714
      this.occupation = null;
754
      this.occupation = null;
715
    }
755
    }
716
  }
756
  }
717
 
757
 
-
 
758
  public String getHintQuestion() {
-
 
759
    return this.hintQuestion;
-
 
760
  }
-
 
761
 
-
 
762
  public UserPrimaryInfo setHintQuestion(String hintQuestion) {
-
 
763
    this.hintQuestion = hintQuestion;
-
 
764
    return this;
-
 
765
  }
-
 
766
 
-
 
767
  public void unsetHintQuestion() {
-
 
768
    this.hintQuestion = null;
-
 
769
  }
-
 
770
 
-
 
771
  /** Returns true if field hintQuestion is set (has been asigned a value) and false otherwise */
-
 
772
  public boolean isSetHintQuestion() {
-
 
773
    return this.hintQuestion != null;
-
 
774
  }
-
 
775
 
-
 
776
  public void setHintQuestionIsSet(boolean value) {
-
 
777
    if (!value) {
-
 
778
      this.hintQuestion = null;
-
 
779
    }
-
 
780
  }
-
 
781
 
-
 
782
  public String getHintAnswer() {
-
 
783
    return this.hintAnswer;
-
 
784
  }
-
 
785
 
-
 
786
  public UserPrimaryInfo setHintAnswer(String hintAnswer) {
-
 
787
    this.hintAnswer = hintAnswer;
-
 
788
    return this;
-
 
789
  }
-
 
790
 
-
 
791
  public void unsetHintAnswer() {
-
 
792
    this.hintAnswer = null;
-
 
793
  }
-
 
794
 
-
 
795
  /** Returns true if field hintAnswer is set (has been asigned a value) and false otherwise */
-
 
796
  public boolean isSetHintAnswer() {
-
 
797
    return this.hintAnswer != null;
-
 
798
  }
-
 
799
 
-
 
800
  public void setHintAnswerIsSet(boolean value) {
-
 
801
    if (!value) {
-
 
802
      this.hintAnswer = null;
-
 
803
    }
-
 
804
  }
-
 
805
 
718
  public void setFieldValue(_Fields field, Object value) {
806
  public void setFieldValue(_Fields field, Object value) {
719
    switch (field) {
807
    switch (field) {
720
    case USER_ID:
808
    case USER_ID:
721
      if (value == null) {
809
      if (value == null) {
722
        unsetUserId();
810
        unsetUserId();
Line 763... Line 851...
763
      } else {
851
      } else {
764
        setEmail((String)value);
852
        setEmail((String)value);
765
      }
853
      }
766
      break;
854
      break;
767
 
855
 
768
    case MOBILE:
856
    case DUMMY:
769
      if (value == null) {
857
      if (value == null) {
770
        unsetMobile();
858
        unsetDummy();
771
      } else {
859
      } else {
772
        setMobile((String)value);
860
        setDummy((String)value);
773
      }
861
      }
774
      break;
862
      break;
775
 
863
 
776
    case WORK_PHONE:
864
    case PHONES:
777
      if (value == null) {
865
      if (value == null) {
778
        unsetWorkPhone();
866
        unsetPhones();
779
      } else {
867
      } else {
780
        setWorkPhone((String)value);
868
        setPhones((Set<Phone>)value);
781
      }
869
      }
782
      break;
870
      break;
783
 
871
 
784
    case USER_HANDLE:
872
    case USER_HANDLE:
785
      if (value == null) {
873
      if (value == null) {
Line 851... Line 939...
851
      } else {
939
      } else {
852
        setOccupation((String)value);
940
        setOccupation((String)value);
853
      }
941
      }
854
      break;
942
      break;
855
 
943
 
-
 
944
    case HINT_QUESTION:
-
 
945
      if (value == null) {
-
 
946
        unsetHintQuestion();
-
 
947
      } else {
-
 
948
        setHintQuestion((String)value);
-
 
949
      }
-
 
950
      break;
-
 
951
 
-
 
952
    case HINT_ANSWER:
-
 
953
      if (value == null) {
-
 
954
        unsetHintAnswer();
-
 
955
      } else {
-
 
956
        setHintAnswer((String)value);
-
 
957
      }
-
 
958
      break;
-
 
959
 
856
    }
960
    }
857
  }
961
  }
858
 
962
 
859
  public void setFieldValue(int fieldID, Object value) {
963
  public void setFieldValue(int fieldID, Object value) {
860
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
964
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
Line 878... Line 982...
878
      return getPictureUrl();
982
      return getPictureUrl();
879
 
983
 
880
    case EMAIL:
984
    case EMAIL:
881
      return getEmail();
985
      return getEmail();
882
 
986
 
883
    case MOBILE:
987
    case DUMMY:
884
      return getMobile();
988
      return getDummy();
885
 
989
 
886
    case WORK_PHONE:
990
    case PHONES:
887
      return getWorkPhone();
991
      return getPhones();
888
 
992
 
889
    case USER_HANDLE:
993
    case USER_HANDLE:
890
      return getUserHandle();
994
      return getUserHandle();
891
 
995
 
892
    case PASSWORD:
996
    case PASSWORD:
Line 911... Line 1015...
911
      return getMiddleName();
1015
      return getMiddleName();
912
 
1016
 
913
    case OCCUPATION:
1017
    case OCCUPATION:
914
      return getOccupation();
1018
      return getOccupation();
915
 
1019
 
-
 
1020
    case HINT_QUESTION:
-
 
1021
      return getHintQuestion();
-
 
1022
 
-
 
1023
    case HINT_ANSWER:
-
 
1024
      return getHintAnswer();
-
 
1025
 
916
    }
1026
    }
917
    throw new IllegalStateException();
1027
    throw new IllegalStateException();
918
  }
1028
  }
919
 
1029
 
920
  public Object getFieldValue(int fieldId) {
1030
  public Object getFieldValue(int fieldId) {
Line 934... Line 1044...
934
      return isSetLastName();
1044
      return isSetLastName();
935
    case PICTURE_URL:
1045
    case PICTURE_URL:
936
      return isSetPictureUrl();
1046
      return isSetPictureUrl();
937
    case EMAIL:
1047
    case EMAIL:
938
      return isSetEmail();
1048
      return isSetEmail();
939
    case MOBILE:
1049
    case DUMMY:
940
      return isSetMobile();
1050
      return isSetDummy();
941
    case WORK_PHONE:
1051
    case PHONES:
942
      return isSetWorkPhone();
1052
      return isSetPhones();
943
    case USER_HANDLE:
1053
    case USER_HANDLE:
944
      return isSetUserHandle();
1054
      return isSetUserHandle();
945
    case PASSWORD:
1055
    case PASSWORD:
946
      return isSetPassword();
1056
      return isSetPassword();
947
    case SOCIAL_HANDLES:
1057
    case SOCIAL_HANDLES:
Line 956... Line 1066...
956
      return isSetShipmentOption();
1066
      return isSetShipmentOption();
957
    case MIDDLE_NAME:
1067
    case MIDDLE_NAME:
958
      return isSetMiddleName();
1068
      return isSetMiddleName();
959
    case OCCUPATION:
1069
    case OCCUPATION:
960
      return isSetOccupation();
1070
      return isSetOccupation();
-
 
1071
    case HINT_QUESTION:
-
 
1072
      return isSetHintQuestion();
-
 
1073
    case HINT_ANSWER:
-
 
1074
      return isSetHintAnswer();
961
    }
1075
    }
962
    throw new IllegalStateException();
1076
    throw new IllegalStateException();
963
  }
1077
  }
964
 
1078
 
965
  public boolean isSet(int fieldID) {
1079
  public boolean isSet(int fieldID) {
Line 1031... Line 1145...
1031
        return false;
1145
        return false;
1032
      if (!this.email.equals(that.email))
1146
      if (!this.email.equals(that.email))
1033
        return false;
1147
        return false;
1034
    }
1148
    }
1035
 
1149
 
1036
    boolean this_present_mobile = true && this.isSetMobile();
1150
    boolean this_present_dummy = true && this.isSetDummy();
1037
    boolean that_present_mobile = true && that.isSetMobile();
1151
    boolean that_present_dummy = true && that.isSetDummy();
1038
    if (this_present_mobile || that_present_mobile) {
1152
    if (this_present_dummy || that_present_dummy) {
1039
      if (!(this_present_mobile && that_present_mobile))
1153
      if (!(this_present_dummy && that_present_dummy))
1040
        return false;
1154
        return false;
1041
      if (!this.mobile.equals(that.mobile))
1155
      if (!this.dummy.equals(that.dummy))
1042
        return false;
1156
        return false;
1043
    }
1157
    }
1044
 
1158
 
1045
    boolean this_present_workPhone = true && this.isSetWorkPhone();
1159
    boolean this_present_phones = true && this.isSetPhones();
1046
    boolean that_present_workPhone = true && that.isSetWorkPhone();
1160
    boolean that_present_phones = true && that.isSetPhones();
1047
    if (this_present_workPhone || that_present_workPhone) {
1161
    if (this_present_phones || that_present_phones) {
1048
      if (!(this_present_workPhone && that_present_workPhone))
1162
      if (!(this_present_phones && that_present_phones))
1049
        return false;
1163
        return false;
1050
      if (!this.workPhone.equals(that.workPhone))
1164
      if (!this.phones.equals(that.phones))
1051
        return false;
1165
        return false;
1052
    }
1166
    }
1053
 
1167
 
1054
    boolean this_present_userHandle = true && this.isSetUserHandle();
1168
    boolean this_present_userHandle = true && this.isSetUserHandle();
1055
    boolean that_present_userHandle = true && that.isSetUserHandle();
1169
    boolean that_present_userHandle = true && that.isSetUserHandle();
Line 1130... Line 1244...
1130
        return false;
1244
        return false;
1131
      if (!this.occupation.equals(that.occupation))
1245
      if (!this.occupation.equals(that.occupation))
1132
        return false;
1246
        return false;
1133
    }
1247
    }
1134
 
1248
 
-
 
1249
    boolean this_present_hintQuestion = true && this.isSetHintQuestion();
-
 
1250
    boolean that_present_hintQuestion = true && that.isSetHintQuestion();
-
 
1251
    if (this_present_hintQuestion || that_present_hintQuestion) {
-
 
1252
      if (!(this_present_hintQuestion && that_present_hintQuestion))
-
 
1253
        return false;
-
 
1254
      if (!this.hintQuestion.equals(that.hintQuestion))
-
 
1255
        return false;
-
 
1256
    }
-
 
1257
 
-
 
1258
    boolean this_present_hintAnswer = true && this.isSetHintAnswer();
-
 
1259
    boolean that_present_hintAnswer = true && that.isSetHintAnswer();
-
 
1260
    if (this_present_hintAnswer || that_present_hintAnswer) {
-
 
1261
      if (!(this_present_hintAnswer && that_present_hintAnswer))
-
 
1262
        return false;
-
 
1263
      if (!this.hintAnswer.equals(that.hintAnswer))
-
 
1264
        return false;
-
 
1265
    }
-
 
1266
 
1135
    return true;
1267
    return true;
1136
  }
1268
  }
1137
 
1269
 
1138
  @Override
1270
  @Override
1139
  public int hashCode() {
1271
  public int hashCode() {
Line 1195... Line 1327...
1195
              this.email = iprot.readString();
1327
              this.email = iprot.readString();
1196
            } else { 
1328
            } else { 
1197
              TProtocolUtil.skip(iprot, field.type);
1329
              TProtocolUtil.skip(iprot, field.type);
1198
            }
1330
            }
1199
            break;
1331
            break;
1200
          case MOBILE:
1332
          case DUMMY:
1201
            if (field.type == TType.STRING) {
1333
            if (field.type == TType.STRING) {
1202
              this.mobile = iprot.readString();
1334
              this.dummy = iprot.readString();
1203
            } else { 
1335
            } else { 
1204
              TProtocolUtil.skip(iprot, field.type);
1336
              TProtocolUtil.skip(iprot, field.type);
1205
            }
1337
            }
1206
            break;
1338
            break;
1207
          case WORK_PHONE:
1339
          case PHONES:
1208
            if (field.type == TType.STRING) {
1340
            if (field.type == TType.SET) {
-
 
1341
              {
1209
              this.workPhone = iprot.readString();
1342
                TSet _set0 = iprot.readSetBegin();
-
 
1343
                this.phones = new HashSet<Phone>(2*_set0.size);
-
 
1344
                for (int _i1 = 0; _i1 < _set0.size; ++_i1)
-
 
1345
                {
-
 
1346
                  Phone _elem2;
-
 
1347
                  _elem2 = new Phone();
-
 
1348
                  _elem2.read(iprot);
-
 
1349
                  this.phones.add(_elem2);
-
 
1350
                }
-
 
1351
                iprot.readSetEnd();
-
 
1352
              }
1210
            } else { 
1353
            } else { 
1211
              TProtocolUtil.skip(iprot, field.type);
1354
              TProtocolUtil.skip(iprot, field.type);
1212
            }
1355
            }
1213
            break;
1356
            break;
1214
          case USER_HANDLE:
1357
          case USER_HANDLE:
Line 1250... Line 1393...
1250
            }
1393
            }
1251
            break;
1394
            break;
1252
          case ADDRESSES:
1395
          case ADDRESSES:
1253
            if (field.type == TType.SET) {
1396
            if (field.type == TType.SET) {
1254
              {
1397
              {
1255
                TSet _set0 = iprot.readSetBegin();
1398
                TSet _set3 = iprot.readSetBegin();
1256
                this.addresses = new HashSet<Address>(2*_set0.size);
1399
                this.addresses = new HashSet<Address>(2*_set3.size);
1257
                for (int _i1 = 0; _i1 < _set0.size; ++_i1)
1400
                for (int _i4 = 0; _i4 < _set3.size; ++_i4)
1258
                {
1401
                {
1259
                  Address _elem2;
1402
                  Address _elem5;
1260
                  _elem2 = new Address();
1403
                  _elem5 = new Address();
1261
                  _elem2.read(iprot);
1404
                  _elem5.read(iprot);
1262
                  this.addresses.add(_elem2);
1405
                  this.addresses.add(_elem5);
1263
                }
1406
                }
1264
                iprot.readSetEnd();
1407
                iprot.readSetEnd();
1265
              }
1408
              }
1266
            } else { 
1409
            } else { 
1267
              TProtocolUtil.skip(iprot, field.type);
1410
              TProtocolUtil.skip(iprot, field.type);
Line 1287... Line 1430...
1287
              this.occupation = iprot.readString();
1430
              this.occupation = iprot.readString();
1288
            } else { 
1431
            } else { 
1289
              TProtocolUtil.skip(iprot, field.type);
1432
              TProtocolUtil.skip(iprot, field.type);
1290
            }
1433
            }
1291
            break;
1434
            break;
-
 
1435
          case HINT_QUESTION:
-
 
1436
            if (field.type == TType.STRING) {
-
 
1437
              this.hintQuestion = iprot.readString();
-
 
1438
            } else { 
-
 
1439
              TProtocolUtil.skip(iprot, field.type);
-
 
1440
            }
-
 
1441
            break;
-
 
1442
          case HINT_ANSWER:
-
 
1443
            if (field.type == TType.STRING) {
-
 
1444
              this.hintAnswer = iprot.readString();
-
 
1445
            } else { 
-
 
1446
              TProtocolUtil.skip(iprot, field.type);
-
 
1447
            }
-
 
1448
            break;
1292
        }
1449
        }
1293
        iprot.readFieldEnd();
1450
        iprot.readFieldEnd();
1294
      }
1451
      }
1295
    }
1452
    }
1296
    iprot.readStructEnd();
1453
    iprot.readStructEnd();
Line 1327... Line 1484...
1327
    if (this.email != null) {
1484
    if (this.email != null) {
1328
      oprot.writeFieldBegin(EMAIL_FIELD_DESC);
1485
      oprot.writeFieldBegin(EMAIL_FIELD_DESC);
1329
      oprot.writeString(this.email);
1486
      oprot.writeString(this.email);
1330
      oprot.writeFieldEnd();
1487
      oprot.writeFieldEnd();
1331
    }
1488
    }
1332
    if (this.mobile != null) {
1489
    if (this.dummy != null) {
1333
      oprot.writeFieldBegin(MOBILE_FIELD_DESC);
1490
      oprot.writeFieldBegin(DUMMY_FIELD_DESC);
1334
      oprot.writeString(this.mobile);
1491
      oprot.writeString(this.dummy);
1335
      oprot.writeFieldEnd();
1492
      oprot.writeFieldEnd();
1336
    }
1493
    }
1337
    if (this.workPhone != null) {
1494
    if (this.phones != null) {
1338
      oprot.writeFieldBegin(WORK_PHONE_FIELD_DESC);
1495
      oprot.writeFieldBegin(PHONES_FIELD_DESC);
-
 
1496
      {
-
 
1497
        oprot.writeSetBegin(new TSet(TType.STRUCT, this.phones.size()));
-
 
1498
        for (Phone _iter6 : this.phones)
-
 
1499
        {
-
 
1500
          _iter6.write(oprot);
-
 
1501
        }
1339
      oprot.writeString(this.workPhone);
1502
        oprot.writeSetEnd();
-
 
1503
      }
1340
      oprot.writeFieldEnd();
1504
      oprot.writeFieldEnd();
1341
    }
1505
    }
1342
    if (this.userHandle != null) {
1506
    if (this.userHandle != null) {
1343
      oprot.writeFieldBegin(USER_HANDLE_FIELD_DESC);
1507
      oprot.writeFieldBegin(USER_HANDLE_FIELD_DESC);
1344
      oprot.writeString(this.userHandle);
1508
      oprot.writeString(this.userHandle);
Line 1362... Line 1526...
1362
    oprot.writeFieldEnd();
1526
    oprot.writeFieldEnd();
1363
    if (this.addresses != null) {
1527
    if (this.addresses != null) {
1364
      oprot.writeFieldBegin(ADDRESSES_FIELD_DESC);
1528
      oprot.writeFieldBegin(ADDRESSES_FIELD_DESC);
1365
      {
1529
      {
1366
        oprot.writeSetBegin(new TSet(TType.STRUCT, this.addresses.size()));
1530
        oprot.writeSetBegin(new TSet(TType.STRUCT, this.addresses.size()));
1367
        for (Address _iter3 : this.addresses)
1531
        for (Address _iter7 : this.addresses)
1368
        {
1532
        {
1369
          _iter3.write(oprot);
1533
          _iter7.write(oprot);
1370
        }
1534
        }
1371
        oprot.writeSetEnd();
1535
        oprot.writeSetEnd();
1372
      }
1536
      }
1373
      oprot.writeFieldEnd();
1537
      oprot.writeFieldEnd();
1374
    }
1538
    }
Line 1383... Line 1547...
1383
    if (this.occupation != null) {
1547
    if (this.occupation != null) {
1384
      oprot.writeFieldBegin(OCCUPATION_FIELD_DESC);
1548
      oprot.writeFieldBegin(OCCUPATION_FIELD_DESC);
1385
      oprot.writeString(this.occupation);
1549
      oprot.writeString(this.occupation);
1386
      oprot.writeFieldEnd();
1550
      oprot.writeFieldEnd();
1387
    }
1551
    }
-
 
1552
    if (this.hintQuestion != null) {
-
 
1553
      oprot.writeFieldBegin(HINT_QUESTION_FIELD_DESC);
-
 
1554
      oprot.writeString(this.hintQuestion);
-
 
1555
      oprot.writeFieldEnd();
-
 
1556
    }
-
 
1557
    if (this.hintAnswer != null) {
-
 
1558
      oprot.writeFieldBegin(HINT_ANSWER_FIELD_DESC);
-
 
1559
      oprot.writeString(this.hintAnswer);
-
 
1560
      oprot.writeFieldEnd();
-
 
1561
    }
1388
    oprot.writeFieldStop();
1562
    oprot.writeFieldStop();
1389
    oprot.writeStructEnd();
1563
    oprot.writeStructEnd();
1390
  }
1564
  }
1391
 
1565
 
1392
  @Override
1566
  @Override
Line 1436... Line 1610...
1436
    } else {
1610
    } else {
1437
      sb.append(this.email);
1611
      sb.append(this.email);
1438
    }
1612
    }
1439
    first = false;
1613
    first = false;
1440
    if (!first) sb.append(", ");
1614
    if (!first) sb.append(", ");
1441
    sb.append("mobile:");
1615
    sb.append("dummy:");
1442
    if (this.mobile == null) {
1616
    if (this.dummy == null) {
1443
      sb.append("null");
1617
      sb.append("null");
1444
    } else {
1618
    } else {
1445
      sb.append(this.mobile);
1619
      sb.append(this.dummy);
1446
    }
1620
    }
1447
    first = false;
1621
    first = false;
1448
    if (!first) sb.append(", ");
1622
    if (!first) sb.append(", ");
1449
    sb.append("workPhone:");
1623
    sb.append("phones:");
1450
    if (this.workPhone == null) {
1624
    if (this.phones == null) {
1451
      sb.append("null");
1625
      sb.append("null");
1452
    } else {
1626
    } else {
1453
      sb.append(this.workPhone);
1627
      sb.append(this.phones);
1454
    }
1628
    }
1455
    first = false;
1629
    first = false;
1456
    if (!first) sb.append(", ");
1630
    if (!first) sb.append(", ");
1457
    sb.append("userHandle:");
1631
    sb.append("userHandle:");
1458
    if (this.userHandle == null) {
1632
    if (this.userHandle == null) {
Line 1511... Line 1685...
1511
      sb.append("null");
1685
      sb.append("null");
1512
    } else {
1686
    } else {
1513
      sb.append(this.occupation);
1687
      sb.append(this.occupation);
1514
    }
1688
    }
1515
    first = false;
1689
    first = false;
-
 
1690
    if (!first) sb.append(", ");
-
 
1691
    sb.append("hintQuestion:");
-
 
1692
    if (this.hintQuestion == null) {
-
 
1693
      sb.append("null");
-
 
1694
    } else {
-
 
1695
      sb.append(this.hintQuestion);
-
 
1696
    }
-
 
1697
    first = false;
-
 
1698
    if (!first) sb.append(", ");
-
 
1699
    sb.append("hintAnswer:");
-
 
1700
    if (this.hintAnswer == null) {
-
 
1701
      sb.append("null");
-
 
1702
    } else {
-
 
1703
      sb.append(this.hintAnswer);
-
 
1704
    }
-
 
1705
    first = false;
1516
    sb.append(")");
1706
    sb.append(")");
1517
    return sb.toString();
1707
    return sb.toString();
1518
  }
1708
  }
1519
 
1709
 
1520
  public void validate() throws TException {
1710
  public void validate() throws TException {