Subversion Repositories SmartDukaan

Rev

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

Rev 1982 Rev 3430
Line 1... Line 1...
1
/**
1
/**
2
 * Autogenerated by Thrift
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
5
 */
6
package in.shop2020.model.v1.user;
6
package in.shop2020.model.v1.user;
7
 
7
 
Line 13... Line 13...
13
import java.util.Set;
13
import java.util.Set;
14
import java.util.HashSet;
14
import java.util.HashSet;
15
import java.util.EnumSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
16
import java.util.Collections;
17
import java.util.BitSet;
17
import java.util.BitSet;
-
 
18
import java.nio.ByteBuffer;
18
import java.util.Arrays;
19
import java.util.Arrays;
19
import org.slf4j.Logger;
20
import org.slf4j.Logger;
20
import org.slf4j.LoggerFactory;
21
import org.slf4j.LoggerFactory;
21
 
22
 
22
import org.apache.thrift.*;
-
 
23
import org.apache.thrift.meta_data.*;
-
 
24
import org.apache.thrift.protocol.*;
-
 
25
 
-
 
26
public class Line implements TBase<Line._Fields>, java.io.Serializable, Cloneable, Comparable<Line> {
23
public class Line implements org.apache.thrift.TBase<Line, Line._Fields>, java.io.Serializable, Cloneable {
27
  private static final TStruct STRUCT_DESC = new TStruct("Line");
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Line");
28
 
25
 
29
  private static final TField CART_ID_FIELD_DESC = new TField("cartId", TType.I64, (short)1);
26
  private static final org.apache.thrift.protocol.TField CART_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("cartId", org.apache.thrift.protocol.TType.I64, (short)1);
30
  private static final TField ITEM_ID_FIELD_DESC = new TField("itemId", TType.I64, (short)2);
27
  private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)2);
31
  private static final TField QUANTITY_FIELD_DESC = new TField("quantity", TType.DOUBLE, (short)3);
28
  private static final org.apache.thrift.protocol.TField QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("quantity", org.apache.thrift.protocol.TType.DOUBLE, (short)3);
32
  private static final TField CREATED_ON_FIELD_DESC = new TField("createdOn", TType.I64, (short)4);
29
  private static final org.apache.thrift.protocol.TField CREATED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("createdOn", org.apache.thrift.protocol.TType.I64, (short)4);
33
  private static final TField UPDATED_ON_FIELD_DESC = new TField("updatedOn", TType.I64, (short)5);
30
  private static final org.apache.thrift.protocol.TField UPDATED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("updatedOn", org.apache.thrift.protocol.TType.I64, (short)5);
34
  private static final TField LINE_STATUS_FIELD_DESC = new TField("lineStatus", TType.I32, (short)6);
31
  private static final org.apache.thrift.protocol.TField LINE_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("lineStatus", org.apache.thrift.protocol.TType.I32, (short)6);
35
  private static final TField ESTIMATE_FIELD_DESC = new TField("estimate", TType.I32, (short)7);
32
  private static final org.apache.thrift.protocol.TField ESTIMATE_FIELD_DESC = new org.apache.thrift.protocol.TField("estimate", org.apache.thrift.protocol.TType.I32, (short)7);
36
  private static final TField ACTUAL_PRICE_FIELD_DESC = new TField("actualPrice", TType.DOUBLE, (short)8);
33
  private static final org.apache.thrift.protocol.TField ACTUAL_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("actualPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)8);
37
  private static final TField DISCOUNTED_PRICE_FIELD_DESC = new TField("discountedPrice", TType.DOUBLE, (short)9);
34
  private static final org.apache.thrift.protocol.TField DISCOUNTED_PRICE_FIELD_DESC = new org.apache.thrift.protocol.TField("discountedPrice", org.apache.thrift.protocol.TType.DOUBLE, (short)9);
38
 
35
 
39
  private long cartId;
36
  private long cartId; // required
40
  private long itemId;
37
  private long itemId; // required
41
  private double quantity;
38
  private double quantity; // required
42
  private long createdOn;
39
  private long createdOn; // required
43
  private long updatedOn;
40
  private long updatedOn; // required
44
  private LineStatus lineStatus;
41
  private LineStatus lineStatus; // required
45
  private int estimate;
42
  private int estimate; // required
46
  private double actualPrice;
43
  private double actualPrice; // required
47
  private double discountedPrice;
44
  private double discountedPrice; // required
48
 
45
 
49
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
46
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
50
  public enum _Fields implements TFieldIdEnum {
47
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
51
    CART_ID((short)1, "cartId"),
48
    CART_ID((short)1, "cartId"),
52
    ITEM_ID((short)2, "itemId"),
49
    ITEM_ID((short)2, "itemId"),
53
    QUANTITY((short)3, "quantity"),
50
    QUANTITY((short)3, "quantity"),
54
    CREATED_ON((short)4, "createdOn"),
51
    CREATED_ON((short)4, "createdOn"),
55
    UPDATED_ON((short)5, "updatedOn"),
52
    UPDATED_ON((short)5, "updatedOn"),
Line 60... Line 57...
60
    LINE_STATUS((short)6, "lineStatus"),
57
    LINE_STATUS((short)6, "lineStatus"),
61
    ESTIMATE((short)7, "estimate"),
58
    ESTIMATE((short)7, "estimate"),
62
    ACTUAL_PRICE((short)8, "actualPrice"),
59
    ACTUAL_PRICE((short)8, "actualPrice"),
63
    DISCOUNTED_PRICE((short)9, "discountedPrice");
60
    DISCOUNTED_PRICE((short)9, "discountedPrice");
64
 
61
 
65
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
66
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
62
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
67
 
63
 
68
    static {
64
    static {
69
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
65
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
70
        byId.put((int)field._thriftId, field);
-
 
71
        byName.put(field.getFieldName(), field);
66
        byName.put(field.getFieldName(), field);
72
      }
67
      }
73
    }
68
    }
74
 
69
 
75
    /**
70
    /**
76
     * Find the _Fields constant that matches fieldId, or null if its not found.
71
     * Find the _Fields constant that matches fieldId, or null if its not found.
77
     */
72
     */
78
    public static _Fields findByThriftId(int fieldId) {
73
    public static _Fields findByThriftId(int fieldId) {
-
 
74
      switch(fieldId) {
-
 
75
        case 1: // CART_ID
-
 
76
          return CART_ID;
-
 
77
        case 2: // ITEM_ID
-
 
78
          return ITEM_ID;
-
 
79
        case 3: // QUANTITY
-
 
80
          return QUANTITY;
-
 
81
        case 4: // CREATED_ON
-
 
82
          return CREATED_ON;
-
 
83
        case 5: // UPDATED_ON
-
 
84
          return UPDATED_ON;
-
 
85
        case 6: // LINE_STATUS
-
 
86
          return LINE_STATUS;
-
 
87
        case 7: // ESTIMATE
-
 
88
          return ESTIMATE;
-
 
89
        case 8: // ACTUAL_PRICE
-
 
90
          return ACTUAL_PRICE;
-
 
91
        case 9: // DISCOUNTED_PRICE
79
      return byId.get(fieldId);
92
          return DISCOUNTED_PRICE;
-
 
93
        default:
-
 
94
          return null;
-
 
95
      }
80
    }
96
    }
81
 
97
 
82
    /**
98
    /**
83
     * Find the _Fields constant that matches fieldId, throwing an exception
99
     * Find the _Fields constant that matches fieldId, throwing an exception
84
     * if it is not found.
100
     * if it is not found.
Line 122... Line 138...
122
  private static final int __ESTIMATE_ISSET_ID = 5;
138
  private static final int __ESTIMATE_ISSET_ID = 5;
123
  private static final int __ACTUALPRICE_ISSET_ID = 6;
139
  private static final int __ACTUALPRICE_ISSET_ID = 6;
124
  private static final int __DISCOUNTEDPRICE_ISSET_ID = 7;
140
  private static final int __DISCOUNTEDPRICE_ISSET_ID = 7;
125
  private BitSet __isset_bit_vector = new BitSet(8);
141
  private BitSet __isset_bit_vector = new BitSet(8);
126
 
142
 
127
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
143
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
128
    put(_Fields.CART_ID, new FieldMetaData("cartId", TFieldRequirementType.DEFAULT, 
-
 
129
        new FieldValueMetaData(TType.I64)));
-
 
130
    put(_Fields.ITEM_ID, new FieldMetaData("itemId", TFieldRequirementType.DEFAULT, 
-
 
131
        new FieldValueMetaData(TType.I64)));
-
 
132
    put(_Fields.QUANTITY, new FieldMetaData("quantity", TFieldRequirementType.DEFAULT, 
-
 
133
        new FieldValueMetaData(TType.DOUBLE)));
-
 
134
    put(_Fields.CREATED_ON, new FieldMetaData("createdOn", TFieldRequirementType.DEFAULT, 
-
 
135
        new FieldValueMetaData(TType.I64)));
-
 
136
    put(_Fields.UPDATED_ON, new FieldMetaData("updatedOn", TFieldRequirementType.DEFAULT, 
-
 
137
        new FieldValueMetaData(TType.I64)));
-
 
138
    put(_Fields.LINE_STATUS, new FieldMetaData("lineStatus", TFieldRequirementType.DEFAULT, 
-
 
139
        new EnumMetaData(TType.ENUM, LineStatus.class)));
-
 
140
    put(_Fields.ESTIMATE, new FieldMetaData("estimate", TFieldRequirementType.DEFAULT, 
-
 
141
        new FieldValueMetaData(TType.I32)));
-
 
142
    put(_Fields.ACTUAL_PRICE, new FieldMetaData("actualPrice", TFieldRequirementType.DEFAULT, 
-
 
143
        new FieldValueMetaData(TType.DOUBLE)));
-
 
144
    put(_Fields.DISCOUNTED_PRICE, new FieldMetaData("discountedPrice", TFieldRequirementType.DEFAULT, 
-
 
145
        new FieldValueMetaData(TType.DOUBLE)));
-
 
146
  }});
-
 
147
 
-
 
148
  static {
144
  static {
-
 
145
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
146
    tmpMap.put(_Fields.CART_ID, new org.apache.thrift.meta_data.FieldMetaData("cartId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
147
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
148
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
149
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
150
    tmpMap.put(_Fields.QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("quantity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
151
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
152
    tmpMap.put(_Fields.CREATED_ON, new org.apache.thrift.meta_data.FieldMetaData("createdOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
153
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
154
    tmpMap.put(_Fields.UPDATED_ON, new org.apache.thrift.meta_data.FieldMetaData("updatedOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
155
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
156
    tmpMap.put(_Fields.LINE_STATUS, new org.apache.thrift.meta_data.FieldMetaData("lineStatus", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
157
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, LineStatus.class)));
-
 
158
    tmpMap.put(_Fields.ESTIMATE, new org.apache.thrift.meta_data.FieldMetaData("estimate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
159
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
-
 
160
    tmpMap.put(_Fields.ACTUAL_PRICE, new org.apache.thrift.meta_data.FieldMetaData("actualPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
161
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
162
    tmpMap.put(_Fields.DISCOUNTED_PRICE, new org.apache.thrift.meta_data.FieldMetaData("discountedPrice", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
163
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
-
 
164
    metaDataMap = Collections.unmodifiableMap(tmpMap);
149
    FieldMetaData.addStructMetaDataMap(Line.class, metaDataMap);
165
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Line.class, metaDataMap);
150
  }
166
  }
151
 
167
 
152
  public Line() {
168
  public Line() {
153
  }
169
  }
154
 
170
 
Line 204... Line 220...
204
 
220
 
205
  public Line deepCopy() {
221
  public Line deepCopy() {
206
    return new Line(this);
222
    return new Line(this);
207
  }
223
  }
208
 
224
 
209
  @Deprecated
225
  @Override
210
  public Line clone() {
226
  public void clear() {
-
 
227
    setCartIdIsSet(false);
-
 
228
    this.cartId = 0;
-
 
229
    setItemIdIsSet(false);
-
 
230
    this.itemId = 0;
-
 
231
    setQuantityIsSet(false);
-
 
232
    this.quantity = 0.0;
211
    return new Line(this);
233
    setCreatedOnIsSet(false);
-
 
234
    this.createdOn = 0;
-
 
235
    setUpdatedOnIsSet(false);
-
 
236
    this.updatedOn = 0;
-
 
237
    this.lineStatus = null;
-
 
238
    setEstimateIsSet(false);
-
 
239
    this.estimate = 0;
-
 
240
    setActualPriceIsSet(false);
-
 
241
    this.actualPrice = 0.0;
-
 
242
    setDiscountedPriceIsSet(false);
-
 
243
    this.discountedPrice = 0.0;
212
  }
244
  }
213
 
245
 
214
  public long getCartId() {
246
  public long getCartId() {
215
    return this.cartId;
247
    return this.cartId;
216
  }
248
  }
217
 
249
 
218
  public Line setCartId(long cartId) {
250
  public void setCartId(long cartId) {
219
    this.cartId = cartId;
251
    this.cartId = cartId;
220
    setCartIdIsSet(true);
252
    setCartIdIsSet(true);
221
    return this;
-
 
222
  }
253
  }
223
 
254
 
224
  public void unsetCartId() {
255
  public void unsetCartId() {
225
    __isset_bit_vector.clear(__CARTID_ISSET_ID);
256
    __isset_bit_vector.clear(__CARTID_ISSET_ID);
226
  }
257
  }
227
 
258
 
228
  /** Returns true if field cartId is set (has been asigned a value) and false otherwise */
259
  /** Returns true if field cartId is set (has been assigned a value) and false otherwise */
229
  public boolean isSetCartId() {
260
  public boolean isSetCartId() {
230
    return __isset_bit_vector.get(__CARTID_ISSET_ID);
261
    return __isset_bit_vector.get(__CARTID_ISSET_ID);
231
  }
262
  }
232
 
263
 
233
  public void setCartIdIsSet(boolean value) {
264
  public void setCartIdIsSet(boolean value) {
Line 236... Line 267...
236
 
267
 
237
  public long getItemId() {
268
  public long getItemId() {
238
    return this.itemId;
269
    return this.itemId;
239
  }
270
  }
240
 
271
 
241
  public Line setItemId(long itemId) {
272
  public void setItemId(long itemId) {
242
    this.itemId = itemId;
273
    this.itemId = itemId;
243
    setItemIdIsSet(true);
274
    setItemIdIsSet(true);
244
    return this;
-
 
245
  }
275
  }
246
 
276
 
247
  public void unsetItemId() {
277
  public void unsetItemId() {
248
    __isset_bit_vector.clear(__ITEMID_ISSET_ID);
278
    __isset_bit_vector.clear(__ITEMID_ISSET_ID);
249
  }
279
  }
250
 
280
 
251
  /** Returns true if field itemId is set (has been asigned a value) and false otherwise */
281
  /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
252
  public boolean isSetItemId() {
282
  public boolean isSetItemId() {
253
    return __isset_bit_vector.get(__ITEMID_ISSET_ID);
283
    return __isset_bit_vector.get(__ITEMID_ISSET_ID);
254
  }
284
  }
255
 
285
 
256
  public void setItemIdIsSet(boolean value) {
286
  public void setItemIdIsSet(boolean value) {
Line 259... Line 289...
259
 
289
 
260
  public double getQuantity() {
290
  public double getQuantity() {
261
    return this.quantity;
291
    return this.quantity;
262
  }
292
  }
263
 
293
 
264
  public Line setQuantity(double quantity) {
294
  public void setQuantity(double quantity) {
265
    this.quantity = quantity;
295
    this.quantity = quantity;
266
    setQuantityIsSet(true);
296
    setQuantityIsSet(true);
267
    return this;
-
 
268
  }
297
  }
269
 
298
 
270
  public void unsetQuantity() {
299
  public void unsetQuantity() {
271
    __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
300
    __isset_bit_vector.clear(__QUANTITY_ISSET_ID);
272
  }
301
  }
273
 
302
 
274
  /** Returns true if field quantity is set (has been asigned a value) and false otherwise */
303
  /** Returns true if field quantity is set (has been assigned a value) and false otherwise */
275
  public boolean isSetQuantity() {
304
  public boolean isSetQuantity() {
276
    return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
305
    return __isset_bit_vector.get(__QUANTITY_ISSET_ID);
277
  }
306
  }
278
 
307
 
279
  public void setQuantityIsSet(boolean value) {
308
  public void setQuantityIsSet(boolean value) {
Line 282... Line 311...
282
 
311
 
283
  public long getCreatedOn() {
312
  public long getCreatedOn() {
284
    return this.createdOn;
313
    return this.createdOn;
285
  }
314
  }
286
 
315
 
287
  public Line setCreatedOn(long createdOn) {
316
  public void setCreatedOn(long createdOn) {
288
    this.createdOn = createdOn;
317
    this.createdOn = createdOn;
289
    setCreatedOnIsSet(true);
318
    setCreatedOnIsSet(true);
290
    return this;
-
 
291
  }
319
  }
292
 
320
 
293
  public void unsetCreatedOn() {
321
  public void unsetCreatedOn() {
294
    __isset_bit_vector.clear(__CREATEDON_ISSET_ID);
322
    __isset_bit_vector.clear(__CREATEDON_ISSET_ID);
295
  }
323
  }
296
 
324
 
297
  /** Returns true if field createdOn is set (has been asigned a value) and false otherwise */
325
  /** Returns true if field createdOn is set (has been assigned a value) and false otherwise */
298
  public boolean isSetCreatedOn() {
326
  public boolean isSetCreatedOn() {
299
    return __isset_bit_vector.get(__CREATEDON_ISSET_ID);
327
    return __isset_bit_vector.get(__CREATEDON_ISSET_ID);
300
  }
328
  }
301
 
329
 
302
  public void setCreatedOnIsSet(boolean value) {
330
  public void setCreatedOnIsSet(boolean value) {
Line 305... Line 333...
305
 
333
 
306
  public long getUpdatedOn() {
334
  public long getUpdatedOn() {
307
    return this.updatedOn;
335
    return this.updatedOn;
308
  }
336
  }
309
 
337
 
310
  public Line setUpdatedOn(long updatedOn) {
338
  public void setUpdatedOn(long updatedOn) {
311
    this.updatedOn = updatedOn;
339
    this.updatedOn = updatedOn;
312
    setUpdatedOnIsSet(true);
340
    setUpdatedOnIsSet(true);
313
    return this;
-
 
314
  }
341
  }
315
 
342
 
316
  public void unsetUpdatedOn() {
343
  public void unsetUpdatedOn() {
317
    __isset_bit_vector.clear(__UPDATEDON_ISSET_ID);
344
    __isset_bit_vector.clear(__UPDATEDON_ISSET_ID);
318
  }
345
  }
319
 
346
 
320
  /** Returns true if field updatedOn is set (has been asigned a value) and false otherwise */
347
  /** Returns true if field updatedOn is set (has been assigned a value) and false otherwise */
321
  public boolean isSetUpdatedOn() {
348
  public boolean isSetUpdatedOn() {
322
    return __isset_bit_vector.get(__UPDATEDON_ISSET_ID);
349
    return __isset_bit_vector.get(__UPDATEDON_ISSET_ID);
323
  }
350
  }
324
 
351
 
325
  public void setUpdatedOnIsSet(boolean value) {
352
  public void setUpdatedOnIsSet(boolean value) {
Line 336... Line 363...
336
 
363
 
337
  /**
364
  /**
338
   * 
365
   * 
339
   * @see LineStatus
366
   * @see LineStatus
340
   */
367
   */
341
  public Line setLineStatus(LineStatus lineStatus) {
368
  public void setLineStatus(LineStatus lineStatus) {
342
    this.lineStatus = lineStatus;
369
    this.lineStatus = lineStatus;
343
    return this;
-
 
344
  }
370
  }
345
 
371
 
346
  public void unsetLineStatus() {
372
  public void unsetLineStatus() {
347
    this.lineStatus = null;
373
    this.lineStatus = null;
348
  }
374
  }
349
 
375
 
350
  /** Returns true if field lineStatus is set (has been asigned a value) and false otherwise */
376
  /** Returns true if field lineStatus is set (has been assigned a value) and false otherwise */
351
  public boolean isSetLineStatus() {
377
  public boolean isSetLineStatus() {
352
    return this.lineStatus != null;
378
    return this.lineStatus != null;
353
  }
379
  }
354
 
380
 
355
  public void setLineStatusIsSet(boolean value) {
381
  public void setLineStatusIsSet(boolean value) {
Line 360... Line 386...
360
 
386
 
361
  public int getEstimate() {
387
  public int getEstimate() {
362
    return this.estimate;
388
    return this.estimate;
363
  }
389
  }
364
 
390
 
365
  public Line setEstimate(int estimate) {
391
  public void setEstimate(int estimate) {
366
    this.estimate = estimate;
392
    this.estimate = estimate;
367
    setEstimateIsSet(true);
393
    setEstimateIsSet(true);
368
    return this;
-
 
369
  }
394
  }
370
 
395
 
371
  public void unsetEstimate() {
396
  public void unsetEstimate() {
372
    __isset_bit_vector.clear(__ESTIMATE_ISSET_ID);
397
    __isset_bit_vector.clear(__ESTIMATE_ISSET_ID);
373
  }
398
  }
374
 
399
 
375
  /** Returns true if field estimate is set (has been asigned a value) and false otherwise */
400
  /** Returns true if field estimate is set (has been assigned a value) and false otherwise */
376
  public boolean isSetEstimate() {
401
  public boolean isSetEstimate() {
377
    return __isset_bit_vector.get(__ESTIMATE_ISSET_ID);
402
    return __isset_bit_vector.get(__ESTIMATE_ISSET_ID);
378
  }
403
  }
379
 
404
 
380
  public void setEstimateIsSet(boolean value) {
405
  public void setEstimateIsSet(boolean value) {
Line 383... Line 408...
383
 
408
 
384
  public double getActualPrice() {
409
  public double getActualPrice() {
385
    return this.actualPrice;
410
    return this.actualPrice;
386
  }
411
  }
387
 
412
 
388
  public Line setActualPrice(double actualPrice) {
413
  public void setActualPrice(double actualPrice) {
389
    this.actualPrice = actualPrice;
414
    this.actualPrice = actualPrice;
390
    setActualPriceIsSet(true);
415
    setActualPriceIsSet(true);
391
    return this;
-
 
392
  }
416
  }
393
 
417
 
394
  public void unsetActualPrice() {
418
  public void unsetActualPrice() {
395
    __isset_bit_vector.clear(__ACTUALPRICE_ISSET_ID);
419
    __isset_bit_vector.clear(__ACTUALPRICE_ISSET_ID);
396
  }
420
  }
397
 
421
 
398
  /** Returns true if field actualPrice is set (has been asigned a value) and false otherwise */
422
  /** Returns true if field actualPrice is set (has been assigned a value) and false otherwise */
399
  public boolean isSetActualPrice() {
423
  public boolean isSetActualPrice() {
400
    return __isset_bit_vector.get(__ACTUALPRICE_ISSET_ID);
424
    return __isset_bit_vector.get(__ACTUALPRICE_ISSET_ID);
401
  }
425
  }
402
 
426
 
403
  public void setActualPriceIsSet(boolean value) {
427
  public void setActualPriceIsSet(boolean value) {
Line 406... Line 430...
406
 
430
 
407
  public double getDiscountedPrice() {
431
  public double getDiscountedPrice() {
408
    return this.discountedPrice;
432
    return this.discountedPrice;
409
  }
433
  }
410
 
434
 
411
  public Line setDiscountedPrice(double discountedPrice) {
435
  public void setDiscountedPrice(double discountedPrice) {
412
    this.discountedPrice = discountedPrice;
436
    this.discountedPrice = discountedPrice;
413
    setDiscountedPriceIsSet(true);
437
    setDiscountedPriceIsSet(true);
414
    return this;
-
 
415
  }
438
  }
416
 
439
 
417
  public void unsetDiscountedPrice() {
440
  public void unsetDiscountedPrice() {
418
    __isset_bit_vector.clear(__DISCOUNTEDPRICE_ISSET_ID);
441
    __isset_bit_vector.clear(__DISCOUNTEDPRICE_ISSET_ID);
419
  }
442
  }
420
 
443
 
421
  /** Returns true if field discountedPrice is set (has been asigned a value) and false otherwise */
444
  /** Returns true if field discountedPrice is set (has been assigned a value) and false otherwise */
422
  public boolean isSetDiscountedPrice() {
445
  public boolean isSetDiscountedPrice() {
423
    return __isset_bit_vector.get(__DISCOUNTEDPRICE_ISSET_ID);
446
    return __isset_bit_vector.get(__DISCOUNTEDPRICE_ISSET_ID);
424
  }
447
  }
425
 
448
 
426
  public void setDiscountedPriceIsSet(boolean value) {
449
  public void setDiscountedPriceIsSet(boolean value) {
Line 502... Line 525...
502
      break;
525
      break;
503
 
526
 
504
    }
527
    }
505
  }
528
  }
506
 
529
 
507
  public void setFieldValue(int fieldID, Object value) {
-
 
508
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
509
  }
-
 
510
 
-
 
511
  public Object getFieldValue(_Fields field) {
530
  public Object getFieldValue(_Fields field) {
512
    switch (field) {
531
    switch (field) {
513
    case CART_ID:
532
    case CART_ID:
514
      return new Long(getCartId());
533
      return Long.valueOf(getCartId());
515
 
534
 
516
    case ITEM_ID:
535
    case ITEM_ID:
517
      return new Long(getItemId());
536
      return Long.valueOf(getItemId());
518
 
537
 
519
    case QUANTITY:
538
    case QUANTITY:
520
      return new Double(getQuantity());
539
      return Double.valueOf(getQuantity());
521
 
540
 
522
    case CREATED_ON:
541
    case CREATED_ON:
523
      return new Long(getCreatedOn());
542
      return Long.valueOf(getCreatedOn());
524
 
543
 
525
    case UPDATED_ON:
544
    case UPDATED_ON:
526
      return new Long(getUpdatedOn());
545
      return Long.valueOf(getUpdatedOn());
527
 
546
 
528
    case LINE_STATUS:
547
    case LINE_STATUS:
529
      return getLineStatus();
548
      return getLineStatus();
530
 
549
 
531
    case ESTIMATE:
550
    case ESTIMATE:
532
      return new Integer(getEstimate());
551
      return Integer.valueOf(getEstimate());
533
 
552
 
534
    case ACTUAL_PRICE:
553
    case ACTUAL_PRICE:
535
      return new Double(getActualPrice());
554
      return Double.valueOf(getActualPrice());
536
 
555
 
537
    case DISCOUNTED_PRICE:
556
    case DISCOUNTED_PRICE:
538
      return new Double(getDiscountedPrice());
557
      return Double.valueOf(getDiscountedPrice());
539
 
558
 
540
    }
559
    }
541
    throw new IllegalStateException();
560
    throw new IllegalStateException();
542
  }
561
  }
543
 
562
 
544
  public Object getFieldValue(int fieldId) {
-
 
545
    return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
546
  }
-
 
547
 
-
 
548
  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
563
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
549
  public boolean isSet(_Fields field) {
564
  public boolean isSet(_Fields field) {
-
 
565
    if (field == null) {
-
 
566
      throw new IllegalArgumentException();
-
 
567
    }
-
 
568
 
550
    switch (field) {
569
    switch (field) {
551
    case CART_ID:
570
    case CART_ID:
552
      return isSetCartId();
571
      return isSetCartId();
553
    case ITEM_ID:
572
    case ITEM_ID:
554
      return isSetItemId();
573
      return isSetItemId();
Line 568... Line 587...
568
      return isSetDiscountedPrice();
587
      return isSetDiscountedPrice();
569
    }
588
    }
570
    throw new IllegalStateException();
589
    throw new IllegalStateException();
571
  }
590
  }
572
 
591
 
573
  public boolean isSet(int fieldID) {
-
 
574
    return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
575
  }
-
 
576
 
-
 
577
  @Override
592
  @Override
578
  public boolean equals(Object that) {
593
  public boolean equals(Object that) {
579
    if (that == null)
594
    if (that == null)
580
      return false;
595
      return false;
581
    if (that instanceof Line)
596
    if (that instanceof Line)
Line 682... Line 697...
682
    }
697
    }
683
 
698
 
684
    int lastComparison = 0;
699
    int lastComparison = 0;
685
    Line typedOther = (Line)other;
700
    Line typedOther = (Line)other;
686
 
701
 
687
    lastComparison = Boolean.valueOf(isSetCartId()).compareTo(isSetCartId());
702
    lastComparison = Boolean.valueOf(isSetCartId()).compareTo(typedOther.isSetCartId());
688
    if (lastComparison != 0) {
703
    if (lastComparison != 0) {
689
      return lastComparison;
704
      return lastComparison;
690
    }
705
    }
-
 
706
    if (isSetCartId()) {
691
    lastComparison = TBaseHelper.compareTo(cartId, typedOther.cartId);
707
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cartId, typedOther.cartId);
692
    if (lastComparison != 0) {
708
      if (lastComparison != 0) {
693
      return lastComparison;
709
        return lastComparison;
-
 
710
      }
694
    }
711
    }
695
    lastComparison = Boolean.valueOf(isSetItemId()).compareTo(isSetItemId());
712
    lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
696
    if (lastComparison != 0) {
713
    if (lastComparison != 0) {
697
      return lastComparison;
714
      return lastComparison;
698
    }
715
    }
-
 
716
    if (isSetItemId()) {
699
    lastComparison = TBaseHelper.compareTo(itemId, typedOther.itemId);
717
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
700
    if (lastComparison != 0) {
718
      if (lastComparison != 0) {
701
      return lastComparison;
719
        return lastComparison;
-
 
720
      }
702
    }
721
    }
703
    lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(isSetQuantity());
722
    lastComparison = Boolean.valueOf(isSetQuantity()).compareTo(typedOther.isSetQuantity());
704
    if (lastComparison != 0) {
723
    if (lastComparison != 0) {
705
      return lastComparison;
724
      return lastComparison;
706
    }
725
    }
-
 
726
    if (isSetQuantity()) {
707
    lastComparison = TBaseHelper.compareTo(quantity, typedOther.quantity);
727
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.quantity, typedOther.quantity);
708
    if (lastComparison != 0) {
728
      if (lastComparison != 0) {
709
      return lastComparison;
729
        return lastComparison;
-
 
730
      }
710
    }
731
    }
711
    lastComparison = Boolean.valueOf(isSetCreatedOn()).compareTo(isSetCreatedOn());
732
    lastComparison = Boolean.valueOf(isSetCreatedOn()).compareTo(typedOther.isSetCreatedOn());
712
    if (lastComparison != 0) {
733
    if (lastComparison != 0) {
713
      return lastComparison;
734
      return lastComparison;
714
    }
735
    }
-
 
736
    if (isSetCreatedOn()) {
715
    lastComparison = TBaseHelper.compareTo(createdOn, typedOther.createdOn);
737
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createdOn, typedOther.createdOn);
716
    if (lastComparison != 0) {
738
      if (lastComparison != 0) {
717
      return lastComparison;
739
        return lastComparison;
-
 
740
      }
718
    }
741
    }
719
    lastComparison = Boolean.valueOf(isSetUpdatedOn()).compareTo(isSetUpdatedOn());
742
    lastComparison = Boolean.valueOf(isSetUpdatedOn()).compareTo(typedOther.isSetUpdatedOn());
720
    if (lastComparison != 0) {
743
    if (lastComparison != 0) {
721
      return lastComparison;
744
      return lastComparison;
722
    }
745
    }
-
 
746
    if (isSetUpdatedOn()) {
723
    lastComparison = TBaseHelper.compareTo(updatedOn, typedOther.updatedOn);
747
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.updatedOn, typedOther.updatedOn);
724
    if (lastComparison != 0) {
748
      if (lastComparison != 0) {
725
      return lastComparison;
749
        return lastComparison;
-
 
750
      }
726
    }
751
    }
727
    lastComparison = Boolean.valueOf(isSetLineStatus()).compareTo(isSetLineStatus());
752
    lastComparison = Boolean.valueOf(isSetLineStatus()).compareTo(typedOther.isSetLineStatus());
728
    if (lastComparison != 0) {
753
    if (lastComparison != 0) {
729
      return lastComparison;
754
      return lastComparison;
730
    }
755
    }
-
 
756
    if (isSetLineStatus()) {
731
    lastComparison = TBaseHelper.compareTo(lineStatus, typedOther.lineStatus);
757
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lineStatus, typedOther.lineStatus);
732
    if (lastComparison != 0) {
758
      if (lastComparison != 0) {
733
      return lastComparison;
759
        return lastComparison;
-
 
760
      }
734
    }
761
    }
735
    lastComparison = Boolean.valueOf(isSetEstimate()).compareTo(isSetEstimate());
762
    lastComparison = Boolean.valueOf(isSetEstimate()).compareTo(typedOther.isSetEstimate());
736
    if (lastComparison != 0) {
763
    if (lastComparison != 0) {
737
      return lastComparison;
764
      return lastComparison;
738
    }
765
    }
-
 
766
    if (isSetEstimate()) {
739
    lastComparison = TBaseHelper.compareTo(estimate, typedOther.estimate);
767
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.estimate, typedOther.estimate);
740
    if (lastComparison != 0) {
768
      if (lastComparison != 0) {
741
      return lastComparison;
769
        return lastComparison;
-
 
770
      }
742
    }
771
    }
743
    lastComparison = Boolean.valueOf(isSetActualPrice()).compareTo(isSetActualPrice());
772
    lastComparison = Boolean.valueOf(isSetActualPrice()).compareTo(typedOther.isSetActualPrice());
744
    if (lastComparison != 0) {
773
    if (lastComparison != 0) {
745
      return lastComparison;
774
      return lastComparison;
746
    }
775
    }
-
 
776
    if (isSetActualPrice()) {
747
    lastComparison = TBaseHelper.compareTo(actualPrice, typedOther.actualPrice);
777
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.actualPrice, typedOther.actualPrice);
748
    if (lastComparison != 0) {
778
      if (lastComparison != 0) {
749
      return lastComparison;
779
        return lastComparison;
-
 
780
      }
750
    }
781
    }
751
    lastComparison = Boolean.valueOf(isSetDiscountedPrice()).compareTo(isSetDiscountedPrice());
782
    lastComparison = Boolean.valueOf(isSetDiscountedPrice()).compareTo(typedOther.isSetDiscountedPrice());
752
    if (lastComparison != 0) {
783
    if (lastComparison != 0) {
753
      return lastComparison;
784
      return lastComparison;
754
    }
785
    }
-
 
786
    if (isSetDiscountedPrice()) {
755
    lastComparison = TBaseHelper.compareTo(discountedPrice, typedOther.discountedPrice);
787
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.discountedPrice, typedOther.discountedPrice);
756
    if (lastComparison != 0) {
788
      if (lastComparison != 0) {
757
      return lastComparison;
789
        return lastComparison;
-
 
790
      }
758
    }
791
    }
759
    return 0;
792
    return 0;
760
  }
793
  }
761
 
794
 
-
 
795
  public _Fields fieldForId(int fieldId) {
-
 
796
    return _Fields.findByThriftId(fieldId);
-
 
797
  }
-
 
798
 
762
  public void read(TProtocol iprot) throws TException {
799
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
763
    TField field;
800
    org.apache.thrift.protocol.TField field;
764
    iprot.readStructBegin();
801
    iprot.readStructBegin();
765
    while (true)
802
    while (true)
766
    {
803
    {
767
      field = iprot.readFieldBegin();
804
      field = iprot.readFieldBegin();
768
      if (field.type == TType.STOP) { 
805
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
769
        break;
806
        break;
770
      }
807
      }
771
      _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
772
      if (fieldId == null) {
-
 
773
        TProtocolUtil.skip(iprot, field.type);
-
 
774
      } else {
-
 
775
        switch (fieldId) {
808
      switch (field.id) {
776
          case CART_ID:
809
        case 1: // CART_ID
777
            if (field.type == TType.I64) {
810
          if (field.type == org.apache.thrift.protocol.TType.I64) {
778
              this.cartId = iprot.readI64();
811
            this.cartId = iprot.readI64();
779
              setCartIdIsSet(true);
812
            setCartIdIsSet(true);
780
            } else { 
813
          } else { 
781
              TProtocolUtil.skip(iprot, field.type);
814
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
782
            }
815
          }
783
            break;
816
          break;
784
          case ITEM_ID:
817
        case 2: // ITEM_ID
785
            if (field.type == TType.I64) {
818
          if (field.type == org.apache.thrift.protocol.TType.I64) {
786
              this.itemId = iprot.readI64();
819
            this.itemId = iprot.readI64();
787
              setItemIdIsSet(true);
820
            setItemIdIsSet(true);
788
            } else { 
821
          } else { 
789
              TProtocolUtil.skip(iprot, field.type);
822
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
790
            }
823
          }
791
            break;
824
          break;
792
          case QUANTITY:
825
        case 3: // QUANTITY
793
            if (field.type == TType.DOUBLE) {
826
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
794
              this.quantity = iprot.readDouble();
827
            this.quantity = iprot.readDouble();
795
              setQuantityIsSet(true);
828
            setQuantityIsSet(true);
796
            } else { 
829
          } else { 
797
              TProtocolUtil.skip(iprot, field.type);
830
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
798
            }
831
          }
799
            break;
832
          break;
800
          case CREATED_ON:
833
        case 4: // CREATED_ON
801
            if (field.type == TType.I64) {
834
          if (field.type == org.apache.thrift.protocol.TType.I64) {
802
              this.createdOn = iprot.readI64();
835
            this.createdOn = iprot.readI64();
803
              setCreatedOnIsSet(true);
836
            setCreatedOnIsSet(true);
804
            } else { 
837
          } else { 
805
              TProtocolUtil.skip(iprot, field.type);
838
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
806
            }
839
          }
807
            break;
840
          break;
808
          case UPDATED_ON:
841
        case 5: // UPDATED_ON
809
            if (field.type == TType.I64) {
842
          if (field.type == org.apache.thrift.protocol.TType.I64) {
810
              this.updatedOn = iprot.readI64();
843
            this.updatedOn = iprot.readI64();
811
              setUpdatedOnIsSet(true);
844
            setUpdatedOnIsSet(true);
812
            } else { 
845
          } else { 
813
              TProtocolUtil.skip(iprot, field.type);
846
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
814
            }
847
          }
815
            break;
848
          break;
816
          case LINE_STATUS:
849
        case 6: // LINE_STATUS
817
            if (field.type == TType.I32) {
850
          if (field.type == org.apache.thrift.protocol.TType.I32) {
818
              this.lineStatus = LineStatus.findByValue(iprot.readI32());
851
            this.lineStatus = LineStatus.findByValue(iprot.readI32());
819
            } else { 
852
          } else { 
820
              TProtocolUtil.skip(iprot, field.type);
853
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
821
            }
854
          }
822
            break;
855
          break;
823
          case ESTIMATE:
856
        case 7: // ESTIMATE
824
            if (field.type == TType.I32) {
857
          if (field.type == org.apache.thrift.protocol.TType.I32) {
825
              this.estimate = iprot.readI32();
858
            this.estimate = iprot.readI32();
826
              setEstimateIsSet(true);
859
            setEstimateIsSet(true);
827
            } else { 
860
          } else { 
828
              TProtocolUtil.skip(iprot, field.type);
861
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
829
            }
862
          }
830
            break;
863
          break;
831
          case ACTUAL_PRICE:
864
        case 8: // ACTUAL_PRICE
832
            if (field.type == TType.DOUBLE) {
865
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
833
              this.actualPrice = iprot.readDouble();
866
            this.actualPrice = iprot.readDouble();
834
              setActualPriceIsSet(true);
867
            setActualPriceIsSet(true);
835
            } else { 
868
          } else { 
836
              TProtocolUtil.skip(iprot, field.type);
869
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
837
            }
870
          }
838
            break;
871
          break;
839
          case DISCOUNTED_PRICE:
872
        case 9: // DISCOUNTED_PRICE
840
            if (field.type == TType.DOUBLE) {
873
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
841
              this.discountedPrice = iprot.readDouble();
874
            this.discountedPrice = iprot.readDouble();
842
              setDiscountedPriceIsSet(true);
875
            setDiscountedPriceIsSet(true);
843
            } else { 
876
          } else { 
844
              TProtocolUtil.skip(iprot, field.type);
877
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
845
            }
878
          }
846
            break;
879
          break;
847
        }
880
        default:
848
        iprot.readFieldEnd();
881
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
849
      }
882
      }
-
 
883
      iprot.readFieldEnd();
850
    }
884
    }
851
    iprot.readStructEnd();
885
    iprot.readStructEnd();
852
    validate();
886
    validate();
853
  }
887
  }
854
 
888
 
855
  public void write(TProtocol oprot) throws TException {
889
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
856
    validate();
890
    validate();
857
 
891
 
858
    oprot.writeStructBegin(STRUCT_DESC);
892
    oprot.writeStructBegin(STRUCT_DESC);
859
    oprot.writeFieldBegin(CART_ID_FIELD_DESC);
893
    oprot.writeFieldBegin(CART_ID_FIELD_DESC);
860
    oprot.writeI64(this.cartId);
894
    oprot.writeI64(this.cartId);
Line 916... Line 950...
916
    if (!first) sb.append(", ");
950
    if (!first) sb.append(", ");
917
    sb.append("lineStatus:");
951
    sb.append("lineStatus:");
918
    if (this.lineStatus == null) {
952
    if (this.lineStatus == null) {
919
      sb.append("null");
953
      sb.append("null");
920
    } else {
954
    } else {
921
      String lineStatus_name = lineStatus.name();
-
 
922
      if (lineStatus_name != null) {
-
 
923
        sb.append(lineStatus_name);
-
 
924
        sb.append(" (");
-
 
925
      }
-
 
926
      sb.append(this.lineStatus);
955
      sb.append(this.lineStatus);
927
      if (lineStatus_name != null) {
-
 
928
        sb.append(")");
-
 
929
      }
-
 
930
    }
956
    }
931
    first = false;
957
    first = false;
932
    if (!first) sb.append(", ");
958
    if (!first) sb.append(", ");
933
    sb.append("estimate:");
959
    sb.append("estimate:");
934
    sb.append(this.estimate);
960
    sb.append(this.estimate);
Line 943... Line 969...
943
    first = false;
969
    first = false;
944
    sb.append(")");
970
    sb.append(")");
945
    return sb.toString();
971
    return sb.toString();
946
  }
972
  }
947
 
973
 
948
  public void validate() throws TException {
974
  public void validate() throws org.apache.thrift.TException {
949
    // check for required fields
975
    // check for required fields
950
  }
976
  }
951
 
977
 
-
 
978
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
979
    try {
-
 
980
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
981
    } catch (org.apache.thrift.TException te) {
-
 
982
      throw new java.io.IOException(te);
-
 
983
    }
-
 
984
  }
-
 
985
 
-
 
986
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
987
    try {
-
 
988
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
989
      __isset_bit_vector = new BitSet(1);
-
 
990
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
991
    } catch (org.apache.thrift.TException te) {
-
 
992
      throw new java.io.IOException(te);
-
 
993
    }
-
 
994
  }
-
 
995
 
952
}
996
}
953
 
997