Subversion Repositories SmartDukaan

Rev

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