Subversion Repositories SmartDukaan

Rev

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

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