Subversion Repositories SmartDukaan

Rev

Rev 2981 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2981 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 UserWidgetItem implements TBase<UserWidgetItem._Fields>, java.io.Serializable, Cloneable, Comparable<UserWidgetItem> {
23
public class UserWidgetItem implements org.apache.thrift.TBase<UserWidgetItem, UserWidgetItem._Fields>, java.io.Serializable, Cloneable {
27
  private static final TStruct STRUCT_DESC = new TStruct("UserWidgetItem");
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("UserWidgetItem");
28
 
25
 
29
  private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
26
  private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
30
  private static final TField WIDGET_ID_FIELD_DESC = new TField("widgetId", TType.I64, (short)2);
27
  private static final org.apache.thrift.protocol.TField WIDGET_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("widgetId", org.apache.thrift.protocol.TType.I64, (short)2);
31
  private static final TField ITEM_ID_FIELD_DESC = new TField("itemId", TType.I64, (short)3);
28
  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)3);
32
  private static final TField ADDED_ON_FIELD_DESC = new TField("addedOn", TType.I64, (short)4);
29
  private static final org.apache.thrift.protocol.TField ADDED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("addedOn", org.apache.thrift.protocol.TType.I64, (short)4);
33
 
30
 
34
  private long userId;
31
  private long userId; // required
35
  private long widgetId;
32
  private long widgetId; // required
36
  private long itemId;
33
  private long itemId; // required
37
  private long addedOn;
34
  private long addedOn; // required
38
 
35
 
39
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
36
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
40
  public enum _Fields implements TFieldIdEnum {
37
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
41
    USER_ID((short)1, "userId"),
38
    USER_ID((short)1, "userId"),
42
    WIDGET_ID((short)2, "widgetId"),
39
    WIDGET_ID((short)2, "widgetId"),
43
    ITEM_ID((short)3, "itemId"),
40
    ITEM_ID((short)3, "itemId"),
44
    ADDED_ON((short)4, "addedOn");
41
    ADDED_ON((short)4, "addedOn");
45
 
42
 
46
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
47
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
43
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
48
 
44
 
49
    static {
45
    static {
50
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
46
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
51
        byId.put((int)field._thriftId, field);
-
 
52
        byName.put(field.getFieldName(), field);
47
        byName.put(field.getFieldName(), field);
53
      }
48
      }
54
    }
49
    }
55
 
50
 
56
    /**
51
    /**
57
     * Find the _Fields constant that matches fieldId, or null if its not found.
52
     * Find the _Fields constant that matches fieldId, or null if its not found.
58
     */
53
     */
59
    public static _Fields findByThriftId(int fieldId) {
54
    public static _Fields findByThriftId(int fieldId) {
60
      return byId.get(fieldId);
55
      switch(fieldId) {
-
 
56
        case 1: // USER_ID
-
 
57
          return USER_ID;
-
 
58
        case 2: // WIDGET_ID
-
 
59
          return WIDGET_ID;
-
 
60
        case 3: // ITEM_ID
-
 
61
          return ITEM_ID;
-
 
62
        case 4: // ADDED_ON
-
 
63
          return ADDED_ON;
-
 
64
        default:
-
 
65
          return null;
-
 
66
      }
61
    }
67
    }
62
 
68
 
63
    /**
69
    /**
64
     * Find the _Fields constant that matches fieldId, throwing an exception
70
     * Find the _Fields constant that matches fieldId, throwing an exception
65
     * if it is not found.
71
     * if it is not found.
Line 99... Line 105...
99
  private static final int __WIDGETID_ISSET_ID = 1;
105
  private static final int __WIDGETID_ISSET_ID = 1;
100
  private static final int __ITEMID_ISSET_ID = 2;
106
  private static final int __ITEMID_ISSET_ID = 2;
101
  private static final int __ADDEDON_ISSET_ID = 3;
107
  private static final int __ADDEDON_ISSET_ID = 3;
102
  private BitSet __isset_bit_vector = new BitSet(4);
108
  private BitSet __isset_bit_vector = new BitSet(4);
103
 
109
 
104
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
110
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
105
    put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
-
 
106
        new FieldValueMetaData(TType.I64)));
-
 
107
    put(_Fields.WIDGET_ID, new FieldMetaData("widgetId", TFieldRequirementType.DEFAULT, 
-
 
108
        new FieldValueMetaData(TType.I64)));
-
 
109
    put(_Fields.ITEM_ID, new FieldMetaData("itemId", TFieldRequirementType.DEFAULT, 
-
 
110
        new FieldValueMetaData(TType.I64)));
-
 
111
    put(_Fields.ADDED_ON, new FieldMetaData("addedOn", TFieldRequirementType.DEFAULT, 
-
 
112
        new FieldValueMetaData(TType.I64)));
-
 
113
  }});
-
 
114
 
-
 
115
  static {
111
  static {
-
 
112
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
113
    tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
114
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
115
    tmpMap.put(_Fields.WIDGET_ID, new org.apache.thrift.meta_data.FieldMetaData("widgetId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
116
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
117
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
118
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
119
    tmpMap.put(_Fields.ADDED_ON, new org.apache.thrift.meta_data.FieldMetaData("addedOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
120
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
121
    metaDataMap = Collections.unmodifiableMap(tmpMap);
116
    FieldMetaData.addStructMetaDataMap(UserWidgetItem.class, metaDataMap);
122
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(UserWidgetItem.class, metaDataMap);
117
  }
123
  }
118
 
124
 
119
  public UserWidgetItem() {
125
  public UserWidgetItem() {
120
  }
126
  }
121
 
127
 
Line 150... Line 156...
150
 
156
 
151
  public UserWidgetItem deepCopy() {
157
  public UserWidgetItem deepCopy() {
152
    return new UserWidgetItem(this);
158
    return new UserWidgetItem(this);
153
  }
159
  }
154
 
160
 
155
  @Deprecated
161
  @Override
156
  public UserWidgetItem clone() {
162
  public void clear() {
157
    return new UserWidgetItem(this);
163
    setUserIdIsSet(false);
-
 
164
    this.userId = 0;
-
 
165
    setWidgetIdIsSet(false);
-
 
166
    this.widgetId = 0;
-
 
167
    setItemIdIsSet(false);
-
 
168
    this.itemId = 0;
-
 
169
    setAddedOnIsSet(false);
-
 
170
    this.addedOn = 0;
158
  }
171
  }
159
 
172
 
160
  public long getUserId() {
173
  public long getUserId() {
161
    return this.userId;
174
    return this.userId;
162
  }
175
  }
163
 
176
 
164
  public UserWidgetItem setUserId(long userId) {
177
  public void setUserId(long userId) {
165
    this.userId = userId;
178
    this.userId = userId;
166
    setUserIdIsSet(true);
179
    setUserIdIsSet(true);
167
    return this;
-
 
168
  }
180
  }
169
 
181
 
170
  public void unsetUserId() {
182
  public void unsetUserId() {
171
    __isset_bit_vector.clear(__USERID_ISSET_ID);
183
    __isset_bit_vector.clear(__USERID_ISSET_ID);
172
  }
184
  }
173
 
185
 
174
  /** Returns true if field userId is set (has been asigned a value) and false otherwise */
186
  /** Returns true if field userId is set (has been assigned a value) and false otherwise */
175
  public boolean isSetUserId() {
187
  public boolean isSetUserId() {
176
    return __isset_bit_vector.get(__USERID_ISSET_ID);
188
    return __isset_bit_vector.get(__USERID_ISSET_ID);
177
  }
189
  }
178
 
190
 
179
  public void setUserIdIsSet(boolean value) {
191
  public void setUserIdIsSet(boolean value) {
Line 182... Line 194...
182
 
194
 
183
  public long getWidgetId() {
195
  public long getWidgetId() {
184
    return this.widgetId;
196
    return this.widgetId;
185
  }
197
  }
186
 
198
 
187
  public UserWidgetItem setWidgetId(long widgetId) {
199
  public void setWidgetId(long widgetId) {
188
    this.widgetId = widgetId;
200
    this.widgetId = widgetId;
189
    setWidgetIdIsSet(true);
201
    setWidgetIdIsSet(true);
190
    return this;
-
 
191
  }
202
  }
192
 
203
 
193
  public void unsetWidgetId() {
204
  public void unsetWidgetId() {
194
    __isset_bit_vector.clear(__WIDGETID_ISSET_ID);
205
    __isset_bit_vector.clear(__WIDGETID_ISSET_ID);
195
  }
206
  }
196
 
207
 
197
  /** Returns true if field widgetId is set (has been asigned a value) and false otherwise */
208
  /** Returns true if field widgetId is set (has been assigned a value) and false otherwise */
198
  public boolean isSetWidgetId() {
209
  public boolean isSetWidgetId() {
199
    return __isset_bit_vector.get(__WIDGETID_ISSET_ID);
210
    return __isset_bit_vector.get(__WIDGETID_ISSET_ID);
200
  }
211
  }
201
 
212
 
202
  public void setWidgetIdIsSet(boolean value) {
213
  public void setWidgetIdIsSet(boolean value) {
Line 205... Line 216...
205
 
216
 
206
  public long getItemId() {
217
  public long getItemId() {
207
    return this.itemId;
218
    return this.itemId;
208
  }
219
  }
209
 
220
 
210
  public UserWidgetItem setItemId(long itemId) {
221
  public void setItemId(long itemId) {
211
    this.itemId = itemId;
222
    this.itemId = itemId;
212
    setItemIdIsSet(true);
223
    setItemIdIsSet(true);
213
    return this;
-
 
214
  }
224
  }
215
 
225
 
216
  public void unsetItemId() {
226
  public void unsetItemId() {
217
    __isset_bit_vector.clear(__ITEMID_ISSET_ID);
227
    __isset_bit_vector.clear(__ITEMID_ISSET_ID);
218
  }
228
  }
219
 
229
 
220
  /** Returns true if field itemId is set (has been asigned a value) and false otherwise */
230
  /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
221
  public boolean isSetItemId() {
231
  public boolean isSetItemId() {
222
    return __isset_bit_vector.get(__ITEMID_ISSET_ID);
232
    return __isset_bit_vector.get(__ITEMID_ISSET_ID);
223
  }
233
  }
224
 
234
 
225
  public void setItemIdIsSet(boolean value) {
235
  public void setItemIdIsSet(boolean value) {
Line 228... Line 238...
228
 
238
 
229
  public long getAddedOn() {
239
  public long getAddedOn() {
230
    return this.addedOn;
240
    return this.addedOn;
231
  }
241
  }
232
 
242
 
233
  public UserWidgetItem setAddedOn(long addedOn) {
243
  public void setAddedOn(long addedOn) {
234
    this.addedOn = addedOn;
244
    this.addedOn = addedOn;
235
    setAddedOnIsSet(true);
245
    setAddedOnIsSet(true);
236
    return this;
-
 
237
  }
246
  }
238
 
247
 
239
  public void unsetAddedOn() {
248
  public void unsetAddedOn() {
240
    __isset_bit_vector.clear(__ADDEDON_ISSET_ID);
249
    __isset_bit_vector.clear(__ADDEDON_ISSET_ID);
241
  }
250
  }
242
 
251
 
243
  /** Returns true if field addedOn is set (has been asigned a value) and false otherwise */
252
  /** Returns true if field addedOn is set (has been assigned a value) and false otherwise */
244
  public boolean isSetAddedOn() {
253
  public boolean isSetAddedOn() {
245
    return __isset_bit_vector.get(__ADDEDON_ISSET_ID);
254
    return __isset_bit_vector.get(__ADDEDON_ISSET_ID);
246
  }
255
  }
247
 
256
 
248
  public void setAddedOnIsSet(boolean value) {
257
  public void setAddedOnIsSet(boolean value) {
Line 284... Line 293...
284
      break;
293
      break;
285
 
294
 
286
    }
295
    }
287
  }
296
  }
288
 
297
 
289
  public void setFieldValue(int fieldID, Object value) {
-
 
290
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
291
  }
-
 
292
 
-
 
293
  public Object getFieldValue(_Fields field) {
298
  public Object getFieldValue(_Fields field) {
294
    switch (field) {
299
    switch (field) {
295
    case USER_ID:
300
    case USER_ID:
296
      return new Long(getUserId());
301
      return Long.valueOf(getUserId());
297
 
302
 
298
    case WIDGET_ID:
303
    case WIDGET_ID:
299
      return new Long(getWidgetId());
304
      return Long.valueOf(getWidgetId());
300
 
305
 
301
    case ITEM_ID:
306
    case ITEM_ID:
302
      return new Long(getItemId());
307
      return Long.valueOf(getItemId());
303
 
308
 
304
    case ADDED_ON:
309
    case ADDED_ON:
305
      return new Long(getAddedOn());
310
      return Long.valueOf(getAddedOn());
306
 
311
 
307
    }
312
    }
308
    throw new IllegalStateException();
313
    throw new IllegalStateException();
309
  }
314
  }
310
 
315
 
311
  public Object getFieldValue(int fieldId) {
-
 
312
    return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
313
  }
-
 
314
 
-
 
315
  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
316
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
316
  public boolean isSet(_Fields field) {
317
  public boolean isSet(_Fields field) {
-
 
318
    if (field == null) {
-
 
319
      throw new IllegalArgumentException();
-
 
320
    }
-
 
321
 
317
    switch (field) {
322
    switch (field) {
318
    case USER_ID:
323
    case USER_ID:
319
      return isSetUserId();
324
      return isSetUserId();
320
    case WIDGET_ID:
325
    case WIDGET_ID:
321
      return isSetWidgetId();
326
      return isSetWidgetId();
Line 325... Line 330...
325
      return isSetAddedOn();
330
      return isSetAddedOn();
326
    }
331
    }
327
    throw new IllegalStateException();
332
    throw new IllegalStateException();
328
  }
333
  }
329
 
334
 
330
  public boolean isSet(int fieldID) {
-
 
331
    return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
332
  }
-
 
333
 
-
 
334
  @Override
335
  @Override
335
  public boolean equals(Object that) {
336
  public boolean equals(Object that) {
336
    if (that == null)
337
    if (that == null)
337
      return false;
338
      return false;
338
    if (that instanceof UserWidgetItem)
339
    if (that instanceof UserWidgetItem)
Line 394... Line 395...
394
    }
395
    }
395
 
396
 
396
    int lastComparison = 0;
397
    int lastComparison = 0;
397
    UserWidgetItem typedOther = (UserWidgetItem)other;
398
    UserWidgetItem typedOther = (UserWidgetItem)other;
398
 
399
 
399
    lastComparison = Boolean.valueOf(isSetUserId()).compareTo(isSetUserId());
400
    lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
400
    if (lastComparison != 0) {
401
    if (lastComparison != 0) {
401
      return lastComparison;
402
      return lastComparison;
402
    }
403
    }
-
 
404
    if (isSetUserId()) {
403
    lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
405
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
404
    if (lastComparison != 0) {
406
      if (lastComparison != 0) {
405
      return lastComparison;
407
        return lastComparison;
-
 
408
      }
406
    }
409
    }
407
    lastComparison = Boolean.valueOf(isSetWidgetId()).compareTo(isSetWidgetId());
410
    lastComparison = Boolean.valueOf(isSetWidgetId()).compareTo(typedOther.isSetWidgetId());
408
    if (lastComparison != 0) {
411
    if (lastComparison != 0) {
409
      return lastComparison;
412
      return lastComparison;
410
    }
413
    }
-
 
414
    if (isSetWidgetId()) {
411
    lastComparison = TBaseHelper.compareTo(widgetId, typedOther.widgetId);
415
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.widgetId, typedOther.widgetId);
412
    if (lastComparison != 0) {
416
      if (lastComparison != 0) {
413
      return lastComparison;
417
        return lastComparison;
-
 
418
      }
414
    }
419
    }
415
    lastComparison = Boolean.valueOf(isSetItemId()).compareTo(isSetItemId());
420
    lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
416
    if (lastComparison != 0) {
421
    if (lastComparison != 0) {
417
      return lastComparison;
422
      return lastComparison;
418
    }
423
    }
-
 
424
    if (isSetItemId()) {
419
    lastComparison = TBaseHelper.compareTo(itemId, typedOther.itemId);
425
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
420
    if (lastComparison != 0) {
426
      if (lastComparison != 0) {
421
      return lastComparison;
427
        return lastComparison;
-
 
428
      }
422
    }
429
    }
423
    lastComparison = Boolean.valueOf(isSetAddedOn()).compareTo(isSetAddedOn());
430
    lastComparison = Boolean.valueOf(isSetAddedOn()).compareTo(typedOther.isSetAddedOn());
424
    if (lastComparison != 0) {
431
    if (lastComparison != 0) {
425
      return lastComparison;
432
      return lastComparison;
426
    }
433
    }
-
 
434
    if (isSetAddedOn()) {
427
    lastComparison = TBaseHelper.compareTo(addedOn, typedOther.addedOn);
435
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addedOn, typedOther.addedOn);
428
    if (lastComparison != 0) {
436
      if (lastComparison != 0) {
429
      return lastComparison;
437
        return lastComparison;
-
 
438
      }
430
    }
439
    }
431
    return 0;
440
    return 0;
432
  }
441
  }
433
 
442
 
-
 
443
  public _Fields fieldForId(int fieldId) {
-
 
444
    return _Fields.findByThriftId(fieldId);
-
 
445
  }
-
 
446
 
434
  public void read(TProtocol iprot) throws TException {
447
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
435
    TField field;
448
    org.apache.thrift.protocol.TField field;
436
    iprot.readStructBegin();
449
    iprot.readStructBegin();
437
    while (true)
450
    while (true)
438
    {
451
    {
439
      field = iprot.readFieldBegin();
452
      field = iprot.readFieldBegin();
440
      if (field.type == TType.STOP) { 
453
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
441
        break;
454
        break;
442
      }
455
      }
443
      _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
444
      if (fieldId == null) {
-
 
445
        TProtocolUtil.skip(iprot, field.type);
-
 
446
      } else {
-
 
447
        switch (fieldId) {
456
      switch (field.id) {
448
          case USER_ID:
457
        case 1: // USER_ID
449
            if (field.type == TType.I64) {
458
          if (field.type == org.apache.thrift.protocol.TType.I64) {
450
              this.userId = iprot.readI64();
459
            this.userId = iprot.readI64();
451
              setUserIdIsSet(true);
460
            setUserIdIsSet(true);
452
            } else { 
461
          } else { 
453
              TProtocolUtil.skip(iprot, field.type);
462
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
454
            }
463
          }
455
            break;
464
          break;
456
          case WIDGET_ID:
465
        case 2: // WIDGET_ID
457
            if (field.type == TType.I64) {
466
          if (field.type == org.apache.thrift.protocol.TType.I64) {
458
              this.widgetId = iprot.readI64();
467
            this.widgetId = iprot.readI64();
459
              setWidgetIdIsSet(true);
468
            setWidgetIdIsSet(true);
460
            } else { 
469
          } else { 
461
              TProtocolUtil.skip(iprot, field.type);
470
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
462
            }
471
          }
463
            break;
472
          break;
464
          case ITEM_ID:
473
        case 3: // ITEM_ID
465
            if (field.type == TType.I64) {
474
          if (field.type == org.apache.thrift.protocol.TType.I64) {
466
              this.itemId = iprot.readI64();
475
            this.itemId = iprot.readI64();
467
              setItemIdIsSet(true);
476
            setItemIdIsSet(true);
468
            } else { 
477
          } else { 
469
              TProtocolUtil.skip(iprot, field.type);
478
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
470
            }
479
          }
471
            break;
480
          break;
472
          case ADDED_ON:
481
        case 4: // ADDED_ON
473
            if (field.type == TType.I64) {
482
          if (field.type == org.apache.thrift.protocol.TType.I64) {
474
              this.addedOn = iprot.readI64();
483
            this.addedOn = iprot.readI64();
475
              setAddedOnIsSet(true);
484
            setAddedOnIsSet(true);
476
            } else { 
485
          } else { 
477
              TProtocolUtil.skip(iprot, field.type);
486
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
478
            }
487
          }
479
            break;
488
          break;
480
        }
489
        default:
481
        iprot.readFieldEnd();
490
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
482
      }
491
      }
-
 
492
      iprot.readFieldEnd();
483
    }
493
    }
484
    iprot.readStructEnd();
494
    iprot.readStructEnd();
485
    validate();
495
    validate();
486
  }
496
  }
487
 
497
 
488
  public void write(TProtocol oprot) throws TException {
498
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
489
    validate();
499
    validate();
490
 
500
 
491
    oprot.writeStructBegin(STRUCT_DESC);
501
    oprot.writeStructBegin(STRUCT_DESC);
492
    oprot.writeFieldBegin(USER_ID_FIELD_DESC);
502
    oprot.writeFieldBegin(USER_ID_FIELD_DESC);
493
    oprot.writeI64(this.userId);
503
    oprot.writeI64(this.userId);
Line 527... Line 537...
527
    first = false;
537
    first = false;
528
    sb.append(")");
538
    sb.append(")");
529
    return sb.toString();
539
    return sb.toString();
530
  }
540
  }
531
 
541
 
532
  public void validate() throws TException {
542
  public void validate() throws org.apache.thrift.TException {
533
    // check for required fields
543
    // check for required fields
534
  }
544
  }
535
 
545
 
-
 
546
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
547
    try {
-
 
548
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
549
    } catch (org.apache.thrift.TException te) {
-
 
550
      throw new java.io.IOException(te);
-
 
551
    }
-
 
552
  }
-
 
553
 
-
 
554
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
555
    try {
-
 
556
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
557
      __isset_bit_vector = new BitSet(1);
-
 
558
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
559
    } catch (org.apache.thrift.TException te) {
-
 
560
      throw new java.io.IOException(te);
-
 
561
    }
-
 
562
  }
-
 
563
 
536
}
564
}
537
 
565