| 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);
|
| 5110 |
mandeep.dh |
32 |
private static final org.apache.thrift.protocol.TField FULFILMENT_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("fulfilmentWarehouseId", org.apache.thrift.protocol.TType.I64, (short)7);
|
| 6524 |
rajveer |
33 |
private static final org.apache.thrift.protocol.TField OTG_AVAILABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("otgAvailable", org.apache.thrift.protocol.TType.BOOL, (short)8);
|
| 6725 |
rajveer |
34 |
private static final org.apache.thrift.protocol.TField DELIVERY_DELAY_FIELD_DESC = new org.apache.thrift.protocol.TField("deliveryDelay", org.apache.thrift.protocol.TType.I64, (short)9);
|
| 483 |
rajveer |
35 |
|
| 3430 |
rajveer |
36 |
private long warehouseId; // required
|
|
|
37 |
private long providerId; // required
|
|
|
38 |
private long deliveryTime; // required
|
|
|
39 |
private String airway_billno; // required
|
| 4009 |
chandransh |
40 |
private long shippingTime; // required
|
| 4865 |
rajveer |
41 |
private boolean codAllowed; // required
|
| 5110 |
mandeep.dh |
42 |
private long fulfilmentWarehouseId; // required
|
| 6524 |
rajveer |
43 |
private boolean otgAvailable; // required
|
| 6725 |
rajveer |
44 |
private long deliveryDelay; // required
|
| 483 |
rajveer |
45 |
|
|
|
46 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
47 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 648 |
chandransh |
48 |
WAREHOUSE_ID((short)1, "warehouseId"),
|
|
|
49 |
PROVIDER_ID((short)2, "providerId"),
|
|
|
50 |
DELIVERY_TIME((short)3, "deliveryTime"),
|
| 4009 |
chandransh |
51 |
AIRWAY_BILLNO((short)4, "airway_billno"),
|
| 4865 |
rajveer |
52 |
SHIPPING_TIME((short)5, "shippingTime"),
|
| 5110 |
mandeep.dh |
53 |
COD_ALLOWED((short)6, "codAllowed"),
|
| 6524 |
rajveer |
54 |
FULFILMENT_WAREHOUSE_ID((short)7, "fulfilmentWarehouseId"),
|
| 6725 |
rajveer |
55 |
OTG_AVAILABLE((short)8, "otgAvailable"),
|
|
|
56 |
DELIVERY_DELAY((short)9, "deliveryDelay");
|
| 483 |
rajveer |
57 |
|
|
|
58 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
59 |
|
|
|
60 |
static {
|
|
|
61 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
62 |
byName.put(field.getFieldName(), field);
|
|
|
63 |
}
|
|
|
64 |
}
|
|
|
65 |
|
|
|
66 |
/**
|
|
|
67 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
68 |
*/
|
|
|
69 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
70 |
switch(fieldId) {
|
|
|
71 |
case 1: // WAREHOUSE_ID
|
|
|
72 |
return WAREHOUSE_ID;
|
|
|
73 |
case 2: // PROVIDER_ID
|
|
|
74 |
return PROVIDER_ID;
|
|
|
75 |
case 3: // DELIVERY_TIME
|
|
|
76 |
return DELIVERY_TIME;
|
|
|
77 |
case 4: // AIRWAY_BILLNO
|
|
|
78 |
return AIRWAY_BILLNO;
|
| 4009 |
chandransh |
79 |
case 5: // SHIPPING_TIME
|
|
|
80 |
return SHIPPING_TIME;
|
| 4865 |
rajveer |
81 |
case 6: // COD_ALLOWED
|
|
|
82 |
return COD_ALLOWED;
|
| 5110 |
mandeep.dh |
83 |
case 7: // FULFILMENT_WAREHOUSE_ID
|
|
|
84 |
return FULFILMENT_WAREHOUSE_ID;
|
| 6524 |
rajveer |
85 |
case 8: // OTG_AVAILABLE
|
|
|
86 |
return OTG_AVAILABLE;
|
| 6725 |
rajveer |
87 |
case 9: // DELIVERY_DELAY
|
|
|
88 |
return DELIVERY_DELAY;
|
| 3430 |
rajveer |
89 |
default:
|
|
|
90 |
return null;
|
|
|
91 |
}
|
| 483 |
rajveer |
92 |
}
|
|
|
93 |
|
|
|
94 |
/**
|
|
|
95 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
96 |
* if it is not found.
|
|
|
97 |
*/
|
|
|
98 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
99 |
_Fields fields = findByThriftId(fieldId);
|
|
|
100 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
101 |
return fields;
|
|
|
102 |
}
|
|
|
103 |
|
|
|
104 |
/**
|
|
|
105 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
106 |
*/
|
|
|
107 |
public static _Fields findByName(String name) {
|
|
|
108 |
return byName.get(name);
|
|
|
109 |
}
|
|
|
110 |
|
|
|
111 |
private final short _thriftId;
|
|
|
112 |
private final String _fieldName;
|
|
|
113 |
|
|
|
114 |
_Fields(short thriftId, String fieldName) {
|
|
|
115 |
_thriftId = thriftId;
|
|
|
116 |
_fieldName = fieldName;
|
|
|
117 |
}
|
|
|
118 |
|
|
|
119 |
public short getThriftFieldId() {
|
|
|
120 |
return _thriftId;
|
|
|
121 |
}
|
|
|
122 |
|
|
|
123 |
public String getFieldName() {
|
|
|
124 |
return _fieldName;
|
|
|
125 |
}
|
|
|
126 |
}
|
|
|
127 |
|
|
|
128 |
// isset id assignments
|
| 648 |
chandransh |
129 |
private static final int __WAREHOUSEID_ISSET_ID = 0;
|
|
|
130 |
private static final int __PROVIDERID_ISSET_ID = 1;
|
|
|
131 |
private static final int __DELIVERYTIME_ISSET_ID = 2;
|
| 4009 |
chandransh |
132 |
private static final int __SHIPPINGTIME_ISSET_ID = 3;
|
| 4865 |
rajveer |
133 |
private static final int __CODALLOWED_ISSET_ID = 4;
|
| 5110 |
mandeep.dh |
134 |
private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 5;
|
| 6524 |
rajveer |
135 |
private static final int __OTGAVAILABLE_ISSET_ID = 6;
|
| 6725 |
rajveer |
136 |
private static final int __DELIVERYDELAY_ISSET_ID = 7;
|
|
|
137 |
private BitSet __isset_bit_vector = new BitSet(8);
|
| 483 |
rajveer |
138 |
|
| 3430 |
rajveer |
139 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 483 |
rajveer |
140 |
static {
|
| 3430 |
rajveer |
141 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
142 |
tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
143 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
144 |
tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
145 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
146 |
tmpMap.put(_Fields.DELIVERY_TIME, new org.apache.thrift.meta_data.FieldMetaData("deliveryTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
147 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
148 |
tmpMap.put(_Fields.AIRWAY_BILLNO, new org.apache.thrift.meta_data.FieldMetaData("airway_billno", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
149 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 4009 |
chandransh |
150 |
tmpMap.put(_Fields.SHIPPING_TIME, new org.apache.thrift.meta_data.FieldMetaData("shippingTime", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
151 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 4865 |
rajveer |
152 |
tmpMap.put(_Fields.COD_ALLOWED, new org.apache.thrift.meta_data.FieldMetaData("codAllowed", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
153 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
| 5110 |
mandeep.dh |
154 |
tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
155 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 6524 |
rajveer |
156 |
tmpMap.put(_Fields.OTG_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("otgAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
157 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
| 6725 |
rajveer |
158 |
tmpMap.put(_Fields.DELIVERY_DELAY, new org.apache.thrift.meta_data.FieldMetaData("deliveryDelay", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
159 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 3430 |
rajveer |
160 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
161 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LogisticsInfo.class, metaDataMap);
|
| 483 |
rajveer |
162 |
}
|
|
|
163 |
|
|
|
164 |
public LogisticsInfo() {
|
|
|
165 |
}
|
|
|
166 |
|
|
|
167 |
public LogisticsInfo(
|
| 648 |
chandransh |
168 |
long warehouseId,
|
|
|
169 |
long providerId,
|
|
|
170 |
long deliveryTime,
|
| 4009 |
chandransh |
171 |
String airway_billno,
|
| 4865 |
rajveer |
172 |
long shippingTime,
|
| 5110 |
mandeep.dh |
173 |
boolean codAllowed,
|
| 6524 |
rajveer |
174 |
long fulfilmentWarehouseId,
|
| 6725 |
rajveer |
175 |
boolean otgAvailable,
|
|
|
176 |
long deliveryDelay)
|
| 483 |
rajveer |
177 |
{
|
|
|
178 |
this();
|
| 648 |
chandransh |
179 |
this.warehouseId = warehouseId;
|
|
|
180 |
setWarehouseIdIsSet(true);
|
|
|
181 |
this.providerId = providerId;
|
|
|
182 |
setProviderIdIsSet(true);
|
|
|
183 |
this.deliveryTime = deliveryTime;
|
|
|
184 |
setDeliveryTimeIsSet(true);
|
| 483 |
rajveer |
185 |
this.airway_billno = airway_billno;
|
| 4009 |
chandransh |
186 |
this.shippingTime = shippingTime;
|
|
|
187 |
setShippingTimeIsSet(true);
|
| 4865 |
rajveer |
188 |
this.codAllowed = codAllowed;
|
|
|
189 |
setCodAllowedIsSet(true);
|
| 5110 |
mandeep.dh |
190 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
191 |
setFulfilmentWarehouseIdIsSet(true);
|
| 6524 |
rajveer |
192 |
this.otgAvailable = otgAvailable;
|
|
|
193 |
setOtgAvailableIsSet(true);
|
| 6725 |
rajveer |
194 |
this.deliveryDelay = deliveryDelay;
|
|
|
195 |
setDeliveryDelayIsSet(true);
|
| 483 |
rajveer |
196 |
}
|
|
|
197 |
|
|
|
198 |
/**
|
|
|
199 |
* Performs a deep copy on <i>other</i>.
|
|
|
200 |
*/
|
|
|
201 |
public LogisticsInfo(LogisticsInfo other) {
|
|
|
202 |
__isset_bit_vector.clear();
|
|
|
203 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 648 |
chandransh |
204 |
this.warehouseId = other.warehouseId;
|
|
|
205 |
this.providerId = other.providerId;
|
|
|
206 |
this.deliveryTime = other.deliveryTime;
|
| 510 |
rajveer |
207 |
if (other.isSetAirway_billno()) {
|
|
|
208 |
this.airway_billno = other.airway_billno;
|
|
|
209 |
}
|
| 4009 |
chandransh |
210 |
this.shippingTime = other.shippingTime;
|
| 4865 |
rajveer |
211 |
this.codAllowed = other.codAllowed;
|
| 5110 |
mandeep.dh |
212 |
this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;
|
| 6524 |
rajveer |
213 |
this.otgAvailable = other.otgAvailable;
|
| 6725 |
rajveer |
214 |
this.deliveryDelay = other.deliveryDelay;
|
| 483 |
rajveer |
215 |
}
|
|
|
216 |
|
|
|
217 |
public LogisticsInfo deepCopy() {
|
|
|
218 |
return new LogisticsInfo(this);
|
|
|
219 |
}
|
|
|
220 |
|
| 3430 |
rajveer |
221 |
@Override
|
|
|
222 |
public void clear() {
|
|
|
223 |
setWarehouseIdIsSet(false);
|
|
|
224 |
this.warehouseId = 0;
|
|
|
225 |
setProviderIdIsSet(false);
|
|
|
226 |
this.providerId = 0;
|
|
|
227 |
setDeliveryTimeIsSet(false);
|
|
|
228 |
this.deliveryTime = 0;
|
|
|
229 |
this.airway_billno = null;
|
| 4009 |
chandransh |
230 |
setShippingTimeIsSet(false);
|
|
|
231 |
this.shippingTime = 0;
|
| 4865 |
rajveer |
232 |
setCodAllowedIsSet(false);
|
|
|
233 |
this.codAllowed = false;
|
| 5110 |
mandeep.dh |
234 |
setFulfilmentWarehouseIdIsSet(false);
|
|
|
235 |
this.fulfilmentWarehouseId = 0;
|
| 6524 |
rajveer |
236 |
setOtgAvailableIsSet(false);
|
|
|
237 |
this.otgAvailable = false;
|
| 6725 |
rajveer |
238 |
setDeliveryDelayIsSet(false);
|
|
|
239 |
this.deliveryDelay = 0;
|
| 483 |
rajveer |
240 |
}
|
|
|
241 |
|
| 648 |
chandransh |
242 |
public long getWarehouseId() {
|
|
|
243 |
return this.warehouseId;
|
| 483 |
rajveer |
244 |
}
|
|
|
245 |
|
| 3430 |
rajveer |
246 |
public void setWarehouseId(long warehouseId) {
|
| 648 |
chandransh |
247 |
this.warehouseId = warehouseId;
|
|
|
248 |
setWarehouseIdIsSet(true);
|
| 483 |
rajveer |
249 |
}
|
|
|
250 |
|
| 648 |
chandransh |
251 |
public void unsetWarehouseId() {
|
|
|
252 |
__isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
|
| 483 |
rajveer |
253 |
}
|
|
|
254 |
|
| 3430 |
rajveer |
255 |
/** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
|
| 648 |
chandransh |
256 |
public boolean isSetWarehouseId() {
|
|
|
257 |
return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
|
| 483 |
rajveer |
258 |
}
|
|
|
259 |
|
| 648 |
chandransh |
260 |
public void setWarehouseIdIsSet(boolean value) {
|
|
|
261 |
__isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
|
| 483 |
rajveer |
262 |
}
|
|
|
263 |
|
| 648 |
chandransh |
264 |
public long getProviderId() {
|
|
|
265 |
return this.providerId;
|
| 483 |
rajveer |
266 |
}
|
|
|
267 |
|
| 3430 |
rajveer |
268 |
public void setProviderId(long providerId) {
|
| 648 |
chandransh |
269 |
this.providerId = providerId;
|
|
|
270 |
setProviderIdIsSet(true);
|
| 483 |
rajveer |
271 |
}
|
|
|
272 |
|
| 648 |
chandransh |
273 |
public void unsetProviderId() {
|
|
|
274 |
__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
|
| 483 |
rajveer |
275 |
}
|
|
|
276 |
|
| 3430 |
rajveer |
277 |
/** Returns true if field providerId is set (has been assigned a value) and false otherwise */
|
| 648 |
chandransh |
278 |
public boolean isSetProviderId() {
|
|
|
279 |
return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
|
| 483 |
rajveer |
280 |
}
|
|
|
281 |
|
| 648 |
chandransh |
282 |
public void setProviderIdIsSet(boolean value) {
|
|
|
283 |
__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
|
| 483 |
rajveer |
284 |
}
|
|
|
285 |
|
| 648 |
chandransh |
286 |
public long getDeliveryTime() {
|
|
|
287 |
return this.deliveryTime;
|
|
|
288 |
}
|
|
|
289 |
|
| 3430 |
rajveer |
290 |
public void setDeliveryTime(long deliveryTime) {
|
| 648 |
chandransh |
291 |
this.deliveryTime = deliveryTime;
|
|
|
292 |
setDeliveryTimeIsSet(true);
|
|
|
293 |
}
|
|
|
294 |
|
|
|
295 |
public void unsetDeliveryTime() {
|
|
|
296 |
__isset_bit_vector.clear(__DELIVERYTIME_ISSET_ID);
|
|
|
297 |
}
|
|
|
298 |
|
| 3430 |
rajveer |
299 |
/** Returns true if field deliveryTime is set (has been assigned a value) and false otherwise */
|
| 648 |
chandransh |
300 |
public boolean isSetDeliveryTime() {
|
|
|
301 |
return __isset_bit_vector.get(__DELIVERYTIME_ISSET_ID);
|
|
|
302 |
}
|
|
|
303 |
|
|
|
304 |
public void setDeliveryTimeIsSet(boolean value) {
|
|
|
305 |
__isset_bit_vector.set(__DELIVERYTIME_ISSET_ID, value);
|
|
|
306 |
}
|
|
|
307 |
|
| 510 |
rajveer |
308 |
public String getAirway_billno() {
|
| 483 |
rajveer |
309 |
return this.airway_billno;
|
|
|
310 |
}
|
|
|
311 |
|
| 3430 |
rajveer |
312 |
public void setAirway_billno(String airway_billno) {
|
| 483 |
rajveer |
313 |
this.airway_billno = airway_billno;
|
|
|
314 |
}
|
|
|
315 |
|
|
|
316 |
public void unsetAirway_billno() {
|
| 510 |
rajveer |
317 |
this.airway_billno = null;
|
| 483 |
rajveer |
318 |
}
|
|
|
319 |
|
| 3430 |
rajveer |
320 |
/** Returns true if field airway_billno is set (has been assigned a value) and false otherwise */
|
| 483 |
rajveer |
321 |
public boolean isSetAirway_billno() {
|
| 510 |
rajveer |
322 |
return this.airway_billno != null;
|
| 483 |
rajveer |
323 |
}
|
|
|
324 |
|
|
|
325 |
public void setAirway_billnoIsSet(boolean value) {
|
| 510 |
rajveer |
326 |
if (!value) {
|
|
|
327 |
this.airway_billno = null;
|
|
|
328 |
}
|
| 483 |
rajveer |
329 |
}
|
|
|
330 |
|
| 4009 |
chandransh |
331 |
public long getShippingTime() {
|
|
|
332 |
return this.shippingTime;
|
|
|
333 |
}
|
|
|
334 |
|
|
|
335 |
public void setShippingTime(long shippingTime) {
|
|
|
336 |
this.shippingTime = shippingTime;
|
|
|
337 |
setShippingTimeIsSet(true);
|
|
|
338 |
}
|
|
|
339 |
|
|
|
340 |
public void unsetShippingTime() {
|
|
|
341 |
__isset_bit_vector.clear(__SHIPPINGTIME_ISSET_ID);
|
|
|
342 |
}
|
|
|
343 |
|
|
|
344 |
/** Returns true if field shippingTime is set (has been assigned a value) and false otherwise */
|
|
|
345 |
public boolean isSetShippingTime() {
|
|
|
346 |
return __isset_bit_vector.get(__SHIPPINGTIME_ISSET_ID);
|
|
|
347 |
}
|
|
|
348 |
|
|
|
349 |
public void setShippingTimeIsSet(boolean value) {
|
|
|
350 |
__isset_bit_vector.set(__SHIPPINGTIME_ISSET_ID, value);
|
|
|
351 |
}
|
|
|
352 |
|
| 4865 |
rajveer |
353 |
public boolean isCodAllowed() {
|
|
|
354 |
return this.codAllowed;
|
|
|
355 |
}
|
|
|
356 |
|
|
|
357 |
public void setCodAllowed(boolean codAllowed) {
|
|
|
358 |
this.codAllowed = codAllowed;
|
|
|
359 |
setCodAllowedIsSet(true);
|
|
|
360 |
}
|
|
|
361 |
|
|
|
362 |
public void unsetCodAllowed() {
|
|
|
363 |
__isset_bit_vector.clear(__CODALLOWED_ISSET_ID);
|
|
|
364 |
}
|
|
|
365 |
|
|
|
366 |
/** Returns true if field codAllowed is set (has been assigned a value) and false otherwise */
|
|
|
367 |
public boolean isSetCodAllowed() {
|
|
|
368 |
return __isset_bit_vector.get(__CODALLOWED_ISSET_ID);
|
|
|
369 |
}
|
|
|
370 |
|
|
|
371 |
public void setCodAllowedIsSet(boolean value) {
|
|
|
372 |
__isset_bit_vector.set(__CODALLOWED_ISSET_ID, value);
|
|
|
373 |
}
|
|
|
374 |
|
| 5110 |
mandeep.dh |
375 |
public long getFulfilmentWarehouseId() {
|
|
|
376 |
return this.fulfilmentWarehouseId;
|
|
|
377 |
}
|
|
|
378 |
|
|
|
379 |
public void setFulfilmentWarehouseId(long fulfilmentWarehouseId) {
|
|
|
380 |
this.fulfilmentWarehouseId = fulfilmentWarehouseId;
|
|
|
381 |
setFulfilmentWarehouseIdIsSet(true);
|
|
|
382 |
}
|
|
|
383 |
|
|
|
384 |
public void unsetFulfilmentWarehouseId() {
|
|
|
385 |
__isset_bit_vector.clear(__FULFILMENTWAREHOUSEID_ISSET_ID);
|
|
|
386 |
}
|
|
|
387 |
|
|
|
388 |
/** Returns true if field fulfilmentWarehouseId is set (has been assigned a value) and false otherwise */
|
|
|
389 |
public boolean isSetFulfilmentWarehouseId() {
|
|
|
390 |
return __isset_bit_vector.get(__FULFILMENTWAREHOUSEID_ISSET_ID);
|
|
|
391 |
}
|
|
|
392 |
|
|
|
393 |
public void setFulfilmentWarehouseIdIsSet(boolean value) {
|
|
|
394 |
__isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);
|
|
|
395 |
}
|
|
|
396 |
|
| 6524 |
rajveer |
397 |
public boolean isOtgAvailable() {
|
|
|
398 |
return this.otgAvailable;
|
|
|
399 |
}
|
|
|
400 |
|
|
|
401 |
public void setOtgAvailable(boolean otgAvailable) {
|
|
|
402 |
this.otgAvailable = otgAvailable;
|
|
|
403 |
setOtgAvailableIsSet(true);
|
|
|
404 |
}
|
|
|
405 |
|
|
|
406 |
public void unsetOtgAvailable() {
|
|
|
407 |
__isset_bit_vector.clear(__OTGAVAILABLE_ISSET_ID);
|
|
|
408 |
}
|
|
|
409 |
|
|
|
410 |
/** Returns true if field otgAvailable is set (has been assigned a value) and false otherwise */
|
|
|
411 |
public boolean isSetOtgAvailable() {
|
|
|
412 |
return __isset_bit_vector.get(__OTGAVAILABLE_ISSET_ID);
|
|
|
413 |
}
|
|
|
414 |
|
|
|
415 |
public void setOtgAvailableIsSet(boolean value) {
|
|
|
416 |
__isset_bit_vector.set(__OTGAVAILABLE_ISSET_ID, value);
|
|
|
417 |
}
|
|
|
418 |
|
| 6725 |
rajveer |
419 |
public long getDeliveryDelay() {
|
|
|
420 |
return this.deliveryDelay;
|
|
|
421 |
}
|
|
|
422 |
|
|
|
423 |
public void setDeliveryDelay(long deliveryDelay) {
|
|
|
424 |
this.deliveryDelay = deliveryDelay;
|
|
|
425 |
setDeliveryDelayIsSet(true);
|
|
|
426 |
}
|
|
|
427 |
|
|
|
428 |
public void unsetDeliveryDelay() {
|
|
|
429 |
__isset_bit_vector.clear(__DELIVERYDELAY_ISSET_ID);
|
|
|
430 |
}
|
|
|
431 |
|
|
|
432 |
/** Returns true if field deliveryDelay is set (has been assigned a value) and false otherwise */
|
|
|
433 |
public boolean isSetDeliveryDelay() {
|
|
|
434 |
return __isset_bit_vector.get(__DELIVERYDELAY_ISSET_ID);
|
|
|
435 |
}
|
|
|
436 |
|
|
|
437 |
public void setDeliveryDelayIsSet(boolean value) {
|
|
|
438 |
__isset_bit_vector.set(__DELIVERYDELAY_ISSET_ID, value);
|
|
|
439 |
}
|
|
|
440 |
|
| 483 |
rajveer |
441 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
442 |
switch (field) {
|
|
|
443 |
case WAREHOUSE_ID:
|
|
|
444 |
if (value == null) {
|
| 648 |
chandransh |
445 |
unsetWarehouseId();
|
| 483 |
rajveer |
446 |
} else {
|
| 648 |
chandransh |
447 |
setWarehouseId((Long)value);
|
| 483 |
rajveer |
448 |
}
|
|
|
449 |
break;
|
|
|
450 |
|
|
|
451 |
case PROVIDER_ID:
|
|
|
452 |
if (value == null) {
|
| 648 |
chandransh |
453 |
unsetProviderId();
|
| 483 |
rajveer |
454 |
} else {
|
| 648 |
chandransh |
455 |
setProviderId((Long)value);
|
| 483 |
rajveer |
456 |
}
|
|
|
457 |
break;
|
|
|
458 |
|
| 648 |
chandransh |
459 |
case DELIVERY_TIME:
|
| 483 |
rajveer |
460 |
if (value == null) {
|
| 648 |
chandransh |
461 |
unsetDeliveryTime();
|
| 483 |
rajveer |
462 |
} else {
|
| 648 |
chandransh |
463 |
setDeliveryTime((Long)value);
|
| 483 |
rajveer |
464 |
}
|
|
|
465 |
break;
|
|
|
466 |
|
| 648 |
chandransh |
467 |
case AIRWAY_BILLNO:
|
| 483 |
rajveer |
468 |
if (value == null) {
|
| 648 |
chandransh |
469 |
unsetAirway_billno();
|
| 483 |
rajveer |
470 |
} else {
|
| 648 |
chandransh |
471 |
setAirway_billno((String)value);
|
| 483 |
rajveer |
472 |
}
|
|
|
473 |
break;
|
|
|
474 |
|
| 4009 |
chandransh |
475 |
case SHIPPING_TIME:
|
|
|
476 |
if (value == null) {
|
|
|
477 |
unsetShippingTime();
|
|
|
478 |
} else {
|
|
|
479 |
setShippingTime((Long)value);
|
|
|
480 |
}
|
|
|
481 |
break;
|
|
|
482 |
|
| 4865 |
rajveer |
483 |
case COD_ALLOWED:
|
|
|
484 |
if (value == null) {
|
|
|
485 |
unsetCodAllowed();
|
|
|
486 |
} else {
|
|
|
487 |
setCodAllowed((Boolean)value);
|
|
|
488 |
}
|
|
|
489 |
break;
|
|
|
490 |
|
| 5110 |
mandeep.dh |
491 |
case FULFILMENT_WAREHOUSE_ID:
|
|
|
492 |
if (value == null) {
|
|
|
493 |
unsetFulfilmentWarehouseId();
|
|
|
494 |
} else {
|
|
|
495 |
setFulfilmentWarehouseId((Long)value);
|
|
|
496 |
}
|
|
|
497 |
break;
|
|
|
498 |
|
| 6524 |
rajveer |
499 |
case OTG_AVAILABLE:
|
|
|
500 |
if (value == null) {
|
|
|
501 |
unsetOtgAvailable();
|
|
|
502 |
} else {
|
|
|
503 |
setOtgAvailable((Boolean)value);
|
|
|
504 |
}
|
|
|
505 |
break;
|
|
|
506 |
|
| 6725 |
rajveer |
507 |
case DELIVERY_DELAY:
|
|
|
508 |
if (value == null) {
|
|
|
509 |
unsetDeliveryDelay();
|
|
|
510 |
} else {
|
|
|
511 |
setDeliveryDelay((Long)value);
|
|
|
512 |
}
|
|
|
513 |
break;
|
|
|
514 |
|
| 483 |
rajveer |
515 |
}
|
|
|
516 |
}
|
|
|
517 |
|
|
|
518 |
public Object getFieldValue(_Fields field) {
|
|
|
519 |
switch (field) {
|
|
|
520 |
case WAREHOUSE_ID:
|
| 3430 |
rajveer |
521 |
return Long.valueOf(getWarehouseId());
|
| 483 |
rajveer |
522 |
|
|
|
523 |
case PROVIDER_ID:
|
| 3430 |
rajveer |
524 |
return Long.valueOf(getProviderId());
|
| 483 |
rajveer |
525 |
|
| 648 |
chandransh |
526 |
case DELIVERY_TIME:
|
| 3430 |
rajveer |
527 |
return Long.valueOf(getDeliveryTime());
|
| 648 |
chandransh |
528 |
|
| 483 |
rajveer |
529 |
case AIRWAY_BILLNO:
|
| 510 |
rajveer |
530 |
return getAirway_billno();
|
| 483 |
rajveer |
531 |
|
| 4009 |
chandransh |
532 |
case SHIPPING_TIME:
|
|
|
533 |
return Long.valueOf(getShippingTime());
|
|
|
534 |
|
| 4865 |
rajveer |
535 |
case COD_ALLOWED:
|
|
|
536 |
return Boolean.valueOf(isCodAllowed());
|
|
|
537 |
|
| 5110 |
mandeep.dh |
538 |
case FULFILMENT_WAREHOUSE_ID:
|
|
|
539 |
return Long.valueOf(getFulfilmentWarehouseId());
|
|
|
540 |
|
| 6524 |
rajveer |
541 |
case OTG_AVAILABLE:
|
|
|
542 |
return Boolean.valueOf(isOtgAvailable());
|
|
|
543 |
|
| 6725 |
rajveer |
544 |
case DELIVERY_DELAY:
|
|
|
545 |
return Long.valueOf(getDeliveryDelay());
|
|
|
546 |
|
| 483 |
rajveer |
547 |
}
|
|
|
548 |
throw new IllegalStateException();
|
|
|
549 |
}
|
|
|
550 |
|
| 3430 |
rajveer |
551 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
552 |
public boolean isSet(_Fields field) {
|
|
|
553 |
if (field == null) {
|
|
|
554 |
throw new IllegalArgumentException();
|
|
|
555 |
}
|
| 483 |
rajveer |
556 |
|
|
|
557 |
switch (field) {
|
|
|
558 |
case WAREHOUSE_ID:
|
| 648 |
chandransh |
559 |
return isSetWarehouseId();
|
| 483 |
rajveer |
560 |
case PROVIDER_ID:
|
| 648 |
chandransh |
561 |
return isSetProviderId();
|
|
|
562 |
case DELIVERY_TIME:
|
|
|
563 |
return isSetDeliveryTime();
|
| 483 |
rajveer |
564 |
case AIRWAY_BILLNO:
|
|
|
565 |
return isSetAirway_billno();
|
| 4009 |
chandransh |
566 |
case SHIPPING_TIME:
|
|
|
567 |
return isSetShippingTime();
|
| 4865 |
rajveer |
568 |
case COD_ALLOWED:
|
|
|
569 |
return isSetCodAllowed();
|
| 5110 |
mandeep.dh |
570 |
case FULFILMENT_WAREHOUSE_ID:
|
|
|
571 |
return isSetFulfilmentWarehouseId();
|
| 6524 |
rajveer |
572 |
case OTG_AVAILABLE:
|
|
|
573 |
return isSetOtgAvailable();
|
| 6725 |
rajveer |
574 |
case DELIVERY_DELAY:
|
|
|
575 |
return isSetDeliveryDelay();
|
| 483 |
rajveer |
576 |
}
|
|
|
577 |
throw new IllegalStateException();
|
|
|
578 |
}
|
|
|
579 |
|
|
|
580 |
@Override
|
|
|
581 |
public boolean equals(Object that) {
|
|
|
582 |
if (that == null)
|
|
|
583 |
return false;
|
|
|
584 |
if (that instanceof LogisticsInfo)
|
|
|
585 |
return this.equals((LogisticsInfo)that);
|
|
|
586 |
return false;
|
|
|
587 |
}
|
|
|
588 |
|
|
|
589 |
public boolean equals(LogisticsInfo that) {
|
|
|
590 |
if (that == null)
|
|
|
591 |
return false;
|
|
|
592 |
|
| 648 |
chandransh |
593 |
boolean this_present_warehouseId = true;
|
|
|
594 |
boolean that_present_warehouseId = true;
|
|
|
595 |
if (this_present_warehouseId || that_present_warehouseId) {
|
|
|
596 |
if (!(this_present_warehouseId && that_present_warehouseId))
|
| 483 |
rajveer |
597 |
return false;
|
| 648 |
chandransh |
598 |
if (this.warehouseId != that.warehouseId)
|
| 483 |
rajveer |
599 |
return false;
|
|
|
600 |
}
|
|
|
601 |
|
| 648 |
chandransh |
602 |
boolean this_present_providerId = true;
|
|
|
603 |
boolean that_present_providerId = true;
|
|
|
604 |
if (this_present_providerId || that_present_providerId) {
|
|
|
605 |
if (!(this_present_providerId && that_present_providerId))
|
| 483 |
rajveer |
606 |
return false;
|
| 648 |
chandransh |
607 |
if (this.providerId != that.providerId)
|
| 483 |
rajveer |
608 |
return false;
|
|
|
609 |
}
|
|
|
610 |
|
| 648 |
chandransh |
611 |
boolean this_present_deliveryTime = true;
|
|
|
612 |
boolean that_present_deliveryTime = true;
|
|
|
613 |
if (this_present_deliveryTime || that_present_deliveryTime) {
|
|
|
614 |
if (!(this_present_deliveryTime && that_present_deliveryTime))
|
|
|
615 |
return false;
|
|
|
616 |
if (this.deliveryTime != that.deliveryTime)
|
|
|
617 |
return false;
|
|
|
618 |
}
|
|
|
619 |
|
| 510 |
rajveer |
620 |
boolean this_present_airway_billno = true && this.isSetAirway_billno();
|
|
|
621 |
boolean that_present_airway_billno = true && that.isSetAirway_billno();
|
| 483 |
rajveer |
622 |
if (this_present_airway_billno || that_present_airway_billno) {
|
|
|
623 |
if (!(this_present_airway_billno && that_present_airway_billno))
|
|
|
624 |
return false;
|
| 510 |
rajveer |
625 |
if (!this.airway_billno.equals(that.airway_billno))
|
| 483 |
rajveer |
626 |
return false;
|
|
|
627 |
}
|
|
|
628 |
|
| 4009 |
chandransh |
629 |
boolean this_present_shippingTime = true;
|
|
|
630 |
boolean that_present_shippingTime = true;
|
|
|
631 |
if (this_present_shippingTime || that_present_shippingTime) {
|
|
|
632 |
if (!(this_present_shippingTime && that_present_shippingTime))
|
|
|
633 |
return false;
|
|
|
634 |
if (this.shippingTime != that.shippingTime)
|
|
|
635 |
return false;
|
|
|
636 |
}
|
|
|
637 |
|
| 4865 |
rajveer |
638 |
boolean this_present_codAllowed = true;
|
|
|
639 |
boolean that_present_codAllowed = true;
|
|
|
640 |
if (this_present_codAllowed || that_present_codAllowed) {
|
|
|
641 |
if (!(this_present_codAllowed && that_present_codAllowed))
|
|
|
642 |
return false;
|
|
|
643 |
if (this.codAllowed != that.codAllowed)
|
|
|
644 |
return false;
|
|
|
645 |
}
|
|
|
646 |
|
| 5110 |
mandeep.dh |
647 |
boolean this_present_fulfilmentWarehouseId = true;
|
|
|
648 |
boolean that_present_fulfilmentWarehouseId = true;
|
|
|
649 |
if (this_present_fulfilmentWarehouseId || that_present_fulfilmentWarehouseId) {
|
|
|
650 |
if (!(this_present_fulfilmentWarehouseId && that_present_fulfilmentWarehouseId))
|
|
|
651 |
return false;
|
|
|
652 |
if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)
|
|
|
653 |
return false;
|
|
|
654 |
}
|
|
|
655 |
|
| 6524 |
rajveer |
656 |
boolean this_present_otgAvailable = true;
|
|
|
657 |
boolean that_present_otgAvailable = true;
|
|
|
658 |
if (this_present_otgAvailable || that_present_otgAvailable) {
|
|
|
659 |
if (!(this_present_otgAvailable && that_present_otgAvailable))
|
|
|
660 |
return false;
|
|
|
661 |
if (this.otgAvailable != that.otgAvailable)
|
|
|
662 |
return false;
|
|
|
663 |
}
|
|
|
664 |
|
| 6725 |
rajveer |
665 |
boolean this_present_deliveryDelay = true;
|
|
|
666 |
boolean that_present_deliveryDelay = true;
|
|
|
667 |
if (this_present_deliveryDelay || that_present_deliveryDelay) {
|
|
|
668 |
if (!(this_present_deliveryDelay && that_present_deliveryDelay))
|
|
|
669 |
return false;
|
|
|
670 |
if (this.deliveryDelay != that.deliveryDelay)
|
|
|
671 |
return false;
|
|
|
672 |
}
|
|
|
673 |
|
| 483 |
rajveer |
674 |
return true;
|
|
|
675 |
}
|
|
|
676 |
|
|
|
677 |
@Override
|
|
|
678 |
public int hashCode() {
|
|
|
679 |
return 0;
|
|
|
680 |
}
|
|
|
681 |
|
|
|
682 |
public int compareTo(LogisticsInfo other) {
|
|
|
683 |
if (!getClass().equals(other.getClass())) {
|
|
|
684 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
685 |
}
|
|
|
686 |
|
|
|
687 |
int lastComparison = 0;
|
|
|
688 |
LogisticsInfo typedOther = (LogisticsInfo)other;
|
|
|
689 |
|
| 3430 |
rajveer |
690 |
lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
|
| 483 |
rajveer |
691 |
if (lastComparison != 0) {
|
|
|
692 |
return lastComparison;
|
|
|
693 |
}
|
| 3430 |
rajveer |
694 |
if (isSetWarehouseId()) {
|
|
|
695 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
|
|
|
696 |
if (lastComparison != 0) {
|
|
|
697 |
return lastComparison;
|
|
|
698 |
}
|
| 483 |
rajveer |
699 |
}
|
| 3430 |
rajveer |
700 |
lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
|
| 483 |
rajveer |
701 |
if (lastComparison != 0) {
|
|
|
702 |
return lastComparison;
|
|
|
703 |
}
|
| 3430 |
rajveer |
704 |
if (isSetProviderId()) {
|
|
|
705 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
|
|
|
706 |
if (lastComparison != 0) {
|
|
|
707 |
return lastComparison;
|
|
|
708 |
}
|
| 483 |
rajveer |
709 |
}
|
| 3430 |
rajveer |
710 |
lastComparison = Boolean.valueOf(isSetDeliveryTime()).compareTo(typedOther.isSetDeliveryTime());
|
| 483 |
rajveer |
711 |
if (lastComparison != 0) {
|
|
|
712 |
return lastComparison;
|
|
|
713 |
}
|
| 3430 |
rajveer |
714 |
if (isSetDeliveryTime()) {
|
|
|
715 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deliveryTime, typedOther.deliveryTime);
|
|
|
716 |
if (lastComparison != 0) {
|
|
|
717 |
return lastComparison;
|
|
|
718 |
}
|
| 483 |
rajveer |
719 |
}
|
| 3430 |
rajveer |
720 |
lastComparison = Boolean.valueOf(isSetAirway_billno()).compareTo(typedOther.isSetAirway_billno());
|
| 483 |
rajveer |
721 |
if (lastComparison != 0) {
|
|
|
722 |
return lastComparison;
|
|
|
723 |
}
|
| 3430 |
rajveer |
724 |
if (isSetAirway_billno()) {
|
|
|
725 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.airway_billno, typedOther.airway_billno);
|
|
|
726 |
if (lastComparison != 0) {
|
|
|
727 |
return lastComparison;
|
|
|
728 |
}
|
| 483 |
rajveer |
729 |
}
|
| 4009 |
chandransh |
730 |
lastComparison = Boolean.valueOf(isSetShippingTime()).compareTo(typedOther.isSetShippingTime());
|
|
|
731 |
if (lastComparison != 0) {
|
|
|
732 |
return lastComparison;
|
|
|
733 |
}
|
|
|
734 |
if (isSetShippingTime()) {
|
|
|
735 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shippingTime, typedOther.shippingTime);
|
|
|
736 |
if (lastComparison != 0) {
|
|
|
737 |
return lastComparison;
|
|
|
738 |
}
|
|
|
739 |
}
|
| 4865 |
rajveer |
740 |
lastComparison = Boolean.valueOf(isSetCodAllowed()).compareTo(typedOther.isSetCodAllowed());
|
|
|
741 |
if (lastComparison != 0) {
|
|
|
742 |
return lastComparison;
|
|
|
743 |
}
|
|
|
744 |
if (isSetCodAllowed()) {
|
|
|
745 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.codAllowed, typedOther.codAllowed);
|
|
|
746 |
if (lastComparison != 0) {
|
|
|
747 |
return lastComparison;
|
|
|
748 |
}
|
|
|
749 |
}
|
| 5110 |
mandeep.dh |
750 |
lastComparison = Boolean.valueOf(isSetFulfilmentWarehouseId()).compareTo(typedOther.isSetFulfilmentWarehouseId());
|
|
|
751 |
if (lastComparison != 0) {
|
|
|
752 |
return lastComparison;
|
|
|
753 |
}
|
|
|
754 |
if (isSetFulfilmentWarehouseId()) {
|
|
|
755 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);
|
|
|
756 |
if (lastComparison != 0) {
|
|
|
757 |
return lastComparison;
|
|
|
758 |
}
|
|
|
759 |
}
|
| 6524 |
rajveer |
760 |
lastComparison = Boolean.valueOf(isSetOtgAvailable()).compareTo(typedOther.isSetOtgAvailable());
|
|
|
761 |
if (lastComparison != 0) {
|
|
|
762 |
return lastComparison;
|
|
|
763 |
}
|
|
|
764 |
if (isSetOtgAvailable()) {
|
|
|
765 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otgAvailable, typedOther.otgAvailable);
|
|
|
766 |
if (lastComparison != 0) {
|
|
|
767 |
return lastComparison;
|
|
|
768 |
}
|
|
|
769 |
}
|
| 6725 |
rajveer |
770 |
lastComparison = Boolean.valueOf(isSetDeliveryDelay()).compareTo(typedOther.isSetDeliveryDelay());
|
|
|
771 |
if (lastComparison != 0) {
|
|
|
772 |
return lastComparison;
|
|
|
773 |
}
|
|
|
774 |
if (isSetDeliveryDelay()) {
|
|
|
775 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deliveryDelay, typedOther.deliveryDelay);
|
|
|
776 |
if (lastComparison != 0) {
|
|
|
777 |
return lastComparison;
|
|
|
778 |
}
|
|
|
779 |
}
|
| 483 |
rajveer |
780 |
return 0;
|
|
|
781 |
}
|
|
|
782 |
|
| 3430 |
rajveer |
783 |
public _Fields fieldForId(int fieldId) {
|
|
|
784 |
return _Fields.findByThriftId(fieldId);
|
|
|
785 |
}
|
|
|
786 |
|
|
|
787 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
788 |
org.apache.thrift.protocol.TField field;
|
| 483 |
rajveer |
789 |
iprot.readStructBegin();
|
|
|
790 |
while (true)
|
|
|
791 |
{
|
|
|
792 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
793 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 483 |
rajveer |
794 |
break;
|
|
|
795 |
}
|
| 3430 |
rajveer |
796 |
switch (field.id) {
|
|
|
797 |
case 1: // WAREHOUSE_ID
|
|
|
798 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
799 |
this.warehouseId = iprot.readI64();
|
|
|
800 |
setWarehouseIdIsSet(true);
|
|
|
801 |
} else {
|
|
|
802 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
803 |
}
|
|
|
804 |
break;
|
|
|
805 |
case 2: // PROVIDER_ID
|
|
|
806 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
807 |
this.providerId = iprot.readI64();
|
|
|
808 |
setProviderIdIsSet(true);
|
|
|
809 |
} else {
|
|
|
810 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
811 |
}
|
|
|
812 |
break;
|
|
|
813 |
case 3: // DELIVERY_TIME
|
|
|
814 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
815 |
this.deliveryTime = iprot.readI64();
|
|
|
816 |
setDeliveryTimeIsSet(true);
|
|
|
817 |
} else {
|
|
|
818 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
819 |
}
|
|
|
820 |
break;
|
|
|
821 |
case 4: // AIRWAY_BILLNO
|
|
|
822 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
823 |
this.airway_billno = iprot.readString();
|
|
|
824 |
} else {
|
|
|
825 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
826 |
}
|
|
|
827 |
break;
|
| 4009 |
chandransh |
828 |
case 5: // SHIPPING_TIME
|
|
|
829 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
830 |
this.shippingTime = iprot.readI64();
|
|
|
831 |
setShippingTimeIsSet(true);
|
|
|
832 |
} else {
|
|
|
833 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
834 |
}
|
|
|
835 |
break;
|
| 4865 |
rajveer |
836 |
case 6: // COD_ALLOWED
|
|
|
837 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
838 |
this.codAllowed = iprot.readBool();
|
|
|
839 |
setCodAllowedIsSet(true);
|
|
|
840 |
} else {
|
|
|
841 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
842 |
}
|
|
|
843 |
break;
|
| 5110 |
mandeep.dh |
844 |
case 7: // FULFILMENT_WAREHOUSE_ID
|
|
|
845 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
846 |
this.fulfilmentWarehouseId = iprot.readI64();
|
|
|
847 |
setFulfilmentWarehouseIdIsSet(true);
|
|
|
848 |
} else {
|
|
|
849 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
850 |
}
|
|
|
851 |
break;
|
| 6524 |
rajveer |
852 |
case 8: // OTG_AVAILABLE
|
|
|
853 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
854 |
this.otgAvailable = iprot.readBool();
|
|
|
855 |
setOtgAvailableIsSet(true);
|
|
|
856 |
} else {
|
|
|
857 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
858 |
}
|
|
|
859 |
break;
|
| 6725 |
rajveer |
860 |
case 9: // DELIVERY_DELAY
|
|
|
861 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
862 |
this.deliveryDelay = iprot.readI64();
|
|
|
863 |
setDeliveryDelayIsSet(true);
|
|
|
864 |
} else {
|
|
|
865 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
866 |
}
|
|
|
867 |
break;
|
| 3430 |
rajveer |
868 |
default:
|
|
|
869 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 483 |
rajveer |
870 |
}
|
| 3430 |
rajveer |
871 |
iprot.readFieldEnd();
|
| 483 |
rajveer |
872 |
}
|
|
|
873 |
iprot.readStructEnd();
|
|
|
874 |
validate();
|
|
|
875 |
}
|
|
|
876 |
|
| 3430 |
rajveer |
877 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 483 |
rajveer |
878 |
validate();
|
|
|
879 |
|
|
|
880 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
881 |
oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
|
| 648 |
chandransh |
882 |
oprot.writeI64(this.warehouseId);
|
| 483 |
rajveer |
883 |
oprot.writeFieldEnd();
|
|
|
884 |
oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
|
| 648 |
chandransh |
885 |
oprot.writeI64(this.providerId);
|
| 483 |
rajveer |
886 |
oprot.writeFieldEnd();
|
| 648 |
chandransh |
887 |
oprot.writeFieldBegin(DELIVERY_TIME_FIELD_DESC);
|
|
|
888 |
oprot.writeI64(this.deliveryTime);
|
|
|
889 |
oprot.writeFieldEnd();
|
| 510 |
rajveer |
890 |
if (this.airway_billno != null) {
|
|
|
891 |
oprot.writeFieldBegin(AIRWAY_BILLNO_FIELD_DESC);
|
|
|
892 |
oprot.writeString(this.airway_billno);
|
|
|
893 |
oprot.writeFieldEnd();
|
|
|
894 |
}
|
| 4009 |
chandransh |
895 |
oprot.writeFieldBegin(SHIPPING_TIME_FIELD_DESC);
|
|
|
896 |
oprot.writeI64(this.shippingTime);
|
|
|
897 |
oprot.writeFieldEnd();
|
| 4865 |
rajveer |
898 |
oprot.writeFieldBegin(COD_ALLOWED_FIELD_DESC);
|
|
|
899 |
oprot.writeBool(this.codAllowed);
|
|
|
900 |
oprot.writeFieldEnd();
|
| 5110 |
mandeep.dh |
901 |
oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);
|
|
|
902 |
oprot.writeI64(this.fulfilmentWarehouseId);
|
|
|
903 |
oprot.writeFieldEnd();
|
| 6524 |
rajveer |
904 |
oprot.writeFieldBegin(OTG_AVAILABLE_FIELD_DESC);
|
|
|
905 |
oprot.writeBool(this.otgAvailable);
|
|
|
906 |
oprot.writeFieldEnd();
|
| 6725 |
rajveer |
907 |
oprot.writeFieldBegin(DELIVERY_DELAY_FIELD_DESC);
|
|
|
908 |
oprot.writeI64(this.deliveryDelay);
|
|
|
909 |
oprot.writeFieldEnd();
|
| 483 |
rajveer |
910 |
oprot.writeFieldStop();
|
|
|
911 |
oprot.writeStructEnd();
|
|
|
912 |
}
|
|
|
913 |
|
|
|
914 |
@Override
|
|
|
915 |
public String toString() {
|
|
|
916 |
StringBuilder sb = new StringBuilder("LogisticsInfo(");
|
|
|
917 |
boolean first = true;
|
|
|
918 |
|
| 648 |
chandransh |
919 |
sb.append("warehouseId:");
|
|
|
920 |
sb.append(this.warehouseId);
|
| 483 |
rajveer |
921 |
first = false;
|
|
|
922 |
if (!first) sb.append(", ");
|
| 648 |
chandransh |
923 |
sb.append("providerId:");
|
|
|
924 |
sb.append(this.providerId);
|
| 483 |
rajveer |
925 |
first = false;
|
|
|
926 |
if (!first) sb.append(", ");
|
| 648 |
chandransh |
927 |
sb.append("deliveryTime:");
|
|
|
928 |
sb.append(this.deliveryTime);
|
|
|
929 |
first = false;
|
|
|
930 |
if (!first) sb.append(", ");
|
| 483 |
rajveer |
931 |
sb.append("airway_billno:");
|
| 510 |
rajveer |
932 |
if (this.airway_billno == null) {
|
|
|
933 |
sb.append("null");
|
|
|
934 |
} else {
|
|
|
935 |
sb.append(this.airway_billno);
|
|
|
936 |
}
|
| 483 |
rajveer |
937 |
first = false;
|
| 4009 |
chandransh |
938 |
if (!first) sb.append(", ");
|
|
|
939 |
sb.append("shippingTime:");
|
|
|
940 |
sb.append(this.shippingTime);
|
|
|
941 |
first = false;
|
| 4865 |
rajveer |
942 |
if (!first) sb.append(", ");
|
|
|
943 |
sb.append("codAllowed:");
|
|
|
944 |
sb.append(this.codAllowed);
|
|
|
945 |
first = false;
|
| 5110 |
mandeep.dh |
946 |
if (!first) sb.append(", ");
|
|
|
947 |
sb.append("fulfilmentWarehouseId:");
|
|
|
948 |
sb.append(this.fulfilmentWarehouseId);
|
|
|
949 |
first = false;
|
| 6524 |
rajveer |
950 |
if (!first) sb.append(", ");
|
|
|
951 |
sb.append("otgAvailable:");
|
|
|
952 |
sb.append(this.otgAvailable);
|
|
|
953 |
first = false;
|
| 6725 |
rajveer |
954 |
if (!first) sb.append(", ");
|
|
|
955 |
sb.append("deliveryDelay:");
|
|
|
956 |
sb.append(this.deliveryDelay);
|
|
|
957 |
first = false;
|
| 483 |
rajveer |
958 |
sb.append(")");
|
|
|
959 |
return sb.toString();
|
|
|
960 |
}
|
|
|
961 |
|
| 3430 |
rajveer |
962 |
public void validate() throws org.apache.thrift.TException {
|
| 483 |
rajveer |
963 |
// check for required fields
|
|
|
964 |
}
|
|
|
965 |
|
| 3430 |
rajveer |
966 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
967 |
try {
|
|
|
968 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
969 |
} catch (org.apache.thrift.TException te) {
|
|
|
970 |
throw new java.io.IOException(te);
|
|
|
971 |
}
|
|
|
972 |
}
|
|
|
973 |
|
|
|
974 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
975 |
try {
|
|
|
976 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
977 |
__isset_bit_vector = new BitSet(1);
|
|
|
978 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
979 |
} catch (org.apache.thrift.TException te) {
|
|
|
980 |
throw new java.io.IOException(te);
|
|
|
981 |
}
|
|
|
982 |
}
|
|
|
983 |
|
| 483 |
rajveer |
984 |
}
|
|
|
985 |
|