| 412 |
ashish |
1 |
/**
|
| 3430 |
rajveer |
2 |
* Autogenerated by Thrift Compiler (0.7.0)
|
| 412 |
ashish |
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;
|
| 412 |
ashish |
19 |
import java.util.Arrays;
|
|
|
20 |
import org.slf4j.Logger;
|
|
|
21 |
import org.slf4j.LoggerFactory;
|
|
|
22 |
|
|
|
23 |
public class LogisticsService {
|
|
|
24 |
|
| 3374 |
rajveer |
25 |
public interface Iface extends in.shop2020.generic.GenericService.Iface {
|
| 412 |
ashish |
26 |
|
| 648 |
chandransh |
27 |
/**
|
| 668 |
chandransh |
28 |
* Returns a provider for a given provider ID. Throws an exception if none found.
|
|
|
29 |
*
|
|
|
30 |
* @param providerId
|
|
|
31 |
*/
|
| 3430 |
rajveer |
32 |
public Provider getProvider(long providerId) throws LogisticsServiceException, org.apache.thrift.TException;
|
| 668 |
chandransh |
33 |
|
|
|
34 |
/**
|
| 674 |
chandransh |
35 |
* Returns a list containing all the providers.
|
|
|
36 |
*/
|
| 3430 |
rajveer |
37 |
public List<Provider> getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException;
|
| 674 |
chandransh |
38 |
|
|
|
39 |
/**
|
| 648 |
chandransh |
40 |
* Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
|
|
|
41 |
* Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
|
|
|
42 |
* is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
|
|
|
43 |
*
|
|
|
44 |
* @param itemId
|
|
|
45 |
* @param destination_pin
|
| 4630 |
mandeep.dh |
46 |
* @param type
|
| 648 |
chandransh |
47 |
*/
|
| 4630 |
mandeep.dh |
48 |
public LogisticsInfo getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
|
| 483 |
rajveer |
49 |
|
| 7256 |
rajveer |
50 |
public LogisticsInfo getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
|
|
|
51 |
|
| 648 |
chandransh |
52 |
/**
|
|
|
53 |
* Same as above excpet that an airway bill number is also allocated and returned.
|
|
|
54 |
*
|
|
|
55 |
* @param destination_pincode
|
|
|
56 |
* @param item_id
|
| 3044 |
chandransh |
57 |
* @param type
|
| 5766 |
rajveer |
58 |
* @param pickUp
|
| 648 |
chandransh |
59 |
*/
|
| 5766 |
rajveer |
60 |
public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws LogisticsServiceException, org.apache.thrift.TException;
|
| 471 |
rajveer |
61 |
|
| 648 |
chandransh |
62 |
/**
|
|
|
63 |
* Returns an unused AWB number for the given provider.
|
|
|
64 |
*
|
|
|
65 |
* @param providerId
|
| 5247 |
rajveer |
66 |
* @param type
|
| 648 |
chandransh |
67 |
*/
|
| 5247 |
rajveer |
68 |
public String getEmptyAWB(long providerId, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
|
| 471 |
rajveer |
69 |
|
| 648 |
chandransh |
70 |
/**
|
|
|
71 |
* Returns the list of updates for the given AWB number and provider id. The list is empty if there are no updates yet.
|
|
|
72 |
*
|
| 6643 |
rajveer |
73 |
* @param awbNumber
|
| 648 |
chandransh |
74 |
* @param providerId
|
|
|
75 |
*/
|
| 6643 |
rajveer |
76 |
public List<AwbUpdate> getShipmentInfo(String awbNumber, long providerId) throws LogisticsServiceException, org.apache.thrift.TException;
|
| 477 |
rajveer |
77 |
|
| 730 |
chandransh |
78 |
/**
|
| 6643 |
rajveer |
79 |
* Store the update for the given AWB number and provider id.
|
|
|
80 |
*
|
|
|
81 |
* @param update
|
|
|
82 |
*/
|
|
|
83 |
public void storeShipmentInfo(AwbUpdate update) throws LogisticsServiceException, org.apache.thrift.TException;
|
|
|
84 |
|
|
|
85 |
/**
|
| 730 |
chandransh |
86 |
* Returns the short three letter code of a pincode for the given provider.
|
|
|
87 |
* Raises an exception if the pin code is not serviced by the given provider.
|
|
|
88 |
*
|
|
|
89 |
* @param providerId
|
|
|
90 |
* @param pinCode
|
|
|
91 |
*/
|
| 3430 |
rajveer |
92 |
public String getDestinationCode(long providerId, String pinCode) throws LogisticsServiceException, org.apache.thrift.TException;
|
| 730 |
chandransh |
93 |
|
| 1139 |
chandransh |
94 |
/**
|
| 3103 |
chandransh |
95 |
* Returns the number of unused AWB numbers for the given provider of the given type
|
| 1139 |
chandransh |
96 |
*
|
|
|
97 |
* @param providerId
|
| 3103 |
chandransh |
98 |
* @param type
|
| 1139 |
chandransh |
99 |
*/
|
| 3430 |
rajveer |
100 |
public long getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException;
|
| 1139 |
chandransh |
101 |
|
| 1730 |
ankur.sing |
102 |
/**
|
|
|
103 |
* Returns list of Holiday dates between fromDate and toDate (both inclusive)
|
|
|
104 |
* fromDate should be passed as milliseconds corresponding to the start of the day.
|
|
|
105 |
* If fromDate is passed as -1, fromDate is not considered for filtering
|
|
|
106 |
* If toDate is passed as -1, toDate is not considered for filtering
|
|
|
107 |
*
|
|
|
108 |
* @param fromDate
|
|
|
109 |
* @param toDate
|
|
|
110 |
*/
|
| 3430 |
rajveer |
111 |
public List<Long> getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException;
|
| 1730 |
ankur.sing |
112 |
|
| 4934 |
amit.gupta |
113 |
/**
|
|
|
114 |
* Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
|
|
|
115 |
* Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
|
|
|
116 |
* is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
|
|
|
117 |
*
|
|
|
118 |
* @param catalogItemId
|
|
|
119 |
* @param destination_pin
|
|
|
120 |
* @param type
|
|
|
121 |
*/
|
| 9840 |
amit.gupta |
122 |
public List<ItemText> getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
|
| 4934 |
amit.gupta |
123 |
|
| 5527 |
anupam.sin |
124 |
/**
|
|
|
125 |
* Returns the id for a given pickUpType
|
|
|
126 |
*
|
|
|
127 |
* @param pickUp
|
|
|
128 |
*/
|
|
|
129 |
public long getProviderForPickupType(long pickUp) throws org.apache.thrift.TException;
|
|
|
130 |
|
| 5553 |
rajveer |
131 |
public List<PickupStore> getAllPickupStores() throws org.apache.thrift.TException;
|
|
|
132 |
|
|
|
133 |
public PickupStore getPickupStore(long storeId) throws org.apache.thrift.TException;
|
|
|
134 |
|
| 5719 |
rajveer |
135 |
public PickupStore getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException;
|
|
|
136 |
|
| 6524 |
rajveer |
137 |
public void addPincode(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType, boolean otgAvailable) throws org.apache.thrift.TException;
|
| 6322 |
amar.kumar |
138 |
|
| 6524 |
rajveer |
139 |
public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException;
|
| 6322 |
amar.kumar |
140 |
|
| 7567 |
rajveer |
141 |
public boolean addNewAwbs(long providerId, boolean cod, List<String> awbs) throws org.apache.thrift.TException;
|
|
|
142 |
|
| 7788 |
manish.sha |
143 |
public void runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate) throws org.apache.thrift.TException;
|
| 7737 |
manish.sha |
144 |
|
| 7888 |
rajveer |
145 |
public long adjustDeliveryDays(long startDate, long days) throws org.apache.thrift.TException;
|
|
|
146 |
|
| 12895 |
manish.sha |
147 |
public long getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation) throws org.apache.thrift.TException;
|
|
|
148 |
|
| 412 |
ashish |
149 |
}
|
|
|
150 |
|
| 3430 |
rajveer |
151 |
public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
|
|
|
152 |
|
|
|
153 |
public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
154 |
|
|
|
155 |
public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllProviders_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
156 |
|
| 4630 |
mandeep.dh |
157 |
public void getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException;
|
| 3430 |
rajveer |
158 |
|
| 7256 |
rajveer |
159 |
public void getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsEstimationForStore_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
160 |
|
| 5766 |
rajveer |
161 |
public void getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsInfo_call> resultHandler) throws org.apache.thrift.TException;
|
| 3430 |
rajveer |
162 |
|
| 5247 |
rajveer |
163 |
public void getEmptyAWB(long providerId, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException;
|
| 3430 |
rajveer |
164 |
|
| 6643 |
rajveer |
165 |
public void getShipmentInfo(String awbNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
|
| 3430 |
rajveer |
166 |
|
| 6643 |
rajveer |
167 |
public void storeShipmentInfo(AwbUpdate update, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.storeShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
168 |
|
| 3430 |
rajveer |
169 |
public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getDestinationCode_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
170 |
|
|
|
171 |
public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
172 |
|
|
|
173 |
public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHolidays_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
174 |
|
| 4934 |
amit.gupta |
175 |
public void getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEntityLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
176 |
|
| 5527 |
anupam.sin |
177 |
public void getProviderForPickupType(long pickUp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProviderForPickupType_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
178 |
|
| 5553 |
rajveer |
179 |
public void getAllPickupStores(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllPickupStores_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
180 |
|
|
|
181 |
public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStore_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
182 |
|
| 5719 |
rajveer |
183 |
public void getPickupStoreByHotspotId(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStoreByHotspotId_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
184 |
|
| 6524 |
rajveer |
185 |
public void addPincode(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType, boolean otgAvailable, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addPincode_call> resultHandler) throws org.apache.thrift.TException;
|
| 6322 |
amar.kumar |
186 |
|
| 6524 |
rajveer |
187 |
public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePincode_call> resultHandler) throws org.apache.thrift.TException;
|
| 6322 |
amar.kumar |
188 |
|
| 7567 |
rajveer |
189 |
public void addNewAwbs(long providerId, boolean cod, List<String> awbs, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addNewAwbs_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
190 |
|
| 7788 |
manish.sha |
191 |
public void runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.runLogisticsLocationInfoUpdate_call> resultHandler) throws org.apache.thrift.TException;
|
| 7737 |
manish.sha |
192 |
|
| 7888 |
rajveer |
193 |
public void adjustDeliveryDays(long startDate, long days, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.adjustDeliveryDays_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
194 |
|
| 12895 |
manish.sha |
195 |
public void getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFirstDeliveryEstimateForWhLocation_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
196 |
|
| 3430 |
rajveer |
197 |
}
|
|
|
198 |
|
| 3374 |
rajveer |
199 |
public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
|
| 3430 |
rajveer |
200 |
public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
|
|
|
201 |
public Factory() {}
|
|
|
202 |
public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
|
|
|
203 |
return new Client(prot);
|
|
|
204 |
}
|
|
|
205 |
public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
|
|
|
206 |
return new Client(iprot, oprot);
|
|
|
207 |
}
|
|
|
208 |
}
|
|
|
209 |
|
|
|
210 |
public Client(org.apache.thrift.protocol.TProtocol prot)
|
| 412 |
ashish |
211 |
{
|
| 3430 |
rajveer |
212 |
super(prot, prot);
|
| 412 |
ashish |
213 |
}
|
|
|
214 |
|
| 3430 |
rajveer |
215 |
public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
|
| 3374 |
rajveer |
216 |
super(iprot, oprot);
|
| 412 |
ashish |
217 |
}
|
|
|
218 |
|
| 3430 |
rajveer |
219 |
public Provider getProvider(long providerId) throws LogisticsServiceException, org.apache.thrift.TException
|
| 668 |
chandransh |
220 |
{
|
|
|
221 |
send_getProvider(providerId);
|
|
|
222 |
return recv_getProvider();
|
|
|
223 |
}
|
|
|
224 |
|
| 3430 |
rajveer |
225 |
public void send_getProvider(long providerId) throws org.apache.thrift.TException
|
| 668 |
chandransh |
226 |
{
|
|
|
227 |
getProvider_args args = new getProvider_args();
|
| 3430 |
rajveer |
228 |
args.setProviderId(providerId);
|
|
|
229 |
sendBase("getProvider", args);
|
| 668 |
chandransh |
230 |
}
|
|
|
231 |
|
| 3430 |
rajveer |
232 |
public Provider recv_getProvider() throws LogisticsServiceException, org.apache.thrift.TException
|
| 668 |
chandransh |
233 |
{
|
|
|
234 |
getProvider_result result = new getProvider_result();
|
| 3430 |
rajveer |
235 |
receiveBase(result, "getProvider");
|
| 668 |
chandransh |
236 |
if (result.isSetSuccess()) {
|
|
|
237 |
return result.success;
|
|
|
238 |
}
|
|
|
239 |
if (result.lse != null) {
|
|
|
240 |
throw result.lse;
|
|
|
241 |
}
|
| 3430 |
rajveer |
242 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProvider failed: unknown result");
|
| 668 |
chandransh |
243 |
}
|
|
|
244 |
|
| 3430 |
rajveer |
245 |
public List<Provider> getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException
|
| 674 |
chandransh |
246 |
{
|
|
|
247 |
send_getAllProviders();
|
|
|
248 |
return recv_getAllProviders();
|
|
|
249 |
}
|
|
|
250 |
|
| 3430 |
rajveer |
251 |
public void send_getAllProviders() throws org.apache.thrift.TException
|
| 674 |
chandransh |
252 |
{
|
|
|
253 |
getAllProviders_args args = new getAllProviders_args();
|
| 3430 |
rajveer |
254 |
sendBase("getAllProviders", args);
|
| 674 |
chandransh |
255 |
}
|
|
|
256 |
|
| 3430 |
rajveer |
257 |
public List<Provider> recv_getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException
|
| 674 |
chandransh |
258 |
{
|
|
|
259 |
getAllProviders_result result = new getAllProviders_result();
|
| 3430 |
rajveer |
260 |
receiveBase(result, "getAllProviders");
|
| 674 |
chandransh |
261 |
if (result.isSetSuccess()) {
|
|
|
262 |
return result.success;
|
|
|
263 |
}
|
|
|
264 |
if (result.lse != null) {
|
|
|
265 |
throw result.lse;
|
|
|
266 |
}
|
| 3430 |
rajveer |
267 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllProviders failed: unknown result");
|
| 674 |
chandransh |
268 |
}
|
|
|
269 |
|
| 4630 |
mandeep.dh |
270 |
public LogisticsInfo getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
|
| 483 |
rajveer |
271 |
{
|
| 4630 |
mandeep.dh |
272 |
send_getLogisticsEstimation(itemId, destination_pin, type);
|
| 471 |
rajveer |
273 |
return recv_getLogisticsEstimation();
|
|
|
274 |
}
|
|
|
275 |
|
| 4630 |
mandeep.dh |
276 |
public void send_getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
|
| 471 |
rajveer |
277 |
{
|
|
|
278 |
getLogisticsEstimation_args args = new getLogisticsEstimation_args();
|
| 3430 |
rajveer |
279 |
args.setItemId(itemId);
|
|
|
280 |
args.setDestination_pin(destination_pin);
|
| 4630 |
mandeep.dh |
281 |
args.setType(type);
|
| 3430 |
rajveer |
282 |
sendBase("getLogisticsEstimation", args);
|
| 471 |
rajveer |
283 |
}
|
|
|
284 |
|
| 3430 |
rajveer |
285 |
public LogisticsInfo recv_getLogisticsEstimation() throws LogisticsServiceException, org.apache.thrift.TException
|
| 471 |
rajveer |
286 |
{
|
|
|
287 |
getLogisticsEstimation_result result = new getLogisticsEstimation_result();
|
| 3430 |
rajveer |
288 |
receiveBase(result, "getLogisticsEstimation");
|
| 471 |
rajveer |
289 |
if (result.isSetSuccess()) {
|
|
|
290 |
return result.success;
|
|
|
291 |
}
|
|
|
292 |
if (result.se != null) {
|
|
|
293 |
throw result.se;
|
|
|
294 |
}
|
| 3430 |
rajveer |
295 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsEstimation failed: unknown result");
|
| 471 |
rajveer |
296 |
}
|
|
|
297 |
|
| 7256 |
rajveer |
298 |
public LogisticsInfo getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
|
|
|
299 |
{
|
|
|
300 |
send_getLogisticsEstimationForStore(itemId, destination_pin, type);
|
|
|
301 |
return recv_getLogisticsEstimationForStore();
|
|
|
302 |
}
|
|
|
303 |
|
|
|
304 |
public void send_getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
|
|
|
305 |
{
|
|
|
306 |
getLogisticsEstimationForStore_args args = new getLogisticsEstimationForStore_args();
|
|
|
307 |
args.setItemId(itemId);
|
|
|
308 |
args.setDestination_pin(destination_pin);
|
|
|
309 |
args.setType(type);
|
|
|
310 |
sendBase("getLogisticsEstimationForStore", args);
|
|
|
311 |
}
|
|
|
312 |
|
|
|
313 |
public LogisticsInfo recv_getLogisticsEstimationForStore() throws LogisticsServiceException, org.apache.thrift.TException
|
|
|
314 |
{
|
|
|
315 |
getLogisticsEstimationForStore_result result = new getLogisticsEstimationForStore_result();
|
|
|
316 |
receiveBase(result, "getLogisticsEstimationForStore");
|
|
|
317 |
if (result.isSetSuccess()) {
|
|
|
318 |
return result.success;
|
|
|
319 |
}
|
|
|
320 |
if (result.se != null) {
|
|
|
321 |
throw result.se;
|
|
|
322 |
}
|
|
|
323 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsEstimationForStore failed: unknown result");
|
|
|
324 |
}
|
|
|
325 |
|
| 5766 |
rajveer |
326 |
public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws LogisticsServiceException, org.apache.thrift.TException
|
| 471 |
rajveer |
327 |
{
|
| 5766 |
rajveer |
328 |
send_getLogisticsInfo(destination_pincode, item_id, type, pickUp);
|
| 648 |
chandransh |
329 |
return recv_getLogisticsInfo();
|
| 471 |
rajveer |
330 |
}
|
|
|
331 |
|
| 5766 |
rajveer |
332 |
public void send_getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws org.apache.thrift.TException
|
| 471 |
rajveer |
333 |
{
|
| 648 |
chandransh |
334 |
getLogisticsInfo_args args = new getLogisticsInfo_args();
|
| 3430 |
rajveer |
335 |
args.setDestination_pincode(destination_pincode);
|
|
|
336 |
args.setItem_id(item_id);
|
|
|
337 |
args.setType(type);
|
| 5766 |
rajveer |
338 |
args.setPickUp(pickUp);
|
| 3430 |
rajveer |
339 |
sendBase("getLogisticsInfo", args);
|
| 471 |
rajveer |
340 |
}
|
|
|
341 |
|
| 3430 |
rajveer |
342 |
public LogisticsInfo recv_getLogisticsInfo() throws LogisticsServiceException, org.apache.thrift.TException
|
| 471 |
rajveer |
343 |
{
|
| 648 |
chandransh |
344 |
getLogisticsInfo_result result = new getLogisticsInfo_result();
|
| 3430 |
rajveer |
345 |
receiveBase(result, "getLogisticsInfo");
|
| 648 |
chandransh |
346 |
if (result.isSetSuccess()) {
|
|
|
347 |
return result.success;
|
| 477 |
rajveer |
348 |
}
|
| 648 |
chandransh |
349 |
if (result.se != null) {
|
|
|
350 |
throw result.se;
|
| 412 |
ashish |
351 |
}
|
| 3430 |
rajveer |
352 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsInfo failed: unknown result");
|
| 412 |
ashish |
353 |
}
|
|
|
354 |
|
| 5247 |
rajveer |
355 |
public String getEmptyAWB(long providerId, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
|
| 412 |
ashish |
356 |
{
|
| 5247 |
rajveer |
357 |
send_getEmptyAWB(providerId, type);
|
| 412 |
ashish |
358 |
return recv_getEmptyAWB();
|
|
|
359 |
}
|
|
|
360 |
|
| 5247 |
rajveer |
361 |
public void send_getEmptyAWB(long providerId, DeliveryType type) throws org.apache.thrift.TException
|
| 412 |
ashish |
362 |
{
|
|
|
363 |
getEmptyAWB_args args = new getEmptyAWB_args();
|
| 3430 |
rajveer |
364 |
args.setProviderId(providerId);
|
| 5247 |
rajveer |
365 |
args.setType(type);
|
| 3430 |
rajveer |
366 |
sendBase("getEmptyAWB", args);
|
| 412 |
ashish |
367 |
}
|
|
|
368 |
|
| 3430 |
rajveer |
369 |
public String recv_getEmptyAWB() throws LogisticsServiceException, org.apache.thrift.TException
|
| 412 |
ashish |
370 |
{
|
|
|
371 |
getEmptyAWB_result result = new getEmptyAWB_result();
|
| 3430 |
rajveer |
372 |
receiveBase(result, "getEmptyAWB");
|
| 412 |
ashish |
373 |
if (result.isSetSuccess()) {
|
|
|
374 |
return result.success;
|
|
|
375 |
}
|
| 648 |
chandransh |
376 |
if (result.se != null) {
|
|
|
377 |
throw result.se;
|
|
|
378 |
}
|
| 3430 |
rajveer |
379 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmptyAWB failed: unknown result");
|
| 412 |
ashish |
380 |
}
|
|
|
381 |
|
| 6643 |
rajveer |
382 |
public List<AwbUpdate> getShipmentInfo(String awbNumber, long providerId) throws LogisticsServiceException, org.apache.thrift.TException
|
| 412 |
ashish |
383 |
{
|
| 6643 |
rajveer |
384 |
send_getShipmentInfo(awbNumber, providerId);
|
| 412 |
ashish |
385 |
return recv_getShipmentInfo();
|
|
|
386 |
}
|
|
|
387 |
|
| 6643 |
rajveer |
388 |
public void send_getShipmentInfo(String awbNumber, long providerId) throws org.apache.thrift.TException
|
| 412 |
ashish |
389 |
{
|
|
|
390 |
getShipmentInfo_args args = new getShipmentInfo_args();
|
| 6643 |
rajveer |
391 |
args.setAwbNumber(awbNumber);
|
| 3430 |
rajveer |
392 |
args.setProviderId(providerId);
|
|
|
393 |
sendBase("getShipmentInfo", args);
|
| 412 |
ashish |
394 |
}
|
|
|
395 |
|
| 3430 |
rajveer |
396 |
public List<AwbUpdate> recv_getShipmentInfo() throws LogisticsServiceException, org.apache.thrift.TException
|
| 412 |
ashish |
397 |
{
|
|
|
398 |
getShipmentInfo_result result = new getShipmentInfo_result();
|
| 3430 |
rajveer |
399 |
receiveBase(result, "getShipmentInfo");
|
| 412 |
ashish |
400 |
if (result.isSetSuccess()) {
|
|
|
401 |
return result.success;
|
|
|
402 |
}
|
| 648 |
chandransh |
403 |
if (result.se != null) {
|
|
|
404 |
throw result.se;
|
|
|
405 |
}
|
| 3430 |
rajveer |
406 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getShipmentInfo failed: unknown result");
|
| 412 |
ashish |
407 |
}
|
|
|
408 |
|
| 6643 |
rajveer |
409 |
public void storeShipmentInfo(AwbUpdate update) throws LogisticsServiceException, org.apache.thrift.TException
|
|
|
410 |
{
|
|
|
411 |
send_storeShipmentInfo(update);
|
|
|
412 |
recv_storeShipmentInfo();
|
|
|
413 |
}
|
|
|
414 |
|
|
|
415 |
public void send_storeShipmentInfo(AwbUpdate update) throws org.apache.thrift.TException
|
|
|
416 |
{
|
|
|
417 |
storeShipmentInfo_args args = new storeShipmentInfo_args();
|
|
|
418 |
args.setUpdate(update);
|
|
|
419 |
sendBase("storeShipmentInfo", args);
|
|
|
420 |
}
|
|
|
421 |
|
|
|
422 |
public void recv_storeShipmentInfo() throws LogisticsServiceException, org.apache.thrift.TException
|
|
|
423 |
{
|
|
|
424 |
storeShipmentInfo_result result = new storeShipmentInfo_result();
|
|
|
425 |
receiveBase(result, "storeShipmentInfo");
|
|
|
426 |
if (result.se != null) {
|
|
|
427 |
throw result.se;
|
|
|
428 |
}
|
|
|
429 |
return;
|
|
|
430 |
}
|
|
|
431 |
|
| 3430 |
rajveer |
432 |
public String getDestinationCode(long providerId, String pinCode) throws LogisticsServiceException, org.apache.thrift.TException
|
| 730 |
chandransh |
433 |
{
|
|
|
434 |
send_getDestinationCode(providerId, pinCode);
|
|
|
435 |
return recv_getDestinationCode();
|
|
|
436 |
}
|
|
|
437 |
|
| 3430 |
rajveer |
438 |
public void send_getDestinationCode(long providerId, String pinCode) throws org.apache.thrift.TException
|
| 730 |
chandransh |
439 |
{
|
|
|
440 |
getDestinationCode_args args = new getDestinationCode_args();
|
| 3430 |
rajveer |
441 |
args.setProviderId(providerId);
|
|
|
442 |
args.setPinCode(pinCode);
|
|
|
443 |
sendBase("getDestinationCode", args);
|
| 730 |
chandransh |
444 |
}
|
|
|
445 |
|
| 3430 |
rajveer |
446 |
public String recv_getDestinationCode() throws LogisticsServiceException, org.apache.thrift.TException
|
| 730 |
chandransh |
447 |
{
|
|
|
448 |
getDestinationCode_result result = new getDestinationCode_result();
|
| 3430 |
rajveer |
449 |
receiveBase(result, "getDestinationCode");
|
| 730 |
chandransh |
450 |
if (result.isSetSuccess()) {
|
|
|
451 |
return result.success;
|
|
|
452 |
}
|
|
|
453 |
if (result.se != null) {
|
|
|
454 |
throw result.se;
|
|
|
455 |
}
|
| 3430 |
rajveer |
456 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getDestinationCode failed: unknown result");
|
| 730 |
chandransh |
457 |
}
|
|
|
458 |
|
| 3430 |
rajveer |
459 |
public long getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException
|
| 1139 |
chandransh |
460 |
{
|
| 3103 |
chandransh |
461 |
send_getFreeAwbCount(providerId, type);
|
| 1139 |
chandransh |
462 |
return recv_getFreeAwbCount();
|
|
|
463 |
}
|
|
|
464 |
|
| 3430 |
rajveer |
465 |
public void send_getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException
|
| 1139 |
chandransh |
466 |
{
|
|
|
467 |
getFreeAwbCount_args args = new getFreeAwbCount_args();
|
| 3430 |
rajveer |
468 |
args.setProviderId(providerId);
|
|
|
469 |
args.setType(type);
|
|
|
470 |
sendBase("getFreeAwbCount", args);
|
| 1139 |
chandransh |
471 |
}
|
|
|
472 |
|
| 3430 |
rajveer |
473 |
public long recv_getFreeAwbCount() throws org.apache.thrift.TException
|
| 1139 |
chandransh |
474 |
{
|
|
|
475 |
getFreeAwbCount_result result = new getFreeAwbCount_result();
|
| 3430 |
rajveer |
476 |
receiveBase(result, "getFreeAwbCount");
|
| 1139 |
chandransh |
477 |
if (result.isSetSuccess()) {
|
|
|
478 |
return result.success;
|
|
|
479 |
}
|
| 3430 |
rajveer |
480 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFreeAwbCount failed: unknown result");
|
| 1139 |
chandransh |
481 |
}
|
|
|
482 |
|
| 3430 |
rajveer |
483 |
public List<Long> getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException
|
| 1730 |
ankur.sing |
484 |
{
|
|
|
485 |
send_getHolidays(fromDate, toDate);
|
|
|
486 |
return recv_getHolidays();
|
|
|
487 |
}
|
|
|
488 |
|
| 3430 |
rajveer |
489 |
public void send_getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException
|
| 1730 |
ankur.sing |
490 |
{
|
|
|
491 |
getHolidays_args args = new getHolidays_args();
|
| 3430 |
rajveer |
492 |
args.setFromDate(fromDate);
|
|
|
493 |
args.setToDate(toDate);
|
|
|
494 |
sendBase("getHolidays", args);
|
| 1730 |
ankur.sing |
495 |
}
|
|
|
496 |
|
| 3430 |
rajveer |
497 |
public List<Long> recv_getHolidays() throws org.apache.thrift.TException
|
| 1730 |
ankur.sing |
498 |
{
|
|
|
499 |
getHolidays_result result = new getHolidays_result();
|
| 3430 |
rajveer |
500 |
receiveBase(result, "getHolidays");
|
| 1730 |
ankur.sing |
501 |
if (result.isSetSuccess()) {
|
|
|
502 |
return result.success;
|
|
|
503 |
}
|
| 3430 |
rajveer |
504 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHolidays failed: unknown result");
|
| 1730 |
ankur.sing |
505 |
}
|
|
|
506 |
|
| 9840 |
amit.gupta |
507 |
public List<ItemText> getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
|
| 4934 |
amit.gupta |
508 |
{
|
|
|
509 |
send_getEntityLogisticsEstimation(catalogItemId, destination_pin, type);
|
|
|
510 |
return recv_getEntityLogisticsEstimation();
|
|
|
511 |
}
|
|
|
512 |
|
|
|
513 |
public void send_getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
|
|
|
514 |
{
|
|
|
515 |
getEntityLogisticsEstimation_args args = new getEntityLogisticsEstimation_args();
|
|
|
516 |
args.setCatalogItemId(catalogItemId);
|
|
|
517 |
args.setDestination_pin(destination_pin);
|
|
|
518 |
args.setType(type);
|
|
|
519 |
sendBase("getEntityLogisticsEstimation", args);
|
|
|
520 |
}
|
|
|
521 |
|
| 9840 |
amit.gupta |
522 |
public List<ItemText> recv_getEntityLogisticsEstimation() throws LogisticsServiceException, org.apache.thrift.TException
|
| 4934 |
amit.gupta |
523 |
{
|
|
|
524 |
getEntityLogisticsEstimation_result result = new getEntityLogisticsEstimation_result();
|
|
|
525 |
receiveBase(result, "getEntityLogisticsEstimation");
|
|
|
526 |
if (result.isSetSuccess()) {
|
|
|
527 |
return result.success;
|
|
|
528 |
}
|
|
|
529 |
if (result.se != null) {
|
|
|
530 |
throw result.se;
|
|
|
531 |
}
|
|
|
532 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEntityLogisticsEstimation failed: unknown result");
|
|
|
533 |
}
|
|
|
534 |
|
| 5527 |
anupam.sin |
535 |
public long getProviderForPickupType(long pickUp) throws org.apache.thrift.TException
|
|
|
536 |
{
|
|
|
537 |
send_getProviderForPickupType(pickUp);
|
|
|
538 |
return recv_getProviderForPickupType();
|
|
|
539 |
}
|
|
|
540 |
|
|
|
541 |
public void send_getProviderForPickupType(long pickUp) throws org.apache.thrift.TException
|
|
|
542 |
{
|
|
|
543 |
getProviderForPickupType_args args = new getProviderForPickupType_args();
|
|
|
544 |
args.setPickUp(pickUp);
|
|
|
545 |
sendBase("getProviderForPickupType", args);
|
|
|
546 |
}
|
|
|
547 |
|
|
|
548 |
public long recv_getProviderForPickupType() throws org.apache.thrift.TException
|
|
|
549 |
{
|
|
|
550 |
getProviderForPickupType_result result = new getProviderForPickupType_result();
|
|
|
551 |
receiveBase(result, "getProviderForPickupType");
|
|
|
552 |
if (result.isSetSuccess()) {
|
|
|
553 |
return result.success;
|
|
|
554 |
}
|
|
|
555 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProviderForPickupType failed: unknown result");
|
|
|
556 |
}
|
|
|
557 |
|
| 5553 |
rajveer |
558 |
public List<PickupStore> getAllPickupStores() throws org.apache.thrift.TException
|
|
|
559 |
{
|
|
|
560 |
send_getAllPickupStores();
|
|
|
561 |
return recv_getAllPickupStores();
|
|
|
562 |
}
|
|
|
563 |
|
|
|
564 |
public void send_getAllPickupStores() throws org.apache.thrift.TException
|
|
|
565 |
{
|
|
|
566 |
getAllPickupStores_args args = new getAllPickupStores_args();
|
|
|
567 |
sendBase("getAllPickupStores", args);
|
|
|
568 |
}
|
|
|
569 |
|
|
|
570 |
public List<PickupStore> recv_getAllPickupStores() throws org.apache.thrift.TException
|
|
|
571 |
{
|
|
|
572 |
getAllPickupStores_result result = new getAllPickupStores_result();
|
|
|
573 |
receiveBase(result, "getAllPickupStores");
|
|
|
574 |
if (result.isSetSuccess()) {
|
|
|
575 |
return result.success;
|
|
|
576 |
}
|
|
|
577 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllPickupStores failed: unknown result");
|
|
|
578 |
}
|
|
|
579 |
|
|
|
580 |
public PickupStore getPickupStore(long storeId) throws org.apache.thrift.TException
|
|
|
581 |
{
|
|
|
582 |
send_getPickupStore(storeId);
|
|
|
583 |
return recv_getPickupStore();
|
|
|
584 |
}
|
|
|
585 |
|
|
|
586 |
public void send_getPickupStore(long storeId) throws org.apache.thrift.TException
|
|
|
587 |
{
|
|
|
588 |
getPickupStore_args args = new getPickupStore_args();
|
|
|
589 |
args.setStoreId(storeId);
|
|
|
590 |
sendBase("getPickupStore", args);
|
|
|
591 |
}
|
|
|
592 |
|
|
|
593 |
public PickupStore recv_getPickupStore() throws org.apache.thrift.TException
|
|
|
594 |
{
|
|
|
595 |
getPickupStore_result result = new getPickupStore_result();
|
|
|
596 |
receiveBase(result, "getPickupStore");
|
|
|
597 |
if (result.isSetSuccess()) {
|
|
|
598 |
return result.success;
|
|
|
599 |
}
|
|
|
600 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPickupStore failed: unknown result");
|
|
|
601 |
}
|
|
|
602 |
|
| 5719 |
rajveer |
603 |
public PickupStore getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException
|
|
|
604 |
{
|
|
|
605 |
send_getPickupStoreByHotspotId(hotspotId);
|
|
|
606 |
return recv_getPickupStoreByHotspotId();
|
|
|
607 |
}
|
|
|
608 |
|
|
|
609 |
public void send_getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException
|
|
|
610 |
{
|
|
|
611 |
getPickupStoreByHotspotId_args args = new getPickupStoreByHotspotId_args();
|
|
|
612 |
args.setHotspotId(hotspotId);
|
|
|
613 |
sendBase("getPickupStoreByHotspotId", args);
|
|
|
614 |
}
|
|
|
615 |
|
|
|
616 |
public PickupStore recv_getPickupStoreByHotspotId() throws org.apache.thrift.TException
|
|
|
617 |
{
|
|
|
618 |
getPickupStoreByHotspotId_result result = new getPickupStoreByHotspotId_result();
|
|
|
619 |
receiveBase(result, "getPickupStoreByHotspotId");
|
|
|
620 |
if (result.isSetSuccess()) {
|
|
|
621 |
return result.success;
|
|
|
622 |
}
|
|
|
623 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPickupStoreByHotspotId failed: unknown result");
|
|
|
624 |
}
|
|
|
625 |
|
| 6524 |
rajveer |
626 |
public void addPincode(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType, boolean otgAvailable) throws org.apache.thrift.TException
|
| 6322 |
amar.kumar |
627 |
{
|
| 6524 |
rajveer |
628 |
send_addPincode(providerId, pincode, destCode, exp, cod, stationType, otgAvailable);
|
| 6322 |
amar.kumar |
629 |
recv_addPincode();
|
|
|
630 |
}
|
|
|
631 |
|
| 6524 |
rajveer |
632 |
public void send_addPincode(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType, boolean otgAvailable) throws org.apache.thrift.TException
|
| 6322 |
amar.kumar |
633 |
{
|
|
|
634 |
addPincode_args args = new addPincode_args();
|
|
|
635 |
args.setProviderId(providerId);
|
|
|
636 |
args.setPincode(pincode);
|
|
|
637 |
args.setDestCode(destCode);
|
|
|
638 |
args.setExp(exp);
|
|
|
639 |
args.setCod(cod);
|
|
|
640 |
args.setStationType(stationType);
|
| 6524 |
rajveer |
641 |
args.setOtgAvailable(otgAvailable);
|
| 6322 |
amar.kumar |
642 |
sendBase("addPincode", args);
|
|
|
643 |
}
|
|
|
644 |
|
|
|
645 |
public void recv_addPincode() throws org.apache.thrift.TException
|
|
|
646 |
{
|
|
|
647 |
addPincode_result result = new addPincode_result();
|
|
|
648 |
receiveBase(result, "addPincode");
|
|
|
649 |
return;
|
|
|
650 |
}
|
|
|
651 |
|
| 6524 |
rajveer |
652 |
public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException
|
| 6322 |
amar.kumar |
653 |
{
|
| 6524 |
rajveer |
654 |
send_updatePincode(providerId, pincode, exp, cod, otgAvailable);
|
| 6322 |
amar.kumar |
655 |
recv_updatePincode();
|
|
|
656 |
}
|
|
|
657 |
|
| 6524 |
rajveer |
658 |
public void send_updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException
|
| 6322 |
amar.kumar |
659 |
{
|
|
|
660 |
updatePincode_args args = new updatePincode_args();
|
|
|
661 |
args.setProviderId(providerId);
|
|
|
662 |
args.setPincode(pincode);
|
|
|
663 |
args.setExp(exp);
|
|
|
664 |
args.setCod(cod);
|
| 6524 |
rajveer |
665 |
args.setOtgAvailable(otgAvailable);
|
| 6322 |
amar.kumar |
666 |
sendBase("updatePincode", args);
|
|
|
667 |
}
|
|
|
668 |
|
|
|
669 |
public void recv_updatePincode() throws org.apache.thrift.TException
|
|
|
670 |
{
|
|
|
671 |
updatePincode_result result = new updatePincode_result();
|
|
|
672 |
receiveBase(result, "updatePincode");
|
|
|
673 |
return;
|
|
|
674 |
}
|
|
|
675 |
|
| 7567 |
rajveer |
676 |
public boolean addNewAwbs(long providerId, boolean cod, List<String> awbs) throws org.apache.thrift.TException
|
|
|
677 |
{
|
|
|
678 |
send_addNewAwbs(providerId, cod, awbs);
|
|
|
679 |
return recv_addNewAwbs();
|
|
|
680 |
}
|
|
|
681 |
|
|
|
682 |
public void send_addNewAwbs(long providerId, boolean cod, List<String> awbs) throws org.apache.thrift.TException
|
|
|
683 |
{
|
|
|
684 |
addNewAwbs_args args = new addNewAwbs_args();
|
|
|
685 |
args.setProviderId(providerId);
|
|
|
686 |
args.setCod(cod);
|
|
|
687 |
args.setAwbs(awbs);
|
|
|
688 |
sendBase("addNewAwbs", args);
|
|
|
689 |
}
|
|
|
690 |
|
|
|
691 |
public boolean recv_addNewAwbs() throws org.apache.thrift.TException
|
|
|
692 |
{
|
|
|
693 |
addNewAwbs_result result = new addNewAwbs_result();
|
|
|
694 |
receiveBase(result, "addNewAwbs");
|
|
|
695 |
if (result.isSetSuccess()) {
|
|
|
696 |
return result.success;
|
|
|
697 |
}
|
|
|
698 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addNewAwbs failed: unknown result");
|
|
|
699 |
}
|
|
|
700 |
|
| 7788 |
manish.sha |
701 |
public void runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate) throws org.apache.thrift.TException
|
| 7737 |
manish.sha |
702 |
{
|
| 7788 |
manish.sha |
703 |
send_runLogisticsLocationInfoUpdate(logisticsLocationInfoList, runCompleteUpdate);
|
|
|
704 |
recv_runLogisticsLocationInfoUpdate();
|
| 7737 |
manish.sha |
705 |
}
|
|
|
706 |
|
| 7788 |
manish.sha |
707 |
public void send_runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate) throws org.apache.thrift.TException
|
| 7737 |
manish.sha |
708 |
{
|
| 7788 |
manish.sha |
709 |
runLogisticsLocationInfoUpdate_args args = new runLogisticsLocationInfoUpdate_args();
|
|
|
710 |
args.setLogisticsLocationInfoList(logisticsLocationInfoList);
|
|
|
711 |
args.setRunCompleteUpdate(runCompleteUpdate);
|
|
|
712 |
sendBase("runLogisticsLocationInfoUpdate", args);
|
| 7737 |
manish.sha |
713 |
}
|
|
|
714 |
|
| 7788 |
manish.sha |
715 |
public void recv_runLogisticsLocationInfoUpdate() throws org.apache.thrift.TException
|
| 7737 |
manish.sha |
716 |
{
|
| 7788 |
manish.sha |
717 |
runLogisticsLocationInfoUpdate_result result = new runLogisticsLocationInfoUpdate_result();
|
|
|
718 |
receiveBase(result, "runLogisticsLocationInfoUpdate");
|
| 7737 |
manish.sha |
719 |
return;
|
|
|
720 |
}
|
|
|
721 |
|
| 7888 |
rajveer |
722 |
public long adjustDeliveryDays(long startDate, long days) throws org.apache.thrift.TException
|
|
|
723 |
{
|
|
|
724 |
send_adjustDeliveryDays(startDate, days);
|
|
|
725 |
return recv_adjustDeliveryDays();
|
|
|
726 |
}
|
|
|
727 |
|
|
|
728 |
public void send_adjustDeliveryDays(long startDate, long days) throws org.apache.thrift.TException
|
|
|
729 |
{
|
|
|
730 |
adjustDeliveryDays_args args = new adjustDeliveryDays_args();
|
|
|
731 |
args.setStartDate(startDate);
|
|
|
732 |
args.setDays(days);
|
|
|
733 |
sendBase("adjustDeliveryDays", args);
|
|
|
734 |
}
|
|
|
735 |
|
|
|
736 |
public long recv_adjustDeliveryDays() throws org.apache.thrift.TException
|
|
|
737 |
{
|
|
|
738 |
adjustDeliveryDays_result result = new adjustDeliveryDays_result();
|
|
|
739 |
receiveBase(result, "adjustDeliveryDays");
|
|
|
740 |
if (result.isSetSuccess()) {
|
|
|
741 |
return result.success;
|
|
|
742 |
}
|
|
|
743 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "adjustDeliveryDays failed: unknown result");
|
|
|
744 |
}
|
|
|
745 |
|
| 12895 |
manish.sha |
746 |
public long getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation) throws org.apache.thrift.TException
|
|
|
747 |
{
|
|
|
748 |
send_getFirstDeliveryEstimateForWhLocation(pincode, whLocation);
|
|
|
749 |
return recv_getFirstDeliveryEstimateForWhLocation();
|
|
|
750 |
}
|
|
|
751 |
|
|
|
752 |
public void send_getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation) throws org.apache.thrift.TException
|
|
|
753 |
{
|
|
|
754 |
getFirstDeliveryEstimateForWhLocation_args args = new getFirstDeliveryEstimateForWhLocation_args();
|
|
|
755 |
args.setPincode(pincode);
|
|
|
756 |
args.setWhLocation(whLocation);
|
|
|
757 |
sendBase("getFirstDeliveryEstimateForWhLocation", args);
|
|
|
758 |
}
|
|
|
759 |
|
|
|
760 |
public long recv_getFirstDeliveryEstimateForWhLocation() throws org.apache.thrift.TException
|
|
|
761 |
{
|
|
|
762 |
getFirstDeliveryEstimateForWhLocation_result result = new getFirstDeliveryEstimateForWhLocation_result();
|
|
|
763 |
receiveBase(result, "getFirstDeliveryEstimateForWhLocation");
|
|
|
764 |
if (result.isSetSuccess()) {
|
|
|
765 |
return result.success;
|
|
|
766 |
}
|
|
|
767 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFirstDeliveryEstimateForWhLocation failed: unknown result");
|
|
|
768 |
}
|
|
|
769 |
|
| 412 |
ashish |
770 |
}
|
| 3430 |
rajveer |
771 |
public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
|
|
|
772 |
public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
|
|
|
773 |
private org.apache.thrift.async.TAsyncClientManager clientManager;
|
|
|
774 |
private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
|
|
|
775 |
public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
|
|
|
776 |
this.clientManager = clientManager;
|
|
|
777 |
this.protocolFactory = protocolFactory;
|
|
|
778 |
}
|
|
|
779 |
public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
|
|
|
780 |
return new AsyncClient(protocolFactory, clientManager, transport);
|
|
|
781 |
}
|
| 412 |
ashish |
782 |
}
|
|
|
783 |
|
| 3430 |
rajveer |
784 |
public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
|
|
|
785 |
super(protocolFactory, clientManager, transport);
|
|
|
786 |
}
|
| 412 |
ashish |
787 |
|
| 3430 |
rajveer |
788 |
public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<getProvider_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
789 |
checkReady();
|
|
|
790 |
getProvider_call method_call = new getProvider_call(providerId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
791 |
this.___currentMethod = method_call;
|
|
|
792 |
___manager.call(method_call);
|
|
|
793 |
}
|
|
|
794 |
|
|
|
795 |
public static class getProvider_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
796 |
private long providerId;
|
|
|
797 |
public getProvider_call(long providerId, org.apache.thrift.async.AsyncMethodCallback<getProvider_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
|
|
798 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
799 |
this.providerId = providerId;
|
| 412 |
ashish |
800 |
}
|
| 3430 |
rajveer |
801 |
|
|
|
802 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
803 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProvider", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
804 |
getProvider_args args = new getProvider_args();
|
|
|
805 |
args.setProviderId(providerId);
|
|
|
806 |
args.write(prot);
|
|
|
807 |
prot.writeMessageEnd();
|
|
|
808 |
}
|
|
|
809 |
|
|
|
810 |
public Provider getResult() throws LogisticsServiceException, org.apache.thrift.TException {
|
|
|
811 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
812 |
throw new IllegalStateException("Method call not finished!");
|
|
|
813 |
}
|
|
|
814 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
815 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
816 |
return (new Client(prot)).recv_getProvider();
|
|
|
817 |
}
|
| 412 |
ashish |
818 |
}
|
|
|
819 |
|
| 3430 |
rajveer |
820 |
public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<getAllProviders_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
821 |
checkReady();
|
|
|
822 |
getAllProviders_call method_call = new getAllProviders_call(resultHandler, this, ___protocolFactory, ___transport);
|
|
|
823 |
this.___currentMethod = method_call;
|
|
|
824 |
___manager.call(method_call);
|
|
|
825 |
}
|
|
|
826 |
|
|
|
827 |
public static class getAllProviders_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
828 |
public getAllProviders_call(org.apache.thrift.async.AsyncMethodCallback<getAllProviders_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
|
|
829 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
830 |
}
|
|
|
831 |
|
|
|
832 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
833 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllProviders", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
834 |
getAllProviders_args args = new getAllProviders_args();
|
|
|
835 |
args.write(prot);
|
|
|
836 |
prot.writeMessageEnd();
|
|
|
837 |
}
|
|
|
838 |
|
|
|
839 |
public List<Provider> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
|
|
|
840 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
841 |
throw new IllegalStateException("Method call not finished!");
|
|
|
842 |
}
|
|
|
843 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
844 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
845 |
return (new Client(prot)).recv_getAllProviders();
|
|
|
846 |
}
|
|
|
847 |
}
|
|
|
848 |
|
| 4630 |
mandeep.dh |
849 |
public void getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException {
|
| 3430 |
rajveer |
850 |
checkReady();
|
| 4630 |
mandeep.dh |
851 |
getLogisticsEstimation_call method_call = new getLogisticsEstimation_call(itemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
|
| 3430 |
rajveer |
852 |
this.___currentMethod = method_call;
|
|
|
853 |
___manager.call(method_call);
|
|
|
854 |
}
|
|
|
855 |
|
|
|
856 |
public static class getLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
857 |
private long itemId;
|
|
|
858 |
private String destination_pin;
|
| 4630 |
mandeep.dh |
859 |
private DeliveryType type;
|
|
|
860 |
public getLogisticsEstimation_call(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getLogisticsEstimation_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
| 3430 |
rajveer |
861 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
862 |
this.itemId = itemId;
|
|
|
863 |
this.destination_pin = destination_pin;
|
| 4630 |
mandeep.dh |
864 |
this.type = type;
|
| 3430 |
rajveer |
865 |
}
|
|
|
866 |
|
|
|
867 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
868 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
869 |
getLogisticsEstimation_args args = new getLogisticsEstimation_args();
|
|
|
870 |
args.setItemId(itemId);
|
|
|
871 |
args.setDestination_pin(destination_pin);
|
| 4630 |
mandeep.dh |
872 |
args.setType(type);
|
| 3430 |
rajveer |
873 |
args.write(prot);
|
|
|
874 |
prot.writeMessageEnd();
|
|
|
875 |
}
|
|
|
876 |
|
|
|
877 |
public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
|
|
|
878 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
879 |
throw new IllegalStateException("Method call not finished!");
|
|
|
880 |
}
|
|
|
881 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
882 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
883 |
return (new Client(prot)).recv_getLogisticsEstimation();
|
|
|
884 |
}
|
|
|
885 |
}
|
|
|
886 |
|
| 7256 |
rajveer |
887 |
public void getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getLogisticsEstimationForStore_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
888 |
checkReady();
|
|
|
889 |
getLogisticsEstimationForStore_call method_call = new getLogisticsEstimationForStore_call(itemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
890 |
this.___currentMethod = method_call;
|
|
|
891 |
___manager.call(method_call);
|
|
|
892 |
}
|
|
|
893 |
|
|
|
894 |
public static class getLogisticsEstimationForStore_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
895 |
private long itemId;
|
|
|
896 |
private String destination_pin;
|
|
|
897 |
private DeliveryType type;
|
|
|
898 |
public getLogisticsEstimationForStore_call(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getLogisticsEstimationForStore_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
|
|
899 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
900 |
this.itemId = itemId;
|
|
|
901 |
this.destination_pin = destination_pin;
|
|
|
902 |
this.type = type;
|
|
|
903 |
}
|
|
|
904 |
|
|
|
905 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
906 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsEstimationForStore", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
907 |
getLogisticsEstimationForStore_args args = new getLogisticsEstimationForStore_args();
|
|
|
908 |
args.setItemId(itemId);
|
|
|
909 |
args.setDestination_pin(destination_pin);
|
|
|
910 |
args.setType(type);
|
|
|
911 |
args.write(prot);
|
|
|
912 |
prot.writeMessageEnd();
|
|
|
913 |
}
|
|
|
914 |
|
|
|
915 |
public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
|
|
|
916 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
917 |
throw new IllegalStateException("Method call not finished!");
|
|
|
918 |
}
|
|
|
919 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
920 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
921 |
return (new Client(prot)).recv_getLogisticsEstimationForStore();
|
|
|
922 |
}
|
|
|
923 |
}
|
|
|
924 |
|
| 5766 |
rajveer |
925 |
public void getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp, org.apache.thrift.async.AsyncMethodCallback<getLogisticsInfo_call> resultHandler) throws org.apache.thrift.TException {
|
| 3430 |
rajveer |
926 |
checkReady();
|
| 5766 |
rajveer |
927 |
getLogisticsInfo_call method_call = new getLogisticsInfo_call(destination_pincode, item_id, type, pickUp, resultHandler, this, ___protocolFactory, ___transport);
|
| 3430 |
rajveer |
928 |
this.___currentMethod = method_call;
|
|
|
929 |
___manager.call(method_call);
|
|
|
930 |
}
|
|
|
931 |
|
|
|
932 |
public static class getLogisticsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
933 |
private String destination_pincode;
|
|
|
934 |
private long item_id;
|
|
|
935 |
private DeliveryType type;
|
| 5766 |
rajveer |
936 |
private PickUpType pickUp;
|
|
|
937 |
public getLogisticsInfo_call(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp, org.apache.thrift.async.AsyncMethodCallback<getLogisticsInfo_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
| 3430 |
rajveer |
938 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
939 |
this.destination_pincode = destination_pincode;
|
|
|
940 |
this.item_id = item_id;
|
|
|
941 |
this.type = type;
|
| 5766 |
rajveer |
942 |
this.pickUp = pickUp;
|
| 3430 |
rajveer |
943 |
}
|
|
|
944 |
|
|
|
945 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
946 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
947 |
getLogisticsInfo_args args = new getLogisticsInfo_args();
|
|
|
948 |
args.setDestination_pincode(destination_pincode);
|
|
|
949 |
args.setItem_id(item_id);
|
|
|
950 |
args.setType(type);
|
| 5766 |
rajveer |
951 |
args.setPickUp(pickUp);
|
| 3430 |
rajveer |
952 |
args.write(prot);
|
|
|
953 |
prot.writeMessageEnd();
|
|
|
954 |
}
|
|
|
955 |
|
|
|
956 |
public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
|
|
|
957 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
958 |
throw new IllegalStateException("Method call not finished!");
|
|
|
959 |
}
|
|
|
960 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
961 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
962 |
return (new Client(prot)).recv_getLogisticsInfo();
|
|
|
963 |
}
|
|
|
964 |
}
|
|
|
965 |
|
| 5247 |
rajveer |
966 |
public void getEmptyAWB(long providerId, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException {
|
| 3430 |
rajveer |
967 |
checkReady();
|
| 5247 |
rajveer |
968 |
getEmptyAWB_call method_call = new getEmptyAWB_call(providerId, type, resultHandler, this, ___protocolFactory, ___transport);
|
| 3430 |
rajveer |
969 |
this.___currentMethod = method_call;
|
|
|
970 |
___manager.call(method_call);
|
|
|
971 |
}
|
|
|
972 |
|
|
|
973 |
public static class getEmptyAWB_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
974 |
private long providerId;
|
| 5247 |
rajveer |
975 |
private DeliveryType type;
|
|
|
976 |
public getEmptyAWB_call(long providerId, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getEmptyAWB_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
| 3430 |
rajveer |
977 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
978 |
this.providerId = providerId;
|
| 5247 |
rajveer |
979 |
this.type = type;
|
| 3430 |
rajveer |
980 |
}
|
|
|
981 |
|
|
|
982 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
983 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmptyAWB", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
984 |
getEmptyAWB_args args = new getEmptyAWB_args();
|
|
|
985 |
args.setProviderId(providerId);
|
| 5247 |
rajveer |
986 |
args.setType(type);
|
| 3430 |
rajveer |
987 |
args.write(prot);
|
|
|
988 |
prot.writeMessageEnd();
|
|
|
989 |
}
|
|
|
990 |
|
|
|
991 |
public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
|
|
|
992 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
993 |
throw new IllegalStateException("Method call not finished!");
|
|
|
994 |
}
|
|
|
995 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
996 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
997 |
return (new Client(prot)).recv_getEmptyAWB();
|
|
|
998 |
}
|
|
|
999 |
}
|
|
|
1000 |
|
| 6643 |
rajveer |
1001 |
public void getShipmentInfo(String awbNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException {
|
| 3430 |
rajveer |
1002 |
checkReady();
|
| 6643 |
rajveer |
1003 |
getShipmentInfo_call method_call = new getShipmentInfo_call(awbNumber, providerId, resultHandler, this, ___protocolFactory, ___transport);
|
| 3430 |
rajveer |
1004 |
this.___currentMethod = method_call;
|
|
|
1005 |
___manager.call(method_call);
|
|
|
1006 |
}
|
|
|
1007 |
|
|
|
1008 |
public static class getShipmentInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| 6643 |
rajveer |
1009 |
private String awbNumber;
|
| 3430 |
rajveer |
1010 |
private long providerId;
|
| 6643 |
rajveer |
1011 |
public getShipmentInfo_call(String awbNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<getShipmentInfo_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
| 3430 |
rajveer |
1012 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 6643 |
rajveer |
1013 |
this.awbNumber = awbNumber;
|
| 3430 |
rajveer |
1014 |
this.providerId = providerId;
|
|
|
1015 |
}
|
|
|
1016 |
|
|
|
1017 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1018 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getShipmentInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1019 |
getShipmentInfo_args args = new getShipmentInfo_args();
|
| 6643 |
rajveer |
1020 |
args.setAwbNumber(awbNumber);
|
| 3430 |
rajveer |
1021 |
args.setProviderId(providerId);
|
|
|
1022 |
args.write(prot);
|
|
|
1023 |
prot.writeMessageEnd();
|
|
|
1024 |
}
|
|
|
1025 |
|
|
|
1026 |
public List<AwbUpdate> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
|
|
|
1027 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1028 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1029 |
}
|
|
|
1030 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1031 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1032 |
return (new Client(prot)).recv_getShipmentInfo();
|
|
|
1033 |
}
|
|
|
1034 |
}
|
|
|
1035 |
|
| 6643 |
rajveer |
1036 |
public void storeShipmentInfo(AwbUpdate update, org.apache.thrift.async.AsyncMethodCallback<storeShipmentInfo_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1037 |
checkReady();
|
|
|
1038 |
storeShipmentInfo_call method_call = new storeShipmentInfo_call(update, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1039 |
this.___currentMethod = method_call;
|
|
|
1040 |
___manager.call(method_call);
|
|
|
1041 |
}
|
|
|
1042 |
|
|
|
1043 |
public static class storeShipmentInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1044 |
private AwbUpdate update;
|
|
|
1045 |
public storeShipmentInfo_call(AwbUpdate update, org.apache.thrift.async.AsyncMethodCallback<storeShipmentInfo_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
|
|
1046 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1047 |
this.update = update;
|
|
|
1048 |
}
|
|
|
1049 |
|
|
|
1050 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1051 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("storeShipmentInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1052 |
storeShipmentInfo_args args = new storeShipmentInfo_args();
|
|
|
1053 |
args.setUpdate(update);
|
|
|
1054 |
args.write(prot);
|
|
|
1055 |
prot.writeMessageEnd();
|
|
|
1056 |
}
|
|
|
1057 |
|
|
|
1058 |
public void getResult() throws LogisticsServiceException, org.apache.thrift.TException {
|
|
|
1059 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1060 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1061 |
}
|
|
|
1062 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1063 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1064 |
(new Client(prot)).recv_storeShipmentInfo();
|
|
|
1065 |
}
|
|
|
1066 |
}
|
|
|
1067 |
|
| 3430 |
rajveer |
1068 |
public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<getDestinationCode_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1069 |
checkReady();
|
|
|
1070 |
getDestinationCode_call method_call = new getDestinationCode_call(providerId, pinCode, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1071 |
this.___currentMethod = method_call;
|
|
|
1072 |
___manager.call(method_call);
|
|
|
1073 |
}
|
|
|
1074 |
|
|
|
1075 |
public static class getDestinationCode_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1076 |
private long providerId;
|
|
|
1077 |
private String pinCode;
|
|
|
1078 |
public getDestinationCode_call(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<getDestinationCode_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
|
|
1079 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1080 |
this.providerId = providerId;
|
|
|
1081 |
this.pinCode = pinCode;
|
|
|
1082 |
}
|
|
|
1083 |
|
|
|
1084 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1085 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getDestinationCode", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1086 |
getDestinationCode_args args = new getDestinationCode_args();
|
|
|
1087 |
args.setProviderId(providerId);
|
|
|
1088 |
args.setPinCode(pinCode);
|
|
|
1089 |
args.write(prot);
|
|
|
1090 |
prot.writeMessageEnd();
|
|
|
1091 |
}
|
|
|
1092 |
|
|
|
1093 |
public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
|
|
|
1094 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1095 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1096 |
}
|
|
|
1097 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1098 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1099 |
return (new Client(prot)).recv_getDestinationCode();
|
|
|
1100 |
}
|
|
|
1101 |
}
|
|
|
1102 |
|
|
|
1103 |
public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1104 |
checkReady();
|
|
|
1105 |
getFreeAwbCount_call method_call = new getFreeAwbCount_call(providerId, type, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1106 |
this.___currentMethod = method_call;
|
|
|
1107 |
___manager.call(method_call);
|
|
|
1108 |
}
|
|
|
1109 |
|
|
|
1110 |
public static class getFreeAwbCount_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1111 |
private long providerId;
|
|
|
1112 |
private String type;
|
|
|
1113 |
public getFreeAwbCount_call(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<getFreeAwbCount_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
|
|
1114 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1115 |
this.providerId = providerId;
|
|
|
1116 |
this.type = type;
|
|
|
1117 |
}
|
|
|
1118 |
|
|
|
1119 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1120 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFreeAwbCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1121 |
getFreeAwbCount_args args = new getFreeAwbCount_args();
|
|
|
1122 |
args.setProviderId(providerId);
|
|
|
1123 |
args.setType(type);
|
|
|
1124 |
args.write(prot);
|
|
|
1125 |
prot.writeMessageEnd();
|
|
|
1126 |
}
|
|
|
1127 |
|
|
|
1128 |
public long getResult() throws org.apache.thrift.TException {
|
|
|
1129 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1130 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1131 |
}
|
|
|
1132 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1133 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1134 |
return (new Client(prot)).recv_getFreeAwbCount();
|
|
|
1135 |
}
|
|
|
1136 |
}
|
|
|
1137 |
|
|
|
1138 |
public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getHolidays_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1139 |
checkReady();
|
|
|
1140 |
getHolidays_call method_call = new getHolidays_call(fromDate, toDate, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1141 |
this.___currentMethod = method_call;
|
|
|
1142 |
___manager.call(method_call);
|
|
|
1143 |
}
|
|
|
1144 |
|
|
|
1145 |
public static class getHolidays_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1146 |
private long fromDate;
|
|
|
1147 |
private long toDate;
|
|
|
1148 |
public getHolidays_call(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getHolidays_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
|
|
1149 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1150 |
this.fromDate = fromDate;
|
|
|
1151 |
this.toDate = toDate;
|
|
|
1152 |
}
|
|
|
1153 |
|
|
|
1154 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1155 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHolidays", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1156 |
getHolidays_args args = new getHolidays_args();
|
|
|
1157 |
args.setFromDate(fromDate);
|
|
|
1158 |
args.setToDate(toDate);
|
|
|
1159 |
args.write(prot);
|
|
|
1160 |
prot.writeMessageEnd();
|
|
|
1161 |
}
|
|
|
1162 |
|
|
|
1163 |
public List<Long> getResult() throws org.apache.thrift.TException {
|
|
|
1164 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1165 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1166 |
}
|
|
|
1167 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1168 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1169 |
return (new Client(prot)).recv_getHolidays();
|
|
|
1170 |
}
|
|
|
1171 |
}
|
|
|
1172 |
|
| 4934 |
amit.gupta |
1173 |
public void getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getEntityLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1174 |
checkReady();
|
|
|
1175 |
getEntityLogisticsEstimation_call method_call = new getEntityLogisticsEstimation_call(catalogItemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1176 |
this.___currentMethod = method_call;
|
|
|
1177 |
___manager.call(method_call);
|
|
|
1178 |
}
|
|
|
1179 |
|
|
|
1180 |
public static class getEntityLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1181 |
private long catalogItemId;
|
|
|
1182 |
private String destination_pin;
|
|
|
1183 |
private DeliveryType type;
|
|
|
1184 |
public getEntityLogisticsEstimation_call(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getEntityLogisticsEstimation_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
|
|
1185 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1186 |
this.catalogItemId = catalogItemId;
|
|
|
1187 |
this.destination_pin = destination_pin;
|
|
|
1188 |
this.type = type;
|
|
|
1189 |
}
|
|
|
1190 |
|
|
|
1191 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1192 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEntityLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1193 |
getEntityLogisticsEstimation_args args = new getEntityLogisticsEstimation_args();
|
|
|
1194 |
args.setCatalogItemId(catalogItemId);
|
|
|
1195 |
args.setDestination_pin(destination_pin);
|
|
|
1196 |
args.setType(type);
|
|
|
1197 |
args.write(prot);
|
|
|
1198 |
prot.writeMessageEnd();
|
|
|
1199 |
}
|
|
|
1200 |
|
| 9840 |
amit.gupta |
1201 |
public List<ItemText> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
|
| 4934 |
amit.gupta |
1202 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1203 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1204 |
}
|
|
|
1205 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1206 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1207 |
return (new Client(prot)).recv_getEntityLogisticsEstimation();
|
|
|
1208 |
}
|
|
|
1209 |
}
|
|
|
1210 |
|
| 5527 |
anupam.sin |
1211 |
public void getProviderForPickupType(long pickUp, org.apache.thrift.async.AsyncMethodCallback<getProviderForPickupType_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1212 |
checkReady();
|
|
|
1213 |
getProviderForPickupType_call method_call = new getProviderForPickupType_call(pickUp, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1214 |
this.___currentMethod = method_call;
|
|
|
1215 |
___manager.call(method_call);
|
|
|
1216 |
}
|
|
|
1217 |
|
|
|
1218 |
public static class getProviderForPickupType_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1219 |
private long pickUp;
|
|
|
1220 |
public getProviderForPickupType_call(long pickUp, org.apache.thrift.async.AsyncMethodCallback<getProviderForPickupType_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
|
|
1221 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1222 |
this.pickUp = pickUp;
|
|
|
1223 |
}
|
|
|
1224 |
|
|
|
1225 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1226 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProviderForPickupType", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1227 |
getProviderForPickupType_args args = new getProviderForPickupType_args();
|
|
|
1228 |
args.setPickUp(pickUp);
|
|
|
1229 |
args.write(prot);
|
|
|
1230 |
prot.writeMessageEnd();
|
|
|
1231 |
}
|
|
|
1232 |
|
|
|
1233 |
public long getResult() throws org.apache.thrift.TException {
|
|
|
1234 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1235 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1236 |
}
|
|
|
1237 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1238 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1239 |
return (new Client(prot)).recv_getProviderForPickupType();
|
|
|
1240 |
}
|
|
|
1241 |
}
|
|
|
1242 |
|
| 5553 |
rajveer |
1243 |
public void getAllPickupStores(org.apache.thrift.async.AsyncMethodCallback<getAllPickupStores_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1244 |
checkReady();
|
|
|
1245 |
getAllPickupStores_call method_call = new getAllPickupStores_call(resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1246 |
this.___currentMethod = method_call;
|
|
|
1247 |
___manager.call(method_call);
|
|
|
1248 |
}
|
|
|
1249 |
|
|
|
1250 |
public static class getAllPickupStores_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1251 |
public getAllPickupStores_call(org.apache.thrift.async.AsyncMethodCallback<getAllPickupStores_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
|
|
1252 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1253 |
}
|
|
|
1254 |
|
|
|
1255 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1256 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllPickupStores", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1257 |
getAllPickupStores_args args = new getAllPickupStores_args();
|
|
|
1258 |
args.write(prot);
|
|
|
1259 |
prot.writeMessageEnd();
|
|
|
1260 |
}
|
|
|
1261 |
|
|
|
1262 |
public List<PickupStore> getResult() throws org.apache.thrift.TException {
|
|
|
1263 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1264 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1265 |
}
|
|
|
1266 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1267 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1268 |
return (new Client(prot)).recv_getAllPickupStores();
|
|
|
1269 |
}
|
|
|
1270 |
}
|
|
|
1271 |
|
|
|
1272 |
public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<getPickupStore_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1273 |
checkReady();
|
|
|
1274 |
getPickupStore_call method_call = new getPickupStore_call(storeId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1275 |
this.___currentMethod = method_call;
|
|
|
1276 |
___manager.call(method_call);
|
|
|
1277 |
}
|
|
|
1278 |
|
|
|
1279 |
public static class getPickupStore_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1280 |
private long storeId;
|
|
|
1281 |
public getPickupStore_call(long storeId, org.apache.thrift.async.AsyncMethodCallback<getPickupStore_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
|
|
1282 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1283 |
this.storeId = storeId;
|
|
|
1284 |
}
|
|
|
1285 |
|
|
|
1286 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1287 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPickupStore", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1288 |
getPickupStore_args args = new getPickupStore_args();
|
|
|
1289 |
args.setStoreId(storeId);
|
|
|
1290 |
args.write(prot);
|
|
|
1291 |
prot.writeMessageEnd();
|
|
|
1292 |
}
|
|
|
1293 |
|
|
|
1294 |
public PickupStore getResult() throws org.apache.thrift.TException {
|
|
|
1295 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1296 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1297 |
}
|
|
|
1298 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1299 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1300 |
return (new Client(prot)).recv_getPickupStore();
|
|
|
1301 |
}
|
|
|
1302 |
}
|
|
|
1303 |
|
| 5719 |
rajveer |
1304 |
public void getPickupStoreByHotspotId(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<getPickupStoreByHotspotId_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1305 |
checkReady();
|
|
|
1306 |
getPickupStoreByHotspotId_call method_call = new getPickupStoreByHotspotId_call(hotspotId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1307 |
this.___currentMethod = method_call;
|
|
|
1308 |
___manager.call(method_call);
|
|
|
1309 |
}
|
|
|
1310 |
|
|
|
1311 |
public static class getPickupStoreByHotspotId_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1312 |
private String hotspotId;
|
|
|
1313 |
public getPickupStoreByHotspotId_call(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<getPickupStoreByHotspotId_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
|
|
1314 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1315 |
this.hotspotId = hotspotId;
|
|
|
1316 |
}
|
|
|
1317 |
|
|
|
1318 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1319 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPickupStoreByHotspotId", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1320 |
getPickupStoreByHotspotId_args args = new getPickupStoreByHotspotId_args();
|
|
|
1321 |
args.setHotspotId(hotspotId);
|
|
|
1322 |
args.write(prot);
|
|
|
1323 |
prot.writeMessageEnd();
|
|
|
1324 |
}
|
|
|
1325 |
|
|
|
1326 |
public PickupStore getResult() throws org.apache.thrift.TException {
|
|
|
1327 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1328 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1329 |
}
|
|
|
1330 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1331 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1332 |
return (new Client(prot)).recv_getPickupStoreByHotspotId();
|
|
|
1333 |
}
|
|
|
1334 |
}
|
|
|
1335 |
|
| 6524 |
rajveer |
1336 |
public void addPincode(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType, boolean otgAvailable, org.apache.thrift.async.AsyncMethodCallback<addPincode_call> resultHandler) throws org.apache.thrift.TException {
|
| 6322 |
amar.kumar |
1337 |
checkReady();
|
| 6524 |
rajveer |
1338 |
addPincode_call method_call = new addPincode_call(providerId, pincode, destCode, exp, cod, stationType, otgAvailable, resultHandler, this, ___protocolFactory, ___transport);
|
| 6322 |
amar.kumar |
1339 |
this.___currentMethod = method_call;
|
|
|
1340 |
___manager.call(method_call);
|
|
|
1341 |
}
|
|
|
1342 |
|
|
|
1343 |
public static class addPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1344 |
private long providerId;
|
|
|
1345 |
private String pincode;
|
|
|
1346 |
private String destCode;
|
|
|
1347 |
private boolean exp;
|
|
|
1348 |
private boolean cod;
|
|
|
1349 |
private int stationType;
|
| 6524 |
rajveer |
1350 |
private boolean otgAvailable;
|
|
|
1351 |
public addPincode_call(long providerId, String pincode, String destCode, boolean exp, boolean cod, int stationType, boolean otgAvailable, org.apache.thrift.async.AsyncMethodCallback<addPincode_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
| 6322 |
amar.kumar |
1352 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1353 |
this.providerId = providerId;
|
|
|
1354 |
this.pincode = pincode;
|
|
|
1355 |
this.destCode = destCode;
|
|
|
1356 |
this.exp = exp;
|
|
|
1357 |
this.cod = cod;
|
|
|
1358 |
this.stationType = stationType;
|
| 6524 |
rajveer |
1359 |
this.otgAvailable = otgAvailable;
|
| 6322 |
amar.kumar |
1360 |
}
|
|
|
1361 |
|
|
|
1362 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1363 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1364 |
addPincode_args args = new addPincode_args();
|
|
|
1365 |
args.setProviderId(providerId);
|
|
|
1366 |
args.setPincode(pincode);
|
|
|
1367 |
args.setDestCode(destCode);
|
|
|
1368 |
args.setExp(exp);
|
|
|
1369 |
args.setCod(cod);
|
|
|
1370 |
args.setStationType(stationType);
|
| 6524 |
rajveer |
1371 |
args.setOtgAvailable(otgAvailable);
|
| 6322 |
amar.kumar |
1372 |
args.write(prot);
|
|
|
1373 |
prot.writeMessageEnd();
|
|
|
1374 |
}
|
|
|
1375 |
|
|
|
1376 |
public void getResult() throws org.apache.thrift.TException {
|
|
|
1377 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1378 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1379 |
}
|
|
|
1380 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1381 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1382 |
(new Client(prot)).recv_addPincode();
|
|
|
1383 |
}
|
|
|
1384 |
}
|
|
|
1385 |
|
| 6524 |
rajveer |
1386 |
public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable, org.apache.thrift.async.AsyncMethodCallback<updatePincode_call> resultHandler) throws org.apache.thrift.TException {
|
| 6322 |
amar.kumar |
1387 |
checkReady();
|
| 6524 |
rajveer |
1388 |
updatePincode_call method_call = new updatePincode_call(providerId, pincode, exp, cod, otgAvailable, resultHandler, this, ___protocolFactory, ___transport);
|
| 6322 |
amar.kumar |
1389 |
this.___currentMethod = method_call;
|
|
|
1390 |
___manager.call(method_call);
|
|
|
1391 |
}
|
|
|
1392 |
|
|
|
1393 |
public static class updatePincode_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1394 |
private long providerId;
|
|
|
1395 |
private String pincode;
|
|
|
1396 |
private boolean exp;
|
|
|
1397 |
private boolean cod;
|
| 6524 |
rajveer |
1398 |
private boolean otgAvailable;
|
|
|
1399 |
public updatePincode_call(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable, org.apache.thrift.async.AsyncMethodCallback<updatePincode_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
| 6322 |
amar.kumar |
1400 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1401 |
this.providerId = providerId;
|
|
|
1402 |
this.pincode = pincode;
|
|
|
1403 |
this.exp = exp;
|
|
|
1404 |
this.cod = cod;
|
| 6524 |
rajveer |
1405 |
this.otgAvailable = otgAvailable;
|
| 6322 |
amar.kumar |
1406 |
}
|
|
|
1407 |
|
|
|
1408 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1409 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1410 |
updatePincode_args args = new updatePincode_args();
|
|
|
1411 |
args.setProviderId(providerId);
|
|
|
1412 |
args.setPincode(pincode);
|
|
|
1413 |
args.setExp(exp);
|
|
|
1414 |
args.setCod(cod);
|
| 6524 |
rajveer |
1415 |
args.setOtgAvailable(otgAvailable);
|
| 6322 |
amar.kumar |
1416 |
args.write(prot);
|
|
|
1417 |
prot.writeMessageEnd();
|
|
|
1418 |
}
|
|
|
1419 |
|
|
|
1420 |
public void getResult() throws org.apache.thrift.TException {
|
|
|
1421 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1422 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1423 |
}
|
|
|
1424 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1425 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1426 |
(new Client(prot)).recv_updatePincode();
|
|
|
1427 |
}
|
|
|
1428 |
}
|
|
|
1429 |
|
| 7567 |
rajveer |
1430 |
public void addNewAwbs(long providerId, boolean cod, List<String> awbs, org.apache.thrift.async.AsyncMethodCallback<addNewAwbs_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1431 |
checkReady();
|
|
|
1432 |
addNewAwbs_call method_call = new addNewAwbs_call(providerId, cod, awbs, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1433 |
this.___currentMethod = method_call;
|
|
|
1434 |
___manager.call(method_call);
|
|
|
1435 |
}
|
|
|
1436 |
|
|
|
1437 |
public static class addNewAwbs_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1438 |
private long providerId;
|
|
|
1439 |
private boolean cod;
|
|
|
1440 |
private List<String> awbs;
|
|
|
1441 |
public addNewAwbs_call(long providerId, boolean cod, List<String> awbs, org.apache.thrift.async.AsyncMethodCallback<addNewAwbs_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
|
|
1442 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1443 |
this.providerId = providerId;
|
|
|
1444 |
this.cod = cod;
|
|
|
1445 |
this.awbs = awbs;
|
|
|
1446 |
}
|
|
|
1447 |
|
|
|
1448 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1449 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addNewAwbs", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1450 |
addNewAwbs_args args = new addNewAwbs_args();
|
|
|
1451 |
args.setProviderId(providerId);
|
|
|
1452 |
args.setCod(cod);
|
|
|
1453 |
args.setAwbs(awbs);
|
|
|
1454 |
args.write(prot);
|
|
|
1455 |
prot.writeMessageEnd();
|
|
|
1456 |
}
|
|
|
1457 |
|
|
|
1458 |
public boolean getResult() throws org.apache.thrift.TException {
|
|
|
1459 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1460 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1461 |
}
|
|
|
1462 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1463 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1464 |
return (new Client(prot)).recv_addNewAwbs();
|
|
|
1465 |
}
|
|
|
1466 |
}
|
|
|
1467 |
|
| 7788 |
manish.sha |
1468 |
public void runLogisticsLocationInfoUpdate(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate, org.apache.thrift.async.AsyncMethodCallback<runLogisticsLocationInfoUpdate_call> resultHandler) throws org.apache.thrift.TException {
|
| 7737 |
manish.sha |
1469 |
checkReady();
|
| 7788 |
manish.sha |
1470 |
runLogisticsLocationInfoUpdate_call method_call = new runLogisticsLocationInfoUpdate_call(logisticsLocationInfoList, runCompleteUpdate, resultHandler, this, ___protocolFactory, ___transport);
|
| 7737 |
manish.sha |
1471 |
this.___currentMethod = method_call;
|
|
|
1472 |
___manager.call(method_call);
|
|
|
1473 |
}
|
|
|
1474 |
|
| 7788 |
manish.sha |
1475 |
public static class runLogisticsLocationInfoUpdate_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1476 |
private List<LogisticsLocationInfo> logisticsLocationInfoList;
|
|
|
1477 |
private boolean runCompleteUpdate;
|
|
|
1478 |
public runLogisticsLocationInfoUpdate_call(List<LogisticsLocationInfo> logisticsLocationInfoList, boolean runCompleteUpdate, org.apache.thrift.async.AsyncMethodCallback<runLogisticsLocationInfoUpdate_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
| 7737 |
manish.sha |
1479 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 7788 |
manish.sha |
1480 |
this.logisticsLocationInfoList = logisticsLocationInfoList;
|
|
|
1481 |
this.runCompleteUpdate = runCompleteUpdate;
|
| 7737 |
manish.sha |
1482 |
}
|
|
|
1483 |
|
|
|
1484 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 7788 |
manish.sha |
1485 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("runLogisticsLocationInfoUpdate", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1486 |
runLogisticsLocationInfoUpdate_args args = new runLogisticsLocationInfoUpdate_args();
|
|
|
1487 |
args.setLogisticsLocationInfoList(logisticsLocationInfoList);
|
|
|
1488 |
args.setRunCompleteUpdate(runCompleteUpdate);
|
| 7737 |
manish.sha |
1489 |
args.write(prot);
|
|
|
1490 |
prot.writeMessageEnd();
|
|
|
1491 |
}
|
|
|
1492 |
|
|
|
1493 |
public void getResult() throws org.apache.thrift.TException {
|
|
|
1494 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1495 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1496 |
}
|
|
|
1497 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1498 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 7788 |
manish.sha |
1499 |
(new Client(prot)).recv_runLogisticsLocationInfoUpdate();
|
| 7737 |
manish.sha |
1500 |
}
|
|
|
1501 |
}
|
|
|
1502 |
|
| 7888 |
rajveer |
1503 |
public void adjustDeliveryDays(long startDate, long days, org.apache.thrift.async.AsyncMethodCallback<adjustDeliveryDays_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1504 |
checkReady();
|
|
|
1505 |
adjustDeliveryDays_call method_call = new adjustDeliveryDays_call(startDate, days, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1506 |
this.___currentMethod = method_call;
|
|
|
1507 |
___manager.call(method_call);
|
|
|
1508 |
}
|
|
|
1509 |
|
|
|
1510 |
public static class adjustDeliveryDays_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1511 |
private long startDate;
|
|
|
1512 |
private long days;
|
|
|
1513 |
public adjustDeliveryDays_call(long startDate, long days, org.apache.thrift.async.AsyncMethodCallback<adjustDeliveryDays_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
|
|
1514 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1515 |
this.startDate = startDate;
|
|
|
1516 |
this.days = days;
|
|
|
1517 |
}
|
|
|
1518 |
|
|
|
1519 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1520 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("adjustDeliveryDays", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1521 |
adjustDeliveryDays_args args = new adjustDeliveryDays_args();
|
|
|
1522 |
args.setStartDate(startDate);
|
|
|
1523 |
args.setDays(days);
|
|
|
1524 |
args.write(prot);
|
|
|
1525 |
prot.writeMessageEnd();
|
|
|
1526 |
}
|
|
|
1527 |
|
|
|
1528 |
public long getResult() throws org.apache.thrift.TException {
|
|
|
1529 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1530 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1531 |
}
|
|
|
1532 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1533 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1534 |
return (new Client(prot)).recv_adjustDeliveryDays();
|
|
|
1535 |
}
|
|
|
1536 |
}
|
|
|
1537 |
|
| 12895 |
manish.sha |
1538 |
public void getFirstDeliveryEstimateForWhLocation(String pincode, long whLocation, org.apache.thrift.async.AsyncMethodCallback<getFirstDeliveryEstimateForWhLocation_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1539 |
checkReady();
|
|
|
1540 |
getFirstDeliveryEstimateForWhLocation_call method_call = new getFirstDeliveryEstimateForWhLocation_call(pincode, whLocation, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1541 |
this.___currentMethod = method_call;
|
|
|
1542 |
___manager.call(method_call);
|
|
|
1543 |
}
|
|
|
1544 |
|
|
|
1545 |
public static class getFirstDeliveryEstimateForWhLocation_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1546 |
private String pincode;
|
|
|
1547 |
private long whLocation;
|
|
|
1548 |
public getFirstDeliveryEstimateForWhLocation_call(String pincode, long whLocation, org.apache.thrift.async.AsyncMethodCallback<getFirstDeliveryEstimateForWhLocation_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
|
|
1549 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1550 |
this.pincode = pincode;
|
|
|
1551 |
this.whLocation = whLocation;
|
|
|
1552 |
}
|
|
|
1553 |
|
|
|
1554 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1555 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFirstDeliveryEstimateForWhLocation", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1556 |
getFirstDeliveryEstimateForWhLocation_args args = new getFirstDeliveryEstimateForWhLocation_args();
|
|
|
1557 |
args.setPincode(pincode);
|
|
|
1558 |
args.setWhLocation(whLocation);
|
|
|
1559 |
args.write(prot);
|
|
|
1560 |
prot.writeMessageEnd();
|
|
|
1561 |
}
|
|
|
1562 |
|
|
|
1563 |
public long getResult() throws org.apache.thrift.TException {
|
|
|
1564 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1565 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1566 |
}
|
|
|
1567 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1568 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1569 |
return (new Client(prot)).recv_getFirstDeliveryEstimateForWhLocation();
|
|
|
1570 |
}
|
|
|
1571 |
}
|
|
|
1572 |
|
| 3430 |
rajveer |
1573 |
}
|
|
|
1574 |
|
|
|
1575 |
public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
|
|
|
1576 |
private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
|
|
|
1577 |
public Processor(I iface) {
|
|
|
1578 |
super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
|
|
|
1579 |
}
|
|
|
1580 |
|
|
|
1581 |
protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
|
|
|
1582 |
super(iface, getProcessMap(processMap));
|
|
|
1583 |
}
|
|
|
1584 |
|
|
|
1585 |
private static <I extends Iface> Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> getProcessMap(Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
|
|
|
1586 |
processMap.put("getProvider", new getProvider());
|
|
|
1587 |
processMap.put("getAllProviders", new getAllProviders());
|
|
|
1588 |
processMap.put("getLogisticsEstimation", new getLogisticsEstimation());
|
| 7256 |
rajveer |
1589 |
processMap.put("getLogisticsEstimationForStore", new getLogisticsEstimationForStore());
|
| 3430 |
rajveer |
1590 |
processMap.put("getLogisticsInfo", new getLogisticsInfo());
|
|
|
1591 |
processMap.put("getEmptyAWB", new getEmptyAWB());
|
|
|
1592 |
processMap.put("getShipmentInfo", new getShipmentInfo());
|
| 6643 |
rajveer |
1593 |
processMap.put("storeShipmentInfo", new storeShipmentInfo());
|
| 3430 |
rajveer |
1594 |
processMap.put("getDestinationCode", new getDestinationCode());
|
|
|
1595 |
processMap.put("getFreeAwbCount", new getFreeAwbCount());
|
|
|
1596 |
processMap.put("getHolidays", new getHolidays());
|
| 4934 |
amit.gupta |
1597 |
processMap.put("getEntityLogisticsEstimation", new getEntityLogisticsEstimation());
|
| 5527 |
anupam.sin |
1598 |
processMap.put("getProviderForPickupType", new getProviderForPickupType());
|
| 5553 |
rajveer |
1599 |
processMap.put("getAllPickupStores", new getAllPickupStores());
|
|
|
1600 |
processMap.put("getPickupStore", new getPickupStore());
|
| 5719 |
rajveer |
1601 |
processMap.put("getPickupStoreByHotspotId", new getPickupStoreByHotspotId());
|
| 6322 |
amar.kumar |
1602 |
processMap.put("addPincode", new addPincode());
|
|
|
1603 |
processMap.put("updatePincode", new updatePincode());
|
| 7567 |
rajveer |
1604 |
processMap.put("addNewAwbs", new addNewAwbs());
|
| 7788 |
manish.sha |
1605 |
processMap.put("runLogisticsLocationInfoUpdate", new runLogisticsLocationInfoUpdate());
|
| 7888 |
rajveer |
1606 |
processMap.put("adjustDeliveryDays", new adjustDeliveryDays());
|
| 12895 |
manish.sha |
1607 |
processMap.put("getFirstDeliveryEstimateForWhLocation", new getFirstDeliveryEstimateForWhLocation());
|
| 3430 |
rajveer |
1608 |
return processMap;
|
|
|
1609 |
}
|
|
|
1610 |
|
|
|
1611 |
private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
|
|
|
1612 |
public getProvider() {
|
|
|
1613 |
super("getProvider");
|
|
|
1614 |
}
|
|
|
1615 |
|
|
|
1616 |
protected getProvider_args getEmptyArgsInstance() {
|
|
|
1617 |
return new getProvider_args();
|
|
|
1618 |
}
|
|
|
1619 |
|
|
|
1620 |
protected getProvider_result getResult(I iface, getProvider_args args) throws org.apache.thrift.TException {
|
| 668 |
chandransh |
1621 |
getProvider_result result = new getProvider_result();
|
|
|
1622 |
try {
|
| 3430 |
rajveer |
1623 |
result.success = iface.getProvider(args.providerId);
|
| 668 |
chandransh |
1624 |
} catch (LogisticsServiceException lse) {
|
|
|
1625 |
result.lse = lse;
|
|
|
1626 |
}
|
| 3430 |
rajveer |
1627 |
return result;
|
| 668 |
chandransh |
1628 |
}
|
|
|
1629 |
}
|
|
|
1630 |
|
| 3430 |
rajveer |
1631 |
private static class getAllProviders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllProviders_args> {
|
|
|
1632 |
public getAllProviders() {
|
|
|
1633 |
super("getAllProviders");
|
|
|
1634 |
}
|
|
|
1635 |
|
|
|
1636 |
protected getAllProviders_args getEmptyArgsInstance() {
|
|
|
1637 |
return new getAllProviders_args();
|
|
|
1638 |
}
|
|
|
1639 |
|
|
|
1640 |
protected getAllProviders_result getResult(I iface, getAllProviders_args args) throws org.apache.thrift.TException {
|
| 674 |
chandransh |
1641 |
getAllProviders_result result = new getAllProviders_result();
|
|
|
1642 |
try {
|
| 3430 |
rajveer |
1643 |
result.success = iface.getAllProviders();
|
| 674 |
chandransh |
1644 |
} catch (LogisticsServiceException lse) {
|
|
|
1645 |
result.lse = lse;
|
|
|
1646 |
}
|
| 3430 |
rajveer |
1647 |
return result;
|
| 674 |
chandransh |
1648 |
}
|
|
|
1649 |
}
|
|
|
1650 |
|
| 3430 |
rajveer |
1651 |
private static class getLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsEstimation_args> {
|
|
|
1652 |
public getLogisticsEstimation() {
|
|
|
1653 |
super("getLogisticsEstimation");
|
|
|
1654 |
}
|
|
|
1655 |
|
|
|
1656 |
protected getLogisticsEstimation_args getEmptyArgsInstance() {
|
|
|
1657 |
return new getLogisticsEstimation_args();
|
|
|
1658 |
}
|
|
|
1659 |
|
|
|
1660 |
protected getLogisticsEstimation_result getResult(I iface, getLogisticsEstimation_args args) throws org.apache.thrift.TException {
|
| 648 |
chandransh |
1661 |
getLogisticsEstimation_result result = new getLogisticsEstimation_result();
|
| 483 |
rajveer |
1662 |
try {
|
| 4630 |
mandeep.dh |
1663 |
result.success = iface.getLogisticsEstimation(args.itemId, args.destination_pin, args.type);
|
| 483 |
rajveer |
1664 |
} catch (LogisticsServiceException se) {
|
|
|
1665 |
result.se = se;
|
|
|
1666 |
}
|
| 3430 |
rajveer |
1667 |
return result;
|
| 483 |
rajveer |
1668 |
}
|
|
|
1669 |
}
|
|
|
1670 |
|
| 7256 |
rajveer |
1671 |
private static class getLogisticsEstimationForStore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsEstimationForStore_args> {
|
|
|
1672 |
public getLogisticsEstimationForStore() {
|
|
|
1673 |
super("getLogisticsEstimationForStore");
|
|
|
1674 |
}
|
|
|
1675 |
|
|
|
1676 |
protected getLogisticsEstimationForStore_args getEmptyArgsInstance() {
|
|
|
1677 |
return new getLogisticsEstimationForStore_args();
|
|
|
1678 |
}
|
|
|
1679 |
|
|
|
1680 |
protected getLogisticsEstimationForStore_result getResult(I iface, getLogisticsEstimationForStore_args args) throws org.apache.thrift.TException {
|
|
|
1681 |
getLogisticsEstimationForStore_result result = new getLogisticsEstimationForStore_result();
|
|
|
1682 |
try {
|
|
|
1683 |
result.success = iface.getLogisticsEstimationForStore(args.itemId, args.destination_pin, args.type);
|
|
|
1684 |
} catch (LogisticsServiceException se) {
|
|
|
1685 |
result.se = se;
|
|
|
1686 |
}
|
|
|
1687 |
return result;
|
|
|
1688 |
}
|
|
|
1689 |
}
|
|
|
1690 |
|
| 3430 |
rajveer |
1691 |
private static class getLogisticsInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsInfo_args> {
|
|
|
1692 |
public getLogisticsInfo() {
|
|
|
1693 |
super("getLogisticsInfo");
|
|
|
1694 |
}
|
|
|
1695 |
|
|
|
1696 |
protected getLogisticsInfo_args getEmptyArgsInstance() {
|
|
|
1697 |
return new getLogisticsInfo_args();
|
|
|
1698 |
}
|
|
|
1699 |
|
|
|
1700 |
protected getLogisticsInfo_result getResult(I iface, getLogisticsInfo_args args) throws org.apache.thrift.TException {
|
| 648 |
chandransh |
1701 |
getLogisticsInfo_result result = new getLogisticsInfo_result();
|
| 471 |
rajveer |
1702 |
try {
|
| 5766 |
rajveer |
1703 |
result.success = iface.getLogisticsInfo(args.destination_pincode, args.item_id, args.type, args.pickUp);
|
| 471 |
rajveer |
1704 |
} catch (LogisticsServiceException se) {
|
|
|
1705 |
result.se = se;
|
|
|
1706 |
}
|
| 3430 |
rajveer |
1707 |
return result;
|
| 471 |
rajveer |
1708 |
}
|
|
|
1709 |
}
|
|
|
1710 |
|
| 3430 |
rajveer |
1711 |
private static class getEmptyAWB<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmptyAWB_args> {
|
|
|
1712 |
public getEmptyAWB() {
|
|
|
1713 |
super("getEmptyAWB");
|
|
|
1714 |
}
|
|
|
1715 |
|
|
|
1716 |
protected getEmptyAWB_args getEmptyArgsInstance() {
|
|
|
1717 |
return new getEmptyAWB_args();
|
|
|
1718 |
}
|
|
|
1719 |
|
|
|
1720 |
protected getEmptyAWB_result getResult(I iface, getEmptyAWB_args args) throws org.apache.thrift.TException {
|
| 412 |
ashish |
1721 |
getEmptyAWB_result result = new getEmptyAWB_result();
|
| 648 |
chandransh |
1722 |
try {
|
| 5247 |
rajveer |
1723 |
result.success = iface.getEmptyAWB(args.providerId, args.type);
|
| 648 |
chandransh |
1724 |
} catch (LogisticsServiceException se) {
|
|
|
1725 |
result.se = se;
|
|
|
1726 |
}
|
| 3430 |
rajveer |
1727 |
return result;
|
| 412 |
ashish |
1728 |
}
|
|
|
1729 |
}
|
|
|
1730 |
|
| 3430 |
rajveer |
1731 |
private static class getShipmentInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getShipmentInfo_args> {
|
|
|
1732 |
public getShipmentInfo() {
|
|
|
1733 |
super("getShipmentInfo");
|
|
|
1734 |
}
|
|
|
1735 |
|
|
|
1736 |
protected getShipmentInfo_args getEmptyArgsInstance() {
|
|
|
1737 |
return new getShipmentInfo_args();
|
|
|
1738 |
}
|
|
|
1739 |
|
|
|
1740 |
protected getShipmentInfo_result getResult(I iface, getShipmentInfo_args args) throws org.apache.thrift.TException {
|
| 412 |
ashish |
1741 |
getShipmentInfo_result result = new getShipmentInfo_result();
|
| 648 |
chandransh |
1742 |
try {
|
| 6643 |
rajveer |
1743 |
result.success = iface.getShipmentInfo(args.awbNumber, args.providerId);
|
| 648 |
chandransh |
1744 |
} catch (LogisticsServiceException se) {
|
|
|
1745 |
result.se = se;
|
|
|
1746 |
}
|
| 3430 |
rajveer |
1747 |
return result;
|
| 412 |
ashish |
1748 |
}
|
|
|
1749 |
}
|
|
|
1750 |
|
| 6643 |
rajveer |
1751 |
private static class storeShipmentInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, storeShipmentInfo_args> {
|
|
|
1752 |
public storeShipmentInfo() {
|
|
|
1753 |
super("storeShipmentInfo");
|
|
|
1754 |
}
|
|
|
1755 |
|
|
|
1756 |
protected storeShipmentInfo_args getEmptyArgsInstance() {
|
|
|
1757 |
return new storeShipmentInfo_args();
|
|
|
1758 |
}
|
|
|
1759 |
|
|
|
1760 |
protected storeShipmentInfo_result getResult(I iface, storeShipmentInfo_args args) throws org.apache.thrift.TException {
|
|
|
1761 |
storeShipmentInfo_result result = new storeShipmentInfo_result();
|
|
|
1762 |
try {
|
|
|
1763 |
iface.storeShipmentInfo(args.update);
|
|
|
1764 |
} catch (LogisticsServiceException se) {
|
|
|
1765 |
result.se = se;
|
|
|
1766 |
}
|
|
|
1767 |
return result;
|
|
|
1768 |
}
|
|
|
1769 |
}
|
|
|
1770 |
|
| 3430 |
rajveer |
1771 |
private static class getDestinationCode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getDestinationCode_args> {
|
|
|
1772 |
public getDestinationCode() {
|
|
|
1773 |
super("getDestinationCode");
|
|
|
1774 |
}
|
|
|
1775 |
|
|
|
1776 |
protected getDestinationCode_args getEmptyArgsInstance() {
|
|
|
1777 |
return new getDestinationCode_args();
|
|
|
1778 |
}
|
|
|
1779 |
|
|
|
1780 |
protected getDestinationCode_result getResult(I iface, getDestinationCode_args args) throws org.apache.thrift.TException {
|
| 730 |
chandransh |
1781 |
getDestinationCode_result result = new getDestinationCode_result();
|
|
|
1782 |
try {
|
| 3430 |
rajveer |
1783 |
result.success = iface.getDestinationCode(args.providerId, args.pinCode);
|
| 730 |
chandransh |
1784 |
} catch (LogisticsServiceException se) {
|
|
|
1785 |
result.se = se;
|
|
|
1786 |
}
|
| 3430 |
rajveer |
1787 |
return result;
|
| 730 |
chandransh |
1788 |
}
|
|
|
1789 |
}
|
|
|
1790 |
|
| 3430 |
rajveer |
1791 |
private static class getFreeAwbCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFreeAwbCount_args> {
|
|
|
1792 |
public getFreeAwbCount() {
|
|
|
1793 |
super("getFreeAwbCount");
|
|
|
1794 |
}
|
|
|
1795 |
|
|
|
1796 |
protected getFreeAwbCount_args getEmptyArgsInstance() {
|
|
|
1797 |
return new getFreeAwbCount_args();
|
|
|
1798 |
}
|
|
|
1799 |
|
|
|
1800 |
protected getFreeAwbCount_result getResult(I iface, getFreeAwbCount_args args) throws org.apache.thrift.TException {
|
| 1139 |
chandransh |
1801 |
getFreeAwbCount_result result = new getFreeAwbCount_result();
|
| 3430 |
rajveer |
1802 |
result.success = iface.getFreeAwbCount(args.providerId, args.type);
|
| 1139 |
chandransh |
1803 |
result.setSuccessIsSet(true);
|
| 3430 |
rajveer |
1804 |
return result;
|
| 1139 |
chandransh |
1805 |
}
|
|
|
1806 |
}
|
|
|
1807 |
|
| 3430 |
rajveer |
1808 |
private static class getHolidays<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHolidays_args> {
|
|
|
1809 |
public getHolidays() {
|
|
|
1810 |
super("getHolidays");
|
|
|
1811 |
}
|
|
|
1812 |
|
|
|
1813 |
protected getHolidays_args getEmptyArgsInstance() {
|
|
|
1814 |
return new getHolidays_args();
|
|
|
1815 |
}
|
|
|
1816 |
|
|
|
1817 |
protected getHolidays_result getResult(I iface, getHolidays_args args) throws org.apache.thrift.TException {
|
| 1730 |
ankur.sing |
1818 |
getHolidays_result result = new getHolidays_result();
|
| 3430 |
rajveer |
1819 |
result.success = iface.getHolidays(args.fromDate, args.toDate);
|
|
|
1820 |
return result;
|
| 1730 |
ankur.sing |
1821 |
}
|
|
|
1822 |
}
|
|
|
1823 |
|
| 4934 |
amit.gupta |
1824 |
private static class getEntityLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEntityLogisticsEstimation_args> {
|
|
|
1825 |
public getEntityLogisticsEstimation() {
|
|
|
1826 |
super("getEntityLogisticsEstimation");
|
|
|
1827 |
}
|
|
|
1828 |
|
|
|
1829 |
protected getEntityLogisticsEstimation_args getEmptyArgsInstance() {
|
|
|
1830 |
return new getEntityLogisticsEstimation_args();
|
|
|
1831 |
}
|
|
|
1832 |
|
|
|
1833 |
protected getEntityLogisticsEstimation_result getResult(I iface, getEntityLogisticsEstimation_args args) throws org.apache.thrift.TException {
|
|
|
1834 |
getEntityLogisticsEstimation_result result = new getEntityLogisticsEstimation_result();
|
|
|
1835 |
try {
|
|
|
1836 |
result.success = iface.getEntityLogisticsEstimation(args.catalogItemId, args.destination_pin, args.type);
|
|
|
1837 |
} catch (LogisticsServiceException se) {
|
|
|
1838 |
result.se = se;
|
|
|
1839 |
}
|
|
|
1840 |
return result;
|
|
|
1841 |
}
|
|
|
1842 |
}
|
|
|
1843 |
|
| 5527 |
anupam.sin |
1844 |
private static class getProviderForPickupType<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProviderForPickupType_args> {
|
|
|
1845 |
public getProviderForPickupType() {
|
|
|
1846 |
super("getProviderForPickupType");
|
|
|
1847 |
}
|
|
|
1848 |
|
|
|
1849 |
protected getProviderForPickupType_args getEmptyArgsInstance() {
|
|
|
1850 |
return new getProviderForPickupType_args();
|
|
|
1851 |
}
|
|
|
1852 |
|
|
|
1853 |
protected getProviderForPickupType_result getResult(I iface, getProviderForPickupType_args args) throws org.apache.thrift.TException {
|
|
|
1854 |
getProviderForPickupType_result result = new getProviderForPickupType_result();
|
|
|
1855 |
result.success = iface.getProviderForPickupType(args.pickUp);
|
|
|
1856 |
result.setSuccessIsSet(true);
|
|
|
1857 |
return result;
|
|
|
1858 |
}
|
|
|
1859 |
}
|
|
|
1860 |
|
| 5553 |
rajveer |
1861 |
private static class getAllPickupStores<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllPickupStores_args> {
|
|
|
1862 |
public getAllPickupStores() {
|
|
|
1863 |
super("getAllPickupStores");
|
|
|
1864 |
}
|
|
|
1865 |
|
|
|
1866 |
protected getAllPickupStores_args getEmptyArgsInstance() {
|
|
|
1867 |
return new getAllPickupStores_args();
|
|
|
1868 |
}
|
|
|
1869 |
|
|
|
1870 |
protected getAllPickupStores_result getResult(I iface, getAllPickupStores_args args) throws org.apache.thrift.TException {
|
|
|
1871 |
getAllPickupStores_result result = new getAllPickupStores_result();
|
|
|
1872 |
result.success = iface.getAllPickupStores();
|
|
|
1873 |
return result;
|
|
|
1874 |
}
|
|
|
1875 |
}
|
|
|
1876 |
|
|
|
1877 |
private static class getPickupStore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPickupStore_args> {
|
|
|
1878 |
public getPickupStore() {
|
|
|
1879 |
super("getPickupStore");
|
|
|
1880 |
}
|
|
|
1881 |
|
|
|
1882 |
protected getPickupStore_args getEmptyArgsInstance() {
|
|
|
1883 |
return new getPickupStore_args();
|
|
|
1884 |
}
|
|
|
1885 |
|
|
|
1886 |
protected getPickupStore_result getResult(I iface, getPickupStore_args args) throws org.apache.thrift.TException {
|
|
|
1887 |
getPickupStore_result result = new getPickupStore_result();
|
|
|
1888 |
result.success = iface.getPickupStore(args.storeId);
|
|
|
1889 |
return result;
|
|
|
1890 |
}
|
|
|
1891 |
}
|
|
|
1892 |
|
| 5719 |
rajveer |
1893 |
private static class getPickupStoreByHotspotId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPickupStoreByHotspotId_args> {
|
|
|
1894 |
public getPickupStoreByHotspotId() {
|
|
|
1895 |
super("getPickupStoreByHotspotId");
|
|
|
1896 |
}
|
|
|
1897 |
|
|
|
1898 |
protected getPickupStoreByHotspotId_args getEmptyArgsInstance() {
|
|
|
1899 |
return new getPickupStoreByHotspotId_args();
|
|
|
1900 |
}
|
|
|
1901 |
|
|
|
1902 |
protected getPickupStoreByHotspotId_result getResult(I iface, getPickupStoreByHotspotId_args args) throws org.apache.thrift.TException {
|
|
|
1903 |
getPickupStoreByHotspotId_result result = new getPickupStoreByHotspotId_result();
|
|
|
1904 |
result.success = iface.getPickupStoreByHotspotId(args.hotspotId);
|
|
|
1905 |
return result;
|
|
|
1906 |
}
|
|
|
1907 |
}
|
|
|
1908 |
|
| 6322 |
amar.kumar |
1909 |
private static class addPincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addPincode_args> {
|
|
|
1910 |
public addPincode() {
|
|
|
1911 |
super("addPincode");
|
|
|
1912 |
}
|
|
|
1913 |
|
|
|
1914 |
protected addPincode_args getEmptyArgsInstance() {
|
|
|
1915 |
return new addPincode_args();
|
|
|
1916 |
}
|
|
|
1917 |
|
|
|
1918 |
protected addPincode_result getResult(I iface, addPincode_args args) throws org.apache.thrift.TException {
|
|
|
1919 |
addPincode_result result = new addPincode_result();
|
| 6524 |
rajveer |
1920 |
iface.addPincode(args.providerId, args.pincode, args.destCode, args.exp, args.cod, args.stationType, args.otgAvailable);
|
| 6322 |
amar.kumar |
1921 |
return result;
|
|
|
1922 |
}
|
|
|
1923 |
}
|
|
|
1924 |
|
|
|
1925 |
private static class updatePincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePincode_args> {
|
|
|
1926 |
public updatePincode() {
|
|
|
1927 |
super("updatePincode");
|
|
|
1928 |
}
|
|
|
1929 |
|
|
|
1930 |
protected updatePincode_args getEmptyArgsInstance() {
|
|
|
1931 |
return new updatePincode_args();
|
|
|
1932 |
}
|
|
|
1933 |
|
|
|
1934 |
protected updatePincode_result getResult(I iface, updatePincode_args args) throws org.apache.thrift.TException {
|
|
|
1935 |
updatePincode_result result = new updatePincode_result();
|
| 6524 |
rajveer |
1936 |
iface.updatePincode(args.providerId, args.pincode, args.exp, args.cod, args.otgAvailable);
|
| 6322 |
amar.kumar |
1937 |
return result;
|
|
|
1938 |
}
|
|
|
1939 |
}
|
|
|
1940 |
|
| 7567 |
rajveer |
1941 |
private static class addNewAwbs<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addNewAwbs_args> {
|
|
|
1942 |
public addNewAwbs() {
|
|
|
1943 |
super("addNewAwbs");
|
|
|
1944 |
}
|
|
|
1945 |
|
|
|
1946 |
protected addNewAwbs_args getEmptyArgsInstance() {
|
|
|
1947 |
return new addNewAwbs_args();
|
|
|
1948 |
}
|
|
|
1949 |
|
|
|
1950 |
protected addNewAwbs_result getResult(I iface, addNewAwbs_args args) throws org.apache.thrift.TException {
|
|
|
1951 |
addNewAwbs_result result = new addNewAwbs_result();
|
|
|
1952 |
result.success = iface.addNewAwbs(args.providerId, args.cod, args.awbs);
|
|
|
1953 |
result.setSuccessIsSet(true);
|
|
|
1954 |
return result;
|
|
|
1955 |
}
|
|
|
1956 |
}
|
|
|
1957 |
|
| 7788 |
manish.sha |
1958 |
private static class runLogisticsLocationInfoUpdate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, runLogisticsLocationInfoUpdate_args> {
|
|
|
1959 |
public runLogisticsLocationInfoUpdate() {
|
|
|
1960 |
super("runLogisticsLocationInfoUpdate");
|
| 7737 |
manish.sha |
1961 |
}
|
|
|
1962 |
|
| 7788 |
manish.sha |
1963 |
protected runLogisticsLocationInfoUpdate_args getEmptyArgsInstance() {
|
|
|
1964 |
return new runLogisticsLocationInfoUpdate_args();
|
| 7737 |
manish.sha |
1965 |
}
|
|
|
1966 |
|
| 7788 |
manish.sha |
1967 |
protected runLogisticsLocationInfoUpdate_result getResult(I iface, runLogisticsLocationInfoUpdate_args args) throws org.apache.thrift.TException {
|
|
|
1968 |
runLogisticsLocationInfoUpdate_result result = new runLogisticsLocationInfoUpdate_result();
|
|
|
1969 |
iface.runLogisticsLocationInfoUpdate(args.logisticsLocationInfoList, args.runCompleteUpdate);
|
| 7737 |
manish.sha |
1970 |
return result;
|
|
|
1971 |
}
|
|
|
1972 |
}
|
|
|
1973 |
|
| 7888 |
rajveer |
1974 |
private static class adjustDeliveryDays<I extends Iface> extends org.apache.thrift.ProcessFunction<I, adjustDeliveryDays_args> {
|
|
|
1975 |
public adjustDeliveryDays() {
|
|
|
1976 |
super("adjustDeliveryDays");
|
|
|
1977 |
}
|
|
|
1978 |
|
|
|
1979 |
protected adjustDeliveryDays_args getEmptyArgsInstance() {
|
|
|
1980 |
return new adjustDeliveryDays_args();
|
|
|
1981 |
}
|
|
|
1982 |
|
|
|
1983 |
protected adjustDeliveryDays_result getResult(I iface, adjustDeliveryDays_args args) throws org.apache.thrift.TException {
|
|
|
1984 |
adjustDeliveryDays_result result = new adjustDeliveryDays_result();
|
|
|
1985 |
result.success = iface.adjustDeliveryDays(args.startDate, args.days);
|
|
|
1986 |
result.setSuccessIsSet(true);
|
|
|
1987 |
return result;
|
|
|
1988 |
}
|
|
|
1989 |
}
|
|
|
1990 |
|
| 12895 |
manish.sha |
1991 |
private static class getFirstDeliveryEstimateForWhLocation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFirstDeliveryEstimateForWhLocation_args> {
|
|
|
1992 |
public getFirstDeliveryEstimateForWhLocation() {
|
|
|
1993 |
super("getFirstDeliveryEstimateForWhLocation");
|
|
|
1994 |
}
|
|
|
1995 |
|
|
|
1996 |
protected getFirstDeliveryEstimateForWhLocation_args getEmptyArgsInstance() {
|
|
|
1997 |
return new getFirstDeliveryEstimateForWhLocation_args();
|
|
|
1998 |
}
|
|
|
1999 |
|
|
|
2000 |
protected getFirstDeliveryEstimateForWhLocation_result getResult(I iface, getFirstDeliveryEstimateForWhLocation_args args) throws org.apache.thrift.TException {
|
|
|
2001 |
getFirstDeliveryEstimateForWhLocation_result result = new getFirstDeliveryEstimateForWhLocation_result();
|
|
|
2002 |
result.success = iface.getFirstDeliveryEstimateForWhLocation(args.pincode, args.whLocation);
|
|
|
2003 |
result.setSuccessIsSet(true);
|
|
|
2004 |
return result;
|
|
|
2005 |
}
|
|
|
2006 |
}
|
|
|
2007 |
|
| 412 |
ashish |
2008 |
}
|
|
|
2009 |
|
| 3430 |
rajveer |
2010 |
public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
2011 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
|
| 668 |
chandransh |
2012 |
|
| 3430 |
rajveer |
2013 |
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)1);
|
| 668 |
chandransh |
2014 |
|
| 3430 |
rajveer |
2015 |
private long providerId; // required
|
| 668 |
chandransh |
2016 |
|
|
|
2017 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
2018 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 668 |
chandransh |
2019 |
PROVIDER_ID((short)1, "providerId");
|
|
|
2020 |
|
|
|
2021 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
2022 |
|
|
|
2023 |
static {
|
|
|
2024 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
2025 |
byName.put(field.getFieldName(), field);
|
|
|
2026 |
}
|
|
|
2027 |
}
|
|
|
2028 |
|
|
|
2029 |
/**
|
|
|
2030 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
2031 |
*/
|
|
|
2032 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
2033 |
switch(fieldId) {
|
|
|
2034 |
case 1: // PROVIDER_ID
|
|
|
2035 |
return PROVIDER_ID;
|
|
|
2036 |
default:
|
|
|
2037 |
return null;
|
|
|
2038 |
}
|
| 668 |
chandransh |
2039 |
}
|
|
|
2040 |
|
|
|
2041 |
/**
|
|
|
2042 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
2043 |
* if it is not found.
|
|
|
2044 |
*/
|
|
|
2045 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
2046 |
_Fields fields = findByThriftId(fieldId);
|
|
|
2047 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
2048 |
return fields;
|
|
|
2049 |
}
|
|
|
2050 |
|
|
|
2051 |
/**
|
|
|
2052 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
2053 |
*/
|
|
|
2054 |
public static _Fields findByName(String name) {
|
|
|
2055 |
return byName.get(name);
|
|
|
2056 |
}
|
|
|
2057 |
|
|
|
2058 |
private final short _thriftId;
|
|
|
2059 |
private final String _fieldName;
|
|
|
2060 |
|
|
|
2061 |
_Fields(short thriftId, String fieldName) {
|
|
|
2062 |
_thriftId = thriftId;
|
|
|
2063 |
_fieldName = fieldName;
|
|
|
2064 |
}
|
|
|
2065 |
|
|
|
2066 |
public short getThriftFieldId() {
|
|
|
2067 |
return _thriftId;
|
|
|
2068 |
}
|
|
|
2069 |
|
|
|
2070 |
public String getFieldName() {
|
|
|
2071 |
return _fieldName;
|
|
|
2072 |
}
|
|
|
2073 |
}
|
|
|
2074 |
|
|
|
2075 |
// isset id assignments
|
|
|
2076 |
private static final int __PROVIDERID_ISSET_ID = 0;
|
|
|
2077 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
2078 |
|
| 3430 |
rajveer |
2079 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 668 |
chandransh |
2080 |
static {
|
| 3430 |
rajveer |
2081 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
2082 |
tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2083 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
2084 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
2085 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_args.class, metaDataMap);
|
| 668 |
chandransh |
2086 |
}
|
|
|
2087 |
|
|
|
2088 |
public getProvider_args() {
|
|
|
2089 |
}
|
|
|
2090 |
|
|
|
2091 |
public getProvider_args(
|
|
|
2092 |
long providerId)
|
|
|
2093 |
{
|
|
|
2094 |
this();
|
|
|
2095 |
this.providerId = providerId;
|
|
|
2096 |
setProviderIdIsSet(true);
|
|
|
2097 |
}
|
|
|
2098 |
|
|
|
2099 |
/**
|
|
|
2100 |
* Performs a deep copy on <i>other</i>.
|
|
|
2101 |
*/
|
|
|
2102 |
public getProvider_args(getProvider_args other) {
|
|
|
2103 |
__isset_bit_vector.clear();
|
|
|
2104 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
2105 |
this.providerId = other.providerId;
|
|
|
2106 |
}
|
|
|
2107 |
|
|
|
2108 |
public getProvider_args deepCopy() {
|
|
|
2109 |
return new getProvider_args(this);
|
|
|
2110 |
}
|
|
|
2111 |
|
| 3430 |
rajveer |
2112 |
@Override
|
|
|
2113 |
public void clear() {
|
|
|
2114 |
setProviderIdIsSet(false);
|
|
|
2115 |
this.providerId = 0;
|
| 668 |
chandransh |
2116 |
}
|
|
|
2117 |
|
|
|
2118 |
public long getProviderId() {
|
|
|
2119 |
return this.providerId;
|
|
|
2120 |
}
|
|
|
2121 |
|
| 3430 |
rajveer |
2122 |
public void setProviderId(long providerId) {
|
| 668 |
chandransh |
2123 |
this.providerId = providerId;
|
|
|
2124 |
setProviderIdIsSet(true);
|
|
|
2125 |
}
|
|
|
2126 |
|
|
|
2127 |
public void unsetProviderId() {
|
|
|
2128 |
__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
|
|
|
2129 |
}
|
|
|
2130 |
|
| 3430 |
rajveer |
2131 |
/** Returns true if field providerId is set (has been assigned a value) and false otherwise */
|
| 668 |
chandransh |
2132 |
public boolean isSetProviderId() {
|
|
|
2133 |
return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
|
|
|
2134 |
}
|
|
|
2135 |
|
|
|
2136 |
public void setProviderIdIsSet(boolean value) {
|
|
|
2137 |
__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
|
|
|
2138 |
}
|
|
|
2139 |
|
|
|
2140 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
2141 |
switch (field) {
|
|
|
2142 |
case PROVIDER_ID:
|
|
|
2143 |
if (value == null) {
|
|
|
2144 |
unsetProviderId();
|
|
|
2145 |
} else {
|
|
|
2146 |
setProviderId((Long)value);
|
|
|
2147 |
}
|
|
|
2148 |
break;
|
|
|
2149 |
|
|
|
2150 |
}
|
|
|
2151 |
}
|
|
|
2152 |
|
|
|
2153 |
public Object getFieldValue(_Fields field) {
|
|
|
2154 |
switch (field) {
|
|
|
2155 |
case PROVIDER_ID:
|
| 3430 |
rajveer |
2156 |
return Long.valueOf(getProviderId());
|
| 668 |
chandransh |
2157 |
|
|
|
2158 |
}
|
|
|
2159 |
throw new IllegalStateException();
|
|
|
2160 |
}
|
|
|
2161 |
|
| 3430 |
rajveer |
2162 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
2163 |
public boolean isSet(_Fields field) {
|
|
|
2164 |
if (field == null) {
|
|
|
2165 |
throw new IllegalArgumentException();
|
|
|
2166 |
}
|
| 668 |
chandransh |
2167 |
|
|
|
2168 |
switch (field) {
|
|
|
2169 |
case PROVIDER_ID:
|
|
|
2170 |
return isSetProviderId();
|
|
|
2171 |
}
|
|
|
2172 |
throw new IllegalStateException();
|
|
|
2173 |
}
|
|
|
2174 |
|
|
|
2175 |
@Override
|
|
|
2176 |
public boolean equals(Object that) {
|
|
|
2177 |
if (that == null)
|
|
|
2178 |
return false;
|
|
|
2179 |
if (that instanceof getProvider_args)
|
|
|
2180 |
return this.equals((getProvider_args)that);
|
|
|
2181 |
return false;
|
|
|
2182 |
}
|
|
|
2183 |
|
|
|
2184 |
public boolean equals(getProvider_args that) {
|
|
|
2185 |
if (that == null)
|
|
|
2186 |
return false;
|
|
|
2187 |
|
|
|
2188 |
boolean this_present_providerId = true;
|
|
|
2189 |
boolean that_present_providerId = true;
|
|
|
2190 |
if (this_present_providerId || that_present_providerId) {
|
|
|
2191 |
if (!(this_present_providerId && that_present_providerId))
|
|
|
2192 |
return false;
|
|
|
2193 |
if (this.providerId != that.providerId)
|
|
|
2194 |
return false;
|
|
|
2195 |
}
|
|
|
2196 |
|
|
|
2197 |
return true;
|
|
|
2198 |
}
|
|
|
2199 |
|
|
|
2200 |
@Override
|
|
|
2201 |
public int hashCode() {
|
|
|
2202 |
return 0;
|
|
|
2203 |
}
|
|
|
2204 |
|
|
|
2205 |
public int compareTo(getProvider_args other) {
|
|
|
2206 |
if (!getClass().equals(other.getClass())) {
|
|
|
2207 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
2208 |
}
|
|
|
2209 |
|
|
|
2210 |
int lastComparison = 0;
|
|
|
2211 |
getProvider_args typedOther = (getProvider_args)other;
|
|
|
2212 |
|
| 3430 |
rajveer |
2213 |
lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
|
| 668 |
chandransh |
2214 |
if (lastComparison != 0) {
|
|
|
2215 |
return lastComparison;
|
|
|
2216 |
}
|
| 3430 |
rajveer |
2217 |
if (isSetProviderId()) {
|
|
|
2218 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
|
|
|
2219 |
if (lastComparison != 0) {
|
|
|
2220 |
return lastComparison;
|
|
|
2221 |
}
|
| 668 |
chandransh |
2222 |
}
|
|
|
2223 |
return 0;
|
|
|
2224 |
}
|
|
|
2225 |
|
| 3430 |
rajveer |
2226 |
public _Fields fieldForId(int fieldId) {
|
|
|
2227 |
return _Fields.findByThriftId(fieldId);
|
|
|
2228 |
}
|
|
|
2229 |
|
|
|
2230 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
2231 |
org.apache.thrift.protocol.TField field;
|
| 668 |
chandransh |
2232 |
iprot.readStructBegin();
|
|
|
2233 |
while (true)
|
|
|
2234 |
{
|
|
|
2235 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
2236 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 668 |
chandransh |
2237 |
break;
|
|
|
2238 |
}
|
| 3430 |
rajveer |
2239 |
switch (field.id) {
|
|
|
2240 |
case 1: // PROVIDER_ID
|
|
|
2241 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
2242 |
this.providerId = iprot.readI64();
|
|
|
2243 |
setProviderIdIsSet(true);
|
|
|
2244 |
} else {
|
|
|
2245 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2246 |
}
|
|
|
2247 |
break;
|
|
|
2248 |
default:
|
|
|
2249 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 668 |
chandransh |
2250 |
}
|
| 3430 |
rajveer |
2251 |
iprot.readFieldEnd();
|
| 668 |
chandransh |
2252 |
}
|
|
|
2253 |
iprot.readStructEnd();
|
|
|
2254 |
validate();
|
|
|
2255 |
}
|
|
|
2256 |
|
| 3430 |
rajveer |
2257 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 668 |
chandransh |
2258 |
validate();
|
|
|
2259 |
|
|
|
2260 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
2261 |
oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
|
|
|
2262 |
oprot.writeI64(this.providerId);
|
|
|
2263 |
oprot.writeFieldEnd();
|
|
|
2264 |
oprot.writeFieldStop();
|
|
|
2265 |
oprot.writeStructEnd();
|
|
|
2266 |
}
|
|
|
2267 |
|
|
|
2268 |
@Override
|
|
|
2269 |
public String toString() {
|
|
|
2270 |
StringBuilder sb = new StringBuilder("getProvider_args(");
|
|
|
2271 |
boolean first = true;
|
|
|
2272 |
|
|
|
2273 |
sb.append("providerId:");
|
|
|
2274 |
sb.append(this.providerId);
|
|
|
2275 |
first = false;
|
|
|
2276 |
sb.append(")");
|
|
|
2277 |
return sb.toString();
|
|
|
2278 |
}
|
|
|
2279 |
|
| 3430 |
rajveer |
2280 |
public void validate() throws org.apache.thrift.TException {
|
| 668 |
chandransh |
2281 |
// check for required fields
|
|
|
2282 |
}
|
|
|
2283 |
|
| 3430 |
rajveer |
2284 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
2285 |
try {
|
|
|
2286 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
2287 |
} catch (org.apache.thrift.TException te) {
|
|
|
2288 |
throw new java.io.IOException(te);
|
|
|
2289 |
}
|
|
|
2290 |
}
|
|
|
2291 |
|
|
|
2292 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
2293 |
try {
|
|
|
2294 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
2295 |
} catch (org.apache.thrift.TException te) {
|
|
|
2296 |
throw new java.io.IOException(te);
|
|
|
2297 |
}
|
|
|
2298 |
}
|
|
|
2299 |
|
| 668 |
chandransh |
2300 |
}
|
|
|
2301 |
|
| 3430 |
rajveer |
2302 |
public static class getProvider_result implements org.apache.thrift.TBase<getProvider_result, getProvider_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
2303 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_result");
|
| 668 |
chandransh |
2304 |
|
| 3430 |
rajveer |
2305 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
|
|
|
2306 |
private static final org.apache.thrift.protocol.TField LSE_FIELD_DESC = new org.apache.thrift.protocol.TField("lse", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
| 668 |
chandransh |
2307 |
|
| 3430 |
rajveer |
2308 |
private Provider success; // required
|
|
|
2309 |
private LogisticsServiceException lse; // required
|
| 668 |
chandransh |
2310 |
|
|
|
2311 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
2312 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 668 |
chandransh |
2313 |
SUCCESS((short)0, "success"),
|
|
|
2314 |
LSE((short)1, "lse");
|
|
|
2315 |
|
|
|
2316 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
2317 |
|
|
|
2318 |
static {
|
|
|
2319 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
2320 |
byName.put(field.getFieldName(), field);
|
|
|
2321 |
}
|
|
|
2322 |
}
|
|
|
2323 |
|
|
|
2324 |
/**
|
|
|
2325 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
2326 |
*/
|
|
|
2327 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
2328 |
switch(fieldId) {
|
|
|
2329 |
case 0: // SUCCESS
|
|
|
2330 |
return SUCCESS;
|
|
|
2331 |
case 1: // LSE
|
|
|
2332 |
return LSE;
|
|
|
2333 |
default:
|
|
|
2334 |
return null;
|
|
|
2335 |
}
|
| 668 |
chandransh |
2336 |
}
|
|
|
2337 |
|
|
|
2338 |
/**
|
|
|
2339 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
2340 |
* if it is not found.
|
|
|
2341 |
*/
|
|
|
2342 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
2343 |
_Fields fields = findByThriftId(fieldId);
|
|
|
2344 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
2345 |
return fields;
|
|
|
2346 |
}
|
|
|
2347 |
|
|
|
2348 |
/**
|
|
|
2349 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
2350 |
*/
|
|
|
2351 |
public static _Fields findByName(String name) {
|
|
|
2352 |
return byName.get(name);
|
|
|
2353 |
}
|
|
|
2354 |
|
|
|
2355 |
private final short _thriftId;
|
|
|
2356 |
private final String _fieldName;
|
|
|
2357 |
|
|
|
2358 |
_Fields(short thriftId, String fieldName) {
|
|
|
2359 |
_thriftId = thriftId;
|
|
|
2360 |
_fieldName = fieldName;
|
|
|
2361 |
}
|
|
|
2362 |
|
|
|
2363 |
public short getThriftFieldId() {
|
|
|
2364 |
return _thriftId;
|
|
|
2365 |
}
|
|
|
2366 |
|
|
|
2367 |
public String getFieldName() {
|
|
|
2368 |
return _fieldName;
|
|
|
2369 |
}
|
|
|
2370 |
}
|
|
|
2371 |
|
|
|
2372 |
// isset id assignments
|
|
|
2373 |
|
| 3430 |
rajveer |
2374 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 668 |
chandransh |
2375 |
static {
|
| 3430 |
rajveer |
2376 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
2377 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2378 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class)));
|
|
|
2379 |
tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2380 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
2381 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
2382 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_result.class, metaDataMap);
|
| 668 |
chandransh |
2383 |
}
|
|
|
2384 |
|
|
|
2385 |
public getProvider_result() {
|
|
|
2386 |
}
|
|
|
2387 |
|
|
|
2388 |
public getProvider_result(
|
|
|
2389 |
Provider success,
|
|
|
2390 |
LogisticsServiceException lse)
|
|
|
2391 |
{
|
|
|
2392 |
this();
|
|
|
2393 |
this.success = success;
|
|
|
2394 |
this.lse = lse;
|
|
|
2395 |
}
|
|
|
2396 |
|
|
|
2397 |
/**
|
|
|
2398 |
* Performs a deep copy on <i>other</i>.
|
|
|
2399 |
*/
|
|
|
2400 |
public getProvider_result(getProvider_result other) {
|
|
|
2401 |
if (other.isSetSuccess()) {
|
|
|
2402 |
this.success = new Provider(other.success);
|
|
|
2403 |
}
|
|
|
2404 |
if (other.isSetLse()) {
|
|
|
2405 |
this.lse = new LogisticsServiceException(other.lse);
|
|
|
2406 |
}
|
|
|
2407 |
}
|
|
|
2408 |
|
|
|
2409 |
public getProvider_result deepCopy() {
|
|
|
2410 |
return new getProvider_result(this);
|
|
|
2411 |
}
|
|
|
2412 |
|
| 3430 |
rajveer |
2413 |
@Override
|
|
|
2414 |
public void clear() {
|
|
|
2415 |
this.success = null;
|
|
|
2416 |
this.lse = null;
|
| 668 |
chandransh |
2417 |
}
|
|
|
2418 |
|
|
|
2419 |
public Provider getSuccess() {
|
|
|
2420 |
return this.success;
|
|
|
2421 |
}
|
|
|
2422 |
|
| 3430 |
rajveer |
2423 |
public void setSuccess(Provider success) {
|
| 668 |
chandransh |
2424 |
this.success = success;
|
|
|
2425 |
}
|
|
|
2426 |
|
|
|
2427 |
public void unsetSuccess() {
|
|
|
2428 |
this.success = null;
|
|
|
2429 |
}
|
|
|
2430 |
|
| 3430 |
rajveer |
2431 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 668 |
chandransh |
2432 |
public boolean isSetSuccess() {
|
|
|
2433 |
return this.success != null;
|
|
|
2434 |
}
|
|
|
2435 |
|
|
|
2436 |
public void setSuccessIsSet(boolean value) {
|
|
|
2437 |
if (!value) {
|
|
|
2438 |
this.success = null;
|
|
|
2439 |
}
|
|
|
2440 |
}
|
|
|
2441 |
|
|
|
2442 |
public LogisticsServiceException getLse() {
|
|
|
2443 |
return this.lse;
|
|
|
2444 |
}
|
|
|
2445 |
|
| 3430 |
rajveer |
2446 |
public void setLse(LogisticsServiceException lse) {
|
| 668 |
chandransh |
2447 |
this.lse = lse;
|
|
|
2448 |
}
|
|
|
2449 |
|
|
|
2450 |
public void unsetLse() {
|
|
|
2451 |
this.lse = null;
|
|
|
2452 |
}
|
|
|
2453 |
|
| 3430 |
rajveer |
2454 |
/** Returns true if field lse is set (has been assigned a value) and false otherwise */
|
| 668 |
chandransh |
2455 |
public boolean isSetLse() {
|
|
|
2456 |
return this.lse != null;
|
|
|
2457 |
}
|
|
|
2458 |
|
|
|
2459 |
public void setLseIsSet(boolean value) {
|
|
|
2460 |
if (!value) {
|
|
|
2461 |
this.lse = null;
|
|
|
2462 |
}
|
|
|
2463 |
}
|
|
|
2464 |
|
|
|
2465 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
2466 |
switch (field) {
|
|
|
2467 |
case SUCCESS:
|
|
|
2468 |
if (value == null) {
|
|
|
2469 |
unsetSuccess();
|
|
|
2470 |
} else {
|
|
|
2471 |
setSuccess((Provider)value);
|
|
|
2472 |
}
|
|
|
2473 |
break;
|
|
|
2474 |
|
|
|
2475 |
case LSE:
|
|
|
2476 |
if (value == null) {
|
|
|
2477 |
unsetLse();
|
|
|
2478 |
} else {
|
|
|
2479 |
setLse((LogisticsServiceException)value);
|
|
|
2480 |
}
|
|
|
2481 |
break;
|
|
|
2482 |
|
|
|
2483 |
}
|
|
|
2484 |
}
|
|
|
2485 |
|
|
|
2486 |
public Object getFieldValue(_Fields field) {
|
|
|
2487 |
switch (field) {
|
|
|
2488 |
case SUCCESS:
|
|
|
2489 |
return getSuccess();
|
|
|
2490 |
|
|
|
2491 |
case LSE:
|
|
|
2492 |
return getLse();
|
|
|
2493 |
|
|
|
2494 |
}
|
|
|
2495 |
throw new IllegalStateException();
|
|
|
2496 |
}
|
|
|
2497 |
|
| 3430 |
rajveer |
2498 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
2499 |
public boolean isSet(_Fields field) {
|
|
|
2500 |
if (field == null) {
|
|
|
2501 |
throw new IllegalArgumentException();
|
|
|
2502 |
}
|
| 668 |
chandransh |
2503 |
|
|
|
2504 |
switch (field) {
|
|
|
2505 |
case SUCCESS:
|
|
|
2506 |
return isSetSuccess();
|
|
|
2507 |
case LSE:
|
|
|
2508 |
return isSetLse();
|
|
|
2509 |
}
|
|
|
2510 |
throw new IllegalStateException();
|
|
|
2511 |
}
|
|
|
2512 |
|
|
|
2513 |
@Override
|
|
|
2514 |
public boolean equals(Object that) {
|
|
|
2515 |
if (that == null)
|
|
|
2516 |
return false;
|
|
|
2517 |
if (that instanceof getProvider_result)
|
|
|
2518 |
return this.equals((getProvider_result)that);
|
|
|
2519 |
return false;
|
|
|
2520 |
}
|
|
|
2521 |
|
|
|
2522 |
public boolean equals(getProvider_result that) {
|
|
|
2523 |
if (that == null)
|
|
|
2524 |
return false;
|
|
|
2525 |
|
|
|
2526 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
2527 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
2528 |
if (this_present_success || that_present_success) {
|
|
|
2529 |
if (!(this_present_success && that_present_success))
|
|
|
2530 |
return false;
|
|
|
2531 |
if (!this.success.equals(that.success))
|
|
|
2532 |
return false;
|
|
|
2533 |
}
|
|
|
2534 |
|
|
|
2535 |
boolean this_present_lse = true && this.isSetLse();
|
|
|
2536 |
boolean that_present_lse = true && that.isSetLse();
|
|
|
2537 |
if (this_present_lse || that_present_lse) {
|
|
|
2538 |
if (!(this_present_lse && that_present_lse))
|
|
|
2539 |
return false;
|
|
|
2540 |
if (!this.lse.equals(that.lse))
|
|
|
2541 |
return false;
|
|
|
2542 |
}
|
|
|
2543 |
|
|
|
2544 |
return true;
|
|
|
2545 |
}
|
|
|
2546 |
|
|
|
2547 |
@Override
|
|
|
2548 |
public int hashCode() {
|
|
|
2549 |
return 0;
|
|
|
2550 |
}
|
|
|
2551 |
|
| 3430 |
rajveer |
2552 |
public int compareTo(getProvider_result other) {
|
|
|
2553 |
if (!getClass().equals(other.getClass())) {
|
|
|
2554 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
2555 |
}
|
|
|
2556 |
|
|
|
2557 |
int lastComparison = 0;
|
|
|
2558 |
getProvider_result typedOther = (getProvider_result)other;
|
|
|
2559 |
|
|
|
2560 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
2561 |
if (lastComparison != 0) {
|
|
|
2562 |
return lastComparison;
|
|
|
2563 |
}
|
|
|
2564 |
if (isSetSuccess()) {
|
|
|
2565 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
2566 |
if (lastComparison != 0) {
|
|
|
2567 |
return lastComparison;
|
|
|
2568 |
}
|
|
|
2569 |
}
|
|
|
2570 |
lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
|
|
|
2571 |
if (lastComparison != 0) {
|
|
|
2572 |
return lastComparison;
|
|
|
2573 |
}
|
|
|
2574 |
if (isSetLse()) {
|
|
|
2575 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
|
|
|
2576 |
if (lastComparison != 0) {
|
|
|
2577 |
return lastComparison;
|
|
|
2578 |
}
|
|
|
2579 |
}
|
|
|
2580 |
return 0;
|
|
|
2581 |
}
|
|
|
2582 |
|
|
|
2583 |
public _Fields fieldForId(int fieldId) {
|
|
|
2584 |
return _Fields.findByThriftId(fieldId);
|
|
|
2585 |
}
|
|
|
2586 |
|
|
|
2587 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
2588 |
org.apache.thrift.protocol.TField field;
|
| 668 |
chandransh |
2589 |
iprot.readStructBegin();
|
|
|
2590 |
while (true)
|
|
|
2591 |
{
|
|
|
2592 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
2593 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 668 |
chandransh |
2594 |
break;
|
|
|
2595 |
}
|
| 3430 |
rajveer |
2596 |
switch (field.id) {
|
|
|
2597 |
case 0: // SUCCESS
|
|
|
2598 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
2599 |
this.success = new Provider();
|
|
|
2600 |
this.success.read(iprot);
|
|
|
2601 |
} else {
|
|
|
2602 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2603 |
}
|
|
|
2604 |
break;
|
|
|
2605 |
case 1: // LSE
|
|
|
2606 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
2607 |
this.lse = new LogisticsServiceException();
|
|
|
2608 |
this.lse.read(iprot);
|
|
|
2609 |
} else {
|
|
|
2610 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2611 |
}
|
|
|
2612 |
break;
|
|
|
2613 |
default:
|
|
|
2614 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 668 |
chandransh |
2615 |
}
|
| 3430 |
rajveer |
2616 |
iprot.readFieldEnd();
|
| 668 |
chandransh |
2617 |
}
|
|
|
2618 |
iprot.readStructEnd();
|
|
|
2619 |
validate();
|
|
|
2620 |
}
|
|
|
2621 |
|
| 3430 |
rajveer |
2622 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 668 |
chandransh |
2623 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
2624 |
|
|
|
2625 |
if (this.isSetSuccess()) {
|
|
|
2626 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
2627 |
this.success.write(oprot);
|
|
|
2628 |
oprot.writeFieldEnd();
|
|
|
2629 |
} else if (this.isSetLse()) {
|
|
|
2630 |
oprot.writeFieldBegin(LSE_FIELD_DESC);
|
|
|
2631 |
this.lse.write(oprot);
|
|
|
2632 |
oprot.writeFieldEnd();
|
|
|
2633 |
}
|
|
|
2634 |
oprot.writeFieldStop();
|
|
|
2635 |
oprot.writeStructEnd();
|
|
|
2636 |
}
|
|
|
2637 |
|
|
|
2638 |
@Override
|
|
|
2639 |
public String toString() {
|
|
|
2640 |
StringBuilder sb = new StringBuilder("getProvider_result(");
|
|
|
2641 |
boolean first = true;
|
|
|
2642 |
|
|
|
2643 |
sb.append("success:");
|
|
|
2644 |
if (this.success == null) {
|
|
|
2645 |
sb.append("null");
|
|
|
2646 |
} else {
|
|
|
2647 |
sb.append(this.success);
|
|
|
2648 |
}
|
|
|
2649 |
first = false;
|
|
|
2650 |
if (!first) sb.append(", ");
|
|
|
2651 |
sb.append("lse:");
|
|
|
2652 |
if (this.lse == null) {
|
|
|
2653 |
sb.append("null");
|
|
|
2654 |
} else {
|
|
|
2655 |
sb.append(this.lse);
|
|
|
2656 |
}
|
|
|
2657 |
first = false;
|
|
|
2658 |
sb.append(")");
|
|
|
2659 |
return sb.toString();
|
|
|
2660 |
}
|
|
|
2661 |
|
| 3430 |
rajveer |
2662 |
public void validate() throws org.apache.thrift.TException {
|
| 668 |
chandransh |
2663 |
// check for required fields
|
|
|
2664 |
}
|
|
|
2665 |
|
| 3430 |
rajveer |
2666 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
2667 |
try {
|
|
|
2668 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
2669 |
} catch (org.apache.thrift.TException te) {
|
|
|
2670 |
throw new java.io.IOException(te);
|
|
|
2671 |
}
|
|
|
2672 |
}
|
|
|
2673 |
|
|
|
2674 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
2675 |
try {
|
|
|
2676 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
2677 |
} catch (org.apache.thrift.TException te) {
|
|
|
2678 |
throw new java.io.IOException(te);
|
|
|
2679 |
}
|
|
|
2680 |
}
|
|
|
2681 |
|
| 668 |
chandransh |
2682 |
}
|
|
|
2683 |
|
| 3430 |
rajveer |
2684 |
public static class getAllProviders_args implements org.apache.thrift.TBase<getAllProviders_args, getAllProviders_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
2685 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_args");
|
| 674 |
chandransh |
2686 |
|
|
|
2687 |
|
|
|
2688 |
|
|
|
2689 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
2690 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 674 |
chandransh |
2691 |
;
|
|
|
2692 |
|
|
|
2693 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
2694 |
|
|
|
2695 |
static {
|
|
|
2696 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
2697 |
byName.put(field.getFieldName(), field);
|
|
|
2698 |
}
|
|
|
2699 |
}
|
|
|
2700 |
|
|
|
2701 |
/**
|
|
|
2702 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
2703 |
*/
|
|
|
2704 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
2705 |
switch(fieldId) {
|
|
|
2706 |
default:
|
|
|
2707 |
return null;
|
|
|
2708 |
}
|
| 674 |
chandransh |
2709 |
}
|
|
|
2710 |
|
|
|
2711 |
/**
|
|
|
2712 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
2713 |
* if it is not found.
|
|
|
2714 |
*/
|
|
|
2715 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
2716 |
_Fields fields = findByThriftId(fieldId);
|
|
|
2717 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
2718 |
return fields;
|
|
|
2719 |
}
|
|
|
2720 |
|
|
|
2721 |
/**
|
|
|
2722 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
2723 |
*/
|
|
|
2724 |
public static _Fields findByName(String name) {
|
|
|
2725 |
return byName.get(name);
|
|
|
2726 |
}
|
|
|
2727 |
|
|
|
2728 |
private final short _thriftId;
|
|
|
2729 |
private final String _fieldName;
|
|
|
2730 |
|
|
|
2731 |
_Fields(short thriftId, String fieldName) {
|
|
|
2732 |
_thriftId = thriftId;
|
|
|
2733 |
_fieldName = fieldName;
|
|
|
2734 |
}
|
|
|
2735 |
|
|
|
2736 |
public short getThriftFieldId() {
|
|
|
2737 |
return _thriftId;
|
|
|
2738 |
}
|
|
|
2739 |
|
|
|
2740 |
public String getFieldName() {
|
|
|
2741 |
return _fieldName;
|
|
|
2742 |
}
|
|
|
2743 |
}
|
| 3430 |
rajveer |
2744 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 674 |
chandransh |
2745 |
static {
|
| 3430 |
rajveer |
2746 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
2747 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
2748 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_args.class, metaDataMap);
|
| 674 |
chandransh |
2749 |
}
|
|
|
2750 |
|
|
|
2751 |
public getAllProviders_args() {
|
|
|
2752 |
}
|
|
|
2753 |
|
|
|
2754 |
/**
|
|
|
2755 |
* Performs a deep copy on <i>other</i>.
|
|
|
2756 |
*/
|
|
|
2757 |
public getAllProviders_args(getAllProviders_args other) {
|
|
|
2758 |
}
|
|
|
2759 |
|
|
|
2760 |
public getAllProviders_args deepCopy() {
|
|
|
2761 |
return new getAllProviders_args(this);
|
|
|
2762 |
}
|
|
|
2763 |
|
| 3430 |
rajveer |
2764 |
@Override
|
|
|
2765 |
public void clear() {
|
| 674 |
chandransh |
2766 |
}
|
|
|
2767 |
|
|
|
2768 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
2769 |
switch (field) {
|
|
|
2770 |
}
|
|
|
2771 |
}
|
|
|
2772 |
|
|
|
2773 |
public Object getFieldValue(_Fields field) {
|
|
|
2774 |
switch (field) {
|
|
|
2775 |
}
|
|
|
2776 |
throw new IllegalStateException();
|
|
|
2777 |
}
|
|
|
2778 |
|
| 3430 |
rajveer |
2779 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
2780 |
public boolean isSet(_Fields field) {
|
|
|
2781 |
if (field == null) {
|
|
|
2782 |
throw new IllegalArgumentException();
|
|
|
2783 |
}
|
| 674 |
chandransh |
2784 |
|
|
|
2785 |
switch (field) {
|
|
|
2786 |
}
|
|
|
2787 |
throw new IllegalStateException();
|
|
|
2788 |
}
|
|
|
2789 |
|
|
|
2790 |
@Override
|
|
|
2791 |
public boolean equals(Object that) {
|
|
|
2792 |
if (that == null)
|
|
|
2793 |
return false;
|
|
|
2794 |
if (that instanceof getAllProviders_args)
|
|
|
2795 |
return this.equals((getAllProviders_args)that);
|
|
|
2796 |
return false;
|
|
|
2797 |
}
|
|
|
2798 |
|
|
|
2799 |
public boolean equals(getAllProviders_args that) {
|
|
|
2800 |
if (that == null)
|
|
|
2801 |
return false;
|
|
|
2802 |
|
|
|
2803 |
return true;
|
|
|
2804 |
}
|
|
|
2805 |
|
|
|
2806 |
@Override
|
|
|
2807 |
public int hashCode() {
|
|
|
2808 |
return 0;
|
|
|
2809 |
}
|
|
|
2810 |
|
|
|
2811 |
public int compareTo(getAllProviders_args other) {
|
|
|
2812 |
if (!getClass().equals(other.getClass())) {
|
|
|
2813 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
2814 |
}
|
|
|
2815 |
|
|
|
2816 |
int lastComparison = 0;
|
|
|
2817 |
getAllProviders_args typedOther = (getAllProviders_args)other;
|
|
|
2818 |
|
|
|
2819 |
return 0;
|
|
|
2820 |
}
|
|
|
2821 |
|
| 3430 |
rajveer |
2822 |
public _Fields fieldForId(int fieldId) {
|
|
|
2823 |
return _Fields.findByThriftId(fieldId);
|
|
|
2824 |
}
|
|
|
2825 |
|
|
|
2826 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
2827 |
org.apache.thrift.protocol.TField field;
|
| 674 |
chandransh |
2828 |
iprot.readStructBegin();
|
|
|
2829 |
while (true)
|
|
|
2830 |
{
|
|
|
2831 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
2832 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 674 |
chandransh |
2833 |
break;
|
|
|
2834 |
}
|
| 3430 |
rajveer |
2835 |
switch (field.id) {
|
|
|
2836 |
default:
|
|
|
2837 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 674 |
chandransh |
2838 |
}
|
| 3430 |
rajveer |
2839 |
iprot.readFieldEnd();
|
| 674 |
chandransh |
2840 |
}
|
|
|
2841 |
iprot.readStructEnd();
|
|
|
2842 |
validate();
|
|
|
2843 |
}
|
|
|
2844 |
|
| 3430 |
rajveer |
2845 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 674 |
chandransh |
2846 |
validate();
|
|
|
2847 |
|
|
|
2848 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
2849 |
oprot.writeFieldStop();
|
|
|
2850 |
oprot.writeStructEnd();
|
|
|
2851 |
}
|
|
|
2852 |
|
|
|
2853 |
@Override
|
|
|
2854 |
public String toString() {
|
|
|
2855 |
StringBuilder sb = new StringBuilder("getAllProviders_args(");
|
|
|
2856 |
boolean first = true;
|
|
|
2857 |
|
|
|
2858 |
sb.append(")");
|
|
|
2859 |
return sb.toString();
|
|
|
2860 |
}
|
|
|
2861 |
|
| 3430 |
rajveer |
2862 |
public void validate() throws org.apache.thrift.TException {
|
| 674 |
chandransh |
2863 |
// check for required fields
|
|
|
2864 |
}
|
|
|
2865 |
|
| 3430 |
rajveer |
2866 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
2867 |
try {
|
|
|
2868 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
2869 |
} catch (org.apache.thrift.TException te) {
|
|
|
2870 |
throw new java.io.IOException(te);
|
|
|
2871 |
}
|
|
|
2872 |
}
|
|
|
2873 |
|
|
|
2874 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
2875 |
try {
|
|
|
2876 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
2877 |
} catch (org.apache.thrift.TException te) {
|
|
|
2878 |
throw new java.io.IOException(te);
|
|
|
2879 |
}
|
|
|
2880 |
}
|
|
|
2881 |
|
| 674 |
chandransh |
2882 |
}
|
|
|
2883 |
|
| 3430 |
rajveer |
2884 |
public static class getAllProviders_result implements org.apache.thrift.TBase<getAllProviders_result, getAllProviders_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
2885 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_result");
|
| 674 |
chandransh |
2886 |
|
| 3430 |
rajveer |
2887 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
|
|
|
2888 |
private static final org.apache.thrift.protocol.TField LSE_FIELD_DESC = new org.apache.thrift.protocol.TField("lse", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
| 674 |
chandransh |
2889 |
|
| 3430 |
rajveer |
2890 |
private List<Provider> success; // required
|
|
|
2891 |
private LogisticsServiceException lse; // required
|
| 674 |
chandransh |
2892 |
|
|
|
2893 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
2894 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 674 |
chandransh |
2895 |
SUCCESS((short)0, "success"),
|
|
|
2896 |
LSE((short)1, "lse");
|
|
|
2897 |
|
|
|
2898 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
2899 |
|
|
|
2900 |
static {
|
|
|
2901 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
2902 |
byName.put(field.getFieldName(), field);
|
|
|
2903 |
}
|
|
|
2904 |
}
|
|
|
2905 |
|
|
|
2906 |
/**
|
|
|
2907 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
2908 |
*/
|
|
|
2909 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
2910 |
switch(fieldId) {
|
|
|
2911 |
case 0: // SUCCESS
|
|
|
2912 |
return SUCCESS;
|
|
|
2913 |
case 1: // LSE
|
|
|
2914 |
return LSE;
|
|
|
2915 |
default:
|
|
|
2916 |
return null;
|
|
|
2917 |
}
|
| 674 |
chandransh |
2918 |
}
|
|
|
2919 |
|
|
|
2920 |
/**
|
|
|
2921 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
2922 |
* if it is not found.
|
|
|
2923 |
*/
|
|
|
2924 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
2925 |
_Fields fields = findByThriftId(fieldId);
|
|
|
2926 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
2927 |
return fields;
|
|
|
2928 |
}
|
|
|
2929 |
|
|
|
2930 |
/**
|
|
|
2931 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
2932 |
*/
|
|
|
2933 |
public static _Fields findByName(String name) {
|
|
|
2934 |
return byName.get(name);
|
|
|
2935 |
}
|
|
|
2936 |
|
|
|
2937 |
private final short _thriftId;
|
|
|
2938 |
private final String _fieldName;
|
|
|
2939 |
|
|
|
2940 |
_Fields(short thriftId, String fieldName) {
|
|
|
2941 |
_thriftId = thriftId;
|
|
|
2942 |
_fieldName = fieldName;
|
|
|
2943 |
}
|
|
|
2944 |
|
|
|
2945 |
public short getThriftFieldId() {
|
|
|
2946 |
return _thriftId;
|
|
|
2947 |
}
|
|
|
2948 |
|
|
|
2949 |
public String getFieldName() {
|
|
|
2950 |
return _fieldName;
|
|
|
2951 |
}
|
|
|
2952 |
}
|
|
|
2953 |
|
|
|
2954 |
// isset id assignments
|
|
|
2955 |
|
| 3430 |
rajveer |
2956 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 674 |
chandransh |
2957 |
static {
|
| 3430 |
rajveer |
2958 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
2959 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2960 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
2961 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class))));
|
|
|
2962 |
tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2963 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
2964 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
2965 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_result.class, metaDataMap);
|
| 674 |
chandransh |
2966 |
}
|
|
|
2967 |
|
|
|
2968 |
public getAllProviders_result() {
|
|
|
2969 |
}
|
|
|
2970 |
|
|
|
2971 |
public getAllProviders_result(
|
|
|
2972 |
List<Provider> success,
|
|
|
2973 |
LogisticsServiceException lse)
|
|
|
2974 |
{
|
|
|
2975 |
this();
|
|
|
2976 |
this.success = success;
|
|
|
2977 |
this.lse = lse;
|
|
|
2978 |
}
|
|
|
2979 |
|
|
|
2980 |
/**
|
|
|
2981 |
* Performs a deep copy on <i>other</i>.
|
|
|
2982 |
*/
|
|
|
2983 |
public getAllProviders_result(getAllProviders_result other) {
|
|
|
2984 |
if (other.isSetSuccess()) {
|
|
|
2985 |
List<Provider> __this__success = new ArrayList<Provider>();
|
|
|
2986 |
for (Provider other_element : other.success) {
|
|
|
2987 |
__this__success.add(new Provider(other_element));
|
|
|
2988 |
}
|
|
|
2989 |
this.success = __this__success;
|
|
|
2990 |
}
|
|
|
2991 |
if (other.isSetLse()) {
|
|
|
2992 |
this.lse = new LogisticsServiceException(other.lse);
|
|
|
2993 |
}
|
|
|
2994 |
}
|
|
|
2995 |
|
|
|
2996 |
public getAllProviders_result deepCopy() {
|
|
|
2997 |
return new getAllProviders_result(this);
|
|
|
2998 |
}
|
|
|
2999 |
|
| 3430 |
rajveer |
3000 |
@Override
|
|
|
3001 |
public void clear() {
|
|
|
3002 |
this.success = null;
|
|
|
3003 |
this.lse = null;
|
| 674 |
chandransh |
3004 |
}
|
|
|
3005 |
|
|
|
3006 |
public int getSuccessSize() {
|
|
|
3007 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
3008 |
}
|
|
|
3009 |
|
|
|
3010 |
public java.util.Iterator<Provider> getSuccessIterator() {
|
|
|
3011 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
3012 |
}
|
|
|
3013 |
|
|
|
3014 |
public void addToSuccess(Provider elem) {
|
|
|
3015 |
if (this.success == null) {
|
|
|
3016 |
this.success = new ArrayList<Provider>();
|
|
|
3017 |
}
|
|
|
3018 |
this.success.add(elem);
|
|
|
3019 |
}
|
|
|
3020 |
|
|
|
3021 |
public List<Provider> getSuccess() {
|
|
|
3022 |
return this.success;
|
|
|
3023 |
}
|
|
|
3024 |
|
| 3430 |
rajveer |
3025 |
public void setSuccess(List<Provider> success) {
|
| 674 |
chandransh |
3026 |
this.success = success;
|
|
|
3027 |
}
|
|
|
3028 |
|
|
|
3029 |
public void unsetSuccess() {
|
|
|
3030 |
this.success = null;
|
|
|
3031 |
}
|
|
|
3032 |
|
| 3430 |
rajveer |
3033 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 674 |
chandransh |
3034 |
public boolean isSetSuccess() {
|
|
|
3035 |
return this.success != null;
|
|
|
3036 |
}
|
|
|
3037 |
|
|
|
3038 |
public void setSuccessIsSet(boolean value) {
|
|
|
3039 |
if (!value) {
|
|
|
3040 |
this.success = null;
|
|
|
3041 |
}
|
|
|
3042 |
}
|
|
|
3043 |
|
|
|
3044 |
public LogisticsServiceException getLse() {
|
|
|
3045 |
return this.lse;
|
|
|
3046 |
}
|
|
|
3047 |
|
| 3430 |
rajveer |
3048 |
public void setLse(LogisticsServiceException lse) {
|
| 674 |
chandransh |
3049 |
this.lse = lse;
|
|
|
3050 |
}
|
|
|
3051 |
|
|
|
3052 |
public void unsetLse() {
|
|
|
3053 |
this.lse = null;
|
|
|
3054 |
}
|
|
|
3055 |
|
| 3430 |
rajveer |
3056 |
/** Returns true if field lse is set (has been assigned a value) and false otherwise */
|
| 674 |
chandransh |
3057 |
public boolean isSetLse() {
|
|
|
3058 |
return this.lse != null;
|
|
|
3059 |
}
|
|
|
3060 |
|
|
|
3061 |
public void setLseIsSet(boolean value) {
|
|
|
3062 |
if (!value) {
|
|
|
3063 |
this.lse = null;
|
|
|
3064 |
}
|
|
|
3065 |
}
|
|
|
3066 |
|
|
|
3067 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
3068 |
switch (field) {
|
|
|
3069 |
case SUCCESS:
|
|
|
3070 |
if (value == null) {
|
|
|
3071 |
unsetSuccess();
|
|
|
3072 |
} else {
|
|
|
3073 |
setSuccess((List<Provider>)value);
|
|
|
3074 |
}
|
|
|
3075 |
break;
|
|
|
3076 |
|
|
|
3077 |
case LSE:
|
|
|
3078 |
if (value == null) {
|
|
|
3079 |
unsetLse();
|
|
|
3080 |
} else {
|
|
|
3081 |
setLse((LogisticsServiceException)value);
|
|
|
3082 |
}
|
|
|
3083 |
break;
|
|
|
3084 |
|
|
|
3085 |
}
|
|
|
3086 |
}
|
|
|
3087 |
|
|
|
3088 |
public Object getFieldValue(_Fields field) {
|
|
|
3089 |
switch (field) {
|
|
|
3090 |
case SUCCESS:
|
|
|
3091 |
return getSuccess();
|
|
|
3092 |
|
|
|
3093 |
case LSE:
|
|
|
3094 |
return getLse();
|
|
|
3095 |
|
|
|
3096 |
}
|
|
|
3097 |
throw new IllegalStateException();
|
|
|
3098 |
}
|
|
|
3099 |
|
| 3430 |
rajveer |
3100 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
3101 |
public boolean isSet(_Fields field) {
|
|
|
3102 |
if (field == null) {
|
|
|
3103 |
throw new IllegalArgumentException();
|
|
|
3104 |
}
|
| 674 |
chandransh |
3105 |
|
|
|
3106 |
switch (field) {
|
|
|
3107 |
case SUCCESS:
|
|
|
3108 |
return isSetSuccess();
|
|
|
3109 |
case LSE:
|
|
|
3110 |
return isSetLse();
|
|
|
3111 |
}
|
|
|
3112 |
throw new IllegalStateException();
|
|
|
3113 |
}
|
|
|
3114 |
|
|
|
3115 |
@Override
|
|
|
3116 |
public boolean equals(Object that) {
|
|
|
3117 |
if (that == null)
|
|
|
3118 |
return false;
|
|
|
3119 |
if (that instanceof getAllProviders_result)
|
|
|
3120 |
return this.equals((getAllProviders_result)that);
|
|
|
3121 |
return false;
|
|
|
3122 |
}
|
|
|
3123 |
|
|
|
3124 |
public boolean equals(getAllProviders_result that) {
|
|
|
3125 |
if (that == null)
|
|
|
3126 |
return false;
|
|
|
3127 |
|
|
|
3128 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
3129 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
3130 |
if (this_present_success || that_present_success) {
|
|
|
3131 |
if (!(this_present_success && that_present_success))
|
|
|
3132 |
return false;
|
|
|
3133 |
if (!this.success.equals(that.success))
|
|
|
3134 |
return false;
|
|
|
3135 |
}
|
|
|
3136 |
|
|
|
3137 |
boolean this_present_lse = true && this.isSetLse();
|
|
|
3138 |
boolean that_present_lse = true && that.isSetLse();
|
|
|
3139 |
if (this_present_lse || that_present_lse) {
|
|
|
3140 |
if (!(this_present_lse && that_present_lse))
|
|
|
3141 |
return false;
|
|
|
3142 |
if (!this.lse.equals(that.lse))
|
|
|
3143 |
return false;
|
|
|
3144 |
}
|
|
|
3145 |
|
|
|
3146 |
return true;
|
|
|
3147 |
}
|
|
|
3148 |
|
|
|
3149 |
@Override
|
|
|
3150 |
public int hashCode() {
|
|
|
3151 |
return 0;
|
|
|
3152 |
}
|
|
|
3153 |
|
| 3430 |
rajveer |
3154 |
public int compareTo(getAllProviders_result other) {
|
|
|
3155 |
if (!getClass().equals(other.getClass())) {
|
|
|
3156 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
3157 |
}
|
|
|
3158 |
|
|
|
3159 |
int lastComparison = 0;
|
|
|
3160 |
getAllProviders_result typedOther = (getAllProviders_result)other;
|
|
|
3161 |
|
|
|
3162 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
3163 |
if (lastComparison != 0) {
|
|
|
3164 |
return lastComparison;
|
|
|
3165 |
}
|
|
|
3166 |
if (isSetSuccess()) {
|
|
|
3167 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
3168 |
if (lastComparison != 0) {
|
|
|
3169 |
return lastComparison;
|
|
|
3170 |
}
|
|
|
3171 |
}
|
|
|
3172 |
lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
|
|
|
3173 |
if (lastComparison != 0) {
|
|
|
3174 |
return lastComparison;
|
|
|
3175 |
}
|
|
|
3176 |
if (isSetLse()) {
|
|
|
3177 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
|
|
|
3178 |
if (lastComparison != 0) {
|
|
|
3179 |
return lastComparison;
|
|
|
3180 |
}
|
|
|
3181 |
}
|
|
|
3182 |
return 0;
|
|
|
3183 |
}
|
|
|
3184 |
|
|
|
3185 |
public _Fields fieldForId(int fieldId) {
|
|
|
3186 |
return _Fields.findByThriftId(fieldId);
|
|
|
3187 |
}
|
|
|
3188 |
|
|
|
3189 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
3190 |
org.apache.thrift.protocol.TField field;
|
| 674 |
chandransh |
3191 |
iprot.readStructBegin();
|
|
|
3192 |
while (true)
|
|
|
3193 |
{
|
|
|
3194 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
3195 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 674 |
chandransh |
3196 |
break;
|
|
|
3197 |
}
|
| 3430 |
rajveer |
3198 |
switch (field.id) {
|
|
|
3199 |
case 0: // SUCCESS
|
|
|
3200 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
3201 |
{
|
| 7792 |
anupam.sin |
3202 |
org.apache.thrift.protocol.TList _list4 = iprot.readListBegin();
|
|
|
3203 |
this.success = new ArrayList<Provider>(_list4.size);
|
|
|
3204 |
for (int _i5 = 0; _i5 < _list4.size; ++_i5)
|
| 674 |
chandransh |
3205 |
{
|
| 7792 |
anupam.sin |
3206 |
Provider _elem6; // required
|
|
|
3207 |
_elem6 = new Provider();
|
|
|
3208 |
_elem6.read(iprot);
|
|
|
3209 |
this.success.add(_elem6);
|
| 674 |
chandransh |
3210 |
}
|
| 3430 |
rajveer |
3211 |
iprot.readListEnd();
|
| 674 |
chandransh |
3212 |
}
|
| 3430 |
rajveer |
3213 |
} else {
|
|
|
3214 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3215 |
}
|
|
|
3216 |
break;
|
|
|
3217 |
case 1: // LSE
|
|
|
3218 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
3219 |
this.lse = new LogisticsServiceException();
|
|
|
3220 |
this.lse.read(iprot);
|
|
|
3221 |
} else {
|
|
|
3222 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3223 |
}
|
|
|
3224 |
break;
|
|
|
3225 |
default:
|
|
|
3226 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 674 |
chandransh |
3227 |
}
|
| 3430 |
rajveer |
3228 |
iprot.readFieldEnd();
|
| 674 |
chandransh |
3229 |
}
|
|
|
3230 |
iprot.readStructEnd();
|
|
|
3231 |
validate();
|
|
|
3232 |
}
|
|
|
3233 |
|
| 3430 |
rajveer |
3234 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 674 |
chandransh |
3235 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
3236 |
|
|
|
3237 |
if (this.isSetSuccess()) {
|
|
|
3238 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
3239 |
{
|
| 3430 |
rajveer |
3240 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
| 7792 |
anupam.sin |
3241 |
for (Provider _iter7 : this.success)
|
| 674 |
chandransh |
3242 |
{
|
| 7792 |
anupam.sin |
3243 |
_iter7.write(oprot);
|
| 674 |
chandransh |
3244 |
}
|
|
|
3245 |
oprot.writeListEnd();
|
|
|
3246 |
}
|
|
|
3247 |
oprot.writeFieldEnd();
|
|
|
3248 |
} else if (this.isSetLse()) {
|
|
|
3249 |
oprot.writeFieldBegin(LSE_FIELD_DESC);
|
|
|
3250 |
this.lse.write(oprot);
|
|
|
3251 |
oprot.writeFieldEnd();
|
|
|
3252 |
}
|
|
|
3253 |
oprot.writeFieldStop();
|
|
|
3254 |
oprot.writeStructEnd();
|
|
|
3255 |
}
|
|
|
3256 |
|
|
|
3257 |
@Override
|
|
|
3258 |
public String toString() {
|
|
|
3259 |
StringBuilder sb = new StringBuilder("getAllProviders_result(");
|
|
|
3260 |
boolean first = true;
|
|
|
3261 |
|
|
|
3262 |
sb.append("success:");
|
|
|
3263 |
if (this.success == null) {
|
|
|
3264 |
sb.append("null");
|
|
|
3265 |
} else {
|
|
|
3266 |
sb.append(this.success);
|
|
|
3267 |
}
|
|
|
3268 |
first = false;
|
|
|
3269 |
if (!first) sb.append(", ");
|
|
|
3270 |
sb.append("lse:");
|
|
|
3271 |
if (this.lse == null) {
|
|
|
3272 |
sb.append("null");
|
|
|
3273 |
} else {
|
|
|
3274 |
sb.append(this.lse);
|
|
|
3275 |
}
|
|
|
3276 |
first = false;
|
|
|
3277 |
sb.append(")");
|
|
|
3278 |
return sb.toString();
|
|
|
3279 |
}
|
|
|
3280 |
|
| 3430 |
rajveer |
3281 |
public void validate() throws org.apache.thrift.TException {
|
| 674 |
chandransh |
3282 |
// check for required fields
|
|
|
3283 |
}
|
|
|
3284 |
|
| 3430 |
rajveer |
3285 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
3286 |
try {
|
|
|
3287 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
3288 |
} catch (org.apache.thrift.TException te) {
|
|
|
3289 |
throw new java.io.IOException(te);
|
|
|
3290 |
}
|
|
|
3291 |
}
|
|
|
3292 |
|
|
|
3293 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
3294 |
try {
|
|
|
3295 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
3296 |
} catch (org.apache.thrift.TException te) {
|
|
|
3297 |
throw new java.io.IOException(te);
|
|
|
3298 |
}
|
|
|
3299 |
}
|
|
|
3300 |
|
| 674 |
chandransh |
3301 |
}
|
|
|
3302 |
|
| 3430 |
rajveer |
3303 |
public static class getLogisticsEstimation_args implements org.apache.thrift.TBase<getLogisticsEstimation_args, getLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
3304 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_args");
|
| 471 |
rajveer |
3305 |
|
| 3430 |
rajveer |
3306 |
private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
3307 |
private static final org.apache.thrift.protocol.TField DESTINATION_PIN_FIELD_DESC = new org.apache.thrift.protocol.TField("destination_pin", org.apache.thrift.protocol.TType.STRING, (short)2);
|
| 4630 |
mandeep.dh |
3308 |
private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)3);
|
| 471 |
rajveer |
3309 |
|
| 3430 |
rajveer |
3310 |
private long itemId; // required
|
|
|
3311 |
private String destination_pin; // required
|
| 4630 |
mandeep.dh |
3312 |
private DeliveryType type; // required
|
| 471 |
rajveer |
3313 |
|
|
|
3314 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
3315 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 471 |
rajveer |
3316 |
ITEM_ID((short)1, "itemId"),
|
| 4630 |
mandeep.dh |
3317 |
DESTINATION_PIN((short)2, "destination_pin"),
|
|
|
3318 |
/**
|
|
|
3319 |
*
|
|
|
3320 |
* @see DeliveryType
|
|
|
3321 |
*/
|
|
|
3322 |
TYPE((short)3, "type");
|
| 471 |
rajveer |
3323 |
|
|
|
3324 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
3325 |
|
|
|
3326 |
static {
|
|
|
3327 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
3328 |
byName.put(field.getFieldName(), field);
|
|
|
3329 |
}
|
|
|
3330 |
}
|
|
|
3331 |
|
|
|
3332 |
/**
|
|
|
3333 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
3334 |
*/
|
|
|
3335 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
3336 |
switch(fieldId) {
|
|
|
3337 |
case 1: // ITEM_ID
|
|
|
3338 |
return ITEM_ID;
|
|
|
3339 |
case 2: // DESTINATION_PIN
|
|
|
3340 |
return DESTINATION_PIN;
|
| 4630 |
mandeep.dh |
3341 |
case 3: // TYPE
|
|
|
3342 |
return TYPE;
|
| 3430 |
rajveer |
3343 |
default:
|
|
|
3344 |
return null;
|
|
|
3345 |
}
|
| 471 |
rajveer |
3346 |
}
|
|
|
3347 |
|
|
|
3348 |
/**
|
|
|
3349 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
3350 |
* if it is not found.
|
|
|
3351 |
*/
|
|
|
3352 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
3353 |
_Fields fields = findByThriftId(fieldId);
|
|
|
3354 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
3355 |
return fields;
|
|
|
3356 |
}
|
|
|
3357 |
|
|
|
3358 |
/**
|
|
|
3359 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
3360 |
*/
|
|
|
3361 |
public static _Fields findByName(String name) {
|
|
|
3362 |
return byName.get(name);
|
|
|
3363 |
}
|
|
|
3364 |
|
|
|
3365 |
private final short _thriftId;
|
|
|
3366 |
private final String _fieldName;
|
|
|
3367 |
|
|
|
3368 |
_Fields(short thriftId, String fieldName) {
|
|
|
3369 |
_thriftId = thriftId;
|
|
|
3370 |
_fieldName = fieldName;
|
|
|
3371 |
}
|
|
|
3372 |
|
|
|
3373 |
public short getThriftFieldId() {
|
|
|
3374 |
return _thriftId;
|
|
|
3375 |
}
|
|
|
3376 |
|
|
|
3377 |
public String getFieldName() {
|
|
|
3378 |
return _fieldName;
|
|
|
3379 |
}
|
|
|
3380 |
}
|
|
|
3381 |
|
|
|
3382 |
// isset id assignments
|
|
|
3383 |
private static final int __ITEMID_ISSET_ID = 0;
|
| 648 |
chandransh |
3384 |
private BitSet __isset_bit_vector = new BitSet(1);
|
| 471 |
rajveer |
3385 |
|
| 3430 |
rajveer |
3386 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 471 |
rajveer |
3387 |
static {
|
| 3430 |
rajveer |
3388 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
3389 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3390 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
3391 |
tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3392 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 4630 |
mandeep.dh |
3393 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3394 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
|
| 3430 |
rajveer |
3395 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
3396 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_args.class, metaDataMap);
|
| 471 |
rajveer |
3397 |
}
|
|
|
3398 |
|
|
|
3399 |
public getLogisticsEstimation_args() {
|
|
|
3400 |
}
|
|
|
3401 |
|
|
|
3402 |
public getLogisticsEstimation_args(
|
|
|
3403 |
long itemId,
|
| 4630 |
mandeep.dh |
3404 |
String destination_pin,
|
|
|
3405 |
DeliveryType type)
|
| 471 |
rajveer |
3406 |
{
|
|
|
3407 |
this();
|
|
|
3408 |
this.itemId = itemId;
|
|
|
3409 |
setItemIdIsSet(true);
|
|
|
3410 |
this.destination_pin = destination_pin;
|
| 4630 |
mandeep.dh |
3411 |
this.type = type;
|
| 471 |
rajveer |
3412 |
}
|
|
|
3413 |
|
|
|
3414 |
/**
|
|
|
3415 |
* Performs a deep copy on <i>other</i>.
|
|
|
3416 |
*/
|
|
|
3417 |
public getLogisticsEstimation_args(getLogisticsEstimation_args other) {
|
|
|
3418 |
__isset_bit_vector.clear();
|
|
|
3419 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
3420 |
this.itemId = other.itemId;
|
|
|
3421 |
if (other.isSetDestination_pin()) {
|
|
|
3422 |
this.destination_pin = other.destination_pin;
|
|
|
3423 |
}
|
| 4630 |
mandeep.dh |
3424 |
if (other.isSetType()) {
|
|
|
3425 |
this.type = other.type;
|
|
|
3426 |
}
|
| 471 |
rajveer |
3427 |
}
|
|
|
3428 |
|
|
|
3429 |
public getLogisticsEstimation_args deepCopy() {
|
|
|
3430 |
return new getLogisticsEstimation_args(this);
|
|
|
3431 |
}
|
|
|
3432 |
|
| 3430 |
rajveer |
3433 |
@Override
|
|
|
3434 |
public void clear() {
|
|
|
3435 |
setItemIdIsSet(false);
|
|
|
3436 |
this.itemId = 0;
|
|
|
3437 |
this.destination_pin = null;
|
| 4630 |
mandeep.dh |
3438 |
this.type = null;
|
| 471 |
rajveer |
3439 |
}
|
|
|
3440 |
|
|
|
3441 |
public long getItemId() {
|
|
|
3442 |
return this.itemId;
|
|
|
3443 |
}
|
|
|
3444 |
|
| 3430 |
rajveer |
3445 |
public void setItemId(long itemId) {
|
| 471 |
rajveer |
3446 |
this.itemId = itemId;
|
|
|
3447 |
setItemIdIsSet(true);
|
|
|
3448 |
}
|
|
|
3449 |
|
|
|
3450 |
public void unsetItemId() {
|
|
|
3451 |
__isset_bit_vector.clear(__ITEMID_ISSET_ID);
|
|
|
3452 |
}
|
|
|
3453 |
|
| 3430 |
rajveer |
3454 |
/** Returns true if field itemId is set (has been assigned a value) and false otherwise */
|
| 471 |
rajveer |
3455 |
public boolean isSetItemId() {
|
|
|
3456 |
return __isset_bit_vector.get(__ITEMID_ISSET_ID);
|
|
|
3457 |
}
|
|
|
3458 |
|
|
|
3459 |
public void setItemIdIsSet(boolean value) {
|
|
|
3460 |
__isset_bit_vector.set(__ITEMID_ISSET_ID, value);
|
|
|
3461 |
}
|
|
|
3462 |
|
|
|
3463 |
public String getDestination_pin() {
|
|
|
3464 |
return this.destination_pin;
|
|
|
3465 |
}
|
|
|
3466 |
|
| 3430 |
rajveer |
3467 |
public void setDestination_pin(String destination_pin) {
|
| 471 |
rajveer |
3468 |
this.destination_pin = destination_pin;
|
|
|
3469 |
}
|
|
|
3470 |
|
|
|
3471 |
public void unsetDestination_pin() {
|
|
|
3472 |
this.destination_pin = null;
|
|
|
3473 |
}
|
|
|
3474 |
|
| 3430 |
rajveer |
3475 |
/** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
|
| 471 |
rajveer |
3476 |
public boolean isSetDestination_pin() {
|
|
|
3477 |
return this.destination_pin != null;
|
|
|
3478 |
}
|
|
|
3479 |
|
|
|
3480 |
public void setDestination_pinIsSet(boolean value) {
|
|
|
3481 |
if (!value) {
|
|
|
3482 |
this.destination_pin = null;
|
|
|
3483 |
}
|
|
|
3484 |
}
|
|
|
3485 |
|
| 4630 |
mandeep.dh |
3486 |
/**
|
|
|
3487 |
*
|
|
|
3488 |
* @see DeliveryType
|
|
|
3489 |
*/
|
|
|
3490 |
public DeliveryType getType() {
|
|
|
3491 |
return this.type;
|
|
|
3492 |
}
|
|
|
3493 |
|
|
|
3494 |
/**
|
|
|
3495 |
*
|
|
|
3496 |
* @see DeliveryType
|
|
|
3497 |
*/
|
|
|
3498 |
public void setType(DeliveryType type) {
|
|
|
3499 |
this.type = type;
|
|
|
3500 |
}
|
|
|
3501 |
|
|
|
3502 |
public void unsetType() {
|
|
|
3503 |
this.type = null;
|
|
|
3504 |
}
|
|
|
3505 |
|
|
|
3506 |
/** Returns true if field type is set (has been assigned a value) and false otherwise */
|
|
|
3507 |
public boolean isSetType() {
|
|
|
3508 |
return this.type != null;
|
|
|
3509 |
}
|
|
|
3510 |
|
|
|
3511 |
public void setTypeIsSet(boolean value) {
|
|
|
3512 |
if (!value) {
|
|
|
3513 |
this.type = null;
|
|
|
3514 |
}
|
|
|
3515 |
}
|
|
|
3516 |
|
| 471 |
rajveer |
3517 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
3518 |
switch (field) {
|
|
|
3519 |
case ITEM_ID:
|
|
|
3520 |
if (value == null) {
|
|
|
3521 |
unsetItemId();
|
|
|
3522 |
} else {
|
|
|
3523 |
setItemId((Long)value);
|
|
|
3524 |
}
|
|
|
3525 |
break;
|
|
|
3526 |
|
|
|
3527 |
case DESTINATION_PIN:
|
|
|
3528 |
if (value == null) {
|
|
|
3529 |
unsetDestination_pin();
|
|
|
3530 |
} else {
|
|
|
3531 |
setDestination_pin((String)value);
|
|
|
3532 |
}
|
|
|
3533 |
break;
|
|
|
3534 |
|
| 4630 |
mandeep.dh |
3535 |
case TYPE:
|
|
|
3536 |
if (value == null) {
|
|
|
3537 |
unsetType();
|
|
|
3538 |
} else {
|
|
|
3539 |
setType((DeliveryType)value);
|
|
|
3540 |
}
|
|
|
3541 |
break;
|
|
|
3542 |
|
| 471 |
rajveer |
3543 |
}
|
|
|
3544 |
}
|
|
|
3545 |
|
|
|
3546 |
public Object getFieldValue(_Fields field) {
|
|
|
3547 |
switch (field) {
|
|
|
3548 |
case ITEM_ID:
|
| 3430 |
rajveer |
3549 |
return Long.valueOf(getItemId());
|
| 471 |
rajveer |
3550 |
|
|
|
3551 |
case DESTINATION_PIN:
|
|
|
3552 |
return getDestination_pin();
|
|
|
3553 |
|
| 4630 |
mandeep.dh |
3554 |
case TYPE:
|
|
|
3555 |
return getType();
|
|
|
3556 |
|
| 471 |
rajveer |
3557 |
}
|
|
|
3558 |
throw new IllegalStateException();
|
|
|
3559 |
}
|
|
|
3560 |
|
| 3430 |
rajveer |
3561 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
3562 |
public boolean isSet(_Fields field) {
|
|
|
3563 |
if (field == null) {
|
|
|
3564 |
throw new IllegalArgumentException();
|
|
|
3565 |
}
|
| 471 |
rajveer |
3566 |
|
|
|
3567 |
switch (field) {
|
|
|
3568 |
case ITEM_ID:
|
|
|
3569 |
return isSetItemId();
|
|
|
3570 |
case DESTINATION_PIN:
|
|
|
3571 |
return isSetDestination_pin();
|
| 4630 |
mandeep.dh |
3572 |
case TYPE:
|
|
|
3573 |
return isSetType();
|
| 471 |
rajveer |
3574 |
}
|
|
|
3575 |
throw new IllegalStateException();
|
|
|
3576 |
}
|
|
|
3577 |
|
|
|
3578 |
@Override
|
|
|
3579 |
public boolean equals(Object that) {
|
|
|
3580 |
if (that == null)
|
|
|
3581 |
return false;
|
|
|
3582 |
if (that instanceof getLogisticsEstimation_args)
|
|
|
3583 |
return this.equals((getLogisticsEstimation_args)that);
|
|
|
3584 |
return false;
|
|
|
3585 |
}
|
|
|
3586 |
|
|
|
3587 |
public boolean equals(getLogisticsEstimation_args that) {
|
|
|
3588 |
if (that == null)
|
|
|
3589 |
return false;
|
|
|
3590 |
|
|
|
3591 |
boolean this_present_itemId = true;
|
|
|
3592 |
boolean that_present_itemId = true;
|
|
|
3593 |
if (this_present_itemId || that_present_itemId) {
|
|
|
3594 |
if (!(this_present_itemId && that_present_itemId))
|
|
|
3595 |
return false;
|
|
|
3596 |
if (this.itemId != that.itemId)
|
|
|
3597 |
return false;
|
|
|
3598 |
}
|
|
|
3599 |
|
|
|
3600 |
boolean this_present_destination_pin = true && this.isSetDestination_pin();
|
|
|
3601 |
boolean that_present_destination_pin = true && that.isSetDestination_pin();
|
|
|
3602 |
if (this_present_destination_pin || that_present_destination_pin) {
|
|
|
3603 |
if (!(this_present_destination_pin && that_present_destination_pin))
|
|
|
3604 |
return false;
|
|
|
3605 |
if (!this.destination_pin.equals(that.destination_pin))
|
|
|
3606 |
return false;
|
|
|
3607 |
}
|
|
|
3608 |
|
| 4630 |
mandeep.dh |
3609 |
boolean this_present_type = true && this.isSetType();
|
|
|
3610 |
boolean that_present_type = true && that.isSetType();
|
|
|
3611 |
if (this_present_type || that_present_type) {
|
|
|
3612 |
if (!(this_present_type && that_present_type))
|
|
|
3613 |
return false;
|
|
|
3614 |
if (!this.type.equals(that.type))
|
|
|
3615 |
return false;
|
|
|
3616 |
}
|
|
|
3617 |
|
| 471 |
rajveer |
3618 |
return true;
|
|
|
3619 |
}
|
|
|
3620 |
|
|
|
3621 |
@Override
|
|
|
3622 |
public int hashCode() {
|
|
|
3623 |
return 0;
|
|
|
3624 |
}
|
|
|
3625 |
|
|
|
3626 |
public int compareTo(getLogisticsEstimation_args other) {
|
|
|
3627 |
if (!getClass().equals(other.getClass())) {
|
|
|
3628 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
3629 |
}
|
|
|
3630 |
|
|
|
3631 |
int lastComparison = 0;
|
|
|
3632 |
getLogisticsEstimation_args typedOther = (getLogisticsEstimation_args)other;
|
|
|
3633 |
|
| 3430 |
rajveer |
3634 |
lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
|
| 471 |
rajveer |
3635 |
if (lastComparison != 0) {
|
|
|
3636 |
return lastComparison;
|
|
|
3637 |
}
|
| 3430 |
rajveer |
3638 |
if (isSetItemId()) {
|
|
|
3639 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
|
|
|
3640 |
if (lastComparison != 0) {
|
|
|
3641 |
return lastComparison;
|
|
|
3642 |
}
|
| 471 |
rajveer |
3643 |
}
|
| 3430 |
rajveer |
3644 |
lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
|
| 471 |
rajveer |
3645 |
if (lastComparison != 0) {
|
|
|
3646 |
return lastComparison;
|
|
|
3647 |
}
|
| 3430 |
rajveer |
3648 |
if (isSetDestination_pin()) {
|
|
|
3649 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
|
|
|
3650 |
if (lastComparison != 0) {
|
|
|
3651 |
return lastComparison;
|
|
|
3652 |
}
|
| 471 |
rajveer |
3653 |
}
|
| 4630 |
mandeep.dh |
3654 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
|
|
3655 |
if (lastComparison != 0) {
|
|
|
3656 |
return lastComparison;
|
|
|
3657 |
}
|
|
|
3658 |
if (isSetType()) {
|
|
|
3659 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
|
|
3660 |
if (lastComparison != 0) {
|
|
|
3661 |
return lastComparison;
|
|
|
3662 |
}
|
|
|
3663 |
}
|
| 471 |
rajveer |
3664 |
return 0;
|
|
|
3665 |
}
|
|
|
3666 |
|
| 3430 |
rajveer |
3667 |
public _Fields fieldForId(int fieldId) {
|
|
|
3668 |
return _Fields.findByThriftId(fieldId);
|
|
|
3669 |
}
|
|
|
3670 |
|
|
|
3671 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
3672 |
org.apache.thrift.protocol.TField field;
|
| 471 |
rajveer |
3673 |
iprot.readStructBegin();
|
|
|
3674 |
while (true)
|
|
|
3675 |
{
|
|
|
3676 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
3677 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 471 |
rajveer |
3678 |
break;
|
|
|
3679 |
}
|
| 3430 |
rajveer |
3680 |
switch (field.id) {
|
|
|
3681 |
case 1: // ITEM_ID
|
|
|
3682 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
3683 |
this.itemId = iprot.readI64();
|
|
|
3684 |
setItemIdIsSet(true);
|
|
|
3685 |
} else {
|
|
|
3686 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3687 |
}
|
|
|
3688 |
break;
|
|
|
3689 |
case 2: // DESTINATION_PIN
|
|
|
3690 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
3691 |
this.destination_pin = iprot.readString();
|
|
|
3692 |
} else {
|
|
|
3693 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3694 |
}
|
|
|
3695 |
break;
|
| 4630 |
mandeep.dh |
3696 |
case 3: // TYPE
|
|
|
3697 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
3698 |
this.type = DeliveryType.findByValue(iprot.readI32());
|
|
|
3699 |
} else {
|
|
|
3700 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3701 |
}
|
|
|
3702 |
break;
|
| 3430 |
rajveer |
3703 |
default:
|
|
|
3704 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 471 |
rajveer |
3705 |
}
|
| 3430 |
rajveer |
3706 |
iprot.readFieldEnd();
|
| 471 |
rajveer |
3707 |
}
|
|
|
3708 |
iprot.readStructEnd();
|
|
|
3709 |
validate();
|
|
|
3710 |
}
|
|
|
3711 |
|
| 3430 |
rajveer |
3712 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 471 |
rajveer |
3713 |
validate();
|
|
|
3714 |
|
|
|
3715 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
3716 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
3717 |
oprot.writeI64(this.itemId);
|
|
|
3718 |
oprot.writeFieldEnd();
|
|
|
3719 |
if (this.destination_pin != null) {
|
|
|
3720 |
oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
|
|
|
3721 |
oprot.writeString(this.destination_pin);
|
|
|
3722 |
oprot.writeFieldEnd();
|
|
|
3723 |
}
|
| 4630 |
mandeep.dh |
3724 |
if (this.type != null) {
|
|
|
3725 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
|
|
3726 |
oprot.writeI32(this.type.getValue());
|
|
|
3727 |
oprot.writeFieldEnd();
|
|
|
3728 |
}
|
| 471 |
rajveer |
3729 |
oprot.writeFieldStop();
|
|
|
3730 |
oprot.writeStructEnd();
|
|
|
3731 |
}
|
|
|
3732 |
|
|
|
3733 |
@Override
|
|
|
3734 |
public String toString() {
|
|
|
3735 |
StringBuilder sb = new StringBuilder("getLogisticsEstimation_args(");
|
|
|
3736 |
boolean first = true;
|
|
|
3737 |
|
|
|
3738 |
sb.append("itemId:");
|
|
|
3739 |
sb.append(this.itemId);
|
|
|
3740 |
first = false;
|
|
|
3741 |
if (!first) sb.append(", ");
|
|
|
3742 |
sb.append("destination_pin:");
|
|
|
3743 |
if (this.destination_pin == null) {
|
|
|
3744 |
sb.append("null");
|
|
|
3745 |
} else {
|
|
|
3746 |
sb.append(this.destination_pin);
|
|
|
3747 |
}
|
|
|
3748 |
first = false;
|
| 4630 |
mandeep.dh |
3749 |
if (!first) sb.append(", ");
|
|
|
3750 |
sb.append("type:");
|
|
|
3751 |
if (this.type == null) {
|
|
|
3752 |
sb.append("null");
|
|
|
3753 |
} else {
|
|
|
3754 |
sb.append(this.type);
|
|
|
3755 |
}
|
|
|
3756 |
first = false;
|
| 471 |
rajveer |
3757 |
sb.append(")");
|
|
|
3758 |
return sb.toString();
|
|
|
3759 |
}
|
|
|
3760 |
|
| 3430 |
rajveer |
3761 |
public void validate() throws org.apache.thrift.TException {
|
| 471 |
rajveer |
3762 |
// check for required fields
|
|
|
3763 |
}
|
|
|
3764 |
|
| 3430 |
rajveer |
3765 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
3766 |
try {
|
|
|
3767 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
3768 |
} catch (org.apache.thrift.TException te) {
|
|
|
3769 |
throw new java.io.IOException(te);
|
|
|
3770 |
}
|
|
|
3771 |
}
|
|
|
3772 |
|
|
|
3773 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
3774 |
try {
|
|
|
3775 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
3776 |
} catch (org.apache.thrift.TException te) {
|
|
|
3777 |
throw new java.io.IOException(te);
|
|
|
3778 |
}
|
|
|
3779 |
}
|
|
|
3780 |
|
| 471 |
rajveer |
3781 |
}
|
|
|
3782 |
|
| 3430 |
rajveer |
3783 |
public static class getLogisticsEstimation_result implements org.apache.thrift.TBase<getLogisticsEstimation_result, getLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
3784 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_result");
|
| 471 |
rajveer |
3785 |
|
| 3430 |
rajveer |
3786 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
|
|
|
3787 |
private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
| 471 |
rajveer |
3788 |
|
| 3430 |
rajveer |
3789 |
private LogisticsInfo success; // required
|
|
|
3790 |
private LogisticsServiceException se; // required
|
| 471 |
rajveer |
3791 |
|
|
|
3792 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
3793 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 471 |
rajveer |
3794 |
SUCCESS((short)0, "success"),
|
|
|
3795 |
SE((short)1, "se");
|
|
|
3796 |
|
|
|
3797 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
3798 |
|
|
|
3799 |
static {
|
|
|
3800 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
3801 |
byName.put(field.getFieldName(), field);
|
|
|
3802 |
}
|
|
|
3803 |
}
|
|
|
3804 |
|
|
|
3805 |
/**
|
|
|
3806 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
3807 |
*/
|
|
|
3808 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
3809 |
switch(fieldId) {
|
|
|
3810 |
case 0: // SUCCESS
|
|
|
3811 |
return SUCCESS;
|
|
|
3812 |
case 1: // SE
|
|
|
3813 |
return SE;
|
|
|
3814 |
default:
|
|
|
3815 |
return null;
|
|
|
3816 |
}
|
| 471 |
rajveer |
3817 |
}
|
|
|
3818 |
|
|
|
3819 |
/**
|
|
|
3820 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
3821 |
* if it is not found.
|
|
|
3822 |
*/
|
|
|
3823 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
3824 |
_Fields fields = findByThriftId(fieldId);
|
|
|
3825 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
3826 |
return fields;
|
|
|
3827 |
}
|
|
|
3828 |
|
|
|
3829 |
/**
|
|
|
3830 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
3831 |
*/
|
|
|
3832 |
public static _Fields findByName(String name) {
|
|
|
3833 |
return byName.get(name);
|
|
|
3834 |
}
|
|
|
3835 |
|
|
|
3836 |
private final short _thriftId;
|
|
|
3837 |
private final String _fieldName;
|
|
|
3838 |
|
|
|
3839 |
_Fields(short thriftId, String fieldName) {
|
|
|
3840 |
_thriftId = thriftId;
|
|
|
3841 |
_fieldName = fieldName;
|
|
|
3842 |
}
|
|
|
3843 |
|
|
|
3844 |
public short getThriftFieldId() {
|
|
|
3845 |
return _thriftId;
|
|
|
3846 |
}
|
|
|
3847 |
|
|
|
3848 |
public String getFieldName() {
|
|
|
3849 |
return _fieldName;
|
|
|
3850 |
}
|
|
|
3851 |
}
|
|
|
3852 |
|
|
|
3853 |
// isset id assignments
|
|
|
3854 |
|
| 3430 |
rajveer |
3855 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 471 |
rajveer |
3856 |
static {
|
| 3430 |
rajveer |
3857 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
3858 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3859 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
|
|
|
3860 |
tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3861 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
3862 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
3863 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_result.class, metaDataMap);
|
| 471 |
rajveer |
3864 |
}
|
|
|
3865 |
|
|
|
3866 |
public getLogisticsEstimation_result() {
|
|
|
3867 |
}
|
|
|
3868 |
|
|
|
3869 |
public getLogisticsEstimation_result(
|
| 648 |
chandransh |
3870 |
LogisticsInfo success,
|
| 471 |
rajveer |
3871 |
LogisticsServiceException se)
|
|
|
3872 |
{
|
|
|
3873 |
this();
|
|
|
3874 |
this.success = success;
|
|
|
3875 |
this.se = se;
|
|
|
3876 |
}
|
|
|
3877 |
|
|
|
3878 |
/**
|
|
|
3879 |
* Performs a deep copy on <i>other</i>.
|
|
|
3880 |
*/
|
|
|
3881 |
public getLogisticsEstimation_result(getLogisticsEstimation_result other) {
|
|
|
3882 |
if (other.isSetSuccess()) {
|
| 648 |
chandransh |
3883 |
this.success = new LogisticsInfo(other.success);
|
| 471 |
rajveer |
3884 |
}
|
|
|
3885 |
if (other.isSetSe()) {
|
|
|
3886 |
this.se = new LogisticsServiceException(other.se);
|
|
|
3887 |
}
|
|
|
3888 |
}
|
|
|
3889 |
|
|
|
3890 |
public getLogisticsEstimation_result deepCopy() {
|
|
|
3891 |
return new getLogisticsEstimation_result(this);
|
|
|
3892 |
}
|
|
|
3893 |
|
| 3430 |
rajveer |
3894 |
@Override
|
|
|
3895 |
public void clear() {
|
|
|
3896 |
this.success = null;
|
|
|
3897 |
this.se = null;
|
| 471 |
rajveer |
3898 |
}
|
|
|
3899 |
|
| 648 |
chandransh |
3900 |
public LogisticsInfo getSuccess() {
|
| 471 |
rajveer |
3901 |
return this.success;
|
|
|
3902 |
}
|
|
|
3903 |
|
| 3430 |
rajveer |
3904 |
public void setSuccess(LogisticsInfo success) {
|
| 471 |
rajveer |
3905 |
this.success = success;
|
|
|
3906 |
}
|
|
|
3907 |
|
|
|
3908 |
public void unsetSuccess() {
|
|
|
3909 |
this.success = null;
|
|
|
3910 |
}
|
|
|
3911 |
|
| 3430 |
rajveer |
3912 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 471 |
rajveer |
3913 |
public boolean isSetSuccess() {
|
|
|
3914 |
return this.success != null;
|
|
|
3915 |
}
|
|
|
3916 |
|
|
|
3917 |
public void setSuccessIsSet(boolean value) {
|
|
|
3918 |
if (!value) {
|
|
|
3919 |
this.success = null;
|
|
|
3920 |
}
|
|
|
3921 |
}
|
|
|
3922 |
|
|
|
3923 |
public LogisticsServiceException getSe() {
|
|
|
3924 |
return this.se;
|
|
|
3925 |
}
|
|
|
3926 |
|
| 3430 |
rajveer |
3927 |
public void setSe(LogisticsServiceException se) {
|
| 471 |
rajveer |
3928 |
this.se = se;
|
|
|
3929 |
}
|
|
|
3930 |
|
|
|
3931 |
public void unsetSe() {
|
|
|
3932 |
this.se = null;
|
|
|
3933 |
}
|
|
|
3934 |
|
| 3430 |
rajveer |
3935 |
/** Returns true if field se is set (has been assigned a value) and false otherwise */
|
| 471 |
rajveer |
3936 |
public boolean isSetSe() {
|
|
|
3937 |
return this.se != null;
|
|
|
3938 |
}
|
|
|
3939 |
|
|
|
3940 |
public void setSeIsSet(boolean value) {
|
|
|
3941 |
if (!value) {
|
|
|
3942 |
this.se = null;
|
|
|
3943 |
}
|
|
|
3944 |
}
|
|
|
3945 |
|
|
|
3946 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
3947 |
switch (field) {
|
|
|
3948 |
case SUCCESS:
|
|
|
3949 |
if (value == null) {
|
|
|
3950 |
unsetSuccess();
|
|
|
3951 |
} else {
|
| 648 |
chandransh |
3952 |
setSuccess((LogisticsInfo)value);
|
| 471 |
rajveer |
3953 |
}
|
|
|
3954 |
break;
|
|
|
3955 |
|
|
|
3956 |
case SE:
|
|
|
3957 |
if (value == null) {
|
|
|
3958 |
unsetSe();
|
|
|
3959 |
} else {
|
|
|
3960 |
setSe((LogisticsServiceException)value);
|
|
|
3961 |
}
|
|
|
3962 |
break;
|
|
|
3963 |
|
|
|
3964 |
}
|
|
|
3965 |
}
|
|
|
3966 |
|
|
|
3967 |
public Object getFieldValue(_Fields field) {
|
|
|
3968 |
switch (field) {
|
|
|
3969 |
case SUCCESS:
|
|
|
3970 |
return getSuccess();
|
|
|
3971 |
|
|
|
3972 |
case SE:
|
|
|
3973 |
return getSe();
|
|
|
3974 |
|
|
|
3975 |
}
|
|
|
3976 |
throw new IllegalStateException();
|
|
|
3977 |
}
|
|
|
3978 |
|
| 3430 |
rajveer |
3979 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
3980 |
public boolean isSet(_Fields field) {
|
|
|
3981 |
if (field == null) {
|
|
|
3982 |
throw new IllegalArgumentException();
|
|
|
3983 |
}
|
| 471 |
rajveer |
3984 |
|
|
|
3985 |
switch (field) {
|
|
|
3986 |
case SUCCESS:
|
|
|
3987 |
return isSetSuccess();
|
|
|
3988 |
case SE:
|
|
|
3989 |
return isSetSe();
|
|
|
3990 |
}
|
|
|
3991 |
throw new IllegalStateException();
|
|
|
3992 |
}
|
|
|
3993 |
|
|
|
3994 |
@Override
|
|
|
3995 |
public boolean equals(Object that) {
|
|
|
3996 |
if (that == null)
|
|
|
3997 |
return false;
|
|
|
3998 |
if (that instanceof getLogisticsEstimation_result)
|
|
|
3999 |
return this.equals((getLogisticsEstimation_result)that);
|
|
|
4000 |
return false;
|
|
|
4001 |
}
|
|
|
4002 |
|
|
|
4003 |
public boolean equals(getLogisticsEstimation_result that) {
|
|
|
4004 |
if (that == null)
|
|
|
4005 |
return false;
|
|
|
4006 |
|
|
|
4007 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
4008 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
4009 |
if (this_present_success || that_present_success) {
|
|
|
4010 |
if (!(this_present_success && that_present_success))
|
|
|
4011 |
return false;
|
|
|
4012 |
if (!this.success.equals(that.success))
|
|
|
4013 |
return false;
|
|
|
4014 |
}
|
|
|
4015 |
|
|
|
4016 |
boolean this_present_se = true && this.isSetSe();
|
|
|
4017 |
boolean that_present_se = true && that.isSetSe();
|
|
|
4018 |
if (this_present_se || that_present_se) {
|
|
|
4019 |
if (!(this_present_se && that_present_se))
|
|
|
4020 |
return false;
|
|
|
4021 |
if (!this.se.equals(that.se))
|
|
|
4022 |
return false;
|
|
|
4023 |
}
|
|
|
4024 |
|
|
|
4025 |
return true;
|
|
|
4026 |
}
|
|
|
4027 |
|
|
|
4028 |
@Override
|
|
|
4029 |
public int hashCode() {
|
|
|
4030 |
return 0;
|
|
|
4031 |
}
|
|
|
4032 |
|
|
|
4033 |
public int compareTo(getLogisticsEstimation_result other) {
|
|
|
4034 |
if (!getClass().equals(other.getClass())) {
|
|
|
4035 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
4036 |
}
|
|
|
4037 |
|
|
|
4038 |
int lastComparison = 0;
|
|
|
4039 |
getLogisticsEstimation_result typedOther = (getLogisticsEstimation_result)other;
|
|
|
4040 |
|
| 3430 |
rajveer |
4041 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 471 |
rajveer |
4042 |
if (lastComparison != 0) {
|
|
|
4043 |
return lastComparison;
|
|
|
4044 |
}
|
| 3430 |
rajveer |
4045 |
if (isSetSuccess()) {
|
|
|
4046 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
4047 |
if (lastComparison != 0) {
|
|
|
4048 |
return lastComparison;
|
|
|
4049 |
}
|
| 471 |
rajveer |
4050 |
}
|
| 3430 |
rajveer |
4051 |
lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
|
| 471 |
rajveer |
4052 |
if (lastComparison != 0) {
|
|
|
4053 |
return lastComparison;
|
|
|
4054 |
}
|
| 3430 |
rajveer |
4055 |
if (isSetSe()) {
|
|
|
4056 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
|
|
|
4057 |
if (lastComparison != 0) {
|
|
|
4058 |
return lastComparison;
|
|
|
4059 |
}
|
| 471 |
rajveer |
4060 |
}
|
|
|
4061 |
return 0;
|
|
|
4062 |
}
|
|
|
4063 |
|
| 3430 |
rajveer |
4064 |
public _Fields fieldForId(int fieldId) {
|
|
|
4065 |
return _Fields.findByThriftId(fieldId);
|
|
|
4066 |
}
|
|
|
4067 |
|
|
|
4068 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
4069 |
org.apache.thrift.protocol.TField field;
|
| 471 |
rajveer |
4070 |
iprot.readStructBegin();
|
|
|
4071 |
while (true)
|
|
|
4072 |
{
|
|
|
4073 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
4074 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 471 |
rajveer |
4075 |
break;
|
|
|
4076 |
}
|
| 3430 |
rajveer |
4077 |
switch (field.id) {
|
|
|
4078 |
case 0: // SUCCESS
|
|
|
4079 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
4080 |
this.success = new LogisticsInfo();
|
|
|
4081 |
this.success.read(iprot);
|
|
|
4082 |
} else {
|
|
|
4083 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4084 |
}
|
|
|
4085 |
break;
|
|
|
4086 |
case 1: // SE
|
|
|
4087 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
4088 |
this.se = new LogisticsServiceException();
|
|
|
4089 |
this.se.read(iprot);
|
|
|
4090 |
} else {
|
|
|
4091 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4092 |
}
|
|
|
4093 |
break;
|
|
|
4094 |
default:
|
|
|
4095 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 471 |
rajveer |
4096 |
}
|
| 3430 |
rajveer |
4097 |
iprot.readFieldEnd();
|
| 471 |
rajveer |
4098 |
}
|
|
|
4099 |
iprot.readStructEnd();
|
|
|
4100 |
validate();
|
|
|
4101 |
}
|
|
|
4102 |
|
| 3430 |
rajveer |
4103 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 471 |
rajveer |
4104 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
4105 |
|
|
|
4106 |
if (this.isSetSuccess()) {
|
|
|
4107 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
4108 |
this.success.write(oprot);
|
|
|
4109 |
oprot.writeFieldEnd();
|
|
|
4110 |
} else if (this.isSetSe()) {
|
|
|
4111 |
oprot.writeFieldBegin(SE_FIELD_DESC);
|
|
|
4112 |
this.se.write(oprot);
|
|
|
4113 |
oprot.writeFieldEnd();
|
|
|
4114 |
}
|
|
|
4115 |
oprot.writeFieldStop();
|
|
|
4116 |
oprot.writeStructEnd();
|
|
|
4117 |
}
|
|
|
4118 |
|
|
|
4119 |
@Override
|
|
|
4120 |
public String toString() {
|
|
|
4121 |
StringBuilder sb = new StringBuilder("getLogisticsEstimation_result(");
|
|
|
4122 |
boolean first = true;
|
|
|
4123 |
|
|
|
4124 |
sb.append("success:");
|
|
|
4125 |
if (this.success == null) {
|
|
|
4126 |
sb.append("null");
|
|
|
4127 |
} else {
|
|
|
4128 |
sb.append(this.success);
|
|
|
4129 |
}
|
|
|
4130 |
first = false;
|
|
|
4131 |
if (!first) sb.append(", ");
|
|
|
4132 |
sb.append("se:");
|
|
|
4133 |
if (this.se == null) {
|
|
|
4134 |
sb.append("null");
|
|
|
4135 |
} else {
|
|
|
4136 |
sb.append(this.se);
|
|
|
4137 |
}
|
|
|
4138 |
first = false;
|
|
|
4139 |
sb.append(")");
|
|
|
4140 |
return sb.toString();
|
|
|
4141 |
}
|
|
|
4142 |
|
| 3430 |
rajveer |
4143 |
public void validate() throws org.apache.thrift.TException {
|
| 471 |
rajveer |
4144 |
// check for required fields
|
|
|
4145 |
}
|
|
|
4146 |
|
| 3430 |
rajveer |
4147 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
4148 |
try {
|
|
|
4149 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
4150 |
} catch (org.apache.thrift.TException te) {
|
|
|
4151 |
throw new java.io.IOException(te);
|
|
|
4152 |
}
|
|
|
4153 |
}
|
|
|
4154 |
|
|
|
4155 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
4156 |
try {
|
|
|
4157 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
4158 |
} catch (org.apache.thrift.TException te) {
|
|
|
4159 |
throw new java.io.IOException(te);
|
|
|
4160 |
}
|
|
|
4161 |
}
|
|
|
4162 |
|
| 471 |
rajveer |
4163 |
}
|
|
|
4164 |
|
| 7256 |
rajveer |
4165 |
public static class getLogisticsEstimationForStore_args implements org.apache.thrift.TBase<getLogisticsEstimationForStore_args, getLogisticsEstimationForStore_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
4166 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimationForStore_args");
|
|
|
4167 |
|
|
|
4168 |
private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
4169 |
private static final org.apache.thrift.protocol.TField DESTINATION_PIN_FIELD_DESC = new org.apache.thrift.protocol.TField("destination_pin", org.apache.thrift.protocol.TType.STRING, (short)2);
|
|
|
4170 |
private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)3);
|
|
|
4171 |
|
|
|
4172 |
private long itemId; // required
|
|
|
4173 |
private String destination_pin; // required
|
|
|
4174 |
private DeliveryType type; // required
|
|
|
4175 |
|
|
|
4176 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
4177 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
4178 |
ITEM_ID((short)1, "itemId"),
|
|
|
4179 |
DESTINATION_PIN((short)2, "destination_pin"),
|
|
|
4180 |
/**
|
|
|
4181 |
*
|
|
|
4182 |
* @see DeliveryType
|
|
|
4183 |
*/
|
|
|
4184 |
TYPE((short)3, "type");
|
|
|
4185 |
|
|
|
4186 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
4187 |
|
|
|
4188 |
static {
|
|
|
4189 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
4190 |
byName.put(field.getFieldName(), field);
|
|
|
4191 |
}
|
|
|
4192 |
}
|
|
|
4193 |
|
|
|
4194 |
/**
|
|
|
4195 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
4196 |
*/
|
|
|
4197 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
4198 |
switch(fieldId) {
|
|
|
4199 |
case 1: // ITEM_ID
|
|
|
4200 |
return ITEM_ID;
|
|
|
4201 |
case 2: // DESTINATION_PIN
|
|
|
4202 |
return DESTINATION_PIN;
|
|
|
4203 |
case 3: // TYPE
|
|
|
4204 |
return TYPE;
|
|
|
4205 |
default:
|
|
|
4206 |
return null;
|
|
|
4207 |
}
|
|
|
4208 |
}
|
|
|
4209 |
|
|
|
4210 |
/**
|
|
|
4211 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
4212 |
* if it is not found.
|
|
|
4213 |
*/
|
|
|
4214 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
4215 |
_Fields fields = findByThriftId(fieldId);
|
|
|
4216 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
4217 |
return fields;
|
|
|
4218 |
}
|
|
|
4219 |
|
|
|
4220 |
/**
|
|
|
4221 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
4222 |
*/
|
|
|
4223 |
public static _Fields findByName(String name) {
|
|
|
4224 |
return byName.get(name);
|
|
|
4225 |
}
|
|
|
4226 |
|
|
|
4227 |
private final short _thriftId;
|
|
|
4228 |
private final String _fieldName;
|
|
|
4229 |
|
|
|
4230 |
_Fields(short thriftId, String fieldName) {
|
|
|
4231 |
_thriftId = thriftId;
|
|
|
4232 |
_fieldName = fieldName;
|
|
|
4233 |
}
|
|
|
4234 |
|
|
|
4235 |
public short getThriftFieldId() {
|
|
|
4236 |
return _thriftId;
|
|
|
4237 |
}
|
|
|
4238 |
|
|
|
4239 |
public String getFieldName() {
|
|
|
4240 |
return _fieldName;
|
|
|
4241 |
}
|
|
|
4242 |
}
|
|
|
4243 |
|
|
|
4244 |
// isset id assignments
|
|
|
4245 |
private static final int __ITEMID_ISSET_ID = 0;
|
|
|
4246 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
4247 |
|
|
|
4248 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
4249 |
static {
|
|
|
4250 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
4251 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4252 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
4253 |
tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4254 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
4255 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4256 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
|
|
|
4257 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
4258 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimationForStore_args.class, metaDataMap);
|
|
|
4259 |
}
|
|
|
4260 |
|
|
|
4261 |
public getLogisticsEstimationForStore_args() {
|
|
|
4262 |
}
|
|
|
4263 |
|
|
|
4264 |
public getLogisticsEstimationForStore_args(
|
|
|
4265 |
long itemId,
|
|
|
4266 |
String destination_pin,
|
|
|
4267 |
DeliveryType type)
|
|
|
4268 |
{
|
|
|
4269 |
this();
|
|
|
4270 |
this.itemId = itemId;
|
|
|
4271 |
setItemIdIsSet(true);
|
|
|
4272 |
this.destination_pin = destination_pin;
|
|
|
4273 |
this.type = type;
|
|
|
4274 |
}
|
|
|
4275 |
|
|
|
4276 |
/**
|
|
|
4277 |
* Performs a deep copy on <i>other</i>.
|
|
|
4278 |
*/
|
|
|
4279 |
public getLogisticsEstimationForStore_args(getLogisticsEstimationForStore_args other) {
|
|
|
4280 |
__isset_bit_vector.clear();
|
|
|
4281 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
4282 |
this.itemId = other.itemId;
|
|
|
4283 |
if (other.isSetDestination_pin()) {
|
|
|
4284 |
this.destination_pin = other.destination_pin;
|
|
|
4285 |
}
|
|
|
4286 |
if (other.isSetType()) {
|
|
|
4287 |
this.type = other.type;
|
|
|
4288 |
}
|
|
|
4289 |
}
|
|
|
4290 |
|
|
|
4291 |
public getLogisticsEstimationForStore_args deepCopy() {
|
|
|
4292 |
return new getLogisticsEstimationForStore_args(this);
|
|
|
4293 |
}
|
|
|
4294 |
|
|
|
4295 |
@Override
|
|
|
4296 |
public void clear() {
|
|
|
4297 |
setItemIdIsSet(false);
|
|
|
4298 |
this.itemId = 0;
|
|
|
4299 |
this.destination_pin = null;
|
|
|
4300 |
this.type = null;
|
|
|
4301 |
}
|
|
|
4302 |
|
|
|
4303 |
public long getItemId() {
|
|
|
4304 |
return this.itemId;
|
|
|
4305 |
}
|
|
|
4306 |
|
|
|
4307 |
public void setItemId(long itemId) {
|
|
|
4308 |
this.itemId = itemId;
|
|
|
4309 |
setItemIdIsSet(true);
|
|
|
4310 |
}
|
|
|
4311 |
|
|
|
4312 |
public void unsetItemId() {
|
|
|
4313 |
__isset_bit_vector.clear(__ITEMID_ISSET_ID);
|
|
|
4314 |
}
|
|
|
4315 |
|
|
|
4316 |
/** Returns true if field itemId is set (has been assigned a value) and false otherwise */
|
|
|
4317 |
public boolean isSetItemId() {
|
|
|
4318 |
return __isset_bit_vector.get(__ITEMID_ISSET_ID);
|
|
|
4319 |
}
|
|
|
4320 |
|
|
|
4321 |
public void setItemIdIsSet(boolean value) {
|
|
|
4322 |
__isset_bit_vector.set(__ITEMID_ISSET_ID, value);
|
|
|
4323 |
}
|
|
|
4324 |
|
|
|
4325 |
public String getDestination_pin() {
|
|
|
4326 |
return this.destination_pin;
|
|
|
4327 |
}
|
|
|
4328 |
|
|
|
4329 |
public void setDestination_pin(String destination_pin) {
|
|
|
4330 |
this.destination_pin = destination_pin;
|
|
|
4331 |
}
|
|
|
4332 |
|
|
|
4333 |
public void unsetDestination_pin() {
|
|
|
4334 |
this.destination_pin = null;
|
|
|
4335 |
}
|
|
|
4336 |
|
|
|
4337 |
/** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
|
|
|
4338 |
public boolean isSetDestination_pin() {
|
|
|
4339 |
return this.destination_pin != null;
|
|
|
4340 |
}
|
|
|
4341 |
|
|
|
4342 |
public void setDestination_pinIsSet(boolean value) {
|
|
|
4343 |
if (!value) {
|
|
|
4344 |
this.destination_pin = null;
|
|
|
4345 |
}
|
|
|
4346 |
}
|
|
|
4347 |
|
|
|
4348 |
/**
|
|
|
4349 |
*
|
|
|
4350 |
* @see DeliveryType
|
|
|
4351 |
*/
|
|
|
4352 |
public DeliveryType getType() {
|
|
|
4353 |
return this.type;
|
|
|
4354 |
}
|
|
|
4355 |
|
|
|
4356 |
/**
|
|
|
4357 |
*
|
|
|
4358 |
* @see DeliveryType
|
|
|
4359 |
*/
|
|
|
4360 |
public void setType(DeliveryType type) {
|
|
|
4361 |
this.type = type;
|
|
|
4362 |
}
|
|
|
4363 |
|
|
|
4364 |
public void unsetType() {
|
|
|
4365 |
this.type = null;
|
|
|
4366 |
}
|
|
|
4367 |
|
|
|
4368 |
/** Returns true if field type is set (has been assigned a value) and false otherwise */
|
|
|
4369 |
public boolean isSetType() {
|
|
|
4370 |
return this.type != null;
|
|
|
4371 |
}
|
|
|
4372 |
|
|
|
4373 |
public void setTypeIsSet(boolean value) {
|
|
|
4374 |
if (!value) {
|
|
|
4375 |
this.type = null;
|
|
|
4376 |
}
|
|
|
4377 |
}
|
|
|
4378 |
|
|
|
4379 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
4380 |
switch (field) {
|
|
|
4381 |
case ITEM_ID:
|
|
|
4382 |
if (value == null) {
|
|
|
4383 |
unsetItemId();
|
|
|
4384 |
} else {
|
|
|
4385 |
setItemId((Long)value);
|
|
|
4386 |
}
|
|
|
4387 |
break;
|
|
|
4388 |
|
|
|
4389 |
case DESTINATION_PIN:
|
|
|
4390 |
if (value == null) {
|
|
|
4391 |
unsetDestination_pin();
|
|
|
4392 |
} else {
|
|
|
4393 |
setDestination_pin((String)value);
|
|
|
4394 |
}
|
|
|
4395 |
break;
|
|
|
4396 |
|
|
|
4397 |
case TYPE:
|
|
|
4398 |
if (value == null) {
|
|
|
4399 |
unsetType();
|
|
|
4400 |
} else {
|
|
|
4401 |
setType((DeliveryType)value);
|
|
|
4402 |
}
|
|
|
4403 |
break;
|
|
|
4404 |
|
|
|
4405 |
}
|
|
|
4406 |
}
|
|
|
4407 |
|
|
|
4408 |
public Object getFieldValue(_Fields field) {
|
|
|
4409 |
switch (field) {
|
|
|
4410 |
case ITEM_ID:
|
|
|
4411 |
return Long.valueOf(getItemId());
|
|
|
4412 |
|
|
|
4413 |
case DESTINATION_PIN:
|
|
|
4414 |
return getDestination_pin();
|
|
|
4415 |
|
|
|
4416 |
case TYPE:
|
|
|
4417 |
return getType();
|
|
|
4418 |
|
|
|
4419 |
}
|
|
|
4420 |
throw new IllegalStateException();
|
|
|
4421 |
}
|
|
|
4422 |
|
|
|
4423 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
4424 |
public boolean isSet(_Fields field) {
|
|
|
4425 |
if (field == null) {
|
|
|
4426 |
throw new IllegalArgumentException();
|
|
|
4427 |
}
|
|
|
4428 |
|
|
|
4429 |
switch (field) {
|
|
|
4430 |
case ITEM_ID:
|
|
|
4431 |
return isSetItemId();
|
|
|
4432 |
case DESTINATION_PIN:
|
|
|
4433 |
return isSetDestination_pin();
|
|
|
4434 |
case TYPE:
|
|
|
4435 |
return isSetType();
|
|
|
4436 |
}
|
|
|
4437 |
throw new IllegalStateException();
|
|
|
4438 |
}
|
|
|
4439 |
|
|
|
4440 |
@Override
|
|
|
4441 |
public boolean equals(Object that) {
|
|
|
4442 |
if (that == null)
|
|
|
4443 |
return false;
|
|
|
4444 |
if (that instanceof getLogisticsEstimationForStore_args)
|
|
|
4445 |
return this.equals((getLogisticsEstimationForStore_args)that);
|
|
|
4446 |
return false;
|
|
|
4447 |
}
|
|
|
4448 |
|
|
|
4449 |
public boolean equals(getLogisticsEstimationForStore_args that) {
|
|
|
4450 |
if (that == null)
|
|
|
4451 |
return false;
|
|
|
4452 |
|
|
|
4453 |
boolean this_present_itemId = true;
|
|
|
4454 |
boolean that_present_itemId = true;
|
|
|
4455 |
if (this_present_itemId || that_present_itemId) {
|
|
|
4456 |
if (!(this_present_itemId && that_present_itemId))
|
|
|
4457 |
return false;
|
|
|
4458 |
if (this.itemId != that.itemId)
|
|
|
4459 |
return false;
|
|
|
4460 |
}
|
|
|
4461 |
|
|
|
4462 |
boolean this_present_destination_pin = true && this.isSetDestination_pin();
|
|
|
4463 |
boolean that_present_destination_pin = true && that.isSetDestination_pin();
|
|
|
4464 |
if (this_present_destination_pin || that_present_destination_pin) {
|
|
|
4465 |
if (!(this_present_destination_pin && that_present_destination_pin))
|
|
|
4466 |
return false;
|
|
|
4467 |
if (!this.destination_pin.equals(that.destination_pin))
|
|
|
4468 |
return false;
|
|
|
4469 |
}
|
|
|
4470 |
|
|
|
4471 |
boolean this_present_type = true && this.isSetType();
|
|
|
4472 |
boolean that_present_type = true && that.isSetType();
|
|
|
4473 |
if (this_present_type || that_present_type) {
|
|
|
4474 |
if (!(this_present_type && that_present_type))
|
|
|
4475 |
return false;
|
|
|
4476 |
if (!this.type.equals(that.type))
|
|
|
4477 |
return false;
|
|
|
4478 |
}
|
|
|
4479 |
|
|
|
4480 |
return true;
|
|
|
4481 |
}
|
|
|
4482 |
|
|
|
4483 |
@Override
|
|
|
4484 |
public int hashCode() {
|
|
|
4485 |
return 0;
|
|
|
4486 |
}
|
|
|
4487 |
|
|
|
4488 |
public int compareTo(getLogisticsEstimationForStore_args other) {
|
|
|
4489 |
if (!getClass().equals(other.getClass())) {
|
|
|
4490 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
4491 |
}
|
|
|
4492 |
|
|
|
4493 |
int lastComparison = 0;
|
|
|
4494 |
getLogisticsEstimationForStore_args typedOther = (getLogisticsEstimationForStore_args)other;
|
|
|
4495 |
|
|
|
4496 |
lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
|
|
|
4497 |
if (lastComparison != 0) {
|
|
|
4498 |
return lastComparison;
|
|
|
4499 |
}
|
|
|
4500 |
if (isSetItemId()) {
|
|
|
4501 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
|
|
|
4502 |
if (lastComparison != 0) {
|
|
|
4503 |
return lastComparison;
|
|
|
4504 |
}
|
|
|
4505 |
}
|
|
|
4506 |
lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
|
|
|
4507 |
if (lastComparison != 0) {
|
|
|
4508 |
return lastComparison;
|
|
|
4509 |
}
|
|
|
4510 |
if (isSetDestination_pin()) {
|
|
|
4511 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
|
|
|
4512 |
if (lastComparison != 0) {
|
|
|
4513 |
return lastComparison;
|
|
|
4514 |
}
|
|
|
4515 |
}
|
|
|
4516 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
|
|
4517 |
if (lastComparison != 0) {
|
|
|
4518 |
return lastComparison;
|
|
|
4519 |
}
|
|
|
4520 |
if (isSetType()) {
|
|
|
4521 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
|
|
4522 |
if (lastComparison != 0) {
|
|
|
4523 |
return lastComparison;
|
|
|
4524 |
}
|
|
|
4525 |
}
|
|
|
4526 |
return 0;
|
|
|
4527 |
}
|
|
|
4528 |
|
|
|
4529 |
public _Fields fieldForId(int fieldId) {
|
|
|
4530 |
return _Fields.findByThriftId(fieldId);
|
|
|
4531 |
}
|
|
|
4532 |
|
|
|
4533 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
4534 |
org.apache.thrift.protocol.TField field;
|
|
|
4535 |
iprot.readStructBegin();
|
|
|
4536 |
while (true)
|
|
|
4537 |
{
|
|
|
4538 |
field = iprot.readFieldBegin();
|
|
|
4539 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
4540 |
break;
|
|
|
4541 |
}
|
|
|
4542 |
switch (field.id) {
|
|
|
4543 |
case 1: // ITEM_ID
|
|
|
4544 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
4545 |
this.itemId = iprot.readI64();
|
|
|
4546 |
setItemIdIsSet(true);
|
|
|
4547 |
} else {
|
|
|
4548 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4549 |
}
|
|
|
4550 |
break;
|
|
|
4551 |
case 2: // DESTINATION_PIN
|
|
|
4552 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
4553 |
this.destination_pin = iprot.readString();
|
|
|
4554 |
} else {
|
|
|
4555 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4556 |
}
|
|
|
4557 |
break;
|
|
|
4558 |
case 3: // TYPE
|
|
|
4559 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
4560 |
this.type = DeliveryType.findByValue(iprot.readI32());
|
|
|
4561 |
} else {
|
|
|
4562 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4563 |
}
|
|
|
4564 |
break;
|
|
|
4565 |
default:
|
|
|
4566 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4567 |
}
|
|
|
4568 |
iprot.readFieldEnd();
|
|
|
4569 |
}
|
|
|
4570 |
iprot.readStructEnd();
|
|
|
4571 |
validate();
|
|
|
4572 |
}
|
|
|
4573 |
|
|
|
4574 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
4575 |
validate();
|
|
|
4576 |
|
|
|
4577 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
4578 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
4579 |
oprot.writeI64(this.itemId);
|
|
|
4580 |
oprot.writeFieldEnd();
|
|
|
4581 |
if (this.destination_pin != null) {
|
|
|
4582 |
oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
|
|
|
4583 |
oprot.writeString(this.destination_pin);
|
|
|
4584 |
oprot.writeFieldEnd();
|
|
|
4585 |
}
|
|
|
4586 |
if (this.type != null) {
|
|
|
4587 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
|
|
4588 |
oprot.writeI32(this.type.getValue());
|
|
|
4589 |
oprot.writeFieldEnd();
|
|
|
4590 |
}
|
|
|
4591 |
oprot.writeFieldStop();
|
|
|
4592 |
oprot.writeStructEnd();
|
|
|
4593 |
}
|
|
|
4594 |
|
|
|
4595 |
@Override
|
|
|
4596 |
public String toString() {
|
|
|
4597 |
StringBuilder sb = new StringBuilder("getLogisticsEstimationForStore_args(");
|
|
|
4598 |
boolean first = true;
|
|
|
4599 |
|
|
|
4600 |
sb.append("itemId:");
|
|
|
4601 |
sb.append(this.itemId);
|
|
|
4602 |
first = false;
|
|
|
4603 |
if (!first) sb.append(", ");
|
|
|
4604 |
sb.append("destination_pin:");
|
|
|
4605 |
if (this.destination_pin == null) {
|
|
|
4606 |
sb.append("null");
|
|
|
4607 |
} else {
|
|
|
4608 |
sb.append(this.destination_pin);
|
|
|
4609 |
}
|
|
|
4610 |
first = false;
|
|
|
4611 |
if (!first) sb.append(", ");
|
|
|
4612 |
sb.append("type:");
|
|
|
4613 |
if (this.type == null) {
|
|
|
4614 |
sb.append("null");
|
|
|
4615 |
} else {
|
|
|
4616 |
sb.append(this.type);
|
|
|
4617 |
}
|
|
|
4618 |
first = false;
|
|
|
4619 |
sb.append(")");
|
|
|
4620 |
return sb.toString();
|
|
|
4621 |
}
|
|
|
4622 |
|
|
|
4623 |
public void validate() throws org.apache.thrift.TException {
|
|
|
4624 |
// check for required fields
|
|
|
4625 |
}
|
|
|
4626 |
|
|
|
4627 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
4628 |
try {
|
|
|
4629 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
4630 |
} catch (org.apache.thrift.TException te) {
|
|
|
4631 |
throw new java.io.IOException(te);
|
|
|
4632 |
}
|
|
|
4633 |
}
|
|
|
4634 |
|
|
|
4635 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
4636 |
try {
|
|
|
4637 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
4638 |
__isset_bit_vector = new BitSet(1);
|
|
|
4639 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
4640 |
} catch (org.apache.thrift.TException te) {
|
|
|
4641 |
throw new java.io.IOException(te);
|
|
|
4642 |
}
|
|
|
4643 |
}
|
|
|
4644 |
|
|
|
4645 |
}
|
|
|
4646 |
|
|
|
4647 |
public static class getLogisticsEstimationForStore_result implements org.apache.thrift.TBase<getLogisticsEstimationForStore_result, getLogisticsEstimationForStore_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
4648 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimationForStore_result");
|
|
|
4649 |
|
|
|
4650 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
|
|
|
4651 |
private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
|
|
4652 |
|
|
|
4653 |
private LogisticsInfo success; // required
|
|
|
4654 |
private LogisticsServiceException se; // required
|
|
|
4655 |
|
|
|
4656 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
4657 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
4658 |
SUCCESS((short)0, "success"),
|
|
|
4659 |
SE((short)1, "se");
|
|
|
4660 |
|
|
|
4661 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
4662 |
|
|
|
4663 |
static {
|
|
|
4664 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
4665 |
byName.put(field.getFieldName(), field);
|
|
|
4666 |
}
|
|
|
4667 |
}
|
|
|
4668 |
|
|
|
4669 |
/**
|
|
|
4670 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
4671 |
*/
|
|
|
4672 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
4673 |
switch(fieldId) {
|
|
|
4674 |
case 0: // SUCCESS
|
|
|
4675 |
return SUCCESS;
|
|
|
4676 |
case 1: // SE
|
|
|
4677 |
return SE;
|
|
|
4678 |
default:
|
|
|
4679 |
return null;
|
|
|
4680 |
}
|
|
|
4681 |
}
|
|
|
4682 |
|
|
|
4683 |
/**
|
|
|
4684 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
4685 |
* if it is not found.
|
|
|
4686 |
*/
|
|
|
4687 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
4688 |
_Fields fields = findByThriftId(fieldId);
|
|
|
4689 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
4690 |
return fields;
|
|
|
4691 |
}
|
|
|
4692 |
|
|
|
4693 |
/**
|
|
|
4694 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
4695 |
*/
|
|
|
4696 |
public static _Fields findByName(String name) {
|
|
|
4697 |
return byName.get(name);
|
|
|
4698 |
}
|
|
|
4699 |
|
|
|
4700 |
private final short _thriftId;
|
|
|
4701 |
private final String _fieldName;
|
|
|
4702 |
|
|
|
4703 |
_Fields(short thriftId, String fieldName) {
|
|
|
4704 |
_thriftId = thriftId;
|
|
|
4705 |
_fieldName = fieldName;
|
|
|
4706 |
}
|
|
|
4707 |
|
|
|
4708 |
public short getThriftFieldId() {
|
|
|
4709 |
return _thriftId;
|
|
|
4710 |
}
|
|
|
4711 |
|
|
|
4712 |
public String getFieldName() {
|
|
|
4713 |
return _fieldName;
|
|
|
4714 |
}
|
|
|
4715 |
}
|
|
|
4716 |
|
|
|
4717 |
// isset id assignments
|
|
|
4718 |
|
|
|
4719 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
4720 |
static {
|
|
|
4721 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
4722 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4723 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
|
|
|
4724 |
tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4725 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
4726 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
4727 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimationForStore_result.class, metaDataMap);
|
|
|
4728 |
}
|
|
|
4729 |
|
|
|
4730 |
public getLogisticsEstimationForStore_result() {
|
|
|
4731 |
}
|
|
|
4732 |
|
|
|
4733 |
public getLogisticsEstimationForStore_result(
|
|
|
4734 |
LogisticsInfo success,
|
|
|
4735 |
LogisticsServiceException se)
|
|
|
4736 |
{
|
|
|
4737 |
this();
|
|
|
4738 |
this.success = success;
|
|
|
4739 |
this.se = se;
|
|
|
4740 |
}
|
|
|
4741 |
|
|
|
4742 |
/**
|
|
|
4743 |
* Performs a deep copy on <i>other</i>.
|
|
|
4744 |
*/
|
|
|
4745 |
public getLogisticsEstimationForStore_result(getLogisticsEstimationForStore_result other) {
|
|
|
4746 |
if (other.isSetSuccess()) {
|
|
|
4747 |
this.success = new LogisticsInfo(other.success);
|
|
|
4748 |
}
|
|
|
4749 |
if (other.isSetSe()) {
|
|
|
4750 |
this.se = new LogisticsServiceException(other.se);
|
|
|
4751 |
}
|
|
|
4752 |
}
|
|
|
4753 |
|
|
|
4754 |
public getLogisticsEstimationForStore_result deepCopy() {
|
|
|
4755 |
return new getLogisticsEstimationForStore_result(this);
|
|
|
4756 |
}
|
|
|
4757 |
|
|
|
4758 |
@Override
|
|
|
4759 |
public void clear() {
|
|
|
4760 |
this.success = null;
|
|
|
4761 |
this.se = null;
|
|
|
4762 |
}
|
|
|
4763 |
|
|
|
4764 |
public LogisticsInfo getSuccess() {
|
|
|
4765 |
return this.success;
|
|
|
4766 |
}
|
|
|
4767 |
|
|
|
4768 |
public void setSuccess(LogisticsInfo success) {
|
|
|
4769 |
this.success = success;
|
|
|
4770 |
}
|
|
|
4771 |
|
|
|
4772 |
public void unsetSuccess() {
|
|
|
4773 |
this.success = null;
|
|
|
4774 |
}
|
|
|
4775 |
|
|
|
4776 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
4777 |
public boolean isSetSuccess() {
|
|
|
4778 |
return this.success != null;
|
|
|
4779 |
}
|
|
|
4780 |
|
|
|
4781 |
public void setSuccessIsSet(boolean value) {
|
|
|
4782 |
if (!value) {
|
|
|
4783 |
this.success = null;
|
|
|
4784 |
}
|
|
|
4785 |
}
|
|
|
4786 |
|
|
|
4787 |
public LogisticsServiceException getSe() {
|
|
|
4788 |
return this.se;
|
|
|
4789 |
}
|
|
|
4790 |
|
|
|
4791 |
public void setSe(LogisticsServiceException se) {
|
|
|
4792 |
this.se = se;
|
|
|
4793 |
}
|
|
|
4794 |
|
|
|
4795 |
public void unsetSe() {
|
|
|
4796 |
this.se = null;
|
|
|
4797 |
}
|
|
|
4798 |
|
|
|
4799 |
/** Returns true if field se is set (has been assigned a value) and false otherwise */
|
|
|
4800 |
public boolean isSetSe() {
|
|
|
4801 |
return this.se != null;
|
|
|
4802 |
}
|
|
|
4803 |
|
|
|
4804 |
public void setSeIsSet(boolean value) {
|
|
|
4805 |
if (!value) {
|
|
|
4806 |
this.se = null;
|
|
|
4807 |
}
|
|
|
4808 |
}
|
|
|
4809 |
|
|
|
4810 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
4811 |
switch (field) {
|
|
|
4812 |
case SUCCESS:
|
|
|
4813 |
if (value == null) {
|
|
|
4814 |
unsetSuccess();
|
|
|
4815 |
} else {
|
|
|
4816 |
setSuccess((LogisticsInfo)value);
|
|
|
4817 |
}
|
|
|
4818 |
break;
|
|
|
4819 |
|
|
|
4820 |
case SE:
|
|
|
4821 |
if (value == null) {
|
|
|
4822 |
unsetSe();
|
|
|
4823 |
} else {
|
|
|
4824 |
setSe((LogisticsServiceException)value);
|
|
|
4825 |
}
|
|
|
4826 |
break;
|
|
|
4827 |
|
|
|
4828 |
}
|
|
|
4829 |
}
|
|
|
4830 |
|
|
|
4831 |
public Object getFieldValue(_Fields field) {
|
|
|
4832 |
switch (field) {
|
|
|
4833 |
case SUCCESS:
|
|
|
4834 |
return getSuccess();
|
|
|
4835 |
|
|
|
4836 |
case SE:
|
|
|
4837 |
return getSe();
|
|
|
4838 |
|
|
|
4839 |
}
|
|
|
4840 |
throw new IllegalStateException();
|
|
|
4841 |
}
|
|
|
4842 |
|
|
|
4843 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
4844 |
public boolean isSet(_Fields field) {
|
|
|
4845 |
if (field == null) {
|
|
|
4846 |
throw new IllegalArgumentException();
|
|
|
4847 |
}
|
|
|
4848 |
|
|
|
4849 |
switch (field) {
|
|
|
4850 |
case SUCCESS:
|
|
|
4851 |
return isSetSuccess();
|
|
|
4852 |
case SE:
|
|
|
4853 |
return isSetSe();
|
|
|
4854 |
}
|
|
|
4855 |
throw new IllegalStateException();
|
|
|
4856 |
}
|
|
|
4857 |
|
|
|
4858 |
@Override
|
|
|
4859 |
public boolean equals(Object that) {
|
|
|
4860 |
if (that == null)
|
|
|
4861 |
return false;
|
|
|
4862 |
if (that instanceof getLogisticsEstimationForStore_result)
|
|
|
4863 |
return this.equals((getLogisticsEstimationForStore_result)that);
|
|
|
4864 |
return false;
|
|
|
4865 |
}
|
|
|
4866 |
|
|
|
4867 |
public boolean equals(getLogisticsEstimationForStore_result that) {
|
|
|
4868 |
if (that == null)
|
|
|
4869 |
return false;
|
|
|
4870 |
|
|
|
4871 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
4872 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
4873 |
if (this_present_success || that_present_success) {
|
|
|
4874 |
if (!(this_present_success && that_present_success))
|
|
|
4875 |
return false;
|
|
|
4876 |
if (!this.success.equals(that.success))
|
|
|
4877 |
return false;
|
|
|
4878 |
}
|
|
|
4879 |
|
|
|
4880 |
boolean this_present_se = true && this.isSetSe();
|
|
|
4881 |
boolean that_present_se = true && that.isSetSe();
|
|
|
4882 |
if (this_present_se || that_present_se) {
|
|
|
4883 |
if (!(this_present_se && that_present_se))
|
|
|
4884 |
return false;
|
|
|
4885 |
if (!this.se.equals(that.se))
|
|
|
4886 |
return false;
|
|
|
4887 |
}
|
|
|
4888 |
|
|
|
4889 |
return true;
|
|
|
4890 |
}
|
|
|
4891 |
|
|
|
4892 |
@Override
|
|
|
4893 |
public int hashCode() {
|
|
|
4894 |
return 0;
|
|
|
4895 |
}
|
|
|
4896 |
|
|
|
4897 |
public int compareTo(getLogisticsEstimationForStore_result other) {
|
|
|
4898 |
if (!getClass().equals(other.getClass())) {
|
|
|
4899 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
4900 |
}
|
|
|
4901 |
|
|
|
4902 |
int lastComparison = 0;
|
|
|
4903 |
getLogisticsEstimationForStore_result typedOther = (getLogisticsEstimationForStore_result)other;
|
|
|
4904 |
|
|
|
4905 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
4906 |
if (lastComparison != 0) {
|
|
|
4907 |
return lastComparison;
|
|
|
4908 |
}
|
|
|
4909 |
if (isSetSuccess()) {
|
|
|
4910 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
4911 |
if (lastComparison != 0) {
|
|
|
4912 |
return lastComparison;
|
|
|
4913 |
}
|
|
|
4914 |
}
|
|
|
4915 |
lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
|
|
|
4916 |
if (lastComparison != 0) {
|
|
|
4917 |
return lastComparison;
|
|
|
4918 |
}
|
|
|
4919 |
if (isSetSe()) {
|
|
|
4920 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
|
|
|
4921 |
if (lastComparison != 0) {
|
|
|
4922 |
return lastComparison;
|
|
|
4923 |
}
|
|
|
4924 |
}
|
|
|
4925 |
return 0;
|
|
|
4926 |
}
|
|
|
4927 |
|
|
|
4928 |
public _Fields fieldForId(int fieldId) {
|
|
|
4929 |
return _Fields.findByThriftId(fieldId);
|
|
|
4930 |
}
|
|
|
4931 |
|
|
|
4932 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
4933 |
org.apache.thrift.protocol.TField field;
|
|
|
4934 |
iprot.readStructBegin();
|
|
|
4935 |
while (true)
|
|
|
4936 |
{
|
|
|
4937 |
field = iprot.readFieldBegin();
|
|
|
4938 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
4939 |
break;
|
|
|
4940 |
}
|
|
|
4941 |
switch (field.id) {
|
|
|
4942 |
case 0: // SUCCESS
|
|
|
4943 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
4944 |
this.success = new LogisticsInfo();
|
|
|
4945 |
this.success.read(iprot);
|
|
|
4946 |
} else {
|
|
|
4947 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4948 |
}
|
|
|
4949 |
break;
|
|
|
4950 |
case 1: // SE
|
|
|
4951 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
4952 |
this.se = new LogisticsServiceException();
|
|
|
4953 |
this.se.read(iprot);
|
|
|
4954 |
} else {
|
|
|
4955 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4956 |
}
|
|
|
4957 |
break;
|
|
|
4958 |
default:
|
|
|
4959 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4960 |
}
|
|
|
4961 |
iprot.readFieldEnd();
|
|
|
4962 |
}
|
|
|
4963 |
iprot.readStructEnd();
|
|
|
4964 |
validate();
|
|
|
4965 |
}
|
|
|
4966 |
|
|
|
4967 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
4968 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
4969 |
|
|
|
4970 |
if (this.isSetSuccess()) {
|
|
|
4971 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
4972 |
this.success.write(oprot);
|
|
|
4973 |
oprot.writeFieldEnd();
|
|
|
4974 |
} else if (this.isSetSe()) {
|
|
|
4975 |
oprot.writeFieldBegin(SE_FIELD_DESC);
|
|
|
4976 |
this.se.write(oprot);
|
|
|
4977 |
oprot.writeFieldEnd();
|
|
|
4978 |
}
|
|
|
4979 |
oprot.writeFieldStop();
|
|
|
4980 |
oprot.writeStructEnd();
|
|
|
4981 |
}
|
|
|
4982 |
|
|
|
4983 |
@Override
|
|
|
4984 |
public String toString() {
|
|
|
4985 |
StringBuilder sb = new StringBuilder("getLogisticsEstimationForStore_result(");
|
|
|
4986 |
boolean first = true;
|
|
|
4987 |
|
|
|
4988 |
sb.append("success:");
|
|
|
4989 |
if (this.success == null) {
|
|
|
4990 |
sb.append("null");
|
|
|
4991 |
} else {
|
|
|
4992 |
sb.append(this.success);
|
|
|
4993 |
}
|
|
|
4994 |
first = false;
|
|
|
4995 |
if (!first) sb.append(", ");
|
|
|
4996 |
sb.append("se:");
|
|
|
4997 |
if (this.se == null) {
|
|
|
4998 |
sb.append("null");
|
|
|
4999 |
} else {
|
|
|
5000 |
sb.append(this.se);
|
|
|
5001 |
}
|
|
|
5002 |
first = false;
|
|
|
5003 |
sb.append(")");
|
|
|
5004 |
return sb.toString();
|
|
|
5005 |
}
|
|
|
5006 |
|
|
|
5007 |
public void validate() throws org.apache.thrift.TException {
|
|
|
5008 |
// check for required fields
|
|
|
5009 |
}
|
|
|
5010 |
|
|
|
5011 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
5012 |
try {
|
|
|
5013 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
5014 |
} catch (org.apache.thrift.TException te) {
|
|
|
5015 |
throw new java.io.IOException(te);
|
|
|
5016 |
}
|
|
|
5017 |
}
|
|
|
5018 |
|
|
|
5019 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
5020 |
try {
|
|
|
5021 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
5022 |
} catch (org.apache.thrift.TException te) {
|
|
|
5023 |
throw new java.io.IOException(te);
|
|
|
5024 |
}
|
|
|
5025 |
}
|
|
|
5026 |
|
|
|
5027 |
}
|
|
|
5028 |
|
| 3430 |
rajveer |
5029 |
public static class getLogisticsInfo_args implements org.apache.thrift.TBase<getLogisticsInfo_args, getLogisticsInfo_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
5030 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_args");
|
| 471 |
rajveer |
5031 |
|
| 3430 |
rajveer |
5032 |
private static final org.apache.thrift.protocol.TField DESTINATION_PINCODE_FIELD_DESC = new org.apache.thrift.protocol.TField("destination_pincode", org.apache.thrift.protocol.TType.STRING, (short)1);
|
|
|
5033 |
private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)2);
|
|
|
5034 |
private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)3);
|
| 5766 |
rajveer |
5035 |
private static final org.apache.thrift.protocol.TField PICK_UP_FIELD_DESC = new org.apache.thrift.protocol.TField("pickUp", org.apache.thrift.protocol.TType.I32, (short)4);
|
| 471 |
rajveer |
5036 |
|
| 3430 |
rajveer |
5037 |
private String destination_pincode; // required
|
|
|
5038 |
private long item_id; // required
|
|
|
5039 |
private DeliveryType type; // required
|
| 5766 |
rajveer |
5040 |
private PickUpType pickUp; // required
|
| 471 |
rajveer |
5041 |
|
|
|
5042 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
5043 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 648 |
chandransh |
5044 |
DESTINATION_PINCODE((short)1, "destination_pincode"),
|
| 3044 |
chandransh |
5045 |
ITEM_ID((short)2, "item_id"),
|
|
|
5046 |
/**
|
|
|
5047 |
*
|
|
|
5048 |
* @see DeliveryType
|
|
|
5049 |
*/
|
| 5766 |
rajveer |
5050 |
TYPE((short)3, "type"),
|
|
|
5051 |
/**
|
|
|
5052 |
*
|
|
|
5053 |
* @see PickUpType
|
|
|
5054 |
*/
|
|
|
5055 |
PICK_UP((short)4, "pickUp");
|
| 471 |
rajveer |
5056 |
|
|
|
5057 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
5058 |
|
|
|
5059 |
static {
|
|
|
5060 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
5061 |
byName.put(field.getFieldName(), field);
|
|
|
5062 |
}
|
|
|
5063 |
}
|
|
|
5064 |
|
|
|
5065 |
/**
|
|
|
5066 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
5067 |
*/
|
|
|
5068 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
5069 |
switch(fieldId) {
|
|
|
5070 |
case 1: // DESTINATION_PINCODE
|
|
|
5071 |
return DESTINATION_PINCODE;
|
|
|
5072 |
case 2: // ITEM_ID
|
|
|
5073 |
return ITEM_ID;
|
|
|
5074 |
case 3: // TYPE
|
|
|
5075 |
return TYPE;
|
| 5766 |
rajveer |
5076 |
case 4: // PICK_UP
|
|
|
5077 |
return PICK_UP;
|
| 3430 |
rajveer |
5078 |
default:
|
|
|
5079 |
return null;
|
|
|
5080 |
}
|
| 471 |
rajveer |
5081 |
}
|
|
|
5082 |
|
|
|
5083 |
/**
|
|
|
5084 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
5085 |
* if it is not found.
|
|
|
5086 |
*/
|
|
|
5087 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
5088 |
_Fields fields = findByThriftId(fieldId);
|
|
|
5089 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
5090 |
return fields;
|
|
|
5091 |
}
|
|
|
5092 |
|
|
|
5093 |
/**
|
|
|
5094 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
5095 |
*/
|
|
|
5096 |
public static _Fields findByName(String name) {
|
|
|
5097 |
return byName.get(name);
|
|
|
5098 |
}
|
|
|
5099 |
|
|
|
5100 |
private final short _thriftId;
|
|
|
5101 |
private final String _fieldName;
|
|
|
5102 |
|
|
|
5103 |
_Fields(short thriftId, String fieldName) {
|
|
|
5104 |
_thriftId = thriftId;
|
|
|
5105 |
_fieldName = fieldName;
|
|
|
5106 |
}
|
|
|
5107 |
|
|
|
5108 |
public short getThriftFieldId() {
|
|
|
5109 |
return _thriftId;
|
|
|
5110 |
}
|
|
|
5111 |
|
|
|
5112 |
public String getFieldName() {
|
|
|
5113 |
return _fieldName;
|
|
|
5114 |
}
|
|
|
5115 |
}
|
|
|
5116 |
|
|
|
5117 |
// isset id assignments
|
| 715 |
rajveer |
5118 |
private static final int __ITEM_ID_ISSET_ID = 0;
|
|
|
5119 |
private BitSet __isset_bit_vector = new BitSet(1);
|
| 471 |
rajveer |
5120 |
|
| 3430 |
rajveer |
5121 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 477 |
rajveer |
5122 |
static {
|
| 3430 |
rajveer |
5123 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
5124 |
tmpMap.put(_Fields.DESTINATION_PINCODE, new org.apache.thrift.meta_data.FieldMetaData("destination_pincode", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5125 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
5126 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5127 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
5128 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5129 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
|
| 5766 |
rajveer |
5130 |
tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5131 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PickUpType.class)));
|
| 3430 |
rajveer |
5132 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
5133 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_args.class, metaDataMap);
|
| 477 |
rajveer |
5134 |
}
|
|
|
5135 |
|
| 648 |
chandransh |
5136 |
public getLogisticsInfo_args() {
|
| 477 |
rajveer |
5137 |
}
|
|
|
5138 |
|
| 648 |
chandransh |
5139 |
public getLogisticsInfo_args(
|
|
|
5140 |
String destination_pincode,
|
| 3044 |
chandransh |
5141 |
long item_id,
|
| 5766 |
rajveer |
5142 |
DeliveryType type,
|
|
|
5143 |
PickUpType pickUp)
|
| 477 |
rajveer |
5144 |
{
|
|
|
5145 |
this();
|
| 648 |
chandransh |
5146 |
this.destination_pincode = destination_pincode;
|
|
|
5147 |
this.item_id = item_id;
|
| 715 |
rajveer |
5148 |
setItem_idIsSet(true);
|
| 3044 |
chandransh |
5149 |
this.type = type;
|
| 5766 |
rajveer |
5150 |
this.pickUp = pickUp;
|
| 477 |
rajveer |
5151 |
}
|
|
|
5152 |
|
|
|
5153 |
/**
|
|
|
5154 |
* Performs a deep copy on <i>other</i>.
|
|
|
5155 |
*/
|
| 648 |
chandransh |
5156 |
public getLogisticsInfo_args(getLogisticsInfo_args other) {
|
| 715 |
rajveer |
5157 |
__isset_bit_vector.clear();
|
|
|
5158 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 648 |
chandransh |
5159 |
if (other.isSetDestination_pincode()) {
|
|
|
5160 |
this.destination_pincode = other.destination_pincode;
|
| 477 |
rajveer |
5161 |
}
|
| 715 |
rajveer |
5162 |
this.item_id = other.item_id;
|
| 3044 |
chandransh |
5163 |
if (other.isSetType()) {
|
|
|
5164 |
this.type = other.type;
|
|
|
5165 |
}
|
| 5766 |
rajveer |
5166 |
if (other.isSetPickUp()) {
|
|
|
5167 |
this.pickUp = other.pickUp;
|
|
|
5168 |
}
|
| 477 |
rajveer |
5169 |
}
|
|
|
5170 |
|
| 648 |
chandransh |
5171 |
public getLogisticsInfo_args deepCopy() {
|
|
|
5172 |
return new getLogisticsInfo_args(this);
|
| 477 |
rajveer |
5173 |
}
|
|
|
5174 |
|
| 3430 |
rajveer |
5175 |
@Override
|
|
|
5176 |
public void clear() {
|
|
|
5177 |
this.destination_pincode = null;
|
|
|
5178 |
setItem_idIsSet(false);
|
|
|
5179 |
this.item_id = 0;
|
|
|
5180 |
this.type = null;
|
| 5766 |
rajveer |
5181 |
this.pickUp = null;
|
| 477 |
rajveer |
5182 |
}
|
|
|
5183 |
|
| 648 |
chandransh |
5184 |
public String getDestination_pincode() {
|
|
|
5185 |
return this.destination_pincode;
|
| 477 |
rajveer |
5186 |
}
|
|
|
5187 |
|
| 3430 |
rajveer |
5188 |
public void setDestination_pincode(String destination_pincode) {
|
| 648 |
chandransh |
5189 |
this.destination_pincode = destination_pincode;
|
| 477 |
rajveer |
5190 |
}
|
|
|
5191 |
|
| 648 |
chandransh |
5192 |
public void unsetDestination_pincode() {
|
|
|
5193 |
this.destination_pincode = null;
|
| 477 |
rajveer |
5194 |
}
|
|
|
5195 |
|
| 3430 |
rajveer |
5196 |
/** Returns true if field destination_pincode is set (has been assigned a value) and false otherwise */
|
| 648 |
chandransh |
5197 |
public boolean isSetDestination_pincode() {
|
|
|
5198 |
return this.destination_pincode != null;
|
| 477 |
rajveer |
5199 |
}
|
|
|
5200 |
|
| 648 |
chandransh |
5201 |
public void setDestination_pincodeIsSet(boolean value) {
|
| 477 |
rajveer |
5202 |
if (!value) {
|
| 648 |
chandransh |
5203 |
this.destination_pincode = null;
|
| 477 |
rajveer |
5204 |
}
|
|
|
5205 |
}
|
|
|
5206 |
|
| 715 |
rajveer |
5207 |
public long getItem_id() {
|
| 648 |
chandransh |
5208 |
return this.item_id;
|
| 477 |
rajveer |
5209 |
}
|
|
|
5210 |
|
| 3430 |
rajveer |
5211 |
public void setItem_id(long item_id) {
|
| 648 |
chandransh |
5212 |
this.item_id = item_id;
|
| 715 |
rajveer |
5213 |
setItem_idIsSet(true);
|
| 477 |
rajveer |
5214 |
}
|
|
|
5215 |
|
| 648 |
chandransh |
5216 |
public void unsetItem_id() {
|
| 715 |
rajveer |
5217 |
__isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
|
| 477 |
rajveer |
5218 |
}
|
|
|
5219 |
|
| 3430 |
rajveer |
5220 |
/** Returns true if field item_id is set (has been assigned a value) and false otherwise */
|
| 648 |
chandransh |
5221 |
public boolean isSetItem_id() {
|
| 715 |
rajveer |
5222 |
return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
|
| 477 |
rajveer |
5223 |
}
|
|
|
5224 |
|
| 648 |
chandransh |
5225 |
public void setItem_idIsSet(boolean value) {
|
| 715 |
rajveer |
5226 |
__isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
|
| 477 |
rajveer |
5227 |
}
|
|
|
5228 |
|
| 3044 |
chandransh |
5229 |
/**
|
|
|
5230 |
*
|
|
|
5231 |
* @see DeliveryType
|
|
|
5232 |
*/
|
|
|
5233 |
public DeliveryType getType() {
|
|
|
5234 |
return this.type;
|
|
|
5235 |
}
|
|
|
5236 |
|
|
|
5237 |
/**
|
|
|
5238 |
*
|
|
|
5239 |
* @see DeliveryType
|
|
|
5240 |
*/
|
| 3430 |
rajveer |
5241 |
public void setType(DeliveryType type) {
|
| 3044 |
chandransh |
5242 |
this.type = type;
|
|
|
5243 |
}
|
|
|
5244 |
|
|
|
5245 |
public void unsetType() {
|
|
|
5246 |
this.type = null;
|
|
|
5247 |
}
|
|
|
5248 |
|
| 3430 |
rajveer |
5249 |
/** Returns true if field type is set (has been assigned a value) and false otherwise */
|
| 3044 |
chandransh |
5250 |
public boolean isSetType() {
|
|
|
5251 |
return this.type != null;
|
|
|
5252 |
}
|
|
|
5253 |
|
|
|
5254 |
public void setTypeIsSet(boolean value) {
|
|
|
5255 |
if (!value) {
|
|
|
5256 |
this.type = null;
|
|
|
5257 |
}
|
|
|
5258 |
}
|
|
|
5259 |
|
| 5766 |
rajveer |
5260 |
/**
|
|
|
5261 |
*
|
|
|
5262 |
* @see PickUpType
|
|
|
5263 |
*/
|
|
|
5264 |
public PickUpType getPickUp() {
|
|
|
5265 |
return this.pickUp;
|
|
|
5266 |
}
|
|
|
5267 |
|
|
|
5268 |
/**
|
|
|
5269 |
*
|
|
|
5270 |
* @see PickUpType
|
|
|
5271 |
*/
|
|
|
5272 |
public void setPickUp(PickUpType pickUp) {
|
|
|
5273 |
this.pickUp = pickUp;
|
|
|
5274 |
}
|
|
|
5275 |
|
|
|
5276 |
public void unsetPickUp() {
|
|
|
5277 |
this.pickUp = null;
|
|
|
5278 |
}
|
|
|
5279 |
|
|
|
5280 |
/** Returns true if field pickUp is set (has been assigned a value) and false otherwise */
|
|
|
5281 |
public boolean isSetPickUp() {
|
|
|
5282 |
return this.pickUp != null;
|
|
|
5283 |
}
|
|
|
5284 |
|
|
|
5285 |
public void setPickUpIsSet(boolean value) {
|
|
|
5286 |
if (!value) {
|
|
|
5287 |
this.pickUp = null;
|
|
|
5288 |
}
|
|
|
5289 |
}
|
|
|
5290 |
|
| 477 |
rajveer |
5291 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
5292 |
switch (field) {
|
| 648 |
chandransh |
5293 |
case DESTINATION_PINCODE:
|
| 477 |
rajveer |
5294 |
if (value == null) {
|
| 648 |
chandransh |
5295 |
unsetDestination_pincode();
|
| 477 |
rajveer |
5296 |
} else {
|
| 648 |
chandransh |
5297 |
setDestination_pincode((String)value);
|
| 477 |
rajveer |
5298 |
}
|
|
|
5299 |
break;
|
|
|
5300 |
|
| 648 |
chandransh |
5301 |
case ITEM_ID:
|
| 477 |
rajveer |
5302 |
if (value == null) {
|
| 648 |
chandransh |
5303 |
unsetItem_id();
|
| 477 |
rajveer |
5304 |
} else {
|
| 715 |
rajveer |
5305 |
setItem_id((Long)value);
|
| 477 |
rajveer |
5306 |
}
|
|
|
5307 |
break;
|
|
|
5308 |
|
| 3044 |
chandransh |
5309 |
case TYPE:
|
|
|
5310 |
if (value == null) {
|
|
|
5311 |
unsetType();
|
|
|
5312 |
} else {
|
|
|
5313 |
setType((DeliveryType)value);
|
|
|
5314 |
}
|
|
|
5315 |
break;
|
|
|
5316 |
|
| 5766 |
rajveer |
5317 |
case PICK_UP:
|
|
|
5318 |
if (value == null) {
|
|
|
5319 |
unsetPickUp();
|
|
|
5320 |
} else {
|
|
|
5321 |
setPickUp((PickUpType)value);
|
|
|
5322 |
}
|
|
|
5323 |
break;
|
|
|
5324 |
|
| 477 |
rajveer |
5325 |
}
|
|
|
5326 |
}
|
|
|
5327 |
|
|
|
5328 |
public Object getFieldValue(_Fields field) {
|
|
|
5329 |
switch (field) {
|
| 648 |
chandransh |
5330 |
case DESTINATION_PINCODE:
|
|
|
5331 |
return getDestination_pincode();
|
| 477 |
rajveer |
5332 |
|
| 648 |
chandransh |
5333 |
case ITEM_ID:
|
| 3430 |
rajveer |
5334 |
return Long.valueOf(getItem_id());
|
| 477 |
rajveer |
5335 |
|
| 3044 |
chandransh |
5336 |
case TYPE:
|
|
|
5337 |
return getType();
|
|
|
5338 |
|
| 5766 |
rajveer |
5339 |
case PICK_UP:
|
|
|
5340 |
return getPickUp();
|
|
|
5341 |
|
| 477 |
rajveer |
5342 |
}
|
|
|
5343 |
throw new IllegalStateException();
|
|
|
5344 |
}
|
|
|
5345 |
|
| 3430 |
rajveer |
5346 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
5347 |
public boolean isSet(_Fields field) {
|
|
|
5348 |
if (field == null) {
|
|
|
5349 |
throw new IllegalArgumentException();
|
|
|
5350 |
}
|
| 477 |
rajveer |
5351 |
|
|
|
5352 |
switch (field) {
|
| 648 |
chandransh |
5353 |
case DESTINATION_PINCODE:
|
|
|
5354 |
return isSetDestination_pincode();
|
|
|
5355 |
case ITEM_ID:
|
|
|
5356 |
return isSetItem_id();
|
| 3044 |
chandransh |
5357 |
case TYPE:
|
|
|
5358 |
return isSetType();
|
| 5766 |
rajveer |
5359 |
case PICK_UP:
|
|
|
5360 |
return isSetPickUp();
|
| 477 |
rajveer |
5361 |
}
|
|
|
5362 |
throw new IllegalStateException();
|
|
|
5363 |
}
|
|
|
5364 |
|
|
|
5365 |
@Override
|
|
|
5366 |
public boolean equals(Object that) {
|
|
|
5367 |
if (that == null)
|
|
|
5368 |
return false;
|
| 648 |
chandransh |
5369 |
if (that instanceof getLogisticsInfo_args)
|
|
|
5370 |
return this.equals((getLogisticsInfo_args)that);
|
| 477 |
rajveer |
5371 |
return false;
|
|
|
5372 |
}
|
|
|
5373 |
|
| 648 |
chandransh |
5374 |
public boolean equals(getLogisticsInfo_args that) {
|
| 477 |
rajveer |
5375 |
if (that == null)
|
|
|
5376 |
return false;
|
|
|
5377 |
|
| 648 |
chandransh |
5378 |
boolean this_present_destination_pincode = true && this.isSetDestination_pincode();
|
|
|
5379 |
boolean that_present_destination_pincode = true && that.isSetDestination_pincode();
|
|
|
5380 |
if (this_present_destination_pincode || that_present_destination_pincode) {
|
|
|
5381 |
if (!(this_present_destination_pincode && that_present_destination_pincode))
|
| 477 |
rajveer |
5382 |
return false;
|
| 648 |
chandransh |
5383 |
if (!this.destination_pincode.equals(that.destination_pincode))
|
| 477 |
rajveer |
5384 |
return false;
|
|
|
5385 |
}
|
|
|
5386 |
|
| 715 |
rajveer |
5387 |
boolean this_present_item_id = true;
|
|
|
5388 |
boolean that_present_item_id = true;
|
| 648 |
chandransh |
5389 |
if (this_present_item_id || that_present_item_id) {
|
|
|
5390 |
if (!(this_present_item_id && that_present_item_id))
|
| 477 |
rajveer |
5391 |
return false;
|
| 715 |
rajveer |
5392 |
if (this.item_id != that.item_id)
|
| 477 |
rajveer |
5393 |
return false;
|
|
|
5394 |
}
|
|
|
5395 |
|
| 3044 |
chandransh |
5396 |
boolean this_present_type = true && this.isSetType();
|
|
|
5397 |
boolean that_present_type = true && that.isSetType();
|
|
|
5398 |
if (this_present_type || that_present_type) {
|
|
|
5399 |
if (!(this_present_type && that_present_type))
|
|
|
5400 |
return false;
|
|
|
5401 |
if (!this.type.equals(that.type))
|
|
|
5402 |
return false;
|
|
|
5403 |
}
|
|
|
5404 |
|
| 5766 |
rajveer |
5405 |
boolean this_present_pickUp = true && this.isSetPickUp();
|
|
|
5406 |
boolean that_present_pickUp = true && that.isSetPickUp();
|
|
|
5407 |
if (this_present_pickUp || that_present_pickUp) {
|
|
|
5408 |
if (!(this_present_pickUp && that_present_pickUp))
|
|
|
5409 |
return false;
|
|
|
5410 |
if (!this.pickUp.equals(that.pickUp))
|
|
|
5411 |
return false;
|
|
|
5412 |
}
|
|
|
5413 |
|
| 477 |
rajveer |
5414 |
return true;
|
|
|
5415 |
}
|
|
|
5416 |
|
|
|
5417 |
@Override
|
|
|
5418 |
public int hashCode() {
|
|
|
5419 |
return 0;
|
|
|
5420 |
}
|
|
|
5421 |
|
| 648 |
chandransh |
5422 |
public int compareTo(getLogisticsInfo_args other) {
|
| 477 |
rajveer |
5423 |
if (!getClass().equals(other.getClass())) {
|
|
|
5424 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
5425 |
}
|
|
|
5426 |
|
|
|
5427 |
int lastComparison = 0;
|
| 648 |
chandransh |
5428 |
getLogisticsInfo_args typedOther = (getLogisticsInfo_args)other;
|
| 477 |
rajveer |
5429 |
|
| 3430 |
rajveer |
5430 |
lastComparison = Boolean.valueOf(isSetDestination_pincode()).compareTo(typedOther.isSetDestination_pincode());
|
| 477 |
rajveer |
5431 |
if (lastComparison != 0) {
|
|
|
5432 |
return lastComparison;
|
|
|
5433 |
}
|
| 3430 |
rajveer |
5434 |
if (isSetDestination_pincode()) {
|
|
|
5435 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pincode, typedOther.destination_pincode);
|
|
|
5436 |
if (lastComparison != 0) {
|
|
|
5437 |
return lastComparison;
|
|
|
5438 |
}
|
| 477 |
rajveer |
5439 |
}
|
| 3430 |
rajveer |
5440 |
lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
|
| 477 |
rajveer |
5441 |
if (lastComparison != 0) {
|
|
|
5442 |
return lastComparison;
|
|
|
5443 |
}
|
| 3430 |
rajveer |
5444 |
if (isSetItem_id()) {
|
|
|
5445 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
|
|
|
5446 |
if (lastComparison != 0) {
|
|
|
5447 |
return lastComparison;
|
|
|
5448 |
}
|
| 477 |
rajveer |
5449 |
}
|
| 3430 |
rajveer |
5450 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
| 3044 |
chandransh |
5451 |
if (lastComparison != 0) {
|
|
|
5452 |
return lastComparison;
|
|
|
5453 |
}
|
| 3430 |
rajveer |
5454 |
if (isSetType()) {
|
|
|
5455 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
|
|
5456 |
if (lastComparison != 0) {
|
|
|
5457 |
return lastComparison;
|
|
|
5458 |
}
|
| 3044 |
chandransh |
5459 |
}
|
| 5766 |
rajveer |
5460 |
lastComparison = Boolean.valueOf(isSetPickUp()).compareTo(typedOther.isSetPickUp());
|
|
|
5461 |
if (lastComparison != 0) {
|
|
|
5462 |
return lastComparison;
|
|
|
5463 |
}
|
|
|
5464 |
if (isSetPickUp()) {
|
|
|
5465 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
|
|
|
5466 |
if (lastComparison != 0) {
|
|
|
5467 |
return lastComparison;
|
|
|
5468 |
}
|
|
|
5469 |
}
|
| 477 |
rajveer |
5470 |
return 0;
|
|
|
5471 |
}
|
|
|
5472 |
|
| 3430 |
rajveer |
5473 |
public _Fields fieldForId(int fieldId) {
|
|
|
5474 |
return _Fields.findByThriftId(fieldId);
|
|
|
5475 |
}
|
|
|
5476 |
|
|
|
5477 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
5478 |
org.apache.thrift.protocol.TField field;
|
| 477 |
rajveer |
5479 |
iprot.readStructBegin();
|
|
|
5480 |
while (true)
|
|
|
5481 |
{
|
|
|
5482 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
5483 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 477 |
rajveer |
5484 |
break;
|
|
|
5485 |
}
|
| 3430 |
rajveer |
5486 |
switch (field.id) {
|
|
|
5487 |
case 1: // DESTINATION_PINCODE
|
|
|
5488 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
5489 |
this.destination_pincode = iprot.readString();
|
|
|
5490 |
} else {
|
|
|
5491 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5492 |
}
|
|
|
5493 |
break;
|
|
|
5494 |
case 2: // ITEM_ID
|
|
|
5495 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
5496 |
this.item_id = iprot.readI64();
|
|
|
5497 |
setItem_idIsSet(true);
|
|
|
5498 |
} else {
|
|
|
5499 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5500 |
}
|
|
|
5501 |
break;
|
|
|
5502 |
case 3: // TYPE
|
|
|
5503 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
5504 |
this.type = DeliveryType.findByValue(iprot.readI32());
|
|
|
5505 |
} else {
|
|
|
5506 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5507 |
}
|
|
|
5508 |
break;
|
| 5766 |
rajveer |
5509 |
case 4: // PICK_UP
|
|
|
5510 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
5511 |
this.pickUp = PickUpType.findByValue(iprot.readI32());
|
|
|
5512 |
} else {
|
|
|
5513 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5514 |
}
|
|
|
5515 |
break;
|
| 3430 |
rajveer |
5516 |
default:
|
|
|
5517 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 477 |
rajveer |
5518 |
}
|
| 3430 |
rajveer |
5519 |
iprot.readFieldEnd();
|
| 477 |
rajveer |
5520 |
}
|
|
|
5521 |
iprot.readStructEnd();
|
|
|
5522 |
validate();
|
|
|
5523 |
}
|
|
|
5524 |
|
| 3430 |
rajveer |
5525 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 477 |
rajveer |
5526 |
validate();
|
|
|
5527 |
|
|
|
5528 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 648 |
chandransh |
5529 |
if (this.destination_pincode != null) {
|
|
|
5530 |
oprot.writeFieldBegin(DESTINATION_PINCODE_FIELD_DESC);
|
|
|
5531 |
oprot.writeString(this.destination_pincode);
|
| 477 |
rajveer |
5532 |
oprot.writeFieldEnd();
|
|
|
5533 |
}
|
| 715 |
rajveer |
5534 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
5535 |
oprot.writeI64(this.item_id);
|
|
|
5536 |
oprot.writeFieldEnd();
|
| 3044 |
chandransh |
5537 |
if (this.type != null) {
|
|
|
5538 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
|
|
5539 |
oprot.writeI32(this.type.getValue());
|
|
|
5540 |
oprot.writeFieldEnd();
|
|
|
5541 |
}
|
| 5766 |
rajveer |
5542 |
if (this.pickUp != null) {
|
|
|
5543 |
oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
|
|
|
5544 |
oprot.writeI32(this.pickUp.getValue());
|
|
|
5545 |
oprot.writeFieldEnd();
|
|
|
5546 |
}
|
| 477 |
rajveer |
5547 |
oprot.writeFieldStop();
|
|
|
5548 |
oprot.writeStructEnd();
|
|
|
5549 |
}
|
|
|
5550 |
|
|
|
5551 |
@Override
|
|
|
5552 |
public String toString() {
|
| 648 |
chandransh |
5553 |
StringBuilder sb = new StringBuilder("getLogisticsInfo_args(");
|
| 477 |
rajveer |
5554 |
boolean first = true;
|
|
|
5555 |
|
| 648 |
chandransh |
5556 |
sb.append("destination_pincode:");
|
|
|
5557 |
if (this.destination_pincode == null) {
|
| 477 |
rajveer |
5558 |
sb.append("null");
|
|
|
5559 |
} else {
|
| 648 |
chandransh |
5560 |
sb.append(this.destination_pincode);
|
| 477 |
rajveer |
5561 |
}
|
|
|
5562 |
first = false;
|
|
|
5563 |
if (!first) sb.append(", ");
|
| 648 |
chandransh |
5564 |
sb.append("item_id:");
|
| 715 |
rajveer |
5565 |
sb.append(this.item_id);
|
| 477 |
rajveer |
5566 |
first = false;
|
| 3044 |
chandransh |
5567 |
if (!first) sb.append(", ");
|
|
|
5568 |
sb.append("type:");
|
|
|
5569 |
if (this.type == null) {
|
|
|
5570 |
sb.append("null");
|
|
|
5571 |
} else {
|
|
|
5572 |
sb.append(this.type);
|
|
|
5573 |
}
|
|
|
5574 |
first = false;
|
| 5766 |
rajveer |
5575 |
if (!first) sb.append(", ");
|
|
|
5576 |
sb.append("pickUp:");
|
|
|
5577 |
if (this.pickUp == null) {
|
|
|
5578 |
sb.append("null");
|
|
|
5579 |
} else {
|
|
|
5580 |
sb.append(this.pickUp);
|
|
|
5581 |
}
|
|
|
5582 |
first = false;
|
| 477 |
rajveer |
5583 |
sb.append(")");
|
|
|
5584 |
return sb.toString();
|
|
|
5585 |
}
|
|
|
5586 |
|
| 3430 |
rajveer |
5587 |
public void validate() throws org.apache.thrift.TException {
|
| 477 |
rajveer |
5588 |
// check for required fields
|
|
|
5589 |
}
|
|
|
5590 |
|
| 3430 |
rajveer |
5591 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
5592 |
try {
|
|
|
5593 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
5594 |
} catch (org.apache.thrift.TException te) {
|
|
|
5595 |
throw new java.io.IOException(te);
|
|
|
5596 |
}
|
|
|
5597 |
}
|
|
|
5598 |
|
|
|
5599 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
5600 |
try {
|
|
|
5601 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
5602 |
} catch (org.apache.thrift.TException te) {
|
|
|
5603 |
throw new java.io.IOException(te);
|
|
|
5604 |
}
|
|
|
5605 |
}
|
|
|
5606 |
|
| 477 |
rajveer |
5607 |
}
|
|
|
5608 |
|
| 3430 |
rajveer |
5609 |
public static class getLogisticsInfo_result implements org.apache.thrift.TBase<getLogisticsInfo_result, getLogisticsInfo_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
5610 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_result");
|
| 477 |
rajveer |
5611 |
|
| 3430 |
rajveer |
5612 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
|
|
|
5613 |
private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
| 477 |
rajveer |
5614 |
|
| 3430 |
rajveer |
5615 |
private LogisticsInfo success; // required
|
|
|
5616 |
private LogisticsServiceException se; // required
|
| 477 |
rajveer |
5617 |
|
|
|
5618 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
5619 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 648 |
chandransh |
5620 |
SUCCESS((short)0, "success"),
|
|
|
5621 |
SE((short)1, "se");
|
| 477 |
rajveer |
5622 |
|
|
|
5623 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
5624 |
|
|
|
5625 |
static {
|
|
|
5626 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
5627 |
byName.put(field.getFieldName(), field);
|
|
|
5628 |
}
|
|
|
5629 |
}
|
|
|
5630 |
|
|
|
5631 |
/**
|
|
|
5632 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
5633 |
*/
|
|
|
5634 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
5635 |
switch(fieldId) {
|
|
|
5636 |
case 0: // SUCCESS
|
|
|
5637 |
return SUCCESS;
|
|
|
5638 |
case 1: // SE
|
|
|
5639 |
return SE;
|
|
|
5640 |
default:
|
|
|
5641 |
return null;
|
|
|
5642 |
}
|
| 477 |
rajveer |
5643 |
}
|
|
|
5644 |
|
|
|
5645 |
/**
|
|
|
5646 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
5647 |
* if it is not found.
|
|
|
5648 |
*/
|
|
|
5649 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
5650 |
_Fields fields = findByThriftId(fieldId);
|
|
|
5651 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
5652 |
return fields;
|
|
|
5653 |
}
|
|
|
5654 |
|
|
|
5655 |
/**
|
|
|
5656 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
5657 |
*/
|
|
|
5658 |
public static _Fields findByName(String name) {
|
|
|
5659 |
return byName.get(name);
|
|
|
5660 |
}
|
|
|
5661 |
|
|
|
5662 |
private final short _thriftId;
|
|
|
5663 |
private final String _fieldName;
|
|
|
5664 |
|
|
|
5665 |
_Fields(short thriftId, String fieldName) {
|
|
|
5666 |
_thriftId = thriftId;
|
|
|
5667 |
_fieldName = fieldName;
|
|
|
5668 |
}
|
|
|
5669 |
|
|
|
5670 |
public short getThriftFieldId() {
|
|
|
5671 |
return _thriftId;
|
|
|
5672 |
}
|
|
|
5673 |
|
|
|
5674 |
public String getFieldName() {
|
|
|
5675 |
return _fieldName;
|
|
|
5676 |
}
|
|
|
5677 |
}
|
|
|
5678 |
|
| 412 |
ashish |
5679 |
// isset id assignments
|
|
|
5680 |
|
| 3430 |
rajveer |
5681 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 412 |
ashish |
5682 |
static {
|
| 3430 |
rajveer |
5683 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
5684 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5685 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
|
|
|
5686 |
tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5687 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
5688 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
5689 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_result.class, metaDataMap);
|
| 412 |
ashish |
5690 |
}
|
|
|
5691 |
|
| 648 |
chandransh |
5692 |
public getLogisticsInfo_result() {
|
| 412 |
ashish |
5693 |
}
|
|
|
5694 |
|
| 648 |
chandransh |
5695 |
public getLogisticsInfo_result(
|
|
|
5696 |
LogisticsInfo success,
|
|
|
5697 |
LogisticsServiceException se)
|
| 412 |
ashish |
5698 |
{
|
|
|
5699 |
this();
|
| 648 |
chandransh |
5700 |
this.success = success;
|
|
|
5701 |
this.se = se;
|
| 412 |
ashish |
5702 |
}
|
|
|
5703 |
|
|
|
5704 |
/**
|
|
|
5705 |
* Performs a deep copy on <i>other</i>.
|
|
|
5706 |
*/
|
| 648 |
chandransh |
5707 |
public getLogisticsInfo_result(getLogisticsInfo_result other) {
|
|
|
5708 |
if (other.isSetSuccess()) {
|
|
|
5709 |
this.success = new LogisticsInfo(other.success);
|
| 412 |
ashish |
5710 |
}
|
| 648 |
chandransh |
5711 |
if (other.isSetSe()) {
|
|
|
5712 |
this.se = new LogisticsServiceException(other.se);
|
|
|
5713 |
}
|
| 412 |
ashish |
5714 |
}
|
|
|
5715 |
|
| 648 |
chandransh |
5716 |
public getLogisticsInfo_result deepCopy() {
|
|
|
5717 |
return new getLogisticsInfo_result(this);
|
| 412 |
ashish |
5718 |
}
|
|
|
5719 |
|
| 3430 |
rajveer |
5720 |
@Override
|
|
|
5721 |
public void clear() {
|
|
|
5722 |
this.success = null;
|
|
|
5723 |
this.se = null;
|
| 412 |
ashish |
5724 |
}
|
|
|
5725 |
|
| 648 |
chandransh |
5726 |
public LogisticsInfo getSuccess() {
|
|
|
5727 |
return this.success;
|
| 412 |
ashish |
5728 |
}
|
|
|
5729 |
|
| 3430 |
rajveer |
5730 |
public void setSuccess(LogisticsInfo success) {
|
| 648 |
chandransh |
5731 |
this.success = success;
|
| 412 |
ashish |
5732 |
}
|
|
|
5733 |
|
| 648 |
chandransh |
5734 |
public void unsetSuccess() {
|
|
|
5735 |
this.success = null;
|
| 412 |
ashish |
5736 |
}
|
|
|
5737 |
|
| 3430 |
rajveer |
5738 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 648 |
chandransh |
5739 |
public boolean isSetSuccess() {
|
|
|
5740 |
return this.success != null;
|
| 412 |
ashish |
5741 |
}
|
|
|
5742 |
|
| 648 |
chandransh |
5743 |
public void setSuccessIsSet(boolean value) {
|
| 412 |
ashish |
5744 |
if (!value) {
|
| 648 |
chandransh |
5745 |
this.success = null;
|
| 412 |
ashish |
5746 |
}
|
|
|
5747 |
}
|
|
|
5748 |
|
| 648 |
chandransh |
5749 |
public LogisticsServiceException getSe() {
|
|
|
5750 |
return this.se;
|
| 412 |
ashish |
5751 |
}
|
|
|
5752 |
|
| 3430 |
rajveer |
5753 |
public void setSe(LogisticsServiceException se) {
|
| 648 |
chandransh |
5754 |
this.se = se;
|
| 412 |
ashish |
5755 |
}
|
|
|
5756 |
|
| 648 |
chandransh |
5757 |
public void unsetSe() {
|
|
|
5758 |
this.se = null;
|
| 412 |
ashish |
5759 |
}
|
|
|
5760 |
|
| 3430 |
rajveer |
5761 |
/** Returns true if field se is set (has been assigned a value) and false otherwise */
|
| 648 |
chandransh |
5762 |
public boolean isSetSe() {
|
|
|
5763 |
return this.se != null;
|
| 412 |
ashish |
5764 |
}
|
|
|
5765 |
|
| 648 |
chandransh |
5766 |
public void setSeIsSet(boolean value) {
|
|
|
5767 |
if (!value) {
|
|
|
5768 |
this.se = null;
|
|
|
5769 |
}
|
| 412 |
ashish |
5770 |
}
|
|
|
5771 |
|
|
|
5772 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
5773 |
switch (field) {
|
| 648 |
chandransh |
5774 |
case SUCCESS:
|
| 412 |
ashish |
5775 |
if (value == null) {
|
| 648 |
chandransh |
5776 |
unsetSuccess();
|
| 412 |
ashish |
5777 |
} else {
|
| 648 |
chandransh |
5778 |
setSuccess((LogisticsInfo)value);
|
| 412 |
ashish |
5779 |
}
|
|
|
5780 |
break;
|
|
|
5781 |
|
| 648 |
chandransh |
5782 |
case SE:
|
| 412 |
ashish |
5783 |
if (value == null) {
|
| 648 |
chandransh |
5784 |
unsetSe();
|
| 412 |
ashish |
5785 |
} else {
|
| 648 |
chandransh |
5786 |
setSe((LogisticsServiceException)value);
|
| 412 |
ashish |
5787 |
}
|
|
|
5788 |
break;
|
|
|
5789 |
|
|
|
5790 |
}
|
|
|
5791 |
}
|
|
|
5792 |
|
|
|
5793 |
public Object getFieldValue(_Fields field) {
|
|
|
5794 |
switch (field) {
|
| 648 |
chandransh |
5795 |
case SUCCESS:
|
|
|
5796 |
return getSuccess();
|
| 412 |
ashish |
5797 |
|
| 648 |
chandransh |
5798 |
case SE:
|
|
|
5799 |
return getSe();
|
| 412 |
ashish |
5800 |
|
|
|
5801 |
}
|
|
|
5802 |
throw new IllegalStateException();
|
|
|
5803 |
}
|
|
|
5804 |
|
| 3430 |
rajveer |
5805 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
5806 |
public boolean isSet(_Fields field) {
|
|
|
5807 |
if (field == null) {
|
|
|
5808 |
throw new IllegalArgumentException();
|
|
|
5809 |
}
|
| 412 |
ashish |
5810 |
|
|
|
5811 |
switch (field) {
|
| 648 |
chandransh |
5812 |
case SUCCESS:
|
|
|
5813 |
return isSetSuccess();
|
|
|
5814 |
case SE:
|
|
|
5815 |
return isSetSe();
|
| 412 |
ashish |
5816 |
}
|
|
|
5817 |
throw new IllegalStateException();
|
|
|
5818 |
}
|
|
|
5819 |
|
|
|
5820 |
@Override
|
|
|
5821 |
public boolean equals(Object that) {
|
|
|
5822 |
if (that == null)
|
|
|
5823 |
return false;
|
| 648 |
chandransh |
5824 |
if (that instanceof getLogisticsInfo_result)
|
|
|
5825 |
return this.equals((getLogisticsInfo_result)that);
|
| 412 |
ashish |
5826 |
return false;
|
|
|
5827 |
}
|
|
|
5828 |
|
| 648 |
chandransh |
5829 |
public boolean equals(getLogisticsInfo_result that) {
|
| 412 |
ashish |
5830 |
if (that == null)
|
|
|
5831 |
return false;
|
|
|
5832 |
|
| 648 |
chandransh |
5833 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
5834 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
5835 |
if (this_present_success || that_present_success) {
|
|
|
5836 |
if (!(this_present_success && that_present_success))
|
| 412 |
ashish |
5837 |
return false;
|
| 648 |
chandransh |
5838 |
if (!this.success.equals(that.success))
|
| 412 |
ashish |
5839 |
return false;
|
|
|
5840 |
}
|
|
|
5841 |
|
| 648 |
chandransh |
5842 |
boolean this_present_se = true && this.isSetSe();
|
|
|
5843 |
boolean that_present_se = true && that.isSetSe();
|
|
|
5844 |
if (this_present_se || that_present_se) {
|
|
|
5845 |
if (!(this_present_se && that_present_se))
|
| 412 |
ashish |
5846 |
return false;
|
| 648 |
chandransh |
5847 |
if (!this.se.equals(that.se))
|
| 412 |
ashish |
5848 |
return false;
|
|
|
5849 |
}
|
|
|
5850 |
|
|
|
5851 |
return true;
|
|
|
5852 |
}
|
|
|
5853 |
|
|
|
5854 |
@Override
|
|
|
5855 |
public int hashCode() {
|
|
|
5856 |
return 0;
|
|
|
5857 |
}
|
|
|
5858 |
|
| 648 |
chandransh |
5859 |
public int compareTo(getLogisticsInfo_result other) {
|
| 412 |
ashish |
5860 |
if (!getClass().equals(other.getClass())) {
|
|
|
5861 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
5862 |
}
|
|
|
5863 |
|
|
|
5864 |
int lastComparison = 0;
|
| 648 |
chandransh |
5865 |
getLogisticsInfo_result typedOther = (getLogisticsInfo_result)other;
|
| 412 |
ashish |
5866 |
|
| 3430 |
rajveer |
5867 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 412 |
ashish |
5868 |
if (lastComparison != 0) {
|
|
|
5869 |
return lastComparison;
|
|
|
5870 |
}
|
| 3430 |
rajveer |
5871 |
if (isSetSuccess()) {
|
|
|
5872 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
5873 |
if (lastComparison != 0) {
|
|
|
5874 |
return lastComparison;
|
|
|
5875 |
}
|
| 412 |
ashish |
5876 |
}
|
| 3430 |
rajveer |
5877 |
lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
|
| 412 |
ashish |
5878 |
if (lastComparison != 0) {
|
|
|
5879 |
return lastComparison;
|
|
|
5880 |
}
|
| 3430 |
rajveer |
5881 |
if (isSetSe()) {
|
|
|
5882 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
|
|
|
5883 |
if (lastComparison != 0) {
|
|
|
5884 |
return lastComparison;
|
|
|
5885 |
}
|
| 412 |
ashish |
5886 |
}
|
|
|
5887 |
return 0;
|
|
|
5888 |
}
|
|
|
5889 |
|
| 3430 |
rajveer |
5890 |
public _Fields fieldForId(int fieldId) {
|
|
|
5891 |
return _Fields.findByThriftId(fieldId);
|
|
|
5892 |
}
|
|
|
5893 |
|
|
|
5894 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
5895 |
org.apache.thrift.protocol.TField field;
|
| 412 |
ashish |
5896 |
iprot.readStructBegin();
|
|
|
5897 |
while (true)
|
|
|
5898 |
{
|
|
|
5899 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
5900 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 412 |
ashish |
5901 |
break;
|
|
|
5902 |
}
|
| 3430 |
rajveer |
5903 |
switch (field.id) {
|
|
|
5904 |
case 0: // SUCCESS
|
|
|
5905 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
5906 |
this.success = new LogisticsInfo();
|
|
|
5907 |
this.success.read(iprot);
|
|
|
5908 |
} else {
|
|
|
5909 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5910 |
}
|
|
|
5911 |
break;
|
|
|
5912 |
case 1: // SE
|
|
|
5913 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
5914 |
this.se = new LogisticsServiceException();
|
|
|
5915 |
this.se.read(iprot);
|
|
|
5916 |
} else {
|
|
|
5917 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5918 |
}
|
|
|
5919 |
break;
|
|
|
5920 |
default:
|
|
|
5921 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 412 |
ashish |
5922 |
}
|
| 3430 |
rajveer |
5923 |
iprot.readFieldEnd();
|
| 412 |
ashish |
5924 |
}
|
|
|
5925 |
iprot.readStructEnd();
|
|
|
5926 |
validate();
|
|
|
5927 |
}
|
|
|
5928 |
|
| 3430 |
rajveer |
5929 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 648 |
chandransh |
5930 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 412 |
ashish |
5931 |
|
| 648 |
chandransh |
5932 |
if (this.isSetSuccess()) {
|
|
|
5933 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
5934 |
this.success.write(oprot);
|
| 412 |
ashish |
5935 |
oprot.writeFieldEnd();
|
| 648 |
chandransh |
5936 |
} else if (this.isSetSe()) {
|
|
|
5937 |
oprot.writeFieldBegin(SE_FIELD_DESC);
|
|
|
5938 |
this.se.write(oprot);
|
|
|
5939 |
oprot.writeFieldEnd();
|
| 412 |
ashish |
5940 |
}
|
|
|
5941 |
oprot.writeFieldStop();
|
|
|
5942 |
oprot.writeStructEnd();
|
|
|
5943 |
}
|
|
|
5944 |
|
|
|
5945 |
@Override
|
|
|
5946 |
public String toString() {
|
| 648 |
chandransh |
5947 |
StringBuilder sb = new StringBuilder("getLogisticsInfo_result(");
|
| 412 |
ashish |
5948 |
boolean first = true;
|
|
|
5949 |
|
| 648 |
chandransh |
5950 |
sb.append("success:");
|
|
|
5951 |
if (this.success == null) {
|
| 412 |
ashish |
5952 |
sb.append("null");
|
|
|
5953 |
} else {
|
| 648 |
chandransh |
5954 |
sb.append(this.success);
|
| 412 |
ashish |
5955 |
}
|
|
|
5956 |
first = false;
|
|
|
5957 |
if (!first) sb.append(", ");
|
| 648 |
chandransh |
5958 |
sb.append("se:");
|
|
|
5959 |
if (this.se == null) {
|
|
|
5960 |
sb.append("null");
|
|
|
5961 |
} else {
|
|
|
5962 |
sb.append(this.se);
|
|
|
5963 |
}
|
| 412 |
ashish |
5964 |
first = false;
|
|
|
5965 |
sb.append(")");
|
|
|
5966 |
return sb.toString();
|
|
|
5967 |
}
|
|
|
5968 |
|
| 3430 |
rajveer |
5969 |
public void validate() throws org.apache.thrift.TException {
|
| 412 |
ashish |
5970 |
// check for required fields
|
|
|
5971 |
}
|
|
|
5972 |
|
| 3430 |
rajveer |
5973 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
5974 |
try {
|
|
|
5975 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
5976 |
} catch (org.apache.thrift.TException te) {
|
|
|
5977 |
throw new java.io.IOException(te);
|
|
|
5978 |
}
|
|
|
5979 |
}
|
|
|
5980 |
|
|
|
5981 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
5982 |
try {
|
|
|
5983 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
5984 |
} catch (org.apache.thrift.TException te) {
|
|
|
5985 |
throw new java.io.IOException(te);
|
|
|
5986 |
}
|
|
|
5987 |
}
|
|
|
5988 |
|
| 412 |
ashish |
5989 |
}
|
|
|
5990 |
|
| 3430 |
rajveer |
5991 |
public static class getEmptyAWB_args implements org.apache.thrift.TBase<getEmptyAWB_args, getEmptyAWB_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
5992 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_args");
|
| 412 |
ashish |
5993 |
|
| 3430 |
rajveer |
5994 |
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)1);
|
| 5247 |
rajveer |
5995 |
private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)-1);
|
| 412 |
ashish |
5996 |
|
| 3430 |
rajveer |
5997 |
private long providerId; // required
|
| 5247 |
rajveer |
5998 |
private DeliveryType type; // required
|
| 412 |
ashish |
5999 |
|
|
|
6000 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
6001 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 5247 |
rajveer |
6002 |
PROVIDER_ID((short)1, "providerId"),
|
|
|
6003 |
/**
|
|
|
6004 |
*
|
|
|
6005 |
* @see DeliveryType
|
|
|
6006 |
*/
|
|
|
6007 |
TYPE((short)-1, "type");
|
| 412 |
ashish |
6008 |
|
|
|
6009 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
6010 |
|
|
|
6011 |
static {
|
|
|
6012 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
6013 |
byName.put(field.getFieldName(), field);
|
|
|
6014 |
}
|
|
|
6015 |
}
|
|
|
6016 |
|
|
|
6017 |
/**
|
|
|
6018 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
6019 |
*/
|
|
|
6020 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
6021 |
switch(fieldId) {
|
|
|
6022 |
case 1: // PROVIDER_ID
|
|
|
6023 |
return PROVIDER_ID;
|
| 5247 |
rajveer |
6024 |
case -1: // TYPE
|
|
|
6025 |
return TYPE;
|
| 3430 |
rajveer |
6026 |
default:
|
|
|
6027 |
return null;
|
|
|
6028 |
}
|
| 412 |
ashish |
6029 |
}
|
|
|
6030 |
|
|
|
6031 |
/**
|
|
|
6032 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
6033 |
* if it is not found.
|
|
|
6034 |
*/
|
|
|
6035 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
6036 |
_Fields fields = findByThriftId(fieldId);
|
|
|
6037 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
6038 |
return fields;
|
|
|
6039 |
}
|
|
|
6040 |
|
|
|
6041 |
/**
|
|
|
6042 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
6043 |
*/
|
|
|
6044 |
public static _Fields findByName(String name) {
|
|
|
6045 |
return byName.get(name);
|
|
|
6046 |
}
|
|
|
6047 |
|
|
|
6048 |
private final short _thriftId;
|
|
|
6049 |
private final String _fieldName;
|
|
|
6050 |
|
|
|
6051 |
_Fields(short thriftId, String fieldName) {
|
|
|
6052 |
_thriftId = thriftId;
|
|
|
6053 |
_fieldName = fieldName;
|
|
|
6054 |
}
|
|
|
6055 |
|
|
|
6056 |
public short getThriftFieldId() {
|
|
|
6057 |
return _thriftId;
|
|
|
6058 |
}
|
|
|
6059 |
|
|
|
6060 |
public String getFieldName() {
|
|
|
6061 |
return _fieldName;
|
|
|
6062 |
}
|
|
|
6063 |
}
|
|
|
6064 |
|
|
|
6065 |
// isset id assignments
|
| 648 |
chandransh |
6066 |
private static final int __PROVIDERID_ISSET_ID = 0;
|
| 412 |
ashish |
6067 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
6068 |
|
| 3430 |
rajveer |
6069 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 412 |
ashish |
6070 |
static {
|
| 3430 |
rajveer |
6071 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
6072 |
tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6073 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 5247 |
rajveer |
6074 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6075 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
|
| 3430 |
rajveer |
6076 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
6077 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_args.class, metaDataMap);
|
| 412 |
ashish |
6078 |
}
|
|
|
6079 |
|
|
|
6080 |
public getEmptyAWB_args() {
|
|
|
6081 |
}
|
|
|
6082 |
|
|
|
6083 |
public getEmptyAWB_args(
|
| 5247 |
rajveer |
6084 |
long providerId,
|
|
|
6085 |
DeliveryType type)
|
| 412 |
ashish |
6086 |
{
|
|
|
6087 |
this();
|
| 648 |
chandransh |
6088 |
this.providerId = providerId;
|
|
|
6089 |
setProviderIdIsSet(true);
|
| 5247 |
rajveer |
6090 |
this.type = type;
|
| 412 |
ashish |
6091 |
}
|
|
|
6092 |
|
|
|
6093 |
/**
|
|
|
6094 |
* Performs a deep copy on <i>other</i>.
|
|
|
6095 |
*/
|
|
|
6096 |
public getEmptyAWB_args(getEmptyAWB_args other) {
|
|
|
6097 |
__isset_bit_vector.clear();
|
|
|
6098 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 648 |
chandransh |
6099 |
this.providerId = other.providerId;
|
| 5247 |
rajveer |
6100 |
if (other.isSetType()) {
|
|
|
6101 |
this.type = other.type;
|
|
|
6102 |
}
|
| 412 |
ashish |
6103 |
}
|
|
|
6104 |
|
|
|
6105 |
public getEmptyAWB_args deepCopy() {
|
|
|
6106 |
return new getEmptyAWB_args(this);
|
|
|
6107 |
}
|
|
|
6108 |
|
| 3430 |
rajveer |
6109 |
@Override
|
|
|
6110 |
public void clear() {
|
|
|
6111 |
setProviderIdIsSet(false);
|
|
|
6112 |
this.providerId = 0;
|
| 5247 |
rajveer |
6113 |
this.type = null;
|
| 412 |
ashish |
6114 |
}
|
|
|
6115 |
|
| 648 |
chandransh |
6116 |
public long getProviderId() {
|
|
|
6117 |
return this.providerId;
|
| 412 |
ashish |
6118 |
}
|
|
|
6119 |
|
| 3430 |
rajveer |
6120 |
public void setProviderId(long providerId) {
|
| 648 |
chandransh |
6121 |
this.providerId = providerId;
|
|
|
6122 |
setProviderIdIsSet(true);
|
| 412 |
ashish |
6123 |
}
|
|
|
6124 |
|
| 648 |
chandransh |
6125 |
public void unsetProviderId() {
|
|
|
6126 |
__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
|
| 412 |
ashish |
6127 |
}
|
|
|
6128 |
|
| 3430 |
rajveer |
6129 |
/** Returns true if field providerId is set (has been assigned a value) and false otherwise */
|
| 648 |
chandransh |
6130 |
public boolean isSetProviderId() {
|
|
|
6131 |
return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
|
| 412 |
ashish |
6132 |
}
|
|
|
6133 |
|
| 648 |
chandransh |
6134 |
public void setProviderIdIsSet(boolean value) {
|
|
|
6135 |
__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
|
| 412 |
ashish |
6136 |
}
|
|
|
6137 |
|
| 5247 |
rajveer |
6138 |
/**
|
|
|
6139 |
*
|
|
|
6140 |
* @see DeliveryType
|
|
|
6141 |
*/
|
|
|
6142 |
public DeliveryType getType() {
|
|
|
6143 |
return this.type;
|
|
|
6144 |
}
|
|
|
6145 |
|
|
|
6146 |
/**
|
|
|
6147 |
*
|
|
|
6148 |
* @see DeliveryType
|
|
|
6149 |
*/
|
|
|
6150 |
public void setType(DeliveryType type) {
|
|
|
6151 |
this.type = type;
|
|
|
6152 |
}
|
|
|
6153 |
|
|
|
6154 |
public void unsetType() {
|
|
|
6155 |
this.type = null;
|
|
|
6156 |
}
|
|
|
6157 |
|
|
|
6158 |
/** Returns true if field type is set (has been assigned a value) and false otherwise */
|
|
|
6159 |
public boolean isSetType() {
|
|
|
6160 |
return this.type != null;
|
|
|
6161 |
}
|
|
|
6162 |
|
|
|
6163 |
public void setTypeIsSet(boolean value) {
|
|
|
6164 |
if (!value) {
|
|
|
6165 |
this.type = null;
|
|
|
6166 |
}
|
|
|
6167 |
}
|
|
|
6168 |
|
| 412 |
ashish |
6169 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
6170 |
switch (field) {
|
|
|
6171 |
case PROVIDER_ID:
|
|
|
6172 |
if (value == null) {
|
| 648 |
chandransh |
6173 |
unsetProviderId();
|
| 412 |
ashish |
6174 |
} else {
|
| 648 |
chandransh |
6175 |
setProviderId((Long)value);
|
| 412 |
ashish |
6176 |
}
|
|
|
6177 |
break;
|
|
|
6178 |
|
| 5247 |
rajveer |
6179 |
case TYPE:
|
|
|
6180 |
if (value == null) {
|
|
|
6181 |
unsetType();
|
|
|
6182 |
} else {
|
|
|
6183 |
setType((DeliveryType)value);
|
|
|
6184 |
}
|
|
|
6185 |
break;
|
|
|
6186 |
|
| 412 |
ashish |
6187 |
}
|
|
|
6188 |
}
|
|
|
6189 |
|
|
|
6190 |
public Object getFieldValue(_Fields field) {
|
|
|
6191 |
switch (field) {
|
|
|
6192 |
case PROVIDER_ID:
|
| 3430 |
rajveer |
6193 |
return Long.valueOf(getProviderId());
|
| 412 |
ashish |
6194 |
|
| 5247 |
rajveer |
6195 |
case TYPE:
|
|
|
6196 |
return getType();
|
|
|
6197 |
|
| 412 |
ashish |
6198 |
}
|
|
|
6199 |
throw new IllegalStateException();
|
|
|
6200 |
}
|
|
|
6201 |
|
| 3430 |
rajveer |
6202 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
6203 |
public boolean isSet(_Fields field) {
|
|
|
6204 |
if (field == null) {
|
|
|
6205 |
throw new IllegalArgumentException();
|
|
|
6206 |
}
|
| 412 |
ashish |
6207 |
|
|
|
6208 |
switch (field) {
|
|
|
6209 |
case PROVIDER_ID:
|
| 648 |
chandransh |
6210 |
return isSetProviderId();
|
| 5247 |
rajveer |
6211 |
case TYPE:
|
|
|
6212 |
return isSetType();
|
| 412 |
ashish |
6213 |
}
|
|
|
6214 |
throw new IllegalStateException();
|
|
|
6215 |
}
|
|
|
6216 |
|
|
|
6217 |
@Override
|
|
|
6218 |
public boolean equals(Object that) {
|
|
|
6219 |
if (that == null)
|
|
|
6220 |
return false;
|
|
|
6221 |
if (that instanceof getEmptyAWB_args)
|
|
|
6222 |
return this.equals((getEmptyAWB_args)that);
|
|
|
6223 |
return false;
|
|
|
6224 |
}
|
|
|
6225 |
|
|
|
6226 |
public boolean equals(getEmptyAWB_args that) {
|
|
|
6227 |
if (that == null)
|
|
|
6228 |
return false;
|
|
|
6229 |
|
| 648 |
chandransh |
6230 |
boolean this_present_providerId = true;
|
|
|
6231 |
boolean that_present_providerId = true;
|
|
|
6232 |
if (this_present_providerId || that_present_providerId) {
|
|
|
6233 |
if (!(this_present_providerId && that_present_providerId))
|
| 412 |
ashish |
6234 |
return false;
|
| 648 |
chandransh |
6235 |
if (this.providerId != that.providerId)
|
| 412 |
ashish |
6236 |
return false;
|
|
|
6237 |
}
|
|
|
6238 |
|
| 5247 |
rajveer |
6239 |
boolean this_present_type = true && this.isSetType();
|
|
|
6240 |
boolean that_present_type = true && that.isSetType();
|
|
|
6241 |
if (this_present_type || that_present_type) {
|
|
|
6242 |
if (!(this_present_type && that_present_type))
|
|
|
6243 |
return false;
|
|
|
6244 |
if (!this.type.equals(that.type))
|
|
|
6245 |
return false;
|
|
|
6246 |
}
|
|
|
6247 |
|
| 412 |
ashish |
6248 |
return true;
|
|
|
6249 |
}
|
|
|
6250 |
|
|
|
6251 |
@Override
|
|
|
6252 |
public int hashCode() {
|
|
|
6253 |
return 0;
|
|
|
6254 |
}
|
|
|
6255 |
|
|
|
6256 |
public int compareTo(getEmptyAWB_args other) {
|
|
|
6257 |
if (!getClass().equals(other.getClass())) {
|
|
|
6258 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
6259 |
}
|
|
|
6260 |
|
|
|
6261 |
int lastComparison = 0;
|
|
|
6262 |
getEmptyAWB_args typedOther = (getEmptyAWB_args)other;
|
|
|
6263 |
|
| 3430 |
rajveer |
6264 |
lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
|
| 412 |
ashish |
6265 |
if (lastComparison != 0) {
|
|
|
6266 |
return lastComparison;
|
|
|
6267 |
}
|
| 3430 |
rajveer |
6268 |
if (isSetProviderId()) {
|
|
|
6269 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
|
|
|
6270 |
if (lastComparison != 0) {
|
|
|
6271 |
return lastComparison;
|
|
|
6272 |
}
|
| 412 |
ashish |
6273 |
}
|
| 5247 |
rajveer |
6274 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
|
|
6275 |
if (lastComparison != 0) {
|
|
|
6276 |
return lastComparison;
|
|
|
6277 |
}
|
|
|
6278 |
if (isSetType()) {
|
|
|
6279 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
|
|
6280 |
if (lastComparison != 0) {
|
|
|
6281 |
return lastComparison;
|
|
|
6282 |
}
|
|
|
6283 |
}
|
| 412 |
ashish |
6284 |
return 0;
|
|
|
6285 |
}
|
|
|
6286 |
|
| 3430 |
rajveer |
6287 |
public _Fields fieldForId(int fieldId) {
|
|
|
6288 |
return _Fields.findByThriftId(fieldId);
|
|
|
6289 |
}
|
|
|
6290 |
|
|
|
6291 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
6292 |
org.apache.thrift.protocol.TField field;
|
| 412 |
ashish |
6293 |
iprot.readStructBegin();
|
|
|
6294 |
while (true)
|
|
|
6295 |
{
|
|
|
6296 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
6297 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 412 |
ashish |
6298 |
break;
|
|
|
6299 |
}
|
| 3430 |
rajveer |
6300 |
switch (field.id) {
|
|
|
6301 |
case 1: // PROVIDER_ID
|
|
|
6302 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
6303 |
this.providerId = iprot.readI64();
|
|
|
6304 |
setProviderIdIsSet(true);
|
|
|
6305 |
} else {
|
|
|
6306 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6307 |
}
|
|
|
6308 |
break;
|
| 5247 |
rajveer |
6309 |
case -1: // TYPE
|
|
|
6310 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
6311 |
this.type = DeliveryType.findByValue(iprot.readI32());
|
|
|
6312 |
} else {
|
|
|
6313 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6314 |
}
|
|
|
6315 |
break;
|
| 3430 |
rajveer |
6316 |
default:
|
|
|
6317 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 412 |
ashish |
6318 |
}
|
| 3430 |
rajveer |
6319 |
iprot.readFieldEnd();
|
| 412 |
ashish |
6320 |
}
|
|
|
6321 |
iprot.readStructEnd();
|
|
|
6322 |
validate();
|
|
|
6323 |
}
|
|
|
6324 |
|
| 3430 |
rajveer |
6325 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 412 |
ashish |
6326 |
validate();
|
|
|
6327 |
|
|
|
6328 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 5247 |
rajveer |
6329 |
if (this.type != null) {
|
|
|
6330 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
|
|
6331 |
oprot.writeI32(this.type.getValue());
|
|
|
6332 |
oprot.writeFieldEnd();
|
|
|
6333 |
}
|
| 412 |
ashish |
6334 |
oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
|
| 648 |
chandransh |
6335 |
oprot.writeI64(this.providerId);
|
| 412 |
ashish |
6336 |
oprot.writeFieldEnd();
|
|
|
6337 |
oprot.writeFieldStop();
|
|
|
6338 |
oprot.writeStructEnd();
|
|
|
6339 |
}
|
|
|
6340 |
|
|
|
6341 |
@Override
|
|
|
6342 |
public String toString() {
|
|
|
6343 |
StringBuilder sb = new StringBuilder("getEmptyAWB_args(");
|
|
|
6344 |
boolean first = true;
|
|
|
6345 |
|
| 648 |
chandransh |
6346 |
sb.append("providerId:");
|
|
|
6347 |
sb.append(this.providerId);
|
| 412 |
ashish |
6348 |
first = false;
|
| 5247 |
rajveer |
6349 |
if (!first) sb.append(", ");
|
|
|
6350 |
sb.append("type:");
|
|
|
6351 |
if (this.type == null) {
|
|
|
6352 |
sb.append("null");
|
|
|
6353 |
} else {
|
|
|
6354 |
sb.append(this.type);
|
|
|
6355 |
}
|
|
|
6356 |
first = false;
|
| 412 |
ashish |
6357 |
sb.append(")");
|
|
|
6358 |
return sb.toString();
|
|
|
6359 |
}
|
|
|
6360 |
|
| 3430 |
rajveer |
6361 |
public void validate() throws org.apache.thrift.TException {
|
| 412 |
ashish |
6362 |
// check for required fields
|
|
|
6363 |
}
|
|
|
6364 |
|
| 3430 |
rajveer |
6365 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
6366 |
try {
|
|
|
6367 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
6368 |
} catch (org.apache.thrift.TException te) {
|
|
|
6369 |
throw new java.io.IOException(te);
|
|
|
6370 |
}
|
|
|
6371 |
}
|
|
|
6372 |
|
|
|
6373 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
6374 |
try {
|
|
|
6375 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
6376 |
__isset_bit_vector = new BitSet(1);
|
|
|
6377 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
6378 |
} catch (org.apache.thrift.TException te) {
|
|
|
6379 |
throw new java.io.IOException(te);
|
|
|
6380 |
}
|
|
|
6381 |
}
|
|
|
6382 |
|
| 412 |
ashish |
6383 |
}
|
|
|
6384 |
|
| 3430 |
rajveer |
6385 |
public static class getEmptyAWB_result implements org.apache.thrift.TBase<getEmptyAWB_result, getEmptyAWB_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
6386 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_result");
|
| 412 |
ashish |
6387 |
|
| 3430 |
rajveer |
6388 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);
|
|
|
6389 |
private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
| 412 |
ashish |
6390 |
|
| 3430 |
rajveer |
6391 |
private String success; // required
|
|
|
6392 |
private LogisticsServiceException se; // required
|
| 412 |
ashish |
6393 |
|
|
|
6394 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
6395 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 648 |
chandransh |
6396 |
SUCCESS((short)0, "success"),
|
|
|
6397 |
SE((short)1, "se");
|
| 412 |
ashish |
6398 |
|
|
|
6399 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
6400 |
|
|
|
6401 |
static {
|
|
|
6402 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
6403 |
byName.put(field.getFieldName(), field);
|
|
|
6404 |
}
|
|
|
6405 |
}
|
|
|
6406 |
|
|
|
6407 |
/**
|
|
|
6408 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
6409 |
*/
|
|
|
6410 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
6411 |
switch(fieldId) {
|
|
|
6412 |
case 0: // SUCCESS
|
|
|
6413 |
return SUCCESS;
|
|
|
6414 |
case 1: // SE
|
|
|
6415 |
return SE;
|
|
|
6416 |
default:
|
|
|
6417 |
return null;
|
|
|
6418 |
}
|
| 412 |
ashish |
6419 |
}
|
|
|
6420 |
|
|
|
6421 |
/**
|
|
|
6422 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
6423 |
* if it is not found.
|
|
|
6424 |
*/
|
|
|
6425 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
6426 |
_Fields fields = findByThriftId(fieldId);
|
|
|
6427 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
6428 |
return fields;
|
|
|
6429 |
}
|
|
|
6430 |
|
|
|
6431 |
/**
|
|
|
6432 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
6433 |
*/
|
|
|
6434 |
public static _Fields findByName(String name) {
|
|
|
6435 |
return byName.get(name);
|
|
|
6436 |
}
|
|
|
6437 |
|
|
|
6438 |
private final short _thriftId;
|
|
|
6439 |
private final String _fieldName;
|
|
|
6440 |
|
|
|
6441 |
_Fields(short thriftId, String fieldName) {
|
|
|
6442 |
_thriftId = thriftId;
|
|
|
6443 |
_fieldName = fieldName;
|
|
|
6444 |
}
|
|
|
6445 |
|
|
|
6446 |
public short getThriftFieldId() {
|
|
|
6447 |
return _thriftId;
|
|
|
6448 |
}
|
|
|
6449 |
|
|
|
6450 |
public String getFieldName() {
|
|
|
6451 |
return _fieldName;
|
|
|
6452 |
}
|
|
|
6453 |
}
|
|
|
6454 |
|
|
|
6455 |
// isset id assignments
|
|
|
6456 |
|
| 3430 |
rajveer |
6457 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 412 |
ashish |
6458 |
static {
|
| 3430 |
rajveer |
6459 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
6460 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6461 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
6462 |
tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6463 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
6464 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
6465 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_result.class, metaDataMap);
|
| 412 |
ashish |
6466 |
}
|
|
|
6467 |
|
|
|
6468 |
public getEmptyAWB_result() {
|
|
|
6469 |
}
|
|
|
6470 |
|
|
|
6471 |
public getEmptyAWB_result(
|
| 648 |
chandransh |
6472 |
String success,
|
|
|
6473 |
LogisticsServiceException se)
|
| 412 |
ashish |
6474 |
{
|
|
|
6475 |
this();
|
|
|
6476 |
this.success = success;
|
| 648 |
chandransh |
6477 |
this.se = se;
|
| 412 |
ashish |
6478 |
}
|
|
|
6479 |
|
|
|
6480 |
/**
|
|
|
6481 |
* Performs a deep copy on <i>other</i>.
|
|
|
6482 |
*/
|
|
|
6483 |
public getEmptyAWB_result(getEmptyAWB_result other) {
|
|
|
6484 |
if (other.isSetSuccess()) {
|
|
|
6485 |
this.success = other.success;
|
|
|
6486 |
}
|
| 648 |
chandransh |
6487 |
if (other.isSetSe()) {
|
|
|
6488 |
this.se = new LogisticsServiceException(other.se);
|
|
|
6489 |
}
|
| 412 |
ashish |
6490 |
}
|
|
|
6491 |
|
|
|
6492 |
public getEmptyAWB_result deepCopy() {
|
|
|
6493 |
return new getEmptyAWB_result(this);
|
|
|
6494 |
}
|
|
|
6495 |
|
| 3430 |
rajveer |
6496 |
@Override
|
|
|
6497 |
public void clear() {
|
|
|
6498 |
this.success = null;
|
|
|
6499 |
this.se = null;
|
| 412 |
ashish |
6500 |
}
|
|
|
6501 |
|
|
|
6502 |
public String getSuccess() {
|
|
|
6503 |
return this.success;
|
|
|
6504 |
}
|
|
|
6505 |
|
| 3430 |
rajveer |
6506 |
public void setSuccess(String success) {
|
| 412 |
ashish |
6507 |
this.success = success;
|
|
|
6508 |
}
|
|
|
6509 |
|
|
|
6510 |
public void unsetSuccess() {
|
|
|
6511 |
this.success = null;
|
|
|
6512 |
}
|
|
|
6513 |
|
| 3430 |
rajveer |
6514 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 412 |
ashish |
6515 |
public boolean isSetSuccess() {
|
|
|
6516 |
return this.success != null;
|
|
|
6517 |
}
|
|
|
6518 |
|
|
|
6519 |
public void setSuccessIsSet(boolean value) {
|
|
|
6520 |
if (!value) {
|
|
|
6521 |
this.success = null;
|
|
|
6522 |
}
|
|
|
6523 |
}
|
|
|
6524 |
|
| 648 |
chandransh |
6525 |
public LogisticsServiceException getSe() {
|
|
|
6526 |
return this.se;
|
| 412 |
ashish |
6527 |
}
|
|
|
6528 |
|
| 3430 |
rajveer |
6529 |
public void setSe(LogisticsServiceException se) {
|
| 648 |
chandransh |
6530 |
this.se = se;
|
| 412 |
ashish |
6531 |
}
|
|
|
6532 |
|
| 648 |
chandransh |
6533 |
public void unsetSe() {
|
|
|
6534 |
this.se = null;
|
| 412 |
ashish |
6535 |
}
|
|
|
6536 |
|
| 3430 |
rajveer |
6537 |
/** Returns true if field se is set (has been assigned a value) and false otherwise */
|
| 648 |
chandransh |
6538 |
public boolean isSetSe() {
|
|
|
6539 |
return this.se != null;
|
| 412 |
ashish |
6540 |
}
|
|
|
6541 |
|
| 648 |
chandransh |
6542 |
public void setSeIsSet(boolean value) {
|
| 412 |
ashish |
6543 |
if (!value) {
|
| 648 |
chandransh |
6544 |
this.se = null;
|
| 412 |
ashish |
6545 |
}
|
|
|
6546 |
}
|
|
|
6547 |
|
|
|
6548 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
6549 |
switch (field) {
|
|
|
6550 |
case SUCCESS:
|
|
|
6551 |
if (value == null) {
|
|
|
6552 |
unsetSuccess();
|
|
|
6553 |
} else {
|
| 648 |
chandransh |
6554 |
setSuccess((String)value);
|
| 412 |
ashish |
6555 |
}
|
|
|
6556 |
break;
|
|
|
6557 |
|
| 648 |
chandransh |
6558 |
case SE:
|
|
|
6559 |
if (value == null) {
|
|
|
6560 |
unsetSe();
|
|
|
6561 |
} else {
|
|
|
6562 |
setSe((LogisticsServiceException)value);
|
|
|
6563 |
}
|
|
|
6564 |
break;
|
|
|
6565 |
|
| 412 |
ashish |
6566 |
}
|
|
|
6567 |
}
|
|
|
6568 |
|
|
|
6569 |
public Object getFieldValue(_Fields field) {
|
|
|
6570 |
switch (field) {
|
|
|
6571 |
case SUCCESS:
|
|
|
6572 |
return getSuccess();
|
|
|
6573 |
|
| 648 |
chandransh |
6574 |
case SE:
|
|
|
6575 |
return getSe();
|
|
|
6576 |
|
| 412 |
ashish |
6577 |
}
|
|
|
6578 |
throw new IllegalStateException();
|
|
|
6579 |
}
|
|
|
6580 |
|
| 3430 |
rajveer |
6581 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
6582 |
public boolean isSet(_Fields field) {
|
|
|
6583 |
if (field == null) {
|
|
|
6584 |
throw new IllegalArgumentException();
|
|
|
6585 |
}
|
| 412 |
ashish |
6586 |
|
|
|
6587 |
switch (field) {
|
|
|
6588 |
case SUCCESS:
|
|
|
6589 |
return isSetSuccess();
|
| 648 |
chandransh |
6590 |
case SE:
|
|
|
6591 |
return isSetSe();
|
| 412 |
ashish |
6592 |
}
|
|
|
6593 |
throw new IllegalStateException();
|
|
|
6594 |
}
|
|
|
6595 |
|
|
|
6596 |
@Override
|
|
|
6597 |
public boolean equals(Object that) {
|
|
|
6598 |
if (that == null)
|
|
|
6599 |
return false;
|
| 648 |
chandransh |
6600 |
if (that instanceof getEmptyAWB_result)
|
|
|
6601 |
return this.equals((getEmptyAWB_result)that);
|
| 412 |
ashish |
6602 |
return false;
|
|
|
6603 |
}
|
|
|
6604 |
|
| 648 |
chandransh |
6605 |
public boolean equals(getEmptyAWB_result that) {
|
| 412 |
ashish |
6606 |
if (that == null)
|
|
|
6607 |
return false;
|
|
|
6608 |
|
|
|
6609 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
6610 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
6611 |
if (this_present_success || that_present_success) {
|
|
|
6612 |
if (!(this_present_success && that_present_success))
|
|
|
6613 |
return false;
|
|
|
6614 |
if (!this.success.equals(that.success))
|
|
|
6615 |
return false;
|
|
|
6616 |
}
|
|
|
6617 |
|
| 648 |
chandransh |
6618 |
boolean this_present_se = true && this.isSetSe();
|
|
|
6619 |
boolean that_present_se = true && that.isSetSe();
|
|
|
6620 |
if (this_present_se || that_present_se) {
|
|
|
6621 |
if (!(this_present_se && that_present_se))
|
|
|
6622 |
return false;
|
|
|
6623 |
if (!this.se.equals(that.se))
|
|
|
6624 |
return false;
|
|
|
6625 |
}
|
|
|
6626 |
|
| 412 |
ashish |
6627 |
return true;
|
|
|
6628 |
}
|
|
|
6629 |
|
|
|
6630 |
@Override
|
|
|
6631 |
public int hashCode() {
|
|
|
6632 |
return 0;
|
|
|
6633 |
}
|
|
|
6634 |
|
| 648 |
chandransh |
6635 |
public int compareTo(getEmptyAWB_result other) {
|
| 412 |
ashish |
6636 |
if (!getClass().equals(other.getClass())) {
|
|
|
6637 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
6638 |
}
|
|
|
6639 |
|
|
|
6640 |
int lastComparison = 0;
|
| 648 |
chandransh |
6641 |
getEmptyAWB_result typedOther = (getEmptyAWB_result)other;
|
| 412 |
ashish |
6642 |
|
| 3430 |
rajveer |
6643 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 412 |
ashish |
6644 |
if (lastComparison != 0) {
|
|
|
6645 |
return lastComparison;
|
|
|
6646 |
}
|
| 3430 |
rajveer |
6647 |
if (isSetSuccess()) {
|
|
|
6648 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
6649 |
if (lastComparison != 0) {
|
|
|
6650 |
return lastComparison;
|
|
|
6651 |
}
|
| 412 |
ashish |
6652 |
}
|
| 3430 |
rajveer |
6653 |
lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
|
| 412 |
ashish |
6654 |
if (lastComparison != 0) {
|
|
|
6655 |
return lastComparison;
|
|
|
6656 |
}
|
| 3430 |
rajveer |
6657 |
if (isSetSe()) {
|
|
|
6658 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
|
|
|
6659 |
if (lastComparison != 0) {
|
|
|
6660 |
return lastComparison;
|
|
|
6661 |
}
|
| 412 |
ashish |
6662 |
}
|
|
|
6663 |
return 0;
|
|
|
6664 |
}
|
|
|
6665 |
|
| 3430 |
rajveer |
6666 |
public _Fields fieldForId(int fieldId) {
|
|
|
6667 |
return _Fields.findByThriftId(fieldId);
|
|
|
6668 |
}
|
|
|
6669 |
|
|
|
6670 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
6671 |
org.apache.thrift.protocol.TField field;
|
| 412 |
ashish |
6672 |
iprot.readStructBegin();
|
|
|
6673 |
while (true)
|
|
|
6674 |
{
|
|
|
6675 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
6676 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 412 |
ashish |
6677 |
break;
|
|
|
6678 |
}
|
| 3430 |
rajveer |
6679 |
switch (field.id) {
|
|
|
6680 |
case 0: // SUCCESS
|
|
|
6681 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
6682 |
this.success = iprot.readString();
|
|
|
6683 |
} else {
|
|
|
6684 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6685 |
}
|
|
|
6686 |
break;
|
|
|
6687 |
case 1: // SE
|
|
|
6688 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
6689 |
this.se = new LogisticsServiceException();
|
|
|
6690 |
this.se.read(iprot);
|
|
|
6691 |
} else {
|
|
|
6692 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6693 |
}
|
|
|
6694 |
break;
|
|
|
6695 |
default:
|
|
|
6696 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 412 |
ashish |
6697 |
}
|
| 3430 |
rajveer |
6698 |
iprot.readFieldEnd();
|
| 412 |
ashish |
6699 |
}
|
|
|
6700 |
iprot.readStructEnd();
|
|
|
6701 |
validate();
|
|
|
6702 |
}
|
|
|
6703 |
|
| 3430 |
rajveer |
6704 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 412 |
ashish |
6705 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
6706 |
|
|
|
6707 |
if (this.isSetSuccess()) {
|
|
|
6708 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| 648 |
chandransh |
6709 |
oprot.writeString(this.success);
|
| 412 |
ashish |
6710 |
oprot.writeFieldEnd();
|
| 648 |
chandransh |
6711 |
} else if (this.isSetSe()) {
|
|
|
6712 |
oprot.writeFieldBegin(SE_FIELD_DESC);
|
|
|
6713 |
this.se.write(oprot);
|
|
|
6714 |
oprot.writeFieldEnd();
|
| 412 |
ashish |
6715 |
}
|
|
|
6716 |
oprot.writeFieldStop();
|
|
|
6717 |
oprot.writeStructEnd();
|
|
|
6718 |
}
|
|
|
6719 |
|
|
|
6720 |
@Override
|
|
|
6721 |
public String toString() {
|
| 648 |
chandransh |
6722 |
StringBuilder sb = new StringBuilder("getEmptyAWB_result(");
|
| 412 |
ashish |
6723 |
boolean first = true;
|
|
|
6724 |
|
|
|
6725 |
sb.append("success:");
|
|
|
6726 |
if (this.success == null) {
|
|
|
6727 |
sb.append("null");
|
|
|
6728 |
} else {
|
|
|
6729 |
sb.append(this.success);
|
|
|
6730 |
}
|
|
|
6731 |
first = false;
|
| 648 |
chandransh |
6732 |
if (!first) sb.append(", ");
|
|
|
6733 |
sb.append("se:");
|
|
|
6734 |
if (this.se == null) {
|
| 442 |
rajveer |
6735 |
sb.append("null");
|
|
|
6736 |
} else {
|
| 648 |
chandransh |
6737 |
sb.append(this.se);
|
| 442 |
rajveer |
6738 |
}
|
|
|
6739 |
first = false;
|
|
|
6740 |
sb.append(")");
|
|
|
6741 |
return sb.toString();
|
|
|
6742 |
}
|
|
|
6743 |
|
| 3430 |
rajveer |
6744 |
public void validate() throws org.apache.thrift.TException {
|
| 442 |
rajveer |
6745 |
// check for required fields
|
|
|
6746 |
}
|
|
|
6747 |
|
| 3430 |
rajveer |
6748 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
6749 |
try {
|
|
|
6750 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
6751 |
} catch (org.apache.thrift.TException te) {
|
|
|
6752 |
throw new java.io.IOException(te);
|
|
|
6753 |
}
|
|
|
6754 |
}
|
|
|
6755 |
|
|
|
6756 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
6757 |
try {
|
|
|
6758 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
6759 |
} catch (org.apache.thrift.TException te) {
|
|
|
6760 |
throw new java.io.IOException(te);
|
|
|
6761 |
}
|
|
|
6762 |
}
|
|
|
6763 |
|
| 442 |
rajveer |
6764 |
}
|
|
|
6765 |
|
| 3430 |
rajveer |
6766 |
public static class getShipmentInfo_args implements org.apache.thrift.TBase<getShipmentInfo_args, getShipmentInfo_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
6767 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_args");
|
| 442 |
rajveer |
6768 |
|
| 6643 |
rajveer |
6769 |
private static final org.apache.thrift.protocol.TField AWB_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("awbNumber", org.apache.thrift.protocol.TType.STRING, (short)1);
|
| 3430 |
rajveer |
6770 |
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);
|
| 442 |
rajveer |
6771 |
|
| 6643 |
rajveer |
6772 |
private String awbNumber; // required
|
| 3430 |
rajveer |
6773 |
private long providerId; // required
|
| 442 |
rajveer |
6774 |
|
|
|
6775 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
6776 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 6643 |
rajveer |
6777 |
AWB_NUMBER((short)1, "awbNumber"),
|
| 648 |
chandransh |
6778 |
PROVIDER_ID((short)2, "providerId");
|
| 442 |
rajveer |
6779 |
|
|
|
6780 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
6781 |
|
|
|
6782 |
static {
|
|
|
6783 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
6784 |
byName.put(field.getFieldName(), field);
|
|
|
6785 |
}
|
|
|
6786 |
}
|
|
|
6787 |
|
|
|
6788 |
/**
|
|
|
6789 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
6790 |
*/
|
|
|
6791 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
6792 |
switch(fieldId) {
|
| 6643 |
rajveer |
6793 |
case 1: // AWB_NUMBER
|
|
|
6794 |
return AWB_NUMBER;
|
| 3430 |
rajveer |
6795 |
case 2: // PROVIDER_ID
|
|
|
6796 |
return PROVIDER_ID;
|
|
|
6797 |
default:
|
|
|
6798 |
return null;
|
|
|
6799 |
}
|
| 442 |
rajveer |
6800 |
}
|
|
|
6801 |
|
|
|
6802 |
/**
|
|
|
6803 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
6804 |
* if it is not found.
|
|
|
6805 |
*/
|
|
|
6806 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
6807 |
_Fields fields = findByThriftId(fieldId);
|
|
|
6808 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
6809 |
return fields;
|
|
|
6810 |
}
|
|
|
6811 |
|
|
|
6812 |
/**
|
|
|
6813 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
6814 |
*/
|
|
|
6815 |
public static _Fields findByName(String name) {
|
|
|
6816 |
return byName.get(name);
|
|
|
6817 |
}
|
|
|
6818 |
|
|
|
6819 |
private final short _thriftId;
|
|
|
6820 |
private final String _fieldName;
|
|
|
6821 |
|
|
|
6822 |
_Fields(short thriftId, String fieldName) {
|
|
|
6823 |
_thriftId = thriftId;
|
|
|
6824 |
_fieldName = fieldName;
|
|
|
6825 |
}
|
|
|
6826 |
|
|
|
6827 |
public short getThriftFieldId() {
|
|
|
6828 |
return _thriftId;
|
|
|
6829 |
}
|
|
|
6830 |
|
|
|
6831 |
public String getFieldName() {
|
|
|
6832 |
return _fieldName;
|
|
|
6833 |
}
|
|
|
6834 |
}
|
|
|
6835 |
|
|
|
6836 |
// isset id assignments
|
| 648 |
chandransh |
6837 |
private static final int __PROVIDERID_ISSET_ID = 0;
|
|
|
6838 |
private BitSet __isset_bit_vector = new BitSet(1);
|
| 442 |
rajveer |
6839 |
|
| 3430 |
rajveer |
6840 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 442 |
rajveer |
6841 |
static {
|
| 3430 |
rajveer |
6842 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 6643 |
rajveer |
6843 |
tmpMap.put(_Fields.AWB_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("awbNumber", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 3430 |
rajveer |
6844 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
6845 |
tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6846 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
6847 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
6848 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_args.class, metaDataMap);
|
| 442 |
rajveer |
6849 |
}
|
|
|
6850 |
|
| 648 |
chandransh |
6851 |
public getShipmentInfo_args() {
|
| 442 |
rajveer |
6852 |
}
|
|
|
6853 |
|
| 648 |
chandransh |
6854 |
public getShipmentInfo_args(
|
| 6643 |
rajveer |
6855 |
String awbNumber,
|
| 648 |
chandransh |
6856 |
long providerId)
|
| 442 |
rajveer |
6857 |
{
|
|
|
6858 |
this();
|
| 6643 |
rajveer |
6859 |
this.awbNumber = awbNumber;
|
| 648 |
chandransh |
6860 |
this.providerId = providerId;
|
|
|
6861 |
setProviderIdIsSet(true);
|
| 442 |
rajveer |
6862 |
}
|
|
|
6863 |
|
|
|
6864 |
/**
|
|
|
6865 |
* Performs a deep copy on <i>other</i>.
|
|
|
6866 |
*/
|
| 648 |
chandransh |
6867 |
public getShipmentInfo_args(getShipmentInfo_args other) {
|
|
|
6868 |
__isset_bit_vector.clear();
|
|
|
6869 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 6643 |
rajveer |
6870 |
if (other.isSetAwbNumber()) {
|
|
|
6871 |
this.awbNumber = other.awbNumber;
|
| 442 |
rajveer |
6872 |
}
|
| 648 |
chandransh |
6873 |
this.providerId = other.providerId;
|
| 442 |
rajveer |
6874 |
}
|
|
|
6875 |
|
| 648 |
chandransh |
6876 |
public getShipmentInfo_args deepCopy() {
|
|
|
6877 |
return new getShipmentInfo_args(this);
|
| 442 |
rajveer |
6878 |
}
|
|
|
6879 |
|
| 3430 |
rajveer |
6880 |
@Override
|
|
|
6881 |
public void clear() {
|
| 6643 |
rajveer |
6882 |
this.awbNumber = null;
|
| 3430 |
rajveer |
6883 |
setProviderIdIsSet(false);
|
|
|
6884 |
this.providerId = 0;
|
| 442 |
rajveer |
6885 |
}
|
|
|
6886 |
|
| 6643 |
rajveer |
6887 |
public String getAwbNumber() {
|
|
|
6888 |
return this.awbNumber;
|
| 442 |
rajveer |
6889 |
}
|
|
|
6890 |
|
| 6643 |
rajveer |
6891 |
public void setAwbNumber(String awbNumber) {
|
|
|
6892 |
this.awbNumber = awbNumber;
|
| 442 |
rajveer |
6893 |
}
|
|
|
6894 |
|
| 6643 |
rajveer |
6895 |
public void unsetAwbNumber() {
|
|
|
6896 |
this.awbNumber = null;
|
| 442 |
rajveer |
6897 |
}
|
|
|
6898 |
|
| 6643 |
rajveer |
6899 |
/** Returns true if field awbNumber is set (has been assigned a value) and false otherwise */
|
|
|
6900 |
public boolean isSetAwbNumber() {
|
|
|
6901 |
return this.awbNumber != null;
|
| 442 |
rajveer |
6902 |
}
|
|
|
6903 |
|
| 6643 |
rajveer |
6904 |
public void setAwbNumberIsSet(boolean value) {
|
| 442 |
rajveer |
6905 |
if (!value) {
|
| 6643 |
rajveer |
6906 |
this.awbNumber = null;
|
| 442 |
rajveer |
6907 |
}
|
|
|
6908 |
}
|
|
|
6909 |
|
| 648 |
chandransh |
6910 |
public long getProviderId() {
|
|
|
6911 |
return this.providerId;
|
| 442 |
rajveer |
6912 |
}
|
|
|
6913 |
|
| 3430 |
rajveer |
6914 |
public void setProviderId(long providerId) {
|
| 648 |
chandransh |
6915 |
this.providerId = providerId;
|
|
|
6916 |
setProviderIdIsSet(true);
|
| 442 |
rajveer |
6917 |
}
|
|
|
6918 |
|
| 648 |
chandransh |
6919 |
public void unsetProviderId() {
|
|
|
6920 |
__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
|
| 442 |
rajveer |
6921 |
}
|
|
|
6922 |
|
| 3430 |
rajveer |
6923 |
/** Returns true if field providerId is set (has been assigned a value) and false otherwise */
|
| 648 |
chandransh |
6924 |
public boolean isSetProviderId() {
|
|
|
6925 |
return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
|
| 442 |
rajveer |
6926 |
}
|
|
|
6927 |
|
| 648 |
chandransh |
6928 |
public void setProviderIdIsSet(boolean value) {
|
|
|
6929 |
__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
|
| 442 |
rajveer |
6930 |
}
|
|
|
6931 |
|
|
|
6932 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
6933 |
switch (field) {
|
| 6643 |
rajveer |
6934 |
case AWB_NUMBER:
|
| 442 |
rajveer |
6935 |
if (value == null) {
|
| 6643 |
rajveer |
6936 |
unsetAwbNumber();
|
| 442 |
rajveer |
6937 |
} else {
|
| 6643 |
rajveer |
6938 |
setAwbNumber((String)value);
|
| 442 |
rajveer |
6939 |
}
|
|
|
6940 |
break;
|
|
|
6941 |
|
| 648 |
chandransh |
6942 |
case PROVIDER_ID:
|
| 442 |
rajveer |
6943 |
if (value == null) {
|
| 648 |
chandransh |
6944 |
unsetProviderId();
|
| 442 |
rajveer |
6945 |
} else {
|
| 648 |
chandransh |
6946 |
setProviderId((Long)value);
|
| 442 |
rajveer |
6947 |
}
|
|
|
6948 |
break;
|
|
|
6949 |
|
|
|
6950 |
}
|
|
|
6951 |
}
|
|
|
6952 |
|
|
|
6953 |
public Object getFieldValue(_Fields field) {
|
|
|
6954 |
switch (field) {
|
| 6643 |
rajveer |
6955 |
case AWB_NUMBER:
|
|
|
6956 |
return getAwbNumber();
|
| 442 |
rajveer |
6957 |
|
| 648 |
chandransh |
6958 |
case PROVIDER_ID:
|
| 3430 |
rajveer |
6959 |
return Long.valueOf(getProviderId());
|
| 442 |
rajveer |
6960 |
|
|
|
6961 |
}
|
|
|
6962 |
throw new IllegalStateException();
|
|
|
6963 |
}
|
|
|
6964 |
|
| 3430 |
rajveer |
6965 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
6966 |
public boolean isSet(_Fields field) {
|
|
|
6967 |
if (field == null) {
|
|
|
6968 |
throw new IllegalArgumentException();
|
|
|
6969 |
}
|
| 442 |
rajveer |
6970 |
|
|
|
6971 |
switch (field) {
|
| 6643 |
rajveer |
6972 |
case AWB_NUMBER:
|
|
|
6973 |
return isSetAwbNumber();
|
| 648 |
chandransh |
6974 |
case PROVIDER_ID:
|
|
|
6975 |
return isSetProviderId();
|
| 442 |
rajveer |
6976 |
}
|
|
|
6977 |
throw new IllegalStateException();
|
|
|
6978 |
}
|
|
|
6979 |
|
|
|
6980 |
@Override
|
|
|
6981 |
public boolean equals(Object that) {
|
|
|
6982 |
if (that == null)
|
|
|
6983 |
return false;
|
| 648 |
chandransh |
6984 |
if (that instanceof getShipmentInfo_args)
|
|
|
6985 |
return this.equals((getShipmentInfo_args)that);
|
| 442 |
rajveer |
6986 |
return false;
|
|
|
6987 |
}
|
|
|
6988 |
|
| 648 |
chandransh |
6989 |
public boolean equals(getShipmentInfo_args that) {
|
| 442 |
rajveer |
6990 |
if (that == null)
|
|
|
6991 |
return false;
|
|
|
6992 |
|
| 6643 |
rajveer |
6993 |
boolean this_present_awbNumber = true && this.isSetAwbNumber();
|
|
|
6994 |
boolean that_present_awbNumber = true && that.isSetAwbNumber();
|
|
|
6995 |
if (this_present_awbNumber || that_present_awbNumber) {
|
|
|
6996 |
if (!(this_present_awbNumber && that_present_awbNumber))
|
| 442 |
rajveer |
6997 |
return false;
|
| 6643 |
rajveer |
6998 |
if (!this.awbNumber.equals(that.awbNumber))
|
| 442 |
rajveer |
6999 |
return false;
|
|
|
7000 |
}
|
|
|
7001 |
|
| 648 |
chandransh |
7002 |
boolean this_present_providerId = true;
|
|
|
7003 |
boolean that_present_providerId = true;
|
|
|
7004 |
if (this_present_providerId || that_present_providerId) {
|
|
|
7005 |
if (!(this_present_providerId && that_present_providerId))
|
| 442 |
rajveer |
7006 |
return false;
|
| 648 |
chandransh |
7007 |
if (this.providerId != that.providerId)
|
| 442 |
rajveer |
7008 |
return false;
|
|
|
7009 |
}
|
|
|
7010 |
|
|
|
7011 |
return true;
|
|
|
7012 |
}
|
|
|
7013 |
|
|
|
7014 |
@Override
|
|
|
7015 |
public int hashCode() {
|
|
|
7016 |
return 0;
|
|
|
7017 |
}
|
|
|
7018 |
|
| 648 |
chandransh |
7019 |
public int compareTo(getShipmentInfo_args other) {
|
| 442 |
rajveer |
7020 |
if (!getClass().equals(other.getClass())) {
|
|
|
7021 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
7022 |
}
|
|
|
7023 |
|
|
|
7024 |
int lastComparison = 0;
|
| 648 |
chandransh |
7025 |
getShipmentInfo_args typedOther = (getShipmentInfo_args)other;
|
| 442 |
rajveer |
7026 |
|
| 6643 |
rajveer |
7027 |
lastComparison = Boolean.valueOf(isSetAwbNumber()).compareTo(typedOther.isSetAwbNumber());
|
| 442 |
rajveer |
7028 |
if (lastComparison != 0) {
|
|
|
7029 |
return lastComparison;
|
|
|
7030 |
}
|
| 6643 |
rajveer |
7031 |
if (isSetAwbNumber()) {
|
|
|
7032 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbNumber, typedOther.awbNumber);
|
| 3430 |
rajveer |
7033 |
if (lastComparison != 0) {
|
|
|
7034 |
return lastComparison;
|
|
|
7035 |
}
|
| 442 |
rajveer |
7036 |
}
|
| 3430 |
rajveer |
7037 |
lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
|
| 442 |
rajveer |
7038 |
if (lastComparison != 0) {
|
|
|
7039 |
return lastComparison;
|
|
|
7040 |
}
|
| 3430 |
rajveer |
7041 |
if (isSetProviderId()) {
|
|
|
7042 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
|
|
|
7043 |
if (lastComparison != 0) {
|
|
|
7044 |
return lastComparison;
|
|
|
7045 |
}
|
| 442 |
rajveer |
7046 |
}
|
|
|
7047 |
return 0;
|
|
|
7048 |
}
|
|
|
7049 |
|
| 3430 |
rajveer |
7050 |
public _Fields fieldForId(int fieldId) {
|
|
|
7051 |
return _Fields.findByThriftId(fieldId);
|
|
|
7052 |
}
|
|
|
7053 |
|
|
|
7054 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
7055 |
org.apache.thrift.protocol.TField field;
|
| 442 |
rajveer |
7056 |
iprot.readStructBegin();
|
|
|
7057 |
while (true)
|
|
|
7058 |
{
|
|
|
7059 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
7060 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 442 |
rajveer |
7061 |
break;
|
|
|
7062 |
}
|
| 3430 |
rajveer |
7063 |
switch (field.id) {
|
| 6643 |
rajveer |
7064 |
case 1: // AWB_NUMBER
|
| 3430 |
rajveer |
7065 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
| 6643 |
rajveer |
7066 |
this.awbNumber = iprot.readString();
|
| 3430 |
rajveer |
7067 |
} else {
|
|
|
7068 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7069 |
}
|
|
|
7070 |
break;
|
|
|
7071 |
case 2: // PROVIDER_ID
|
|
|
7072 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
7073 |
this.providerId = iprot.readI64();
|
|
|
7074 |
setProviderIdIsSet(true);
|
|
|
7075 |
} else {
|
|
|
7076 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7077 |
}
|
|
|
7078 |
break;
|
|
|
7079 |
default:
|
|
|
7080 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 442 |
rajveer |
7081 |
}
|
| 3430 |
rajveer |
7082 |
iprot.readFieldEnd();
|
| 442 |
rajveer |
7083 |
}
|
|
|
7084 |
iprot.readStructEnd();
|
|
|
7085 |
validate();
|
|
|
7086 |
}
|
|
|
7087 |
|
| 3430 |
rajveer |
7088 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 442 |
rajveer |
7089 |
validate();
|
|
|
7090 |
|
|
|
7091 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 6643 |
rajveer |
7092 |
if (this.awbNumber != null) {
|
|
|
7093 |
oprot.writeFieldBegin(AWB_NUMBER_FIELD_DESC);
|
|
|
7094 |
oprot.writeString(this.awbNumber);
|
| 442 |
rajveer |
7095 |
oprot.writeFieldEnd();
|
|
|
7096 |
}
|
| 648 |
chandransh |
7097 |
oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
|
|
|
7098 |
oprot.writeI64(this.providerId);
|
|
|
7099 |
oprot.writeFieldEnd();
|
| 442 |
rajveer |
7100 |
oprot.writeFieldStop();
|
|
|
7101 |
oprot.writeStructEnd();
|
|
|
7102 |
}
|
|
|
7103 |
|
|
|
7104 |
@Override
|
|
|
7105 |
public String toString() {
|
| 648 |
chandransh |
7106 |
StringBuilder sb = new StringBuilder("getShipmentInfo_args(");
|
| 442 |
rajveer |
7107 |
boolean first = true;
|
|
|
7108 |
|
| 6643 |
rajveer |
7109 |
sb.append("awbNumber:");
|
|
|
7110 |
if (this.awbNumber == null) {
|
| 442 |
rajveer |
7111 |
sb.append("null");
|
|
|
7112 |
} else {
|
| 6643 |
rajveer |
7113 |
sb.append(this.awbNumber);
|
| 442 |
rajveer |
7114 |
}
|
|
|
7115 |
first = false;
|
|
|
7116 |
if (!first) sb.append(", ");
|
| 648 |
chandransh |
7117 |
sb.append("providerId:");
|
|
|
7118 |
sb.append(this.providerId);
|
| 442 |
rajveer |
7119 |
first = false;
|
|
|
7120 |
sb.append(")");
|
|
|
7121 |
return sb.toString();
|
|
|
7122 |
}
|
|
|
7123 |
|
| 3430 |
rajveer |
7124 |
public void validate() throws org.apache.thrift.TException {
|
| 442 |
rajveer |
7125 |
// check for required fields
|
|
|
7126 |
}
|
|
|
7127 |
|
| 3430 |
rajveer |
7128 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
7129 |
try {
|
|
|
7130 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
7131 |
} catch (org.apache.thrift.TException te) {
|
|
|
7132 |
throw new java.io.IOException(te);
|
|
|
7133 |
}
|
|
|
7134 |
}
|
|
|
7135 |
|
|
|
7136 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
7137 |
try {
|
|
|
7138 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
7139 |
} catch (org.apache.thrift.TException te) {
|
|
|
7140 |
throw new java.io.IOException(te);
|
|
|
7141 |
}
|
|
|
7142 |
}
|
|
|
7143 |
|
| 442 |
rajveer |
7144 |
}
|
|
|
7145 |
|
| 3430 |
rajveer |
7146 |
public static class getShipmentInfo_result implements org.apache.thrift.TBase<getShipmentInfo_result, getShipmentInfo_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
7147 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_result");
|
| 412 |
ashish |
7148 |
|
| 3430 |
rajveer |
7149 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
|
|
|
7150 |
private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
| 412 |
ashish |
7151 |
|
| 3430 |
rajveer |
7152 |
private List<AwbUpdate> success; // required
|
|
|
7153 |
private LogisticsServiceException se; // required
|
| 412 |
ashish |
7154 |
|
|
|
7155 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
7156 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 648 |
chandransh |
7157 |
SUCCESS((short)0, "success"),
|
|
|
7158 |
SE((short)1, "se");
|
| 412 |
ashish |
7159 |
|
|
|
7160 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
7161 |
|
|
|
7162 |
static {
|
|
|
7163 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
7164 |
byName.put(field.getFieldName(), field);
|
|
|
7165 |
}
|
|
|
7166 |
}
|
|
|
7167 |
|
|
|
7168 |
/**
|
|
|
7169 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
7170 |
*/
|
|
|
7171 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
7172 |
switch(fieldId) {
|
|
|
7173 |
case 0: // SUCCESS
|
|
|
7174 |
return SUCCESS;
|
|
|
7175 |
case 1: // SE
|
|
|
7176 |
return SE;
|
|
|
7177 |
default:
|
|
|
7178 |
return null;
|
|
|
7179 |
}
|
| 412 |
ashish |
7180 |
}
|
|
|
7181 |
|
|
|
7182 |
/**
|
|
|
7183 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
7184 |
* if it is not found.
|
|
|
7185 |
*/
|
|
|
7186 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
7187 |
_Fields fields = findByThriftId(fieldId);
|
|
|
7188 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
7189 |
return fields;
|
|
|
7190 |
}
|
|
|
7191 |
|
|
|
7192 |
/**
|
|
|
7193 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
7194 |
*/
|
|
|
7195 |
public static _Fields findByName(String name) {
|
|
|
7196 |
return byName.get(name);
|
|
|
7197 |
}
|
|
|
7198 |
|
|
|
7199 |
private final short _thriftId;
|
|
|
7200 |
private final String _fieldName;
|
|
|
7201 |
|
|
|
7202 |
_Fields(short thriftId, String fieldName) {
|
|
|
7203 |
_thriftId = thriftId;
|
|
|
7204 |
_fieldName = fieldName;
|
|
|
7205 |
}
|
|
|
7206 |
|
|
|
7207 |
public short getThriftFieldId() {
|
|
|
7208 |
return _thriftId;
|
|
|
7209 |
}
|
|
|
7210 |
|
|
|
7211 |
public String getFieldName() {
|
|
|
7212 |
return _fieldName;
|
|
|
7213 |
}
|
|
|
7214 |
}
|
|
|
7215 |
|
|
|
7216 |
// isset id assignments
|
|
|
7217 |
|
| 3430 |
rajveer |
7218 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 412 |
ashish |
7219 |
static {
|
| 3430 |
rajveer |
7220 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
7221 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
7222 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
7223 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AwbUpdate.class))));
|
|
|
7224 |
tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
7225 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
7226 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
7227 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_result.class, metaDataMap);
|
| 412 |
ashish |
7228 |
}
|
|
|
7229 |
|
|
|
7230 |
public getShipmentInfo_result() {
|
|
|
7231 |
}
|
|
|
7232 |
|
|
|
7233 |
public getShipmentInfo_result(
|
| 648 |
chandransh |
7234 |
List<AwbUpdate> success,
|
|
|
7235 |
LogisticsServiceException se)
|
| 412 |
ashish |
7236 |
{
|
|
|
7237 |
this();
|
|
|
7238 |
this.success = success;
|
| 648 |
chandransh |
7239 |
this.se = se;
|
| 412 |
ashish |
7240 |
}
|
|
|
7241 |
|
|
|
7242 |
/**
|
|
|
7243 |
* Performs a deep copy on <i>other</i>.
|
|
|
7244 |
*/
|
|
|
7245 |
public getShipmentInfo_result(getShipmentInfo_result other) {
|
|
|
7246 |
if (other.isSetSuccess()) {
|
| 648 |
chandransh |
7247 |
List<AwbUpdate> __this__success = new ArrayList<AwbUpdate>();
|
|
|
7248 |
for (AwbUpdate other_element : other.success) {
|
|
|
7249 |
__this__success.add(new AwbUpdate(other_element));
|
|
|
7250 |
}
|
|
|
7251 |
this.success = __this__success;
|
| 412 |
ashish |
7252 |
}
|
| 648 |
chandransh |
7253 |
if (other.isSetSe()) {
|
|
|
7254 |
this.se = new LogisticsServiceException(other.se);
|
|
|
7255 |
}
|
| 412 |
ashish |
7256 |
}
|
|
|
7257 |
|
|
|
7258 |
public getShipmentInfo_result deepCopy() {
|
|
|
7259 |
return new getShipmentInfo_result(this);
|
|
|
7260 |
}
|
|
|
7261 |
|
| 3430 |
rajveer |
7262 |
@Override
|
|
|
7263 |
public void clear() {
|
|
|
7264 |
this.success = null;
|
|
|
7265 |
this.se = null;
|
| 412 |
ashish |
7266 |
}
|
|
|
7267 |
|
|
|
7268 |
public int getSuccessSize() {
|
|
|
7269 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
7270 |
}
|
|
|
7271 |
|
| 648 |
chandransh |
7272 |
public java.util.Iterator<AwbUpdate> getSuccessIterator() {
|
| 412 |
ashish |
7273 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
7274 |
}
|
|
|
7275 |
|
| 648 |
chandransh |
7276 |
public void addToSuccess(AwbUpdate elem) {
|
| 412 |
ashish |
7277 |
if (this.success == null) {
|
| 648 |
chandransh |
7278 |
this.success = new ArrayList<AwbUpdate>();
|
| 412 |
ashish |
7279 |
}
|
|
|
7280 |
this.success.add(elem);
|
|
|
7281 |
}
|
|
|
7282 |
|
| 648 |
chandransh |
7283 |
public List<AwbUpdate> getSuccess() {
|
| 412 |
ashish |
7284 |
return this.success;
|
|
|
7285 |
}
|
|
|
7286 |
|
| 3430 |
rajveer |
7287 |
public void setSuccess(List<AwbUpdate> success) {
|
| 412 |
ashish |
7288 |
this.success = success;
|
|
|
7289 |
}
|
|
|
7290 |
|
|
|
7291 |
public void unsetSuccess() {
|
|
|
7292 |
this.success = null;
|
|
|
7293 |
}
|
|
|
7294 |
|
| 3430 |
rajveer |
7295 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 412 |
ashish |
7296 |
public boolean isSetSuccess() {
|
|
|
7297 |
return this.success != null;
|
|
|
7298 |
}
|
|
|
7299 |
|
|
|
7300 |
public void setSuccessIsSet(boolean value) {
|
|
|
7301 |
if (!value) {
|
|
|
7302 |
this.success = null;
|
|
|
7303 |
}
|
|
|
7304 |
}
|
|
|
7305 |
|
| 648 |
chandransh |
7306 |
public LogisticsServiceException getSe() {
|
|
|
7307 |
return this.se;
|
| 412 |
ashish |
7308 |
}
|
|
|
7309 |
|
| 3430 |
rajveer |
7310 |
public void setSe(LogisticsServiceException se) {
|
| 648 |
chandransh |
7311 |
this.se = se;
|
| 412 |
ashish |
7312 |
}
|
|
|
7313 |
|
| 648 |
chandransh |
7314 |
public void unsetSe() {
|
|
|
7315 |
this.se = null;
|
| 412 |
ashish |
7316 |
}
|
|
|
7317 |
|
| 3430 |
rajveer |
7318 |
/** Returns true if field se is set (has been assigned a value) and false otherwise */
|
| 648 |
chandransh |
7319 |
public boolean isSetSe() {
|
|
|
7320 |
return this.se != null;
|
| 412 |
ashish |
7321 |
}
|
|
|
7322 |
|
| 648 |
chandransh |
7323 |
public void setSeIsSet(boolean value) {
|
|
|
7324 |
if (!value) {
|
|
|
7325 |
this.se = null;
|
| 412 |
ashish |
7326 |
}
|
|
|
7327 |
}
|
|
|
7328 |
|
|
|
7329 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
7330 |
switch (field) {
|
| 648 |
chandransh |
7331 |
case SUCCESS:
|
| 412 |
ashish |
7332 |
if (value == null) {
|
| 648 |
chandransh |
7333 |
unsetSuccess();
|
| 412 |
ashish |
7334 |
} else {
|
| 648 |
chandransh |
7335 |
setSuccess((List<AwbUpdate>)value);
|
| 412 |
ashish |
7336 |
}
|
|
|
7337 |
break;
|
|
|
7338 |
|
| 648 |
chandransh |
7339 |
case SE:
|
| 412 |
ashish |
7340 |
if (value == null) {
|
| 648 |
chandransh |
7341 |
unsetSe();
|
| 412 |
ashish |
7342 |
} else {
|
| 648 |
chandransh |
7343 |
setSe((LogisticsServiceException)value);
|
| 412 |
ashish |
7344 |
}
|
|
|
7345 |
break;
|
|
|
7346 |
|
|
|
7347 |
}
|
|
|
7348 |
}
|
|
|
7349 |
|
|
|
7350 |
public Object getFieldValue(_Fields field) {
|
|
|
7351 |
switch (field) {
|
| 648 |
chandransh |
7352 |
case SUCCESS:
|
|
|
7353 |
return getSuccess();
|
| 412 |
ashish |
7354 |
|
| 648 |
chandransh |
7355 |
case SE:
|
|
|
7356 |
return getSe();
|
| 412 |
ashish |
7357 |
|
|
|
7358 |
}
|
|
|
7359 |
throw new IllegalStateException();
|
|
|
7360 |
}
|
|
|
7361 |
|
| 3430 |
rajveer |
7362 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
7363 |
public boolean isSet(_Fields field) {
|
|
|
7364 |
if (field == null) {
|
|
|
7365 |
throw new IllegalArgumentException();
|
|
|
7366 |
}
|
| 412 |
ashish |
7367 |
|
|
|
7368 |
switch (field) {
|
| 648 |
chandransh |
7369 |
case SUCCESS:
|
|
|
7370 |
return isSetSuccess();
|
|
|
7371 |
case SE:
|
|
|
7372 |
return isSetSe();
|
| 412 |
ashish |
7373 |
}
|
|
|
7374 |
throw new IllegalStateException();
|
|
|
7375 |
}
|
|
|
7376 |
|
|
|
7377 |
@Override
|
|
|
7378 |
public boolean equals(Object that) {
|
|
|
7379 |
if (that == null)
|
|
|
7380 |
return false;
|
| 648 |
chandransh |
7381 |
if (that instanceof getShipmentInfo_result)
|
|
|
7382 |
return this.equals((getShipmentInfo_result)that);
|
| 412 |
ashish |
7383 |
return false;
|
|
|
7384 |
}
|
|
|
7385 |
|
| 648 |
chandransh |
7386 |
public boolean equals(getShipmentInfo_result that) {
|
| 412 |
ashish |
7387 |
if (that == null)
|
|
|
7388 |
return false;
|
|
|
7389 |
|
| 648 |
chandransh |
7390 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
7391 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
7392 |
if (this_present_success || that_present_success) {
|
|
|
7393 |
if (!(this_present_success && that_present_success))
|
| 412 |
ashish |
7394 |
return false;
|
| 648 |
chandransh |
7395 |
if (!this.success.equals(that.success))
|
| 412 |
ashish |
7396 |
return false;
|
|
|
7397 |
}
|
|
|
7398 |
|
| 648 |
chandransh |
7399 |
boolean this_present_se = true && this.isSetSe();
|
|
|
7400 |
boolean that_present_se = true && that.isSetSe();
|
|
|
7401 |
if (this_present_se || that_present_se) {
|
|
|
7402 |
if (!(this_present_se && that_present_se))
|
| 412 |
ashish |
7403 |
return false;
|
| 648 |
chandransh |
7404 |
if (!this.se.equals(that.se))
|
| 412 |
ashish |
7405 |
return false;
|
|
|
7406 |
}
|
|
|
7407 |
|
|
|
7408 |
return true;
|
|
|
7409 |
}
|
|
|
7410 |
|
|
|
7411 |
@Override
|
|
|
7412 |
public int hashCode() {
|
|
|
7413 |
return 0;
|
|
|
7414 |
}
|
|
|
7415 |
|
| 648 |
chandransh |
7416 |
public int compareTo(getShipmentInfo_result other) {
|
| 412 |
ashish |
7417 |
if (!getClass().equals(other.getClass())) {
|
|
|
7418 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
7419 |
}
|
|
|
7420 |
|
|
|
7421 |
int lastComparison = 0;
|
| 648 |
chandransh |
7422 |
getShipmentInfo_result typedOther = (getShipmentInfo_result)other;
|
| 412 |
ashish |
7423 |
|
| 3430 |
rajveer |
7424 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 412 |
ashish |
7425 |
if (lastComparison != 0) {
|
|
|
7426 |
return lastComparison;
|
|
|
7427 |
}
|
| 3430 |
rajveer |
7428 |
if (isSetSuccess()) {
|
|
|
7429 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
7430 |
if (lastComparison != 0) {
|
|
|
7431 |
return lastComparison;
|
|
|
7432 |
}
|
| 412 |
ashish |
7433 |
}
|
| 3430 |
rajveer |
7434 |
lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
|
| 412 |
ashish |
7435 |
if (lastComparison != 0) {
|
|
|
7436 |
return lastComparison;
|
|
|
7437 |
}
|
| 3430 |
rajveer |
7438 |
if (isSetSe()) {
|
|
|
7439 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
|
|
|
7440 |
if (lastComparison != 0) {
|
|
|
7441 |
return lastComparison;
|
|
|
7442 |
}
|
| 412 |
ashish |
7443 |
}
|
|
|
7444 |
return 0;
|
|
|
7445 |
}
|
|
|
7446 |
|
| 3430 |
rajveer |
7447 |
public _Fields fieldForId(int fieldId) {
|
|
|
7448 |
return _Fields.findByThriftId(fieldId);
|
|
|
7449 |
}
|
|
|
7450 |
|
|
|
7451 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
7452 |
org.apache.thrift.protocol.TField field;
|
| 412 |
ashish |
7453 |
iprot.readStructBegin();
|
|
|
7454 |
while (true)
|
|
|
7455 |
{
|
|
|
7456 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
7457 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 412 |
ashish |
7458 |
break;
|
|
|
7459 |
}
|
| 3430 |
rajveer |
7460 |
switch (field.id) {
|
|
|
7461 |
case 0: // SUCCESS
|
|
|
7462 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
7463 |
{
|
| 7792 |
anupam.sin |
7464 |
org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
|
|
|
7465 |
this.success = new ArrayList<AwbUpdate>(_list8.size);
|
|
|
7466 |
for (int _i9 = 0; _i9 < _list8.size; ++_i9)
|
| 412 |
ashish |
7467 |
{
|
| 7792 |
anupam.sin |
7468 |
AwbUpdate _elem10; // required
|
|
|
7469 |
_elem10 = new AwbUpdate();
|
|
|
7470 |
_elem10.read(iprot);
|
|
|
7471 |
this.success.add(_elem10);
|
| 412 |
ashish |
7472 |
}
|
| 3430 |
rajveer |
7473 |
iprot.readListEnd();
|
| 412 |
ashish |
7474 |
}
|
| 3430 |
rajveer |
7475 |
} else {
|
|
|
7476 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7477 |
}
|
|
|
7478 |
break;
|
|
|
7479 |
case 1: // SE
|
|
|
7480 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
7481 |
this.se = new LogisticsServiceException();
|
|
|
7482 |
this.se.read(iprot);
|
|
|
7483 |
} else {
|
|
|
7484 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7485 |
}
|
|
|
7486 |
break;
|
|
|
7487 |
default:
|
|
|
7488 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 412 |
ashish |
7489 |
}
|
| 3430 |
rajveer |
7490 |
iprot.readFieldEnd();
|
| 412 |
ashish |
7491 |
}
|
|
|
7492 |
iprot.readStructEnd();
|
|
|
7493 |
validate();
|
|
|
7494 |
}
|
|
|
7495 |
|
| 3430 |
rajveer |
7496 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 412 |
ashish |
7497 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
7498 |
|
|
|
7499 |
if (this.isSetSuccess()) {
|
|
|
7500 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
7501 |
{
|
| 3430 |
rajveer |
7502 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
| 7792 |
anupam.sin |
7503 |
for (AwbUpdate _iter11 : this.success)
|
| 412 |
ashish |
7504 |
{
|
| 7792 |
anupam.sin |
7505 |
_iter11.write(oprot);
|
| 412 |
ashish |
7506 |
}
|
|
|
7507 |
oprot.writeListEnd();
|
|
|
7508 |
}
|
|
|
7509 |
oprot.writeFieldEnd();
|
| 648 |
chandransh |
7510 |
} else if (this.isSetSe()) {
|
|
|
7511 |
oprot.writeFieldBegin(SE_FIELD_DESC);
|
|
|
7512 |
this.se.write(oprot);
|
|
|
7513 |
oprot.writeFieldEnd();
|
| 412 |
ashish |
7514 |
}
|
|
|
7515 |
oprot.writeFieldStop();
|
|
|
7516 |
oprot.writeStructEnd();
|
|
|
7517 |
}
|
|
|
7518 |
|
|
|
7519 |
@Override
|
|
|
7520 |
public String toString() {
|
| 648 |
chandransh |
7521 |
StringBuilder sb = new StringBuilder("getShipmentInfo_result(");
|
| 412 |
ashish |
7522 |
boolean first = true;
|
|
|
7523 |
|
|
|
7524 |
sb.append("success:");
|
|
|
7525 |
if (this.success == null) {
|
|
|
7526 |
sb.append("null");
|
|
|
7527 |
} else {
|
|
|
7528 |
sb.append(this.success);
|
|
|
7529 |
}
|
|
|
7530 |
first = false;
|
| 648 |
chandransh |
7531 |
if (!first) sb.append(", ");
|
|
|
7532 |
sb.append("se:");
|
|
|
7533 |
if (this.se == null) {
|
|
|
7534 |
sb.append("null");
|
|
|
7535 |
} else {
|
|
|
7536 |
sb.append(this.se);
|
|
|
7537 |
}
|
|
|
7538 |
first = false;
|
| 412 |
ashish |
7539 |
sb.append(")");
|
|
|
7540 |
return sb.toString();
|
|
|
7541 |
}
|
|
|
7542 |
|
| 3430 |
rajveer |
7543 |
public void validate() throws org.apache.thrift.TException {
|
| 412 |
ashish |
7544 |
// check for required fields
|
|
|
7545 |
}
|
|
|
7546 |
|
| 3430 |
rajveer |
7547 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
7548 |
try {
|
|
|
7549 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
7550 |
} catch (org.apache.thrift.TException te) {
|
|
|
7551 |
throw new java.io.IOException(te);
|
|
|
7552 |
}
|
|
|
7553 |
}
|
|
|
7554 |
|
|
|
7555 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
7556 |
try {
|
|
|
7557 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
7558 |
} catch (org.apache.thrift.TException te) {
|
|
|
7559 |
throw new java.io.IOException(te);
|
|
|
7560 |
}
|
|
|
7561 |
}
|
|
|
7562 |
|
| 412 |
ashish |
7563 |
}
|
|
|
7564 |
|
| 6643 |
rajveer |
7565 |
public static class storeShipmentInfo_args implements org.apache.thrift.TBase<storeShipmentInfo_args, storeShipmentInfo_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
7566 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("storeShipmentInfo_args");
|
|
|
7567 |
|
|
|
7568 |
private static final org.apache.thrift.protocol.TField UPDATE_FIELD_DESC = new org.apache.thrift.protocol.TField("update", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
|
|
7569 |
|
|
|
7570 |
private AwbUpdate update; // required
|
|
|
7571 |
|
|
|
7572 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
7573 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
7574 |
UPDATE((short)1, "update");
|
|
|
7575 |
|
|
|
7576 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
7577 |
|
|
|
7578 |
static {
|
|
|
7579 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
7580 |
byName.put(field.getFieldName(), field);
|
|
|
7581 |
}
|
|
|
7582 |
}
|
|
|
7583 |
|
|
|
7584 |
/**
|
|
|
7585 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
7586 |
*/
|
|
|
7587 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
7588 |
switch(fieldId) {
|
|
|
7589 |
case 1: // UPDATE
|
|
|
7590 |
return UPDATE;
|
|
|
7591 |
default:
|
|
|
7592 |
return null;
|
|
|
7593 |
}
|
|
|
7594 |
}
|
|
|
7595 |
|
|
|
7596 |
/**
|
|
|
7597 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
7598 |
* if it is not found.
|
|
|
7599 |
*/
|
|
|
7600 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
7601 |
_Fields fields = findByThriftId(fieldId);
|
|
|
7602 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
7603 |
return fields;
|
|
|
7604 |
}
|
|
|
7605 |
|
|
|
7606 |
/**
|
|
|
7607 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
7608 |
*/
|
|
|
7609 |
public static _Fields findByName(String name) {
|
|
|
7610 |
return byName.get(name);
|
|
|
7611 |
}
|
|
|
7612 |
|
|
|
7613 |
private final short _thriftId;
|
|
|
7614 |
private final String _fieldName;
|
|
|
7615 |
|
|
|
7616 |
_Fields(short thriftId, String fieldName) {
|
|
|
7617 |
_thriftId = thriftId;
|
|
|
7618 |
_fieldName = fieldName;
|
|
|
7619 |
}
|
|
|
7620 |
|
|
|
7621 |
public short getThriftFieldId() {
|
|
|
7622 |
return _thriftId;
|
|
|
7623 |
}
|
|
|
7624 |
|
|
|
7625 |
public String getFieldName() {
|
|
|
7626 |
return _fieldName;
|
|
|
7627 |
}
|
|
|
7628 |
}
|
|
|
7629 |
|
|
|
7630 |
// isset id assignments
|
|
|
7631 |
|
|
|
7632 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
7633 |
static {
|
|
|
7634 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
7635 |
tmpMap.put(_Fields.UPDATE, new org.apache.thrift.meta_data.FieldMetaData("update", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
7636 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AwbUpdate.class)));
|
|
|
7637 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
7638 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(storeShipmentInfo_args.class, metaDataMap);
|
|
|
7639 |
}
|
|
|
7640 |
|
|
|
7641 |
public storeShipmentInfo_args() {
|
|
|
7642 |
}
|
|
|
7643 |
|
|
|
7644 |
public storeShipmentInfo_args(
|
|
|
7645 |
AwbUpdate update)
|
|
|
7646 |
{
|
|
|
7647 |
this();
|
|
|
7648 |
this.update = update;
|
|
|
7649 |
}
|
|
|
7650 |
|
|
|
7651 |
/**
|
|
|
7652 |
* Performs a deep copy on <i>other</i>.
|
|
|
7653 |
*/
|
|
|
7654 |
public storeShipmentInfo_args(storeShipmentInfo_args other) {
|
|
|
7655 |
if (other.isSetUpdate()) {
|
|
|
7656 |
this.update = new AwbUpdate(other.update);
|
|
|
7657 |
}
|
|
|
7658 |
}
|
|
|
7659 |
|
|
|
7660 |
public storeShipmentInfo_args deepCopy() {
|
|
|
7661 |
return new storeShipmentInfo_args(this);
|
|
|
7662 |
}
|
|
|
7663 |
|
|
|
7664 |
@Override
|
|
|
7665 |
public void clear() {
|
|
|
7666 |
this.update = null;
|
|
|
7667 |
}
|
|
|
7668 |
|
|
|
7669 |
public AwbUpdate getUpdate() {
|
|
|
7670 |
return this.update;
|
|
|
7671 |
}
|
|
|
7672 |
|
|
|
7673 |
public void setUpdate(AwbUpdate update) {
|
|
|
7674 |
this.update = update;
|
|
|
7675 |
}
|
|
|
7676 |
|
|
|
7677 |
public void unsetUpdate() {
|
|
|
7678 |
this.update = null;
|
|
|
7679 |
}
|
|
|
7680 |
|
|
|
7681 |
/** Returns true if field update is set (has been assigned a value) and false otherwise */
|
|
|
7682 |
public boolean isSetUpdate() {
|
|
|
7683 |
return this.update != null;
|
|
|
7684 |
}
|
|
|
7685 |
|
|
|
7686 |
public void setUpdateIsSet(boolean value) {
|
|
|
7687 |
if (!value) {
|
|
|
7688 |
this.update = null;
|
|
|
7689 |
}
|
|
|
7690 |
}
|
|
|
7691 |
|
|
|
7692 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
7693 |
switch (field) {
|
|
|
7694 |
case UPDATE:
|
|
|
7695 |
if (value == null) {
|
|
|
7696 |
unsetUpdate();
|
|
|
7697 |
} else {
|
|
|
7698 |
setUpdate((AwbUpdate)value);
|
|
|
7699 |
}
|
|
|
7700 |
break;
|
|
|
7701 |
|
|
|
7702 |
}
|
|
|
7703 |
}
|
|
|
7704 |
|
|
|
7705 |
public Object getFieldValue(_Fields field) {
|
|
|
7706 |
switch (field) {
|
|
|
7707 |
case UPDATE:
|
|
|
7708 |
return getUpdate();
|
|
|
7709 |
|
|
|
7710 |
}
|
|
|
7711 |
throw new IllegalStateException();
|
|
|
7712 |
}
|
|
|
7713 |
|
|
|
7714 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
7715 |
public boolean isSet(_Fields field) {
|
|
|
7716 |
if (field == null) {
|
|
|
7717 |
throw new IllegalArgumentException();
|
|
|
7718 |
}
|
|
|
7719 |
|
|
|
7720 |
switch (field) {
|
|
|
7721 |
case UPDATE:
|
|
|
7722 |
return isSetUpdate();
|
|
|
7723 |
}
|
|
|
7724 |
throw new IllegalStateException();
|
|
|
7725 |
}
|
|
|
7726 |
|
|
|
7727 |
@Override
|
|
|
7728 |
public boolean equals(Object that) {
|
|
|
7729 |
if (that == null)
|
|
|
7730 |
return false;
|
|
|
7731 |
if (that instanceof storeShipmentInfo_args)
|
|
|
7732 |
return this.equals((storeShipmentInfo_args)that);
|
|
|
7733 |
return false;
|
|
|
7734 |
}
|
|
|
7735 |
|
|
|
7736 |
public boolean equals(storeShipmentInfo_args that) {
|
|
|
7737 |
if (that == null)
|
|
|
7738 |
return false;
|
|
|
7739 |
|
|
|
7740 |
boolean this_present_update = true && this.isSetUpdate();
|
|
|
7741 |
boolean that_present_update = true && that.isSetUpdate();
|
|
|
7742 |
if (this_present_update || that_present_update) {
|
|
|
7743 |
if (!(this_present_update && that_present_update))
|
|
|
7744 |
return false;
|
|
|
7745 |
if (!this.update.equals(that.update))
|
|
|
7746 |
return false;
|
|
|
7747 |
}
|
|
|
7748 |
|
|
|
7749 |
return true;
|
|
|
7750 |
}
|
|
|
7751 |
|
|
|
7752 |
@Override
|
|
|
7753 |
public int hashCode() {
|
|
|
7754 |
return 0;
|
|
|
7755 |
}
|
|
|
7756 |
|
|
|
7757 |
public int compareTo(storeShipmentInfo_args other) {
|
|
|
7758 |
if (!getClass().equals(other.getClass())) {
|
|
|
7759 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
7760 |
}
|
|
|
7761 |
|
|
|
7762 |
int lastComparison = 0;
|
|
|
7763 |
storeShipmentInfo_args typedOther = (storeShipmentInfo_args)other;
|
|
|
7764 |
|
|
|
7765 |
lastComparison = Boolean.valueOf(isSetUpdate()).compareTo(typedOther.isSetUpdate());
|
|
|
7766 |
if (lastComparison != 0) {
|
|
|
7767 |
return lastComparison;
|
|
|
7768 |
}
|
|
|
7769 |
if (isSetUpdate()) {
|
|
|
7770 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.update, typedOther.update);
|
|
|
7771 |
if (lastComparison != 0) {
|
|
|
7772 |
return lastComparison;
|
|
|
7773 |
}
|
|
|
7774 |
}
|
|
|
7775 |
return 0;
|
|
|
7776 |
}
|
|
|
7777 |
|
|
|
7778 |
public _Fields fieldForId(int fieldId) {
|
|
|
7779 |
return _Fields.findByThriftId(fieldId);
|
|
|
7780 |
}
|
|
|
7781 |
|
|
|
7782 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
7783 |
org.apache.thrift.protocol.TField field;
|
|
|
7784 |
iprot.readStructBegin();
|
|
|
7785 |
while (true)
|
|
|
7786 |
{
|
|
|
7787 |
field = iprot.readFieldBegin();
|
|
|
7788 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
7789 |
break;
|
|
|
7790 |
}
|
|
|
7791 |
switch (field.id) {
|
|
|
7792 |
case 1: // UPDATE
|
|
|
7793 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
7794 |
this.update = new AwbUpdate();
|
|
|
7795 |
this.update.read(iprot);
|
|
|
7796 |
} else {
|
|
|
7797 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7798 |
}
|
|
|
7799 |
break;
|
|
|
7800 |
default:
|
|
|
7801 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7802 |
}
|
|
|
7803 |
iprot.readFieldEnd();
|
|
|
7804 |
}
|
|
|
7805 |
iprot.readStructEnd();
|
|
|
7806 |
validate();
|
|
|
7807 |
}
|
|
|
7808 |
|
|
|
7809 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
7810 |
validate();
|
|
|
7811 |
|
|
|
7812 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
7813 |
if (this.update != null) {
|
|
|
7814 |
oprot.writeFieldBegin(UPDATE_FIELD_DESC);
|
|
|
7815 |
this.update.write(oprot);
|
|
|
7816 |
oprot.writeFieldEnd();
|
|
|
7817 |
}
|
|
|
7818 |
oprot.writeFieldStop();
|
|
|
7819 |
oprot.writeStructEnd();
|
|
|
7820 |
}
|
|
|
7821 |
|
|
|
7822 |
@Override
|
|
|
7823 |
public String toString() {
|
|
|
7824 |
StringBuilder sb = new StringBuilder("storeShipmentInfo_args(");
|
|
|
7825 |
boolean first = true;
|
|
|
7826 |
|
|
|
7827 |
sb.append("update:");
|
|
|
7828 |
if (this.update == null) {
|
|
|
7829 |
sb.append("null");
|
|
|
7830 |
} else {
|
|
|
7831 |
sb.append(this.update);
|
|
|
7832 |
}
|
|
|
7833 |
first = false;
|
|
|
7834 |
sb.append(")");
|
|
|
7835 |
return sb.toString();
|
|
|
7836 |
}
|
|
|
7837 |
|
|
|
7838 |
public void validate() throws org.apache.thrift.TException {
|
|
|
7839 |
// check for required fields
|
|
|
7840 |
}
|
|
|
7841 |
|
|
|
7842 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
7843 |
try {
|
|
|
7844 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
7845 |
} catch (org.apache.thrift.TException te) {
|
|
|
7846 |
throw new java.io.IOException(te);
|
|
|
7847 |
}
|
|
|
7848 |
}
|
|
|
7849 |
|
|
|
7850 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
7851 |
try {
|
|
|
7852 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
7853 |
} catch (org.apache.thrift.TException te) {
|
|
|
7854 |
throw new java.io.IOException(te);
|
|
|
7855 |
}
|
|
|
7856 |
}
|
|
|
7857 |
|
|
|
7858 |
}
|
|
|
7859 |
|
|
|
7860 |
public static class storeShipmentInfo_result implements org.apache.thrift.TBase<storeShipmentInfo_result, storeShipmentInfo_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
7861 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("storeShipmentInfo_result");
|
|
|
7862 |
|
|
|
7863 |
private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
|
|
7864 |
|
|
|
7865 |
private LogisticsServiceException se; // required
|
|
|
7866 |
|
|
|
7867 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
7868 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
7869 |
SE((short)1, "se");
|
|
|
7870 |
|
|
|
7871 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
7872 |
|
|
|
7873 |
static {
|
|
|
7874 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
7875 |
byName.put(field.getFieldName(), field);
|
|
|
7876 |
}
|
|
|
7877 |
}
|
|
|
7878 |
|
|
|
7879 |
/**
|
|
|
7880 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
7881 |
*/
|
|
|
7882 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
7883 |
switch(fieldId) {
|
|
|
7884 |
case 1: // SE
|
|
|
7885 |
return SE;
|
|
|
7886 |
default:
|
|
|
7887 |
return null;
|
|
|
7888 |
}
|
|
|
7889 |
}
|
|
|
7890 |
|
|
|
7891 |
/**
|
|
|
7892 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
7893 |
* if it is not found.
|
|
|
7894 |
*/
|
|
|
7895 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
7896 |
_Fields fields = findByThriftId(fieldId);
|
|
|
7897 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
7898 |
return fields;
|
|
|
7899 |
}
|
|
|
7900 |
|
|
|
7901 |
/**
|
|
|
7902 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
7903 |
*/
|
|
|
7904 |
public static _Fields findByName(String name) {
|
|
|
7905 |
return byName.get(name);
|
|
|
7906 |
}
|
|
|
7907 |
|
|
|
7908 |
private final short _thriftId;
|
|
|
7909 |
private final String _fieldName;
|
|
|
7910 |
|
|
|
7911 |
_Fields(short thriftId, String fieldName) {
|
|
|
7912 |
_thriftId = thriftId;
|
|
|
7913 |
_fieldName = fieldName;
|
|
|
7914 |
}
|
|
|
7915 |
|
|
|
7916 |
public short getThriftFieldId() {
|
|
|
7917 |
return _thriftId;
|
|
|
7918 |
}
|
|
|
7919 |
|
|
|
7920 |
public String getFieldName() {
|
|
|
7921 |
return _fieldName;
|
|
|
7922 |
}
|
|
|
7923 |
}
|
|
|
7924 |
|
|
|
7925 |
// isset id assignments
|
|
|
7926 |
|
|
|
7927 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
7928 |
static {
|
|
|
7929 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
7930 |
tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
7931 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
7932 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
7933 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(storeShipmentInfo_result.class, metaDataMap);
|
|
|
7934 |
}
|
|
|
7935 |
|
|
|
7936 |
public storeShipmentInfo_result() {
|
|
|
7937 |
}
|
|
|
7938 |
|
|
|
7939 |
public storeShipmentInfo_result(
|
|
|
7940 |
LogisticsServiceException se)
|
|
|
7941 |
{
|
|
|
7942 |
this();
|
|
|
7943 |
this.se = se;
|
|
|
7944 |
}
|
|
|
7945 |
|
|
|
7946 |
/**
|
|
|
7947 |
* Performs a deep copy on <i>other</i>.
|
|
|
7948 |
*/
|
|
|
7949 |
public storeShipmentInfo_result(storeShipmentInfo_result other) {
|
|
|
7950 |
if (other.isSetSe()) {
|
|
|
7951 |
this.se = new LogisticsServiceException(other.se);
|
|
|
7952 |
}
|
|
|
7953 |
}
|
|
|
7954 |
|
|
|
7955 |
public storeShipmentInfo_result deepCopy() {
|
|
|
7956 |
return new storeShipmentInfo_result(this);
|
|
|
7957 |
}
|
|
|
7958 |
|
|
|
7959 |
@Override
|
|
|
7960 |
public void clear() {
|
|
|
7961 |
this.se = null;
|
|
|
7962 |
}
|
|
|
7963 |
|
|
|
7964 |
public LogisticsServiceException getSe() {
|
|
|
7965 |
return this.se;
|
|
|
7966 |
}
|
|
|
7967 |
|
|
|
7968 |
public void setSe(LogisticsServiceException se) {
|
|
|
7969 |
this.se = se;
|
|
|
7970 |
}
|
|
|
7971 |
|
|
|
7972 |
public void unsetSe() {
|
|
|
7973 |
this.se = null;
|
|
|
7974 |
}
|
|
|
7975 |
|
|
|
7976 |
/** Returns true if field se is set (has been assigned a value) and false otherwise */
|
|
|
7977 |
public boolean isSetSe() {
|
|
|
7978 |
return this.se != null;
|
|
|
7979 |
}
|
|
|
7980 |
|
|
|
7981 |
public void setSeIsSet(boolean value) {
|
|
|
7982 |
if (!value) {
|
|
|
7983 |
this.se = null;
|
|
|
7984 |
}
|
|
|
7985 |
}
|
|
|
7986 |
|
|
|
7987 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
7988 |
switch (field) {
|
|
|
7989 |
case SE:
|
|
|
7990 |
if (value == null) {
|
|
|
7991 |
unsetSe();
|
|
|
7992 |
} else {
|
|
|
7993 |
setSe((LogisticsServiceException)value);
|
|
|
7994 |
}
|
|
|
7995 |
break;
|
|
|
7996 |
|
|
|
7997 |
}
|
|
|
7998 |
}
|
|
|
7999 |
|
|
|
8000 |
public Object getFieldValue(_Fields field) {
|
|
|
8001 |
switch (field) {
|
|
|
8002 |
case SE:
|
|
|
8003 |
return getSe();
|
|
|
8004 |
|
|
|
8005 |
}
|
|
|
8006 |
throw new IllegalStateException();
|
|
|
8007 |
}
|
|
|
8008 |
|
|
|
8009 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
8010 |
public boolean isSet(_Fields field) {
|
|
|
8011 |
if (field == null) {
|
|
|
8012 |
throw new IllegalArgumentException();
|
|
|
8013 |
}
|
|
|
8014 |
|
|
|
8015 |
switch (field) {
|
|
|
8016 |
case SE:
|
|
|
8017 |
return isSetSe();
|
|
|
8018 |
}
|
|
|
8019 |
throw new IllegalStateException();
|
|
|
8020 |
}
|
|
|
8021 |
|
|
|
8022 |
@Override
|
|
|
8023 |
public boolean equals(Object that) {
|
|
|
8024 |
if (that == null)
|
|
|
8025 |
return false;
|
|
|
8026 |
if (that instanceof storeShipmentInfo_result)
|
|
|
8027 |
return this.equals((storeShipmentInfo_result)that);
|
|
|
8028 |
return false;
|
|
|
8029 |
}
|
|
|
8030 |
|
|
|
8031 |
public boolean equals(storeShipmentInfo_result that) {
|
|
|
8032 |
if (that == null)
|
|
|
8033 |
return false;
|
|
|
8034 |
|
|
|
8035 |
boolean this_present_se = true && this.isSetSe();
|
|
|
8036 |
boolean that_present_se = true && that.isSetSe();
|
|
|
8037 |
if (this_present_se || that_present_se) {
|
|
|
8038 |
if (!(this_present_se && that_present_se))
|
|
|
8039 |
return false;
|
|
|
8040 |
if (!this.se.equals(that.se))
|
|
|
8041 |
return false;
|
|
|
8042 |
}
|
|
|
8043 |
|
|
|
8044 |
return true;
|
|
|
8045 |
}
|
|
|
8046 |
|
|
|
8047 |
@Override
|
|
|
8048 |
public int hashCode() {
|
|
|
8049 |
return 0;
|
|
|
8050 |
}
|
|
|
8051 |
|
|
|
8052 |
public int compareTo(storeShipmentInfo_result other) {
|
|
|
8053 |
if (!getClass().equals(other.getClass())) {
|
|
|
8054 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
8055 |
}
|
|
|
8056 |
|
|
|
8057 |
int lastComparison = 0;
|
|
|
8058 |
storeShipmentInfo_result typedOther = (storeShipmentInfo_result)other;
|
|
|
8059 |
|
|
|
8060 |
lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
|
|
|
8061 |
if (lastComparison != 0) {
|
|
|
8062 |
return lastComparison;
|
|
|
8063 |
}
|
|
|
8064 |
if (isSetSe()) {
|
|
|
8065 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
|
|
|
8066 |
if (lastComparison != 0) {
|
|
|
8067 |
return lastComparison;
|
|
|
8068 |
}
|
|
|
8069 |
}
|
|
|
8070 |
return 0;
|
|
|
8071 |
}
|
|
|
8072 |
|
|
|
8073 |
public _Fields fieldForId(int fieldId) {
|
|
|
8074 |
return _Fields.findByThriftId(fieldId);
|
|
|
8075 |
}
|
|
|
8076 |
|
|
|
8077 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
8078 |
org.apache.thrift.protocol.TField field;
|
|
|
8079 |
iprot.readStructBegin();
|
|
|
8080 |
while (true)
|
|
|
8081 |
{
|
|
|
8082 |
field = iprot.readFieldBegin();
|
|
|
8083 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
8084 |
break;
|
|
|
8085 |
}
|
|
|
8086 |
switch (field.id) {
|
|
|
8087 |
case 1: // SE
|
|
|
8088 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
8089 |
this.se = new LogisticsServiceException();
|
|
|
8090 |
this.se.read(iprot);
|
|
|
8091 |
} else {
|
|
|
8092 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8093 |
}
|
|
|
8094 |
break;
|
|
|
8095 |
default:
|
|
|
8096 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8097 |
}
|
|
|
8098 |
iprot.readFieldEnd();
|
|
|
8099 |
}
|
|
|
8100 |
iprot.readStructEnd();
|
|
|
8101 |
validate();
|
|
|
8102 |
}
|
|
|
8103 |
|
|
|
8104 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
8105 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
8106 |
|
|
|
8107 |
if (this.isSetSe()) {
|
|
|
8108 |
oprot.writeFieldBegin(SE_FIELD_DESC);
|
|
|
8109 |
this.se.write(oprot);
|
|
|
8110 |
oprot.writeFieldEnd();
|
|
|
8111 |
}
|
|
|
8112 |
oprot.writeFieldStop();
|
|
|
8113 |
oprot.writeStructEnd();
|
|
|
8114 |
}
|
|
|
8115 |
|
|
|
8116 |
@Override
|
|
|
8117 |
public String toString() {
|
|
|
8118 |
StringBuilder sb = new StringBuilder("storeShipmentInfo_result(");
|
|
|
8119 |
boolean first = true;
|
|
|
8120 |
|
|
|
8121 |
sb.append("se:");
|
|
|
8122 |
if (this.se == null) {
|
|
|
8123 |
sb.append("null");
|
|
|
8124 |
} else {
|
|
|
8125 |
sb.append(this.se);
|
|
|
8126 |
}
|
|
|
8127 |
first = false;
|
|
|
8128 |
sb.append(")");
|
|
|
8129 |
return sb.toString();
|
|
|
8130 |
}
|
|
|
8131 |
|
|
|
8132 |
public void validate() throws org.apache.thrift.TException {
|
|
|
8133 |
// check for required fields
|
|
|
8134 |
}
|
|
|
8135 |
|
|
|
8136 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
8137 |
try {
|
|
|
8138 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
8139 |
} catch (org.apache.thrift.TException te) {
|
|
|
8140 |
throw new java.io.IOException(te);
|
|
|
8141 |
}
|
|
|
8142 |
}
|
|
|
8143 |
|
|
|
8144 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
8145 |
try {
|
|
|
8146 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
8147 |
} catch (org.apache.thrift.TException te) {
|
|
|
8148 |
throw new java.io.IOException(te);
|
|
|
8149 |
}
|
|
|
8150 |
}
|
|
|
8151 |
|
|
|
8152 |
}
|
|
|
8153 |
|
| 3430 |
rajveer |
8154 |
public static class getDestinationCode_args implements org.apache.thrift.TBase<getDestinationCode_args, getDestinationCode_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
8155 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_args");
|
| 730 |
chandransh |
8156 |
|
| 3430 |
rajveer |
8157 |
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)1);
|
|
|
8158 |
private static final org.apache.thrift.protocol.TField PIN_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("pinCode", org.apache.thrift.protocol.TType.STRING, (short)2);
|
| 730 |
chandransh |
8159 |
|
| 3430 |
rajveer |
8160 |
private long providerId; // required
|
|
|
8161 |
private String pinCode; // required
|
| 730 |
chandransh |
8162 |
|
|
|
8163 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
8164 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 730 |
chandransh |
8165 |
PROVIDER_ID((short)1, "providerId"),
|
|
|
8166 |
PIN_CODE((short)2, "pinCode");
|
|
|
8167 |
|
|
|
8168 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
8169 |
|
|
|
8170 |
static {
|
|
|
8171 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
8172 |
byName.put(field.getFieldName(), field);
|
|
|
8173 |
}
|
|
|
8174 |
}
|
|
|
8175 |
|
|
|
8176 |
/**
|
|
|
8177 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
8178 |
*/
|
|
|
8179 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
8180 |
switch(fieldId) {
|
|
|
8181 |
case 1: // PROVIDER_ID
|
|
|
8182 |
return PROVIDER_ID;
|
|
|
8183 |
case 2: // PIN_CODE
|
|
|
8184 |
return PIN_CODE;
|
|
|
8185 |
default:
|
|
|
8186 |
return null;
|
|
|
8187 |
}
|
| 730 |
chandransh |
8188 |
}
|
|
|
8189 |
|
|
|
8190 |
/**
|
|
|
8191 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
8192 |
* if it is not found.
|
|
|
8193 |
*/
|
|
|
8194 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
8195 |
_Fields fields = findByThriftId(fieldId);
|
|
|
8196 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
8197 |
return fields;
|
|
|
8198 |
}
|
|
|
8199 |
|
|
|
8200 |
/**
|
|
|
8201 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
8202 |
*/
|
|
|
8203 |
public static _Fields findByName(String name) {
|
|
|
8204 |
return byName.get(name);
|
|
|
8205 |
}
|
|
|
8206 |
|
|
|
8207 |
private final short _thriftId;
|
|
|
8208 |
private final String _fieldName;
|
|
|
8209 |
|
|
|
8210 |
_Fields(short thriftId, String fieldName) {
|
|
|
8211 |
_thriftId = thriftId;
|
|
|
8212 |
_fieldName = fieldName;
|
|
|
8213 |
}
|
|
|
8214 |
|
|
|
8215 |
public short getThriftFieldId() {
|
|
|
8216 |
return _thriftId;
|
|
|
8217 |
}
|
|
|
8218 |
|
|
|
8219 |
public String getFieldName() {
|
|
|
8220 |
return _fieldName;
|
|
|
8221 |
}
|
|
|
8222 |
}
|
|
|
8223 |
|
|
|
8224 |
// isset id assignments
|
|
|
8225 |
private static final int __PROVIDERID_ISSET_ID = 0;
|
|
|
8226 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
8227 |
|
| 3430 |
rajveer |
8228 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 730 |
chandransh |
8229 |
static {
|
| 3430 |
rajveer |
8230 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
8231 |
tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8232 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
8233 |
tmpMap.put(_Fields.PIN_CODE, new org.apache.thrift.meta_data.FieldMetaData("pinCode", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8234 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
8235 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
8236 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_args.class, metaDataMap);
|
| 730 |
chandransh |
8237 |
}
|
|
|
8238 |
|
|
|
8239 |
public getDestinationCode_args() {
|
|
|
8240 |
}
|
|
|
8241 |
|
|
|
8242 |
public getDestinationCode_args(
|
|
|
8243 |
long providerId,
|
|
|
8244 |
String pinCode)
|
|
|
8245 |
{
|
|
|
8246 |
this();
|
|
|
8247 |
this.providerId = providerId;
|
|
|
8248 |
setProviderIdIsSet(true);
|
|
|
8249 |
this.pinCode = pinCode;
|
|
|
8250 |
}
|
|
|
8251 |
|
|
|
8252 |
/**
|
|
|
8253 |
* Performs a deep copy on <i>other</i>.
|
|
|
8254 |
*/
|
|
|
8255 |
public getDestinationCode_args(getDestinationCode_args other) {
|
|
|
8256 |
__isset_bit_vector.clear();
|
|
|
8257 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
8258 |
this.providerId = other.providerId;
|
|
|
8259 |
if (other.isSetPinCode()) {
|
|
|
8260 |
this.pinCode = other.pinCode;
|
|
|
8261 |
}
|
|
|
8262 |
}
|
|
|
8263 |
|
|
|
8264 |
public getDestinationCode_args deepCopy() {
|
|
|
8265 |
return new getDestinationCode_args(this);
|
|
|
8266 |
}
|
|
|
8267 |
|
| 3430 |
rajveer |
8268 |
@Override
|
|
|
8269 |
public void clear() {
|
|
|
8270 |
setProviderIdIsSet(false);
|
|
|
8271 |
this.providerId = 0;
|
|
|
8272 |
this.pinCode = null;
|
| 730 |
chandransh |
8273 |
}
|
|
|
8274 |
|
|
|
8275 |
public long getProviderId() {
|
|
|
8276 |
return this.providerId;
|
|
|
8277 |
}
|
|
|
8278 |
|
| 3430 |
rajveer |
8279 |
public void setProviderId(long providerId) {
|
| 730 |
chandransh |
8280 |
this.providerId = providerId;
|
|
|
8281 |
setProviderIdIsSet(true);
|
|
|
8282 |
}
|
|
|
8283 |
|
|
|
8284 |
public void unsetProviderId() {
|
|
|
8285 |
__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
|
|
|
8286 |
}
|
|
|
8287 |
|
| 3430 |
rajveer |
8288 |
/** Returns true if field providerId is set (has been assigned a value) and false otherwise */
|
| 730 |
chandransh |
8289 |
public boolean isSetProviderId() {
|
|
|
8290 |
return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
|
|
|
8291 |
}
|
|
|
8292 |
|
|
|
8293 |
public void setProviderIdIsSet(boolean value) {
|
|
|
8294 |
__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
|
|
|
8295 |
}
|
|
|
8296 |
|
|
|
8297 |
public String getPinCode() {
|
|
|
8298 |
return this.pinCode;
|
|
|
8299 |
}
|
|
|
8300 |
|
| 3430 |
rajveer |
8301 |
public void setPinCode(String pinCode) {
|
| 730 |
chandransh |
8302 |
this.pinCode = pinCode;
|
|
|
8303 |
}
|
|
|
8304 |
|
|
|
8305 |
public void unsetPinCode() {
|
|
|
8306 |
this.pinCode = null;
|
|
|
8307 |
}
|
|
|
8308 |
|
| 3430 |
rajveer |
8309 |
/** Returns true if field pinCode is set (has been assigned a value) and false otherwise */
|
| 730 |
chandransh |
8310 |
public boolean isSetPinCode() {
|
|
|
8311 |
return this.pinCode != null;
|
|
|
8312 |
}
|
|
|
8313 |
|
|
|
8314 |
public void setPinCodeIsSet(boolean value) {
|
|
|
8315 |
if (!value) {
|
|
|
8316 |
this.pinCode = null;
|
|
|
8317 |
}
|
|
|
8318 |
}
|
|
|
8319 |
|
|
|
8320 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
8321 |
switch (field) {
|
|
|
8322 |
case PROVIDER_ID:
|
|
|
8323 |
if (value == null) {
|
|
|
8324 |
unsetProviderId();
|
|
|
8325 |
} else {
|
|
|
8326 |
setProviderId((Long)value);
|
|
|
8327 |
}
|
|
|
8328 |
break;
|
|
|
8329 |
|
|
|
8330 |
case PIN_CODE:
|
|
|
8331 |
if (value == null) {
|
|
|
8332 |
unsetPinCode();
|
|
|
8333 |
} else {
|
|
|
8334 |
setPinCode((String)value);
|
|
|
8335 |
}
|
|
|
8336 |
break;
|
|
|
8337 |
|
|
|
8338 |
}
|
|
|
8339 |
}
|
|
|
8340 |
|
|
|
8341 |
public Object getFieldValue(_Fields field) {
|
|
|
8342 |
switch (field) {
|
|
|
8343 |
case PROVIDER_ID:
|
| 3430 |
rajveer |
8344 |
return Long.valueOf(getProviderId());
|
| 730 |
chandransh |
8345 |
|
|
|
8346 |
case PIN_CODE:
|
|
|
8347 |
return getPinCode();
|
|
|
8348 |
|
|
|
8349 |
}
|
|
|
8350 |
throw new IllegalStateException();
|
|
|
8351 |
}
|
|
|
8352 |
|
| 3430 |
rajveer |
8353 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
8354 |
public boolean isSet(_Fields field) {
|
|
|
8355 |
if (field == null) {
|
|
|
8356 |
throw new IllegalArgumentException();
|
|
|
8357 |
}
|
| 730 |
chandransh |
8358 |
|
|
|
8359 |
switch (field) {
|
|
|
8360 |
case PROVIDER_ID:
|
|
|
8361 |
return isSetProviderId();
|
|
|
8362 |
case PIN_CODE:
|
|
|
8363 |
return isSetPinCode();
|
|
|
8364 |
}
|
|
|
8365 |
throw new IllegalStateException();
|
|
|
8366 |
}
|
|
|
8367 |
|
|
|
8368 |
@Override
|
|
|
8369 |
public boolean equals(Object that) {
|
|
|
8370 |
if (that == null)
|
|
|
8371 |
return false;
|
|
|
8372 |
if (that instanceof getDestinationCode_args)
|
|
|
8373 |
return this.equals((getDestinationCode_args)that);
|
|
|
8374 |
return false;
|
|
|
8375 |
}
|
|
|
8376 |
|
|
|
8377 |
public boolean equals(getDestinationCode_args that) {
|
|
|
8378 |
if (that == null)
|
|
|
8379 |
return false;
|
|
|
8380 |
|
|
|
8381 |
boolean this_present_providerId = true;
|
|
|
8382 |
boolean that_present_providerId = true;
|
|
|
8383 |
if (this_present_providerId || that_present_providerId) {
|
|
|
8384 |
if (!(this_present_providerId && that_present_providerId))
|
|
|
8385 |
return false;
|
|
|
8386 |
if (this.providerId != that.providerId)
|
|
|
8387 |
return false;
|
|
|
8388 |
}
|
|
|
8389 |
|
|
|
8390 |
boolean this_present_pinCode = true && this.isSetPinCode();
|
|
|
8391 |
boolean that_present_pinCode = true && that.isSetPinCode();
|
|
|
8392 |
if (this_present_pinCode || that_present_pinCode) {
|
|
|
8393 |
if (!(this_present_pinCode && that_present_pinCode))
|
|
|
8394 |
return false;
|
|
|
8395 |
if (!this.pinCode.equals(that.pinCode))
|
|
|
8396 |
return false;
|
|
|
8397 |
}
|
|
|
8398 |
|
|
|
8399 |
return true;
|
|
|
8400 |
}
|
|
|
8401 |
|
|
|
8402 |
@Override
|
|
|
8403 |
public int hashCode() {
|
|
|
8404 |
return 0;
|
|
|
8405 |
}
|
|
|
8406 |
|
|
|
8407 |
public int compareTo(getDestinationCode_args other) {
|
|
|
8408 |
if (!getClass().equals(other.getClass())) {
|
|
|
8409 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
8410 |
}
|
|
|
8411 |
|
|
|
8412 |
int lastComparison = 0;
|
|
|
8413 |
getDestinationCode_args typedOther = (getDestinationCode_args)other;
|
|
|
8414 |
|
| 3430 |
rajveer |
8415 |
lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
|
| 730 |
chandransh |
8416 |
if (lastComparison != 0) {
|
|
|
8417 |
return lastComparison;
|
|
|
8418 |
}
|
| 3430 |
rajveer |
8419 |
if (isSetProviderId()) {
|
|
|
8420 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
|
|
|
8421 |
if (lastComparison != 0) {
|
|
|
8422 |
return lastComparison;
|
|
|
8423 |
}
|
| 730 |
chandransh |
8424 |
}
|
| 3430 |
rajveer |
8425 |
lastComparison = Boolean.valueOf(isSetPinCode()).compareTo(typedOther.isSetPinCode());
|
| 730 |
chandransh |
8426 |
if (lastComparison != 0) {
|
|
|
8427 |
return lastComparison;
|
|
|
8428 |
}
|
| 3430 |
rajveer |
8429 |
if (isSetPinCode()) {
|
|
|
8430 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pinCode, typedOther.pinCode);
|
|
|
8431 |
if (lastComparison != 0) {
|
|
|
8432 |
return lastComparison;
|
|
|
8433 |
}
|
| 730 |
chandransh |
8434 |
}
|
|
|
8435 |
return 0;
|
|
|
8436 |
}
|
|
|
8437 |
|
| 3430 |
rajveer |
8438 |
public _Fields fieldForId(int fieldId) {
|
|
|
8439 |
return _Fields.findByThriftId(fieldId);
|
|
|
8440 |
}
|
|
|
8441 |
|
|
|
8442 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
8443 |
org.apache.thrift.protocol.TField field;
|
| 730 |
chandransh |
8444 |
iprot.readStructBegin();
|
|
|
8445 |
while (true)
|
|
|
8446 |
{
|
|
|
8447 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
8448 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 730 |
chandransh |
8449 |
break;
|
|
|
8450 |
}
|
| 3430 |
rajveer |
8451 |
switch (field.id) {
|
|
|
8452 |
case 1: // PROVIDER_ID
|
|
|
8453 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
8454 |
this.providerId = iprot.readI64();
|
|
|
8455 |
setProviderIdIsSet(true);
|
|
|
8456 |
} else {
|
|
|
8457 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8458 |
}
|
|
|
8459 |
break;
|
|
|
8460 |
case 2: // PIN_CODE
|
|
|
8461 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
8462 |
this.pinCode = iprot.readString();
|
|
|
8463 |
} else {
|
|
|
8464 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8465 |
}
|
|
|
8466 |
break;
|
|
|
8467 |
default:
|
|
|
8468 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 730 |
chandransh |
8469 |
}
|
| 3430 |
rajveer |
8470 |
iprot.readFieldEnd();
|
| 730 |
chandransh |
8471 |
}
|
|
|
8472 |
iprot.readStructEnd();
|
|
|
8473 |
validate();
|
|
|
8474 |
}
|
|
|
8475 |
|
| 3430 |
rajveer |
8476 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 730 |
chandransh |
8477 |
validate();
|
|
|
8478 |
|
|
|
8479 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
8480 |
oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
|
|
|
8481 |
oprot.writeI64(this.providerId);
|
|
|
8482 |
oprot.writeFieldEnd();
|
|
|
8483 |
if (this.pinCode != null) {
|
|
|
8484 |
oprot.writeFieldBegin(PIN_CODE_FIELD_DESC);
|
|
|
8485 |
oprot.writeString(this.pinCode);
|
|
|
8486 |
oprot.writeFieldEnd();
|
|
|
8487 |
}
|
|
|
8488 |
oprot.writeFieldStop();
|
|
|
8489 |
oprot.writeStructEnd();
|
|
|
8490 |
}
|
|
|
8491 |
|
|
|
8492 |
@Override
|
|
|
8493 |
public String toString() {
|
|
|
8494 |
StringBuilder sb = new StringBuilder("getDestinationCode_args(");
|
|
|
8495 |
boolean first = true;
|
|
|
8496 |
|
|
|
8497 |
sb.append("providerId:");
|
|
|
8498 |
sb.append(this.providerId);
|
|
|
8499 |
first = false;
|
|
|
8500 |
if (!first) sb.append(", ");
|
|
|
8501 |
sb.append("pinCode:");
|
|
|
8502 |
if (this.pinCode == null) {
|
|
|
8503 |
sb.append("null");
|
|
|
8504 |
} else {
|
|
|
8505 |
sb.append(this.pinCode);
|
|
|
8506 |
}
|
|
|
8507 |
first = false;
|
|
|
8508 |
sb.append(")");
|
|
|
8509 |
return sb.toString();
|
|
|
8510 |
}
|
|
|
8511 |
|
| 3430 |
rajveer |
8512 |
public void validate() throws org.apache.thrift.TException {
|
| 730 |
chandransh |
8513 |
// check for required fields
|
|
|
8514 |
}
|
|
|
8515 |
|
| 3430 |
rajveer |
8516 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
8517 |
try {
|
|
|
8518 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
8519 |
} catch (org.apache.thrift.TException te) {
|
|
|
8520 |
throw new java.io.IOException(te);
|
|
|
8521 |
}
|
|
|
8522 |
}
|
|
|
8523 |
|
|
|
8524 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
8525 |
try {
|
|
|
8526 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
8527 |
} catch (org.apache.thrift.TException te) {
|
|
|
8528 |
throw new java.io.IOException(te);
|
|
|
8529 |
}
|
|
|
8530 |
}
|
|
|
8531 |
|
| 730 |
chandransh |
8532 |
}
|
|
|
8533 |
|
| 3430 |
rajveer |
8534 |
public static class getDestinationCode_result implements org.apache.thrift.TBase<getDestinationCode_result, getDestinationCode_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
8535 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_result");
|
| 730 |
chandransh |
8536 |
|
| 3430 |
rajveer |
8537 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);
|
|
|
8538 |
private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
| 730 |
chandransh |
8539 |
|
| 3430 |
rajveer |
8540 |
private String success; // required
|
|
|
8541 |
private LogisticsServiceException se; // required
|
| 730 |
chandransh |
8542 |
|
|
|
8543 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
8544 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 730 |
chandransh |
8545 |
SUCCESS((short)0, "success"),
|
|
|
8546 |
SE((short)1, "se");
|
|
|
8547 |
|
|
|
8548 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
8549 |
|
|
|
8550 |
static {
|
|
|
8551 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
8552 |
byName.put(field.getFieldName(), field);
|
|
|
8553 |
}
|
|
|
8554 |
}
|
|
|
8555 |
|
|
|
8556 |
/**
|
|
|
8557 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
8558 |
*/
|
|
|
8559 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
8560 |
switch(fieldId) {
|
|
|
8561 |
case 0: // SUCCESS
|
|
|
8562 |
return SUCCESS;
|
|
|
8563 |
case 1: // SE
|
|
|
8564 |
return SE;
|
|
|
8565 |
default:
|
|
|
8566 |
return null;
|
|
|
8567 |
}
|
| 730 |
chandransh |
8568 |
}
|
|
|
8569 |
|
|
|
8570 |
/**
|
|
|
8571 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
8572 |
* if it is not found.
|
|
|
8573 |
*/
|
|
|
8574 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
8575 |
_Fields fields = findByThriftId(fieldId);
|
|
|
8576 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
8577 |
return fields;
|
|
|
8578 |
}
|
|
|
8579 |
|
|
|
8580 |
/**
|
|
|
8581 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
8582 |
*/
|
|
|
8583 |
public static _Fields findByName(String name) {
|
|
|
8584 |
return byName.get(name);
|
|
|
8585 |
}
|
|
|
8586 |
|
|
|
8587 |
private final short _thriftId;
|
|
|
8588 |
private final String _fieldName;
|
|
|
8589 |
|
|
|
8590 |
_Fields(short thriftId, String fieldName) {
|
|
|
8591 |
_thriftId = thriftId;
|
|
|
8592 |
_fieldName = fieldName;
|
|
|
8593 |
}
|
|
|
8594 |
|
|
|
8595 |
public short getThriftFieldId() {
|
|
|
8596 |
return _thriftId;
|
|
|
8597 |
}
|
|
|
8598 |
|
|
|
8599 |
public String getFieldName() {
|
|
|
8600 |
return _fieldName;
|
|
|
8601 |
}
|
|
|
8602 |
}
|
|
|
8603 |
|
|
|
8604 |
// isset id assignments
|
|
|
8605 |
|
| 3430 |
rajveer |
8606 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 730 |
chandransh |
8607 |
static {
|
| 3430 |
rajveer |
8608 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
8609 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8610 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
8611 |
tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8612 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
8613 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
8614 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_result.class, metaDataMap);
|
| 730 |
chandransh |
8615 |
}
|
|
|
8616 |
|
|
|
8617 |
public getDestinationCode_result() {
|
|
|
8618 |
}
|
|
|
8619 |
|
|
|
8620 |
public getDestinationCode_result(
|
|
|
8621 |
String success,
|
|
|
8622 |
LogisticsServiceException se)
|
|
|
8623 |
{
|
|
|
8624 |
this();
|
|
|
8625 |
this.success = success;
|
|
|
8626 |
this.se = se;
|
|
|
8627 |
}
|
|
|
8628 |
|
|
|
8629 |
/**
|
|
|
8630 |
* Performs a deep copy on <i>other</i>.
|
|
|
8631 |
*/
|
|
|
8632 |
public getDestinationCode_result(getDestinationCode_result other) {
|
|
|
8633 |
if (other.isSetSuccess()) {
|
|
|
8634 |
this.success = other.success;
|
|
|
8635 |
}
|
|
|
8636 |
if (other.isSetSe()) {
|
|
|
8637 |
this.se = new LogisticsServiceException(other.se);
|
|
|
8638 |
}
|
|
|
8639 |
}
|
|
|
8640 |
|
|
|
8641 |
public getDestinationCode_result deepCopy() {
|
|
|
8642 |
return new getDestinationCode_result(this);
|
|
|
8643 |
}
|
|
|
8644 |
|
| 3430 |
rajveer |
8645 |
@Override
|
|
|
8646 |
public void clear() {
|
|
|
8647 |
this.success = null;
|
|
|
8648 |
this.se = null;
|
| 730 |
chandransh |
8649 |
}
|
|
|
8650 |
|
|
|
8651 |
public String getSuccess() {
|
|
|
8652 |
return this.success;
|
|
|
8653 |
}
|
|
|
8654 |
|
| 3430 |
rajveer |
8655 |
public void setSuccess(String success) {
|
| 730 |
chandransh |
8656 |
this.success = success;
|
|
|
8657 |
}
|
|
|
8658 |
|
|
|
8659 |
public void unsetSuccess() {
|
|
|
8660 |
this.success = null;
|
|
|
8661 |
}
|
|
|
8662 |
|
| 3430 |
rajveer |
8663 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 730 |
chandransh |
8664 |
public boolean isSetSuccess() {
|
|
|
8665 |
return this.success != null;
|
|
|
8666 |
}
|
|
|
8667 |
|
|
|
8668 |
public void setSuccessIsSet(boolean value) {
|
|
|
8669 |
if (!value) {
|
|
|
8670 |
this.success = null;
|
|
|
8671 |
}
|
|
|
8672 |
}
|
|
|
8673 |
|
|
|
8674 |
public LogisticsServiceException getSe() {
|
|
|
8675 |
return this.se;
|
|
|
8676 |
}
|
|
|
8677 |
|
| 3430 |
rajveer |
8678 |
public void setSe(LogisticsServiceException se) {
|
| 730 |
chandransh |
8679 |
this.se = se;
|
|
|
8680 |
}
|
|
|
8681 |
|
|
|
8682 |
public void unsetSe() {
|
|
|
8683 |
this.se = null;
|
|
|
8684 |
}
|
|
|
8685 |
|
| 3430 |
rajveer |
8686 |
/** Returns true if field se is set (has been assigned a value) and false otherwise */
|
| 730 |
chandransh |
8687 |
public boolean isSetSe() {
|
|
|
8688 |
return this.se != null;
|
|
|
8689 |
}
|
|
|
8690 |
|
|
|
8691 |
public void setSeIsSet(boolean value) {
|
|
|
8692 |
if (!value) {
|
|
|
8693 |
this.se = null;
|
|
|
8694 |
}
|
|
|
8695 |
}
|
|
|
8696 |
|
|
|
8697 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
8698 |
switch (field) {
|
|
|
8699 |
case SUCCESS:
|
|
|
8700 |
if (value == null) {
|
|
|
8701 |
unsetSuccess();
|
|
|
8702 |
} else {
|
|
|
8703 |
setSuccess((String)value);
|
|
|
8704 |
}
|
|
|
8705 |
break;
|
|
|
8706 |
|
|
|
8707 |
case SE:
|
|
|
8708 |
if (value == null) {
|
|
|
8709 |
unsetSe();
|
|
|
8710 |
} else {
|
|
|
8711 |
setSe((LogisticsServiceException)value);
|
|
|
8712 |
}
|
|
|
8713 |
break;
|
|
|
8714 |
|
|
|
8715 |
}
|
|
|
8716 |
}
|
|
|
8717 |
|
|
|
8718 |
public Object getFieldValue(_Fields field) {
|
|
|
8719 |
switch (field) {
|
|
|
8720 |
case SUCCESS:
|
|
|
8721 |
return getSuccess();
|
|
|
8722 |
|
|
|
8723 |
case SE:
|
|
|
8724 |
return getSe();
|
|
|
8725 |
|
|
|
8726 |
}
|
|
|
8727 |
throw new IllegalStateException();
|
|
|
8728 |
}
|
|
|
8729 |
|
| 3430 |
rajveer |
8730 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
8731 |
public boolean isSet(_Fields field) {
|
|
|
8732 |
if (field == null) {
|
|
|
8733 |
throw new IllegalArgumentException();
|
|
|
8734 |
}
|
| 730 |
chandransh |
8735 |
|
|
|
8736 |
switch (field) {
|
|
|
8737 |
case SUCCESS:
|
|
|
8738 |
return isSetSuccess();
|
|
|
8739 |
case SE:
|
|
|
8740 |
return isSetSe();
|
|
|
8741 |
}
|
|
|
8742 |
throw new IllegalStateException();
|
|
|
8743 |
}
|
|
|
8744 |
|
|
|
8745 |
@Override
|
|
|
8746 |
public boolean equals(Object that) {
|
|
|
8747 |
if (that == null)
|
|
|
8748 |
return false;
|
|
|
8749 |
if (that instanceof getDestinationCode_result)
|
|
|
8750 |
return this.equals((getDestinationCode_result)that);
|
|
|
8751 |
return false;
|
|
|
8752 |
}
|
|
|
8753 |
|
|
|
8754 |
public boolean equals(getDestinationCode_result that) {
|
|
|
8755 |
if (that == null)
|
|
|
8756 |
return false;
|
|
|
8757 |
|
|
|
8758 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
8759 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
8760 |
if (this_present_success || that_present_success) {
|
|
|
8761 |
if (!(this_present_success && that_present_success))
|
|
|
8762 |
return false;
|
|
|
8763 |
if (!this.success.equals(that.success))
|
|
|
8764 |
return false;
|
|
|
8765 |
}
|
|
|
8766 |
|
|
|
8767 |
boolean this_present_se = true && this.isSetSe();
|
|
|
8768 |
boolean that_present_se = true && that.isSetSe();
|
|
|
8769 |
if (this_present_se || that_present_se) {
|
|
|
8770 |
if (!(this_present_se && that_present_se))
|
|
|
8771 |
return false;
|
|
|
8772 |
if (!this.se.equals(that.se))
|
|
|
8773 |
return false;
|
|
|
8774 |
}
|
|
|
8775 |
|
|
|
8776 |
return true;
|
|
|
8777 |
}
|
|
|
8778 |
|
|
|
8779 |
@Override
|
|
|
8780 |
public int hashCode() {
|
|
|
8781 |
return 0;
|
|
|
8782 |
}
|
|
|
8783 |
|
|
|
8784 |
public int compareTo(getDestinationCode_result other) {
|
|
|
8785 |
if (!getClass().equals(other.getClass())) {
|
|
|
8786 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
8787 |
}
|
|
|
8788 |
|
|
|
8789 |
int lastComparison = 0;
|
|
|
8790 |
getDestinationCode_result typedOther = (getDestinationCode_result)other;
|
|
|
8791 |
|
| 3430 |
rajveer |
8792 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 730 |
chandransh |
8793 |
if (lastComparison != 0) {
|
|
|
8794 |
return lastComparison;
|
|
|
8795 |
}
|
| 3430 |
rajveer |
8796 |
if (isSetSuccess()) {
|
|
|
8797 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
8798 |
if (lastComparison != 0) {
|
|
|
8799 |
return lastComparison;
|
|
|
8800 |
}
|
| 730 |
chandransh |
8801 |
}
|
| 3430 |
rajveer |
8802 |
lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
|
| 730 |
chandransh |
8803 |
if (lastComparison != 0) {
|
|
|
8804 |
return lastComparison;
|
|
|
8805 |
}
|
| 3430 |
rajveer |
8806 |
if (isSetSe()) {
|
|
|
8807 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
|
|
|
8808 |
if (lastComparison != 0) {
|
|
|
8809 |
return lastComparison;
|
|
|
8810 |
}
|
| 730 |
chandransh |
8811 |
}
|
|
|
8812 |
return 0;
|
|
|
8813 |
}
|
|
|
8814 |
|
| 3430 |
rajveer |
8815 |
public _Fields fieldForId(int fieldId) {
|
|
|
8816 |
return _Fields.findByThriftId(fieldId);
|
|
|
8817 |
}
|
|
|
8818 |
|
|
|
8819 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
8820 |
org.apache.thrift.protocol.TField field;
|
| 730 |
chandransh |
8821 |
iprot.readStructBegin();
|
|
|
8822 |
while (true)
|
|
|
8823 |
{
|
|
|
8824 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
8825 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 730 |
chandransh |
8826 |
break;
|
|
|
8827 |
}
|
| 3430 |
rajveer |
8828 |
switch (field.id) {
|
|
|
8829 |
case 0: // SUCCESS
|
|
|
8830 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
8831 |
this.success = iprot.readString();
|
|
|
8832 |
} else {
|
|
|
8833 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8834 |
}
|
|
|
8835 |
break;
|
|
|
8836 |
case 1: // SE
|
|
|
8837 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
8838 |
this.se = new LogisticsServiceException();
|
|
|
8839 |
this.se.read(iprot);
|
|
|
8840 |
} else {
|
|
|
8841 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8842 |
}
|
|
|
8843 |
break;
|
|
|
8844 |
default:
|
|
|
8845 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 730 |
chandransh |
8846 |
}
|
| 3430 |
rajveer |
8847 |
iprot.readFieldEnd();
|
| 730 |
chandransh |
8848 |
}
|
|
|
8849 |
iprot.readStructEnd();
|
|
|
8850 |
validate();
|
|
|
8851 |
}
|
|
|
8852 |
|
| 3430 |
rajveer |
8853 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 730 |
chandransh |
8854 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
8855 |
|
|
|
8856 |
if (this.isSetSuccess()) {
|
|
|
8857 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
8858 |
oprot.writeString(this.success);
|
|
|
8859 |
oprot.writeFieldEnd();
|
|
|
8860 |
} else if (this.isSetSe()) {
|
|
|
8861 |
oprot.writeFieldBegin(SE_FIELD_DESC);
|
|
|
8862 |
this.se.write(oprot);
|
|
|
8863 |
oprot.writeFieldEnd();
|
|
|
8864 |
}
|
|
|
8865 |
oprot.writeFieldStop();
|
|
|
8866 |
oprot.writeStructEnd();
|
|
|
8867 |
}
|
|
|
8868 |
|
|
|
8869 |
@Override
|
|
|
8870 |
public String toString() {
|
|
|
8871 |
StringBuilder sb = new StringBuilder("getDestinationCode_result(");
|
|
|
8872 |
boolean first = true;
|
|
|
8873 |
|
|
|
8874 |
sb.append("success:");
|
|
|
8875 |
if (this.success == null) {
|
|
|
8876 |
sb.append("null");
|
|
|
8877 |
} else {
|
|
|
8878 |
sb.append(this.success);
|
|
|
8879 |
}
|
|
|
8880 |
first = false;
|
|
|
8881 |
if (!first) sb.append(", ");
|
|
|
8882 |
sb.append("se:");
|
|
|
8883 |
if (this.se == null) {
|
|
|
8884 |
sb.append("null");
|
|
|
8885 |
} else {
|
|
|
8886 |
sb.append(this.se);
|
|
|
8887 |
}
|
|
|
8888 |
first = false;
|
|
|
8889 |
sb.append(")");
|
|
|
8890 |
return sb.toString();
|
|
|
8891 |
}
|
|
|
8892 |
|
| 3430 |
rajveer |
8893 |
public void validate() throws org.apache.thrift.TException {
|
| 730 |
chandransh |
8894 |
// check for required fields
|
|
|
8895 |
}
|
|
|
8896 |
|
| 3430 |
rajveer |
8897 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
8898 |
try {
|
|
|
8899 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
8900 |
} catch (org.apache.thrift.TException te) {
|
|
|
8901 |
throw new java.io.IOException(te);
|
|
|
8902 |
}
|
|
|
8903 |
}
|
|
|
8904 |
|
|
|
8905 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
8906 |
try {
|
|
|
8907 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
8908 |
} catch (org.apache.thrift.TException te) {
|
|
|
8909 |
throw new java.io.IOException(te);
|
|
|
8910 |
}
|
|
|
8911 |
}
|
|
|
8912 |
|
| 730 |
chandransh |
8913 |
}
|
|
|
8914 |
|
| 3430 |
rajveer |
8915 |
public static class getFreeAwbCount_args implements org.apache.thrift.TBase<getFreeAwbCount_args, getFreeAwbCount_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
8916 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_args");
|
| 1139 |
chandransh |
8917 |
|
| 3430 |
rajveer |
8918 |
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)1);
|
|
|
8919 |
private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.STRING, (short)2);
|
| 1139 |
chandransh |
8920 |
|
| 3430 |
rajveer |
8921 |
private long providerId; // required
|
|
|
8922 |
private String type; // required
|
| 1139 |
chandransh |
8923 |
|
|
|
8924 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
8925 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 3103 |
chandransh |
8926 |
PROVIDER_ID((short)1, "providerId"),
|
|
|
8927 |
TYPE((short)2, "type");
|
| 1139 |
chandransh |
8928 |
|
|
|
8929 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
8930 |
|
|
|
8931 |
static {
|
|
|
8932 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
8933 |
byName.put(field.getFieldName(), field);
|
|
|
8934 |
}
|
|
|
8935 |
}
|
|
|
8936 |
|
|
|
8937 |
/**
|
|
|
8938 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
8939 |
*/
|
|
|
8940 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
8941 |
switch(fieldId) {
|
|
|
8942 |
case 1: // PROVIDER_ID
|
|
|
8943 |
return PROVIDER_ID;
|
|
|
8944 |
case 2: // TYPE
|
|
|
8945 |
return TYPE;
|
|
|
8946 |
default:
|
|
|
8947 |
return null;
|
|
|
8948 |
}
|
| 1139 |
chandransh |
8949 |
}
|
|
|
8950 |
|
|
|
8951 |
/**
|
|
|
8952 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
8953 |
* if it is not found.
|
|
|
8954 |
*/
|
|
|
8955 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
8956 |
_Fields fields = findByThriftId(fieldId);
|
|
|
8957 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
8958 |
return fields;
|
|
|
8959 |
}
|
|
|
8960 |
|
|
|
8961 |
/**
|
|
|
8962 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
8963 |
*/
|
|
|
8964 |
public static _Fields findByName(String name) {
|
|
|
8965 |
return byName.get(name);
|
|
|
8966 |
}
|
|
|
8967 |
|
|
|
8968 |
private final short _thriftId;
|
|
|
8969 |
private final String _fieldName;
|
|
|
8970 |
|
|
|
8971 |
_Fields(short thriftId, String fieldName) {
|
|
|
8972 |
_thriftId = thriftId;
|
|
|
8973 |
_fieldName = fieldName;
|
|
|
8974 |
}
|
|
|
8975 |
|
|
|
8976 |
public short getThriftFieldId() {
|
|
|
8977 |
return _thriftId;
|
|
|
8978 |
}
|
|
|
8979 |
|
|
|
8980 |
public String getFieldName() {
|
|
|
8981 |
return _fieldName;
|
|
|
8982 |
}
|
|
|
8983 |
}
|
|
|
8984 |
|
|
|
8985 |
// isset id assignments
|
|
|
8986 |
private static final int __PROVIDERID_ISSET_ID = 0;
|
|
|
8987 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
8988 |
|
| 3430 |
rajveer |
8989 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 1139 |
chandransh |
8990 |
static {
|
| 3430 |
rajveer |
8991 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
8992 |
tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8993 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
8994 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8995 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
8996 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
8997 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_args.class, metaDataMap);
|
| 1139 |
chandransh |
8998 |
}
|
|
|
8999 |
|
|
|
9000 |
public getFreeAwbCount_args() {
|
|
|
9001 |
}
|
|
|
9002 |
|
|
|
9003 |
public getFreeAwbCount_args(
|
| 3103 |
chandransh |
9004 |
long providerId,
|
|
|
9005 |
String type)
|
| 1139 |
chandransh |
9006 |
{
|
|
|
9007 |
this();
|
|
|
9008 |
this.providerId = providerId;
|
|
|
9009 |
setProviderIdIsSet(true);
|
| 3103 |
chandransh |
9010 |
this.type = type;
|
| 1139 |
chandransh |
9011 |
}
|
|
|
9012 |
|
|
|
9013 |
/**
|
|
|
9014 |
* Performs a deep copy on <i>other</i>.
|
|
|
9015 |
*/
|
|
|
9016 |
public getFreeAwbCount_args(getFreeAwbCount_args other) {
|
|
|
9017 |
__isset_bit_vector.clear();
|
|
|
9018 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
9019 |
this.providerId = other.providerId;
|
| 3103 |
chandransh |
9020 |
if (other.isSetType()) {
|
|
|
9021 |
this.type = other.type;
|
|
|
9022 |
}
|
| 1139 |
chandransh |
9023 |
}
|
|
|
9024 |
|
|
|
9025 |
public getFreeAwbCount_args deepCopy() {
|
|
|
9026 |
return new getFreeAwbCount_args(this);
|
|
|
9027 |
}
|
|
|
9028 |
|
| 3430 |
rajveer |
9029 |
@Override
|
|
|
9030 |
public void clear() {
|
|
|
9031 |
setProviderIdIsSet(false);
|
|
|
9032 |
this.providerId = 0;
|
|
|
9033 |
this.type = null;
|
| 1139 |
chandransh |
9034 |
}
|
|
|
9035 |
|
|
|
9036 |
public long getProviderId() {
|
|
|
9037 |
return this.providerId;
|
|
|
9038 |
}
|
|
|
9039 |
|
| 3430 |
rajveer |
9040 |
public void setProviderId(long providerId) {
|
| 1139 |
chandransh |
9041 |
this.providerId = providerId;
|
|
|
9042 |
setProviderIdIsSet(true);
|
|
|
9043 |
}
|
|
|
9044 |
|
|
|
9045 |
public void unsetProviderId() {
|
|
|
9046 |
__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
|
|
|
9047 |
}
|
|
|
9048 |
|
| 3430 |
rajveer |
9049 |
/** Returns true if field providerId is set (has been assigned a value) and false otherwise */
|
| 1139 |
chandransh |
9050 |
public boolean isSetProviderId() {
|
|
|
9051 |
return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
|
|
|
9052 |
}
|
|
|
9053 |
|
|
|
9054 |
public void setProviderIdIsSet(boolean value) {
|
|
|
9055 |
__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
|
|
|
9056 |
}
|
|
|
9057 |
|
| 3103 |
chandransh |
9058 |
public String getType() {
|
|
|
9059 |
return this.type;
|
|
|
9060 |
}
|
|
|
9061 |
|
| 3430 |
rajveer |
9062 |
public void setType(String type) {
|
| 3103 |
chandransh |
9063 |
this.type = type;
|
|
|
9064 |
}
|
|
|
9065 |
|
|
|
9066 |
public void unsetType() {
|
|
|
9067 |
this.type = null;
|
|
|
9068 |
}
|
|
|
9069 |
|
| 3430 |
rajveer |
9070 |
/** Returns true if field type is set (has been assigned a value) and false otherwise */
|
| 3103 |
chandransh |
9071 |
public boolean isSetType() {
|
|
|
9072 |
return this.type != null;
|
|
|
9073 |
}
|
|
|
9074 |
|
|
|
9075 |
public void setTypeIsSet(boolean value) {
|
|
|
9076 |
if (!value) {
|
|
|
9077 |
this.type = null;
|
|
|
9078 |
}
|
|
|
9079 |
}
|
|
|
9080 |
|
| 1139 |
chandransh |
9081 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
9082 |
switch (field) {
|
|
|
9083 |
case PROVIDER_ID:
|
|
|
9084 |
if (value == null) {
|
|
|
9085 |
unsetProviderId();
|
|
|
9086 |
} else {
|
|
|
9087 |
setProviderId((Long)value);
|
|
|
9088 |
}
|
|
|
9089 |
break;
|
|
|
9090 |
|
| 3103 |
chandransh |
9091 |
case TYPE:
|
|
|
9092 |
if (value == null) {
|
|
|
9093 |
unsetType();
|
|
|
9094 |
} else {
|
|
|
9095 |
setType((String)value);
|
|
|
9096 |
}
|
|
|
9097 |
break;
|
|
|
9098 |
|
| 1139 |
chandransh |
9099 |
}
|
|
|
9100 |
}
|
|
|
9101 |
|
|
|
9102 |
public Object getFieldValue(_Fields field) {
|
|
|
9103 |
switch (field) {
|
|
|
9104 |
case PROVIDER_ID:
|
| 3430 |
rajveer |
9105 |
return Long.valueOf(getProviderId());
|
| 1139 |
chandransh |
9106 |
|
| 3103 |
chandransh |
9107 |
case TYPE:
|
|
|
9108 |
return getType();
|
|
|
9109 |
|
| 1139 |
chandransh |
9110 |
}
|
|
|
9111 |
throw new IllegalStateException();
|
|
|
9112 |
}
|
|
|
9113 |
|
| 3430 |
rajveer |
9114 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
9115 |
public boolean isSet(_Fields field) {
|
|
|
9116 |
if (field == null) {
|
|
|
9117 |
throw new IllegalArgumentException();
|
|
|
9118 |
}
|
| 1139 |
chandransh |
9119 |
|
|
|
9120 |
switch (field) {
|
|
|
9121 |
case PROVIDER_ID:
|
|
|
9122 |
return isSetProviderId();
|
| 3103 |
chandransh |
9123 |
case TYPE:
|
|
|
9124 |
return isSetType();
|
| 1139 |
chandransh |
9125 |
}
|
|
|
9126 |
throw new IllegalStateException();
|
|
|
9127 |
}
|
|
|
9128 |
|
|
|
9129 |
@Override
|
|
|
9130 |
public boolean equals(Object that) {
|
|
|
9131 |
if (that == null)
|
|
|
9132 |
return false;
|
|
|
9133 |
if (that instanceof getFreeAwbCount_args)
|
|
|
9134 |
return this.equals((getFreeAwbCount_args)that);
|
|
|
9135 |
return false;
|
|
|
9136 |
}
|
|
|
9137 |
|
|
|
9138 |
public boolean equals(getFreeAwbCount_args that) {
|
|
|
9139 |
if (that == null)
|
|
|
9140 |
return false;
|
|
|
9141 |
|
|
|
9142 |
boolean this_present_providerId = true;
|
|
|
9143 |
boolean that_present_providerId = true;
|
|
|
9144 |
if (this_present_providerId || that_present_providerId) {
|
|
|
9145 |
if (!(this_present_providerId && that_present_providerId))
|
|
|
9146 |
return false;
|
|
|
9147 |
if (this.providerId != that.providerId)
|
|
|
9148 |
return false;
|
|
|
9149 |
}
|
|
|
9150 |
|
| 3103 |
chandransh |
9151 |
boolean this_present_type = true && this.isSetType();
|
|
|
9152 |
boolean that_present_type = true && that.isSetType();
|
|
|
9153 |
if (this_present_type || that_present_type) {
|
|
|
9154 |
if (!(this_present_type && that_present_type))
|
|
|
9155 |
return false;
|
|
|
9156 |
if (!this.type.equals(that.type))
|
|
|
9157 |
return false;
|
|
|
9158 |
}
|
|
|
9159 |
|
| 1139 |
chandransh |
9160 |
return true;
|
|
|
9161 |
}
|
|
|
9162 |
|
|
|
9163 |
@Override
|
|
|
9164 |
public int hashCode() {
|
|
|
9165 |
return 0;
|
|
|
9166 |
}
|
|
|
9167 |
|
|
|
9168 |
public int compareTo(getFreeAwbCount_args other) {
|
|
|
9169 |
if (!getClass().equals(other.getClass())) {
|
|
|
9170 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
9171 |
}
|
|
|
9172 |
|
|
|
9173 |
int lastComparison = 0;
|
|
|
9174 |
getFreeAwbCount_args typedOther = (getFreeAwbCount_args)other;
|
|
|
9175 |
|
| 3430 |
rajveer |
9176 |
lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
|
| 1139 |
chandransh |
9177 |
if (lastComparison != 0) {
|
|
|
9178 |
return lastComparison;
|
|
|
9179 |
}
|
| 3430 |
rajveer |
9180 |
if (isSetProviderId()) {
|
|
|
9181 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
|
|
|
9182 |
if (lastComparison != 0) {
|
|
|
9183 |
return lastComparison;
|
|
|
9184 |
}
|
| 1139 |
chandransh |
9185 |
}
|
| 3430 |
rajveer |
9186 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
| 3103 |
chandransh |
9187 |
if (lastComparison != 0) {
|
|
|
9188 |
return lastComparison;
|
|
|
9189 |
}
|
| 3430 |
rajveer |
9190 |
if (isSetType()) {
|
|
|
9191 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
|
|
9192 |
if (lastComparison != 0) {
|
|
|
9193 |
return lastComparison;
|
|
|
9194 |
}
|
| 3103 |
chandransh |
9195 |
}
|
| 1139 |
chandransh |
9196 |
return 0;
|
|
|
9197 |
}
|
|
|
9198 |
|
| 3430 |
rajveer |
9199 |
public _Fields fieldForId(int fieldId) {
|
|
|
9200 |
return _Fields.findByThriftId(fieldId);
|
|
|
9201 |
}
|
|
|
9202 |
|
|
|
9203 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
9204 |
org.apache.thrift.protocol.TField field;
|
| 1139 |
chandransh |
9205 |
iprot.readStructBegin();
|
|
|
9206 |
while (true)
|
|
|
9207 |
{
|
|
|
9208 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
9209 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 1139 |
chandransh |
9210 |
break;
|
|
|
9211 |
}
|
| 3430 |
rajveer |
9212 |
switch (field.id) {
|
|
|
9213 |
case 1: // PROVIDER_ID
|
|
|
9214 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
9215 |
this.providerId = iprot.readI64();
|
|
|
9216 |
setProviderIdIsSet(true);
|
|
|
9217 |
} else {
|
|
|
9218 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9219 |
}
|
|
|
9220 |
break;
|
|
|
9221 |
case 2: // TYPE
|
|
|
9222 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
9223 |
this.type = iprot.readString();
|
|
|
9224 |
} else {
|
|
|
9225 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9226 |
}
|
|
|
9227 |
break;
|
|
|
9228 |
default:
|
|
|
9229 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 1139 |
chandransh |
9230 |
}
|
| 3430 |
rajveer |
9231 |
iprot.readFieldEnd();
|
| 1139 |
chandransh |
9232 |
}
|
|
|
9233 |
iprot.readStructEnd();
|
|
|
9234 |
validate();
|
|
|
9235 |
}
|
|
|
9236 |
|
| 3430 |
rajveer |
9237 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 1139 |
chandransh |
9238 |
validate();
|
|
|
9239 |
|
|
|
9240 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
9241 |
oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
|
|
|
9242 |
oprot.writeI64(this.providerId);
|
|
|
9243 |
oprot.writeFieldEnd();
|
| 3103 |
chandransh |
9244 |
if (this.type != null) {
|
|
|
9245 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
|
|
9246 |
oprot.writeString(this.type);
|
|
|
9247 |
oprot.writeFieldEnd();
|
|
|
9248 |
}
|
| 1139 |
chandransh |
9249 |
oprot.writeFieldStop();
|
|
|
9250 |
oprot.writeStructEnd();
|
|
|
9251 |
}
|
|
|
9252 |
|
|
|
9253 |
@Override
|
|
|
9254 |
public String toString() {
|
|
|
9255 |
StringBuilder sb = new StringBuilder("getFreeAwbCount_args(");
|
|
|
9256 |
boolean first = true;
|
|
|
9257 |
|
|
|
9258 |
sb.append("providerId:");
|
|
|
9259 |
sb.append(this.providerId);
|
|
|
9260 |
first = false;
|
| 3103 |
chandransh |
9261 |
if (!first) sb.append(", ");
|
|
|
9262 |
sb.append("type:");
|
|
|
9263 |
if (this.type == null) {
|
|
|
9264 |
sb.append("null");
|
|
|
9265 |
} else {
|
|
|
9266 |
sb.append(this.type);
|
|
|
9267 |
}
|
|
|
9268 |
first = false;
|
| 1139 |
chandransh |
9269 |
sb.append(")");
|
|
|
9270 |
return sb.toString();
|
|
|
9271 |
}
|
|
|
9272 |
|
| 3430 |
rajveer |
9273 |
public void validate() throws org.apache.thrift.TException {
|
| 1139 |
chandransh |
9274 |
// check for required fields
|
|
|
9275 |
}
|
|
|
9276 |
|
| 3430 |
rajveer |
9277 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
9278 |
try {
|
|
|
9279 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
9280 |
} catch (org.apache.thrift.TException te) {
|
|
|
9281 |
throw new java.io.IOException(te);
|
|
|
9282 |
}
|
|
|
9283 |
}
|
|
|
9284 |
|
|
|
9285 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
9286 |
try {
|
|
|
9287 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
9288 |
} catch (org.apache.thrift.TException te) {
|
|
|
9289 |
throw new java.io.IOException(te);
|
|
|
9290 |
}
|
|
|
9291 |
}
|
|
|
9292 |
|
| 1139 |
chandransh |
9293 |
}
|
|
|
9294 |
|
| 3430 |
rajveer |
9295 |
public static class getFreeAwbCount_result implements org.apache.thrift.TBase<getFreeAwbCount_result, getFreeAwbCount_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
9296 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_result");
|
| 1139 |
chandransh |
9297 |
|
| 3430 |
rajveer |
9298 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
|
| 1139 |
chandransh |
9299 |
|
| 3430 |
rajveer |
9300 |
private long success; // required
|
| 1139 |
chandransh |
9301 |
|
|
|
9302 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
9303 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 1139 |
chandransh |
9304 |
SUCCESS((short)0, "success");
|
|
|
9305 |
|
|
|
9306 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
9307 |
|
|
|
9308 |
static {
|
|
|
9309 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
9310 |
byName.put(field.getFieldName(), field);
|
|
|
9311 |
}
|
|
|
9312 |
}
|
|
|
9313 |
|
|
|
9314 |
/**
|
|
|
9315 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
9316 |
*/
|
|
|
9317 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
9318 |
switch(fieldId) {
|
|
|
9319 |
case 0: // SUCCESS
|
|
|
9320 |
return SUCCESS;
|
|
|
9321 |
default:
|
|
|
9322 |
return null;
|
|
|
9323 |
}
|
| 1139 |
chandransh |
9324 |
}
|
|
|
9325 |
|
|
|
9326 |
/**
|
|
|
9327 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
9328 |
* if it is not found.
|
|
|
9329 |
*/
|
|
|
9330 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
9331 |
_Fields fields = findByThriftId(fieldId);
|
|
|
9332 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
9333 |
return fields;
|
|
|
9334 |
}
|
|
|
9335 |
|
|
|
9336 |
/**
|
|
|
9337 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
9338 |
*/
|
|
|
9339 |
public static _Fields findByName(String name) {
|
|
|
9340 |
return byName.get(name);
|
|
|
9341 |
}
|
|
|
9342 |
|
|
|
9343 |
private final short _thriftId;
|
|
|
9344 |
private final String _fieldName;
|
|
|
9345 |
|
|
|
9346 |
_Fields(short thriftId, String fieldName) {
|
|
|
9347 |
_thriftId = thriftId;
|
|
|
9348 |
_fieldName = fieldName;
|
|
|
9349 |
}
|
|
|
9350 |
|
|
|
9351 |
public short getThriftFieldId() {
|
|
|
9352 |
return _thriftId;
|
|
|
9353 |
}
|
|
|
9354 |
|
|
|
9355 |
public String getFieldName() {
|
|
|
9356 |
return _fieldName;
|
|
|
9357 |
}
|
|
|
9358 |
}
|
|
|
9359 |
|
|
|
9360 |
// isset id assignments
|
|
|
9361 |
private static final int __SUCCESS_ISSET_ID = 0;
|
|
|
9362 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
9363 |
|
| 3430 |
rajveer |
9364 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 1139 |
chandransh |
9365 |
static {
|
| 3430 |
rajveer |
9366 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
9367 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9368 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
9369 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
9370 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_result.class, metaDataMap);
|
| 1139 |
chandransh |
9371 |
}
|
|
|
9372 |
|
|
|
9373 |
public getFreeAwbCount_result() {
|
|
|
9374 |
}
|
|
|
9375 |
|
|
|
9376 |
public getFreeAwbCount_result(
|
|
|
9377 |
long success)
|
|
|
9378 |
{
|
|
|
9379 |
this();
|
|
|
9380 |
this.success = success;
|
|
|
9381 |
setSuccessIsSet(true);
|
|
|
9382 |
}
|
|
|
9383 |
|
|
|
9384 |
/**
|
|
|
9385 |
* Performs a deep copy on <i>other</i>.
|
|
|
9386 |
*/
|
|
|
9387 |
public getFreeAwbCount_result(getFreeAwbCount_result other) {
|
|
|
9388 |
__isset_bit_vector.clear();
|
|
|
9389 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
9390 |
this.success = other.success;
|
|
|
9391 |
}
|
|
|
9392 |
|
|
|
9393 |
public getFreeAwbCount_result deepCopy() {
|
|
|
9394 |
return new getFreeAwbCount_result(this);
|
|
|
9395 |
}
|
|
|
9396 |
|
| 3430 |
rajveer |
9397 |
@Override
|
|
|
9398 |
public void clear() {
|
|
|
9399 |
setSuccessIsSet(false);
|
|
|
9400 |
this.success = 0;
|
| 1139 |
chandransh |
9401 |
}
|
|
|
9402 |
|
|
|
9403 |
public long getSuccess() {
|
|
|
9404 |
return this.success;
|
|
|
9405 |
}
|
|
|
9406 |
|
| 3430 |
rajveer |
9407 |
public void setSuccess(long success) {
|
| 1139 |
chandransh |
9408 |
this.success = success;
|
|
|
9409 |
setSuccessIsSet(true);
|
|
|
9410 |
}
|
|
|
9411 |
|
|
|
9412 |
public void unsetSuccess() {
|
|
|
9413 |
__isset_bit_vector.clear(__SUCCESS_ISSET_ID);
|
|
|
9414 |
}
|
|
|
9415 |
|
| 3430 |
rajveer |
9416 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 1139 |
chandransh |
9417 |
public boolean isSetSuccess() {
|
|
|
9418 |
return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
|
|
|
9419 |
}
|
|
|
9420 |
|
|
|
9421 |
public void setSuccessIsSet(boolean value) {
|
|
|
9422 |
__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
|
|
|
9423 |
}
|
|
|
9424 |
|
|
|
9425 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
9426 |
switch (field) {
|
|
|
9427 |
case SUCCESS:
|
|
|
9428 |
if (value == null) {
|
|
|
9429 |
unsetSuccess();
|
|
|
9430 |
} else {
|
|
|
9431 |
setSuccess((Long)value);
|
|
|
9432 |
}
|
|
|
9433 |
break;
|
|
|
9434 |
|
|
|
9435 |
}
|
|
|
9436 |
}
|
|
|
9437 |
|
|
|
9438 |
public Object getFieldValue(_Fields field) {
|
|
|
9439 |
switch (field) {
|
|
|
9440 |
case SUCCESS:
|
| 3430 |
rajveer |
9441 |
return Long.valueOf(getSuccess());
|
| 1139 |
chandransh |
9442 |
|
|
|
9443 |
}
|
|
|
9444 |
throw new IllegalStateException();
|
|
|
9445 |
}
|
|
|
9446 |
|
| 3430 |
rajveer |
9447 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
9448 |
public boolean isSet(_Fields field) {
|
|
|
9449 |
if (field == null) {
|
|
|
9450 |
throw new IllegalArgumentException();
|
|
|
9451 |
}
|
| 1139 |
chandransh |
9452 |
|
|
|
9453 |
switch (field) {
|
|
|
9454 |
case SUCCESS:
|
|
|
9455 |
return isSetSuccess();
|
|
|
9456 |
}
|
|
|
9457 |
throw new IllegalStateException();
|
|
|
9458 |
}
|
|
|
9459 |
|
|
|
9460 |
@Override
|
|
|
9461 |
public boolean equals(Object that) {
|
|
|
9462 |
if (that == null)
|
|
|
9463 |
return false;
|
|
|
9464 |
if (that instanceof getFreeAwbCount_result)
|
|
|
9465 |
return this.equals((getFreeAwbCount_result)that);
|
|
|
9466 |
return false;
|
|
|
9467 |
}
|
|
|
9468 |
|
|
|
9469 |
public boolean equals(getFreeAwbCount_result that) {
|
|
|
9470 |
if (that == null)
|
|
|
9471 |
return false;
|
|
|
9472 |
|
|
|
9473 |
boolean this_present_success = true;
|
|
|
9474 |
boolean that_present_success = true;
|
|
|
9475 |
if (this_present_success || that_present_success) {
|
|
|
9476 |
if (!(this_present_success && that_present_success))
|
|
|
9477 |
return false;
|
|
|
9478 |
if (this.success != that.success)
|
|
|
9479 |
return false;
|
|
|
9480 |
}
|
|
|
9481 |
|
|
|
9482 |
return true;
|
|
|
9483 |
}
|
|
|
9484 |
|
|
|
9485 |
@Override
|
|
|
9486 |
public int hashCode() {
|
|
|
9487 |
return 0;
|
|
|
9488 |
}
|
|
|
9489 |
|
|
|
9490 |
public int compareTo(getFreeAwbCount_result other) {
|
|
|
9491 |
if (!getClass().equals(other.getClass())) {
|
|
|
9492 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
9493 |
}
|
|
|
9494 |
|
|
|
9495 |
int lastComparison = 0;
|
|
|
9496 |
getFreeAwbCount_result typedOther = (getFreeAwbCount_result)other;
|
|
|
9497 |
|
| 3430 |
rajveer |
9498 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 1139 |
chandransh |
9499 |
if (lastComparison != 0) {
|
|
|
9500 |
return lastComparison;
|
|
|
9501 |
}
|
| 3430 |
rajveer |
9502 |
if (isSetSuccess()) {
|
|
|
9503 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
9504 |
if (lastComparison != 0) {
|
|
|
9505 |
return lastComparison;
|
|
|
9506 |
}
|
| 1139 |
chandransh |
9507 |
}
|
|
|
9508 |
return 0;
|
|
|
9509 |
}
|
|
|
9510 |
|
| 3430 |
rajveer |
9511 |
public _Fields fieldForId(int fieldId) {
|
|
|
9512 |
return _Fields.findByThriftId(fieldId);
|
|
|
9513 |
}
|
|
|
9514 |
|
|
|
9515 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
9516 |
org.apache.thrift.protocol.TField field;
|
| 1139 |
chandransh |
9517 |
iprot.readStructBegin();
|
|
|
9518 |
while (true)
|
|
|
9519 |
{
|
|
|
9520 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
9521 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 1139 |
chandransh |
9522 |
break;
|
|
|
9523 |
}
|
| 3430 |
rajveer |
9524 |
switch (field.id) {
|
|
|
9525 |
case 0: // SUCCESS
|
|
|
9526 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
9527 |
this.success = iprot.readI64();
|
|
|
9528 |
setSuccessIsSet(true);
|
|
|
9529 |
} else {
|
|
|
9530 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9531 |
}
|
|
|
9532 |
break;
|
|
|
9533 |
default:
|
|
|
9534 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 1139 |
chandransh |
9535 |
}
|
| 3430 |
rajveer |
9536 |
iprot.readFieldEnd();
|
| 1139 |
chandransh |
9537 |
}
|
|
|
9538 |
iprot.readStructEnd();
|
|
|
9539 |
validate();
|
|
|
9540 |
}
|
|
|
9541 |
|
| 3430 |
rajveer |
9542 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 1139 |
chandransh |
9543 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
9544 |
|
|
|
9545 |
if (this.isSetSuccess()) {
|
|
|
9546 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
9547 |
oprot.writeI64(this.success);
|
|
|
9548 |
oprot.writeFieldEnd();
|
|
|
9549 |
}
|
|
|
9550 |
oprot.writeFieldStop();
|
|
|
9551 |
oprot.writeStructEnd();
|
|
|
9552 |
}
|
|
|
9553 |
|
|
|
9554 |
@Override
|
|
|
9555 |
public String toString() {
|
|
|
9556 |
StringBuilder sb = new StringBuilder("getFreeAwbCount_result(");
|
|
|
9557 |
boolean first = true;
|
|
|
9558 |
|
|
|
9559 |
sb.append("success:");
|
|
|
9560 |
sb.append(this.success);
|
|
|
9561 |
first = false;
|
|
|
9562 |
sb.append(")");
|
|
|
9563 |
return sb.toString();
|
|
|
9564 |
}
|
|
|
9565 |
|
| 3430 |
rajveer |
9566 |
public void validate() throws org.apache.thrift.TException {
|
| 1139 |
chandransh |
9567 |
// check for required fields
|
|
|
9568 |
}
|
|
|
9569 |
|
| 3430 |
rajveer |
9570 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
9571 |
try {
|
|
|
9572 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
9573 |
} catch (org.apache.thrift.TException te) {
|
|
|
9574 |
throw new java.io.IOException(te);
|
|
|
9575 |
}
|
|
|
9576 |
}
|
|
|
9577 |
|
|
|
9578 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
9579 |
try {
|
|
|
9580 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
9581 |
} catch (org.apache.thrift.TException te) {
|
|
|
9582 |
throw new java.io.IOException(te);
|
|
|
9583 |
}
|
|
|
9584 |
}
|
|
|
9585 |
|
| 1139 |
chandransh |
9586 |
}
|
|
|
9587 |
|
| 3430 |
rajveer |
9588 |
public static class getHolidays_args implements org.apache.thrift.TBase<getHolidays_args, getHolidays_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
9589 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_args");
|
| 1730 |
ankur.sing |
9590 |
|
| 3430 |
rajveer |
9591 |
private static final org.apache.thrift.protocol.TField FROM_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("fromDate", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
9592 |
private static final org.apache.thrift.protocol.TField TO_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("toDate", org.apache.thrift.protocol.TType.I64, (short)2);
|
| 1730 |
ankur.sing |
9593 |
|
| 3430 |
rajveer |
9594 |
private long fromDate; // required
|
|
|
9595 |
private long toDate; // required
|
| 1730 |
ankur.sing |
9596 |
|
|
|
9597 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
9598 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 1730 |
ankur.sing |
9599 |
FROM_DATE((short)1, "fromDate"),
|
|
|
9600 |
TO_DATE((short)2, "toDate");
|
|
|
9601 |
|
|
|
9602 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
9603 |
|
|
|
9604 |
static {
|
|
|
9605 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
9606 |
byName.put(field.getFieldName(), field);
|
|
|
9607 |
}
|
|
|
9608 |
}
|
|
|
9609 |
|
|
|
9610 |
/**
|
|
|
9611 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
9612 |
*/
|
|
|
9613 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
9614 |
switch(fieldId) {
|
|
|
9615 |
case 1: // FROM_DATE
|
|
|
9616 |
return FROM_DATE;
|
|
|
9617 |
case 2: // TO_DATE
|
|
|
9618 |
return TO_DATE;
|
|
|
9619 |
default:
|
|
|
9620 |
return null;
|
|
|
9621 |
}
|
| 1730 |
ankur.sing |
9622 |
}
|
|
|
9623 |
|
|
|
9624 |
/**
|
|
|
9625 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
9626 |
* if it is not found.
|
|
|
9627 |
*/
|
|
|
9628 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
9629 |
_Fields fields = findByThriftId(fieldId);
|
|
|
9630 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
9631 |
return fields;
|
|
|
9632 |
}
|
|
|
9633 |
|
|
|
9634 |
/**
|
|
|
9635 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
9636 |
*/
|
|
|
9637 |
public static _Fields findByName(String name) {
|
|
|
9638 |
return byName.get(name);
|
|
|
9639 |
}
|
|
|
9640 |
|
|
|
9641 |
private final short _thriftId;
|
|
|
9642 |
private final String _fieldName;
|
|
|
9643 |
|
|
|
9644 |
_Fields(short thriftId, String fieldName) {
|
|
|
9645 |
_thriftId = thriftId;
|
|
|
9646 |
_fieldName = fieldName;
|
|
|
9647 |
}
|
|
|
9648 |
|
|
|
9649 |
public short getThriftFieldId() {
|
|
|
9650 |
return _thriftId;
|
|
|
9651 |
}
|
|
|
9652 |
|
|
|
9653 |
public String getFieldName() {
|
|
|
9654 |
return _fieldName;
|
|
|
9655 |
}
|
|
|
9656 |
}
|
|
|
9657 |
|
|
|
9658 |
// isset id assignments
|
|
|
9659 |
private static final int __FROMDATE_ISSET_ID = 0;
|
|
|
9660 |
private static final int __TODATE_ISSET_ID = 1;
|
|
|
9661 |
private BitSet __isset_bit_vector = new BitSet(2);
|
|
|
9662 |
|
| 3430 |
rajveer |
9663 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 1730 |
ankur.sing |
9664 |
static {
|
| 3430 |
rajveer |
9665 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
9666 |
tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9667 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
9668 |
tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9669 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
9670 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
9671 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_args.class, metaDataMap);
|
| 1730 |
ankur.sing |
9672 |
}
|
|
|
9673 |
|
|
|
9674 |
public getHolidays_args() {
|
|
|
9675 |
}
|
|
|
9676 |
|
|
|
9677 |
public getHolidays_args(
|
|
|
9678 |
long fromDate,
|
|
|
9679 |
long toDate)
|
|
|
9680 |
{
|
|
|
9681 |
this();
|
|
|
9682 |
this.fromDate = fromDate;
|
|
|
9683 |
setFromDateIsSet(true);
|
|
|
9684 |
this.toDate = toDate;
|
|
|
9685 |
setToDateIsSet(true);
|
|
|
9686 |
}
|
|
|
9687 |
|
|
|
9688 |
/**
|
|
|
9689 |
* Performs a deep copy on <i>other</i>.
|
|
|
9690 |
*/
|
|
|
9691 |
public getHolidays_args(getHolidays_args other) {
|
|
|
9692 |
__isset_bit_vector.clear();
|
|
|
9693 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
9694 |
this.fromDate = other.fromDate;
|
|
|
9695 |
this.toDate = other.toDate;
|
|
|
9696 |
}
|
|
|
9697 |
|
|
|
9698 |
public getHolidays_args deepCopy() {
|
|
|
9699 |
return new getHolidays_args(this);
|
|
|
9700 |
}
|
|
|
9701 |
|
| 3430 |
rajveer |
9702 |
@Override
|
|
|
9703 |
public void clear() {
|
|
|
9704 |
setFromDateIsSet(false);
|
|
|
9705 |
this.fromDate = 0;
|
|
|
9706 |
setToDateIsSet(false);
|
|
|
9707 |
this.toDate = 0;
|
| 1730 |
ankur.sing |
9708 |
}
|
|
|
9709 |
|
|
|
9710 |
public long getFromDate() {
|
|
|
9711 |
return this.fromDate;
|
|
|
9712 |
}
|
|
|
9713 |
|
| 3430 |
rajveer |
9714 |
public void setFromDate(long fromDate) {
|
| 1730 |
ankur.sing |
9715 |
this.fromDate = fromDate;
|
|
|
9716 |
setFromDateIsSet(true);
|
|
|
9717 |
}
|
|
|
9718 |
|
|
|
9719 |
public void unsetFromDate() {
|
|
|
9720 |
__isset_bit_vector.clear(__FROMDATE_ISSET_ID);
|
|
|
9721 |
}
|
|
|
9722 |
|
| 3430 |
rajveer |
9723 |
/** Returns true if field fromDate is set (has been assigned a value) and false otherwise */
|
| 1730 |
ankur.sing |
9724 |
public boolean isSetFromDate() {
|
|
|
9725 |
return __isset_bit_vector.get(__FROMDATE_ISSET_ID);
|
|
|
9726 |
}
|
|
|
9727 |
|
|
|
9728 |
public void setFromDateIsSet(boolean value) {
|
|
|
9729 |
__isset_bit_vector.set(__FROMDATE_ISSET_ID, value);
|
|
|
9730 |
}
|
|
|
9731 |
|
|
|
9732 |
public long getToDate() {
|
|
|
9733 |
return this.toDate;
|
|
|
9734 |
}
|
|
|
9735 |
|
| 3430 |
rajveer |
9736 |
public void setToDate(long toDate) {
|
| 1730 |
ankur.sing |
9737 |
this.toDate = toDate;
|
|
|
9738 |
setToDateIsSet(true);
|
|
|
9739 |
}
|
|
|
9740 |
|
|
|
9741 |
public void unsetToDate() {
|
|
|
9742 |
__isset_bit_vector.clear(__TODATE_ISSET_ID);
|
|
|
9743 |
}
|
|
|
9744 |
|
| 3430 |
rajveer |
9745 |
/** Returns true if field toDate is set (has been assigned a value) and false otherwise */
|
| 1730 |
ankur.sing |
9746 |
public boolean isSetToDate() {
|
|
|
9747 |
return __isset_bit_vector.get(__TODATE_ISSET_ID);
|
|
|
9748 |
}
|
|
|
9749 |
|
|
|
9750 |
public void setToDateIsSet(boolean value) {
|
|
|
9751 |
__isset_bit_vector.set(__TODATE_ISSET_ID, value);
|
|
|
9752 |
}
|
|
|
9753 |
|
|
|
9754 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
9755 |
switch (field) {
|
|
|
9756 |
case FROM_DATE:
|
|
|
9757 |
if (value == null) {
|
|
|
9758 |
unsetFromDate();
|
|
|
9759 |
} else {
|
|
|
9760 |
setFromDate((Long)value);
|
|
|
9761 |
}
|
|
|
9762 |
break;
|
|
|
9763 |
|
|
|
9764 |
case TO_DATE:
|
|
|
9765 |
if (value == null) {
|
|
|
9766 |
unsetToDate();
|
|
|
9767 |
} else {
|
|
|
9768 |
setToDate((Long)value);
|
|
|
9769 |
}
|
|
|
9770 |
break;
|
|
|
9771 |
|
|
|
9772 |
}
|
|
|
9773 |
}
|
|
|
9774 |
|
|
|
9775 |
public Object getFieldValue(_Fields field) {
|
|
|
9776 |
switch (field) {
|
|
|
9777 |
case FROM_DATE:
|
| 3430 |
rajveer |
9778 |
return Long.valueOf(getFromDate());
|
| 1730 |
ankur.sing |
9779 |
|
|
|
9780 |
case TO_DATE:
|
| 3430 |
rajveer |
9781 |
return Long.valueOf(getToDate());
|
| 1730 |
ankur.sing |
9782 |
|
|
|
9783 |
}
|
|
|
9784 |
throw new IllegalStateException();
|
|
|
9785 |
}
|
|
|
9786 |
|
| 3430 |
rajveer |
9787 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
9788 |
public boolean isSet(_Fields field) {
|
|
|
9789 |
if (field == null) {
|
|
|
9790 |
throw new IllegalArgumentException();
|
|
|
9791 |
}
|
| 1730 |
ankur.sing |
9792 |
|
|
|
9793 |
switch (field) {
|
|
|
9794 |
case FROM_DATE:
|
|
|
9795 |
return isSetFromDate();
|
|
|
9796 |
case TO_DATE:
|
|
|
9797 |
return isSetToDate();
|
|
|
9798 |
}
|
|
|
9799 |
throw new IllegalStateException();
|
|
|
9800 |
}
|
|
|
9801 |
|
|
|
9802 |
@Override
|
|
|
9803 |
public boolean equals(Object that) {
|
|
|
9804 |
if (that == null)
|
|
|
9805 |
return false;
|
|
|
9806 |
if (that instanceof getHolidays_args)
|
|
|
9807 |
return this.equals((getHolidays_args)that);
|
|
|
9808 |
return false;
|
|
|
9809 |
}
|
|
|
9810 |
|
|
|
9811 |
public boolean equals(getHolidays_args that) {
|
|
|
9812 |
if (that == null)
|
|
|
9813 |
return false;
|
|
|
9814 |
|
|
|
9815 |
boolean this_present_fromDate = true;
|
|
|
9816 |
boolean that_present_fromDate = true;
|
|
|
9817 |
if (this_present_fromDate || that_present_fromDate) {
|
|
|
9818 |
if (!(this_present_fromDate && that_present_fromDate))
|
|
|
9819 |
return false;
|
|
|
9820 |
if (this.fromDate != that.fromDate)
|
|
|
9821 |
return false;
|
|
|
9822 |
}
|
|
|
9823 |
|
|
|
9824 |
boolean this_present_toDate = true;
|
|
|
9825 |
boolean that_present_toDate = true;
|
|
|
9826 |
if (this_present_toDate || that_present_toDate) {
|
|
|
9827 |
if (!(this_present_toDate && that_present_toDate))
|
|
|
9828 |
return false;
|
|
|
9829 |
if (this.toDate != that.toDate)
|
|
|
9830 |
return false;
|
|
|
9831 |
}
|
|
|
9832 |
|
|
|
9833 |
return true;
|
|
|
9834 |
}
|
|
|
9835 |
|
|
|
9836 |
@Override
|
|
|
9837 |
public int hashCode() {
|
|
|
9838 |
return 0;
|
|
|
9839 |
}
|
|
|
9840 |
|
|
|
9841 |
public int compareTo(getHolidays_args other) {
|
|
|
9842 |
if (!getClass().equals(other.getClass())) {
|
|
|
9843 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
9844 |
}
|
|
|
9845 |
|
|
|
9846 |
int lastComparison = 0;
|
|
|
9847 |
getHolidays_args typedOther = (getHolidays_args)other;
|
|
|
9848 |
|
| 3430 |
rajveer |
9849 |
lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());
|
| 1730 |
ankur.sing |
9850 |
if (lastComparison != 0) {
|
|
|
9851 |
return lastComparison;
|
|
|
9852 |
}
|
| 3430 |
rajveer |
9853 |
if (isSetFromDate()) {
|
|
|
9854 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);
|
|
|
9855 |
if (lastComparison != 0) {
|
|
|
9856 |
return lastComparison;
|
|
|
9857 |
}
|
| 1730 |
ankur.sing |
9858 |
}
|
| 3430 |
rajveer |
9859 |
lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());
|
| 1730 |
ankur.sing |
9860 |
if (lastComparison != 0) {
|
|
|
9861 |
return lastComparison;
|
|
|
9862 |
}
|
| 3430 |
rajveer |
9863 |
if (isSetToDate()) {
|
|
|
9864 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);
|
|
|
9865 |
if (lastComparison != 0) {
|
|
|
9866 |
return lastComparison;
|
|
|
9867 |
}
|
| 1730 |
ankur.sing |
9868 |
}
|
|
|
9869 |
return 0;
|
|
|
9870 |
}
|
|
|
9871 |
|
| 3430 |
rajveer |
9872 |
public _Fields fieldForId(int fieldId) {
|
|
|
9873 |
return _Fields.findByThriftId(fieldId);
|
|
|
9874 |
}
|
|
|
9875 |
|
|
|
9876 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
9877 |
org.apache.thrift.protocol.TField field;
|
| 1730 |
ankur.sing |
9878 |
iprot.readStructBegin();
|
|
|
9879 |
while (true)
|
|
|
9880 |
{
|
|
|
9881 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
9882 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 1730 |
ankur.sing |
9883 |
break;
|
|
|
9884 |
}
|
| 3430 |
rajveer |
9885 |
switch (field.id) {
|
|
|
9886 |
case 1: // FROM_DATE
|
|
|
9887 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
9888 |
this.fromDate = iprot.readI64();
|
|
|
9889 |
setFromDateIsSet(true);
|
|
|
9890 |
} else {
|
|
|
9891 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9892 |
}
|
|
|
9893 |
break;
|
|
|
9894 |
case 2: // TO_DATE
|
|
|
9895 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
9896 |
this.toDate = iprot.readI64();
|
|
|
9897 |
setToDateIsSet(true);
|
|
|
9898 |
} else {
|
|
|
9899 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9900 |
}
|
|
|
9901 |
break;
|
|
|
9902 |
default:
|
|
|
9903 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 1730 |
ankur.sing |
9904 |
}
|
| 3430 |
rajveer |
9905 |
iprot.readFieldEnd();
|
| 1730 |
ankur.sing |
9906 |
}
|
|
|
9907 |
iprot.readStructEnd();
|
|
|
9908 |
validate();
|
|
|
9909 |
}
|
|
|
9910 |
|
| 3430 |
rajveer |
9911 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 1730 |
ankur.sing |
9912 |
validate();
|
|
|
9913 |
|
|
|
9914 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
9915 |
oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
|
|
|
9916 |
oprot.writeI64(this.fromDate);
|
|
|
9917 |
oprot.writeFieldEnd();
|
|
|
9918 |
oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
|
|
|
9919 |
oprot.writeI64(this.toDate);
|
|
|
9920 |
oprot.writeFieldEnd();
|
|
|
9921 |
oprot.writeFieldStop();
|
|
|
9922 |
oprot.writeStructEnd();
|
|
|
9923 |
}
|
|
|
9924 |
|
|
|
9925 |
@Override
|
|
|
9926 |
public String toString() {
|
|
|
9927 |
StringBuilder sb = new StringBuilder("getHolidays_args(");
|
|
|
9928 |
boolean first = true;
|
|
|
9929 |
|
|
|
9930 |
sb.append("fromDate:");
|
|
|
9931 |
sb.append(this.fromDate);
|
|
|
9932 |
first = false;
|
|
|
9933 |
if (!first) sb.append(", ");
|
|
|
9934 |
sb.append("toDate:");
|
|
|
9935 |
sb.append(this.toDate);
|
|
|
9936 |
first = false;
|
|
|
9937 |
sb.append(")");
|
|
|
9938 |
return sb.toString();
|
|
|
9939 |
}
|
|
|
9940 |
|
| 3430 |
rajveer |
9941 |
public void validate() throws org.apache.thrift.TException {
|
| 1730 |
ankur.sing |
9942 |
// check for required fields
|
|
|
9943 |
}
|
|
|
9944 |
|
| 3430 |
rajveer |
9945 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
9946 |
try {
|
|
|
9947 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
9948 |
} catch (org.apache.thrift.TException te) {
|
|
|
9949 |
throw new java.io.IOException(te);
|
|
|
9950 |
}
|
|
|
9951 |
}
|
|
|
9952 |
|
|
|
9953 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
9954 |
try {
|
|
|
9955 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
9956 |
} catch (org.apache.thrift.TException te) {
|
|
|
9957 |
throw new java.io.IOException(te);
|
|
|
9958 |
}
|
|
|
9959 |
}
|
|
|
9960 |
|
| 1730 |
ankur.sing |
9961 |
}
|
|
|
9962 |
|
| 3430 |
rajveer |
9963 |
public static class getHolidays_result implements org.apache.thrift.TBase<getHolidays_result, getHolidays_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
9964 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_result");
|
| 1730 |
ankur.sing |
9965 |
|
| 3430 |
rajveer |
9966 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
|
| 1730 |
ankur.sing |
9967 |
|
| 3430 |
rajveer |
9968 |
private List<Long> success; // required
|
| 1730 |
ankur.sing |
9969 |
|
|
|
9970 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
9971 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 1730 |
ankur.sing |
9972 |
SUCCESS((short)0, "success");
|
|
|
9973 |
|
|
|
9974 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
9975 |
|
|
|
9976 |
static {
|
|
|
9977 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
9978 |
byName.put(field.getFieldName(), field);
|
|
|
9979 |
}
|
|
|
9980 |
}
|
|
|
9981 |
|
|
|
9982 |
/**
|
|
|
9983 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
9984 |
*/
|
|
|
9985 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
9986 |
switch(fieldId) {
|
|
|
9987 |
case 0: // SUCCESS
|
|
|
9988 |
return SUCCESS;
|
|
|
9989 |
default:
|
|
|
9990 |
return null;
|
|
|
9991 |
}
|
| 1730 |
ankur.sing |
9992 |
}
|
|
|
9993 |
|
|
|
9994 |
/**
|
|
|
9995 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
9996 |
* if it is not found.
|
|
|
9997 |
*/
|
|
|
9998 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
9999 |
_Fields fields = findByThriftId(fieldId);
|
|
|
10000 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
10001 |
return fields;
|
|
|
10002 |
}
|
|
|
10003 |
|
|
|
10004 |
/**
|
|
|
10005 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
10006 |
*/
|
|
|
10007 |
public static _Fields findByName(String name) {
|
|
|
10008 |
return byName.get(name);
|
|
|
10009 |
}
|
|
|
10010 |
|
|
|
10011 |
private final short _thriftId;
|
|
|
10012 |
private final String _fieldName;
|
|
|
10013 |
|
|
|
10014 |
_Fields(short thriftId, String fieldName) {
|
|
|
10015 |
_thriftId = thriftId;
|
|
|
10016 |
_fieldName = fieldName;
|
|
|
10017 |
}
|
|
|
10018 |
|
|
|
10019 |
public short getThriftFieldId() {
|
|
|
10020 |
return _thriftId;
|
|
|
10021 |
}
|
|
|
10022 |
|
|
|
10023 |
public String getFieldName() {
|
|
|
10024 |
return _fieldName;
|
|
|
10025 |
}
|
|
|
10026 |
}
|
|
|
10027 |
|
|
|
10028 |
// isset id assignments
|
|
|
10029 |
|
| 3430 |
rajveer |
10030 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 1730 |
ankur.sing |
10031 |
static {
|
| 3430 |
rajveer |
10032 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
10033 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
10034 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
10035 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
|
|
|
10036 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
10037 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_result.class, metaDataMap);
|
| 1730 |
ankur.sing |
10038 |
}
|
|
|
10039 |
|
|
|
10040 |
public getHolidays_result() {
|
|
|
10041 |
}
|
|
|
10042 |
|
|
|
10043 |
public getHolidays_result(
|
|
|
10044 |
List<Long> success)
|
|
|
10045 |
{
|
|
|
10046 |
this();
|
|
|
10047 |
this.success = success;
|
|
|
10048 |
}
|
|
|
10049 |
|
|
|
10050 |
/**
|
|
|
10051 |
* Performs a deep copy on <i>other</i>.
|
|
|
10052 |
*/
|
|
|
10053 |
public getHolidays_result(getHolidays_result other) {
|
|
|
10054 |
if (other.isSetSuccess()) {
|
|
|
10055 |
List<Long> __this__success = new ArrayList<Long>();
|
|
|
10056 |
for (Long other_element : other.success) {
|
|
|
10057 |
__this__success.add(other_element);
|
|
|
10058 |
}
|
|
|
10059 |
this.success = __this__success;
|
|
|
10060 |
}
|
|
|
10061 |
}
|
|
|
10062 |
|
|
|
10063 |
public getHolidays_result deepCopy() {
|
|
|
10064 |
return new getHolidays_result(this);
|
|
|
10065 |
}
|
|
|
10066 |
|
| 3430 |
rajveer |
10067 |
@Override
|
|
|
10068 |
public void clear() {
|
|
|
10069 |
this.success = null;
|
| 1730 |
ankur.sing |
10070 |
}
|
|
|
10071 |
|
|
|
10072 |
public int getSuccessSize() {
|
|
|
10073 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
10074 |
}
|
|
|
10075 |
|
|
|
10076 |
public java.util.Iterator<Long> getSuccessIterator() {
|
|
|
10077 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
10078 |
}
|
|
|
10079 |
|
|
|
10080 |
public void addToSuccess(long elem) {
|
|
|
10081 |
if (this.success == null) {
|
|
|
10082 |
this.success = new ArrayList<Long>();
|
|
|
10083 |
}
|
|
|
10084 |
this.success.add(elem);
|
|
|
10085 |
}
|
|
|
10086 |
|
|
|
10087 |
public List<Long> getSuccess() {
|
|
|
10088 |
return this.success;
|
|
|
10089 |
}
|
|
|
10090 |
|
| 3430 |
rajveer |
10091 |
public void setSuccess(List<Long> success) {
|
| 1730 |
ankur.sing |
10092 |
this.success = success;
|
|
|
10093 |
}
|
|
|
10094 |
|
|
|
10095 |
public void unsetSuccess() {
|
|
|
10096 |
this.success = null;
|
|
|
10097 |
}
|
|
|
10098 |
|
| 3430 |
rajveer |
10099 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 1730 |
ankur.sing |
10100 |
public boolean isSetSuccess() {
|
|
|
10101 |
return this.success != null;
|
|
|
10102 |
}
|
|
|
10103 |
|
|
|
10104 |
public void setSuccessIsSet(boolean value) {
|
|
|
10105 |
if (!value) {
|
|
|
10106 |
this.success = null;
|
|
|
10107 |
}
|
|
|
10108 |
}
|
|
|
10109 |
|
|
|
10110 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
10111 |
switch (field) {
|
|
|
10112 |
case SUCCESS:
|
|
|
10113 |
if (value == null) {
|
|
|
10114 |
unsetSuccess();
|
|
|
10115 |
} else {
|
|
|
10116 |
setSuccess((List<Long>)value);
|
|
|
10117 |
}
|
|
|
10118 |
break;
|
|
|
10119 |
|
|
|
10120 |
}
|
|
|
10121 |
}
|
|
|
10122 |
|
|
|
10123 |
public Object getFieldValue(_Fields field) {
|
|
|
10124 |
switch (field) {
|
|
|
10125 |
case SUCCESS:
|
|
|
10126 |
return getSuccess();
|
|
|
10127 |
|
|
|
10128 |
}
|
|
|
10129 |
throw new IllegalStateException();
|
|
|
10130 |
}
|
|
|
10131 |
|
| 3430 |
rajveer |
10132 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
10133 |
public boolean isSet(_Fields field) {
|
|
|
10134 |
if (field == null) {
|
|
|
10135 |
throw new IllegalArgumentException();
|
|
|
10136 |
}
|
| 1730 |
ankur.sing |
10137 |
|
|
|
10138 |
switch (field) {
|
|
|
10139 |
case SUCCESS:
|
|
|
10140 |
return isSetSuccess();
|
|
|
10141 |
}
|
|
|
10142 |
throw new IllegalStateException();
|
|
|
10143 |
}
|
|
|
10144 |
|
|
|
10145 |
@Override
|
|
|
10146 |
public boolean equals(Object that) {
|
|
|
10147 |
if (that == null)
|
|
|
10148 |
return false;
|
|
|
10149 |
if (that instanceof getHolidays_result)
|
|
|
10150 |
return this.equals((getHolidays_result)that);
|
|
|
10151 |
return false;
|
|
|
10152 |
}
|
|
|
10153 |
|
|
|
10154 |
public boolean equals(getHolidays_result that) {
|
|
|
10155 |
if (that == null)
|
|
|
10156 |
return false;
|
|
|
10157 |
|
|
|
10158 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
10159 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
10160 |
if (this_present_success || that_present_success) {
|
|
|
10161 |
if (!(this_present_success && that_present_success))
|
|
|
10162 |
return false;
|
|
|
10163 |
if (!this.success.equals(that.success))
|
|
|
10164 |
return false;
|
|
|
10165 |
}
|
|
|
10166 |
|
|
|
10167 |
return true;
|
|
|
10168 |
}
|
|
|
10169 |
|
|
|
10170 |
@Override
|
|
|
10171 |
public int hashCode() {
|
|
|
10172 |
return 0;
|
|
|
10173 |
}
|
|
|
10174 |
|
|
|
10175 |
public int compareTo(getHolidays_result other) {
|
|
|
10176 |
if (!getClass().equals(other.getClass())) {
|
|
|
10177 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
10178 |
}
|
|
|
10179 |
|
|
|
10180 |
int lastComparison = 0;
|
|
|
10181 |
getHolidays_result typedOther = (getHolidays_result)other;
|
|
|
10182 |
|
| 3430 |
rajveer |
10183 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 1730 |
ankur.sing |
10184 |
if (lastComparison != 0) {
|
|
|
10185 |
return lastComparison;
|
|
|
10186 |
}
|
| 3430 |
rajveer |
10187 |
if (isSetSuccess()) {
|
|
|
10188 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
10189 |
if (lastComparison != 0) {
|
|
|
10190 |
return lastComparison;
|
|
|
10191 |
}
|
| 1730 |
ankur.sing |
10192 |
}
|
|
|
10193 |
return 0;
|
|
|
10194 |
}
|
|
|
10195 |
|
| 3430 |
rajveer |
10196 |
public _Fields fieldForId(int fieldId) {
|
|
|
10197 |
return _Fields.findByThriftId(fieldId);
|
|
|
10198 |
}
|
|
|
10199 |
|
|
|
10200 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
10201 |
org.apache.thrift.protocol.TField field;
|
| 1730 |
ankur.sing |
10202 |
iprot.readStructBegin();
|
|
|
10203 |
while (true)
|
|
|
10204 |
{
|
|
|
10205 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
10206 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 1730 |
ankur.sing |
10207 |
break;
|
|
|
10208 |
}
|
| 3430 |
rajveer |
10209 |
switch (field.id) {
|
|
|
10210 |
case 0: // SUCCESS
|
|
|
10211 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
10212 |
{
|
| 7792 |
anupam.sin |
10213 |
org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
|
|
|
10214 |
this.success = new ArrayList<Long>(_list12.size);
|
|
|
10215 |
for (int _i13 = 0; _i13 < _list12.size; ++_i13)
|
| 1730 |
ankur.sing |
10216 |
{
|
| 7792 |
anupam.sin |
10217 |
long _elem14; // required
|
|
|
10218 |
_elem14 = iprot.readI64();
|
|
|
10219 |
this.success.add(_elem14);
|
| 1730 |
ankur.sing |
10220 |
}
|
| 3430 |
rajveer |
10221 |
iprot.readListEnd();
|
| 1730 |
ankur.sing |
10222 |
}
|
| 3430 |
rajveer |
10223 |
} else {
|
|
|
10224 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10225 |
}
|
|
|
10226 |
break;
|
|
|
10227 |
default:
|
|
|
10228 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 1730 |
ankur.sing |
10229 |
}
|
| 3430 |
rajveer |
10230 |
iprot.readFieldEnd();
|
| 1730 |
ankur.sing |
10231 |
}
|
|
|
10232 |
iprot.readStructEnd();
|
|
|
10233 |
validate();
|
|
|
10234 |
}
|
|
|
10235 |
|
| 3430 |
rajveer |
10236 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 1730 |
ankur.sing |
10237 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
10238 |
|
|
|
10239 |
if (this.isSetSuccess()) {
|
|
|
10240 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
10241 |
{
|
| 3430 |
rajveer |
10242 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
|
| 7792 |
anupam.sin |
10243 |
for (long _iter15 : this.success)
|
| 1730 |
ankur.sing |
10244 |
{
|
| 7792 |
anupam.sin |
10245 |
oprot.writeI64(_iter15);
|
| 1730 |
ankur.sing |
10246 |
}
|
|
|
10247 |
oprot.writeListEnd();
|
|
|
10248 |
}
|
|
|
10249 |
oprot.writeFieldEnd();
|
|
|
10250 |
}
|
|
|
10251 |
oprot.writeFieldStop();
|
|
|
10252 |
oprot.writeStructEnd();
|
|
|
10253 |
}
|
|
|
10254 |
|
|
|
10255 |
@Override
|
|
|
10256 |
public String toString() {
|
|
|
10257 |
StringBuilder sb = new StringBuilder("getHolidays_result(");
|
|
|
10258 |
boolean first = true;
|
|
|
10259 |
|
|
|
10260 |
sb.append("success:");
|
|
|
10261 |
if (this.success == null) {
|
|
|
10262 |
sb.append("null");
|
|
|
10263 |
} else {
|
|
|
10264 |
sb.append(this.success);
|
|
|
10265 |
}
|
|
|
10266 |
first = false;
|
|
|
10267 |
sb.append(")");
|
|
|
10268 |
return sb.toString();
|
|
|
10269 |
}
|
|
|
10270 |
|
| 3430 |
rajveer |
10271 |
public void validate() throws org.apache.thrift.TException {
|
| 1730 |
ankur.sing |
10272 |
// check for required fields
|
|
|
10273 |
}
|
|
|
10274 |
|
| 3430 |
rajveer |
10275 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
10276 |
try {
|
|
|
10277 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
10278 |
} catch (org.apache.thrift.TException te) {
|
|
|
10279 |
throw new java.io.IOException(te);
|
|
|
10280 |
}
|
|
|
10281 |
}
|
|
|
10282 |
|
|
|
10283 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
10284 |
try {
|
|
|
10285 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
10286 |
} catch (org.apache.thrift.TException te) {
|
|
|
10287 |
throw new java.io.IOException(te);
|
|
|
10288 |
}
|
|
|
10289 |
}
|
|
|
10290 |
|
| 1730 |
ankur.sing |
10291 |
}
|
|
|
10292 |
|
| 4934 |
amit.gupta |
10293 |
public static class getEntityLogisticsEstimation_args implements org.apache.thrift.TBase<getEntityLogisticsEstimation_args, getEntityLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
10294 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_args");
|
|
|
10295 |
|
|
|
10296 |
private static final org.apache.thrift.protocol.TField CATALOG_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("catalogItemId", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
10297 |
private static final org.apache.thrift.protocol.TField DESTINATION_PIN_FIELD_DESC = new org.apache.thrift.protocol.TField("destination_pin", org.apache.thrift.protocol.TType.STRING, (short)2);
|
|
|
10298 |
private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)3);
|
|
|
10299 |
|
|
|
10300 |
private long catalogItemId; // required
|
|
|
10301 |
private String destination_pin; // required
|
|
|
10302 |
private DeliveryType type; // required
|
|
|
10303 |
|
|
|
10304 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
10305 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
10306 |
CATALOG_ITEM_ID((short)1, "catalogItemId"),
|
|
|
10307 |
DESTINATION_PIN((short)2, "destination_pin"),
|
|
|
10308 |
/**
|
|
|
10309 |
*
|
|
|
10310 |
* @see DeliveryType
|
|
|
10311 |
*/
|
|
|
10312 |
TYPE((short)3, "type");
|
|
|
10313 |
|
|
|
10314 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
10315 |
|
|
|
10316 |
static {
|
|
|
10317 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
10318 |
byName.put(field.getFieldName(), field);
|
|
|
10319 |
}
|
|
|
10320 |
}
|
|
|
10321 |
|
|
|
10322 |
/**
|
|
|
10323 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
10324 |
*/
|
|
|
10325 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
10326 |
switch(fieldId) {
|
|
|
10327 |
case 1: // CATALOG_ITEM_ID
|
|
|
10328 |
return CATALOG_ITEM_ID;
|
|
|
10329 |
case 2: // DESTINATION_PIN
|
|
|
10330 |
return DESTINATION_PIN;
|
|
|
10331 |
case 3: // TYPE
|
|
|
10332 |
return TYPE;
|
|
|
10333 |
default:
|
|
|
10334 |
return null;
|
|
|
10335 |
}
|
|
|
10336 |
}
|
|
|
10337 |
|
|
|
10338 |
/**
|
|
|
10339 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
10340 |
* if it is not found.
|
|
|
10341 |
*/
|
|
|
10342 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
10343 |
_Fields fields = findByThriftId(fieldId);
|
|
|
10344 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
10345 |
return fields;
|
|
|
10346 |
}
|
|
|
10347 |
|
|
|
10348 |
/**
|
|
|
10349 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
10350 |
*/
|
|
|
10351 |
public static _Fields findByName(String name) {
|
|
|
10352 |
return byName.get(name);
|
|
|
10353 |
}
|
|
|
10354 |
|
|
|
10355 |
private final short _thriftId;
|
|
|
10356 |
private final String _fieldName;
|
|
|
10357 |
|
|
|
10358 |
_Fields(short thriftId, String fieldName) {
|
|
|
10359 |
_thriftId = thriftId;
|
|
|
10360 |
_fieldName = fieldName;
|
|
|
10361 |
}
|
|
|
10362 |
|
|
|
10363 |
public short getThriftFieldId() {
|
|
|
10364 |
return _thriftId;
|
|
|
10365 |
}
|
|
|
10366 |
|
|
|
10367 |
public String getFieldName() {
|
|
|
10368 |
return _fieldName;
|
|
|
10369 |
}
|
|
|
10370 |
}
|
|
|
10371 |
|
|
|
10372 |
// isset id assignments
|
|
|
10373 |
private static final int __CATALOGITEMID_ISSET_ID = 0;
|
|
|
10374 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
10375 |
|
|
|
10376 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
10377 |
static {
|
|
|
10378 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
10379 |
tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalogItemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
10380 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
10381 |
tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
10382 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
10383 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
10384 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
|
|
|
10385 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
10386 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_args.class, metaDataMap);
|
|
|
10387 |
}
|
|
|
10388 |
|
|
|
10389 |
public getEntityLogisticsEstimation_args() {
|
|
|
10390 |
}
|
|
|
10391 |
|
|
|
10392 |
public getEntityLogisticsEstimation_args(
|
|
|
10393 |
long catalogItemId,
|
|
|
10394 |
String destination_pin,
|
|
|
10395 |
DeliveryType type)
|
|
|
10396 |
{
|
|
|
10397 |
this();
|
|
|
10398 |
this.catalogItemId = catalogItemId;
|
|
|
10399 |
setCatalogItemIdIsSet(true);
|
|
|
10400 |
this.destination_pin = destination_pin;
|
|
|
10401 |
this.type = type;
|
|
|
10402 |
}
|
|
|
10403 |
|
|
|
10404 |
/**
|
|
|
10405 |
* Performs a deep copy on <i>other</i>.
|
|
|
10406 |
*/
|
|
|
10407 |
public getEntityLogisticsEstimation_args(getEntityLogisticsEstimation_args other) {
|
|
|
10408 |
__isset_bit_vector.clear();
|
|
|
10409 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
10410 |
this.catalogItemId = other.catalogItemId;
|
|
|
10411 |
if (other.isSetDestination_pin()) {
|
|
|
10412 |
this.destination_pin = other.destination_pin;
|
|
|
10413 |
}
|
|
|
10414 |
if (other.isSetType()) {
|
|
|
10415 |
this.type = other.type;
|
|
|
10416 |
}
|
|
|
10417 |
}
|
|
|
10418 |
|
|
|
10419 |
public getEntityLogisticsEstimation_args deepCopy() {
|
|
|
10420 |
return new getEntityLogisticsEstimation_args(this);
|
|
|
10421 |
}
|
|
|
10422 |
|
|
|
10423 |
@Override
|
|
|
10424 |
public void clear() {
|
|
|
10425 |
setCatalogItemIdIsSet(false);
|
|
|
10426 |
this.catalogItemId = 0;
|
|
|
10427 |
this.destination_pin = null;
|
|
|
10428 |
this.type = null;
|
|
|
10429 |
}
|
|
|
10430 |
|
|
|
10431 |
public long getCatalogItemId() {
|
|
|
10432 |
return this.catalogItemId;
|
|
|
10433 |
}
|
|
|
10434 |
|
|
|
10435 |
public void setCatalogItemId(long catalogItemId) {
|
|
|
10436 |
this.catalogItemId = catalogItemId;
|
|
|
10437 |
setCatalogItemIdIsSet(true);
|
|
|
10438 |
}
|
|
|
10439 |
|
|
|
10440 |
public void unsetCatalogItemId() {
|
|
|
10441 |
__isset_bit_vector.clear(__CATALOGITEMID_ISSET_ID);
|
|
|
10442 |
}
|
|
|
10443 |
|
|
|
10444 |
/** Returns true if field catalogItemId is set (has been assigned a value) and false otherwise */
|
|
|
10445 |
public boolean isSetCatalogItemId() {
|
|
|
10446 |
return __isset_bit_vector.get(__CATALOGITEMID_ISSET_ID);
|
|
|
10447 |
}
|
|
|
10448 |
|
|
|
10449 |
public void setCatalogItemIdIsSet(boolean value) {
|
|
|
10450 |
__isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);
|
|
|
10451 |
}
|
|
|
10452 |
|
|
|
10453 |
public String getDestination_pin() {
|
|
|
10454 |
return this.destination_pin;
|
|
|
10455 |
}
|
|
|
10456 |
|
|
|
10457 |
public void setDestination_pin(String destination_pin) {
|
|
|
10458 |
this.destination_pin = destination_pin;
|
|
|
10459 |
}
|
|
|
10460 |
|
|
|
10461 |
public void unsetDestination_pin() {
|
|
|
10462 |
this.destination_pin = null;
|
|
|
10463 |
}
|
|
|
10464 |
|
|
|
10465 |
/** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
|
|
|
10466 |
public boolean isSetDestination_pin() {
|
|
|
10467 |
return this.destination_pin != null;
|
|
|
10468 |
}
|
|
|
10469 |
|
|
|
10470 |
public void setDestination_pinIsSet(boolean value) {
|
|
|
10471 |
if (!value) {
|
|
|
10472 |
this.destination_pin = null;
|
|
|
10473 |
}
|
|
|
10474 |
}
|
|
|
10475 |
|
|
|
10476 |
/**
|
|
|
10477 |
*
|
|
|
10478 |
* @see DeliveryType
|
|
|
10479 |
*/
|
|
|
10480 |
public DeliveryType getType() {
|
|
|
10481 |
return this.type;
|
|
|
10482 |
}
|
|
|
10483 |
|
|
|
10484 |
/**
|
|
|
10485 |
*
|
|
|
10486 |
* @see DeliveryType
|
|
|
10487 |
*/
|
|
|
10488 |
public void setType(DeliveryType type) {
|
|
|
10489 |
this.type = type;
|
|
|
10490 |
}
|
|
|
10491 |
|
|
|
10492 |
public void unsetType() {
|
|
|
10493 |
this.type = null;
|
|
|
10494 |
}
|
|
|
10495 |
|
|
|
10496 |
/** Returns true if field type is set (has been assigned a value) and false otherwise */
|
|
|
10497 |
public boolean isSetType() {
|
|
|
10498 |
return this.type != null;
|
|
|
10499 |
}
|
|
|
10500 |
|
|
|
10501 |
public void setTypeIsSet(boolean value) {
|
|
|
10502 |
if (!value) {
|
|
|
10503 |
this.type = null;
|
|
|
10504 |
}
|
|
|
10505 |
}
|
|
|
10506 |
|
|
|
10507 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
10508 |
switch (field) {
|
|
|
10509 |
case CATALOG_ITEM_ID:
|
|
|
10510 |
if (value == null) {
|
|
|
10511 |
unsetCatalogItemId();
|
|
|
10512 |
} else {
|
|
|
10513 |
setCatalogItemId((Long)value);
|
|
|
10514 |
}
|
|
|
10515 |
break;
|
|
|
10516 |
|
|
|
10517 |
case DESTINATION_PIN:
|
|
|
10518 |
if (value == null) {
|
|
|
10519 |
unsetDestination_pin();
|
|
|
10520 |
} else {
|
|
|
10521 |
setDestination_pin((String)value);
|
|
|
10522 |
}
|
|
|
10523 |
break;
|
|
|
10524 |
|
|
|
10525 |
case TYPE:
|
|
|
10526 |
if (value == null) {
|
|
|
10527 |
unsetType();
|
|
|
10528 |
} else {
|
|
|
10529 |
setType((DeliveryType)value);
|
|
|
10530 |
}
|
|
|
10531 |
break;
|
|
|
10532 |
|
|
|
10533 |
}
|
|
|
10534 |
}
|
|
|
10535 |
|
|
|
10536 |
public Object getFieldValue(_Fields field) {
|
|
|
10537 |
switch (field) {
|
|
|
10538 |
case CATALOG_ITEM_ID:
|
|
|
10539 |
return Long.valueOf(getCatalogItemId());
|
|
|
10540 |
|
|
|
10541 |
case DESTINATION_PIN:
|
|
|
10542 |
return getDestination_pin();
|
|
|
10543 |
|
|
|
10544 |
case TYPE:
|
|
|
10545 |
return getType();
|
|
|
10546 |
|
|
|
10547 |
}
|
|
|
10548 |
throw new IllegalStateException();
|
|
|
10549 |
}
|
|
|
10550 |
|
|
|
10551 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
10552 |
public boolean isSet(_Fields field) {
|
|
|
10553 |
if (field == null) {
|
|
|
10554 |
throw new IllegalArgumentException();
|
|
|
10555 |
}
|
|
|
10556 |
|
|
|
10557 |
switch (field) {
|
|
|
10558 |
case CATALOG_ITEM_ID:
|
|
|
10559 |
return isSetCatalogItemId();
|
|
|
10560 |
case DESTINATION_PIN:
|
|
|
10561 |
return isSetDestination_pin();
|
|
|
10562 |
case TYPE:
|
|
|
10563 |
return isSetType();
|
|
|
10564 |
}
|
|
|
10565 |
throw new IllegalStateException();
|
|
|
10566 |
}
|
|
|
10567 |
|
|
|
10568 |
@Override
|
|
|
10569 |
public boolean equals(Object that) {
|
|
|
10570 |
if (that == null)
|
|
|
10571 |
return false;
|
|
|
10572 |
if (that instanceof getEntityLogisticsEstimation_args)
|
|
|
10573 |
return this.equals((getEntityLogisticsEstimation_args)that);
|
|
|
10574 |
return false;
|
|
|
10575 |
}
|
|
|
10576 |
|
|
|
10577 |
public boolean equals(getEntityLogisticsEstimation_args that) {
|
|
|
10578 |
if (that == null)
|
|
|
10579 |
return false;
|
|
|
10580 |
|
|
|
10581 |
boolean this_present_catalogItemId = true;
|
|
|
10582 |
boolean that_present_catalogItemId = true;
|
|
|
10583 |
if (this_present_catalogItemId || that_present_catalogItemId) {
|
|
|
10584 |
if (!(this_present_catalogItemId && that_present_catalogItemId))
|
|
|
10585 |
return false;
|
|
|
10586 |
if (this.catalogItemId != that.catalogItemId)
|
|
|
10587 |
return false;
|
|
|
10588 |
}
|
|
|
10589 |
|
|
|
10590 |
boolean this_present_destination_pin = true && this.isSetDestination_pin();
|
|
|
10591 |
boolean that_present_destination_pin = true && that.isSetDestination_pin();
|
|
|
10592 |
if (this_present_destination_pin || that_present_destination_pin) {
|
|
|
10593 |
if (!(this_present_destination_pin && that_present_destination_pin))
|
|
|
10594 |
return false;
|
|
|
10595 |
if (!this.destination_pin.equals(that.destination_pin))
|
|
|
10596 |
return false;
|
|
|
10597 |
}
|
|
|
10598 |
|
|
|
10599 |
boolean this_present_type = true && this.isSetType();
|
|
|
10600 |
boolean that_present_type = true && that.isSetType();
|
|
|
10601 |
if (this_present_type || that_present_type) {
|
|
|
10602 |
if (!(this_present_type && that_present_type))
|
|
|
10603 |
return false;
|
|
|
10604 |
if (!this.type.equals(that.type))
|
|
|
10605 |
return false;
|
|
|
10606 |
}
|
|
|
10607 |
|
|
|
10608 |
return true;
|
|
|
10609 |
}
|
|
|
10610 |
|
|
|
10611 |
@Override
|
|
|
10612 |
public int hashCode() {
|
|
|
10613 |
return 0;
|
|
|
10614 |
}
|
|
|
10615 |
|
|
|
10616 |
public int compareTo(getEntityLogisticsEstimation_args other) {
|
|
|
10617 |
if (!getClass().equals(other.getClass())) {
|
|
|
10618 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
10619 |
}
|
|
|
10620 |
|
|
|
10621 |
int lastComparison = 0;
|
|
|
10622 |
getEntityLogisticsEstimation_args typedOther = (getEntityLogisticsEstimation_args)other;
|
|
|
10623 |
|
|
|
10624 |
lastComparison = Boolean.valueOf(isSetCatalogItemId()).compareTo(typedOther.isSetCatalogItemId());
|
|
|
10625 |
if (lastComparison != 0) {
|
|
|
10626 |
return lastComparison;
|
|
|
10627 |
}
|
|
|
10628 |
if (isSetCatalogItemId()) {
|
|
|
10629 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogItemId, typedOther.catalogItemId);
|
|
|
10630 |
if (lastComparison != 0) {
|
|
|
10631 |
return lastComparison;
|
|
|
10632 |
}
|
|
|
10633 |
}
|
|
|
10634 |
lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
|
|
|
10635 |
if (lastComparison != 0) {
|
|
|
10636 |
return lastComparison;
|
|
|
10637 |
}
|
|
|
10638 |
if (isSetDestination_pin()) {
|
|
|
10639 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
|
|
|
10640 |
if (lastComparison != 0) {
|
|
|
10641 |
return lastComparison;
|
|
|
10642 |
}
|
|
|
10643 |
}
|
|
|
10644 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
|
|
10645 |
if (lastComparison != 0) {
|
|
|
10646 |
return lastComparison;
|
|
|
10647 |
}
|
|
|
10648 |
if (isSetType()) {
|
|
|
10649 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
|
|
10650 |
if (lastComparison != 0) {
|
|
|
10651 |
return lastComparison;
|
|
|
10652 |
}
|
|
|
10653 |
}
|
|
|
10654 |
return 0;
|
|
|
10655 |
}
|
|
|
10656 |
|
|
|
10657 |
public _Fields fieldForId(int fieldId) {
|
|
|
10658 |
return _Fields.findByThriftId(fieldId);
|
|
|
10659 |
}
|
|
|
10660 |
|
|
|
10661 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
10662 |
org.apache.thrift.protocol.TField field;
|
|
|
10663 |
iprot.readStructBegin();
|
|
|
10664 |
while (true)
|
|
|
10665 |
{
|
|
|
10666 |
field = iprot.readFieldBegin();
|
|
|
10667 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
10668 |
break;
|
|
|
10669 |
}
|
|
|
10670 |
switch (field.id) {
|
|
|
10671 |
case 1: // CATALOG_ITEM_ID
|
|
|
10672 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
10673 |
this.catalogItemId = iprot.readI64();
|
|
|
10674 |
setCatalogItemIdIsSet(true);
|
|
|
10675 |
} else {
|
|
|
10676 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10677 |
}
|
|
|
10678 |
break;
|
|
|
10679 |
case 2: // DESTINATION_PIN
|
|
|
10680 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
10681 |
this.destination_pin = iprot.readString();
|
|
|
10682 |
} else {
|
|
|
10683 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10684 |
}
|
|
|
10685 |
break;
|
|
|
10686 |
case 3: // TYPE
|
|
|
10687 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
10688 |
this.type = DeliveryType.findByValue(iprot.readI32());
|
|
|
10689 |
} else {
|
|
|
10690 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10691 |
}
|
|
|
10692 |
break;
|
|
|
10693 |
default:
|
|
|
10694 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10695 |
}
|
|
|
10696 |
iprot.readFieldEnd();
|
|
|
10697 |
}
|
|
|
10698 |
iprot.readStructEnd();
|
|
|
10699 |
validate();
|
|
|
10700 |
}
|
|
|
10701 |
|
|
|
10702 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
10703 |
validate();
|
|
|
10704 |
|
|
|
10705 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
10706 |
oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
|
|
|
10707 |
oprot.writeI64(this.catalogItemId);
|
|
|
10708 |
oprot.writeFieldEnd();
|
|
|
10709 |
if (this.destination_pin != null) {
|
|
|
10710 |
oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
|
|
|
10711 |
oprot.writeString(this.destination_pin);
|
|
|
10712 |
oprot.writeFieldEnd();
|
|
|
10713 |
}
|
|
|
10714 |
if (this.type != null) {
|
|
|
10715 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
|
|
10716 |
oprot.writeI32(this.type.getValue());
|
|
|
10717 |
oprot.writeFieldEnd();
|
|
|
10718 |
}
|
|
|
10719 |
oprot.writeFieldStop();
|
|
|
10720 |
oprot.writeStructEnd();
|
|
|
10721 |
}
|
|
|
10722 |
|
|
|
10723 |
@Override
|
|
|
10724 |
public String toString() {
|
|
|
10725 |
StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_args(");
|
|
|
10726 |
boolean first = true;
|
|
|
10727 |
|
|
|
10728 |
sb.append("catalogItemId:");
|
|
|
10729 |
sb.append(this.catalogItemId);
|
|
|
10730 |
first = false;
|
|
|
10731 |
if (!first) sb.append(", ");
|
|
|
10732 |
sb.append("destination_pin:");
|
|
|
10733 |
if (this.destination_pin == null) {
|
|
|
10734 |
sb.append("null");
|
|
|
10735 |
} else {
|
|
|
10736 |
sb.append(this.destination_pin);
|
|
|
10737 |
}
|
|
|
10738 |
first = false;
|
|
|
10739 |
if (!first) sb.append(", ");
|
|
|
10740 |
sb.append("type:");
|
|
|
10741 |
if (this.type == null) {
|
|
|
10742 |
sb.append("null");
|
|
|
10743 |
} else {
|
|
|
10744 |
sb.append(this.type);
|
|
|
10745 |
}
|
|
|
10746 |
first = false;
|
|
|
10747 |
sb.append(")");
|
|
|
10748 |
return sb.toString();
|
|
|
10749 |
}
|
|
|
10750 |
|
|
|
10751 |
public void validate() throws org.apache.thrift.TException {
|
|
|
10752 |
// check for required fields
|
|
|
10753 |
}
|
|
|
10754 |
|
|
|
10755 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
10756 |
try {
|
|
|
10757 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
10758 |
} catch (org.apache.thrift.TException te) {
|
|
|
10759 |
throw new java.io.IOException(te);
|
|
|
10760 |
}
|
|
|
10761 |
}
|
|
|
10762 |
|
|
|
10763 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
10764 |
try {
|
|
|
10765 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
10766 |
} catch (org.apache.thrift.TException te) {
|
|
|
10767 |
throw new java.io.IOException(te);
|
|
|
10768 |
}
|
|
|
10769 |
}
|
|
|
10770 |
|
|
|
10771 |
}
|
|
|
10772 |
|
|
|
10773 |
public static class getEntityLogisticsEstimation_result implements org.apache.thrift.TBase<getEntityLogisticsEstimation_result, getEntityLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
10774 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_result");
|
|
|
10775 |
|
|
|
10776 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
|
|
|
10777 |
private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
|
|
10778 |
|
| 9840 |
amit.gupta |
10779 |
private List<ItemText> success; // required
|
| 4934 |
amit.gupta |
10780 |
private LogisticsServiceException se; // required
|
|
|
10781 |
|
|
|
10782 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
10783 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
10784 |
SUCCESS((short)0, "success"),
|
|
|
10785 |
SE((short)1, "se");
|
|
|
10786 |
|
|
|
10787 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
10788 |
|
|
|
10789 |
static {
|
|
|
10790 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
10791 |
byName.put(field.getFieldName(), field);
|
|
|
10792 |
}
|
|
|
10793 |
}
|
|
|
10794 |
|
|
|
10795 |
/**
|
|
|
10796 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
10797 |
*/
|
|
|
10798 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
10799 |
switch(fieldId) {
|
|
|
10800 |
case 0: // SUCCESS
|
|
|
10801 |
return SUCCESS;
|
|
|
10802 |
case 1: // SE
|
|
|
10803 |
return SE;
|
|
|
10804 |
default:
|
|
|
10805 |
return null;
|
|
|
10806 |
}
|
|
|
10807 |
}
|
|
|
10808 |
|
|
|
10809 |
/**
|
|
|
10810 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
10811 |
* if it is not found.
|
|
|
10812 |
*/
|
|
|
10813 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
10814 |
_Fields fields = findByThriftId(fieldId);
|
|
|
10815 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
10816 |
return fields;
|
|
|
10817 |
}
|
|
|
10818 |
|
|
|
10819 |
/**
|
|
|
10820 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
10821 |
*/
|
|
|
10822 |
public static _Fields findByName(String name) {
|
|
|
10823 |
return byName.get(name);
|
|
|
10824 |
}
|
|
|
10825 |
|
|
|
10826 |
private final short _thriftId;
|
|
|
10827 |
private final String _fieldName;
|
|
|
10828 |
|
|
|
10829 |
_Fields(short thriftId, String fieldName) {
|
|
|
10830 |
_thriftId = thriftId;
|
|
|
10831 |
_fieldName = fieldName;
|
|
|
10832 |
}
|
|
|
10833 |
|
|
|
10834 |
public short getThriftFieldId() {
|
|
|
10835 |
return _thriftId;
|
|
|
10836 |
}
|
|
|
10837 |
|
|
|
10838 |
public String getFieldName() {
|
|
|
10839 |
return _fieldName;
|
|
|
10840 |
}
|
|
|
10841 |
}
|
|
|
10842 |
|
|
|
10843 |
// isset id assignments
|
|
|
10844 |
|
|
|
10845 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
10846 |
static {
|
|
|
10847 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
10848 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
10849 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
| 9840 |
amit.gupta |
10850 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ItemText.class))));
|
| 4934 |
amit.gupta |
10851 |
tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
10852 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
10853 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
10854 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_result.class, metaDataMap);
|
|
|
10855 |
}
|
|
|
10856 |
|
|
|
10857 |
public getEntityLogisticsEstimation_result() {
|
|
|
10858 |
}
|
|
|
10859 |
|
|
|
10860 |
public getEntityLogisticsEstimation_result(
|
| 9840 |
amit.gupta |
10861 |
List<ItemText> success,
|
| 4934 |
amit.gupta |
10862 |
LogisticsServiceException se)
|
|
|
10863 |
{
|
|
|
10864 |
this();
|
|
|
10865 |
this.success = success;
|
|
|
10866 |
this.se = se;
|
|
|
10867 |
}
|
|
|
10868 |
|
|
|
10869 |
/**
|
|
|
10870 |
* Performs a deep copy on <i>other</i>.
|
|
|
10871 |
*/
|
|
|
10872 |
public getEntityLogisticsEstimation_result(getEntityLogisticsEstimation_result other) {
|
|
|
10873 |
if (other.isSetSuccess()) {
|
| 9840 |
amit.gupta |
10874 |
List<ItemText> __this__success = new ArrayList<ItemText>();
|
|
|
10875 |
for (ItemText other_element : other.success) {
|
|
|
10876 |
__this__success.add(new ItemText(other_element));
|
| 4934 |
amit.gupta |
10877 |
}
|
|
|
10878 |
this.success = __this__success;
|
|
|
10879 |
}
|
|
|
10880 |
if (other.isSetSe()) {
|
|
|
10881 |
this.se = new LogisticsServiceException(other.se);
|
|
|
10882 |
}
|
|
|
10883 |
}
|
|
|
10884 |
|
|
|
10885 |
public getEntityLogisticsEstimation_result deepCopy() {
|
|
|
10886 |
return new getEntityLogisticsEstimation_result(this);
|
|
|
10887 |
}
|
|
|
10888 |
|
|
|
10889 |
@Override
|
|
|
10890 |
public void clear() {
|
|
|
10891 |
this.success = null;
|
|
|
10892 |
this.se = null;
|
|
|
10893 |
}
|
|
|
10894 |
|
|
|
10895 |
public int getSuccessSize() {
|
|
|
10896 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
10897 |
}
|
|
|
10898 |
|
| 9840 |
amit.gupta |
10899 |
public java.util.Iterator<ItemText> getSuccessIterator() {
|
| 4934 |
amit.gupta |
10900 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
10901 |
}
|
|
|
10902 |
|
| 9840 |
amit.gupta |
10903 |
public void addToSuccess(ItemText elem) {
|
| 4934 |
amit.gupta |
10904 |
if (this.success == null) {
|
| 9840 |
amit.gupta |
10905 |
this.success = new ArrayList<ItemText>();
|
| 4934 |
amit.gupta |
10906 |
}
|
|
|
10907 |
this.success.add(elem);
|
|
|
10908 |
}
|
|
|
10909 |
|
| 9840 |
amit.gupta |
10910 |
public List<ItemText> getSuccess() {
|
| 4934 |
amit.gupta |
10911 |
return this.success;
|
|
|
10912 |
}
|
|
|
10913 |
|
| 9840 |
amit.gupta |
10914 |
public void setSuccess(List<ItemText> success) {
|
| 4934 |
amit.gupta |
10915 |
this.success = success;
|
|
|
10916 |
}
|
|
|
10917 |
|
|
|
10918 |
public void unsetSuccess() {
|
|
|
10919 |
this.success = null;
|
|
|
10920 |
}
|
|
|
10921 |
|
|
|
10922 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
10923 |
public boolean isSetSuccess() {
|
|
|
10924 |
return this.success != null;
|
|
|
10925 |
}
|
|
|
10926 |
|
|
|
10927 |
public void setSuccessIsSet(boolean value) {
|
|
|
10928 |
if (!value) {
|
|
|
10929 |
this.success = null;
|
|
|
10930 |
}
|
|
|
10931 |
}
|
|
|
10932 |
|
|
|
10933 |
public LogisticsServiceException getSe() {
|
|
|
10934 |
return this.se;
|
|
|
10935 |
}
|
|
|
10936 |
|
|
|
10937 |
public void setSe(LogisticsServiceException se) {
|
|
|
10938 |
this.se = se;
|
|
|
10939 |
}
|
|
|
10940 |
|
|
|
10941 |
public void unsetSe() {
|
|
|
10942 |
this.se = null;
|
|
|
10943 |
}
|
|
|
10944 |
|
|
|
10945 |
/** Returns true if field se is set (has been assigned a value) and false otherwise */
|
|
|
10946 |
public boolean isSetSe() {
|
|
|
10947 |
return this.se != null;
|
|
|
10948 |
}
|
|
|
10949 |
|
|
|
10950 |
public void setSeIsSet(boolean value) {
|
|
|
10951 |
if (!value) {
|
|
|
10952 |
this.se = null;
|
|
|
10953 |
}
|
|
|
10954 |
}
|
|
|
10955 |
|
|
|
10956 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
10957 |
switch (field) {
|
|
|
10958 |
case SUCCESS:
|
|
|
10959 |
if (value == null) {
|
|
|
10960 |
unsetSuccess();
|
|
|
10961 |
} else {
|
| 9840 |
amit.gupta |
10962 |
setSuccess((List<ItemText>)value);
|
| 4934 |
amit.gupta |
10963 |
}
|
|
|
10964 |
break;
|
|
|
10965 |
|
|
|
10966 |
case SE:
|
|
|
10967 |
if (value == null) {
|
|
|
10968 |
unsetSe();
|
|
|
10969 |
} else {
|
|
|
10970 |
setSe((LogisticsServiceException)value);
|
|
|
10971 |
}
|
|
|
10972 |
break;
|
|
|
10973 |
|
|
|
10974 |
}
|
|
|
10975 |
}
|
|
|
10976 |
|
|
|
10977 |
public Object getFieldValue(_Fields field) {
|
|
|
10978 |
switch (field) {
|
|
|
10979 |
case SUCCESS:
|
|
|
10980 |
return getSuccess();
|
|
|
10981 |
|
|
|
10982 |
case SE:
|
|
|
10983 |
return getSe();
|
|
|
10984 |
|
|
|
10985 |
}
|
|
|
10986 |
throw new IllegalStateException();
|
|
|
10987 |
}
|
|
|
10988 |
|
|
|
10989 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
10990 |
public boolean isSet(_Fields field) {
|
|
|
10991 |
if (field == null) {
|
|
|
10992 |
throw new IllegalArgumentException();
|
|
|
10993 |
}
|
|
|
10994 |
|
|
|
10995 |
switch (field) {
|
|
|
10996 |
case SUCCESS:
|
|
|
10997 |
return isSetSuccess();
|
|
|
10998 |
case SE:
|
|
|
10999 |
return isSetSe();
|
|
|
11000 |
}
|
|
|
11001 |
throw new IllegalStateException();
|
|
|
11002 |
}
|
|
|
11003 |
|
|
|
11004 |
@Override
|
|
|
11005 |
public boolean equals(Object that) {
|
|
|
11006 |
if (that == null)
|
|
|
11007 |
return false;
|
|
|
11008 |
if (that instanceof getEntityLogisticsEstimation_result)
|
|
|
11009 |
return this.equals((getEntityLogisticsEstimation_result)that);
|
|
|
11010 |
return false;
|
|
|
11011 |
}
|
|
|
11012 |
|
|
|
11013 |
public boolean equals(getEntityLogisticsEstimation_result that) {
|
|
|
11014 |
if (that == null)
|
|
|
11015 |
return false;
|
|
|
11016 |
|
|
|
11017 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
11018 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
11019 |
if (this_present_success || that_present_success) {
|
|
|
11020 |
if (!(this_present_success && that_present_success))
|
|
|
11021 |
return false;
|
|
|
11022 |
if (!this.success.equals(that.success))
|
|
|
11023 |
return false;
|
|
|
11024 |
}
|
|
|
11025 |
|
|
|
11026 |
boolean this_present_se = true && this.isSetSe();
|
|
|
11027 |
boolean that_present_se = true && that.isSetSe();
|
|
|
11028 |
if (this_present_se || that_present_se) {
|
|
|
11029 |
if (!(this_present_se && that_present_se))
|
|
|
11030 |
return false;
|
|
|
11031 |
if (!this.se.equals(that.se))
|
|
|
11032 |
return false;
|
|
|
11033 |
}
|
|
|
11034 |
|
|
|
11035 |
return true;
|
|
|
11036 |
}
|
|
|
11037 |
|
|
|
11038 |
@Override
|
|
|
11039 |
public int hashCode() {
|
|
|
11040 |
return 0;
|
|
|
11041 |
}
|
|
|
11042 |
|
|
|
11043 |
public int compareTo(getEntityLogisticsEstimation_result other) {
|
|
|
11044 |
if (!getClass().equals(other.getClass())) {
|
|
|
11045 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
11046 |
}
|
|
|
11047 |
|
|
|
11048 |
int lastComparison = 0;
|
|
|
11049 |
getEntityLogisticsEstimation_result typedOther = (getEntityLogisticsEstimation_result)other;
|
|
|
11050 |
|
|
|
11051 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
11052 |
if (lastComparison != 0) {
|
|
|
11053 |
return lastComparison;
|
|
|
11054 |
}
|
|
|
11055 |
if (isSetSuccess()) {
|
|
|
11056 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
11057 |
if (lastComparison != 0) {
|
|
|
11058 |
return lastComparison;
|
|
|
11059 |
}
|
|
|
11060 |
}
|
|
|
11061 |
lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
|
|
|
11062 |
if (lastComparison != 0) {
|
|
|
11063 |
return lastComparison;
|
|
|
11064 |
}
|
|
|
11065 |
if (isSetSe()) {
|
|
|
11066 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
|
|
|
11067 |
if (lastComparison != 0) {
|
|
|
11068 |
return lastComparison;
|
|
|
11069 |
}
|
|
|
11070 |
}
|
|
|
11071 |
return 0;
|
|
|
11072 |
}
|
|
|
11073 |
|
|
|
11074 |
public _Fields fieldForId(int fieldId) {
|
|
|
11075 |
return _Fields.findByThriftId(fieldId);
|
|
|
11076 |
}
|
|
|
11077 |
|
|
|
11078 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
11079 |
org.apache.thrift.protocol.TField field;
|
|
|
11080 |
iprot.readStructBegin();
|
|
|
11081 |
while (true)
|
|
|
11082 |
{
|
|
|
11083 |
field = iprot.readFieldBegin();
|
|
|
11084 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
11085 |
break;
|
|
|
11086 |
}
|
|
|
11087 |
switch (field.id) {
|
|
|
11088 |
case 0: // SUCCESS
|
|
|
11089 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
11090 |
{
|
| 7792 |
anupam.sin |
11091 |
org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
|
| 9840 |
amit.gupta |
11092 |
this.success = new ArrayList<ItemText>(_list16.size);
|
| 7792 |
anupam.sin |
11093 |
for (int _i17 = 0; _i17 < _list16.size; ++_i17)
|
| 4934 |
amit.gupta |
11094 |
{
|
| 9840 |
amit.gupta |
11095 |
ItemText _elem18; // required
|
|
|
11096 |
_elem18 = new ItemText();
|
|
|
11097 |
_elem18.read(iprot);
|
| 7792 |
anupam.sin |
11098 |
this.success.add(_elem18);
|
| 4934 |
amit.gupta |
11099 |
}
|
|
|
11100 |
iprot.readListEnd();
|
|
|
11101 |
}
|
|
|
11102 |
} else {
|
|
|
11103 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11104 |
}
|
|
|
11105 |
break;
|
|
|
11106 |
case 1: // SE
|
|
|
11107 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
11108 |
this.se = new LogisticsServiceException();
|
|
|
11109 |
this.se.read(iprot);
|
|
|
11110 |
} else {
|
|
|
11111 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11112 |
}
|
|
|
11113 |
break;
|
|
|
11114 |
default:
|
|
|
11115 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11116 |
}
|
|
|
11117 |
iprot.readFieldEnd();
|
|
|
11118 |
}
|
|
|
11119 |
iprot.readStructEnd();
|
|
|
11120 |
validate();
|
|
|
11121 |
}
|
|
|
11122 |
|
|
|
11123 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
11124 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
11125 |
|
|
|
11126 |
if (this.isSetSuccess()) {
|
|
|
11127 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
11128 |
{
|
| 9840 |
amit.gupta |
11129 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
|
|
11130 |
for (ItemText _iter19 : this.success)
|
| 4934 |
amit.gupta |
11131 |
{
|
| 9840 |
amit.gupta |
11132 |
_iter19.write(oprot);
|
| 4934 |
amit.gupta |
11133 |
}
|
|
|
11134 |
oprot.writeListEnd();
|
|
|
11135 |
}
|
|
|
11136 |
oprot.writeFieldEnd();
|
|
|
11137 |
} else if (this.isSetSe()) {
|
|
|
11138 |
oprot.writeFieldBegin(SE_FIELD_DESC);
|
|
|
11139 |
this.se.write(oprot);
|
|
|
11140 |
oprot.writeFieldEnd();
|
|
|
11141 |
}
|
|
|
11142 |
oprot.writeFieldStop();
|
|
|
11143 |
oprot.writeStructEnd();
|
|
|
11144 |
}
|
|
|
11145 |
|
|
|
11146 |
@Override
|
|
|
11147 |
public String toString() {
|
|
|
11148 |
StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_result(");
|
|
|
11149 |
boolean first = true;
|
|
|
11150 |
|
|
|
11151 |
sb.append("success:");
|
|
|
11152 |
if (this.success == null) {
|
|
|
11153 |
sb.append("null");
|
|
|
11154 |
} else {
|
|
|
11155 |
sb.append(this.success);
|
|
|
11156 |
}
|
|
|
11157 |
first = false;
|
|
|
11158 |
if (!first) sb.append(", ");
|
|
|
11159 |
sb.append("se:");
|
|
|
11160 |
if (this.se == null) {
|
|
|
11161 |
sb.append("null");
|
|
|
11162 |
} else {
|
|
|
11163 |
sb.append(this.se);
|
|
|
11164 |
}
|
|
|
11165 |
first = false;
|
|
|
11166 |
sb.append(")");
|
|
|
11167 |
return sb.toString();
|
|
|
11168 |
}
|
|
|
11169 |
|
|
|
11170 |
public void validate() throws org.apache.thrift.TException {
|
|
|
11171 |
// check for required fields
|
|
|
11172 |
}
|
|
|
11173 |
|
|
|
11174 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
11175 |
try {
|
|
|
11176 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
11177 |
} catch (org.apache.thrift.TException te) {
|
|
|
11178 |
throw new java.io.IOException(te);
|
|
|
11179 |
}
|
|
|
11180 |
}
|
|
|
11181 |
|
|
|
11182 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
11183 |
try {
|
|
|
11184 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
11185 |
} catch (org.apache.thrift.TException te) {
|
|
|
11186 |
throw new java.io.IOException(te);
|
|
|
11187 |
}
|
|
|
11188 |
}
|
|
|
11189 |
|
|
|
11190 |
}
|
|
|
11191 |
|
| 5527 |
anupam.sin |
11192 |
public static class getProviderForPickupType_args implements org.apache.thrift.TBase<getProviderForPickupType_args, getProviderForPickupType_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
11193 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderForPickupType_args");
|
|
|
11194 |
|
|
|
11195 |
private static final org.apache.thrift.protocol.TField PICK_UP_FIELD_DESC = new org.apache.thrift.protocol.TField("pickUp", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
11196 |
|
|
|
11197 |
private long pickUp; // required
|
|
|
11198 |
|
|
|
11199 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
11200 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
11201 |
PICK_UP((short)1, "pickUp");
|
|
|
11202 |
|
|
|
11203 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
11204 |
|
|
|
11205 |
static {
|
|
|
11206 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
11207 |
byName.put(field.getFieldName(), field);
|
|
|
11208 |
}
|
|
|
11209 |
}
|
|
|
11210 |
|
|
|
11211 |
/**
|
|
|
11212 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
11213 |
*/
|
|
|
11214 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
11215 |
switch(fieldId) {
|
|
|
11216 |
case 1: // PICK_UP
|
|
|
11217 |
return PICK_UP;
|
|
|
11218 |
default:
|
|
|
11219 |
return null;
|
|
|
11220 |
}
|
|
|
11221 |
}
|
|
|
11222 |
|
|
|
11223 |
/**
|
|
|
11224 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
11225 |
* if it is not found.
|
|
|
11226 |
*/
|
|
|
11227 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
11228 |
_Fields fields = findByThriftId(fieldId);
|
|
|
11229 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
11230 |
return fields;
|
|
|
11231 |
}
|
|
|
11232 |
|
|
|
11233 |
/**
|
|
|
11234 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
11235 |
*/
|
|
|
11236 |
public static _Fields findByName(String name) {
|
|
|
11237 |
return byName.get(name);
|
|
|
11238 |
}
|
|
|
11239 |
|
|
|
11240 |
private final short _thriftId;
|
|
|
11241 |
private final String _fieldName;
|
|
|
11242 |
|
|
|
11243 |
_Fields(short thriftId, String fieldName) {
|
|
|
11244 |
_thriftId = thriftId;
|
|
|
11245 |
_fieldName = fieldName;
|
|
|
11246 |
}
|
|
|
11247 |
|
|
|
11248 |
public short getThriftFieldId() {
|
|
|
11249 |
return _thriftId;
|
|
|
11250 |
}
|
|
|
11251 |
|
|
|
11252 |
public String getFieldName() {
|
|
|
11253 |
return _fieldName;
|
|
|
11254 |
}
|
|
|
11255 |
}
|
|
|
11256 |
|
|
|
11257 |
// isset id assignments
|
|
|
11258 |
private static final int __PICKUP_ISSET_ID = 0;
|
|
|
11259 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
11260 |
|
|
|
11261 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
11262 |
static {
|
|
|
11263 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
11264 |
tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
11265 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
11266 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
11267 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderForPickupType_args.class, metaDataMap);
|
|
|
11268 |
}
|
|
|
11269 |
|
|
|
11270 |
public getProviderForPickupType_args() {
|
|
|
11271 |
}
|
|
|
11272 |
|
|
|
11273 |
public getProviderForPickupType_args(
|
|
|
11274 |
long pickUp)
|
|
|
11275 |
{
|
|
|
11276 |
this();
|
|
|
11277 |
this.pickUp = pickUp;
|
|
|
11278 |
setPickUpIsSet(true);
|
|
|
11279 |
}
|
|
|
11280 |
|
|
|
11281 |
/**
|
|
|
11282 |
* Performs a deep copy on <i>other</i>.
|
|
|
11283 |
*/
|
|
|
11284 |
public getProviderForPickupType_args(getProviderForPickupType_args other) {
|
|
|
11285 |
__isset_bit_vector.clear();
|
|
|
11286 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
11287 |
this.pickUp = other.pickUp;
|
|
|
11288 |
}
|
|
|
11289 |
|
|
|
11290 |
public getProviderForPickupType_args deepCopy() {
|
|
|
11291 |
return new getProviderForPickupType_args(this);
|
|
|
11292 |
}
|
|
|
11293 |
|
|
|
11294 |
@Override
|
|
|
11295 |
public void clear() {
|
|
|
11296 |
setPickUpIsSet(false);
|
|
|
11297 |
this.pickUp = 0;
|
|
|
11298 |
}
|
|
|
11299 |
|
|
|
11300 |
public long getPickUp() {
|
|
|
11301 |
return this.pickUp;
|
|
|
11302 |
}
|
|
|
11303 |
|
|
|
11304 |
public void setPickUp(long pickUp) {
|
|
|
11305 |
this.pickUp = pickUp;
|
|
|
11306 |
setPickUpIsSet(true);
|
|
|
11307 |
}
|
|
|
11308 |
|
|
|
11309 |
public void unsetPickUp() {
|
|
|
11310 |
__isset_bit_vector.clear(__PICKUP_ISSET_ID);
|
|
|
11311 |
}
|
|
|
11312 |
|
|
|
11313 |
/** Returns true if field pickUp is set (has been assigned a value) and false otherwise */
|
|
|
11314 |
public boolean isSetPickUp() {
|
|
|
11315 |
return __isset_bit_vector.get(__PICKUP_ISSET_ID);
|
|
|
11316 |
}
|
|
|
11317 |
|
|
|
11318 |
public void setPickUpIsSet(boolean value) {
|
|
|
11319 |
__isset_bit_vector.set(__PICKUP_ISSET_ID, value);
|
|
|
11320 |
}
|
|
|
11321 |
|
|
|
11322 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
11323 |
switch (field) {
|
|
|
11324 |
case PICK_UP:
|
|
|
11325 |
if (value == null) {
|
|
|
11326 |
unsetPickUp();
|
|
|
11327 |
} else {
|
|
|
11328 |
setPickUp((Long)value);
|
|
|
11329 |
}
|
|
|
11330 |
break;
|
|
|
11331 |
|
|
|
11332 |
}
|
|
|
11333 |
}
|
|
|
11334 |
|
|
|
11335 |
public Object getFieldValue(_Fields field) {
|
|
|
11336 |
switch (field) {
|
|
|
11337 |
case PICK_UP:
|
|
|
11338 |
return Long.valueOf(getPickUp());
|
|
|
11339 |
|
|
|
11340 |
}
|
|
|
11341 |
throw new IllegalStateException();
|
|
|
11342 |
}
|
|
|
11343 |
|
|
|
11344 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
11345 |
public boolean isSet(_Fields field) {
|
|
|
11346 |
if (field == null) {
|
|
|
11347 |
throw new IllegalArgumentException();
|
|
|
11348 |
}
|
|
|
11349 |
|
|
|
11350 |
switch (field) {
|
|
|
11351 |
case PICK_UP:
|
|
|
11352 |
return isSetPickUp();
|
|
|
11353 |
}
|
|
|
11354 |
throw new IllegalStateException();
|
|
|
11355 |
}
|
|
|
11356 |
|
|
|
11357 |
@Override
|
|
|
11358 |
public boolean equals(Object that) {
|
|
|
11359 |
if (that == null)
|
|
|
11360 |
return false;
|
|
|
11361 |
if (that instanceof getProviderForPickupType_args)
|
|
|
11362 |
return this.equals((getProviderForPickupType_args)that);
|
|
|
11363 |
return false;
|
|
|
11364 |
}
|
|
|
11365 |
|
|
|
11366 |
public boolean equals(getProviderForPickupType_args that) {
|
|
|
11367 |
if (that == null)
|
|
|
11368 |
return false;
|
|
|
11369 |
|
|
|
11370 |
boolean this_present_pickUp = true;
|
|
|
11371 |
boolean that_present_pickUp = true;
|
|
|
11372 |
if (this_present_pickUp || that_present_pickUp) {
|
|
|
11373 |
if (!(this_present_pickUp && that_present_pickUp))
|
|
|
11374 |
return false;
|
|
|
11375 |
if (this.pickUp != that.pickUp)
|
|
|
11376 |
return false;
|
|
|
11377 |
}
|
|
|
11378 |
|
|
|
11379 |
return true;
|
|
|
11380 |
}
|
|
|
11381 |
|
|
|
11382 |
@Override
|
|
|
11383 |
public int hashCode() {
|
|
|
11384 |
return 0;
|
|
|
11385 |
}
|
|
|
11386 |
|
|
|
11387 |
public int compareTo(getProviderForPickupType_args other) {
|
|
|
11388 |
if (!getClass().equals(other.getClass())) {
|
|
|
11389 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
11390 |
}
|
|
|
11391 |
|
|
|
11392 |
int lastComparison = 0;
|
|
|
11393 |
getProviderForPickupType_args typedOther = (getProviderForPickupType_args)other;
|
|
|
11394 |
|
|
|
11395 |
lastComparison = Boolean.valueOf(isSetPickUp()).compareTo(typedOther.isSetPickUp());
|
|
|
11396 |
if (lastComparison != 0) {
|
|
|
11397 |
return lastComparison;
|
|
|
11398 |
}
|
|
|
11399 |
if (isSetPickUp()) {
|
|
|
11400 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
|
|
|
11401 |
if (lastComparison != 0) {
|
|
|
11402 |
return lastComparison;
|
|
|
11403 |
}
|
|
|
11404 |
}
|
|
|
11405 |
return 0;
|
|
|
11406 |
}
|
|
|
11407 |
|
|
|
11408 |
public _Fields fieldForId(int fieldId) {
|
|
|
11409 |
return _Fields.findByThriftId(fieldId);
|
|
|
11410 |
}
|
|
|
11411 |
|
|
|
11412 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
11413 |
org.apache.thrift.protocol.TField field;
|
|
|
11414 |
iprot.readStructBegin();
|
|
|
11415 |
while (true)
|
|
|
11416 |
{
|
|
|
11417 |
field = iprot.readFieldBegin();
|
|
|
11418 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
11419 |
break;
|
|
|
11420 |
}
|
|
|
11421 |
switch (field.id) {
|
|
|
11422 |
case 1: // PICK_UP
|
|
|
11423 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
11424 |
this.pickUp = iprot.readI64();
|
|
|
11425 |
setPickUpIsSet(true);
|
|
|
11426 |
} else {
|
|
|
11427 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11428 |
}
|
|
|
11429 |
break;
|
|
|
11430 |
default:
|
|
|
11431 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11432 |
}
|
|
|
11433 |
iprot.readFieldEnd();
|
|
|
11434 |
}
|
|
|
11435 |
iprot.readStructEnd();
|
|
|
11436 |
validate();
|
|
|
11437 |
}
|
|
|
11438 |
|
|
|
11439 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
11440 |
validate();
|
|
|
11441 |
|
|
|
11442 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
11443 |
oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
|
|
|
11444 |
oprot.writeI64(this.pickUp);
|
|
|
11445 |
oprot.writeFieldEnd();
|
|
|
11446 |
oprot.writeFieldStop();
|
|
|
11447 |
oprot.writeStructEnd();
|
|
|
11448 |
}
|
|
|
11449 |
|
|
|
11450 |
@Override
|
|
|
11451 |
public String toString() {
|
|
|
11452 |
StringBuilder sb = new StringBuilder("getProviderForPickupType_args(");
|
|
|
11453 |
boolean first = true;
|
|
|
11454 |
|
|
|
11455 |
sb.append("pickUp:");
|
|
|
11456 |
sb.append(this.pickUp);
|
|
|
11457 |
first = false;
|
|
|
11458 |
sb.append(")");
|
|
|
11459 |
return sb.toString();
|
|
|
11460 |
}
|
|
|
11461 |
|
|
|
11462 |
public void validate() throws org.apache.thrift.TException {
|
|
|
11463 |
// check for required fields
|
|
|
11464 |
}
|
|
|
11465 |
|
|
|
11466 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
11467 |
try {
|
|
|
11468 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
11469 |
} catch (org.apache.thrift.TException te) {
|
|
|
11470 |
throw new java.io.IOException(te);
|
|
|
11471 |
}
|
|
|
11472 |
}
|
|
|
11473 |
|
|
|
11474 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
11475 |
try {
|
|
|
11476 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
11477 |
__isset_bit_vector = new BitSet(1);
|
|
|
11478 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
11479 |
} catch (org.apache.thrift.TException te) {
|
|
|
11480 |
throw new java.io.IOException(te);
|
|
|
11481 |
}
|
|
|
11482 |
}
|
|
|
11483 |
|
|
|
11484 |
}
|
|
|
11485 |
|
|
|
11486 |
public static class getProviderForPickupType_result implements org.apache.thrift.TBase<getProviderForPickupType_result, getProviderForPickupType_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
11487 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderForPickupType_result");
|
|
|
11488 |
|
|
|
11489 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
|
|
|
11490 |
|
|
|
11491 |
private long success; // required
|
|
|
11492 |
|
|
|
11493 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
11494 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
11495 |
SUCCESS((short)0, "success");
|
|
|
11496 |
|
|
|
11497 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
11498 |
|
|
|
11499 |
static {
|
|
|
11500 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
11501 |
byName.put(field.getFieldName(), field);
|
|
|
11502 |
}
|
|
|
11503 |
}
|
|
|
11504 |
|
|
|
11505 |
/**
|
|
|
11506 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
11507 |
*/
|
|
|
11508 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
11509 |
switch(fieldId) {
|
|
|
11510 |
case 0: // SUCCESS
|
|
|
11511 |
return SUCCESS;
|
|
|
11512 |
default:
|
|
|
11513 |
return null;
|
|
|
11514 |
}
|
|
|
11515 |
}
|
|
|
11516 |
|
|
|
11517 |
/**
|
|
|
11518 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
11519 |
* if it is not found.
|
|
|
11520 |
*/
|
|
|
11521 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
11522 |
_Fields fields = findByThriftId(fieldId);
|
|
|
11523 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
11524 |
return fields;
|
|
|
11525 |
}
|
|
|
11526 |
|
|
|
11527 |
/**
|
|
|
11528 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
11529 |
*/
|
|
|
11530 |
public static _Fields findByName(String name) {
|
|
|
11531 |
return byName.get(name);
|
|
|
11532 |
}
|
|
|
11533 |
|
|
|
11534 |
private final short _thriftId;
|
|
|
11535 |
private final String _fieldName;
|
|
|
11536 |
|
|
|
11537 |
_Fields(short thriftId, String fieldName) {
|
|
|
11538 |
_thriftId = thriftId;
|
|
|
11539 |
_fieldName = fieldName;
|
|
|
11540 |
}
|
|
|
11541 |
|
|
|
11542 |
public short getThriftFieldId() {
|
|
|
11543 |
return _thriftId;
|
|
|
11544 |
}
|
|
|
11545 |
|
|
|
11546 |
public String getFieldName() {
|
|
|
11547 |
return _fieldName;
|
|
|
11548 |
}
|
|
|
11549 |
}
|
|
|
11550 |
|
|
|
11551 |
// isset id assignments
|
|
|
11552 |
private static final int __SUCCESS_ISSET_ID = 0;
|
|
|
11553 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
11554 |
|
|
|
11555 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
11556 |
static {
|
|
|
11557 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
11558 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
11559 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
11560 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
11561 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderForPickupType_result.class, metaDataMap);
|
|
|
11562 |
}
|
|
|
11563 |
|
|
|
11564 |
public getProviderForPickupType_result() {
|
|
|
11565 |
}
|
|
|
11566 |
|
|
|
11567 |
public getProviderForPickupType_result(
|
|
|
11568 |
long success)
|
|
|
11569 |
{
|
|
|
11570 |
this();
|
|
|
11571 |
this.success = success;
|
|
|
11572 |
setSuccessIsSet(true);
|
|
|
11573 |
}
|
|
|
11574 |
|
|
|
11575 |
/**
|
|
|
11576 |
* Performs a deep copy on <i>other</i>.
|
|
|
11577 |
*/
|
|
|
11578 |
public getProviderForPickupType_result(getProviderForPickupType_result other) {
|
|
|
11579 |
__isset_bit_vector.clear();
|
|
|
11580 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
11581 |
this.success = other.success;
|
|
|
11582 |
}
|
|
|
11583 |
|
|
|
11584 |
public getProviderForPickupType_result deepCopy() {
|
|
|
11585 |
return new getProviderForPickupType_result(this);
|
|
|
11586 |
}
|
|
|
11587 |
|
|
|
11588 |
@Override
|
|
|
11589 |
public void clear() {
|
|
|
11590 |
setSuccessIsSet(false);
|
|
|
11591 |
this.success = 0;
|
|
|
11592 |
}
|
|
|
11593 |
|
|
|
11594 |
public long getSuccess() {
|
|
|
11595 |
return this.success;
|
|
|
11596 |
}
|
|
|
11597 |
|
|
|
11598 |
public void setSuccess(long success) {
|
|
|
11599 |
this.success = success;
|
|
|
11600 |
setSuccessIsSet(true);
|
|
|
11601 |
}
|
|
|
11602 |
|
|
|
11603 |
public void unsetSuccess() {
|
|
|
11604 |
__isset_bit_vector.clear(__SUCCESS_ISSET_ID);
|
|
|
11605 |
}
|
|
|
11606 |
|
|
|
11607 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
11608 |
public boolean isSetSuccess() {
|
|
|
11609 |
return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
|
|
|
11610 |
}
|
|
|
11611 |
|
|
|
11612 |
public void setSuccessIsSet(boolean value) {
|
|
|
11613 |
__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
|
|
|
11614 |
}
|
|
|
11615 |
|
|
|
11616 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
11617 |
switch (field) {
|
|
|
11618 |
case SUCCESS:
|
|
|
11619 |
if (value == null) {
|
|
|
11620 |
unsetSuccess();
|
|
|
11621 |
} else {
|
|
|
11622 |
setSuccess((Long)value);
|
|
|
11623 |
}
|
|
|
11624 |
break;
|
|
|
11625 |
|
|
|
11626 |
}
|
|
|
11627 |
}
|
|
|
11628 |
|
|
|
11629 |
public Object getFieldValue(_Fields field) {
|
|
|
11630 |
switch (field) {
|
|
|
11631 |
case SUCCESS:
|
|
|
11632 |
return Long.valueOf(getSuccess());
|
|
|
11633 |
|
|
|
11634 |
}
|
|
|
11635 |
throw new IllegalStateException();
|
|
|
11636 |
}
|
|
|
11637 |
|
|
|
11638 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
11639 |
public boolean isSet(_Fields field) {
|
|
|
11640 |
if (field == null) {
|
|
|
11641 |
throw new IllegalArgumentException();
|
|
|
11642 |
}
|
|
|
11643 |
|
|
|
11644 |
switch (field) {
|
|
|
11645 |
case SUCCESS:
|
|
|
11646 |
return isSetSuccess();
|
|
|
11647 |
}
|
|
|
11648 |
throw new IllegalStateException();
|
|
|
11649 |
}
|
|
|
11650 |
|
|
|
11651 |
@Override
|
|
|
11652 |
public boolean equals(Object that) {
|
|
|
11653 |
if (that == null)
|
|
|
11654 |
return false;
|
|
|
11655 |
if (that instanceof getProviderForPickupType_result)
|
|
|
11656 |
return this.equals((getProviderForPickupType_result)that);
|
|
|
11657 |
return false;
|
|
|
11658 |
}
|
|
|
11659 |
|
|
|
11660 |
public boolean equals(getProviderForPickupType_result that) {
|
|
|
11661 |
if (that == null)
|
|
|
11662 |
return false;
|
|
|
11663 |
|
|
|
11664 |
boolean this_present_success = true;
|
|
|
11665 |
boolean that_present_success = true;
|
|
|
11666 |
if (this_present_success || that_present_success) {
|
|
|
11667 |
if (!(this_present_success && that_present_success))
|
|
|
11668 |
return false;
|
|
|
11669 |
if (this.success != that.success)
|
|
|
11670 |
return false;
|
|
|
11671 |
}
|
|
|
11672 |
|
|
|
11673 |
return true;
|
|
|
11674 |
}
|
|
|
11675 |
|
|
|
11676 |
@Override
|
|
|
11677 |
public int hashCode() {
|
|
|
11678 |
return 0;
|
|
|
11679 |
}
|
|
|
11680 |
|
|
|
11681 |
public int compareTo(getProviderForPickupType_result other) {
|
|
|
11682 |
if (!getClass().equals(other.getClass())) {
|
|
|
11683 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
11684 |
}
|
|
|
11685 |
|
|
|
11686 |
int lastComparison = 0;
|
|
|
11687 |
getProviderForPickupType_result typedOther = (getProviderForPickupType_result)other;
|
|
|
11688 |
|
|
|
11689 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
11690 |
if (lastComparison != 0) {
|
|
|
11691 |
return lastComparison;
|
|
|
11692 |
}
|
|
|
11693 |
if (isSetSuccess()) {
|
|
|
11694 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
11695 |
if (lastComparison != 0) {
|
|
|
11696 |
return lastComparison;
|
|
|
11697 |
}
|
|
|
11698 |
}
|
|
|
11699 |
return 0;
|
|
|
11700 |
}
|
|
|
11701 |
|
|
|
11702 |
public _Fields fieldForId(int fieldId) {
|
|
|
11703 |
return _Fields.findByThriftId(fieldId);
|
|
|
11704 |
}
|
|
|
11705 |
|
|
|
11706 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
11707 |
org.apache.thrift.protocol.TField field;
|
|
|
11708 |
iprot.readStructBegin();
|
|
|
11709 |
while (true)
|
|
|
11710 |
{
|
|
|
11711 |
field = iprot.readFieldBegin();
|
|
|
11712 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
11713 |
break;
|
|
|
11714 |
}
|
|
|
11715 |
switch (field.id) {
|
|
|
11716 |
case 0: // SUCCESS
|
|
|
11717 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
11718 |
this.success = iprot.readI64();
|
|
|
11719 |
setSuccessIsSet(true);
|
|
|
11720 |
} else {
|
|
|
11721 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11722 |
}
|
|
|
11723 |
break;
|
|
|
11724 |
default:
|
|
|
11725 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11726 |
}
|
|
|
11727 |
iprot.readFieldEnd();
|
|
|
11728 |
}
|
|
|
11729 |
iprot.readStructEnd();
|
|
|
11730 |
validate();
|
|
|
11731 |
}
|
|
|
11732 |
|
|
|
11733 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
11734 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
11735 |
|
|
|
11736 |
if (this.isSetSuccess()) {
|
|
|
11737 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
11738 |
oprot.writeI64(this.success);
|
|
|
11739 |
oprot.writeFieldEnd();
|
|
|
11740 |
}
|
|
|
11741 |
oprot.writeFieldStop();
|
|
|
11742 |
oprot.writeStructEnd();
|
|
|
11743 |
}
|
|
|
11744 |
|
|
|
11745 |
@Override
|
|
|
11746 |
public String toString() {
|
|
|
11747 |
StringBuilder sb = new StringBuilder("getProviderForPickupType_result(");
|
|
|
11748 |
boolean first = true;
|
|
|
11749 |
|
|
|
11750 |
sb.append("success:");
|
|
|
11751 |
sb.append(this.success);
|
|
|
11752 |
first = false;
|
|
|
11753 |
sb.append(")");
|
|
|
11754 |
return sb.toString();
|
|
|
11755 |
}
|
|
|
11756 |
|
|
|
11757 |
public void validate() throws org.apache.thrift.TException {
|
|
|
11758 |
// check for required fields
|
|
|
11759 |
}
|
|
|
11760 |
|
|
|
11761 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
11762 |
try {
|
|
|
11763 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
11764 |
} catch (org.apache.thrift.TException te) {
|
|
|
11765 |
throw new java.io.IOException(te);
|
|
|
11766 |
}
|
|
|
11767 |
}
|
|
|
11768 |
|
|
|
11769 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
11770 |
try {
|
|
|
11771 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
11772 |
} catch (org.apache.thrift.TException te) {
|
|
|
11773 |
throw new java.io.IOException(te);
|
|
|
11774 |
}
|
|
|
11775 |
}
|
|
|
11776 |
|
|
|
11777 |
}
|
|
|
11778 |
|
| 5553 |
rajveer |
11779 |
public static class getAllPickupStores_args implements org.apache.thrift.TBase<getAllPickupStores_args, getAllPickupStores_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
11780 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPickupStores_args");
|
|
|
11781 |
|
|
|
11782 |
|
|
|
11783 |
|
|
|
11784 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
11785 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
11786 |
;
|
|
|
11787 |
|
|
|
11788 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
11789 |
|
|
|
11790 |
static {
|
|
|
11791 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
11792 |
byName.put(field.getFieldName(), field);
|
|
|
11793 |
}
|
|
|
11794 |
}
|
|
|
11795 |
|
|
|
11796 |
/**
|
|
|
11797 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
11798 |
*/
|
|
|
11799 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
11800 |
switch(fieldId) {
|
|
|
11801 |
default:
|
|
|
11802 |
return null;
|
|
|
11803 |
}
|
|
|
11804 |
}
|
|
|
11805 |
|
|
|
11806 |
/**
|
|
|
11807 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
11808 |
* if it is not found.
|
|
|
11809 |
*/
|
|
|
11810 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
11811 |
_Fields fields = findByThriftId(fieldId);
|
|
|
11812 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
11813 |
return fields;
|
|
|
11814 |
}
|
|
|
11815 |
|
|
|
11816 |
/**
|
|
|
11817 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
11818 |
*/
|
|
|
11819 |
public static _Fields findByName(String name) {
|
|
|
11820 |
return byName.get(name);
|
|
|
11821 |
}
|
|
|
11822 |
|
|
|
11823 |
private final short _thriftId;
|
|
|
11824 |
private final String _fieldName;
|
|
|
11825 |
|
|
|
11826 |
_Fields(short thriftId, String fieldName) {
|
|
|
11827 |
_thriftId = thriftId;
|
|
|
11828 |
_fieldName = fieldName;
|
|
|
11829 |
}
|
|
|
11830 |
|
|
|
11831 |
public short getThriftFieldId() {
|
|
|
11832 |
return _thriftId;
|
|
|
11833 |
}
|
|
|
11834 |
|
|
|
11835 |
public String getFieldName() {
|
|
|
11836 |
return _fieldName;
|
|
|
11837 |
}
|
|
|
11838 |
}
|
|
|
11839 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
11840 |
static {
|
|
|
11841 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
11842 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
11843 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPickupStores_args.class, metaDataMap);
|
|
|
11844 |
}
|
|
|
11845 |
|
|
|
11846 |
public getAllPickupStores_args() {
|
|
|
11847 |
}
|
|
|
11848 |
|
|
|
11849 |
/**
|
|
|
11850 |
* Performs a deep copy on <i>other</i>.
|
|
|
11851 |
*/
|
|
|
11852 |
public getAllPickupStores_args(getAllPickupStores_args other) {
|
|
|
11853 |
}
|
|
|
11854 |
|
|
|
11855 |
public getAllPickupStores_args deepCopy() {
|
|
|
11856 |
return new getAllPickupStores_args(this);
|
|
|
11857 |
}
|
|
|
11858 |
|
|
|
11859 |
@Override
|
|
|
11860 |
public void clear() {
|
|
|
11861 |
}
|
|
|
11862 |
|
|
|
11863 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
11864 |
switch (field) {
|
|
|
11865 |
}
|
|
|
11866 |
}
|
|
|
11867 |
|
|
|
11868 |
public Object getFieldValue(_Fields field) {
|
|
|
11869 |
switch (field) {
|
|
|
11870 |
}
|
|
|
11871 |
throw new IllegalStateException();
|
|
|
11872 |
}
|
|
|
11873 |
|
|
|
11874 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
11875 |
public boolean isSet(_Fields field) {
|
|
|
11876 |
if (field == null) {
|
|
|
11877 |
throw new IllegalArgumentException();
|
|
|
11878 |
}
|
|
|
11879 |
|
|
|
11880 |
switch (field) {
|
|
|
11881 |
}
|
|
|
11882 |
throw new IllegalStateException();
|
|
|
11883 |
}
|
|
|
11884 |
|
|
|
11885 |
@Override
|
|
|
11886 |
public boolean equals(Object that) {
|
|
|
11887 |
if (that == null)
|
|
|
11888 |
return false;
|
|
|
11889 |
if (that instanceof getAllPickupStores_args)
|
|
|
11890 |
return this.equals((getAllPickupStores_args)that);
|
|
|
11891 |
return false;
|
|
|
11892 |
}
|
|
|
11893 |
|
|
|
11894 |
public boolean equals(getAllPickupStores_args that) {
|
|
|
11895 |
if (that == null)
|
|
|
11896 |
return false;
|
|
|
11897 |
|
|
|
11898 |
return true;
|
|
|
11899 |
}
|
|
|
11900 |
|
|
|
11901 |
@Override
|
|
|
11902 |
public int hashCode() {
|
|
|
11903 |
return 0;
|
|
|
11904 |
}
|
|
|
11905 |
|
|
|
11906 |
public int compareTo(getAllPickupStores_args other) {
|
|
|
11907 |
if (!getClass().equals(other.getClass())) {
|
|
|
11908 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
11909 |
}
|
|
|
11910 |
|
|
|
11911 |
int lastComparison = 0;
|
|
|
11912 |
getAllPickupStores_args typedOther = (getAllPickupStores_args)other;
|
|
|
11913 |
|
|
|
11914 |
return 0;
|
|
|
11915 |
}
|
|
|
11916 |
|
|
|
11917 |
public _Fields fieldForId(int fieldId) {
|
|
|
11918 |
return _Fields.findByThriftId(fieldId);
|
|
|
11919 |
}
|
|
|
11920 |
|
|
|
11921 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
11922 |
org.apache.thrift.protocol.TField field;
|
|
|
11923 |
iprot.readStructBegin();
|
|
|
11924 |
while (true)
|
|
|
11925 |
{
|
|
|
11926 |
field = iprot.readFieldBegin();
|
|
|
11927 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
11928 |
break;
|
|
|
11929 |
}
|
|
|
11930 |
switch (field.id) {
|
|
|
11931 |
default:
|
|
|
11932 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11933 |
}
|
|
|
11934 |
iprot.readFieldEnd();
|
|
|
11935 |
}
|
|
|
11936 |
iprot.readStructEnd();
|
|
|
11937 |
validate();
|
|
|
11938 |
}
|
|
|
11939 |
|
|
|
11940 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
11941 |
validate();
|
|
|
11942 |
|
|
|
11943 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
11944 |
oprot.writeFieldStop();
|
|
|
11945 |
oprot.writeStructEnd();
|
|
|
11946 |
}
|
|
|
11947 |
|
|
|
11948 |
@Override
|
|
|
11949 |
public String toString() {
|
|
|
11950 |
StringBuilder sb = new StringBuilder("getAllPickupStores_args(");
|
|
|
11951 |
boolean first = true;
|
|
|
11952 |
|
|
|
11953 |
sb.append(")");
|
|
|
11954 |
return sb.toString();
|
|
|
11955 |
}
|
|
|
11956 |
|
|
|
11957 |
public void validate() throws org.apache.thrift.TException {
|
|
|
11958 |
// check for required fields
|
|
|
11959 |
}
|
|
|
11960 |
|
|
|
11961 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
11962 |
try {
|
|
|
11963 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
11964 |
} catch (org.apache.thrift.TException te) {
|
|
|
11965 |
throw new java.io.IOException(te);
|
|
|
11966 |
}
|
|
|
11967 |
}
|
|
|
11968 |
|
|
|
11969 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
11970 |
try {
|
|
|
11971 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
11972 |
} catch (org.apache.thrift.TException te) {
|
|
|
11973 |
throw new java.io.IOException(te);
|
|
|
11974 |
}
|
|
|
11975 |
}
|
|
|
11976 |
|
|
|
11977 |
}
|
|
|
11978 |
|
|
|
11979 |
public static class getAllPickupStores_result implements org.apache.thrift.TBase<getAllPickupStores_result, getAllPickupStores_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
11980 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPickupStores_result");
|
|
|
11981 |
|
|
|
11982 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
|
|
|
11983 |
|
|
|
11984 |
private List<PickupStore> success; // required
|
|
|
11985 |
|
|
|
11986 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
11987 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
11988 |
SUCCESS((short)0, "success");
|
|
|
11989 |
|
|
|
11990 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
11991 |
|
|
|
11992 |
static {
|
|
|
11993 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
11994 |
byName.put(field.getFieldName(), field);
|
|
|
11995 |
}
|
|
|
11996 |
}
|
|
|
11997 |
|
|
|
11998 |
/**
|
|
|
11999 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
12000 |
*/
|
|
|
12001 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
12002 |
switch(fieldId) {
|
|
|
12003 |
case 0: // SUCCESS
|
|
|
12004 |
return SUCCESS;
|
|
|
12005 |
default:
|
|
|
12006 |
return null;
|
|
|
12007 |
}
|
|
|
12008 |
}
|
|
|
12009 |
|
|
|
12010 |
/**
|
|
|
12011 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
12012 |
* if it is not found.
|
|
|
12013 |
*/
|
|
|
12014 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
12015 |
_Fields fields = findByThriftId(fieldId);
|
|
|
12016 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
12017 |
return fields;
|
|
|
12018 |
}
|
|
|
12019 |
|
|
|
12020 |
/**
|
|
|
12021 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
12022 |
*/
|
|
|
12023 |
public static _Fields findByName(String name) {
|
|
|
12024 |
return byName.get(name);
|
|
|
12025 |
}
|
|
|
12026 |
|
|
|
12027 |
private final short _thriftId;
|
|
|
12028 |
private final String _fieldName;
|
|
|
12029 |
|
|
|
12030 |
_Fields(short thriftId, String fieldName) {
|
|
|
12031 |
_thriftId = thriftId;
|
|
|
12032 |
_fieldName = fieldName;
|
|
|
12033 |
}
|
|
|
12034 |
|
|
|
12035 |
public short getThriftFieldId() {
|
|
|
12036 |
return _thriftId;
|
|
|
12037 |
}
|
|
|
12038 |
|
|
|
12039 |
public String getFieldName() {
|
|
|
12040 |
return _fieldName;
|
|
|
12041 |
}
|
|
|
12042 |
}
|
|
|
12043 |
|
|
|
12044 |
// isset id assignments
|
|
|
12045 |
|
|
|
12046 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
12047 |
static {
|
|
|
12048 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
12049 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
12050 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
12051 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class))));
|
|
|
12052 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
12053 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPickupStores_result.class, metaDataMap);
|
|
|
12054 |
}
|
|
|
12055 |
|
|
|
12056 |
public getAllPickupStores_result() {
|
|
|
12057 |
}
|
|
|
12058 |
|
|
|
12059 |
public getAllPickupStores_result(
|
|
|
12060 |
List<PickupStore> success)
|
|
|
12061 |
{
|
|
|
12062 |
this();
|
|
|
12063 |
this.success = success;
|
|
|
12064 |
}
|
|
|
12065 |
|
|
|
12066 |
/**
|
|
|
12067 |
* Performs a deep copy on <i>other</i>.
|
|
|
12068 |
*/
|
|
|
12069 |
public getAllPickupStores_result(getAllPickupStores_result other) {
|
|
|
12070 |
if (other.isSetSuccess()) {
|
|
|
12071 |
List<PickupStore> __this__success = new ArrayList<PickupStore>();
|
|
|
12072 |
for (PickupStore other_element : other.success) {
|
|
|
12073 |
__this__success.add(new PickupStore(other_element));
|
|
|
12074 |
}
|
|
|
12075 |
this.success = __this__success;
|
|
|
12076 |
}
|
|
|
12077 |
}
|
|
|
12078 |
|
|
|
12079 |
public getAllPickupStores_result deepCopy() {
|
|
|
12080 |
return new getAllPickupStores_result(this);
|
|
|
12081 |
}
|
|
|
12082 |
|
|
|
12083 |
@Override
|
|
|
12084 |
public void clear() {
|
|
|
12085 |
this.success = null;
|
|
|
12086 |
}
|
|
|
12087 |
|
|
|
12088 |
public int getSuccessSize() {
|
|
|
12089 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
12090 |
}
|
|
|
12091 |
|
|
|
12092 |
public java.util.Iterator<PickupStore> getSuccessIterator() {
|
|
|
12093 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
12094 |
}
|
|
|
12095 |
|
|
|
12096 |
public void addToSuccess(PickupStore elem) {
|
|
|
12097 |
if (this.success == null) {
|
|
|
12098 |
this.success = new ArrayList<PickupStore>();
|
|
|
12099 |
}
|
|
|
12100 |
this.success.add(elem);
|
|
|
12101 |
}
|
|
|
12102 |
|
|
|
12103 |
public List<PickupStore> getSuccess() {
|
|
|
12104 |
return this.success;
|
|
|
12105 |
}
|
|
|
12106 |
|
|
|
12107 |
public void setSuccess(List<PickupStore> success) {
|
|
|
12108 |
this.success = success;
|
|
|
12109 |
}
|
|
|
12110 |
|
|
|
12111 |
public void unsetSuccess() {
|
|
|
12112 |
this.success = null;
|
|
|
12113 |
}
|
|
|
12114 |
|
|
|
12115 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
12116 |
public boolean isSetSuccess() {
|
|
|
12117 |
return this.success != null;
|
|
|
12118 |
}
|
|
|
12119 |
|
|
|
12120 |
public void setSuccessIsSet(boolean value) {
|
|
|
12121 |
if (!value) {
|
|
|
12122 |
this.success = null;
|
|
|
12123 |
}
|
|
|
12124 |
}
|
|
|
12125 |
|
|
|
12126 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
12127 |
switch (field) {
|
|
|
12128 |
case SUCCESS:
|
|
|
12129 |
if (value == null) {
|
|
|
12130 |
unsetSuccess();
|
|
|
12131 |
} else {
|
|
|
12132 |
setSuccess((List<PickupStore>)value);
|
|
|
12133 |
}
|
|
|
12134 |
break;
|
|
|
12135 |
|
|
|
12136 |
}
|
|
|
12137 |
}
|
|
|
12138 |
|
|
|
12139 |
public Object getFieldValue(_Fields field) {
|
|
|
12140 |
switch (field) {
|
|
|
12141 |
case SUCCESS:
|
|
|
12142 |
return getSuccess();
|
|
|
12143 |
|
|
|
12144 |
}
|
|
|
12145 |
throw new IllegalStateException();
|
|
|
12146 |
}
|
|
|
12147 |
|
|
|
12148 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
12149 |
public boolean isSet(_Fields field) {
|
|
|
12150 |
if (field == null) {
|
|
|
12151 |
throw new IllegalArgumentException();
|
|
|
12152 |
}
|
|
|
12153 |
|
|
|
12154 |
switch (field) {
|
|
|
12155 |
case SUCCESS:
|
|
|
12156 |
return isSetSuccess();
|
|
|
12157 |
}
|
|
|
12158 |
throw new IllegalStateException();
|
|
|
12159 |
}
|
|
|
12160 |
|
|
|
12161 |
@Override
|
|
|
12162 |
public boolean equals(Object that) {
|
|
|
12163 |
if (that == null)
|
|
|
12164 |
return false;
|
|
|
12165 |
if (that instanceof getAllPickupStores_result)
|
|
|
12166 |
return this.equals((getAllPickupStores_result)that);
|
|
|
12167 |
return false;
|
|
|
12168 |
}
|
|
|
12169 |
|
|
|
12170 |
public boolean equals(getAllPickupStores_result that) {
|
|
|
12171 |
if (that == null)
|
|
|
12172 |
return false;
|
|
|
12173 |
|
|
|
12174 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
12175 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
12176 |
if (this_present_success || that_present_success) {
|
|
|
12177 |
if (!(this_present_success && that_present_success))
|
|
|
12178 |
return false;
|
|
|
12179 |
if (!this.success.equals(that.success))
|
|
|
12180 |
return false;
|
|
|
12181 |
}
|
|
|
12182 |
|
|
|
12183 |
return true;
|
|
|
12184 |
}
|
|
|
12185 |
|
|
|
12186 |
@Override
|
|
|
12187 |
public int hashCode() {
|
|
|
12188 |
return 0;
|
|
|
12189 |
}
|
|
|
12190 |
|
|
|
12191 |
public int compareTo(getAllPickupStores_result other) {
|
|
|
12192 |
if (!getClass().equals(other.getClass())) {
|
|
|
12193 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
12194 |
}
|
|
|
12195 |
|
|
|
12196 |
int lastComparison = 0;
|
|
|
12197 |
getAllPickupStores_result typedOther = (getAllPickupStores_result)other;
|
|
|
12198 |
|
|
|
12199 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
12200 |
if (lastComparison != 0) {
|
|
|
12201 |
return lastComparison;
|
|
|
12202 |
}
|
|
|
12203 |
if (isSetSuccess()) {
|
|
|
12204 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
12205 |
if (lastComparison != 0) {
|
|
|
12206 |
return lastComparison;
|
|
|
12207 |
}
|
|
|
12208 |
}
|
|
|
12209 |
return 0;
|
|
|
12210 |
}
|
|
|
12211 |
|
|
|
12212 |
public _Fields fieldForId(int fieldId) {
|
|
|
12213 |
return _Fields.findByThriftId(fieldId);
|
|
|
12214 |
}
|
|
|
12215 |
|
|
|
12216 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
12217 |
org.apache.thrift.protocol.TField field;
|
|
|
12218 |
iprot.readStructBegin();
|
|
|
12219 |
while (true)
|
|
|
12220 |
{
|
|
|
12221 |
field = iprot.readFieldBegin();
|
|
|
12222 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
12223 |
break;
|
|
|
12224 |
}
|
|
|
12225 |
switch (field.id) {
|
|
|
12226 |
case 0: // SUCCESS
|
|
|
12227 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
12228 |
{
|
| 7792 |
anupam.sin |
12229 |
org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
|
|
|
12230 |
this.success = new ArrayList<PickupStore>(_list20.size);
|
|
|
12231 |
for (int _i21 = 0; _i21 < _list20.size; ++_i21)
|
| 5553 |
rajveer |
12232 |
{
|
| 7792 |
anupam.sin |
12233 |
PickupStore _elem22; // required
|
|
|
12234 |
_elem22 = new PickupStore();
|
|
|
12235 |
_elem22.read(iprot);
|
|
|
12236 |
this.success.add(_elem22);
|
| 5553 |
rajveer |
12237 |
}
|
|
|
12238 |
iprot.readListEnd();
|
|
|
12239 |
}
|
|
|
12240 |
} else {
|
|
|
12241 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12242 |
}
|
|
|
12243 |
break;
|
|
|
12244 |
default:
|
|
|
12245 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12246 |
}
|
|
|
12247 |
iprot.readFieldEnd();
|
|
|
12248 |
}
|
|
|
12249 |
iprot.readStructEnd();
|
|
|
12250 |
validate();
|
|
|
12251 |
}
|
|
|
12252 |
|
|
|
12253 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
12254 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
12255 |
|
|
|
12256 |
if (this.isSetSuccess()) {
|
|
|
12257 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
12258 |
{
|
|
|
12259 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
| 7792 |
anupam.sin |
12260 |
for (PickupStore _iter23 : this.success)
|
| 5553 |
rajveer |
12261 |
{
|
| 7792 |
anupam.sin |
12262 |
_iter23.write(oprot);
|
| 5553 |
rajveer |
12263 |
}
|
|
|
12264 |
oprot.writeListEnd();
|
|
|
12265 |
}
|
|
|
12266 |
oprot.writeFieldEnd();
|
|
|
12267 |
}
|
|
|
12268 |
oprot.writeFieldStop();
|
|
|
12269 |
oprot.writeStructEnd();
|
|
|
12270 |
}
|
|
|
12271 |
|
|
|
12272 |
@Override
|
|
|
12273 |
public String toString() {
|
|
|
12274 |
StringBuilder sb = new StringBuilder("getAllPickupStores_result(");
|
|
|
12275 |
boolean first = true;
|
|
|
12276 |
|
|
|
12277 |
sb.append("success:");
|
|
|
12278 |
if (this.success == null) {
|
|
|
12279 |
sb.append("null");
|
|
|
12280 |
} else {
|
|
|
12281 |
sb.append(this.success);
|
|
|
12282 |
}
|
|
|
12283 |
first = false;
|
|
|
12284 |
sb.append(")");
|
|
|
12285 |
return sb.toString();
|
|
|
12286 |
}
|
|
|
12287 |
|
|
|
12288 |
public void validate() throws org.apache.thrift.TException {
|
|
|
12289 |
// check for required fields
|
|
|
12290 |
}
|
|
|
12291 |
|
|
|
12292 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
12293 |
try {
|
|
|
12294 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
12295 |
} catch (org.apache.thrift.TException te) {
|
|
|
12296 |
throw new java.io.IOException(te);
|
|
|
12297 |
}
|
|
|
12298 |
}
|
|
|
12299 |
|
|
|
12300 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
12301 |
try {
|
|
|
12302 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
12303 |
} catch (org.apache.thrift.TException te) {
|
|
|
12304 |
throw new java.io.IOException(te);
|
|
|
12305 |
}
|
|
|
12306 |
}
|
|
|
12307 |
|
|
|
12308 |
}
|
|
|
12309 |
|
|
|
12310 |
public static class getPickupStore_args implements org.apache.thrift.TBase<getPickupStore_args, getPickupStore_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
12311 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStore_args");
|
|
|
12312 |
|
|
|
12313 |
private static final org.apache.thrift.protocol.TField STORE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("storeId", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
12314 |
|
|
|
12315 |
private long storeId; // required
|
|
|
12316 |
|
|
|
12317 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
12318 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
12319 |
STORE_ID((short)1, "storeId");
|
|
|
12320 |
|
|
|
12321 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
12322 |
|
|
|
12323 |
static {
|
|
|
12324 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
12325 |
byName.put(field.getFieldName(), field);
|
|
|
12326 |
}
|
|
|
12327 |
}
|
|
|
12328 |
|
|
|
12329 |
/**
|
|
|
12330 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
12331 |
*/
|
|
|
12332 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
12333 |
switch(fieldId) {
|
|
|
12334 |
case 1: // STORE_ID
|
|
|
12335 |
return STORE_ID;
|
|
|
12336 |
default:
|
|
|
12337 |
return null;
|
|
|
12338 |
}
|
|
|
12339 |
}
|
|
|
12340 |
|
|
|
12341 |
/**
|
|
|
12342 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
12343 |
* if it is not found.
|
|
|
12344 |
*/
|
|
|
12345 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
12346 |
_Fields fields = findByThriftId(fieldId);
|
|
|
12347 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
12348 |
return fields;
|
|
|
12349 |
}
|
|
|
12350 |
|
|
|
12351 |
/**
|
|
|
12352 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
12353 |
*/
|
|
|
12354 |
public static _Fields findByName(String name) {
|
|
|
12355 |
return byName.get(name);
|
|
|
12356 |
}
|
|
|
12357 |
|
|
|
12358 |
private final short _thriftId;
|
|
|
12359 |
private final String _fieldName;
|
|
|
12360 |
|
|
|
12361 |
_Fields(short thriftId, String fieldName) {
|
|
|
12362 |
_thriftId = thriftId;
|
|
|
12363 |
_fieldName = fieldName;
|
|
|
12364 |
}
|
|
|
12365 |
|
|
|
12366 |
public short getThriftFieldId() {
|
|
|
12367 |
return _thriftId;
|
|
|
12368 |
}
|
|
|
12369 |
|
|
|
12370 |
public String getFieldName() {
|
|
|
12371 |
return _fieldName;
|
|
|
12372 |
}
|
|
|
12373 |
}
|
|
|
12374 |
|
|
|
12375 |
// isset id assignments
|
|
|
12376 |
private static final int __STOREID_ISSET_ID = 0;
|
|
|
12377 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
12378 |
|
|
|
12379 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
12380 |
static {
|
|
|
12381 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
12382 |
tmpMap.put(_Fields.STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("storeId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
12383 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
12384 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
12385 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStore_args.class, metaDataMap);
|
|
|
12386 |
}
|
|
|
12387 |
|
|
|
12388 |
public getPickupStore_args() {
|
|
|
12389 |
}
|
|
|
12390 |
|
|
|
12391 |
public getPickupStore_args(
|
|
|
12392 |
long storeId)
|
|
|
12393 |
{
|
|
|
12394 |
this();
|
|
|
12395 |
this.storeId = storeId;
|
|
|
12396 |
setStoreIdIsSet(true);
|
|
|
12397 |
}
|
|
|
12398 |
|
|
|
12399 |
/**
|
|
|
12400 |
* Performs a deep copy on <i>other</i>.
|
|
|
12401 |
*/
|
|
|
12402 |
public getPickupStore_args(getPickupStore_args other) {
|
|
|
12403 |
__isset_bit_vector.clear();
|
|
|
12404 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
12405 |
this.storeId = other.storeId;
|
|
|
12406 |
}
|
|
|
12407 |
|
|
|
12408 |
public getPickupStore_args deepCopy() {
|
|
|
12409 |
return new getPickupStore_args(this);
|
|
|
12410 |
}
|
|
|
12411 |
|
|
|
12412 |
@Override
|
|
|
12413 |
public void clear() {
|
|
|
12414 |
setStoreIdIsSet(false);
|
|
|
12415 |
this.storeId = 0;
|
|
|
12416 |
}
|
|
|
12417 |
|
|
|
12418 |
public long getStoreId() {
|
|
|
12419 |
return this.storeId;
|
|
|
12420 |
}
|
|
|
12421 |
|
|
|
12422 |
public void setStoreId(long storeId) {
|
|
|
12423 |
this.storeId = storeId;
|
|
|
12424 |
setStoreIdIsSet(true);
|
|
|
12425 |
}
|
|
|
12426 |
|
|
|
12427 |
public void unsetStoreId() {
|
|
|
12428 |
__isset_bit_vector.clear(__STOREID_ISSET_ID);
|
|
|
12429 |
}
|
|
|
12430 |
|
|
|
12431 |
/** Returns true if field storeId is set (has been assigned a value) and false otherwise */
|
|
|
12432 |
public boolean isSetStoreId() {
|
|
|
12433 |
return __isset_bit_vector.get(__STOREID_ISSET_ID);
|
|
|
12434 |
}
|
|
|
12435 |
|
|
|
12436 |
public void setStoreIdIsSet(boolean value) {
|
|
|
12437 |
__isset_bit_vector.set(__STOREID_ISSET_ID, value);
|
|
|
12438 |
}
|
|
|
12439 |
|
|
|
12440 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
12441 |
switch (field) {
|
|
|
12442 |
case STORE_ID:
|
|
|
12443 |
if (value == null) {
|
|
|
12444 |
unsetStoreId();
|
|
|
12445 |
} else {
|
|
|
12446 |
setStoreId((Long)value);
|
|
|
12447 |
}
|
|
|
12448 |
break;
|
|
|
12449 |
|
|
|
12450 |
}
|
|
|
12451 |
}
|
|
|
12452 |
|
|
|
12453 |
public Object getFieldValue(_Fields field) {
|
|
|
12454 |
switch (field) {
|
|
|
12455 |
case STORE_ID:
|
|
|
12456 |
return Long.valueOf(getStoreId());
|
|
|
12457 |
|
|
|
12458 |
}
|
|
|
12459 |
throw new IllegalStateException();
|
|
|
12460 |
}
|
|
|
12461 |
|
|
|
12462 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
12463 |
public boolean isSet(_Fields field) {
|
|
|
12464 |
if (field == null) {
|
|
|
12465 |
throw new IllegalArgumentException();
|
|
|
12466 |
}
|
|
|
12467 |
|
|
|
12468 |
switch (field) {
|
|
|
12469 |
case STORE_ID:
|
|
|
12470 |
return isSetStoreId();
|
|
|
12471 |
}
|
|
|
12472 |
throw new IllegalStateException();
|
|
|
12473 |
}
|
|
|
12474 |
|
|
|
12475 |
@Override
|
|
|
12476 |
public boolean equals(Object that) {
|
|
|
12477 |
if (that == null)
|
|
|
12478 |
return false;
|
|
|
12479 |
if (that instanceof getPickupStore_args)
|
|
|
12480 |
return this.equals((getPickupStore_args)that);
|
|
|
12481 |
return false;
|
|
|
12482 |
}
|
|
|
12483 |
|
|
|
12484 |
public boolean equals(getPickupStore_args that) {
|
|
|
12485 |
if (that == null)
|
|
|
12486 |
return false;
|
|
|
12487 |
|
|
|
12488 |
boolean this_present_storeId = true;
|
|
|
12489 |
boolean that_present_storeId = true;
|
|
|
12490 |
if (this_present_storeId || that_present_storeId) {
|
|
|
12491 |
if (!(this_present_storeId && that_present_storeId))
|
|
|
12492 |
return false;
|
|
|
12493 |
if (this.storeId != that.storeId)
|
|
|
12494 |
return false;
|
|
|
12495 |
}
|
|
|
12496 |
|
|
|
12497 |
return true;
|
|
|
12498 |
}
|
|
|
12499 |
|
|
|
12500 |
@Override
|
|
|
12501 |
public int hashCode() {
|
|
|
12502 |
return 0;
|
|
|
12503 |
}
|
|
|
12504 |
|
|
|
12505 |
public int compareTo(getPickupStore_args other) {
|
|
|
12506 |
if (!getClass().equals(other.getClass())) {
|
|
|
12507 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
12508 |
}
|
|
|
12509 |
|
|
|
12510 |
int lastComparison = 0;
|
|
|
12511 |
getPickupStore_args typedOther = (getPickupStore_args)other;
|
|
|
12512 |
|
|
|
12513 |
lastComparison = Boolean.valueOf(isSetStoreId()).compareTo(typedOther.isSetStoreId());
|
|
|
12514 |
if (lastComparison != 0) {
|
|
|
12515 |
return lastComparison;
|
|
|
12516 |
}
|
|
|
12517 |
if (isSetStoreId()) {
|
|
|
12518 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storeId, typedOther.storeId);
|
|
|
12519 |
if (lastComparison != 0) {
|
|
|
12520 |
return lastComparison;
|
|
|
12521 |
}
|
|
|
12522 |
}
|
|
|
12523 |
return 0;
|
|
|
12524 |
}
|
|
|
12525 |
|
|
|
12526 |
public _Fields fieldForId(int fieldId) {
|
|
|
12527 |
return _Fields.findByThriftId(fieldId);
|
|
|
12528 |
}
|
|
|
12529 |
|
|
|
12530 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
12531 |
org.apache.thrift.protocol.TField field;
|
|
|
12532 |
iprot.readStructBegin();
|
|
|
12533 |
while (true)
|
|
|
12534 |
{
|
|
|
12535 |
field = iprot.readFieldBegin();
|
|
|
12536 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
12537 |
break;
|
|
|
12538 |
}
|
|
|
12539 |
switch (field.id) {
|
|
|
12540 |
case 1: // STORE_ID
|
|
|
12541 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
12542 |
this.storeId = iprot.readI64();
|
|
|
12543 |
setStoreIdIsSet(true);
|
|
|
12544 |
} else {
|
|
|
12545 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12546 |
}
|
|
|
12547 |
break;
|
|
|
12548 |
default:
|
|
|
12549 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12550 |
}
|
|
|
12551 |
iprot.readFieldEnd();
|
|
|
12552 |
}
|
|
|
12553 |
iprot.readStructEnd();
|
|
|
12554 |
validate();
|
|
|
12555 |
}
|
|
|
12556 |
|
|
|
12557 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
12558 |
validate();
|
|
|
12559 |
|
|
|
12560 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
12561 |
oprot.writeFieldBegin(STORE_ID_FIELD_DESC);
|
|
|
12562 |
oprot.writeI64(this.storeId);
|
|
|
12563 |
oprot.writeFieldEnd();
|
|
|
12564 |
oprot.writeFieldStop();
|
|
|
12565 |
oprot.writeStructEnd();
|
|
|
12566 |
}
|
|
|
12567 |
|
|
|
12568 |
@Override
|
|
|
12569 |
public String toString() {
|
|
|
12570 |
StringBuilder sb = new StringBuilder("getPickupStore_args(");
|
|
|
12571 |
boolean first = true;
|
|
|
12572 |
|
|
|
12573 |
sb.append("storeId:");
|
|
|
12574 |
sb.append(this.storeId);
|
|
|
12575 |
first = false;
|
|
|
12576 |
sb.append(")");
|
|
|
12577 |
return sb.toString();
|
|
|
12578 |
}
|
|
|
12579 |
|
|
|
12580 |
public void validate() throws org.apache.thrift.TException {
|
|
|
12581 |
// check for required fields
|
|
|
12582 |
}
|
|
|
12583 |
|
|
|
12584 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
12585 |
try {
|
|
|
12586 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
12587 |
} catch (org.apache.thrift.TException te) {
|
|
|
12588 |
throw new java.io.IOException(te);
|
|
|
12589 |
}
|
|
|
12590 |
}
|
|
|
12591 |
|
|
|
12592 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
12593 |
try {
|
|
|
12594 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
12595 |
__isset_bit_vector = new BitSet(1);
|
|
|
12596 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
12597 |
} catch (org.apache.thrift.TException te) {
|
|
|
12598 |
throw new java.io.IOException(te);
|
|
|
12599 |
}
|
|
|
12600 |
}
|
|
|
12601 |
|
|
|
12602 |
}
|
|
|
12603 |
|
|
|
12604 |
public static class getPickupStore_result implements org.apache.thrift.TBase<getPickupStore_result, getPickupStore_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
12605 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStore_result");
|
|
|
12606 |
|
|
|
12607 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
|
|
|
12608 |
|
|
|
12609 |
private PickupStore success; // required
|
|
|
12610 |
|
|
|
12611 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
12612 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
12613 |
SUCCESS((short)0, "success");
|
|
|
12614 |
|
|
|
12615 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
12616 |
|
|
|
12617 |
static {
|
|
|
12618 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
12619 |
byName.put(field.getFieldName(), field);
|
|
|
12620 |
}
|
|
|
12621 |
}
|
|
|
12622 |
|
|
|
12623 |
/**
|
|
|
12624 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
12625 |
*/
|
|
|
12626 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
12627 |
switch(fieldId) {
|
|
|
12628 |
case 0: // SUCCESS
|
|
|
12629 |
return SUCCESS;
|
|
|
12630 |
default:
|
|
|
12631 |
return null;
|
|
|
12632 |
}
|
|
|
12633 |
}
|
|
|
12634 |
|
|
|
12635 |
/**
|
|
|
12636 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
12637 |
* if it is not found.
|
|
|
12638 |
*/
|
|
|
12639 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
12640 |
_Fields fields = findByThriftId(fieldId);
|
|
|
12641 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
12642 |
return fields;
|
|
|
12643 |
}
|
|
|
12644 |
|
|
|
12645 |
/**
|
|
|
12646 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
12647 |
*/
|
|
|
12648 |
public static _Fields findByName(String name) {
|
|
|
12649 |
return byName.get(name);
|
|
|
12650 |
}
|
|
|
12651 |
|
|
|
12652 |
private final short _thriftId;
|
|
|
12653 |
private final String _fieldName;
|
|
|
12654 |
|
|
|
12655 |
_Fields(short thriftId, String fieldName) {
|
|
|
12656 |
_thriftId = thriftId;
|
|
|
12657 |
_fieldName = fieldName;
|
|
|
12658 |
}
|
|
|
12659 |
|
|
|
12660 |
public short getThriftFieldId() {
|
|
|
12661 |
return _thriftId;
|
|
|
12662 |
}
|
|
|
12663 |
|
|
|
12664 |
public String getFieldName() {
|
|
|
12665 |
return _fieldName;
|
|
|
12666 |
}
|
|
|
12667 |
}
|
|
|
12668 |
|
|
|
12669 |
// isset id assignments
|
|
|
12670 |
|
|
|
12671 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
12672 |
static {
|
|
|
12673 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
12674 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
12675 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class)));
|
|
|
12676 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
12677 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStore_result.class, metaDataMap);
|
|
|
12678 |
}
|
|
|
12679 |
|
|
|
12680 |
public getPickupStore_result() {
|
|
|
12681 |
}
|
|
|
12682 |
|
|
|
12683 |
public getPickupStore_result(
|
|
|
12684 |
PickupStore success)
|
|
|
12685 |
{
|
|
|
12686 |
this();
|
|
|
12687 |
this.success = success;
|
|
|
12688 |
}
|
|
|
12689 |
|
|
|
12690 |
/**
|
|
|
12691 |
* Performs a deep copy on <i>other</i>.
|
|
|
12692 |
*/
|
|
|
12693 |
public getPickupStore_result(getPickupStore_result other) {
|
|
|
12694 |
if (other.isSetSuccess()) {
|
|
|
12695 |
this.success = new PickupStore(other.success);
|
|
|
12696 |
}
|
|
|
12697 |
}
|
|
|
12698 |
|
|
|
12699 |
public getPickupStore_result deepCopy() {
|
|
|
12700 |
return new getPickupStore_result(this);
|
|
|
12701 |
}
|
|
|
12702 |
|
|
|
12703 |
@Override
|
|
|
12704 |
public void clear() {
|
|
|
12705 |
this.success = null;
|
|
|
12706 |
}
|
|
|
12707 |
|
|
|
12708 |
public PickupStore getSuccess() {
|
|
|
12709 |
return this.success;
|
|
|
12710 |
}
|
|
|
12711 |
|
|
|
12712 |
public void setSuccess(PickupStore success) {
|
|
|
12713 |
this.success = success;
|
|
|
12714 |
}
|
|
|
12715 |
|
|
|
12716 |
public void unsetSuccess() {
|
|
|
12717 |
this.success = null;
|
|
|
12718 |
}
|
|
|
12719 |
|
|
|
12720 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
12721 |
public boolean isSetSuccess() {
|
|
|
12722 |
return this.success != null;
|
|
|
12723 |
}
|
|
|
12724 |
|
|
|
12725 |
public void setSuccessIsSet(boolean value) {
|
|
|
12726 |
if (!value) {
|
|
|
12727 |
this.success = null;
|
|
|
12728 |
}
|
|
|
12729 |
}
|
|
|
12730 |
|
|
|
12731 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
12732 |
switch (field) {
|
|
|
12733 |
case SUCCESS:
|
|
|
12734 |
if (value == null) {
|
|
|
12735 |
unsetSuccess();
|
|
|
12736 |
} else {
|
|
|
12737 |
setSuccess((PickupStore)value);
|
|
|
12738 |
}
|
|
|
12739 |
break;
|
|
|
12740 |
|
|
|
12741 |
}
|
|
|
12742 |
}
|
|
|
12743 |
|
|
|
12744 |
public Object getFieldValue(_Fields field) {
|
|
|
12745 |
switch (field) {
|
|
|
12746 |
case SUCCESS:
|
|
|
12747 |
return getSuccess();
|
|
|
12748 |
|
|
|
12749 |
}
|
|
|
12750 |
throw new IllegalStateException();
|
|
|
12751 |
}
|
|
|
12752 |
|
|
|
12753 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
12754 |
public boolean isSet(_Fields field) {
|
|
|
12755 |
if (field == null) {
|
|
|
12756 |
throw new IllegalArgumentException();
|
|
|
12757 |
}
|
|
|
12758 |
|
|
|
12759 |
switch (field) {
|
|
|
12760 |
case SUCCESS:
|
|
|
12761 |
return isSetSuccess();
|
|
|
12762 |
}
|
|
|
12763 |
throw new IllegalStateException();
|
|
|
12764 |
}
|
|
|
12765 |
|
|
|
12766 |
@Override
|
|
|
12767 |
public boolean equals(Object that) {
|
|
|
12768 |
if (that == null)
|
|
|
12769 |
return false;
|
|
|
12770 |
if (that instanceof getPickupStore_result)
|
|
|
12771 |
return this.equals((getPickupStore_result)that);
|
|
|
12772 |
return false;
|
|
|
12773 |
}
|
|
|
12774 |
|
|
|
12775 |
public boolean equals(getPickupStore_result that) {
|
|
|
12776 |
if (that == null)
|
|
|
12777 |
return false;
|
|
|
12778 |
|
|
|
12779 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
12780 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
12781 |
if (this_present_success || that_present_success) {
|
|
|
12782 |
if (!(this_present_success && that_present_success))
|
|
|
12783 |
return false;
|
|
|
12784 |
if (!this.success.equals(that.success))
|
|
|
12785 |
return false;
|
|
|
12786 |
}
|
|
|
12787 |
|
|
|
12788 |
return true;
|
|
|
12789 |
}
|
|
|
12790 |
|
|
|
12791 |
@Override
|
|
|
12792 |
public int hashCode() {
|
|
|
12793 |
return 0;
|
|
|
12794 |
}
|
|
|
12795 |
|
|
|
12796 |
public int compareTo(getPickupStore_result other) {
|
|
|
12797 |
if (!getClass().equals(other.getClass())) {
|
|
|
12798 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
12799 |
}
|
|
|
12800 |
|
|
|
12801 |
int lastComparison = 0;
|
|
|
12802 |
getPickupStore_result typedOther = (getPickupStore_result)other;
|
|
|
12803 |
|
|
|
12804 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
12805 |
if (lastComparison != 0) {
|
|
|
12806 |
return lastComparison;
|
|
|
12807 |
}
|
|
|
12808 |
if (isSetSuccess()) {
|
|
|
12809 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
12810 |
if (lastComparison != 0) {
|
|
|
12811 |
return lastComparison;
|
|
|
12812 |
}
|
|
|
12813 |
}
|
|
|
12814 |
return 0;
|
|
|
12815 |
}
|
|
|
12816 |
|
|
|
12817 |
public _Fields fieldForId(int fieldId) {
|
|
|
12818 |
return _Fields.findByThriftId(fieldId);
|
|
|
12819 |
}
|
|
|
12820 |
|
|
|
12821 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
12822 |
org.apache.thrift.protocol.TField field;
|
|
|
12823 |
iprot.readStructBegin();
|
|
|
12824 |
while (true)
|
|
|
12825 |
{
|
|
|
12826 |
field = iprot.readFieldBegin();
|
|
|
12827 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
12828 |
break;
|
|
|
12829 |
}
|
|
|
12830 |
switch (field.id) {
|
|
|
12831 |
case 0: // SUCCESS
|
|
|
12832 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
12833 |
this.success = new PickupStore();
|
|
|
12834 |
this.success.read(iprot);
|
|
|
12835 |
} else {
|
|
|
12836 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12837 |
}
|
|
|
12838 |
break;
|
|
|
12839 |
default:
|
|
|
12840 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12841 |
}
|
|
|
12842 |
iprot.readFieldEnd();
|
|
|
12843 |
}
|
|
|
12844 |
iprot.readStructEnd();
|
|
|
12845 |
validate();
|
|
|
12846 |
}
|
|
|
12847 |
|
|
|
12848 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
12849 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
12850 |
|
|
|
12851 |
if (this.isSetSuccess()) {
|
|
|
12852 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
12853 |
this.success.write(oprot);
|
|
|
12854 |
oprot.writeFieldEnd();
|
|
|
12855 |
}
|
|
|
12856 |
oprot.writeFieldStop();
|
|
|
12857 |
oprot.writeStructEnd();
|
|
|
12858 |
}
|
|
|
12859 |
|
|
|
12860 |
@Override
|
|
|
12861 |
public String toString() {
|
|
|
12862 |
StringBuilder sb = new StringBuilder("getPickupStore_result(");
|
|
|
12863 |
boolean first = true;
|
|
|
12864 |
|
|
|
12865 |
sb.append("success:");
|
|
|
12866 |
if (this.success == null) {
|
|
|
12867 |
sb.append("null");
|
|
|
12868 |
} else {
|
|
|
12869 |
sb.append(this.success);
|
|
|
12870 |
}
|
|
|
12871 |
first = false;
|
|
|
12872 |
sb.append(")");
|
|
|
12873 |
return sb.toString();
|
|
|
12874 |
}
|
|
|
12875 |
|
|
|
12876 |
public void validate() throws org.apache.thrift.TException {
|
|
|
12877 |
// check for required fields
|
|
|
12878 |
}
|
|
|
12879 |
|
|
|
12880 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
12881 |
try {
|
|
|
12882 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
12883 |
} catch (org.apache.thrift.TException te) {
|
|
|
12884 |
throw new java.io.IOException(te);
|
|
|
12885 |
}
|
|
|
12886 |
}
|
|
|
12887 |
|
|
|
12888 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
12889 |
try {
|
|
|
12890 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
12891 |
} catch (org.apache.thrift.TException te) {
|
|
|
12892 |
throw new java.io.IOException(te);
|
|
|
12893 |
}
|
|
|
12894 |
}
|
|
|
12895 |
|
|
|
12896 |
}
|
|
|
12897 |
|
| 5719 |
rajveer |
12898 |
public static class getPickupStoreByHotspotId_args implements org.apache.thrift.TBase<getPickupStoreByHotspotId_args, getPickupStoreByHotspotId_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
12899 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStoreByHotspotId_args");
|
|
|
12900 |
|
|
|
12901 |
private static final org.apache.thrift.protocol.TField HOTSPOT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("hotspotId", org.apache.thrift.protocol.TType.STRING, (short)1);
|
|
|
12902 |
|
|
|
12903 |
private String hotspotId; // required
|
|
|
12904 |
|
|
|
12905 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
12906 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
12907 |
HOTSPOT_ID((short)1, "hotspotId");
|
|
|
12908 |
|
|
|
12909 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
12910 |
|
|
|
12911 |
static {
|
|
|
12912 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
12913 |
byName.put(field.getFieldName(), field);
|
|
|
12914 |
}
|
|
|
12915 |
}
|
|
|
12916 |
|
|
|
12917 |
/**
|
|
|
12918 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
12919 |
*/
|
|
|
12920 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
12921 |
switch(fieldId) {
|
|
|
12922 |
case 1: // HOTSPOT_ID
|
|
|
12923 |
return HOTSPOT_ID;
|
|
|
12924 |
default:
|
|
|
12925 |
return null;
|
|
|
12926 |
}
|
|
|
12927 |
}
|
|
|
12928 |
|
|
|
12929 |
/**
|
|
|
12930 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
12931 |
* if it is not found.
|
|
|
12932 |
*/
|
|
|
12933 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
12934 |
_Fields fields = findByThriftId(fieldId);
|
|
|
12935 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
12936 |
return fields;
|
|
|
12937 |
}
|
|
|
12938 |
|
|
|
12939 |
/**
|
|
|
12940 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
12941 |
*/
|
|
|
12942 |
public static _Fields findByName(String name) {
|
|
|
12943 |
return byName.get(name);
|
|
|
12944 |
}
|
|
|
12945 |
|
|
|
12946 |
private final short _thriftId;
|
|
|
12947 |
private final String _fieldName;
|
|
|
12948 |
|
|
|
12949 |
_Fields(short thriftId, String fieldName) {
|
|
|
12950 |
_thriftId = thriftId;
|
|
|
12951 |
_fieldName = fieldName;
|
|
|
12952 |
}
|
|
|
12953 |
|
|
|
12954 |
public short getThriftFieldId() {
|
|
|
12955 |
return _thriftId;
|
|
|
12956 |
}
|
|
|
12957 |
|
|
|
12958 |
public String getFieldName() {
|
|
|
12959 |
return _fieldName;
|
|
|
12960 |
}
|
|
|
12961 |
}
|
|
|
12962 |
|
|
|
12963 |
// isset id assignments
|
|
|
12964 |
|
|
|
12965 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
12966 |
static {
|
|
|
12967 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
12968 |
tmpMap.put(_Fields.HOTSPOT_ID, new org.apache.thrift.meta_data.FieldMetaData("hotspotId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
12969 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
12970 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
12971 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStoreByHotspotId_args.class, metaDataMap);
|
|
|
12972 |
}
|
|
|
12973 |
|
|
|
12974 |
public getPickupStoreByHotspotId_args() {
|
|
|
12975 |
}
|
|
|
12976 |
|
|
|
12977 |
public getPickupStoreByHotspotId_args(
|
|
|
12978 |
String hotspotId)
|
|
|
12979 |
{
|
|
|
12980 |
this();
|
|
|
12981 |
this.hotspotId = hotspotId;
|
|
|
12982 |
}
|
|
|
12983 |
|
|
|
12984 |
/**
|
|
|
12985 |
* Performs a deep copy on <i>other</i>.
|
|
|
12986 |
*/
|
|
|
12987 |
public getPickupStoreByHotspotId_args(getPickupStoreByHotspotId_args other) {
|
|
|
12988 |
if (other.isSetHotspotId()) {
|
|
|
12989 |
this.hotspotId = other.hotspotId;
|
|
|
12990 |
}
|
|
|
12991 |
}
|
|
|
12992 |
|
|
|
12993 |
public getPickupStoreByHotspotId_args deepCopy() {
|
|
|
12994 |
return new getPickupStoreByHotspotId_args(this);
|
|
|
12995 |
}
|
|
|
12996 |
|
|
|
12997 |
@Override
|
|
|
12998 |
public void clear() {
|
|
|
12999 |
this.hotspotId = null;
|
|
|
13000 |
}
|
|
|
13001 |
|
|
|
13002 |
public String getHotspotId() {
|
|
|
13003 |
return this.hotspotId;
|
|
|
13004 |
}
|
|
|
13005 |
|
|
|
13006 |
public void setHotspotId(String hotspotId) {
|
|
|
13007 |
this.hotspotId = hotspotId;
|
|
|
13008 |
}
|
|
|
13009 |
|
|
|
13010 |
public void unsetHotspotId() {
|
|
|
13011 |
this.hotspotId = null;
|
|
|
13012 |
}
|
|
|
13013 |
|
|
|
13014 |
/** Returns true if field hotspotId is set (has been assigned a value) and false otherwise */
|
|
|
13015 |
public boolean isSetHotspotId() {
|
|
|
13016 |
return this.hotspotId != null;
|
|
|
13017 |
}
|
|
|
13018 |
|
|
|
13019 |
public void setHotspotIdIsSet(boolean value) {
|
|
|
13020 |
if (!value) {
|
|
|
13021 |
this.hotspotId = null;
|
|
|
13022 |
}
|
|
|
13023 |
}
|
|
|
13024 |
|
|
|
13025 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
13026 |
switch (field) {
|
|
|
13027 |
case HOTSPOT_ID:
|
|
|
13028 |
if (value == null) {
|
|
|
13029 |
unsetHotspotId();
|
|
|
13030 |
} else {
|
|
|
13031 |
setHotspotId((String)value);
|
|
|
13032 |
}
|
|
|
13033 |
break;
|
|
|
13034 |
|
|
|
13035 |
}
|
|
|
13036 |
}
|
|
|
13037 |
|
|
|
13038 |
public Object getFieldValue(_Fields field) {
|
|
|
13039 |
switch (field) {
|
|
|
13040 |
case HOTSPOT_ID:
|
|
|
13041 |
return getHotspotId();
|
|
|
13042 |
|
|
|
13043 |
}
|
|
|
13044 |
throw new IllegalStateException();
|
|
|
13045 |
}
|
|
|
13046 |
|
|
|
13047 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
13048 |
public boolean isSet(_Fields field) {
|
|
|
13049 |
if (field == null) {
|
|
|
13050 |
throw new IllegalArgumentException();
|
|
|
13051 |
}
|
|
|
13052 |
|
|
|
13053 |
switch (field) {
|
|
|
13054 |
case HOTSPOT_ID:
|
|
|
13055 |
return isSetHotspotId();
|
|
|
13056 |
}
|
|
|
13057 |
throw new IllegalStateException();
|
|
|
13058 |
}
|
|
|
13059 |
|
|
|
13060 |
@Override
|
|
|
13061 |
public boolean equals(Object that) {
|
|
|
13062 |
if (that == null)
|
|
|
13063 |
return false;
|
|
|
13064 |
if (that instanceof getPickupStoreByHotspotId_args)
|
|
|
13065 |
return this.equals((getPickupStoreByHotspotId_args)that);
|
|
|
13066 |
return false;
|
|
|
13067 |
}
|
|
|
13068 |
|
|
|
13069 |
public boolean equals(getPickupStoreByHotspotId_args that) {
|
|
|
13070 |
if (that == null)
|
|
|
13071 |
return false;
|
|
|
13072 |
|
|
|
13073 |
boolean this_present_hotspotId = true && this.isSetHotspotId();
|
|
|
13074 |
boolean that_present_hotspotId = true && that.isSetHotspotId();
|
|
|
13075 |
if (this_present_hotspotId || that_present_hotspotId) {
|
|
|
13076 |
if (!(this_present_hotspotId && that_present_hotspotId))
|
|
|
13077 |
return false;
|
|
|
13078 |
if (!this.hotspotId.equals(that.hotspotId))
|
|
|
13079 |
return false;
|
|
|
13080 |
}
|
|
|
13081 |
|
|
|
13082 |
return true;
|
|
|
13083 |
}
|
|
|
13084 |
|
|
|
13085 |
@Override
|
|
|
13086 |
public int hashCode() {
|
|
|
13087 |
return 0;
|
|
|
13088 |
}
|
|
|
13089 |
|
|
|
13090 |
public int compareTo(getPickupStoreByHotspotId_args other) {
|
|
|
13091 |
if (!getClass().equals(other.getClass())) {
|
|
|
13092 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
13093 |
}
|
|
|
13094 |
|
|
|
13095 |
int lastComparison = 0;
|
|
|
13096 |
getPickupStoreByHotspotId_args typedOther = (getPickupStoreByHotspotId_args)other;
|
|
|
13097 |
|
|
|
13098 |
lastComparison = Boolean.valueOf(isSetHotspotId()).compareTo(typedOther.isSetHotspotId());
|
|
|
13099 |
if (lastComparison != 0) {
|
|
|
13100 |
return lastComparison;
|
|
|
13101 |
}
|
|
|
13102 |
if (isSetHotspotId()) {
|
|
|
13103 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hotspotId, typedOther.hotspotId);
|
|
|
13104 |
if (lastComparison != 0) {
|
|
|
13105 |
return lastComparison;
|
|
|
13106 |
}
|
|
|
13107 |
}
|
|
|
13108 |
return 0;
|
|
|
13109 |
}
|
|
|
13110 |
|
|
|
13111 |
public _Fields fieldForId(int fieldId) {
|
|
|
13112 |
return _Fields.findByThriftId(fieldId);
|
|
|
13113 |
}
|
|
|
13114 |
|
|
|
13115 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
13116 |
org.apache.thrift.protocol.TField field;
|
|
|
13117 |
iprot.readStructBegin();
|
|
|
13118 |
while (true)
|
|
|
13119 |
{
|
|
|
13120 |
field = iprot.readFieldBegin();
|
|
|
13121 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
13122 |
break;
|
|
|
13123 |
}
|
|
|
13124 |
switch (field.id) {
|
|
|
13125 |
case 1: // HOTSPOT_ID
|
|
|
13126 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
13127 |
this.hotspotId = iprot.readString();
|
|
|
13128 |
} else {
|
|
|
13129 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13130 |
}
|
|
|
13131 |
break;
|
|
|
13132 |
default:
|
|
|
13133 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13134 |
}
|
|
|
13135 |
iprot.readFieldEnd();
|
|
|
13136 |
}
|
|
|
13137 |
iprot.readStructEnd();
|
|
|
13138 |
validate();
|
|
|
13139 |
}
|
|
|
13140 |
|
|
|
13141 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
13142 |
validate();
|
|
|
13143 |
|
|
|
13144 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
13145 |
if (this.hotspotId != null) {
|
|
|
13146 |
oprot.writeFieldBegin(HOTSPOT_ID_FIELD_DESC);
|
|
|
13147 |
oprot.writeString(this.hotspotId);
|
|
|
13148 |
oprot.writeFieldEnd();
|
|
|
13149 |
}
|
|
|
13150 |
oprot.writeFieldStop();
|
|
|
13151 |
oprot.writeStructEnd();
|
|
|
13152 |
}
|
|
|
13153 |
|
|
|
13154 |
@Override
|
|
|
13155 |
public String toString() {
|
|
|
13156 |
StringBuilder sb = new StringBuilder("getPickupStoreByHotspotId_args(");
|
|
|
13157 |
boolean first = true;
|
|
|
13158 |
|
|
|
13159 |
sb.append("hotspotId:");
|
|
|
13160 |
if (this.hotspotId == null) {
|
|
|
13161 |
sb.append("null");
|
|
|
13162 |
} else {
|
|
|
13163 |
sb.append(this.hotspotId);
|
|
|
13164 |
}
|
|
|
13165 |
first = false;
|
|
|
13166 |
sb.append(")");
|
|
|
13167 |
return sb.toString();
|
|
|
13168 |
}
|
|
|
13169 |
|
|
|
13170 |
public void validate() throws org.apache.thrift.TException {
|
|
|
13171 |
// check for required fields
|
|
|
13172 |
}
|
|
|
13173 |
|
|
|
13174 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
13175 |
try {
|
|
|
13176 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
13177 |
} catch (org.apache.thrift.TException te) {
|
|
|
13178 |
throw new java.io.IOException(te);
|
|
|
13179 |
}
|
|
|
13180 |
}
|
|
|
13181 |
|
|
|
13182 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
13183 |
try {
|
|
|
13184 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
13185 |
} catch (org.apache.thrift.TException te) {
|
|
|
13186 |
throw new java.io.IOException(te);
|
|
|
13187 |
}
|
|
|
13188 |
}
|
|
|
13189 |
|
|
|
13190 |
}
|
|
|
13191 |
|
|
|
13192 |
public static class getPickupStoreByHotspotId_result implements org.apache.thrift.TBase<getPickupStoreByHotspotId_result, getPickupStoreByHotspotId_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
13193 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStoreByHotspotId_result");
|
|
|
13194 |
|
|
|
13195 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
|
|
|
13196 |
|
|
|
13197 |
private PickupStore success; // required
|
|
|
13198 |
|
|
|
13199 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
13200 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
13201 |
SUCCESS((short)0, "success");
|
|
|
13202 |
|
|
|
13203 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
13204 |
|
|
|
13205 |
static {
|
|
|
13206 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
13207 |
byName.put(field.getFieldName(), field);
|
|
|
13208 |
}
|
|
|
13209 |
}
|
|
|
13210 |
|
|
|
13211 |
/**
|
|
|
13212 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
13213 |
*/
|
|
|
13214 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
13215 |
switch(fieldId) {
|
|
|
13216 |
case 0: // SUCCESS
|
|
|
13217 |
return SUCCESS;
|
|
|
13218 |
default:
|
|
|
13219 |
return null;
|
|
|
13220 |
}
|
|
|
13221 |
}
|
|
|
13222 |
|
|
|
13223 |
/**
|
|
|
13224 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
13225 |
* if it is not found.
|
|
|
13226 |
*/
|
|
|
13227 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
13228 |
_Fields fields = findByThriftId(fieldId);
|
|
|
13229 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
13230 |
return fields;
|
|
|
13231 |
}
|
|
|
13232 |
|
|
|
13233 |
/**
|
|
|
13234 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
13235 |
*/
|
|
|
13236 |
public static _Fields findByName(String name) {
|
|
|
13237 |
return byName.get(name);
|
|
|
13238 |
}
|
|
|
13239 |
|
|
|
13240 |
private final short _thriftId;
|
|
|
13241 |
private final String _fieldName;
|
|
|
13242 |
|
|
|
13243 |
_Fields(short thriftId, String fieldName) {
|
|
|
13244 |
_thriftId = thriftId;
|
|
|
13245 |
_fieldName = fieldName;
|
|
|
13246 |
}
|
|
|
13247 |
|
|
|
13248 |
public short getThriftFieldId() {
|
|
|
13249 |
return _thriftId;
|
|
|
13250 |
}
|
|
|
13251 |
|
|
|
13252 |
public String getFieldName() {
|
|
|
13253 |
return _fieldName;
|
|
|
13254 |
}
|
|
|
13255 |
}
|
|
|
13256 |
|
|
|
13257 |
// isset id assignments
|
|
|
13258 |
|
|
|
13259 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
13260 |
static {
|
|
|
13261 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
13262 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
13263 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class)));
|
|
|
13264 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
13265 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStoreByHotspotId_result.class, metaDataMap);
|
|
|
13266 |
}
|
|
|
13267 |
|
|
|
13268 |
public getPickupStoreByHotspotId_result() {
|
|
|
13269 |
}
|
|
|
13270 |
|
|
|
13271 |
public getPickupStoreByHotspotId_result(
|
|
|
13272 |
PickupStore success)
|
|
|
13273 |
{
|
|
|
13274 |
this();
|
|
|
13275 |
this.success = success;
|
|
|
13276 |
}
|
|
|
13277 |
|
|
|
13278 |
/**
|
|
|
13279 |
* Performs a deep copy on <i>other</i>.
|
|
|
13280 |
*/
|
|
|
13281 |
public getPickupStoreByHotspotId_result(getPickupStoreByHotspotId_result other) {
|
|
|
13282 |
if (other.isSetSuccess()) {
|
|
|
13283 |
this.success = new PickupStore(other.success);
|
|
|
13284 |
}
|
|
|
13285 |
}
|
|
|
13286 |
|
|
|
13287 |
public getPickupStoreByHotspotId_result deepCopy() {
|
|
|
13288 |
return new getPickupStoreByHotspotId_result(this);
|
|
|
13289 |
}
|
|
|
13290 |
|
|
|
13291 |
@Override
|
|
|
13292 |
public void clear() {
|
|
|
13293 |
this.success = null;
|
|
|
13294 |
}
|
|
|
13295 |
|
|
|
13296 |
public PickupStore getSuccess() {
|
|
|
13297 |
return this.success;
|
|
|
13298 |
}
|
|
|
13299 |
|
|
|
13300 |
public void setSuccess(PickupStore success) {
|
|
|
13301 |
this.success = success;
|
|
|
13302 |
}
|
|
|
13303 |
|
|
|
13304 |
public void unsetSuccess() {
|
|
|
13305 |
this.success = null;
|
|
|
13306 |
}
|
|
|
13307 |
|
|
|
13308 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
13309 |
public boolean isSetSuccess() {
|
|
|
13310 |
return this.success != null;
|
|
|
13311 |
}
|
|
|
13312 |
|
|
|
13313 |
public void setSuccessIsSet(boolean value) {
|
|
|
13314 |
if (!value) {
|
|
|
13315 |
this.success = null;
|
|
|
13316 |
}
|
|
|
13317 |
}
|
|
|
13318 |
|
|
|
13319 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
13320 |
switch (field) {
|
|
|
13321 |
case SUCCESS:
|
|
|
13322 |
if (value == null) {
|
|
|
13323 |
unsetSuccess();
|
|
|
13324 |
} else {
|
|
|
13325 |
setSuccess((PickupStore)value);
|
|
|
13326 |
}
|
|
|
13327 |
break;
|
|
|
13328 |
|
|
|
13329 |
}
|
|
|
13330 |
}
|
|
|
13331 |
|
|
|
13332 |
public Object getFieldValue(_Fields field) {
|
|
|
13333 |
switch (field) {
|
|
|
13334 |
case SUCCESS:
|
|
|
13335 |
return getSuccess();
|
|
|
13336 |
|
|
|
13337 |
}
|
|
|
13338 |
throw new IllegalStateException();
|
|
|
13339 |
}
|
|
|
13340 |
|
|
|
13341 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
13342 |
public boolean isSet(_Fields field) {
|
|
|
13343 |
if (field == null) {
|
|
|
13344 |
throw new IllegalArgumentException();
|
|
|
13345 |
}
|
|
|
13346 |
|
|
|
13347 |
switch (field) {
|
|
|
13348 |
case SUCCESS:
|
|
|
13349 |
return isSetSuccess();
|
|
|
13350 |
}
|
|
|
13351 |
throw new IllegalStateException();
|
|
|
13352 |
}
|
|
|
13353 |
|
|
|
13354 |
@Override
|
|
|
13355 |
public boolean equals(Object that) {
|
|
|
13356 |
if (that == null)
|
|
|
13357 |
return false;
|
|
|
13358 |
if (that instanceof getPickupStoreByHotspotId_result)
|
|
|
13359 |
return this.equals((getPickupStoreByHotspotId_result)that);
|
|
|
13360 |
return false;
|
|
|
13361 |
}
|
|
|
13362 |
|
|
|
13363 |
public boolean equals(getPickupStoreByHotspotId_result that) {
|
|
|
13364 |
if (that == null)
|
|
|
13365 |
return false;
|
|
|
13366 |
|
|
|
13367 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
13368 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
13369 |
if (this_present_success || that_present_success) {
|
|
|
13370 |
if (!(this_present_success && that_present_success))
|
|
|
13371 |
return false;
|
|
|
13372 |
if (!this.success.equals(that.success))
|
|
|
13373 |
return false;
|
|
|
13374 |
}
|
|
|
13375 |
|
|
|
13376 |
return true;
|
|
|
13377 |
}
|
|
|
13378 |
|
|
|
13379 |
@Override
|
|
|
13380 |
public int hashCode() {
|
|
|
13381 |
return 0;
|
|
|
13382 |
}
|
|
|
13383 |
|
|
|
13384 |
public int compareTo(getPickupStoreByHotspotId_result other) {
|
|
|
13385 |
if (!getClass().equals(other.getClass())) {
|
|
|
13386 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
13387 |
}
|
|
|
13388 |
|
|
|
13389 |
int lastComparison = 0;
|
|
|
13390 |
getPickupStoreByHotspotId_result typedOther = (getPickupStoreByHotspotId_result)other;
|
|
|
13391 |
|
|
|
13392 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
13393 |
if (lastComparison != 0) {
|
|
|
13394 |
return lastComparison;
|
|
|
13395 |
}
|
|
|
13396 |
if (isSetSuccess()) {
|
|
|
13397 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
13398 |
if (lastComparison != 0) {
|
|
|
13399 |
return lastComparison;
|
|
|
13400 |
}
|
|
|
13401 |
}
|
|
|
13402 |
return 0;
|
|
|
13403 |
}
|
|
|
13404 |
|
|
|
13405 |
public _Fields fieldForId(int fieldId) {
|
|
|
13406 |
return _Fields.findByThriftId(fieldId);
|
|
|
13407 |
}
|
|
|
13408 |
|
|
|
13409 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
13410 |
org.apache.thrift.protocol.TField field;
|
|
|
13411 |
iprot.readStructBegin();
|
|
|
13412 |
while (true)
|
|
|
13413 |
{
|
|
|
13414 |
field = iprot.readFieldBegin();
|
|
|
13415 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
13416 |
break;
|
|
|
13417 |
}
|
|
|
13418 |
switch (field.id) {
|
|
|
13419 |
case 0: // SUCCESS
|
|
|
13420 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
13421 |
this.success = new PickupStore();
|
|
|
13422 |
this.success.read(iprot);
|
|
|
13423 |
} else {
|
|
|
13424 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13425 |
}
|
|
|
13426 |
break;
|
|
|
13427 |
default:
|
|
|
13428 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13429 |
}
|
|
|
13430 |
iprot.readFieldEnd();
|
|
|
13431 |
}
|
|
|
13432 |
iprot.readStructEnd();
|
|
|
13433 |
validate();
|
|
|
13434 |
}
|
|
|
13435 |
|
|
|
13436 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
13437 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
13438 |
|
|
|
13439 |
if (this.isSetSuccess()) {
|
|
|
13440 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
13441 |
this.success.write(oprot);
|
|
|
13442 |
oprot.writeFieldEnd();
|
|
|
13443 |
}
|
|
|
13444 |
oprot.writeFieldStop();
|
|
|
13445 |
oprot.writeStructEnd();
|
|
|
13446 |
}
|
|
|
13447 |
|
|
|
13448 |
@Override
|
|
|
13449 |
public String toString() {
|
|
|
13450 |
StringBuilder sb = new StringBuilder("getPickupStoreByHotspotId_result(");
|
|
|
13451 |
boolean first = true;
|
|
|
13452 |
|
|
|
13453 |
sb.append("success:");
|
|
|
13454 |
if (this.success == null) {
|
|
|
13455 |
sb.append("null");
|
|
|
13456 |
} else {
|
|
|
13457 |
sb.append(this.success);
|
|
|
13458 |
}
|
|
|
13459 |
first = false;
|
|
|
13460 |
sb.append(")");
|
|
|
13461 |
return sb.toString();
|
|
|
13462 |
}
|
|
|
13463 |
|
|
|
13464 |
public void validate() throws org.apache.thrift.TException {
|
|
|
13465 |
// check for required fields
|
|
|
13466 |
}
|
|
|
13467 |
|
|
|
13468 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
13469 |
try {
|
|
|
13470 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
13471 |
} catch (org.apache.thrift.TException te) {
|
|
|
13472 |
throw new java.io.IOException(te);
|
|
|
13473 |
}
|
|
|
13474 |
}
|
|
|
13475 |
|
|
|
13476 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
13477 |
try {
|
|
|
13478 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
13479 |
} catch (org.apache.thrift.TException te) {
|
|
|
13480 |
throw new java.io.IOException(te);
|
|
|
13481 |
}
|
|
|
13482 |
}
|
|
|
13483 |
|
|
|
13484 |
}
|
|
|
13485 |
|
| 6322 |
amar.kumar |
13486 |
public static class addPincode_args implements org.apache.thrift.TBase<addPincode_args, addPincode_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
13487 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPincode_args");
|
|
|
13488 |
|
|
|
13489 |
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)1);
|
|
|
13490 |
private static final org.apache.thrift.protocol.TField PINCODE_FIELD_DESC = new org.apache.thrift.protocol.TField("pincode", org.apache.thrift.protocol.TType.STRING, (short)2);
|
|
|
13491 |
private static final org.apache.thrift.protocol.TField DEST_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("destCode", org.apache.thrift.protocol.TType.STRING, (short)3);
|
|
|
13492 |
private static final org.apache.thrift.protocol.TField EXP_FIELD_DESC = new org.apache.thrift.protocol.TField("exp", org.apache.thrift.protocol.TType.BOOL, (short)4);
|
|
|
13493 |
private static final org.apache.thrift.protocol.TField COD_FIELD_DESC = new org.apache.thrift.protocol.TField("cod", org.apache.thrift.protocol.TType.BOOL, (short)5);
|
|
|
13494 |
private static final org.apache.thrift.protocol.TField STATION_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("stationType", org.apache.thrift.protocol.TType.I32, (short)6);
|
| 6524 |
rajveer |
13495 |
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)7);
|
| 6322 |
amar.kumar |
13496 |
|
|
|
13497 |
private long providerId; // required
|
|
|
13498 |
private String pincode; // required
|
|
|
13499 |
private String destCode; // required
|
|
|
13500 |
private boolean exp; // required
|
|
|
13501 |
private boolean cod; // required
|
|
|
13502 |
private int stationType; // required
|
| 6524 |
rajveer |
13503 |
private boolean otgAvailable; // required
|
| 6322 |
amar.kumar |
13504 |
|
|
|
13505 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
13506 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
13507 |
PROVIDER_ID((short)1, "providerId"),
|
|
|
13508 |
PINCODE((short)2, "pincode"),
|
|
|
13509 |
DEST_CODE((short)3, "destCode"),
|
|
|
13510 |
EXP((short)4, "exp"),
|
|
|
13511 |
COD((short)5, "cod"),
|
| 6524 |
rajveer |
13512 |
STATION_TYPE((short)6, "stationType"),
|
|
|
13513 |
OTG_AVAILABLE((short)7, "otgAvailable");
|
| 6322 |
amar.kumar |
13514 |
|
|
|
13515 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
13516 |
|
|
|
13517 |
static {
|
|
|
13518 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
13519 |
byName.put(field.getFieldName(), field);
|
|
|
13520 |
}
|
|
|
13521 |
}
|
|
|
13522 |
|
|
|
13523 |
/**
|
|
|
13524 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
13525 |
*/
|
|
|
13526 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
13527 |
switch(fieldId) {
|
|
|
13528 |
case 1: // PROVIDER_ID
|
|
|
13529 |
return PROVIDER_ID;
|
|
|
13530 |
case 2: // PINCODE
|
|
|
13531 |
return PINCODE;
|
|
|
13532 |
case 3: // DEST_CODE
|
|
|
13533 |
return DEST_CODE;
|
|
|
13534 |
case 4: // EXP
|
|
|
13535 |
return EXP;
|
|
|
13536 |
case 5: // COD
|
|
|
13537 |
return COD;
|
|
|
13538 |
case 6: // STATION_TYPE
|
|
|
13539 |
return STATION_TYPE;
|
| 6524 |
rajveer |
13540 |
case 7: // OTG_AVAILABLE
|
|
|
13541 |
return OTG_AVAILABLE;
|
| 6322 |
amar.kumar |
13542 |
default:
|
|
|
13543 |
return null;
|
|
|
13544 |
}
|
|
|
13545 |
}
|
|
|
13546 |
|
|
|
13547 |
/**
|
|
|
13548 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
13549 |
* if it is not found.
|
|
|
13550 |
*/
|
|
|
13551 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
13552 |
_Fields fields = findByThriftId(fieldId);
|
|
|
13553 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
13554 |
return fields;
|
|
|
13555 |
}
|
|
|
13556 |
|
|
|
13557 |
/**
|
|
|
13558 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
13559 |
*/
|
|
|
13560 |
public static _Fields findByName(String name) {
|
|
|
13561 |
return byName.get(name);
|
|
|
13562 |
}
|
|
|
13563 |
|
|
|
13564 |
private final short _thriftId;
|
|
|
13565 |
private final String _fieldName;
|
|
|
13566 |
|
|
|
13567 |
_Fields(short thriftId, String fieldName) {
|
|
|
13568 |
_thriftId = thriftId;
|
|
|
13569 |
_fieldName = fieldName;
|
|
|
13570 |
}
|
|
|
13571 |
|
|
|
13572 |
public short getThriftFieldId() {
|
|
|
13573 |
return _thriftId;
|
|
|
13574 |
}
|
|
|
13575 |
|
|
|
13576 |
public String getFieldName() {
|
|
|
13577 |
return _fieldName;
|
|
|
13578 |
}
|
|
|
13579 |
}
|
|
|
13580 |
|
|
|
13581 |
// isset id assignments
|
|
|
13582 |
private static final int __PROVIDERID_ISSET_ID = 0;
|
|
|
13583 |
private static final int __EXP_ISSET_ID = 1;
|
|
|
13584 |
private static final int __COD_ISSET_ID = 2;
|
|
|
13585 |
private static final int __STATIONTYPE_ISSET_ID = 3;
|
| 6524 |
rajveer |
13586 |
private static final int __OTGAVAILABLE_ISSET_ID = 4;
|
|
|
13587 |
private BitSet __isset_bit_vector = new BitSet(5);
|
| 6322 |
amar.kumar |
13588 |
|
|
|
13589 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
13590 |
static {
|
|
|
13591 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
13592 |
tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
13593 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
13594 |
tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
13595 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
13596 |
tmpMap.put(_Fields.DEST_CODE, new org.apache.thrift.meta_data.FieldMetaData("destCode", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
13597 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
13598 |
tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
13599 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
|
|
13600 |
tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
13601 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
|
|
13602 |
tmpMap.put(_Fields.STATION_TYPE, new org.apache.thrift.meta_data.FieldMetaData("stationType", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
13603 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
|
| 6524 |
rajveer |
13604 |
tmpMap.put(_Fields.OTG_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("otgAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
13605 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
| 6322 |
amar.kumar |
13606 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
13607 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_args.class, metaDataMap);
|
|
|
13608 |
}
|
|
|
13609 |
|
|
|
13610 |
public addPincode_args() {
|
|
|
13611 |
}
|
|
|
13612 |
|
|
|
13613 |
public addPincode_args(
|
|
|
13614 |
long providerId,
|
|
|
13615 |
String pincode,
|
|
|
13616 |
String destCode,
|
|
|
13617 |
boolean exp,
|
|
|
13618 |
boolean cod,
|
| 6524 |
rajveer |
13619 |
int stationType,
|
|
|
13620 |
boolean otgAvailable)
|
| 6322 |
amar.kumar |
13621 |
{
|
|
|
13622 |
this();
|
|
|
13623 |
this.providerId = providerId;
|
|
|
13624 |
setProviderIdIsSet(true);
|
|
|
13625 |
this.pincode = pincode;
|
|
|
13626 |
this.destCode = destCode;
|
|
|
13627 |
this.exp = exp;
|
|
|
13628 |
setExpIsSet(true);
|
|
|
13629 |
this.cod = cod;
|
|
|
13630 |
setCodIsSet(true);
|
|
|
13631 |
this.stationType = stationType;
|
|
|
13632 |
setStationTypeIsSet(true);
|
| 6524 |
rajveer |
13633 |
this.otgAvailable = otgAvailable;
|
|
|
13634 |
setOtgAvailableIsSet(true);
|
| 6322 |
amar.kumar |
13635 |
}
|
|
|
13636 |
|
|
|
13637 |
/**
|
|
|
13638 |
* Performs a deep copy on <i>other</i>.
|
|
|
13639 |
*/
|
|
|
13640 |
public addPincode_args(addPincode_args other) {
|
|
|
13641 |
__isset_bit_vector.clear();
|
|
|
13642 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
13643 |
this.providerId = other.providerId;
|
|
|
13644 |
if (other.isSetPincode()) {
|
|
|
13645 |
this.pincode = other.pincode;
|
|
|
13646 |
}
|
|
|
13647 |
if (other.isSetDestCode()) {
|
|
|
13648 |
this.destCode = other.destCode;
|
|
|
13649 |
}
|
|
|
13650 |
this.exp = other.exp;
|
|
|
13651 |
this.cod = other.cod;
|
|
|
13652 |
this.stationType = other.stationType;
|
| 6524 |
rajveer |
13653 |
this.otgAvailable = other.otgAvailable;
|
| 6322 |
amar.kumar |
13654 |
}
|
|
|
13655 |
|
|
|
13656 |
public addPincode_args deepCopy() {
|
|
|
13657 |
return new addPincode_args(this);
|
|
|
13658 |
}
|
|
|
13659 |
|
|
|
13660 |
@Override
|
|
|
13661 |
public void clear() {
|
|
|
13662 |
setProviderIdIsSet(false);
|
|
|
13663 |
this.providerId = 0;
|
|
|
13664 |
this.pincode = null;
|
|
|
13665 |
this.destCode = null;
|
|
|
13666 |
setExpIsSet(false);
|
|
|
13667 |
this.exp = false;
|
|
|
13668 |
setCodIsSet(false);
|
|
|
13669 |
this.cod = false;
|
|
|
13670 |
setStationTypeIsSet(false);
|
|
|
13671 |
this.stationType = 0;
|
| 6524 |
rajveer |
13672 |
setOtgAvailableIsSet(false);
|
|
|
13673 |
this.otgAvailable = false;
|
| 6322 |
amar.kumar |
13674 |
}
|
|
|
13675 |
|
|
|
13676 |
public long getProviderId() {
|
|
|
13677 |
return this.providerId;
|
|
|
13678 |
}
|
|
|
13679 |
|
|
|
13680 |
public void setProviderId(long providerId) {
|
|
|
13681 |
this.providerId = providerId;
|
|
|
13682 |
setProviderIdIsSet(true);
|
|
|
13683 |
}
|
|
|
13684 |
|
|
|
13685 |
public void unsetProviderId() {
|
|
|
13686 |
__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
|
|
|
13687 |
}
|
|
|
13688 |
|
|
|
13689 |
/** Returns true if field providerId is set (has been assigned a value) and false otherwise */
|
|
|
13690 |
public boolean isSetProviderId() {
|
|
|
13691 |
return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
|
|
|
13692 |
}
|
|
|
13693 |
|
|
|
13694 |
public void setProviderIdIsSet(boolean value) {
|
|
|
13695 |
__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
|
|
|
13696 |
}
|
|
|
13697 |
|
|
|
13698 |
public String getPincode() {
|
|
|
13699 |
return this.pincode;
|
|
|
13700 |
}
|
|
|
13701 |
|
|
|
13702 |
public void setPincode(String pincode) {
|
|
|
13703 |
this.pincode = pincode;
|
|
|
13704 |
}
|
|
|
13705 |
|
|
|
13706 |
public void unsetPincode() {
|
|
|
13707 |
this.pincode = null;
|
|
|
13708 |
}
|
|
|
13709 |
|
|
|
13710 |
/** Returns true if field pincode is set (has been assigned a value) and false otherwise */
|
|
|
13711 |
public boolean isSetPincode() {
|
|
|
13712 |
return this.pincode != null;
|
|
|
13713 |
}
|
|
|
13714 |
|
|
|
13715 |
public void setPincodeIsSet(boolean value) {
|
|
|
13716 |
if (!value) {
|
|
|
13717 |
this.pincode = null;
|
|
|
13718 |
}
|
|
|
13719 |
}
|
|
|
13720 |
|
|
|
13721 |
public String getDestCode() {
|
|
|
13722 |
return this.destCode;
|
|
|
13723 |
}
|
|
|
13724 |
|
|
|
13725 |
public void setDestCode(String destCode) {
|
|
|
13726 |
this.destCode = destCode;
|
|
|
13727 |
}
|
|
|
13728 |
|
|
|
13729 |
public void unsetDestCode() {
|
|
|
13730 |
this.destCode = null;
|
|
|
13731 |
}
|
|
|
13732 |
|
|
|
13733 |
/** Returns true if field destCode is set (has been assigned a value) and false otherwise */
|
|
|
13734 |
public boolean isSetDestCode() {
|
|
|
13735 |
return this.destCode != null;
|
|
|
13736 |
}
|
|
|
13737 |
|
|
|
13738 |
public void setDestCodeIsSet(boolean value) {
|
|
|
13739 |
if (!value) {
|
|
|
13740 |
this.destCode = null;
|
|
|
13741 |
}
|
|
|
13742 |
}
|
|
|
13743 |
|
|
|
13744 |
public boolean isExp() {
|
|
|
13745 |
return this.exp;
|
|
|
13746 |
}
|
|
|
13747 |
|
|
|
13748 |
public void setExp(boolean exp) {
|
|
|
13749 |
this.exp = exp;
|
|
|
13750 |
setExpIsSet(true);
|
|
|
13751 |
}
|
|
|
13752 |
|
|
|
13753 |
public void unsetExp() {
|
|
|
13754 |
__isset_bit_vector.clear(__EXP_ISSET_ID);
|
|
|
13755 |
}
|
|
|
13756 |
|
|
|
13757 |
/** Returns true if field exp is set (has been assigned a value) and false otherwise */
|
|
|
13758 |
public boolean isSetExp() {
|
|
|
13759 |
return __isset_bit_vector.get(__EXP_ISSET_ID);
|
|
|
13760 |
}
|
|
|
13761 |
|
|
|
13762 |
public void setExpIsSet(boolean value) {
|
|
|
13763 |
__isset_bit_vector.set(__EXP_ISSET_ID, value);
|
|
|
13764 |
}
|
|
|
13765 |
|
|
|
13766 |
public boolean isCod() {
|
|
|
13767 |
return this.cod;
|
|
|
13768 |
}
|
|
|
13769 |
|
|
|
13770 |
public void setCod(boolean cod) {
|
|
|
13771 |
this.cod = cod;
|
|
|
13772 |
setCodIsSet(true);
|
|
|
13773 |
}
|
|
|
13774 |
|
|
|
13775 |
public void unsetCod() {
|
|
|
13776 |
__isset_bit_vector.clear(__COD_ISSET_ID);
|
|
|
13777 |
}
|
|
|
13778 |
|
|
|
13779 |
/** Returns true if field cod is set (has been assigned a value) and false otherwise */
|
|
|
13780 |
public boolean isSetCod() {
|
|
|
13781 |
return __isset_bit_vector.get(__COD_ISSET_ID);
|
|
|
13782 |
}
|
|
|
13783 |
|
|
|
13784 |
public void setCodIsSet(boolean value) {
|
|
|
13785 |
__isset_bit_vector.set(__COD_ISSET_ID, value);
|
|
|
13786 |
}
|
|
|
13787 |
|
|
|
13788 |
public int getStationType() {
|
|
|
13789 |
return this.stationType;
|
|
|
13790 |
}
|
|
|
13791 |
|
|
|
13792 |
public void setStationType(int stationType) {
|
|
|
13793 |
this.stationType = stationType;
|
|
|
13794 |
setStationTypeIsSet(true);
|
|
|
13795 |
}
|
|
|
13796 |
|
|
|
13797 |
public void unsetStationType() {
|
|
|
13798 |
__isset_bit_vector.clear(__STATIONTYPE_ISSET_ID);
|
|
|
13799 |
}
|
|
|
13800 |
|
|
|
13801 |
/** Returns true if field stationType is set (has been assigned a value) and false otherwise */
|
|
|
13802 |
public boolean isSetStationType() {
|
|
|
13803 |
return __isset_bit_vector.get(__STATIONTYPE_ISSET_ID);
|
|
|
13804 |
}
|
|
|
13805 |
|
|
|
13806 |
public void setStationTypeIsSet(boolean value) {
|
|
|
13807 |
__isset_bit_vector.set(__STATIONTYPE_ISSET_ID, value);
|
|
|
13808 |
}
|
|
|
13809 |
|
| 6524 |
rajveer |
13810 |
public boolean isOtgAvailable() {
|
|
|
13811 |
return this.otgAvailable;
|
|
|
13812 |
}
|
|
|
13813 |
|
|
|
13814 |
public void setOtgAvailable(boolean otgAvailable) {
|
|
|
13815 |
this.otgAvailable = otgAvailable;
|
|
|
13816 |
setOtgAvailableIsSet(true);
|
|
|
13817 |
}
|
|
|
13818 |
|
|
|
13819 |
public void unsetOtgAvailable() {
|
|
|
13820 |
__isset_bit_vector.clear(__OTGAVAILABLE_ISSET_ID);
|
|
|
13821 |
}
|
|
|
13822 |
|
|
|
13823 |
/** Returns true if field otgAvailable is set (has been assigned a value) and false otherwise */
|
|
|
13824 |
public boolean isSetOtgAvailable() {
|
|
|
13825 |
return __isset_bit_vector.get(__OTGAVAILABLE_ISSET_ID);
|
|
|
13826 |
}
|
|
|
13827 |
|
|
|
13828 |
public void setOtgAvailableIsSet(boolean value) {
|
|
|
13829 |
__isset_bit_vector.set(__OTGAVAILABLE_ISSET_ID, value);
|
|
|
13830 |
}
|
|
|
13831 |
|
| 6322 |
amar.kumar |
13832 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
13833 |
switch (field) {
|
|
|
13834 |
case PROVIDER_ID:
|
|
|
13835 |
if (value == null) {
|
|
|
13836 |
unsetProviderId();
|
|
|
13837 |
} else {
|
|
|
13838 |
setProviderId((Long)value);
|
|
|
13839 |
}
|
|
|
13840 |
break;
|
|
|
13841 |
|
|
|
13842 |
case PINCODE:
|
|
|
13843 |
if (value == null) {
|
|
|
13844 |
unsetPincode();
|
|
|
13845 |
} else {
|
|
|
13846 |
setPincode((String)value);
|
|
|
13847 |
}
|
|
|
13848 |
break;
|
|
|
13849 |
|
|
|
13850 |
case DEST_CODE:
|
|
|
13851 |
if (value == null) {
|
|
|
13852 |
unsetDestCode();
|
|
|
13853 |
} else {
|
|
|
13854 |
setDestCode((String)value);
|
|
|
13855 |
}
|
|
|
13856 |
break;
|
|
|
13857 |
|
|
|
13858 |
case EXP:
|
|
|
13859 |
if (value == null) {
|
|
|
13860 |
unsetExp();
|
|
|
13861 |
} else {
|
|
|
13862 |
setExp((Boolean)value);
|
|
|
13863 |
}
|
|
|
13864 |
break;
|
|
|
13865 |
|
|
|
13866 |
case COD:
|
|
|
13867 |
if (value == null) {
|
|
|
13868 |
unsetCod();
|
|
|
13869 |
} else {
|
|
|
13870 |
setCod((Boolean)value);
|
|
|
13871 |
}
|
|
|
13872 |
break;
|
|
|
13873 |
|
|
|
13874 |
case STATION_TYPE:
|
|
|
13875 |
if (value == null) {
|
|
|
13876 |
unsetStationType();
|
|
|
13877 |
} else {
|
|
|
13878 |
setStationType((Integer)value);
|
|
|
13879 |
}
|
|
|
13880 |
break;
|
|
|
13881 |
|
| 6524 |
rajveer |
13882 |
case OTG_AVAILABLE:
|
|
|
13883 |
if (value == null) {
|
|
|
13884 |
unsetOtgAvailable();
|
|
|
13885 |
} else {
|
|
|
13886 |
setOtgAvailable((Boolean)value);
|
|
|
13887 |
}
|
|
|
13888 |
break;
|
|
|
13889 |
|
| 6322 |
amar.kumar |
13890 |
}
|
|
|
13891 |
}
|
|
|
13892 |
|
|
|
13893 |
public Object getFieldValue(_Fields field) {
|
|
|
13894 |
switch (field) {
|
|
|
13895 |
case PROVIDER_ID:
|
|
|
13896 |
return Long.valueOf(getProviderId());
|
|
|
13897 |
|
|
|
13898 |
case PINCODE:
|
|
|
13899 |
return getPincode();
|
|
|
13900 |
|
|
|
13901 |
case DEST_CODE:
|
|
|
13902 |
return getDestCode();
|
|
|
13903 |
|
|
|
13904 |
case EXP:
|
|
|
13905 |
return Boolean.valueOf(isExp());
|
|
|
13906 |
|
|
|
13907 |
case COD:
|
|
|
13908 |
return Boolean.valueOf(isCod());
|
|
|
13909 |
|
|
|
13910 |
case STATION_TYPE:
|
|
|
13911 |
return Integer.valueOf(getStationType());
|
|
|
13912 |
|
| 6524 |
rajveer |
13913 |
case OTG_AVAILABLE:
|
|
|
13914 |
return Boolean.valueOf(isOtgAvailable());
|
|
|
13915 |
|
| 6322 |
amar.kumar |
13916 |
}
|
|
|
13917 |
throw new IllegalStateException();
|
|
|
13918 |
}
|
|
|
13919 |
|
|
|
13920 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
13921 |
public boolean isSet(_Fields field) {
|
|
|
13922 |
if (field == null) {
|
|
|
13923 |
throw new IllegalArgumentException();
|
|
|
13924 |
}
|
|
|
13925 |
|
|
|
13926 |
switch (field) {
|
|
|
13927 |
case PROVIDER_ID:
|
|
|
13928 |
return isSetProviderId();
|
|
|
13929 |
case PINCODE:
|
|
|
13930 |
return isSetPincode();
|
|
|
13931 |
case DEST_CODE:
|
|
|
13932 |
return isSetDestCode();
|
|
|
13933 |
case EXP:
|
|
|
13934 |
return isSetExp();
|
|
|
13935 |
case COD:
|
|
|
13936 |
return isSetCod();
|
|
|
13937 |
case STATION_TYPE:
|
|
|
13938 |
return isSetStationType();
|
| 6524 |
rajveer |
13939 |
case OTG_AVAILABLE:
|
|
|
13940 |
return isSetOtgAvailable();
|
| 6322 |
amar.kumar |
13941 |
}
|
|
|
13942 |
throw new IllegalStateException();
|
|
|
13943 |
}
|
|
|
13944 |
|
|
|
13945 |
@Override
|
|
|
13946 |
public boolean equals(Object that) {
|
|
|
13947 |
if (that == null)
|
|
|
13948 |
return false;
|
|
|
13949 |
if (that instanceof addPincode_args)
|
|
|
13950 |
return this.equals((addPincode_args)that);
|
|
|
13951 |
return false;
|
|
|
13952 |
}
|
|
|
13953 |
|
|
|
13954 |
public boolean equals(addPincode_args that) {
|
|
|
13955 |
if (that == null)
|
|
|
13956 |
return false;
|
|
|
13957 |
|
|
|
13958 |
boolean this_present_providerId = true;
|
|
|
13959 |
boolean that_present_providerId = true;
|
|
|
13960 |
if (this_present_providerId || that_present_providerId) {
|
|
|
13961 |
if (!(this_present_providerId && that_present_providerId))
|
|
|
13962 |
return false;
|
|
|
13963 |
if (this.providerId != that.providerId)
|
|
|
13964 |
return false;
|
|
|
13965 |
}
|
|
|
13966 |
|
|
|
13967 |
boolean this_present_pincode = true && this.isSetPincode();
|
|
|
13968 |
boolean that_present_pincode = true && that.isSetPincode();
|
|
|
13969 |
if (this_present_pincode || that_present_pincode) {
|
|
|
13970 |
if (!(this_present_pincode && that_present_pincode))
|
|
|
13971 |
return false;
|
|
|
13972 |
if (!this.pincode.equals(that.pincode))
|
|
|
13973 |
return false;
|
|
|
13974 |
}
|
|
|
13975 |
|
|
|
13976 |
boolean this_present_destCode = true && this.isSetDestCode();
|
|
|
13977 |
boolean that_present_destCode = true && that.isSetDestCode();
|
|
|
13978 |
if (this_present_destCode || that_present_destCode) {
|
|
|
13979 |
if (!(this_present_destCode && that_present_destCode))
|
|
|
13980 |
return false;
|
|
|
13981 |
if (!this.destCode.equals(that.destCode))
|
|
|
13982 |
return false;
|
|
|
13983 |
}
|
|
|
13984 |
|
|
|
13985 |
boolean this_present_exp = true;
|
|
|
13986 |
boolean that_present_exp = true;
|
|
|
13987 |
if (this_present_exp || that_present_exp) {
|
|
|
13988 |
if (!(this_present_exp && that_present_exp))
|
|
|
13989 |
return false;
|
|
|
13990 |
if (this.exp != that.exp)
|
|
|
13991 |
return false;
|
|
|
13992 |
}
|
|
|
13993 |
|
|
|
13994 |
boolean this_present_cod = true;
|
|
|
13995 |
boolean that_present_cod = true;
|
|
|
13996 |
if (this_present_cod || that_present_cod) {
|
|
|
13997 |
if (!(this_present_cod && that_present_cod))
|
|
|
13998 |
return false;
|
|
|
13999 |
if (this.cod != that.cod)
|
|
|
14000 |
return false;
|
|
|
14001 |
}
|
|
|
14002 |
|
|
|
14003 |
boolean this_present_stationType = true;
|
|
|
14004 |
boolean that_present_stationType = true;
|
|
|
14005 |
if (this_present_stationType || that_present_stationType) {
|
|
|
14006 |
if (!(this_present_stationType && that_present_stationType))
|
|
|
14007 |
return false;
|
|
|
14008 |
if (this.stationType != that.stationType)
|
|
|
14009 |
return false;
|
|
|
14010 |
}
|
|
|
14011 |
|
| 6524 |
rajveer |
14012 |
boolean this_present_otgAvailable = true;
|
|
|
14013 |
boolean that_present_otgAvailable = true;
|
|
|
14014 |
if (this_present_otgAvailable || that_present_otgAvailable) {
|
|
|
14015 |
if (!(this_present_otgAvailable && that_present_otgAvailable))
|
|
|
14016 |
return false;
|
|
|
14017 |
if (this.otgAvailable != that.otgAvailable)
|
|
|
14018 |
return false;
|
|
|
14019 |
}
|
|
|
14020 |
|
| 6322 |
amar.kumar |
14021 |
return true;
|
|
|
14022 |
}
|
|
|
14023 |
|
|
|
14024 |
@Override
|
|
|
14025 |
public int hashCode() {
|
|
|
14026 |
return 0;
|
|
|
14027 |
}
|
|
|
14028 |
|
|
|
14029 |
public int compareTo(addPincode_args other) {
|
|
|
14030 |
if (!getClass().equals(other.getClass())) {
|
|
|
14031 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
14032 |
}
|
|
|
14033 |
|
|
|
14034 |
int lastComparison = 0;
|
|
|
14035 |
addPincode_args typedOther = (addPincode_args)other;
|
|
|
14036 |
|
|
|
14037 |
lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
|
|
|
14038 |
if (lastComparison != 0) {
|
|
|
14039 |
return lastComparison;
|
|
|
14040 |
}
|
|
|
14041 |
if (isSetProviderId()) {
|
|
|
14042 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
|
|
|
14043 |
if (lastComparison != 0) {
|
|
|
14044 |
return lastComparison;
|
|
|
14045 |
}
|
|
|
14046 |
}
|
|
|
14047 |
lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
|
|
|
14048 |
if (lastComparison != 0) {
|
|
|
14049 |
return lastComparison;
|
|
|
14050 |
}
|
|
|
14051 |
if (isSetPincode()) {
|
|
|
14052 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
|
|
|
14053 |
if (lastComparison != 0) {
|
|
|
14054 |
return lastComparison;
|
|
|
14055 |
}
|
|
|
14056 |
}
|
|
|
14057 |
lastComparison = Boolean.valueOf(isSetDestCode()).compareTo(typedOther.isSetDestCode());
|
|
|
14058 |
if (lastComparison != 0) {
|
|
|
14059 |
return lastComparison;
|
|
|
14060 |
}
|
|
|
14061 |
if (isSetDestCode()) {
|
|
|
14062 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destCode, typedOther.destCode);
|
|
|
14063 |
if (lastComparison != 0) {
|
|
|
14064 |
return lastComparison;
|
|
|
14065 |
}
|
|
|
14066 |
}
|
|
|
14067 |
lastComparison = Boolean.valueOf(isSetExp()).compareTo(typedOther.isSetExp());
|
|
|
14068 |
if (lastComparison != 0) {
|
|
|
14069 |
return lastComparison;
|
|
|
14070 |
}
|
|
|
14071 |
if (isSetExp()) {
|
|
|
14072 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exp, typedOther.exp);
|
|
|
14073 |
if (lastComparison != 0) {
|
|
|
14074 |
return lastComparison;
|
|
|
14075 |
}
|
|
|
14076 |
}
|
|
|
14077 |
lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
|
|
|
14078 |
if (lastComparison != 0) {
|
|
|
14079 |
return lastComparison;
|
|
|
14080 |
}
|
|
|
14081 |
if (isSetCod()) {
|
|
|
14082 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
|
|
|
14083 |
if (lastComparison != 0) {
|
|
|
14084 |
return lastComparison;
|
|
|
14085 |
}
|
|
|
14086 |
}
|
|
|
14087 |
lastComparison = Boolean.valueOf(isSetStationType()).compareTo(typedOther.isSetStationType());
|
|
|
14088 |
if (lastComparison != 0) {
|
|
|
14089 |
return lastComparison;
|
|
|
14090 |
}
|
|
|
14091 |
if (isSetStationType()) {
|
|
|
14092 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stationType, typedOther.stationType);
|
|
|
14093 |
if (lastComparison != 0) {
|
|
|
14094 |
return lastComparison;
|
|
|
14095 |
}
|
|
|
14096 |
}
|
| 6524 |
rajveer |
14097 |
lastComparison = Boolean.valueOf(isSetOtgAvailable()).compareTo(typedOther.isSetOtgAvailable());
|
|
|
14098 |
if (lastComparison != 0) {
|
|
|
14099 |
return lastComparison;
|
|
|
14100 |
}
|
|
|
14101 |
if (isSetOtgAvailable()) {
|
|
|
14102 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otgAvailable, typedOther.otgAvailable);
|
|
|
14103 |
if (lastComparison != 0) {
|
|
|
14104 |
return lastComparison;
|
|
|
14105 |
}
|
|
|
14106 |
}
|
| 6322 |
amar.kumar |
14107 |
return 0;
|
|
|
14108 |
}
|
|
|
14109 |
|
|
|
14110 |
public _Fields fieldForId(int fieldId) {
|
|
|
14111 |
return _Fields.findByThriftId(fieldId);
|
|
|
14112 |
}
|
|
|
14113 |
|
|
|
14114 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
14115 |
org.apache.thrift.protocol.TField field;
|
|
|
14116 |
iprot.readStructBegin();
|
|
|
14117 |
while (true)
|
|
|
14118 |
{
|
|
|
14119 |
field = iprot.readFieldBegin();
|
|
|
14120 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
14121 |
break;
|
|
|
14122 |
}
|
|
|
14123 |
switch (field.id) {
|
|
|
14124 |
case 1: // PROVIDER_ID
|
|
|
14125 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
14126 |
this.providerId = iprot.readI64();
|
|
|
14127 |
setProviderIdIsSet(true);
|
|
|
14128 |
} else {
|
|
|
14129 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
14130 |
}
|
|
|
14131 |
break;
|
|
|
14132 |
case 2: // PINCODE
|
|
|
14133 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
14134 |
this.pincode = iprot.readString();
|
|
|
14135 |
} else {
|
|
|
14136 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
14137 |
}
|
|
|
14138 |
break;
|
|
|
14139 |
case 3: // DEST_CODE
|
|
|
14140 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
14141 |
this.destCode = iprot.readString();
|
|
|
14142 |
} else {
|
|
|
14143 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
14144 |
}
|
|
|
14145 |
break;
|
|
|
14146 |
case 4: // EXP
|
|
|
14147 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
14148 |
this.exp = iprot.readBool();
|
|
|
14149 |
setExpIsSet(true);
|
|
|
14150 |
} else {
|
|
|
14151 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
14152 |
}
|
|
|
14153 |
break;
|
|
|
14154 |
case 5: // COD
|
|
|
14155 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
14156 |
this.cod = iprot.readBool();
|
|
|
14157 |
setCodIsSet(true);
|
|
|
14158 |
} else {
|
|
|
14159 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
14160 |
}
|
|
|
14161 |
break;
|
|
|
14162 |
case 6: // STATION_TYPE
|
|
|
14163 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
14164 |
this.stationType = iprot.readI32();
|
|
|
14165 |
setStationTypeIsSet(true);
|
|
|
14166 |
} else {
|
|
|
14167 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
14168 |
}
|
|
|
14169 |
break;
|
| 6524 |
rajveer |
14170 |
case 7: // OTG_AVAILABLE
|
|
|
14171 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
14172 |
this.otgAvailable = iprot.readBool();
|
|
|
14173 |
setOtgAvailableIsSet(true);
|
|
|
14174 |
} else {
|
|
|
14175 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
14176 |
}
|
|
|
14177 |
break;
|
| 6322 |
amar.kumar |
14178 |
default:
|
|
|
14179 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
14180 |
}
|
|
|
14181 |
iprot.readFieldEnd();
|
|
|
14182 |
}
|
|
|
14183 |
iprot.readStructEnd();
|
|
|
14184 |
validate();
|
|
|
14185 |
}
|
|
|
14186 |
|
|
|
14187 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
14188 |
validate();
|
|
|
14189 |
|
|
|
14190 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
14191 |
oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
|
|
|
14192 |
oprot.writeI64(this.providerId);
|
|
|
14193 |
oprot.writeFieldEnd();
|
|
|
14194 |
if (this.pincode != null) {
|
|
|
14195 |
oprot.writeFieldBegin(PINCODE_FIELD_DESC);
|
|
|
14196 |
oprot.writeString(this.pincode);
|
|
|
14197 |
oprot.writeFieldEnd();
|
|
|
14198 |
}
|
|
|
14199 |
if (this.destCode != null) {
|
|
|
14200 |
oprot.writeFieldBegin(DEST_CODE_FIELD_DESC);
|
|
|
14201 |
oprot.writeString(this.destCode);
|
|
|
14202 |
oprot.writeFieldEnd();
|
|
|
14203 |
}
|
|
|
14204 |
oprot.writeFieldBegin(EXP_FIELD_DESC);
|
|
|
14205 |
oprot.writeBool(this.exp);
|
|
|
14206 |
oprot.writeFieldEnd();
|
|
|
14207 |
oprot.writeFieldBegin(COD_FIELD_DESC);
|
|
|
14208 |
oprot.writeBool(this.cod);
|
|
|
14209 |
oprot.writeFieldEnd();
|
|
|
14210 |
oprot.writeFieldBegin(STATION_TYPE_FIELD_DESC);
|
|
|
14211 |
oprot.writeI32(this.stationType);
|
|
|
14212 |
oprot.writeFieldEnd();
|
| 6524 |
rajveer |
14213 |
oprot.writeFieldBegin(OTG_AVAILABLE_FIELD_DESC);
|
|
|
14214 |
oprot.writeBool(this.otgAvailable);
|
|
|
14215 |
oprot.writeFieldEnd();
|
| 6322 |
amar.kumar |
14216 |
oprot.writeFieldStop();
|
|
|
14217 |
oprot.writeStructEnd();
|
|
|
14218 |
}
|
|
|
14219 |
|
|
|
14220 |
@Override
|
|
|
14221 |
public String toString() {
|
|
|
14222 |
StringBuilder sb = new StringBuilder("addPincode_args(");
|
|
|
14223 |
boolean first = true;
|
|
|
14224 |
|
|
|
14225 |
sb.append("providerId:");
|
|
|
14226 |
sb.append(this.providerId);
|
|
|
14227 |
first = false;
|
|
|
14228 |
if (!first) sb.append(", ");
|
|
|
14229 |
sb.append("pincode:");
|
|
|
14230 |
if (this.pincode == null) {
|
|
|
14231 |
sb.append("null");
|
|
|
14232 |
} else {
|
|
|
14233 |
sb.append(this.pincode);
|
|
|
14234 |
}
|
|
|
14235 |
first = false;
|
|
|
14236 |
if (!first) sb.append(", ");
|
|
|
14237 |
sb.append("destCode:");
|
|
|
14238 |
if (this.destCode == null) {
|
|
|
14239 |
sb.append("null");
|
|
|
14240 |
} else {
|
|
|
14241 |
sb.append(this.destCode);
|
|
|
14242 |
}
|
|
|
14243 |
first = false;
|
|
|
14244 |
if (!first) sb.append(", ");
|
|
|
14245 |
sb.append("exp:");
|
|
|
14246 |
sb.append(this.exp);
|
|
|
14247 |
first = false;
|
|
|
14248 |
if (!first) sb.append(", ");
|
|
|
14249 |
sb.append("cod:");
|
|
|
14250 |
sb.append(this.cod);
|
|
|
14251 |
first = false;
|
|
|
14252 |
if (!first) sb.append(", ");
|
|
|
14253 |
sb.append("stationType:");
|
|
|
14254 |
sb.append(this.stationType);
|
|
|
14255 |
first = false;
|
| 6524 |
rajveer |
14256 |
if (!first) sb.append(", ");
|
|
|
14257 |
sb.append("otgAvailable:");
|
|
|
14258 |
sb.append(this.otgAvailable);
|
|
|
14259 |
first = false;
|
| 6322 |
amar.kumar |
14260 |
sb.append(")");
|
|
|
14261 |
return sb.toString();
|
|
|
14262 |
}
|
|
|
14263 |
|
|
|
14264 |
public void validate() throws org.apache.thrift.TException {
|
|
|
14265 |
// check for required fields
|
|
|
14266 |
}
|
|
|
14267 |
|
|
|
14268 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
14269 |
try {
|
|
|
14270 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
14271 |
} catch (org.apache.thrift.TException te) {
|
|
|
14272 |
throw new java.io.IOException(te);
|
|
|
14273 |
}
|
|
|
14274 |
}
|
|
|
14275 |
|
|
|
14276 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
14277 |
try {
|
|
|
14278 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
14279 |
__isset_bit_vector = new BitSet(1);
|
|
|
14280 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
14281 |
} catch (org.apache.thrift.TException te) {
|
|
|
14282 |
throw new java.io.IOException(te);
|
|
|
14283 |
}
|
|
|
14284 |
}
|
|
|
14285 |
|
|
|
14286 |
}
|
|
|
14287 |
|
|
|
14288 |
public static class addPincode_result implements org.apache.thrift.TBase<addPincode_result, addPincode_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
14289 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPincode_result");
|
|
|
14290 |
|
|
|
14291 |
|
|
|
14292 |
|
|
|
14293 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
14294 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
14295 |
;
|
|
|
14296 |
|
|
|
14297 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
14298 |
|
|
|
14299 |
static {
|
|
|
14300 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
14301 |
byName.put(field.getFieldName(), field);
|
|
|
14302 |
}
|
|
|
14303 |
}
|
|
|
14304 |
|
|
|
14305 |
/**
|
|
|
14306 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
14307 |
*/
|
|
|
14308 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
14309 |
switch(fieldId) {
|
|
|
14310 |
default:
|
|
|
14311 |
return null;
|
|
|
14312 |
}
|
|
|
14313 |
}
|
|
|
14314 |
|
|
|
14315 |
/**
|
|
|
14316 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
14317 |
* if it is not found.
|
|
|
14318 |
*/
|
|
|
14319 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
14320 |
_Fields fields = findByThriftId(fieldId);
|
|
|
14321 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
14322 |
return fields;
|
|
|
14323 |
}
|
|
|
14324 |
|
|
|
14325 |
/**
|
|
|
14326 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
14327 |
*/
|
|
|
14328 |
public static _Fields findByName(String name) {
|
|
|
14329 |
return byName.get(name);
|
|
|
14330 |
}
|
|
|
14331 |
|
|
|
14332 |
private final short _thriftId;
|
|
|
14333 |
private final String _fieldName;
|
|
|
14334 |
|
|
|
14335 |
_Fields(short thriftId, String fieldName) {
|
|
|
14336 |
_thriftId = thriftId;
|
|
|
14337 |
_fieldName = fieldName;
|
|
|
14338 |
}
|
|
|
14339 |
|
|
|
14340 |
public short getThriftFieldId() {
|
|
|
14341 |
return _thriftId;
|
|
|
14342 |
}
|
|
|
14343 |
|
|
|
14344 |
public String getFieldName() {
|
|
|
14345 |
return _fieldName;
|
|
|
14346 |
}
|
|
|
14347 |
}
|
|
|
14348 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
14349 |
static {
|
|
|
14350 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
14351 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
14352 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_result.class, metaDataMap);
|
|
|
14353 |
}
|
|
|
14354 |
|
|
|
14355 |
public addPincode_result() {
|
|
|
14356 |
}
|
|
|
14357 |
|
|
|
14358 |
/**
|
|
|
14359 |
* Performs a deep copy on <i>other</i>.
|
|
|
14360 |
*/
|
|
|
14361 |
public addPincode_result(addPincode_result other) {
|
|
|
14362 |
}
|
|
|
14363 |
|
|
|
14364 |
public addPincode_result deepCopy() {
|
|
|
14365 |
return new addPincode_result(this);
|
|
|
14366 |
}
|
|
|
14367 |
|
|
|
14368 |
@Override
|
|
|
14369 |
public void clear() {
|
|
|
14370 |
}
|
|
|
14371 |
|
|
|
14372 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
14373 |
switch (field) {
|
|
|
14374 |
}
|
|
|
14375 |
}
|
|
|
14376 |
|
|
|
14377 |
public Object getFieldValue(_Fields field) {
|
|
|
14378 |
switch (field) {
|
|
|
14379 |
}
|
|
|
14380 |
throw new IllegalStateException();
|
|
|
14381 |
}
|
|
|
14382 |
|
|
|
14383 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
14384 |
public boolean isSet(_Fields field) {
|
|
|
14385 |
if (field == null) {
|
|
|
14386 |
throw new IllegalArgumentException();
|
|
|
14387 |
}
|
|
|
14388 |
|
|
|
14389 |
switch (field) {
|
|
|
14390 |
}
|
|
|
14391 |
throw new IllegalStateException();
|
|
|
14392 |
}
|
|
|
14393 |
|
|
|
14394 |
@Override
|
|
|
14395 |
public boolean equals(Object that) {
|
|
|
14396 |
if (that == null)
|
|
|
14397 |
return false;
|
|
|
14398 |
if (that instanceof addPincode_result)
|
|
|
14399 |
return this.equals((addPincode_result)that);
|
|
|
14400 |
return false;
|
|
|
14401 |
}
|
|
|
14402 |
|
|
|
14403 |
public boolean equals(addPincode_result that) {
|
|
|
14404 |
if (that == null)
|
|
|
14405 |
return false;
|
|
|
14406 |
|
|
|
14407 |
return true;
|
|
|
14408 |
}
|
|
|
14409 |
|
|
|
14410 |
@Override
|
|
|
14411 |
public int hashCode() {
|
|
|
14412 |
return 0;
|
|
|
14413 |
}
|
|
|
14414 |
|
|
|
14415 |
public int compareTo(addPincode_result other) {
|
|
|
14416 |
if (!getClass().equals(other.getClass())) {
|
|
|
14417 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
14418 |
}
|
|
|
14419 |
|
|
|
14420 |
int lastComparison = 0;
|
|
|
14421 |
addPincode_result typedOther = (addPincode_result)other;
|
|
|
14422 |
|
|
|
14423 |
return 0;
|
|
|
14424 |
}
|
|
|
14425 |
|
|
|
14426 |
public _Fields fieldForId(int fieldId) {
|
|
|
14427 |
return _Fields.findByThriftId(fieldId);
|
|
|
14428 |
}
|
|
|
14429 |
|
|
|
14430 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
14431 |
org.apache.thrift.protocol.TField field;
|
|
|
14432 |
iprot.readStructBegin();
|
|
|
14433 |
while (true)
|
|
|
14434 |
{
|
|
|
14435 |
field = iprot.readFieldBegin();
|
|
|
14436 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
14437 |
break;
|
|
|
14438 |
}
|
|
|
14439 |
switch (field.id) {
|
|
|
14440 |
default:
|
|
|
14441 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
14442 |
}
|
|
|
14443 |
iprot.readFieldEnd();
|
|
|
14444 |
}
|
|
|
14445 |
iprot.readStructEnd();
|
|
|
14446 |
validate();
|
|
|
14447 |
}
|
|
|
14448 |
|
|
|
14449 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
14450 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
14451 |
|
|
|
14452 |
oprot.writeFieldStop();
|
|
|
14453 |
oprot.writeStructEnd();
|
|
|
14454 |
}
|
|
|
14455 |
|
|
|
14456 |
@Override
|
|
|
14457 |
public String toString() {
|
|
|
14458 |
StringBuilder sb = new StringBuilder("addPincode_result(");
|
|
|
14459 |
boolean first = true;
|
|
|
14460 |
|
|
|
14461 |
sb.append(")");
|
|
|
14462 |
return sb.toString();
|
|
|
14463 |
}
|
|
|
14464 |
|
|
|
14465 |
public void validate() throws org.apache.thrift.TException {
|
|
|
14466 |
// check for required fields
|
|
|
14467 |
}
|
|
|
14468 |
|
|
|
14469 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
14470 |
try {
|
|
|
14471 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
14472 |
} catch (org.apache.thrift.TException te) {
|
|
|
14473 |
throw new java.io.IOException(te);
|
|
|
14474 |
}
|
|
|
14475 |
}
|
|
|
14476 |
|
|
|
14477 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
14478 |
try {
|
|
|
14479 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
14480 |
} catch (org.apache.thrift.TException te) {
|
|
|
14481 |
throw new java.io.IOException(te);
|
|
|
14482 |
}
|
|
|
14483 |
}
|
|
|
14484 |
|
|
|
14485 |
}
|
|
|
14486 |
|
|
|
14487 |
public static class updatePincode_args implements org.apache.thrift.TBase<updatePincode_args, updatePincode_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
14488 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePincode_args");
|
|
|
14489 |
|
|
|
14490 |
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)1);
|
|
|
14491 |
private static final org.apache.thrift.protocol.TField PINCODE_FIELD_DESC = new org.apache.thrift.protocol.TField("pincode", org.apache.thrift.protocol.TType.STRING, (short)2);
|
|
|
14492 |
private static final org.apache.thrift.protocol.TField EXP_FIELD_DESC = new org.apache.thrift.protocol.TField("exp", org.apache.thrift.protocol.TType.BOOL, (short)3);
|
|
|
14493 |
private static final org.apache.thrift.protocol.TField COD_FIELD_DESC = new org.apache.thrift.protocol.TField("cod", org.apache.thrift.protocol.TType.BOOL, (short)4);
|
| 6524 |
rajveer |
14494 |
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)5);
|
| 6322 |
amar.kumar |
14495 |
|
|
|
14496 |
private long providerId; // required
|
|
|
14497 |
private String pincode; // required
|
|
|
14498 |
private boolean exp; // required
|
|
|
14499 |
private boolean cod; // required
|
| 6524 |
rajveer |
14500 |
private boolean otgAvailable; // required
|
| 6322 |
amar.kumar |
14501 |
|
|
|
14502 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
14503 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
14504 |
PROVIDER_ID((short)1, "providerId"),
|
|
|
14505 |
PINCODE((short)2, "pincode"),
|
|
|
14506 |
EXP((short)3, "exp"),
|
| 6524 |
rajveer |
14507 |
COD((short)4, "cod"),
|
|
|
14508 |
OTG_AVAILABLE((short)5, "otgAvailable");
|
| 6322 |
amar.kumar |
14509 |
|
|
|
14510 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
14511 |
|
|
|
14512 |
static {
|
|
|
14513 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
14514 |
byName.put(field.getFieldName(), field);
|
|
|
14515 |
}
|
|
|
14516 |
}
|
|
|
14517 |
|
|
|
14518 |
/**
|
|
|
14519 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
14520 |
*/
|
|
|
14521 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
14522 |
switch(fieldId) {
|
|
|
14523 |
case 1: // PROVIDER_ID
|
|
|
14524 |
return PROVIDER_ID;
|
|
|
14525 |
case 2: // PINCODE
|
|
|
14526 |
return PINCODE;
|
|
|
14527 |
case 3: // EXP
|
|
|
14528 |
return EXP;
|
|
|
14529 |
case 4: // COD
|
|
|
14530 |
return COD;
|
| 6524 |
rajveer |
14531 |
case 5: // OTG_AVAILABLE
|
|
|
14532 |
return OTG_AVAILABLE;
|
| 6322 |
amar.kumar |
14533 |
default:
|
|
|
14534 |
return null;
|
|
|
14535 |
}
|
|
|
14536 |
}
|
|
|
14537 |
|
|
|
14538 |
/**
|
|
|
14539 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
14540 |
* if it is not found.
|
|
|
14541 |
*/
|
|
|
14542 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
14543 |
_Fields fields = findByThriftId(fieldId);
|
|
|
14544 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
14545 |
return fields;
|
|
|
14546 |
}
|
|
|
14547 |
|
|
|
14548 |
/**
|
|
|
14549 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
14550 |
*/
|
|
|
14551 |
public static _Fields findByName(String name) {
|
|
|
14552 |
return byName.get(name);
|
|
|
14553 |
}
|
|
|
14554 |
|
|
|
14555 |
private final short _thriftId;
|
|
|
14556 |
private final String _fieldName;
|
|
|
14557 |
|
|
|
14558 |
_Fields(short thriftId, String fieldName) {
|
|
|
14559 |
_thriftId = thriftId;
|
|
|
14560 |
_fieldName = fieldName;
|
|
|
14561 |
}
|
|
|
14562 |
|
|
|
14563 |
public short getThriftFieldId() {
|
|
|
14564 |
return _thriftId;
|
|
|
14565 |
}
|
|
|
14566 |
|
|
|
14567 |
public String getFieldName() {
|
|
|
14568 |
return _fieldName;
|
|
|
14569 |
}
|
|
|
14570 |
}
|
|
|
14571 |
|
|
|
14572 |
// isset id assignments
|
|
|
14573 |
private static final int __PROVIDERID_ISSET_ID = 0;
|
|
|
14574 |
private static final int __EXP_ISSET_ID = 1;
|
|
|
14575 |
private static final int __COD_ISSET_ID = 2;
|
| 6524 |
rajveer |
14576 |
private static final int __OTGAVAILABLE_ISSET_ID = 3;
|
|
|
14577 |
private BitSet __isset_bit_vector = new BitSet(4);
|
| 6322 |
amar.kumar |
14578 |
|
|
|
14579 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
14580 |
static {
|
|
|
14581 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
14582 |
tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
14583 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
14584 |
tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
14585 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
14586 |
tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
14587 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
|
|
14588 |
tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
14589 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
| 6524 |
rajveer |
14590 |
tmpMap.put(_Fields.OTG_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("otgAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
14591 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
| 6322 |
amar.kumar |
14592 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
14593 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_args.class, metaDataMap);
|
|
|
14594 |
}
|
|
|
14595 |
|
|
|
14596 |
public updatePincode_args() {
|
|
|
14597 |
}
|
|
|
14598 |
|
|
|
14599 |
public updatePincode_args(
|
|
|
14600 |
long providerId,
|
|
|
14601 |
String pincode,
|
|
|
14602 |
boolean exp,
|
| 6524 |
rajveer |
14603 |
boolean cod,
|
|
|
14604 |
boolean otgAvailable)
|
| 6322 |
amar.kumar |
14605 |
{
|
|
|
14606 |
this();
|
|
|
14607 |
this.providerId = providerId;
|
|
|
14608 |
setProviderIdIsSet(true);
|
|
|
14609 |
this.pincode = pincode;
|
|
|
14610 |
this.exp = exp;
|
|
|
14611 |
setExpIsSet(true);
|
|
|
14612 |
this.cod = cod;
|
|
|
14613 |
setCodIsSet(true);
|
| 6524 |
rajveer |
14614 |
this.otgAvailable = otgAvailable;
|
|
|
14615 |
setOtgAvailableIsSet(true);
|
| 6322 |
amar.kumar |
14616 |
}
|
|
|
14617 |
|
|
|
14618 |
/**
|
|
|
14619 |
* Performs a deep copy on <i>other</i>.
|
|
|
14620 |
*/
|
|
|
14621 |
public updatePincode_args(updatePincode_args other) {
|
|
|
14622 |
__isset_bit_vector.clear();
|
|
|
14623 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
14624 |
this.providerId = other.providerId;
|
|
|
14625 |
if (other.isSetPincode()) {
|
|
|
14626 |
this.pincode = other.pincode;
|
|
|
14627 |
}
|
|
|
14628 |
this.exp = other.exp;
|
|
|
14629 |
this.cod = other.cod;
|
| 6524 |
rajveer |
14630 |
this.otgAvailable = other.otgAvailable;
|
| 6322 |
amar.kumar |
14631 |
}
|
|
|
14632 |
|
|
|
14633 |
public updatePincode_args deepCopy() {
|
|
|
14634 |
return new updatePincode_args(this);
|
|
|
14635 |
}
|
|
|
14636 |
|
|
|
14637 |
@Override
|
|
|
14638 |
public void clear() {
|
|
|
14639 |
setProviderIdIsSet(false);
|
|
|
14640 |
this.providerId = 0;
|
|
|
14641 |
this.pincode = null;
|
|
|
14642 |
setExpIsSet(false);
|
|
|
14643 |
this.exp = false;
|
|
|
14644 |
setCodIsSet(false);
|
|
|
14645 |
this.cod = false;
|
| 6524 |
rajveer |
14646 |
setOtgAvailableIsSet(false);
|
|
|
14647 |
this.otgAvailable = false;
|
| 6322 |
amar.kumar |
14648 |
}
|
|
|
14649 |
|
|
|
14650 |
public long getProviderId() {
|
|
|
14651 |
return this.providerId;
|
|
|
14652 |
}
|
|
|
14653 |
|
|
|
14654 |
public void setProviderId(long providerId) {
|
|
|
14655 |
this.providerId = providerId;
|
|
|
14656 |
setProviderIdIsSet(true);
|
|
|
14657 |
}
|
|
|
14658 |
|
|
|
14659 |
public void unsetProviderId() {
|
|
|
14660 |
__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
|
|
|
14661 |
}
|
|
|
14662 |
|
|
|
14663 |
/** Returns true if field providerId is set (has been assigned a value) and false otherwise */
|
|
|
14664 |
public boolean isSetProviderId() {
|
|
|
14665 |
return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
|
|
|
14666 |
}
|
|
|
14667 |
|
|
|
14668 |
public void setProviderIdIsSet(boolean value) {
|
|
|
14669 |
__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
|
|
|
14670 |
}
|
|
|
14671 |
|
|
|
14672 |
public String getPincode() {
|
|
|
14673 |
return this.pincode;
|
|
|
14674 |
}
|
|
|
14675 |
|
|
|
14676 |
public void setPincode(String pincode) {
|
|
|
14677 |
this.pincode = pincode;
|
|
|
14678 |
}
|
|
|
14679 |
|
|
|
14680 |
public void unsetPincode() {
|
|
|
14681 |
this.pincode = null;
|
|
|
14682 |
}
|
|
|
14683 |
|
|
|
14684 |
/** Returns true if field pincode is set (has been assigned a value) and false otherwise */
|
|
|
14685 |
public boolean isSetPincode() {
|
|
|
14686 |
return this.pincode != null;
|
|
|
14687 |
}
|
|
|
14688 |
|
|
|
14689 |
public void setPincodeIsSet(boolean value) {
|
|
|
14690 |
if (!value) {
|
|
|
14691 |
this.pincode = null;
|
|
|
14692 |
}
|
|
|
14693 |
}
|
|
|
14694 |
|
|
|
14695 |
public boolean isExp() {
|
|
|
14696 |
return this.exp;
|
|
|
14697 |
}
|
|
|
14698 |
|
|
|
14699 |
public void setExp(boolean exp) {
|
|
|
14700 |
this.exp = exp;
|
|
|
14701 |
setExpIsSet(true);
|
|
|
14702 |
}
|
|
|
14703 |
|
|
|
14704 |
public void unsetExp() {
|
|
|
14705 |
__isset_bit_vector.clear(__EXP_ISSET_ID);
|
|
|
14706 |
}
|
|
|
14707 |
|
|
|
14708 |
/** Returns true if field exp is set (has been assigned a value) and false otherwise */
|
|
|
14709 |
public boolean isSetExp() {
|
|
|
14710 |
return __isset_bit_vector.get(__EXP_ISSET_ID);
|
|
|
14711 |
}
|
|
|
14712 |
|
|
|
14713 |
public void setExpIsSet(boolean value) {
|
|
|
14714 |
__isset_bit_vector.set(__EXP_ISSET_ID, value);
|
|
|
14715 |
}
|
|
|
14716 |
|
|
|
14717 |
public boolean isCod() {
|
|
|
14718 |
return this.cod;
|
|
|
14719 |
}
|
|
|
14720 |
|
|
|
14721 |
public void setCod(boolean cod) {
|
|
|
14722 |
this.cod = cod;
|
|
|
14723 |
setCodIsSet(true);
|
|
|
14724 |
}
|
|
|
14725 |
|
|
|
14726 |
public void unsetCod() {
|
|
|
14727 |
__isset_bit_vector.clear(__COD_ISSET_ID);
|
|
|
14728 |
}
|
|
|
14729 |
|
|
|
14730 |
/** Returns true if field cod is set (has been assigned a value) and false otherwise */
|
|
|
14731 |
public boolean isSetCod() {
|
|
|
14732 |
return __isset_bit_vector.get(__COD_ISSET_ID);
|
|
|
14733 |
}
|
|
|
14734 |
|
|
|
14735 |
public void setCodIsSet(boolean value) {
|
|
|
14736 |
__isset_bit_vector.set(__COD_ISSET_ID, value);
|
|
|
14737 |
}
|
|
|
14738 |
|
| 6524 |
rajveer |
14739 |
public boolean isOtgAvailable() {
|
|
|
14740 |
return this.otgAvailable;
|
|
|
14741 |
}
|
|
|
14742 |
|
|
|
14743 |
public void setOtgAvailable(boolean otgAvailable) {
|
|
|
14744 |
this.otgAvailable = otgAvailable;
|
|
|
14745 |
setOtgAvailableIsSet(true);
|
|
|
14746 |
}
|
|
|
14747 |
|
|
|
14748 |
public void unsetOtgAvailable() {
|
|
|
14749 |
__isset_bit_vector.clear(__OTGAVAILABLE_ISSET_ID);
|
|
|
14750 |
}
|
|
|
14751 |
|
|
|
14752 |
/** Returns true if field otgAvailable is set (has been assigned a value) and false otherwise */
|
|
|
14753 |
public boolean isSetOtgAvailable() {
|
|
|
14754 |
return __isset_bit_vector.get(__OTGAVAILABLE_ISSET_ID);
|
|
|
14755 |
}
|
|
|
14756 |
|
|
|
14757 |
public void setOtgAvailableIsSet(boolean value) {
|
|
|
14758 |
__isset_bit_vector.set(__OTGAVAILABLE_ISSET_ID, value);
|
|
|
14759 |
}
|
|
|
14760 |
|
| 6322 |
amar.kumar |
14761 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
14762 |
switch (field) {
|
|
|
14763 |
case PROVIDER_ID:
|
|
|
14764 |
if (value == null) {
|
|
|
14765 |
unsetProviderId();
|
|
|
14766 |
} else {
|
|
|
14767 |
setProviderId((Long)value);
|
|
|
14768 |
}
|
|
|
14769 |
break;
|
|
|
14770 |
|
|
|
14771 |
case PINCODE:
|
|
|
14772 |
if (value == null) {
|
|
|
14773 |
unsetPincode();
|
|
|
14774 |
} else {
|
|
|
14775 |
setPincode((String)value);
|
|
|
14776 |
}
|
|
|
14777 |
break;
|
|
|
14778 |
|
|
|
14779 |
case EXP:
|
|
|
14780 |
if (value == null) {
|
|
|
14781 |
unsetExp();
|
|
|
14782 |
} else {
|
|
|
14783 |
setExp((Boolean)value);
|
|
|
14784 |
}
|
|
|
14785 |
break;
|
|
|
14786 |
|
|
|
14787 |
case COD:
|
|
|
14788 |
if (value == null) {
|
|
|
14789 |
unsetCod();
|
|
|
14790 |
} else {
|
|
|
14791 |
setCod((Boolean)value);
|
|
|
14792 |
}
|
|
|
14793 |
break;
|
|
|
14794 |
|
| 6524 |
rajveer |
14795 |
case OTG_AVAILABLE:
|
|
|
14796 |
if (value == null) {
|
|
|
14797 |
unsetOtgAvailable();
|
|
|
14798 |
} else {
|
|
|
14799 |
setOtgAvailable((Boolean)value);
|
|
|
14800 |
}
|
|
|
14801 |
break;
|
|
|
14802 |
|
| 6322 |
amar.kumar |
14803 |
}
|
|
|
14804 |
}
|
|
|
14805 |
|
|
|
14806 |
public Object getFieldValue(_Fields field) {
|
|
|
14807 |
switch (field) {
|
|
|
14808 |
case PROVIDER_ID:
|
|
|
14809 |
return Long.valueOf(getProviderId());
|
|
|
14810 |
|
|
|
14811 |
case PINCODE:
|
|
|
14812 |
return getPincode();
|
|
|
14813 |
|
|
|
14814 |
case EXP:
|
|
|
14815 |
return Boolean.valueOf(isExp());
|
|
|
14816 |
|
|
|
14817 |
case COD:
|
|
|
14818 |
return Boolean.valueOf(isCod());
|
|
|
14819 |
|
| 6524 |
rajveer |
14820 |
case OTG_AVAILABLE:
|
|
|
14821 |
return Boolean.valueOf(isOtgAvailable());
|
|
|
14822 |
|
| 6322 |
amar.kumar |
14823 |
}
|
|
|
14824 |
throw new IllegalStateException();
|
|
|
14825 |
}
|
|
|
14826 |
|
|
|
14827 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
14828 |
public boolean isSet(_Fields field) {
|
|
|
14829 |
if (field == null) {
|
|
|
14830 |
throw new IllegalArgumentException();
|
|
|
14831 |
}
|
|
|
14832 |
|
|
|
14833 |
switch (field) {
|
|
|
14834 |
case PROVIDER_ID:
|
|
|
14835 |
return isSetProviderId();
|
|
|
14836 |
case PINCODE:
|
|
|
14837 |
return isSetPincode();
|
|
|
14838 |
case EXP:
|
|
|
14839 |
return isSetExp();
|
|
|
14840 |
case COD:
|
|
|
14841 |
return isSetCod();
|
| 6524 |
rajveer |
14842 |
case OTG_AVAILABLE:
|
|
|
14843 |
return isSetOtgAvailable();
|
| 6322 |
amar.kumar |
14844 |
}
|
|
|
14845 |
throw new IllegalStateException();
|
|
|
14846 |
}
|
|
|
14847 |
|
|
|
14848 |
@Override
|
|
|
14849 |
public boolean equals(Object that) {
|
|
|
14850 |
if (that == null)
|
|
|
14851 |
return false;
|
|
|
14852 |
if (that instanceof updatePincode_args)
|
|
|
14853 |
return this.equals((updatePincode_args)that);
|
|
|
14854 |
return false;
|
|
|
14855 |
}
|
|
|
14856 |
|
|
|
14857 |
public boolean equals(updatePincode_args that) {
|
|
|
14858 |
if (that == null)
|
|
|
14859 |
return false;
|
|
|
14860 |
|
|
|
14861 |
boolean this_present_providerId = true;
|
|
|
14862 |
boolean that_present_providerId = true;
|
|
|
14863 |
if (this_present_providerId || that_present_providerId) {
|
|
|
14864 |
if (!(this_present_providerId && that_present_providerId))
|
|
|
14865 |
return false;
|
|
|
14866 |
if (this.providerId != that.providerId)
|
|
|
14867 |
return false;
|
|
|
14868 |
}
|
|
|
14869 |
|
|
|
14870 |
boolean this_present_pincode = true && this.isSetPincode();
|
|
|
14871 |
boolean that_present_pincode = true && that.isSetPincode();
|
|
|
14872 |
if (this_present_pincode || that_present_pincode) {
|
|
|
14873 |
if (!(this_present_pincode && that_present_pincode))
|
|
|
14874 |
return false;
|
|
|
14875 |
if (!this.pincode.equals(that.pincode))
|
|
|
14876 |
return false;
|
|
|
14877 |
}
|
|
|
14878 |
|
|
|
14879 |
boolean this_present_exp = true;
|
|
|
14880 |
boolean that_present_exp = true;
|
|
|
14881 |
if (this_present_exp || that_present_exp) {
|
|
|
14882 |
if (!(this_present_exp && that_present_exp))
|
|
|
14883 |
return false;
|
|
|
14884 |
if (this.exp != that.exp)
|
|
|
14885 |
return false;
|
|
|
14886 |
}
|
|
|
14887 |
|
|
|
14888 |
boolean this_present_cod = true;
|
|
|
14889 |
boolean that_present_cod = true;
|
|
|
14890 |
if (this_present_cod || that_present_cod) {
|
|
|
14891 |
if (!(this_present_cod && that_present_cod))
|
|
|
14892 |
return false;
|
|
|
14893 |
if (this.cod != that.cod)
|
|
|
14894 |
return false;
|
|
|
14895 |
}
|
|
|
14896 |
|
| 6524 |
rajveer |
14897 |
boolean this_present_otgAvailable = true;
|
|
|
14898 |
boolean that_present_otgAvailable = true;
|
|
|
14899 |
if (this_present_otgAvailable || that_present_otgAvailable) {
|
|
|
14900 |
if (!(this_present_otgAvailable && that_present_otgAvailable))
|
|
|
14901 |
return false;
|
|
|
14902 |
if (this.otgAvailable != that.otgAvailable)
|
|
|
14903 |
return false;
|
|
|
14904 |
}
|
|
|
14905 |
|
| 6322 |
amar.kumar |
14906 |
return true;
|
|
|
14907 |
}
|
|
|
14908 |
|
|
|
14909 |
@Override
|
|
|
14910 |
public int hashCode() {
|
|
|
14911 |
return 0;
|
|
|
14912 |
}
|
|
|
14913 |
|
|
|
14914 |
public int compareTo(updatePincode_args other) {
|
|
|
14915 |
if (!getClass().equals(other.getClass())) {
|
|
|
14916 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
14917 |
}
|
|
|
14918 |
|
|
|
14919 |
int lastComparison = 0;
|
|
|
14920 |
updatePincode_args typedOther = (updatePincode_args)other;
|
|
|
14921 |
|
|
|
14922 |
lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
|
|
|
14923 |
if (lastComparison != 0) {
|
|
|
14924 |
return lastComparison;
|
|
|
14925 |
}
|
|
|
14926 |
if (isSetProviderId()) {
|
|
|
14927 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
|
|
|
14928 |
if (lastComparison != 0) {
|
|
|
14929 |
return lastComparison;
|
|
|
14930 |
}
|
|
|
14931 |
}
|
|
|
14932 |
lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
|
|
|
14933 |
if (lastComparison != 0) {
|
|
|
14934 |
return lastComparison;
|
|
|
14935 |
}
|
|
|
14936 |
if (isSetPincode()) {
|
|
|
14937 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
|
|
|
14938 |
if (lastComparison != 0) {
|
|
|
14939 |
return lastComparison;
|
|
|
14940 |
}
|
|
|
14941 |
}
|
|
|
14942 |
lastComparison = Boolean.valueOf(isSetExp()).compareTo(typedOther.isSetExp());
|
|
|
14943 |
if (lastComparison != 0) {
|
|
|
14944 |
return lastComparison;
|
|
|
14945 |
}
|
|
|
14946 |
if (isSetExp()) {
|
|
|
14947 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exp, typedOther.exp);
|
|
|
14948 |
if (lastComparison != 0) {
|
|
|
14949 |
return lastComparison;
|
|
|
14950 |
}
|
|
|
14951 |
}
|
|
|
14952 |
lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
|
|
|
14953 |
if (lastComparison != 0) {
|
|
|
14954 |
return lastComparison;
|
|
|
14955 |
}
|
|
|
14956 |
if (isSetCod()) {
|
|
|
14957 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
|
|
|
14958 |
if (lastComparison != 0) {
|
|
|
14959 |
return lastComparison;
|
|
|
14960 |
}
|
|
|
14961 |
}
|
| 6524 |
rajveer |
14962 |
lastComparison = Boolean.valueOf(isSetOtgAvailable()).compareTo(typedOther.isSetOtgAvailable());
|
|
|
14963 |
if (lastComparison != 0) {
|
|
|
14964 |
return lastComparison;
|
|
|
14965 |
}
|
|
|
14966 |
if (isSetOtgAvailable()) {
|
|
|
14967 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otgAvailable, typedOther.otgAvailable);
|
|
|
14968 |
if (lastComparison != 0) {
|
|
|
14969 |
return lastComparison;
|
|
|
14970 |
}
|
|
|
14971 |
}
|
| 6322 |
amar.kumar |
14972 |
return 0;
|
|
|
14973 |
}
|
|
|
14974 |
|
|
|
14975 |
public _Fields fieldForId(int fieldId) {
|
|
|
14976 |
return _Fields.findByThriftId(fieldId);
|
|
|
14977 |
}
|
|
|
14978 |
|
|
|
14979 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
14980 |
org.apache.thrift.protocol.TField field;
|
|
|
14981 |
iprot.readStructBegin();
|
|
|
14982 |
while (true)
|
|
|
14983 |
{
|
|
|
14984 |
field = iprot.readFieldBegin();
|
|
|
14985 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
14986 |
break;
|
|
|
14987 |
}
|
|
|
14988 |
switch (field.id) {
|
|
|
14989 |
case 1: // PROVIDER_ID
|
|
|
14990 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
14991 |
this.providerId = iprot.readI64();
|
|
|
14992 |
setProviderIdIsSet(true);
|
|
|
14993 |
} else {
|
|
|
14994 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
14995 |
}
|
|
|
14996 |
break;
|
|
|
14997 |
case 2: // PINCODE
|
|
|
14998 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
14999 |
this.pincode = iprot.readString();
|
|
|
15000 |
} else {
|
|
|
15001 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
15002 |
}
|
|
|
15003 |
break;
|
|
|
15004 |
case 3: // EXP
|
|
|
15005 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
15006 |
this.exp = iprot.readBool();
|
|
|
15007 |
setExpIsSet(true);
|
|
|
15008 |
} else {
|
|
|
15009 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
15010 |
}
|
|
|
15011 |
break;
|
|
|
15012 |
case 4: // COD
|
|
|
15013 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
15014 |
this.cod = iprot.readBool();
|
|
|
15015 |
setCodIsSet(true);
|
|
|
15016 |
} else {
|
|
|
15017 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
15018 |
}
|
|
|
15019 |
break;
|
| 6524 |
rajveer |
15020 |
case 5: // OTG_AVAILABLE
|
|
|
15021 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
15022 |
this.otgAvailable = iprot.readBool();
|
|
|
15023 |
setOtgAvailableIsSet(true);
|
|
|
15024 |
} else {
|
|
|
15025 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
15026 |
}
|
|
|
15027 |
break;
|
| 6322 |
amar.kumar |
15028 |
default:
|
|
|
15029 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
15030 |
}
|
|
|
15031 |
iprot.readFieldEnd();
|
|
|
15032 |
}
|
|
|
15033 |
iprot.readStructEnd();
|
|
|
15034 |
validate();
|
|
|
15035 |
}
|
|
|
15036 |
|
|
|
15037 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
15038 |
validate();
|
|
|
15039 |
|
|
|
15040 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
15041 |
oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
|
|
|
15042 |
oprot.writeI64(this.providerId);
|
|
|
15043 |
oprot.writeFieldEnd();
|
|
|
15044 |
if (this.pincode != null) {
|
|
|
15045 |
oprot.writeFieldBegin(PINCODE_FIELD_DESC);
|
|
|
15046 |
oprot.writeString(this.pincode);
|
|
|
15047 |
oprot.writeFieldEnd();
|
|
|
15048 |
}
|
|
|
15049 |
oprot.writeFieldBegin(EXP_FIELD_DESC);
|
|
|
15050 |
oprot.writeBool(this.exp);
|
|
|
15051 |
oprot.writeFieldEnd();
|
|
|
15052 |
oprot.writeFieldBegin(COD_FIELD_DESC);
|
|
|
15053 |
oprot.writeBool(this.cod);
|
|
|
15054 |
oprot.writeFieldEnd();
|
| 6524 |
rajveer |
15055 |
oprot.writeFieldBegin(OTG_AVAILABLE_FIELD_DESC);
|
|
|
15056 |
oprot.writeBool(this.otgAvailable);
|
|
|
15057 |
oprot.writeFieldEnd();
|
| 6322 |
amar.kumar |
15058 |
oprot.writeFieldStop();
|
|
|
15059 |
oprot.writeStructEnd();
|
|
|
15060 |
}
|
|
|
15061 |
|
|
|
15062 |
@Override
|
|
|
15063 |
public String toString() {
|
|
|
15064 |
StringBuilder sb = new StringBuilder("updatePincode_args(");
|
|
|
15065 |
boolean first = true;
|
|
|
15066 |
|
|
|
15067 |
sb.append("providerId:");
|
|
|
15068 |
sb.append(this.providerId);
|
|
|
15069 |
first = false;
|
|
|
15070 |
if (!first) sb.append(", ");
|
|
|
15071 |
sb.append("pincode:");
|
|
|
15072 |
if (this.pincode == null) {
|
|
|
15073 |
sb.append("null");
|
|
|
15074 |
} else {
|
|
|
15075 |
sb.append(this.pincode);
|
|
|
15076 |
}
|
|
|
15077 |
first = false;
|
|
|
15078 |
if (!first) sb.append(", ");
|
|
|
15079 |
sb.append("exp:");
|
|
|
15080 |
sb.append(this.exp);
|
|
|
15081 |
first = false;
|
|
|
15082 |
if (!first) sb.append(", ");
|
|
|
15083 |
sb.append("cod:");
|
|
|
15084 |
sb.append(this.cod);
|
|
|
15085 |
first = false;
|
| 6524 |
rajveer |
15086 |
if (!first) sb.append(", ");
|
|
|
15087 |
sb.append("otgAvailable:");
|
|
|
15088 |
sb.append(this.otgAvailable);
|
|
|
15089 |
first = false;
|
| 6322 |
amar.kumar |
15090 |
sb.append(")");
|
|
|
15091 |
return sb.toString();
|
|
|
15092 |
}
|
|
|
15093 |
|
|
|
15094 |
public void validate() throws org.apache.thrift.TException {
|
|
|
15095 |
// check for required fields
|
|
|
15096 |
}
|
|
|
15097 |
|
|
|
15098 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
15099 |
try {
|
|
|
15100 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
15101 |
} catch (org.apache.thrift.TException te) {
|
|
|
15102 |
throw new java.io.IOException(te);
|
|
|
15103 |
}
|
|
|
15104 |
}
|
|
|
15105 |
|
|
|
15106 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
15107 |
try {
|
|
|
15108 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
15109 |
__isset_bit_vector = new BitSet(1);
|
|
|
15110 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
15111 |
} catch (org.apache.thrift.TException te) {
|
|
|
15112 |
throw new java.io.IOException(te);
|
|
|
15113 |
}
|
|
|
15114 |
}
|
|
|
15115 |
|
|
|
15116 |
}
|
|
|
15117 |
|
|
|
15118 |
public static class updatePincode_result implements org.apache.thrift.TBase<updatePincode_result, updatePincode_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
15119 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePincode_result");
|
|
|
15120 |
|
|
|
15121 |
|
|
|
15122 |
|
|
|
15123 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
15124 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
15125 |
;
|
|
|
15126 |
|
|
|
15127 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
15128 |
|
|
|
15129 |
static {
|
|
|
15130 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
15131 |
byName.put(field.getFieldName(), field);
|
|
|
15132 |
}
|
|
|
15133 |
}
|
|
|
15134 |
|
|
|
15135 |
/**
|
|
|
15136 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
15137 |
*/
|
|
|
15138 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
15139 |
switch(fieldId) {
|
|
|
15140 |
default:
|
|
|
15141 |
return null;
|
|
|
15142 |
}
|
|
|
15143 |
}
|
|
|
15144 |
|
|
|
15145 |
/**
|
|
|
15146 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
15147 |
* if it is not found.
|
|
|
15148 |
*/
|
|
|
15149 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
15150 |
_Fields fields = findByThriftId(fieldId);
|
|
|
15151 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
15152 |
return fields;
|
|
|
15153 |
}
|
|
|
15154 |
|
|
|
15155 |
/**
|
|
|
15156 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
15157 |
*/
|
|
|
15158 |
public static _Fields findByName(String name) {
|
|
|
15159 |
return byName.get(name);
|
|
|
15160 |
}
|
|
|
15161 |
|
|
|
15162 |
private final short _thriftId;
|
|
|
15163 |
private final String _fieldName;
|
|
|
15164 |
|
|
|
15165 |
_Fields(short thriftId, String fieldName) {
|
|
|
15166 |
_thriftId = thriftId;
|
|
|
15167 |
_fieldName = fieldName;
|
|
|
15168 |
}
|
|
|
15169 |
|
|
|
15170 |
public short getThriftFieldId() {
|
|
|
15171 |
return _thriftId;
|
|
|
15172 |
}
|
|
|
15173 |
|
|
|
15174 |
public String getFieldName() {
|
|
|
15175 |
return _fieldName;
|
|
|
15176 |
}
|
|
|
15177 |
}
|
|
|
15178 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
15179 |
static {
|
|
|
15180 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
15181 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
15182 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_result.class, metaDataMap);
|
|
|
15183 |
}
|
|
|
15184 |
|
|
|
15185 |
public updatePincode_result() {
|
|
|
15186 |
}
|
|
|
15187 |
|
|
|
15188 |
/**
|
|
|
15189 |
* Performs a deep copy on <i>other</i>.
|
|
|
15190 |
*/
|
|
|
15191 |
public updatePincode_result(updatePincode_result other) {
|
|
|
15192 |
}
|
|
|
15193 |
|
|
|
15194 |
public updatePincode_result deepCopy() {
|
|
|
15195 |
return new updatePincode_result(this);
|
|
|
15196 |
}
|
|
|
15197 |
|
|
|
15198 |
@Override
|
|
|
15199 |
public void clear() {
|
|
|
15200 |
}
|
|
|
15201 |
|
|
|
15202 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
15203 |
switch (field) {
|
|
|
15204 |
}
|
|
|
15205 |
}
|
|
|
15206 |
|
|
|
15207 |
public Object getFieldValue(_Fields field) {
|
|
|
15208 |
switch (field) {
|
|
|
15209 |
}
|
|
|
15210 |
throw new IllegalStateException();
|
|
|
15211 |
}
|
|
|
15212 |
|
|
|
15213 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
15214 |
public boolean isSet(_Fields field) {
|
|
|
15215 |
if (field == null) {
|
|
|
15216 |
throw new IllegalArgumentException();
|
|
|
15217 |
}
|
|
|
15218 |
|
|
|
15219 |
switch (field) {
|
|
|
15220 |
}
|
|
|
15221 |
throw new IllegalStateException();
|
|
|
15222 |
}
|
|
|
15223 |
|
|
|
15224 |
@Override
|
|
|
15225 |
public boolean equals(Object that) {
|
|
|
15226 |
if (that == null)
|
|
|
15227 |
return false;
|
|
|
15228 |
if (that instanceof updatePincode_result)
|
|
|
15229 |
return this.equals((updatePincode_result)that);
|
|
|
15230 |
return false;
|
|
|
15231 |
}
|
|
|
15232 |
|
|
|
15233 |
public boolean equals(updatePincode_result that) {
|
|
|
15234 |
if (that == null)
|
|
|
15235 |
return false;
|
|
|
15236 |
|
|
|
15237 |
return true;
|
|
|
15238 |
}
|
|
|
15239 |
|
|
|
15240 |
@Override
|
|
|
15241 |
public int hashCode() {
|
|
|
15242 |
return 0;
|
|
|
15243 |
}
|
|
|
15244 |
|
|
|
15245 |
public int compareTo(updatePincode_result other) {
|
|
|
15246 |
if (!getClass().equals(other.getClass())) {
|
|
|
15247 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
15248 |
}
|
|
|
15249 |
|
|
|
15250 |
int lastComparison = 0;
|
|
|
15251 |
updatePincode_result typedOther = (updatePincode_result)other;
|
|
|
15252 |
|
|
|
15253 |
return 0;
|
|
|
15254 |
}
|
|
|
15255 |
|
|
|
15256 |
public _Fields fieldForId(int fieldId) {
|
|
|
15257 |
return _Fields.findByThriftId(fieldId);
|
|
|
15258 |
}
|
|
|
15259 |
|
|
|
15260 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
15261 |
org.apache.thrift.protocol.TField field;
|
|
|
15262 |
iprot.readStructBegin();
|
|
|
15263 |
while (true)
|
|
|
15264 |
{
|
|
|
15265 |
field = iprot.readFieldBegin();
|
|
|
15266 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
15267 |
break;
|
|
|
15268 |
}
|
|
|
15269 |
switch (field.id) {
|
|
|
15270 |
default:
|
|
|
15271 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
15272 |
}
|
|
|
15273 |
iprot.readFieldEnd();
|
|
|
15274 |
}
|
|
|
15275 |
iprot.readStructEnd();
|
|
|
15276 |
validate();
|
|
|
15277 |
}
|
|
|
15278 |
|
|
|
15279 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
15280 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
15281 |
|
|
|
15282 |
oprot.writeFieldStop();
|
|
|
15283 |
oprot.writeStructEnd();
|
|
|
15284 |
}
|
|
|
15285 |
|
|
|
15286 |
@Override
|
|
|
15287 |
public String toString() {
|
|
|
15288 |
StringBuilder sb = new StringBuilder("updatePincode_result(");
|
|
|
15289 |
boolean first = true;
|
|
|
15290 |
|
|
|
15291 |
sb.append(")");
|
|
|
15292 |
return sb.toString();
|
|
|
15293 |
}
|
|
|
15294 |
|
|
|
15295 |
public void validate() throws org.apache.thrift.TException {
|
|
|
15296 |
// check for required fields
|
|
|
15297 |
}
|
|
|
15298 |
|
|
|
15299 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
15300 |
try {
|
|
|
15301 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
15302 |
} catch (org.apache.thrift.TException te) {
|
|
|
15303 |
throw new java.io.IOException(te);
|
|
|
15304 |
}
|
|
|
15305 |
}
|
|
|
15306 |
|
|
|
15307 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
15308 |
try {
|
|
|
15309 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
15310 |
} catch (org.apache.thrift.TException te) {
|
|
|
15311 |
throw new java.io.IOException(te);
|
|
|
15312 |
}
|
|
|
15313 |
}
|
|
|
15314 |
|
|
|
15315 |
}
|
|
|
15316 |
|
| 7567 |
rajveer |
15317 |
public static class addNewAwbs_args implements org.apache.thrift.TBase<addNewAwbs_args, addNewAwbs_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
15318 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addNewAwbs_args");
|
|
|
15319 |
|
|
|
15320 |
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)1);
|
|
|
15321 |
private static final org.apache.thrift.protocol.TField COD_FIELD_DESC = new org.apache.thrift.protocol.TField("cod", org.apache.thrift.protocol.TType.BOOL, (short)2);
|
|
|
15322 |
private static final org.apache.thrift.protocol.TField AWBS_FIELD_DESC = new org.apache.thrift.protocol.TField("awbs", org.apache.thrift.protocol.TType.LIST, (short)3);
|
|
|
15323 |
|
|
|
15324 |
private long providerId; // required
|
|
|
15325 |
private boolean cod; // required
|
|
|
15326 |
private List<String> awbs; // required
|
|
|
15327 |
|
|
|
15328 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
15329 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
15330 |
PROVIDER_ID((short)1, "providerId"),
|
|
|
15331 |
COD((short)2, "cod"),
|
|
|
15332 |
AWBS((short)3, "awbs");
|
|
|
15333 |
|
|
|
15334 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
15335 |
|
|
|
15336 |
static {
|
|
|
15337 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
15338 |
byName.put(field.getFieldName(), field);
|
|
|
15339 |
}
|
|
|
15340 |
}
|
|
|
15341 |
|
|
|
15342 |
/**
|
|
|
15343 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
15344 |
*/
|
|
|
15345 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
15346 |
switch(fieldId) {
|
|
|
15347 |
case 1: // PROVIDER_ID
|
|
|
15348 |
return PROVIDER_ID;
|
|
|
15349 |
case 2: // COD
|
|
|
15350 |
return COD;
|
|
|
15351 |
case 3: // AWBS
|
|
|
15352 |
return AWBS;
|
|
|
15353 |
default:
|
|
|
15354 |
return null;
|
|
|
15355 |
}
|
|
|
15356 |
}
|
|
|
15357 |
|
|
|
15358 |
/**
|
|
|
15359 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
15360 |
* if it is not found.
|
|
|
15361 |
*/
|
|
|
15362 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
15363 |
_Fields fields = findByThriftId(fieldId);
|
|
|
15364 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
15365 |
return fields;
|
|
|
15366 |
}
|
|
|
15367 |
|
|
|
15368 |
/**
|
|
|
15369 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
15370 |
*/
|
|
|
15371 |
public static _Fields findByName(String name) {
|
|
|
15372 |
return byName.get(name);
|
|
|
15373 |
}
|
|
|
15374 |
|
|
|
15375 |
private final short _thriftId;
|
|
|
15376 |
private final String _fieldName;
|
|
|
15377 |
|
|
|
15378 |
_Fields(short thriftId, String fieldName) {
|
|
|
15379 |
_thriftId = thriftId;
|
|
|
15380 |
_fieldName = fieldName;
|
|
|
15381 |
}
|
|
|
15382 |
|
|
|
15383 |
public short getThriftFieldId() {
|
|
|
15384 |
return _thriftId;
|
|
|
15385 |
}
|
|
|
15386 |
|
|
|
15387 |
public String getFieldName() {
|
|
|
15388 |
return _fieldName;
|
|
|
15389 |
}
|
|
|
15390 |
}
|
|
|
15391 |
|
|
|
15392 |
// isset id assignments
|
|
|
15393 |
private static final int __PROVIDERID_ISSET_ID = 0;
|
|
|
15394 |
private static final int __COD_ISSET_ID = 1;
|
|
|
15395 |
private BitSet __isset_bit_vector = new BitSet(2);
|
|
|
15396 |
|
|
|
15397 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
15398 |
static {
|
|
|
15399 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
15400 |
tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
15401 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
15402 |
tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
15403 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
|
|
15404 |
tmpMap.put(_Fields.AWBS, new org.apache.thrift.meta_data.FieldMetaData("awbs", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
15405 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
15406 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
|
|
|
15407 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
15408 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addNewAwbs_args.class, metaDataMap);
|
|
|
15409 |
}
|
|
|
15410 |
|
|
|
15411 |
public addNewAwbs_args() {
|
|
|
15412 |
}
|
|
|
15413 |
|
|
|
15414 |
public addNewAwbs_args(
|
|
|
15415 |
long providerId,
|
|
|
15416 |
boolean cod,
|
|
|
15417 |
List<String> awbs)
|
|
|
15418 |
{
|
|
|
15419 |
this();
|
|
|
15420 |
this.providerId = providerId;
|
|
|
15421 |
setProviderIdIsSet(true);
|
|
|
15422 |
this.cod = cod;
|
|
|
15423 |
setCodIsSet(true);
|
|
|
15424 |
this.awbs = awbs;
|
|
|
15425 |
}
|
|
|
15426 |
|
|
|
15427 |
/**
|
|
|
15428 |
* Performs a deep copy on <i>other</i>.
|
|
|
15429 |
*/
|
|
|
15430 |
public addNewAwbs_args(addNewAwbs_args other) {
|
|
|
15431 |
__isset_bit_vector.clear();
|
|
|
15432 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
15433 |
this.providerId = other.providerId;
|
|
|
15434 |
this.cod = other.cod;
|
|
|
15435 |
if (other.isSetAwbs()) {
|
|
|
15436 |
List<String> __this__awbs = new ArrayList<String>();
|
|
|
15437 |
for (String other_element : other.awbs) {
|
|
|
15438 |
__this__awbs.add(other_element);
|
|
|
15439 |
}
|
|
|
15440 |
this.awbs = __this__awbs;
|
|
|
15441 |
}
|
|
|
15442 |
}
|
|
|
15443 |
|
|
|
15444 |
public addNewAwbs_args deepCopy() {
|
|
|
15445 |
return new addNewAwbs_args(this);
|
|
|
15446 |
}
|
|
|
15447 |
|
|
|
15448 |
@Override
|
|
|
15449 |
public void clear() {
|
|
|
15450 |
setProviderIdIsSet(false);
|
|
|
15451 |
this.providerId = 0;
|
|
|
15452 |
setCodIsSet(false);
|
|
|
15453 |
this.cod = false;
|
|
|
15454 |
this.awbs = null;
|
|
|
15455 |
}
|
|
|
15456 |
|
|
|
15457 |
public long getProviderId() {
|
|
|
15458 |
return this.providerId;
|
|
|
15459 |
}
|
|
|
15460 |
|
|
|
15461 |
public void setProviderId(long providerId) {
|
|
|
15462 |
this.providerId = providerId;
|
|
|
15463 |
setProviderIdIsSet(true);
|
|
|
15464 |
}
|
|
|
15465 |
|
|
|
15466 |
public void unsetProviderId() {
|
|
|
15467 |
__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
|
|
|
15468 |
}
|
|
|
15469 |
|
|
|
15470 |
/** Returns true if field providerId is set (has been assigned a value) and false otherwise */
|
|
|
15471 |
public boolean isSetProviderId() {
|
|
|
15472 |
return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
|
|
|
15473 |
}
|
|
|
15474 |
|
|
|
15475 |
public void setProviderIdIsSet(boolean value) {
|
|
|
15476 |
__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
|
|
|
15477 |
}
|
|
|
15478 |
|
|
|
15479 |
public boolean isCod() {
|
|
|
15480 |
return this.cod;
|
|
|
15481 |
}
|
|
|
15482 |
|
|
|
15483 |
public void setCod(boolean cod) {
|
|
|
15484 |
this.cod = cod;
|
|
|
15485 |
setCodIsSet(true);
|
|
|
15486 |
}
|
|
|
15487 |
|
|
|
15488 |
public void unsetCod() {
|
|
|
15489 |
__isset_bit_vector.clear(__COD_ISSET_ID);
|
|
|
15490 |
}
|
|
|
15491 |
|
|
|
15492 |
/** Returns true if field cod is set (has been assigned a value) and false otherwise */
|
|
|
15493 |
public boolean isSetCod() {
|
|
|
15494 |
return __isset_bit_vector.get(__COD_ISSET_ID);
|
|
|
15495 |
}
|
|
|
15496 |
|
|
|
15497 |
public void setCodIsSet(boolean value) {
|
|
|
15498 |
__isset_bit_vector.set(__COD_ISSET_ID, value);
|
|
|
15499 |
}
|
|
|
15500 |
|
|
|
15501 |
public int getAwbsSize() {
|
|
|
15502 |
return (this.awbs == null) ? 0 : this.awbs.size();
|
|
|
15503 |
}
|
|
|
15504 |
|
|
|
15505 |
public java.util.Iterator<String> getAwbsIterator() {
|
|
|
15506 |
return (this.awbs == null) ? null : this.awbs.iterator();
|
|
|
15507 |
}
|
|
|
15508 |
|
|
|
15509 |
public void addToAwbs(String elem) {
|
|
|
15510 |
if (this.awbs == null) {
|
|
|
15511 |
this.awbs = new ArrayList<String>();
|
|
|
15512 |
}
|
|
|
15513 |
this.awbs.add(elem);
|
|
|
15514 |
}
|
|
|
15515 |
|
|
|
15516 |
public List<String> getAwbs() {
|
|
|
15517 |
return this.awbs;
|
|
|
15518 |
}
|
|
|
15519 |
|
|
|
15520 |
public void setAwbs(List<String> awbs) {
|
|
|
15521 |
this.awbs = awbs;
|
|
|
15522 |
}
|
|
|
15523 |
|
|
|
15524 |
public void unsetAwbs() {
|
|
|
15525 |
this.awbs = null;
|
|
|
15526 |
}
|
|
|
15527 |
|
|
|
15528 |
/** Returns true if field awbs is set (has been assigned a value) and false otherwise */
|
|
|
15529 |
public boolean isSetAwbs() {
|
|
|
15530 |
return this.awbs != null;
|
|
|
15531 |
}
|
|
|
15532 |
|
|
|
15533 |
public void setAwbsIsSet(boolean value) {
|
|
|
15534 |
if (!value) {
|
|
|
15535 |
this.awbs = null;
|
|
|
15536 |
}
|
|
|
15537 |
}
|
|
|
15538 |
|
|
|
15539 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
15540 |
switch (field) {
|
|
|
15541 |
case PROVIDER_ID:
|
|
|
15542 |
if (value == null) {
|
|
|
15543 |
unsetProviderId();
|
|
|
15544 |
} else {
|
|
|
15545 |
setProviderId((Long)value);
|
|
|
15546 |
}
|
|
|
15547 |
break;
|
|
|
15548 |
|
|
|
15549 |
case COD:
|
|
|
15550 |
if (value == null) {
|
|
|
15551 |
unsetCod();
|
|
|
15552 |
} else {
|
|
|
15553 |
setCod((Boolean)value);
|
|
|
15554 |
}
|
|
|
15555 |
break;
|
|
|
15556 |
|
|
|
15557 |
case AWBS:
|
|
|
15558 |
if (value == null) {
|
|
|
15559 |
unsetAwbs();
|
|
|
15560 |
} else {
|
|
|
15561 |
setAwbs((List<String>)value);
|
|
|
15562 |
}
|
|
|
15563 |
break;
|
|
|
15564 |
|
|
|
15565 |
}
|
|
|
15566 |
}
|
|
|
15567 |
|
|
|
15568 |
public Object getFieldValue(_Fields field) {
|
|
|
15569 |
switch (field) {
|
|
|
15570 |
case PROVIDER_ID:
|
|
|
15571 |
return Long.valueOf(getProviderId());
|
|
|
15572 |
|
|
|
15573 |
case COD:
|
|
|
15574 |
return Boolean.valueOf(isCod());
|
|
|
15575 |
|
|
|
15576 |
case AWBS:
|
|
|
15577 |
return getAwbs();
|
|
|
15578 |
|
|
|
15579 |
}
|
|
|
15580 |
throw new IllegalStateException();
|
|
|
15581 |
}
|
|
|
15582 |
|
|
|
15583 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
15584 |
public boolean isSet(_Fields field) {
|
|
|
15585 |
if (field == null) {
|
|
|
15586 |
throw new IllegalArgumentException();
|
|
|
15587 |
}
|
|
|
15588 |
|
|
|
15589 |
switch (field) {
|
|
|
15590 |
case PROVIDER_ID:
|
|
|
15591 |
return isSetProviderId();
|
|
|
15592 |
case COD:
|
|
|
15593 |
return isSetCod();
|
|
|
15594 |
case AWBS:
|
|
|
15595 |
return isSetAwbs();
|
|
|
15596 |
}
|
|
|
15597 |
throw new IllegalStateException();
|
|
|
15598 |
}
|
|
|
15599 |
|
|
|
15600 |
@Override
|
|
|
15601 |
public boolean equals(Object that) {
|
|
|
15602 |
if (that == null)
|
|
|
15603 |
return false;
|
|
|
15604 |
if (that instanceof addNewAwbs_args)
|
|
|
15605 |
return this.equals((addNewAwbs_args)that);
|
|
|
15606 |
return false;
|
|
|
15607 |
}
|
|
|
15608 |
|
|
|
15609 |
public boolean equals(addNewAwbs_args that) {
|
|
|
15610 |
if (that == null)
|
|
|
15611 |
return false;
|
|
|
15612 |
|
|
|
15613 |
boolean this_present_providerId = true;
|
|
|
15614 |
boolean that_present_providerId = true;
|
|
|
15615 |
if (this_present_providerId || that_present_providerId) {
|
|
|
15616 |
if (!(this_present_providerId && that_present_providerId))
|
|
|
15617 |
return false;
|
|
|
15618 |
if (this.providerId != that.providerId)
|
|
|
15619 |
return false;
|
|
|
15620 |
}
|
|
|
15621 |
|
|
|
15622 |
boolean this_present_cod = true;
|
|
|
15623 |
boolean that_present_cod = true;
|
|
|
15624 |
if (this_present_cod || that_present_cod) {
|
|
|
15625 |
if (!(this_present_cod && that_present_cod))
|
|
|
15626 |
return false;
|
|
|
15627 |
if (this.cod != that.cod)
|
|
|
15628 |
return false;
|
|
|
15629 |
}
|
|
|
15630 |
|
|
|
15631 |
boolean this_present_awbs = true && this.isSetAwbs();
|
|
|
15632 |
boolean that_present_awbs = true && that.isSetAwbs();
|
|
|
15633 |
if (this_present_awbs || that_present_awbs) {
|
|
|
15634 |
if (!(this_present_awbs && that_present_awbs))
|
|
|
15635 |
return false;
|
|
|
15636 |
if (!this.awbs.equals(that.awbs))
|
|
|
15637 |
return false;
|
|
|
15638 |
}
|
|
|
15639 |
|
|
|
15640 |
return true;
|
|
|
15641 |
}
|
|
|
15642 |
|
|
|
15643 |
@Override
|
|
|
15644 |
public int hashCode() {
|
|
|
15645 |
return 0;
|
|
|
15646 |
}
|
|
|
15647 |
|
|
|
15648 |
public int compareTo(addNewAwbs_args other) {
|
|
|
15649 |
if (!getClass().equals(other.getClass())) {
|
|
|
15650 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
15651 |
}
|
|
|
15652 |
|
|
|
15653 |
int lastComparison = 0;
|
|
|
15654 |
addNewAwbs_args typedOther = (addNewAwbs_args)other;
|
|
|
15655 |
|
|
|
15656 |
lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
|
|
|
15657 |
if (lastComparison != 0) {
|
|
|
15658 |
return lastComparison;
|
|
|
15659 |
}
|
|
|
15660 |
if (isSetProviderId()) {
|
|
|
15661 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
|
|
|
15662 |
if (lastComparison != 0) {
|
|
|
15663 |
return lastComparison;
|
|
|
15664 |
}
|
|
|
15665 |
}
|
|
|
15666 |
lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
|
|
|
15667 |
if (lastComparison != 0) {
|
|
|
15668 |
return lastComparison;
|
|
|
15669 |
}
|
|
|
15670 |
if (isSetCod()) {
|
|
|
15671 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
|
|
|
15672 |
if (lastComparison != 0) {
|
|
|
15673 |
return lastComparison;
|
|
|
15674 |
}
|
|
|
15675 |
}
|
|
|
15676 |
lastComparison = Boolean.valueOf(isSetAwbs()).compareTo(typedOther.isSetAwbs());
|
|
|
15677 |
if (lastComparison != 0) {
|
|
|
15678 |
return lastComparison;
|
|
|
15679 |
}
|
|
|
15680 |
if (isSetAwbs()) {
|
|
|
15681 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awbs, typedOther.awbs);
|
|
|
15682 |
if (lastComparison != 0) {
|
|
|
15683 |
return lastComparison;
|
|
|
15684 |
}
|
|
|
15685 |
}
|
|
|
15686 |
return 0;
|
|
|
15687 |
}
|
|
|
15688 |
|
|
|
15689 |
public _Fields fieldForId(int fieldId) {
|
|
|
15690 |
return _Fields.findByThriftId(fieldId);
|
|
|
15691 |
}
|
|
|
15692 |
|
|
|
15693 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
15694 |
org.apache.thrift.protocol.TField field;
|
|
|
15695 |
iprot.readStructBegin();
|
|
|
15696 |
while (true)
|
|
|
15697 |
{
|
|
|
15698 |
field = iprot.readFieldBegin();
|
|
|
15699 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
15700 |
break;
|
|
|
15701 |
}
|
|
|
15702 |
switch (field.id) {
|
|
|
15703 |
case 1: // PROVIDER_ID
|
|
|
15704 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
15705 |
this.providerId = iprot.readI64();
|
|
|
15706 |
setProviderIdIsSet(true);
|
|
|
15707 |
} else {
|
|
|
15708 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
15709 |
}
|
|
|
15710 |
break;
|
|
|
15711 |
case 2: // COD
|
|
|
15712 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
15713 |
this.cod = iprot.readBool();
|
|
|
15714 |
setCodIsSet(true);
|
|
|
15715 |
} else {
|
|
|
15716 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
15717 |
}
|
|
|
15718 |
break;
|
|
|
15719 |
case 3: // AWBS
|
|
|
15720 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
15721 |
{
|
| 7792 |
anupam.sin |
15722 |
org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
|
|
|
15723 |
this.awbs = new ArrayList<String>(_list24.size);
|
|
|
15724 |
for (int _i25 = 0; _i25 < _list24.size; ++_i25)
|
| 7567 |
rajveer |
15725 |
{
|
| 7792 |
anupam.sin |
15726 |
String _elem26; // required
|
|
|
15727 |
_elem26 = iprot.readString();
|
|
|
15728 |
this.awbs.add(_elem26);
|
| 7567 |
rajveer |
15729 |
}
|
|
|
15730 |
iprot.readListEnd();
|
|
|
15731 |
}
|
|
|
15732 |
} else {
|
|
|
15733 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
15734 |
}
|
|
|
15735 |
break;
|
|
|
15736 |
default:
|
|
|
15737 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
15738 |
}
|
|
|
15739 |
iprot.readFieldEnd();
|
|
|
15740 |
}
|
|
|
15741 |
iprot.readStructEnd();
|
|
|
15742 |
validate();
|
|
|
15743 |
}
|
|
|
15744 |
|
|
|
15745 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
15746 |
validate();
|
|
|
15747 |
|
|
|
15748 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
15749 |
oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
|
|
|
15750 |
oprot.writeI64(this.providerId);
|
|
|
15751 |
oprot.writeFieldEnd();
|
|
|
15752 |
oprot.writeFieldBegin(COD_FIELD_DESC);
|
|
|
15753 |
oprot.writeBool(this.cod);
|
|
|
15754 |
oprot.writeFieldEnd();
|
|
|
15755 |
if (this.awbs != null) {
|
|
|
15756 |
oprot.writeFieldBegin(AWBS_FIELD_DESC);
|
|
|
15757 |
{
|
|
|
15758 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.awbs.size()));
|
| 7792 |
anupam.sin |
15759 |
for (String _iter27 : this.awbs)
|
| 7567 |
rajveer |
15760 |
{
|
| 7792 |
anupam.sin |
15761 |
oprot.writeString(_iter27);
|
| 7567 |
rajveer |
15762 |
}
|
|
|
15763 |
oprot.writeListEnd();
|
|
|
15764 |
}
|
|
|
15765 |
oprot.writeFieldEnd();
|
|
|
15766 |
}
|
|
|
15767 |
oprot.writeFieldStop();
|
|
|
15768 |
oprot.writeStructEnd();
|
|
|
15769 |
}
|
|
|
15770 |
|
|
|
15771 |
@Override
|
|
|
15772 |
public String toString() {
|
|
|
15773 |
StringBuilder sb = new StringBuilder("addNewAwbs_args(");
|
|
|
15774 |
boolean first = true;
|
|
|
15775 |
|
|
|
15776 |
sb.append("providerId:");
|
|
|
15777 |
sb.append(this.providerId);
|
|
|
15778 |
first = false;
|
|
|
15779 |
if (!first) sb.append(", ");
|
|
|
15780 |
sb.append("cod:");
|
|
|
15781 |
sb.append(this.cod);
|
|
|
15782 |
first = false;
|
|
|
15783 |
if (!first) sb.append(", ");
|
|
|
15784 |
sb.append("awbs:");
|
|
|
15785 |
if (this.awbs == null) {
|
|
|
15786 |
sb.append("null");
|
|
|
15787 |
} else {
|
|
|
15788 |
sb.append(this.awbs);
|
|
|
15789 |
}
|
|
|
15790 |
first = false;
|
|
|
15791 |
sb.append(")");
|
|
|
15792 |
return sb.toString();
|
|
|
15793 |
}
|
|
|
15794 |
|
|
|
15795 |
public void validate() throws org.apache.thrift.TException {
|
|
|
15796 |
// check for required fields
|
|
|
15797 |
}
|
|
|
15798 |
|
|
|
15799 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
15800 |
try {
|
|
|
15801 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
15802 |
} catch (org.apache.thrift.TException te) {
|
|
|
15803 |
throw new java.io.IOException(te);
|
|
|
15804 |
}
|
|
|
15805 |
}
|
|
|
15806 |
|
|
|
15807 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
15808 |
try {
|
|
|
15809 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
15810 |
__isset_bit_vector = new BitSet(1);
|
|
|
15811 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
15812 |
} catch (org.apache.thrift.TException te) {
|
|
|
15813 |
throw new java.io.IOException(te);
|
|
|
15814 |
}
|
|
|
15815 |
}
|
|
|
15816 |
|
|
|
15817 |
}
|
|
|
15818 |
|
|
|
15819 |
public static class addNewAwbs_result implements org.apache.thrift.TBase<addNewAwbs_result, addNewAwbs_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
15820 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addNewAwbs_result");
|
|
|
15821 |
|
|
|
15822 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
|
|
|
15823 |
|
|
|
15824 |
private boolean success; // required
|
|
|
15825 |
|
|
|
15826 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
15827 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
15828 |
SUCCESS((short)0, "success");
|
|
|
15829 |
|
|
|
15830 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
15831 |
|
|
|
15832 |
static {
|
|
|
15833 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
15834 |
byName.put(field.getFieldName(), field);
|
|
|
15835 |
}
|
|
|
15836 |
}
|
|
|
15837 |
|
|
|
15838 |
/**
|
|
|
15839 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
15840 |
*/
|
|
|
15841 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
15842 |
switch(fieldId) {
|
|
|
15843 |
case 0: // SUCCESS
|
|
|
15844 |
return SUCCESS;
|
|
|
15845 |
default:
|
|
|
15846 |
return null;
|
|
|
15847 |
}
|
|
|
15848 |
}
|
|
|
15849 |
|
|
|
15850 |
/**
|
|
|
15851 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
15852 |
* if it is not found.
|
|
|
15853 |
*/
|
|
|
15854 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
15855 |
_Fields fields = findByThriftId(fieldId);
|
|
|
15856 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
15857 |
return fields;
|
|
|
15858 |
}
|
|
|
15859 |
|
|
|
15860 |
/**
|
|
|
15861 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
15862 |
*/
|
|
|
15863 |
public static _Fields findByName(String name) {
|
|
|
15864 |
return byName.get(name);
|
|
|
15865 |
}
|
|
|
15866 |
|
|
|
15867 |
private final short _thriftId;
|
|
|
15868 |
private final String _fieldName;
|
|
|
15869 |
|
|
|
15870 |
_Fields(short thriftId, String fieldName) {
|
|
|
15871 |
_thriftId = thriftId;
|
|
|
15872 |
_fieldName = fieldName;
|
|
|
15873 |
}
|
|
|
15874 |
|
|
|
15875 |
public short getThriftFieldId() {
|
|
|
15876 |
return _thriftId;
|
|
|
15877 |
}
|
|
|
15878 |
|
|
|
15879 |
public String getFieldName() {
|
|
|
15880 |
return _fieldName;
|
|
|
15881 |
}
|
|
|
15882 |
}
|
|
|
15883 |
|
|
|
15884 |
// isset id assignments
|
|
|
15885 |
private static final int __SUCCESS_ISSET_ID = 0;
|
|
|
15886 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
15887 |
|
|
|
15888 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
15889 |
static {
|
|
|
15890 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
15891 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
15892 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
|
|
15893 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
15894 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addNewAwbs_result.class, metaDataMap);
|
|
|
15895 |
}
|
|
|
15896 |
|
|
|
15897 |
public addNewAwbs_result() {
|
|
|
15898 |
}
|
|
|
15899 |
|
|
|
15900 |
public addNewAwbs_result(
|
|
|
15901 |
boolean success)
|
|
|
15902 |
{
|
|
|
15903 |
this();
|
|
|
15904 |
this.success = success;
|
|
|
15905 |
setSuccessIsSet(true);
|
|
|
15906 |
}
|
|
|
15907 |
|
|
|
15908 |
/**
|
|
|
15909 |
* Performs a deep copy on <i>other</i>.
|
|
|
15910 |
*/
|
|
|
15911 |
public addNewAwbs_result(addNewAwbs_result other) {
|
|
|
15912 |
__isset_bit_vector.clear();
|
|
|
15913 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
15914 |
this.success = other.success;
|
|
|
15915 |
}
|
|
|
15916 |
|
|
|
15917 |
public addNewAwbs_result deepCopy() {
|
|
|
15918 |
return new addNewAwbs_result(this);
|
|
|
15919 |
}
|
|
|
15920 |
|
|
|
15921 |
@Override
|
|
|
15922 |
public void clear() {
|
|
|
15923 |
setSuccessIsSet(false);
|
|
|
15924 |
this.success = false;
|
|
|
15925 |
}
|
|
|
15926 |
|
|
|
15927 |
public boolean isSuccess() {
|
|
|
15928 |
return this.success;
|
|
|
15929 |
}
|
|
|
15930 |
|
|
|
15931 |
public void setSuccess(boolean success) {
|
|
|
15932 |
this.success = success;
|
|
|
15933 |
setSuccessIsSet(true);
|
|
|
15934 |
}
|
|
|
15935 |
|
|
|
15936 |
public void unsetSuccess() {
|
|
|
15937 |
__isset_bit_vector.clear(__SUCCESS_ISSET_ID);
|
|
|
15938 |
}
|
|
|
15939 |
|
|
|
15940 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
15941 |
public boolean isSetSuccess() {
|
|
|
15942 |
return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
|
|
|
15943 |
}
|
|
|
15944 |
|
|
|
15945 |
public void setSuccessIsSet(boolean value) {
|
|
|
15946 |
__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
|
|
|
15947 |
}
|
|
|
15948 |
|
|
|
15949 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
15950 |
switch (field) {
|
|
|
15951 |
case SUCCESS:
|
|
|
15952 |
if (value == null) {
|
|
|
15953 |
unsetSuccess();
|
|
|
15954 |
} else {
|
|
|
15955 |
setSuccess((Boolean)value);
|
|
|
15956 |
}
|
|
|
15957 |
break;
|
|
|
15958 |
|
|
|
15959 |
}
|
|
|
15960 |
}
|
|
|
15961 |
|
|
|
15962 |
public Object getFieldValue(_Fields field) {
|
|
|
15963 |
switch (field) {
|
|
|
15964 |
case SUCCESS:
|
|
|
15965 |
return Boolean.valueOf(isSuccess());
|
|
|
15966 |
|
|
|
15967 |
}
|
|
|
15968 |
throw new IllegalStateException();
|
|
|
15969 |
}
|
|
|
15970 |
|
|
|
15971 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
15972 |
public boolean isSet(_Fields field) {
|
|
|
15973 |
if (field == null) {
|
|
|
15974 |
throw new IllegalArgumentException();
|
|
|
15975 |
}
|
|
|
15976 |
|
|
|
15977 |
switch (field) {
|
|
|
15978 |
case SUCCESS:
|
|
|
15979 |
return isSetSuccess();
|
|
|
15980 |
}
|
|
|
15981 |
throw new IllegalStateException();
|
|
|
15982 |
}
|
|
|
15983 |
|
|
|
15984 |
@Override
|
|
|
15985 |
public boolean equals(Object that) {
|
|
|
15986 |
if (that == null)
|
|
|
15987 |
return false;
|
|
|
15988 |
if (that instanceof addNewAwbs_result)
|
|
|
15989 |
return this.equals((addNewAwbs_result)that);
|
|
|
15990 |
return false;
|
|
|
15991 |
}
|
|
|
15992 |
|
|
|
15993 |
public boolean equals(addNewAwbs_result that) {
|
|
|
15994 |
if (that == null)
|
|
|
15995 |
return false;
|
|
|
15996 |
|
|
|
15997 |
boolean this_present_success = true;
|
|
|
15998 |
boolean that_present_success = true;
|
|
|
15999 |
if (this_present_success || that_present_success) {
|
|
|
16000 |
if (!(this_present_success && that_present_success))
|
|
|
16001 |
return false;
|
|
|
16002 |
if (this.success != that.success)
|
|
|
16003 |
return false;
|
|
|
16004 |
}
|
|
|
16005 |
|
|
|
16006 |
return true;
|
|
|
16007 |
}
|
|
|
16008 |
|
|
|
16009 |
@Override
|
|
|
16010 |
public int hashCode() {
|
|
|
16011 |
return 0;
|
|
|
16012 |
}
|
|
|
16013 |
|
|
|
16014 |
public int compareTo(addNewAwbs_result other) {
|
|
|
16015 |
if (!getClass().equals(other.getClass())) {
|
|
|
16016 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
16017 |
}
|
|
|
16018 |
|
|
|
16019 |
int lastComparison = 0;
|
|
|
16020 |
addNewAwbs_result typedOther = (addNewAwbs_result)other;
|
|
|
16021 |
|
|
|
16022 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
16023 |
if (lastComparison != 0) {
|
|
|
16024 |
return lastComparison;
|
|
|
16025 |
}
|
|
|
16026 |
if (isSetSuccess()) {
|
|
|
16027 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
16028 |
if (lastComparison != 0) {
|
|
|
16029 |
return lastComparison;
|
|
|
16030 |
}
|
|
|
16031 |
}
|
|
|
16032 |
return 0;
|
|
|
16033 |
}
|
|
|
16034 |
|
|
|
16035 |
public _Fields fieldForId(int fieldId) {
|
|
|
16036 |
return _Fields.findByThriftId(fieldId);
|
|
|
16037 |
}
|
|
|
16038 |
|
|
|
16039 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
16040 |
org.apache.thrift.protocol.TField field;
|
|
|
16041 |
iprot.readStructBegin();
|
|
|
16042 |
while (true)
|
|
|
16043 |
{
|
|
|
16044 |
field = iprot.readFieldBegin();
|
|
|
16045 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
16046 |
break;
|
|
|
16047 |
}
|
|
|
16048 |
switch (field.id) {
|
|
|
16049 |
case 0: // SUCCESS
|
|
|
16050 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
16051 |
this.success = iprot.readBool();
|
|
|
16052 |
setSuccessIsSet(true);
|
|
|
16053 |
} else {
|
|
|
16054 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
16055 |
}
|
|
|
16056 |
break;
|
|
|
16057 |
default:
|
|
|
16058 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
16059 |
}
|
|
|
16060 |
iprot.readFieldEnd();
|
|
|
16061 |
}
|
|
|
16062 |
iprot.readStructEnd();
|
|
|
16063 |
validate();
|
|
|
16064 |
}
|
|
|
16065 |
|
|
|
16066 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
16067 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
16068 |
|
|
|
16069 |
if (this.isSetSuccess()) {
|
|
|
16070 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
16071 |
oprot.writeBool(this.success);
|
|
|
16072 |
oprot.writeFieldEnd();
|
|
|
16073 |
}
|
|
|
16074 |
oprot.writeFieldStop();
|
|
|
16075 |
oprot.writeStructEnd();
|
|
|
16076 |
}
|
|
|
16077 |
|
|
|
16078 |
@Override
|
|
|
16079 |
public String toString() {
|
|
|
16080 |
StringBuilder sb = new StringBuilder("addNewAwbs_result(");
|
|
|
16081 |
boolean first = true;
|
|
|
16082 |
|
|
|
16083 |
sb.append("success:");
|
|
|
16084 |
sb.append(this.success);
|
|
|
16085 |
first = false;
|
|
|
16086 |
sb.append(")");
|
|
|
16087 |
return sb.toString();
|
|
|
16088 |
}
|
|
|
16089 |
|
|
|
16090 |
public void validate() throws org.apache.thrift.TException {
|
|
|
16091 |
// check for required fields
|
|
|
16092 |
}
|
|
|
16093 |
|
|
|
16094 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
16095 |
try {
|
|
|
16096 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
16097 |
} catch (org.apache.thrift.TException te) {
|
|
|
16098 |
throw new java.io.IOException(te);
|
|
|
16099 |
}
|
|
|
16100 |
}
|
|
|
16101 |
|
|
|
16102 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
16103 |
try {
|
|
|
16104 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
16105 |
} catch (org.apache.thrift.TException te) {
|
|
|
16106 |
throw new java.io.IOException(te);
|
|
|
16107 |
}
|
|
|
16108 |
}
|
|
|
16109 |
|
|
|
16110 |
}
|
|
|
16111 |
|
| 7788 |
manish.sha |
16112 |
public static class runLogisticsLocationInfoUpdate_args implements org.apache.thrift.TBase<runLogisticsLocationInfoUpdate_args, runLogisticsLocationInfoUpdate_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
16113 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("runLogisticsLocationInfoUpdate_args");
|
| 7737 |
manish.sha |
16114 |
|
| 7788 |
manish.sha |
16115 |
private static final org.apache.thrift.protocol.TField LOGISTICS_LOCATION_INFO_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("logisticsLocationInfoList", org.apache.thrift.protocol.TType.LIST, (short)1);
|
|
|
16116 |
private static final org.apache.thrift.protocol.TField RUN_COMPLETE_UPDATE_FIELD_DESC = new org.apache.thrift.protocol.TField("runCompleteUpdate", org.apache.thrift.protocol.TType.BOOL, (short)2);
|
| 7737 |
manish.sha |
16117 |
|
| 7788 |
manish.sha |
16118 |
private List<LogisticsLocationInfo> logisticsLocationInfoList; // required
|
|
|
16119 |
private boolean runCompleteUpdate; // required
|
| 7737 |
manish.sha |
16120 |
|
|
|
16121 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
16122 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 7788 |
manish.sha |
16123 |
LOGISTICS_LOCATION_INFO_LIST((short)1, "logisticsLocationInfoList"),
|
|
|
16124 |
RUN_COMPLETE_UPDATE((short)2, "runCompleteUpdate");
|
| 7737 |
manish.sha |
16125 |
|
|
|
16126 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
16127 |
|
|
|
16128 |
static {
|
|
|
16129 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
16130 |
byName.put(field.getFieldName(), field);
|
|
|
16131 |
}
|
|
|
16132 |
}
|
|
|
16133 |
|
|
|
16134 |
/**
|
|
|
16135 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
16136 |
*/
|
|
|
16137 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
16138 |
switch(fieldId) {
|
| 7788 |
manish.sha |
16139 |
case 1: // LOGISTICS_LOCATION_INFO_LIST
|
|
|
16140 |
return LOGISTICS_LOCATION_INFO_LIST;
|
|
|
16141 |
case 2: // RUN_COMPLETE_UPDATE
|
|
|
16142 |
return RUN_COMPLETE_UPDATE;
|
| 7737 |
manish.sha |
16143 |
default:
|
|
|
16144 |
return null;
|
|
|
16145 |
}
|
|
|
16146 |
}
|
|
|
16147 |
|
|
|
16148 |
/**
|
|
|
16149 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
16150 |
* if it is not found.
|
|
|
16151 |
*/
|
|
|
16152 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
16153 |
_Fields fields = findByThriftId(fieldId);
|
|
|
16154 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
16155 |
return fields;
|
|
|
16156 |
}
|
|
|
16157 |
|
|
|
16158 |
/**
|
|
|
16159 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
16160 |
*/
|
|
|
16161 |
public static _Fields findByName(String name) {
|
|
|
16162 |
return byName.get(name);
|
|
|
16163 |
}
|
|
|
16164 |
|
|
|
16165 |
private final short _thriftId;
|
|
|
16166 |
private final String _fieldName;
|
|
|
16167 |
|
|
|
16168 |
_Fields(short thriftId, String fieldName) {
|
|
|
16169 |
_thriftId = thriftId;
|
|
|
16170 |
_fieldName = fieldName;
|
|
|
16171 |
}
|
|
|
16172 |
|
|
|
16173 |
public short getThriftFieldId() {
|
|
|
16174 |
return _thriftId;
|
|
|
16175 |
}
|
|
|
16176 |
|
|
|
16177 |
public String getFieldName() {
|
|
|
16178 |
return _fieldName;
|
|
|
16179 |
}
|
|
|
16180 |
}
|
|
|
16181 |
|
|
|
16182 |
// isset id assignments
|
| 7788 |
manish.sha |
16183 |
private static final int __RUNCOMPLETEUPDATE_ISSET_ID = 0;
|
| 7737 |
manish.sha |
16184 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
16185 |
|
|
|
16186 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
16187 |
static {
|
|
|
16188 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 7788 |
manish.sha |
16189 |
tmpMap.put(_Fields.LOGISTICS_LOCATION_INFO_LIST, new org.apache.thrift.meta_data.FieldMetaData("logisticsLocationInfoList", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
16190 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
16191 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsLocationInfo.class))));
|
|
|
16192 |
tmpMap.put(_Fields.RUN_COMPLETE_UPDATE, new org.apache.thrift.meta_data.FieldMetaData("runCompleteUpdate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
16193 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
| 7737 |
manish.sha |
16194 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 7788 |
manish.sha |
16195 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(runLogisticsLocationInfoUpdate_args.class, metaDataMap);
|
| 7737 |
manish.sha |
16196 |
}
|
|
|
16197 |
|
| 7788 |
manish.sha |
16198 |
public runLogisticsLocationInfoUpdate_args() {
|
| 7737 |
manish.sha |
16199 |
}
|
|
|
16200 |
|
| 7788 |
manish.sha |
16201 |
public runLogisticsLocationInfoUpdate_args(
|
|
|
16202 |
List<LogisticsLocationInfo> logisticsLocationInfoList,
|
|
|
16203 |
boolean runCompleteUpdate)
|
| 7737 |
manish.sha |
16204 |
{
|
|
|
16205 |
this();
|
| 7788 |
manish.sha |
16206 |
this.logisticsLocationInfoList = logisticsLocationInfoList;
|
|
|
16207 |
this.runCompleteUpdate = runCompleteUpdate;
|
|
|
16208 |
setRunCompleteUpdateIsSet(true);
|
| 7737 |
manish.sha |
16209 |
}
|
|
|
16210 |
|
|
|
16211 |
/**
|
|
|
16212 |
* Performs a deep copy on <i>other</i>.
|
|
|
16213 |
*/
|
| 7788 |
manish.sha |
16214 |
public runLogisticsLocationInfoUpdate_args(runLogisticsLocationInfoUpdate_args other) {
|
| 7737 |
manish.sha |
16215 |
__isset_bit_vector.clear();
|
|
|
16216 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 7788 |
manish.sha |
16217 |
if (other.isSetLogisticsLocationInfoList()) {
|
|
|
16218 |
List<LogisticsLocationInfo> __this__logisticsLocationInfoList = new ArrayList<LogisticsLocationInfo>();
|
|
|
16219 |
for (LogisticsLocationInfo other_element : other.logisticsLocationInfoList) {
|
|
|
16220 |
__this__logisticsLocationInfoList.add(new LogisticsLocationInfo(other_element));
|
|
|
16221 |
}
|
|
|
16222 |
this.logisticsLocationInfoList = __this__logisticsLocationInfoList;
|
| 7737 |
manish.sha |
16223 |
}
|
| 7788 |
manish.sha |
16224 |
this.runCompleteUpdate = other.runCompleteUpdate;
|
| 7737 |
manish.sha |
16225 |
}
|
|
|
16226 |
|
| 7788 |
manish.sha |
16227 |
public runLogisticsLocationInfoUpdate_args deepCopy() {
|
|
|
16228 |
return new runLogisticsLocationInfoUpdate_args(this);
|
| 7737 |
manish.sha |
16229 |
}
|
|
|
16230 |
|
|
|
16231 |
@Override
|
|
|
16232 |
public void clear() {
|
| 7788 |
manish.sha |
16233 |
this.logisticsLocationInfoList = null;
|
|
|
16234 |
setRunCompleteUpdateIsSet(false);
|
|
|
16235 |
this.runCompleteUpdate = false;
|
| 7737 |
manish.sha |
16236 |
}
|
|
|
16237 |
|
| 7788 |
manish.sha |
16238 |
public int getLogisticsLocationInfoListSize() {
|
|
|
16239 |
return (this.logisticsLocationInfoList == null) ? 0 : this.logisticsLocationInfoList.size();
|
| 7737 |
manish.sha |
16240 |
}
|
|
|
16241 |
|
| 7788 |
manish.sha |
16242 |
public java.util.Iterator<LogisticsLocationInfo> getLogisticsLocationInfoListIterator() {
|
|
|
16243 |
return (this.logisticsLocationInfoList == null) ? null : this.logisticsLocationInfoList.iterator();
|
| 7737 |
manish.sha |
16244 |
}
|
|
|
16245 |
|
| 7788 |
manish.sha |
16246 |
public void addToLogisticsLocationInfoList(LogisticsLocationInfo elem) {
|
|
|
16247 |
if (this.logisticsLocationInfoList == null) {
|
|
|
16248 |
this.logisticsLocationInfoList = new ArrayList<LogisticsLocationInfo>();
|
|
|
16249 |
}
|
|
|
16250 |
this.logisticsLocationInfoList.add(elem);
|
| 7737 |
manish.sha |
16251 |
}
|
|
|
16252 |
|
| 7788 |
manish.sha |
16253 |
public List<LogisticsLocationInfo> getLogisticsLocationInfoList() {
|
|
|
16254 |
return this.logisticsLocationInfoList;
|
| 7737 |
manish.sha |
16255 |
}
|
|
|
16256 |
|
| 7788 |
manish.sha |
16257 |
public void setLogisticsLocationInfoList(List<LogisticsLocationInfo> logisticsLocationInfoList) {
|
|
|
16258 |
this.logisticsLocationInfoList = logisticsLocationInfoList;
|
| 7737 |
manish.sha |
16259 |
}
|
|
|
16260 |
|
| 7788 |
manish.sha |
16261 |
public void unsetLogisticsLocationInfoList() {
|
|
|
16262 |
this.logisticsLocationInfoList = null;
|
| 7737 |
manish.sha |
16263 |
}
|
|
|
16264 |
|
| 7788 |
manish.sha |
16265 |
/** Returns true if field logisticsLocationInfoList is set (has been assigned a value) and false otherwise */
|
|
|
16266 |
public boolean isSetLogisticsLocationInfoList() {
|
|
|
16267 |
return this.logisticsLocationInfoList != null;
|
| 7737 |
manish.sha |
16268 |
}
|
|
|
16269 |
|
| 7788 |
manish.sha |
16270 |
public void setLogisticsLocationInfoListIsSet(boolean value) {
|
|
|
16271 |
if (!value) {
|
|
|
16272 |
this.logisticsLocationInfoList = null;
|
|
|
16273 |
}
|
| 7737 |
manish.sha |
16274 |
}
|
|
|
16275 |
|
| 7788 |
manish.sha |
16276 |
public boolean isRunCompleteUpdate() {
|
|
|
16277 |
return this.runCompleteUpdate;
|
| 7737 |
manish.sha |
16278 |
}
|
|
|
16279 |
|
| 7788 |
manish.sha |
16280 |
public void setRunCompleteUpdate(boolean runCompleteUpdate) {
|
|
|
16281 |
this.runCompleteUpdate = runCompleteUpdate;
|
|
|
16282 |
setRunCompleteUpdateIsSet(true);
|
| 7737 |
manish.sha |
16283 |
}
|
|
|
16284 |
|
| 7788 |
manish.sha |
16285 |
public void unsetRunCompleteUpdate() {
|
|
|
16286 |
__isset_bit_vector.clear(__RUNCOMPLETEUPDATE_ISSET_ID);
|
|
|
16287 |
}
|
|
|
16288 |
|
|
|
16289 |
/** Returns true if field runCompleteUpdate is set (has been assigned a value) and false otherwise */
|
|
|
16290 |
public boolean isSetRunCompleteUpdate() {
|
|
|
16291 |
return __isset_bit_vector.get(__RUNCOMPLETEUPDATE_ISSET_ID);
|
|
|
16292 |
}
|
|
|
16293 |
|
|
|
16294 |
public void setRunCompleteUpdateIsSet(boolean value) {
|
|
|
16295 |
__isset_bit_vector.set(__RUNCOMPLETEUPDATE_ISSET_ID, value);
|
|
|
16296 |
}
|
|
|
16297 |
|
| 7737 |
manish.sha |
16298 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
16299 |
switch (field) {
|
| 7788 |
manish.sha |
16300 |
case LOGISTICS_LOCATION_INFO_LIST:
|
| 7737 |
manish.sha |
16301 |
if (value == null) {
|
| 7788 |
manish.sha |
16302 |
unsetLogisticsLocationInfoList();
|
| 7737 |
manish.sha |
16303 |
} else {
|
| 7788 |
manish.sha |
16304 |
setLogisticsLocationInfoList((List<LogisticsLocationInfo>)value);
|
| 7737 |
manish.sha |
16305 |
}
|
|
|
16306 |
break;
|
|
|
16307 |
|
| 7788 |
manish.sha |
16308 |
case RUN_COMPLETE_UPDATE:
|
| 7737 |
manish.sha |
16309 |
if (value == null) {
|
| 7788 |
manish.sha |
16310 |
unsetRunCompleteUpdate();
|
| 7737 |
manish.sha |
16311 |
} else {
|
| 7788 |
manish.sha |
16312 |
setRunCompleteUpdate((Boolean)value);
|
| 7737 |
manish.sha |
16313 |
}
|
|
|
16314 |
break;
|
|
|
16315 |
|
|
|
16316 |
}
|
|
|
16317 |
}
|
|
|
16318 |
|
|
|
16319 |
public Object getFieldValue(_Fields field) {
|
|
|
16320 |
switch (field) {
|
| 7788 |
manish.sha |
16321 |
case LOGISTICS_LOCATION_INFO_LIST:
|
|
|
16322 |
return getLogisticsLocationInfoList();
|
| 7737 |
manish.sha |
16323 |
|
| 7788 |
manish.sha |
16324 |
case RUN_COMPLETE_UPDATE:
|
|
|
16325 |
return Boolean.valueOf(isRunCompleteUpdate());
|
| 7737 |
manish.sha |
16326 |
|
|
|
16327 |
}
|
|
|
16328 |
throw new IllegalStateException();
|
|
|
16329 |
}
|
|
|
16330 |
|
|
|
16331 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
16332 |
public boolean isSet(_Fields field) {
|
|
|
16333 |
if (field == null) {
|
|
|
16334 |
throw new IllegalArgumentException();
|
|
|
16335 |
}
|
|
|
16336 |
|
|
|
16337 |
switch (field) {
|
| 7788 |
manish.sha |
16338 |
case LOGISTICS_LOCATION_INFO_LIST:
|
|
|
16339 |
return isSetLogisticsLocationInfoList();
|
|
|
16340 |
case RUN_COMPLETE_UPDATE:
|
|
|
16341 |
return isSetRunCompleteUpdate();
|
| 7737 |
manish.sha |
16342 |
}
|
|
|
16343 |
throw new IllegalStateException();
|
|
|
16344 |
}
|
|
|
16345 |
|
|
|
16346 |
@Override
|
|
|
16347 |
public boolean equals(Object that) {
|
|
|
16348 |
if (that == null)
|
|
|
16349 |
return false;
|
| 7788 |
manish.sha |
16350 |
if (that instanceof runLogisticsLocationInfoUpdate_args)
|
|
|
16351 |
return this.equals((runLogisticsLocationInfoUpdate_args)that);
|
| 7737 |
manish.sha |
16352 |
return false;
|
|
|
16353 |
}
|
|
|
16354 |
|
| 7788 |
manish.sha |
16355 |
public boolean equals(runLogisticsLocationInfoUpdate_args that) {
|
| 7737 |
manish.sha |
16356 |
if (that == null)
|
|
|
16357 |
return false;
|
|
|
16358 |
|
| 7788 |
manish.sha |
16359 |
boolean this_present_logisticsLocationInfoList = true && this.isSetLogisticsLocationInfoList();
|
|
|
16360 |
boolean that_present_logisticsLocationInfoList = true && that.isSetLogisticsLocationInfoList();
|
|
|
16361 |
if (this_present_logisticsLocationInfoList || that_present_logisticsLocationInfoList) {
|
|
|
16362 |
if (!(this_present_logisticsLocationInfoList && that_present_logisticsLocationInfoList))
|
| 7737 |
manish.sha |
16363 |
return false;
|
| 7788 |
manish.sha |
16364 |
if (!this.logisticsLocationInfoList.equals(that.logisticsLocationInfoList))
|
| 7737 |
manish.sha |
16365 |
return false;
|
|
|
16366 |
}
|
|
|
16367 |
|
| 7788 |
manish.sha |
16368 |
boolean this_present_runCompleteUpdate = true;
|
|
|
16369 |
boolean that_present_runCompleteUpdate = true;
|
|
|
16370 |
if (this_present_runCompleteUpdate || that_present_runCompleteUpdate) {
|
|
|
16371 |
if (!(this_present_runCompleteUpdate && that_present_runCompleteUpdate))
|
| 7737 |
manish.sha |
16372 |
return false;
|
| 7788 |
manish.sha |
16373 |
if (this.runCompleteUpdate != that.runCompleteUpdate)
|
| 7737 |
manish.sha |
16374 |
return false;
|
|
|
16375 |
}
|
|
|
16376 |
|
|
|
16377 |
return true;
|
|
|
16378 |
}
|
|
|
16379 |
|
|
|
16380 |
@Override
|
|
|
16381 |
public int hashCode() {
|
|
|
16382 |
return 0;
|
|
|
16383 |
}
|
|
|
16384 |
|
| 7788 |
manish.sha |
16385 |
public int compareTo(runLogisticsLocationInfoUpdate_args other) {
|
| 7737 |
manish.sha |
16386 |
if (!getClass().equals(other.getClass())) {
|
|
|
16387 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
16388 |
}
|
|
|
16389 |
|
|
|
16390 |
int lastComparison = 0;
|
| 7788 |
manish.sha |
16391 |
runLogisticsLocationInfoUpdate_args typedOther = (runLogisticsLocationInfoUpdate_args)other;
|
| 7737 |
manish.sha |
16392 |
|
| 7788 |
manish.sha |
16393 |
lastComparison = Boolean.valueOf(isSetLogisticsLocationInfoList()).compareTo(typedOther.isSetLogisticsLocationInfoList());
|
| 7737 |
manish.sha |
16394 |
if (lastComparison != 0) {
|
|
|
16395 |
return lastComparison;
|
|
|
16396 |
}
|
| 7788 |
manish.sha |
16397 |
if (isSetLogisticsLocationInfoList()) {
|
|
|
16398 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logisticsLocationInfoList, typedOther.logisticsLocationInfoList);
|
| 7737 |
manish.sha |
16399 |
if (lastComparison != 0) {
|
|
|
16400 |
return lastComparison;
|
|
|
16401 |
}
|
|
|
16402 |
}
|
| 7788 |
manish.sha |
16403 |
lastComparison = Boolean.valueOf(isSetRunCompleteUpdate()).compareTo(typedOther.isSetRunCompleteUpdate());
|
| 7737 |
manish.sha |
16404 |
if (lastComparison != 0) {
|
|
|
16405 |
return lastComparison;
|
|
|
16406 |
}
|
| 7788 |
manish.sha |
16407 |
if (isSetRunCompleteUpdate()) {
|
|
|
16408 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.runCompleteUpdate, typedOther.runCompleteUpdate);
|
| 7737 |
manish.sha |
16409 |
if (lastComparison != 0) {
|
|
|
16410 |
return lastComparison;
|
|
|
16411 |
}
|
|
|
16412 |
}
|
|
|
16413 |
return 0;
|
|
|
16414 |
}
|
|
|
16415 |
|
|
|
16416 |
public _Fields fieldForId(int fieldId) {
|
|
|
16417 |
return _Fields.findByThriftId(fieldId);
|
|
|
16418 |
}
|
|
|
16419 |
|
|
|
16420 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
16421 |
org.apache.thrift.protocol.TField field;
|
|
|
16422 |
iprot.readStructBegin();
|
|
|
16423 |
while (true)
|
|
|
16424 |
{
|
|
|
16425 |
field = iprot.readFieldBegin();
|
|
|
16426 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
16427 |
break;
|
|
|
16428 |
}
|
|
|
16429 |
switch (field.id) {
|
| 7788 |
manish.sha |
16430 |
case 1: // LOGISTICS_LOCATION_INFO_LIST
|
|
|
16431 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
16432 |
{
|
| 7808 |
anupam.sin |
16433 |
org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
|
|
|
16434 |
this.logisticsLocationInfoList = new ArrayList<LogisticsLocationInfo>(_list28.size);
|
|
|
16435 |
for (int _i29 = 0; _i29 < _list28.size; ++_i29)
|
| 7788 |
manish.sha |
16436 |
{
|
| 7808 |
anupam.sin |
16437 |
LogisticsLocationInfo _elem30; // required
|
|
|
16438 |
_elem30 = new LogisticsLocationInfo();
|
|
|
16439 |
_elem30.read(iprot);
|
|
|
16440 |
this.logisticsLocationInfoList.add(_elem30);
|
| 7788 |
manish.sha |
16441 |
}
|
|
|
16442 |
iprot.readListEnd();
|
|
|
16443 |
}
|
| 7737 |
manish.sha |
16444 |
} else {
|
|
|
16445 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
16446 |
}
|
|
|
16447 |
break;
|
| 7788 |
manish.sha |
16448 |
case 2: // RUN_COMPLETE_UPDATE
|
|
|
16449 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
16450 |
this.runCompleteUpdate = iprot.readBool();
|
|
|
16451 |
setRunCompleteUpdateIsSet(true);
|
| 7737 |
manish.sha |
16452 |
} else {
|
|
|
16453 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
16454 |
}
|
|
|
16455 |
break;
|
|
|
16456 |
default:
|
|
|
16457 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
16458 |
}
|
|
|
16459 |
iprot.readFieldEnd();
|
|
|
16460 |
}
|
|
|
16461 |
iprot.readStructEnd();
|
|
|
16462 |
validate();
|
|
|
16463 |
}
|
|
|
16464 |
|
|
|
16465 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
16466 |
validate();
|
|
|
16467 |
|
|
|
16468 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 7788 |
manish.sha |
16469 |
if (this.logisticsLocationInfoList != null) {
|
|
|
16470 |
oprot.writeFieldBegin(LOGISTICS_LOCATION_INFO_LIST_FIELD_DESC);
|
|
|
16471 |
{
|
|
|
16472 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.logisticsLocationInfoList.size()));
|
| 7808 |
anupam.sin |
16473 |
for (LogisticsLocationInfo _iter31 : this.logisticsLocationInfoList)
|
| 7788 |
manish.sha |
16474 |
{
|
| 7808 |
anupam.sin |
16475 |
_iter31.write(oprot);
|
| 7788 |
manish.sha |
16476 |
}
|
|
|
16477 |
oprot.writeListEnd();
|
|
|
16478 |
}
|
| 7737 |
manish.sha |
16479 |
oprot.writeFieldEnd();
|
|
|
16480 |
}
|
| 7788 |
manish.sha |
16481 |
oprot.writeFieldBegin(RUN_COMPLETE_UPDATE_FIELD_DESC);
|
|
|
16482 |
oprot.writeBool(this.runCompleteUpdate);
|
|
|
16483 |
oprot.writeFieldEnd();
|
| 7737 |
manish.sha |
16484 |
oprot.writeFieldStop();
|
|
|
16485 |
oprot.writeStructEnd();
|
|
|
16486 |
}
|
|
|
16487 |
|
|
|
16488 |
@Override
|
|
|
16489 |
public String toString() {
|
| 7788 |
manish.sha |
16490 |
StringBuilder sb = new StringBuilder("runLogisticsLocationInfoUpdate_args(");
|
| 7737 |
manish.sha |
16491 |
boolean first = true;
|
|
|
16492 |
|
| 7788 |
manish.sha |
16493 |
sb.append("logisticsLocationInfoList:");
|
|
|
16494 |
if (this.logisticsLocationInfoList == null) {
|
| 7737 |
manish.sha |
16495 |
sb.append("null");
|
|
|
16496 |
} else {
|
| 7788 |
manish.sha |
16497 |
sb.append(this.logisticsLocationInfoList);
|
| 7737 |
manish.sha |
16498 |
}
|
|
|
16499 |
first = false;
|
| 7788 |
manish.sha |
16500 |
if (!first) sb.append(", ");
|
|
|
16501 |
sb.append("runCompleteUpdate:");
|
|
|
16502 |
sb.append(this.runCompleteUpdate);
|
| 7737 |
manish.sha |
16503 |
first = false;
|
|
|
16504 |
sb.append(")");
|
|
|
16505 |
return sb.toString();
|
|
|
16506 |
}
|
|
|
16507 |
|
|
|
16508 |
public void validate() throws org.apache.thrift.TException {
|
|
|
16509 |
// check for required fields
|
|
|
16510 |
}
|
|
|
16511 |
|
|
|
16512 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
16513 |
try {
|
|
|
16514 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
16515 |
} catch (org.apache.thrift.TException te) {
|
|
|
16516 |
throw new java.io.IOException(te);
|
|
|
16517 |
}
|
|
|
16518 |
}
|
|
|
16519 |
|
|
|
16520 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
16521 |
try {
|
| 7788 |
manish.sha |
16522 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
16523 |
__isset_bit_vector = new BitSet(1);
|
| 7737 |
manish.sha |
16524 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
16525 |
} catch (org.apache.thrift.TException te) {
|
|
|
16526 |
throw new java.io.IOException(te);
|
|
|
16527 |
}
|
|
|
16528 |
}
|
|
|
16529 |
|
|
|
16530 |
}
|
|
|
16531 |
|
| 7788 |
manish.sha |
16532 |
public static class runLogisticsLocationInfoUpdate_result implements org.apache.thrift.TBase<runLogisticsLocationInfoUpdate_result, runLogisticsLocationInfoUpdate_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
16533 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("runLogisticsLocationInfoUpdate_result");
|
| 7737 |
manish.sha |
16534 |
|
|
|
16535 |
|
|
|
16536 |
|
|
|
16537 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
16538 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
16539 |
;
|
|
|
16540 |
|
|
|
16541 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
16542 |
|
|
|
16543 |
static {
|
|
|
16544 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
16545 |
byName.put(field.getFieldName(), field);
|
|
|
16546 |
}
|
|
|
16547 |
}
|
|
|
16548 |
|
|
|
16549 |
/**
|
|
|
16550 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
16551 |
*/
|
|
|
16552 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
16553 |
switch(fieldId) {
|
|
|
16554 |
default:
|
|
|
16555 |
return null;
|
|
|
16556 |
}
|
|
|
16557 |
}
|
|
|
16558 |
|
|
|
16559 |
/**
|
|
|
16560 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
16561 |
* if it is not found.
|
|
|
16562 |
*/
|
|
|
16563 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
16564 |
_Fields fields = findByThriftId(fieldId);
|
|
|
16565 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
16566 |
return fields;
|
|
|
16567 |
}
|
|
|
16568 |
|
|
|
16569 |
/**
|
|
|
16570 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
16571 |
*/
|
|
|
16572 |
public static _Fields findByName(String name) {
|
|
|
16573 |
return byName.get(name);
|
|
|
16574 |
}
|
|
|
16575 |
|
|
|
16576 |
private final short _thriftId;
|
|
|
16577 |
private final String _fieldName;
|
|
|
16578 |
|
|
|
16579 |
_Fields(short thriftId, String fieldName) {
|
|
|
16580 |
_thriftId = thriftId;
|
|
|
16581 |
_fieldName = fieldName;
|
|
|
16582 |
}
|
|
|
16583 |
|
|
|
16584 |
public short getThriftFieldId() {
|
|
|
16585 |
return _thriftId;
|
|
|
16586 |
}
|
|
|
16587 |
|
|
|
16588 |
public String getFieldName() {
|
|
|
16589 |
return _fieldName;
|
|
|
16590 |
}
|
|
|
16591 |
}
|
|
|
16592 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
16593 |
static {
|
|
|
16594 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
16595 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 7788 |
manish.sha |
16596 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(runLogisticsLocationInfoUpdate_result.class, metaDataMap);
|
| 7737 |
manish.sha |
16597 |
}
|
|
|
16598 |
|
| 7788 |
manish.sha |
16599 |
public runLogisticsLocationInfoUpdate_result() {
|
| 7737 |
manish.sha |
16600 |
}
|
|
|
16601 |
|
|
|
16602 |
/**
|
|
|
16603 |
* Performs a deep copy on <i>other</i>.
|
|
|
16604 |
*/
|
| 7788 |
manish.sha |
16605 |
public runLogisticsLocationInfoUpdate_result(runLogisticsLocationInfoUpdate_result other) {
|
| 7737 |
manish.sha |
16606 |
}
|
|
|
16607 |
|
| 7788 |
manish.sha |
16608 |
public runLogisticsLocationInfoUpdate_result deepCopy() {
|
|
|
16609 |
return new runLogisticsLocationInfoUpdate_result(this);
|
| 7737 |
manish.sha |
16610 |
}
|
|
|
16611 |
|
|
|
16612 |
@Override
|
|
|
16613 |
public void clear() {
|
|
|
16614 |
}
|
|
|
16615 |
|
|
|
16616 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
16617 |
switch (field) {
|
|
|
16618 |
}
|
|
|
16619 |
}
|
|
|
16620 |
|
|
|
16621 |
public Object getFieldValue(_Fields field) {
|
|
|
16622 |
switch (field) {
|
|
|
16623 |
}
|
|
|
16624 |
throw new IllegalStateException();
|
|
|
16625 |
}
|
|
|
16626 |
|
|
|
16627 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
16628 |
public boolean isSet(_Fields field) {
|
|
|
16629 |
if (field == null) {
|
|
|
16630 |
throw new IllegalArgumentException();
|
|
|
16631 |
}
|
|
|
16632 |
|
|
|
16633 |
switch (field) {
|
|
|
16634 |
}
|
|
|
16635 |
throw new IllegalStateException();
|
|
|
16636 |
}
|
|
|
16637 |
|
|
|
16638 |
@Override
|
|
|
16639 |
public boolean equals(Object that) {
|
|
|
16640 |
if (that == null)
|
|
|
16641 |
return false;
|
| 7788 |
manish.sha |
16642 |
if (that instanceof runLogisticsLocationInfoUpdate_result)
|
|
|
16643 |
return this.equals((runLogisticsLocationInfoUpdate_result)that);
|
| 7737 |
manish.sha |
16644 |
return false;
|
|
|
16645 |
}
|
|
|
16646 |
|
| 7788 |
manish.sha |
16647 |
public boolean equals(runLogisticsLocationInfoUpdate_result that) {
|
| 7737 |
manish.sha |
16648 |
if (that == null)
|
|
|
16649 |
return false;
|
|
|
16650 |
|
|
|
16651 |
return true;
|
|
|
16652 |
}
|
|
|
16653 |
|
|
|
16654 |
@Override
|
|
|
16655 |
public int hashCode() {
|
|
|
16656 |
return 0;
|
|
|
16657 |
}
|
|
|
16658 |
|
| 7788 |
manish.sha |
16659 |
public int compareTo(runLogisticsLocationInfoUpdate_result other) {
|
| 7737 |
manish.sha |
16660 |
if (!getClass().equals(other.getClass())) {
|
|
|
16661 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
16662 |
}
|
|
|
16663 |
|
|
|
16664 |
int lastComparison = 0;
|
| 7788 |
manish.sha |
16665 |
runLogisticsLocationInfoUpdate_result typedOther = (runLogisticsLocationInfoUpdate_result)other;
|
| 7737 |
manish.sha |
16666 |
|
|
|
16667 |
return 0;
|
|
|
16668 |
}
|
|
|
16669 |
|
|
|
16670 |
public _Fields fieldForId(int fieldId) {
|
|
|
16671 |
return _Fields.findByThriftId(fieldId);
|
|
|
16672 |
}
|
|
|
16673 |
|
|
|
16674 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
16675 |
org.apache.thrift.protocol.TField field;
|
|
|
16676 |
iprot.readStructBegin();
|
|
|
16677 |
while (true)
|
|
|
16678 |
{
|
|
|
16679 |
field = iprot.readFieldBegin();
|
|
|
16680 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
16681 |
break;
|
|
|
16682 |
}
|
|
|
16683 |
switch (field.id) {
|
|
|
16684 |
default:
|
|
|
16685 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
16686 |
}
|
|
|
16687 |
iprot.readFieldEnd();
|
|
|
16688 |
}
|
|
|
16689 |
iprot.readStructEnd();
|
|
|
16690 |
validate();
|
|
|
16691 |
}
|
|
|
16692 |
|
|
|
16693 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
16694 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
16695 |
|
|
|
16696 |
oprot.writeFieldStop();
|
|
|
16697 |
oprot.writeStructEnd();
|
|
|
16698 |
}
|
|
|
16699 |
|
|
|
16700 |
@Override
|
|
|
16701 |
public String toString() {
|
| 7788 |
manish.sha |
16702 |
StringBuilder sb = new StringBuilder("runLogisticsLocationInfoUpdate_result(");
|
| 7737 |
manish.sha |
16703 |
boolean first = true;
|
|
|
16704 |
|
|
|
16705 |
sb.append(")");
|
|
|
16706 |
return sb.toString();
|
|
|
16707 |
}
|
|
|
16708 |
|
|
|
16709 |
public void validate() throws org.apache.thrift.TException {
|
|
|
16710 |
// check for required fields
|
|
|
16711 |
}
|
|
|
16712 |
|
|
|
16713 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
16714 |
try {
|
|
|
16715 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
16716 |
} catch (org.apache.thrift.TException te) {
|
|
|
16717 |
throw new java.io.IOException(te);
|
|
|
16718 |
}
|
|
|
16719 |
}
|
|
|
16720 |
|
|
|
16721 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
16722 |
try {
|
|
|
16723 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
16724 |
} catch (org.apache.thrift.TException te) {
|
|
|
16725 |
throw new java.io.IOException(te);
|
|
|
16726 |
}
|
|
|
16727 |
}
|
|
|
16728 |
|
|
|
16729 |
}
|
|
|
16730 |
|
| 7888 |
rajveer |
16731 |
public static class adjustDeliveryDays_args implements org.apache.thrift.TBase<adjustDeliveryDays_args, adjustDeliveryDays_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
16732 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("adjustDeliveryDays_args");
|
|
|
16733 |
|
|
|
16734 |
private static final org.apache.thrift.protocol.TField START_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("startDate", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
16735 |
private static final org.apache.thrift.protocol.TField DAYS_FIELD_DESC = new org.apache.thrift.protocol.TField("days", org.apache.thrift.protocol.TType.I64, (short)2);
|
|
|
16736 |
|
|
|
16737 |
private long startDate; // required
|
|
|
16738 |
private long days; // required
|
|
|
16739 |
|
|
|
16740 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
16741 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
16742 |
START_DATE((short)1, "startDate"),
|
|
|
16743 |
DAYS((short)2, "days");
|
|
|
16744 |
|
|
|
16745 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
16746 |
|
|
|
16747 |
static {
|
|
|
16748 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
16749 |
byName.put(field.getFieldName(), field);
|
|
|
16750 |
}
|
|
|
16751 |
}
|
|
|
16752 |
|
|
|
16753 |
/**
|
|
|
16754 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
16755 |
*/
|
|
|
16756 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
16757 |
switch(fieldId) {
|
|
|
16758 |
case 1: // START_DATE
|
|
|
16759 |
return START_DATE;
|
|
|
16760 |
case 2: // DAYS
|
|
|
16761 |
return DAYS;
|
|
|
16762 |
default:
|
|
|
16763 |
return null;
|
|
|
16764 |
}
|
|
|
16765 |
}
|
|
|
16766 |
|
|
|
16767 |
/**
|
|
|
16768 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
16769 |
* if it is not found.
|
|
|
16770 |
*/
|
|
|
16771 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
16772 |
_Fields fields = findByThriftId(fieldId);
|
|
|
16773 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
16774 |
return fields;
|
|
|
16775 |
}
|
|
|
16776 |
|
|
|
16777 |
/**
|
|
|
16778 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
16779 |
*/
|
|
|
16780 |
public static _Fields findByName(String name) {
|
|
|
16781 |
return byName.get(name);
|
|
|
16782 |
}
|
|
|
16783 |
|
|
|
16784 |
private final short _thriftId;
|
|
|
16785 |
private final String _fieldName;
|
|
|
16786 |
|
|
|
16787 |
_Fields(short thriftId, String fieldName) {
|
|
|
16788 |
_thriftId = thriftId;
|
|
|
16789 |
_fieldName = fieldName;
|
|
|
16790 |
}
|
|
|
16791 |
|
|
|
16792 |
public short getThriftFieldId() {
|
|
|
16793 |
return _thriftId;
|
|
|
16794 |
}
|
|
|
16795 |
|
|
|
16796 |
public String getFieldName() {
|
|
|
16797 |
return _fieldName;
|
|
|
16798 |
}
|
|
|
16799 |
}
|
|
|
16800 |
|
|
|
16801 |
// isset id assignments
|
|
|
16802 |
private static final int __STARTDATE_ISSET_ID = 0;
|
|
|
16803 |
private static final int __DAYS_ISSET_ID = 1;
|
|
|
16804 |
private BitSet __isset_bit_vector = new BitSet(2);
|
|
|
16805 |
|
|
|
16806 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
16807 |
static {
|
|
|
16808 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
16809 |
tmpMap.put(_Fields.START_DATE, new org.apache.thrift.meta_data.FieldMetaData("startDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
16810 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
16811 |
tmpMap.put(_Fields.DAYS, new org.apache.thrift.meta_data.FieldMetaData("days", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
16812 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
16813 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
16814 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(adjustDeliveryDays_args.class, metaDataMap);
|
|
|
16815 |
}
|
|
|
16816 |
|
|
|
16817 |
public adjustDeliveryDays_args() {
|
|
|
16818 |
}
|
|
|
16819 |
|
|
|
16820 |
public adjustDeliveryDays_args(
|
|
|
16821 |
long startDate,
|
|
|
16822 |
long days)
|
|
|
16823 |
{
|
|
|
16824 |
this();
|
|
|
16825 |
this.startDate = startDate;
|
|
|
16826 |
setStartDateIsSet(true);
|
|
|
16827 |
this.days = days;
|
|
|
16828 |
setDaysIsSet(true);
|
|
|
16829 |
}
|
|
|
16830 |
|
|
|
16831 |
/**
|
|
|
16832 |
* Performs a deep copy on <i>other</i>.
|
|
|
16833 |
*/
|
|
|
16834 |
public adjustDeliveryDays_args(adjustDeliveryDays_args other) {
|
|
|
16835 |
__isset_bit_vector.clear();
|
|
|
16836 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
16837 |
this.startDate = other.startDate;
|
|
|
16838 |
this.days = other.days;
|
|
|
16839 |
}
|
|
|
16840 |
|
|
|
16841 |
public adjustDeliveryDays_args deepCopy() {
|
|
|
16842 |
return new adjustDeliveryDays_args(this);
|
|
|
16843 |
}
|
|
|
16844 |
|
|
|
16845 |
@Override
|
|
|
16846 |
public void clear() {
|
|
|
16847 |
setStartDateIsSet(false);
|
|
|
16848 |
this.startDate = 0;
|
|
|
16849 |
setDaysIsSet(false);
|
|
|
16850 |
this.days = 0;
|
|
|
16851 |
}
|
|
|
16852 |
|
|
|
16853 |
public long getStartDate() {
|
|
|
16854 |
return this.startDate;
|
|
|
16855 |
}
|
|
|
16856 |
|
|
|
16857 |
public void setStartDate(long startDate) {
|
|
|
16858 |
this.startDate = startDate;
|
|
|
16859 |
setStartDateIsSet(true);
|
|
|
16860 |
}
|
|
|
16861 |
|
|
|
16862 |
public void unsetStartDate() {
|
|
|
16863 |
__isset_bit_vector.clear(__STARTDATE_ISSET_ID);
|
|
|
16864 |
}
|
|
|
16865 |
|
|
|
16866 |
/** Returns true if field startDate is set (has been assigned a value) and false otherwise */
|
|
|
16867 |
public boolean isSetStartDate() {
|
|
|
16868 |
return __isset_bit_vector.get(__STARTDATE_ISSET_ID);
|
|
|
16869 |
}
|
|
|
16870 |
|
|
|
16871 |
public void setStartDateIsSet(boolean value) {
|
|
|
16872 |
__isset_bit_vector.set(__STARTDATE_ISSET_ID, value);
|
|
|
16873 |
}
|
|
|
16874 |
|
|
|
16875 |
public long getDays() {
|
|
|
16876 |
return this.days;
|
|
|
16877 |
}
|
|
|
16878 |
|
|
|
16879 |
public void setDays(long days) {
|
|
|
16880 |
this.days = days;
|
|
|
16881 |
setDaysIsSet(true);
|
|
|
16882 |
}
|
|
|
16883 |
|
|
|
16884 |
public void unsetDays() {
|
|
|
16885 |
__isset_bit_vector.clear(__DAYS_ISSET_ID);
|
|
|
16886 |
}
|
|
|
16887 |
|
|
|
16888 |
/** Returns true if field days is set (has been assigned a value) and false otherwise */
|
|
|
16889 |
public boolean isSetDays() {
|
|
|
16890 |
return __isset_bit_vector.get(__DAYS_ISSET_ID);
|
|
|
16891 |
}
|
|
|
16892 |
|
|
|
16893 |
public void setDaysIsSet(boolean value) {
|
|
|
16894 |
__isset_bit_vector.set(__DAYS_ISSET_ID, value);
|
|
|
16895 |
}
|
|
|
16896 |
|
|
|
16897 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
16898 |
switch (field) {
|
|
|
16899 |
case START_DATE:
|
|
|
16900 |
if (value == null) {
|
|
|
16901 |
unsetStartDate();
|
|
|
16902 |
} else {
|
|
|
16903 |
setStartDate((Long)value);
|
|
|
16904 |
}
|
|
|
16905 |
break;
|
|
|
16906 |
|
|
|
16907 |
case DAYS:
|
|
|
16908 |
if (value == null) {
|
|
|
16909 |
unsetDays();
|
|
|
16910 |
} else {
|
|
|
16911 |
setDays((Long)value);
|
|
|
16912 |
}
|
|
|
16913 |
break;
|
|
|
16914 |
|
|
|
16915 |
}
|
|
|
16916 |
}
|
|
|
16917 |
|
|
|
16918 |
public Object getFieldValue(_Fields field) {
|
|
|
16919 |
switch (field) {
|
|
|
16920 |
case START_DATE:
|
|
|
16921 |
return Long.valueOf(getStartDate());
|
|
|
16922 |
|
|
|
16923 |
case DAYS:
|
|
|
16924 |
return Long.valueOf(getDays());
|
|
|
16925 |
|
|
|
16926 |
}
|
|
|
16927 |
throw new IllegalStateException();
|
|
|
16928 |
}
|
|
|
16929 |
|
|
|
16930 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
16931 |
public boolean isSet(_Fields field) {
|
|
|
16932 |
if (field == null) {
|
|
|
16933 |
throw new IllegalArgumentException();
|
|
|
16934 |
}
|
|
|
16935 |
|
|
|
16936 |
switch (field) {
|
|
|
16937 |
case START_DATE:
|
|
|
16938 |
return isSetStartDate();
|
|
|
16939 |
case DAYS:
|
|
|
16940 |
return isSetDays();
|
|
|
16941 |
}
|
|
|
16942 |
throw new IllegalStateException();
|
|
|
16943 |
}
|
|
|
16944 |
|
|
|
16945 |
@Override
|
|
|
16946 |
public boolean equals(Object that) {
|
|
|
16947 |
if (that == null)
|
|
|
16948 |
return false;
|
|
|
16949 |
if (that instanceof adjustDeliveryDays_args)
|
|
|
16950 |
return this.equals((adjustDeliveryDays_args)that);
|
|
|
16951 |
return false;
|
|
|
16952 |
}
|
|
|
16953 |
|
|
|
16954 |
public boolean equals(adjustDeliveryDays_args that) {
|
|
|
16955 |
if (that == null)
|
|
|
16956 |
return false;
|
|
|
16957 |
|
|
|
16958 |
boolean this_present_startDate = true;
|
|
|
16959 |
boolean that_present_startDate = true;
|
|
|
16960 |
if (this_present_startDate || that_present_startDate) {
|
|
|
16961 |
if (!(this_present_startDate && that_present_startDate))
|
|
|
16962 |
return false;
|
|
|
16963 |
if (this.startDate != that.startDate)
|
|
|
16964 |
return false;
|
|
|
16965 |
}
|
|
|
16966 |
|
|
|
16967 |
boolean this_present_days = true;
|
|
|
16968 |
boolean that_present_days = true;
|
|
|
16969 |
if (this_present_days || that_present_days) {
|
|
|
16970 |
if (!(this_present_days && that_present_days))
|
|
|
16971 |
return false;
|
|
|
16972 |
if (this.days != that.days)
|
|
|
16973 |
return false;
|
|
|
16974 |
}
|
|
|
16975 |
|
|
|
16976 |
return true;
|
|
|
16977 |
}
|
|
|
16978 |
|
|
|
16979 |
@Override
|
|
|
16980 |
public int hashCode() {
|
|
|
16981 |
return 0;
|
|
|
16982 |
}
|
|
|
16983 |
|
|
|
16984 |
public int compareTo(adjustDeliveryDays_args other) {
|
|
|
16985 |
if (!getClass().equals(other.getClass())) {
|
|
|
16986 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
16987 |
}
|
|
|
16988 |
|
|
|
16989 |
int lastComparison = 0;
|
|
|
16990 |
adjustDeliveryDays_args typedOther = (adjustDeliveryDays_args)other;
|
|
|
16991 |
|
|
|
16992 |
lastComparison = Boolean.valueOf(isSetStartDate()).compareTo(typedOther.isSetStartDate());
|
|
|
16993 |
if (lastComparison != 0) {
|
|
|
16994 |
return lastComparison;
|
|
|
16995 |
}
|
|
|
16996 |
if (isSetStartDate()) {
|
|
|
16997 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDate, typedOther.startDate);
|
|
|
16998 |
if (lastComparison != 0) {
|
|
|
16999 |
return lastComparison;
|
|
|
17000 |
}
|
|
|
17001 |
}
|
|
|
17002 |
lastComparison = Boolean.valueOf(isSetDays()).compareTo(typedOther.isSetDays());
|
|
|
17003 |
if (lastComparison != 0) {
|
|
|
17004 |
return lastComparison;
|
|
|
17005 |
}
|
|
|
17006 |
if (isSetDays()) {
|
|
|
17007 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.days, typedOther.days);
|
|
|
17008 |
if (lastComparison != 0) {
|
|
|
17009 |
return lastComparison;
|
|
|
17010 |
}
|
|
|
17011 |
}
|
|
|
17012 |
return 0;
|
|
|
17013 |
}
|
|
|
17014 |
|
|
|
17015 |
public _Fields fieldForId(int fieldId) {
|
|
|
17016 |
return _Fields.findByThriftId(fieldId);
|
|
|
17017 |
}
|
|
|
17018 |
|
|
|
17019 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
17020 |
org.apache.thrift.protocol.TField field;
|
|
|
17021 |
iprot.readStructBegin();
|
|
|
17022 |
while (true)
|
|
|
17023 |
{
|
|
|
17024 |
field = iprot.readFieldBegin();
|
|
|
17025 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
17026 |
break;
|
|
|
17027 |
}
|
|
|
17028 |
switch (field.id) {
|
|
|
17029 |
case 1: // START_DATE
|
|
|
17030 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
17031 |
this.startDate = iprot.readI64();
|
|
|
17032 |
setStartDateIsSet(true);
|
|
|
17033 |
} else {
|
|
|
17034 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
17035 |
}
|
|
|
17036 |
break;
|
|
|
17037 |
case 2: // DAYS
|
|
|
17038 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
17039 |
this.days = iprot.readI64();
|
|
|
17040 |
setDaysIsSet(true);
|
|
|
17041 |
} else {
|
|
|
17042 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
17043 |
}
|
|
|
17044 |
break;
|
|
|
17045 |
default:
|
|
|
17046 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
17047 |
}
|
|
|
17048 |
iprot.readFieldEnd();
|
|
|
17049 |
}
|
|
|
17050 |
iprot.readStructEnd();
|
|
|
17051 |
validate();
|
|
|
17052 |
}
|
|
|
17053 |
|
|
|
17054 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
17055 |
validate();
|
|
|
17056 |
|
|
|
17057 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
17058 |
oprot.writeFieldBegin(START_DATE_FIELD_DESC);
|
|
|
17059 |
oprot.writeI64(this.startDate);
|
|
|
17060 |
oprot.writeFieldEnd();
|
|
|
17061 |
oprot.writeFieldBegin(DAYS_FIELD_DESC);
|
|
|
17062 |
oprot.writeI64(this.days);
|
|
|
17063 |
oprot.writeFieldEnd();
|
|
|
17064 |
oprot.writeFieldStop();
|
|
|
17065 |
oprot.writeStructEnd();
|
|
|
17066 |
}
|
|
|
17067 |
|
|
|
17068 |
@Override
|
|
|
17069 |
public String toString() {
|
|
|
17070 |
StringBuilder sb = new StringBuilder("adjustDeliveryDays_args(");
|
|
|
17071 |
boolean first = true;
|
|
|
17072 |
|
|
|
17073 |
sb.append("startDate:");
|
|
|
17074 |
sb.append(this.startDate);
|
|
|
17075 |
first = false;
|
|
|
17076 |
if (!first) sb.append(", ");
|
|
|
17077 |
sb.append("days:");
|
|
|
17078 |
sb.append(this.days);
|
|
|
17079 |
first = false;
|
|
|
17080 |
sb.append(")");
|
|
|
17081 |
return sb.toString();
|
|
|
17082 |
}
|
|
|
17083 |
|
|
|
17084 |
public void validate() throws org.apache.thrift.TException {
|
|
|
17085 |
// check for required fields
|
|
|
17086 |
}
|
|
|
17087 |
|
|
|
17088 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
17089 |
try {
|
|
|
17090 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
17091 |
} catch (org.apache.thrift.TException te) {
|
|
|
17092 |
throw new java.io.IOException(te);
|
|
|
17093 |
}
|
|
|
17094 |
}
|
|
|
17095 |
|
|
|
17096 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
17097 |
try {
|
|
|
17098 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
17099 |
__isset_bit_vector = new BitSet(1);
|
|
|
17100 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
17101 |
} catch (org.apache.thrift.TException te) {
|
|
|
17102 |
throw new java.io.IOException(te);
|
|
|
17103 |
}
|
|
|
17104 |
}
|
|
|
17105 |
|
|
|
17106 |
}
|
|
|
17107 |
|
|
|
17108 |
public static class adjustDeliveryDays_result implements org.apache.thrift.TBase<adjustDeliveryDays_result, adjustDeliveryDays_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
17109 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("adjustDeliveryDays_result");
|
|
|
17110 |
|
|
|
17111 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
|
|
|
17112 |
|
|
|
17113 |
private long success; // required
|
|
|
17114 |
|
|
|
17115 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
17116 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
17117 |
SUCCESS((short)0, "success");
|
|
|
17118 |
|
|
|
17119 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
17120 |
|
|
|
17121 |
static {
|
|
|
17122 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
17123 |
byName.put(field.getFieldName(), field);
|
|
|
17124 |
}
|
|
|
17125 |
}
|
|
|
17126 |
|
|
|
17127 |
/**
|
|
|
17128 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
17129 |
*/
|
|
|
17130 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
17131 |
switch(fieldId) {
|
|
|
17132 |
case 0: // SUCCESS
|
|
|
17133 |
return SUCCESS;
|
|
|
17134 |
default:
|
|
|
17135 |
return null;
|
|
|
17136 |
}
|
|
|
17137 |
}
|
|
|
17138 |
|
|
|
17139 |
/**
|
|
|
17140 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
17141 |
* if it is not found.
|
|
|
17142 |
*/
|
|
|
17143 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
17144 |
_Fields fields = findByThriftId(fieldId);
|
|
|
17145 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
17146 |
return fields;
|
|
|
17147 |
}
|
|
|
17148 |
|
|
|
17149 |
/**
|
|
|
17150 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
17151 |
*/
|
|
|
17152 |
public static _Fields findByName(String name) {
|
|
|
17153 |
return byName.get(name);
|
|
|
17154 |
}
|
|
|
17155 |
|
|
|
17156 |
private final short _thriftId;
|
|
|
17157 |
private final String _fieldName;
|
|
|
17158 |
|
|
|
17159 |
_Fields(short thriftId, String fieldName) {
|
|
|
17160 |
_thriftId = thriftId;
|
|
|
17161 |
_fieldName = fieldName;
|
|
|
17162 |
}
|
|
|
17163 |
|
|
|
17164 |
public short getThriftFieldId() {
|
|
|
17165 |
return _thriftId;
|
|
|
17166 |
}
|
|
|
17167 |
|
|
|
17168 |
public String getFieldName() {
|
|
|
17169 |
return _fieldName;
|
|
|
17170 |
}
|
|
|
17171 |
}
|
|
|
17172 |
|
|
|
17173 |
// isset id assignments
|
|
|
17174 |
private static final int __SUCCESS_ISSET_ID = 0;
|
|
|
17175 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
17176 |
|
|
|
17177 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
17178 |
static {
|
|
|
17179 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
17180 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
17181 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
17182 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
17183 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(adjustDeliveryDays_result.class, metaDataMap);
|
|
|
17184 |
}
|
|
|
17185 |
|
|
|
17186 |
public adjustDeliveryDays_result() {
|
|
|
17187 |
}
|
|
|
17188 |
|
|
|
17189 |
public adjustDeliveryDays_result(
|
|
|
17190 |
long success)
|
|
|
17191 |
{
|
|
|
17192 |
this();
|
|
|
17193 |
this.success = success;
|
|
|
17194 |
setSuccessIsSet(true);
|
|
|
17195 |
}
|
|
|
17196 |
|
|
|
17197 |
/**
|
|
|
17198 |
* Performs a deep copy on <i>other</i>.
|
|
|
17199 |
*/
|
|
|
17200 |
public adjustDeliveryDays_result(adjustDeliveryDays_result other) {
|
|
|
17201 |
__isset_bit_vector.clear();
|
|
|
17202 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
17203 |
this.success = other.success;
|
|
|
17204 |
}
|
|
|
17205 |
|
|
|
17206 |
public adjustDeliveryDays_result deepCopy() {
|
|
|
17207 |
return new adjustDeliveryDays_result(this);
|
|
|
17208 |
}
|
|
|
17209 |
|
|
|
17210 |
@Override
|
|
|
17211 |
public void clear() {
|
|
|
17212 |
setSuccessIsSet(false);
|
|
|
17213 |
this.success = 0;
|
|
|
17214 |
}
|
|
|
17215 |
|
|
|
17216 |
public long getSuccess() {
|
|
|
17217 |
return this.success;
|
|
|
17218 |
}
|
|
|
17219 |
|
|
|
17220 |
public void setSuccess(long success) {
|
|
|
17221 |
this.success = success;
|
|
|
17222 |
setSuccessIsSet(true);
|
|
|
17223 |
}
|
|
|
17224 |
|
|
|
17225 |
public void unsetSuccess() {
|
|
|
17226 |
__isset_bit_vector.clear(__SUCCESS_ISSET_ID);
|
|
|
17227 |
}
|
|
|
17228 |
|
|
|
17229 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
17230 |
public boolean isSetSuccess() {
|
|
|
17231 |
return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
|
|
|
17232 |
}
|
|
|
17233 |
|
|
|
17234 |
public void setSuccessIsSet(boolean value) {
|
|
|
17235 |
__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
|
|
|
17236 |
}
|
|
|
17237 |
|
|
|
17238 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
17239 |
switch (field) {
|
|
|
17240 |
case SUCCESS:
|
|
|
17241 |
if (value == null) {
|
|
|
17242 |
unsetSuccess();
|
|
|
17243 |
} else {
|
|
|
17244 |
setSuccess((Long)value);
|
|
|
17245 |
}
|
|
|
17246 |
break;
|
|
|
17247 |
|
|
|
17248 |
}
|
|
|
17249 |
}
|
|
|
17250 |
|
|
|
17251 |
public Object getFieldValue(_Fields field) {
|
|
|
17252 |
switch (field) {
|
|
|
17253 |
case SUCCESS:
|
|
|
17254 |
return Long.valueOf(getSuccess());
|
|
|
17255 |
|
|
|
17256 |
}
|
|
|
17257 |
throw new IllegalStateException();
|
|
|
17258 |
}
|
|
|
17259 |
|
|
|
17260 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
17261 |
public boolean isSet(_Fields field) {
|
|
|
17262 |
if (field == null) {
|
|
|
17263 |
throw new IllegalArgumentException();
|
|
|
17264 |
}
|
|
|
17265 |
|
|
|
17266 |
switch (field) {
|
|
|
17267 |
case SUCCESS:
|
|
|
17268 |
return isSetSuccess();
|
|
|
17269 |
}
|
|
|
17270 |
throw new IllegalStateException();
|
|
|
17271 |
}
|
|
|
17272 |
|
|
|
17273 |
@Override
|
|
|
17274 |
public boolean equals(Object that) {
|
|
|
17275 |
if (that == null)
|
|
|
17276 |
return false;
|
|
|
17277 |
if (that instanceof adjustDeliveryDays_result)
|
|
|
17278 |
return this.equals((adjustDeliveryDays_result)that);
|
|
|
17279 |
return false;
|
|
|
17280 |
}
|
|
|
17281 |
|
|
|
17282 |
public boolean equals(adjustDeliveryDays_result that) {
|
|
|
17283 |
if (that == null)
|
|
|
17284 |
return false;
|
|
|
17285 |
|
|
|
17286 |
boolean this_present_success = true;
|
|
|
17287 |
boolean that_present_success = true;
|
|
|
17288 |
if (this_present_success || that_present_success) {
|
|
|
17289 |
if (!(this_present_success && that_present_success))
|
|
|
17290 |
return false;
|
|
|
17291 |
if (this.success != that.success)
|
|
|
17292 |
return false;
|
|
|
17293 |
}
|
|
|
17294 |
|
|
|
17295 |
return true;
|
|
|
17296 |
}
|
|
|
17297 |
|
|
|
17298 |
@Override
|
|
|
17299 |
public int hashCode() {
|
|
|
17300 |
return 0;
|
|
|
17301 |
}
|
|
|
17302 |
|
|
|
17303 |
public int compareTo(adjustDeliveryDays_result other) {
|
|
|
17304 |
if (!getClass().equals(other.getClass())) {
|
|
|
17305 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
17306 |
}
|
|
|
17307 |
|
|
|
17308 |
int lastComparison = 0;
|
|
|
17309 |
adjustDeliveryDays_result typedOther = (adjustDeliveryDays_result)other;
|
|
|
17310 |
|
|
|
17311 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
17312 |
if (lastComparison != 0) {
|
|
|
17313 |
return lastComparison;
|
|
|
17314 |
}
|
|
|
17315 |
if (isSetSuccess()) {
|
|
|
17316 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
17317 |
if (lastComparison != 0) {
|
|
|
17318 |
return lastComparison;
|
|
|
17319 |
}
|
|
|
17320 |
}
|
|
|
17321 |
return 0;
|
|
|
17322 |
}
|
|
|
17323 |
|
|
|
17324 |
public _Fields fieldForId(int fieldId) {
|
|
|
17325 |
return _Fields.findByThriftId(fieldId);
|
|
|
17326 |
}
|
|
|
17327 |
|
|
|
17328 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
17329 |
org.apache.thrift.protocol.TField field;
|
|
|
17330 |
iprot.readStructBegin();
|
|
|
17331 |
while (true)
|
|
|
17332 |
{
|
|
|
17333 |
field = iprot.readFieldBegin();
|
|
|
17334 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
17335 |
break;
|
|
|
17336 |
}
|
|
|
17337 |
switch (field.id) {
|
|
|
17338 |
case 0: // SUCCESS
|
|
|
17339 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
17340 |
this.success = iprot.readI64();
|
|
|
17341 |
setSuccessIsSet(true);
|
|
|
17342 |
} else {
|
|
|
17343 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
17344 |
}
|
|
|
17345 |
break;
|
|
|
17346 |
default:
|
|
|
17347 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
17348 |
}
|
|
|
17349 |
iprot.readFieldEnd();
|
|
|
17350 |
}
|
|
|
17351 |
iprot.readStructEnd();
|
|
|
17352 |
validate();
|
|
|
17353 |
}
|
|
|
17354 |
|
|
|
17355 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
17356 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
17357 |
|
|
|
17358 |
if (this.isSetSuccess()) {
|
|
|
17359 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
17360 |
oprot.writeI64(this.success);
|
|
|
17361 |
oprot.writeFieldEnd();
|
|
|
17362 |
}
|
|
|
17363 |
oprot.writeFieldStop();
|
|
|
17364 |
oprot.writeStructEnd();
|
|
|
17365 |
}
|
|
|
17366 |
|
|
|
17367 |
@Override
|
|
|
17368 |
public String toString() {
|
|
|
17369 |
StringBuilder sb = new StringBuilder("adjustDeliveryDays_result(");
|
|
|
17370 |
boolean first = true;
|
|
|
17371 |
|
|
|
17372 |
sb.append("success:");
|
|
|
17373 |
sb.append(this.success);
|
|
|
17374 |
first = false;
|
|
|
17375 |
sb.append(")");
|
|
|
17376 |
return sb.toString();
|
|
|
17377 |
}
|
|
|
17378 |
|
|
|
17379 |
public void validate() throws org.apache.thrift.TException {
|
|
|
17380 |
// check for required fields
|
|
|
17381 |
}
|
|
|
17382 |
|
|
|
17383 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
17384 |
try {
|
|
|
17385 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
17386 |
} catch (org.apache.thrift.TException te) {
|
|
|
17387 |
throw new java.io.IOException(te);
|
|
|
17388 |
}
|
|
|
17389 |
}
|
|
|
17390 |
|
|
|
17391 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
17392 |
try {
|
|
|
17393 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
17394 |
} catch (org.apache.thrift.TException te) {
|
|
|
17395 |
throw new java.io.IOException(te);
|
|
|
17396 |
}
|
|
|
17397 |
}
|
|
|
17398 |
|
|
|
17399 |
}
|
|
|
17400 |
|
| 12895 |
manish.sha |
17401 |
public static class getFirstDeliveryEstimateForWhLocation_args implements org.apache.thrift.TBase<getFirstDeliveryEstimateForWhLocation_args, getFirstDeliveryEstimateForWhLocation_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
17402 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFirstDeliveryEstimateForWhLocation_args");
|
|
|
17403 |
|
|
|
17404 |
private static final org.apache.thrift.protocol.TField PINCODE_FIELD_DESC = new org.apache.thrift.protocol.TField("pincode", org.apache.thrift.protocol.TType.STRING, (short)1);
|
|
|
17405 |
private static final org.apache.thrift.protocol.TField WH_LOCATION_FIELD_DESC = new org.apache.thrift.protocol.TField("whLocation", org.apache.thrift.protocol.TType.I64, (short)2);
|
|
|
17406 |
|
|
|
17407 |
private String pincode; // required
|
|
|
17408 |
private long whLocation; // required
|
|
|
17409 |
|
|
|
17410 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
17411 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
17412 |
PINCODE((short)1, "pincode"),
|
|
|
17413 |
WH_LOCATION((short)2, "whLocation");
|
|
|
17414 |
|
|
|
17415 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
17416 |
|
|
|
17417 |
static {
|
|
|
17418 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
17419 |
byName.put(field.getFieldName(), field);
|
|
|
17420 |
}
|
|
|
17421 |
}
|
|
|
17422 |
|
|
|
17423 |
/**
|
|
|
17424 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
17425 |
*/
|
|
|
17426 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
17427 |
switch(fieldId) {
|
|
|
17428 |
case 1: // PINCODE
|
|
|
17429 |
return PINCODE;
|
|
|
17430 |
case 2: // WH_LOCATION
|
|
|
17431 |
return WH_LOCATION;
|
|
|
17432 |
default:
|
|
|
17433 |
return null;
|
|
|
17434 |
}
|
|
|
17435 |
}
|
|
|
17436 |
|
|
|
17437 |
/**
|
|
|
17438 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
17439 |
* if it is not found.
|
|
|
17440 |
*/
|
|
|
17441 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
17442 |
_Fields fields = findByThriftId(fieldId);
|
|
|
17443 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
17444 |
return fields;
|
|
|
17445 |
}
|
|
|
17446 |
|
|
|
17447 |
/**
|
|
|
17448 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
17449 |
*/
|
|
|
17450 |
public static _Fields findByName(String name) {
|
|
|
17451 |
return byName.get(name);
|
|
|
17452 |
}
|
|
|
17453 |
|
|
|
17454 |
private final short _thriftId;
|
|
|
17455 |
private final String _fieldName;
|
|
|
17456 |
|
|
|
17457 |
_Fields(short thriftId, String fieldName) {
|
|
|
17458 |
_thriftId = thriftId;
|
|
|
17459 |
_fieldName = fieldName;
|
|
|
17460 |
}
|
|
|
17461 |
|
|
|
17462 |
public short getThriftFieldId() {
|
|
|
17463 |
return _thriftId;
|
|
|
17464 |
}
|
|
|
17465 |
|
|
|
17466 |
public String getFieldName() {
|
|
|
17467 |
return _fieldName;
|
|
|
17468 |
}
|
|
|
17469 |
}
|
|
|
17470 |
|
|
|
17471 |
// isset id assignments
|
|
|
17472 |
private static final int __WHLOCATION_ISSET_ID = 0;
|
|
|
17473 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
17474 |
|
|
|
17475 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
17476 |
static {
|
|
|
17477 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
17478 |
tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
17479 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
17480 |
tmpMap.put(_Fields.WH_LOCATION, new org.apache.thrift.meta_data.FieldMetaData("whLocation", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
17481 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
17482 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
17483 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFirstDeliveryEstimateForWhLocation_args.class, metaDataMap);
|
|
|
17484 |
}
|
|
|
17485 |
|
|
|
17486 |
public getFirstDeliveryEstimateForWhLocation_args() {
|
|
|
17487 |
}
|
|
|
17488 |
|
|
|
17489 |
public getFirstDeliveryEstimateForWhLocation_args(
|
|
|
17490 |
String pincode,
|
|
|
17491 |
long whLocation)
|
|
|
17492 |
{
|
|
|
17493 |
this();
|
|
|
17494 |
this.pincode = pincode;
|
|
|
17495 |
this.whLocation = whLocation;
|
|
|
17496 |
setWhLocationIsSet(true);
|
|
|
17497 |
}
|
|
|
17498 |
|
|
|
17499 |
/**
|
|
|
17500 |
* Performs a deep copy on <i>other</i>.
|
|
|
17501 |
*/
|
|
|
17502 |
public getFirstDeliveryEstimateForWhLocation_args(getFirstDeliveryEstimateForWhLocation_args other) {
|
|
|
17503 |
__isset_bit_vector.clear();
|
|
|
17504 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
17505 |
if (other.isSetPincode()) {
|
|
|
17506 |
this.pincode = other.pincode;
|
|
|
17507 |
}
|
|
|
17508 |
this.whLocation = other.whLocation;
|
|
|
17509 |
}
|
|
|
17510 |
|
|
|
17511 |
public getFirstDeliveryEstimateForWhLocation_args deepCopy() {
|
|
|
17512 |
return new getFirstDeliveryEstimateForWhLocation_args(this);
|
|
|
17513 |
}
|
|
|
17514 |
|
|
|
17515 |
@Override
|
|
|
17516 |
public void clear() {
|
|
|
17517 |
this.pincode = null;
|
|
|
17518 |
setWhLocationIsSet(false);
|
|
|
17519 |
this.whLocation = 0;
|
|
|
17520 |
}
|
|
|
17521 |
|
|
|
17522 |
public String getPincode() {
|
|
|
17523 |
return this.pincode;
|
|
|
17524 |
}
|
|
|
17525 |
|
|
|
17526 |
public void setPincode(String pincode) {
|
|
|
17527 |
this.pincode = pincode;
|
|
|
17528 |
}
|
|
|
17529 |
|
|
|
17530 |
public void unsetPincode() {
|
|
|
17531 |
this.pincode = null;
|
|
|
17532 |
}
|
|
|
17533 |
|
|
|
17534 |
/** Returns true if field pincode is set (has been assigned a value) and false otherwise */
|
|
|
17535 |
public boolean isSetPincode() {
|
|
|
17536 |
return this.pincode != null;
|
|
|
17537 |
}
|
|
|
17538 |
|
|
|
17539 |
public void setPincodeIsSet(boolean value) {
|
|
|
17540 |
if (!value) {
|
|
|
17541 |
this.pincode = null;
|
|
|
17542 |
}
|
|
|
17543 |
}
|
|
|
17544 |
|
|
|
17545 |
public long getWhLocation() {
|
|
|
17546 |
return this.whLocation;
|
|
|
17547 |
}
|
|
|
17548 |
|
|
|
17549 |
public void setWhLocation(long whLocation) {
|
|
|
17550 |
this.whLocation = whLocation;
|
|
|
17551 |
setWhLocationIsSet(true);
|
|
|
17552 |
}
|
|
|
17553 |
|
|
|
17554 |
public void unsetWhLocation() {
|
|
|
17555 |
__isset_bit_vector.clear(__WHLOCATION_ISSET_ID);
|
|
|
17556 |
}
|
|
|
17557 |
|
|
|
17558 |
/** Returns true if field whLocation is set (has been assigned a value) and false otherwise */
|
|
|
17559 |
public boolean isSetWhLocation() {
|
|
|
17560 |
return __isset_bit_vector.get(__WHLOCATION_ISSET_ID);
|
|
|
17561 |
}
|
|
|
17562 |
|
|
|
17563 |
public void setWhLocationIsSet(boolean value) {
|
|
|
17564 |
__isset_bit_vector.set(__WHLOCATION_ISSET_ID, value);
|
|
|
17565 |
}
|
|
|
17566 |
|
|
|
17567 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
17568 |
switch (field) {
|
|
|
17569 |
case PINCODE:
|
|
|
17570 |
if (value == null) {
|
|
|
17571 |
unsetPincode();
|
|
|
17572 |
} else {
|
|
|
17573 |
setPincode((String)value);
|
|
|
17574 |
}
|
|
|
17575 |
break;
|
|
|
17576 |
|
|
|
17577 |
case WH_LOCATION:
|
|
|
17578 |
if (value == null) {
|
|
|
17579 |
unsetWhLocation();
|
|
|
17580 |
} else {
|
|
|
17581 |
setWhLocation((Long)value);
|
|
|
17582 |
}
|
|
|
17583 |
break;
|
|
|
17584 |
|
|
|
17585 |
}
|
|
|
17586 |
}
|
|
|
17587 |
|
|
|
17588 |
public Object getFieldValue(_Fields field) {
|
|
|
17589 |
switch (field) {
|
|
|
17590 |
case PINCODE:
|
|
|
17591 |
return getPincode();
|
|
|
17592 |
|
|
|
17593 |
case WH_LOCATION:
|
|
|
17594 |
return Long.valueOf(getWhLocation());
|
|
|
17595 |
|
|
|
17596 |
}
|
|
|
17597 |
throw new IllegalStateException();
|
|
|
17598 |
}
|
|
|
17599 |
|
|
|
17600 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
17601 |
public boolean isSet(_Fields field) {
|
|
|
17602 |
if (field == null) {
|
|
|
17603 |
throw new IllegalArgumentException();
|
|
|
17604 |
}
|
|
|
17605 |
|
|
|
17606 |
switch (field) {
|
|
|
17607 |
case PINCODE:
|
|
|
17608 |
return isSetPincode();
|
|
|
17609 |
case WH_LOCATION:
|
|
|
17610 |
return isSetWhLocation();
|
|
|
17611 |
}
|
|
|
17612 |
throw new IllegalStateException();
|
|
|
17613 |
}
|
|
|
17614 |
|
|
|
17615 |
@Override
|
|
|
17616 |
public boolean equals(Object that) {
|
|
|
17617 |
if (that == null)
|
|
|
17618 |
return false;
|
|
|
17619 |
if (that instanceof getFirstDeliveryEstimateForWhLocation_args)
|
|
|
17620 |
return this.equals((getFirstDeliveryEstimateForWhLocation_args)that);
|
|
|
17621 |
return false;
|
|
|
17622 |
}
|
|
|
17623 |
|
|
|
17624 |
public boolean equals(getFirstDeliveryEstimateForWhLocation_args that) {
|
|
|
17625 |
if (that == null)
|
|
|
17626 |
return false;
|
|
|
17627 |
|
|
|
17628 |
boolean this_present_pincode = true && this.isSetPincode();
|
|
|
17629 |
boolean that_present_pincode = true && that.isSetPincode();
|
|
|
17630 |
if (this_present_pincode || that_present_pincode) {
|
|
|
17631 |
if (!(this_present_pincode && that_present_pincode))
|
|
|
17632 |
return false;
|
|
|
17633 |
if (!this.pincode.equals(that.pincode))
|
|
|
17634 |
return false;
|
|
|
17635 |
}
|
|
|
17636 |
|
|
|
17637 |
boolean this_present_whLocation = true;
|
|
|
17638 |
boolean that_present_whLocation = true;
|
|
|
17639 |
if (this_present_whLocation || that_present_whLocation) {
|
|
|
17640 |
if (!(this_present_whLocation && that_present_whLocation))
|
|
|
17641 |
return false;
|
|
|
17642 |
if (this.whLocation != that.whLocation)
|
|
|
17643 |
return false;
|
|
|
17644 |
}
|
|
|
17645 |
|
|
|
17646 |
return true;
|
|
|
17647 |
}
|
|
|
17648 |
|
|
|
17649 |
@Override
|
|
|
17650 |
public int hashCode() {
|
|
|
17651 |
return 0;
|
|
|
17652 |
}
|
|
|
17653 |
|
|
|
17654 |
public int compareTo(getFirstDeliveryEstimateForWhLocation_args other) {
|
|
|
17655 |
if (!getClass().equals(other.getClass())) {
|
|
|
17656 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
17657 |
}
|
|
|
17658 |
|
|
|
17659 |
int lastComparison = 0;
|
|
|
17660 |
getFirstDeliveryEstimateForWhLocation_args typedOther = (getFirstDeliveryEstimateForWhLocation_args)other;
|
|
|
17661 |
|
|
|
17662 |
lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
|
|
|
17663 |
if (lastComparison != 0) {
|
|
|
17664 |
return lastComparison;
|
|
|
17665 |
}
|
|
|
17666 |
if (isSetPincode()) {
|
|
|
17667 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
|
|
|
17668 |
if (lastComparison != 0) {
|
|
|
17669 |
return lastComparison;
|
|
|
17670 |
}
|
|
|
17671 |
}
|
|
|
17672 |
lastComparison = Boolean.valueOf(isSetWhLocation()).compareTo(typedOther.isSetWhLocation());
|
|
|
17673 |
if (lastComparison != 0) {
|
|
|
17674 |
return lastComparison;
|
|
|
17675 |
}
|
|
|
17676 |
if (isSetWhLocation()) {
|
|
|
17677 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.whLocation, typedOther.whLocation);
|
|
|
17678 |
if (lastComparison != 0) {
|
|
|
17679 |
return lastComparison;
|
|
|
17680 |
}
|
|
|
17681 |
}
|
|
|
17682 |
return 0;
|
|
|
17683 |
}
|
|
|
17684 |
|
|
|
17685 |
public _Fields fieldForId(int fieldId) {
|
|
|
17686 |
return _Fields.findByThriftId(fieldId);
|
|
|
17687 |
}
|
|
|
17688 |
|
|
|
17689 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
17690 |
org.apache.thrift.protocol.TField field;
|
|
|
17691 |
iprot.readStructBegin();
|
|
|
17692 |
while (true)
|
|
|
17693 |
{
|
|
|
17694 |
field = iprot.readFieldBegin();
|
|
|
17695 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
17696 |
break;
|
|
|
17697 |
}
|
|
|
17698 |
switch (field.id) {
|
|
|
17699 |
case 1: // PINCODE
|
|
|
17700 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
17701 |
this.pincode = iprot.readString();
|
|
|
17702 |
} else {
|
|
|
17703 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
17704 |
}
|
|
|
17705 |
break;
|
|
|
17706 |
case 2: // WH_LOCATION
|
|
|
17707 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
17708 |
this.whLocation = iprot.readI64();
|
|
|
17709 |
setWhLocationIsSet(true);
|
|
|
17710 |
} else {
|
|
|
17711 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
17712 |
}
|
|
|
17713 |
break;
|
|
|
17714 |
default:
|
|
|
17715 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
17716 |
}
|
|
|
17717 |
iprot.readFieldEnd();
|
|
|
17718 |
}
|
|
|
17719 |
iprot.readStructEnd();
|
|
|
17720 |
validate();
|
|
|
17721 |
}
|
|
|
17722 |
|
|
|
17723 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
17724 |
validate();
|
|
|
17725 |
|
|
|
17726 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
17727 |
if (this.pincode != null) {
|
|
|
17728 |
oprot.writeFieldBegin(PINCODE_FIELD_DESC);
|
|
|
17729 |
oprot.writeString(this.pincode);
|
|
|
17730 |
oprot.writeFieldEnd();
|
|
|
17731 |
}
|
|
|
17732 |
oprot.writeFieldBegin(WH_LOCATION_FIELD_DESC);
|
|
|
17733 |
oprot.writeI64(this.whLocation);
|
|
|
17734 |
oprot.writeFieldEnd();
|
|
|
17735 |
oprot.writeFieldStop();
|
|
|
17736 |
oprot.writeStructEnd();
|
|
|
17737 |
}
|
|
|
17738 |
|
|
|
17739 |
@Override
|
|
|
17740 |
public String toString() {
|
|
|
17741 |
StringBuilder sb = new StringBuilder("getFirstDeliveryEstimateForWhLocation_args(");
|
|
|
17742 |
boolean first = true;
|
|
|
17743 |
|
|
|
17744 |
sb.append("pincode:");
|
|
|
17745 |
if (this.pincode == null) {
|
|
|
17746 |
sb.append("null");
|
|
|
17747 |
} else {
|
|
|
17748 |
sb.append(this.pincode);
|
|
|
17749 |
}
|
|
|
17750 |
first = false;
|
|
|
17751 |
if (!first) sb.append(", ");
|
|
|
17752 |
sb.append("whLocation:");
|
|
|
17753 |
sb.append(this.whLocation);
|
|
|
17754 |
first = false;
|
|
|
17755 |
sb.append(")");
|
|
|
17756 |
return sb.toString();
|
|
|
17757 |
}
|
|
|
17758 |
|
|
|
17759 |
public void validate() throws org.apache.thrift.TException {
|
|
|
17760 |
// check for required fields
|
|
|
17761 |
}
|
|
|
17762 |
|
|
|
17763 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
17764 |
try {
|
|
|
17765 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
17766 |
} catch (org.apache.thrift.TException te) {
|
|
|
17767 |
throw new java.io.IOException(te);
|
|
|
17768 |
}
|
|
|
17769 |
}
|
|
|
17770 |
|
|
|
17771 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
17772 |
try {
|
|
|
17773 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
17774 |
__isset_bit_vector = new BitSet(1);
|
|
|
17775 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
17776 |
} catch (org.apache.thrift.TException te) {
|
|
|
17777 |
throw new java.io.IOException(te);
|
|
|
17778 |
}
|
|
|
17779 |
}
|
|
|
17780 |
|
|
|
17781 |
}
|
|
|
17782 |
|
|
|
17783 |
public static class getFirstDeliveryEstimateForWhLocation_result implements org.apache.thrift.TBase<getFirstDeliveryEstimateForWhLocation_result, getFirstDeliveryEstimateForWhLocation_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
17784 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFirstDeliveryEstimateForWhLocation_result");
|
|
|
17785 |
|
|
|
17786 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
|
|
|
17787 |
|
|
|
17788 |
private long success; // required
|
|
|
17789 |
|
|
|
17790 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
17791 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
17792 |
SUCCESS((short)0, "success");
|
|
|
17793 |
|
|
|
17794 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
17795 |
|
|
|
17796 |
static {
|
|
|
17797 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
17798 |
byName.put(field.getFieldName(), field);
|
|
|
17799 |
}
|
|
|
17800 |
}
|
|
|
17801 |
|
|
|
17802 |
/**
|
|
|
17803 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
17804 |
*/
|
|
|
17805 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
17806 |
switch(fieldId) {
|
|
|
17807 |
case 0: // SUCCESS
|
|
|
17808 |
return SUCCESS;
|
|
|
17809 |
default:
|
|
|
17810 |
return null;
|
|
|
17811 |
}
|
|
|
17812 |
}
|
|
|
17813 |
|
|
|
17814 |
/**
|
|
|
17815 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
17816 |
* if it is not found.
|
|
|
17817 |
*/
|
|
|
17818 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
17819 |
_Fields fields = findByThriftId(fieldId);
|
|
|
17820 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
17821 |
return fields;
|
|
|
17822 |
}
|
|
|
17823 |
|
|
|
17824 |
/**
|
|
|
17825 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
17826 |
*/
|
|
|
17827 |
public static _Fields findByName(String name) {
|
|
|
17828 |
return byName.get(name);
|
|
|
17829 |
}
|
|
|
17830 |
|
|
|
17831 |
private final short _thriftId;
|
|
|
17832 |
private final String _fieldName;
|
|
|
17833 |
|
|
|
17834 |
_Fields(short thriftId, String fieldName) {
|
|
|
17835 |
_thriftId = thriftId;
|
|
|
17836 |
_fieldName = fieldName;
|
|
|
17837 |
}
|
|
|
17838 |
|
|
|
17839 |
public short getThriftFieldId() {
|
|
|
17840 |
return _thriftId;
|
|
|
17841 |
}
|
|
|
17842 |
|
|
|
17843 |
public String getFieldName() {
|
|
|
17844 |
return _fieldName;
|
|
|
17845 |
}
|
|
|
17846 |
}
|
|
|
17847 |
|
|
|
17848 |
// isset id assignments
|
|
|
17849 |
private static final int __SUCCESS_ISSET_ID = 0;
|
|
|
17850 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
17851 |
|
|
|
17852 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
17853 |
static {
|
|
|
17854 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
17855 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
17856 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
17857 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
17858 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFirstDeliveryEstimateForWhLocation_result.class, metaDataMap);
|
|
|
17859 |
}
|
|
|
17860 |
|
|
|
17861 |
public getFirstDeliveryEstimateForWhLocation_result() {
|
|
|
17862 |
}
|
|
|
17863 |
|
|
|
17864 |
public getFirstDeliveryEstimateForWhLocation_result(
|
|
|
17865 |
long success)
|
|
|
17866 |
{
|
|
|
17867 |
this();
|
|
|
17868 |
this.success = success;
|
|
|
17869 |
setSuccessIsSet(true);
|
|
|
17870 |
}
|
|
|
17871 |
|
|
|
17872 |
/**
|
|
|
17873 |
* Performs a deep copy on <i>other</i>.
|
|
|
17874 |
*/
|
|
|
17875 |
public getFirstDeliveryEstimateForWhLocation_result(getFirstDeliveryEstimateForWhLocation_result other) {
|
|
|
17876 |
__isset_bit_vector.clear();
|
|
|
17877 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
17878 |
this.success = other.success;
|
|
|
17879 |
}
|
|
|
17880 |
|
|
|
17881 |
public getFirstDeliveryEstimateForWhLocation_result deepCopy() {
|
|
|
17882 |
return new getFirstDeliveryEstimateForWhLocation_result(this);
|
|
|
17883 |
}
|
|
|
17884 |
|
|
|
17885 |
@Override
|
|
|
17886 |
public void clear() {
|
|
|
17887 |
setSuccessIsSet(false);
|
|
|
17888 |
this.success = 0;
|
|
|
17889 |
}
|
|
|
17890 |
|
|
|
17891 |
public long getSuccess() {
|
|
|
17892 |
return this.success;
|
|
|
17893 |
}
|
|
|
17894 |
|
|
|
17895 |
public void setSuccess(long success) {
|
|
|
17896 |
this.success = success;
|
|
|
17897 |
setSuccessIsSet(true);
|
|
|
17898 |
}
|
|
|
17899 |
|
|
|
17900 |
public void unsetSuccess() {
|
|
|
17901 |
__isset_bit_vector.clear(__SUCCESS_ISSET_ID);
|
|
|
17902 |
}
|
|
|
17903 |
|
|
|
17904 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
17905 |
public boolean isSetSuccess() {
|
|
|
17906 |
return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
|
|
|
17907 |
}
|
|
|
17908 |
|
|
|
17909 |
public void setSuccessIsSet(boolean value) {
|
|
|
17910 |
__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
|
|
|
17911 |
}
|
|
|
17912 |
|
|
|
17913 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
17914 |
switch (field) {
|
|
|
17915 |
case SUCCESS:
|
|
|
17916 |
if (value == null) {
|
|
|
17917 |
unsetSuccess();
|
|
|
17918 |
} else {
|
|
|
17919 |
setSuccess((Long)value);
|
|
|
17920 |
}
|
|
|
17921 |
break;
|
|
|
17922 |
|
|
|
17923 |
}
|
|
|
17924 |
}
|
|
|
17925 |
|
|
|
17926 |
public Object getFieldValue(_Fields field) {
|
|
|
17927 |
switch (field) {
|
|
|
17928 |
case SUCCESS:
|
|
|
17929 |
return Long.valueOf(getSuccess());
|
|
|
17930 |
|
|
|
17931 |
}
|
|
|
17932 |
throw new IllegalStateException();
|
|
|
17933 |
}
|
|
|
17934 |
|
|
|
17935 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
17936 |
public boolean isSet(_Fields field) {
|
|
|
17937 |
if (field == null) {
|
|
|
17938 |
throw new IllegalArgumentException();
|
|
|
17939 |
}
|
|
|
17940 |
|
|
|
17941 |
switch (field) {
|
|
|
17942 |
case SUCCESS:
|
|
|
17943 |
return isSetSuccess();
|
|
|
17944 |
}
|
|
|
17945 |
throw new IllegalStateException();
|
|
|
17946 |
}
|
|
|
17947 |
|
|
|
17948 |
@Override
|
|
|
17949 |
public boolean equals(Object that) {
|
|
|
17950 |
if (that == null)
|
|
|
17951 |
return false;
|
|
|
17952 |
if (that instanceof getFirstDeliveryEstimateForWhLocation_result)
|
|
|
17953 |
return this.equals((getFirstDeliveryEstimateForWhLocation_result)that);
|
|
|
17954 |
return false;
|
|
|
17955 |
}
|
|
|
17956 |
|
|
|
17957 |
public boolean equals(getFirstDeliveryEstimateForWhLocation_result that) {
|
|
|
17958 |
if (that == null)
|
|
|
17959 |
return false;
|
|
|
17960 |
|
|
|
17961 |
boolean this_present_success = true;
|
|
|
17962 |
boolean that_present_success = true;
|
|
|
17963 |
if (this_present_success || that_present_success) {
|
|
|
17964 |
if (!(this_present_success && that_present_success))
|
|
|
17965 |
return false;
|
|
|
17966 |
if (this.success != that.success)
|
|
|
17967 |
return false;
|
|
|
17968 |
}
|
|
|
17969 |
|
|
|
17970 |
return true;
|
|
|
17971 |
}
|
|
|
17972 |
|
|
|
17973 |
@Override
|
|
|
17974 |
public int hashCode() {
|
|
|
17975 |
return 0;
|
|
|
17976 |
}
|
|
|
17977 |
|
|
|
17978 |
public int compareTo(getFirstDeliveryEstimateForWhLocation_result other) {
|
|
|
17979 |
if (!getClass().equals(other.getClass())) {
|
|
|
17980 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
17981 |
}
|
|
|
17982 |
|
|
|
17983 |
int lastComparison = 0;
|
|
|
17984 |
getFirstDeliveryEstimateForWhLocation_result typedOther = (getFirstDeliveryEstimateForWhLocation_result)other;
|
|
|
17985 |
|
|
|
17986 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
17987 |
if (lastComparison != 0) {
|
|
|
17988 |
return lastComparison;
|
|
|
17989 |
}
|
|
|
17990 |
if (isSetSuccess()) {
|
|
|
17991 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
17992 |
if (lastComparison != 0) {
|
|
|
17993 |
return lastComparison;
|
|
|
17994 |
}
|
|
|
17995 |
}
|
|
|
17996 |
return 0;
|
|
|
17997 |
}
|
|
|
17998 |
|
|
|
17999 |
public _Fields fieldForId(int fieldId) {
|
|
|
18000 |
return _Fields.findByThriftId(fieldId);
|
|
|
18001 |
}
|
|
|
18002 |
|
|
|
18003 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
18004 |
org.apache.thrift.protocol.TField field;
|
|
|
18005 |
iprot.readStructBegin();
|
|
|
18006 |
while (true)
|
|
|
18007 |
{
|
|
|
18008 |
field = iprot.readFieldBegin();
|
|
|
18009 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
18010 |
break;
|
|
|
18011 |
}
|
|
|
18012 |
switch (field.id) {
|
|
|
18013 |
case 0: // SUCCESS
|
|
|
18014 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
18015 |
this.success = iprot.readI64();
|
|
|
18016 |
setSuccessIsSet(true);
|
|
|
18017 |
} else {
|
|
|
18018 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
18019 |
}
|
|
|
18020 |
break;
|
|
|
18021 |
default:
|
|
|
18022 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
18023 |
}
|
|
|
18024 |
iprot.readFieldEnd();
|
|
|
18025 |
}
|
|
|
18026 |
iprot.readStructEnd();
|
|
|
18027 |
validate();
|
|
|
18028 |
}
|
|
|
18029 |
|
|
|
18030 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
18031 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
18032 |
|
|
|
18033 |
if (this.isSetSuccess()) {
|
|
|
18034 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
18035 |
oprot.writeI64(this.success);
|
|
|
18036 |
oprot.writeFieldEnd();
|
|
|
18037 |
}
|
|
|
18038 |
oprot.writeFieldStop();
|
|
|
18039 |
oprot.writeStructEnd();
|
|
|
18040 |
}
|
|
|
18041 |
|
|
|
18042 |
@Override
|
|
|
18043 |
public String toString() {
|
|
|
18044 |
StringBuilder sb = new StringBuilder("getFirstDeliveryEstimateForWhLocation_result(");
|
|
|
18045 |
boolean first = true;
|
|
|
18046 |
|
|
|
18047 |
sb.append("success:");
|
|
|
18048 |
sb.append(this.success);
|
|
|
18049 |
first = false;
|
|
|
18050 |
sb.append(")");
|
|
|
18051 |
return sb.toString();
|
|
|
18052 |
}
|
|
|
18053 |
|
|
|
18054 |
public void validate() throws org.apache.thrift.TException {
|
|
|
18055 |
// check for required fields
|
|
|
18056 |
}
|
|
|
18057 |
|
|
|
18058 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
18059 |
try {
|
|
|
18060 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
18061 |
} catch (org.apache.thrift.TException te) {
|
|
|
18062 |
throw new java.io.IOException(te);
|
|
|
18063 |
}
|
|
|
18064 |
}
|
|
|
18065 |
|
|
|
18066 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
18067 |
try {
|
|
|
18068 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
18069 |
} catch (org.apache.thrift.TException te) {
|
|
|
18070 |
throw new java.io.IOException(te);
|
|
|
18071 |
}
|
|
|
18072 |
}
|
|
|
18073 |
|
|
|
18074 |
}
|
|
|
18075 |
|
| 412 |
ashish |
18076 |
}
|