Subversion Repositories SmartDukaan

Rev

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

Rev 2115 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.catalog;
6
package in.shop2020.model.v1.catalog;
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 VendorItemMapping implements TBase<VendorItemMapping._Fields>, java.io.Serializable, Cloneable, Comparable<VendorItemMapping> {
23
public class VendorItemMapping implements org.apache.thrift.TBase<VendorItemMapping, VendorItemMapping._Fields>, java.io.Serializable, Cloneable {
27
  private static final TStruct STRUCT_DESC = new TStruct("VendorItemMapping");
24
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("VendorItemMapping");
28
 
25
 
29
  private static final TField VENDOR_ID_FIELD_DESC = new TField("vendorId", TType.I64, (short)1);
26
  private static final org.apache.thrift.protocol.TField VENDOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorId", org.apache.thrift.protocol.TType.I64, (short)1);
30
  private static final TField ITEM_KEY_FIELD_DESC = new TField("itemKey", TType.STRING, (short)2);
27
  private static final org.apache.thrift.protocol.TField ITEM_KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("itemKey", org.apache.thrift.protocol.TType.STRING, (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 VENDOR_CATEGORY_FIELD_DESC = new TField("vendorCategory", TType.STRING, (short)4);
29
  private static final org.apache.thrift.protocol.TField VENDOR_CATEGORY_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorCategory", org.apache.thrift.protocol.TType.STRING, (short)4);
33
 
30
 
34
  private long vendorId;
31
  private long vendorId; // required
35
  private String itemKey;
32
  private String itemKey; // required
36
  private long itemId;
33
  private long itemId; // required
37
  private String vendorCategory;
34
  private String vendorCategory; // 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
    VENDOR_ID((short)1, "vendorId"),
38
    VENDOR_ID((short)1, "vendorId"),
42
    ITEM_KEY((short)2, "itemKey"),
39
    ITEM_KEY((short)2, "itemKey"),
43
    ITEM_ID((short)3, "itemId"),
40
    ITEM_ID((short)3, "itemId"),
44
    VENDOR_CATEGORY((short)4, "vendorCategory");
41
    VENDOR_CATEGORY((short)4, "vendorCategory");
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: // VENDOR_ID
-
 
57
          return VENDOR_ID;
-
 
58
        case 2: // ITEM_KEY
-
 
59
          return ITEM_KEY;
-
 
60
        case 3: // ITEM_ID
-
 
61
          return ITEM_ID;
-
 
62
        case 4: // VENDOR_CATEGORY
-
 
63
          return VENDOR_CATEGORY;
-
 
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 97... Line 103...
97
  // isset id assignments
103
  // isset id assignments
98
  private static final int __VENDORID_ISSET_ID = 0;
104
  private static final int __VENDORID_ISSET_ID = 0;
99
  private static final int __ITEMID_ISSET_ID = 1;
105
  private static final int __ITEMID_ISSET_ID = 1;
100
  private BitSet __isset_bit_vector = new BitSet(2);
106
  private BitSet __isset_bit_vector = new BitSet(2);
101
 
107
 
102
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
108
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
103
    put(_Fields.VENDOR_ID, new FieldMetaData("vendorId", TFieldRequirementType.DEFAULT, 
-
 
104
        new FieldValueMetaData(TType.I64)));
-
 
105
    put(_Fields.ITEM_KEY, new FieldMetaData("itemKey", TFieldRequirementType.DEFAULT, 
-
 
106
        new FieldValueMetaData(TType.STRING)));
-
 
107
    put(_Fields.ITEM_ID, new FieldMetaData("itemId", TFieldRequirementType.DEFAULT, 
-
 
108
        new FieldValueMetaData(TType.I64)));
-
 
109
    put(_Fields.VENDOR_CATEGORY, new FieldMetaData("vendorCategory", TFieldRequirementType.DEFAULT, 
-
 
110
        new FieldValueMetaData(TType.STRING)));
-
 
111
  }});
-
 
112
 
-
 
113
  static {
109
  static {
-
 
110
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
111
    tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
112
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
113
    tmpMap.put(_Fields.ITEM_KEY, new org.apache.thrift.meta_data.FieldMetaData("itemKey", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
114
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
115
    tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
116
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
117
    tmpMap.put(_Fields.VENDOR_CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("vendorCategory", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
118
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
119
    metaDataMap = Collections.unmodifiableMap(tmpMap);
114
    FieldMetaData.addStructMetaDataMap(VendorItemMapping.class, metaDataMap);
120
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(VendorItemMapping.class, metaDataMap);
115
  }
121
  }
116
 
122
 
117
  public VendorItemMapping() {
123
  public VendorItemMapping() {
118
  }
124
  }
119
 
125
 
Line 150... Line 156...
150
 
156
 
151
  public VendorItemMapping deepCopy() {
157
  public VendorItemMapping deepCopy() {
152
    return new VendorItemMapping(this);
158
    return new VendorItemMapping(this);
153
  }
159
  }
154
 
160
 
155
  @Deprecated
161
  @Override
156
  public VendorItemMapping clone() {
162
  public void clear() {
157
    return new VendorItemMapping(this);
163
    setVendorIdIsSet(false);
-
 
164
    this.vendorId = 0;
-
 
165
    this.itemKey = null;
-
 
166
    setItemIdIsSet(false);
-
 
167
    this.itemId = 0;
-
 
168
    this.vendorCategory = null;
158
  }
169
  }
159
 
170
 
160
  public long getVendorId() {
171
  public long getVendorId() {
161
    return this.vendorId;
172
    return this.vendorId;
162
  }
173
  }
163
 
174
 
164
  public VendorItemMapping setVendorId(long vendorId) {
175
  public void setVendorId(long vendorId) {
165
    this.vendorId = vendorId;
176
    this.vendorId = vendorId;
166
    setVendorIdIsSet(true);
177
    setVendorIdIsSet(true);
167
    return this;
-
 
168
  }
178
  }
169
 
179
 
170
  public void unsetVendorId() {
180
  public void unsetVendorId() {
171
    __isset_bit_vector.clear(__VENDORID_ISSET_ID);
181
    __isset_bit_vector.clear(__VENDORID_ISSET_ID);
172
  }
182
  }
173
 
183
 
174
  /** Returns true if field vendorId is set (has been asigned a value) and false otherwise */
184
  /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
175
  public boolean isSetVendorId() {
185
  public boolean isSetVendorId() {
176
    return __isset_bit_vector.get(__VENDORID_ISSET_ID);
186
    return __isset_bit_vector.get(__VENDORID_ISSET_ID);
177
  }
187
  }
178
 
188
 
179
  public void setVendorIdIsSet(boolean value) {
189
  public void setVendorIdIsSet(boolean value) {
Line 182... Line 192...
182
 
192
 
183
  public String getItemKey() {
193
  public String getItemKey() {
184
    return this.itemKey;
194
    return this.itemKey;
185
  }
195
  }
186
 
196
 
187
  public VendorItemMapping setItemKey(String itemKey) {
197
  public void setItemKey(String itemKey) {
188
    this.itemKey = itemKey;
198
    this.itemKey = itemKey;
189
    return this;
-
 
190
  }
199
  }
191
 
200
 
192
  public void unsetItemKey() {
201
  public void unsetItemKey() {
193
    this.itemKey = null;
202
    this.itemKey = null;
194
  }
203
  }
195
 
204
 
196
  /** Returns true if field itemKey is set (has been asigned a value) and false otherwise */
205
  /** Returns true if field itemKey is set (has been assigned a value) and false otherwise */
197
  public boolean isSetItemKey() {
206
  public boolean isSetItemKey() {
198
    return this.itemKey != null;
207
    return this.itemKey != null;
199
  }
208
  }
200
 
209
 
201
  public void setItemKeyIsSet(boolean value) {
210
  public void setItemKeyIsSet(boolean value) {
Line 206... Line 215...
206
 
215
 
207
  public long getItemId() {
216
  public long getItemId() {
208
    return this.itemId;
217
    return this.itemId;
209
  }
218
  }
210
 
219
 
211
  public VendorItemMapping setItemId(long itemId) {
220
  public void setItemId(long itemId) {
212
    this.itemId = itemId;
221
    this.itemId = itemId;
213
    setItemIdIsSet(true);
222
    setItemIdIsSet(true);
214
    return this;
-
 
215
  }
223
  }
216
 
224
 
217
  public void unsetItemId() {
225
  public void unsetItemId() {
218
    __isset_bit_vector.clear(__ITEMID_ISSET_ID);
226
    __isset_bit_vector.clear(__ITEMID_ISSET_ID);
219
  }
227
  }
220
 
228
 
221
  /** Returns true if field itemId is set (has been asigned a value) and false otherwise */
229
  /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
222
  public boolean isSetItemId() {
230
  public boolean isSetItemId() {
223
    return __isset_bit_vector.get(__ITEMID_ISSET_ID);
231
    return __isset_bit_vector.get(__ITEMID_ISSET_ID);
224
  }
232
  }
225
 
233
 
226
  public void setItemIdIsSet(boolean value) {
234
  public void setItemIdIsSet(boolean value) {
Line 229... Line 237...
229
 
237
 
230
  public String getVendorCategory() {
238
  public String getVendorCategory() {
231
    return this.vendorCategory;
239
    return this.vendorCategory;
232
  }
240
  }
233
 
241
 
234
  public VendorItemMapping setVendorCategory(String vendorCategory) {
242
  public void setVendorCategory(String vendorCategory) {
235
    this.vendorCategory = vendorCategory;
243
    this.vendorCategory = vendorCategory;
236
    return this;
-
 
237
  }
244
  }
238
 
245
 
239
  public void unsetVendorCategory() {
246
  public void unsetVendorCategory() {
240
    this.vendorCategory = null;
247
    this.vendorCategory = null;
241
  }
248
  }
242
 
249
 
243
  /** Returns true if field vendorCategory is set (has been asigned a value) and false otherwise */
250
  /** Returns true if field vendorCategory is set (has been assigned a value) and false otherwise */
244
  public boolean isSetVendorCategory() {
251
  public boolean isSetVendorCategory() {
245
    return this.vendorCategory != null;
252
    return this.vendorCategory != null;
246
  }
253
  }
247
 
254
 
248
  public void setVendorCategoryIsSet(boolean value) {
255
  public void setVendorCategoryIsSet(boolean value) {
Line 286... Line 293...
286
      break;
293
      break;
287
 
294
 
288
    }
295
    }
289
  }
296
  }
290
 
297
 
291
  public void setFieldValue(int fieldID, Object value) {
-
 
292
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
293
  }
-
 
294
 
-
 
295
  public Object getFieldValue(_Fields field) {
298
  public Object getFieldValue(_Fields field) {
296
    switch (field) {
299
    switch (field) {
297
    case VENDOR_ID:
300
    case VENDOR_ID:
298
      return new Long(getVendorId());
301
      return Long.valueOf(getVendorId());
299
 
302
 
300
    case ITEM_KEY:
303
    case ITEM_KEY:
301
      return getItemKey();
304
      return getItemKey();
302
 
305
 
303
    case ITEM_ID:
306
    case ITEM_ID:
304
      return new Long(getItemId());
307
      return Long.valueOf(getItemId());
305
 
308
 
306
    case VENDOR_CATEGORY:
309
    case VENDOR_CATEGORY:
307
      return getVendorCategory();
310
      return getVendorCategory();
308
 
311
 
309
    }
312
    }
310
    throw new IllegalStateException();
313
    throw new IllegalStateException();
311
  }
314
  }
312
 
315
 
313
  public Object getFieldValue(int fieldId) {
-
 
314
    return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
315
  }
-
 
316
 
-
 
317
  /** 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 */
318
  public boolean isSet(_Fields field) {
317
  public boolean isSet(_Fields field) {
-
 
318
    if (field == null) {
-
 
319
      throw new IllegalArgumentException();
-
 
320
    }
-
 
321
 
319
    switch (field) {
322
    switch (field) {
320
    case VENDOR_ID:
323
    case VENDOR_ID:
321
      return isSetVendorId();
324
      return isSetVendorId();
322
    case ITEM_KEY:
325
    case ITEM_KEY:
323
      return isSetItemKey();
326
      return isSetItemKey();
Line 327... Line 330...
327
      return isSetVendorCategory();
330
      return isSetVendorCategory();
328
    }
331
    }
329
    throw new IllegalStateException();
332
    throw new IllegalStateException();
330
  }
333
  }
331
 
334
 
332
  public boolean isSet(int fieldID) {
-
 
333
    return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
334
  }
-
 
335
 
-
 
336
  @Override
335
  @Override
337
  public boolean equals(Object that) {
336
  public boolean equals(Object that) {
338
    if (that == null)
337
    if (that == null)
339
      return false;
338
      return false;
340
    if (that instanceof VendorItemMapping)
339
    if (that instanceof VendorItemMapping)
Line 396... Line 395...
396
    }
395
    }
397
 
396
 
398
    int lastComparison = 0;
397
    int lastComparison = 0;
399
    VendorItemMapping typedOther = (VendorItemMapping)other;
398
    VendorItemMapping typedOther = (VendorItemMapping)other;
400
 
399
 
401
    lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(isSetVendorId());
400
    lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
402
    if (lastComparison != 0) {
401
    if (lastComparison != 0) {
403
      return lastComparison;
402
      return lastComparison;
404
    }
403
    }
-
 
404
    if (isSetVendorId()) {
405
    lastComparison = TBaseHelper.compareTo(vendorId, typedOther.vendorId);
405
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
406
    if (lastComparison != 0) {
406
      if (lastComparison != 0) {
407
      return lastComparison;
407
        return lastComparison;
-
 
408
      }
408
    }
409
    }
409
    lastComparison = Boolean.valueOf(isSetItemKey()).compareTo(isSetItemKey());
410
    lastComparison = Boolean.valueOf(isSetItemKey()).compareTo(typedOther.isSetItemKey());
410
    if (lastComparison != 0) {
411
    if (lastComparison != 0) {
411
      return lastComparison;
412
      return lastComparison;
412
    }
413
    }
-
 
414
    if (isSetItemKey()) {
413
    lastComparison = TBaseHelper.compareTo(itemKey, typedOther.itemKey);
415
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemKey, typedOther.itemKey);
414
    if (lastComparison != 0) {
416
      if (lastComparison != 0) {
415
      return lastComparison;
417
        return lastComparison;
-
 
418
      }
416
    }
419
    }
417
    lastComparison = Boolean.valueOf(isSetItemId()).compareTo(isSetItemId());
420
    lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
418
    if (lastComparison != 0) {
421
    if (lastComparison != 0) {
419
      return lastComparison;
422
      return lastComparison;
420
    }
423
    }
-
 
424
    if (isSetItemId()) {
421
    lastComparison = TBaseHelper.compareTo(itemId, typedOther.itemId);
425
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
422
    if (lastComparison != 0) {
426
      if (lastComparison != 0) {
423
      return lastComparison;
427
        return lastComparison;
-
 
428
      }
424
    }
429
    }
425
    lastComparison = Boolean.valueOf(isSetVendorCategory()).compareTo(isSetVendorCategory());
430
    lastComparison = Boolean.valueOf(isSetVendorCategory()).compareTo(typedOther.isSetVendorCategory());
426
    if (lastComparison != 0) {
431
    if (lastComparison != 0) {
427
      return lastComparison;
432
      return lastComparison;
428
    }
433
    }
-
 
434
    if (isSetVendorCategory()) {
429
    lastComparison = TBaseHelper.compareTo(vendorCategory, typedOther.vendorCategory);
435
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorCategory, typedOther.vendorCategory);
430
    if (lastComparison != 0) {
436
      if (lastComparison != 0) {
431
      return lastComparison;
437
        return lastComparison;
-
 
438
      }
432
    }
439
    }
433
    return 0;
440
    return 0;
434
  }
441
  }
435
 
442
 
-
 
443
  public _Fields fieldForId(int fieldId) {
-
 
444
    return _Fields.findByThriftId(fieldId);
-
 
445
  }
-
 
446
 
436
  public void read(TProtocol iprot) throws TException {
447
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
437
    TField field;
448
    org.apache.thrift.protocol.TField field;
438
    iprot.readStructBegin();
449
    iprot.readStructBegin();
439
    while (true)
450
    while (true)
440
    {
451
    {
441
      field = iprot.readFieldBegin();
452
      field = iprot.readFieldBegin();
442
      if (field.type == TType.STOP) { 
453
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
443
        break;
454
        break;
444
      }
455
      }
445
      _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
446
      if (fieldId == null) {
-
 
447
        TProtocolUtil.skip(iprot, field.type);
-
 
448
      } else {
-
 
449
        switch (fieldId) {
456
      switch (field.id) {
450
          case VENDOR_ID:
457
        case 1: // VENDOR_ID
451
            if (field.type == TType.I64) {
458
          if (field.type == org.apache.thrift.protocol.TType.I64) {
452
              this.vendorId = iprot.readI64();
459
            this.vendorId = iprot.readI64();
453
              setVendorIdIsSet(true);
460
            setVendorIdIsSet(true);
454
            } else { 
461
          } else { 
455
              TProtocolUtil.skip(iprot, field.type);
462
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
456
            }
463
          }
457
            break;
464
          break;
458
          case ITEM_KEY:
465
        case 2: // ITEM_KEY
459
            if (field.type == TType.STRING) {
466
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
460
              this.itemKey = iprot.readString();
467
            this.itemKey = iprot.readString();
461
            } else { 
468
          } else { 
462
              TProtocolUtil.skip(iprot, field.type);
469
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
463
            }
470
          }
464
            break;
471
          break;
465
          case ITEM_ID:
472
        case 3: // ITEM_ID
466
            if (field.type == TType.I64) {
473
          if (field.type == org.apache.thrift.protocol.TType.I64) {
467
              this.itemId = iprot.readI64();
474
            this.itemId = iprot.readI64();
468
              setItemIdIsSet(true);
475
            setItemIdIsSet(true);
469
            } else { 
476
          } else { 
470
              TProtocolUtil.skip(iprot, field.type);
477
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
471
            }
478
          }
472
            break;
479
          break;
473
          case VENDOR_CATEGORY:
480
        case 4: // VENDOR_CATEGORY
474
            if (field.type == TType.STRING) {
481
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
475
              this.vendorCategory = iprot.readString();
482
            this.vendorCategory = iprot.readString();
476
            } else { 
483
          } else { 
477
              TProtocolUtil.skip(iprot, field.type);
484
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
478
            }
485
          }
479
            break;
486
          break;
480
        }
487
        default:
481
        iprot.readFieldEnd();
488
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
482
      }
489
      }
-
 
490
      iprot.readFieldEnd();
483
    }
491
    }
484
    iprot.readStructEnd();
492
    iprot.readStructEnd();
485
    validate();
493
    validate();
486
  }
494
  }
487
 
495
 
488
  public void write(TProtocol oprot) throws TException {
496
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
489
    validate();
497
    validate();
490
 
498
 
491
    oprot.writeStructBegin(STRUCT_DESC);
499
    oprot.writeStructBegin(STRUCT_DESC);
492
    oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
500
    oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
493
    oprot.writeI64(this.vendorId);
501
    oprot.writeI64(this.vendorId);
Line 539... Line 547...
539
    first = false;
547
    first = false;
540
    sb.append(")");
548
    sb.append(")");
541
    return sb.toString();
549
    return sb.toString();
542
  }
550
  }
543
 
551
 
544
  public void validate() throws TException {
552
  public void validate() throws org.apache.thrift.TException {
545
    // check for required fields
553
    // check for required fields
546
  }
554
  }
547
 
555
 
-
 
556
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
557
    try {
-
 
558
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
559
    } catch (org.apache.thrift.TException te) {
-
 
560
      throw new java.io.IOException(te);
-
 
561
    }
-
 
562
  }
-
 
563
 
-
 
564
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
565
    try {
-
 
566
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
567
      __isset_bit_vector = new BitSet(1);
-
 
568
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
569
    } catch (org.apache.thrift.TException te) {
-
 
570
      throw new java.io.IOException(te);
-
 
571
    }
-
 
572
  }
-
 
573
 
548
}
574
}
549
 
575