Subversion Repositories SmartDukaan

Rev

Rev 5711 | Rev 8626 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5711 Rev 5768
Line 31... Line 31...
31
  private static final org.apache.thrift.protocol.TField FRESH_COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("freshCount", org.apache.thrift.protocol.TType.I64, (short)6);
31
  private static final org.apache.thrift.protocol.TField FRESH_COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("freshCount", org.apache.thrift.protocol.TType.I64, (short)6);
32
  private static final org.apache.thrift.protocol.TField ONE_TO_TWO_COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("oneToTwoCount", org.apache.thrift.protocol.TType.I64, (short)7);
32
  private static final org.apache.thrift.protocol.TField ONE_TO_TWO_COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("oneToTwoCount", org.apache.thrift.protocol.TType.I64, (short)7);
33
  private static final org.apache.thrift.protocol.TField TWO_TO_THREE_COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("TwoToThreeCount", org.apache.thrift.protocol.TType.I64, (short)8);
33
  private static final org.apache.thrift.protocol.TField TWO_TO_THREE_COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("TwoToThreeCount", org.apache.thrift.protocol.TType.I64, (short)8);
34
  private static final org.apache.thrift.protocol.TField THREE_TO_FOUR_COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("ThreeToFourCount", org.apache.thrift.protocol.TType.I64, (short)9);
34
  private static final org.apache.thrift.protocol.TField THREE_TO_FOUR_COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("ThreeToFourCount", org.apache.thrift.protocol.TType.I64, (short)9);
35
  private static final org.apache.thrift.protocol.TField FOUR_PLUS_COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("FourPlusCount", org.apache.thrift.protocol.TType.I64, (short)10);
35
  private static final org.apache.thrift.protocol.TField FOUR_PLUS_COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("FourPlusCount", org.apache.thrift.protocol.TType.I64, (short)10);
-
 
36
  private static final org.apache.thrift.protocol.TField ZERO_PLUS_COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("ZeroPlusCount", org.apache.thrift.protocol.TType.I64, (short)11);
-
 
37
  private static final org.apache.thrift.protocol.TField ONE_PLUS_COUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("OnePlusCount", org.apache.thrift.protocol.TType.I64, (short)12);
-
 
38
  private static final org.apache.thrift.protocol.TField ZERO_PLUS_COST_FIELD_DESC = new org.apache.thrift.protocol.TField("ZeroPlusCost", org.apache.thrift.protocol.TType.I64, (short)13);
-
 
39
  private static final org.apache.thrift.protocol.TField ONE_PLUS_COST_FIELD_DESC = new org.apache.thrift.protocol.TField("OnePlusCost", org.apache.thrift.protocol.TType.I64, (short)14);
-
 
40
  private static final org.apache.thrift.protocol.TField CATEGORY_FIELD_DESC = new org.apache.thrift.protocol.TField("category", org.apache.thrift.protocol.TType.STRING, (short)15);
36
 
41
 
37
  private long itemId; // required
42
  private long itemId; // required
38
  private String brand; // required
43
  private String brand; // required
39
  private String modelName; // required
44
  private String modelName; // required
40
  private String modelNumber; // required
45
  private String modelNumber; // required
Line 42... Line 47...
42
  private long freshCount; // required
47
  private long freshCount; // required
43
  private long oneToTwoCount; // required
48
  private long oneToTwoCount; // required
44
  private long TwoToThreeCount; // required
49
  private long TwoToThreeCount; // required
45
  private long ThreeToFourCount; // required
50
  private long ThreeToFourCount; // required
46
  private long FourPlusCount; // required
51
  private long FourPlusCount; // required
-
 
52
  private long ZeroPlusCount; // required
-
 
53
  private long OnePlusCount; // required
-
 
54
  private long ZeroPlusCost; // required
-
 
55
  private long OnePlusCost; // required
-
 
56
  private String category; // required
47
 
57
 
48
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
58
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
49
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
59
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
50
    ITEM_ID((short)1, "itemId"),
60
    ITEM_ID((short)1, "itemId"),
51
    BRAND((short)2, "brand"),
61
    BRAND((short)2, "brand"),
Line 54... Line 64...
54
    COLOR((short)5, "color"),
64
    COLOR((short)5, "color"),
55
    FRESH_COUNT((short)6, "freshCount"),
65
    FRESH_COUNT((short)6, "freshCount"),
56
    ONE_TO_TWO_COUNT((short)7, "oneToTwoCount"),
66
    ONE_TO_TWO_COUNT((short)7, "oneToTwoCount"),
57
    TWO_TO_THREE_COUNT((short)8, "TwoToThreeCount"),
67
    TWO_TO_THREE_COUNT((short)8, "TwoToThreeCount"),
58
    THREE_TO_FOUR_COUNT((short)9, "ThreeToFourCount"),
68
    THREE_TO_FOUR_COUNT((short)9, "ThreeToFourCount"),
59
    FOUR_PLUS_COUNT((short)10, "FourPlusCount");
69
    FOUR_PLUS_COUNT((short)10, "FourPlusCount"),
-
 
70
    ZERO_PLUS_COUNT((short)11, "ZeroPlusCount"),
-
 
71
    ONE_PLUS_COUNT((short)12, "OnePlusCount"),
-
 
72
    ZERO_PLUS_COST((short)13, "ZeroPlusCost"),
-
 
73
    ONE_PLUS_COST((short)14, "OnePlusCost"),
-
 
74
    CATEGORY((short)15, "category");
60
 
75
 
61
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
76
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
62
 
77
 
63
    static {
78
    static {
64
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
79
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 89... Line 104...
89
          return TWO_TO_THREE_COUNT;
104
          return TWO_TO_THREE_COUNT;
90
        case 9: // THREE_TO_FOUR_COUNT
105
        case 9: // THREE_TO_FOUR_COUNT
91
          return THREE_TO_FOUR_COUNT;
106
          return THREE_TO_FOUR_COUNT;
92
        case 10: // FOUR_PLUS_COUNT
107
        case 10: // FOUR_PLUS_COUNT
93
          return FOUR_PLUS_COUNT;
108
          return FOUR_PLUS_COUNT;
-
 
109
        case 11: // ZERO_PLUS_COUNT
-
 
110
          return ZERO_PLUS_COUNT;
-
 
111
        case 12: // ONE_PLUS_COUNT
-
 
112
          return ONE_PLUS_COUNT;
-
 
113
        case 13: // ZERO_PLUS_COST
-
 
114
          return ZERO_PLUS_COST;
-
 
115
        case 14: // ONE_PLUS_COST
-
 
116
          return ONE_PLUS_COST;
-
 
117
        case 15: // CATEGORY
-
 
118
          return CATEGORY;
94
        default:
119
        default:
95
          return null;
120
          return null;
96
      }
121
      }
97
    }
122
    }
98
 
123
 
Line 135... Line 160...
135
  private static final int __FRESHCOUNT_ISSET_ID = 1;
160
  private static final int __FRESHCOUNT_ISSET_ID = 1;
136
  private static final int __ONETOTWOCOUNT_ISSET_ID = 2;
161
  private static final int __ONETOTWOCOUNT_ISSET_ID = 2;
137
  private static final int __TWOTOTHREECOUNT_ISSET_ID = 3;
162
  private static final int __TWOTOTHREECOUNT_ISSET_ID = 3;
138
  private static final int __THREETOFOURCOUNT_ISSET_ID = 4;
163
  private static final int __THREETOFOURCOUNT_ISSET_ID = 4;
139
  private static final int __FOURPLUSCOUNT_ISSET_ID = 5;
164
  private static final int __FOURPLUSCOUNT_ISSET_ID = 5;
-
 
165
  private static final int __ZEROPLUSCOUNT_ISSET_ID = 6;
-
 
166
  private static final int __ONEPLUSCOUNT_ISSET_ID = 7;
-
 
167
  private static final int __ZEROPLUSCOST_ISSET_ID = 8;
-
 
168
  private static final int __ONEPLUSCOST_ISSET_ID = 9;
140
  private BitSet __isset_bit_vector = new BitSet(6);
169
  private BitSet __isset_bit_vector = new BitSet(10);
141
 
170
 
142
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
171
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
143
  static {
172
  static {
144
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
173
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
145
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
174
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 160... Line 189...
160
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
189
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
161
    tmpMap.put(_Fields.THREE_TO_FOUR_COUNT, new org.apache.thrift.meta_data.FieldMetaData("ThreeToFourCount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
190
    tmpMap.put(_Fields.THREE_TO_FOUR_COUNT, new org.apache.thrift.meta_data.FieldMetaData("ThreeToFourCount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
162
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
191
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
163
    tmpMap.put(_Fields.FOUR_PLUS_COUNT, new org.apache.thrift.meta_data.FieldMetaData("FourPlusCount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
192
    tmpMap.put(_Fields.FOUR_PLUS_COUNT, new org.apache.thrift.meta_data.FieldMetaData("FourPlusCount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
164
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
193
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
194
    tmpMap.put(_Fields.ZERO_PLUS_COUNT, new org.apache.thrift.meta_data.FieldMetaData("ZeroPlusCount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
195
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
196
    tmpMap.put(_Fields.ONE_PLUS_COUNT, new org.apache.thrift.meta_data.FieldMetaData("OnePlusCount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
197
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
198
    tmpMap.put(_Fields.ZERO_PLUS_COST, new org.apache.thrift.meta_data.FieldMetaData("ZeroPlusCost", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
199
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
200
    tmpMap.put(_Fields.ONE_PLUS_COST, new org.apache.thrift.meta_data.FieldMetaData("OnePlusCost", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
201
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
202
    tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
203
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
165
    metaDataMap = Collections.unmodifiableMap(tmpMap);
204
    metaDataMap = Collections.unmodifiableMap(tmpMap);
166
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(InventoryAge.class, metaDataMap);
205
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(InventoryAge.class, metaDataMap);
167
  }
206
  }
168
 
207
 
169
  public InventoryAge() {
208
  public InventoryAge() {
Line 177... Line 216...
177
    String color,
216
    String color,
178
    long freshCount,
217
    long freshCount,
179
    long oneToTwoCount,
218
    long oneToTwoCount,
180
    long TwoToThreeCount,
219
    long TwoToThreeCount,
181
    long ThreeToFourCount,
220
    long ThreeToFourCount,
182
    long FourPlusCount)
221
    long FourPlusCount,
-
 
222
    long ZeroPlusCount,
-
 
223
    long OnePlusCount,
-
 
224
    long ZeroPlusCost,
-
 
225
    long OnePlusCost,
-
 
226
    String category)
183
  {
227
  {
184
    this();
228
    this();
185
    this.itemId = itemId;
229
    this.itemId = itemId;
186
    setItemIdIsSet(true);
230
    setItemIdIsSet(true);
187
    this.brand = brand;
231
    this.brand = brand;
Line 196... Line 240...
196
    setTwoToThreeCountIsSet(true);
240
    setTwoToThreeCountIsSet(true);
197
    this.ThreeToFourCount = ThreeToFourCount;
241
    this.ThreeToFourCount = ThreeToFourCount;
198
    setThreeToFourCountIsSet(true);
242
    setThreeToFourCountIsSet(true);
199
    this.FourPlusCount = FourPlusCount;
243
    this.FourPlusCount = FourPlusCount;
200
    setFourPlusCountIsSet(true);
244
    setFourPlusCountIsSet(true);
-
 
245
    this.ZeroPlusCount = ZeroPlusCount;
-
 
246
    setZeroPlusCountIsSet(true);
-
 
247
    this.OnePlusCount = OnePlusCount;
-
 
248
    setOnePlusCountIsSet(true);
-
 
249
    this.ZeroPlusCost = ZeroPlusCost;
-
 
250
    setZeroPlusCostIsSet(true);
-
 
251
    this.OnePlusCost = OnePlusCost;
-
 
252
    setOnePlusCostIsSet(true);
-
 
253
    this.category = category;
201
  }
254
  }
202
 
255
 
203
  /**
256
  /**
204
   * Performs a deep copy on <i>other</i>.
257
   * Performs a deep copy on <i>other</i>.
205
   */
258
   */
Line 222... Line 275...
222
    this.freshCount = other.freshCount;
275
    this.freshCount = other.freshCount;
223
    this.oneToTwoCount = other.oneToTwoCount;
276
    this.oneToTwoCount = other.oneToTwoCount;
224
    this.TwoToThreeCount = other.TwoToThreeCount;
277
    this.TwoToThreeCount = other.TwoToThreeCount;
225
    this.ThreeToFourCount = other.ThreeToFourCount;
278
    this.ThreeToFourCount = other.ThreeToFourCount;
226
    this.FourPlusCount = other.FourPlusCount;
279
    this.FourPlusCount = other.FourPlusCount;
-
 
280
    this.ZeroPlusCount = other.ZeroPlusCount;
-
 
281
    this.OnePlusCount = other.OnePlusCount;
-
 
282
    this.ZeroPlusCost = other.ZeroPlusCost;
-
 
283
    this.OnePlusCost = other.OnePlusCost;
-
 
284
    if (other.isSetCategory()) {
-
 
285
      this.category = other.category;
-
 
286
    }
227
  }
287
  }
228
 
288
 
229
  public InventoryAge deepCopy() {
289
  public InventoryAge deepCopy() {
230
    return new InventoryAge(this);
290
    return new InventoryAge(this);
231
  }
291
  }
Line 246... Line 306...
246
    this.TwoToThreeCount = 0;
306
    this.TwoToThreeCount = 0;
247
    setThreeToFourCountIsSet(false);
307
    setThreeToFourCountIsSet(false);
248
    this.ThreeToFourCount = 0;
308
    this.ThreeToFourCount = 0;
249
    setFourPlusCountIsSet(false);
309
    setFourPlusCountIsSet(false);
250
    this.FourPlusCount = 0;
310
    this.FourPlusCount = 0;
-
 
311
    setZeroPlusCountIsSet(false);
-
 
312
    this.ZeroPlusCount = 0;
-
 
313
    setOnePlusCountIsSet(false);
-
 
314
    this.OnePlusCount = 0;
-
 
315
    setZeroPlusCostIsSet(false);
-
 
316
    this.ZeroPlusCost = 0;
-
 
317
    setOnePlusCostIsSet(false);
-
 
318
    this.OnePlusCost = 0;
-
 
319
    this.category = null;
251
  }
320
  }
252
 
321
 
253
  public long getItemId() {
322
  public long getItemId() {
254
    return this.itemId;
323
    return this.itemId;
255
  }
324
  }
Line 472... Line 541...
472
 
541
 
473
  public void setFourPlusCountIsSet(boolean value) {
542
  public void setFourPlusCountIsSet(boolean value) {
474
    __isset_bit_vector.set(__FOURPLUSCOUNT_ISSET_ID, value);
543
    __isset_bit_vector.set(__FOURPLUSCOUNT_ISSET_ID, value);
475
  }
544
  }
476
 
545
 
-
 
546
  public long getZeroPlusCount() {
-
 
547
    return this.ZeroPlusCount;
-
 
548
  }
-
 
549
 
-
 
550
  public void setZeroPlusCount(long ZeroPlusCount) {
-
 
551
    this.ZeroPlusCount = ZeroPlusCount;
-
 
552
    setZeroPlusCountIsSet(true);
-
 
553
  }
-
 
554
 
-
 
555
  public void unsetZeroPlusCount() {
-
 
556
    __isset_bit_vector.clear(__ZEROPLUSCOUNT_ISSET_ID);
-
 
557
  }
-
 
558
 
-
 
559
  /** Returns true if field ZeroPlusCount is set (has been assigned a value) and false otherwise */
-
 
560
  public boolean isSetZeroPlusCount() {
-
 
561
    return __isset_bit_vector.get(__ZEROPLUSCOUNT_ISSET_ID);
-
 
562
  }
-
 
563
 
-
 
564
  public void setZeroPlusCountIsSet(boolean value) {
-
 
565
    __isset_bit_vector.set(__ZEROPLUSCOUNT_ISSET_ID, value);
-
 
566
  }
-
 
567
 
-
 
568
  public long getOnePlusCount() {
-
 
569
    return this.OnePlusCount;
-
 
570
  }
-
 
571
 
-
 
572
  public void setOnePlusCount(long OnePlusCount) {
-
 
573
    this.OnePlusCount = OnePlusCount;
-
 
574
    setOnePlusCountIsSet(true);
-
 
575
  }
-
 
576
 
-
 
577
  public void unsetOnePlusCount() {
-
 
578
    __isset_bit_vector.clear(__ONEPLUSCOUNT_ISSET_ID);
-
 
579
  }
-
 
580
 
-
 
581
  /** Returns true if field OnePlusCount is set (has been assigned a value) and false otherwise */
-
 
582
  public boolean isSetOnePlusCount() {
-
 
583
    return __isset_bit_vector.get(__ONEPLUSCOUNT_ISSET_ID);
-
 
584
  }
-
 
585
 
-
 
586
  public void setOnePlusCountIsSet(boolean value) {
-
 
587
    __isset_bit_vector.set(__ONEPLUSCOUNT_ISSET_ID, value);
-
 
588
  }
-
 
589
 
-
 
590
  public long getZeroPlusCost() {
-
 
591
    return this.ZeroPlusCost;
-
 
592
  }
-
 
593
 
-
 
594
  public void setZeroPlusCost(long ZeroPlusCost) {
-
 
595
    this.ZeroPlusCost = ZeroPlusCost;
-
 
596
    setZeroPlusCostIsSet(true);
-
 
597
  }
-
 
598
 
-
 
599
  public void unsetZeroPlusCost() {
-
 
600
    __isset_bit_vector.clear(__ZEROPLUSCOST_ISSET_ID);
-
 
601
  }
-
 
602
 
-
 
603
  /** Returns true if field ZeroPlusCost is set (has been assigned a value) and false otherwise */
-
 
604
  public boolean isSetZeroPlusCost() {
-
 
605
    return __isset_bit_vector.get(__ZEROPLUSCOST_ISSET_ID);
-
 
606
  }
-
 
607
 
-
 
608
  public void setZeroPlusCostIsSet(boolean value) {
-
 
609
    __isset_bit_vector.set(__ZEROPLUSCOST_ISSET_ID, value);
-
 
610
  }
-
 
611
 
-
 
612
  public long getOnePlusCost() {
-
 
613
    return this.OnePlusCost;
-
 
614
  }
-
 
615
 
-
 
616
  public void setOnePlusCost(long OnePlusCost) {
-
 
617
    this.OnePlusCost = OnePlusCost;
-
 
618
    setOnePlusCostIsSet(true);
-
 
619
  }
-
 
620
 
-
 
621
  public void unsetOnePlusCost() {
-
 
622
    __isset_bit_vector.clear(__ONEPLUSCOST_ISSET_ID);
-
 
623
  }
-
 
624
 
-
 
625
  /** Returns true if field OnePlusCost is set (has been assigned a value) and false otherwise */
-
 
626
  public boolean isSetOnePlusCost() {
-
 
627
    return __isset_bit_vector.get(__ONEPLUSCOST_ISSET_ID);
-
 
628
  }
-
 
629
 
-
 
630
  public void setOnePlusCostIsSet(boolean value) {
-
 
631
    __isset_bit_vector.set(__ONEPLUSCOST_ISSET_ID, value);
-
 
632
  }
-
 
633
 
-
 
634
  public String getCategory() {
-
 
635
    return this.category;
-
 
636
  }
-
 
637
 
-
 
638
  public void setCategory(String category) {
-
 
639
    this.category = category;
-
 
640
  }
-
 
641
 
-
 
642
  public void unsetCategory() {
-
 
643
    this.category = null;
-
 
644
  }
-
 
645
 
-
 
646
  /** Returns true if field category is set (has been assigned a value) and false otherwise */
-
 
647
  public boolean isSetCategory() {
-
 
648
    return this.category != null;
-
 
649
  }
-
 
650
 
-
 
651
  public void setCategoryIsSet(boolean value) {
-
 
652
    if (!value) {
-
 
653
      this.category = null;
-
 
654
    }
-
 
655
  }
-
 
656
 
477
  public void setFieldValue(_Fields field, Object value) {
657
  public void setFieldValue(_Fields field, Object value) {
478
    switch (field) {
658
    switch (field) {
479
    case ITEM_ID:
659
    case ITEM_ID:
480
      if (value == null) {
660
      if (value == null) {
481
        unsetItemId();
661
        unsetItemId();
Line 554... Line 734...
554
      } else {
734
      } else {
555
        setFourPlusCount((Long)value);
735
        setFourPlusCount((Long)value);
556
      }
736
      }
557
      break;
737
      break;
558
 
738
 
-
 
739
    case ZERO_PLUS_COUNT:
-
 
740
      if (value == null) {
-
 
741
        unsetZeroPlusCount();
-
 
742
      } else {
-
 
743
        setZeroPlusCount((Long)value);
-
 
744
      }
-
 
745
      break;
-
 
746
 
-
 
747
    case ONE_PLUS_COUNT:
-
 
748
      if (value == null) {
-
 
749
        unsetOnePlusCount();
-
 
750
      } else {
-
 
751
        setOnePlusCount((Long)value);
-
 
752
      }
-
 
753
      break;
-
 
754
 
-
 
755
    case ZERO_PLUS_COST:
-
 
756
      if (value == null) {
-
 
757
        unsetZeroPlusCost();
-
 
758
      } else {
-
 
759
        setZeroPlusCost((Long)value);
-
 
760
      }
-
 
761
      break;
-
 
762
 
-
 
763
    case ONE_PLUS_COST:
-
 
764
      if (value == null) {
-
 
765
        unsetOnePlusCost();
-
 
766
      } else {
-
 
767
        setOnePlusCost((Long)value);
-
 
768
      }
-
 
769
      break;
-
 
770
 
-
 
771
    case CATEGORY:
-
 
772
      if (value == null) {
-
 
773
        unsetCategory();
-
 
774
      } else {
-
 
775
        setCategory((String)value);
-
 
776
      }
-
 
777
      break;
-
 
778
 
559
    }
779
    }
560
  }
780
  }
561
 
781
 
562
  public Object getFieldValue(_Fields field) {
782
  public Object getFieldValue(_Fields field) {
563
    switch (field) {
783
    switch (field) {
Line 589... Line 809...
589
      return Long.valueOf(getThreeToFourCount());
809
      return Long.valueOf(getThreeToFourCount());
590
 
810
 
591
    case FOUR_PLUS_COUNT:
811
    case FOUR_PLUS_COUNT:
592
      return Long.valueOf(getFourPlusCount());
812
      return Long.valueOf(getFourPlusCount());
593
 
813
 
-
 
814
    case ZERO_PLUS_COUNT:
-
 
815
      return Long.valueOf(getZeroPlusCount());
-
 
816
 
-
 
817
    case ONE_PLUS_COUNT:
-
 
818
      return Long.valueOf(getOnePlusCount());
-
 
819
 
-
 
820
    case ZERO_PLUS_COST:
-
 
821
      return Long.valueOf(getZeroPlusCost());
-
 
822
 
-
 
823
    case ONE_PLUS_COST:
-
 
824
      return Long.valueOf(getOnePlusCost());
-
 
825
 
-
 
826
    case CATEGORY:
-
 
827
      return getCategory();
-
 
828
 
594
    }
829
    }
595
    throw new IllegalStateException();
830
    throw new IllegalStateException();
596
  }
831
  }
597
 
832
 
598
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
833
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 620... Line 855...
620
      return isSetTwoToThreeCount();
855
      return isSetTwoToThreeCount();
621
    case THREE_TO_FOUR_COUNT:
856
    case THREE_TO_FOUR_COUNT:
622
      return isSetThreeToFourCount();
857
      return isSetThreeToFourCount();
623
    case FOUR_PLUS_COUNT:
858
    case FOUR_PLUS_COUNT:
624
      return isSetFourPlusCount();
859
      return isSetFourPlusCount();
-
 
860
    case ZERO_PLUS_COUNT:
-
 
861
      return isSetZeroPlusCount();
-
 
862
    case ONE_PLUS_COUNT:
-
 
863
      return isSetOnePlusCount();
-
 
864
    case ZERO_PLUS_COST:
-
 
865
      return isSetZeroPlusCost();
-
 
866
    case ONE_PLUS_COST:
-
 
867
      return isSetOnePlusCost();
-
 
868
    case CATEGORY:
-
 
869
      return isSetCategory();
625
    }
870
    }
626
    throw new IllegalStateException();
871
    throw new IllegalStateException();
627
  }
872
  }
628
 
873
 
629
  @Override
874
  @Override
Line 727... Line 972...
727
        return false;
972
        return false;
728
      if (this.FourPlusCount != that.FourPlusCount)
973
      if (this.FourPlusCount != that.FourPlusCount)
729
        return false;
974
        return false;
730
    }
975
    }
731
 
976
 
-
 
977
    boolean this_present_ZeroPlusCount = true;
-
 
978
    boolean that_present_ZeroPlusCount = true;
-
 
979
    if (this_present_ZeroPlusCount || that_present_ZeroPlusCount) {
-
 
980
      if (!(this_present_ZeroPlusCount && that_present_ZeroPlusCount))
-
 
981
        return false;
-
 
982
      if (this.ZeroPlusCount != that.ZeroPlusCount)
-
 
983
        return false;
-
 
984
    }
-
 
985
 
-
 
986
    boolean this_present_OnePlusCount = true;
-
 
987
    boolean that_present_OnePlusCount = true;
-
 
988
    if (this_present_OnePlusCount || that_present_OnePlusCount) {
-
 
989
      if (!(this_present_OnePlusCount && that_present_OnePlusCount))
-
 
990
        return false;
-
 
991
      if (this.OnePlusCount != that.OnePlusCount)
-
 
992
        return false;
-
 
993
    }
-
 
994
 
-
 
995
    boolean this_present_ZeroPlusCost = true;
-
 
996
    boolean that_present_ZeroPlusCost = true;
-
 
997
    if (this_present_ZeroPlusCost || that_present_ZeroPlusCost) {
-
 
998
      if (!(this_present_ZeroPlusCost && that_present_ZeroPlusCost))
-
 
999
        return false;
-
 
1000
      if (this.ZeroPlusCost != that.ZeroPlusCost)
-
 
1001
        return false;
-
 
1002
    }
-
 
1003
 
-
 
1004
    boolean this_present_OnePlusCost = true;
-
 
1005
    boolean that_present_OnePlusCost = true;
-
 
1006
    if (this_present_OnePlusCost || that_present_OnePlusCost) {
-
 
1007
      if (!(this_present_OnePlusCost && that_present_OnePlusCost))
-
 
1008
        return false;
-
 
1009
      if (this.OnePlusCost != that.OnePlusCost)
-
 
1010
        return false;
-
 
1011
    }
-
 
1012
 
-
 
1013
    boolean this_present_category = true && this.isSetCategory();
-
 
1014
    boolean that_present_category = true && that.isSetCategory();
-
 
1015
    if (this_present_category || that_present_category) {
-
 
1016
      if (!(this_present_category && that_present_category))
-
 
1017
        return false;
-
 
1018
      if (!this.category.equals(that.category))
-
 
1019
        return false;
-
 
1020
    }
-
 
1021
 
732
    return true;
1022
    return true;
733
  }
1023
  }
734
 
1024
 
735
  @Override
1025
  @Override
736
  public int hashCode() {
1026
  public int hashCode() {
Line 843... Line 1133...
843
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.FourPlusCount, typedOther.FourPlusCount);
1133
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.FourPlusCount, typedOther.FourPlusCount);
844
      if (lastComparison != 0) {
1134
      if (lastComparison != 0) {
845
        return lastComparison;
1135
        return lastComparison;
846
      }
1136
      }
847
    }
1137
    }
-
 
1138
    lastComparison = Boolean.valueOf(isSetZeroPlusCount()).compareTo(typedOther.isSetZeroPlusCount());
-
 
1139
    if (lastComparison != 0) {
-
 
1140
      return lastComparison;
-
 
1141
    }
-
 
1142
    if (isSetZeroPlusCount()) {
-
 
1143
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ZeroPlusCount, typedOther.ZeroPlusCount);
-
 
1144
      if (lastComparison != 0) {
-
 
1145
        return lastComparison;
-
 
1146
      }
-
 
1147
    }
-
 
1148
    lastComparison = Boolean.valueOf(isSetOnePlusCount()).compareTo(typedOther.isSetOnePlusCount());
-
 
1149
    if (lastComparison != 0) {
-
 
1150
      return lastComparison;
-
 
1151
    }
-
 
1152
    if (isSetOnePlusCount()) {
-
 
1153
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.OnePlusCount, typedOther.OnePlusCount);
-
 
1154
      if (lastComparison != 0) {
-
 
1155
        return lastComparison;
-
 
1156
      }
-
 
1157
    }
-
 
1158
    lastComparison = Boolean.valueOf(isSetZeroPlusCost()).compareTo(typedOther.isSetZeroPlusCost());
-
 
1159
    if (lastComparison != 0) {
-
 
1160
      return lastComparison;
-
 
1161
    }
-
 
1162
    if (isSetZeroPlusCost()) {
-
 
1163
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ZeroPlusCost, typedOther.ZeroPlusCost);
-
 
1164
      if (lastComparison != 0) {
-
 
1165
        return lastComparison;
-
 
1166
      }
-
 
1167
    }
-
 
1168
    lastComparison = Boolean.valueOf(isSetOnePlusCost()).compareTo(typedOther.isSetOnePlusCost());
-
 
1169
    if (lastComparison != 0) {
-
 
1170
      return lastComparison;
-
 
1171
    }
-
 
1172
    if (isSetOnePlusCost()) {
-
 
1173
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.OnePlusCost, typedOther.OnePlusCost);
-
 
1174
      if (lastComparison != 0) {
-
 
1175
        return lastComparison;
-
 
1176
      }
-
 
1177
    }
-
 
1178
    lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());
-
 
1179
    if (lastComparison != 0) {
-
 
1180
      return lastComparison;
-
 
1181
    }
-
 
1182
    if (isSetCategory()) {
-
 
1183
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);
-
 
1184
      if (lastComparison != 0) {
-
 
1185
        return lastComparison;
-
 
1186
      }
-
 
1187
    }
848
    return 0;
1188
    return 0;
849
  }
1189
  }
850
 
1190
 
851
  public _Fields fieldForId(int fieldId) {
1191
  public _Fields fieldForId(int fieldId) {
852
    return _Fields.findByThriftId(fieldId);
1192
    return _Fields.findByThriftId(fieldId);
Line 936... Line 1276...
936
            setFourPlusCountIsSet(true);
1276
            setFourPlusCountIsSet(true);
937
          } else { 
1277
          } else { 
938
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1278
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
939
          }
1279
          }
940
          break;
1280
          break;
-
 
1281
        case 11: // ZERO_PLUS_COUNT
-
 
1282
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
1283
            this.ZeroPlusCount = iprot.readI64();
-
 
1284
            setZeroPlusCountIsSet(true);
-
 
1285
          } else { 
-
 
1286
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1287
          }
-
 
1288
          break;
-
 
1289
        case 12: // ONE_PLUS_COUNT
-
 
1290
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
1291
            this.OnePlusCount = iprot.readI64();
-
 
1292
            setOnePlusCountIsSet(true);
-
 
1293
          } else { 
-
 
1294
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1295
          }
-
 
1296
          break;
-
 
1297
        case 13: // ZERO_PLUS_COST
-
 
1298
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
1299
            this.ZeroPlusCost = iprot.readI64();
-
 
1300
            setZeroPlusCostIsSet(true);
-
 
1301
          } else { 
-
 
1302
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1303
          }
-
 
1304
          break;
-
 
1305
        case 14: // ONE_PLUS_COST
-
 
1306
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
1307
            this.OnePlusCost = iprot.readI64();
-
 
1308
            setOnePlusCostIsSet(true);
-
 
1309
          } else { 
-
 
1310
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1311
          }
-
 
1312
          break;
-
 
1313
        case 15: // CATEGORY
-
 
1314
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
1315
            this.category = iprot.readString();
-
 
1316
          } else { 
-
 
1317
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1318
          }
-
 
1319
          break;
941
        default:
1320
        default:
942
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1321
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
943
      }
1322
      }
944
      iprot.readFieldEnd();
1323
      iprot.readFieldEnd();
945
    }
1324
    }
Line 987... Line 1366...
987
    oprot.writeI64(this.ThreeToFourCount);
1366
    oprot.writeI64(this.ThreeToFourCount);
988
    oprot.writeFieldEnd();
1367
    oprot.writeFieldEnd();
989
    oprot.writeFieldBegin(FOUR_PLUS_COUNT_FIELD_DESC);
1368
    oprot.writeFieldBegin(FOUR_PLUS_COUNT_FIELD_DESC);
990
    oprot.writeI64(this.FourPlusCount);
1369
    oprot.writeI64(this.FourPlusCount);
991
    oprot.writeFieldEnd();
1370
    oprot.writeFieldEnd();
-
 
1371
    oprot.writeFieldBegin(ZERO_PLUS_COUNT_FIELD_DESC);
-
 
1372
    oprot.writeI64(this.ZeroPlusCount);
-
 
1373
    oprot.writeFieldEnd();
-
 
1374
    oprot.writeFieldBegin(ONE_PLUS_COUNT_FIELD_DESC);
-
 
1375
    oprot.writeI64(this.OnePlusCount);
-
 
1376
    oprot.writeFieldEnd();
-
 
1377
    oprot.writeFieldBegin(ZERO_PLUS_COST_FIELD_DESC);
-
 
1378
    oprot.writeI64(this.ZeroPlusCost);
-
 
1379
    oprot.writeFieldEnd();
-
 
1380
    oprot.writeFieldBegin(ONE_PLUS_COST_FIELD_DESC);
-
 
1381
    oprot.writeI64(this.OnePlusCost);
-
 
1382
    oprot.writeFieldEnd();
-
 
1383
    if (this.category != null) {
-
 
1384
      oprot.writeFieldBegin(CATEGORY_FIELD_DESC);
-
 
1385
      oprot.writeString(this.category);
-
 
1386
      oprot.writeFieldEnd();
-
 
1387
    }
992
    oprot.writeFieldStop();
1388
    oprot.writeFieldStop();
993
    oprot.writeStructEnd();
1389
    oprot.writeStructEnd();
994
  }
1390
  }
995
 
1391
 
996
  @Override
1392
  @Override
Line 1051... Line 1447...
1051
    first = false;
1447
    first = false;
1052
    if (!first) sb.append(", ");
1448
    if (!first) sb.append(", ");
1053
    sb.append("FourPlusCount:");
1449
    sb.append("FourPlusCount:");
1054
    sb.append(this.FourPlusCount);
1450
    sb.append(this.FourPlusCount);
1055
    first = false;
1451
    first = false;
-
 
1452
    if (!first) sb.append(", ");
-
 
1453
    sb.append("ZeroPlusCount:");
-
 
1454
    sb.append(this.ZeroPlusCount);
-
 
1455
    first = false;
-
 
1456
    if (!first) sb.append(", ");
-
 
1457
    sb.append("OnePlusCount:");
-
 
1458
    sb.append(this.OnePlusCount);
-
 
1459
    first = false;
-
 
1460
    if (!first) sb.append(", ");
-
 
1461
    sb.append("ZeroPlusCost:");
-
 
1462
    sb.append(this.ZeroPlusCost);
-
 
1463
    first = false;
-
 
1464
    if (!first) sb.append(", ");
-
 
1465
    sb.append("OnePlusCost:");
-
 
1466
    sb.append(this.OnePlusCost);
-
 
1467
    first = false;
-
 
1468
    if (!first) sb.append(", ");
-
 
1469
    sb.append("category:");
-
 
1470
    if (this.category == null) {
-
 
1471
      sb.append("null");
-
 
1472
    } else {
-
 
1473
      sb.append(this.category);
-
 
1474
    }
-
 
1475
    first = false;
1056
    sb.append(")");
1476
    sb.append(")");
1057
    return sb.toString();
1477
    return sb.toString();
1058
  }
1478
  }
1059
 
1479
 
1060
  public void validate() throws org.apache.thrift.TException {
1480
  public void validate() throws org.apache.thrift.TException {