Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
48 ashish 1
/**
2
 * Autogenerated by Thrift
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.model.v1.user;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
18
import java.util.Arrays;
19
import org.slf4j.Logger;
20
import org.slf4j.LoggerFactory;
21
 
22
import org.apache.thrift.*;
23
import org.apache.thrift.meta_data.*;
24
import org.apache.thrift.protocol.*;
25
 
26
public class TUserPrimaryInfo implements TBase<TUserPrimaryInfo._Fields>, java.io.Serializable, Cloneable {
27
  private static final TStruct STRUCT_DESC = new TStruct("TUserPrimaryInfo");
28
 
29
  private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
30
  private static final TField TITLE_FIELD_DESC = new TField("title", TType.STRING, (short)2);
31
  private static final TField FIRST_NAME_FIELD_DESC = new TField("firstName", TType.STRING, (short)3);
32
  private static final TField LAST_NAME_FIELD_DESC = new TField("lastName", TType.STRING, (short)4);
33
  private static final TField PICTURE_URL_FIELD_DESC = new TField("pictureUrl", TType.STRING, (short)5);
34
  private static final TField EMAIL_FIELD_DESC = new TField("email", TType.STRING, (short)6);
35
  private static final TField MOBILE_FIELD_DESC = new TField("mobile", TType.STRING, (short)7);
36
  private static final TField WORK_PHONE_FIELD_DESC = new TField("workPhone", TType.STRING, (short)8);
37
  private static final TField USER_HANDLE_FIELD_DESC = new TField("userHandle", TType.STRING, (short)9);
38
  private static final TField PASSWORD_FIELD_DESC = new TField("password", TType.STRING, (short)10);
39
  private static final TField SOCIAL_HANDLES_FIELD_DESC = new TField("socialHandles", TType.STRUCT, (short)11);
40
  private static final TField DATE_OF_BIRTH_FIELD_DESC = new TField("dateOfBirth", TType.I64, (short)12);
41
  private static final TField ANNIVERSARY_FIELD_DESC = new TField("anniversary", TType.I64, (short)13);
42
  private static final TField ADDRESSES_FIELD_DESC = new TField("addresses", TType.SET, (short)14);
43
  private static final TField SHIPMENT_OPTION_FIELD_DESC = new TField("shipmentOption", TType.I32, (short)16);
44
  private static final TField MIDDLE_NAME_FIELD_DESC = new TField("middleName", TType.STRING, (short)17);
45
  private static final TField OCCUPATION_FIELD_DESC = new TField("occupation", TType.STRING, (short)18);
46
 
47
  private long userId;
48
  private String title;
49
  private String firstName;
50
  private String lastName;
51
  private String pictureUrl;
52
  private String email;
53
  private String mobile;
54
  private String workPhone;
55
  private String userHandle;
56
  private String password;
57
  private TSocialHandles socialHandles;
58
  private long dateOfBirth;
59
  private long anniversary;
60
  private Set<TAddress> addresses;
61
  private int shipmentOption;
62
  private String middleName;
63
  private String occupation;
64
 
65
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
66
  public enum _Fields implements TFieldIdEnum {
67
    USER_ID((short)1, "userId"),
68
    TITLE((short)2, "title"),
69
    FIRST_NAME((short)3, "firstName"),
70
    LAST_NAME((short)4, "lastName"),
71
    PICTURE_URL((short)5, "pictureUrl"),
72
    EMAIL((short)6, "email"),
73
    MOBILE((short)7, "mobile"),
74
    WORK_PHONE((short)8, "workPhone"),
75
    USER_HANDLE((short)9, "userHandle"),
76
    PASSWORD((short)10, "password"),
77
    SOCIAL_HANDLES((short)11, "socialHandles"),
78
    DATE_OF_BIRTH((short)12, "dateOfBirth"),
79
    ANNIVERSARY((short)13, "anniversary"),
80
    ADDRESSES((short)14, "addresses"),
81
    SHIPMENT_OPTION((short)16, "shipmentOption"),
82
    MIDDLE_NAME((short)17, "middleName"),
83
    OCCUPATION((short)18, "occupation");
84
 
85
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
86
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
87
 
88
    static {
89
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
90
        byId.put((int)field._thriftId, field);
91
        byName.put(field.getFieldName(), field);
92
      }
93
    }
94
 
95
    /**
96
     * Find the _Fields constant that matches fieldId, or null if its not found.
97
     */
98
    public static _Fields findByThriftId(int fieldId) {
99
      return byId.get(fieldId);
100
    }
101
 
102
    /**
103
     * Find the _Fields constant that matches fieldId, throwing an exception
104
     * if it is not found.
105
     */
106
    public static _Fields findByThriftIdOrThrow(int fieldId) {
107
      _Fields fields = findByThriftId(fieldId);
108
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
109
      return fields;
110
    }
111
 
112
    /**
113
     * Find the _Fields constant that matches name, or null if its not found.
114
     */
115
    public static _Fields findByName(String name) {
116
      return byName.get(name);
117
    }
118
 
119
    private final short _thriftId;
120
    private final String _fieldName;
121
 
122
    _Fields(short thriftId, String fieldName) {
123
      _thriftId = thriftId;
124
      _fieldName = fieldName;
125
    }
126
 
127
    public short getThriftFieldId() {
128
      return _thriftId;
129
    }
130
 
131
    public String getFieldName() {
132
      return _fieldName;
133
    }
134
  }
135
 
136
  // isset id assignments
137
  private static final int __USERID_ISSET_ID = 0;
138
  private static final int __DATEOFBIRTH_ISSET_ID = 1;
139
  private static final int __ANNIVERSARY_ISSET_ID = 2;
140
  private static final int __SHIPMENTOPTION_ISSET_ID = 3;
141
  private BitSet __isset_bit_vector = new BitSet(4);
142
 
143
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
144
    put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
145
        new FieldValueMetaData(TType.I64)));
146
    put(_Fields.TITLE, new FieldMetaData("title", TFieldRequirementType.DEFAULT, 
147
        new FieldValueMetaData(TType.STRING)));
148
    put(_Fields.FIRST_NAME, new FieldMetaData("firstName", TFieldRequirementType.DEFAULT, 
149
        new FieldValueMetaData(TType.STRING)));
150
    put(_Fields.LAST_NAME, new FieldMetaData("lastName", TFieldRequirementType.DEFAULT, 
151
        new FieldValueMetaData(TType.STRING)));
152
    put(_Fields.PICTURE_URL, new FieldMetaData("pictureUrl", TFieldRequirementType.DEFAULT, 
153
        new FieldValueMetaData(TType.STRING)));
154
    put(_Fields.EMAIL, new FieldMetaData("email", TFieldRequirementType.DEFAULT, 
155
        new FieldValueMetaData(TType.STRING)));
156
    put(_Fields.MOBILE, new FieldMetaData("mobile", TFieldRequirementType.DEFAULT, 
157
        new FieldValueMetaData(TType.STRING)));
158
    put(_Fields.WORK_PHONE, new FieldMetaData("workPhone", TFieldRequirementType.DEFAULT, 
159
        new FieldValueMetaData(TType.STRING)));
160
    put(_Fields.USER_HANDLE, new FieldMetaData("userHandle", TFieldRequirementType.DEFAULT, 
161
        new FieldValueMetaData(TType.STRING)));
162
    put(_Fields.PASSWORD, new FieldMetaData("password", TFieldRequirementType.DEFAULT, 
163
        new FieldValueMetaData(TType.STRING)));
164
    put(_Fields.SOCIAL_HANDLES, new FieldMetaData("socialHandles", TFieldRequirementType.DEFAULT, 
165
        new StructMetaData(TType.STRUCT, TSocialHandles.class)));
166
    put(_Fields.DATE_OF_BIRTH, new FieldMetaData("dateOfBirth", TFieldRequirementType.DEFAULT, 
167
        new FieldValueMetaData(TType.I64)));
168
    put(_Fields.ANNIVERSARY, new FieldMetaData("anniversary", TFieldRequirementType.DEFAULT, 
169
        new FieldValueMetaData(TType.I64)));
170
    put(_Fields.ADDRESSES, new FieldMetaData("addresses", TFieldRequirementType.DEFAULT, 
171
        new SetMetaData(TType.SET, 
172
            new StructMetaData(TType.STRUCT, TAddress.class))));
173
    put(_Fields.SHIPMENT_OPTION, new FieldMetaData("shipmentOption", TFieldRequirementType.DEFAULT, 
174
        new FieldValueMetaData(TType.I32)));
175
    put(_Fields.MIDDLE_NAME, new FieldMetaData("middleName", TFieldRequirementType.DEFAULT, 
176
        new FieldValueMetaData(TType.STRING)));
177
    put(_Fields.OCCUPATION, new FieldMetaData("occupation", TFieldRequirementType.DEFAULT, 
178
        new FieldValueMetaData(TType.STRING)));
179
  }});
180
 
181
  static {
182
    FieldMetaData.addStructMetaDataMap(TUserPrimaryInfo.class, metaDataMap);
183
  }
184
 
185
  public TUserPrimaryInfo() {
186
  }
187
 
188
  public TUserPrimaryInfo(
189
    long userId,
190
    String title,
191
    String firstName,
192
    String lastName,
193
    String pictureUrl,
194
    String email,
195
    String mobile,
196
    String workPhone,
197
    String userHandle,
198
    String password,
199
    TSocialHandles socialHandles,
200
    long dateOfBirth,
201
    long anniversary,
202
    Set<TAddress> addresses,
203
    int shipmentOption,
204
    String middleName,
205
    String occupation)
206
  {
207
    this();
208
    this.userId = userId;
209
    setUserIdIsSet(true);
210
    this.title = title;
211
    this.firstName = firstName;
212
    this.lastName = lastName;
213
    this.pictureUrl = pictureUrl;
214
    this.email = email;
215
    this.mobile = mobile;
216
    this.workPhone = workPhone;
217
    this.userHandle = userHandle;
218
    this.password = password;
219
    this.socialHandles = socialHandles;
220
    this.dateOfBirth = dateOfBirth;
221
    setDateOfBirthIsSet(true);
222
    this.anniversary = anniversary;
223
    setAnniversaryIsSet(true);
224
    this.addresses = addresses;
225
    this.shipmentOption = shipmentOption;
226
    setShipmentOptionIsSet(true);
227
    this.middleName = middleName;
228
    this.occupation = occupation;
229
  }
230
 
231
  /**
232
   * Performs a deep copy on <i>other</i>.
233
   */
234
  public TUserPrimaryInfo(TUserPrimaryInfo other) {
235
    __isset_bit_vector.clear();
236
    __isset_bit_vector.or(other.__isset_bit_vector);
237
    this.userId = other.userId;
238
    if (other.isSetTitle()) {
239
      this.title = other.title;
240
    }
241
    if (other.isSetFirstName()) {
242
      this.firstName = other.firstName;
243
    }
244
    if (other.isSetLastName()) {
245
      this.lastName = other.lastName;
246
    }
247
    if (other.isSetPictureUrl()) {
248
      this.pictureUrl = other.pictureUrl;
249
    }
250
    if (other.isSetEmail()) {
251
      this.email = other.email;
252
    }
253
    if (other.isSetMobile()) {
254
      this.mobile = other.mobile;
255
    }
256
    if (other.isSetWorkPhone()) {
257
      this.workPhone = other.workPhone;
258
    }
259
    if (other.isSetUserHandle()) {
260
      this.userHandle = other.userHandle;
261
    }
262
    if (other.isSetPassword()) {
263
      this.password = other.password;
264
    }
265
    if (other.isSetSocialHandles()) {
266
      this.socialHandles = new TSocialHandles(other.socialHandles);
267
    }
268
    this.dateOfBirth = other.dateOfBirth;
269
    this.anniversary = other.anniversary;
270
    if (other.isSetAddresses()) {
271
      Set<TAddress> __this__addresses = new HashSet<TAddress>();
272
      for (TAddress other_element : other.addresses) {
273
        __this__addresses.add(new TAddress(other_element));
274
      }
275
      this.addresses = __this__addresses;
276
    }
277
    this.shipmentOption = other.shipmentOption;
278
    if (other.isSetMiddleName()) {
279
      this.middleName = other.middleName;
280
    }
281
    if (other.isSetOccupation()) {
282
      this.occupation = other.occupation;
283
    }
284
  }
285
 
286
  public TUserPrimaryInfo deepCopy() {
287
    return new TUserPrimaryInfo(this);
288
  }
289
 
290
  @Deprecated
291
  public TUserPrimaryInfo clone() {
292
    return new TUserPrimaryInfo(this);
293
  }
294
 
295
  public long getUserId() {
296
    return this.userId;
297
  }
298
 
299
  public TUserPrimaryInfo setUserId(long userId) {
300
    this.userId = userId;
301
    setUserIdIsSet(true);
302
    return this;
303
  }
304
 
305
  public void unsetUserId() {
306
    __isset_bit_vector.clear(__USERID_ISSET_ID);
307
  }
308
 
309
  /** Returns true if field userId is set (has been asigned a value) and false otherwise */
310
  public boolean isSetUserId() {
311
    return __isset_bit_vector.get(__USERID_ISSET_ID);
312
  }
313
 
314
  public void setUserIdIsSet(boolean value) {
315
    __isset_bit_vector.set(__USERID_ISSET_ID, value);
316
  }
317
 
318
  public String getTitle() {
319
    return this.title;
320
  }
321
 
322
  public TUserPrimaryInfo setTitle(String title) {
323
    this.title = title;
324
    return this;
325
  }
326
 
327
  public void unsetTitle() {
328
    this.title = null;
329
  }
330
 
331
  /** Returns true if field title is set (has been asigned a value) and false otherwise */
332
  public boolean isSetTitle() {
333
    return this.title != null;
334
  }
335
 
336
  public void setTitleIsSet(boolean value) {
337
    if (!value) {
338
      this.title = null;
339
    }
340
  }
341
 
342
  public String getFirstName() {
343
    return this.firstName;
344
  }
345
 
346
  public TUserPrimaryInfo setFirstName(String firstName) {
347
    this.firstName = firstName;
348
    return this;
349
  }
350
 
351
  public void unsetFirstName() {
352
    this.firstName = null;
353
  }
354
 
355
  /** Returns true if field firstName is set (has been asigned a value) and false otherwise */
356
  public boolean isSetFirstName() {
357
    return this.firstName != null;
358
  }
359
 
360
  public void setFirstNameIsSet(boolean value) {
361
    if (!value) {
362
      this.firstName = null;
363
    }
364
  }
365
 
366
  public String getLastName() {
367
    return this.lastName;
368
  }
369
 
370
  public TUserPrimaryInfo setLastName(String lastName) {
371
    this.lastName = lastName;
372
    return this;
373
  }
374
 
375
  public void unsetLastName() {
376
    this.lastName = null;
377
  }
378
 
379
  /** Returns true if field lastName is set (has been asigned a value) and false otherwise */
380
  public boolean isSetLastName() {
381
    return this.lastName != null;
382
  }
383
 
384
  public void setLastNameIsSet(boolean value) {
385
    if (!value) {
386
      this.lastName = null;
387
    }
388
  }
389
 
390
  public String getPictureUrl() {
391
    return this.pictureUrl;
392
  }
393
 
394
  public TUserPrimaryInfo setPictureUrl(String pictureUrl) {
395
    this.pictureUrl = pictureUrl;
396
    return this;
397
  }
398
 
399
  public void unsetPictureUrl() {
400
    this.pictureUrl = null;
401
  }
402
 
403
  /** Returns true if field pictureUrl is set (has been asigned a value) and false otherwise */
404
  public boolean isSetPictureUrl() {
405
    return this.pictureUrl != null;
406
  }
407
 
408
  public void setPictureUrlIsSet(boolean value) {
409
    if (!value) {
410
      this.pictureUrl = null;
411
    }
412
  }
413
 
414
  public String getEmail() {
415
    return this.email;
416
  }
417
 
418
  public TUserPrimaryInfo setEmail(String email) {
419
    this.email = email;
420
    return this;
421
  }
422
 
423
  public void unsetEmail() {
424
    this.email = null;
425
  }
426
 
427
  /** Returns true if field email is set (has been asigned a value) and false otherwise */
428
  public boolean isSetEmail() {
429
    return this.email != null;
430
  }
431
 
432
  public void setEmailIsSet(boolean value) {
433
    if (!value) {
434
      this.email = null;
435
    }
436
  }
437
 
438
  public String getMobile() {
439
    return this.mobile;
440
  }
441
 
442
  public TUserPrimaryInfo setMobile(String mobile) {
443
    this.mobile = mobile;
444
    return this;
445
  }
446
 
447
  public void unsetMobile() {
448
    this.mobile = null;
449
  }
450
 
451
  /** Returns true if field mobile is set (has been asigned a value) and false otherwise */
452
  public boolean isSetMobile() {
453
    return this.mobile != null;
454
  }
455
 
456
  public void setMobileIsSet(boolean value) {
457
    if (!value) {
458
      this.mobile = null;
459
    }
460
  }
461
 
462
  public String getWorkPhone() {
463
    return this.workPhone;
464
  }
465
 
466
  public TUserPrimaryInfo setWorkPhone(String workPhone) {
467
    this.workPhone = workPhone;
468
    return this;
469
  }
470
 
471
  public void unsetWorkPhone() {
472
    this.workPhone = null;
473
  }
474
 
475
  /** Returns true if field workPhone is set (has been asigned a value) and false otherwise */
476
  public boolean isSetWorkPhone() {
477
    return this.workPhone != null;
478
  }
479
 
480
  public void setWorkPhoneIsSet(boolean value) {
481
    if (!value) {
482
      this.workPhone = null;
483
    }
484
  }
485
 
486
  public String getUserHandle() {
487
    return this.userHandle;
488
  }
489
 
490
  public TUserPrimaryInfo setUserHandle(String userHandle) {
491
    this.userHandle = userHandle;
492
    return this;
493
  }
494
 
495
  public void unsetUserHandle() {
496
    this.userHandle = null;
497
  }
498
 
499
  /** Returns true if field userHandle is set (has been asigned a value) and false otherwise */
500
  public boolean isSetUserHandle() {
501
    return this.userHandle != null;
502
  }
503
 
504
  public void setUserHandleIsSet(boolean value) {
505
    if (!value) {
506
      this.userHandle = null;
507
    }
508
  }
509
 
510
  public String getPassword() {
511
    return this.password;
512
  }
513
 
514
  public TUserPrimaryInfo setPassword(String password) {
515
    this.password = password;
516
    return this;
517
  }
518
 
519
  public void unsetPassword() {
520
    this.password = null;
521
  }
522
 
523
  /** Returns true if field password is set (has been asigned a value) and false otherwise */
524
  public boolean isSetPassword() {
525
    return this.password != null;
526
  }
527
 
528
  public void setPasswordIsSet(boolean value) {
529
    if (!value) {
530
      this.password = null;
531
    }
532
  }
533
 
534
  public TSocialHandles getSocialHandles() {
535
    return this.socialHandles;
536
  }
537
 
538
  public TUserPrimaryInfo setSocialHandles(TSocialHandles socialHandles) {
539
    this.socialHandles = socialHandles;
540
    return this;
541
  }
542
 
543
  public void unsetSocialHandles() {
544
    this.socialHandles = null;
545
  }
546
 
547
  /** Returns true if field socialHandles is set (has been asigned a value) and false otherwise */
548
  public boolean isSetSocialHandles() {
549
    return this.socialHandles != null;
550
  }
551
 
552
  public void setSocialHandlesIsSet(boolean value) {
553
    if (!value) {
554
      this.socialHandles = null;
555
    }
556
  }
557
 
558
  public long getDateOfBirth() {
559
    return this.dateOfBirth;
560
  }
561
 
562
  public TUserPrimaryInfo setDateOfBirth(long dateOfBirth) {
563
    this.dateOfBirth = dateOfBirth;
564
    setDateOfBirthIsSet(true);
565
    return this;
566
  }
567
 
568
  public void unsetDateOfBirth() {
569
    __isset_bit_vector.clear(__DATEOFBIRTH_ISSET_ID);
570
  }
571
 
572
  /** Returns true if field dateOfBirth is set (has been asigned a value) and false otherwise */
573
  public boolean isSetDateOfBirth() {
574
    return __isset_bit_vector.get(__DATEOFBIRTH_ISSET_ID);
575
  }
576
 
577
  public void setDateOfBirthIsSet(boolean value) {
578
    __isset_bit_vector.set(__DATEOFBIRTH_ISSET_ID, value);
579
  }
580
 
581
  public long getAnniversary() {
582
    return this.anniversary;
583
  }
584
 
585
  public TUserPrimaryInfo setAnniversary(long anniversary) {
586
    this.anniversary = anniversary;
587
    setAnniversaryIsSet(true);
588
    return this;
589
  }
590
 
591
  public void unsetAnniversary() {
592
    __isset_bit_vector.clear(__ANNIVERSARY_ISSET_ID);
593
  }
594
 
595
  /** Returns true if field anniversary is set (has been asigned a value) and false otherwise */
596
  public boolean isSetAnniversary() {
597
    return __isset_bit_vector.get(__ANNIVERSARY_ISSET_ID);
598
  }
599
 
600
  public void setAnniversaryIsSet(boolean value) {
601
    __isset_bit_vector.set(__ANNIVERSARY_ISSET_ID, value);
602
  }
603
 
604
  public int getAddressesSize() {
605
    return (this.addresses == null) ? 0 : this.addresses.size();
606
  }
607
 
608
  public java.util.Iterator<TAddress> getAddressesIterator() {
609
    return (this.addresses == null) ? null : this.addresses.iterator();
610
  }
611
 
612
  public void addToAddresses(TAddress elem) {
613
    if (this.addresses == null) {
614
      this.addresses = new HashSet<TAddress>();
615
    }
616
    this.addresses.add(elem);
617
  }
618
 
619
  public Set<TAddress> getAddresses() {
620
    return this.addresses;
621
  }
622
 
623
  public TUserPrimaryInfo setAddresses(Set<TAddress> addresses) {
624
    this.addresses = addresses;
625
    return this;
626
  }
627
 
628
  public void unsetAddresses() {
629
    this.addresses = null;
630
  }
631
 
632
  /** Returns true if field addresses is set (has been asigned a value) and false otherwise */
633
  public boolean isSetAddresses() {
634
    return this.addresses != null;
635
  }
636
 
637
  public void setAddressesIsSet(boolean value) {
638
    if (!value) {
639
      this.addresses = null;
640
    }
641
  }
642
 
643
  public int getShipmentOption() {
644
    return this.shipmentOption;
645
  }
646
 
647
  public TUserPrimaryInfo setShipmentOption(int shipmentOption) {
648
    this.shipmentOption = shipmentOption;
649
    setShipmentOptionIsSet(true);
650
    return this;
651
  }
652
 
653
  public void unsetShipmentOption() {
654
    __isset_bit_vector.clear(__SHIPMENTOPTION_ISSET_ID);
655
  }
656
 
657
  /** Returns true if field shipmentOption is set (has been asigned a value) and false otherwise */
658
  public boolean isSetShipmentOption() {
659
    return __isset_bit_vector.get(__SHIPMENTOPTION_ISSET_ID);
660
  }
661
 
662
  public void setShipmentOptionIsSet(boolean value) {
663
    __isset_bit_vector.set(__SHIPMENTOPTION_ISSET_ID, value);
664
  }
665
 
666
  public String getMiddleName() {
667
    return this.middleName;
668
  }
669
 
670
  public TUserPrimaryInfo setMiddleName(String middleName) {
671
    this.middleName = middleName;
672
    return this;
673
  }
674
 
675
  public void unsetMiddleName() {
676
    this.middleName = null;
677
  }
678
 
679
  /** Returns true if field middleName is set (has been asigned a value) and false otherwise */
680
  public boolean isSetMiddleName() {
681
    return this.middleName != null;
682
  }
683
 
684
  public void setMiddleNameIsSet(boolean value) {
685
    if (!value) {
686
      this.middleName = null;
687
    }
688
  }
689
 
690
  public String getOccupation() {
691
    return this.occupation;
692
  }
693
 
694
  public TUserPrimaryInfo setOccupation(String occupation) {
695
    this.occupation = occupation;
696
    return this;
697
  }
698
 
699
  public void unsetOccupation() {
700
    this.occupation = null;
701
  }
702
 
703
  /** Returns true if field occupation is set (has been asigned a value) and false otherwise */
704
  public boolean isSetOccupation() {
705
    return this.occupation != null;
706
  }
707
 
708
  public void setOccupationIsSet(boolean value) {
709
    if (!value) {
710
      this.occupation = null;
711
    }
712
  }
713
 
714
  public void setFieldValue(_Fields field, Object value) {
715
    switch (field) {
716
    case USER_ID:
717
      if (value == null) {
718
        unsetUserId();
719
      } else {
720
        setUserId((Long)value);
721
      }
722
      break;
723
 
724
    case TITLE:
725
      if (value == null) {
726
        unsetTitle();
727
      } else {
728
        setTitle((String)value);
729
      }
730
      break;
731
 
732
    case FIRST_NAME:
733
      if (value == null) {
734
        unsetFirstName();
735
      } else {
736
        setFirstName((String)value);
737
      }
738
      break;
739
 
740
    case LAST_NAME:
741
      if (value == null) {
742
        unsetLastName();
743
      } else {
744
        setLastName((String)value);
745
      }
746
      break;
747
 
748
    case PICTURE_URL:
749
      if (value == null) {
750
        unsetPictureUrl();
751
      } else {
752
        setPictureUrl((String)value);
753
      }
754
      break;
755
 
756
    case EMAIL:
757
      if (value == null) {
758
        unsetEmail();
759
      } else {
760
        setEmail((String)value);
761
      }
762
      break;
763
 
764
    case MOBILE:
765
      if (value == null) {
766
        unsetMobile();
767
      } else {
768
        setMobile((String)value);
769
      }
770
      break;
771
 
772
    case WORK_PHONE:
773
      if (value == null) {
774
        unsetWorkPhone();
775
      } else {
776
        setWorkPhone((String)value);
777
      }
778
      break;
779
 
780
    case USER_HANDLE:
781
      if (value == null) {
782
        unsetUserHandle();
783
      } else {
784
        setUserHandle((String)value);
785
      }
786
      break;
787
 
788
    case PASSWORD:
789
      if (value == null) {
790
        unsetPassword();
791
      } else {
792
        setPassword((String)value);
793
      }
794
      break;
795
 
796
    case SOCIAL_HANDLES:
797
      if (value == null) {
798
        unsetSocialHandles();
799
      } else {
800
        setSocialHandles((TSocialHandles)value);
801
      }
802
      break;
803
 
804
    case DATE_OF_BIRTH:
805
      if (value == null) {
806
        unsetDateOfBirth();
807
      } else {
808
        setDateOfBirth((Long)value);
809
      }
810
      break;
811
 
812
    case ANNIVERSARY:
813
      if (value == null) {
814
        unsetAnniversary();
815
      } else {
816
        setAnniversary((Long)value);
817
      }
818
      break;
819
 
820
    case ADDRESSES:
821
      if (value == null) {
822
        unsetAddresses();
823
      } else {
824
        setAddresses((Set<TAddress>)value);
825
      }
826
      break;
827
 
828
    case SHIPMENT_OPTION:
829
      if (value == null) {
830
        unsetShipmentOption();
831
      } else {
832
        setShipmentOption((Integer)value);
833
      }
834
      break;
835
 
836
    case MIDDLE_NAME:
837
      if (value == null) {
838
        unsetMiddleName();
839
      } else {
840
        setMiddleName((String)value);
841
      }
842
      break;
843
 
844
    case OCCUPATION:
845
      if (value == null) {
846
        unsetOccupation();
847
      } else {
848
        setOccupation((String)value);
849
      }
850
      break;
851
 
852
    }
853
  }
854
 
855
  public void setFieldValue(int fieldID, Object value) {
856
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
857
  }
858
 
859
  public Object getFieldValue(_Fields field) {
860
    switch (field) {
861
    case USER_ID:
862
      return new Long(getUserId());
863
 
864
    case TITLE:
865
      return getTitle();
866
 
867
    case FIRST_NAME:
868
      return getFirstName();
869
 
870
    case LAST_NAME:
871
      return getLastName();
872
 
873
    case PICTURE_URL:
874
      return getPictureUrl();
875
 
876
    case EMAIL:
877
      return getEmail();
878
 
879
    case MOBILE:
880
      return getMobile();
881
 
882
    case WORK_PHONE:
883
      return getWorkPhone();
884
 
885
    case USER_HANDLE:
886
      return getUserHandle();
887
 
888
    case PASSWORD:
889
      return getPassword();
890
 
891
    case SOCIAL_HANDLES:
892
      return getSocialHandles();
893
 
894
    case DATE_OF_BIRTH:
895
      return new Long(getDateOfBirth());
896
 
897
    case ANNIVERSARY:
898
      return new Long(getAnniversary());
899
 
900
    case ADDRESSES:
901
      return getAddresses();
902
 
903
    case SHIPMENT_OPTION:
904
      return new Integer(getShipmentOption());
905
 
906
    case MIDDLE_NAME:
907
      return getMiddleName();
908
 
909
    case OCCUPATION:
910
      return getOccupation();
911
 
912
    }
913
    throw new IllegalStateException();
914
  }
915
 
916
  public Object getFieldValue(int fieldId) {
917
    return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
918
  }
919
 
920
  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
921
  public boolean isSet(_Fields field) {
922
    switch (field) {
923
    case USER_ID:
924
      return isSetUserId();
925
    case TITLE:
926
      return isSetTitle();
927
    case FIRST_NAME:
928
      return isSetFirstName();
929
    case LAST_NAME:
930
      return isSetLastName();
931
    case PICTURE_URL:
932
      return isSetPictureUrl();
933
    case EMAIL:
934
      return isSetEmail();
935
    case MOBILE:
936
      return isSetMobile();
937
    case WORK_PHONE:
938
      return isSetWorkPhone();
939
    case USER_HANDLE:
940
      return isSetUserHandle();
941
    case PASSWORD:
942
      return isSetPassword();
943
    case SOCIAL_HANDLES:
944
      return isSetSocialHandles();
945
    case DATE_OF_BIRTH:
946
      return isSetDateOfBirth();
947
    case ANNIVERSARY:
948
      return isSetAnniversary();
949
    case ADDRESSES:
950
      return isSetAddresses();
951
    case SHIPMENT_OPTION:
952
      return isSetShipmentOption();
953
    case MIDDLE_NAME:
954
      return isSetMiddleName();
955
    case OCCUPATION:
956
      return isSetOccupation();
957
    }
958
    throw new IllegalStateException();
959
  }
960
 
961
  public boolean isSet(int fieldID) {
962
    return isSet(_Fields.findByThriftIdOrThrow(fieldID));
963
  }
964
 
965
  @Override
966
  public boolean equals(Object that) {
967
    if (that == null)
968
      return false;
969
    if (that instanceof TUserPrimaryInfo)
970
      return this.equals((TUserPrimaryInfo)that);
971
    return false;
972
  }
973
 
974
  public boolean equals(TUserPrimaryInfo that) {
975
    if (that == null)
976
      return false;
977
 
978
    boolean this_present_userId = true;
979
    boolean that_present_userId = true;
980
    if (this_present_userId || that_present_userId) {
981
      if (!(this_present_userId && that_present_userId))
982
        return false;
983
      if (this.userId != that.userId)
984
        return false;
985
    }
986
 
987
    boolean this_present_title = true && this.isSetTitle();
988
    boolean that_present_title = true && that.isSetTitle();
989
    if (this_present_title || that_present_title) {
990
      if (!(this_present_title && that_present_title))
991
        return false;
992
      if (!this.title.equals(that.title))
993
        return false;
994
    }
995
 
996
    boolean this_present_firstName = true && this.isSetFirstName();
997
    boolean that_present_firstName = true && that.isSetFirstName();
998
    if (this_present_firstName || that_present_firstName) {
999
      if (!(this_present_firstName && that_present_firstName))
1000
        return false;
1001
      if (!this.firstName.equals(that.firstName))
1002
        return false;
1003
    }
1004
 
1005
    boolean this_present_lastName = true && this.isSetLastName();
1006
    boolean that_present_lastName = true && that.isSetLastName();
1007
    if (this_present_lastName || that_present_lastName) {
1008
      if (!(this_present_lastName && that_present_lastName))
1009
        return false;
1010
      if (!this.lastName.equals(that.lastName))
1011
        return false;
1012
    }
1013
 
1014
    boolean this_present_pictureUrl = true && this.isSetPictureUrl();
1015
    boolean that_present_pictureUrl = true && that.isSetPictureUrl();
1016
    if (this_present_pictureUrl || that_present_pictureUrl) {
1017
      if (!(this_present_pictureUrl && that_present_pictureUrl))
1018
        return false;
1019
      if (!this.pictureUrl.equals(that.pictureUrl))
1020
        return false;
1021
    }
1022
 
1023
    boolean this_present_email = true && this.isSetEmail();
1024
    boolean that_present_email = true && that.isSetEmail();
1025
    if (this_present_email || that_present_email) {
1026
      if (!(this_present_email && that_present_email))
1027
        return false;
1028
      if (!this.email.equals(that.email))
1029
        return false;
1030
    }
1031
 
1032
    boolean this_present_mobile = true && this.isSetMobile();
1033
    boolean that_present_mobile = true && that.isSetMobile();
1034
    if (this_present_mobile || that_present_mobile) {
1035
      if (!(this_present_mobile && that_present_mobile))
1036
        return false;
1037
      if (!this.mobile.equals(that.mobile))
1038
        return false;
1039
    }
1040
 
1041
    boolean this_present_workPhone = true && this.isSetWorkPhone();
1042
    boolean that_present_workPhone = true && that.isSetWorkPhone();
1043
    if (this_present_workPhone || that_present_workPhone) {
1044
      if (!(this_present_workPhone && that_present_workPhone))
1045
        return false;
1046
      if (!this.workPhone.equals(that.workPhone))
1047
        return false;
1048
    }
1049
 
1050
    boolean this_present_userHandle = true && this.isSetUserHandle();
1051
    boolean that_present_userHandle = true && that.isSetUserHandle();
1052
    if (this_present_userHandle || that_present_userHandle) {
1053
      if (!(this_present_userHandle && that_present_userHandle))
1054
        return false;
1055
      if (!this.userHandle.equals(that.userHandle))
1056
        return false;
1057
    }
1058
 
1059
    boolean this_present_password = true && this.isSetPassword();
1060
    boolean that_present_password = true && that.isSetPassword();
1061
    if (this_present_password || that_present_password) {
1062
      if (!(this_present_password && that_present_password))
1063
        return false;
1064
      if (!this.password.equals(that.password))
1065
        return false;
1066
    }
1067
 
1068
    boolean this_present_socialHandles = true && this.isSetSocialHandles();
1069
    boolean that_present_socialHandles = true && that.isSetSocialHandles();
1070
    if (this_present_socialHandles || that_present_socialHandles) {
1071
      if (!(this_present_socialHandles && that_present_socialHandles))
1072
        return false;
1073
      if (!this.socialHandles.equals(that.socialHandles))
1074
        return false;
1075
    }
1076
 
1077
    boolean this_present_dateOfBirth = true;
1078
    boolean that_present_dateOfBirth = true;
1079
    if (this_present_dateOfBirth || that_present_dateOfBirth) {
1080
      if (!(this_present_dateOfBirth && that_present_dateOfBirth))
1081
        return false;
1082
      if (this.dateOfBirth != that.dateOfBirth)
1083
        return false;
1084
    }
1085
 
1086
    boolean this_present_anniversary = true;
1087
    boolean that_present_anniversary = true;
1088
    if (this_present_anniversary || that_present_anniversary) {
1089
      if (!(this_present_anniversary && that_present_anniversary))
1090
        return false;
1091
      if (this.anniversary != that.anniversary)
1092
        return false;
1093
    }
1094
 
1095
    boolean this_present_addresses = true && this.isSetAddresses();
1096
    boolean that_present_addresses = true && that.isSetAddresses();
1097
    if (this_present_addresses || that_present_addresses) {
1098
      if (!(this_present_addresses && that_present_addresses))
1099
        return false;
1100
      if (!this.addresses.equals(that.addresses))
1101
        return false;
1102
    }
1103
 
1104
    boolean this_present_shipmentOption = true;
1105
    boolean that_present_shipmentOption = true;
1106
    if (this_present_shipmentOption || that_present_shipmentOption) {
1107
      if (!(this_present_shipmentOption && that_present_shipmentOption))
1108
        return false;
1109
      if (this.shipmentOption != that.shipmentOption)
1110
        return false;
1111
    }
1112
 
1113
    boolean this_present_middleName = true && this.isSetMiddleName();
1114
    boolean that_present_middleName = true && that.isSetMiddleName();
1115
    if (this_present_middleName || that_present_middleName) {
1116
      if (!(this_present_middleName && that_present_middleName))
1117
        return false;
1118
      if (!this.middleName.equals(that.middleName))
1119
        return false;
1120
    }
1121
 
1122
    boolean this_present_occupation = true && this.isSetOccupation();
1123
    boolean that_present_occupation = true && that.isSetOccupation();
1124
    if (this_present_occupation || that_present_occupation) {
1125
      if (!(this_present_occupation && that_present_occupation))
1126
        return false;
1127
      if (!this.occupation.equals(that.occupation))
1128
        return false;
1129
    }
1130
 
1131
    return true;
1132
  }
1133
 
1134
  @Override
1135
  public int hashCode() {
1136
    return 0;
1137
  }
1138
 
1139
  public void read(TProtocol iprot) throws TException {
1140
    TField field;
1141
    iprot.readStructBegin();
1142
    while (true)
1143
    {
1144
      field = iprot.readFieldBegin();
1145
      if (field.type == TType.STOP) { 
1146
        break;
1147
      }
1148
      _Fields fieldId = _Fields.findByThriftId(field.id);
1149
      if (fieldId == null) {
1150
        TProtocolUtil.skip(iprot, field.type);
1151
      } else {
1152
        switch (fieldId) {
1153
          case USER_ID:
1154
            if (field.type == TType.I64) {
1155
              this.userId = iprot.readI64();
1156
              setUserIdIsSet(true);
1157
            } else { 
1158
              TProtocolUtil.skip(iprot, field.type);
1159
            }
1160
            break;
1161
          case TITLE:
1162
            if (field.type == TType.STRING) {
1163
              this.title = iprot.readString();
1164
            } else { 
1165
              TProtocolUtil.skip(iprot, field.type);
1166
            }
1167
            break;
1168
          case FIRST_NAME:
1169
            if (field.type == TType.STRING) {
1170
              this.firstName = iprot.readString();
1171
            } else { 
1172
              TProtocolUtil.skip(iprot, field.type);
1173
            }
1174
            break;
1175
          case LAST_NAME:
1176
            if (field.type == TType.STRING) {
1177
              this.lastName = iprot.readString();
1178
            } else { 
1179
              TProtocolUtil.skip(iprot, field.type);
1180
            }
1181
            break;
1182
          case PICTURE_URL:
1183
            if (field.type == TType.STRING) {
1184
              this.pictureUrl = iprot.readString();
1185
            } else { 
1186
              TProtocolUtil.skip(iprot, field.type);
1187
            }
1188
            break;
1189
          case EMAIL:
1190
            if (field.type == TType.STRING) {
1191
              this.email = iprot.readString();
1192
            } else { 
1193
              TProtocolUtil.skip(iprot, field.type);
1194
            }
1195
            break;
1196
          case MOBILE:
1197
            if (field.type == TType.STRING) {
1198
              this.mobile = iprot.readString();
1199
            } else { 
1200
              TProtocolUtil.skip(iprot, field.type);
1201
            }
1202
            break;
1203
          case WORK_PHONE:
1204
            if (field.type == TType.STRING) {
1205
              this.workPhone = iprot.readString();
1206
            } else { 
1207
              TProtocolUtil.skip(iprot, field.type);
1208
            }
1209
            break;
1210
          case USER_HANDLE:
1211
            if (field.type == TType.STRING) {
1212
              this.userHandle = iprot.readString();
1213
            } else { 
1214
              TProtocolUtil.skip(iprot, field.type);
1215
            }
1216
            break;
1217
          case PASSWORD:
1218
            if (field.type == TType.STRING) {
1219
              this.password = iprot.readString();
1220
            } else { 
1221
              TProtocolUtil.skip(iprot, field.type);
1222
            }
1223
            break;
1224
          case SOCIAL_HANDLES:
1225
            if (field.type == TType.STRUCT) {
1226
              this.socialHandles = new TSocialHandles();
1227
              this.socialHandles.read(iprot);
1228
            } else { 
1229
              TProtocolUtil.skip(iprot, field.type);
1230
            }
1231
            break;
1232
          case DATE_OF_BIRTH:
1233
            if (field.type == TType.I64) {
1234
              this.dateOfBirth = iprot.readI64();
1235
              setDateOfBirthIsSet(true);
1236
            } else { 
1237
              TProtocolUtil.skip(iprot, field.type);
1238
            }
1239
            break;
1240
          case ANNIVERSARY:
1241
            if (field.type == TType.I64) {
1242
              this.anniversary = iprot.readI64();
1243
              setAnniversaryIsSet(true);
1244
            } else { 
1245
              TProtocolUtil.skip(iprot, field.type);
1246
            }
1247
            break;
1248
          case ADDRESSES:
1249
            if (field.type == TType.SET) {
1250
              {
1251
                TSet _set0 = iprot.readSetBegin();
1252
                this.addresses = new HashSet<TAddress>(2*_set0.size);
1253
                for (int _i1 = 0; _i1 < _set0.size; ++_i1)
1254
                {
1255
                  TAddress _elem2;
1256
                  _elem2 = new TAddress();
1257
                  _elem2.read(iprot);
1258
                  this.addresses.add(_elem2);
1259
                }
1260
                iprot.readSetEnd();
1261
              }
1262
            } else { 
1263
              TProtocolUtil.skip(iprot, field.type);
1264
            }
1265
            break;
1266
          case SHIPMENT_OPTION:
1267
            if (field.type == TType.I32) {
1268
              this.shipmentOption = iprot.readI32();
1269
              setShipmentOptionIsSet(true);
1270
            } else { 
1271
              TProtocolUtil.skip(iprot, field.type);
1272
            }
1273
            break;
1274
          case MIDDLE_NAME:
1275
            if (field.type == TType.STRING) {
1276
              this.middleName = iprot.readString();
1277
            } else { 
1278
              TProtocolUtil.skip(iprot, field.type);
1279
            }
1280
            break;
1281
          case OCCUPATION:
1282
            if (field.type == TType.STRING) {
1283
              this.occupation = iprot.readString();
1284
            } else { 
1285
              TProtocolUtil.skip(iprot, field.type);
1286
            }
1287
            break;
1288
        }
1289
        iprot.readFieldEnd();
1290
      }
1291
    }
1292
    iprot.readStructEnd();
1293
    validate();
1294
  }
1295
 
1296
  public void write(TProtocol oprot) throws TException {
1297
    validate();
1298
 
1299
    oprot.writeStructBegin(STRUCT_DESC);
1300
    oprot.writeFieldBegin(USER_ID_FIELD_DESC);
1301
    oprot.writeI64(this.userId);
1302
    oprot.writeFieldEnd();
1303
    if (this.title != null) {
1304
      oprot.writeFieldBegin(TITLE_FIELD_DESC);
1305
      oprot.writeString(this.title);
1306
      oprot.writeFieldEnd();
1307
    }
1308
    if (this.firstName != null) {
1309
      oprot.writeFieldBegin(FIRST_NAME_FIELD_DESC);
1310
      oprot.writeString(this.firstName);
1311
      oprot.writeFieldEnd();
1312
    }
1313
    if (this.lastName != null) {
1314
      oprot.writeFieldBegin(LAST_NAME_FIELD_DESC);
1315
      oprot.writeString(this.lastName);
1316
      oprot.writeFieldEnd();
1317
    }
1318
    if (this.pictureUrl != null) {
1319
      oprot.writeFieldBegin(PICTURE_URL_FIELD_DESC);
1320
      oprot.writeString(this.pictureUrl);
1321
      oprot.writeFieldEnd();
1322
    }
1323
    if (this.email != null) {
1324
      oprot.writeFieldBegin(EMAIL_FIELD_DESC);
1325
      oprot.writeString(this.email);
1326
      oprot.writeFieldEnd();
1327
    }
1328
    if (this.mobile != null) {
1329
      oprot.writeFieldBegin(MOBILE_FIELD_DESC);
1330
      oprot.writeString(this.mobile);
1331
      oprot.writeFieldEnd();
1332
    }
1333
    if (this.workPhone != null) {
1334
      oprot.writeFieldBegin(WORK_PHONE_FIELD_DESC);
1335
      oprot.writeString(this.workPhone);
1336
      oprot.writeFieldEnd();
1337
    }
1338
    if (this.userHandle != null) {
1339
      oprot.writeFieldBegin(USER_HANDLE_FIELD_DESC);
1340
      oprot.writeString(this.userHandle);
1341
      oprot.writeFieldEnd();
1342
    }
1343
    if (this.password != null) {
1344
      oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
1345
      oprot.writeString(this.password);
1346
      oprot.writeFieldEnd();
1347
    }
1348
    if (this.socialHandles != null) {
1349
      oprot.writeFieldBegin(SOCIAL_HANDLES_FIELD_DESC);
1350
      this.socialHandles.write(oprot);
1351
      oprot.writeFieldEnd();
1352
    }
1353
    oprot.writeFieldBegin(DATE_OF_BIRTH_FIELD_DESC);
1354
    oprot.writeI64(this.dateOfBirth);
1355
    oprot.writeFieldEnd();
1356
    oprot.writeFieldBegin(ANNIVERSARY_FIELD_DESC);
1357
    oprot.writeI64(this.anniversary);
1358
    oprot.writeFieldEnd();
1359
    if (this.addresses != null) {
1360
      oprot.writeFieldBegin(ADDRESSES_FIELD_DESC);
1361
      {
1362
        oprot.writeSetBegin(new TSet(TType.STRUCT, this.addresses.size()));
1363
        for (TAddress _iter3 : this.addresses)
1364
        {
1365
          _iter3.write(oprot);
1366
        }
1367
        oprot.writeSetEnd();
1368
      }
1369
      oprot.writeFieldEnd();
1370
    }
1371
    oprot.writeFieldBegin(SHIPMENT_OPTION_FIELD_DESC);
1372
    oprot.writeI32(this.shipmentOption);
1373
    oprot.writeFieldEnd();
1374
    if (this.middleName != null) {
1375
      oprot.writeFieldBegin(MIDDLE_NAME_FIELD_DESC);
1376
      oprot.writeString(this.middleName);
1377
      oprot.writeFieldEnd();
1378
    }
1379
    if (this.occupation != null) {
1380
      oprot.writeFieldBegin(OCCUPATION_FIELD_DESC);
1381
      oprot.writeString(this.occupation);
1382
      oprot.writeFieldEnd();
1383
    }
1384
    oprot.writeFieldStop();
1385
    oprot.writeStructEnd();
1386
  }
1387
 
1388
  @Override
1389
  public String toString() {
1390
    StringBuilder sb = new StringBuilder("TUserPrimaryInfo(");
1391
    boolean first = true;
1392
 
1393
    sb.append("userId:");
1394
    sb.append(this.userId);
1395
    first = false;
1396
    if (!first) sb.append(", ");
1397
    sb.append("title:");
1398
    if (this.title == null) {
1399
      sb.append("null");
1400
    } else {
1401
      sb.append(this.title);
1402
    }
1403
    first = false;
1404
    if (!first) sb.append(", ");
1405
    sb.append("firstName:");
1406
    if (this.firstName == null) {
1407
      sb.append("null");
1408
    } else {
1409
      sb.append(this.firstName);
1410
    }
1411
    first = false;
1412
    if (!first) sb.append(", ");
1413
    sb.append("lastName:");
1414
    if (this.lastName == null) {
1415
      sb.append("null");
1416
    } else {
1417
      sb.append(this.lastName);
1418
    }
1419
    first = false;
1420
    if (!first) sb.append(", ");
1421
    sb.append("pictureUrl:");
1422
    if (this.pictureUrl == null) {
1423
      sb.append("null");
1424
    } else {
1425
      sb.append(this.pictureUrl);
1426
    }
1427
    first = false;
1428
    if (!first) sb.append(", ");
1429
    sb.append("email:");
1430
    if (this.email == null) {
1431
      sb.append("null");
1432
    } else {
1433
      sb.append(this.email);
1434
    }
1435
    first = false;
1436
    if (!first) sb.append(", ");
1437
    sb.append("mobile:");
1438
    if (this.mobile == null) {
1439
      sb.append("null");
1440
    } else {
1441
      sb.append(this.mobile);
1442
    }
1443
    first = false;
1444
    if (!first) sb.append(", ");
1445
    sb.append("workPhone:");
1446
    if (this.workPhone == null) {
1447
      sb.append("null");
1448
    } else {
1449
      sb.append(this.workPhone);
1450
    }
1451
    first = false;
1452
    if (!first) sb.append(", ");
1453
    sb.append("userHandle:");
1454
    if (this.userHandle == null) {
1455
      sb.append("null");
1456
    } else {
1457
      sb.append(this.userHandle);
1458
    }
1459
    first = false;
1460
    if (!first) sb.append(", ");
1461
    sb.append("password:");
1462
    if (this.password == null) {
1463
      sb.append("null");
1464
    } else {
1465
      sb.append(this.password);
1466
    }
1467
    first = false;
1468
    if (!first) sb.append(", ");
1469
    sb.append("socialHandles:");
1470
    if (this.socialHandles == null) {
1471
      sb.append("null");
1472
    } else {
1473
      sb.append(this.socialHandles);
1474
    }
1475
    first = false;
1476
    if (!first) sb.append(", ");
1477
    sb.append("dateOfBirth:");
1478
    sb.append(this.dateOfBirth);
1479
    first = false;
1480
    if (!first) sb.append(", ");
1481
    sb.append("anniversary:");
1482
    sb.append(this.anniversary);
1483
    first = false;
1484
    if (!first) sb.append(", ");
1485
    sb.append("addresses:");
1486
    if (this.addresses == null) {
1487
      sb.append("null");
1488
    } else {
1489
      sb.append(this.addresses);
1490
    }
1491
    first = false;
1492
    if (!first) sb.append(", ");
1493
    sb.append("shipmentOption:");
1494
    sb.append(this.shipmentOption);
1495
    first = false;
1496
    if (!first) sb.append(", ");
1497
    sb.append("middleName:");
1498
    if (this.middleName == null) {
1499
      sb.append("null");
1500
    } else {
1501
      sb.append(this.middleName);
1502
    }
1503
    first = false;
1504
    if (!first) sb.append(", ");
1505
    sb.append("occupation:");
1506
    if (this.occupation == null) {
1507
      sb.append("null");
1508
    } else {
1509
      sb.append(this.occupation);
1510
    }
1511
    first = false;
1512
    sb.append(")");
1513
    return sb.toString();
1514
  }
1515
 
1516
  public void validate() throws TException {
1517
    // check for required fields
1518
  }
1519
 
1520
}
1521