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