Subversion Repositories SmartDukaan

Rev

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

Rev 510 Rev 648
Line 24... Line 24...
24
import org.apache.thrift.protocol.*;
24
import org.apache.thrift.protocol.*;
25
 
25
 
26
public class LogisticsInfo implements TBase<LogisticsInfo._Fields>, java.io.Serializable, Cloneable, Comparable<LogisticsInfo> {
26
public class LogisticsInfo implements TBase<LogisticsInfo._Fields>, java.io.Serializable, Cloneable, Comparable<LogisticsInfo> {
27
  private static final TStruct STRUCT_DESC = new TStruct("LogisticsInfo");
27
  private static final TStruct STRUCT_DESC = new TStruct("LogisticsInfo");
28
 
28
 
29
  private static final TField WAREHOUSE_ID_FIELD_DESC = new TField("warehouse_id", TType.I64, (short)1);
29
  private static final TField WAREHOUSE_ID_FIELD_DESC = new TField("warehouseId", TType.I64, (short)1);
30
  private static final TField PROVIDER_ID_FIELD_DESC = new TField("provider_id", TType.I64, (short)2);
30
  private static final TField PROVIDER_ID_FIELD_DESC = new TField("providerId", TType.I64, (short)2);
31
  private static final TField AIRWAY_BILLNO_FIELD_DESC = new TField("airway_billno", TType.STRING, (short)3);
31
  private static final TField DELIVERY_TIME_FIELD_DESC = new TField("deliveryTime", TType.I64, (short)3);
32
  private static final TField DELIVERY_ESTIMATE_FIELD_DESC = new TField("delivery_estimate", TType.I64, (short)4);
32
  private static final TField AIRWAY_BILLNO_FIELD_DESC = new TField("airway_billno", TType.STRING, (short)4);
33
 
33
 
34
  private long warehouse_id;
34
  private long warehouseId;
35
  private long provider_id;
35
  private long providerId;
-
 
36
  private long deliveryTime;
36
  private String airway_billno;
37
  private String airway_billno;
37
  private long delivery_estimate;
-
 
38
 
38
 
39
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
39
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
40
  public enum _Fields implements TFieldIdEnum {
40
  public enum _Fields implements TFieldIdEnum {
41
    WAREHOUSE_ID((short)1, "warehouse_id"),
41
    WAREHOUSE_ID((short)1, "warehouseId"),
42
    PROVIDER_ID((short)2, "provider_id"),
42
    PROVIDER_ID((short)2, "providerId"),
43
    AIRWAY_BILLNO((short)3, "airway_billno"),
43
    DELIVERY_TIME((short)3, "deliveryTime"),
44
    DELIVERY_ESTIMATE((short)4, "delivery_estimate");
44
    AIRWAY_BILLNO((short)4, "airway_billno");
45
 
45
 
46
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
46
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
47
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
47
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
48
 
48
 
49
    static {
49
    static {
Line 93... Line 93...
93
      return _fieldName;
93
      return _fieldName;
94
    }
94
    }
95
  }
95
  }
96
 
96
 
97
  // isset id assignments
97
  // isset id assignments
98
  private static final int __WAREHOUSE_ID_ISSET_ID = 0;
98
  private static final int __WAREHOUSEID_ISSET_ID = 0;
99
  private static final int __PROVIDER_ID_ISSET_ID = 1;
99
  private static final int __PROVIDERID_ISSET_ID = 1;
100
  private static final int __DELIVERY_ESTIMATE_ISSET_ID = 2;
100
  private static final int __DELIVERYTIME_ISSET_ID = 2;
101
  private BitSet __isset_bit_vector = new BitSet(3);
101
  private BitSet __isset_bit_vector = new BitSet(3);
102
 
102
 
103
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
103
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
104
    put(_Fields.WAREHOUSE_ID, new FieldMetaData("warehouse_id", TFieldRequirementType.DEFAULT, 
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, 
105
        new FieldValueMetaData(TType.I64)));
107
        new FieldValueMetaData(TType.I64)));
106
    put(_Fields.PROVIDER_ID, new FieldMetaData("provider_id", TFieldRequirementType.DEFAULT, 
108
    put(_Fields.DELIVERY_TIME, new FieldMetaData("deliveryTime", TFieldRequirementType.DEFAULT, 
107
        new FieldValueMetaData(TType.I64)));
109
        new FieldValueMetaData(TType.I64)));
108
    put(_Fields.AIRWAY_BILLNO, new FieldMetaData("airway_billno", TFieldRequirementType.DEFAULT, 
110
    put(_Fields.AIRWAY_BILLNO, new FieldMetaData("airway_billno", TFieldRequirementType.DEFAULT, 
109
        new FieldValueMetaData(TType.STRING)));
111
        new FieldValueMetaData(TType.STRING)));
110
    put(_Fields.DELIVERY_ESTIMATE, new FieldMetaData("delivery_estimate", TFieldRequirementType.DEFAULT, 
-
 
111
        new FieldValueMetaData(TType.I64)));
-
 
112
  }});
112
  }});
113
 
113
 
114
  static {
114
  static {
115
    FieldMetaData.addStructMetaDataMap(LogisticsInfo.class, metaDataMap);
115
    FieldMetaData.addStructMetaDataMap(LogisticsInfo.class, metaDataMap);
116
  }
116
  }
117
 
117
 
118
  public LogisticsInfo() {
118
  public LogisticsInfo() {
119
  }
119
  }
120
 
120
 
121
  public LogisticsInfo(
121
  public LogisticsInfo(
122
    long warehouse_id,
122
    long warehouseId,
123
    long provider_id,
123
    long providerId,
124
    String airway_billno,
124
    long deliveryTime,
125
    long delivery_estimate)
125
    String airway_billno)
126
  {
126
  {
127
    this();
127
    this();
128
    this.warehouse_id = warehouse_id;
128
    this.warehouseId = warehouseId;
129
    setWarehouse_idIsSet(true);
129
    setWarehouseIdIsSet(true);
130
    this.provider_id = provider_id;
130
    this.providerId = providerId;
131
    setProvider_idIsSet(true);
131
    setProviderIdIsSet(true);
-
 
132
    this.deliveryTime = deliveryTime;
-
 
133
    setDeliveryTimeIsSet(true);
132
    this.airway_billno = airway_billno;
134
    this.airway_billno = airway_billno;
133
    this.delivery_estimate = delivery_estimate;
-
 
134
    setDelivery_estimateIsSet(true);
-
 
135
  }
135
  }
136
 
136
 
137
  /**
137
  /**
138
   * Performs a deep copy on <i>other</i>.
138
   * Performs a deep copy on <i>other</i>.
139
   */
139
   */
140
  public LogisticsInfo(LogisticsInfo other) {
140
  public LogisticsInfo(LogisticsInfo other) {
141
    __isset_bit_vector.clear();
141
    __isset_bit_vector.clear();
142
    __isset_bit_vector.or(other.__isset_bit_vector);
142
    __isset_bit_vector.or(other.__isset_bit_vector);
143
    this.warehouse_id = other.warehouse_id;
143
    this.warehouseId = other.warehouseId;
144
    this.provider_id = other.provider_id;
144
    this.providerId = other.providerId;
-
 
145
    this.deliveryTime = other.deliveryTime;
145
    if (other.isSetAirway_billno()) {
146
    if (other.isSetAirway_billno()) {
146
      this.airway_billno = other.airway_billno;
147
      this.airway_billno = other.airway_billno;
147
    }
148
    }
148
    this.delivery_estimate = other.delivery_estimate;
-
 
149
  }
149
  }
150
 
150
 
151
  public LogisticsInfo deepCopy() {
151
  public LogisticsInfo deepCopy() {
152
    return new LogisticsInfo(this);
152
    return new LogisticsInfo(this);
153
  }
153
  }
Line 155... Line 155...
155
  @Deprecated
155
  @Deprecated
156
  public LogisticsInfo clone() {
156
  public LogisticsInfo clone() {
157
    return new LogisticsInfo(this);
157
    return new LogisticsInfo(this);
158
  }
158
  }
159
 
159
 
160
  public long getWarehouse_id() {
160
  public long getWarehouseId() {
161
    return this.warehouse_id;
161
    return this.warehouseId;
162
  }
162
  }
163
 
163
 
164
  public LogisticsInfo setWarehouse_id(long warehouse_id) {
164
  public LogisticsInfo setWarehouseId(long warehouseId) {
165
    this.warehouse_id = warehouse_id;
165
    this.warehouseId = warehouseId;
166
    setWarehouse_idIsSet(true);
166
    setWarehouseIdIsSet(true);
167
    return this;
167
    return this;
168
  }
168
  }
169
 
169
 
170
  public void unsetWarehouse_id() {
170
  public void unsetWarehouseId() {
171
    __isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);
171
    __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
172
  }
172
  }
173
 
173
 
174
  /** Returns true if field warehouse_id is set (has been asigned a value) and false otherwise */
174
  /** Returns true if field warehouseId is set (has been asigned a value) and false otherwise */
175
  public boolean isSetWarehouse_id() {
175
  public boolean isSetWarehouseId() {
176
    return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);
176
    return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
177
  }
177
  }
178
 
178
 
179
  public void setWarehouse_idIsSet(boolean value) {
179
  public void setWarehouseIdIsSet(boolean value) {
180
    __isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);
180
    __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
181
  }
181
  }
182
 
182
 
183
  public long getProvider_id() {
183
  public long getProviderId() {
184
    return this.provider_id;
184
    return this.providerId;
185
  }
185
  }
186
 
186
 
187
  public LogisticsInfo setProvider_id(long provider_id) {
187
  public LogisticsInfo setProviderId(long providerId) {
188
    this.provider_id = provider_id;
188
    this.providerId = providerId;
189
    setProvider_idIsSet(true);
189
    setProviderIdIsSet(true);
190
    return this;
190
    return this;
191
  }
191
  }
192
 
192
 
193
  public void unsetProvider_id() {
193
  public void unsetProviderId() {
194
    __isset_bit_vector.clear(__PROVIDER_ID_ISSET_ID);
194
    __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
-
 
195
  }
-
 
196
 
-
 
197
  /** Returns true if field providerId is set (has been asigned a value) and false otherwise */
-
 
198
  public boolean isSetProviderId() {
-
 
199
    return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
-
 
200
  }
-
 
201
 
-
 
202
  public void setProviderIdIsSet(boolean value) {
-
 
203
    __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
195
  }
204
  }
196
 
205
 
197
  /** Returns true if field provider_id is set (has been asigned a value) and false otherwise */
-
 
198
  public boolean isSetProvider_id() {
206
  public long getDeliveryTime() {
199
    return __isset_bit_vector.get(__PROVIDER_ID_ISSET_ID);
207
    return this.deliveryTime;
200
  }
208
  }
201
 
209
 
-
 
210
  public LogisticsInfo setDeliveryTime(long deliveryTime) {
-
 
211
    this.deliveryTime = deliveryTime;
-
 
212
    setDeliveryTimeIsSet(true);
-
 
213
    return this;
-
 
214
  }
-
 
215
 
-
 
216
  public void unsetDeliveryTime() {
-
 
217
    __isset_bit_vector.clear(__DELIVERYTIME_ISSET_ID);
-
 
218
  }
-
 
219
 
-
 
220
  /** Returns true if field deliveryTime is set (has been asigned a value) and false otherwise */
-
 
221
  public boolean isSetDeliveryTime() {
-
 
222
    return __isset_bit_vector.get(__DELIVERYTIME_ISSET_ID);
-
 
223
  }
-
 
224
 
202
  public void setProvider_idIsSet(boolean value) {
225
  public void setDeliveryTimeIsSet(boolean value) {
203
    __isset_bit_vector.set(__PROVIDER_ID_ISSET_ID, value);
226
    __isset_bit_vector.set(__DELIVERYTIME_ISSET_ID, value);
204
  }
227
  }
205
 
228
 
206
  public String getAirway_billno() {
229
  public String getAirway_billno() {
207
    return this.airway_billno;
230
    return this.airway_billno;
208
  }
231
  }
Line 225... Line 248...
225
    if (!value) {
248
    if (!value) {
226
      this.airway_billno = null;
249
      this.airway_billno = null;
227
    }
250
    }
228
  }
251
  }
229
 
252
 
230
  public long getDelivery_estimate() {
-
 
231
    return this.delivery_estimate;
-
 
232
  }
-
 
233
 
-
 
234
  public LogisticsInfo setDelivery_estimate(long delivery_estimate) {
-
 
235
    this.delivery_estimate = delivery_estimate;
-
 
236
    setDelivery_estimateIsSet(true);
-
 
237
    return this;
-
 
238
  }
-
 
239
 
-
 
240
  public void unsetDelivery_estimate() {
-
 
241
    __isset_bit_vector.clear(__DELIVERY_ESTIMATE_ISSET_ID);
-
 
242
  }
-
 
243
 
-
 
244
  /** Returns true if field delivery_estimate is set (has been asigned a value) and false otherwise */
-
 
245
  public boolean isSetDelivery_estimate() {
-
 
246
    return __isset_bit_vector.get(__DELIVERY_ESTIMATE_ISSET_ID);
-
 
247
  }
-
 
248
 
-
 
249
  public void setDelivery_estimateIsSet(boolean value) {
-
 
250
    __isset_bit_vector.set(__DELIVERY_ESTIMATE_ISSET_ID, value);
-
 
251
  }
-
 
252
 
-
 
253
  public void setFieldValue(_Fields field, Object value) {
253
  public void setFieldValue(_Fields field, Object value) {
254
    switch (field) {
254
    switch (field) {
255
    case WAREHOUSE_ID:
255
    case WAREHOUSE_ID:
256
      if (value == null) {
256
      if (value == null) {
257
        unsetWarehouse_id();
257
        unsetWarehouseId();
258
      } else {
258
      } else {
259
        setWarehouse_id((Long)value);
259
        setWarehouseId((Long)value);
260
      }
260
      }
261
      break;
261
      break;
262
 
262
 
263
    case PROVIDER_ID:
263
    case PROVIDER_ID:
264
      if (value == null) {
264
      if (value == null) {
265
        unsetProvider_id();
265
        unsetProviderId();
266
      } else {
266
      } else {
267
        setProvider_id((Long)value);
267
        setProviderId((Long)value);
268
      }
268
      }
269
      break;
269
      break;
270
 
270
 
271
    case AIRWAY_BILLNO:
271
    case DELIVERY_TIME:
272
      if (value == null) {
272
      if (value == null) {
273
        unsetAirway_billno();
273
        unsetDeliveryTime();
274
      } else {
274
      } else {
275
        setAirway_billno((String)value);
275
        setDeliveryTime((Long)value);
276
      }
276
      }
277
      break;
277
      break;
278
 
278
 
279
    case DELIVERY_ESTIMATE:
279
    case AIRWAY_BILLNO:
280
      if (value == null) {
280
      if (value == null) {
281
        unsetDelivery_estimate();
281
        unsetAirway_billno();
282
      } else {
282
      } else {
283
        setDelivery_estimate((Long)value);
283
        setAirway_billno((String)value);
284
      }
284
      }
285
      break;
285
      break;
286
 
286
 
287
    }
287
    }
288
  }
288
  }
Line 292... Line 292...
292
  }
292
  }
293
 
293
 
294
  public Object getFieldValue(_Fields field) {
294
  public Object getFieldValue(_Fields field) {
295
    switch (field) {
295
    switch (field) {
296
    case WAREHOUSE_ID:
296
    case WAREHOUSE_ID:
297
      return new Long(getWarehouse_id());
297
      return new Long(getWarehouseId());
298
 
298
 
299
    case PROVIDER_ID:
299
    case PROVIDER_ID:
300
      return new Long(getProvider_id());
300
      return new Long(getProviderId());
-
 
301
 
-
 
302
    case DELIVERY_TIME:
-
 
303
      return new Long(getDeliveryTime());
301
 
304
 
302
    case AIRWAY_BILLNO:
305
    case AIRWAY_BILLNO:
303
      return getAirway_billno();
306
      return getAirway_billno();
304
 
307
 
305
    case DELIVERY_ESTIMATE:
-
 
306
      return new Long(getDelivery_estimate());
-
 
307
 
-
 
308
    }
308
    }
309
    throw new IllegalStateException();
309
    throw new IllegalStateException();
310
  }
310
  }
311
 
311
 
312
  public Object getFieldValue(int fieldId) {
312
  public Object getFieldValue(int fieldId) {
Line 315... Line 315...
315
 
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 asigned a value) and false otherwise */
317
  public boolean isSet(_Fields field) {
317
  public boolean isSet(_Fields field) {
318
    switch (field) {
318
    switch (field) {
319
    case WAREHOUSE_ID:
319
    case WAREHOUSE_ID:
320
      return isSetWarehouse_id();
320
      return isSetWarehouseId();
321
    case PROVIDER_ID:
321
    case PROVIDER_ID:
322
      return isSetProvider_id();
322
      return isSetProviderId();
-
 
323
    case DELIVERY_TIME:
-
 
324
      return isSetDeliveryTime();
323
    case AIRWAY_BILLNO:
325
    case AIRWAY_BILLNO:
324
      return isSetAirway_billno();
326
      return isSetAirway_billno();
325
    case DELIVERY_ESTIMATE:
-
 
326
      return isSetDelivery_estimate();
-
 
327
    }
327
    }
328
    throw new IllegalStateException();
328
    throw new IllegalStateException();
329
  }
329
  }
330
 
330
 
331
  public boolean isSet(int fieldID) {
331
  public boolean isSet(int fieldID) {
Line 343... Line 343...
343
 
343
 
344
  public boolean equals(LogisticsInfo that) {
344
  public boolean equals(LogisticsInfo that) {
345
    if (that == null)
345
    if (that == null)
346
      return false;
346
      return false;
347
 
347
 
348
    boolean this_present_warehouse_id = true;
348
    boolean this_present_warehouseId = true;
349
    boolean that_present_warehouse_id = true;
349
    boolean that_present_warehouseId = true;
350
    if (this_present_warehouse_id || that_present_warehouse_id) {
350
    if (this_present_warehouseId || that_present_warehouseId) {
351
      if (!(this_present_warehouse_id && that_present_warehouse_id))
351
      if (!(this_present_warehouseId && that_present_warehouseId))
-
 
352
        return false;
-
 
353
      if (this.warehouseId != that.warehouseId)
-
 
354
        return false;
-
 
355
    }
-
 
356
 
-
 
357
    boolean this_present_providerId = true;
-
 
358
    boolean that_present_providerId = true;
-
 
359
    if (this_present_providerId || that_present_providerId) {
-
 
360
      if (!(this_present_providerId && that_present_providerId))
352
        return false;
361
        return false;
353
      if (this.warehouse_id != that.warehouse_id)
362
      if (this.providerId != that.providerId)
354
        return false;
363
        return false;
355
    }
364
    }
356
 
365
 
357
    boolean this_present_provider_id = true;
366
    boolean this_present_deliveryTime = true;
358
    boolean that_present_provider_id = true;
367
    boolean that_present_deliveryTime = true;
359
    if (this_present_provider_id || that_present_provider_id) {
368
    if (this_present_deliveryTime || that_present_deliveryTime) {
360
      if (!(this_present_provider_id && that_present_provider_id))
369
      if (!(this_present_deliveryTime && that_present_deliveryTime))
361
        return false;
370
        return false;
362
      if (this.provider_id != that.provider_id)
371
      if (this.deliveryTime != that.deliveryTime)
363
        return false;
372
        return false;
364
    }
373
    }
365
 
374
 
366
    boolean this_present_airway_billno = true && this.isSetAirway_billno();
375
    boolean this_present_airway_billno = true && this.isSetAirway_billno();
367
    boolean that_present_airway_billno = true && that.isSetAirway_billno();
376
    boolean that_present_airway_billno = true && that.isSetAirway_billno();
Line 370... Line 379...
370
        return false;
379
        return false;
371
      if (!this.airway_billno.equals(that.airway_billno))
380
      if (!this.airway_billno.equals(that.airway_billno))
372
        return false;
381
        return false;
373
    }
382
    }
374
 
383
 
375
    boolean this_present_delivery_estimate = true;
-
 
376
    boolean that_present_delivery_estimate = true;
-
 
377
    if (this_present_delivery_estimate || that_present_delivery_estimate) {
-
 
378
      if (!(this_present_delivery_estimate && that_present_delivery_estimate))
-
 
379
        return false;
-
 
380
      if (this.delivery_estimate != that.delivery_estimate)
-
 
381
        return false;
-
 
382
    }
-
 
383
 
-
 
384
    return true;
384
    return true;
385
  }
385
  }
386
 
386
 
387
  @Override
387
  @Override
388
  public int hashCode() {
388
  public int hashCode() {
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(isSetWarehouse_id()).compareTo(isSetWarehouse_id());
400
    lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(isSetWarehouseId());
401
    if (lastComparison != 0) {
401
    if (lastComparison != 0) {
402
      return lastComparison;
402
      return lastComparison;
403
    }
403
    }
404
    lastComparison = TBaseHelper.compareTo(warehouse_id, typedOther.warehouse_id);
404
    lastComparison = TBaseHelper.compareTo(warehouseId, typedOther.warehouseId);
405
    if (lastComparison != 0) {
405
    if (lastComparison != 0) {
406
      return lastComparison;
406
      return lastComparison;
407
    }
407
    }
408
    lastComparison = Boolean.valueOf(isSetProvider_id()).compareTo(isSetProvider_id());
408
    lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(isSetProviderId());
409
    if (lastComparison != 0) {
409
    if (lastComparison != 0) {
410
      return lastComparison;
410
      return lastComparison;
411
    }
411
    }
412
    lastComparison = TBaseHelper.compareTo(provider_id, typedOther.provider_id);
412
    lastComparison = TBaseHelper.compareTo(providerId, typedOther.providerId);
413
    if (lastComparison != 0) {
413
    if (lastComparison != 0) {
414
      return lastComparison;
414
      return lastComparison;
415
    }
415
    }
416
    lastComparison = Boolean.valueOf(isSetAirway_billno()).compareTo(isSetAirway_billno());
416
    lastComparison = Boolean.valueOf(isSetDeliveryTime()).compareTo(isSetDeliveryTime());
417
    if (lastComparison != 0) {
417
    if (lastComparison != 0) {
418
      return lastComparison;
418
      return lastComparison;
419
    }
419
    }
420
    lastComparison = TBaseHelper.compareTo(airway_billno, typedOther.airway_billno);
420
    lastComparison = TBaseHelper.compareTo(deliveryTime, typedOther.deliveryTime);
421
    if (lastComparison != 0) {
421
    if (lastComparison != 0) {
422
      return lastComparison;
422
      return lastComparison;
423
    }
423
    }
424
    lastComparison = Boolean.valueOf(isSetDelivery_estimate()).compareTo(isSetDelivery_estimate());
424
    lastComparison = Boolean.valueOf(isSetAirway_billno()).compareTo(isSetAirway_billno());
425
    if (lastComparison != 0) {
425
    if (lastComparison != 0) {
426
      return lastComparison;
426
      return lastComparison;
427
    }
427
    }
428
    lastComparison = TBaseHelper.compareTo(delivery_estimate, typedOther.delivery_estimate);
428
    lastComparison = TBaseHelper.compareTo(airway_billno, typedOther.airway_billno);
429
    if (lastComparison != 0) {
429
    if (lastComparison != 0) {
430
      return lastComparison;
430
      return lastComparison;
431
    }
431
    }
432
    return 0;
432
    return 0;
433
  }
433
  }
Line 446... Line 446...
446
        TProtocolUtil.skip(iprot, field.type);
446
        TProtocolUtil.skip(iprot, field.type);
447
      } else {
447
      } else {
448
        switch (fieldId) {
448
        switch (fieldId) {
449
          case WAREHOUSE_ID:
449
          case WAREHOUSE_ID:
450
            if (field.type == TType.I64) {
450
            if (field.type == TType.I64) {
451
              this.warehouse_id = iprot.readI64();
451
              this.warehouseId = iprot.readI64();
452
              setWarehouse_idIsSet(true);
452
              setWarehouseIdIsSet(true);
453
            } else { 
453
            } else { 
454
              TProtocolUtil.skip(iprot, field.type);
454
              TProtocolUtil.skip(iprot, field.type);
455
            }
455
            }
456
            break;
456
            break;
457
          case PROVIDER_ID:
457
          case PROVIDER_ID:
458
            if (field.type == TType.I64) {
458
            if (field.type == TType.I64) {
459
              this.provider_id = iprot.readI64();
459
              this.providerId = iprot.readI64();
460
              setProvider_idIsSet(true);
460
              setProviderIdIsSet(true);
461
            } else { 
461
            } else { 
462
              TProtocolUtil.skip(iprot, field.type);
462
              TProtocolUtil.skip(iprot, field.type);
463
            }
463
            }
464
            break;
464
            break;
465
          case AIRWAY_BILLNO:
465
          case DELIVERY_TIME:
466
            if (field.type == TType.STRING) {
466
            if (field.type == TType.I64) {
467
              this.airway_billno = iprot.readString();
467
              this.deliveryTime = iprot.readI64();
-
 
468
              setDeliveryTimeIsSet(true);
468
            } else { 
469
            } else { 
469
              TProtocolUtil.skip(iprot, field.type);
470
              TProtocolUtil.skip(iprot, field.type);
470
            }
471
            }
471
            break;
472
            break;
472
          case DELIVERY_ESTIMATE:
473
          case AIRWAY_BILLNO:
473
            if (field.type == TType.I64) {
474
            if (field.type == TType.STRING) {
474
              this.delivery_estimate = iprot.readI64();
475
              this.airway_billno = iprot.readString();
475
              setDelivery_estimateIsSet(true);
-
 
476
            } else { 
476
            } else { 
477
              TProtocolUtil.skip(iprot, field.type);
477
              TProtocolUtil.skip(iprot, field.type);
478
            }
478
            }
479
            break;
479
            break;
480
        }
480
        }
Line 488... Line 488...
488
  public void write(TProtocol oprot) throws TException {
488
  public void write(TProtocol oprot) throws TException {
489
    validate();
489
    validate();
490
 
490
 
491
    oprot.writeStructBegin(STRUCT_DESC);
491
    oprot.writeStructBegin(STRUCT_DESC);
492
    oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
492
    oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
493
    oprot.writeI64(this.warehouse_id);
493
    oprot.writeI64(this.warehouseId);
494
    oprot.writeFieldEnd();
494
    oprot.writeFieldEnd();
495
    oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
495
    oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
496
    oprot.writeI64(this.provider_id);
496
    oprot.writeI64(this.providerId);
-
 
497
    oprot.writeFieldEnd();
-
 
498
    oprot.writeFieldBegin(DELIVERY_TIME_FIELD_DESC);
-
 
499
    oprot.writeI64(this.deliveryTime);
497
    oprot.writeFieldEnd();
500
    oprot.writeFieldEnd();
498
    if (this.airway_billno != null) {
501
    if (this.airway_billno != null) {
499
      oprot.writeFieldBegin(AIRWAY_BILLNO_FIELD_DESC);
502
      oprot.writeFieldBegin(AIRWAY_BILLNO_FIELD_DESC);
500
      oprot.writeString(this.airway_billno);
503
      oprot.writeString(this.airway_billno);
501
      oprot.writeFieldEnd();
504
      oprot.writeFieldEnd();
502
    }
505
    }
503
    oprot.writeFieldBegin(DELIVERY_ESTIMATE_FIELD_DESC);
-
 
504
    oprot.writeI64(this.delivery_estimate);
-
 
505
    oprot.writeFieldEnd();
-
 
506
    oprot.writeFieldStop();
506
    oprot.writeFieldStop();
507
    oprot.writeStructEnd();
507
    oprot.writeStructEnd();
508
  }
508
  }
509
 
509
 
510
  @Override
510
  @Override
511
  public String toString() {
511
  public String toString() {
512
    StringBuilder sb = new StringBuilder("LogisticsInfo(");
512
    StringBuilder sb = new StringBuilder("LogisticsInfo(");
513
    boolean first = true;
513
    boolean first = true;
514
 
514
 
515
    sb.append("warehouse_id:");
515
    sb.append("warehouseId:");
516
    sb.append(this.warehouse_id);
516
    sb.append(this.warehouseId);
517
    first = false;
517
    first = false;
518
    if (!first) sb.append(", ");
518
    if (!first) sb.append(", ");
519
    sb.append("provider_id:");
519
    sb.append("providerId:");
520
    sb.append(this.provider_id);
520
    sb.append(this.providerId);
-
 
521
    first = false;
-
 
522
    if (!first) sb.append(", ");
-
 
523
    sb.append("deliveryTime:");
-
 
524
    sb.append(this.deliveryTime);
521
    first = false;
525
    first = false;
522
    if (!first) sb.append(", ");
526
    if (!first) sb.append(", ");
523
    sb.append("airway_billno:");
527
    sb.append("airway_billno:");
524
    if (this.airway_billno == null) {
528
    if (this.airway_billno == null) {
525
      sb.append("null");
529
      sb.append("null");
526
    } else {
530
    } else {
527
      sb.append(this.airway_billno);
531
      sb.append(this.airway_billno);
528
    }
532
    }
529
    first = false;
533
    first = false;
530
    if (!first) sb.append(", ");
-
 
531
    sb.append("delivery_estimate:");
-
 
532
    sb.append(this.delivery_estimate);
-
 
533
    first = false;
-
 
534
    sb.append(")");
534
    sb.append(")");
535
    return sb.toString();
535
    return sb.toString();
536
  }
536
  }
537
 
537
 
538
  public void validate() throws TException {
538
  public void validate() throws TException {