Subversion Repositories SmartDukaan

Rev

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

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