| 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);
|
| 483 |
rajveer |
30 |
|
| 3430 |
rajveer |
31 |
private long warehouseId; // required
|
|
|
32 |
private long providerId; // required
|
|
|
33 |
private long deliveryTime; // required
|
|
|
34 |
private String airway_billno; // required
|
| 483 |
rajveer |
35 |
|
|
|
36 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
37 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 648 |
chandransh |
38 |
WAREHOUSE_ID((short)1, "warehouseId"),
|
|
|
39 |
PROVIDER_ID((short)2, "providerId"),
|
|
|
40 |
DELIVERY_TIME((short)3, "deliveryTime"),
|
|
|
41 |
AIRWAY_BILLNO((short)4, "airway_billno");
|
| 483 |
rajveer |
42 |
|
|
|
43 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
44 |
|
|
|
45 |
static {
|
|
|
46 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
47 |
byName.put(field.getFieldName(), field);
|
|
|
48 |
}
|
|
|
49 |
}
|
|
|
50 |
|
|
|
51 |
/**
|
|
|
52 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
53 |
*/
|
|
|
54 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
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 |
}
|
| 483 |
rajveer |
67 |
}
|
|
|
68 |
|
|
|
69 |
/**
|
|
|
70 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
71 |
* if it is not found.
|
|
|
72 |
*/
|
|
|
73 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
74 |
_Fields fields = findByThriftId(fieldId);
|
|
|
75 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
76 |
return fields;
|
|
|
77 |
}
|
|
|
78 |
|
|
|
79 |
/**
|
|
|
80 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
81 |
*/
|
|
|
82 |
public static _Fields findByName(String name) {
|
|
|
83 |
return byName.get(name);
|
|
|
84 |
}
|
|
|
85 |
|
|
|
86 |
private final short _thriftId;
|
|
|
87 |
private final String _fieldName;
|
|
|
88 |
|
|
|
89 |
_Fields(short thriftId, String fieldName) {
|
|
|
90 |
_thriftId = thriftId;
|
|
|
91 |
_fieldName = fieldName;
|
|
|
92 |
}
|
|
|
93 |
|
|
|
94 |
public short getThriftFieldId() {
|
|
|
95 |
return _thriftId;
|
|
|
96 |
}
|
|
|
97 |
|
|
|
98 |
public String getFieldName() {
|
|
|
99 |
return _fieldName;
|
|
|
100 |
}
|
|
|
101 |
}
|
|
|
102 |
|
|
|
103 |
// isset id assignments
|
| 648 |
chandransh |
104 |
private static final int __WAREHOUSEID_ISSET_ID = 0;
|
|
|
105 |
private static final int __PROVIDERID_ISSET_ID = 1;
|
|
|
106 |
private static final int __DELIVERYTIME_ISSET_ID = 2;
|
| 510 |
rajveer |
107 |
private BitSet __isset_bit_vector = new BitSet(3);
|
| 483 |
rajveer |
108 |
|
| 3430 |
rajveer |
109 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 483 |
rajveer |
110 |
static {
|
| 3430 |
rajveer |
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);
|
|
|
121 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LogisticsInfo.class, metaDataMap);
|
| 483 |
rajveer |
122 |
}
|
|
|
123 |
|
|
|
124 |
public LogisticsInfo() {
|
|
|
125 |
}
|
|
|
126 |
|
|
|
127 |
public LogisticsInfo(
|
| 648 |
chandransh |
128 |
long warehouseId,
|
|
|
129 |
long providerId,
|
|
|
130 |
long deliveryTime,
|
|
|
131 |
String airway_billno)
|
| 483 |
rajveer |
132 |
{
|
|
|
133 |
this();
|
| 648 |
chandransh |
134 |
this.warehouseId = warehouseId;
|
|
|
135 |
setWarehouseIdIsSet(true);
|
|
|
136 |
this.providerId = providerId;
|
|
|
137 |
setProviderIdIsSet(true);
|
|
|
138 |
this.deliveryTime = deliveryTime;
|
|
|
139 |
setDeliveryTimeIsSet(true);
|
| 483 |
rajveer |
140 |
this.airway_billno = airway_billno;
|
|
|
141 |
}
|
|
|
142 |
|
|
|
143 |
/**
|
|
|
144 |
* Performs a deep copy on <i>other</i>.
|
|
|
145 |
*/
|
|
|
146 |
public LogisticsInfo(LogisticsInfo other) {
|
|
|
147 |
__isset_bit_vector.clear();
|
|
|
148 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 648 |
chandransh |
149 |
this.warehouseId = other.warehouseId;
|
|
|
150 |
this.providerId = other.providerId;
|
|
|
151 |
this.deliveryTime = other.deliveryTime;
|
| 510 |
rajveer |
152 |
if (other.isSetAirway_billno()) {
|
|
|
153 |
this.airway_billno = other.airway_billno;
|
|
|
154 |
}
|
| 483 |
rajveer |
155 |
}
|
|
|
156 |
|
|
|
157 |
public LogisticsInfo deepCopy() {
|
|
|
158 |
return new LogisticsInfo(this);
|
|
|
159 |
}
|
|
|
160 |
|
| 3430 |
rajveer |
161 |
@Override
|
|
|
162 |
public void clear() {
|
|
|
163 |
setWarehouseIdIsSet(false);
|
|
|
164 |
this.warehouseId = 0;
|
|
|
165 |
setProviderIdIsSet(false);
|
|
|
166 |
this.providerId = 0;
|
|
|
167 |
setDeliveryTimeIsSet(false);
|
|
|
168 |
this.deliveryTime = 0;
|
|
|
169 |
this.airway_billno = null;
|
| 483 |
rajveer |
170 |
}
|
|
|
171 |
|
| 648 |
chandransh |
172 |
public long getWarehouseId() {
|
|
|
173 |
return this.warehouseId;
|
| 483 |
rajveer |
174 |
}
|
|
|
175 |
|
| 3430 |
rajveer |
176 |
public void setWarehouseId(long warehouseId) {
|
| 648 |
chandransh |
177 |
this.warehouseId = warehouseId;
|
|
|
178 |
setWarehouseIdIsSet(true);
|
| 483 |
rajveer |
179 |
}
|
|
|
180 |
|
| 648 |
chandransh |
181 |
public void unsetWarehouseId() {
|
|
|
182 |
__isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
|
| 483 |
rajveer |
183 |
}
|
|
|
184 |
|
| 3430 |
rajveer |
185 |
/** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
|
| 648 |
chandransh |
186 |
public boolean isSetWarehouseId() {
|
|
|
187 |
return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
|
| 483 |
rajveer |
188 |
}
|
|
|
189 |
|
| 648 |
chandransh |
190 |
public void setWarehouseIdIsSet(boolean value) {
|
|
|
191 |
__isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
|
| 483 |
rajveer |
192 |
}
|
|
|
193 |
|
| 648 |
chandransh |
194 |
public long getProviderId() {
|
|
|
195 |
return this.providerId;
|
| 483 |
rajveer |
196 |
}
|
|
|
197 |
|
| 3430 |
rajveer |
198 |
public void setProviderId(long providerId) {
|
| 648 |
chandransh |
199 |
this.providerId = providerId;
|
|
|
200 |
setProviderIdIsSet(true);
|
| 483 |
rajveer |
201 |
}
|
|
|
202 |
|
| 648 |
chandransh |
203 |
public void unsetProviderId() {
|
|
|
204 |
__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
|
| 483 |
rajveer |
205 |
}
|
|
|
206 |
|
| 3430 |
rajveer |
207 |
/** Returns true if field providerId is set (has been assigned a value) and false otherwise */
|
| 648 |
chandransh |
208 |
public boolean isSetProviderId() {
|
|
|
209 |
return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
|
| 483 |
rajveer |
210 |
}
|
|
|
211 |
|
| 648 |
chandransh |
212 |
public void setProviderIdIsSet(boolean value) {
|
|
|
213 |
__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
|
| 483 |
rajveer |
214 |
}
|
|
|
215 |
|
| 648 |
chandransh |
216 |
public long getDeliveryTime() {
|
|
|
217 |
return this.deliveryTime;
|
|
|
218 |
}
|
|
|
219 |
|
| 3430 |
rajveer |
220 |
public void setDeliveryTime(long deliveryTime) {
|
| 648 |
chandransh |
221 |
this.deliveryTime = deliveryTime;
|
|
|
222 |
setDeliveryTimeIsSet(true);
|
|
|
223 |
}
|
|
|
224 |
|
|
|
225 |
public void unsetDeliveryTime() {
|
|
|
226 |
__isset_bit_vector.clear(__DELIVERYTIME_ISSET_ID);
|
|
|
227 |
}
|
|
|
228 |
|
| 3430 |
rajveer |
229 |
/** Returns true if field deliveryTime is set (has been assigned a value) and false otherwise */
|
| 648 |
chandransh |
230 |
public boolean isSetDeliveryTime() {
|
|
|
231 |
return __isset_bit_vector.get(__DELIVERYTIME_ISSET_ID);
|
|
|
232 |
}
|
|
|
233 |
|
|
|
234 |
public void setDeliveryTimeIsSet(boolean value) {
|
|
|
235 |
__isset_bit_vector.set(__DELIVERYTIME_ISSET_ID, value);
|
|
|
236 |
}
|
|
|
237 |
|
| 510 |
rajveer |
238 |
public String getAirway_billno() {
|
| 483 |
rajveer |
239 |
return this.airway_billno;
|
|
|
240 |
}
|
|
|
241 |
|
| 3430 |
rajveer |
242 |
public void setAirway_billno(String airway_billno) {
|
| 483 |
rajveer |
243 |
this.airway_billno = airway_billno;
|
|
|
244 |
}
|
|
|
245 |
|
|
|
246 |
public void unsetAirway_billno() {
|
| 510 |
rajveer |
247 |
this.airway_billno = null;
|
| 483 |
rajveer |
248 |
}
|
|
|
249 |
|
| 3430 |
rajveer |
250 |
/** Returns true if field airway_billno is set (has been assigned a value) and false otherwise */
|
| 483 |
rajveer |
251 |
public boolean isSetAirway_billno() {
|
| 510 |
rajveer |
252 |
return this.airway_billno != null;
|
| 483 |
rajveer |
253 |
}
|
|
|
254 |
|
|
|
255 |
public void setAirway_billnoIsSet(boolean value) {
|
| 510 |
rajveer |
256 |
if (!value) {
|
|
|
257 |
this.airway_billno = null;
|
|
|
258 |
}
|
| 483 |
rajveer |
259 |
}
|
|
|
260 |
|
|
|
261 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
262 |
switch (field) {
|
|
|
263 |
case WAREHOUSE_ID:
|
|
|
264 |
if (value == null) {
|
| 648 |
chandransh |
265 |
unsetWarehouseId();
|
| 483 |
rajveer |
266 |
} else {
|
| 648 |
chandransh |
267 |
setWarehouseId((Long)value);
|
| 483 |
rajveer |
268 |
}
|
|
|
269 |
break;
|
|
|
270 |
|
|
|
271 |
case PROVIDER_ID:
|
|
|
272 |
if (value == null) {
|
| 648 |
chandransh |
273 |
unsetProviderId();
|
| 483 |
rajveer |
274 |
} else {
|
| 648 |
chandransh |
275 |
setProviderId((Long)value);
|
| 483 |
rajveer |
276 |
}
|
|
|
277 |
break;
|
|
|
278 |
|
| 648 |
chandransh |
279 |
case DELIVERY_TIME:
|
| 483 |
rajveer |
280 |
if (value == null) {
|
| 648 |
chandransh |
281 |
unsetDeliveryTime();
|
| 483 |
rajveer |
282 |
} else {
|
| 648 |
chandransh |
283 |
setDeliveryTime((Long)value);
|
| 483 |
rajveer |
284 |
}
|
|
|
285 |
break;
|
|
|
286 |
|
| 648 |
chandransh |
287 |
case AIRWAY_BILLNO:
|
| 483 |
rajveer |
288 |
if (value == null) {
|
| 648 |
chandransh |
289 |
unsetAirway_billno();
|
| 483 |
rajveer |
290 |
} else {
|
| 648 |
chandransh |
291 |
setAirway_billno((String)value);
|
| 483 |
rajveer |
292 |
}
|
|
|
293 |
break;
|
|
|
294 |
|
|
|
295 |
}
|
|
|
296 |
}
|
|
|
297 |
|
|
|
298 |
public Object getFieldValue(_Fields field) {
|
|
|
299 |
switch (field) {
|
|
|
300 |
case WAREHOUSE_ID:
|
| 3430 |
rajveer |
301 |
return Long.valueOf(getWarehouseId());
|
| 483 |
rajveer |
302 |
|
|
|
303 |
case PROVIDER_ID:
|
| 3430 |
rajveer |
304 |
return Long.valueOf(getProviderId());
|
| 483 |
rajveer |
305 |
|
| 648 |
chandransh |
306 |
case DELIVERY_TIME:
|
| 3430 |
rajveer |
307 |
return Long.valueOf(getDeliveryTime());
|
| 648 |
chandransh |
308 |
|
| 483 |
rajveer |
309 |
case AIRWAY_BILLNO:
|
| 510 |
rajveer |
310 |
return getAirway_billno();
|
| 483 |
rajveer |
311 |
|
|
|
312 |
}
|
|
|
313 |
throw new IllegalStateException();
|
|
|
314 |
}
|
|
|
315 |
|
| 3430 |
rajveer |
316 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
317 |
public boolean isSet(_Fields field) {
|
|
|
318 |
if (field == null) {
|
|
|
319 |
throw new IllegalArgumentException();
|
|
|
320 |
}
|
| 483 |
rajveer |
321 |
|
|
|
322 |
switch (field) {
|
|
|
323 |
case WAREHOUSE_ID:
|
| 648 |
chandransh |
324 |
return isSetWarehouseId();
|
| 483 |
rajveer |
325 |
case PROVIDER_ID:
|
| 648 |
chandransh |
326 |
return isSetProviderId();
|
|
|
327 |
case DELIVERY_TIME:
|
|
|
328 |
return isSetDeliveryTime();
|
| 483 |
rajveer |
329 |
case AIRWAY_BILLNO:
|
|
|
330 |
return isSetAirway_billno();
|
|
|
331 |
}
|
|
|
332 |
throw new IllegalStateException();
|
|
|
333 |
}
|
|
|
334 |
|
|
|
335 |
@Override
|
|
|
336 |
public boolean equals(Object that) {
|
|
|
337 |
if (that == null)
|
|
|
338 |
return false;
|
|
|
339 |
if (that instanceof LogisticsInfo)
|
|
|
340 |
return this.equals((LogisticsInfo)that);
|
|
|
341 |
return false;
|
|
|
342 |
}
|
|
|
343 |
|
|
|
344 |
public boolean equals(LogisticsInfo that) {
|
|
|
345 |
if (that == null)
|
|
|
346 |
return false;
|
|
|
347 |
|
| 648 |
chandransh |
348 |
boolean this_present_warehouseId = true;
|
|
|
349 |
boolean that_present_warehouseId = true;
|
|
|
350 |
if (this_present_warehouseId || that_present_warehouseId) {
|
|
|
351 |
if (!(this_present_warehouseId && that_present_warehouseId))
|
| 483 |
rajveer |
352 |
return false;
|
| 648 |
chandransh |
353 |
if (this.warehouseId != that.warehouseId)
|
| 483 |
rajveer |
354 |
return false;
|
|
|
355 |
}
|
|
|
356 |
|
| 648 |
chandransh |
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))
|
| 483 |
rajveer |
361 |
return false;
|
| 648 |
chandransh |
362 |
if (this.providerId != that.providerId)
|
| 483 |
rajveer |
363 |
return false;
|
|
|
364 |
}
|
|
|
365 |
|
| 648 |
chandransh |
366 |
boolean this_present_deliveryTime = true;
|
|
|
367 |
boolean that_present_deliveryTime = true;
|
|
|
368 |
if (this_present_deliveryTime || that_present_deliveryTime) {
|
|
|
369 |
if (!(this_present_deliveryTime && that_present_deliveryTime))
|
|
|
370 |
return false;
|
|
|
371 |
if (this.deliveryTime != that.deliveryTime)
|
|
|
372 |
return false;
|
|
|
373 |
}
|
|
|
374 |
|
| 510 |
rajveer |
375 |
boolean this_present_airway_billno = true && this.isSetAirway_billno();
|
|
|
376 |
boolean that_present_airway_billno = true && that.isSetAirway_billno();
|
| 483 |
rajveer |
377 |
if (this_present_airway_billno || that_present_airway_billno) {
|
|
|
378 |
if (!(this_present_airway_billno && that_present_airway_billno))
|
|
|
379 |
return false;
|
| 510 |
rajveer |
380 |
if (!this.airway_billno.equals(that.airway_billno))
|
| 483 |
rajveer |
381 |
return false;
|
|
|
382 |
}
|
|
|
383 |
|
|
|
384 |
return true;
|
|
|
385 |
}
|
|
|
386 |
|
|
|
387 |
@Override
|
|
|
388 |
public int hashCode() {
|
|
|
389 |
return 0;
|
|
|
390 |
}
|
|
|
391 |
|
|
|
392 |
public int compareTo(LogisticsInfo other) {
|
|
|
393 |
if (!getClass().equals(other.getClass())) {
|
|
|
394 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
395 |
}
|
|
|
396 |
|
|
|
397 |
int lastComparison = 0;
|
|
|
398 |
LogisticsInfo typedOther = (LogisticsInfo)other;
|
|
|
399 |
|
| 3430 |
rajveer |
400 |
lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
|
| 483 |
rajveer |
401 |
if (lastComparison != 0) {
|
|
|
402 |
return lastComparison;
|
|
|
403 |
}
|
| 3430 |
rajveer |
404 |
if (isSetWarehouseId()) {
|
|
|
405 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
|
|
|
406 |
if (lastComparison != 0) {
|
|
|
407 |
return lastComparison;
|
|
|
408 |
}
|
| 483 |
rajveer |
409 |
}
|
| 3430 |
rajveer |
410 |
lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
|
| 483 |
rajveer |
411 |
if (lastComparison != 0) {
|
|
|
412 |
return lastComparison;
|
|
|
413 |
}
|
| 3430 |
rajveer |
414 |
if (isSetProviderId()) {
|
|
|
415 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
|
|
|
416 |
if (lastComparison != 0) {
|
|
|
417 |
return lastComparison;
|
|
|
418 |
}
|
| 483 |
rajveer |
419 |
}
|
| 3430 |
rajveer |
420 |
lastComparison = Boolean.valueOf(isSetDeliveryTime()).compareTo(typedOther.isSetDeliveryTime());
|
| 483 |
rajveer |
421 |
if (lastComparison != 0) {
|
|
|
422 |
return lastComparison;
|
|
|
423 |
}
|
| 3430 |
rajveer |
424 |
if (isSetDeliveryTime()) {
|
|
|
425 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deliveryTime, typedOther.deliveryTime);
|
|
|
426 |
if (lastComparison != 0) {
|
|
|
427 |
return lastComparison;
|
|
|
428 |
}
|
| 483 |
rajveer |
429 |
}
|
| 3430 |
rajveer |
430 |
lastComparison = Boolean.valueOf(isSetAirway_billno()).compareTo(typedOther.isSetAirway_billno());
|
| 483 |
rajveer |
431 |
if (lastComparison != 0) {
|
|
|
432 |
return lastComparison;
|
|
|
433 |
}
|
| 3430 |
rajveer |
434 |
if (isSetAirway_billno()) {
|
|
|
435 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.airway_billno, typedOther.airway_billno);
|
|
|
436 |
if (lastComparison != 0) {
|
|
|
437 |
return lastComparison;
|
|
|
438 |
}
|
| 483 |
rajveer |
439 |
}
|
|
|
440 |
return 0;
|
|
|
441 |
}
|
|
|
442 |
|
| 3430 |
rajveer |
443 |
public _Fields fieldForId(int fieldId) {
|
|
|
444 |
return _Fields.findByThriftId(fieldId);
|
|
|
445 |
}
|
|
|
446 |
|
|
|
447 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
448 |
org.apache.thrift.protocol.TField field;
|
| 483 |
rajveer |
449 |
iprot.readStructBegin();
|
|
|
450 |
while (true)
|
|
|
451 |
{
|
|
|
452 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
453 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 483 |
rajveer |
454 |
break;
|
|
|
455 |
}
|
| 3430 |
rajveer |
456 |
switch (field.id) {
|
|
|
457 |
case 1: // WAREHOUSE_ID
|
|
|
458 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
459 |
this.warehouseId = iprot.readI64();
|
|
|
460 |
setWarehouseIdIsSet(true);
|
|
|
461 |
} else {
|
|
|
462 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
463 |
}
|
|
|
464 |
break;
|
|
|
465 |
case 2: // PROVIDER_ID
|
|
|
466 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
467 |
this.providerId = iprot.readI64();
|
|
|
468 |
setProviderIdIsSet(true);
|
|
|
469 |
} else {
|
|
|
470 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
471 |
}
|
|
|
472 |
break;
|
|
|
473 |
case 3: // DELIVERY_TIME
|
|
|
474 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
475 |
this.deliveryTime = iprot.readI64();
|
|
|
476 |
setDeliveryTimeIsSet(true);
|
|
|
477 |
} else {
|
|
|
478 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
479 |
}
|
|
|
480 |
break;
|
|
|
481 |
case 4: // AIRWAY_BILLNO
|
|
|
482 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
483 |
this.airway_billno = iprot.readString();
|
|
|
484 |
} else {
|
|
|
485 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
486 |
}
|
|
|
487 |
break;
|
|
|
488 |
default:
|
|
|
489 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 483 |
rajveer |
490 |
}
|
| 3430 |
rajveer |
491 |
iprot.readFieldEnd();
|
| 483 |
rajveer |
492 |
}
|
|
|
493 |
iprot.readStructEnd();
|
|
|
494 |
validate();
|
|
|
495 |
}
|
|
|
496 |
|
| 3430 |
rajveer |
497 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 483 |
rajveer |
498 |
validate();
|
|
|
499 |
|
|
|
500 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
501 |
oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
|
| 648 |
chandransh |
502 |
oprot.writeI64(this.warehouseId);
|
| 483 |
rajveer |
503 |
oprot.writeFieldEnd();
|
|
|
504 |
oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
|
| 648 |
chandransh |
505 |
oprot.writeI64(this.providerId);
|
| 483 |
rajveer |
506 |
oprot.writeFieldEnd();
|
| 648 |
chandransh |
507 |
oprot.writeFieldBegin(DELIVERY_TIME_FIELD_DESC);
|
|
|
508 |
oprot.writeI64(this.deliveryTime);
|
|
|
509 |
oprot.writeFieldEnd();
|
| 510 |
rajveer |
510 |
if (this.airway_billno != null) {
|
|
|
511 |
oprot.writeFieldBegin(AIRWAY_BILLNO_FIELD_DESC);
|
|
|
512 |
oprot.writeString(this.airway_billno);
|
|
|
513 |
oprot.writeFieldEnd();
|
|
|
514 |
}
|
| 483 |
rajveer |
515 |
oprot.writeFieldStop();
|
|
|
516 |
oprot.writeStructEnd();
|
|
|
517 |
}
|
|
|
518 |
|
|
|
519 |
@Override
|
|
|
520 |
public String toString() {
|
|
|
521 |
StringBuilder sb = new StringBuilder("LogisticsInfo(");
|
|
|
522 |
boolean first = true;
|
|
|
523 |
|
| 648 |
chandransh |
524 |
sb.append("warehouseId:");
|
|
|
525 |
sb.append(this.warehouseId);
|
| 483 |
rajveer |
526 |
first = false;
|
|
|
527 |
if (!first) sb.append(", ");
|
| 648 |
chandransh |
528 |
sb.append("providerId:");
|
|
|
529 |
sb.append(this.providerId);
|
| 483 |
rajveer |
530 |
first = false;
|
|
|
531 |
if (!first) sb.append(", ");
|
| 648 |
chandransh |
532 |
sb.append("deliveryTime:");
|
|
|
533 |
sb.append(this.deliveryTime);
|
|
|
534 |
first = false;
|
|
|
535 |
if (!first) sb.append(", ");
|
| 483 |
rajveer |
536 |
sb.append("airway_billno:");
|
| 510 |
rajveer |
537 |
if (this.airway_billno == null) {
|
|
|
538 |
sb.append("null");
|
|
|
539 |
} else {
|
|
|
540 |
sb.append(this.airway_billno);
|
|
|
541 |
}
|
| 483 |
rajveer |
542 |
first = false;
|
|
|
543 |
sb.append(")");
|
|
|
544 |
return sb.toString();
|
|
|
545 |
}
|
|
|
546 |
|
| 3430 |
rajveer |
547 |
public void validate() throws org.apache.thrift.TException {
|
| 483 |
rajveer |
548 |
// check for required fields
|
|
|
549 |
}
|
|
|
550 |
|
| 3430 |
rajveer |
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 |
|
| 483 |
rajveer |
569 |
}
|
|
|
570 |
|