| 483 |
rajveer |
1 |
/**
|
| 3430 |
rajveer |
2 |
* Autogenerated by Thrift Compiler (0.7.0)
|
| 483 |
rajveer |
3 |
*
|
|
|
4 |
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
*/
|
|
|
6 |
package in.shop2020.logistics;
|
|
|
7 |
|
|
|
8 |
import java.util.List;
|
|
|
9 |
import java.util.ArrayList;
|
|
|
10 |
import java.util.Map;
|
|
|
11 |
import java.util.HashMap;
|
|
|
12 |
import java.util.EnumMap;
|
|
|
13 |
import java.util.Set;
|
|
|
14 |
import java.util.HashSet;
|
|
|
15 |
import java.util.EnumSet;
|
|
|
16 |
import java.util.Collections;
|
|
|
17 |
import java.util.BitSet;
|
| 3430 |
rajveer |
18 |
import java.nio.ByteBuffer;
|
| 483 |
rajveer |
19 |
import java.util.Arrays;
|
|
|
20 |
import org.slf4j.Logger;
|
|
|
21 |
import org.slf4j.LoggerFactory;
|
|
|
22 |
|
| 3430 |
rajveer |
23 |
public class LogisticsInfo implements org.apache.thrift.TBase<LogisticsInfo, LogisticsInfo._Fields>, java.io.Serializable, Cloneable {
|
|
|
24 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("LogisticsInfo");
|
| 483 |
rajveer |
25 |
|
| 3430 |
rajveer |
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);
|
|
|
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);
|
|
|
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);
|
|
|
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);
|
| 4009 |
chandransh |
30 |
private static final org.apache.thrift.protocol.TField SHIPPING_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("shippingTime", org.apache.thrift.protocol.TType.I64, (short)5);
|
| 483 |
rajveer |
31 |
|
| 3430 |
rajveer |
32 |
private long warehouseId; // required
|
|
|
33 |
private long providerId; // required
|
|
|
34 |
private long deliveryTime; // required
|
|
|
35 |
private String airway_billno; // required
|
| 4009 |
chandransh |
36 |
private long shippingTime; // required
|
| 483 |
rajveer |
37 |
|
|
|
38 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
39 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 648 |
chandransh |
40 |
WAREHOUSE_ID((short)1, "warehouseId"),
|
|
|
41 |
PROVIDER_ID((short)2, "providerId"),
|
|
|
42 |
DELIVERY_TIME((short)3, "deliveryTime"),
|
| 4009 |
chandransh |
43 |
AIRWAY_BILLNO((short)4, "airway_billno"),
|
|
|
44 |
SHIPPING_TIME((short)5, "shippingTime");
|
| 483 |
rajveer |
45 |
|
|
|
46 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
47 |
|
|
|
48 |
static {
|
|
|
49 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
50 |
byName.put(field.getFieldName(), field);
|
|
|
51 |
}
|
|
|
52 |
}
|
|
|
53 |
|
|
|
54 |
/**
|
|
|
55 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
56 |
*/
|
|
|
57 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
58 |
switch(fieldId) {
|
|
|
59 |
case 1: // WAREHOUSE_ID
|
|
|
60 |
return WAREHOUSE_ID;
|
|
|
61 |
case 2: // PROVIDER_ID
|
|
|
62 |
return PROVIDER_ID;
|
|
|
63 |
case 3: // DELIVERY_TIME
|
|
|
64 |
return DELIVERY_TIME;
|
|
|
65 |
case 4: // AIRWAY_BILLNO
|
|
|
66 |
return AIRWAY_BILLNO;
|
| 4009 |
chandransh |
67 |
case 5: // SHIPPING_TIME
|
|
|
68 |
return SHIPPING_TIME;
|
| 3430 |
rajveer |
69 |
default:
|
|
|
70 |
return null;
|
|
|
71 |
}
|
| 483 |
rajveer |
72 |
}
|
|
|
73 |
|
|
|
74 |
/**
|
|
|
75 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
76 |
* if it is not found.
|
|
|
77 |
*/
|
|
|
78 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
79 |
_Fields fields = findByThriftId(fieldId);
|
|
|
80 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
81 |
return fields;
|
|
|
82 |
}
|
|
|
83 |
|
|
|
84 |
/**
|
|
|
85 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
86 |
*/
|
|
|
87 |
public static _Fields findByName(String name) {
|
|
|
88 |
return byName.get(name);
|
|
|
89 |
}
|
|
|
90 |
|
|
|
91 |
private final short _thriftId;
|
|
|
92 |
private final String _fieldName;
|
|
|
93 |
|
|
|
94 |
_Fields(short thriftId, String fieldName) {
|
|
|
95 |
_thriftId = thriftId;
|
|
|
96 |
_fieldName = fieldName;
|
|
|
97 |
}
|
|
|
98 |
|
|
|
99 |
public short getThriftFieldId() {
|
|
|
100 |
return _thriftId;
|
|
|
101 |
}
|
|
|
102 |
|
|
|
103 |
public String getFieldName() {
|
|
|
104 |
return _fieldName;
|
|
|
105 |
}
|
|
|
106 |
}
|
|
|
107 |
|
|
|
108 |
// isset id assignments
|
| 648 |
chandransh |
109 |
private static final int __WAREHOUSEID_ISSET_ID = 0;
|
|
|
110 |
private static final int __PROVIDERID_ISSET_ID = 1;
|
|
|
111 |
private static final int __DELIVERYTIME_ISSET_ID = 2;
|
| 4009 |
chandransh |
112 |
private static final int __SHIPPINGTIME_ISSET_ID = 3;
|
|
|
113 |
private BitSet __isset_bit_vector = new BitSet(4);
|
| 483 |
rajveer |
114 |
|
| 3430 |
rajveer |
115 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 483 |
rajveer |
116 |
static {
|
| 3430 |
rajveer |
117 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
118 |
tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
119 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
120 |
tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
121 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
122 |
tmpMap.put(_Fields.DELIVERY_TIME, new org.apache.thrift.meta_data.FieldMetaData("deliveryTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
123 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
124 |
tmpMap.put(_Fields.AIRWAY_BILLNO, new org.apache.thrift.meta_data.FieldMetaData("airway_billno", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
125 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 4009 |
chandransh |
126 |
tmpMap.put(_Fields.SHIPPING_TIME, new org.apache.thrift.meta_data.FieldMetaData("shippingTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
127 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 3430 |
rajveer |
128 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
129 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LogisticsInfo.class, metaDataMap);
|
| 483 |
rajveer |
130 |
}
|
|
|
131 |
|
|
|
132 |
public LogisticsInfo() {
|
|
|
133 |
}
|
|
|
134 |
|
|
|
135 |
public LogisticsInfo(
|
| 648 |
chandransh |
136 |
long warehouseId,
|
|
|
137 |
long providerId,
|
|
|
138 |
long deliveryTime,
|
| 4009 |
chandransh |
139 |
String airway_billno,
|
|
|
140 |
long shippingTime)
|
| 483 |
rajveer |
141 |
{
|
|
|
142 |
this();
|
| 648 |
chandransh |
143 |
this.warehouseId = warehouseId;
|
|
|
144 |
setWarehouseIdIsSet(true);
|
|
|
145 |
this.providerId = providerId;
|
|
|
146 |
setProviderIdIsSet(true);
|
|
|
147 |
this.deliveryTime = deliveryTime;
|
|
|
148 |
setDeliveryTimeIsSet(true);
|
| 483 |
rajveer |
149 |
this.airway_billno = airway_billno;
|
| 4009 |
chandransh |
150 |
this.shippingTime = shippingTime;
|
|
|
151 |
setShippingTimeIsSet(true);
|
| 483 |
rajveer |
152 |
}
|
|
|
153 |
|
|
|
154 |
/**
|
|
|
155 |
* Performs a deep copy on <i>other</i>.
|
|
|
156 |
*/
|
|
|
157 |
public LogisticsInfo(LogisticsInfo other) {
|
|
|
158 |
__isset_bit_vector.clear();
|
|
|
159 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 648 |
chandransh |
160 |
this.warehouseId = other.warehouseId;
|
|
|
161 |
this.providerId = other.providerId;
|
|
|
162 |
this.deliveryTime = other.deliveryTime;
|
| 510 |
rajveer |
163 |
if (other.isSetAirway_billno()) {
|
|
|
164 |
this.airway_billno = other.airway_billno;
|
|
|
165 |
}
|
| 4009 |
chandransh |
166 |
this.shippingTime = other.shippingTime;
|
| 483 |
rajveer |
167 |
}
|
|
|
168 |
|
|
|
169 |
public LogisticsInfo deepCopy() {
|
|
|
170 |
return new LogisticsInfo(this);
|
|
|
171 |
}
|
|
|
172 |
|
| 3430 |
rajveer |
173 |
@Override
|
|
|
174 |
public void clear() {
|
|
|
175 |
setWarehouseIdIsSet(false);
|
|
|
176 |
this.warehouseId = 0;
|
|
|
177 |
setProviderIdIsSet(false);
|
|
|
178 |
this.providerId = 0;
|
|
|
179 |
setDeliveryTimeIsSet(false);
|
|
|
180 |
this.deliveryTime = 0;
|
|
|
181 |
this.airway_billno = null;
|
| 4009 |
chandransh |
182 |
setShippingTimeIsSet(false);
|
|
|
183 |
this.shippingTime = 0;
|
| 483 |
rajveer |
184 |
}
|
|
|
185 |
|
| 648 |
chandransh |
186 |
public long getWarehouseId() {
|
|
|
187 |
return this.warehouseId;
|
| 483 |
rajveer |
188 |
}
|
|
|
189 |
|
| 3430 |
rajveer |
190 |
public void setWarehouseId(long warehouseId) {
|
| 648 |
chandransh |
191 |
this.warehouseId = warehouseId;
|
|
|
192 |
setWarehouseIdIsSet(true);
|
| 483 |
rajveer |
193 |
}
|
|
|
194 |
|
| 648 |
chandransh |
195 |
public void unsetWarehouseId() {
|
|
|
196 |
__isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
|
| 483 |
rajveer |
197 |
}
|
|
|
198 |
|
| 3430 |
rajveer |
199 |
/** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
|
| 648 |
chandransh |
200 |
public boolean isSetWarehouseId() {
|
|
|
201 |
return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
|
| 483 |
rajveer |
202 |
}
|
|
|
203 |
|
| 648 |
chandransh |
204 |
public void setWarehouseIdIsSet(boolean value) {
|
|
|
205 |
__isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
|
| 483 |
rajveer |
206 |
}
|
|
|
207 |
|
| 648 |
chandransh |
208 |
public long getProviderId() {
|
|
|
209 |
return this.providerId;
|
| 483 |
rajveer |
210 |
}
|
|
|
211 |
|
| 3430 |
rajveer |
212 |
public void setProviderId(long providerId) {
|
| 648 |
chandransh |
213 |
this.providerId = providerId;
|
|
|
214 |
setProviderIdIsSet(true);
|
| 483 |
rajveer |
215 |
}
|
|
|
216 |
|
| 648 |
chandransh |
217 |
public void unsetProviderId() {
|
|
|
218 |
__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
|
| 483 |
rajveer |
219 |
}
|
|
|
220 |
|
| 3430 |
rajveer |
221 |
/** Returns true if field providerId is set (has been assigned a value) and false otherwise */
|
| 648 |
chandransh |
222 |
public boolean isSetProviderId() {
|
|
|
223 |
return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
|
| 483 |
rajveer |
224 |
}
|
|
|
225 |
|
| 648 |
chandransh |
226 |
public void setProviderIdIsSet(boolean value) {
|
|
|
227 |
__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
|
| 483 |
rajveer |
228 |
}
|
|
|
229 |
|
| 648 |
chandransh |
230 |
public long getDeliveryTime() {
|
|
|
231 |
return this.deliveryTime;
|
|
|
232 |
}
|
|
|
233 |
|
| 3430 |
rajveer |
234 |
public void setDeliveryTime(long deliveryTime) {
|
| 648 |
chandransh |
235 |
this.deliveryTime = deliveryTime;
|
|
|
236 |
setDeliveryTimeIsSet(true);
|
|
|
237 |
}
|
|
|
238 |
|
|
|
239 |
public void unsetDeliveryTime() {
|
|
|
240 |
__isset_bit_vector.clear(__DELIVERYTIME_ISSET_ID);
|
|
|
241 |
}
|
|
|
242 |
|
| 3430 |
rajveer |
243 |
/** Returns true if field deliveryTime is set (has been assigned a value) and false otherwise */
|
| 648 |
chandransh |
244 |
public boolean isSetDeliveryTime() {
|
|
|
245 |
return __isset_bit_vector.get(__DELIVERYTIME_ISSET_ID);
|
|
|
246 |
}
|
|
|
247 |
|
|
|
248 |
public void setDeliveryTimeIsSet(boolean value) {
|
|
|
249 |
__isset_bit_vector.set(__DELIVERYTIME_ISSET_ID, value);
|
|
|
250 |
}
|
|
|
251 |
|
| 510 |
rajveer |
252 |
public String getAirway_billno() {
|
| 483 |
rajveer |
253 |
return this.airway_billno;
|
|
|
254 |
}
|
|
|
255 |
|
| 3430 |
rajveer |
256 |
public void setAirway_billno(String airway_billno) {
|
| 483 |
rajveer |
257 |
this.airway_billno = airway_billno;
|
|
|
258 |
}
|
|
|
259 |
|
|
|
260 |
public void unsetAirway_billno() {
|
| 510 |
rajveer |
261 |
this.airway_billno = null;
|
| 483 |
rajveer |
262 |
}
|
|
|
263 |
|
| 3430 |
rajveer |
264 |
/** Returns true if field airway_billno is set (has been assigned a value) and false otherwise */
|
| 483 |
rajveer |
265 |
public boolean isSetAirway_billno() {
|
| 510 |
rajveer |
266 |
return this.airway_billno != null;
|
| 483 |
rajveer |
267 |
}
|
|
|
268 |
|
|
|
269 |
public void setAirway_billnoIsSet(boolean value) {
|
| 510 |
rajveer |
270 |
if (!value) {
|
|
|
271 |
this.airway_billno = null;
|
|
|
272 |
}
|
| 483 |
rajveer |
273 |
}
|
|
|
274 |
|
| 4009 |
chandransh |
275 |
public long getShippingTime() {
|
|
|
276 |
return this.shippingTime;
|
|
|
277 |
}
|
|
|
278 |
|
|
|
279 |
public void setShippingTime(long shippingTime) {
|
|
|
280 |
this.shippingTime = shippingTime;
|
|
|
281 |
setShippingTimeIsSet(true);
|
|
|
282 |
}
|
|
|
283 |
|
|
|
284 |
public void unsetShippingTime() {
|
|
|
285 |
__isset_bit_vector.clear(__SHIPPINGTIME_ISSET_ID);
|
|
|
286 |
}
|
|
|
287 |
|
|
|
288 |
/** Returns true if field shippingTime is set (has been assigned a value) and false otherwise */
|
|
|
289 |
public boolean isSetShippingTime() {
|
|
|
290 |
return __isset_bit_vector.get(__SHIPPINGTIME_ISSET_ID);
|
|
|
291 |
}
|
|
|
292 |
|
|
|
293 |
public void setShippingTimeIsSet(boolean value) {
|
|
|
294 |
__isset_bit_vector.set(__SHIPPINGTIME_ISSET_ID, value);
|
|
|
295 |
}
|
|
|
296 |
|
| 483 |
rajveer |
297 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
298 |
switch (field) {
|
|
|
299 |
case WAREHOUSE_ID:
|
|
|
300 |
if (value == null) {
|
| 648 |
chandransh |
301 |
unsetWarehouseId();
|
| 483 |
rajveer |
302 |
} else {
|
| 648 |
chandransh |
303 |
setWarehouseId((Long)value);
|
| 483 |
rajveer |
304 |
}
|
|
|
305 |
break;
|
|
|
306 |
|
|
|
307 |
case PROVIDER_ID:
|
|
|
308 |
if (value == null) {
|
| 648 |
chandransh |
309 |
unsetProviderId();
|
| 483 |
rajveer |
310 |
} else {
|
| 648 |
chandransh |
311 |
setProviderId((Long)value);
|
| 483 |
rajveer |
312 |
}
|
|
|
313 |
break;
|
|
|
314 |
|
| 648 |
chandransh |
315 |
case DELIVERY_TIME:
|
| 483 |
rajveer |
316 |
if (value == null) {
|
| 648 |
chandransh |
317 |
unsetDeliveryTime();
|
| 483 |
rajveer |
318 |
} else {
|
| 648 |
chandransh |
319 |
setDeliveryTime((Long)value);
|
| 483 |
rajveer |
320 |
}
|
|
|
321 |
break;
|
|
|
322 |
|
| 648 |
chandransh |
323 |
case AIRWAY_BILLNO:
|
| 483 |
rajveer |
324 |
if (value == null) {
|
| 648 |
chandransh |
325 |
unsetAirway_billno();
|
| 483 |
rajveer |
326 |
} else {
|
| 648 |
chandransh |
327 |
setAirway_billno((String)value);
|
| 483 |
rajveer |
328 |
}
|
|
|
329 |
break;
|
|
|
330 |
|
| 4009 |
chandransh |
331 |
case SHIPPING_TIME:
|
|
|
332 |
if (value == null) {
|
|
|
333 |
unsetShippingTime();
|
|
|
334 |
} else {
|
|
|
335 |
setShippingTime((Long)value);
|
|
|
336 |
}
|
|
|
337 |
break;
|
|
|
338 |
|
| 483 |
rajveer |
339 |
}
|
|
|
340 |
}
|
|
|
341 |
|
|
|
342 |
public Object getFieldValue(_Fields field) {
|
|
|
343 |
switch (field) {
|
|
|
344 |
case WAREHOUSE_ID:
|
| 3430 |
rajveer |
345 |
return Long.valueOf(getWarehouseId());
|
| 483 |
rajveer |
346 |
|
|
|
347 |
case PROVIDER_ID:
|
| 3430 |
rajveer |
348 |
return Long.valueOf(getProviderId());
|
| 483 |
rajveer |
349 |
|
| 648 |
chandransh |
350 |
case DELIVERY_TIME:
|
| 3430 |
rajveer |
351 |
return Long.valueOf(getDeliveryTime());
|
| 648 |
chandransh |
352 |
|
| 483 |
rajveer |
353 |
case AIRWAY_BILLNO:
|
| 510 |
rajveer |
354 |
return getAirway_billno();
|
| 483 |
rajveer |
355 |
|
| 4009 |
chandransh |
356 |
case SHIPPING_TIME:
|
|
|
357 |
return Long.valueOf(getShippingTime());
|
|
|
358 |
|
| 483 |
rajveer |
359 |
}
|
|
|
360 |
throw new IllegalStateException();
|
|
|
361 |
}
|
|
|
362 |
|
| 3430 |
rajveer |
363 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
364 |
public boolean isSet(_Fields field) {
|
|
|
365 |
if (field == null) {
|
|
|
366 |
throw new IllegalArgumentException();
|
|
|
367 |
}
|
| 483 |
rajveer |
368 |
|
|
|
369 |
switch (field) {
|
|
|
370 |
case WAREHOUSE_ID:
|
| 648 |
chandransh |
371 |
return isSetWarehouseId();
|
| 483 |
rajveer |
372 |
case PROVIDER_ID:
|
| 648 |
chandransh |
373 |
return isSetProviderId();
|
|
|
374 |
case DELIVERY_TIME:
|
|
|
375 |
return isSetDeliveryTime();
|
| 483 |
rajveer |
376 |
case AIRWAY_BILLNO:
|
|
|
377 |
return isSetAirway_billno();
|
| 4009 |
chandransh |
378 |
case SHIPPING_TIME:
|
|
|
379 |
return isSetShippingTime();
|
| 483 |
rajveer |
380 |
}
|
|
|
381 |
throw new IllegalStateException();
|
|
|
382 |
}
|
|
|
383 |
|
|
|
384 |
@Override
|
|
|
385 |
public boolean equals(Object that) {
|
|
|
386 |
if (that == null)
|
|
|
387 |
return false;
|
|
|
388 |
if (that instanceof LogisticsInfo)
|
|
|
389 |
return this.equals((LogisticsInfo)that);
|
|
|
390 |
return false;
|
|
|
391 |
}
|
|
|
392 |
|
|
|
393 |
public boolean equals(LogisticsInfo that) {
|
|
|
394 |
if (that == null)
|
|
|
395 |
return false;
|
|
|
396 |
|
| 648 |
chandransh |
397 |
boolean this_present_warehouseId = true;
|
|
|
398 |
boolean that_present_warehouseId = true;
|
|
|
399 |
if (this_present_warehouseId || that_present_warehouseId) {
|
|
|
400 |
if (!(this_present_warehouseId && that_present_warehouseId))
|
| 483 |
rajveer |
401 |
return false;
|
| 648 |
chandransh |
402 |
if (this.warehouseId != that.warehouseId)
|
| 483 |
rajveer |
403 |
return false;
|
|
|
404 |
}
|
|
|
405 |
|
| 648 |
chandransh |
406 |
boolean this_present_providerId = true;
|
|
|
407 |
boolean that_present_providerId = true;
|
|
|
408 |
if (this_present_providerId || that_present_providerId) {
|
|
|
409 |
if (!(this_present_providerId && that_present_providerId))
|
| 483 |
rajveer |
410 |
return false;
|
| 648 |
chandransh |
411 |
if (this.providerId != that.providerId)
|
| 483 |
rajveer |
412 |
return false;
|
|
|
413 |
}
|
|
|
414 |
|
| 648 |
chandransh |
415 |
boolean this_present_deliveryTime = true;
|
|
|
416 |
boolean that_present_deliveryTime = true;
|
|
|
417 |
if (this_present_deliveryTime || that_present_deliveryTime) {
|
|
|
418 |
if (!(this_present_deliveryTime && that_present_deliveryTime))
|
|
|
419 |
return false;
|
|
|
420 |
if (this.deliveryTime != that.deliveryTime)
|
|
|
421 |
return false;
|
|
|
422 |
}
|
|
|
423 |
|
| 510 |
rajveer |
424 |
boolean this_present_airway_billno = true && this.isSetAirway_billno();
|
|
|
425 |
boolean that_present_airway_billno = true && that.isSetAirway_billno();
|
| 483 |
rajveer |
426 |
if (this_present_airway_billno || that_present_airway_billno) {
|
|
|
427 |
if (!(this_present_airway_billno && that_present_airway_billno))
|
|
|
428 |
return false;
|
| 510 |
rajveer |
429 |
if (!this.airway_billno.equals(that.airway_billno))
|
| 483 |
rajveer |
430 |
return false;
|
|
|
431 |
}
|
|
|
432 |
|
| 4009 |
chandransh |
433 |
boolean this_present_shippingTime = true;
|
|
|
434 |
boolean that_present_shippingTime = true;
|
|
|
435 |
if (this_present_shippingTime || that_present_shippingTime) {
|
|
|
436 |
if (!(this_present_shippingTime && that_present_shippingTime))
|
|
|
437 |
return false;
|
|
|
438 |
if (this.shippingTime != that.shippingTime)
|
|
|
439 |
return false;
|
|
|
440 |
}
|
|
|
441 |
|
| 483 |
rajveer |
442 |
return true;
|
|
|
443 |
}
|
|
|
444 |
|
|
|
445 |
@Override
|
|
|
446 |
public int hashCode() {
|
|
|
447 |
return 0;
|
|
|
448 |
}
|
|
|
449 |
|
|
|
450 |
public int compareTo(LogisticsInfo other) {
|
|
|
451 |
if (!getClass().equals(other.getClass())) {
|
|
|
452 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
453 |
}
|
|
|
454 |
|
|
|
455 |
int lastComparison = 0;
|
|
|
456 |
LogisticsInfo typedOther = (LogisticsInfo)other;
|
|
|
457 |
|
| 3430 |
rajveer |
458 |
lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
|
| 483 |
rajveer |
459 |
if (lastComparison != 0) {
|
|
|
460 |
return lastComparison;
|
|
|
461 |
}
|
| 3430 |
rajveer |
462 |
if (isSetWarehouseId()) {
|
|
|
463 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
|
|
|
464 |
if (lastComparison != 0) {
|
|
|
465 |
return lastComparison;
|
|
|
466 |
}
|
| 483 |
rajveer |
467 |
}
|
| 3430 |
rajveer |
468 |
lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
|
| 483 |
rajveer |
469 |
if (lastComparison != 0) {
|
|
|
470 |
return lastComparison;
|
|
|
471 |
}
|
| 3430 |
rajveer |
472 |
if (isSetProviderId()) {
|
|
|
473 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
|
|
|
474 |
if (lastComparison != 0) {
|
|
|
475 |
return lastComparison;
|
|
|
476 |
}
|
| 483 |
rajveer |
477 |
}
|
| 3430 |
rajveer |
478 |
lastComparison = Boolean.valueOf(isSetDeliveryTime()).compareTo(typedOther.isSetDeliveryTime());
|
| 483 |
rajveer |
479 |
if (lastComparison != 0) {
|
|
|
480 |
return lastComparison;
|
|
|
481 |
}
|
| 3430 |
rajveer |
482 |
if (isSetDeliveryTime()) {
|
|
|
483 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deliveryTime, typedOther.deliveryTime);
|
|
|
484 |
if (lastComparison != 0) {
|
|
|
485 |
return lastComparison;
|
|
|
486 |
}
|
| 483 |
rajveer |
487 |
}
|
| 3430 |
rajveer |
488 |
lastComparison = Boolean.valueOf(isSetAirway_billno()).compareTo(typedOther.isSetAirway_billno());
|
| 483 |
rajveer |
489 |
if (lastComparison != 0) {
|
|
|
490 |
return lastComparison;
|
|
|
491 |
}
|
| 3430 |
rajveer |
492 |
if (isSetAirway_billno()) {
|
|
|
493 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.airway_billno, typedOther.airway_billno);
|
|
|
494 |
if (lastComparison != 0) {
|
|
|
495 |
return lastComparison;
|
|
|
496 |
}
|
| 483 |
rajveer |
497 |
}
|
| 4009 |
chandransh |
498 |
lastComparison = Boolean.valueOf(isSetShippingTime()).compareTo(typedOther.isSetShippingTime());
|
|
|
499 |
if (lastComparison != 0) {
|
|
|
500 |
return lastComparison;
|
|
|
501 |
}
|
|
|
502 |
if (isSetShippingTime()) {
|
|
|
503 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shippingTime, typedOther.shippingTime);
|
|
|
504 |
if (lastComparison != 0) {
|
|
|
505 |
return lastComparison;
|
|
|
506 |
}
|
|
|
507 |
}
|
| 483 |
rajveer |
508 |
return 0;
|
|
|
509 |
}
|
|
|
510 |
|
| 3430 |
rajveer |
511 |
public _Fields fieldForId(int fieldId) {
|
|
|
512 |
return _Fields.findByThriftId(fieldId);
|
|
|
513 |
}
|
|
|
514 |
|
|
|
515 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
516 |
org.apache.thrift.protocol.TField field;
|
| 483 |
rajveer |
517 |
iprot.readStructBegin();
|
|
|
518 |
while (true)
|
|
|
519 |
{
|
|
|
520 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
521 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 483 |
rajveer |
522 |
break;
|
|
|
523 |
}
|
| 3430 |
rajveer |
524 |
switch (field.id) {
|
|
|
525 |
case 1: // WAREHOUSE_ID
|
|
|
526 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
527 |
this.warehouseId = iprot.readI64();
|
|
|
528 |
setWarehouseIdIsSet(true);
|
|
|
529 |
} else {
|
|
|
530 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
531 |
}
|
|
|
532 |
break;
|
|
|
533 |
case 2: // PROVIDER_ID
|
|
|
534 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
535 |
this.providerId = iprot.readI64();
|
|
|
536 |
setProviderIdIsSet(true);
|
|
|
537 |
} else {
|
|
|
538 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
539 |
}
|
|
|
540 |
break;
|
|
|
541 |
case 3: // DELIVERY_TIME
|
|
|
542 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
543 |
this.deliveryTime = iprot.readI64();
|
|
|
544 |
setDeliveryTimeIsSet(true);
|
|
|
545 |
} else {
|
|
|
546 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
547 |
}
|
|
|
548 |
break;
|
|
|
549 |
case 4: // AIRWAY_BILLNO
|
|
|
550 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
551 |
this.airway_billno = iprot.readString();
|
|
|
552 |
} else {
|
|
|
553 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
554 |
}
|
|
|
555 |
break;
|
| 4009 |
chandransh |
556 |
case 5: // SHIPPING_TIME
|
|
|
557 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
558 |
this.shippingTime = iprot.readI64();
|
|
|
559 |
setShippingTimeIsSet(true);
|
|
|
560 |
} else {
|
|
|
561 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
562 |
}
|
|
|
563 |
break;
|
| 3430 |
rajveer |
564 |
default:
|
|
|
565 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 483 |
rajveer |
566 |
}
|
| 3430 |
rajveer |
567 |
iprot.readFieldEnd();
|
| 483 |
rajveer |
568 |
}
|
|
|
569 |
iprot.readStructEnd();
|
|
|
570 |
validate();
|
|
|
571 |
}
|
|
|
572 |
|
| 3430 |
rajveer |
573 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 483 |
rajveer |
574 |
validate();
|
|
|
575 |
|
|
|
576 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
577 |
oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
|
| 648 |
chandransh |
578 |
oprot.writeI64(this.warehouseId);
|
| 483 |
rajveer |
579 |
oprot.writeFieldEnd();
|
|
|
580 |
oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
|
| 648 |
chandransh |
581 |
oprot.writeI64(this.providerId);
|
| 483 |
rajveer |
582 |
oprot.writeFieldEnd();
|
| 648 |
chandransh |
583 |
oprot.writeFieldBegin(DELIVERY_TIME_FIELD_DESC);
|
|
|
584 |
oprot.writeI64(this.deliveryTime);
|
|
|
585 |
oprot.writeFieldEnd();
|
| 510 |
rajveer |
586 |
if (this.airway_billno != null) {
|
|
|
587 |
oprot.writeFieldBegin(AIRWAY_BILLNO_FIELD_DESC);
|
|
|
588 |
oprot.writeString(this.airway_billno);
|
|
|
589 |
oprot.writeFieldEnd();
|
|
|
590 |
}
|
| 4009 |
chandransh |
591 |
oprot.writeFieldBegin(SHIPPING_TIME_FIELD_DESC);
|
|
|
592 |
oprot.writeI64(this.shippingTime);
|
|
|
593 |
oprot.writeFieldEnd();
|
| 483 |
rajveer |
594 |
oprot.writeFieldStop();
|
|
|
595 |
oprot.writeStructEnd();
|
|
|
596 |
}
|
|
|
597 |
|
|
|
598 |
@Override
|
|
|
599 |
public String toString() {
|
|
|
600 |
StringBuilder sb = new StringBuilder("LogisticsInfo(");
|
|
|
601 |
boolean first = true;
|
|
|
602 |
|
| 648 |
chandransh |
603 |
sb.append("warehouseId:");
|
|
|
604 |
sb.append(this.warehouseId);
|
| 483 |
rajveer |
605 |
first = false;
|
|
|
606 |
if (!first) sb.append(", ");
|
| 648 |
chandransh |
607 |
sb.append("providerId:");
|
|
|
608 |
sb.append(this.providerId);
|
| 483 |
rajveer |
609 |
first = false;
|
|
|
610 |
if (!first) sb.append(", ");
|
| 648 |
chandransh |
611 |
sb.append("deliveryTime:");
|
|
|
612 |
sb.append(this.deliveryTime);
|
|
|
613 |
first = false;
|
|
|
614 |
if (!first) sb.append(", ");
|
| 483 |
rajveer |
615 |
sb.append("airway_billno:");
|
| 510 |
rajveer |
616 |
if (this.airway_billno == null) {
|
|
|
617 |
sb.append("null");
|
|
|
618 |
} else {
|
|
|
619 |
sb.append(this.airway_billno);
|
|
|
620 |
}
|
| 483 |
rajveer |
621 |
first = false;
|
| 4009 |
chandransh |
622 |
if (!first) sb.append(", ");
|
|
|
623 |
sb.append("shippingTime:");
|
|
|
624 |
sb.append(this.shippingTime);
|
|
|
625 |
first = false;
|
| 483 |
rajveer |
626 |
sb.append(")");
|
|
|
627 |
return sb.toString();
|
|
|
628 |
}
|
|
|
629 |
|
| 3430 |
rajveer |
630 |
public void validate() throws org.apache.thrift.TException {
|
| 483 |
rajveer |
631 |
// check for required fields
|
|
|
632 |
}
|
|
|
633 |
|
| 3430 |
rajveer |
634 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
635 |
try {
|
|
|
636 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
637 |
} catch (org.apache.thrift.TException te) {
|
|
|
638 |
throw new java.io.IOException(te);
|
|
|
639 |
}
|
|
|
640 |
}
|
|
|
641 |
|
|
|
642 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
643 |
try {
|
|
|
644 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
645 |
__isset_bit_vector = new BitSet(1);
|
|
|
646 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
647 |
} catch (org.apache.thrift.TException te) {
|
|
|
648 |
throw new java.io.IOException(te);
|
|
|
649 |
}
|
|
|
650 |
}
|
|
|
651 |
|
| 483 |
rajveer |
652 |
}
|
|
|
653 |
|