Subversion Repositories SmartDukaan

Rev

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

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