Subversion Repositories SmartDukaan

Rev

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