Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2820 chandransh 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.warehouse;
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 Supplier implements TBase<Supplier._Fields>, java.io.Serializable, Cloneable, Comparable<Supplier> {
27
  private static final TStruct STRUCT_DESC = new TStruct("Supplier");
28
 
29
  private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
30
  private static final TField NAME_FIELD_DESC = new TField("name", TType.STRING, (short)2);
31
  private static final TField PHONE_FIELD_DESC = new TField("phone", TType.STRING, (short)3);
32
  private static final TField FAX_FIELD_DESC = new TField("fax", TType.STRING, (short)4);
33
  private static final TField TIN_FIELD_DESC = new TField("tin", TType.STRING, (short)5);
34
  private static final TField PAN_FIELD_DESC = new TField("pan", TType.STRING, (short)6);
35
  private static final TField HEAD_NAME_FIELD_DESC = new TField("headName", TType.STRING, (short)7);
36
  private static final TField HEAD_DESIGNATION_FIELD_DESC = new TField("headDesignation", TType.STRING, (short)8);
37
  private static final TField HEAD_EMAIL_FIELD_DESC = new TField("headEmail", TType.STRING, (short)9);
38
  private static final TField CONTACT_NAME_FIELD_DESC = new TField("contactName", TType.STRING, (short)10);
39
  private static final TField CONTACT_PHONE_FIELD_DESC = new TField("contactPhone", TType.STRING, (short)11);
40
  private static final TField CONTACT_FAX_FIELD_DESC = new TField("contactFax", TType.STRING, (short)12);
41
  private static final TField CONTACT_EMAIL_FIELD_DESC = new TField("contactEmail", TType.STRING, (short)13);
42
  private static final TField REGISTERED_ADDRESS_FIELD_DESC = new TField("registeredAddress", TType.STRING, (short)14);
43
  private static final TField COMMUNICATION_ADDRESS_FIELD_DESC = new TField("communicationAddress", TType.STRING, (short)15);
44
 
45
  private long id;
46
  private String name;
47
  private String phone;
48
  private String fax;
49
  private String tin;
50
  private String pan;
51
  private String headName;
52
  private String headDesignation;
53
  private String headEmail;
54
  private String contactName;
55
  private String contactPhone;
56
  private String contactFax;
57
  private String contactEmail;
58
  private String registeredAddress;
59
  private String communicationAddress;
60
 
61
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
62
  public enum _Fields implements TFieldIdEnum {
63
    ID((short)1, "id"),
64
    NAME((short)2, "name"),
65
    PHONE((short)3, "phone"),
66
    FAX((short)4, "fax"),
67
    TIN((short)5, "tin"),
68
    PAN((short)6, "pan"),
69
    HEAD_NAME((short)7, "headName"),
70
    HEAD_DESIGNATION((short)8, "headDesignation"),
71
    HEAD_EMAIL((short)9, "headEmail"),
72
    CONTACT_NAME((short)10, "contactName"),
73
    CONTACT_PHONE((short)11, "contactPhone"),
74
    CONTACT_FAX((short)12, "contactFax"),
75
    CONTACT_EMAIL((short)13, "contactEmail"),
76
    REGISTERED_ADDRESS((short)14, "registeredAddress"),
77
    COMMUNICATION_ADDRESS((short)15, "communicationAddress");
78
 
79
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
80
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
81
 
82
    static {
83
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
84
        byId.put((int)field._thriftId, field);
85
        byName.put(field.getFieldName(), field);
86
      }
87
    }
88
 
89
    /**
90
     * Find the _Fields constant that matches fieldId, or null if its not found.
91
     */
92
    public static _Fields findByThriftId(int fieldId) {
93
      return byId.get(fieldId);
94
    }
95
 
96
    /**
97
     * Find the _Fields constant that matches fieldId, throwing an exception
98
     * if it is not found.
99
     */
100
    public static _Fields findByThriftIdOrThrow(int fieldId) {
101
      _Fields fields = findByThriftId(fieldId);
102
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
103
      return fields;
104
    }
105
 
106
    /**
107
     * Find the _Fields constant that matches name, or null if its not found.
108
     */
109
    public static _Fields findByName(String name) {
110
      return byName.get(name);
111
    }
112
 
113
    private final short _thriftId;
114
    private final String _fieldName;
115
 
116
    _Fields(short thriftId, String fieldName) {
117
      _thriftId = thriftId;
118
      _fieldName = fieldName;
119
    }
120
 
121
    public short getThriftFieldId() {
122
      return _thriftId;
123
    }
124
 
125
    public String getFieldName() {
126
      return _fieldName;
127
    }
128
  }
129
 
130
  // isset id assignments
131
  private static final int __ID_ISSET_ID = 0;
132
  private BitSet __isset_bit_vector = new BitSet(1);
133
 
134
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
135
    put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
136
        new FieldValueMetaData(TType.I64)));
137
    put(_Fields.NAME, new FieldMetaData("name", TFieldRequirementType.DEFAULT, 
138
        new FieldValueMetaData(TType.STRING)));
139
    put(_Fields.PHONE, new FieldMetaData("phone", TFieldRequirementType.DEFAULT, 
140
        new FieldValueMetaData(TType.STRING)));
141
    put(_Fields.FAX, new FieldMetaData("fax", TFieldRequirementType.DEFAULT, 
142
        new FieldValueMetaData(TType.STRING)));
143
    put(_Fields.TIN, new FieldMetaData("tin", TFieldRequirementType.DEFAULT, 
144
        new FieldValueMetaData(TType.STRING)));
145
    put(_Fields.PAN, new FieldMetaData("pan", TFieldRequirementType.DEFAULT, 
146
        new FieldValueMetaData(TType.STRING)));
147
    put(_Fields.HEAD_NAME, new FieldMetaData("headName", TFieldRequirementType.DEFAULT, 
148
        new FieldValueMetaData(TType.STRING)));
149
    put(_Fields.HEAD_DESIGNATION, new FieldMetaData("headDesignation", TFieldRequirementType.DEFAULT, 
150
        new FieldValueMetaData(TType.STRING)));
151
    put(_Fields.HEAD_EMAIL, new FieldMetaData("headEmail", TFieldRequirementType.DEFAULT, 
152
        new FieldValueMetaData(TType.STRING)));
153
    put(_Fields.CONTACT_NAME, new FieldMetaData("contactName", TFieldRequirementType.DEFAULT, 
154
        new FieldValueMetaData(TType.STRING)));
155
    put(_Fields.CONTACT_PHONE, new FieldMetaData("contactPhone", TFieldRequirementType.DEFAULT, 
156
        new FieldValueMetaData(TType.STRING)));
157
    put(_Fields.CONTACT_FAX, new FieldMetaData("contactFax", TFieldRequirementType.DEFAULT, 
158
        new FieldValueMetaData(TType.STRING)));
159
    put(_Fields.CONTACT_EMAIL, new FieldMetaData("contactEmail", TFieldRequirementType.DEFAULT, 
160
        new FieldValueMetaData(TType.STRING)));
161
    put(_Fields.REGISTERED_ADDRESS, new FieldMetaData("registeredAddress", TFieldRequirementType.DEFAULT, 
162
        new FieldValueMetaData(TType.STRING)));
163
    put(_Fields.COMMUNICATION_ADDRESS, new FieldMetaData("communicationAddress", TFieldRequirementType.DEFAULT, 
164
        new FieldValueMetaData(TType.STRING)));
165
  }});
166
 
167
  static {
168
    FieldMetaData.addStructMetaDataMap(Supplier.class, metaDataMap);
169
  }
170
 
171
  public Supplier() {
172
  }
173
 
174
  public Supplier(
175
    long id,
176
    String name,
177
    String phone,
178
    String fax,
179
    String tin,
180
    String pan,
181
    String headName,
182
    String headDesignation,
183
    String headEmail,
184
    String contactName,
185
    String contactPhone,
186
    String contactFax,
187
    String contactEmail,
188
    String registeredAddress,
189
    String communicationAddress)
190
  {
191
    this();
192
    this.id = id;
193
    setIdIsSet(true);
194
    this.name = name;
195
    this.phone = phone;
196
    this.fax = fax;
197
    this.tin = tin;
198
    this.pan = pan;
199
    this.headName = headName;
200
    this.headDesignation = headDesignation;
201
    this.headEmail = headEmail;
202
    this.contactName = contactName;
203
    this.contactPhone = contactPhone;
204
    this.contactFax = contactFax;
205
    this.contactEmail = contactEmail;
206
    this.registeredAddress = registeredAddress;
207
    this.communicationAddress = communicationAddress;
208
  }
209
 
210
  /**
211
   * Performs a deep copy on <i>other</i>.
212
   */
213
  public Supplier(Supplier other) {
214
    __isset_bit_vector.clear();
215
    __isset_bit_vector.or(other.__isset_bit_vector);
216
    this.id = other.id;
217
    if (other.isSetName()) {
218
      this.name = other.name;
219
    }
220
    if (other.isSetPhone()) {
221
      this.phone = other.phone;
222
    }
223
    if (other.isSetFax()) {
224
      this.fax = other.fax;
225
    }
226
    if (other.isSetTin()) {
227
      this.tin = other.tin;
228
    }
229
    if (other.isSetPan()) {
230
      this.pan = other.pan;
231
    }
232
    if (other.isSetHeadName()) {
233
      this.headName = other.headName;
234
    }
235
    if (other.isSetHeadDesignation()) {
236
      this.headDesignation = other.headDesignation;
237
    }
238
    if (other.isSetHeadEmail()) {
239
      this.headEmail = other.headEmail;
240
    }
241
    if (other.isSetContactName()) {
242
      this.contactName = other.contactName;
243
    }
244
    if (other.isSetContactPhone()) {
245
      this.contactPhone = other.contactPhone;
246
    }
247
    if (other.isSetContactFax()) {
248
      this.contactFax = other.contactFax;
249
    }
250
    if (other.isSetContactEmail()) {
251
      this.contactEmail = other.contactEmail;
252
    }
253
    if (other.isSetRegisteredAddress()) {
254
      this.registeredAddress = other.registeredAddress;
255
    }
256
    if (other.isSetCommunicationAddress()) {
257
      this.communicationAddress = other.communicationAddress;
258
    }
259
  }
260
 
261
  public Supplier deepCopy() {
262
    return new Supplier(this);
263
  }
264
 
265
  @Deprecated
266
  public Supplier clone() {
267
    return new Supplier(this);
268
  }
269
 
270
  public long getId() {
271
    return this.id;
272
  }
273
 
274
  public Supplier setId(long id) {
275
    this.id = id;
276
    setIdIsSet(true);
277
    return this;
278
  }
279
 
280
  public void unsetId() {
281
    __isset_bit_vector.clear(__ID_ISSET_ID);
282
  }
283
 
284
  /** Returns true if field id is set (has been asigned a value) and false otherwise */
285
  public boolean isSetId() {
286
    return __isset_bit_vector.get(__ID_ISSET_ID);
287
  }
288
 
289
  public void setIdIsSet(boolean value) {
290
    __isset_bit_vector.set(__ID_ISSET_ID, value);
291
  }
292
 
293
  public String getName() {
294
    return this.name;
295
  }
296
 
297
  public Supplier setName(String name) {
298
    this.name = name;
299
    return this;
300
  }
301
 
302
  public void unsetName() {
303
    this.name = null;
304
  }
305
 
306
  /** Returns true if field name is set (has been asigned a value) and false otherwise */
307
  public boolean isSetName() {
308
    return this.name != null;
309
  }
310
 
311
  public void setNameIsSet(boolean value) {
312
    if (!value) {
313
      this.name = null;
314
    }
315
  }
316
 
317
  public String getPhone() {
318
    return this.phone;
319
  }
320
 
321
  public Supplier setPhone(String phone) {
322
    this.phone = phone;
323
    return this;
324
  }
325
 
326
  public void unsetPhone() {
327
    this.phone = null;
328
  }
329
 
330
  /** Returns true if field phone is set (has been asigned a value) and false otherwise */
331
  public boolean isSetPhone() {
332
    return this.phone != null;
333
  }
334
 
335
  public void setPhoneIsSet(boolean value) {
336
    if (!value) {
337
      this.phone = null;
338
    }
339
  }
340
 
341
  public String getFax() {
342
    return this.fax;
343
  }
344
 
345
  public Supplier setFax(String fax) {
346
    this.fax = fax;
347
    return this;
348
  }
349
 
350
  public void unsetFax() {
351
    this.fax = null;
352
  }
353
 
354
  /** Returns true if field fax is set (has been asigned a value) and false otherwise */
355
  public boolean isSetFax() {
356
    return this.fax != null;
357
  }
358
 
359
  public void setFaxIsSet(boolean value) {
360
    if (!value) {
361
      this.fax = null;
362
    }
363
  }
364
 
365
  public String getTin() {
366
    return this.tin;
367
  }
368
 
369
  public Supplier setTin(String tin) {
370
    this.tin = tin;
371
    return this;
372
  }
373
 
374
  public void unsetTin() {
375
    this.tin = null;
376
  }
377
 
378
  /** Returns true if field tin is set (has been asigned a value) and false otherwise */
379
  public boolean isSetTin() {
380
    return this.tin != null;
381
  }
382
 
383
  public void setTinIsSet(boolean value) {
384
    if (!value) {
385
      this.tin = null;
386
    }
387
  }
388
 
389
  public String getPan() {
390
    return this.pan;
391
  }
392
 
393
  public Supplier setPan(String pan) {
394
    this.pan = pan;
395
    return this;
396
  }
397
 
398
  public void unsetPan() {
399
    this.pan = null;
400
  }
401
 
402
  /** Returns true if field pan is set (has been asigned a value) and false otherwise */
403
  public boolean isSetPan() {
404
    return this.pan != null;
405
  }
406
 
407
  public void setPanIsSet(boolean value) {
408
    if (!value) {
409
      this.pan = null;
410
    }
411
  }
412
 
413
  public String getHeadName() {
414
    return this.headName;
415
  }
416
 
417
  public Supplier setHeadName(String headName) {
418
    this.headName = headName;
419
    return this;
420
  }
421
 
422
  public void unsetHeadName() {
423
    this.headName = null;
424
  }
425
 
426
  /** Returns true if field headName is set (has been asigned a value) and false otherwise */
427
  public boolean isSetHeadName() {
428
    return this.headName != null;
429
  }
430
 
431
  public void setHeadNameIsSet(boolean value) {
432
    if (!value) {
433
      this.headName = null;
434
    }
435
  }
436
 
437
  public String getHeadDesignation() {
438
    return this.headDesignation;
439
  }
440
 
441
  public Supplier setHeadDesignation(String headDesignation) {
442
    this.headDesignation = headDesignation;
443
    return this;
444
  }
445
 
446
  public void unsetHeadDesignation() {
447
    this.headDesignation = null;
448
  }
449
 
450
  /** Returns true if field headDesignation is set (has been asigned a value) and false otherwise */
451
  public boolean isSetHeadDesignation() {
452
    return this.headDesignation != null;
453
  }
454
 
455
  public void setHeadDesignationIsSet(boolean value) {
456
    if (!value) {
457
      this.headDesignation = null;
458
    }
459
  }
460
 
461
  public String getHeadEmail() {
462
    return this.headEmail;
463
  }
464
 
465
  public Supplier setHeadEmail(String headEmail) {
466
    this.headEmail = headEmail;
467
    return this;
468
  }
469
 
470
  public void unsetHeadEmail() {
471
    this.headEmail = null;
472
  }
473
 
474
  /** Returns true if field headEmail is set (has been asigned a value) and false otherwise */
475
  public boolean isSetHeadEmail() {
476
    return this.headEmail != null;
477
  }
478
 
479
  public void setHeadEmailIsSet(boolean value) {
480
    if (!value) {
481
      this.headEmail = null;
482
    }
483
  }
484
 
485
  public String getContactName() {
486
    return this.contactName;
487
  }
488
 
489
  public Supplier setContactName(String contactName) {
490
    this.contactName = contactName;
491
    return this;
492
  }
493
 
494
  public void unsetContactName() {
495
    this.contactName = null;
496
  }
497
 
498
  /** Returns true if field contactName is set (has been asigned a value) and false otherwise */
499
  public boolean isSetContactName() {
500
    return this.contactName != null;
501
  }
502
 
503
  public void setContactNameIsSet(boolean value) {
504
    if (!value) {
505
      this.contactName = null;
506
    }
507
  }
508
 
509
  public String getContactPhone() {
510
    return this.contactPhone;
511
  }
512
 
513
  public Supplier setContactPhone(String contactPhone) {
514
    this.contactPhone = contactPhone;
515
    return this;
516
  }
517
 
518
  public void unsetContactPhone() {
519
    this.contactPhone = null;
520
  }
521
 
522
  /** Returns true if field contactPhone is set (has been asigned a value) and false otherwise */
523
  public boolean isSetContactPhone() {
524
    return this.contactPhone != null;
525
  }
526
 
527
  public void setContactPhoneIsSet(boolean value) {
528
    if (!value) {
529
      this.contactPhone = null;
530
    }
531
  }
532
 
533
  public String getContactFax() {
534
    return this.contactFax;
535
  }
536
 
537
  public Supplier setContactFax(String contactFax) {
538
    this.contactFax = contactFax;
539
    return this;
540
  }
541
 
542
  public void unsetContactFax() {
543
    this.contactFax = null;
544
  }
545
 
546
  /** Returns true if field contactFax is set (has been asigned a value) and false otherwise */
547
  public boolean isSetContactFax() {
548
    return this.contactFax != null;
549
  }
550
 
551
  public void setContactFaxIsSet(boolean value) {
552
    if (!value) {
553
      this.contactFax = null;
554
    }
555
  }
556
 
557
  public String getContactEmail() {
558
    return this.contactEmail;
559
  }
560
 
561
  public Supplier setContactEmail(String contactEmail) {
562
    this.contactEmail = contactEmail;
563
    return this;
564
  }
565
 
566
  public void unsetContactEmail() {
567
    this.contactEmail = null;
568
  }
569
 
570
  /** Returns true if field contactEmail is set (has been asigned a value) and false otherwise */
571
  public boolean isSetContactEmail() {
572
    return this.contactEmail != null;
573
  }
574
 
575
  public void setContactEmailIsSet(boolean value) {
576
    if (!value) {
577
      this.contactEmail = null;
578
    }
579
  }
580
 
581
  public String getRegisteredAddress() {
582
    return this.registeredAddress;
583
  }
584
 
585
  public Supplier setRegisteredAddress(String registeredAddress) {
586
    this.registeredAddress = registeredAddress;
587
    return this;
588
  }
589
 
590
  public void unsetRegisteredAddress() {
591
    this.registeredAddress = null;
592
  }
593
 
594
  /** Returns true if field registeredAddress is set (has been asigned a value) and false otherwise */
595
  public boolean isSetRegisteredAddress() {
596
    return this.registeredAddress != null;
597
  }
598
 
599
  public void setRegisteredAddressIsSet(boolean value) {
600
    if (!value) {
601
      this.registeredAddress = null;
602
    }
603
  }
604
 
605
  public String getCommunicationAddress() {
606
    return this.communicationAddress;
607
  }
608
 
609
  public Supplier setCommunicationAddress(String communicationAddress) {
610
    this.communicationAddress = communicationAddress;
611
    return this;
612
  }
613
 
614
  public void unsetCommunicationAddress() {
615
    this.communicationAddress = null;
616
  }
617
 
618
  /** Returns true if field communicationAddress is set (has been asigned a value) and false otherwise */
619
  public boolean isSetCommunicationAddress() {
620
    return this.communicationAddress != null;
621
  }
622
 
623
  public void setCommunicationAddressIsSet(boolean value) {
624
    if (!value) {
625
      this.communicationAddress = null;
626
    }
627
  }
628
 
629
  public void setFieldValue(_Fields field, Object value) {
630
    switch (field) {
631
    case ID:
632
      if (value == null) {
633
        unsetId();
634
      } else {
635
        setId((Long)value);
636
      }
637
      break;
638
 
639
    case NAME:
640
      if (value == null) {
641
        unsetName();
642
      } else {
643
        setName((String)value);
644
      }
645
      break;
646
 
647
    case PHONE:
648
      if (value == null) {
649
        unsetPhone();
650
      } else {
651
        setPhone((String)value);
652
      }
653
      break;
654
 
655
    case FAX:
656
      if (value == null) {
657
        unsetFax();
658
      } else {
659
        setFax((String)value);
660
      }
661
      break;
662
 
663
    case TIN:
664
      if (value == null) {
665
        unsetTin();
666
      } else {
667
        setTin((String)value);
668
      }
669
      break;
670
 
671
    case PAN:
672
      if (value == null) {
673
        unsetPan();
674
      } else {
675
        setPan((String)value);
676
      }
677
      break;
678
 
679
    case HEAD_NAME:
680
      if (value == null) {
681
        unsetHeadName();
682
      } else {
683
        setHeadName((String)value);
684
      }
685
      break;
686
 
687
    case HEAD_DESIGNATION:
688
      if (value == null) {
689
        unsetHeadDesignation();
690
      } else {
691
        setHeadDesignation((String)value);
692
      }
693
      break;
694
 
695
    case HEAD_EMAIL:
696
      if (value == null) {
697
        unsetHeadEmail();
698
      } else {
699
        setHeadEmail((String)value);
700
      }
701
      break;
702
 
703
    case CONTACT_NAME:
704
      if (value == null) {
705
        unsetContactName();
706
      } else {
707
        setContactName((String)value);
708
      }
709
      break;
710
 
711
    case CONTACT_PHONE:
712
      if (value == null) {
713
        unsetContactPhone();
714
      } else {
715
        setContactPhone((String)value);
716
      }
717
      break;
718
 
719
    case CONTACT_FAX:
720
      if (value == null) {
721
        unsetContactFax();
722
      } else {
723
        setContactFax((String)value);
724
      }
725
      break;
726
 
727
    case CONTACT_EMAIL:
728
      if (value == null) {
729
        unsetContactEmail();
730
      } else {
731
        setContactEmail((String)value);
732
      }
733
      break;
734
 
735
    case REGISTERED_ADDRESS:
736
      if (value == null) {
737
        unsetRegisteredAddress();
738
      } else {
739
        setRegisteredAddress((String)value);
740
      }
741
      break;
742
 
743
    case COMMUNICATION_ADDRESS:
744
      if (value == null) {
745
        unsetCommunicationAddress();
746
      } else {
747
        setCommunicationAddress((String)value);
748
      }
749
      break;
750
 
751
    }
752
  }
753
 
754
  public void setFieldValue(int fieldID, Object value) {
755
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
756
  }
757
 
758
  public Object getFieldValue(_Fields field) {
759
    switch (field) {
760
    case ID:
761
      return new Long(getId());
762
 
763
    case NAME:
764
      return getName();
765
 
766
    case PHONE:
767
      return getPhone();
768
 
769
    case FAX:
770
      return getFax();
771
 
772
    case TIN:
773
      return getTin();
774
 
775
    case PAN:
776
      return getPan();
777
 
778
    case HEAD_NAME:
779
      return getHeadName();
780
 
781
    case HEAD_DESIGNATION:
782
      return getHeadDesignation();
783
 
784
    case HEAD_EMAIL:
785
      return getHeadEmail();
786
 
787
    case CONTACT_NAME:
788
      return getContactName();
789
 
790
    case CONTACT_PHONE:
791
      return getContactPhone();
792
 
793
    case CONTACT_FAX:
794
      return getContactFax();
795
 
796
    case CONTACT_EMAIL:
797
      return getContactEmail();
798
 
799
    case REGISTERED_ADDRESS:
800
      return getRegisteredAddress();
801
 
802
    case COMMUNICATION_ADDRESS:
803
      return getCommunicationAddress();
804
 
805
    }
806
    throw new IllegalStateException();
807
  }
808
 
809
  public Object getFieldValue(int fieldId) {
810
    return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
811
  }
812
 
813
  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
814
  public boolean isSet(_Fields field) {
815
    switch (field) {
816
    case ID:
817
      return isSetId();
818
    case NAME:
819
      return isSetName();
820
    case PHONE:
821
      return isSetPhone();
822
    case FAX:
823
      return isSetFax();
824
    case TIN:
825
      return isSetTin();
826
    case PAN:
827
      return isSetPan();
828
    case HEAD_NAME:
829
      return isSetHeadName();
830
    case HEAD_DESIGNATION:
831
      return isSetHeadDesignation();
832
    case HEAD_EMAIL:
833
      return isSetHeadEmail();
834
    case CONTACT_NAME:
835
      return isSetContactName();
836
    case CONTACT_PHONE:
837
      return isSetContactPhone();
838
    case CONTACT_FAX:
839
      return isSetContactFax();
840
    case CONTACT_EMAIL:
841
      return isSetContactEmail();
842
    case REGISTERED_ADDRESS:
843
      return isSetRegisteredAddress();
844
    case COMMUNICATION_ADDRESS:
845
      return isSetCommunicationAddress();
846
    }
847
    throw new IllegalStateException();
848
  }
849
 
850
  public boolean isSet(int fieldID) {
851
    return isSet(_Fields.findByThriftIdOrThrow(fieldID));
852
  }
853
 
854
  @Override
855
  public boolean equals(Object that) {
856
    if (that == null)
857
      return false;
858
    if (that instanceof Supplier)
859
      return this.equals((Supplier)that);
860
    return false;
861
  }
862
 
863
  public boolean equals(Supplier that) {
864
    if (that == null)
865
      return false;
866
 
867
    boolean this_present_id = true;
868
    boolean that_present_id = true;
869
    if (this_present_id || that_present_id) {
870
      if (!(this_present_id && that_present_id))
871
        return false;
872
      if (this.id != that.id)
873
        return false;
874
    }
875
 
876
    boolean this_present_name = true && this.isSetName();
877
    boolean that_present_name = true && that.isSetName();
878
    if (this_present_name || that_present_name) {
879
      if (!(this_present_name && that_present_name))
880
        return false;
881
      if (!this.name.equals(that.name))
882
        return false;
883
    }
884
 
885
    boolean this_present_phone = true && this.isSetPhone();
886
    boolean that_present_phone = true && that.isSetPhone();
887
    if (this_present_phone || that_present_phone) {
888
      if (!(this_present_phone && that_present_phone))
889
        return false;
890
      if (!this.phone.equals(that.phone))
891
        return false;
892
    }
893
 
894
    boolean this_present_fax = true && this.isSetFax();
895
    boolean that_present_fax = true && that.isSetFax();
896
    if (this_present_fax || that_present_fax) {
897
      if (!(this_present_fax && that_present_fax))
898
        return false;
899
      if (!this.fax.equals(that.fax))
900
        return false;
901
    }
902
 
903
    boolean this_present_tin = true && this.isSetTin();
904
    boolean that_present_tin = true && that.isSetTin();
905
    if (this_present_tin || that_present_tin) {
906
      if (!(this_present_tin && that_present_tin))
907
        return false;
908
      if (!this.tin.equals(that.tin))
909
        return false;
910
    }
911
 
912
    boolean this_present_pan = true && this.isSetPan();
913
    boolean that_present_pan = true && that.isSetPan();
914
    if (this_present_pan || that_present_pan) {
915
      if (!(this_present_pan && that_present_pan))
916
        return false;
917
      if (!this.pan.equals(that.pan))
918
        return false;
919
    }
920
 
921
    boolean this_present_headName = true && this.isSetHeadName();
922
    boolean that_present_headName = true && that.isSetHeadName();
923
    if (this_present_headName || that_present_headName) {
924
      if (!(this_present_headName && that_present_headName))
925
        return false;
926
      if (!this.headName.equals(that.headName))
927
        return false;
928
    }
929
 
930
    boolean this_present_headDesignation = true && this.isSetHeadDesignation();
931
    boolean that_present_headDesignation = true && that.isSetHeadDesignation();
932
    if (this_present_headDesignation || that_present_headDesignation) {
933
      if (!(this_present_headDesignation && that_present_headDesignation))
934
        return false;
935
      if (!this.headDesignation.equals(that.headDesignation))
936
        return false;
937
    }
938
 
939
    boolean this_present_headEmail = true && this.isSetHeadEmail();
940
    boolean that_present_headEmail = true && that.isSetHeadEmail();
941
    if (this_present_headEmail || that_present_headEmail) {
942
      if (!(this_present_headEmail && that_present_headEmail))
943
        return false;
944
      if (!this.headEmail.equals(that.headEmail))
945
        return false;
946
    }
947
 
948
    boolean this_present_contactName = true && this.isSetContactName();
949
    boolean that_present_contactName = true && that.isSetContactName();
950
    if (this_present_contactName || that_present_contactName) {
951
      if (!(this_present_contactName && that_present_contactName))
952
        return false;
953
      if (!this.contactName.equals(that.contactName))
954
        return false;
955
    }
956
 
957
    boolean this_present_contactPhone = true && this.isSetContactPhone();
958
    boolean that_present_contactPhone = true && that.isSetContactPhone();
959
    if (this_present_contactPhone || that_present_contactPhone) {
960
      if (!(this_present_contactPhone && that_present_contactPhone))
961
        return false;
962
      if (!this.contactPhone.equals(that.contactPhone))
963
        return false;
964
    }
965
 
966
    boolean this_present_contactFax = true && this.isSetContactFax();
967
    boolean that_present_contactFax = true && that.isSetContactFax();
968
    if (this_present_contactFax || that_present_contactFax) {
969
      if (!(this_present_contactFax && that_present_contactFax))
970
        return false;
971
      if (!this.contactFax.equals(that.contactFax))
972
        return false;
973
    }
974
 
975
    boolean this_present_contactEmail = true && this.isSetContactEmail();
976
    boolean that_present_contactEmail = true && that.isSetContactEmail();
977
    if (this_present_contactEmail || that_present_contactEmail) {
978
      if (!(this_present_contactEmail && that_present_contactEmail))
979
        return false;
980
      if (!this.contactEmail.equals(that.contactEmail))
981
        return false;
982
    }
983
 
984
    boolean this_present_registeredAddress = true && this.isSetRegisteredAddress();
985
    boolean that_present_registeredAddress = true && that.isSetRegisteredAddress();
986
    if (this_present_registeredAddress || that_present_registeredAddress) {
987
      if (!(this_present_registeredAddress && that_present_registeredAddress))
988
        return false;
989
      if (!this.registeredAddress.equals(that.registeredAddress))
990
        return false;
991
    }
992
 
993
    boolean this_present_communicationAddress = true && this.isSetCommunicationAddress();
994
    boolean that_present_communicationAddress = true && that.isSetCommunicationAddress();
995
    if (this_present_communicationAddress || that_present_communicationAddress) {
996
      if (!(this_present_communicationAddress && that_present_communicationAddress))
997
        return false;
998
      if (!this.communicationAddress.equals(that.communicationAddress))
999
        return false;
1000
    }
1001
 
1002
    return true;
1003
  }
1004
 
1005
  @Override
1006
  public int hashCode() {
1007
    return 0;
1008
  }
1009
 
1010
  public int compareTo(Supplier other) {
1011
    if (!getClass().equals(other.getClass())) {
1012
      return getClass().getName().compareTo(other.getClass().getName());
1013
    }
1014
 
1015
    int lastComparison = 0;
1016
    Supplier typedOther = (Supplier)other;
1017
 
1018
    lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());
1019
    if (lastComparison != 0) {
1020
      return lastComparison;
1021
    }
1022
    lastComparison = TBaseHelper.compareTo(id, typedOther.id);
1023
    if (lastComparison != 0) {
1024
      return lastComparison;
1025
    }
1026
    lastComparison = Boolean.valueOf(isSetName()).compareTo(isSetName());
1027
    if (lastComparison != 0) {
1028
      return lastComparison;
1029
    }
1030
    lastComparison = TBaseHelper.compareTo(name, typedOther.name);
1031
    if (lastComparison != 0) {
1032
      return lastComparison;
1033
    }
1034
    lastComparison = Boolean.valueOf(isSetPhone()).compareTo(isSetPhone());
1035
    if (lastComparison != 0) {
1036
      return lastComparison;
1037
    }
1038
    lastComparison = TBaseHelper.compareTo(phone, typedOther.phone);
1039
    if (lastComparison != 0) {
1040
      return lastComparison;
1041
    }
1042
    lastComparison = Boolean.valueOf(isSetFax()).compareTo(isSetFax());
1043
    if (lastComparison != 0) {
1044
      return lastComparison;
1045
    }
1046
    lastComparison = TBaseHelper.compareTo(fax, typedOther.fax);
1047
    if (lastComparison != 0) {
1048
      return lastComparison;
1049
    }
1050
    lastComparison = Boolean.valueOf(isSetTin()).compareTo(isSetTin());
1051
    if (lastComparison != 0) {
1052
      return lastComparison;
1053
    }
1054
    lastComparison = TBaseHelper.compareTo(tin, typedOther.tin);
1055
    if (lastComparison != 0) {
1056
      return lastComparison;
1057
    }
1058
    lastComparison = Boolean.valueOf(isSetPan()).compareTo(isSetPan());
1059
    if (lastComparison != 0) {
1060
      return lastComparison;
1061
    }
1062
    lastComparison = TBaseHelper.compareTo(pan, typedOther.pan);
1063
    if (lastComparison != 0) {
1064
      return lastComparison;
1065
    }
1066
    lastComparison = Boolean.valueOf(isSetHeadName()).compareTo(isSetHeadName());
1067
    if (lastComparison != 0) {
1068
      return lastComparison;
1069
    }
1070
    lastComparison = TBaseHelper.compareTo(headName, typedOther.headName);
1071
    if (lastComparison != 0) {
1072
      return lastComparison;
1073
    }
1074
    lastComparison = Boolean.valueOf(isSetHeadDesignation()).compareTo(isSetHeadDesignation());
1075
    if (lastComparison != 0) {
1076
      return lastComparison;
1077
    }
1078
    lastComparison = TBaseHelper.compareTo(headDesignation, typedOther.headDesignation);
1079
    if (lastComparison != 0) {
1080
      return lastComparison;
1081
    }
1082
    lastComparison = Boolean.valueOf(isSetHeadEmail()).compareTo(isSetHeadEmail());
1083
    if (lastComparison != 0) {
1084
      return lastComparison;
1085
    }
1086
    lastComparison = TBaseHelper.compareTo(headEmail, typedOther.headEmail);
1087
    if (lastComparison != 0) {
1088
      return lastComparison;
1089
    }
1090
    lastComparison = Boolean.valueOf(isSetContactName()).compareTo(isSetContactName());
1091
    if (lastComparison != 0) {
1092
      return lastComparison;
1093
    }
1094
    lastComparison = TBaseHelper.compareTo(contactName, typedOther.contactName);
1095
    if (lastComparison != 0) {
1096
      return lastComparison;
1097
    }
1098
    lastComparison = Boolean.valueOf(isSetContactPhone()).compareTo(isSetContactPhone());
1099
    if (lastComparison != 0) {
1100
      return lastComparison;
1101
    }
1102
    lastComparison = TBaseHelper.compareTo(contactPhone, typedOther.contactPhone);
1103
    if (lastComparison != 0) {
1104
      return lastComparison;
1105
    }
1106
    lastComparison = Boolean.valueOf(isSetContactFax()).compareTo(isSetContactFax());
1107
    if (lastComparison != 0) {
1108
      return lastComparison;
1109
    }
1110
    lastComparison = TBaseHelper.compareTo(contactFax, typedOther.contactFax);
1111
    if (lastComparison != 0) {
1112
      return lastComparison;
1113
    }
1114
    lastComparison = Boolean.valueOf(isSetContactEmail()).compareTo(isSetContactEmail());
1115
    if (lastComparison != 0) {
1116
      return lastComparison;
1117
    }
1118
    lastComparison = TBaseHelper.compareTo(contactEmail, typedOther.contactEmail);
1119
    if (lastComparison != 0) {
1120
      return lastComparison;
1121
    }
1122
    lastComparison = Boolean.valueOf(isSetRegisteredAddress()).compareTo(isSetRegisteredAddress());
1123
    if (lastComparison != 0) {
1124
      return lastComparison;
1125
    }
1126
    lastComparison = TBaseHelper.compareTo(registeredAddress, typedOther.registeredAddress);
1127
    if (lastComparison != 0) {
1128
      return lastComparison;
1129
    }
1130
    lastComparison = Boolean.valueOf(isSetCommunicationAddress()).compareTo(isSetCommunicationAddress());
1131
    if (lastComparison != 0) {
1132
      return lastComparison;
1133
    }
1134
    lastComparison = TBaseHelper.compareTo(communicationAddress, typedOther.communicationAddress);
1135
    if (lastComparison != 0) {
1136
      return lastComparison;
1137
    }
1138
    return 0;
1139
  }
1140
 
1141
  public void read(TProtocol iprot) throws TException {
1142
    TField field;
1143
    iprot.readStructBegin();
1144
    while (true)
1145
    {
1146
      field = iprot.readFieldBegin();
1147
      if (field.type == TType.STOP) { 
1148
        break;
1149
      }
1150
      _Fields fieldId = _Fields.findByThriftId(field.id);
1151
      if (fieldId == null) {
1152
        TProtocolUtil.skip(iprot, field.type);
1153
      } else {
1154
        switch (fieldId) {
1155
          case ID:
1156
            if (field.type == TType.I64) {
1157
              this.id = iprot.readI64();
1158
              setIdIsSet(true);
1159
            } else { 
1160
              TProtocolUtil.skip(iprot, field.type);
1161
            }
1162
            break;
1163
          case NAME:
1164
            if (field.type == TType.STRING) {
1165
              this.name = iprot.readString();
1166
            } else { 
1167
              TProtocolUtil.skip(iprot, field.type);
1168
            }
1169
            break;
1170
          case PHONE:
1171
            if (field.type == TType.STRING) {
1172
              this.phone = iprot.readString();
1173
            } else { 
1174
              TProtocolUtil.skip(iprot, field.type);
1175
            }
1176
            break;
1177
          case FAX:
1178
            if (field.type == TType.STRING) {
1179
              this.fax = iprot.readString();
1180
            } else { 
1181
              TProtocolUtil.skip(iprot, field.type);
1182
            }
1183
            break;
1184
          case TIN:
1185
            if (field.type == TType.STRING) {
1186
              this.tin = iprot.readString();
1187
            } else { 
1188
              TProtocolUtil.skip(iprot, field.type);
1189
            }
1190
            break;
1191
          case PAN:
1192
            if (field.type == TType.STRING) {
1193
              this.pan = iprot.readString();
1194
            } else { 
1195
              TProtocolUtil.skip(iprot, field.type);
1196
            }
1197
            break;
1198
          case HEAD_NAME:
1199
            if (field.type == TType.STRING) {
1200
              this.headName = iprot.readString();
1201
            } else { 
1202
              TProtocolUtil.skip(iprot, field.type);
1203
            }
1204
            break;
1205
          case HEAD_DESIGNATION:
1206
            if (field.type == TType.STRING) {
1207
              this.headDesignation = iprot.readString();
1208
            } else { 
1209
              TProtocolUtil.skip(iprot, field.type);
1210
            }
1211
            break;
1212
          case HEAD_EMAIL:
1213
            if (field.type == TType.STRING) {
1214
              this.headEmail = iprot.readString();
1215
            } else { 
1216
              TProtocolUtil.skip(iprot, field.type);
1217
            }
1218
            break;
1219
          case CONTACT_NAME:
1220
            if (field.type == TType.STRING) {
1221
              this.contactName = iprot.readString();
1222
            } else { 
1223
              TProtocolUtil.skip(iprot, field.type);
1224
            }
1225
            break;
1226
          case CONTACT_PHONE:
1227
            if (field.type == TType.STRING) {
1228
              this.contactPhone = iprot.readString();
1229
            } else { 
1230
              TProtocolUtil.skip(iprot, field.type);
1231
            }
1232
            break;
1233
          case CONTACT_FAX:
1234
            if (field.type == TType.STRING) {
1235
              this.contactFax = iprot.readString();
1236
            } else { 
1237
              TProtocolUtil.skip(iprot, field.type);
1238
            }
1239
            break;
1240
          case CONTACT_EMAIL:
1241
            if (field.type == TType.STRING) {
1242
              this.contactEmail = iprot.readString();
1243
            } else { 
1244
              TProtocolUtil.skip(iprot, field.type);
1245
            }
1246
            break;
1247
          case REGISTERED_ADDRESS:
1248
            if (field.type == TType.STRING) {
1249
              this.registeredAddress = iprot.readString();
1250
            } else { 
1251
              TProtocolUtil.skip(iprot, field.type);
1252
            }
1253
            break;
1254
          case COMMUNICATION_ADDRESS:
1255
            if (field.type == TType.STRING) {
1256
              this.communicationAddress = iprot.readString();
1257
            } else { 
1258
              TProtocolUtil.skip(iprot, field.type);
1259
            }
1260
            break;
1261
        }
1262
        iprot.readFieldEnd();
1263
      }
1264
    }
1265
    iprot.readStructEnd();
1266
    validate();
1267
  }
1268
 
1269
  public void write(TProtocol oprot) throws TException {
1270
    validate();
1271
 
1272
    oprot.writeStructBegin(STRUCT_DESC);
1273
    oprot.writeFieldBegin(ID_FIELD_DESC);
1274
    oprot.writeI64(this.id);
1275
    oprot.writeFieldEnd();
1276
    if (this.name != null) {
1277
      oprot.writeFieldBegin(NAME_FIELD_DESC);
1278
      oprot.writeString(this.name);
1279
      oprot.writeFieldEnd();
1280
    }
1281
    if (this.phone != null) {
1282
      oprot.writeFieldBegin(PHONE_FIELD_DESC);
1283
      oprot.writeString(this.phone);
1284
      oprot.writeFieldEnd();
1285
    }
1286
    if (this.fax != null) {
1287
      oprot.writeFieldBegin(FAX_FIELD_DESC);
1288
      oprot.writeString(this.fax);
1289
      oprot.writeFieldEnd();
1290
    }
1291
    if (this.tin != null) {
1292
      oprot.writeFieldBegin(TIN_FIELD_DESC);
1293
      oprot.writeString(this.tin);
1294
      oprot.writeFieldEnd();
1295
    }
1296
    if (this.pan != null) {
1297
      oprot.writeFieldBegin(PAN_FIELD_DESC);
1298
      oprot.writeString(this.pan);
1299
      oprot.writeFieldEnd();
1300
    }
1301
    if (this.headName != null) {
1302
      oprot.writeFieldBegin(HEAD_NAME_FIELD_DESC);
1303
      oprot.writeString(this.headName);
1304
      oprot.writeFieldEnd();
1305
    }
1306
    if (this.headDesignation != null) {
1307
      oprot.writeFieldBegin(HEAD_DESIGNATION_FIELD_DESC);
1308
      oprot.writeString(this.headDesignation);
1309
      oprot.writeFieldEnd();
1310
    }
1311
    if (this.headEmail != null) {
1312
      oprot.writeFieldBegin(HEAD_EMAIL_FIELD_DESC);
1313
      oprot.writeString(this.headEmail);
1314
      oprot.writeFieldEnd();
1315
    }
1316
    if (this.contactName != null) {
1317
      oprot.writeFieldBegin(CONTACT_NAME_FIELD_DESC);
1318
      oprot.writeString(this.contactName);
1319
      oprot.writeFieldEnd();
1320
    }
1321
    if (this.contactPhone != null) {
1322
      oprot.writeFieldBegin(CONTACT_PHONE_FIELD_DESC);
1323
      oprot.writeString(this.contactPhone);
1324
      oprot.writeFieldEnd();
1325
    }
1326
    if (this.contactFax != null) {
1327
      oprot.writeFieldBegin(CONTACT_FAX_FIELD_DESC);
1328
      oprot.writeString(this.contactFax);
1329
      oprot.writeFieldEnd();
1330
    }
1331
    if (this.contactEmail != null) {
1332
      oprot.writeFieldBegin(CONTACT_EMAIL_FIELD_DESC);
1333
      oprot.writeString(this.contactEmail);
1334
      oprot.writeFieldEnd();
1335
    }
1336
    if (this.registeredAddress != null) {
1337
      oprot.writeFieldBegin(REGISTERED_ADDRESS_FIELD_DESC);
1338
      oprot.writeString(this.registeredAddress);
1339
      oprot.writeFieldEnd();
1340
    }
1341
    if (this.communicationAddress != null) {
1342
      oprot.writeFieldBegin(COMMUNICATION_ADDRESS_FIELD_DESC);
1343
      oprot.writeString(this.communicationAddress);
1344
      oprot.writeFieldEnd();
1345
    }
1346
    oprot.writeFieldStop();
1347
    oprot.writeStructEnd();
1348
  }
1349
 
1350
  @Override
1351
  public String toString() {
1352
    StringBuilder sb = new StringBuilder("Supplier(");
1353
    boolean first = true;
1354
 
1355
    sb.append("id:");
1356
    sb.append(this.id);
1357
    first = false;
1358
    if (!first) sb.append(", ");
1359
    sb.append("name:");
1360
    if (this.name == null) {
1361
      sb.append("null");
1362
    } else {
1363
      sb.append(this.name);
1364
    }
1365
    first = false;
1366
    if (!first) sb.append(", ");
1367
    sb.append("phone:");
1368
    if (this.phone == null) {
1369
      sb.append("null");
1370
    } else {
1371
      sb.append(this.phone);
1372
    }
1373
    first = false;
1374
    if (!first) sb.append(", ");
1375
    sb.append("fax:");
1376
    if (this.fax == null) {
1377
      sb.append("null");
1378
    } else {
1379
      sb.append(this.fax);
1380
    }
1381
    first = false;
1382
    if (!first) sb.append(", ");
1383
    sb.append("tin:");
1384
    if (this.tin == null) {
1385
      sb.append("null");
1386
    } else {
1387
      sb.append(this.tin);
1388
    }
1389
    first = false;
1390
    if (!first) sb.append(", ");
1391
    sb.append("pan:");
1392
    if (this.pan == null) {
1393
      sb.append("null");
1394
    } else {
1395
      sb.append(this.pan);
1396
    }
1397
    first = false;
1398
    if (!first) sb.append(", ");
1399
    sb.append("headName:");
1400
    if (this.headName == null) {
1401
      sb.append("null");
1402
    } else {
1403
      sb.append(this.headName);
1404
    }
1405
    first = false;
1406
    if (!first) sb.append(", ");
1407
    sb.append("headDesignation:");
1408
    if (this.headDesignation == null) {
1409
      sb.append("null");
1410
    } else {
1411
      sb.append(this.headDesignation);
1412
    }
1413
    first = false;
1414
    if (!first) sb.append(", ");
1415
    sb.append("headEmail:");
1416
    if (this.headEmail == null) {
1417
      sb.append("null");
1418
    } else {
1419
      sb.append(this.headEmail);
1420
    }
1421
    first = false;
1422
    if (!first) sb.append(", ");
1423
    sb.append("contactName:");
1424
    if (this.contactName == null) {
1425
      sb.append("null");
1426
    } else {
1427
      sb.append(this.contactName);
1428
    }
1429
    first = false;
1430
    if (!first) sb.append(", ");
1431
    sb.append("contactPhone:");
1432
    if (this.contactPhone == null) {
1433
      sb.append("null");
1434
    } else {
1435
      sb.append(this.contactPhone);
1436
    }
1437
    first = false;
1438
    if (!first) sb.append(", ");
1439
    sb.append("contactFax:");
1440
    if (this.contactFax == null) {
1441
      sb.append("null");
1442
    } else {
1443
      sb.append(this.contactFax);
1444
    }
1445
    first = false;
1446
    if (!first) sb.append(", ");
1447
    sb.append("contactEmail:");
1448
    if (this.contactEmail == null) {
1449
      sb.append("null");
1450
    } else {
1451
      sb.append(this.contactEmail);
1452
    }
1453
    first = false;
1454
    if (!first) sb.append(", ");
1455
    sb.append("registeredAddress:");
1456
    if (this.registeredAddress == null) {
1457
      sb.append("null");
1458
    } else {
1459
      sb.append(this.registeredAddress);
1460
    }
1461
    first = false;
1462
    if (!first) sb.append(", ");
1463
    sb.append("communicationAddress:");
1464
    if (this.communicationAddress == null) {
1465
      sb.append("null");
1466
    } else {
1467
      sb.append(this.communicationAddress);
1468
    }
1469
    first = false;
1470
    sb.append(")");
1471
    return sb.toString();
1472
  }
1473
 
1474
  public void validate() throws TException {
1475
    // check for required fields
1476
  }
1477
 
1478
}
1479