Subversion Repositories SmartDukaan

Rev

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