Subversion Repositories SmartDukaan

Rev

Rev 7096 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
7096 anupam.sin 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.order;
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 HotspotStore implements org.apache.thrift.TBase<HotspotStore, HotspotStore._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("HotspotStore");
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 HOTSPOT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("hotspotId", org.apache.thrift.protocol.TType.STRING, (short)2);
28
  private static final org.apache.thrift.protocol.TField COMPANY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("companyId", org.apache.thrift.protocol.TType.I64, (short)3);
29
  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)4);
30
  private static final org.apache.thrift.protocol.TField CITY_FIELD_DESC = new org.apache.thrift.protocol.TField("city", org.apache.thrift.protocol.TType.STRING, (short)5);
31
  private static final org.apache.thrift.protocol.TField COLLECTED_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("collectedAmount", org.apache.thrift.protocol.TType.I64, (short)6);
32
  private static final org.apache.thrift.protocol.TField AVAILABLE_LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("availableLimit", org.apache.thrift.protocol.TType.I64, (short)7);
33
  private static final org.apache.thrift.protocol.TField CREDIT_LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("creditLimit", org.apache.thrift.protocol.TType.I64, (short)8);
34
  private static final org.apache.thrift.protocol.TField SALT_FIELD_DESC = new org.apache.thrift.protocol.TField("salt", org.apache.thrift.protocol.TType.STRING, (short)9);
35
  private static final org.apache.thrift.protocol.TField PASSWORD_FIELD_DESC = new org.apache.thrift.protocol.TField("password", org.apache.thrift.protocol.TType.STRING, (short)10);
36
  private static final org.apache.thrift.protocol.TField IS_ACTIVE_FIELD_DESC = new org.apache.thrift.protocol.TField("isActive", org.apache.thrift.protocol.TType.BOOL, (short)11);
37
  private static final org.apache.thrift.protocol.TField CIRCLE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("circleId", org.apache.thrift.protocol.TType.I64, (short)12);
7169 anupam.sin 38
  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)13);
7096 anupam.sin 39
 
40
  private long id; // required
41
  private String hotspotId; // required
42
  private long companyId; // required
43
  private String name; // required
44
  private String city; // required
45
  private long collectedAmount; // required
46
  private long availableLimit; // required
47
  private long creditLimit; // required
48
  private String salt; // required
49
  private String password; // required
50
  private boolean isActive; // required
51
  private long circleId; // required
7169 anupam.sin 52
  private String email; // required
7096 anupam.sin 53
 
54
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
55
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
56
    ID((short)1, "id"),
57
    HOTSPOT_ID((short)2, "hotspotId"),
58
    COMPANY_ID((short)3, "companyId"),
59
    NAME((short)4, "name"),
60
    CITY((short)5, "city"),
61
    COLLECTED_AMOUNT((short)6, "collectedAmount"),
62
    AVAILABLE_LIMIT((short)7, "availableLimit"),
63
    CREDIT_LIMIT((short)8, "creditLimit"),
64
    SALT((short)9, "salt"),
65
    PASSWORD((short)10, "password"),
66
    IS_ACTIVE((short)11, "isActive"),
7169 anupam.sin 67
    CIRCLE_ID((short)12, "circleId"),
68
    EMAIL((short)13, "email");
7096 anupam.sin 69
 
70
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
71
 
72
    static {
73
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
74
        byName.put(field.getFieldName(), field);
75
      }
76
    }
77
 
78
    /**
79
     * Find the _Fields constant that matches fieldId, or null if its not found.
80
     */
81
    public static _Fields findByThriftId(int fieldId) {
82
      switch(fieldId) {
83
        case 1: // ID
84
          return ID;
85
        case 2: // HOTSPOT_ID
86
          return HOTSPOT_ID;
87
        case 3: // COMPANY_ID
88
          return COMPANY_ID;
89
        case 4: // NAME
90
          return NAME;
91
        case 5: // CITY
92
          return CITY;
93
        case 6: // COLLECTED_AMOUNT
94
          return COLLECTED_AMOUNT;
95
        case 7: // AVAILABLE_LIMIT
96
          return AVAILABLE_LIMIT;
97
        case 8: // CREDIT_LIMIT
98
          return CREDIT_LIMIT;
99
        case 9: // SALT
100
          return SALT;
101
        case 10: // PASSWORD
102
          return PASSWORD;
103
        case 11: // IS_ACTIVE
104
          return IS_ACTIVE;
105
        case 12: // CIRCLE_ID
106
          return CIRCLE_ID;
7169 anupam.sin 107
        case 13: // EMAIL
108
          return EMAIL;
7096 anupam.sin 109
        default:
110
          return null;
111
      }
112
    }
113
 
114
    /**
115
     * Find the _Fields constant that matches fieldId, throwing an exception
116
     * if it is not found.
117
     */
118
    public static _Fields findByThriftIdOrThrow(int fieldId) {
119
      _Fields fields = findByThriftId(fieldId);
120
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
121
      return fields;
122
    }
123
 
124
    /**
125
     * Find the _Fields constant that matches name, or null if its not found.
126
     */
127
    public static _Fields findByName(String name) {
128
      return byName.get(name);
129
    }
130
 
131
    private final short _thriftId;
132
    private final String _fieldName;
133
 
134
    _Fields(short thriftId, String fieldName) {
135
      _thriftId = thriftId;
136
      _fieldName = fieldName;
137
    }
138
 
139
    public short getThriftFieldId() {
140
      return _thriftId;
141
    }
142
 
143
    public String getFieldName() {
144
      return _fieldName;
145
    }
146
  }
147
 
148
  // isset id assignments
149
  private static final int __ID_ISSET_ID = 0;
150
  private static final int __COMPANYID_ISSET_ID = 1;
151
  private static final int __COLLECTEDAMOUNT_ISSET_ID = 2;
152
  private static final int __AVAILABLELIMIT_ISSET_ID = 3;
153
  private static final int __CREDITLIMIT_ISSET_ID = 4;
154
  private static final int __ISACTIVE_ISSET_ID = 5;
155
  private static final int __CIRCLEID_ISSET_ID = 6;
156
  private BitSet __isset_bit_vector = new BitSet(7);
157
 
158
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
159
  static {
160
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
161
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
162
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
163
    tmpMap.put(_Fields.HOTSPOT_ID, new org.apache.thrift.meta_data.FieldMetaData("hotspotId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
164
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
165
    tmpMap.put(_Fields.COMPANY_ID, new org.apache.thrift.meta_data.FieldMetaData("companyId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
166
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
167
    tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
168
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
169
    tmpMap.put(_Fields.CITY, new org.apache.thrift.meta_data.FieldMetaData("city", org.apache.thrift.TFieldRequirementType.DEFAULT, 
170
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
171
    tmpMap.put(_Fields.COLLECTED_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("collectedAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
172
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
173
    tmpMap.put(_Fields.AVAILABLE_LIMIT, new org.apache.thrift.meta_data.FieldMetaData("availableLimit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
174
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
175
    tmpMap.put(_Fields.CREDIT_LIMIT, new org.apache.thrift.meta_data.FieldMetaData("creditLimit", org.apache.thrift.TFieldRequirementType.DEFAULT, 
176
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
177
    tmpMap.put(_Fields.SALT, new org.apache.thrift.meta_data.FieldMetaData("salt", org.apache.thrift.TFieldRequirementType.DEFAULT, 
178
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
179
    tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
180
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
181
    tmpMap.put(_Fields.IS_ACTIVE, new org.apache.thrift.meta_data.FieldMetaData("isActive", org.apache.thrift.TFieldRequirementType.DEFAULT, 
182
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
183
    tmpMap.put(_Fields.CIRCLE_ID, new org.apache.thrift.meta_data.FieldMetaData("circleId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
184
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7169 anupam.sin 185
    tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
186
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7096 anupam.sin 187
    metaDataMap = Collections.unmodifiableMap(tmpMap);
188
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(HotspotStore.class, metaDataMap);
189
  }
190
 
191
  public HotspotStore() {
192
  }
193
 
194
  public HotspotStore(
195
    long id,
196
    String hotspotId,
197
    long companyId,
198
    String name,
199
    String city,
200
    long collectedAmount,
201
    long availableLimit,
202
    long creditLimit,
203
    String salt,
204
    String password,
205
    boolean isActive,
7169 anupam.sin 206
    long circleId,
207
    String email)
7096 anupam.sin 208
  {
209
    this();
210
    this.id = id;
211
    setIdIsSet(true);
212
    this.hotspotId = hotspotId;
213
    this.companyId = companyId;
214
    setCompanyIdIsSet(true);
215
    this.name = name;
216
    this.city = city;
217
    this.collectedAmount = collectedAmount;
218
    setCollectedAmountIsSet(true);
219
    this.availableLimit = availableLimit;
220
    setAvailableLimitIsSet(true);
221
    this.creditLimit = creditLimit;
222
    setCreditLimitIsSet(true);
223
    this.salt = salt;
224
    this.password = password;
225
    this.isActive = isActive;
226
    setIsActiveIsSet(true);
227
    this.circleId = circleId;
228
    setCircleIdIsSet(true);
7169 anupam.sin 229
    this.email = email;
7096 anupam.sin 230
  }
231
 
232
  /**
233
   * Performs a deep copy on <i>other</i>.
234
   */
235
  public HotspotStore(HotspotStore other) {
236
    __isset_bit_vector.clear();
237
    __isset_bit_vector.or(other.__isset_bit_vector);
238
    this.id = other.id;
239
    if (other.isSetHotspotId()) {
240
      this.hotspotId = other.hotspotId;
241
    }
242
    this.companyId = other.companyId;
243
    if (other.isSetName()) {
244
      this.name = other.name;
245
    }
246
    if (other.isSetCity()) {
247
      this.city = other.city;
248
    }
249
    this.collectedAmount = other.collectedAmount;
250
    this.availableLimit = other.availableLimit;
251
    this.creditLimit = other.creditLimit;
252
    if (other.isSetSalt()) {
253
      this.salt = other.salt;
254
    }
255
    if (other.isSetPassword()) {
256
      this.password = other.password;
257
    }
258
    this.isActive = other.isActive;
259
    this.circleId = other.circleId;
7169 anupam.sin 260
    if (other.isSetEmail()) {
261
      this.email = other.email;
262
    }
7096 anupam.sin 263
  }
264
 
265
  public HotspotStore deepCopy() {
266
    return new HotspotStore(this);
267
  }
268
 
269
  @Override
270
  public void clear() {
271
    setIdIsSet(false);
272
    this.id = 0;
273
    this.hotspotId = null;
274
    setCompanyIdIsSet(false);
275
    this.companyId = 0;
276
    this.name = null;
277
    this.city = null;
278
    setCollectedAmountIsSet(false);
279
    this.collectedAmount = 0;
280
    setAvailableLimitIsSet(false);
281
    this.availableLimit = 0;
282
    setCreditLimitIsSet(false);
283
    this.creditLimit = 0;
284
    this.salt = null;
285
    this.password = null;
286
    setIsActiveIsSet(false);
287
    this.isActive = false;
288
    setCircleIdIsSet(false);
289
    this.circleId = 0;
7169 anupam.sin 290
    this.email = null;
7096 anupam.sin 291
  }
292
 
293
  public long getId() {
294
    return this.id;
295
  }
296
 
297
  public void setId(long id) {
298
    this.id = id;
299
    setIdIsSet(true);
300
  }
301
 
302
  public void unsetId() {
303
    __isset_bit_vector.clear(__ID_ISSET_ID);
304
  }
305
 
306
  /** Returns true if field id is set (has been assigned a value) and false otherwise */
307
  public boolean isSetId() {
308
    return __isset_bit_vector.get(__ID_ISSET_ID);
309
  }
310
 
311
  public void setIdIsSet(boolean value) {
312
    __isset_bit_vector.set(__ID_ISSET_ID, value);
313
  }
314
 
315
  public String getHotspotId() {
316
    return this.hotspotId;
317
  }
318
 
319
  public void setHotspotId(String hotspotId) {
320
    this.hotspotId = hotspotId;
321
  }
322
 
323
  public void unsetHotspotId() {
324
    this.hotspotId = null;
325
  }
326
 
327
  /** Returns true if field hotspotId is set (has been assigned a value) and false otherwise */
328
  public boolean isSetHotspotId() {
329
    return this.hotspotId != null;
330
  }
331
 
332
  public void setHotspotIdIsSet(boolean value) {
333
    if (!value) {
334
      this.hotspotId = null;
335
    }
336
  }
337
 
338
  public long getCompanyId() {
339
    return this.companyId;
340
  }
341
 
342
  public void setCompanyId(long companyId) {
343
    this.companyId = companyId;
344
    setCompanyIdIsSet(true);
345
  }
346
 
347
  public void unsetCompanyId() {
348
    __isset_bit_vector.clear(__COMPANYID_ISSET_ID);
349
  }
350
 
351
  /** Returns true if field companyId is set (has been assigned a value) and false otherwise */
352
  public boolean isSetCompanyId() {
353
    return __isset_bit_vector.get(__COMPANYID_ISSET_ID);
354
  }
355
 
356
  public void setCompanyIdIsSet(boolean value) {
357
    __isset_bit_vector.set(__COMPANYID_ISSET_ID, value);
358
  }
359
 
360
  public String getName() {
361
    return this.name;
362
  }
363
 
364
  public void setName(String name) {
365
    this.name = name;
366
  }
367
 
368
  public void unsetName() {
369
    this.name = null;
370
  }
371
 
372
  /** Returns true if field name is set (has been assigned a value) and false otherwise */
373
  public boolean isSetName() {
374
    return this.name != null;
375
  }
376
 
377
  public void setNameIsSet(boolean value) {
378
    if (!value) {
379
      this.name = null;
380
    }
381
  }
382
 
383
  public String getCity() {
384
    return this.city;
385
  }
386
 
387
  public void setCity(String city) {
388
    this.city = city;
389
  }
390
 
391
  public void unsetCity() {
392
    this.city = null;
393
  }
394
 
395
  /** Returns true if field city is set (has been assigned a value) and false otherwise */
396
  public boolean isSetCity() {
397
    return this.city != null;
398
  }
399
 
400
  public void setCityIsSet(boolean value) {
401
    if (!value) {
402
      this.city = null;
403
    }
404
  }
405
 
406
  public long getCollectedAmount() {
407
    return this.collectedAmount;
408
  }
409
 
410
  public void setCollectedAmount(long collectedAmount) {
411
    this.collectedAmount = collectedAmount;
412
    setCollectedAmountIsSet(true);
413
  }
414
 
415
  public void unsetCollectedAmount() {
416
    __isset_bit_vector.clear(__COLLECTEDAMOUNT_ISSET_ID);
417
  }
418
 
419
  /** Returns true if field collectedAmount is set (has been assigned a value) and false otherwise */
420
  public boolean isSetCollectedAmount() {
421
    return __isset_bit_vector.get(__COLLECTEDAMOUNT_ISSET_ID);
422
  }
423
 
424
  public void setCollectedAmountIsSet(boolean value) {
425
    __isset_bit_vector.set(__COLLECTEDAMOUNT_ISSET_ID, value);
426
  }
427
 
428
  public long getAvailableLimit() {
429
    return this.availableLimit;
430
  }
431
 
432
  public void setAvailableLimit(long availableLimit) {
433
    this.availableLimit = availableLimit;
434
    setAvailableLimitIsSet(true);
435
  }
436
 
437
  public void unsetAvailableLimit() {
438
    __isset_bit_vector.clear(__AVAILABLELIMIT_ISSET_ID);
439
  }
440
 
441
  /** Returns true if field availableLimit is set (has been assigned a value) and false otherwise */
442
  public boolean isSetAvailableLimit() {
443
    return __isset_bit_vector.get(__AVAILABLELIMIT_ISSET_ID);
444
  }
445
 
446
  public void setAvailableLimitIsSet(boolean value) {
447
    __isset_bit_vector.set(__AVAILABLELIMIT_ISSET_ID, value);
448
  }
449
 
450
  public long getCreditLimit() {
451
    return this.creditLimit;
452
  }
453
 
454
  public void setCreditLimit(long creditLimit) {
455
    this.creditLimit = creditLimit;
456
    setCreditLimitIsSet(true);
457
  }
458
 
459
  public void unsetCreditLimit() {
460
    __isset_bit_vector.clear(__CREDITLIMIT_ISSET_ID);
461
  }
462
 
463
  /** Returns true if field creditLimit is set (has been assigned a value) and false otherwise */
464
  public boolean isSetCreditLimit() {
465
    return __isset_bit_vector.get(__CREDITLIMIT_ISSET_ID);
466
  }
467
 
468
  public void setCreditLimitIsSet(boolean value) {
469
    __isset_bit_vector.set(__CREDITLIMIT_ISSET_ID, value);
470
  }
471
 
472
  public String getSalt() {
473
    return this.salt;
474
  }
475
 
476
  public void setSalt(String salt) {
477
    this.salt = salt;
478
  }
479
 
480
  public void unsetSalt() {
481
    this.salt = null;
482
  }
483
 
484
  /** Returns true if field salt is set (has been assigned a value) and false otherwise */
485
  public boolean isSetSalt() {
486
    return this.salt != null;
487
  }
488
 
489
  public void setSaltIsSet(boolean value) {
490
    if (!value) {
491
      this.salt = null;
492
    }
493
  }
494
 
495
  public String getPassword() {
496
    return this.password;
497
  }
498
 
499
  public void setPassword(String password) {
500
    this.password = password;
501
  }
502
 
503
  public void unsetPassword() {
504
    this.password = null;
505
  }
506
 
507
  /** Returns true if field password is set (has been assigned a value) and false otherwise */
508
  public boolean isSetPassword() {
509
    return this.password != null;
510
  }
511
 
512
  public void setPasswordIsSet(boolean value) {
513
    if (!value) {
514
      this.password = null;
515
    }
516
  }
517
 
518
  public boolean isIsActive() {
519
    return this.isActive;
520
  }
521
 
522
  public void setIsActive(boolean isActive) {
523
    this.isActive = isActive;
524
    setIsActiveIsSet(true);
525
  }
526
 
527
  public void unsetIsActive() {
528
    __isset_bit_vector.clear(__ISACTIVE_ISSET_ID);
529
  }
530
 
531
  /** Returns true if field isActive is set (has been assigned a value) and false otherwise */
532
  public boolean isSetIsActive() {
533
    return __isset_bit_vector.get(__ISACTIVE_ISSET_ID);
534
  }
535
 
536
  public void setIsActiveIsSet(boolean value) {
537
    __isset_bit_vector.set(__ISACTIVE_ISSET_ID, value);
538
  }
539
 
540
  public long getCircleId() {
541
    return this.circleId;
542
  }
543
 
544
  public void setCircleId(long circleId) {
545
    this.circleId = circleId;
546
    setCircleIdIsSet(true);
547
  }
548
 
549
  public void unsetCircleId() {
550
    __isset_bit_vector.clear(__CIRCLEID_ISSET_ID);
551
  }
552
 
553
  /** Returns true if field circleId is set (has been assigned a value) and false otherwise */
554
  public boolean isSetCircleId() {
555
    return __isset_bit_vector.get(__CIRCLEID_ISSET_ID);
556
  }
557
 
558
  public void setCircleIdIsSet(boolean value) {
559
    __isset_bit_vector.set(__CIRCLEID_ISSET_ID, value);
560
  }
561
 
7169 anupam.sin 562
  public String getEmail() {
563
    return this.email;
564
  }
565
 
566
  public void setEmail(String email) {
567
    this.email = email;
568
  }
569
 
570
  public void unsetEmail() {
571
    this.email = null;
572
  }
573
 
574
  /** Returns true if field email is set (has been assigned a value) and false otherwise */
575
  public boolean isSetEmail() {
576
    return this.email != null;
577
  }
578
 
579
  public void setEmailIsSet(boolean value) {
580
    if (!value) {
581
      this.email = null;
582
    }
583
  }
584
 
7096 anupam.sin 585
  public void setFieldValue(_Fields field, Object value) {
586
    switch (field) {
587
    case ID:
588
      if (value == null) {
589
        unsetId();
590
      } else {
591
        setId((Long)value);
592
      }
593
      break;
594
 
595
    case HOTSPOT_ID:
596
      if (value == null) {
597
        unsetHotspotId();
598
      } else {
599
        setHotspotId((String)value);
600
      }
601
      break;
602
 
603
    case COMPANY_ID:
604
      if (value == null) {
605
        unsetCompanyId();
606
      } else {
607
        setCompanyId((Long)value);
608
      }
609
      break;
610
 
611
    case NAME:
612
      if (value == null) {
613
        unsetName();
614
      } else {
615
        setName((String)value);
616
      }
617
      break;
618
 
619
    case CITY:
620
      if (value == null) {
621
        unsetCity();
622
      } else {
623
        setCity((String)value);
624
      }
625
      break;
626
 
627
    case COLLECTED_AMOUNT:
628
      if (value == null) {
629
        unsetCollectedAmount();
630
      } else {
631
        setCollectedAmount((Long)value);
632
      }
633
      break;
634
 
635
    case AVAILABLE_LIMIT:
636
      if (value == null) {
637
        unsetAvailableLimit();
638
      } else {
639
        setAvailableLimit((Long)value);
640
      }
641
      break;
642
 
643
    case CREDIT_LIMIT:
644
      if (value == null) {
645
        unsetCreditLimit();
646
      } else {
647
        setCreditLimit((Long)value);
648
      }
649
      break;
650
 
651
    case SALT:
652
      if (value == null) {
653
        unsetSalt();
654
      } else {
655
        setSalt((String)value);
656
      }
657
      break;
658
 
659
    case PASSWORD:
660
      if (value == null) {
661
        unsetPassword();
662
      } else {
663
        setPassword((String)value);
664
      }
665
      break;
666
 
667
    case IS_ACTIVE:
668
      if (value == null) {
669
        unsetIsActive();
670
      } else {
671
        setIsActive((Boolean)value);
672
      }
673
      break;
674
 
675
    case CIRCLE_ID:
676
      if (value == null) {
677
        unsetCircleId();
678
      } else {
679
        setCircleId((Long)value);
680
      }
681
      break;
682
 
7169 anupam.sin 683
    case EMAIL:
684
      if (value == null) {
685
        unsetEmail();
686
      } else {
687
        setEmail((String)value);
688
      }
689
      break;
690
 
7096 anupam.sin 691
    }
692
  }
693
 
694
  public Object getFieldValue(_Fields field) {
695
    switch (field) {
696
    case ID:
697
      return Long.valueOf(getId());
698
 
699
    case HOTSPOT_ID:
700
      return getHotspotId();
701
 
702
    case COMPANY_ID:
703
      return Long.valueOf(getCompanyId());
704
 
705
    case NAME:
706
      return getName();
707
 
708
    case CITY:
709
      return getCity();
710
 
711
    case COLLECTED_AMOUNT:
712
      return Long.valueOf(getCollectedAmount());
713
 
714
    case AVAILABLE_LIMIT:
715
      return Long.valueOf(getAvailableLimit());
716
 
717
    case CREDIT_LIMIT:
718
      return Long.valueOf(getCreditLimit());
719
 
720
    case SALT:
721
      return getSalt();
722
 
723
    case PASSWORD:
724
      return getPassword();
725
 
726
    case IS_ACTIVE:
727
      return Boolean.valueOf(isIsActive());
728
 
729
    case CIRCLE_ID:
730
      return Long.valueOf(getCircleId());
731
 
7169 anupam.sin 732
    case EMAIL:
733
      return getEmail();
734
 
7096 anupam.sin 735
    }
736
    throw new IllegalStateException();
737
  }
738
 
739
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
740
  public boolean isSet(_Fields field) {
741
    if (field == null) {
742
      throw new IllegalArgumentException();
743
    }
744
 
745
    switch (field) {
746
    case ID:
747
      return isSetId();
748
    case HOTSPOT_ID:
749
      return isSetHotspotId();
750
    case COMPANY_ID:
751
      return isSetCompanyId();
752
    case NAME:
753
      return isSetName();
754
    case CITY:
755
      return isSetCity();
756
    case COLLECTED_AMOUNT:
757
      return isSetCollectedAmount();
758
    case AVAILABLE_LIMIT:
759
      return isSetAvailableLimit();
760
    case CREDIT_LIMIT:
761
      return isSetCreditLimit();
762
    case SALT:
763
      return isSetSalt();
764
    case PASSWORD:
765
      return isSetPassword();
766
    case IS_ACTIVE:
767
      return isSetIsActive();
768
    case CIRCLE_ID:
769
      return isSetCircleId();
7169 anupam.sin 770
    case EMAIL:
771
      return isSetEmail();
7096 anupam.sin 772
    }
773
    throw new IllegalStateException();
774
  }
775
 
776
  @Override
777
  public boolean equals(Object that) {
778
    if (that == null)
779
      return false;
780
    if (that instanceof HotspotStore)
781
      return this.equals((HotspotStore)that);
782
    return false;
783
  }
784
 
785
  public boolean equals(HotspotStore that) {
786
    if (that == null)
787
      return false;
788
 
789
    boolean this_present_id = true;
790
    boolean that_present_id = true;
791
    if (this_present_id || that_present_id) {
792
      if (!(this_present_id && that_present_id))
793
        return false;
794
      if (this.id != that.id)
795
        return false;
796
    }
797
 
798
    boolean this_present_hotspotId = true && this.isSetHotspotId();
799
    boolean that_present_hotspotId = true && that.isSetHotspotId();
800
    if (this_present_hotspotId || that_present_hotspotId) {
801
      if (!(this_present_hotspotId && that_present_hotspotId))
802
        return false;
803
      if (!this.hotspotId.equals(that.hotspotId))
804
        return false;
805
    }
806
 
807
    boolean this_present_companyId = true;
808
    boolean that_present_companyId = true;
809
    if (this_present_companyId || that_present_companyId) {
810
      if (!(this_present_companyId && that_present_companyId))
811
        return false;
812
      if (this.companyId != that.companyId)
813
        return false;
814
    }
815
 
816
    boolean this_present_name = true && this.isSetName();
817
    boolean that_present_name = true && that.isSetName();
818
    if (this_present_name || that_present_name) {
819
      if (!(this_present_name && that_present_name))
820
        return false;
821
      if (!this.name.equals(that.name))
822
        return false;
823
    }
824
 
825
    boolean this_present_city = true && this.isSetCity();
826
    boolean that_present_city = true && that.isSetCity();
827
    if (this_present_city || that_present_city) {
828
      if (!(this_present_city && that_present_city))
829
        return false;
830
      if (!this.city.equals(that.city))
831
        return false;
832
    }
833
 
834
    boolean this_present_collectedAmount = true;
835
    boolean that_present_collectedAmount = true;
836
    if (this_present_collectedAmount || that_present_collectedAmount) {
837
      if (!(this_present_collectedAmount && that_present_collectedAmount))
838
        return false;
839
      if (this.collectedAmount != that.collectedAmount)
840
        return false;
841
    }
842
 
843
    boolean this_present_availableLimit = true;
844
    boolean that_present_availableLimit = true;
845
    if (this_present_availableLimit || that_present_availableLimit) {
846
      if (!(this_present_availableLimit && that_present_availableLimit))
847
        return false;
848
      if (this.availableLimit != that.availableLimit)
849
        return false;
850
    }
851
 
852
    boolean this_present_creditLimit = true;
853
    boolean that_present_creditLimit = true;
854
    if (this_present_creditLimit || that_present_creditLimit) {
855
      if (!(this_present_creditLimit && that_present_creditLimit))
856
        return false;
857
      if (this.creditLimit != that.creditLimit)
858
        return false;
859
    }
860
 
861
    boolean this_present_salt = true && this.isSetSalt();
862
    boolean that_present_salt = true && that.isSetSalt();
863
    if (this_present_salt || that_present_salt) {
864
      if (!(this_present_salt && that_present_salt))
865
        return false;
866
      if (!this.salt.equals(that.salt))
867
        return false;
868
    }
869
 
870
    boolean this_present_password = true && this.isSetPassword();
871
    boolean that_present_password = true && that.isSetPassword();
872
    if (this_present_password || that_present_password) {
873
      if (!(this_present_password && that_present_password))
874
        return false;
875
      if (!this.password.equals(that.password))
876
        return false;
877
    }
878
 
879
    boolean this_present_isActive = true;
880
    boolean that_present_isActive = true;
881
    if (this_present_isActive || that_present_isActive) {
882
      if (!(this_present_isActive && that_present_isActive))
883
        return false;
884
      if (this.isActive != that.isActive)
885
        return false;
886
    }
887
 
888
    boolean this_present_circleId = true;
889
    boolean that_present_circleId = true;
890
    if (this_present_circleId || that_present_circleId) {
891
      if (!(this_present_circleId && that_present_circleId))
892
        return false;
893
      if (this.circleId != that.circleId)
894
        return false;
895
    }
896
 
7169 anupam.sin 897
    boolean this_present_email = true && this.isSetEmail();
898
    boolean that_present_email = true && that.isSetEmail();
899
    if (this_present_email || that_present_email) {
900
      if (!(this_present_email && that_present_email))
901
        return false;
902
      if (!this.email.equals(that.email))
903
        return false;
904
    }
905
 
7096 anupam.sin 906
    return true;
907
  }
908
 
909
  @Override
910
  public int hashCode() {
911
    return 0;
912
  }
913
 
914
  public int compareTo(HotspotStore other) {
915
    if (!getClass().equals(other.getClass())) {
916
      return getClass().getName().compareTo(other.getClass().getName());
917
    }
918
 
919
    int lastComparison = 0;
920
    HotspotStore typedOther = (HotspotStore)other;
921
 
922
    lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
923
    if (lastComparison != 0) {
924
      return lastComparison;
925
    }
926
    if (isSetId()) {
927
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
928
      if (lastComparison != 0) {
929
        return lastComparison;
930
      }
931
    }
932
    lastComparison = Boolean.valueOf(isSetHotspotId()).compareTo(typedOther.isSetHotspotId());
933
    if (lastComparison != 0) {
934
      return lastComparison;
935
    }
936
    if (isSetHotspotId()) {
937
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hotspotId, typedOther.hotspotId);
938
      if (lastComparison != 0) {
939
        return lastComparison;
940
      }
941
    }
942
    lastComparison = Boolean.valueOf(isSetCompanyId()).compareTo(typedOther.isSetCompanyId());
943
    if (lastComparison != 0) {
944
      return lastComparison;
945
    }
946
    if (isSetCompanyId()) {
947
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.companyId, typedOther.companyId);
948
      if (lastComparison != 0) {
949
        return lastComparison;
950
      }
951
    }
952
    lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
953
    if (lastComparison != 0) {
954
      return lastComparison;
955
    }
956
    if (isSetName()) {
957
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
958
      if (lastComparison != 0) {
959
        return lastComparison;
960
      }
961
    }
962
    lastComparison = Boolean.valueOf(isSetCity()).compareTo(typedOther.isSetCity());
963
    if (lastComparison != 0) {
964
      return lastComparison;
965
    }
966
    if (isSetCity()) {
967
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.city, typedOther.city);
968
      if (lastComparison != 0) {
969
        return lastComparison;
970
      }
971
    }
972
    lastComparison = Boolean.valueOf(isSetCollectedAmount()).compareTo(typedOther.isSetCollectedAmount());
973
    if (lastComparison != 0) {
974
      return lastComparison;
975
    }
976
    if (isSetCollectedAmount()) {
977
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.collectedAmount, typedOther.collectedAmount);
978
      if (lastComparison != 0) {
979
        return lastComparison;
980
      }
981
    }
982
    lastComparison = Boolean.valueOf(isSetAvailableLimit()).compareTo(typedOther.isSetAvailableLimit());
983
    if (lastComparison != 0) {
984
      return lastComparison;
985
    }
986
    if (isSetAvailableLimit()) {
987
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.availableLimit, typedOther.availableLimit);
988
      if (lastComparison != 0) {
989
        return lastComparison;
990
      }
991
    }
992
    lastComparison = Boolean.valueOf(isSetCreditLimit()).compareTo(typedOther.isSetCreditLimit());
993
    if (lastComparison != 0) {
994
      return lastComparison;
995
    }
996
    if (isSetCreditLimit()) {
997
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creditLimit, typedOther.creditLimit);
998
      if (lastComparison != 0) {
999
        return lastComparison;
1000
      }
1001
    }
1002
    lastComparison = Boolean.valueOf(isSetSalt()).compareTo(typedOther.isSetSalt());
1003
    if (lastComparison != 0) {
1004
      return lastComparison;
1005
    }
1006
    if (isSetSalt()) {
1007
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.salt, typedOther.salt);
1008
      if (lastComparison != 0) {
1009
        return lastComparison;
1010
      }
1011
    }
1012
    lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
1013
    if (lastComparison != 0) {
1014
      return lastComparison;
1015
    }
1016
    if (isSetPassword()) {
1017
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
1018
      if (lastComparison != 0) {
1019
        return lastComparison;
1020
      }
1021
    }
1022
    lastComparison = Boolean.valueOf(isSetIsActive()).compareTo(typedOther.isSetIsActive());
1023
    if (lastComparison != 0) {
1024
      return lastComparison;
1025
    }
1026
    if (isSetIsActive()) {
1027
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isActive, typedOther.isActive);
1028
      if (lastComparison != 0) {
1029
        return lastComparison;
1030
      }
1031
    }
1032
    lastComparison = Boolean.valueOf(isSetCircleId()).compareTo(typedOther.isSetCircleId());
1033
    if (lastComparison != 0) {
1034
      return lastComparison;
1035
    }
1036
    if (isSetCircleId()) {
1037
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.circleId, typedOther.circleId);
1038
      if (lastComparison != 0) {
1039
        return lastComparison;
1040
      }
1041
    }
7169 anupam.sin 1042
    lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
1043
    if (lastComparison != 0) {
1044
      return lastComparison;
1045
    }
1046
    if (isSetEmail()) {
1047
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
1048
      if (lastComparison != 0) {
1049
        return lastComparison;
1050
      }
1051
    }
7096 anupam.sin 1052
    return 0;
1053
  }
1054
 
1055
  public _Fields fieldForId(int fieldId) {
1056
    return _Fields.findByThriftId(fieldId);
1057
  }
1058
 
1059
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1060
    org.apache.thrift.protocol.TField field;
1061
    iprot.readStructBegin();
1062
    while (true)
1063
    {
1064
      field = iprot.readFieldBegin();
1065
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1066
        break;
1067
      }
1068
      switch (field.id) {
1069
        case 1: // ID
1070
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1071
            this.id = iprot.readI64();
1072
            setIdIsSet(true);
1073
          } else { 
1074
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1075
          }
1076
          break;
1077
        case 2: // HOTSPOT_ID
1078
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1079
            this.hotspotId = iprot.readString();
1080
          } else { 
1081
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1082
          }
1083
          break;
1084
        case 3: // COMPANY_ID
1085
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1086
            this.companyId = iprot.readI64();
1087
            setCompanyIdIsSet(true);
1088
          } else { 
1089
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1090
          }
1091
          break;
1092
        case 4: // NAME
1093
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1094
            this.name = iprot.readString();
1095
          } else { 
1096
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1097
          }
1098
          break;
1099
        case 5: // CITY
1100
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1101
            this.city = iprot.readString();
1102
          } else { 
1103
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1104
          }
1105
          break;
1106
        case 6: // COLLECTED_AMOUNT
1107
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1108
            this.collectedAmount = iprot.readI64();
1109
            setCollectedAmountIsSet(true);
1110
          } else { 
1111
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1112
          }
1113
          break;
1114
        case 7: // AVAILABLE_LIMIT
1115
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1116
            this.availableLimit = iprot.readI64();
1117
            setAvailableLimitIsSet(true);
1118
          } else { 
1119
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1120
          }
1121
          break;
1122
        case 8: // CREDIT_LIMIT
1123
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1124
            this.creditLimit = iprot.readI64();
1125
            setCreditLimitIsSet(true);
1126
          } else { 
1127
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1128
          }
1129
          break;
1130
        case 9: // SALT
1131
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1132
            this.salt = iprot.readString();
1133
          } else { 
1134
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1135
          }
1136
          break;
1137
        case 10: // PASSWORD
1138
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1139
            this.password = iprot.readString();
1140
          } else { 
1141
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1142
          }
1143
          break;
1144
        case 11: // IS_ACTIVE
1145
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1146
            this.isActive = iprot.readBool();
1147
            setIsActiveIsSet(true);
1148
          } else { 
1149
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1150
          }
1151
          break;
1152
        case 12: // CIRCLE_ID
1153
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1154
            this.circleId = iprot.readI64();
1155
            setCircleIdIsSet(true);
1156
          } else { 
1157
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1158
          }
1159
          break;
7169 anupam.sin 1160
        case 13: // EMAIL
1161
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1162
            this.email = iprot.readString();
1163
          } else { 
1164
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1165
          }
1166
          break;
7096 anupam.sin 1167
        default:
1168
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1169
      }
1170
      iprot.readFieldEnd();
1171
    }
1172
    iprot.readStructEnd();
1173
    validate();
1174
  }
1175
 
1176
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1177
    validate();
1178
 
1179
    oprot.writeStructBegin(STRUCT_DESC);
1180
    oprot.writeFieldBegin(ID_FIELD_DESC);
1181
    oprot.writeI64(this.id);
1182
    oprot.writeFieldEnd();
1183
    if (this.hotspotId != null) {
1184
      oprot.writeFieldBegin(HOTSPOT_ID_FIELD_DESC);
1185
      oprot.writeString(this.hotspotId);
1186
      oprot.writeFieldEnd();
1187
    }
1188
    oprot.writeFieldBegin(COMPANY_ID_FIELD_DESC);
1189
    oprot.writeI64(this.companyId);
1190
    oprot.writeFieldEnd();
1191
    if (this.name != null) {
1192
      oprot.writeFieldBegin(NAME_FIELD_DESC);
1193
      oprot.writeString(this.name);
1194
      oprot.writeFieldEnd();
1195
    }
1196
    if (this.city != null) {
1197
      oprot.writeFieldBegin(CITY_FIELD_DESC);
1198
      oprot.writeString(this.city);
1199
      oprot.writeFieldEnd();
1200
    }
1201
    oprot.writeFieldBegin(COLLECTED_AMOUNT_FIELD_DESC);
1202
    oprot.writeI64(this.collectedAmount);
1203
    oprot.writeFieldEnd();
1204
    oprot.writeFieldBegin(AVAILABLE_LIMIT_FIELD_DESC);
1205
    oprot.writeI64(this.availableLimit);
1206
    oprot.writeFieldEnd();
1207
    oprot.writeFieldBegin(CREDIT_LIMIT_FIELD_DESC);
1208
    oprot.writeI64(this.creditLimit);
1209
    oprot.writeFieldEnd();
1210
    if (this.salt != null) {
1211
      oprot.writeFieldBegin(SALT_FIELD_DESC);
1212
      oprot.writeString(this.salt);
1213
      oprot.writeFieldEnd();
1214
    }
1215
    if (this.password != null) {
1216
      oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
1217
      oprot.writeString(this.password);
1218
      oprot.writeFieldEnd();
1219
    }
1220
    oprot.writeFieldBegin(IS_ACTIVE_FIELD_DESC);
1221
    oprot.writeBool(this.isActive);
1222
    oprot.writeFieldEnd();
1223
    oprot.writeFieldBegin(CIRCLE_ID_FIELD_DESC);
1224
    oprot.writeI64(this.circleId);
1225
    oprot.writeFieldEnd();
7169 anupam.sin 1226
    if (this.email != null) {
1227
      oprot.writeFieldBegin(EMAIL_FIELD_DESC);
1228
      oprot.writeString(this.email);
1229
      oprot.writeFieldEnd();
1230
    }
7096 anupam.sin 1231
    oprot.writeFieldStop();
1232
    oprot.writeStructEnd();
1233
  }
1234
 
1235
  @Override
1236
  public String toString() {
1237
    StringBuilder sb = new StringBuilder("HotspotStore(");
1238
    boolean first = true;
1239
 
1240
    sb.append("id:");
1241
    sb.append(this.id);
1242
    first = false;
1243
    if (!first) sb.append(", ");
1244
    sb.append("hotspotId:");
1245
    if (this.hotspotId == null) {
1246
      sb.append("null");
1247
    } else {
1248
      sb.append(this.hotspotId);
1249
    }
1250
    first = false;
1251
    if (!first) sb.append(", ");
1252
    sb.append("companyId:");
1253
    sb.append(this.companyId);
1254
    first = false;
1255
    if (!first) sb.append(", ");
1256
    sb.append("name:");
1257
    if (this.name == null) {
1258
      sb.append("null");
1259
    } else {
1260
      sb.append(this.name);
1261
    }
1262
    first = false;
1263
    if (!first) sb.append(", ");
1264
    sb.append("city:");
1265
    if (this.city == null) {
1266
      sb.append("null");
1267
    } else {
1268
      sb.append(this.city);
1269
    }
1270
    first = false;
1271
    if (!first) sb.append(", ");
1272
    sb.append("collectedAmount:");
1273
    sb.append(this.collectedAmount);
1274
    first = false;
1275
    if (!first) sb.append(", ");
1276
    sb.append("availableLimit:");
1277
    sb.append(this.availableLimit);
1278
    first = false;
1279
    if (!first) sb.append(", ");
1280
    sb.append("creditLimit:");
1281
    sb.append(this.creditLimit);
1282
    first = false;
1283
    if (!first) sb.append(", ");
1284
    sb.append("salt:");
1285
    if (this.salt == null) {
1286
      sb.append("null");
1287
    } else {
1288
      sb.append(this.salt);
1289
    }
1290
    first = false;
1291
    if (!first) sb.append(", ");
1292
    sb.append("password:");
1293
    if (this.password == null) {
1294
      sb.append("null");
1295
    } else {
1296
      sb.append(this.password);
1297
    }
1298
    first = false;
1299
    if (!first) sb.append(", ");
1300
    sb.append("isActive:");
1301
    sb.append(this.isActive);
1302
    first = false;
1303
    if (!first) sb.append(", ");
1304
    sb.append("circleId:");
1305
    sb.append(this.circleId);
1306
    first = false;
7169 anupam.sin 1307
    if (!first) sb.append(", ");
1308
    sb.append("email:");
1309
    if (this.email == null) {
1310
      sb.append("null");
1311
    } else {
1312
      sb.append(this.email);
1313
    }
1314
    first = false;
7096 anupam.sin 1315
    sb.append(")");
1316
    return sb.toString();
1317
  }
1318
 
1319
  public void validate() throws org.apache.thrift.TException {
1320
    // check for required fields
1321
  }
1322
 
1323
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1324
    try {
1325
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1326
    } catch (org.apache.thrift.TException te) {
1327
      throw new java.io.IOException(te);
1328
    }
1329
  }
1330
 
1331
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1332
    try {
1333
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
1334
      __isset_bit_vector = new BitSet(1);
1335
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1336
    } catch (org.apache.thrift.TException te) {
1337
      throw new java.io.IOException(te);
1338
    }
1339
  }
1340
 
1341
}
1342