Subversion Repositories SmartDukaan

Rev

Rev 8579 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
6849 kshitij.so 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.catalog;
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 Banner implements org.apache.thrift.TBase<Banner, Banner._Fields>, java.io.Serializable, Cloneable {
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Banner");
25
 
26
  private static final org.apache.thrift.protocol.TField BANNER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("bannerName", org.apache.thrift.protocol.TType.STRING, (short)1);
27
  private static final org.apache.thrift.protocol.TField IMAGE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("imageName", org.apache.thrift.protocol.TType.STRING, (short)2);
28
  private static final org.apache.thrift.protocol.TField LINK_FIELD_DESC = new org.apache.thrift.protocol.TField("link", org.apache.thrift.protocol.TType.STRING, (short)3);
29
  private static final org.apache.thrift.protocol.TField PRIORITY_FIELD_DESC = new org.apache.thrift.protocol.TField("priority", org.apache.thrift.protocol.TType.I64, (short)4);
30
  private static final org.apache.thrift.protocol.TField IS_ACTIVE_FIELD_DESC = new org.apache.thrift.protocol.TField("isActive", org.apache.thrift.protocol.TType.BOOL, (short)5);
31
  private static final org.apache.thrift.protocol.TField HAS_MAP_FIELD_DESC = new org.apache.thrift.protocol.TField("hasMap", org.apache.thrift.protocol.TType.BOOL, (short)6);
32
 
33
  private String bannerName; // required
34
  private String imageName; // required
35
  private String link; // required
36
  private long priority; // required
37
  private boolean isActive; // required
38
  private boolean hasMap; // required
39
 
40
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
41
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
42
    BANNER_NAME((short)1, "bannerName"),
43
    IMAGE_NAME((short)2, "imageName"),
44
    LINK((short)3, "link"),
45
    PRIORITY((short)4, "priority"),
46
    IS_ACTIVE((short)5, "isActive"),
47
    HAS_MAP((short)6, "hasMap");
48
 
49
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
50
 
51
    static {
52
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
53
        byName.put(field.getFieldName(), field);
54
      }
55
    }
56
 
57
    /**
58
     * Find the _Fields constant that matches fieldId, or null if its not found.
59
     */
60
    public static _Fields findByThriftId(int fieldId) {
61
      switch(fieldId) {
62
        case 1: // BANNER_NAME
63
          return BANNER_NAME;
64
        case 2: // IMAGE_NAME
65
          return IMAGE_NAME;
66
        case 3: // LINK
67
          return LINK;
68
        case 4: // PRIORITY
69
          return PRIORITY;
70
        case 5: // IS_ACTIVE
71
          return IS_ACTIVE;
72
        case 6: // HAS_MAP
73
          return HAS_MAP;
74
        default:
75
          return null;
76
      }
77
    }
78
 
79
    /**
80
     * Find the _Fields constant that matches fieldId, throwing an exception
81
     * if it is not found.
82
     */
83
    public static _Fields findByThriftIdOrThrow(int fieldId) {
84
      _Fields fields = findByThriftId(fieldId);
85
      if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
86
      return fields;
87
    }
88
 
89
    /**
90
     * Find the _Fields constant that matches name, or null if its not found.
91
     */
92
    public static _Fields findByName(String name) {
93
      return byName.get(name);
94
    }
95
 
96
    private final short _thriftId;
97
    private final String _fieldName;
98
 
99
    _Fields(short thriftId, String fieldName) {
100
      _thriftId = thriftId;
101
      _fieldName = fieldName;
102
    }
103
 
104
    public short getThriftFieldId() {
105
      return _thriftId;
106
    }
107
 
108
    public String getFieldName() {
109
      return _fieldName;
110
    }
111
  }
112
 
113
  // isset id assignments
114
  private static final int __PRIORITY_ISSET_ID = 0;
115
  private static final int __ISACTIVE_ISSET_ID = 1;
116
  private static final int __HASMAP_ISSET_ID = 2;
117
  private BitSet __isset_bit_vector = new BitSet(3);
118
 
119
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
120
  static {
121
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
122
    tmpMap.put(_Fields.BANNER_NAME, new org.apache.thrift.meta_data.FieldMetaData("bannerName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
123
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
124
    tmpMap.put(_Fields.IMAGE_NAME, new org.apache.thrift.meta_data.FieldMetaData("imageName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
125
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
126
    tmpMap.put(_Fields.LINK, new org.apache.thrift.meta_data.FieldMetaData("link", org.apache.thrift.TFieldRequirementType.DEFAULT, 
127
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
128
    tmpMap.put(_Fields.PRIORITY, new org.apache.thrift.meta_data.FieldMetaData("priority", org.apache.thrift.TFieldRequirementType.DEFAULT, 
129
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
130
    tmpMap.put(_Fields.IS_ACTIVE, new org.apache.thrift.meta_data.FieldMetaData("isActive", org.apache.thrift.TFieldRequirementType.DEFAULT, 
131
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
132
    tmpMap.put(_Fields.HAS_MAP, new org.apache.thrift.meta_data.FieldMetaData("hasMap", org.apache.thrift.TFieldRequirementType.DEFAULT, 
133
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
134
    metaDataMap = Collections.unmodifiableMap(tmpMap);
135
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Banner.class, metaDataMap);
136
  }
137
 
138
  public Banner() {
139
  }
140
 
141
  public Banner(
142
    String bannerName,
143
    String imageName,
144
    String link,
145
    long priority,
146
    boolean isActive,
147
    boolean hasMap)
148
  {
149
    this();
150
    this.bannerName = bannerName;
151
    this.imageName = imageName;
152
    this.link = link;
153
    this.priority = priority;
154
    setPriorityIsSet(true);
155
    this.isActive = isActive;
156
    setIsActiveIsSet(true);
157
    this.hasMap = hasMap;
158
    setHasMapIsSet(true);
159
  }
160
 
161
  /**
162
   * Performs a deep copy on <i>other</i>.
163
   */
164
  public Banner(Banner other) {
165
    __isset_bit_vector.clear();
166
    __isset_bit_vector.or(other.__isset_bit_vector);
167
    if (other.isSetBannerName()) {
168
      this.bannerName = other.bannerName;
169
    }
170
    if (other.isSetImageName()) {
171
      this.imageName = other.imageName;
172
    }
173
    if (other.isSetLink()) {
174
      this.link = other.link;
175
    }
176
    this.priority = other.priority;
177
    this.isActive = other.isActive;
178
    this.hasMap = other.hasMap;
179
  }
180
 
181
  public Banner deepCopy() {
182
    return new Banner(this);
183
  }
184
 
185
  @Override
186
  public void clear() {
187
    this.bannerName = null;
188
    this.imageName = null;
189
    this.link = null;
190
    setPriorityIsSet(false);
191
    this.priority = 0;
192
    setIsActiveIsSet(false);
193
    this.isActive = false;
194
    setHasMapIsSet(false);
195
    this.hasMap = false;
196
  }
197
 
198
  public String getBannerName() {
199
    return this.bannerName;
200
  }
201
 
202
  public void setBannerName(String bannerName) {
203
    this.bannerName = bannerName;
204
  }
205
 
206
  public void unsetBannerName() {
207
    this.bannerName = null;
208
  }
209
 
210
  /** Returns true if field bannerName is set (has been assigned a value) and false otherwise */
211
  public boolean isSetBannerName() {
212
    return this.bannerName != null;
213
  }
214
 
215
  public void setBannerNameIsSet(boolean value) {
216
    if (!value) {
217
      this.bannerName = null;
218
    }
219
  }
220
 
221
  public String getImageName() {
222
    return this.imageName;
223
  }
224
 
225
  public void setImageName(String imageName) {
226
    this.imageName = imageName;
227
  }
228
 
229
  public void unsetImageName() {
230
    this.imageName = null;
231
  }
232
 
233
  /** Returns true if field imageName is set (has been assigned a value) and false otherwise */
234
  public boolean isSetImageName() {
235
    return this.imageName != null;
236
  }
237
 
238
  public void setImageNameIsSet(boolean value) {
239
    if (!value) {
240
      this.imageName = null;
241
    }
242
  }
243
 
244
  public String getLink() {
245
    return this.link;
246
  }
247
 
248
  public void setLink(String link) {
249
    this.link = link;
250
  }
251
 
252
  public void unsetLink() {
253
    this.link = null;
254
  }
255
 
256
  /** Returns true if field link is set (has been assigned a value) and false otherwise */
257
  public boolean isSetLink() {
258
    return this.link != null;
259
  }
260
 
261
  public void setLinkIsSet(boolean value) {
262
    if (!value) {
263
      this.link = null;
264
    }
265
  }
266
 
267
  public long getPriority() {
268
    return this.priority;
269
  }
270
 
271
  public void setPriority(long priority) {
272
    this.priority = priority;
273
    setPriorityIsSet(true);
274
  }
275
 
276
  public void unsetPriority() {
277
    __isset_bit_vector.clear(__PRIORITY_ISSET_ID);
278
  }
279
 
280
  /** Returns true if field priority is set (has been assigned a value) and false otherwise */
281
  public boolean isSetPriority() {
282
    return __isset_bit_vector.get(__PRIORITY_ISSET_ID);
283
  }
284
 
285
  public void setPriorityIsSet(boolean value) {
286
    __isset_bit_vector.set(__PRIORITY_ISSET_ID, value);
287
  }
288
 
289
  public boolean isIsActive() {
290
    return this.isActive;
291
  }
292
 
293
  public void setIsActive(boolean isActive) {
294
    this.isActive = isActive;
295
    setIsActiveIsSet(true);
296
  }
297
 
298
  public void unsetIsActive() {
299
    __isset_bit_vector.clear(__ISACTIVE_ISSET_ID);
300
  }
301
 
302
  /** Returns true if field isActive is set (has been assigned a value) and false otherwise */
303
  public boolean isSetIsActive() {
304
    return __isset_bit_vector.get(__ISACTIVE_ISSET_ID);
305
  }
306
 
307
  public void setIsActiveIsSet(boolean value) {
308
    __isset_bit_vector.set(__ISACTIVE_ISSET_ID, value);
309
  }
310
 
311
  public boolean isHasMap() {
312
    return this.hasMap;
313
  }
314
 
315
  public void setHasMap(boolean hasMap) {
316
    this.hasMap = hasMap;
317
    setHasMapIsSet(true);
318
  }
319
 
320
  public void unsetHasMap() {
321
    __isset_bit_vector.clear(__HASMAP_ISSET_ID);
322
  }
323
 
324
  /** Returns true if field hasMap is set (has been assigned a value) and false otherwise */
325
  public boolean isSetHasMap() {
326
    return __isset_bit_vector.get(__HASMAP_ISSET_ID);
327
  }
328
 
329
  public void setHasMapIsSet(boolean value) {
330
    __isset_bit_vector.set(__HASMAP_ISSET_ID, value);
331
  }
332
 
333
  public void setFieldValue(_Fields field, Object value) {
334
    switch (field) {
335
    case BANNER_NAME:
336
      if (value == null) {
337
        unsetBannerName();
338
      } else {
339
        setBannerName((String)value);
340
      }
341
      break;
342
 
343
    case IMAGE_NAME:
344
      if (value == null) {
345
        unsetImageName();
346
      } else {
347
        setImageName((String)value);
348
      }
349
      break;
350
 
351
    case LINK:
352
      if (value == null) {
353
        unsetLink();
354
      } else {
355
        setLink((String)value);
356
      }
357
      break;
358
 
359
    case PRIORITY:
360
      if (value == null) {
361
        unsetPriority();
362
      } else {
363
        setPriority((Long)value);
364
      }
365
      break;
366
 
367
    case IS_ACTIVE:
368
      if (value == null) {
369
        unsetIsActive();
370
      } else {
371
        setIsActive((Boolean)value);
372
      }
373
      break;
374
 
375
    case HAS_MAP:
376
      if (value == null) {
377
        unsetHasMap();
378
      } else {
379
        setHasMap((Boolean)value);
380
      }
381
      break;
382
 
383
    }
384
  }
385
 
386
  public Object getFieldValue(_Fields field) {
387
    switch (field) {
388
    case BANNER_NAME:
389
      return getBannerName();
390
 
391
    case IMAGE_NAME:
392
      return getImageName();
393
 
394
    case LINK:
395
      return getLink();
396
 
397
    case PRIORITY:
398
      return Long.valueOf(getPriority());
399
 
400
    case IS_ACTIVE:
401
      return Boolean.valueOf(isIsActive());
402
 
403
    case HAS_MAP:
404
      return Boolean.valueOf(isHasMap());
405
 
406
    }
407
    throw new IllegalStateException();
408
  }
409
 
410
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
411
  public boolean isSet(_Fields field) {
412
    if (field == null) {
413
      throw new IllegalArgumentException();
414
    }
415
 
416
    switch (field) {
417
    case BANNER_NAME:
418
      return isSetBannerName();
419
    case IMAGE_NAME:
420
      return isSetImageName();
421
    case LINK:
422
      return isSetLink();
423
    case PRIORITY:
424
      return isSetPriority();
425
    case IS_ACTIVE:
426
      return isSetIsActive();
427
    case HAS_MAP:
428
      return isSetHasMap();
429
    }
430
    throw new IllegalStateException();
431
  }
432
 
433
  @Override
434
  public boolean equals(Object that) {
435
    if (that == null)
436
      return false;
437
    if (that instanceof Banner)
438
      return this.equals((Banner)that);
439
    return false;
440
  }
441
 
442
  public boolean equals(Banner that) {
443
    if (that == null)
444
      return false;
445
 
446
    boolean this_present_bannerName = true && this.isSetBannerName();
447
    boolean that_present_bannerName = true && that.isSetBannerName();
448
    if (this_present_bannerName || that_present_bannerName) {
449
      if (!(this_present_bannerName && that_present_bannerName))
450
        return false;
451
      if (!this.bannerName.equals(that.bannerName))
452
        return false;
453
    }
454
 
455
    boolean this_present_imageName = true && this.isSetImageName();
456
    boolean that_present_imageName = true && that.isSetImageName();
457
    if (this_present_imageName || that_present_imageName) {
458
      if (!(this_present_imageName && that_present_imageName))
459
        return false;
460
      if (!this.imageName.equals(that.imageName))
461
        return false;
462
    }
463
 
464
    boolean this_present_link = true && this.isSetLink();
465
    boolean that_present_link = true && that.isSetLink();
466
    if (this_present_link || that_present_link) {
467
      if (!(this_present_link && that_present_link))
468
        return false;
469
      if (!this.link.equals(that.link))
470
        return false;
471
    }
472
 
473
    boolean this_present_priority = true;
474
    boolean that_present_priority = true;
475
    if (this_present_priority || that_present_priority) {
476
      if (!(this_present_priority && that_present_priority))
477
        return false;
478
      if (this.priority != that.priority)
479
        return false;
480
    }
481
 
482
    boolean this_present_isActive = true;
483
    boolean that_present_isActive = true;
484
    if (this_present_isActive || that_present_isActive) {
485
      if (!(this_present_isActive && that_present_isActive))
486
        return false;
487
      if (this.isActive != that.isActive)
488
        return false;
489
    }
490
 
491
    boolean this_present_hasMap = true;
492
    boolean that_present_hasMap = true;
493
    if (this_present_hasMap || that_present_hasMap) {
494
      if (!(this_present_hasMap && that_present_hasMap))
495
        return false;
496
      if (this.hasMap != that.hasMap)
497
        return false;
498
    }
499
 
500
    return true;
501
  }
502
 
503
  @Override
504
  public int hashCode() {
505
    return 0;
506
  }
507
 
508
  public int compareTo(Banner other) {
509
    if (!getClass().equals(other.getClass())) {
510
      return getClass().getName().compareTo(other.getClass().getName());
511
    }
512
 
513
    int lastComparison = 0;
514
    Banner typedOther = (Banner)other;
515
 
516
    lastComparison = Boolean.valueOf(isSetBannerName()).compareTo(typedOther.isSetBannerName());
517
    if (lastComparison != 0) {
518
      return lastComparison;
519
    }
520
    if (isSetBannerName()) {
521
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bannerName, typedOther.bannerName);
522
      if (lastComparison != 0) {
523
        return lastComparison;
524
      }
525
    }
526
    lastComparison = Boolean.valueOf(isSetImageName()).compareTo(typedOther.isSetImageName());
527
    if (lastComparison != 0) {
528
      return lastComparison;
529
    }
530
    if (isSetImageName()) {
531
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.imageName, typedOther.imageName);
532
      if (lastComparison != 0) {
533
        return lastComparison;
534
      }
535
    }
536
    lastComparison = Boolean.valueOf(isSetLink()).compareTo(typedOther.isSetLink());
537
    if (lastComparison != 0) {
538
      return lastComparison;
539
    }
540
    if (isSetLink()) {
541
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.link, typedOther.link);
542
      if (lastComparison != 0) {
543
        return lastComparison;
544
      }
545
    }
546
    lastComparison = Boolean.valueOf(isSetPriority()).compareTo(typedOther.isSetPriority());
547
    if (lastComparison != 0) {
548
      return lastComparison;
549
    }
550
    if (isSetPriority()) {
551
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.priority, typedOther.priority);
552
      if (lastComparison != 0) {
553
        return lastComparison;
554
      }
555
    }
556
    lastComparison = Boolean.valueOf(isSetIsActive()).compareTo(typedOther.isSetIsActive());
557
    if (lastComparison != 0) {
558
      return lastComparison;
559
    }
560
    if (isSetIsActive()) {
561
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isActive, typedOther.isActive);
562
      if (lastComparison != 0) {
563
        return lastComparison;
564
      }
565
    }
566
    lastComparison = Boolean.valueOf(isSetHasMap()).compareTo(typedOther.isSetHasMap());
567
    if (lastComparison != 0) {
568
      return lastComparison;
569
    }
570
    if (isSetHasMap()) {
571
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hasMap, typedOther.hasMap);
572
      if (lastComparison != 0) {
573
        return lastComparison;
574
      }
575
    }
576
    return 0;
577
  }
578
 
579
  public _Fields fieldForId(int fieldId) {
580
    return _Fields.findByThriftId(fieldId);
581
  }
582
 
583
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
584
    org.apache.thrift.protocol.TField field;
585
    iprot.readStructBegin();
586
    while (true)
587
    {
588
      field = iprot.readFieldBegin();
589
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
590
        break;
591
      }
592
      switch (field.id) {
593
        case 1: // BANNER_NAME
594
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
595
            this.bannerName = iprot.readString();
596
          } else { 
597
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
598
          }
599
          break;
600
        case 2: // IMAGE_NAME
601
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
602
            this.imageName = iprot.readString();
603
          } else { 
604
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
605
          }
606
          break;
607
        case 3: // LINK
608
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
609
            this.link = iprot.readString();
610
          } else { 
611
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
612
          }
613
          break;
614
        case 4: // PRIORITY
615
          if (field.type == org.apache.thrift.protocol.TType.I64) {
616
            this.priority = iprot.readI64();
617
            setPriorityIsSet(true);
618
          } else { 
619
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
620
          }
621
          break;
622
        case 5: // IS_ACTIVE
623
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
624
            this.isActive = iprot.readBool();
625
            setIsActiveIsSet(true);
626
          } else { 
627
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
628
          }
629
          break;
630
        case 6: // HAS_MAP
631
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
632
            this.hasMap = iprot.readBool();
633
            setHasMapIsSet(true);
634
          } else { 
635
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
636
          }
637
          break;
638
        default:
639
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
640
      }
641
      iprot.readFieldEnd();
642
    }
643
    iprot.readStructEnd();
644
    validate();
645
  }
646
 
647
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
648
    validate();
649
 
650
    oprot.writeStructBegin(STRUCT_DESC);
651
    if (this.bannerName != null) {
652
      oprot.writeFieldBegin(BANNER_NAME_FIELD_DESC);
653
      oprot.writeString(this.bannerName);
654
      oprot.writeFieldEnd();
655
    }
656
    if (this.imageName != null) {
657
      oprot.writeFieldBegin(IMAGE_NAME_FIELD_DESC);
658
      oprot.writeString(this.imageName);
659
      oprot.writeFieldEnd();
660
    }
661
    if (this.link != null) {
662
      oprot.writeFieldBegin(LINK_FIELD_DESC);
663
      oprot.writeString(this.link);
664
      oprot.writeFieldEnd();
665
    }
666
    oprot.writeFieldBegin(PRIORITY_FIELD_DESC);
667
    oprot.writeI64(this.priority);
668
    oprot.writeFieldEnd();
669
    oprot.writeFieldBegin(IS_ACTIVE_FIELD_DESC);
670
    oprot.writeBool(this.isActive);
671
    oprot.writeFieldEnd();
672
    oprot.writeFieldBegin(HAS_MAP_FIELD_DESC);
673
    oprot.writeBool(this.hasMap);
674
    oprot.writeFieldEnd();
675
    oprot.writeFieldStop();
676
    oprot.writeStructEnd();
677
  }
678
 
679
  @Override
680
  public String toString() {
681
    StringBuilder sb = new StringBuilder("Banner(");
682
    boolean first = true;
683
 
684
    sb.append("bannerName:");
685
    if (this.bannerName == null) {
686
      sb.append("null");
687
    } else {
688
      sb.append(this.bannerName);
689
    }
690
    first = false;
691
    if (!first) sb.append(", ");
692
    sb.append("imageName:");
693
    if (this.imageName == null) {
694
      sb.append("null");
695
    } else {
696
      sb.append(this.imageName);
697
    }
698
    first = false;
699
    if (!first) sb.append(", ");
700
    sb.append("link:");
701
    if (this.link == null) {
702
      sb.append("null");
703
    } else {
704
      sb.append(this.link);
705
    }
706
    first = false;
707
    if (!first) sb.append(", ");
708
    sb.append("priority:");
709
    sb.append(this.priority);
710
    first = false;
711
    if (!first) sb.append(", ");
712
    sb.append("isActive:");
713
    sb.append(this.isActive);
714
    first = false;
715
    if (!first) sb.append(", ");
716
    sb.append("hasMap:");
717
    sb.append(this.hasMap);
718
    first = false;
719
    sb.append(")");
720
    return sb.toString();
721
  }
722
 
723
  public void validate() throws org.apache.thrift.TException {
724
    // check for required fields
725
  }
726
 
727
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
728
    try {
729
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
730
    } catch (org.apache.thrift.TException te) {
731
      throw new java.io.IOException(te);
732
    }
733
  }
734
 
735
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
736
    try {
737
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
738
      __isset_bit_vector = new BitSet(1);
739
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
740
    } catch (org.apache.thrift.TException te) {
741
      throw new java.io.IOException(te);
742
    }
743
  }
744
 
745
}
746