Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
7967 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
 
31223 amit.gupta 8
import java.util.*;
7967 anupam.sin 9
 
10
public class HotspotServiceMatrix implements org.apache.thrift.TBase<HotspotServiceMatrix, HotspotServiceMatrix._Fields>, java.io.Serializable, Cloneable {
11
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("HotspotServiceMatrix");
12
 
31223 amit.gupta 13
  private static final org.apache.thrift.protocol.TField STORE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("storeId", org.apache.thrift.protocol.TType.I64, (short) 1);
14
  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);
15
  private static final org.apache.thrift.protocol.TField PICKUP_FROM_STORE_SERVICE_FIELD_DESC = new org.apache.thrift.protocol.TField("pickupFromStoreService", org.apache.thrift.protocol.TType.BOOL, (short) 3);
16
  private static final org.apache.thrift.protocol.TField STORE_WEBSITE_SERVICE_FIELD_DESC = new org.apache.thrift.protocol.TField("storeWebsiteService", org.apache.thrift.protocol.TType.BOOL, (short) 4);
17
  private static final org.apache.thrift.protocol.TField RECHARGE_SERVICE_FIELD_DESC = new org.apache.thrift.protocol.TField("rechargeService", org.apache.thrift.protocol.TType.BOOL, (short) 5);
7967 anupam.sin 18
 
19
  private long storeId; // required
20
  private String hotspotId; // required
21
  private boolean pickupFromStoreService; // required
22
  private boolean storeWebsiteService; // required
23
  private boolean rechargeService; // required
24
 
31223 amit.gupta 25
  /**
26
   * The set of fields this struct contains, along with convenience methods for finding and manipulating them.
27
   */
7967 anupam.sin 28
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31223 amit.gupta 29
    STORE_ID((short) 1, "storeId"),
30
    HOTSPOT_ID((short) 2, "hotspotId"),
31
    PICKUP_FROM_STORE_SERVICE((short) 3, "pickupFromStoreService"),
32
    STORE_WEBSITE_SERVICE((short) 4, "storeWebsiteService"),
33
    RECHARGE_SERVICE((short) 5, "rechargeService");
7967 anupam.sin 34
 
35
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
36
 
37
    static {
38
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
39
        byName.put(field.getFieldName(), field);
40
      }
41
    }
42
 
43
    /**
44
     * Find the _Fields constant that matches fieldId, or null if its not found.
45
     */
46
    public static _Fields findByThriftId(int fieldId) {
47
      switch(fieldId) {
48
        case 1: // STORE_ID
49
          return STORE_ID;
50
        case 2: // HOTSPOT_ID
51
          return HOTSPOT_ID;
52
        case 3: // PICKUP_FROM_STORE_SERVICE
53
          return PICKUP_FROM_STORE_SERVICE;
54
        case 4: // STORE_WEBSITE_SERVICE
55
          return STORE_WEBSITE_SERVICE;
56
        case 5: // RECHARGE_SERVICE
57
          return RECHARGE_SERVICE;
58
        default:
59
          return null;
60
      }
61
    }
62
 
63
    /**
64
     * Find the _Fields constant that matches fieldId, throwing an exception
65
     * if it is not found.
66
     */
67
    public static _Fields findByThriftIdOrThrow(int fieldId) {
68
      _Fields fields = findByThriftId(fieldId);
69
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
70
      return fields;
71
    }
72
 
73
    /**
74
     * Find the _Fields constant that matches name, or null if its not found.
75
     */
76
    public static _Fields findByName(String name) {
77
      return byName.get(name);
78
    }
79
 
80
    private final short _thriftId;
81
    private final String _fieldName;
82
 
83
    _Fields(short thriftId, String fieldName) {
84
      _thriftId = thriftId;
85
      _fieldName = fieldName;
86
    }
87
 
88
    public short getThriftFieldId() {
89
      return _thriftId;
90
    }
91
 
92
    public String getFieldName() {
93
      return _fieldName;
94
    }
95
  }
96
 
97
  // isset id assignments
98
  private static final int __STOREID_ISSET_ID = 0;
99
  private static final int __PICKUPFROMSTORESERVICE_ISSET_ID = 1;
100
  private static final int __STOREWEBSITESERVICE_ISSET_ID = 2;
101
  private static final int __RECHARGESERVICE_ISSET_ID = 3;
102
  private BitSet __isset_bit_vector = new BitSet(4);
103
 
104
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
105
  static {
106
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31223 amit.gupta 107
    tmpMap.put(_Fields.STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("storeId", org.apache.thrift.TFieldRequirementType.DEFAULT,
108
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
109
    tmpMap.put(_Fields.HOTSPOT_ID, new org.apache.thrift.meta_data.FieldMetaData("hotspotId", org.apache.thrift.TFieldRequirementType.DEFAULT,
110
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
111
    tmpMap.put(_Fields.PICKUP_FROM_STORE_SERVICE, new org.apache.thrift.meta_data.FieldMetaData("pickupFromStoreService", org.apache.thrift.TFieldRequirementType.DEFAULT,
112
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
113
    tmpMap.put(_Fields.STORE_WEBSITE_SERVICE, new org.apache.thrift.meta_data.FieldMetaData("storeWebsiteService", org.apache.thrift.TFieldRequirementType.DEFAULT,
114
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
115
    tmpMap.put(_Fields.RECHARGE_SERVICE, new org.apache.thrift.meta_data.FieldMetaData("rechargeService", org.apache.thrift.TFieldRequirementType.DEFAULT,
116
            new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
7967 anupam.sin 117
    metaDataMap = Collections.unmodifiableMap(tmpMap);
118
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(HotspotServiceMatrix.class, metaDataMap);
119
  }
120
 
121
  public HotspotServiceMatrix() {
122
  }
123
 
124
  public HotspotServiceMatrix(
31223 amit.gupta 125
          long storeId,
126
          String hotspotId,
127
          boolean pickupFromStoreService,
128
          boolean storeWebsiteService,
129
          boolean rechargeService) {
7967 anupam.sin 130
    this();
131
    this.storeId = storeId;
132
    setStoreIdIsSet(true);
133
    this.hotspotId = hotspotId;
134
    this.pickupFromStoreService = pickupFromStoreService;
135
    setPickupFromStoreServiceIsSet(true);
136
    this.storeWebsiteService = storeWebsiteService;
137
    setStoreWebsiteServiceIsSet(true);
138
    this.rechargeService = rechargeService;
139
    setRechargeServiceIsSet(true);
140
  }
141
 
142
  /**
143
   * Performs a deep copy on <i>other</i>.
144
   */
145
  public HotspotServiceMatrix(HotspotServiceMatrix other) {
146
    __isset_bit_vector.clear();
147
    __isset_bit_vector.or(other.__isset_bit_vector);
148
    this.storeId = other.storeId;
149
    if (other.isSetHotspotId()) {
150
      this.hotspotId = other.hotspotId;
151
    }
152
    this.pickupFromStoreService = other.pickupFromStoreService;
153
    this.storeWebsiteService = other.storeWebsiteService;
154
    this.rechargeService = other.rechargeService;
155
  }
156
 
157
  public HotspotServiceMatrix deepCopy() {
158
    return new HotspotServiceMatrix(this);
159
  }
160
 
161
  @Override
162
  public void clear() {
163
    setStoreIdIsSet(false);
164
    this.storeId = 0;
165
    this.hotspotId = null;
166
    setPickupFromStoreServiceIsSet(false);
167
    this.pickupFromStoreService = false;
168
    setStoreWebsiteServiceIsSet(false);
169
    this.storeWebsiteService = false;
170
    setRechargeServiceIsSet(false);
171
    this.rechargeService = false;
172
  }
173
 
174
  public long getStoreId() {
175
    return this.storeId;
176
  }
177
 
178
  public void setStoreId(long storeId) {
179
    this.storeId = storeId;
180
    setStoreIdIsSet(true);
181
  }
182
 
183
  public void unsetStoreId() {
184
    __isset_bit_vector.clear(__STOREID_ISSET_ID);
185
  }
186
 
187
  /** Returns true if field storeId is set (has been assigned a value) and false otherwise */
188
  public boolean isSetStoreId() {
189
    return __isset_bit_vector.get(__STOREID_ISSET_ID);
190
  }
191
 
192
  public void setStoreIdIsSet(boolean value) {
193
    __isset_bit_vector.set(__STOREID_ISSET_ID, value);
194
  }
195
 
196
  public String getHotspotId() {
197
    return this.hotspotId;
198
  }
199
 
200
  public void setHotspotId(String hotspotId) {
201
    this.hotspotId = hotspotId;
202
  }
203
 
204
  public void unsetHotspotId() {
205
    this.hotspotId = null;
206
  }
207
 
208
  /** Returns true if field hotspotId is set (has been assigned a value) and false otherwise */
209
  public boolean isSetHotspotId() {
210
    return this.hotspotId != null;
211
  }
212
 
213
  public void setHotspotIdIsSet(boolean value) {
214
    if (!value) {
215
      this.hotspotId = null;
216
    }
217
  }
218
 
219
  public boolean isPickupFromStoreService() {
220
    return this.pickupFromStoreService;
221
  }
222
 
223
  public void setPickupFromStoreService(boolean pickupFromStoreService) {
224
    this.pickupFromStoreService = pickupFromStoreService;
225
    setPickupFromStoreServiceIsSet(true);
226
  }
227
 
228
  public void unsetPickupFromStoreService() {
229
    __isset_bit_vector.clear(__PICKUPFROMSTORESERVICE_ISSET_ID);
230
  }
231
 
232
  /** Returns true if field pickupFromStoreService is set (has been assigned a value) and false otherwise */
233
  public boolean isSetPickupFromStoreService() {
234
    return __isset_bit_vector.get(__PICKUPFROMSTORESERVICE_ISSET_ID);
235
  }
236
 
237
  public void setPickupFromStoreServiceIsSet(boolean value) {
238
    __isset_bit_vector.set(__PICKUPFROMSTORESERVICE_ISSET_ID, value);
239
  }
240
 
241
  public boolean isStoreWebsiteService() {
242
    return this.storeWebsiteService;
243
  }
244
 
245
  public void setStoreWebsiteService(boolean storeWebsiteService) {
246
    this.storeWebsiteService = storeWebsiteService;
247
    setStoreWebsiteServiceIsSet(true);
248
  }
249
 
250
  public void unsetStoreWebsiteService() {
251
    __isset_bit_vector.clear(__STOREWEBSITESERVICE_ISSET_ID);
252
  }
253
 
254
  /** Returns true if field storeWebsiteService is set (has been assigned a value) and false otherwise */
255
  public boolean isSetStoreWebsiteService() {
256
    return __isset_bit_vector.get(__STOREWEBSITESERVICE_ISSET_ID);
257
  }
258
 
259
  public void setStoreWebsiteServiceIsSet(boolean value) {
260
    __isset_bit_vector.set(__STOREWEBSITESERVICE_ISSET_ID, value);
261
  }
262
 
263
  public boolean isRechargeService() {
264
    return this.rechargeService;
265
  }
266
 
267
  public void setRechargeService(boolean rechargeService) {
268
    this.rechargeService = rechargeService;
269
    setRechargeServiceIsSet(true);
270
  }
271
 
272
  public void unsetRechargeService() {
273
    __isset_bit_vector.clear(__RECHARGESERVICE_ISSET_ID);
274
  }
275
 
276
  /** Returns true if field rechargeService is set (has been assigned a value) and false otherwise */
277
  public boolean isSetRechargeService() {
278
    return __isset_bit_vector.get(__RECHARGESERVICE_ISSET_ID);
279
  }
280
 
281
  public void setRechargeServiceIsSet(boolean value) {
282
    __isset_bit_vector.set(__RECHARGESERVICE_ISSET_ID, value);
283
  }
284
 
285
  public void setFieldValue(_Fields field, Object value) {
286
    switch (field) {
287
    case STORE_ID:
288
      if (value == null) {
289
        unsetStoreId();
290
      } else {
291
        setStoreId((Long)value);
292
      }
293
      break;
294
 
295
    case HOTSPOT_ID:
296
      if (value == null) {
297
        unsetHotspotId();
298
      } else {
299
        setHotspotId((String)value);
300
      }
301
      break;
302
 
303
    case PICKUP_FROM_STORE_SERVICE:
304
      if (value == null) {
305
        unsetPickupFromStoreService();
306
      } else {
307
        setPickupFromStoreService((Boolean)value);
308
      }
309
      break;
310
 
311
    case STORE_WEBSITE_SERVICE:
312
      if (value == null) {
313
        unsetStoreWebsiteService();
314
      } else {
315
        setStoreWebsiteService((Boolean)value);
316
      }
317
      break;
318
 
319
    case RECHARGE_SERVICE:
320
      if (value == null) {
321
        unsetRechargeService();
322
      } else {
323
        setRechargeService((Boolean)value);
324
      }
325
      break;
326
 
327
    }
328
  }
329
 
330
  public Object getFieldValue(_Fields field) {
331
    switch (field) {
332
    case STORE_ID:
333
      return Long.valueOf(getStoreId());
334
 
335
    case HOTSPOT_ID:
336
      return getHotspotId();
337
 
338
    case PICKUP_FROM_STORE_SERVICE:
339
      return Boolean.valueOf(isPickupFromStoreService());
340
 
341
    case STORE_WEBSITE_SERVICE:
342
      return Boolean.valueOf(isStoreWebsiteService());
343
 
344
    case RECHARGE_SERVICE:
345
      return Boolean.valueOf(isRechargeService());
346
 
347
    }
348
    throw new IllegalStateException();
349
  }
350
 
351
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
352
  public boolean isSet(_Fields field) {
353
    if (field == null) {
354
      throw new IllegalArgumentException();
355
    }
356
 
357
    switch (field) {
358
    case STORE_ID:
359
      return isSetStoreId();
360
    case HOTSPOT_ID:
361
      return isSetHotspotId();
362
    case PICKUP_FROM_STORE_SERVICE:
363
      return isSetPickupFromStoreService();
364
    case STORE_WEBSITE_SERVICE:
365
      return isSetStoreWebsiteService();
366
    case RECHARGE_SERVICE:
367
      return isSetRechargeService();
368
    }
369
    throw new IllegalStateException();
370
  }
371
 
372
  @Override
373
  public boolean equals(Object that) {
374
    if (that == null)
375
      return false;
376
    if (that instanceof HotspotServiceMatrix)
31223 amit.gupta 377
      return this.equals((HotspotServiceMatrix) that);
7967 anupam.sin 378
    return false;
379
  }
380
 
381
  public boolean equals(HotspotServiceMatrix that) {
382
    if (that == null)
383
      return false;
384
 
385
    boolean this_present_storeId = true;
386
    boolean that_present_storeId = true;
387
    if (this_present_storeId || that_present_storeId) {
388
      if (!(this_present_storeId && that_present_storeId))
389
        return false;
390
      if (this.storeId != that.storeId)
391
        return false;
392
    }
393
 
394
    boolean this_present_hotspotId = true && this.isSetHotspotId();
395
    boolean that_present_hotspotId = true && that.isSetHotspotId();
396
    if (this_present_hotspotId || that_present_hotspotId) {
397
      if (!(this_present_hotspotId && that_present_hotspotId))
398
        return false;
399
      if (!this.hotspotId.equals(that.hotspotId))
400
        return false;
401
    }
402
 
403
    boolean this_present_pickupFromStoreService = true;
404
    boolean that_present_pickupFromStoreService = true;
405
    if (this_present_pickupFromStoreService || that_present_pickupFromStoreService) {
406
      if (!(this_present_pickupFromStoreService && that_present_pickupFromStoreService))
407
        return false;
408
      if (this.pickupFromStoreService != that.pickupFromStoreService)
409
        return false;
410
    }
411
 
412
    boolean this_present_storeWebsiteService = true;
413
    boolean that_present_storeWebsiteService = true;
414
    if (this_present_storeWebsiteService || that_present_storeWebsiteService) {
415
      if (!(this_present_storeWebsiteService && that_present_storeWebsiteService))
416
        return false;
417
      if (this.storeWebsiteService != that.storeWebsiteService)
418
        return false;
419
    }
420
 
421
    boolean this_present_rechargeService = true;
422
    boolean that_present_rechargeService = true;
423
    if (this_present_rechargeService || that_present_rechargeService) {
424
      if (!(this_present_rechargeService && that_present_rechargeService))
425
        return false;
426
      if (this.rechargeService != that.rechargeService)
427
        return false;
428
    }
429
 
430
    return true;
431
  }
432
 
433
  @Override
434
  public int hashCode() {
435
    return 0;
436
  }
437
 
438
  public int compareTo(HotspotServiceMatrix other) {
439
    if (!getClass().equals(other.getClass())) {
440
      return getClass().getName().compareTo(other.getClass().getName());
441
    }
442
 
443
    int lastComparison = 0;
31223 amit.gupta 444
    HotspotServiceMatrix typedOther = (HotspotServiceMatrix) other;
7967 anupam.sin 445
 
446
    lastComparison = Boolean.valueOf(isSetStoreId()).compareTo(typedOther.isSetStoreId());
447
    if (lastComparison != 0) {
448
      return lastComparison;
449
    }
450
    if (isSetStoreId()) {
451
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storeId, typedOther.storeId);
452
      if (lastComparison != 0) {
453
        return lastComparison;
454
      }
455
    }
456
    lastComparison = Boolean.valueOf(isSetHotspotId()).compareTo(typedOther.isSetHotspotId());
457
    if (lastComparison != 0) {
458
      return lastComparison;
459
    }
460
    if (isSetHotspotId()) {
461
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hotspotId, typedOther.hotspotId);
462
      if (lastComparison != 0) {
463
        return lastComparison;
464
      }
465
    }
466
    lastComparison = Boolean.valueOf(isSetPickupFromStoreService()).compareTo(typedOther.isSetPickupFromStoreService());
467
    if (lastComparison != 0) {
468
      return lastComparison;
469
    }
470
    if (isSetPickupFromStoreService()) {
471
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickupFromStoreService, typedOther.pickupFromStoreService);
472
      if (lastComparison != 0) {
473
        return lastComparison;
474
      }
475
    }
476
    lastComparison = Boolean.valueOf(isSetStoreWebsiteService()).compareTo(typedOther.isSetStoreWebsiteService());
477
    if (lastComparison != 0) {
478
      return lastComparison;
479
    }
480
    if (isSetStoreWebsiteService()) {
481
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storeWebsiteService, typedOther.storeWebsiteService);
482
      if (lastComparison != 0) {
483
        return lastComparison;
484
      }
485
    }
486
    lastComparison = Boolean.valueOf(isSetRechargeService()).compareTo(typedOther.isSetRechargeService());
487
    if (lastComparison != 0) {
488
      return lastComparison;
489
    }
490
    if (isSetRechargeService()) {
491
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rechargeService, typedOther.rechargeService);
492
      if (lastComparison != 0) {
493
        return lastComparison;
494
      }
495
    }
496
    return 0;
497
  }
498
 
499
  public _Fields fieldForId(int fieldId) {
500
    return _Fields.findByThriftId(fieldId);
501
  }
502
 
503
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
504
    org.apache.thrift.protocol.TField field;
505
    iprot.readStructBegin();
506
    while (true)
507
    {
508
      field = iprot.readFieldBegin();
509
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
510
        break;
511
      }
512
      switch (field.id) {
513
        case 1: // STORE_ID
514
          if (field.type == org.apache.thrift.protocol.TType.I64) {
515
            this.storeId = iprot.readI64();
516
            setStoreIdIsSet(true);
517
          } else { 
518
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
519
          }
520
          break;
521
        case 2: // HOTSPOT_ID
522
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
523
            this.hotspotId = iprot.readString();
524
          } else { 
525
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
526
          }
527
          break;
528
        case 3: // PICKUP_FROM_STORE_SERVICE
529
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
530
            this.pickupFromStoreService = iprot.readBool();
531
            setPickupFromStoreServiceIsSet(true);
532
          } else { 
533
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
534
          }
535
          break;
536
        case 4: // STORE_WEBSITE_SERVICE
537
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
538
            this.storeWebsiteService = iprot.readBool();
539
            setStoreWebsiteServiceIsSet(true);
540
          } else { 
541
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
542
          }
543
          break;
544
        case 5: // RECHARGE_SERVICE
545
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
546
            this.rechargeService = iprot.readBool();
547
            setRechargeServiceIsSet(true);
548
          } else { 
549
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
550
          }
551
          break;
552
        default:
553
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
554
      }
555
      iprot.readFieldEnd();
556
    }
557
    iprot.readStructEnd();
558
    validate();
559
  }
560
 
561
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
562
    validate();
563
 
564
    oprot.writeStructBegin(STRUCT_DESC);
565
    oprot.writeFieldBegin(STORE_ID_FIELD_DESC);
566
    oprot.writeI64(this.storeId);
567
    oprot.writeFieldEnd();
568
    if (this.hotspotId != null) {
569
      oprot.writeFieldBegin(HOTSPOT_ID_FIELD_DESC);
570
      oprot.writeString(this.hotspotId);
571
      oprot.writeFieldEnd();
572
    }
573
    oprot.writeFieldBegin(PICKUP_FROM_STORE_SERVICE_FIELD_DESC);
574
    oprot.writeBool(this.pickupFromStoreService);
575
    oprot.writeFieldEnd();
576
    oprot.writeFieldBegin(STORE_WEBSITE_SERVICE_FIELD_DESC);
577
    oprot.writeBool(this.storeWebsiteService);
578
    oprot.writeFieldEnd();
579
    oprot.writeFieldBegin(RECHARGE_SERVICE_FIELD_DESC);
580
    oprot.writeBool(this.rechargeService);
581
    oprot.writeFieldEnd();
582
    oprot.writeFieldStop();
583
    oprot.writeStructEnd();
584
  }
585
 
586
  @Override
587
  public String toString() {
588
    StringBuilder sb = new StringBuilder("HotspotServiceMatrix(");
589
    boolean first = true;
590
 
591
    sb.append("storeId:");
592
    sb.append(this.storeId);
593
    first = false;
594
    if (!first) sb.append(", ");
595
    sb.append("hotspotId:");
596
    if (this.hotspotId == null) {
597
      sb.append("null");
598
    } else {
599
      sb.append(this.hotspotId);
600
    }
601
    first = false;
602
    if (!first) sb.append(", ");
603
    sb.append("pickupFromStoreService:");
604
    sb.append(this.pickupFromStoreService);
605
    first = false;
606
    if (!first) sb.append(", ");
607
    sb.append("storeWebsiteService:");
608
    sb.append(this.storeWebsiteService);
609
    first = false;
610
    if (!first) sb.append(", ");
611
    sb.append("rechargeService:");
612
    sb.append(this.rechargeService);
613
    first = false;
614
    sb.append(")");
615
    return sb.toString();
616
  }
617
 
618
  public void validate() throws org.apache.thrift.TException {
619
    // check for required fields
620
  }
621
 
622
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
623
    try {
624
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
625
    } catch (org.apache.thrift.TException te) {
626
      throw new java.io.IOException(te);
627
    }
628
  }
629
 
630
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
631
    try {
632
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
633
      __isset_bit_vector = new BitSet(1);
634
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
635
    } catch (org.apache.thrift.TException te) {
636
      throw new java.io.IOException(te);
637
    }
638
  }
639
 
640
}
641