Subversion Repositories SmartDukaan

Rev

Rev 21844 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4496 mandeep.dh 1
/**
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.purchase;
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.nio.ByteBuffer;
19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class Supplier implements org.apache.thrift.TBase<Supplier, Supplier._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Supplier");
25
 
26
  private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
27
  private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)2);
28
  private static final org.apache.thrift.protocol.TField PHONE_FIELD_DESC = new org.apache.thrift.protocol.TField("phone", org.apache.thrift.protocol.TType.STRING, (short)3);
29
  private static final org.apache.thrift.protocol.TField FAX_FIELD_DESC = new org.apache.thrift.protocol.TField("fax", org.apache.thrift.protocol.TType.STRING, (short)4);
30
  private static final org.apache.thrift.protocol.TField TIN_FIELD_DESC = new org.apache.thrift.protocol.TField("tin", org.apache.thrift.protocol.TType.STRING, (short)5);
31
  private static final org.apache.thrift.protocol.TField PAN_FIELD_DESC = new org.apache.thrift.protocol.TField("pan", org.apache.thrift.protocol.TType.STRING, (short)6);
32
  private static final org.apache.thrift.protocol.TField HEAD_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("headName", org.apache.thrift.protocol.TType.STRING, (short)7);
33
  private static final org.apache.thrift.protocol.TField HEAD_DESIGNATION_FIELD_DESC = new org.apache.thrift.protocol.TField("headDesignation", org.apache.thrift.protocol.TType.STRING, (short)8);
34
  private static final org.apache.thrift.protocol.TField HEAD_EMAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("headEmail", org.apache.thrift.protocol.TType.STRING, (short)9);
35
  private static final org.apache.thrift.protocol.TField CONTACT_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("contactName", org.apache.thrift.protocol.TType.STRING, (short)10);
36
  private static final org.apache.thrift.protocol.TField CONTACT_PHONE_FIELD_DESC = new org.apache.thrift.protocol.TField("contactPhone", org.apache.thrift.protocol.TType.STRING, (short)11);
37
  private static final org.apache.thrift.protocol.TField CONTACT_FAX_FIELD_DESC = new org.apache.thrift.protocol.TField("contactFax", org.apache.thrift.protocol.TType.STRING, (short)12);
38
  private static final org.apache.thrift.protocol.TField CONTACT_EMAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("contactEmail", org.apache.thrift.protocol.TType.STRING, (short)13);
39
  private static final org.apache.thrift.protocol.TField REGISTERED_ADDRESS_FIELD_DESC = new org.apache.thrift.protocol.TField("registeredAddress", org.apache.thrift.protocol.TType.STRING, (short)14);
40
  private static final org.apache.thrift.protocol.TField COMMUNICATION_ADDRESS_FIELD_DESC = new org.apache.thrift.protocol.TField("communicationAddress", org.apache.thrift.protocol.TType.STRING, (short)15);
10295 amar.kumar 41
  private static final org.apache.thrift.protocol.TField STATE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("stateId", org.apache.thrift.protocol.TType.I64, (short)16);
14072 manish.sha 42
  private static final org.apache.thrift.protocol.TField PO_VALIDITY_LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("poValidityLimit", org.apache.thrift.protocol.TType.I64, (short)17);
21844 amit.gupta 43
  private static final org.apache.thrift.protocol.TField GSTIN_FIELD_DESC = new org.apache.thrift.protocol.TField("gstin", org.apache.thrift.protocol.TType.STRING, (short)18);
23081 amit.gupta 44
  private static final org.apache.thrift.protocol.TField TNC_FIELD_DESC = new org.apache.thrift.protocol.TField("tnc", org.apache.thrift.protocol.TType.STRING, (short)19);
4496 mandeep.dh 45
 
46
  private long id; // required
47
  private String name; // required
48
  private String phone; // required
49
  private String fax; // required
50
  private String tin; // required
51
  private String pan; // required
52
  private String headName; // required
53
  private String headDesignation; // required
54
  private String headEmail; // required
55
  private String contactName; // required
56
  private String contactPhone; // required
57
  private String contactFax; // required
58
  private String contactEmail; // required
59
  private String registeredAddress; // required
60
  private String communicationAddress; // required
10295 amar.kumar 61
  private long stateId; // required
14072 manish.sha 62
  private long poValidityLimit; // required
21844 amit.gupta 63
  private String gstin; // required
23081 amit.gupta 64
  private String tnc; // required
4496 mandeep.dh 65
 
66
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
67
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
68
    ID((short)1, "id"),
69
    NAME((short)2, "name"),
70
    PHONE((short)3, "phone"),
71
    FAX((short)4, "fax"),
72
    TIN((short)5, "tin"),
73
    PAN((short)6, "pan"),
74
    HEAD_NAME((short)7, "headName"),
75
    HEAD_DESIGNATION((short)8, "headDesignation"),
76
    HEAD_EMAIL((short)9, "headEmail"),
77
    CONTACT_NAME((short)10, "contactName"),
78
    CONTACT_PHONE((short)11, "contactPhone"),
79
    CONTACT_FAX((short)12, "contactFax"),
80
    CONTACT_EMAIL((short)13, "contactEmail"),
81
    REGISTERED_ADDRESS((short)14, "registeredAddress"),
10295 amar.kumar 82
    COMMUNICATION_ADDRESS((short)15, "communicationAddress"),
14072 manish.sha 83
    STATE_ID((short)16, "stateId"),
21844 amit.gupta 84
    PO_VALIDITY_LIMIT((short)17, "poValidityLimit"),
23081 amit.gupta 85
    GSTIN((short)18, "gstin"),
86
    TNC((short)19, "tnc");
4496 mandeep.dh 87
 
88
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
89
 
90
    static {
91
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
92
        byName.put(field.getFieldName(), field);
93
      }
94
    }
95
 
96
    /**
97
     * Find the _Fields constant that matches fieldId, or null if its not found.
98
     */
99
    public static _Fields findByThriftId(int fieldId) {
100
      switch(fieldId) {
101
        case 1: // ID
102
          return ID;
103
        case 2: // NAME
104
          return NAME;
105
        case 3: // PHONE
106
          return PHONE;
107
        case 4: // FAX
108
          return FAX;
109
        case 5: // TIN
110
          return TIN;
111
        case 6: // PAN
112
          return PAN;
113
        case 7: // HEAD_NAME
114
          return HEAD_NAME;
115
        case 8: // HEAD_DESIGNATION
116
          return HEAD_DESIGNATION;
117
        case 9: // HEAD_EMAIL
118
          return HEAD_EMAIL;
119
        case 10: // CONTACT_NAME
120
          return CONTACT_NAME;
121
        case 11: // CONTACT_PHONE
122
          return CONTACT_PHONE;
123
        case 12: // CONTACT_FAX
124
          return CONTACT_FAX;
125
        case 13: // CONTACT_EMAIL
126
          return CONTACT_EMAIL;
127
        case 14: // REGISTERED_ADDRESS
128
          return REGISTERED_ADDRESS;
129
        case 15: // COMMUNICATION_ADDRESS
130
          return COMMUNICATION_ADDRESS;
10295 amar.kumar 131
        case 16: // STATE_ID
132
          return STATE_ID;
14072 manish.sha 133
        case 17: // PO_VALIDITY_LIMIT
134
          return PO_VALIDITY_LIMIT;
21844 amit.gupta 135
        case 18: // GSTIN
136
          return GSTIN;
23081 amit.gupta 137
        case 19: // TNC
138
          return TNC;
4496 mandeep.dh 139
        default:
140
          return null;
141
      }
142
    }
143
 
144
    /**
145
     * Find the _Fields constant that matches fieldId, throwing an exception
146
     * if it is not found.
147
     */
148
    public static _Fields findByThriftIdOrThrow(int fieldId) {
149
      _Fields fields = findByThriftId(fieldId);
150
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
151
      return fields;
152
    }
153
 
154
    /**
155
     * Find the _Fields constant that matches name, or null if its not found.
156
     */
157
    public static _Fields findByName(String name) {
158
      return byName.get(name);
159
    }
160
 
161
    private final short _thriftId;
162
    private final String _fieldName;
163
 
164
    _Fields(short thriftId, String fieldName) {
165
      _thriftId = thriftId;
166
      _fieldName = fieldName;
167
    }
168
 
169
    public short getThriftFieldId() {
170
      return _thriftId;
171
    }
172
 
173
    public String getFieldName() {
174
      return _fieldName;
175
    }
176
  }
177
 
178
  // isset id assignments
179
  private static final int __ID_ISSET_ID = 0;
10295 amar.kumar 180
  private static final int __STATEID_ISSET_ID = 1;
14072 manish.sha 181
  private static final int __POVALIDITYLIMIT_ISSET_ID = 2;
182
  private BitSet __isset_bit_vector = new BitSet(3);
4496 mandeep.dh 183
 
184
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
185
  static {
186
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
187
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
188
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
189
    tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
190
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
191
    tmpMap.put(_Fields.PHONE, new org.apache.thrift.meta_data.FieldMetaData("phone", org.apache.thrift.TFieldRequirementType.DEFAULT, 
192
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
193
    tmpMap.put(_Fields.FAX, new org.apache.thrift.meta_data.FieldMetaData("fax", org.apache.thrift.TFieldRequirementType.DEFAULT, 
194
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
195
    tmpMap.put(_Fields.TIN, new org.apache.thrift.meta_data.FieldMetaData("tin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
196
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
197
    tmpMap.put(_Fields.PAN, new org.apache.thrift.meta_data.FieldMetaData("pan", org.apache.thrift.TFieldRequirementType.DEFAULT, 
198
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
199
    tmpMap.put(_Fields.HEAD_NAME, new org.apache.thrift.meta_data.FieldMetaData("headName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
200
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
201
    tmpMap.put(_Fields.HEAD_DESIGNATION, new org.apache.thrift.meta_data.FieldMetaData("headDesignation", org.apache.thrift.TFieldRequirementType.DEFAULT, 
202
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
203
    tmpMap.put(_Fields.HEAD_EMAIL, new org.apache.thrift.meta_data.FieldMetaData("headEmail", org.apache.thrift.TFieldRequirementType.DEFAULT, 
204
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
205
    tmpMap.put(_Fields.CONTACT_NAME, new org.apache.thrift.meta_data.FieldMetaData("contactName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
206
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
207
    tmpMap.put(_Fields.CONTACT_PHONE, new org.apache.thrift.meta_data.FieldMetaData("contactPhone", org.apache.thrift.TFieldRequirementType.DEFAULT, 
208
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
209
    tmpMap.put(_Fields.CONTACT_FAX, new org.apache.thrift.meta_data.FieldMetaData("contactFax", org.apache.thrift.TFieldRequirementType.DEFAULT, 
210
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
211
    tmpMap.put(_Fields.CONTACT_EMAIL, new org.apache.thrift.meta_data.FieldMetaData("contactEmail", org.apache.thrift.TFieldRequirementType.DEFAULT, 
212
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
213
    tmpMap.put(_Fields.REGISTERED_ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("registeredAddress", org.apache.thrift.TFieldRequirementType.DEFAULT, 
214
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
215
    tmpMap.put(_Fields.COMMUNICATION_ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("communicationAddress", org.apache.thrift.TFieldRequirementType.DEFAULT, 
216
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10295 amar.kumar 217
    tmpMap.put(_Fields.STATE_ID, new org.apache.thrift.meta_data.FieldMetaData("stateId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
218
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14072 manish.sha 219
    tmpMap.put(_Fields.PO_VALIDITY_LIMIT, new org.apache.thrift.meta_data.FieldMetaData("poValidityLimit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
220
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21844 amit.gupta 221
    tmpMap.put(_Fields.GSTIN, new org.apache.thrift.meta_data.FieldMetaData("gstin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
222
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
23081 amit.gupta 223
    tmpMap.put(_Fields.TNC, new org.apache.thrift.meta_data.FieldMetaData("tnc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
224
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
4496 mandeep.dh 225
    metaDataMap = Collections.unmodifiableMap(tmpMap);
226
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Supplier.class, metaDataMap);
227
  }
228
 
229
  public Supplier() {
230
  }
231
 
232
  public Supplier(
233
    long id,
234
    String name,
235
    String phone,
236
    String fax,
237
    String tin,
238
    String pan,
239
    String headName,
240
    String headDesignation,
241
    String headEmail,
242
    String contactName,
243
    String contactPhone,
244
    String contactFax,
245
    String contactEmail,
246
    String registeredAddress,
10295 amar.kumar 247
    String communicationAddress,
14072 manish.sha 248
    long stateId,
21844 amit.gupta 249
    long poValidityLimit,
23081 amit.gupta 250
    String gstin,
251
    String tnc)
4496 mandeep.dh 252
  {
253
    this();
254
    this.id = id;
255
    setIdIsSet(true);
256
    this.name = name;
257
    this.phone = phone;
258
    this.fax = fax;
259
    this.tin = tin;
260
    this.pan = pan;
261
    this.headName = headName;
262
    this.headDesignation = headDesignation;
263
    this.headEmail = headEmail;
264
    this.contactName = contactName;
265
    this.contactPhone = contactPhone;
266
    this.contactFax = contactFax;
267
    this.contactEmail = contactEmail;
268
    this.registeredAddress = registeredAddress;
269
    this.communicationAddress = communicationAddress;
10295 amar.kumar 270
    this.stateId = stateId;
271
    setStateIdIsSet(true);
14072 manish.sha 272
    this.poValidityLimit = poValidityLimit;
273
    setPoValidityLimitIsSet(true);
21844 amit.gupta 274
    this.gstin = gstin;
23081 amit.gupta 275
    this.tnc = tnc;
4496 mandeep.dh 276
  }
277
 
278
  /**
279
   * Performs a deep copy on <i>other</i>.
280
   */
281
  public Supplier(Supplier other) {
282
    __isset_bit_vector.clear();
283
    __isset_bit_vector.or(other.__isset_bit_vector);
284
    this.id = other.id;
285
    if (other.isSetName()) {
286
      this.name = other.name;
287
    }
288
    if (other.isSetPhone()) {
289
      this.phone = other.phone;
290
    }
291
    if (other.isSetFax()) {
292
      this.fax = other.fax;
293
    }
294
    if (other.isSetTin()) {
295
      this.tin = other.tin;
296
    }
297
    if (other.isSetPan()) {
298
      this.pan = other.pan;
299
    }
300
    if (other.isSetHeadName()) {
301
      this.headName = other.headName;
302
    }
303
    if (other.isSetHeadDesignation()) {
304
      this.headDesignation = other.headDesignation;
305
    }
306
    if (other.isSetHeadEmail()) {
307
      this.headEmail = other.headEmail;
308
    }
309
    if (other.isSetContactName()) {
310
      this.contactName = other.contactName;
311
    }
312
    if (other.isSetContactPhone()) {
313
      this.contactPhone = other.contactPhone;
314
    }
315
    if (other.isSetContactFax()) {
316
      this.contactFax = other.contactFax;
317
    }
318
    if (other.isSetContactEmail()) {
319
      this.contactEmail = other.contactEmail;
320
    }
321
    if (other.isSetRegisteredAddress()) {
322
      this.registeredAddress = other.registeredAddress;
323
    }
324
    if (other.isSetCommunicationAddress()) {
325
      this.communicationAddress = other.communicationAddress;
326
    }
10295 amar.kumar 327
    this.stateId = other.stateId;
14072 manish.sha 328
    this.poValidityLimit = other.poValidityLimit;
21844 amit.gupta 329
    if (other.isSetGstin()) {
330
      this.gstin = other.gstin;
331
    }
23081 amit.gupta 332
    if (other.isSetTnc()) {
333
      this.tnc = other.tnc;
334
    }
4496 mandeep.dh 335
  }
336
 
337
  public Supplier deepCopy() {
338
    return new Supplier(this);
339
  }
340
 
341
  @Override
342
  public void clear() {
343
    setIdIsSet(false);
344
    this.id = 0;
345
    this.name = null;
346
    this.phone = null;
347
    this.fax = null;
348
    this.tin = null;
349
    this.pan = null;
350
    this.headName = null;
351
    this.headDesignation = null;
352
    this.headEmail = null;
353
    this.contactName = null;
354
    this.contactPhone = null;
355
    this.contactFax = null;
356
    this.contactEmail = null;
357
    this.registeredAddress = null;
358
    this.communicationAddress = null;
10295 amar.kumar 359
    setStateIdIsSet(false);
360
    this.stateId = 0;
14072 manish.sha 361
    setPoValidityLimitIsSet(false);
362
    this.poValidityLimit = 0;
21844 amit.gupta 363
    this.gstin = null;
23081 amit.gupta 364
    this.tnc = null;
4496 mandeep.dh 365
  }
366
 
367
  public long getId() {
368
    return this.id;
369
  }
370
 
371
  public void setId(long id) {
372
    this.id = id;
373
    setIdIsSet(true);
374
  }
375
 
376
  public void unsetId() {
377
    __isset_bit_vector.clear(__ID_ISSET_ID);
378
  }
379
 
380
  /** Returns true if field id is set (has been assigned a value) and false otherwise */
381
  public boolean isSetId() {
382
    return __isset_bit_vector.get(__ID_ISSET_ID);
383
  }
384
 
385
  public void setIdIsSet(boolean value) {
386
    __isset_bit_vector.set(__ID_ISSET_ID, value);
387
  }
388
 
389
  public String getName() {
390
    return this.name;
391
  }
392
 
393
  public void setName(String name) {
394
    this.name = name;
395
  }
396
 
397
  public void unsetName() {
398
    this.name = null;
399
  }
400
 
401
  /** Returns true if field name is set (has been assigned a value) and false otherwise */
402
  public boolean isSetName() {
403
    return this.name != null;
404
  }
405
 
406
  public void setNameIsSet(boolean value) {
407
    if (!value) {
408
      this.name = null;
409
    }
410
  }
411
 
412
  public String getPhone() {
413
    return this.phone;
414
  }
415
 
416
  public void setPhone(String phone) {
417
    this.phone = phone;
418
  }
419
 
420
  public void unsetPhone() {
421
    this.phone = null;
422
  }
423
 
424
  /** Returns true if field phone is set (has been assigned a value) and false otherwise */
425
  public boolean isSetPhone() {
426
    return this.phone != null;
427
  }
428
 
429
  public void setPhoneIsSet(boolean value) {
430
    if (!value) {
431
      this.phone = null;
432
    }
433
  }
434
 
435
  public String getFax() {
436
    return this.fax;
437
  }
438
 
439
  public void setFax(String fax) {
440
    this.fax = fax;
441
  }
442
 
443
  public void unsetFax() {
444
    this.fax = null;
445
  }
446
 
447
  /** Returns true if field fax is set (has been assigned a value) and false otherwise */
448
  public boolean isSetFax() {
449
    return this.fax != null;
450
  }
451
 
452
  public void setFaxIsSet(boolean value) {
453
    if (!value) {
454
      this.fax = null;
455
    }
456
  }
457
 
458
  public String getTin() {
459
    return this.tin;
460
  }
461
 
462
  public void setTin(String tin) {
463
    this.tin = tin;
464
  }
465
 
466
  public void unsetTin() {
467
    this.tin = null;
468
  }
469
 
470
  /** Returns true if field tin is set (has been assigned a value) and false otherwise */
471
  public boolean isSetTin() {
472
    return this.tin != null;
473
  }
474
 
475
  public void setTinIsSet(boolean value) {
476
    if (!value) {
477
      this.tin = null;
478
    }
479
  }
480
 
481
  public String getPan() {
482
    return this.pan;
483
  }
484
 
485
  public void setPan(String pan) {
486
    this.pan = pan;
487
  }
488
 
489
  public void unsetPan() {
490
    this.pan = null;
491
  }
492
 
493
  /** Returns true if field pan is set (has been assigned a value) and false otherwise */
494
  public boolean isSetPan() {
495
    return this.pan != null;
496
  }
497
 
498
  public void setPanIsSet(boolean value) {
499
    if (!value) {
500
      this.pan = null;
501
    }
502
  }
503
 
504
  public String getHeadName() {
505
    return this.headName;
506
  }
507
 
508
  public void setHeadName(String headName) {
509
    this.headName = headName;
510
  }
511
 
512
  public void unsetHeadName() {
513
    this.headName = null;
514
  }
515
 
516
  /** Returns true if field headName is set (has been assigned a value) and false otherwise */
517
  public boolean isSetHeadName() {
518
    return this.headName != null;
519
  }
520
 
521
  public void setHeadNameIsSet(boolean value) {
522
    if (!value) {
523
      this.headName = null;
524
    }
525
  }
526
 
527
  public String getHeadDesignation() {
528
    return this.headDesignation;
529
  }
530
 
531
  public void setHeadDesignation(String headDesignation) {
532
    this.headDesignation = headDesignation;
533
  }
534
 
535
  public void unsetHeadDesignation() {
536
    this.headDesignation = null;
537
  }
538
 
539
  /** Returns true if field headDesignation is set (has been assigned a value) and false otherwise */
540
  public boolean isSetHeadDesignation() {
541
    return this.headDesignation != null;
542
  }
543
 
544
  public void setHeadDesignationIsSet(boolean value) {
545
    if (!value) {
546
      this.headDesignation = null;
547
    }
548
  }
549
 
550
  public String getHeadEmail() {
551
    return this.headEmail;
552
  }
553
 
554
  public void setHeadEmail(String headEmail) {
555
    this.headEmail = headEmail;
556
  }
557
 
558
  public void unsetHeadEmail() {
559
    this.headEmail = null;
560
  }
561
 
562
  /** Returns true if field headEmail is set (has been assigned a value) and false otherwise */
563
  public boolean isSetHeadEmail() {
564
    return this.headEmail != null;
565
  }
566
 
567
  public void setHeadEmailIsSet(boolean value) {
568
    if (!value) {
569
      this.headEmail = null;
570
    }
571
  }
572
 
573
  public String getContactName() {
574
    return this.contactName;
575
  }
576
 
577
  public void setContactName(String contactName) {
578
    this.contactName = contactName;
579
  }
580
 
581
  public void unsetContactName() {
582
    this.contactName = null;
583
  }
584
 
585
  /** Returns true if field contactName is set (has been assigned a value) and false otherwise */
586
  public boolean isSetContactName() {
587
    return this.contactName != null;
588
  }
589
 
590
  public void setContactNameIsSet(boolean value) {
591
    if (!value) {
592
      this.contactName = null;
593
    }
594
  }
595
 
596
  public String getContactPhone() {
597
    return this.contactPhone;
598
  }
599
 
600
  public void setContactPhone(String contactPhone) {
601
    this.contactPhone = contactPhone;
602
  }
603
 
604
  public void unsetContactPhone() {
605
    this.contactPhone = null;
606
  }
607
 
608
  /** Returns true if field contactPhone is set (has been assigned a value) and false otherwise */
609
  public boolean isSetContactPhone() {
610
    return this.contactPhone != null;
611
  }
612
 
613
  public void setContactPhoneIsSet(boolean value) {
614
    if (!value) {
615
      this.contactPhone = null;
616
    }
617
  }
618
 
619
  public String getContactFax() {
620
    return this.contactFax;
621
  }
622
 
623
  public void setContactFax(String contactFax) {
624
    this.contactFax = contactFax;
625
  }
626
 
627
  public void unsetContactFax() {
628
    this.contactFax = null;
629
  }
630
 
631
  /** Returns true if field contactFax is set (has been assigned a value) and false otherwise */
632
  public boolean isSetContactFax() {
633
    return this.contactFax != null;
634
  }
635
 
636
  public void setContactFaxIsSet(boolean value) {
637
    if (!value) {
638
      this.contactFax = null;
639
    }
640
  }
641
 
642
  public String getContactEmail() {
643
    return this.contactEmail;
644
  }
645
 
646
  public void setContactEmail(String contactEmail) {
647
    this.contactEmail = contactEmail;
648
  }
649
 
650
  public void unsetContactEmail() {
651
    this.contactEmail = null;
652
  }
653
 
654
  /** Returns true if field contactEmail is set (has been assigned a value) and false otherwise */
655
  public boolean isSetContactEmail() {
656
    return this.contactEmail != null;
657
  }
658
 
659
  public void setContactEmailIsSet(boolean value) {
660
    if (!value) {
661
      this.contactEmail = null;
662
    }
663
  }
664
 
665
  public String getRegisteredAddress() {
666
    return this.registeredAddress;
667
  }
668
 
669
  public void setRegisteredAddress(String registeredAddress) {
670
    this.registeredAddress = registeredAddress;
671
  }
672
 
673
  public void unsetRegisteredAddress() {
674
    this.registeredAddress = null;
675
  }
676
 
677
  /** Returns true if field registeredAddress is set (has been assigned a value) and false otherwise */
678
  public boolean isSetRegisteredAddress() {
679
    return this.registeredAddress != null;
680
  }
681
 
682
  public void setRegisteredAddressIsSet(boolean value) {
683
    if (!value) {
684
      this.registeredAddress = null;
685
    }
686
  }
687
 
688
  public String getCommunicationAddress() {
689
    return this.communicationAddress;
690
  }
691
 
692
  public void setCommunicationAddress(String communicationAddress) {
693
    this.communicationAddress = communicationAddress;
694
  }
695
 
696
  public void unsetCommunicationAddress() {
697
    this.communicationAddress = null;
698
  }
699
 
700
  /** Returns true if field communicationAddress is set (has been assigned a value) and false otherwise */
701
  public boolean isSetCommunicationAddress() {
702
    return this.communicationAddress != null;
703
  }
704
 
705
  public void setCommunicationAddressIsSet(boolean value) {
706
    if (!value) {
707
      this.communicationAddress = null;
708
    }
709
  }
710
 
10295 amar.kumar 711
  public long getStateId() {
712
    return this.stateId;
713
  }
714
 
715
  public void setStateId(long stateId) {
716
    this.stateId = stateId;
717
    setStateIdIsSet(true);
718
  }
719
 
720
  public void unsetStateId() {
721
    __isset_bit_vector.clear(__STATEID_ISSET_ID);
722
  }
723
 
724
  /** Returns true if field stateId is set (has been assigned a value) and false otherwise */
725
  public boolean isSetStateId() {
726
    return __isset_bit_vector.get(__STATEID_ISSET_ID);
727
  }
728
 
729
  public void setStateIdIsSet(boolean value) {
730
    __isset_bit_vector.set(__STATEID_ISSET_ID, value);
731
  }
732
 
14072 manish.sha 733
  public long getPoValidityLimit() {
734
    return this.poValidityLimit;
735
  }
736
 
737
  public void setPoValidityLimit(long poValidityLimit) {
738
    this.poValidityLimit = poValidityLimit;
739
    setPoValidityLimitIsSet(true);
740
  }
741
 
742
  public void unsetPoValidityLimit() {
743
    __isset_bit_vector.clear(__POVALIDITYLIMIT_ISSET_ID);
744
  }
745
 
746
  /** Returns true if field poValidityLimit is set (has been assigned a value) and false otherwise */
747
  public boolean isSetPoValidityLimit() {
748
    return __isset_bit_vector.get(__POVALIDITYLIMIT_ISSET_ID);
749
  }
750
 
751
  public void setPoValidityLimitIsSet(boolean value) {
752
    __isset_bit_vector.set(__POVALIDITYLIMIT_ISSET_ID, value);
753
  }
754
 
21844 amit.gupta 755
  public String getGstin() {
756
    return this.gstin;
757
  }
758
 
759
  public void setGstin(String gstin) {
760
    this.gstin = gstin;
761
  }
762
 
763
  public void unsetGstin() {
764
    this.gstin = null;
765
  }
766
 
767
  /** Returns true if field gstin is set (has been assigned a value) and false otherwise */
768
  public boolean isSetGstin() {
769
    return this.gstin != null;
770
  }
771
 
772
  public void setGstinIsSet(boolean value) {
773
    if (!value) {
774
      this.gstin = null;
775
    }
776
  }
777
 
23081 amit.gupta 778
  public String getTnc() {
779
    return this.tnc;
780
  }
781
 
782
  public void setTnc(String tnc) {
783
    this.tnc = tnc;
784
  }
785
 
786
  public void unsetTnc() {
787
    this.tnc = null;
788
  }
789
 
790
  /** Returns true if field tnc is set (has been assigned a value) and false otherwise */
791
  public boolean isSetTnc() {
792
    return this.tnc != null;
793
  }
794
 
795
  public void setTncIsSet(boolean value) {
796
    if (!value) {
797
      this.tnc = null;
798
    }
799
  }
800
 
4496 mandeep.dh 801
  public void setFieldValue(_Fields field, Object value) {
802
    switch (field) {
803
    case ID:
804
      if (value == null) {
805
        unsetId();
806
      } else {
807
        setId((Long)value);
808
      }
809
      break;
810
 
811
    case NAME:
812
      if (value == null) {
813
        unsetName();
814
      } else {
815
        setName((String)value);
816
      }
817
      break;
818
 
819
    case PHONE:
820
      if (value == null) {
821
        unsetPhone();
822
      } else {
823
        setPhone((String)value);
824
      }
825
      break;
826
 
827
    case FAX:
828
      if (value == null) {
829
        unsetFax();
830
      } else {
831
        setFax((String)value);
832
      }
833
      break;
834
 
835
    case TIN:
836
      if (value == null) {
837
        unsetTin();
838
      } else {
839
        setTin((String)value);
840
      }
841
      break;
842
 
843
    case PAN:
844
      if (value == null) {
845
        unsetPan();
846
      } else {
847
        setPan((String)value);
848
      }
849
      break;
850
 
851
    case HEAD_NAME:
852
      if (value == null) {
853
        unsetHeadName();
854
      } else {
855
        setHeadName((String)value);
856
      }
857
      break;
858
 
859
    case HEAD_DESIGNATION:
860
      if (value == null) {
861
        unsetHeadDesignation();
862
      } else {
863
        setHeadDesignation((String)value);
864
      }
865
      break;
866
 
867
    case HEAD_EMAIL:
868
      if (value == null) {
869
        unsetHeadEmail();
870
      } else {
871
        setHeadEmail((String)value);
872
      }
873
      break;
874
 
875
    case CONTACT_NAME:
876
      if (value == null) {
877
        unsetContactName();
878
      } else {
879
        setContactName((String)value);
880
      }
881
      break;
882
 
883
    case CONTACT_PHONE:
884
      if (value == null) {
885
        unsetContactPhone();
886
      } else {
887
        setContactPhone((String)value);
888
      }
889
      break;
890
 
891
    case CONTACT_FAX:
892
      if (value == null) {
893
        unsetContactFax();
894
      } else {
895
        setContactFax((String)value);
896
      }
897
      break;
898
 
899
    case CONTACT_EMAIL:
900
      if (value == null) {
901
        unsetContactEmail();
902
      } else {
903
        setContactEmail((String)value);
904
      }
905
      break;
906
 
907
    case REGISTERED_ADDRESS:
908
      if (value == null) {
909
        unsetRegisteredAddress();
910
      } else {
911
        setRegisteredAddress((String)value);
912
      }
913
      break;
914
 
915
    case COMMUNICATION_ADDRESS:
916
      if (value == null) {
917
        unsetCommunicationAddress();
918
      } else {
919
        setCommunicationAddress((String)value);
920
      }
921
      break;
922
 
10295 amar.kumar 923
    case STATE_ID:
924
      if (value == null) {
925
        unsetStateId();
926
      } else {
927
        setStateId((Long)value);
928
      }
929
      break;
930
 
14072 manish.sha 931
    case PO_VALIDITY_LIMIT:
932
      if (value == null) {
933
        unsetPoValidityLimit();
934
      } else {
935
        setPoValidityLimit((Long)value);
936
      }
937
      break;
938
 
21844 amit.gupta 939
    case GSTIN:
940
      if (value == null) {
941
        unsetGstin();
942
      } else {
943
        setGstin((String)value);
944
      }
945
      break;
946
 
23081 amit.gupta 947
    case TNC:
948
      if (value == null) {
949
        unsetTnc();
950
      } else {
951
        setTnc((String)value);
952
      }
953
      break;
954
 
4496 mandeep.dh 955
    }
956
  }
957
 
958
  public Object getFieldValue(_Fields field) {
959
    switch (field) {
960
    case ID:
961
      return Long.valueOf(getId());
962
 
963
    case NAME:
964
      return getName();
965
 
966
    case PHONE:
967
      return getPhone();
968
 
969
    case FAX:
970
      return getFax();
971
 
972
    case TIN:
973
      return getTin();
974
 
975
    case PAN:
976
      return getPan();
977
 
978
    case HEAD_NAME:
979
      return getHeadName();
980
 
981
    case HEAD_DESIGNATION:
982
      return getHeadDesignation();
983
 
984
    case HEAD_EMAIL:
985
      return getHeadEmail();
986
 
987
    case CONTACT_NAME:
988
      return getContactName();
989
 
990
    case CONTACT_PHONE:
991
      return getContactPhone();
992
 
993
    case CONTACT_FAX:
994
      return getContactFax();
995
 
996
    case CONTACT_EMAIL:
997
      return getContactEmail();
998
 
999
    case REGISTERED_ADDRESS:
1000
      return getRegisteredAddress();
1001
 
1002
    case COMMUNICATION_ADDRESS:
1003
      return getCommunicationAddress();
1004
 
10295 amar.kumar 1005
    case STATE_ID:
1006
      return Long.valueOf(getStateId());
1007
 
14072 manish.sha 1008
    case PO_VALIDITY_LIMIT:
1009
      return Long.valueOf(getPoValidityLimit());
1010
 
21844 amit.gupta 1011
    case GSTIN:
1012
      return getGstin();
1013
 
23081 amit.gupta 1014
    case TNC:
1015
      return getTnc();
1016
 
4496 mandeep.dh 1017
    }
1018
    throw new IllegalStateException();
1019
  }
1020
 
1021
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1022
  public boolean isSet(_Fields field) {
1023
    if (field == null) {
1024
      throw new IllegalArgumentException();
1025
    }
1026
 
1027
    switch (field) {
1028
    case ID:
1029
      return isSetId();
1030
    case NAME:
1031
      return isSetName();
1032
    case PHONE:
1033
      return isSetPhone();
1034
    case FAX:
1035
      return isSetFax();
1036
    case TIN:
1037
      return isSetTin();
1038
    case PAN:
1039
      return isSetPan();
1040
    case HEAD_NAME:
1041
      return isSetHeadName();
1042
    case HEAD_DESIGNATION:
1043
      return isSetHeadDesignation();
1044
    case HEAD_EMAIL:
1045
      return isSetHeadEmail();
1046
    case CONTACT_NAME:
1047
      return isSetContactName();
1048
    case CONTACT_PHONE:
1049
      return isSetContactPhone();
1050
    case CONTACT_FAX:
1051
      return isSetContactFax();
1052
    case CONTACT_EMAIL:
1053
      return isSetContactEmail();
1054
    case REGISTERED_ADDRESS:
1055
      return isSetRegisteredAddress();
1056
    case COMMUNICATION_ADDRESS:
1057
      return isSetCommunicationAddress();
10295 amar.kumar 1058
    case STATE_ID:
1059
      return isSetStateId();
14072 manish.sha 1060
    case PO_VALIDITY_LIMIT:
1061
      return isSetPoValidityLimit();
21844 amit.gupta 1062
    case GSTIN:
1063
      return isSetGstin();
23081 amit.gupta 1064
    case TNC:
1065
      return isSetTnc();
4496 mandeep.dh 1066
    }
1067
    throw new IllegalStateException();
1068
  }
1069
 
1070
  @Override
1071
  public boolean equals(Object that) {
1072
    if (that == null)
1073
      return false;
1074
    if (that instanceof Supplier)
1075
      return this.equals((Supplier)that);
1076
    return false;
1077
  }
1078
 
1079
  public boolean equals(Supplier that) {
1080
    if (that == null)
1081
      return false;
1082
 
1083
    boolean this_present_id = true;
1084
    boolean that_present_id = true;
1085
    if (this_present_id || that_present_id) {
1086
      if (!(this_present_id && that_present_id))
1087
        return false;
1088
      if (this.id != that.id)
1089
        return false;
1090
    }
1091
 
1092
    boolean this_present_name = true && this.isSetName();
1093
    boolean that_present_name = true && that.isSetName();
1094
    if (this_present_name || that_present_name) {
1095
      if (!(this_present_name && that_present_name))
1096
        return false;
1097
      if (!this.name.equals(that.name))
1098
        return false;
1099
    }
1100
 
1101
    boolean this_present_phone = true && this.isSetPhone();
1102
    boolean that_present_phone = true && that.isSetPhone();
1103
    if (this_present_phone || that_present_phone) {
1104
      if (!(this_present_phone && that_present_phone))
1105
        return false;
1106
      if (!this.phone.equals(that.phone))
1107
        return false;
1108
    }
1109
 
1110
    boolean this_present_fax = true && this.isSetFax();
1111
    boolean that_present_fax = true && that.isSetFax();
1112
    if (this_present_fax || that_present_fax) {
1113
      if (!(this_present_fax && that_present_fax))
1114
        return false;
1115
      if (!this.fax.equals(that.fax))
1116
        return false;
1117
    }
1118
 
1119
    boolean this_present_tin = true && this.isSetTin();
1120
    boolean that_present_tin = true && that.isSetTin();
1121
    if (this_present_tin || that_present_tin) {
1122
      if (!(this_present_tin && that_present_tin))
1123
        return false;
1124
      if (!this.tin.equals(that.tin))
1125
        return false;
1126
    }
1127
 
1128
    boolean this_present_pan = true && this.isSetPan();
1129
    boolean that_present_pan = true && that.isSetPan();
1130
    if (this_present_pan || that_present_pan) {
1131
      if (!(this_present_pan && that_present_pan))
1132
        return false;
1133
      if (!this.pan.equals(that.pan))
1134
        return false;
1135
    }
1136
 
1137
    boolean this_present_headName = true && this.isSetHeadName();
1138
    boolean that_present_headName = true && that.isSetHeadName();
1139
    if (this_present_headName || that_present_headName) {
1140
      if (!(this_present_headName && that_present_headName))
1141
        return false;
1142
      if (!this.headName.equals(that.headName))
1143
        return false;
1144
    }
1145
 
1146
    boolean this_present_headDesignation = true && this.isSetHeadDesignation();
1147
    boolean that_present_headDesignation = true && that.isSetHeadDesignation();
1148
    if (this_present_headDesignation || that_present_headDesignation) {
1149
      if (!(this_present_headDesignation && that_present_headDesignation))
1150
        return false;
1151
      if (!this.headDesignation.equals(that.headDesignation))
1152
        return false;
1153
    }
1154
 
1155
    boolean this_present_headEmail = true && this.isSetHeadEmail();
1156
    boolean that_present_headEmail = true && that.isSetHeadEmail();
1157
    if (this_present_headEmail || that_present_headEmail) {
1158
      if (!(this_present_headEmail && that_present_headEmail))
1159
        return false;
1160
      if (!this.headEmail.equals(that.headEmail))
1161
        return false;
1162
    }
1163
 
1164
    boolean this_present_contactName = true && this.isSetContactName();
1165
    boolean that_present_contactName = true && that.isSetContactName();
1166
    if (this_present_contactName || that_present_contactName) {
1167
      if (!(this_present_contactName && that_present_contactName))
1168
        return false;
1169
      if (!this.contactName.equals(that.contactName))
1170
        return false;
1171
    }
1172
 
1173
    boolean this_present_contactPhone = true && this.isSetContactPhone();
1174
    boolean that_present_contactPhone = true && that.isSetContactPhone();
1175
    if (this_present_contactPhone || that_present_contactPhone) {
1176
      if (!(this_present_contactPhone && that_present_contactPhone))
1177
        return false;
1178
      if (!this.contactPhone.equals(that.contactPhone))
1179
        return false;
1180
    }
1181
 
1182
    boolean this_present_contactFax = true && this.isSetContactFax();
1183
    boolean that_present_contactFax = true && that.isSetContactFax();
1184
    if (this_present_contactFax || that_present_contactFax) {
1185
      if (!(this_present_contactFax && that_present_contactFax))
1186
        return false;
1187
      if (!this.contactFax.equals(that.contactFax))
1188
        return false;
1189
    }
1190
 
1191
    boolean this_present_contactEmail = true && this.isSetContactEmail();
1192
    boolean that_present_contactEmail = true && that.isSetContactEmail();
1193
    if (this_present_contactEmail || that_present_contactEmail) {
1194
      if (!(this_present_contactEmail && that_present_contactEmail))
1195
        return false;
1196
      if (!this.contactEmail.equals(that.contactEmail))
1197
        return false;
1198
    }
1199
 
1200
    boolean this_present_registeredAddress = true && this.isSetRegisteredAddress();
1201
    boolean that_present_registeredAddress = true && that.isSetRegisteredAddress();
1202
    if (this_present_registeredAddress || that_present_registeredAddress) {
1203
      if (!(this_present_registeredAddress && that_present_registeredAddress))
1204
        return false;
1205
      if (!this.registeredAddress.equals(that.registeredAddress))
1206
        return false;
1207
    }
1208
 
1209
    boolean this_present_communicationAddress = true && this.isSetCommunicationAddress();
1210
    boolean that_present_communicationAddress = true && that.isSetCommunicationAddress();
1211
    if (this_present_communicationAddress || that_present_communicationAddress) {
1212
      if (!(this_present_communicationAddress && that_present_communicationAddress))
1213
        return false;
1214
      if (!this.communicationAddress.equals(that.communicationAddress))
1215
        return false;
1216
    }
1217
 
10295 amar.kumar 1218
    boolean this_present_stateId = true;
1219
    boolean that_present_stateId = true;
1220
    if (this_present_stateId || that_present_stateId) {
1221
      if (!(this_present_stateId && that_present_stateId))
1222
        return false;
1223
      if (this.stateId != that.stateId)
1224
        return false;
1225
    }
1226
 
14072 manish.sha 1227
    boolean this_present_poValidityLimit = true;
1228
    boolean that_present_poValidityLimit = true;
1229
    if (this_present_poValidityLimit || that_present_poValidityLimit) {
1230
      if (!(this_present_poValidityLimit && that_present_poValidityLimit))
1231
        return false;
1232
      if (this.poValidityLimit != that.poValidityLimit)
1233
        return false;
1234
    }
1235
 
21844 amit.gupta 1236
    boolean this_present_gstin = true && this.isSetGstin();
1237
    boolean that_present_gstin = true && that.isSetGstin();
1238
    if (this_present_gstin || that_present_gstin) {
1239
      if (!(this_present_gstin && that_present_gstin))
1240
        return false;
1241
      if (!this.gstin.equals(that.gstin))
1242
        return false;
1243
    }
1244
 
23081 amit.gupta 1245
    boolean this_present_tnc = true && this.isSetTnc();
1246
    boolean that_present_tnc = true && that.isSetTnc();
1247
    if (this_present_tnc || that_present_tnc) {
1248
      if (!(this_present_tnc && that_present_tnc))
1249
        return false;
1250
      if (!this.tnc.equals(that.tnc))
1251
        return false;
1252
    }
1253
 
4496 mandeep.dh 1254
    return true;
1255
  }
1256
 
1257
  @Override
1258
  public int hashCode() {
1259
    return 0;
1260
  }
1261
 
1262
  public int compareTo(Supplier other) {
1263
    if (!getClass().equals(other.getClass())) {
1264
      return getClass().getName().compareTo(other.getClass().getName());
1265
    }
1266
 
1267
    int lastComparison = 0;
1268
    Supplier typedOther = (Supplier)other;
1269
 
1270
    lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
1271
    if (lastComparison != 0) {
1272
      return lastComparison;
1273
    }
1274
    if (isSetId()) {
1275
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
1276
      if (lastComparison != 0) {
1277
        return lastComparison;
1278
      }
1279
    }
1280
    lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
1281
    if (lastComparison != 0) {
1282
      return lastComparison;
1283
    }
1284
    if (isSetName()) {
1285
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
1286
      if (lastComparison != 0) {
1287
        return lastComparison;
1288
      }
1289
    }
1290
    lastComparison = Boolean.valueOf(isSetPhone()).compareTo(typedOther.isSetPhone());
1291
    if (lastComparison != 0) {
1292
      return lastComparison;
1293
    }
1294
    if (isSetPhone()) {
1295
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.phone, typedOther.phone);
1296
      if (lastComparison != 0) {
1297
        return lastComparison;
1298
      }
1299
    }
1300
    lastComparison = Boolean.valueOf(isSetFax()).compareTo(typedOther.isSetFax());
1301
    if (lastComparison != 0) {
1302
      return lastComparison;
1303
    }
1304
    if (isSetFax()) {
1305
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fax, typedOther.fax);
1306
      if (lastComparison != 0) {
1307
        return lastComparison;
1308
      }
1309
    }
1310
    lastComparison = Boolean.valueOf(isSetTin()).compareTo(typedOther.isSetTin());
1311
    if (lastComparison != 0) {
1312
      return lastComparison;
1313
    }
1314
    if (isSetTin()) {
1315
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tin, typedOther.tin);
1316
      if (lastComparison != 0) {
1317
        return lastComparison;
1318
      }
1319
    }
1320
    lastComparison = Boolean.valueOf(isSetPan()).compareTo(typedOther.isSetPan());
1321
    if (lastComparison != 0) {
1322
      return lastComparison;
1323
    }
1324
    if (isSetPan()) {
1325
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pan, typedOther.pan);
1326
      if (lastComparison != 0) {
1327
        return lastComparison;
1328
      }
1329
    }
1330
    lastComparison = Boolean.valueOf(isSetHeadName()).compareTo(typedOther.isSetHeadName());
1331
    if (lastComparison != 0) {
1332
      return lastComparison;
1333
    }
1334
    if (isSetHeadName()) {
1335
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.headName, typedOther.headName);
1336
      if (lastComparison != 0) {
1337
        return lastComparison;
1338
      }
1339
    }
1340
    lastComparison = Boolean.valueOf(isSetHeadDesignation()).compareTo(typedOther.isSetHeadDesignation());
1341
    if (lastComparison != 0) {
1342
      return lastComparison;
1343
    }
1344
    if (isSetHeadDesignation()) {
1345
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.headDesignation, typedOther.headDesignation);
1346
      if (lastComparison != 0) {
1347
        return lastComparison;
1348
      }
1349
    }
1350
    lastComparison = Boolean.valueOf(isSetHeadEmail()).compareTo(typedOther.isSetHeadEmail());
1351
    if (lastComparison != 0) {
1352
      return lastComparison;
1353
    }
1354
    if (isSetHeadEmail()) {
1355
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.headEmail, typedOther.headEmail);
1356
      if (lastComparison != 0) {
1357
        return lastComparison;
1358
      }
1359
    }
1360
    lastComparison = Boolean.valueOf(isSetContactName()).compareTo(typedOther.isSetContactName());
1361
    if (lastComparison != 0) {
1362
      return lastComparison;
1363
    }
1364
    if (isSetContactName()) {
1365
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.contactName, typedOther.contactName);
1366
      if (lastComparison != 0) {
1367
        return lastComparison;
1368
      }
1369
    }
1370
    lastComparison = Boolean.valueOf(isSetContactPhone()).compareTo(typedOther.isSetContactPhone());
1371
    if (lastComparison != 0) {
1372
      return lastComparison;
1373
    }
1374
    if (isSetContactPhone()) {
1375
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.contactPhone, typedOther.contactPhone);
1376
      if (lastComparison != 0) {
1377
        return lastComparison;
1378
      }
1379
    }
1380
    lastComparison = Boolean.valueOf(isSetContactFax()).compareTo(typedOther.isSetContactFax());
1381
    if (lastComparison != 0) {
1382
      return lastComparison;
1383
    }
1384
    if (isSetContactFax()) {
1385
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.contactFax, typedOther.contactFax);
1386
      if (lastComparison != 0) {
1387
        return lastComparison;
1388
      }
1389
    }
1390
    lastComparison = Boolean.valueOf(isSetContactEmail()).compareTo(typedOther.isSetContactEmail());
1391
    if (lastComparison != 0) {
1392
      return lastComparison;
1393
    }
1394
    if (isSetContactEmail()) {
1395
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.contactEmail, typedOther.contactEmail);
1396
      if (lastComparison != 0) {
1397
        return lastComparison;
1398
      }
1399
    }
1400
    lastComparison = Boolean.valueOf(isSetRegisteredAddress()).compareTo(typedOther.isSetRegisteredAddress());
1401
    if (lastComparison != 0) {
1402
      return lastComparison;
1403
    }
1404
    if (isSetRegisteredAddress()) {
1405
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.registeredAddress, typedOther.registeredAddress);
1406
      if (lastComparison != 0) {
1407
        return lastComparison;
1408
      }
1409
    }
1410
    lastComparison = Boolean.valueOf(isSetCommunicationAddress()).compareTo(typedOther.isSetCommunicationAddress());
1411
    if (lastComparison != 0) {
1412
      return lastComparison;
1413
    }
1414
    if (isSetCommunicationAddress()) {
1415
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.communicationAddress, typedOther.communicationAddress);
1416
      if (lastComparison != 0) {
1417
        return lastComparison;
1418
      }
1419
    }
10295 amar.kumar 1420
    lastComparison = Boolean.valueOf(isSetStateId()).compareTo(typedOther.isSetStateId());
1421
    if (lastComparison != 0) {
1422
      return lastComparison;
1423
    }
1424
    if (isSetStateId()) {
1425
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stateId, typedOther.stateId);
1426
      if (lastComparison != 0) {
1427
        return lastComparison;
1428
      }
1429
    }
14072 manish.sha 1430
    lastComparison = Boolean.valueOf(isSetPoValidityLimit()).compareTo(typedOther.isSetPoValidityLimit());
1431
    if (lastComparison != 0) {
1432
      return lastComparison;
1433
    }
1434
    if (isSetPoValidityLimit()) {
1435
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.poValidityLimit, typedOther.poValidityLimit);
1436
      if (lastComparison != 0) {
1437
        return lastComparison;
1438
      }
1439
    }
21844 amit.gupta 1440
    lastComparison = Boolean.valueOf(isSetGstin()).compareTo(typedOther.isSetGstin());
1441
    if (lastComparison != 0) {
1442
      return lastComparison;
1443
    }
1444
    if (isSetGstin()) {
1445
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gstin, typedOther.gstin);
1446
      if (lastComparison != 0) {
1447
        return lastComparison;
1448
      }
1449
    }
23081 amit.gupta 1450
    lastComparison = Boolean.valueOf(isSetTnc()).compareTo(typedOther.isSetTnc());
1451
    if (lastComparison != 0) {
1452
      return lastComparison;
1453
    }
1454
    if (isSetTnc()) {
1455
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tnc, typedOther.tnc);
1456
      if (lastComparison != 0) {
1457
        return lastComparison;
1458
      }
1459
    }
4496 mandeep.dh 1460
    return 0;
1461
  }
1462
 
1463
  public _Fields fieldForId(int fieldId) {
1464
    return _Fields.findByThriftId(fieldId);
1465
  }
1466
 
1467
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1468
    org.apache.thrift.protocol.TField field;
1469
    iprot.readStructBegin();
1470
    while (true)
1471
    {
1472
      field = iprot.readFieldBegin();
1473
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1474
        break;
1475
      }
1476
      switch (field.id) {
1477
        case 1: // ID
1478
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1479
            this.id = iprot.readI64();
1480
            setIdIsSet(true);
1481
          } else { 
1482
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1483
          }
1484
          break;
1485
        case 2: // NAME
1486
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1487
            this.name = iprot.readString();
1488
          } else { 
1489
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1490
          }
1491
          break;
1492
        case 3: // PHONE
1493
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1494
            this.phone = iprot.readString();
1495
          } else { 
1496
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1497
          }
1498
          break;
1499
        case 4: // FAX
1500
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1501
            this.fax = iprot.readString();
1502
          } else { 
1503
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1504
          }
1505
          break;
1506
        case 5: // TIN
1507
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1508
            this.tin = iprot.readString();
1509
          } else { 
1510
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1511
          }
1512
          break;
1513
        case 6: // PAN
1514
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1515
            this.pan = iprot.readString();
1516
          } else { 
1517
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1518
          }
1519
          break;
1520
        case 7: // HEAD_NAME
1521
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1522
            this.headName = iprot.readString();
1523
          } else { 
1524
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1525
          }
1526
          break;
1527
        case 8: // HEAD_DESIGNATION
1528
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1529
            this.headDesignation = iprot.readString();
1530
          } else { 
1531
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1532
          }
1533
          break;
1534
        case 9: // HEAD_EMAIL
1535
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1536
            this.headEmail = iprot.readString();
1537
          } else { 
1538
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1539
          }
1540
          break;
1541
        case 10: // CONTACT_NAME
1542
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1543
            this.contactName = iprot.readString();
1544
          } else { 
1545
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1546
          }
1547
          break;
1548
        case 11: // CONTACT_PHONE
1549
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1550
            this.contactPhone = iprot.readString();
1551
          } else { 
1552
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1553
          }
1554
          break;
1555
        case 12: // CONTACT_FAX
1556
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1557
            this.contactFax = iprot.readString();
1558
          } else { 
1559
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1560
          }
1561
          break;
1562
        case 13: // CONTACT_EMAIL
1563
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1564
            this.contactEmail = iprot.readString();
1565
          } else { 
1566
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1567
          }
1568
          break;
1569
        case 14: // REGISTERED_ADDRESS
1570
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1571
            this.registeredAddress = iprot.readString();
1572
          } else { 
1573
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1574
          }
1575
          break;
1576
        case 15: // COMMUNICATION_ADDRESS
1577
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1578
            this.communicationAddress = iprot.readString();
1579
          } else { 
1580
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1581
          }
1582
          break;
10295 amar.kumar 1583
        case 16: // STATE_ID
1584
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1585
            this.stateId = iprot.readI64();
1586
            setStateIdIsSet(true);
1587
          } else { 
1588
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1589
          }
1590
          break;
14072 manish.sha 1591
        case 17: // PO_VALIDITY_LIMIT
1592
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1593
            this.poValidityLimit = iprot.readI64();
1594
            setPoValidityLimitIsSet(true);
1595
          } else { 
1596
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1597
          }
1598
          break;
21844 amit.gupta 1599
        case 18: // GSTIN
1600
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1601
            this.gstin = iprot.readString();
1602
          } else { 
1603
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1604
          }
1605
          break;
23081 amit.gupta 1606
        case 19: // TNC
1607
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1608
            this.tnc = iprot.readString();
1609
          } else { 
1610
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1611
          }
1612
          break;
4496 mandeep.dh 1613
        default:
1614
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1615
      }
1616
      iprot.readFieldEnd();
1617
    }
1618
    iprot.readStructEnd();
1619
    validate();
1620
  }
1621
 
1622
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1623
    validate();
1624
 
1625
    oprot.writeStructBegin(STRUCT_DESC);
1626
    oprot.writeFieldBegin(ID_FIELD_DESC);
1627
    oprot.writeI64(this.id);
1628
    oprot.writeFieldEnd();
1629
    if (this.name != null) {
1630
      oprot.writeFieldBegin(NAME_FIELD_DESC);
1631
      oprot.writeString(this.name);
1632
      oprot.writeFieldEnd();
1633
    }
1634
    if (this.phone != null) {
1635
      oprot.writeFieldBegin(PHONE_FIELD_DESC);
1636
      oprot.writeString(this.phone);
1637
      oprot.writeFieldEnd();
1638
    }
1639
    if (this.fax != null) {
1640
      oprot.writeFieldBegin(FAX_FIELD_DESC);
1641
      oprot.writeString(this.fax);
1642
      oprot.writeFieldEnd();
1643
    }
1644
    if (this.tin != null) {
1645
      oprot.writeFieldBegin(TIN_FIELD_DESC);
1646
      oprot.writeString(this.tin);
1647
      oprot.writeFieldEnd();
1648
    }
1649
    if (this.pan != null) {
1650
      oprot.writeFieldBegin(PAN_FIELD_DESC);
1651
      oprot.writeString(this.pan);
1652
      oprot.writeFieldEnd();
1653
    }
1654
    if (this.headName != null) {
1655
      oprot.writeFieldBegin(HEAD_NAME_FIELD_DESC);
1656
      oprot.writeString(this.headName);
1657
      oprot.writeFieldEnd();
1658
    }
1659
    if (this.headDesignation != null) {
1660
      oprot.writeFieldBegin(HEAD_DESIGNATION_FIELD_DESC);
1661
      oprot.writeString(this.headDesignation);
1662
      oprot.writeFieldEnd();
1663
    }
1664
    if (this.headEmail != null) {
1665
      oprot.writeFieldBegin(HEAD_EMAIL_FIELD_DESC);
1666
      oprot.writeString(this.headEmail);
1667
      oprot.writeFieldEnd();
1668
    }
1669
    if (this.contactName != null) {
1670
      oprot.writeFieldBegin(CONTACT_NAME_FIELD_DESC);
1671
      oprot.writeString(this.contactName);
1672
      oprot.writeFieldEnd();
1673
    }
1674
    if (this.contactPhone != null) {
1675
      oprot.writeFieldBegin(CONTACT_PHONE_FIELD_DESC);
1676
      oprot.writeString(this.contactPhone);
1677
      oprot.writeFieldEnd();
1678
    }
1679
    if (this.contactFax != null) {
1680
      oprot.writeFieldBegin(CONTACT_FAX_FIELD_DESC);
1681
      oprot.writeString(this.contactFax);
1682
      oprot.writeFieldEnd();
1683
    }
1684
    if (this.contactEmail != null) {
1685
      oprot.writeFieldBegin(CONTACT_EMAIL_FIELD_DESC);
1686
      oprot.writeString(this.contactEmail);
1687
      oprot.writeFieldEnd();
1688
    }
1689
    if (this.registeredAddress != null) {
1690
      oprot.writeFieldBegin(REGISTERED_ADDRESS_FIELD_DESC);
1691
      oprot.writeString(this.registeredAddress);
1692
      oprot.writeFieldEnd();
1693
    }
1694
    if (this.communicationAddress != null) {
1695
      oprot.writeFieldBegin(COMMUNICATION_ADDRESS_FIELD_DESC);
1696
      oprot.writeString(this.communicationAddress);
1697
      oprot.writeFieldEnd();
1698
    }
10295 amar.kumar 1699
    oprot.writeFieldBegin(STATE_ID_FIELD_DESC);
1700
    oprot.writeI64(this.stateId);
1701
    oprot.writeFieldEnd();
14072 manish.sha 1702
    oprot.writeFieldBegin(PO_VALIDITY_LIMIT_FIELD_DESC);
1703
    oprot.writeI64(this.poValidityLimit);
1704
    oprot.writeFieldEnd();
21844 amit.gupta 1705
    if (this.gstin != null) {
1706
      oprot.writeFieldBegin(GSTIN_FIELD_DESC);
1707
      oprot.writeString(this.gstin);
1708
      oprot.writeFieldEnd();
1709
    }
23081 amit.gupta 1710
    if (this.tnc != null) {
1711
      oprot.writeFieldBegin(TNC_FIELD_DESC);
1712
      oprot.writeString(this.tnc);
1713
      oprot.writeFieldEnd();
1714
    }
4496 mandeep.dh 1715
    oprot.writeFieldStop();
1716
    oprot.writeStructEnd();
1717
  }
1718
 
1719
  @Override
1720
  public String toString() {
1721
    StringBuilder sb = new StringBuilder("Supplier(");
1722
    boolean first = true;
1723
 
1724
    sb.append("id:");
1725
    sb.append(this.id);
1726
    first = false;
1727
    if (!first) sb.append(", ");
1728
    sb.append("name:");
1729
    if (this.name == null) {
1730
      sb.append("null");
1731
    } else {
1732
      sb.append(this.name);
1733
    }
1734
    first = false;
1735
    if (!first) sb.append(", ");
1736
    sb.append("phone:");
1737
    if (this.phone == null) {
1738
      sb.append("null");
1739
    } else {
1740
      sb.append(this.phone);
1741
    }
1742
    first = false;
1743
    if (!first) sb.append(", ");
1744
    sb.append("fax:");
1745
    if (this.fax == null) {
1746
      sb.append("null");
1747
    } else {
1748
      sb.append(this.fax);
1749
    }
1750
    first = false;
1751
    if (!first) sb.append(", ");
1752
    sb.append("tin:");
1753
    if (this.tin == null) {
1754
      sb.append("null");
1755
    } else {
1756
      sb.append(this.tin);
1757
    }
1758
    first = false;
1759
    if (!first) sb.append(", ");
1760
    sb.append("pan:");
1761
    if (this.pan == null) {
1762
      sb.append("null");
1763
    } else {
1764
      sb.append(this.pan);
1765
    }
1766
    first = false;
1767
    if (!first) sb.append(", ");
1768
    sb.append("headName:");
1769
    if (this.headName == null) {
1770
      sb.append("null");
1771
    } else {
1772
      sb.append(this.headName);
1773
    }
1774
    first = false;
1775
    if (!first) sb.append(", ");
1776
    sb.append("headDesignation:");
1777
    if (this.headDesignation == null) {
1778
      sb.append("null");
1779
    } else {
1780
      sb.append(this.headDesignation);
1781
    }
1782
    first = false;
1783
    if (!first) sb.append(", ");
1784
    sb.append("headEmail:");
1785
    if (this.headEmail == null) {
1786
      sb.append("null");
1787
    } else {
1788
      sb.append(this.headEmail);
1789
    }
1790
    first = false;
1791
    if (!first) sb.append(", ");
1792
    sb.append("contactName:");
1793
    if (this.contactName == null) {
1794
      sb.append("null");
1795
    } else {
1796
      sb.append(this.contactName);
1797
    }
1798
    first = false;
1799
    if (!first) sb.append(", ");
1800
    sb.append("contactPhone:");
1801
    if (this.contactPhone == null) {
1802
      sb.append("null");
1803
    } else {
1804
      sb.append(this.contactPhone);
1805
    }
1806
    first = false;
1807
    if (!first) sb.append(", ");
1808
    sb.append("contactFax:");
1809
    if (this.contactFax == null) {
1810
      sb.append("null");
1811
    } else {
1812
      sb.append(this.contactFax);
1813
    }
1814
    first = false;
1815
    if (!first) sb.append(", ");
1816
    sb.append("contactEmail:");
1817
    if (this.contactEmail == null) {
1818
      sb.append("null");
1819
    } else {
1820
      sb.append(this.contactEmail);
1821
    }
1822
    first = false;
1823
    if (!first) sb.append(", ");
1824
    sb.append("registeredAddress:");
1825
    if (this.registeredAddress == null) {
1826
      sb.append("null");
1827
    } else {
1828
      sb.append(this.registeredAddress);
1829
    }
1830
    first = false;
1831
    if (!first) sb.append(", ");
1832
    sb.append("communicationAddress:");
1833
    if (this.communicationAddress == null) {
1834
      sb.append("null");
1835
    } else {
1836
      sb.append(this.communicationAddress);
1837
    }
1838
    first = false;
10295 amar.kumar 1839
    if (!first) sb.append(", ");
1840
    sb.append("stateId:");
1841
    sb.append(this.stateId);
1842
    first = false;
14072 manish.sha 1843
    if (!first) sb.append(", ");
1844
    sb.append("poValidityLimit:");
1845
    sb.append(this.poValidityLimit);
1846
    first = false;
21844 amit.gupta 1847
    if (!first) sb.append(", ");
1848
    sb.append("gstin:");
1849
    if (this.gstin == null) {
1850
      sb.append("null");
1851
    } else {
1852
      sb.append(this.gstin);
1853
    }
1854
    first = false;
23081 amit.gupta 1855
    if (!first) sb.append(", ");
1856
    sb.append("tnc:");
1857
    if (this.tnc == null) {
1858
      sb.append("null");
1859
    } else {
1860
      sb.append(this.tnc);
1861
    }
1862
    first = false;
4496 mandeep.dh 1863
    sb.append(")");
1864
    return sb.toString();
1865
  }
1866
 
1867
  public void validate() throws org.apache.thrift.TException {
1868
    // check for required fields
1869
  }
1870
 
1871
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1872
    try {
1873
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1874
    } catch (org.apache.thrift.TException te) {
1875
      throw new java.io.IOException(te);
1876
    }
1877
  }
1878
 
1879
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1880
    try {
1881
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
1882
      __isset_bit_vector = new BitSet(1);
1883
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1884
    } catch (org.apache.thrift.TException te) {
1885
      throw new java.io.IOException(te);
1886
    }
1887
  }
1888
 
1889
}
1890