| 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 |
|
| 648 |
chandransh |
50 |
/**
|
|
|
51 |
* Same as above excpet that an airway bill number is also allocated and returned.
|
|
|
52 |
*
|
|
|
53 |
* @param destination_pincode
|
|
|
54 |
* @param item_id
|
| 3044 |
chandransh |
55 |
* @param type
|
| 5766 |
rajveer |
56 |
* @param pickUp
|
| 648 |
chandransh |
57 |
*/
|
| 5766 |
rajveer |
58 |
public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws LogisticsServiceException, org.apache.thrift.TException;
|
| 471 |
rajveer |
59 |
|
| 648 |
chandransh |
60 |
/**
|
|
|
61 |
* Returns an unused AWB number for the given provider.
|
|
|
62 |
*
|
|
|
63 |
* @param providerId
|
| 5247 |
rajveer |
64 |
* @param type
|
| 648 |
chandransh |
65 |
*/
|
| 5247 |
rajveer |
66 |
public String getEmptyAWB(long providerId, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
|
| 471 |
rajveer |
67 |
|
| 648 |
chandransh |
68 |
/**
|
|
|
69 |
* Returns the list of updates for the given AWB number and provider id. The list is empty if there are no updates yet.
|
|
|
70 |
*
|
|
|
71 |
* @param awb
|
|
|
72 |
* @param providerId
|
|
|
73 |
*/
|
| 3430 |
rajveer |
74 |
public List<AwbUpdate> getShipmentInfo(String awb, long providerId) throws LogisticsServiceException, org.apache.thrift.TException;
|
| 477 |
rajveer |
75 |
|
| 730 |
chandransh |
76 |
/**
|
|
|
77 |
* Returns the short three letter code of a pincode for the given provider.
|
|
|
78 |
* Raises an exception if the pin code is not serviced by the given provider.
|
|
|
79 |
*
|
|
|
80 |
* @param providerId
|
|
|
81 |
* @param pinCode
|
|
|
82 |
*/
|
| 3430 |
rajveer |
83 |
public String getDestinationCode(long providerId, String pinCode) throws LogisticsServiceException, org.apache.thrift.TException;
|
| 730 |
chandransh |
84 |
|
| 1139 |
chandransh |
85 |
/**
|
| 3103 |
chandransh |
86 |
* Returns the number of unused AWB numbers for the given provider of the given type
|
| 1139 |
chandransh |
87 |
*
|
|
|
88 |
* @param providerId
|
| 3103 |
chandransh |
89 |
* @param type
|
| 1139 |
chandransh |
90 |
*/
|
| 3430 |
rajveer |
91 |
public long getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException;
|
| 1139 |
chandransh |
92 |
|
| 1730 |
ankur.sing |
93 |
/**
|
|
|
94 |
* Returns list of Holiday dates between fromDate and toDate (both inclusive)
|
|
|
95 |
* fromDate should be passed as milliseconds corresponding to the start of the day.
|
|
|
96 |
* If fromDate is passed as -1, fromDate is not considered for filtering
|
|
|
97 |
* If toDate is passed as -1, toDate is not considered for filtering
|
|
|
98 |
*
|
|
|
99 |
* @param fromDate
|
|
|
100 |
* @param toDate
|
|
|
101 |
*/
|
| 3430 |
rajveer |
102 |
public List<Long> getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException;
|
| 1730 |
ankur.sing |
103 |
|
| 4934 |
amit.gupta |
104 |
/**
|
|
|
105 |
* Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
|
|
|
106 |
* Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
|
|
|
107 |
* is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
|
|
|
108 |
*
|
|
|
109 |
* @param catalogItemId
|
|
|
110 |
* @param destination_pin
|
|
|
111 |
* @param type
|
|
|
112 |
*/
|
|
|
113 |
public List<Long> getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
|
|
|
114 |
|
| 5527 |
anupam.sin |
115 |
/**
|
|
|
116 |
* Returns the id for a given pickUpType
|
|
|
117 |
*
|
|
|
118 |
* @param pickUp
|
|
|
119 |
*/
|
|
|
120 |
public long getProviderForPickupType(long pickUp) throws org.apache.thrift.TException;
|
|
|
121 |
|
| 5553 |
rajveer |
122 |
public List<PickupStore> getAllPickupStores() throws org.apache.thrift.TException;
|
|
|
123 |
|
|
|
124 |
public PickupStore getPickupStore(long storeId) throws org.apache.thrift.TException;
|
|
|
125 |
|
| 5719 |
rajveer |
126 |
public PickupStore getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException;
|
|
|
127 |
|
| 6524 |
rajveer |
128 |
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 |
129 |
|
| 6524 |
rajveer |
130 |
public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException;
|
| 6322 |
amar.kumar |
131 |
|
| 412 |
ashish |
132 |
}
|
|
|
133 |
|
| 3430 |
rajveer |
134 |
public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
|
|
|
135 |
|
|
|
136 |
public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
137 |
|
|
|
138 |
public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllProviders_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
139 |
|
| 4630 |
mandeep.dh |
140 |
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 |
141 |
|
| 5766 |
rajveer |
142 |
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 |
143 |
|
| 5247 |
rajveer |
144 |
public void getEmptyAWB(long providerId, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException;
|
| 3430 |
rajveer |
145 |
|
|
|
146 |
public void getShipmentInfo(String awb, long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
147 |
|
|
|
148 |
public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getDestinationCode_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
149 |
|
|
|
150 |
public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
151 |
|
|
|
152 |
public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHolidays_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
153 |
|
| 4934 |
amit.gupta |
154 |
public void getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEntityLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
155 |
|
| 5527 |
anupam.sin |
156 |
public void getProviderForPickupType(long pickUp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProviderForPickupType_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
157 |
|
| 5553 |
rajveer |
158 |
public void getAllPickupStores(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllPickupStores_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
159 |
|
|
|
160 |
public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStore_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
161 |
|
| 5719 |
rajveer |
162 |
public void getPickupStoreByHotspotId(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPickupStoreByHotspotId_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
163 |
|
| 6524 |
rajveer |
164 |
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 |
165 |
|
| 6524 |
rajveer |
166 |
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 |
167 |
|
| 3430 |
rajveer |
168 |
}
|
|
|
169 |
|
| 3374 |
rajveer |
170 |
public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
|
| 3430 |
rajveer |
171 |
public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
|
|
|
172 |
public Factory() {}
|
|
|
173 |
public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
|
|
|
174 |
return new Client(prot);
|
|
|
175 |
}
|
|
|
176 |
public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
|
|
|
177 |
return new Client(iprot, oprot);
|
|
|
178 |
}
|
|
|
179 |
}
|
|
|
180 |
|
|
|
181 |
public Client(org.apache.thrift.protocol.TProtocol prot)
|
| 412 |
ashish |
182 |
{
|
| 3430 |
rajveer |
183 |
super(prot, prot);
|
| 412 |
ashish |
184 |
}
|
|
|
185 |
|
| 3430 |
rajveer |
186 |
public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
|
| 3374 |
rajveer |
187 |
super(iprot, oprot);
|
| 412 |
ashish |
188 |
}
|
|
|
189 |
|
| 3430 |
rajveer |
190 |
public Provider getProvider(long providerId) throws LogisticsServiceException, org.apache.thrift.TException
|
| 668 |
chandransh |
191 |
{
|
|
|
192 |
send_getProvider(providerId);
|
|
|
193 |
return recv_getProvider();
|
|
|
194 |
}
|
|
|
195 |
|
| 3430 |
rajveer |
196 |
public void send_getProvider(long providerId) throws org.apache.thrift.TException
|
| 668 |
chandransh |
197 |
{
|
|
|
198 |
getProvider_args args = new getProvider_args();
|
| 3430 |
rajveer |
199 |
args.setProviderId(providerId);
|
|
|
200 |
sendBase("getProvider", args);
|
| 668 |
chandransh |
201 |
}
|
|
|
202 |
|
| 3430 |
rajveer |
203 |
public Provider recv_getProvider() throws LogisticsServiceException, org.apache.thrift.TException
|
| 668 |
chandransh |
204 |
{
|
|
|
205 |
getProvider_result result = new getProvider_result();
|
| 3430 |
rajveer |
206 |
receiveBase(result, "getProvider");
|
| 668 |
chandransh |
207 |
if (result.isSetSuccess()) {
|
|
|
208 |
return result.success;
|
|
|
209 |
}
|
|
|
210 |
if (result.lse != null) {
|
|
|
211 |
throw result.lse;
|
|
|
212 |
}
|
| 3430 |
rajveer |
213 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProvider failed: unknown result");
|
| 668 |
chandransh |
214 |
}
|
|
|
215 |
|
| 3430 |
rajveer |
216 |
public List<Provider> getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException
|
| 674 |
chandransh |
217 |
{
|
|
|
218 |
send_getAllProviders();
|
|
|
219 |
return recv_getAllProviders();
|
|
|
220 |
}
|
|
|
221 |
|
| 3430 |
rajveer |
222 |
public void send_getAllProviders() throws org.apache.thrift.TException
|
| 674 |
chandransh |
223 |
{
|
|
|
224 |
getAllProviders_args args = new getAllProviders_args();
|
| 3430 |
rajveer |
225 |
sendBase("getAllProviders", args);
|
| 674 |
chandransh |
226 |
}
|
|
|
227 |
|
| 3430 |
rajveer |
228 |
public List<Provider> recv_getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException
|
| 674 |
chandransh |
229 |
{
|
|
|
230 |
getAllProviders_result result = new getAllProviders_result();
|
| 3430 |
rajveer |
231 |
receiveBase(result, "getAllProviders");
|
| 674 |
chandransh |
232 |
if (result.isSetSuccess()) {
|
|
|
233 |
return result.success;
|
|
|
234 |
}
|
|
|
235 |
if (result.lse != null) {
|
|
|
236 |
throw result.lse;
|
|
|
237 |
}
|
| 3430 |
rajveer |
238 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllProviders failed: unknown result");
|
| 674 |
chandransh |
239 |
}
|
|
|
240 |
|
| 4630 |
mandeep.dh |
241 |
public LogisticsInfo getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
|
| 483 |
rajveer |
242 |
{
|
| 4630 |
mandeep.dh |
243 |
send_getLogisticsEstimation(itemId, destination_pin, type);
|
| 471 |
rajveer |
244 |
return recv_getLogisticsEstimation();
|
|
|
245 |
}
|
|
|
246 |
|
| 4630 |
mandeep.dh |
247 |
public void send_getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
|
| 471 |
rajveer |
248 |
{
|
|
|
249 |
getLogisticsEstimation_args args = new getLogisticsEstimation_args();
|
| 3430 |
rajveer |
250 |
args.setItemId(itemId);
|
|
|
251 |
args.setDestination_pin(destination_pin);
|
| 4630 |
mandeep.dh |
252 |
args.setType(type);
|
| 3430 |
rajveer |
253 |
sendBase("getLogisticsEstimation", args);
|
| 471 |
rajveer |
254 |
}
|
|
|
255 |
|
| 3430 |
rajveer |
256 |
public LogisticsInfo recv_getLogisticsEstimation() throws LogisticsServiceException, org.apache.thrift.TException
|
| 471 |
rajveer |
257 |
{
|
|
|
258 |
getLogisticsEstimation_result result = new getLogisticsEstimation_result();
|
| 3430 |
rajveer |
259 |
receiveBase(result, "getLogisticsEstimation");
|
| 471 |
rajveer |
260 |
if (result.isSetSuccess()) {
|
|
|
261 |
return result.success;
|
|
|
262 |
}
|
|
|
263 |
if (result.se != null) {
|
|
|
264 |
throw result.se;
|
|
|
265 |
}
|
| 3430 |
rajveer |
266 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsEstimation failed: unknown result");
|
| 471 |
rajveer |
267 |
}
|
|
|
268 |
|
| 5766 |
rajveer |
269 |
public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws LogisticsServiceException, org.apache.thrift.TException
|
| 471 |
rajveer |
270 |
{
|
| 5766 |
rajveer |
271 |
send_getLogisticsInfo(destination_pincode, item_id, type, pickUp);
|
| 648 |
chandransh |
272 |
return recv_getLogisticsInfo();
|
| 471 |
rajveer |
273 |
}
|
|
|
274 |
|
| 5766 |
rajveer |
275 |
public void send_getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws org.apache.thrift.TException
|
| 471 |
rajveer |
276 |
{
|
| 648 |
chandransh |
277 |
getLogisticsInfo_args args = new getLogisticsInfo_args();
|
| 3430 |
rajveer |
278 |
args.setDestination_pincode(destination_pincode);
|
|
|
279 |
args.setItem_id(item_id);
|
|
|
280 |
args.setType(type);
|
| 5766 |
rajveer |
281 |
args.setPickUp(pickUp);
|
| 3430 |
rajveer |
282 |
sendBase("getLogisticsInfo", args);
|
| 471 |
rajveer |
283 |
}
|
|
|
284 |
|
| 3430 |
rajveer |
285 |
public LogisticsInfo recv_getLogisticsInfo() throws LogisticsServiceException, org.apache.thrift.TException
|
| 471 |
rajveer |
286 |
{
|
| 648 |
chandransh |
287 |
getLogisticsInfo_result result = new getLogisticsInfo_result();
|
| 3430 |
rajveer |
288 |
receiveBase(result, "getLogisticsInfo");
|
| 648 |
chandransh |
289 |
if (result.isSetSuccess()) {
|
|
|
290 |
return result.success;
|
| 477 |
rajveer |
291 |
}
|
| 648 |
chandransh |
292 |
if (result.se != null) {
|
|
|
293 |
throw result.se;
|
| 412 |
ashish |
294 |
}
|
| 3430 |
rajveer |
295 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsInfo failed: unknown result");
|
| 412 |
ashish |
296 |
}
|
|
|
297 |
|
| 5247 |
rajveer |
298 |
public String getEmptyAWB(long providerId, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
|
| 412 |
ashish |
299 |
{
|
| 5247 |
rajveer |
300 |
send_getEmptyAWB(providerId, type);
|
| 412 |
ashish |
301 |
return recv_getEmptyAWB();
|
|
|
302 |
}
|
|
|
303 |
|
| 5247 |
rajveer |
304 |
public void send_getEmptyAWB(long providerId, DeliveryType type) throws org.apache.thrift.TException
|
| 412 |
ashish |
305 |
{
|
|
|
306 |
getEmptyAWB_args args = new getEmptyAWB_args();
|
| 3430 |
rajveer |
307 |
args.setProviderId(providerId);
|
| 5247 |
rajveer |
308 |
args.setType(type);
|
| 3430 |
rajveer |
309 |
sendBase("getEmptyAWB", args);
|
| 412 |
ashish |
310 |
}
|
|
|
311 |
|
| 3430 |
rajveer |
312 |
public String recv_getEmptyAWB() throws LogisticsServiceException, org.apache.thrift.TException
|
| 412 |
ashish |
313 |
{
|
|
|
314 |
getEmptyAWB_result result = new getEmptyAWB_result();
|
| 3430 |
rajveer |
315 |
receiveBase(result, "getEmptyAWB");
|
| 412 |
ashish |
316 |
if (result.isSetSuccess()) {
|
|
|
317 |
return result.success;
|
|
|
318 |
}
|
| 648 |
chandransh |
319 |
if (result.se != null) {
|
|
|
320 |
throw result.se;
|
|
|
321 |
}
|
| 3430 |
rajveer |
322 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmptyAWB failed: unknown result");
|
| 412 |
ashish |
323 |
}
|
|
|
324 |
|
| 3430 |
rajveer |
325 |
public List<AwbUpdate> getShipmentInfo(String awb, long providerId) throws LogisticsServiceException, org.apache.thrift.TException
|
| 412 |
ashish |
326 |
{
|
| 648 |
chandransh |
327 |
send_getShipmentInfo(awb, providerId);
|
| 412 |
ashish |
328 |
return recv_getShipmentInfo();
|
|
|
329 |
}
|
|
|
330 |
|
| 3430 |
rajveer |
331 |
public void send_getShipmentInfo(String awb, long providerId) throws org.apache.thrift.TException
|
| 412 |
ashish |
332 |
{
|
|
|
333 |
getShipmentInfo_args args = new getShipmentInfo_args();
|
| 3430 |
rajveer |
334 |
args.setAwb(awb);
|
|
|
335 |
args.setProviderId(providerId);
|
|
|
336 |
sendBase("getShipmentInfo", args);
|
| 412 |
ashish |
337 |
}
|
|
|
338 |
|
| 3430 |
rajveer |
339 |
public List<AwbUpdate> recv_getShipmentInfo() throws LogisticsServiceException, org.apache.thrift.TException
|
| 412 |
ashish |
340 |
{
|
|
|
341 |
getShipmentInfo_result result = new getShipmentInfo_result();
|
| 3430 |
rajveer |
342 |
receiveBase(result, "getShipmentInfo");
|
| 412 |
ashish |
343 |
if (result.isSetSuccess()) {
|
|
|
344 |
return result.success;
|
|
|
345 |
}
|
| 648 |
chandransh |
346 |
if (result.se != null) {
|
|
|
347 |
throw result.se;
|
|
|
348 |
}
|
| 3430 |
rajveer |
349 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getShipmentInfo failed: unknown result");
|
| 412 |
ashish |
350 |
}
|
|
|
351 |
|
| 3430 |
rajveer |
352 |
public String getDestinationCode(long providerId, String pinCode) throws LogisticsServiceException, org.apache.thrift.TException
|
| 730 |
chandransh |
353 |
{
|
|
|
354 |
send_getDestinationCode(providerId, pinCode);
|
|
|
355 |
return recv_getDestinationCode();
|
|
|
356 |
}
|
|
|
357 |
|
| 3430 |
rajveer |
358 |
public void send_getDestinationCode(long providerId, String pinCode) throws org.apache.thrift.TException
|
| 730 |
chandransh |
359 |
{
|
|
|
360 |
getDestinationCode_args args = new getDestinationCode_args();
|
| 3430 |
rajveer |
361 |
args.setProviderId(providerId);
|
|
|
362 |
args.setPinCode(pinCode);
|
|
|
363 |
sendBase("getDestinationCode", args);
|
| 730 |
chandransh |
364 |
}
|
|
|
365 |
|
| 3430 |
rajveer |
366 |
public String recv_getDestinationCode() throws LogisticsServiceException, org.apache.thrift.TException
|
| 730 |
chandransh |
367 |
{
|
|
|
368 |
getDestinationCode_result result = new getDestinationCode_result();
|
| 3430 |
rajveer |
369 |
receiveBase(result, "getDestinationCode");
|
| 730 |
chandransh |
370 |
if (result.isSetSuccess()) {
|
|
|
371 |
return result.success;
|
|
|
372 |
}
|
|
|
373 |
if (result.se != null) {
|
|
|
374 |
throw result.se;
|
|
|
375 |
}
|
| 3430 |
rajveer |
376 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getDestinationCode failed: unknown result");
|
| 730 |
chandransh |
377 |
}
|
|
|
378 |
|
| 3430 |
rajveer |
379 |
public long getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException
|
| 1139 |
chandransh |
380 |
{
|
| 3103 |
chandransh |
381 |
send_getFreeAwbCount(providerId, type);
|
| 1139 |
chandransh |
382 |
return recv_getFreeAwbCount();
|
|
|
383 |
}
|
|
|
384 |
|
| 3430 |
rajveer |
385 |
public void send_getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException
|
| 1139 |
chandransh |
386 |
{
|
|
|
387 |
getFreeAwbCount_args args = new getFreeAwbCount_args();
|
| 3430 |
rajveer |
388 |
args.setProviderId(providerId);
|
|
|
389 |
args.setType(type);
|
|
|
390 |
sendBase("getFreeAwbCount", args);
|
| 1139 |
chandransh |
391 |
}
|
|
|
392 |
|
| 3430 |
rajveer |
393 |
public long recv_getFreeAwbCount() throws org.apache.thrift.TException
|
| 1139 |
chandransh |
394 |
{
|
|
|
395 |
getFreeAwbCount_result result = new getFreeAwbCount_result();
|
| 3430 |
rajveer |
396 |
receiveBase(result, "getFreeAwbCount");
|
| 1139 |
chandransh |
397 |
if (result.isSetSuccess()) {
|
|
|
398 |
return result.success;
|
|
|
399 |
}
|
| 3430 |
rajveer |
400 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFreeAwbCount failed: unknown result");
|
| 1139 |
chandransh |
401 |
}
|
|
|
402 |
|
| 3430 |
rajveer |
403 |
public List<Long> getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException
|
| 1730 |
ankur.sing |
404 |
{
|
|
|
405 |
send_getHolidays(fromDate, toDate);
|
|
|
406 |
return recv_getHolidays();
|
|
|
407 |
}
|
|
|
408 |
|
| 3430 |
rajveer |
409 |
public void send_getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException
|
| 1730 |
ankur.sing |
410 |
{
|
|
|
411 |
getHolidays_args args = new getHolidays_args();
|
| 3430 |
rajveer |
412 |
args.setFromDate(fromDate);
|
|
|
413 |
args.setToDate(toDate);
|
|
|
414 |
sendBase("getHolidays", args);
|
| 1730 |
ankur.sing |
415 |
}
|
|
|
416 |
|
| 3430 |
rajveer |
417 |
public List<Long> recv_getHolidays() throws org.apache.thrift.TException
|
| 1730 |
ankur.sing |
418 |
{
|
|
|
419 |
getHolidays_result result = new getHolidays_result();
|
| 3430 |
rajveer |
420 |
receiveBase(result, "getHolidays");
|
| 1730 |
ankur.sing |
421 |
if (result.isSetSuccess()) {
|
|
|
422 |
return result.success;
|
|
|
423 |
}
|
| 3430 |
rajveer |
424 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHolidays failed: unknown result");
|
| 1730 |
ankur.sing |
425 |
}
|
|
|
426 |
|
| 4934 |
amit.gupta |
427 |
public List<Long> getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
|
|
|
428 |
{
|
|
|
429 |
send_getEntityLogisticsEstimation(catalogItemId, destination_pin, type);
|
|
|
430 |
return recv_getEntityLogisticsEstimation();
|
|
|
431 |
}
|
|
|
432 |
|
|
|
433 |
public void send_getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
|
|
|
434 |
{
|
|
|
435 |
getEntityLogisticsEstimation_args args = new getEntityLogisticsEstimation_args();
|
|
|
436 |
args.setCatalogItemId(catalogItemId);
|
|
|
437 |
args.setDestination_pin(destination_pin);
|
|
|
438 |
args.setType(type);
|
|
|
439 |
sendBase("getEntityLogisticsEstimation", args);
|
|
|
440 |
}
|
|
|
441 |
|
|
|
442 |
public List<Long> recv_getEntityLogisticsEstimation() throws LogisticsServiceException, org.apache.thrift.TException
|
|
|
443 |
{
|
|
|
444 |
getEntityLogisticsEstimation_result result = new getEntityLogisticsEstimation_result();
|
|
|
445 |
receiveBase(result, "getEntityLogisticsEstimation");
|
|
|
446 |
if (result.isSetSuccess()) {
|
|
|
447 |
return result.success;
|
|
|
448 |
}
|
|
|
449 |
if (result.se != null) {
|
|
|
450 |
throw result.se;
|
|
|
451 |
}
|
|
|
452 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEntityLogisticsEstimation failed: unknown result");
|
|
|
453 |
}
|
|
|
454 |
|
| 5527 |
anupam.sin |
455 |
public long getProviderForPickupType(long pickUp) throws org.apache.thrift.TException
|
|
|
456 |
{
|
|
|
457 |
send_getProviderForPickupType(pickUp);
|
|
|
458 |
return recv_getProviderForPickupType();
|
|
|
459 |
}
|
|
|
460 |
|
|
|
461 |
public void send_getProviderForPickupType(long pickUp) throws org.apache.thrift.TException
|
|
|
462 |
{
|
|
|
463 |
getProviderForPickupType_args args = new getProviderForPickupType_args();
|
|
|
464 |
args.setPickUp(pickUp);
|
|
|
465 |
sendBase("getProviderForPickupType", args);
|
|
|
466 |
}
|
|
|
467 |
|
|
|
468 |
public long recv_getProviderForPickupType() throws org.apache.thrift.TException
|
|
|
469 |
{
|
|
|
470 |
getProviderForPickupType_result result = new getProviderForPickupType_result();
|
|
|
471 |
receiveBase(result, "getProviderForPickupType");
|
|
|
472 |
if (result.isSetSuccess()) {
|
|
|
473 |
return result.success;
|
|
|
474 |
}
|
|
|
475 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProviderForPickupType failed: unknown result");
|
|
|
476 |
}
|
|
|
477 |
|
| 5553 |
rajveer |
478 |
public List<PickupStore> getAllPickupStores() throws org.apache.thrift.TException
|
|
|
479 |
{
|
|
|
480 |
send_getAllPickupStores();
|
|
|
481 |
return recv_getAllPickupStores();
|
|
|
482 |
}
|
|
|
483 |
|
|
|
484 |
public void send_getAllPickupStores() throws org.apache.thrift.TException
|
|
|
485 |
{
|
|
|
486 |
getAllPickupStores_args args = new getAllPickupStores_args();
|
|
|
487 |
sendBase("getAllPickupStores", args);
|
|
|
488 |
}
|
|
|
489 |
|
|
|
490 |
public List<PickupStore> recv_getAllPickupStores() throws org.apache.thrift.TException
|
|
|
491 |
{
|
|
|
492 |
getAllPickupStores_result result = new getAllPickupStores_result();
|
|
|
493 |
receiveBase(result, "getAllPickupStores");
|
|
|
494 |
if (result.isSetSuccess()) {
|
|
|
495 |
return result.success;
|
|
|
496 |
}
|
|
|
497 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllPickupStores failed: unknown result");
|
|
|
498 |
}
|
|
|
499 |
|
|
|
500 |
public PickupStore getPickupStore(long storeId) throws org.apache.thrift.TException
|
|
|
501 |
{
|
|
|
502 |
send_getPickupStore(storeId);
|
|
|
503 |
return recv_getPickupStore();
|
|
|
504 |
}
|
|
|
505 |
|
|
|
506 |
public void send_getPickupStore(long storeId) throws org.apache.thrift.TException
|
|
|
507 |
{
|
|
|
508 |
getPickupStore_args args = new getPickupStore_args();
|
|
|
509 |
args.setStoreId(storeId);
|
|
|
510 |
sendBase("getPickupStore", args);
|
|
|
511 |
}
|
|
|
512 |
|
|
|
513 |
public PickupStore recv_getPickupStore() throws org.apache.thrift.TException
|
|
|
514 |
{
|
|
|
515 |
getPickupStore_result result = new getPickupStore_result();
|
|
|
516 |
receiveBase(result, "getPickupStore");
|
|
|
517 |
if (result.isSetSuccess()) {
|
|
|
518 |
return result.success;
|
|
|
519 |
}
|
|
|
520 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPickupStore failed: unknown result");
|
|
|
521 |
}
|
|
|
522 |
|
| 5719 |
rajveer |
523 |
public PickupStore getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException
|
|
|
524 |
{
|
|
|
525 |
send_getPickupStoreByHotspotId(hotspotId);
|
|
|
526 |
return recv_getPickupStoreByHotspotId();
|
|
|
527 |
}
|
|
|
528 |
|
|
|
529 |
public void send_getPickupStoreByHotspotId(String hotspotId) throws org.apache.thrift.TException
|
|
|
530 |
{
|
|
|
531 |
getPickupStoreByHotspotId_args args = new getPickupStoreByHotspotId_args();
|
|
|
532 |
args.setHotspotId(hotspotId);
|
|
|
533 |
sendBase("getPickupStoreByHotspotId", args);
|
|
|
534 |
}
|
|
|
535 |
|
|
|
536 |
public PickupStore recv_getPickupStoreByHotspotId() throws org.apache.thrift.TException
|
|
|
537 |
{
|
|
|
538 |
getPickupStoreByHotspotId_result result = new getPickupStoreByHotspotId_result();
|
|
|
539 |
receiveBase(result, "getPickupStoreByHotspotId");
|
|
|
540 |
if (result.isSetSuccess()) {
|
|
|
541 |
return result.success;
|
|
|
542 |
}
|
|
|
543 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPickupStoreByHotspotId failed: unknown result");
|
|
|
544 |
}
|
|
|
545 |
|
| 6524 |
rajveer |
546 |
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 |
547 |
{
|
| 6524 |
rajveer |
548 |
send_addPincode(providerId, pincode, destCode, exp, cod, stationType, otgAvailable);
|
| 6322 |
amar.kumar |
549 |
recv_addPincode();
|
|
|
550 |
}
|
|
|
551 |
|
| 6524 |
rajveer |
552 |
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 |
553 |
{
|
|
|
554 |
addPincode_args args = new addPincode_args();
|
|
|
555 |
args.setProviderId(providerId);
|
|
|
556 |
args.setPincode(pincode);
|
|
|
557 |
args.setDestCode(destCode);
|
|
|
558 |
args.setExp(exp);
|
|
|
559 |
args.setCod(cod);
|
|
|
560 |
args.setStationType(stationType);
|
| 6524 |
rajveer |
561 |
args.setOtgAvailable(otgAvailable);
|
| 6322 |
amar.kumar |
562 |
sendBase("addPincode", args);
|
|
|
563 |
}
|
|
|
564 |
|
|
|
565 |
public void recv_addPincode() throws org.apache.thrift.TException
|
|
|
566 |
{
|
|
|
567 |
addPincode_result result = new addPincode_result();
|
|
|
568 |
receiveBase(result, "addPincode");
|
|
|
569 |
return;
|
|
|
570 |
}
|
|
|
571 |
|
| 6524 |
rajveer |
572 |
public void updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException
|
| 6322 |
amar.kumar |
573 |
{
|
| 6524 |
rajveer |
574 |
send_updatePincode(providerId, pincode, exp, cod, otgAvailable);
|
| 6322 |
amar.kumar |
575 |
recv_updatePincode();
|
|
|
576 |
}
|
|
|
577 |
|
| 6524 |
rajveer |
578 |
public void send_updatePincode(long providerId, String pincode, boolean exp, boolean cod, boolean otgAvailable) throws org.apache.thrift.TException
|
| 6322 |
amar.kumar |
579 |
{
|
|
|
580 |
updatePincode_args args = new updatePincode_args();
|
|
|
581 |
args.setProviderId(providerId);
|
|
|
582 |
args.setPincode(pincode);
|
|
|
583 |
args.setExp(exp);
|
|
|
584 |
args.setCod(cod);
|
| 6524 |
rajveer |
585 |
args.setOtgAvailable(otgAvailable);
|
| 6322 |
amar.kumar |
586 |
sendBase("updatePincode", args);
|
|
|
587 |
}
|
|
|
588 |
|
|
|
589 |
public void recv_updatePincode() throws org.apache.thrift.TException
|
|
|
590 |
{
|
|
|
591 |
updatePincode_result result = new updatePincode_result();
|
|
|
592 |
receiveBase(result, "updatePincode");
|
|
|
593 |
return;
|
|
|
594 |
}
|
|
|
595 |
|
| 412 |
ashish |
596 |
}
|
| 3430 |
rajveer |
597 |
public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
|
|
|
598 |
public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
|
|
|
599 |
private org.apache.thrift.async.TAsyncClientManager clientManager;
|
|
|
600 |
private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
|
|
|
601 |
public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
|
|
|
602 |
this.clientManager = clientManager;
|
|
|
603 |
this.protocolFactory = protocolFactory;
|
|
|
604 |
}
|
|
|
605 |
public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
|
|
|
606 |
return new AsyncClient(protocolFactory, clientManager, transport);
|
|
|
607 |
}
|
| 412 |
ashish |
608 |
}
|
|
|
609 |
|
| 3430 |
rajveer |
610 |
public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
|
|
|
611 |
super(protocolFactory, clientManager, transport);
|
|
|
612 |
}
|
| 412 |
ashish |
613 |
|
| 3430 |
rajveer |
614 |
public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<getProvider_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
615 |
checkReady();
|
|
|
616 |
getProvider_call method_call = new getProvider_call(providerId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
617 |
this.___currentMethod = method_call;
|
|
|
618 |
___manager.call(method_call);
|
|
|
619 |
}
|
|
|
620 |
|
|
|
621 |
public static class getProvider_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
622 |
private long providerId;
|
|
|
623 |
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 {
|
|
|
624 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
625 |
this.providerId = providerId;
|
| 412 |
ashish |
626 |
}
|
| 3430 |
rajveer |
627 |
|
|
|
628 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
629 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProvider", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
630 |
getProvider_args args = new getProvider_args();
|
|
|
631 |
args.setProviderId(providerId);
|
|
|
632 |
args.write(prot);
|
|
|
633 |
prot.writeMessageEnd();
|
|
|
634 |
}
|
|
|
635 |
|
|
|
636 |
public Provider getResult() throws LogisticsServiceException, org.apache.thrift.TException {
|
|
|
637 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
638 |
throw new IllegalStateException("Method call not finished!");
|
|
|
639 |
}
|
|
|
640 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
641 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
642 |
return (new Client(prot)).recv_getProvider();
|
|
|
643 |
}
|
| 412 |
ashish |
644 |
}
|
|
|
645 |
|
| 3430 |
rajveer |
646 |
public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<getAllProviders_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
647 |
checkReady();
|
|
|
648 |
getAllProviders_call method_call = new getAllProviders_call(resultHandler, this, ___protocolFactory, ___transport);
|
|
|
649 |
this.___currentMethod = method_call;
|
|
|
650 |
___manager.call(method_call);
|
|
|
651 |
}
|
|
|
652 |
|
|
|
653 |
public static class getAllProviders_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
654 |
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 {
|
|
|
655 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
656 |
}
|
|
|
657 |
|
|
|
658 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
659 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllProviders", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
660 |
getAllProviders_args args = new getAllProviders_args();
|
|
|
661 |
args.write(prot);
|
|
|
662 |
prot.writeMessageEnd();
|
|
|
663 |
}
|
|
|
664 |
|
|
|
665 |
public List<Provider> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
|
|
|
666 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
667 |
throw new IllegalStateException("Method call not finished!");
|
|
|
668 |
}
|
|
|
669 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
670 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
671 |
return (new Client(prot)).recv_getAllProviders();
|
|
|
672 |
}
|
|
|
673 |
}
|
|
|
674 |
|
| 4630 |
mandeep.dh |
675 |
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 |
676 |
checkReady();
|
| 4630 |
mandeep.dh |
677 |
getLogisticsEstimation_call method_call = new getLogisticsEstimation_call(itemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
|
| 3430 |
rajveer |
678 |
this.___currentMethod = method_call;
|
|
|
679 |
___manager.call(method_call);
|
|
|
680 |
}
|
|
|
681 |
|
|
|
682 |
public static class getLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
683 |
private long itemId;
|
|
|
684 |
private String destination_pin;
|
| 4630 |
mandeep.dh |
685 |
private DeliveryType type;
|
|
|
686 |
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 |
687 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
688 |
this.itemId = itemId;
|
|
|
689 |
this.destination_pin = destination_pin;
|
| 4630 |
mandeep.dh |
690 |
this.type = type;
|
| 3430 |
rajveer |
691 |
}
|
|
|
692 |
|
|
|
693 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
694 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
695 |
getLogisticsEstimation_args args = new getLogisticsEstimation_args();
|
|
|
696 |
args.setItemId(itemId);
|
|
|
697 |
args.setDestination_pin(destination_pin);
|
| 4630 |
mandeep.dh |
698 |
args.setType(type);
|
| 3430 |
rajveer |
699 |
args.write(prot);
|
|
|
700 |
prot.writeMessageEnd();
|
|
|
701 |
}
|
|
|
702 |
|
|
|
703 |
public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
|
|
|
704 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
705 |
throw new IllegalStateException("Method call not finished!");
|
|
|
706 |
}
|
|
|
707 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
708 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
709 |
return (new Client(prot)).recv_getLogisticsEstimation();
|
|
|
710 |
}
|
|
|
711 |
}
|
|
|
712 |
|
| 5766 |
rajveer |
713 |
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 |
714 |
checkReady();
|
| 5766 |
rajveer |
715 |
getLogisticsInfo_call method_call = new getLogisticsInfo_call(destination_pincode, item_id, type, pickUp, resultHandler, this, ___protocolFactory, ___transport);
|
| 3430 |
rajveer |
716 |
this.___currentMethod = method_call;
|
|
|
717 |
___manager.call(method_call);
|
|
|
718 |
}
|
|
|
719 |
|
|
|
720 |
public static class getLogisticsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
721 |
private String destination_pincode;
|
|
|
722 |
private long item_id;
|
|
|
723 |
private DeliveryType type;
|
| 5766 |
rajveer |
724 |
private PickUpType pickUp;
|
|
|
725 |
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 |
726 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
727 |
this.destination_pincode = destination_pincode;
|
|
|
728 |
this.item_id = item_id;
|
|
|
729 |
this.type = type;
|
| 5766 |
rajveer |
730 |
this.pickUp = pickUp;
|
| 3430 |
rajveer |
731 |
}
|
|
|
732 |
|
|
|
733 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
734 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
735 |
getLogisticsInfo_args args = new getLogisticsInfo_args();
|
|
|
736 |
args.setDestination_pincode(destination_pincode);
|
|
|
737 |
args.setItem_id(item_id);
|
|
|
738 |
args.setType(type);
|
| 5766 |
rajveer |
739 |
args.setPickUp(pickUp);
|
| 3430 |
rajveer |
740 |
args.write(prot);
|
|
|
741 |
prot.writeMessageEnd();
|
|
|
742 |
}
|
|
|
743 |
|
|
|
744 |
public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
|
|
|
745 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
746 |
throw new IllegalStateException("Method call not finished!");
|
|
|
747 |
}
|
|
|
748 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
749 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
750 |
return (new Client(prot)).recv_getLogisticsInfo();
|
|
|
751 |
}
|
|
|
752 |
}
|
|
|
753 |
|
| 5247 |
rajveer |
754 |
public void getEmptyAWB(long providerId, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException {
|
| 3430 |
rajveer |
755 |
checkReady();
|
| 5247 |
rajveer |
756 |
getEmptyAWB_call method_call = new getEmptyAWB_call(providerId, type, resultHandler, this, ___protocolFactory, ___transport);
|
| 3430 |
rajveer |
757 |
this.___currentMethod = method_call;
|
|
|
758 |
___manager.call(method_call);
|
|
|
759 |
}
|
|
|
760 |
|
|
|
761 |
public static class getEmptyAWB_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
762 |
private long providerId;
|
| 5247 |
rajveer |
763 |
private DeliveryType type;
|
|
|
764 |
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 |
765 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
766 |
this.providerId = providerId;
|
| 5247 |
rajveer |
767 |
this.type = type;
|
| 3430 |
rajveer |
768 |
}
|
|
|
769 |
|
|
|
770 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
771 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmptyAWB", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
772 |
getEmptyAWB_args args = new getEmptyAWB_args();
|
|
|
773 |
args.setProviderId(providerId);
|
| 5247 |
rajveer |
774 |
args.setType(type);
|
| 3430 |
rajveer |
775 |
args.write(prot);
|
|
|
776 |
prot.writeMessageEnd();
|
|
|
777 |
}
|
|
|
778 |
|
|
|
779 |
public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
|
|
|
780 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
781 |
throw new IllegalStateException("Method call not finished!");
|
|
|
782 |
}
|
|
|
783 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
784 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
785 |
return (new Client(prot)).recv_getEmptyAWB();
|
|
|
786 |
}
|
|
|
787 |
}
|
|
|
788 |
|
|
|
789 |
public void getShipmentInfo(String awb, long providerId, org.apache.thrift.async.AsyncMethodCallback<getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
790 |
checkReady();
|
|
|
791 |
getShipmentInfo_call method_call = new getShipmentInfo_call(awb, providerId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
792 |
this.___currentMethod = method_call;
|
|
|
793 |
___manager.call(method_call);
|
|
|
794 |
}
|
|
|
795 |
|
|
|
796 |
public static class getShipmentInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
797 |
private String awb;
|
|
|
798 |
private long providerId;
|
|
|
799 |
public getShipmentInfo_call(String awb, 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 {
|
|
|
800 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
801 |
this.awb = awb;
|
|
|
802 |
this.providerId = providerId;
|
|
|
803 |
}
|
|
|
804 |
|
|
|
805 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
806 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getShipmentInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
807 |
getShipmentInfo_args args = new getShipmentInfo_args();
|
|
|
808 |
args.setAwb(awb);
|
|
|
809 |
args.setProviderId(providerId);
|
|
|
810 |
args.write(prot);
|
|
|
811 |
prot.writeMessageEnd();
|
|
|
812 |
}
|
|
|
813 |
|
|
|
814 |
public List<AwbUpdate> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
|
|
|
815 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
816 |
throw new IllegalStateException("Method call not finished!");
|
|
|
817 |
}
|
|
|
818 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
819 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
820 |
return (new Client(prot)).recv_getShipmentInfo();
|
|
|
821 |
}
|
|
|
822 |
}
|
|
|
823 |
|
|
|
824 |
public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<getDestinationCode_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
825 |
checkReady();
|
|
|
826 |
getDestinationCode_call method_call = new getDestinationCode_call(providerId, pinCode, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
827 |
this.___currentMethod = method_call;
|
|
|
828 |
___manager.call(method_call);
|
|
|
829 |
}
|
|
|
830 |
|
|
|
831 |
public static class getDestinationCode_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
832 |
private long providerId;
|
|
|
833 |
private String pinCode;
|
|
|
834 |
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 {
|
|
|
835 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
836 |
this.providerId = providerId;
|
|
|
837 |
this.pinCode = pinCode;
|
|
|
838 |
}
|
|
|
839 |
|
|
|
840 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
841 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getDestinationCode", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
842 |
getDestinationCode_args args = new getDestinationCode_args();
|
|
|
843 |
args.setProviderId(providerId);
|
|
|
844 |
args.setPinCode(pinCode);
|
|
|
845 |
args.write(prot);
|
|
|
846 |
prot.writeMessageEnd();
|
|
|
847 |
}
|
|
|
848 |
|
|
|
849 |
public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
|
|
|
850 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
851 |
throw new IllegalStateException("Method call not finished!");
|
|
|
852 |
}
|
|
|
853 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
854 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
855 |
return (new Client(prot)).recv_getDestinationCode();
|
|
|
856 |
}
|
|
|
857 |
}
|
|
|
858 |
|
|
|
859 |
public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
860 |
checkReady();
|
|
|
861 |
getFreeAwbCount_call method_call = new getFreeAwbCount_call(providerId, type, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
862 |
this.___currentMethod = method_call;
|
|
|
863 |
___manager.call(method_call);
|
|
|
864 |
}
|
|
|
865 |
|
|
|
866 |
public static class getFreeAwbCount_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
867 |
private long providerId;
|
|
|
868 |
private String type;
|
|
|
869 |
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 {
|
|
|
870 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
871 |
this.providerId = providerId;
|
|
|
872 |
this.type = type;
|
|
|
873 |
}
|
|
|
874 |
|
|
|
875 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
876 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFreeAwbCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
877 |
getFreeAwbCount_args args = new getFreeAwbCount_args();
|
|
|
878 |
args.setProviderId(providerId);
|
|
|
879 |
args.setType(type);
|
|
|
880 |
args.write(prot);
|
|
|
881 |
prot.writeMessageEnd();
|
|
|
882 |
}
|
|
|
883 |
|
|
|
884 |
public long getResult() throws org.apache.thrift.TException {
|
|
|
885 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
886 |
throw new IllegalStateException("Method call not finished!");
|
|
|
887 |
}
|
|
|
888 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
889 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
890 |
return (new Client(prot)).recv_getFreeAwbCount();
|
|
|
891 |
}
|
|
|
892 |
}
|
|
|
893 |
|
|
|
894 |
public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getHolidays_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
895 |
checkReady();
|
|
|
896 |
getHolidays_call method_call = new getHolidays_call(fromDate, toDate, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
897 |
this.___currentMethod = method_call;
|
|
|
898 |
___manager.call(method_call);
|
|
|
899 |
}
|
|
|
900 |
|
|
|
901 |
public static class getHolidays_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
902 |
private long fromDate;
|
|
|
903 |
private long toDate;
|
|
|
904 |
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 {
|
|
|
905 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
906 |
this.fromDate = fromDate;
|
|
|
907 |
this.toDate = toDate;
|
|
|
908 |
}
|
|
|
909 |
|
|
|
910 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
911 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHolidays", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
912 |
getHolidays_args args = new getHolidays_args();
|
|
|
913 |
args.setFromDate(fromDate);
|
|
|
914 |
args.setToDate(toDate);
|
|
|
915 |
args.write(prot);
|
|
|
916 |
prot.writeMessageEnd();
|
|
|
917 |
}
|
|
|
918 |
|
|
|
919 |
public List<Long> getResult() throws org.apache.thrift.TException {
|
|
|
920 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
921 |
throw new IllegalStateException("Method call not finished!");
|
|
|
922 |
}
|
|
|
923 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
924 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
925 |
return (new Client(prot)).recv_getHolidays();
|
|
|
926 |
}
|
|
|
927 |
}
|
|
|
928 |
|
| 4934 |
amit.gupta |
929 |
public void getEntityLogisticsEstimation(long catalogItemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getEntityLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
930 |
checkReady();
|
|
|
931 |
getEntityLogisticsEstimation_call method_call = new getEntityLogisticsEstimation_call(catalogItemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
932 |
this.___currentMethod = method_call;
|
|
|
933 |
___manager.call(method_call);
|
|
|
934 |
}
|
|
|
935 |
|
|
|
936 |
public static class getEntityLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
937 |
private long catalogItemId;
|
|
|
938 |
private String destination_pin;
|
|
|
939 |
private DeliveryType type;
|
|
|
940 |
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 {
|
|
|
941 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
942 |
this.catalogItemId = catalogItemId;
|
|
|
943 |
this.destination_pin = destination_pin;
|
|
|
944 |
this.type = type;
|
|
|
945 |
}
|
|
|
946 |
|
|
|
947 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
948 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEntityLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
949 |
getEntityLogisticsEstimation_args args = new getEntityLogisticsEstimation_args();
|
|
|
950 |
args.setCatalogItemId(catalogItemId);
|
|
|
951 |
args.setDestination_pin(destination_pin);
|
|
|
952 |
args.setType(type);
|
|
|
953 |
args.write(prot);
|
|
|
954 |
prot.writeMessageEnd();
|
|
|
955 |
}
|
|
|
956 |
|
|
|
957 |
public List<Long> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
|
|
|
958 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
959 |
throw new IllegalStateException("Method call not finished!");
|
|
|
960 |
}
|
|
|
961 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
962 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
963 |
return (new Client(prot)).recv_getEntityLogisticsEstimation();
|
|
|
964 |
}
|
|
|
965 |
}
|
|
|
966 |
|
| 5527 |
anupam.sin |
967 |
public void getProviderForPickupType(long pickUp, org.apache.thrift.async.AsyncMethodCallback<getProviderForPickupType_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
968 |
checkReady();
|
|
|
969 |
getProviderForPickupType_call method_call = new getProviderForPickupType_call(pickUp, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
970 |
this.___currentMethod = method_call;
|
|
|
971 |
___manager.call(method_call);
|
|
|
972 |
}
|
|
|
973 |
|
|
|
974 |
public static class getProviderForPickupType_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
975 |
private long pickUp;
|
|
|
976 |
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 {
|
|
|
977 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
978 |
this.pickUp = pickUp;
|
|
|
979 |
}
|
|
|
980 |
|
|
|
981 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
982 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProviderForPickupType", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
983 |
getProviderForPickupType_args args = new getProviderForPickupType_args();
|
|
|
984 |
args.setPickUp(pickUp);
|
|
|
985 |
args.write(prot);
|
|
|
986 |
prot.writeMessageEnd();
|
|
|
987 |
}
|
|
|
988 |
|
|
|
989 |
public long getResult() throws org.apache.thrift.TException {
|
|
|
990 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
991 |
throw new IllegalStateException("Method call not finished!");
|
|
|
992 |
}
|
|
|
993 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
994 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
995 |
return (new Client(prot)).recv_getProviderForPickupType();
|
|
|
996 |
}
|
|
|
997 |
}
|
|
|
998 |
|
| 5553 |
rajveer |
999 |
public void getAllPickupStores(org.apache.thrift.async.AsyncMethodCallback<getAllPickupStores_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1000 |
checkReady();
|
|
|
1001 |
getAllPickupStores_call method_call = new getAllPickupStores_call(resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1002 |
this.___currentMethod = method_call;
|
|
|
1003 |
___manager.call(method_call);
|
|
|
1004 |
}
|
|
|
1005 |
|
|
|
1006 |
public static class getAllPickupStores_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1007 |
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 {
|
|
|
1008 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1009 |
}
|
|
|
1010 |
|
|
|
1011 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1012 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllPickupStores", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1013 |
getAllPickupStores_args args = new getAllPickupStores_args();
|
|
|
1014 |
args.write(prot);
|
|
|
1015 |
prot.writeMessageEnd();
|
|
|
1016 |
}
|
|
|
1017 |
|
|
|
1018 |
public List<PickupStore> getResult() throws org.apache.thrift.TException {
|
|
|
1019 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1020 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1021 |
}
|
|
|
1022 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1023 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1024 |
return (new Client(prot)).recv_getAllPickupStores();
|
|
|
1025 |
}
|
|
|
1026 |
}
|
|
|
1027 |
|
|
|
1028 |
public void getPickupStore(long storeId, org.apache.thrift.async.AsyncMethodCallback<getPickupStore_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1029 |
checkReady();
|
|
|
1030 |
getPickupStore_call method_call = new getPickupStore_call(storeId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1031 |
this.___currentMethod = method_call;
|
|
|
1032 |
___manager.call(method_call);
|
|
|
1033 |
}
|
|
|
1034 |
|
|
|
1035 |
public static class getPickupStore_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1036 |
private long storeId;
|
|
|
1037 |
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 {
|
|
|
1038 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1039 |
this.storeId = storeId;
|
|
|
1040 |
}
|
|
|
1041 |
|
|
|
1042 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1043 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPickupStore", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1044 |
getPickupStore_args args = new getPickupStore_args();
|
|
|
1045 |
args.setStoreId(storeId);
|
|
|
1046 |
args.write(prot);
|
|
|
1047 |
prot.writeMessageEnd();
|
|
|
1048 |
}
|
|
|
1049 |
|
|
|
1050 |
public PickupStore getResult() throws org.apache.thrift.TException {
|
|
|
1051 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1052 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1053 |
}
|
|
|
1054 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1055 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1056 |
return (new Client(prot)).recv_getPickupStore();
|
|
|
1057 |
}
|
|
|
1058 |
}
|
|
|
1059 |
|
| 5719 |
rajveer |
1060 |
public void getPickupStoreByHotspotId(String hotspotId, org.apache.thrift.async.AsyncMethodCallback<getPickupStoreByHotspotId_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
1061 |
checkReady();
|
|
|
1062 |
getPickupStoreByHotspotId_call method_call = new getPickupStoreByHotspotId_call(hotspotId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
1063 |
this.___currentMethod = method_call;
|
|
|
1064 |
___manager.call(method_call);
|
|
|
1065 |
}
|
|
|
1066 |
|
|
|
1067 |
public static class getPickupStoreByHotspotId_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1068 |
private String hotspotId;
|
|
|
1069 |
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 {
|
|
|
1070 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1071 |
this.hotspotId = hotspotId;
|
|
|
1072 |
}
|
|
|
1073 |
|
|
|
1074 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1075 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPickupStoreByHotspotId", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1076 |
getPickupStoreByHotspotId_args args = new getPickupStoreByHotspotId_args();
|
|
|
1077 |
args.setHotspotId(hotspotId);
|
|
|
1078 |
args.write(prot);
|
|
|
1079 |
prot.writeMessageEnd();
|
|
|
1080 |
}
|
|
|
1081 |
|
|
|
1082 |
public PickupStore getResult() throws org.apache.thrift.TException {
|
|
|
1083 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1084 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1085 |
}
|
|
|
1086 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1087 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1088 |
return (new Client(prot)).recv_getPickupStoreByHotspotId();
|
|
|
1089 |
}
|
|
|
1090 |
}
|
|
|
1091 |
|
| 6524 |
rajveer |
1092 |
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 |
1093 |
checkReady();
|
| 6524 |
rajveer |
1094 |
addPincode_call method_call = new addPincode_call(providerId, pincode, destCode, exp, cod, stationType, otgAvailable, resultHandler, this, ___protocolFactory, ___transport);
|
| 6322 |
amar.kumar |
1095 |
this.___currentMethod = method_call;
|
|
|
1096 |
___manager.call(method_call);
|
|
|
1097 |
}
|
|
|
1098 |
|
|
|
1099 |
public static class addPincode_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1100 |
private long providerId;
|
|
|
1101 |
private String pincode;
|
|
|
1102 |
private String destCode;
|
|
|
1103 |
private boolean exp;
|
|
|
1104 |
private boolean cod;
|
|
|
1105 |
private int stationType;
|
| 6524 |
rajveer |
1106 |
private boolean otgAvailable;
|
|
|
1107 |
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 |
1108 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1109 |
this.providerId = providerId;
|
|
|
1110 |
this.pincode = pincode;
|
|
|
1111 |
this.destCode = destCode;
|
|
|
1112 |
this.exp = exp;
|
|
|
1113 |
this.cod = cod;
|
|
|
1114 |
this.stationType = stationType;
|
| 6524 |
rajveer |
1115 |
this.otgAvailable = otgAvailable;
|
| 6322 |
amar.kumar |
1116 |
}
|
|
|
1117 |
|
|
|
1118 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1119 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addPincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1120 |
addPincode_args args = new addPincode_args();
|
|
|
1121 |
args.setProviderId(providerId);
|
|
|
1122 |
args.setPincode(pincode);
|
|
|
1123 |
args.setDestCode(destCode);
|
|
|
1124 |
args.setExp(exp);
|
|
|
1125 |
args.setCod(cod);
|
|
|
1126 |
args.setStationType(stationType);
|
| 6524 |
rajveer |
1127 |
args.setOtgAvailable(otgAvailable);
|
| 6322 |
amar.kumar |
1128 |
args.write(prot);
|
|
|
1129 |
prot.writeMessageEnd();
|
|
|
1130 |
}
|
|
|
1131 |
|
|
|
1132 |
public void getResult() throws org.apache.thrift.TException {
|
|
|
1133 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1134 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1135 |
}
|
|
|
1136 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1137 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1138 |
(new Client(prot)).recv_addPincode();
|
|
|
1139 |
}
|
|
|
1140 |
}
|
|
|
1141 |
|
| 6524 |
rajveer |
1142 |
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 |
1143 |
checkReady();
|
| 6524 |
rajveer |
1144 |
updatePincode_call method_call = new updatePincode_call(providerId, pincode, exp, cod, otgAvailable, resultHandler, this, ___protocolFactory, ___transport);
|
| 6322 |
amar.kumar |
1145 |
this.___currentMethod = method_call;
|
|
|
1146 |
___manager.call(method_call);
|
|
|
1147 |
}
|
|
|
1148 |
|
|
|
1149 |
public static class updatePincode_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
1150 |
private long providerId;
|
|
|
1151 |
private String pincode;
|
|
|
1152 |
private boolean exp;
|
|
|
1153 |
private boolean cod;
|
| 6524 |
rajveer |
1154 |
private boolean otgAvailable;
|
|
|
1155 |
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 |
1156 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
1157 |
this.providerId = providerId;
|
|
|
1158 |
this.pincode = pincode;
|
|
|
1159 |
this.exp = exp;
|
|
|
1160 |
this.cod = cod;
|
| 6524 |
rajveer |
1161 |
this.otgAvailable = otgAvailable;
|
| 6322 |
amar.kumar |
1162 |
}
|
|
|
1163 |
|
|
|
1164 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
1165 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePincode", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
1166 |
updatePincode_args args = new updatePincode_args();
|
|
|
1167 |
args.setProviderId(providerId);
|
|
|
1168 |
args.setPincode(pincode);
|
|
|
1169 |
args.setExp(exp);
|
|
|
1170 |
args.setCod(cod);
|
| 6524 |
rajveer |
1171 |
args.setOtgAvailable(otgAvailable);
|
| 6322 |
amar.kumar |
1172 |
args.write(prot);
|
|
|
1173 |
prot.writeMessageEnd();
|
|
|
1174 |
}
|
|
|
1175 |
|
|
|
1176 |
public void getResult() throws org.apache.thrift.TException {
|
|
|
1177 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
1178 |
throw new IllegalStateException("Method call not finished!");
|
|
|
1179 |
}
|
|
|
1180 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
1181 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
1182 |
(new Client(prot)).recv_updatePincode();
|
|
|
1183 |
}
|
|
|
1184 |
}
|
|
|
1185 |
|
| 3430 |
rajveer |
1186 |
}
|
|
|
1187 |
|
|
|
1188 |
public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
|
|
|
1189 |
private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
|
|
|
1190 |
public Processor(I iface) {
|
|
|
1191 |
super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
|
|
|
1192 |
}
|
|
|
1193 |
|
|
|
1194 |
protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
|
|
|
1195 |
super(iface, getProcessMap(processMap));
|
|
|
1196 |
}
|
|
|
1197 |
|
|
|
1198 |
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) {
|
|
|
1199 |
processMap.put("getProvider", new getProvider());
|
|
|
1200 |
processMap.put("getAllProviders", new getAllProviders());
|
|
|
1201 |
processMap.put("getLogisticsEstimation", new getLogisticsEstimation());
|
|
|
1202 |
processMap.put("getLogisticsInfo", new getLogisticsInfo());
|
|
|
1203 |
processMap.put("getEmptyAWB", new getEmptyAWB());
|
|
|
1204 |
processMap.put("getShipmentInfo", new getShipmentInfo());
|
|
|
1205 |
processMap.put("getDestinationCode", new getDestinationCode());
|
|
|
1206 |
processMap.put("getFreeAwbCount", new getFreeAwbCount());
|
|
|
1207 |
processMap.put("getHolidays", new getHolidays());
|
| 4934 |
amit.gupta |
1208 |
processMap.put("getEntityLogisticsEstimation", new getEntityLogisticsEstimation());
|
| 5527 |
anupam.sin |
1209 |
processMap.put("getProviderForPickupType", new getProviderForPickupType());
|
| 5553 |
rajveer |
1210 |
processMap.put("getAllPickupStores", new getAllPickupStores());
|
|
|
1211 |
processMap.put("getPickupStore", new getPickupStore());
|
| 5719 |
rajveer |
1212 |
processMap.put("getPickupStoreByHotspotId", new getPickupStoreByHotspotId());
|
| 6322 |
amar.kumar |
1213 |
processMap.put("addPincode", new addPincode());
|
|
|
1214 |
processMap.put("updatePincode", new updatePincode());
|
| 3430 |
rajveer |
1215 |
return processMap;
|
|
|
1216 |
}
|
|
|
1217 |
|
|
|
1218 |
private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
|
|
|
1219 |
public getProvider() {
|
|
|
1220 |
super("getProvider");
|
|
|
1221 |
}
|
|
|
1222 |
|
|
|
1223 |
protected getProvider_args getEmptyArgsInstance() {
|
|
|
1224 |
return new getProvider_args();
|
|
|
1225 |
}
|
|
|
1226 |
|
|
|
1227 |
protected getProvider_result getResult(I iface, getProvider_args args) throws org.apache.thrift.TException {
|
| 668 |
chandransh |
1228 |
getProvider_result result = new getProvider_result();
|
|
|
1229 |
try {
|
| 3430 |
rajveer |
1230 |
result.success = iface.getProvider(args.providerId);
|
| 668 |
chandransh |
1231 |
} catch (LogisticsServiceException lse) {
|
|
|
1232 |
result.lse = lse;
|
|
|
1233 |
}
|
| 3430 |
rajveer |
1234 |
return result;
|
| 668 |
chandransh |
1235 |
}
|
|
|
1236 |
}
|
|
|
1237 |
|
| 3430 |
rajveer |
1238 |
private static class getAllProviders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllProviders_args> {
|
|
|
1239 |
public getAllProviders() {
|
|
|
1240 |
super("getAllProviders");
|
|
|
1241 |
}
|
|
|
1242 |
|
|
|
1243 |
protected getAllProviders_args getEmptyArgsInstance() {
|
|
|
1244 |
return new getAllProviders_args();
|
|
|
1245 |
}
|
|
|
1246 |
|
|
|
1247 |
protected getAllProviders_result getResult(I iface, getAllProviders_args args) throws org.apache.thrift.TException {
|
| 674 |
chandransh |
1248 |
getAllProviders_result result = new getAllProviders_result();
|
|
|
1249 |
try {
|
| 3430 |
rajveer |
1250 |
result.success = iface.getAllProviders();
|
| 674 |
chandransh |
1251 |
} catch (LogisticsServiceException lse) {
|
|
|
1252 |
result.lse = lse;
|
|
|
1253 |
}
|
| 3430 |
rajveer |
1254 |
return result;
|
| 674 |
chandransh |
1255 |
}
|
|
|
1256 |
}
|
|
|
1257 |
|
| 3430 |
rajveer |
1258 |
private static class getLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsEstimation_args> {
|
|
|
1259 |
public getLogisticsEstimation() {
|
|
|
1260 |
super("getLogisticsEstimation");
|
|
|
1261 |
}
|
|
|
1262 |
|
|
|
1263 |
protected getLogisticsEstimation_args getEmptyArgsInstance() {
|
|
|
1264 |
return new getLogisticsEstimation_args();
|
|
|
1265 |
}
|
|
|
1266 |
|
|
|
1267 |
protected getLogisticsEstimation_result getResult(I iface, getLogisticsEstimation_args args) throws org.apache.thrift.TException {
|
| 648 |
chandransh |
1268 |
getLogisticsEstimation_result result = new getLogisticsEstimation_result();
|
| 483 |
rajveer |
1269 |
try {
|
| 4630 |
mandeep.dh |
1270 |
result.success = iface.getLogisticsEstimation(args.itemId, args.destination_pin, args.type);
|
| 483 |
rajveer |
1271 |
} catch (LogisticsServiceException se) {
|
|
|
1272 |
result.se = se;
|
|
|
1273 |
}
|
| 3430 |
rajveer |
1274 |
return result;
|
| 483 |
rajveer |
1275 |
}
|
|
|
1276 |
}
|
|
|
1277 |
|
| 3430 |
rajveer |
1278 |
private static class getLogisticsInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsInfo_args> {
|
|
|
1279 |
public getLogisticsInfo() {
|
|
|
1280 |
super("getLogisticsInfo");
|
|
|
1281 |
}
|
|
|
1282 |
|
|
|
1283 |
protected getLogisticsInfo_args getEmptyArgsInstance() {
|
|
|
1284 |
return new getLogisticsInfo_args();
|
|
|
1285 |
}
|
|
|
1286 |
|
|
|
1287 |
protected getLogisticsInfo_result getResult(I iface, getLogisticsInfo_args args) throws org.apache.thrift.TException {
|
| 648 |
chandransh |
1288 |
getLogisticsInfo_result result = new getLogisticsInfo_result();
|
| 471 |
rajveer |
1289 |
try {
|
| 5766 |
rajveer |
1290 |
result.success = iface.getLogisticsInfo(args.destination_pincode, args.item_id, args.type, args.pickUp);
|
| 471 |
rajveer |
1291 |
} catch (LogisticsServiceException se) {
|
|
|
1292 |
result.se = se;
|
|
|
1293 |
}
|
| 3430 |
rajveer |
1294 |
return result;
|
| 471 |
rajveer |
1295 |
}
|
|
|
1296 |
}
|
|
|
1297 |
|
| 3430 |
rajveer |
1298 |
private static class getEmptyAWB<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmptyAWB_args> {
|
|
|
1299 |
public getEmptyAWB() {
|
|
|
1300 |
super("getEmptyAWB");
|
|
|
1301 |
}
|
|
|
1302 |
|
|
|
1303 |
protected getEmptyAWB_args getEmptyArgsInstance() {
|
|
|
1304 |
return new getEmptyAWB_args();
|
|
|
1305 |
}
|
|
|
1306 |
|
|
|
1307 |
protected getEmptyAWB_result getResult(I iface, getEmptyAWB_args args) throws org.apache.thrift.TException {
|
| 412 |
ashish |
1308 |
getEmptyAWB_result result = new getEmptyAWB_result();
|
| 648 |
chandransh |
1309 |
try {
|
| 5247 |
rajveer |
1310 |
result.success = iface.getEmptyAWB(args.providerId, args.type);
|
| 648 |
chandransh |
1311 |
} catch (LogisticsServiceException se) {
|
|
|
1312 |
result.se = se;
|
|
|
1313 |
}
|
| 3430 |
rajveer |
1314 |
return result;
|
| 412 |
ashish |
1315 |
}
|
|
|
1316 |
}
|
|
|
1317 |
|
| 3430 |
rajveer |
1318 |
private static class getShipmentInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getShipmentInfo_args> {
|
|
|
1319 |
public getShipmentInfo() {
|
|
|
1320 |
super("getShipmentInfo");
|
|
|
1321 |
}
|
|
|
1322 |
|
|
|
1323 |
protected getShipmentInfo_args getEmptyArgsInstance() {
|
|
|
1324 |
return new getShipmentInfo_args();
|
|
|
1325 |
}
|
|
|
1326 |
|
|
|
1327 |
protected getShipmentInfo_result getResult(I iface, getShipmentInfo_args args) throws org.apache.thrift.TException {
|
| 412 |
ashish |
1328 |
getShipmentInfo_result result = new getShipmentInfo_result();
|
| 648 |
chandransh |
1329 |
try {
|
| 3430 |
rajveer |
1330 |
result.success = iface.getShipmentInfo(args.awb, args.providerId);
|
| 648 |
chandransh |
1331 |
} catch (LogisticsServiceException se) {
|
|
|
1332 |
result.se = se;
|
|
|
1333 |
}
|
| 3430 |
rajveer |
1334 |
return result;
|
| 412 |
ashish |
1335 |
}
|
|
|
1336 |
}
|
|
|
1337 |
|
| 3430 |
rajveer |
1338 |
private static class getDestinationCode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getDestinationCode_args> {
|
|
|
1339 |
public getDestinationCode() {
|
|
|
1340 |
super("getDestinationCode");
|
|
|
1341 |
}
|
|
|
1342 |
|
|
|
1343 |
protected getDestinationCode_args getEmptyArgsInstance() {
|
|
|
1344 |
return new getDestinationCode_args();
|
|
|
1345 |
}
|
|
|
1346 |
|
|
|
1347 |
protected getDestinationCode_result getResult(I iface, getDestinationCode_args args) throws org.apache.thrift.TException {
|
| 730 |
chandransh |
1348 |
getDestinationCode_result result = new getDestinationCode_result();
|
|
|
1349 |
try {
|
| 3430 |
rajveer |
1350 |
result.success = iface.getDestinationCode(args.providerId, args.pinCode);
|
| 730 |
chandransh |
1351 |
} catch (LogisticsServiceException se) {
|
|
|
1352 |
result.se = se;
|
|
|
1353 |
}
|
| 3430 |
rajveer |
1354 |
return result;
|
| 730 |
chandransh |
1355 |
}
|
|
|
1356 |
}
|
|
|
1357 |
|
| 3430 |
rajveer |
1358 |
private static class getFreeAwbCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFreeAwbCount_args> {
|
|
|
1359 |
public getFreeAwbCount() {
|
|
|
1360 |
super("getFreeAwbCount");
|
|
|
1361 |
}
|
|
|
1362 |
|
|
|
1363 |
protected getFreeAwbCount_args getEmptyArgsInstance() {
|
|
|
1364 |
return new getFreeAwbCount_args();
|
|
|
1365 |
}
|
|
|
1366 |
|
|
|
1367 |
protected getFreeAwbCount_result getResult(I iface, getFreeAwbCount_args args) throws org.apache.thrift.TException {
|
| 1139 |
chandransh |
1368 |
getFreeAwbCount_result result = new getFreeAwbCount_result();
|
| 3430 |
rajveer |
1369 |
result.success = iface.getFreeAwbCount(args.providerId, args.type);
|
| 1139 |
chandransh |
1370 |
result.setSuccessIsSet(true);
|
| 3430 |
rajveer |
1371 |
return result;
|
| 1139 |
chandransh |
1372 |
}
|
|
|
1373 |
}
|
|
|
1374 |
|
| 3430 |
rajveer |
1375 |
private static class getHolidays<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHolidays_args> {
|
|
|
1376 |
public getHolidays() {
|
|
|
1377 |
super("getHolidays");
|
|
|
1378 |
}
|
|
|
1379 |
|
|
|
1380 |
protected getHolidays_args getEmptyArgsInstance() {
|
|
|
1381 |
return new getHolidays_args();
|
|
|
1382 |
}
|
|
|
1383 |
|
|
|
1384 |
protected getHolidays_result getResult(I iface, getHolidays_args args) throws org.apache.thrift.TException {
|
| 1730 |
ankur.sing |
1385 |
getHolidays_result result = new getHolidays_result();
|
| 3430 |
rajveer |
1386 |
result.success = iface.getHolidays(args.fromDate, args.toDate);
|
|
|
1387 |
return result;
|
| 1730 |
ankur.sing |
1388 |
}
|
|
|
1389 |
}
|
|
|
1390 |
|
| 4934 |
amit.gupta |
1391 |
private static class getEntityLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEntityLogisticsEstimation_args> {
|
|
|
1392 |
public getEntityLogisticsEstimation() {
|
|
|
1393 |
super("getEntityLogisticsEstimation");
|
|
|
1394 |
}
|
|
|
1395 |
|
|
|
1396 |
protected getEntityLogisticsEstimation_args getEmptyArgsInstance() {
|
|
|
1397 |
return new getEntityLogisticsEstimation_args();
|
|
|
1398 |
}
|
|
|
1399 |
|
|
|
1400 |
protected getEntityLogisticsEstimation_result getResult(I iface, getEntityLogisticsEstimation_args args) throws org.apache.thrift.TException {
|
|
|
1401 |
getEntityLogisticsEstimation_result result = new getEntityLogisticsEstimation_result();
|
|
|
1402 |
try {
|
|
|
1403 |
result.success = iface.getEntityLogisticsEstimation(args.catalogItemId, args.destination_pin, args.type);
|
|
|
1404 |
} catch (LogisticsServiceException se) {
|
|
|
1405 |
result.se = se;
|
|
|
1406 |
}
|
|
|
1407 |
return result;
|
|
|
1408 |
}
|
|
|
1409 |
}
|
|
|
1410 |
|
| 5527 |
anupam.sin |
1411 |
private static class getProviderForPickupType<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProviderForPickupType_args> {
|
|
|
1412 |
public getProviderForPickupType() {
|
|
|
1413 |
super("getProviderForPickupType");
|
|
|
1414 |
}
|
|
|
1415 |
|
|
|
1416 |
protected getProviderForPickupType_args getEmptyArgsInstance() {
|
|
|
1417 |
return new getProviderForPickupType_args();
|
|
|
1418 |
}
|
|
|
1419 |
|
|
|
1420 |
protected getProviderForPickupType_result getResult(I iface, getProviderForPickupType_args args) throws org.apache.thrift.TException {
|
|
|
1421 |
getProviderForPickupType_result result = new getProviderForPickupType_result();
|
|
|
1422 |
result.success = iface.getProviderForPickupType(args.pickUp);
|
|
|
1423 |
result.setSuccessIsSet(true);
|
|
|
1424 |
return result;
|
|
|
1425 |
}
|
|
|
1426 |
}
|
|
|
1427 |
|
| 5553 |
rajveer |
1428 |
private static class getAllPickupStores<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllPickupStores_args> {
|
|
|
1429 |
public getAllPickupStores() {
|
|
|
1430 |
super("getAllPickupStores");
|
|
|
1431 |
}
|
|
|
1432 |
|
|
|
1433 |
protected getAllPickupStores_args getEmptyArgsInstance() {
|
|
|
1434 |
return new getAllPickupStores_args();
|
|
|
1435 |
}
|
|
|
1436 |
|
|
|
1437 |
protected getAllPickupStores_result getResult(I iface, getAllPickupStores_args args) throws org.apache.thrift.TException {
|
|
|
1438 |
getAllPickupStores_result result = new getAllPickupStores_result();
|
|
|
1439 |
result.success = iface.getAllPickupStores();
|
|
|
1440 |
return result;
|
|
|
1441 |
}
|
|
|
1442 |
}
|
|
|
1443 |
|
|
|
1444 |
private static class getPickupStore<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPickupStore_args> {
|
|
|
1445 |
public getPickupStore() {
|
|
|
1446 |
super("getPickupStore");
|
|
|
1447 |
}
|
|
|
1448 |
|
|
|
1449 |
protected getPickupStore_args getEmptyArgsInstance() {
|
|
|
1450 |
return new getPickupStore_args();
|
|
|
1451 |
}
|
|
|
1452 |
|
|
|
1453 |
protected getPickupStore_result getResult(I iface, getPickupStore_args args) throws org.apache.thrift.TException {
|
|
|
1454 |
getPickupStore_result result = new getPickupStore_result();
|
|
|
1455 |
result.success = iface.getPickupStore(args.storeId);
|
|
|
1456 |
return result;
|
|
|
1457 |
}
|
|
|
1458 |
}
|
|
|
1459 |
|
| 5719 |
rajveer |
1460 |
private static class getPickupStoreByHotspotId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPickupStoreByHotspotId_args> {
|
|
|
1461 |
public getPickupStoreByHotspotId() {
|
|
|
1462 |
super("getPickupStoreByHotspotId");
|
|
|
1463 |
}
|
|
|
1464 |
|
|
|
1465 |
protected getPickupStoreByHotspotId_args getEmptyArgsInstance() {
|
|
|
1466 |
return new getPickupStoreByHotspotId_args();
|
|
|
1467 |
}
|
|
|
1468 |
|
|
|
1469 |
protected getPickupStoreByHotspotId_result getResult(I iface, getPickupStoreByHotspotId_args args) throws org.apache.thrift.TException {
|
|
|
1470 |
getPickupStoreByHotspotId_result result = new getPickupStoreByHotspotId_result();
|
|
|
1471 |
result.success = iface.getPickupStoreByHotspotId(args.hotspotId);
|
|
|
1472 |
return result;
|
|
|
1473 |
}
|
|
|
1474 |
}
|
|
|
1475 |
|
| 6322 |
amar.kumar |
1476 |
private static class addPincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addPincode_args> {
|
|
|
1477 |
public addPincode() {
|
|
|
1478 |
super("addPincode");
|
|
|
1479 |
}
|
|
|
1480 |
|
|
|
1481 |
protected addPincode_args getEmptyArgsInstance() {
|
|
|
1482 |
return new addPincode_args();
|
|
|
1483 |
}
|
|
|
1484 |
|
|
|
1485 |
protected addPincode_result getResult(I iface, addPincode_args args) throws org.apache.thrift.TException {
|
|
|
1486 |
addPincode_result result = new addPincode_result();
|
| 6524 |
rajveer |
1487 |
iface.addPincode(args.providerId, args.pincode, args.destCode, args.exp, args.cod, args.stationType, args.otgAvailable);
|
| 6322 |
amar.kumar |
1488 |
return result;
|
|
|
1489 |
}
|
|
|
1490 |
}
|
|
|
1491 |
|
|
|
1492 |
private static class updatePincode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePincode_args> {
|
|
|
1493 |
public updatePincode() {
|
|
|
1494 |
super("updatePincode");
|
|
|
1495 |
}
|
|
|
1496 |
|
|
|
1497 |
protected updatePincode_args getEmptyArgsInstance() {
|
|
|
1498 |
return new updatePincode_args();
|
|
|
1499 |
}
|
|
|
1500 |
|
|
|
1501 |
protected updatePincode_result getResult(I iface, updatePincode_args args) throws org.apache.thrift.TException {
|
|
|
1502 |
updatePincode_result result = new updatePincode_result();
|
| 6524 |
rajveer |
1503 |
iface.updatePincode(args.providerId, args.pincode, args.exp, args.cod, args.otgAvailable);
|
| 6322 |
amar.kumar |
1504 |
return result;
|
|
|
1505 |
}
|
|
|
1506 |
}
|
|
|
1507 |
|
| 412 |
ashish |
1508 |
}
|
|
|
1509 |
|
| 3430 |
rajveer |
1510 |
public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
1511 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
|
| 668 |
chandransh |
1512 |
|
| 3430 |
rajveer |
1513 |
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 |
1514 |
|
| 3430 |
rajveer |
1515 |
private long providerId; // required
|
| 668 |
chandransh |
1516 |
|
|
|
1517 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
1518 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 668 |
chandransh |
1519 |
PROVIDER_ID((short)1, "providerId");
|
|
|
1520 |
|
|
|
1521 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
1522 |
|
|
|
1523 |
static {
|
|
|
1524 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
1525 |
byName.put(field.getFieldName(), field);
|
|
|
1526 |
}
|
|
|
1527 |
}
|
|
|
1528 |
|
|
|
1529 |
/**
|
|
|
1530 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
1531 |
*/
|
|
|
1532 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
1533 |
switch(fieldId) {
|
|
|
1534 |
case 1: // PROVIDER_ID
|
|
|
1535 |
return PROVIDER_ID;
|
|
|
1536 |
default:
|
|
|
1537 |
return null;
|
|
|
1538 |
}
|
| 668 |
chandransh |
1539 |
}
|
|
|
1540 |
|
|
|
1541 |
/**
|
|
|
1542 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
1543 |
* if it is not found.
|
|
|
1544 |
*/
|
|
|
1545 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
1546 |
_Fields fields = findByThriftId(fieldId);
|
|
|
1547 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
1548 |
return fields;
|
|
|
1549 |
}
|
|
|
1550 |
|
|
|
1551 |
/**
|
|
|
1552 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
1553 |
*/
|
|
|
1554 |
public static _Fields findByName(String name) {
|
|
|
1555 |
return byName.get(name);
|
|
|
1556 |
}
|
|
|
1557 |
|
|
|
1558 |
private final short _thriftId;
|
|
|
1559 |
private final String _fieldName;
|
|
|
1560 |
|
|
|
1561 |
_Fields(short thriftId, String fieldName) {
|
|
|
1562 |
_thriftId = thriftId;
|
|
|
1563 |
_fieldName = fieldName;
|
|
|
1564 |
}
|
|
|
1565 |
|
|
|
1566 |
public short getThriftFieldId() {
|
|
|
1567 |
return _thriftId;
|
|
|
1568 |
}
|
|
|
1569 |
|
|
|
1570 |
public String getFieldName() {
|
|
|
1571 |
return _fieldName;
|
|
|
1572 |
}
|
|
|
1573 |
}
|
|
|
1574 |
|
|
|
1575 |
// isset id assignments
|
|
|
1576 |
private static final int __PROVIDERID_ISSET_ID = 0;
|
|
|
1577 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
1578 |
|
| 3430 |
rajveer |
1579 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 668 |
chandransh |
1580 |
static {
|
| 3430 |
rajveer |
1581 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
1582 |
tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
1583 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
1584 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
1585 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_args.class, metaDataMap);
|
| 668 |
chandransh |
1586 |
}
|
|
|
1587 |
|
|
|
1588 |
public getProvider_args() {
|
|
|
1589 |
}
|
|
|
1590 |
|
|
|
1591 |
public getProvider_args(
|
|
|
1592 |
long providerId)
|
|
|
1593 |
{
|
|
|
1594 |
this();
|
|
|
1595 |
this.providerId = providerId;
|
|
|
1596 |
setProviderIdIsSet(true);
|
|
|
1597 |
}
|
|
|
1598 |
|
|
|
1599 |
/**
|
|
|
1600 |
* Performs a deep copy on <i>other</i>.
|
|
|
1601 |
*/
|
|
|
1602 |
public getProvider_args(getProvider_args other) {
|
|
|
1603 |
__isset_bit_vector.clear();
|
|
|
1604 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
1605 |
this.providerId = other.providerId;
|
|
|
1606 |
}
|
|
|
1607 |
|
|
|
1608 |
public getProvider_args deepCopy() {
|
|
|
1609 |
return new getProvider_args(this);
|
|
|
1610 |
}
|
|
|
1611 |
|
| 3430 |
rajveer |
1612 |
@Override
|
|
|
1613 |
public void clear() {
|
|
|
1614 |
setProviderIdIsSet(false);
|
|
|
1615 |
this.providerId = 0;
|
| 668 |
chandransh |
1616 |
}
|
|
|
1617 |
|
|
|
1618 |
public long getProviderId() {
|
|
|
1619 |
return this.providerId;
|
|
|
1620 |
}
|
|
|
1621 |
|
| 3430 |
rajveer |
1622 |
public void setProviderId(long providerId) {
|
| 668 |
chandransh |
1623 |
this.providerId = providerId;
|
|
|
1624 |
setProviderIdIsSet(true);
|
|
|
1625 |
}
|
|
|
1626 |
|
|
|
1627 |
public void unsetProviderId() {
|
|
|
1628 |
__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
|
|
|
1629 |
}
|
|
|
1630 |
|
| 3430 |
rajveer |
1631 |
/** Returns true if field providerId is set (has been assigned a value) and false otherwise */
|
| 668 |
chandransh |
1632 |
public boolean isSetProviderId() {
|
|
|
1633 |
return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
|
|
|
1634 |
}
|
|
|
1635 |
|
|
|
1636 |
public void setProviderIdIsSet(boolean value) {
|
|
|
1637 |
__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
|
|
|
1638 |
}
|
|
|
1639 |
|
|
|
1640 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
1641 |
switch (field) {
|
|
|
1642 |
case PROVIDER_ID:
|
|
|
1643 |
if (value == null) {
|
|
|
1644 |
unsetProviderId();
|
|
|
1645 |
} else {
|
|
|
1646 |
setProviderId((Long)value);
|
|
|
1647 |
}
|
|
|
1648 |
break;
|
|
|
1649 |
|
|
|
1650 |
}
|
|
|
1651 |
}
|
|
|
1652 |
|
|
|
1653 |
public Object getFieldValue(_Fields field) {
|
|
|
1654 |
switch (field) {
|
|
|
1655 |
case PROVIDER_ID:
|
| 3430 |
rajveer |
1656 |
return Long.valueOf(getProviderId());
|
| 668 |
chandransh |
1657 |
|
|
|
1658 |
}
|
|
|
1659 |
throw new IllegalStateException();
|
|
|
1660 |
}
|
|
|
1661 |
|
| 3430 |
rajveer |
1662 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
1663 |
public boolean isSet(_Fields field) {
|
|
|
1664 |
if (field == null) {
|
|
|
1665 |
throw new IllegalArgumentException();
|
|
|
1666 |
}
|
| 668 |
chandransh |
1667 |
|
|
|
1668 |
switch (field) {
|
|
|
1669 |
case PROVIDER_ID:
|
|
|
1670 |
return isSetProviderId();
|
|
|
1671 |
}
|
|
|
1672 |
throw new IllegalStateException();
|
|
|
1673 |
}
|
|
|
1674 |
|
|
|
1675 |
@Override
|
|
|
1676 |
public boolean equals(Object that) {
|
|
|
1677 |
if (that == null)
|
|
|
1678 |
return false;
|
|
|
1679 |
if (that instanceof getProvider_args)
|
|
|
1680 |
return this.equals((getProvider_args)that);
|
|
|
1681 |
return false;
|
|
|
1682 |
}
|
|
|
1683 |
|
|
|
1684 |
public boolean equals(getProvider_args that) {
|
|
|
1685 |
if (that == null)
|
|
|
1686 |
return false;
|
|
|
1687 |
|
|
|
1688 |
boolean this_present_providerId = true;
|
|
|
1689 |
boolean that_present_providerId = true;
|
|
|
1690 |
if (this_present_providerId || that_present_providerId) {
|
|
|
1691 |
if (!(this_present_providerId && that_present_providerId))
|
|
|
1692 |
return false;
|
|
|
1693 |
if (this.providerId != that.providerId)
|
|
|
1694 |
return false;
|
|
|
1695 |
}
|
|
|
1696 |
|
|
|
1697 |
return true;
|
|
|
1698 |
}
|
|
|
1699 |
|
|
|
1700 |
@Override
|
|
|
1701 |
public int hashCode() {
|
|
|
1702 |
return 0;
|
|
|
1703 |
}
|
|
|
1704 |
|
|
|
1705 |
public int compareTo(getProvider_args other) {
|
|
|
1706 |
if (!getClass().equals(other.getClass())) {
|
|
|
1707 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
1708 |
}
|
|
|
1709 |
|
|
|
1710 |
int lastComparison = 0;
|
|
|
1711 |
getProvider_args typedOther = (getProvider_args)other;
|
|
|
1712 |
|
| 3430 |
rajveer |
1713 |
lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
|
| 668 |
chandransh |
1714 |
if (lastComparison != 0) {
|
|
|
1715 |
return lastComparison;
|
|
|
1716 |
}
|
| 3430 |
rajveer |
1717 |
if (isSetProviderId()) {
|
|
|
1718 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
|
|
|
1719 |
if (lastComparison != 0) {
|
|
|
1720 |
return lastComparison;
|
|
|
1721 |
}
|
| 668 |
chandransh |
1722 |
}
|
|
|
1723 |
return 0;
|
|
|
1724 |
}
|
|
|
1725 |
|
| 3430 |
rajveer |
1726 |
public _Fields fieldForId(int fieldId) {
|
|
|
1727 |
return _Fields.findByThriftId(fieldId);
|
|
|
1728 |
}
|
|
|
1729 |
|
|
|
1730 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
1731 |
org.apache.thrift.protocol.TField field;
|
| 668 |
chandransh |
1732 |
iprot.readStructBegin();
|
|
|
1733 |
while (true)
|
|
|
1734 |
{
|
|
|
1735 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
1736 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 668 |
chandransh |
1737 |
break;
|
|
|
1738 |
}
|
| 3430 |
rajveer |
1739 |
switch (field.id) {
|
|
|
1740 |
case 1: // PROVIDER_ID
|
|
|
1741 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1742 |
this.providerId = iprot.readI64();
|
|
|
1743 |
setProviderIdIsSet(true);
|
|
|
1744 |
} else {
|
|
|
1745 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1746 |
}
|
|
|
1747 |
break;
|
|
|
1748 |
default:
|
|
|
1749 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 668 |
chandransh |
1750 |
}
|
| 3430 |
rajveer |
1751 |
iprot.readFieldEnd();
|
| 668 |
chandransh |
1752 |
}
|
|
|
1753 |
iprot.readStructEnd();
|
|
|
1754 |
validate();
|
|
|
1755 |
}
|
|
|
1756 |
|
| 3430 |
rajveer |
1757 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 668 |
chandransh |
1758 |
validate();
|
|
|
1759 |
|
|
|
1760 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
1761 |
oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
|
|
|
1762 |
oprot.writeI64(this.providerId);
|
|
|
1763 |
oprot.writeFieldEnd();
|
|
|
1764 |
oprot.writeFieldStop();
|
|
|
1765 |
oprot.writeStructEnd();
|
|
|
1766 |
}
|
|
|
1767 |
|
|
|
1768 |
@Override
|
|
|
1769 |
public String toString() {
|
|
|
1770 |
StringBuilder sb = new StringBuilder("getProvider_args(");
|
|
|
1771 |
boolean first = true;
|
|
|
1772 |
|
|
|
1773 |
sb.append("providerId:");
|
|
|
1774 |
sb.append(this.providerId);
|
|
|
1775 |
first = false;
|
|
|
1776 |
sb.append(")");
|
|
|
1777 |
return sb.toString();
|
|
|
1778 |
}
|
|
|
1779 |
|
| 3430 |
rajveer |
1780 |
public void validate() throws org.apache.thrift.TException {
|
| 668 |
chandransh |
1781 |
// check for required fields
|
|
|
1782 |
}
|
|
|
1783 |
|
| 3430 |
rajveer |
1784 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
1785 |
try {
|
|
|
1786 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
1787 |
} catch (org.apache.thrift.TException te) {
|
|
|
1788 |
throw new java.io.IOException(te);
|
|
|
1789 |
}
|
|
|
1790 |
}
|
|
|
1791 |
|
|
|
1792 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
1793 |
try {
|
|
|
1794 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
1795 |
} catch (org.apache.thrift.TException te) {
|
|
|
1796 |
throw new java.io.IOException(te);
|
|
|
1797 |
}
|
|
|
1798 |
}
|
|
|
1799 |
|
| 668 |
chandransh |
1800 |
}
|
|
|
1801 |
|
| 3430 |
rajveer |
1802 |
public static class getProvider_result implements org.apache.thrift.TBase<getProvider_result, getProvider_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
1803 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_result");
|
| 668 |
chandransh |
1804 |
|
| 3430 |
rajveer |
1805 |
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);
|
|
|
1806 |
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 |
1807 |
|
| 3430 |
rajveer |
1808 |
private Provider success; // required
|
|
|
1809 |
private LogisticsServiceException lse; // required
|
| 668 |
chandransh |
1810 |
|
|
|
1811 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
1812 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 668 |
chandransh |
1813 |
SUCCESS((short)0, "success"),
|
|
|
1814 |
LSE((short)1, "lse");
|
|
|
1815 |
|
|
|
1816 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
1817 |
|
|
|
1818 |
static {
|
|
|
1819 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
1820 |
byName.put(field.getFieldName(), field);
|
|
|
1821 |
}
|
|
|
1822 |
}
|
|
|
1823 |
|
|
|
1824 |
/**
|
|
|
1825 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
1826 |
*/
|
|
|
1827 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
1828 |
switch(fieldId) {
|
|
|
1829 |
case 0: // SUCCESS
|
|
|
1830 |
return SUCCESS;
|
|
|
1831 |
case 1: // LSE
|
|
|
1832 |
return LSE;
|
|
|
1833 |
default:
|
|
|
1834 |
return null;
|
|
|
1835 |
}
|
| 668 |
chandransh |
1836 |
}
|
|
|
1837 |
|
|
|
1838 |
/**
|
|
|
1839 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
1840 |
* if it is not found.
|
|
|
1841 |
*/
|
|
|
1842 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
1843 |
_Fields fields = findByThriftId(fieldId);
|
|
|
1844 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
1845 |
return fields;
|
|
|
1846 |
}
|
|
|
1847 |
|
|
|
1848 |
/**
|
|
|
1849 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
1850 |
*/
|
|
|
1851 |
public static _Fields findByName(String name) {
|
|
|
1852 |
return byName.get(name);
|
|
|
1853 |
}
|
|
|
1854 |
|
|
|
1855 |
private final short _thriftId;
|
|
|
1856 |
private final String _fieldName;
|
|
|
1857 |
|
|
|
1858 |
_Fields(short thriftId, String fieldName) {
|
|
|
1859 |
_thriftId = thriftId;
|
|
|
1860 |
_fieldName = fieldName;
|
|
|
1861 |
}
|
|
|
1862 |
|
|
|
1863 |
public short getThriftFieldId() {
|
|
|
1864 |
return _thriftId;
|
|
|
1865 |
}
|
|
|
1866 |
|
|
|
1867 |
public String getFieldName() {
|
|
|
1868 |
return _fieldName;
|
|
|
1869 |
}
|
|
|
1870 |
}
|
|
|
1871 |
|
|
|
1872 |
// isset id assignments
|
|
|
1873 |
|
| 3430 |
rajveer |
1874 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 668 |
chandransh |
1875 |
static {
|
| 3430 |
rajveer |
1876 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
1877 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
1878 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class)));
|
|
|
1879 |
tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
1880 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
1881 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
1882 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_result.class, metaDataMap);
|
| 668 |
chandransh |
1883 |
}
|
|
|
1884 |
|
|
|
1885 |
public getProvider_result() {
|
|
|
1886 |
}
|
|
|
1887 |
|
|
|
1888 |
public getProvider_result(
|
|
|
1889 |
Provider success,
|
|
|
1890 |
LogisticsServiceException lse)
|
|
|
1891 |
{
|
|
|
1892 |
this();
|
|
|
1893 |
this.success = success;
|
|
|
1894 |
this.lse = lse;
|
|
|
1895 |
}
|
|
|
1896 |
|
|
|
1897 |
/**
|
|
|
1898 |
* Performs a deep copy on <i>other</i>.
|
|
|
1899 |
*/
|
|
|
1900 |
public getProvider_result(getProvider_result other) {
|
|
|
1901 |
if (other.isSetSuccess()) {
|
|
|
1902 |
this.success = new Provider(other.success);
|
|
|
1903 |
}
|
|
|
1904 |
if (other.isSetLse()) {
|
|
|
1905 |
this.lse = new LogisticsServiceException(other.lse);
|
|
|
1906 |
}
|
|
|
1907 |
}
|
|
|
1908 |
|
|
|
1909 |
public getProvider_result deepCopy() {
|
|
|
1910 |
return new getProvider_result(this);
|
|
|
1911 |
}
|
|
|
1912 |
|
| 3430 |
rajveer |
1913 |
@Override
|
|
|
1914 |
public void clear() {
|
|
|
1915 |
this.success = null;
|
|
|
1916 |
this.lse = null;
|
| 668 |
chandransh |
1917 |
}
|
|
|
1918 |
|
|
|
1919 |
public Provider getSuccess() {
|
|
|
1920 |
return this.success;
|
|
|
1921 |
}
|
|
|
1922 |
|
| 3430 |
rajveer |
1923 |
public void setSuccess(Provider success) {
|
| 668 |
chandransh |
1924 |
this.success = success;
|
|
|
1925 |
}
|
|
|
1926 |
|
|
|
1927 |
public void unsetSuccess() {
|
|
|
1928 |
this.success = null;
|
|
|
1929 |
}
|
|
|
1930 |
|
| 3430 |
rajveer |
1931 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 668 |
chandransh |
1932 |
public boolean isSetSuccess() {
|
|
|
1933 |
return this.success != null;
|
|
|
1934 |
}
|
|
|
1935 |
|
|
|
1936 |
public void setSuccessIsSet(boolean value) {
|
|
|
1937 |
if (!value) {
|
|
|
1938 |
this.success = null;
|
|
|
1939 |
}
|
|
|
1940 |
}
|
|
|
1941 |
|
|
|
1942 |
public LogisticsServiceException getLse() {
|
|
|
1943 |
return this.lse;
|
|
|
1944 |
}
|
|
|
1945 |
|
| 3430 |
rajveer |
1946 |
public void setLse(LogisticsServiceException lse) {
|
| 668 |
chandransh |
1947 |
this.lse = lse;
|
|
|
1948 |
}
|
|
|
1949 |
|
|
|
1950 |
public void unsetLse() {
|
|
|
1951 |
this.lse = null;
|
|
|
1952 |
}
|
|
|
1953 |
|
| 3430 |
rajveer |
1954 |
/** Returns true if field lse is set (has been assigned a value) and false otherwise */
|
| 668 |
chandransh |
1955 |
public boolean isSetLse() {
|
|
|
1956 |
return this.lse != null;
|
|
|
1957 |
}
|
|
|
1958 |
|
|
|
1959 |
public void setLseIsSet(boolean value) {
|
|
|
1960 |
if (!value) {
|
|
|
1961 |
this.lse = null;
|
|
|
1962 |
}
|
|
|
1963 |
}
|
|
|
1964 |
|
|
|
1965 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
1966 |
switch (field) {
|
|
|
1967 |
case SUCCESS:
|
|
|
1968 |
if (value == null) {
|
|
|
1969 |
unsetSuccess();
|
|
|
1970 |
} else {
|
|
|
1971 |
setSuccess((Provider)value);
|
|
|
1972 |
}
|
|
|
1973 |
break;
|
|
|
1974 |
|
|
|
1975 |
case LSE:
|
|
|
1976 |
if (value == null) {
|
|
|
1977 |
unsetLse();
|
|
|
1978 |
} else {
|
|
|
1979 |
setLse((LogisticsServiceException)value);
|
|
|
1980 |
}
|
|
|
1981 |
break;
|
|
|
1982 |
|
|
|
1983 |
}
|
|
|
1984 |
}
|
|
|
1985 |
|
|
|
1986 |
public Object getFieldValue(_Fields field) {
|
|
|
1987 |
switch (field) {
|
|
|
1988 |
case SUCCESS:
|
|
|
1989 |
return getSuccess();
|
|
|
1990 |
|
|
|
1991 |
case LSE:
|
|
|
1992 |
return getLse();
|
|
|
1993 |
|
|
|
1994 |
}
|
|
|
1995 |
throw new IllegalStateException();
|
|
|
1996 |
}
|
|
|
1997 |
|
| 3430 |
rajveer |
1998 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
1999 |
public boolean isSet(_Fields field) {
|
|
|
2000 |
if (field == null) {
|
|
|
2001 |
throw new IllegalArgumentException();
|
|
|
2002 |
}
|
| 668 |
chandransh |
2003 |
|
|
|
2004 |
switch (field) {
|
|
|
2005 |
case SUCCESS:
|
|
|
2006 |
return isSetSuccess();
|
|
|
2007 |
case LSE:
|
|
|
2008 |
return isSetLse();
|
|
|
2009 |
}
|
|
|
2010 |
throw new IllegalStateException();
|
|
|
2011 |
}
|
|
|
2012 |
|
|
|
2013 |
@Override
|
|
|
2014 |
public boolean equals(Object that) {
|
|
|
2015 |
if (that == null)
|
|
|
2016 |
return false;
|
|
|
2017 |
if (that instanceof getProvider_result)
|
|
|
2018 |
return this.equals((getProvider_result)that);
|
|
|
2019 |
return false;
|
|
|
2020 |
}
|
|
|
2021 |
|
|
|
2022 |
public boolean equals(getProvider_result that) {
|
|
|
2023 |
if (that == null)
|
|
|
2024 |
return false;
|
|
|
2025 |
|
|
|
2026 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
2027 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
2028 |
if (this_present_success || that_present_success) {
|
|
|
2029 |
if (!(this_present_success && that_present_success))
|
|
|
2030 |
return false;
|
|
|
2031 |
if (!this.success.equals(that.success))
|
|
|
2032 |
return false;
|
|
|
2033 |
}
|
|
|
2034 |
|
|
|
2035 |
boolean this_present_lse = true && this.isSetLse();
|
|
|
2036 |
boolean that_present_lse = true && that.isSetLse();
|
|
|
2037 |
if (this_present_lse || that_present_lse) {
|
|
|
2038 |
if (!(this_present_lse && that_present_lse))
|
|
|
2039 |
return false;
|
|
|
2040 |
if (!this.lse.equals(that.lse))
|
|
|
2041 |
return false;
|
|
|
2042 |
}
|
|
|
2043 |
|
|
|
2044 |
return true;
|
|
|
2045 |
}
|
|
|
2046 |
|
|
|
2047 |
@Override
|
|
|
2048 |
public int hashCode() {
|
|
|
2049 |
return 0;
|
|
|
2050 |
}
|
|
|
2051 |
|
| 3430 |
rajveer |
2052 |
public int compareTo(getProvider_result other) {
|
|
|
2053 |
if (!getClass().equals(other.getClass())) {
|
|
|
2054 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
2055 |
}
|
|
|
2056 |
|
|
|
2057 |
int lastComparison = 0;
|
|
|
2058 |
getProvider_result typedOther = (getProvider_result)other;
|
|
|
2059 |
|
|
|
2060 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
2061 |
if (lastComparison != 0) {
|
|
|
2062 |
return lastComparison;
|
|
|
2063 |
}
|
|
|
2064 |
if (isSetSuccess()) {
|
|
|
2065 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
2066 |
if (lastComparison != 0) {
|
|
|
2067 |
return lastComparison;
|
|
|
2068 |
}
|
|
|
2069 |
}
|
|
|
2070 |
lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
|
|
|
2071 |
if (lastComparison != 0) {
|
|
|
2072 |
return lastComparison;
|
|
|
2073 |
}
|
|
|
2074 |
if (isSetLse()) {
|
|
|
2075 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
|
|
|
2076 |
if (lastComparison != 0) {
|
|
|
2077 |
return lastComparison;
|
|
|
2078 |
}
|
|
|
2079 |
}
|
|
|
2080 |
return 0;
|
|
|
2081 |
}
|
|
|
2082 |
|
|
|
2083 |
public _Fields fieldForId(int fieldId) {
|
|
|
2084 |
return _Fields.findByThriftId(fieldId);
|
|
|
2085 |
}
|
|
|
2086 |
|
|
|
2087 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
2088 |
org.apache.thrift.protocol.TField field;
|
| 668 |
chandransh |
2089 |
iprot.readStructBegin();
|
|
|
2090 |
while (true)
|
|
|
2091 |
{
|
|
|
2092 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
2093 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 668 |
chandransh |
2094 |
break;
|
|
|
2095 |
}
|
| 3430 |
rajveer |
2096 |
switch (field.id) {
|
|
|
2097 |
case 0: // SUCCESS
|
|
|
2098 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
2099 |
this.success = new Provider();
|
|
|
2100 |
this.success.read(iprot);
|
|
|
2101 |
} else {
|
|
|
2102 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2103 |
}
|
|
|
2104 |
break;
|
|
|
2105 |
case 1: // LSE
|
|
|
2106 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
2107 |
this.lse = new LogisticsServiceException();
|
|
|
2108 |
this.lse.read(iprot);
|
|
|
2109 |
} else {
|
|
|
2110 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2111 |
}
|
|
|
2112 |
break;
|
|
|
2113 |
default:
|
|
|
2114 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 668 |
chandransh |
2115 |
}
|
| 3430 |
rajveer |
2116 |
iprot.readFieldEnd();
|
| 668 |
chandransh |
2117 |
}
|
|
|
2118 |
iprot.readStructEnd();
|
|
|
2119 |
validate();
|
|
|
2120 |
}
|
|
|
2121 |
|
| 3430 |
rajveer |
2122 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 668 |
chandransh |
2123 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
2124 |
|
|
|
2125 |
if (this.isSetSuccess()) {
|
|
|
2126 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
2127 |
this.success.write(oprot);
|
|
|
2128 |
oprot.writeFieldEnd();
|
|
|
2129 |
} else if (this.isSetLse()) {
|
|
|
2130 |
oprot.writeFieldBegin(LSE_FIELD_DESC);
|
|
|
2131 |
this.lse.write(oprot);
|
|
|
2132 |
oprot.writeFieldEnd();
|
|
|
2133 |
}
|
|
|
2134 |
oprot.writeFieldStop();
|
|
|
2135 |
oprot.writeStructEnd();
|
|
|
2136 |
}
|
|
|
2137 |
|
|
|
2138 |
@Override
|
|
|
2139 |
public String toString() {
|
|
|
2140 |
StringBuilder sb = new StringBuilder("getProvider_result(");
|
|
|
2141 |
boolean first = true;
|
|
|
2142 |
|
|
|
2143 |
sb.append("success:");
|
|
|
2144 |
if (this.success == null) {
|
|
|
2145 |
sb.append("null");
|
|
|
2146 |
} else {
|
|
|
2147 |
sb.append(this.success);
|
|
|
2148 |
}
|
|
|
2149 |
first = false;
|
|
|
2150 |
if (!first) sb.append(", ");
|
|
|
2151 |
sb.append("lse:");
|
|
|
2152 |
if (this.lse == null) {
|
|
|
2153 |
sb.append("null");
|
|
|
2154 |
} else {
|
|
|
2155 |
sb.append(this.lse);
|
|
|
2156 |
}
|
|
|
2157 |
first = false;
|
|
|
2158 |
sb.append(")");
|
|
|
2159 |
return sb.toString();
|
|
|
2160 |
}
|
|
|
2161 |
|
| 3430 |
rajveer |
2162 |
public void validate() throws org.apache.thrift.TException {
|
| 668 |
chandransh |
2163 |
// check for required fields
|
|
|
2164 |
}
|
|
|
2165 |
|
| 3430 |
rajveer |
2166 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
2167 |
try {
|
|
|
2168 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
2169 |
} catch (org.apache.thrift.TException te) {
|
|
|
2170 |
throw new java.io.IOException(te);
|
|
|
2171 |
}
|
|
|
2172 |
}
|
|
|
2173 |
|
|
|
2174 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
2175 |
try {
|
|
|
2176 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
2177 |
} catch (org.apache.thrift.TException te) {
|
|
|
2178 |
throw new java.io.IOException(te);
|
|
|
2179 |
}
|
|
|
2180 |
}
|
|
|
2181 |
|
| 668 |
chandransh |
2182 |
}
|
|
|
2183 |
|
| 3430 |
rajveer |
2184 |
public static class getAllProviders_args implements org.apache.thrift.TBase<getAllProviders_args, getAllProviders_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
2185 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_args");
|
| 674 |
chandransh |
2186 |
|
|
|
2187 |
|
|
|
2188 |
|
|
|
2189 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
2190 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 674 |
chandransh |
2191 |
;
|
|
|
2192 |
|
|
|
2193 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
2194 |
|
|
|
2195 |
static {
|
|
|
2196 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
2197 |
byName.put(field.getFieldName(), field);
|
|
|
2198 |
}
|
|
|
2199 |
}
|
|
|
2200 |
|
|
|
2201 |
/**
|
|
|
2202 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
2203 |
*/
|
|
|
2204 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
2205 |
switch(fieldId) {
|
|
|
2206 |
default:
|
|
|
2207 |
return null;
|
|
|
2208 |
}
|
| 674 |
chandransh |
2209 |
}
|
|
|
2210 |
|
|
|
2211 |
/**
|
|
|
2212 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
2213 |
* if it is not found.
|
|
|
2214 |
*/
|
|
|
2215 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
2216 |
_Fields fields = findByThriftId(fieldId);
|
|
|
2217 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
2218 |
return fields;
|
|
|
2219 |
}
|
|
|
2220 |
|
|
|
2221 |
/**
|
|
|
2222 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
2223 |
*/
|
|
|
2224 |
public static _Fields findByName(String name) {
|
|
|
2225 |
return byName.get(name);
|
|
|
2226 |
}
|
|
|
2227 |
|
|
|
2228 |
private final short _thriftId;
|
|
|
2229 |
private final String _fieldName;
|
|
|
2230 |
|
|
|
2231 |
_Fields(short thriftId, String fieldName) {
|
|
|
2232 |
_thriftId = thriftId;
|
|
|
2233 |
_fieldName = fieldName;
|
|
|
2234 |
}
|
|
|
2235 |
|
|
|
2236 |
public short getThriftFieldId() {
|
|
|
2237 |
return _thriftId;
|
|
|
2238 |
}
|
|
|
2239 |
|
|
|
2240 |
public String getFieldName() {
|
|
|
2241 |
return _fieldName;
|
|
|
2242 |
}
|
|
|
2243 |
}
|
| 3430 |
rajveer |
2244 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 674 |
chandransh |
2245 |
static {
|
| 3430 |
rajveer |
2246 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
2247 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
2248 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_args.class, metaDataMap);
|
| 674 |
chandransh |
2249 |
}
|
|
|
2250 |
|
|
|
2251 |
public getAllProviders_args() {
|
|
|
2252 |
}
|
|
|
2253 |
|
|
|
2254 |
/**
|
|
|
2255 |
* Performs a deep copy on <i>other</i>.
|
|
|
2256 |
*/
|
|
|
2257 |
public getAllProviders_args(getAllProviders_args other) {
|
|
|
2258 |
}
|
|
|
2259 |
|
|
|
2260 |
public getAllProviders_args deepCopy() {
|
|
|
2261 |
return new getAllProviders_args(this);
|
|
|
2262 |
}
|
|
|
2263 |
|
| 3430 |
rajveer |
2264 |
@Override
|
|
|
2265 |
public void clear() {
|
| 674 |
chandransh |
2266 |
}
|
|
|
2267 |
|
|
|
2268 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
2269 |
switch (field) {
|
|
|
2270 |
}
|
|
|
2271 |
}
|
|
|
2272 |
|
|
|
2273 |
public Object getFieldValue(_Fields field) {
|
|
|
2274 |
switch (field) {
|
|
|
2275 |
}
|
|
|
2276 |
throw new IllegalStateException();
|
|
|
2277 |
}
|
|
|
2278 |
|
| 3430 |
rajveer |
2279 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
2280 |
public boolean isSet(_Fields field) {
|
|
|
2281 |
if (field == null) {
|
|
|
2282 |
throw new IllegalArgumentException();
|
|
|
2283 |
}
|
| 674 |
chandransh |
2284 |
|
|
|
2285 |
switch (field) {
|
|
|
2286 |
}
|
|
|
2287 |
throw new IllegalStateException();
|
|
|
2288 |
}
|
|
|
2289 |
|
|
|
2290 |
@Override
|
|
|
2291 |
public boolean equals(Object that) {
|
|
|
2292 |
if (that == null)
|
|
|
2293 |
return false;
|
|
|
2294 |
if (that instanceof getAllProviders_args)
|
|
|
2295 |
return this.equals((getAllProviders_args)that);
|
|
|
2296 |
return false;
|
|
|
2297 |
}
|
|
|
2298 |
|
|
|
2299 |
public boolean equals(getAllProviders_args that) {
|
|
|
2300 |
if (that == null)
|
|
|
2301 |
return false;
|
|
|
2302 |
|
|
|
2303 |
return true;
|
|
|
2304 |
}
|
|
|
2305 |
|
|
|
2306 |
@Override
|
|
|
2307 |
public int hashCode() {
|
|
|
2308 |
return 0;
|
|
|
2309 |
}
|
|
|
2310 |
|
|
|
2311 |
public int compareTo(getAllProviders_args other) {
|
|
|
2312 |
if (!getClass().equals(other.getClass())) {
|
|
|
2313 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
2314 |
}
|
|
|
2315 |
|
|
|
2316 |
int lastComparison = 0;
|
|
|
2317 |
getAllProviders_args typedOther = (getAllProviders_args)other;
|
|
|
2318 |
|
|
|
2319 |
return 0;
|
|
|
2320 |
}
|
|
|
2321 |
|
| 3430 |
rajveer |
2322 |
public _Fields fieldForId(int fieldId) {
|
|
|
2323 |
return _Fields.findByThriftId(fieldId);
|
|
|
2324 |
}
|
|
|
2325 |
|
|
|
2326 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
2327 |
org.apache.thrift.protocol.TField field;
|
| 674 |
chandransh |
2328 |
iprot.readStructBegin();
|
|
|
2329 |
while (true)
|
|
|
2330 |
{
|
|
|
2331 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
2332 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 674 |
chandransh |
2333 |
break;
|
|
|
2334 |
}
|
| 3430 |
rajveer |
2335 |
switch (field.id) {
|
|
|
2336 |
default:
|
|
|
2337 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 674 |
chandransh |
2338 |
}
|
| 3430 |
rajveer |
2339 |
iprot.readFieldEnd();
|
| 674 |
chandransh |
2340 |
}
|
|
|
2341 |
iprot.readStructEnd();
|
|
|
2342 |
validate();
|
|
|
2343 |
}
|
|
|
2344 |
|
| 3430 |
rajveer |
2345 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 674 |
chandransh |
2346 |
validate();
|
|
|
2347 |
|
|
|
2348 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
2349 |
oprot.writeFieldStop();
|
|
|
2350 |
oprot.writeStructEnd();
|
|
|
2351 |
}
|
|
|
2352 |
|
|
|
2353 |
@Override
|
|
|
2354 |
public String toString() {
|
|
|
2355 |
StringBuilder sb = new StringBuilder("getAllProviders_args(");
|
|
|
2356 |
boolean first = true;
|
|
|
2357 |
|
|
|
2358 |
sb.append(")");
|
|
|
2359 |
return sb.toString();
|
|
|
2360 |
}
|
|
|
2361 |
|
| 3430 |
rajveer |
2362 |
public void validate() throws org.apache.thrift.TException {
|
| 674 |
chandransh |
2363 |
// check for required fields
|
|
|
2364 |
}
|
|
|
2365 |
|
| 3430 |
rajveer |
2366 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
2367 |
try {
|
|
|
2368 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
2369 |
} catch (org.apache.thrift.TException te) {
|
|
|
2370 |
throw new java.io.IOException(te);
|
|
|
2371 |
}
|
|
|
2372 |
}
|
|
|
2373 |
|
|
|
2374 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
2375 |
try {
|
|
|
2376 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
2377 |
} catch (org.apache.thrift.TException te) {
|
|
|
2378 |
throw new java.io.IOException(te);
|
|
|
2379 |
}
|
|
|
2380 |
}
|
|
|
2381 |
|
| 674 |
chandransh |
2382 |
}
|
|
|
2383 |
|
| 3430 |
rajveer |
2384 |
public static class getAllProviders_result implements org.apache.thrift.TBase<getAllProviders_result, getAllProviders_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
2385 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_result");
|
| 674 |
chandransh |
2386 |
|
| 3430 |
rajveer |
2387 |
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);
|
|
|
2388 |
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 |
2389 |
|
| 3430 |
rajveer |
2390 |
private List<Provider> success; // required
|
|
|
2391 |
private LogisticsServiceException lse; // required
|
| 674 |
chandransh |
2392 |
|
|
|
2393 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
2394 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 674 |
chandransh |
2395 |
SUCCESS((short)0, "success"),
|
|
|
2396 |
LSE((short)1, "lse");
|
|
|
2397 |
|
|
|
2398 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
2399 |
|
|
|
2400 |
static {
|
|
|
2401 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
2402 |
byName.put(field.getFieldName(), field);
|
|
|
2403 |
}
|
|
|
2404 |
}
|
|
|
2405 |
|
|
|
2406 |
/**
|
|
|
2407 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
2408 |
*/
|
|
|
2409 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
2410 |
switch(fieldId) {
|
|
|
2411 |
case 0: // SUCCESS
|
|
|
2412 |
return SUCCESS;
|
|
|
2413 |
case 1: // LSE
|
|
|
2414 |
return LSE;
|
|
|
2415 |
default:
|
|
|
2416 |
return null;
|
|
|
2417 |
}
|
| 674 |
chandransh |
2418 |
}
|
|
|
2419 |
|
|
|
2420 |
/**
|
|
|
2421 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
2422 |
* if it is not found.
|
|
|
2423 |
*/
|
|
|
2424 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
2425 |
_Fields fields = findByThriftId(fieldId);
|
|
|
2426 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
2427 |
return fields;
|
|
|
2428 |
}
|
|
|
2429 |
|
|
|
2430 |
/**
|
|
|
2431 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
2432 |
*/
|
|
|
2433 |
public static _Fields findByName(String name) {
|
|
|
2434 |
return byName.get(name);
|
|
|
2435 |
}
|
|
|
2436 |
|
|
|
2437 |
private final short _thriftId;
|
|
|
2438 |
private final String _fieldName;
|
|
|
2439 |
|
|
|
2440 |
_Fields(short thriftId, String fieldName) {
|
|
|
2441 |
_thriftId = thriftId;
|
|
|
2442 |
_fieldName = fieldName;
|
|
|
2443 |
}
|
|
|
2444 |
|
|
|
2445 |
public short getThriftFieldId() {
|
|
|
2446 |
return _thriftId;
|
|
|
2447 |
}
|
|
|
2448 |
|
|
|
2449 |
public String getFieldName() {
|
|
|
2450 |
return _fieldName;
|
|
|
2451 |
}
|
|
|
2452 |
}
|
|
|
2453 |
|
|
|
2454 |
// isset id assignments
|
|
|
2455 |
|
| 3430 |
rajveer |
2456 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 674 |
chandransh |
2457 |
static {
|
| 3430 |
rajveer |
2458 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
2459 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2460 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
2461 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class))));
|
|
|
2462 |
tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2463 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
2464 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
2465 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_result.class, metaDataMap);
|
| 674 |
chandransh |
2466 |
}
|
|
|
2467 |
|
|
|
2468 |
public getAllProviders_result() {
|
|
|
2469 |
}
|
|
|
2470 |
|
|
|
2471 |
public getAllProviders_result(
|
|
|
2472 |
List<Provider> success,
|
|
|
2473 |
LogisticsServiceException lse)
|
|
|
2474 |
{
|
|
|
2475 |
this();
|
|
|
2476 |
this.success = success;
|
|
|
2477 |
this.lse = lse;
|
|
|
2478 |
}
|
|
|
2479 |
|
|
|
2480 |
/**
|
|
|
2481 |
* Performs a deep copy on <i>other</i>.
|
|
|
2482 |
*/
|
|
|
2483 |
public getAllProviders_result(getAllProviders_result other) {
|
|
|
2484 |
if (other.isSetSuccess()) {
|
|
|
2485 |
List<Provider> __this__success = new ArrayList<Provider>();
|
|
|
2486 |
for (Provider other_element : other.success) {
|
|
|
2487 |
__this__success.add(new Provider(other_element));
|
|
|
2488 |
}
|
|
|
2489 |
this.success = __this__success;
|
|
|
2490 |
}
|
|
|
2491 |
if (other.isSetLse()) {
|
|
|
2492 |
this.lse = new LogisticsServiceException(other.lse);
|
|
|
2493 |
}
|
|
|
2494 |
}
|
|
|
2495 |
|
|
|
2496 |
public getAllProviders_result deepCopy() {
|
|
|
2497 |
return new getAllProviders_result(this);
|
|
|
2498 |
}
|
|
|
2499 |
|
| 3430 |
rajveer |
2500 |
@Override
|
|
|
2501 |
public void clear() {
|
|
|
2502 |
this.success = null;
|
|
|
2503 |
this.lse = null;
|
| 674 |
chandransh |
2504 |
}
|
|
|
2505 |
|
|
|
2506 |
public int getSuccessSize() {
|
|
|
2507 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
2508 |
}
|
|
|
2509 |
|
|
|
2510 |
public java.util.Iterator<Provider> getSuccessIterator() {
|
|
|
2511 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
2512 |
}
|
|
|
2513 |
|
|
|
2514 |
public void addToSuccess(Provider elem) {
|
|
|
2515 |
if (this.success == null) {
|
|
|
2516 |
this.success = new ArrayList<Provider>();
|
|
|
2517 |
}
|
|
|
2518 |
this.success.add(elem);
|
|
|
2519 |
}
|
|
|
2520 |
|
|
|
2521 |
public List<Provider> getSuccess() {
|
|
|
2522 |
return this.success;
|
|
|
2523 |
}
|
|
|
2524 |
|
| 3430 |
rajveer |
2525 |
public void setSuccess(List<Provider> success) {
|
| 674 |
chandransh |
2526 |
this.success = success;
|
|
|
2527 |
}
|
|
|
2528 |
|
|
|
2529 |
public void unsetSuccess() {
|
|
|
2530 |
this.success = null;
|
|
|
2531 |
}
|
|
|
2532 |
|
| 3430 |
rajveer |
2533 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 674 |
chandransh |
2534 |
public boolean isSetSuccess() {
|
|
|
2535 |
return this.success != null;
|
|
|
2536 |
}
|
|
|
2537 |
|
|
|
2538 |
public void setSuccessIsSet(boolean value) {
|
|
|
2539 |
if (!value) {
|
|
|
2540 |
this.success = null;
|
|
|
2541 |
}
|
|
|
2542 |
}
|
|
|
2543 |
|
|
|
2544 |
public LogisticsServiceException getLse() {
|
|
|
2545 |
return this.lse;
|
|
|
2546 |
}
|
|
|
2547 |
|
| 3430 |
rajveer |
2548 |
public void setLse(LogisticsServiceException lse) {
|
| 674 |
chandransh |
2549 |
this.lse = lse;
|
|
|
2550 |
}
|
|
|
2551 |
|
|
|
2552 |
public void unsetLse() {
|
|
|
2553 |
this.lse = null;
|
|
|
2554 |
}
|
|
|
2555 |
|
| 3430 |
rajveer |
2556 |
/** Returns true if field lse is set (has been assigned a value) and false otherwise */
|
| 674 |
chandransh |
2557 |
public boolean isSetLse() {
|
|
|
2558 |
return this.lse != null;
|
|
|
2559 |
}
|
|
|
2560 |
|
|
|
2561 |
public void setLseIsSet(boolean value) {
|
|
|
2562 |
if (!value) {
|
|
|
2563 |
this.lse = null;
|
|
|
2564 |
}
|
|
|
2565 |
}
|
|
|
2566 |
|
|
|
2567 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
2568 |
switch (field) {
|
|
|
2569 |
case SUCCESS:
|
|
|
2570 |
if (value == null) {
|
|
|
2571 |
unsetSuccess();
|
|
|
2572 |
} else {
|
|
|
2573 |
setSuccess((List<Provider>)value);
|
|
|
2574 |
}
|
|
|
2575 |
break;
|
|
|
2576 |
|
|
|
2577 |
case LSE:
|
|
|
2578 |
if (value == null) {
|
|
|
2579 |
unsetLse();
|
|
|
2580 |
} else {
|
|
|
2581 |
setLse((LogisticsServiceException)value);
|
|
|
2582 |
}
|
|
|
2583 |
break;
|
|
|
2584 |
|
|
|
2585 |
}
|
|
|
2586 |
}
|
|
|
2587 |
|
|
|
2588 |
public Object getFieldValue(_Fields field) {
|
|
|
2589 |
switch (field) {
|
|
|
2590 |
case SUCCESS:
|
|
|
2591 |
return getSuccess();
|
|
|
2592 |
|
|
|
2593 |
case LSE:
|
|
|
2594 |
return getLse();
|
|
|
2595 |
|
|
|
2596 |
}
|
|
|
2597 |
throw new IllegalStateException();
|
|
|
2598 |
}
|
|
|
2599 |
|
| 3430 |
rajveer |
2600 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
2601 |
public boolean isSet(_Fields field) {
|
|
|
2602 |
if (field == null) {
|
|
|
2603 |
throw new IllegalArgumentException();
|
|
|
2604 |
}
|
| 674 |
chandransh |
2605 |
|
|
|
2606 |
switch (field) {
|
|
|
2607 |
case SUCCESS:
|
|
|
2608 |
return isSetSuccess();
|
|
|
2609 |
case LSE:
|
|
|
2610 |
return isSetLse();
|
|
|
2611 |
}
|
|
|
2612 |
throw new IllegalStateException();
|
|
|
2613 |
}
|
|
|
2614 |
|
|
|
2615 |
@Override
|
|
|
2616 |
public boolean equals(Object that) {
|
|
|
2617 |
if (that == null)
|
|
|
2618 |
return false;
|
|
|
2619 |
if (that instanceof getAllProviders_result)
|
|
|
2620 |
return this.equals((getAllProviders_result)that);
|
|
|
2621 |
return false;
|
|
|
2622 |
}
|
|
|
2623 |
|
|
|
2624 |
public boolean equals(getAllProviders_result that) {
|
|
|
2625 |
if (that == null)
|
|
|
2626 |
return false;
|
|
|
2627 |
|
|
|
2628 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
2629 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
2630 |
if (this_present_success || that_present_success) {
|
|
|
2631 |
if (!(this_present_success && that_present_success))
|
|
|
2632 |
return false;
|
|
|
2633 |
if (!this.success.equals(that.success))
|
|
|
2634 |
return false;
|
|
|
2635 |
}
|
|
|
2636 |
|
|
|
2637 |
boolean this_present_lse = true && this.isSetLse();
|
|
|
2638 |
boolean that_present_lse = true && that.isSetLse();
|
|
|
2639 |
if (this_present_lse || that_present_lse) {
|
|
|
2640 |
if (!(this_present_lse && that_present_lse))
|
|
|
2641 |
return false;
|
|
|
2642 |
if (!this.lse.equals(that.lse))
|
|
|
2643 |
return false;
|
|
|
2644 |
}
|
|
|
2645 |
|
|
|
2646 |
return true;
|
|
|
2647 |
}
|
|
|
2648 |
|
|
|
2649 |
@Override
|
|
|
2650 |
public int hashCode() {
|
|
|
2651 |
return 0;
|
|
|
2652 |
}
|
|
|
2653 |
|
| 3430 |
rajveer |
2654 |
public int compareTo(getAllProviders_result other) {
|
|
|
2655 |
if (!getClass().equals(other.getClass())) {
|
|
|
2656 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
2657 |
}
|
|
|
2658 |
|
|
|
2659 |
int lastComparison = 0;
|
|
|
2660 |
getAllProviders_result typedOther = (getAllProviders_result)other;
|
|
|
2661 |
|
|
|
2662 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
2663 |
if (lastComparison != 0) {
|
|
|
2664 |
return lastComparison;
|
|
|
2665 |
}
|
|
|
2666 |
if (isSetSuccess()) {
|
|
|
2667 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
2668 |
if (lastComparison != 0) {
|
|
|
2669 |
return lastComparison;
|
|
|
2670 |
}
|
|
|
2671 |
}
|
|
|
2672 |
lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
|
|
|
2673 |
if (lastComparison != 0) {
|
|
|
2674 |
return lastComparison;
|
|
|
2675 |
}
|
|
|
2676 |
if (isSetLse()) {
|
|
|
2677 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
|
|
|
2678 |
if (lastComparison != 0) {
|
|
|
2679 |
return lastComparison;
|
|
|
2680 |
}
|
|
|
2681 |
}
|
|
|
2682 |
return 0;
|
|
|
2683 |
}
|
|
|
2684 |
|
|
|
2685 |
public _Fields fieldForId(int fieldId) {
|
|
|
2686 |
return _Fields.findByThriftId(fieldId);
|
|
|
2687 |
}
|
|
|
2688 |
|
|
|
2689 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
2690 |
org.apache.thrift.protocol.TField field;
|
| 674 |
chandransh |
2691 |
iprot.readStructBegin();
|
|
|
2692 |
while (true)
|
|
|
2693 |
{
|
|
|
2694 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
2695 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 674 |
chandransh |
2696 |
break;
|
|
|
2697 |
}
|
| 3430 |
rajveer |
2698 |
switch (field.id) {
|
|
|
2699 |
case 0: // SUCCESS
|
|
|
2700 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
2701 |
{
|
|
|
2702 |
org.apache.thrift.protocol.TList _list5 = iprot.readListBegin();
|
|
|
2703 |
this.success = new ArrayList<Provider>(_list5.size);
|
|
|
2704 |
for (int _i6 = 0; _i6 < _list5.size; ++_i6)
|
| 674 |
chandransh |
2705 |
{
|
| 3430 |
rajveer |
2706 |
Provider _elem7; // required
|
|
|
2707 |
_elem7 = new Provider();
|
|
|
2708 |
_elem7.read(iprot);
|
|
|
2709 |
this.success.add(_elem7);
|
| 674 |
chandransh |
2710 |
}
|
| 3430 |
rajveer |
2711 |
iprot.readListEnd();
|
| 674 |
chandransh |
2712 |
}
|
| 3430 |
rajveer |
2713 |
} else {
|
|
|
2714 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2715 |
}
|
|
|
2716 |
break;
|
|
|
2717 |
case 1: // LSE
|
|
|
2718 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
2719 |
this.lse = new LogisticsServiceException();
|
|
|
2720 |
this.lse.read(iprot);
|
|
|
2721 |
} else {
|
|
|
2722 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2723 |
}
|
|
|
2724 |
break;
|
|
|
2725 |
default:
|
|
|
2726 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 674 |
chandransh |
2727 |
}
|
| 3430 |
rajveer |
2728 |
iprot.readFieldEnd();
|
| 674 |
chandransh |
2729 |
}
|
|
|
2730 |
iprot.readStructEnd();
|
|
|
2731 |
validate();
|
|
|
2732 |
}
|
|
|
2733 |
|
| 3430 |
rajveer |
2734 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 674 |
chandransh |
2735 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
2736 |
|
|
|
2737 |
if (this.isSetSuccess()) {
|
|
|
2738 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
2739 |
{
|
| 3430 |
rajveer |
2740 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
| 3044 |
chandransh |
2741 |
for (Provider _iter8 : this.success)
|
| 674 |
chandransh |
2742 |
{
|
| 3044 |
chandransh |
2743 |
_iter8.write(oprot);
|
| 674 |
chandransh |
2744 |
}
|
|
|
2745 |
oprot.writeListEnd();
|
|
|
2746 |
}
|
|
|
2747 |
oprot.writeFieldEnd();
|
|
|
2748 |
} else if (this.isSetLse()) {
|
|
|
2749 |
oprot.writeFieldBegin(LSE_FIELD_DESC);
|
|
|
2750 |
this.lse.write(oprot);
|
|
|
2751 |
oprot.writeFieldEnd();
|
|
|
2752 |
}
|
|
|
2753 |
oprot.writeFieldStop();
|
|
|
2754 |
oprot.writeStructEnd();
|
|
|
2755 |
}
|
|
|
2756 |
|
|
|
2757 |
@Override
|
|
|
2758 |
public String toString() {
|
|
|
2759 |
StringBuilder sb = new StringBuilder("getAllProviders_result(");
|
|
|
2760 |
boolean first = true;
|
|
|
2761 |
|
|
|
2762 |
sb.append("success:");
|
|
|
2763 |
if (this.success == null) {
|
|
|
2764 |
sb.append("null");
|
|
|
2765 |
} else {
|
|
|
2766 |
sb.append(this.success);
|
|
|
2767 |
}
|
|
|
2768 |
first = false;
|
|
|
2769 |
if (!first) sb.append(", ");
|
|
|
2770 |
sb.append("lse:");
|
|
|
2771 |
if (this.lse == null) {
|
|
|
2772 |
sb.append("null");
|
|
|
2773 |
} else {
|
|
|
2774 |
sb.append(this.lse);
|
|
|
2775 |
}
|
|
|
2776 |
first = false;
|
|
|
2777 |
sb.append(")");
|
|
|
2778 |
return sb.toString();
|
|
|
2779 |
}
|
|
|
2780 |
|
| 3430 |
rajveer |
2781 |
public void validate() throws org.apache.thrift.TException {
|
| 674 |
chandransh |
2782 |
// check for required fields
|
|
|
2783 |
}
|
|
|
2784 |
|
| 3430 |
rajveer |
2785 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
2786 |
try {
|
|
|
2787 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
2788 |
} catch (org.apache.thrift.TException te) {
|
|
|
2789 |
throw new java.io.IOException(te);
|
|
|
2790 |
}
|
|
|
2791 |
}
|
|
|
2792 |
|
|
|
2793 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
2794 |
try {
|
|
|
2795 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
2796 |
} catch (org.apache.thrift.TException te) {
|
|
|
2797 |
throw new java.io.IOException(te);
|
|
|
2798 |
}
|
|
|
2799 |
}
|
|
|
2800 |
|
| 674 |
chandransh |
2801 |
}
|
|
|
2802 |
|
| 3430 |
rajveer |
2803 |
public static class getLogisticsEstimation_args implements org.apache.thrift.TBase<getLogisticsEstimation_args, getLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
2804 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_args");
|
| 471 |
rajveer |
2805 |
|
| 3430 |
rajveer |
2806 |
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);
|
|
|
2807 |
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 |
2808 |
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 |
2809 |
|
| 3430 |
rajveer |
2810 |
private long itemId; // required
|
|
|
2811 |
private String destination_pin; // required
|
| 4630 |
mandeep.dh |
2812 |
private DeliveryType type; // required
|
| 471 |
rajveer |
2813 |
|
|
|
2814 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
2815 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 471 |
rajveer |
2816 |
ITEM_ID((short)1, "itemId"),
|
| 4630 |
mandeep.dh |
2817 |
DESTINATION_PIN((short)2, "destination_pin"),
|
|
|
2818 |
/**
|
|
|
2819 |
*
|
|
|
2820 |
* @see DeliveryType
|
|
|
2821 |
*/
|
|
|
2822 |
TYPE((short)3, "type");
|
| 471 |
rajveer |
2823 |
|
|
|
2824 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
2825 |
|
|
|
2826 |
static {
|
|
|
2827 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
2828 |
byName.put(field.getFieldName(), field);
|
|
|
2829 |
}
|
|
|
2830 |
}
|
|
|
2831 |
|
|
|
2832 |
/**
|
|
|
2833 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
2834 |
*/
|
|
|
2835 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
2836 |
switch(fieldId) {
|
|
|
2837 |
case 1: // ITEM_ID
|
|
|
2838 |
return ITEM_ID;
|
|
|
2839 |
case 2: // DESTINATION_PIN
|
|
|
2840 |
return DESTINATION_PIN;
|
| 4630 |
mandeep.dh |
2841 |
case 3: // TYPE
|
|
|
2842 |
return TYPE;
|
| 3430 |
rajveer |
2843 |
default:
|
|
|
2844 |
return null;
|
|
|
2845 |
}
|
| 471 |
rajveer |
2846 |
}
|
|
|
2847 |
|
|
|
2848 |
/**
|
|
|
2849 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
2850 |
* if it is not found.
|
|
|
2851 |
*/
|
|
|
2852 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
2853 |
_Fields fields = findByThriftId(fieldId);
|
|
|
2854 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
2855 |
return fields;
|
|
|
2856 |
}
|
|
|
2857 |
|
|
|
2858 |
/**
|
|
|
2859 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
2860 |
*/
|
|
|
2861 |
public static _Fields findByName(String name) {
|
|
|
2862 |
return byName.get(name);
|
|
|
2863 |
}
|
|
|
2864 |
|
|
|
2865 |
private final short _thriftId;
|
|
|
2866 |
private final String _fieldName;
|
|
|
2867 |
|
|
|
2868 |
_Fields(short thriftId, String fieldName) {
|
|
|
2869 |
_thriftId = thriftId;
|
|
|
2870 |
_fieldName = fieldName;
|
|
|
2871 |
}
|
|
|
2872 |
|
|
|
2873 |
public short getThriftFieldId() {
|
|
|
2874 |
return _thriftId;
|
|
|
2875 |
}
|
|
|
2876 |
|
|
|
2877 |
public String getFieldName() {
|
|
|
2878 |
return _fieldName;
|
|
|
2879 |
}
|
|
|
2880 |
}
|
|
|
2881 |
|
|
|
2882 |
// isset id assignments
|
|
|
2883 |
private static final int __ITEMID_ISSET_ID = 0;
|
| 648 |
chandransh |
2884 |
private BitSet __isset_bit_vector = new BitSet(1);
|
| 471 |
rajveer |
2885 |
|
| 3430 |
rajveer |
2886 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 471 |
rajveer |
2887 |
static {
|
| 3430 |
rajveer |
2888 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
2889 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2890 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
2891 |
tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2892 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 4630 |
mandeep.dh |
2893 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2894 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
|
| 3430 |
rajveer |
2895 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
2896 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_args.class, metaDataMap);
|
| 471 |
rajveer |
2897 |
}
|
|
|
2898 |
|
|
|
2899 |
public getLogisticsEstimation_args() {
|
|
|
2900 |
}
|
|
|
2901 |
|
|
|
2902 |
public getLogisticsEstimation_args(
|
|
|
2903 |
long itemId,
|
| 4630 |
mandeep.dh |
2904 |
String destination_pin,
|
|
|
2905 |
DeliveryType type)
|
| 471 |
rajveer |
2906 |
{
|
|
|
2907 |
this();
|
|
|
2908 |
this.itemId = itemId;
|
|
|
2909 |
setItemIdIsSet(true);
|
|
|
2910 |
this.destination_pin = destination_pin;
|
| 4630 |
mandeep.dh |
2911 |
this.type = type;
|
| 471 |
rajveer |
2912 |
}
|
|
|
2913 |
|
|
|
2914 |
/**
|
|
|
2915 |
* Performs a deep copy on <i>other</i>.
|
|
|
2916 |
*/
|
|
|
2917 |
public getLogisticsEstimation_args(getLogisticsEstimation_args other) {
|
|
|
2918 |
__isset_bit_vector.clear();
|
|
|
2919 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
2920 |
this.itemId = other.itemId;
|
|
|
2921 |
if (other.isSetDestination_pin()) {
|
|
|
2922 |
this.destination_pin = other.destination_pin;
|
|
|
2923 |
}
|
| 4630 |
mandeep.dh |
2924 |
if (other.isSetType()) {
|
|
|
2925 |
this.type = other.type;
|
|
|
2926 |
}
|
| 471 |
rajveer |
2927 |
}
|
|
|
2928 |
|
|
|
2929 |
public getLogisticsEstimation_args deepCopy() {
|
|
|
2930 |
return new getLogisticsEstimation_args(this);
|
|
|
2931 |
}
|
|
|
2932 |
|
| 3430 |
rajveer |
2933 |
@Override
|
|
|
2934 |
public void clear() {
|
|
|
2935 |
setItemIdIsSet(false);
|
|
|
2936 |
this.itemId = 0;
|
|
|
2937 |
this.destination_pin = null;
|
| 4630 |
mandeep.dh |
2938 |
this.type = null;
|
| 471 |
rajveer |
2939 |
}
|
|
|
2940 |
|
|
|
2941 |
public long getItemId() {
|
|
|
2942 |
return this.itemId;
|
|
|
2943 |
}
|
|
|
2944 |
|
| 3430 |
rajveer |
2945 |
public void setItemId(long itemId) {
|
| 471 |
rajveer |
2946 |
this.itemId = itemId;
|
|
|
2947 |
setItemIdIsSet(true);
|
|
|
2948 |
}
|
|
|
2949 |
|
|
|
2950 |
public void unsetItemId() {
|
|
|
2951 |
__isset_bit_vector.clear(__ITEMID_ISSET_ID);
|
|
|
2952 |
}
|
|
|
2953 |
|
| 3430 |
rajveer |
2954 |
/** Returns true if field itemId is set (has been assigned a value) and false otherwise */
|
| 471 |
rajveer |
2955 |
public boolean isSetItemId() {
|
|
|
2956 |
return __isset_bit_vector.get(__ITEMID_ISSET_ID);
|
|
|
2957 |
}
|
|
|
2958 |
|
|
|
2959 |
public void setItemIdIsSet(boolean value) {
|
|
|
2960 |
__isset_bit_vector.set(__ITEMID_ISSET_ID, value);
|
|
|
2961 |
}
|
|
|
2962 |
|
|
|
2963 |
public String getDestination_pin() {
|
|
|
2964 |
return this.destination_pin;
|
|
|
2965 |
}
|
|
|
2966 |
|
| 3430 |
rajveer |
2967 |
public void setDestination_pin(String destination_pin) {
|
| 471 |
rajveer |
2968 |
this.destination_pin = destination_pin;
|
|
|
2969 |
}
|
|
|
2970 |
|
|
|
2971 |
public void unsetDestination_pin() {
|
|
|
2972 |
this.destination_pin = null;
|
|
|
2973 |
}
|
|
|
2974 |
|
| 3430 |
rajveer |
2975 |
/** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
|
| 471 |
rajveer |
2976 |
public boolean isSetDestination_pin() {
|
|
|
2977 |
return this.destination_pin != null;
|
|
|
2978 |
}
|
|
|
2979 |
|
|
|
2980 |
public void setDestination_pinIsSet(boolean value) {
|
|
|
2981 |
if (!value) {
|
|
|
2982 |
this.destination_pin = null;
|
|
|
2983 |
}
|
|
|
2984 |
}
|
|
|
2985 |
|
| 4630 |
mandeep.dh |
2986 |
/**
|
|
|
2987 |
*
|
|
|
2988 |
* @see DeliveryType
|
|
|
2989 |
*/
|
|
|
2990 |
public DeliveryType getType() {
|
|
|
2991 |
return this.type;
|
|
|
2992 |
}
|
|
|
2993 |
|
|
|
2994 |
/**
|
|
|
2995 |
*
|
|
|
2996 |
* @see DeliveryType
|
|
|
2997 |
*/
|
|
|
2998 |
public void setType(DeliveryType type) {
|
|
|
2999 |
this.type = type;
|
|
|
3000 |
}
|
|
|
3001 |
|
|
|
3002 |
public void unsetType() {
|
|
|
3003 |
this.type = null;
|
|
|
3004 |
}
|
|
|
3005 |
|
|
|
3006 |
/** Returns true if field type is set (has been assigned a value) and false otherwise */
|
|
|
3007 |
public boolean isSetType() {
|
|
|
3008 |
return this.type != null;
|
|
|
3009 |
}
|
|
|
3010 |
|
|
|
3011 |
public void setTypeIsSet(boolean value) {
|
|
|
3012 |
if (!value) {
|
|
|
3013 |
this.type = null;
|
|
|
3014 |
}
|
|
|
3015 |
}
|
|
|
3016 |
|
| 471 |
rajveer |
3017 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
3018 |
switch (field) {
|
|
|
3019 |
case ITEM_ID:
|
|
|
3020 |
if (value == null) {
|
|
|
3021 |
unsetItemId();
|
|
|
3022 |
} else {
|
|
|
3023 |
setItemId((Long)value);
|
|
|
3024 |
}
|
|
|
3025 |
break;
|
|
|
3026 |
|
|
|
3027 |
case DESTINATION_PIN:
|
|
|
3028 |
if (value == null) {
|
|
|
3029 |
unsetDestination_pin();
|
|
|
3030 |
} else {
|
|
|
3031 |
setDestination_pin((String)value);
|
|
|
3032 |
}
|
|
|
3033 |
break;
|
|
|
3034 |
|
| 4630 |
mandeep.dh |
3035 |
case TYPE:
|
|
|
3036 |
if (value == null) {
|
|
|
3037 |
unsetType();
|
|
|
3038 |
} else {
|
|
|
3039 |
setType((DeliveryType)value);
|
|
|
3040 |
}
|
|
|
3041 |
break;
|
|
|
3042 |
|
| 471 |
rajveer |
3043 |
}
|
|
|
3044 |
}
|
|
|
3045 |
|
|
|
3046 |
public Object getFieldValue(_Fields field) {
|
|
|
3047 |
switch (field) {
|
|
|
3048 |
case ITEM_ID:
|
| 3430 |
rajveer |
3049 |
return Long.valueOf(getItemId());
|
| 471 |
rajveer |
3050 |
|
|
|
3051 |
case DESTINATION_PIN:
|
|
|
3052 |
return getDestination_pin();
|
|
|
3053 |
|
| 4630 |
mandeep.dh |
3054 |
case TYPE:
|
|
|
3055 |
return getType();
|
|
|
3056 |
|
| 471 |
rajveer |
3057 |
}
|
|
|
3058 |
throw new IllegalStateException();
|
|
|
3059 |
}
|
|
|
3060 |
|
| 3430 |
rajveer |
3061 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
3062 |
public boolean isSet(_Fields field) {
|
|
|
3063 |
if (field == null) {
|
|
|
3064 |
throw new IllegalArgumentException();
|
|
|
3065 |
}
|
| 471 |
rajveer |
3066 |
|
|
|
3067 |
switch (field) {
|
|
|
3068 |
case ITEM_ID:
|
|
|
3069 |
return isSetItemId();
|
|
|
3070 |
case DESTINATION_PIN:
|
|
|
3071 |
return isSetDestination_pin();
|
| 4630 |
mandeep.dh |
3072 |
case TYPE:
|
|
|
3073 |
return isSetType();
|
| 471 |
rajveer |
3074 |
}
|
|
|
3075 |
throw new IllegalStateException();
|
|
|
3076 |
}
|
|
|
3077 |
|
|
|
3078 |
@Override
|
|
|
3079 |
public boolean equals(Object that) {
|
|
|
3080 |
if (that == null)
|
|
|
3081 |
return false;
|
|
|
3082 |
if (that instanceof getLogisticsEstimation_args)
|
|
|
3083 |
return this.equals((getLogisticsEstimation_args)that);
|
|
|
3084 |
return false;
|
|
|
3085 |
}
|
|
|
3086 |
|
|
|
3087 |
public boolean equals(getLogisticsEstimation_args that) {
|
|
|
3088 |
if (that == null)
|
|
|
3089 |
return false;
|
|
|
3090 |
|
|
|
3091 |
boolean this_present_itemId = true;
|
|
|
3092 |
boolean that_present_itemId = true;
|
|
|
3093 |
if (this_present_itemId || that_present_itemId) {
|
|
|
3094 |
if (!(this_present_itemId && that_present_itemId))
|
|
|
3095 |
return false;
|
|
|
3096 |
if (this.itemId != that.itemId)
|
|
|
3097 |
return false;
|
|
|
3098 |
}
|
|
|
3099 |
|
|
|
3100 |
boolean this_present_destination_pin = true && this.isSetDestination_pin();
|
|
|
3101 |
boolean that_present_destination_pin = true && that.isSetDestination_pin();
|
|
|
3102 |
if (this_present_destination_pin || that_present_destination_pin) {
|
|
|
3103 |
if (!(this_present_destination_pin && that_present_destination_pin))
|
|
|
3104 |
return false;
|
|
|
3105 |
if (!this.destination_pin.equals(that.destination_pin))
|
|
|
3106 |
return false;
|
|
|
3107 |
}
|
|
|
3108 |
|
| 4630 |
mandeep.dh |
3109 |
boolean this_present_type = true && this.isSetType();
|
|
|
3110 |
boolean that_present_type = true && that.isSetType();
|
|
|
3111 |
if (this_present_type || that_present_type) {
|
|
|
3112 |
if (!(this_present_type && that_present_type))
|
|
|
3113 |
return false;
|
|
|
3114 |
if (!this.type.equals(that.type))
|
|
|
3115 |
return false;
|
|
|
3116 |
}
|
|
|
3117 |
|
| 471 |
rajveer |
3118 |
return true;
|
|
|
3119 |
}
|
|
|
3120 |
|
|
|
3121 |
@Override
|
|
|
3122 |
public int hashCode() {
|
|
|
3123 |
return 0;
|
|
|
3124 |
}
|
|
|
3125 |
|
|
|
3126 |
public int compareTo(getLogisticsEstimation_args other) {
|
|
|
3127 |
if (!getClass().equals(other.getClass())) {
|
|
|
3128 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
3129 |
}
|
|
|
3130 |
|
|
|
3131 |
int lastComparison = 0;
|
|
|
3132 |
getLogisticsEstimation_args typedOther = (getLogisticsEstimation_args)other;
|
|
|
3133 |
|
| 3430 |
rajveer |
3134 |
lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
|
| 471 |
rajveer |
3135 |
if (lastComparison != 0) {
|
|
|
3136 |
return lastComparison;
|
|
|
3137 |
}
|
| 3430 |
rajveer |
3138 |
if (isSetItemId()) {
|
|
|
3139 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
|
|
|
3140 |
if (lastComparison != 0) {
|
|
|
3141 |
return lastComparison;
|
|
|
3142 |
}
|
| 471 |
rajveer |
3143 |
}
|
| 3430 |
rajveer |
3144 |
lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
|
| 471 |
rajveer |
3145 |
if (lastComparison != 0) {
|
|
|
3146 |
return lastComparison;
|
|
|
3147 |
}
|
| 3430 |
rajveer |
3148 |
if (isSetDestination_pin()) {
|
|
|
3149 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
|
|
|
3150 |
if (lastComparison != 0) {
|
|
|
3151 |
return lastComparison;
|
|
|
3152 |
}
|
| 471 |
rajveer |
3153 |
}
|
| 4630 |
mandeep.dh |
3154 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
|
|
3155 |
if (lastComparison != 0) {
|
|
|
3156 |
return lastComparison;
|
|
|
3157 |
}
|
|
|
3158 |
if (isSetType()) {
|
|
|
3159 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
|
|
3160 |
if (lastComparison != 0) {
|
|
|
3161 |
return lastComparison;
|
|
|
3162 |
}
|
|
|
3163 |
}
|
| 471 |
rajveer |
3164 |
return 0;
|
|
|
3165 |
}
|
|
|
3166 |
|
| 3430 |
rajveer |
3167 |
public _Fields fieldForId(int fieldId) {
|
|
|
3168 |
return _Fields.findByThriftId(fieldId);
|
|
|
3169 |
}
|
|
|
3170 |
|
|
|
3171 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
3172 |
org.apache.thrift.protocol.TField field;
|
| 471 |
rajveer |
3173 |
iprot.readStructBegin();
|
|
|
3174 |
while (true)
|
|
|
3175 |
{
|
|
|
3176 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
3177 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 471 |
rajveer |
3178 |
break;
|
|
|
3179 |
}
|
| 3430 |
rajveer |
3180 |
switch (field.id) {
|
|
|
3181 |
case 1: // ITEM_ID
|
|
|
3182 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
3183 |
this.itemId = iprot.readI64();
|
|
|
3184 |
setItemIdIsSet(true);
|
|
|
3185 |
} else {
|
|
|
3186 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3187 |
}
|
|
|
3188 |
break;
|
|
|
3189 |
case 2: // DESTINATION_PIN
|
|
|
3190 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
3191 |
this.destination_pin = iprot.readString();
|
|
|
3192 |
} else {
|
|
|
3193 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3194 |
}
|
|
|
3195 |
break;
|
| 4630 |
mandeep.dh |
3196 |
case 3: // TYPE
|
|
|
3197 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
3198 |
this.type = DeliveryType.findByValue(iprot.readI32());
|
|
|
3199 |
} else {
|
|
|
3200 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3201 |
}
|
|
|
3202 |
break;
|
| 3430 |
rajveer |
3203 |
default:
|
|
|
3204 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 471 |
rajveer |
3205 |
}
|
| 3430 |
rajveer |
3206 |
iprot.readFieldEnd();
|
| 471 |
rajveer |
3207 |
}
|
|
|
3208 |
iprot.readStructEnd();
|
|
|
3209 |
validate();
|
|
|
3210 |
}
|
|
|
3211 |
|
| 3430 |
rajveer |
3212 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 471 |
rajveer |
3213 |
validate();
|
|
|
3214 |
|
|
|
3215 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
3216 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
3217 |
oprot.writeI64(this.itemId);
|
|
|
3218 |
oprot.writeFieldEnd();
|
|
|
3219 |
if (this.destination_pin != null) {
|
|
|
3220 |
oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
|
|
|
3221 |
oprot.writeString(this.destination_pin);
|
|
|
3222 |
oprot.writeFieldEnd();
|
|
|
3223 |
}
|
| 4630 |
mandeep.dh |
3224 |
if (this.type != null) {
|
|
|
3225 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
|
|
3226 |
oprot.writeI32(this.type.getValue());
|
|
|
3227 |
oprot.writeFieldEnd();
|
|
|
3228 |
}
|
| 471 |
rajveer |
3229 |
oprot.writeFieldStop();
|
|
|
3230 |
oprot.writeStructEnd();
|
|
|
3231 |
}
|
|
|
3232 |
|
|
|
3233 |
@Override
|
|
|
3234 |
public String toString() {
|
|
|
3235 |
StringBuilder sb = new StringBuilder("getLogisticsEstimation_args(");
|
|
|
3236 |
boolean first = true;
|
|
|
3237 |
|
|
|
3238 |
sb.append("itemId:");
|
|
|
3239 |
sb.append(this.itemId);
|
|
|
3240 |
first = false;
|
|
|
3241 |
if (!first) sb.append(", ");
|
|
|
3242 |
sb.append("destination_pin:");
|
|
|
3243 |
if (this.destination_pin == null) {
|
|
|
3244 |
sb.append("null");
|
|
|
3245 |
} else {
|
|
|
3246 |
sb.append(this.destination_pin);
|
|
|
3247 |
}
|
|
|
3248 |
first = false;
|
| 4630 |
mandeep.dh |
3249 |
if (!first) sb.append(", ");
|
|
|
3250 |
sb.append("type:");
|
|
|
3251 |
if (this.type == null) {
|
|
|
3252 |
sb.append("null");
|
|
|
3253 |
} else {
|
|
|
3254 |
sb.append(this.type);
|
|
|
3255 |
}
|
|
|
3256 |
first = false;
|
| 471 |
rajveer |
3257 |
sb.append(")");
|
|
|
3258 |
return sb.toString();
|
|
|
3259 |
}
|
|
|
3260 |
|
| 3430 |
rajveer |
3261 |
public void validate() throws org.apache.thrift.TException {
|
| 471 |
rajveer |
3262 |
// check for required fields
|
|
|
3263 |
}
|
|
|
3264 |
|
| 3430 |
rajveer |
3265 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
3266 |
try {
|
|
|
3267 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
3268 |
} catch (org.apache.thrift.TException te) {
|
|
|
3269 |
throw new java.io.IOException(te);
|
|
|
3270 |
}
|
|
|
3271 |
}
|
|
|
3272 |
|
|
|
3273 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
3274 |
try {
|
|
|
3275 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
3276 |
} catch (org.apache.thrift.TException te) {
|
|
|
3277 |
throw new java.io.IOException(te);
|
|
|
3278 |
}
|
|
|
3279 |
}
|
|
|
3280 |
|
| 471 |
rajveer |
3281 |
}
|
|
|
3282 |
|
| 3430 |
rajveer |
3283 |
public static class getLogisticsEstimation_result implements org.apache.thrift.TBase<getLogisticsEstimation_result, getLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
3284 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_result");
|
| 471 |
rajveer |
3285 |
|
| 3430 |
rajveer |
3286 |
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);
|
|
|
3287 |
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 |
3288 |
|
| 3430 |
rajveer |
3289 |
private LogisticsInfo success; // required
|
|
|
3290 |
private LogisticsServiceException se; // required
|
| 471 |
rajveer |
3291 |
|
|
|
3292 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
3293 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 471 |
rajveer |
3294 |
SUCCESS((short)0, "success"),
|
|
|
3295 |
SE((short)1, "se");
|
|
|
3296 |
|
|
|
3297 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
3298 |
|
|
|
3299 |
static {
|
|
|
3300 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
3301 |
byName.put(field.getFieldName(), field);
|
|
|
3302 |
}
|
|
|
3303 |
}
|
|
|
3304 |
|
|
|
3305 |
/**
|
|
|
3306 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
3307 |
*/
|
|
|
3308 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
3309 |
switch(fieldId) {
|
|
|
3310 |
case 0: // SUCCESS
|
|
|
3311 |
return SUCCESS;
|
|
|
3312 |
case 1: // SE
|
|
|
3313 |
return SE;
|
|
|
3314 |
default:
|
|
|
3315 |
return null;
|
|
|
3316 |
}
|
| 471 |
rajveer |
3317 |
}
|
|
|
3318 |
|
|
|
3319 |
/**
|
|
|
3320 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
3321 |
* if it is not found.
|
|
|
3322 |
*/
|
|
|
3323 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
3324 |
_Fields fields = findByThriftId(fieldId);
|
|
|
3325 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
3326 |
return fields;
|
|
|
3327 |
}
|
|
|
3328 |
|
|
|
3329 |
/**
|
|
|
3330 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
3331 |
*/
|
|
|
3332 |
public static _Fields findByName(String name) {
|
|
|
3333 |
return byName.get(name);
|
|
|
3334 |
}
|
|
|
3335 |
|
|
|
3336 |
private final short _thriftId;
|
|
|
3337 |
private final String _fieldName;
|
|
|
3338 |
|
|
|
3339 |
_Fields(short thriftId, String fieldName) {
|
|
|
3340 |
_thriftId = thriftId;
|
|
|
3341 |
_fieldName = fieldName;
|
|
|
3342 |
}
|
|
|
3343 |
|
|
|
3344 |
public short getThriftFieldId() {
|
|
|
3345 |
return _thriftId;
|
|
|
3346 |
}
|
|
|
3347 |
|
|
|
3348 |
public String getFieldName() {
|
|
|
3349 |
return _fieldName;
|
|
|
3350 |
}
|
|
|
3351 |
}
|
|
|
3352 |
|
|
|
3353 |
// isset id assignments
|
|
|
3354 |
|
| 3430 |
rajveer |
3355 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 471 |
rajveer |
3356 |
static {
|
| 3430 |
rajveer |
3357 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
3358 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3359 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
|
|
|
3360 |
tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3361 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
3362 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
3363 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_result.class, metaDataMap);
|
| 471 |
rajveer |
3364 |
}
|
|
|
3365 |
|
|
|
3366 |
public getLogisticsEstimation_result() {
|
|
|
3367 |
}
|
|
|
3368 |
|
|
|
3369 |
public getLogisticsEstimation_result(
|
| 648 |
chandransh |
3370 |
LogisticsInfo success,
|
| 471 |
rajveer |
3371 |
LogisticsServiceException se)
|
|
|
3372 |
{
|
|
|
3373 |
this();
|
|
|
3374 |
this.success = success;
|
|
|
3375 |
this.se = se;
|
|
|
3376 |
}
|
|
|
3377 |
|
|
|
3378 |
/**
|
|
|
3379 |
* Performs a deep copy on <i>other</i>.
|
|
|
3380 |
*/
|
|
|
3381 |
public getLogisticsEstimation_result(getLogisticsEstimation_result other) {
|
|
|
3382 |
if (other.isSetSuccess()) {
|
| 648 |
chandransh |
3383 |
this.success = new LogisticsInfo(other.success);
|
| 471 |
rajveer |
3384 |
}
|
|
|
3385 |
if (other.isSetSe()) {
|
|
|
3386 |
this.se = new LogisticsServiceException(other.se);
|
|
|
3387 |
}
|
|
|
3388 |
}
|
|
|
3389 |
|
|
|
3390 |
public getLogisticsEstimation_result deepCopy() {
|
|
|
3391 |
return new getLogisticsEstimation_result(this);
|
|
|
3392 |
}
|
|
|
3393 |
|
| 3430 |
rajveer |
3394 |
@Override
|
|
|
3395 |
public void clear() {
|
|
|
3396 |
this.success = null;
|
|
|
3397 |
this.se = null;
|
| 471 |
rajveer |
3398 |
}
|
|
|
3399 |
|
| 648 |
chandransh |
3400 |
public LogisticsInfo getSuccess() {
|
| 471 |
rajveer |
3401 |
return this.success;
|
|
|
3402 |
}
|
|
|
3403 |
|
| 3430 |
rajveer |
3404 |
public void setSuccess(LogisticsInfo success) {
|
| 471 |
rajveer |
3405 |
this.success = success;
|
|
|
3406 |
}
|
|
|
3407 |
|
|
|
3408 |
public void unsetSuccess() {
|
|
|
3409 |
this.success = null;
|
|
|
3410 |
}
|
|
|
3411 |
|
| 3430 |
rajveer |
3412 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 471 |
rajveer |
3413 |
public boolean isSetSuccess() {
|
|
|
3414 |
return this.success != null;
|
|
|
3415 |
}
|
|
|
3416 |
|
|
|
3417 |
public void setSuccessIsSet(boolean value) {
|
|
|
3418 |
if (!value) {
|
|
|
3419 |
this.success = null;
|
|
|
3420 |
}
|
|
|
3421 |
}
|
|
|
3422 |
|
|
|
3423 |
public LogisticsServiceException getSe() {
|
|
|
3424 |
return this.se;
|
|
|
3425 |
}
|
|
|
3426 |
|
| 3430 |
rajveer |
3427 |
public void setSe(LogisticsServiceException se) {
|
| 471 |
rajveer |
3428 |
this.se = se;
|
|
|
3429 |
}
|
|
|
3430 |
|
|
|
3431 |
public void unsetSe() {
|
|
|
3432 |
this.se = null;
|
|
|
3433 |
}
|
|
|
3434 |
|
| 3430 |
rajveer |
3435 |
/** Returns true if field se is set (has been assigned a value) and false otherwise */
|
| 471 |
rajveer |
3436 |
public boolean isSetSe() {
|
|
|
3437 |
return this.se != null;
|
|
|
3438 |
}
|
|
|
3439 |
|
|
|
3440 |
public void setSeIsSet(boolean value) {
|
|
|
3441 |
if (!value) {
|
|
|
3442 |
this.se = null;
|
|
|
3443 |
}
|
|
|
3444 |
}
|
|
|
3445 |
|
|
|
3446 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
3447 |
switch (field) {
|
|
|
3448 |
case SUCCESS:
|
|
|
3449 |
if (value == null) {
|
|
|
3450 |
unsetSuccess();
|
|
|
3451 |
} else {
|
| 648 |
chandransh |
3452 |
setSuccess((LogisticsInfo)value);
|
| 471 |
rajveer |
3453 |
}
|
|
|
3454 |
break;
|
|
|
3455 |
|
|
|
3456 |
case SE:
|
|
|
3457 |
if (value == null) {
|
|
|
3458 |
unsetSe();
|
|
|
3459 |
} else {
|
|
|
3460 |
setSe((LogisticsServiceException)value);
|
|
|
3461 |
}
|
|
|
3462 |
break;
|
|
|
3463 |
|
|
|
3464 |
}
|
|
|
3465 |
}
|
|
|
3466 |
|
|
|
3467 |
public Object getFieldValue(_Fields field) {
|
|
|
3468 |
switch (field) {
|
|
|
3469 |
case SUCCESS:
|
|
|
3470 |
return getSuccess();
|
|
|
3471 |
|
|
|
3472 |
case SE:
|
|
|
3473 |
return getSe();
|
|
|
3474 |
|
|
|
3475 |
}
|
|
|
3476 |
throw new IllegalStateException();
|
|
|
3477 |
}
|
|
|
3478 |
|
| 3430 |
rajveer |
3479 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
3480 |
public boolean isSet(_Fields field) {
|
|
|
3481 |
if (field == null) {
|
|
|
3482 |
throw new IllegalArgumentException();
|
|
|
3483 |
}
|
| 471 |
rajveer |
3484 |
|
|
|
3485 |
switch (field) {
|
|
|
3486 |
case SUCCESS:
|
|
|
3487 |
return isSetSuccess();
|
|
|
3488 |
case SE:
|
|
|
3489 |
return isSetSe();
|
|
|
3490 |
}
|
|
|
3491 |
throw new IllegalStateException();
|
|
|
3492 |
}
|
|
|
3493 |
|
|
|
3494 |
@Override
|
|
|
3495 |
public boolean equals(Object that) {
|
|
|
3496 |
if (that == null)
|
|
|
3497 |
return false;
|
|
|
3498 |
if (that instanceof getLogisticsEstimation_result)
|
|
|
3499 |
return this.equals((getLogisticsEstimation_result)that);
|
|
|
3500 |
return false;
|
|
|
3501 |
}
|
|
|
3502 |
|
|
|
3503 |
public boolean equals(getLogisticsEstimation_result that) {
|
|
|
3504 |
if (that == null)
|
|
|
3505 |
return false;
|
|
|
3506 |
|
|
|
3507 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
3508 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
3509 |
if (this_present_success || that_present_success) {
|
|
|
3510 |
if (!(this_present_success && that_present_success))
|
|
|
3511 |
return false;
|
|
|
3512 |
if (!this.success.equals(that.success))
|
|
|
3513 |
return false;
|
|
|
3514 |
}
|
|
|
3515 |
|
|
|
3516 |
boolean this_present_se = true && this.isSetSe();
|
|
|
3517 |
boolean that_present_se = true && that.isSetSe();
|
|
|
3518 |
if (this_present_se || that_present_se) {
|
|
|
3519 |
if (!(this_present_se && that_present_se))
|
|
|
3520 |
return false;
|
|
|
3521 |
if (!this.se.equals(that.se))
|
|
|
3522 |
return false;
|
|
|
3523 |
}
|
|
|
3524 |
|
|
|
3525 |
return true;
|
|
|
3526 |
}
|
|
|
3527 |
|
|
|
3528 |
@Override
|
|
|
3529 |
public int hashCode() {
|
|
|
3530 |
return 0;
|
|
|
3531 |
}
|
|
|
3532 |
|
|
|
3533 |
public int compareTo(getLogisticsEstimation_result other) {
|
|
|
3534 |
if (!getClass().equals(other.getClass())) {
|
|
|
3535 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
3536 |
}
|
|
|
3537 |
|
|
|
3538 |
int lastComparison = 0;
|
|
|
3539 |
getLogisticsEstimation_result typedOther = (getLogisticsEstimation_result)other;
|
|
|
3540 |
|
| 3430 |
rajveer |
3541 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 471 |
rajveer |
3542 |
if (lastComparison != 0) {
|
|
|
3543 |
return lastComparison;
|
|
|
3544 |
}
|
| 3430 |
rajveer |
3545 |
if (isSetSuccess()) {
|
|
|
3546 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
3547 |
if (lastComparison != 0) {
|
|
|
3548 |
return lastComparison;
|
|
|
3549 |
}
|
| 471 |
rajveer |
3550 |
}
|
| 3430 |
rajveer |
3551 |
lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
|
| 471 |
rajveer |
3552 |
if (lastComparison != 0) {
|
|
|
3553 |
return lastComparison;
|
|
|
3554 |
}
|
| 3430 |
rajveer |
3555 |
if (isSetSe()) {
|
|
|
3556 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
|
|
|
3557 |
if (lastComparison != 0) {
|
|
|
3558 |
return lastComparison;
|
|
|
3559 |
}
|
| 471 |
rajveer |
3560 |
}
|
|
|
3561 |
return 0;
|
|
|
3562 |
}
|
|
|
3563 |
|
| 3430 |
rajveer |
3564 |
public _Fields fieldForId(int fieldId) {
|
|
|
3565 |
return _Fields.findByThriftId(fieldId);
|
|
|
3566 |
}
|
|
|
3567 |
|
|
|
3568 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
3569 |
org.apache.thrift.protocol.TField field;
|
| 471 |
rajveer |
3570 |
iprot.readStructBegin();
|
|
|
3571 |
while (true)
|
|
|
3572 |
{
|
|
|
3573 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
3574 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 471 |
rajveer |
3575 |
break;
|
|
|
3576 |
}
|
| 3430 |
rajveer |
3577 |
switch (field.id) {
|
|
|
3578 |
case 0: // SUCCESS
|
|
|
3579 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
3580 |
this.success = new LogisticsInfo();
|
|
|
3581 |
this.success.read(iprot);
|
|
|
3582 |
} else {
|
|
|
3583 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3584 |
}
|
|
|
3585 |
break;
|
|
|
3586 |
case 1: // SE
|
|
|
3587 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
3588 |
this.se = new LogisticsServiceException();
|
|
|
3589 |
this.se.read(iprot);
|
|
|
3590 |
} else {
|
|
|
3591 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3592 |
}
|
|
|
3593 |
break;
|
|
|
3594 |
default:
|
|
|
3595 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 471 |
rajveer |
3596 |
}
|
| 3430 |
rajveer |
3597 |
iprot.readFieldEnd();
|
| 471 |
rajveer |
3598 |
}
|
|
|
3599 |
iprot.readStructEnd();
|
|
|
3600 |
validate();
|
|
|
3601 |
}
|
|
|
3602 |
|
| 3430 |
rajveer |
3603 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 471 |
rajveer |
3604 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
3605 |
|
|
|
3606 |
if (this.isSetSuccess()) {
|
|
|
3607 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
3608 |
this.success.write(oprot);
|
|
|
3609 |
oprot.writeFieldEnd();
|
|
|
3610 |
} else if (this.isSetSe()) {
|
|
|
3611 |
oprot.writeFieldBegin(SE_FIELD_DESC);
|
|
|
3612 |
this.se.write(oprot);
|
|
|
3613 |
oprot.writeFieldEnd();
|
|
|
3614 |
}
|
|
|
3615 |
oprot.writeFieldStop();
|
|
|
3616 |
oprot.writeStructEnd();
|
|
|
3617 |
}
|
|
|
3618 |
|
|
|
3619 |
@Override
|
|
|
3620 |
public String toString() {
|
|
|
3621 |
StringBuilder sb = new StringBuilder("getLogisticsEstimation_result(");
|
|
|
3622 |
boolean first = true;
|
|
|
3623 |
|
|
|
3624 |
sb.append("success:");
|
|
|
3625 |
if (this.success == null) {
|
|
|
3626 |
sb.append("null");
|
|
|
3627 |
} else {
|
|
|
3628 |
sb.append(this.success);
|
|
|
3629 |
}
|
|
|
3630 |
first = false;
|
|
|
3631 |
if (!first) sb.append(", ");
|
|
|
3632 |
sb.append("se:");
|
|
|
3633 |
if (this.se == null) {
|
|
|
3634 |
sb.append("null");
|
|
|
3635 |
} else {
|
|
|
3636 |
sb.append(this.se);
|
|
|
3637 |
}
|
|
|
3638 |
first = false;
|
|
|
3639 |
sb.append(")");
|
|
|
3640 |
return sb.toString();
|
|
|
3641 |
}
|
|
|
3642 |
|
| 3430 |
rajveer |
3643 |
public void validate() throws org.apache.thrift.TException {
|
| 471 |
rajveer |
3644 |
// check for required fields
|
|
|
3645 |
}
|
|
|
3646 |
|
| 3430 |
rajveer |
3647 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
3648 |
try {
|
|
|
3649 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
3650 |
} catch (org.apache.thrift.TException te) {
|
|
|
3651 |
throw new java.io.IOException(te);
|
|
|
3652 |
}
|
|
|
3653 |
}
|
|
|
3654 |
|
|
|
3655 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
3656 |
try {
|
|
|
3657 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
3658 |
} catch (org.apache.thrift.TException te) {
|
|
|
3659 |
throw new java.io.IOException(te);
|
|
|
3660 |
}
|
|
|
3661 |
}
|
|
|
3662 |
|
| 471 |
rajveer |
3663 |
}
|
|
|
3664 |
|
| 3430 |
rajveer |
3665 |
public static class getLogisticsInfo_args implements org.apache.thrift.TBase<getLogisticsInfo_args, getLogisticsInfo_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
3666 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_args");
|
| 471 |
rajveer |
3667 |
|
| 3430 |
rajveer |
3668 |
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);
|
|
|
3669 |
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);
|
|
|
3670 |
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 |
3671 |
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 |
3672 |
|
| 3430 |
rajveer |
3673 |
private String destination_pincode; // required
|
|
|
3674 |
private long item_id; // required
|
|
|
3675 |
private DeliveryType type; // required
|
| 5766 |
rajveer |
3676 |
private PickUpType pickUp; // required
|
| 471 |
rajveer |
3677 |
|
|
|
3678 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
3679 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 648 |
chandransh |
3680 |
DESTINATION_PINCODE((short)1, "destination_pincode"),
|
| 3044 |
chandransh |
3681 |
ITEM_ID((short)2, "item_id"),
|
|
|
3682 |
/**
|
|
|
3683 |
*
|
|
|
3684 |
* @see DeliveryType
|
|
|
3685 |
*/
|
| 5766 |
rajveer |
3686 |
TYPE((short)3, "type"),
|
|
|
3687 |
/**
|
|
|
3688 |
*
|
|
|
3689 |
* @see PickUpType
|
|
|
3690 |
*/
|
|
|
3691 |
PICK_UP((short)4, "pickUp");
|
| 471 |
rajveer |
3692 |
|
|
|
3693 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
3694 |
|
|
|
3695 |
static {
|
|
|
3696 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
3697 |
byName.put(field.getFieldName(), field);
|
|
|
3698 |
}
|
|
|
3699 |
}
|
|
|
3700 |
|
|
|
3701 |
/**
|
|
|
3702 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
3703 |
*/
|
|
|
3704 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
3705 |
switch(fieldId) {
|
|
|
3706 |
case 1: // DESTINATION_PINCODE
|
|
|
3707 |
return DESTINATION_PINCODE;
|
|
|
3708 |
case 2: // ITEM_ID
|
|
|
3709 |
return ITEM_ID;
|
|
|
3710 |
case 3: // TYPE
|
|
|
3711 |
return TYPE;
|
| 5766 |
rajveer |
3712 |
case 4: // PICK_UP
|
|
|
3713 |
return PICK_UP;
|
| 3430 |
rajveer |
3714 |
default:
|
|
|
3715 |
return null;
|
|
|
3716 |
}
|
| 471 |
rajveer |
3717 |
}
|
|
|
3718 |
|
|
|
3719 |
/**
|
|
|
3720 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
3721 |
* if it is not found.
|
|
|
3722 |
*/
|
|
|
3723 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
3724 |
_Fields fields = findByThriftId(fieldId);
|
|
|
3725 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
3726 |
return fields;
|
|
|
3727 |
}
|
|
|
3728 |
|
|
|
3729 |
/**
|
|
|
3730 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
3731 |
*/
|
|
|
3732 |
public static _Fields findByName(String name) {
|
|
|
3733 |
return byName.get(name);
|
|
|
3734 |
}
|
|
|
3735 |
|
|
|
3736 |
private final short _thriftId;
|
|
|
3737 |
private final String _fieldName;
|
|
|
3738 |
|
|
|
3739 |
_Fields(short thriftId, String fieldName) {
|
|
|
3740 |
_thriftId = thriftId;
|
|
|
3741 |
_fieldName = fieldName;
|
|
|
3742 |
}
|
|
|
3743 |
|
|
|
3744 |
public short getThriftFieldId() {
|
|
|
3745 |
return _thriftId;
|
|
|
3746 |
}
|
|
|
3747 |
|
|
|
3748 |
public String getFieldName() {
|
|
|
3749 |
return _fieldName;
|
|
|
3750 |
}
|
|
|
3751 |
}
|
|
|
3752 |
|
|
|
3753 |
// isset id assignments
|
| 715 |
rajveer |
3754 |
private static final int __ITEM_ID_ISSET_ID = 0;
|
|
|
3755 |
private BitSet __isset_bit_vector = new BitSet(1);
|
| 471 |
rajveer |
3756 |
|
| 3430 |
rajveer |
3757 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 477 |
rajveer |
3758 |
static {
|
| 3430 |
rajveer |
3759 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
3760 |
tmpMap.put(_Fields.DESTINATION_PINCODE, new org.apache.thrift.meta_data.FieldMetaData("destination_pincode", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3761 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
3762 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3763 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
3764 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3765 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
|
| 5766 |
rajveer |
3766 |
tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3767 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PickUpType.class)));
|
| 3430 |
rajveer |
3768 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
3769 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_args.class, metaDataMap);
|
| 477 |
rajveer |
3770 |
}
|
|
|
3771 |
|
| 648 |
chandransh |
3772 |
public getLogisticsInfo_args() {
|
| 477 |
rajveer |
3773 |
}
|
|
|
3774 |
|
| 648 |
chandransh |
3775 |
public getLogisticsInfo_args(
|
|
|
3776 |
String destination_pincode,
|
| 3044 |
chandransh |
3777 |
long item_id,
|
| 5766 |
rajveer |
3778 |
DeliveryType type,
|
|
|
3779 |
PickUpType pickUp)
|
| 477 |
rajveer |
3780 |
{
|
|
|
3781 |
this();
|
| 648 |
chandransh |
3782 |
this.destination_pincode = destination_pincode;
|
|
|
3783 |
this.item_id = item_id;
|
| 715 |
rajveer |
3784 |
setItem_idIsSet(true);
|
| 3044 |
chandransh |
3785 |
this.type = type;
|
| 5766 |
rajveer |
3786 |
this.pickUp = pickUp;
|
| 477 |
rajveer |
3787 |
}
|
|
|
3788 |
|
|
|
3789 |
/**
|
|
|
3790 |
* Performs a deep copy on <i>other</i>.
|
|
|
3791 |
*/
|
| 648 |
chandransh |
3792 |
public getLogisticsInfo_args(getLogisticsInfo_args other) {
|
| 715 |
rajveer |
3793 |
__isset_bit_vector.clear();
|
|
|
3794 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 648 |
chandransh |
3795 |
if (other.isSetDestination_pincode()) {
|
|
|
3796 |
this.destination_pincode = other.destination_pincode;
|
| 477 |
rajveer |
3797 |
}
|
| 715 |
rajveer |
3798 |
this.item_id = other.item_id;
|
| 3044 |
chandransh |
3799 |
if (other.isSetType()) {
|
|
|
3800 |
this.type = other.type;
|
|
|
3801 |
}
|
| 5766 |
rajveer |
3802 |
if (other.isSetPickUp()) {
|
|
|
3803 |
this.pickUp = other.pickUp;
|
|
|
3804 |
}
|
| 477 |
rajveer |
3805 |
}
|
|
|
3806 |
|
| 648 |
chandransh |
3807 |
public getLogisticsInfo_args deepCopy() {
|
|
|
3808 |
return new getLogisticsInfo_args(this);
|
| 477 |
rajveer |
3809 |
}
|
|
|
3810 |
|
| 3430 |
rajveer |
3811 |
@Override
|
|
|
3812 |
public void clear() {
|
|
|
3813 |
this.destination_pincode = null;
|
|
|
3814 |
setItem_idIsSet(false);
|
|
|
3815 |
this.item_id = 0;
|
|
|
3816 |
this.type = null;
|
| 5766 |
rajveer |
3817 |
this.pickUp = null;
|
| 477 |
rajveer |
3818 |
}
|
|
|
3819 |
|
| 648 |
chandransh |
3820 |
public String getDestination_pincode() {
|
|
|
3821 |
return this.destination_pincode;
|
| 477 |
rajveer |
3822 |
}
|
|
|
3823 |
|
| 3430 |
rajveer |
3824 |
public void setDestination_pincode(String destination_pincode) {
|
| 648 |
chandransh |
3825 |
this.destination_pincode = destination_pincode;
|
| 477 |
rajveer |
3826 |
}
|
|
|
3827 |
|
| 648 |
chandransh |
3828 |
public void unsetDestination_pincode() {
|
|
|
3829 |
this.destination_pincode = null;
|
| 477 |
rajveer |
3830 |
}
|
|
|
3831 |
|
| 3430 |
rajveer |
3832 |
/** Returns true if field destination_pincode is set (has been assigned a value) and false otherwise */
|
| 648 |
chandransh |
3833 |
public boolean isSetDestination_pincode() {
|
|
|
3834 |
return this.destination_pincode != null;
|
| 477 |
rajveer |
3835 |
}
|
|
|
3836 |
|
| 648 |
chandransh |
3837 |
public void setDestination_pincodeIsSet(boolean value) {
|
| 477 |
rajveer |
3838 |
if (!value) {
|
| 648 |
chandransh |
3839 |
this.destination_pincode = null;
|
| 477 |
rajveer |
3840 |
}
|
|
|
3841 |
}
|
|
|
3842 |
|
| 715 |
rajveer |
3843 |
public long getItem_id() {
|
| 648 |
chandransh |
3844 |
return this.item_id;
|
| 477 |
rajveer |
3845 |
}
|
|
|
3846 |
|
| 3430 |
rajveer |
3847 |
public void setItem_id(long item_id) {
|
| 648 |
chandransh |
3848 |
this.item_id = item_id;
|
| 715 |
rajveer |
3849 |
setItem_idIsSet(true);
|
| 477 |
rajveer |
3850 |
}
|
|
|
3851 |
|
| 648 |
chandransh |
3852 |
public void unsetItem_id() {
|
| 715 |
rajveer |
3853 |
__isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
|
| 477 |
rajveer |
3854 |
}
|
|
|
3855 |
|
| 3430 |
rajveer |
3856 |
/** Returns true if field item_id is set (has been assigned a value) and false otherwise */
|
| 648 |
chandransh |
3857 |
public boolean isSetItem_id() {
|
| 715 |
rajveer |
3858 |
return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
|
| 477 |
rajveer |
3859 |
}
|
|
|
3860 |
|
| 648 |
chandransh |
3861 |
public void setItem_idIsSet(boolean value) {
|
| 715 |
rajveer |
3862 |
__isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
|
| 477 |
rajveer |
3863 |
}
|
|
|
3864 |
|
| 3044 |
chandransh |
3865 |
/**
|
|
|
3866 |
*
|
|
|
3867 |
* @see DeliveryType
|
|
|
3868 |
*/
|
|
|
3869 |
public DeliveryType getType() {
|
|
|
3870 |
return this.type;
|
|
|
3871 |
}
|
|
|
3872 |
|
|
|
3873 |
/**
|
|
|
3874 |
*
|
|
|
3875 |
* @see DeliveryType
|
|
|
3876 |
*/
|
| 3430 |
rajveer |
3877 |
public void setType(DeliveryType type) {
|
| 3044 |
chandransh |
3878 |
this.type = type;
|
|
|
3879 |
}
|
|
|
3880 |
|
|
|
3881 |
public void unsetType() {
|
|
|
3882 |
this.type = null;
|
|
|
3883 |
}
|
|
|
3884 |
|
| 3430 |
rajveer |
3885 |
/** Returns true if field type is set (has been assigned a value) and false otherwise */
|
| 3044 |
chandransh |
3886 |
public boolean isSetType() {
|
|
|
3887 |
return this.type != null;
|
|
|
3888 |
}
|
|
|
3889 |
|
|
|
3890 |
public void setTypeIsSet(boolean value) {
|
|
|
3891 |
if (!value) {
|
|
|
3892 |
this.type = null;
|
|
|
3893 |
}
|
|
|
3894 |
}
|
|
|
3895 |
|
| 5766 |
rajveer |
3896 |
/**
|
|
|
3897 |
*
|
|
|
3898 |
* @see PickUpType
|
|
|
3899 |
*/
|
|
|
3900 |
public PickUpType getPickUp() {
|
|
|
3901 |
return this.pickUp;
|
|
|
3902 |
}
|
|
|
3903 |
|
|
|
3904 |
/**
|
|
|
3905 |
*
|
|
|
3906 |
* @see PickUpType
|
|
|
3907 |
*/
|
|
|
3908 |
public void setPickUp(PickUpType pickUp) {
|
|
|
3909 |
this.pickUp = pickUp;
|
|
|
3910 |
}
|
|
|
3911 |
|
|
|
3912 |
public void unsetPickUp() {
|
|
|
3913 |
this.pickUp = null;
|
|
|
3914 |
}
|
|
|
3915 |
|
|
|
3916 |
/** Returns true if field pickUp is set (has been assigned a value) and false otherwise */
|
|
|
3917 |
public boolean isSetPickUp() {
|
|
|
3918 |
return this.pickUp != null;
|
|
|
3919 |
}
|
|
|
3920 |
|
|
|
3921 |
public void setPickUpIsSet(boolean value) {
|
|
|
3922 |
if (!value) {
|
|
|
3923 |
this.pickUp = null;
|
|
|
3924 |
}
|
|
|
3925 |
}
|
|
|
3926 |
|
| 477 |
rajveer |
3927 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
3928 |
switch (field) {
|
| 648 |
chandransh |
3929 |
case DESTINATION_PINCODE:
|
| 477 |
rajveer |
3930 |
if (value == null) {
|
| 648 |
chandransh |
3931 |
unsetDestination_pincode();
|
| 477 |
rajveer |
3932 |
} else {
|
| 648 |
chandransh |
3933 |
setDestination_pincode((String)value);
|
| 477 |
rajveer |
3934 |
}
|
|
|
3935 |
break;
|
|
|
3936 |
|
| 648 |
chandransh |
3937 |
case ITEM_ID:
|
| 477 |
rajveer |
3938 |
if (value == null) {
|
| 648 |
chandransh |
3939 |
unsetItem_id();
|
| 477 |
rajveer |
3940 |
} else {
|
| 715 |
rajveer |
3941 |
setItem_id((Long)value);
|
| 477 |
rajveer |
3942 |
}
|
|
|
3943 |
break;
|
|
|
3944 |
|
| 3044 |
chandransh |
3945 |
case TYPE:
|
|
|
3946 |
if (value == null) {
|
|
|
3947 |
unsetType();
|
|
|
3948 |
} else {
|
|
|
3949 |
setType((DeliveryType)value);
|
|
|
3950 |
}
|
|
|
3951 |
break;
|
|
|
3952 |
|
| 5766 |
rajveer |
3953 |
case PICK_UP:
|
|
|
3954 |
if (value == null) {
|
|
|
3955 |
unsetPickUp();
|
|
|
3956 |
} else {
|
|
|
3957 |
setPickUp((PickUpType)value);
|
|
|
3958 |
}
|
|
|
3959 |
break;
|
|
|
3960 |
|
| 477 |
rajveer |
3961 |
}
|
|
|
3962 |
}
|
|
|
3963 |
|
|
|
3964 |
public Object getFieldValue(_Fields field) {
|
|
|
3965 |
switch (field) {
|
| 648 |
chandransh |
3966 |
case DESTINATION_PINCODE:
|
|
|
3967 |
return getDestination_pincode();
|
| 477 |
rajveer |
3968 |
|
| 648 |
chandransh |
3969 |
case ITEM_ID:
|
| 3430 |
rajveer |
3970 |
return Long.valueOf(getItem_id());
|
| 477 |
rajveer |
3971 |
|
| 3044 |
chandransh |
3972 |
case TYPE:
|
|
|
3973 |
return getType();
|
|
|
3974 |
|
| 5766 |
rajveer |
3975 |
case PICK_UP:
|
|
|
3976 |
return getPickUp();
|
|
|
3977 |
|
| 477 |
rajveer |
3978 |
}
|
|
|
3979 |
throw new IllegalStateException();
|
|
|
3980 |
}
|
|
|
3981 |
|
| 3430 |
rajveer |
3982 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
3983 |
public boolean isSet(_Fields field) {
|
|
|
3984 |
if (field == null) {
|
|
|
3985 |
throw new IllegalArgumentException();
|
|
|
3986 |
}
|
| 477 |
rajveer |
3987 |
|
|
|
3988 |
switch (field) {
|
| 648 |
chandransh |
3989 |
case DESTINATION_PINCODE:
|
|
|
3990 |
return isSetDestination_pincode();
|
|
|
3991 |
case ITEM_ID:
|
|
|
3992 |
return isSetItem_id();
|
| 3044 |
chandransh |
3993 |
case TYPE:
|
|
|
3994 |
return isSetType();
|
| 5766 |
rajveer |
3995 |
case PICK_UP:
|
|
|
3996 |
return isSetPickUp();
|
| 477 |
rajveer |
3997 |
}
|
|
|
3998 |
throw new IllegalStateException();
|
|
|
3999 |
}
|
|
|
4000 |
|
|
|
4001 |
@Override
|
|
|
4002 |
public boolean equals(Object that) {
|
|
|
4003 |
if (that == null)
|
|
|
4004 |
return false;
|
| 648 |
chandransh |
4005 |
if (that instanceof getLogisticsInfo_args)
|
|
|
4006 |
return this.equals((getLogisticsInfo_args)that);
|
| 477 |
rajveer |
4007 |
return false;
|
|
|
4008 |
}
|
|
|
4009 |
|
| 648 |
chandransh |
4010 |
public boolean equals(getLogisticsInfo_args that) {
|
| 477 |
rajveer |
4011 |
if (that == null)
|
|
|
4012 |
return false;
|
|
|
4013 |
|
| 648 |
chandransh |
4014 |
boolean this_present_destination_pincode = true && this.isSetDestination_pincode();
|
|
|
4015 |
boolean that_present_destination_pincode = true && that.isSetDestination_pincode();
|
|
|
4016 |
if (this_present_destination_pincode || that_present_destination_pincode) {
|
|
|
4017 |
if (!(this_present_destination_pincode && that_present_destination_pincode))
|
| 477 |
rajveer |
4018 |
return false;
|
| 648 |
chandransh |
4019 |
if (!this.destination_pincode.equals(that.destination_pincode))
|
| 477 |
rajveer |
4020 |
return false;
|
|
|
4021 |
}
|
|
|
4022 |
|
| 715 |
rajveer |
4023 |
boolean this_present_item_id = true;
|
|
|
4024 |
boolean that_present_item_id = true;
|
| 648 |
chandransh |
4025 |
if (this_present_item_id || that_present_item_id) {
|
|
|
4026 |
if (!(this_present_item_id && that_present_item_id))
|
| 477 |
rajveer |
4027 |
return false;
|
| 715 |
rajveer |
4028 |
if (this.item_id != that.item_id)
|
| 477 |
rajveer |
4029 |
return false;
|
|
|
4030 |
}
|
|
|
4031 |
|
| 3044 |
chandransh |
4032 |
boolean this_present_type = true && this.isSetType();
|
|
|
4033 |
boolean that_present_type = true && that.isSetType();
|
|
|
4034 |
if (this_present_type || that_present_type) {
|
|
|
4035 |
if (!(this_present_type && that_present_type))
|
|
|
4036 |
return false;
|
|
|
4037 |
if (!this.type.equals(that.type))
|
|
|
4038 |
return false;
|
|
|
4039 |
}
|
|
|
4040 |
|
| 5766 |
rajveer |
4041 |
boolean this_present_pickUp = true && this.isSetPickUp();
|
|
|
4042 |
boolean that_present_pickUp = true && that.isSetPickUp();
|
|
|
4043 |
if (this_present_pickUp || that_present_pickUp) {
|
|
|
4044 |
if (!(this_present_pickUp && that_present_pickUp))
|
|
|
4045 |
return false;
|
|
|
4046 |
if (!this.pickUp.equals(that.pickUp))
|
|
|
4047 |
return false;
|
|
|
4048 |
}
|
|
|
4049 |
|
| 477 |
rajveer |
4050 |
return true;
|
|
|
4051 |
}
|
|
|
4052 |
|
|
|
4053 |
@Override
|
|
|
4054 |
public int hashCode() {
|
|
|
4055 |
return 0;
|
|
|
4056 |
}
|
|
|
4057 |
|
| 648 |
chandransh |
4058 |
public int compareTo(getLogisticsInfo_args other) {
|
| 477 |
rajveer |
4059 |
if (!getClass().equals(other.getClass())) {
|
|
|
4060 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
4061 |
}
|
|
|
4062 |
|
|
|
4063 |
int lastComparison = 0;
|
| 648 |
chandransh |
4064 |
getLogisticsInfo_args typedOther = (getLogisticsInfo_args)other;
|
| 477 |
rajveer |
4065 |
|
| 3430 |
rajveer |
4066 |
lastComparison = Boolean.valueOf(isSetDestination_pincode()).compareTo(typedOther.isSetDestination_pincode());
|
| 477 |
rajveer |
4067 |
if (lastComparison != 0) {
|
|
|
4068 |
return lastComparison;
|
|
|
4069 |
}
|
| 3430 |
rajveer |
4070 |
if (isSetDestination_pincode()) {
|
|
|
4071 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pincode, typedOther.destination_pincode);
|
|
|
4072 |
if (lastComparison != 0) {
|
|
|
4073 |
return lastComparison;
|
|
|
4074 |
}
|
| 477 |
rajveer |
4075 |
}
|
| 3430 |
rajveer |
4076 |
lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
|
| 477 |
rajveer |
4077 |
if (lastComparison != 0) {
|
|
|
4078 |
return lastComparison;
|
|
|
4079 |
}
|
| 3430 |
rajveer |
4080 |
if (isSetItem_id()) {
|
|
|
4081 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
|
|
|
4082 |
if (lastComparison != 0) {
|
|
|
4083 |
return lastComparison;
|
|
|
4084 |
}
|
| 477 |
rajveer |
4085 |
}
|
| 3430 |
rajveer |
4086 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
| 3044 |
chandransh |
4087 |
if (lastComparison != 0) {
|
|
|
4088 |
return lastComparison;
|
|
|
4089 |
}
|
| 3430 |
rajveer |
4090 |
if (isSetType()) {
|
|
|
4091 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
|
|
4092 |
if (lastComparison != 0) {
|
|
|
4093 |
return lastComparison;
|
|
|
4094 |
}
|
| 3044 |
chandransh |
4095 |
}
|
| 5766 |
rajveer |
4096 |
lastComparison = Boolean.valueOf(isSetPickUp()).compareTo(typedOther.isSetPickUp());
|
|
|
4097 |
if (lastComparison != 0) {
|
|
|
4098 |
return lastComparison;
|
|
|
4099 |
}
|
|
|
4100 |
if (isSetPickUp()) {
|
|
|
4101 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
|
|
|
4102 |
if (lastComparison != 0) {
|
|
|
4103 |
return lastComparison;
|
|
|
4104 |
}
|
|
|
4105 |
}
|
| 477 |
rajveer |
4106 |
return 0;
|
|
|
4107 |
}
|
|
|
4108 |
|
| 3430 |
rajveer |
4109 |
public _Fields fieldForId(int fieldId) {
|
|
|
4110 |
return _Fields.findByThriftId(fieldId);
|
|
|
4111 |
}
|
|
|
4112 |
|
|
|
4113 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
4114 |
org.apache.thrift.protocol.TField field;
|
| 477 |
rajveer |
4115 |
iprot.readStructBegin();
|
|
|
4116 |
while (true)
|
|
|
4117 |
{
|
|
|
4118 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
4119 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 477 |
rajveer |
4120 |
break;
|
|
|
4121 |
}
|
| 3430 |
rajveer |
4122 |
switch (field.id) {
|
|
|
4123 |
case 1: // DESTINATION_PINCODE
|
|
|
4124 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
4125 |
this.destination_pincode = iprot.readString();
|
|
|
4126 |
} else {
|
|
|
4127 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4128 |
}
|
|
|
4129 |
break;
|
|
|
4130 |
case 2: // ITEM_ID
|
|
|
4131 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
4132 |
this.item_id = iprot.readI64();
|
|
|
4133 |
setItem_idIsSet(true);
|
|
|
4134 |
} else {
|
|
|
4135 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4136 |
}
|
|
|
4137 |
break;
|
|
|
4138 |
case 3: // TYPE
|
|
|
4139 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
4140 |
this.type = DeliveryType.findByValue(iprot.readI32());
|
|
|
4141 |
} else {
|
|
|
4142 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4143 |
}
|
|
|
4144 |
break;
|
| 5766 |
rajveer |
4145 |
case 4: // PICK_UP
|
|
|
4146 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
4147 |
this.pickUp = PickUpType.findByValue(iprot.readI32());
|
|
|
4148 |
} else {
|
|
|
4149 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4150 |
}
|
|
|
4151 |
break;
|
| 3430 |
rajveer |
4152 |
default:
|
|
|
4153 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 477 |
rajveer |
4154 |
}
|
| 3430 |
rajveer |
4155 |
iprot.readFieldEnd();
|
| 477 |
rajveer |
4156 |
}
|
|
|
4157 |
iprot.readStructEnd();
|
|
|
4158 |
validate();
|
|
|
4159 |
}
|
|
|
4160 |
|
| 3430 |
rajveer |
4161 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 477 |
rajveer |
4162 |
validate();
|
|
|
4163 |
|
|
|
4164 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 648 |
chandransh |
4165 |
if (this.destination_pincode != null) {
|
|
|
4166 |
oprot.writeFieldBegin(DESTINATION_PINCODE_FIELD_DESC);
|
|
|
4167 |
oprot.writeString(this.destination_pincode);
|
| 477 |
rajveer |
4168 |
oprot.writeFieldEnd();
|
|
|
4169 |
}
|
| 715 |
rajveer |
4170 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
4171 |
oprot.writeI64(this.item_id);
|
|
|
4172 |
oprot.writeFieldEnd();
|
| 3044 |
chandransh |
4173 |
if (this.type != null) {
|
|
|
4174 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
|
|
4175 |
oprot.writeI32(this.type.getValue());
|
|
|
4176 |
oprot.writeFieldEnd();
|
|
|
4177 |
}
|
| 5766 |
rajveer |
4178 |
if (this.pickUp != null) {
|
|
|
4179 |
oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
|
|
|
4180 |
oprot.writeI32(this.pickUp.getValue());
|
|
|
4181 |
oprot.writeFieldEnd();
|
|
|
4182 |
}
|
| 477 |
rajveer |
4183 |
oprot.writeFieldStop();
|
|
|
4184 |
oprot.writeStructEnd();
|
|
|
4185 |
}
|
|
|
4186 |
|
|
|
4187 |
@Override
|
|
|
4188 |
public String toString() {
|
| 648 |
chandransh |
4189 |
StringBuilder sb = new StringBuilder("getLogisticsInfo_args(");
|
| 477 |
rajveer |
4190 |
boolean first = true;
|
|
|
4191 |
|
| 648 |
chandransh |
4192 |
sb.append("destination_pincode:");
|
|
|
4193 |
if (this.destination_pincode == null) {
|
| 477 |
rajveer |
4194 |
sb.append("null");
|
|
|
4195 |
} else {
|
| 648 |
chandransh |
4196 |
sb.append(this.destination_pincode);
|
| 477 |
rajveer |
4197 |
}
|
|
|
4198 |
first = false;
|
|
|
4199 |
if (!first) sb.append(", ");
|
| 648 |
chandransh |
4200 |
sb.append("item_id:");
|
| 715 |
rajveer |
4201 |
sb.append(this.item_id);
|
| 477 |
rajveer |
4202 |
first = false;
|
| 3044 |
chandransh |
4203 |
if (!first) sb.append(", ");
|
|
|
4204 |
sb.append("type:");
|
|
|
4205 |
if (this.type == null) {
|
|
|
4206 |
sb.append("null");
|
|
|
4207 |
} else {
|
|
|
4208 |
sb.append(this.type);
|
|
|
4209 |
}
|
|
|
4210 |
first = false;
|
| 5766 |
rajveer |
4211 |
if (!first) sb.append(", ");
|
|
|
4212 |
sb.append("pickUp:");
|
|
|
4213 |
if (this.pickUp == null) {
|
|
|
4214 |
sb.append("null");
|
|
|
4215 |
} else {
|
|
|
4216 |
sb.append(this.pickUp);
|
|
|
4217 |
}
|
|
|
4218 |
first = false;
|
| 477 |
rajveer |
4219 |
sb.append(")");
|
|
|
4220 |
return sb.toString();
|
|
|
4221 |
}
|
|
|
4222 |
|
| 3430 |
rajveer |
4223 |
public void validate() throws org.apache.thrift.TException {
|
| 477 |
rajveer |
4224 |
// check for required fields
|
|
|
4225 |
}
|
|
|
4226 |
|
| 3430 |
rajveer |
4227 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
4228 |
try {
|
|
|
4229 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
4230 |
} catch (org.apache.thrift.TException te) {
|
|
|
4231 |
throw new java.io.IOException(te);
|
|
|
4232 |
}
|
|
|
4233 |
}
|
|
|
4234 |
|
|
|
4235 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
4236 |
try {
|
|
|
4237 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
4238 |
} catch (org.apache.thrift.TException te) {
|
|
|
4239 |
throw new java.io.IOException(te);
|
|
|
4240 |
}
|
|
|
4241 |
}
|
|
|
4242 |
|
| 477 |
rajveer |
4243 |
}
|
|
|
4244 |
|
| 3430 |
rajveer |
4245 |
public static class getLogisticsInfo_result implements org.apache.thrift.TBase<getLogisticsInfo_result, getLogisticsInfo_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
4246 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_result");
|
| 477 |
rajveer |
4247 |
|
| 3430 |
rajveer |
4248 |
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);
|
|
|
4249 |
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 |
4250 |
|
| 3430 |
rajveer |
4251 |
private LogisticsInfo success; // required
|
|
|
4252 |
private LogisticsServiceException se; // required
|
| 477 |
rajveer |
4253 |
|
|
|
4254 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
4255 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 648 |
chandransh |
4256 |
SUCCESS((short)0, "success"),
|
|
|
4257 |
SE((short)1, "se");
|
| 477 |
rajveer |
4258 |
|
|
|
4259 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
4260 |
|
|
|
4261 |
static {
|
|
|
4262 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
4263 |
byName.put(field.getFieldName(), field);
|
|
|
4264 |
}
|
|
|
4265 |
}
|
|
|
4266 |
|
|
|
4267 |
/**
|
|
|
4268 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
4269 |
*/
|
|
|
4270 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
4271 |
switch(fieldId) {
|
|
|
4272 |
case 0: // SUCCESS
|
|
|
4273 |
return SUCCESS;
|
|
|
4274 |
case 1: // SE
|
|
|
4275 |
return SE;
|
|
|
4276 |
default:
|
|
|
4277 |
return null;
|
|
|
4278 |
}
|
| 477 |
rajveer |
4279 |
}
|
|
|
4280 |
|
|
|
4281 |
/**
|
|
|
4282 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
4283 |
* if it is not found.
|
|
|
4284 |
*/
|
|
|
4285 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
4286 |
_Fields fields = findByThriftId(fieldId);
|
|
|
4287 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
4288 |
return fields;
|
|
|
4289 |
}
|
|
|
4290 |
|
|
|
4291 |
/**
|
|
|
4292 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
4293 |
*/
|
|
|
4294 |
public static _Fields findByName(String name) {
|
|
|
4295 |
return byName.get(name);
|
|
|
4296 |
}
|
|
|
4297 |
|
|
|
4298 |
private final short _thriftId;
|
|
|
4299 |
private final String _fieldName;
|
|
|
4300 |
|
|
|
4301 |
_Fields(short thriftId, String fieldName) {
|
|
|
4302 |
_thriftId = thriftId;
|
|
|
4303 |
_fieldName = fieldName;
|
|
|
4304 |
}
|
|
|
4305 |
|
|
|
4306 |
public short getThriftFieldId() {
|
|
|
4307 |
return _thriftId;
|
|
|
4308 |
}
|
|
|
4309 |
|
|
|
4310 |
public String getFieldName() {
|
|
|
4311 |
return _fieldName;
|
|
|
4312 |
}
|
|
|
4313 |
}
|
|
|
4314 |
|
| 412 |
ashish |
4315 |
// isset id assignments
|
|
|
4316 |
|
| 3430 |
rajveer |
4317 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 412 |
ashish |
4318 |
static {
|
| 3430 |
rajveer |
4319 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
4320 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4321 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
|
|
|
4322 |
tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4323 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
4324 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
4325 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_result.class, metaDataMap);
|
| 412 |
ashish |
4326 |
}
|
|
|
4327 |
|
| 648 |
chandransh |
4328 |
public getLogisticsInfo_result() {
|
| 412 |
ashish |
4329 |
}
|
|
|
4330 |
|
| 648 |
chandransh |
4331 |
public getLogisticsInfo_result(
|
|
|
4332 |
LogisticsInfo success,
|
|
|
4333 |
LogisticsServiceException se)
|
| 412 |
ashish |
4334 |
{
|
|
|
4335 |
this();
|
| 648 |
chandransh |
4336 |
this.success = success;
|
|
|
4337 |
this.se = se;
|
| 412 |
ashish |
4338 |
}
|
|
|
4339 |
|
|
|
4340 |
/**
|
|
|
4341 |
* Performs a deep copy on <i>other</i>.
|
|
|
4342 |
*/
|
| 648 |
chandransh |
4343 |
public getLogisticsInfo_result(getLogisticsInfo_result other) {
|
|
|
4344 |
if (other.isSetSuccess()) {
|
|
|
4345 |
this.success = new LogisticsInfo(other.success);
|
| 412 |
ashish |
4346 |
}
|
| 648 |
chandransh |
4347 |
if (other.isSetSe()) {
|
|
|
4348 |
this.se = new LogisticsServiceException(other.se);
|
|
|
4349 |
}
|
| 412 |
ashish |
4350 |
}
|
|
|
4351 |
|
| 648 |
chandransh |
4352 |
public getLogisticsInfo_result deepCopy() {
|
|
|
4353 |
return new getLogisticsInfo_result(this);
|
| 412 |
ashish |
4354 |
}
|
|
|
4355 |
|
| 3430 |
rajveer |
4356 |
@Override
|
|
|
4357 |
public void clear() {
|
|
|
4358 |
this.success = null;
|
|
|
4359 |
this.se = null;
|
| 412 |
ashish |
4360 |
}
|
|
|
4361 |
|
| 648 |
chandransh |
4362 |
public LogisticsInfo getSuccess() {
|
|
|
4363 |
return this.success;
|
| 412 |
ashish |
4364 |
}
|
|
|
4365 |
|
| 3430 |
rajveer |
4366 |
public void setSuccess(LogisticsInfo success) {
|
| 648 |
chandransh |
4367 |
this.success = success;
|
| 412 |
ashish |
4368 |
}
|
|
|
4369 |
|
| 648 |
chandransh |
4370 |
public void unsetSuccess() {
|
|
|
4371 |
this.success = null;
|
| 412 |
ashish |
4372 |
}
|
|
|
4373 |
|
| 3430 |
rajveer |
4374 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 648 |
chandransh |
4375 |
public boolean isSetSuccess() {
|
|
|
4376 |
return this.success != null;
|
| 412 |
ashish |
4377 |
}
|
|
|
4378 |
|
| 648 |
chandransh |
4379 |
public void setSuccessIsSet(boolean value) {
|
| 412 |
ashish |
4380 |
if (!value) {
|
| 648 |
chandransh |
4381 |
this.success = null;
|
| 412 |
ashish |
4382 |
}
|
|
|
4383 |
}
|
|
|
4384 |
|
| 648 |
chandransh |
4385 |
public LogisticsServiceException getSe() {
|
|
|
4386 |
return this.se;
|
| 412 |
ashish |
4387 |
}
|
|
|
4388 |
|
| 3430 |
rajveer |
4389 |
public void setSe(LogisticsServiceException se) {
|
| 648 |
chandransh |
4390 |
this.se = se;
|
| 412 |
ashish |
4391 |
}
|
|
|
4392 |
|
| 648 |
chandransh |
4393 |
public void unsetSe() {
|
|
|
4394 |
this.se = null;
|
| 412 |
ashish |
4395 |
}
|
|
|
4396 |
|
| 3430 |
rajveer |
4397 |
/** Returns true if field se is set (has been assigned a value) and false otherwise */
|
| 648 |
chandransh |
4398 |
public boolean isSetSe() {
|
|
|
4399 |
return this.se != null;
|
| 412 |
ashish |
4400 |
}
|
|
|
4401 |
|
| 648 |
chandransh |
4402 |
public void setSeIsSet(boolean value) {
|
|
|
4403 |
if (!value) {
|
|
|
4404 |
this.se = null;
|
|
|
4405 |
}
|
| 412 |
ashish |
4406 |
}
|
|
|
4407 |
|
|
|
4408 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
4409 |
switch (field) {
|
| 648 |
chandransh |
4410 |
case SUCCESS:
|
| 412 |
ashish |
4411 |
if (value == null) {
|
| 648 |
chandransh |
4412 |
unsetSuccess();
|
| 412 |
ashish |
4413 |
} else {
|
| 648 |
chandransh |
4414 |
setSuccess((LogisticsInfo)value);
|
| 412 |
ashish |
4415 |
}
|
|
|
4416 |
break;
|
|
|
4417 |
|
| 648 |
chandransh |
4418 |
case SE:
|
| 412 |
ashish |
4419 |
if (value == null) {
|
| 648 |
chandransh |
4420 |
unsetSe();
|
| 412 |
ashish |
4421 |
} else {
|
| 648 |
chandransh |
4422 |
setSe((LogisticsServiceException)value);
|
| 412 |
ashish |
4423 |
}
|
|
|
4424 |
break;
|
|
|
4425 |
|
|
|
4426 |
}
|
|
|
4427 |
}
|
|
|
4428 |
|
|
|
4429 |
public Object getFieldValue(_Fields field) {
|
|
|
4430 |
switch (field) {
|
| 648 |
chandransh |
4431 |
case SUCCESS:
|
|
|
4432 |
return getSuccess();
|
| 412 |
ashish |
4433 |
|
| 648 |
chandransh |
4434 |
case SE:
|
|
|
4435 |
return getSe();
|
| 412 |
ashish |
4436 |
|
|
|
4437 |
}
|
|
|
4438 |
throw new IllegalStateException();
|
|
|
4439 |
}
|
|
|
4440 |
|
| 3430 |
rajveer |
4441 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
4442 |
public boolean isSet(_Fields field) {
|
|
|
4443 |
if (field == null) {
|
|
|
4444 |
throw new IllegalArgumentException();
|
|
|
4445 |
}
|
| 412 |
ashish |
4446 |
|
|
|
4447 |
switch (field) {
|
| 648 |
chandransh |
4448 |
case SUCCESS:
|
|
|
4449 |
return isSetSuccess();
|
|
|
4450 |
case SE:
|
|
|
4451 |
return isSetSe();
|
| 412 |
ashish |
4452 |
}
|
|
|
4453 |
throw new IllegalStateException();
|
|
|
4454 |
}
|
|
|
4455 |
|
|
|
4456 |
@Override
|
|
|
4457 |
public boolean equals(Object that) {
|
|
|
4458 |
if (that == null)
|
|
|
4459 |
return false;
|
| 648 |
chandransh |
4460 |
if (that instanceof getLogisticsInfo_result)
|
|
|
4461 |
return this.equals((getLogisticsInfo_result)that);
|
| 412 |
ashish |
4462 |
return false;
|
|
|
4463 |
}
|
|
|
4464 |
|
| 648 |
chandransh |
4465 |
public boolean equals(getLogisticsInfo_result that) {
|
| 412 |
ashish |
4466 |
if (that == null)
|
|
|
4467 |
return false;
|
|
|
4468 |
|
| 648 |
chandransh |
4469 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
4470 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
4471 |
if (this_present_success || that_present_success) {
|
|
|
4472 |
if (!(this_present_success && that_present_success))
|
| 412 |
ashish |
4473 |
return false;
|
| 648 |
chandransh |
4474 |
if (!this.success.equals(that.success))
|
| 412 |
ashish |
4475 |
return false;
|
|
|
4476 |
}
|
|
|
4477 |
|
| 648 |
chandransh |
4478 |
boolean this_present_se = true && this.isSetSe();
|
|
|
4479 |
boolean that_present_se = true && that.isSetSe();
|
|
|
4480 |
if (this_present_se || that_present_se) {
|
|
|
4481 |
if (!(this_present_se && that_present_se))
|
| 412 |
ashish |
4482 |
return false;
|
| 648 |
chandransh |
4483 |
if (!this.se.equals(that.se))
|
| 412 |
ashish |
4484 |
return false;
|
|
|
4485 |
}
|
|
|
4486 |
|
|
|
4487 |
return true;
|
|
|
4488 |
}
|
|
|
4489 |
|
|
|
4490 |
@Override
|
|
|
4491 |
public int hashCode() {
|
|
|
4492 |
return 0;
|
|
|
4493 |
}
|
|
|
4494 |
|
| 648 |
chandransh |
4495 |
public int compareTo(getLogisticsInfo_result other) {
|
| 412 |
ashish |
4496 |
if (!getClass().equals(other.getClass())) {
|
|
|
4497 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
4498 |
}
|
|
|
4499 |
|
|
|
4500 |
int lastComparison = 0;
|
| 648 |
chandransh |
4501 |
getLogisticsInfo_result typedOther = (getLogisticsInfo_result)other;
|
| 412 |
ashish |
4502 |
|
| 3430 |
rajveer |
4503 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 412 |
ashish |
4504 |
if (lastComparison != 0) {
|
|
|
4505 |
return lastComparison;
|
|
|
4506 |
}
|
| 3430 |
rajveer |
4507 |
if (isSetSuccess()) {
|
|
|
4508 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
4509 |
if (lastComparison != 0) {
|
|
|
4510 |
return lastComparison;
|
|
|
4511 |
}
|
| 412 |
ashish |
4512 |
}
|
| 3430 |
rajveer |
4513 |
lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
|
| 412 |
ashish |
4514 |
if (lastComparison != 0) {
|
|
|
4515 |
return lastComparison;
|
|
|
4516 |
}
|
| 3430 |
rajveer |
4517 |
if (isSetSe()) {
|
|
|
4518 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
|
|
|
4519 |
if (lastComparison != 0) {
|
|
|
4520 |
return lastComparison;
|
|
|
4521 |
}
|
| 412 |
ashish |
4522 |
}
|
|
|
4523 |
return 0;
|
|
|
4524 |
}
|
|
|
4525 |
|
| 3430 |
rajveer |
4526 |
public _Fields fieldForId(int fieldId) {
|
|
|
4527 |
return _Fields.findByThriftId(fieldId);
|
|
|
4528 |
}
|
|
|
4529 |
|
|
|
4530 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
4531 |
org.apache.thrift.protocol.TField field;
|
| 412 |
ashish |
4532 |
iprot.readStructBegin();
|
|
|
4533 |
while (true)
|
|
|
4534 |
{
|
|
|
4535 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
4536 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 412 |
ashish |
4537 |
break;
|
|
|
4538 |
}
|
| 3430 |
rajveer |
4539 |
switch (field.id) {
|
|
|
4540 |
case 0: // SUCCESS
|
|
|
4541 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
4542 |
this.success = new LogisticsInfo();
|
|
|
4543 |
this.success.read(iprot);
|
|
|
4544 |
} else {
|
|
|
4545 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4546 |
}
|
|
|
4547 |
break;
|
|
|
4548 |
case 1: // SE
|
|
|
4549 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
4550 |
this.se = new LogisticsServiceException();
|
|
|
4551 |
this.se.read(iprot);
|
|
|
4552 |
} else {
|
|
|
4553 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4554 |
}
|
|
|
4555 |
break;
|
|
|
4556 |
default:
|
|
|
4557 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 412 |
ashish |
4558 |
}
|
| 3430 |
rajveer |
4559 |
iprot.readFieldEnd();
|
| 412 |
ashish |
4560 |
}
|
|
|
4561 |
iprot.readStructEnd();
|
|
|
4562 |
validate();
|
|
|
4563 |
}
|
|
|
4564 |
|
| 3430 |
rajveer |
4565 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 648 |
chandransh |
4566 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 412 |
ashish |
4567 |
|
| 648 |
chandransh |
4568 |
if (this.isSetSuccess()) {
|
|
|
4569 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
4570 |
this.success.write(oprot);
|
| 412 |
ashish |
4571 |
oprot.writeFieldEnd();
|
| 648 |
chandransh |
4572 |
} else if (this.isSetSe()) {
|
|
|
4573 |
oprot.writeFieldBegin(SE_FIELD_DESC);
|
|
|
4574 |
this.se.write(oprot);
|
|
|
4575 |
oprot.writeFieldEnd();
|
| 412 |
ashish |
4576 |
}
|
|
|
4577 |
oprot.writeFieldStop();
|
|
|
4578 |
oprot.writeStructEnd();
|
|
|
4579 |
}
|
|
|
4580 |
|
|
|
4581 |
@Override
|
|
|
4582 |
public String toString() {
|
| 648 |
chandransh |
4583 |
StringBuilder sb = new StringBuilder("getLogisticsInfo_result(");
|
| 412 |
ashish |
4584 |
boolean first = true;
|
|
|
4585 |
|
| 648 |
chandransh |
4586 |
sb.append("success:");
|
|
|
4587 |
if (this.success == null) {
|
| 412 |
ashish |
4588 |
sb.append("null");
|
|
|
4589 |
} else {
|
| 648 |
chandransh |
4590 |
sb.append(this.success);
|
| 412 |
ashish |
4591 |
}
|
|
|
4592 |
first = false;
|
|
|
4593 |
if (!first) sb.append(", ");
|
| 648 |
chandransh |
4594 |
sb.append("se:");
|
|
|
4595 |
if (this.se == null) {
|
|
|
4596 |
sb.append("null");
|
|
|
4597 |
} else {
|
|
|
4598 |
sb.append(this.se);
|
|
|
4599 |
}
|
| 412 |
ashish |
4600 |
first = false;
|
|
|
4601 |
sb.append(")");
|
|
|
4602 |
return sb.toString();
|
|
|
4603 |
}
|
|
|
4604 |
|
| 3430 |
rajveer |
4605 |
public void validate() throws org.apache.thrift.TException {
|
| 412 |
ashish |
4606 |
// check for required fields
|
|
|
4607 |
}
|
|
|
4608 |
|
| 3430 |
rajveer |
4609 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
4610 |
try {
|
|
|
4611 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
4612 |
} catch (org.apache.thrift.TException te) {
|
|
|
4613 |
throw new java.io.IOException(te);
|
|
|
4614 |
}
|
|
|
4615 |
}
|
|
|
4616 |
|
|
|
4617 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
4618 |
try {
|
|
|
4619 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
4620 |
} catch (org.apache.thrift.TException te) {
|
|
|
4621 |
throw new java.io.IOException(te);
|
|
|
4622 |
}
|
|
|
4623 |
}
|
|
|
4624 |
|
| 412 |
ashish |
4625 |
}
|
|
|
4626 |
|
| 3430 |
rajveer |
4627 |
public static class getEmptyAWB_args implements org.apache.thrift.TBase<getEmptyAWB_args, getEmptyAWB_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
4628 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_args");
|
| 412 |
ashish |
4629 |
|
| 3430 |
rajveer |
4630 |
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 |
4631 |
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 |
4632 |
|
| 3430 |
rajveer |
4633 |
private long providerId; // required
|
| 5247 |
rajveer |
4634 |
private DeliveryType type; // required
|
| 412 |
ashish |
4635 |
|
|
|
4636 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
4637 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 5247 |
rajveer |
4638 |
PROVIDER_ID((short)1, "providerId"),
|
|
|
4639 |
/**
|
|
|
4640 |
*
|
|
|
4641 |
* @see DeliveryType
|
|
|
4642 |
*/
|
|
|
4643 |
TYPE((short)-1, "type");
|
| 412 |
ashish |
4644 |
|
|
|
4645 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
4646 |
|
|
|
4647 |
static {
|
|
|
4648 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
4649 |
byName.put(field.getFieldName(), field);
|
|
|
4650 |
}
|
|
|
4651 |
}
|
|
|
4652 |
|
|
|
4653 |
/**
|
|
|
4654 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
4655 |
*/
|
|
|
4656 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
4657 |
switch(fieldId) {
|
|
|
4658 |
case 1: // PROVIDER_ID
|
|
|
4659 |
return PROVIDER_ID;
|
| 5247 |
rajveer |
4660 |
case -1: // TYPE
|
|
|
4661 |
return TYPE;
|
| 3430 |
rajveer |
4662 |
default:
|
|
|
4663 |
return null;
|
|
|
4664 |
}
|
| 412 |
ashish |
4665 |
}
|
|
|
4666 |
|
|
|
4667 |
/**
|
|
|
4668 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
4669 |
* if it is not found.
|
|
|
4670 |
*/
|
|
|
4671 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
4672 |
_Fields fields = findByThriftId(fieldId);
|
|
|
4673 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
4674 |
return fields;
|
|
|
4675 |
}
|
|
|
4676 |
|
|
|
4677 |
/**
|
|
|
4678 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
4679 |
*/
|
|
|
4680 |
public static _Fields findByName(String name) {
|
|
|
4681 |
return byName.get(name);
|
|
|
4682 |
}
|
|
|
4683 |
|
|
|
4684 |
private final short _thriftId;
|
|
|
4685 |
private final String _fieldName;
|
|
|
4686 |
|
|
|
4687 |
_Fields(short thriftId, String fieldName) {
|
|
|
4688 |
_thriftId = thriftId;
|
|
|
4689 |
_fieldName = fieldName;
|
|
|
4690 |
}
|
|
|
4691 |
|
|
|
4692 |
public short getThriftFieldId() {
|
|
|
4693 |
return _thriftId;
|
|
|
4694 |
}
|
|
|
4695 |
|
|
|
4696 |
public String getFieldName() {
|
|
|
4697 |
return _fieldName;
|
|
|
4698 |
}
|
|
|
4699 |
}
|
|
|
4700 |
|
|
|
4701 |
// isset id assignments
|
| 648 |
chandransh |
4702 |
private static final int __PROVIDERID_ISSET_ID = 0;
|
| 412 |
ashish |
4703 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
4704 |
|
| 3430 |
rajveer |
4705 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 412 |
ashish |
4706 |
static {
|
| 3430 |
rajveer |
4707 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
4708 |
tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4709 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 5247 |
rajveer |
4710 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4711 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
|
| 3430 |
rajveer |
4712 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
4713 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_args.class, metaDataMap);
|
| 412 |
ashish |
4714 |
}
|
|
|
4715 |
|
|
|
4716 |
public getEmptyAWB_args() {
|
|
|
4717 |
}
|
|
|
4718 |
|
|
|
4719 |
public getEmptyAWB_args(
|
| 5247 |
rajveer |
4720 |
long providerId,
|
|
|
4721 |
DeliveryType type)
|
| 412 |
ashish |
4722 |
{
|
|
|
4723 |
this();
|
| 648 |
chandransh |
4724 |
this.providerId = providerId;
|
|
|
4725 |
setProviderIdIsSet(true);
|
| 5247 |
rajveer |
4726 |
this.type = type;
|
| 412 |
ashish |
4727 |
}
|
|
|
4728 |
|
|
|
4729 |
/**
|
|
|
4730 |
* Performs a deep copy on <i>other</i>.
|
|
|
4731 |
*/
|
|
|
4732 |
public getEmptyAWB_args(getEmptyAWB_args other) {
|
|
|
4733 |
__isset_bit_vector.clear();
|
|
|
4734 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 648 |
chandransh |
4735 |
this.providerId = other.providerId;
|
| 5247 |
rajveer |
4736 |
if (other.isSetType()) {
|
|
|
4737 |
this.type = other.type;
|
|
|
4738 |
}
|
| 412 |
ashish |
4739 |
}
|
|
|
4740 |
|
|
|
4741 |
public getEmptyAWB_args deepCopy() {
|
|
|
4742 |
return new getEmptyAWB_args(this);
|
|
|
4743 |
}
|
|
|
4744 |
|
| 3430 |
rajveer |
4745 |
@Override
|
|
|
4746 |
public void clear() {
|
|
|
4747 |
setProviderIdIsSet(false);
|
|
|
4748 |
this.providerId = 0;
|
| 5247 |
rajveer |
4749 |
this.type = null;
|
| 412 |
ashish |
4750 |
}
|
|
|
4751 |
|
| 648 |
chandransh |
4752 |
public long getProviderId() {
|
|
|
4753 |
return this.providerId;
|
| 412 |
ashish |
4754 |
}
|
|
|
4755 |
|
| 3430 |
rajveer |
4756 |
public void setProviderId(long providerId) {
|
| 648 |
chandransh |
4757 |
this.providerId = providerId;
|
|
|
4758 |
setProviderIdIsSet(true);
|
| 412 |
ashish |
4759 |
}
|
|
|
4760 |
|
| 648 |
chandransh |
4761 |
public void unsetProviderId() {
|
|
|
4762 |
__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
|
| 412 |
ashish |
4763 |
}
|
|
|
4764 |
|
| 3430 |
rajveer |
4765 |
/** Returns true if field providerId is set (has been assigned a value) and false otherwise */
|
| 648 |
chandransh |
4766 |
public boolean isSetProviderId() {
|
|
|
4767 |
return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
|
| 412 |
ashish |
4768 |
}
|
|
|
4769 |
|
| 648 |
chandransh |
4770 |
public void setProviderIdIsSet(boolean value) {
|
|
|
4771 |
__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
|
| 412 |
ashish |
4772 |
}
|
|
|
4773 |
|
| 5247 |
rajveer |
4774 |
/**
|
|
|
4775 |
*
|
|
|
4776 |
* @see DeliveryType
|
|
|
4777 |
*/
|
|
|
4778 |
public DeliveryType getType() {
|
|
|
4779 |
return this.type;
|
|
|
4780 |
}
|
|
|
4781 |
|
|
|
4782 |
/**
|
|
|
4783 |
*
|
|
|
4784 |
* @see DeliveryType
|
|
|
4785 |
*/
|
|
|
4786 |
public void setType(DeliveryType type) {
|
|
|
4787 |
this.type = type;
|
|
|
4788 |
}
|
|
|
4789 |
|
|
|
4790 |
public void unsetType() {
|
|
|
4791 |
this.type = null;
|
|
|
4792 |
}
|
|
|
4793 |
|
|
|
4794 |
/** Returns true if field type is set (has been assigned a value) and false otherwise */
|
|
|
4795 |
public boolean isSetType() {
|
|
|
4796 |
return this.type != null;
|
|
|
4797 |
}
|
|
|
4798 |
|
|
|
4799 |
public void setTypeIsSet(boolean value) {
|
|
|
4800 |
if (!value) {
|
|
|
4801 |
this.type = null;
|
|
|
4802 |
}
|
|
|
4803 |
}
|
|
|
4804 |
|
| 412 |
ashish |
4805 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
4806 |
switch (field) {
|
|
|
4807 |
case PROVIDER_ID:
|
|
|
4808 |
if (value == null) {
|
| 648 |
chandransh |
4809 |
unsetProviderId();
|
| 412 |
ashish |
4810 |
} else {
|
| 648 |
chandransh |
4811 |
setProviderId((Long)value);
|
| 412 |
ashish |
4812 |
}
|
|
|
4813 |
break;
|
|
|
4814 |
|
| 5247 |
rajveer |
4815 |
case TYPE:
|
|
|
4816 |
if (value == null) {
|
|
|
4817 |
unsetType();
|
|
|
4818 |
} else {
|
|
|
4819 |
setType((DeliveryType)value);
|
|
|
4820 |
}
|
|
|
4821 |
break;
|
|
|
4822 |
|
| 412 |
ashish |
4823 |
}
|
|
|
4824 |
}
|
|
|
4825 |
|
|
|
4826 |
public Object getFieldValue(_Fields field) {
|
|
|
4827 |
switch (field) {
|
|
|
4828 |
case PROVIDER_ID:
|
| 3430 |
rajveer |
4829 |
return Long.valueOf(getProviderId());
|
| 412 |
ashish |
4830 |
|
| 5247 |
rajveer |
4831 |
case TYPE:
|
|
|
4832 |
return getType();
|
|
|
4833 |
|
| 412 |
ashish |
4834 |
}
|
|
|
4835 |
throw new IllegalStateException();
|
|
|
4836 |
}
|
|
|
4837 |
|
| 3430 |
rajveer |
4838 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
4839 |
public boolean isSet(_Fields field) {
|
|
|
4840 |
if (field == null) {
|
|
|
4841 |
throw new IllegalArgumentException();
|
|
|
4842 |
}
|
| 412 |
ashish |
4843 |
|
|
|
4844 |
switch (field) {
|
|
|
4845 |
case PROVIDER_ID:
|
| 648 |
chandransh |
4846 |
return isSetProviderId();
|
| 5247 |
rajveer |
4847 |
case TYPE:
|
|
|
4848 |
return isSetType();
|
| 412 |
ashish |
4849 |
}
|
|
|
4850 |
throw new IllegalStateException();
|
|
|
4851 |
}
|
|
|
4852 |
|
|
|
4853 |
@Override
|
|
|
4854 |
public boolean equals(Object that) {
|
|
|
4855 |
if (that == null)
|
|
|
4856 |
return false;
|
|
|
4857 |
if (that instanceof getEmptyAWB_args)
|
|
|
4858 |
return this.equals((getEmptyAWB_args)that);
|
|
|
4859 |
return false;
|
|
|
4860 |
}
|
|
|
4861 |
|
|
|
4862 |
public boolean equals(getEmptyAWB_args that) {
|
|
|
4863 |
if (that == null)
|
|
|
4864 |
return false;
|
|
|
4865 |
|
| 648 |
chandransh |
4866 |
boolean this_present_providerId = true;
|
|
|
4867 |
boolean that_present_providerId = true;
|
|
|
4868 |
if (this_present_providerId || that_present_providerId) {
|
|
|
4869 |
if (!(this_present_providerId && that_present_providerId))
|
| 412 |
ashish |
4870 |
return false;
|
| 648 |
chandransh |
4871 |
if (this.providerId != that.providerId)
|
| 412 |
ashish |
4872 |
return false;
|
|
|
4873 |
}
|
|
|
4874 |
|
| 5247 |
rajveer |
4875 |
boolean this_present_type = true && this.isSetType();
|
|
|
4876 |
boolean that_present_type = true && that.isSetType();
|
|
|
4877 |
if (this_present_type || that_present_type) {
|
|
|
4878 |
if (!(this_present_type && that_present_type))
|
|
|
4879 |
return false;
|
|
|
4880 |
if (!this.type.equals(that.type))
|
|
|
4881 |
return false;
|
|
|
4882 |
}
|
|
|
4883 |
|
| 412 |
ashish |
4884 |
return true;
|
|
|
4885 |
}
|
|
|
4886 |
|
|
|
4887 |
@Override
|
|
|
4888 |
public int hashCode() {
|
|
|
4889 |
return 0;
|
|
|
4890 |
}
|
|
|
4891 |
|
|
|
4892 |
public int compareTo(getEmptyAWB_args other) {
|
|
|
4893 |
if (!getClass().equals(other.getClass())) {
|
|
|
4894 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
4895 |
}
|
|
|
4896 |
|
|
|
4897 |
int lastComparison = 0;
|
|
|
4898 |
getEmptyAWB_args typedOther = (getEmptyAWB_args)other;
|
|
|
4899 |
|
| 3430 |
rajveer |
4900 |
lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
|
| 412 |
ashish |
4901 |
if (lastComparison != 0) {
|
|
|
4902 |
return lastComparison;
|
|
|
4903 |
}
|
| 3430 |
rajveer |
4904 |
if (isSetProviderId()) {
|
|
|
4905 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
|
|
|
4906 |
if (lastComparison != 0) {
|
|
|
4907 |
return lastComparison;
|
|
|
4908 |
}
|
| 412 |
ashish |
4909 |
}
|
| 5247 |
rajveer |
4910 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
|
|
4911 |
if (lastComparison != 0) {
|
|
|
4912 |
return lastComparison;
|
|
|
4913 |
}
|
|
|
4914 |
if (isSetType()) {
|
|
|
4915 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
|
|
4916 |
if (lastComparison != 0) {
|
|
|
4917 |
return lastComparison;
|
|
|
4918 |
}
|
|
|
4919 |
}
|
| 412 |
ashish |
4920 |
return 0;
|
|
|
4921 |
}
|
|
|
4922 |
|
| 3430 |
rajveer |
4923 |
public _Fields fieldForId(int fieldId) {
|
|
|
4924 |
return _Fields.findByThriftId(fieldId);
|
|
|
4925 |
}
|
|
|
4926 |
|
|
|
4927 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
4928 |
org.apache.thrift.protocol.TField field;
|
| 412 |
ashish |
4929 |
iprot.readStructBegin();
|
|
|
4930 |
while (true)
|
|
|
4931 |
{
|
|
|
4932 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
4933 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 412 |
ashish |
4934 |
break;
|
|
|
4935 |
}
|
| 3430 |
rajveer |
4936 |
switch (field.id) {
|
|
|
4937 |
case 1: // PROVIDER_ID
|
|
|
4938 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
4939 |
this.providerId = iprot.readI64();
|
|
|
4940 |
setProviderIdIsSet(true);
|
|
|
4941 |
} else {
|
|
|
4942 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4943 |
}
|
|
|
4944 |
break;
|
| 5247 |
rajveer |
4945 |
case -1: // TYPE
|
|
|
4946 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
4947 |
this.type = DeliveryType.findByValue(iprot.readI32());
|
|
|
4948 |
} else {
|
|
|
4949 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4950 |
}
|
|
|
4951 |
break;
|
| 3430 |
rajveer |
4952 |
default:
|
|
|
4953 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 412 |
ashish |
4954 |
}
|
| 3430 |
rajveer |
4955 |
iprot.readFieldEnd();
|
| 412 |
ashish |
4956 |
}
|
|
|
4957 |
iprot.readStructEnd();
|
|
|
4958 |
validate();
|
|
|
4959 |
}
|
|
|
4960 |
|
| 3430 |
rajveer |
4961 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 412 |
ashish |
4962 |
validate();
|
|
|
4963 |
|
|
|
4964 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 5247 |
rajveer |
4965 |
if (this.type != null) {
|
|
|
4966 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
|
|
4967 |
oprot.writeI32(this.type.getValue());
|
|
|
4968 |
oprot.writeFieldEnd();
|
|
|
4969 |
}
|
| 412 |
ashish |
4970 |
oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
|
| 648 |
chandransh |
4971 |
oprot.writeI64(this.providerId);
|
| 412 |
ashish |
4972 |
oprot.writeFieldEnd();
|
|
|
4973 |
oprot.writeFieldStop();
|
|
|
4974 |
oprot.writeStructEnd();
|
|
|
4975 |
}
|
|
|
4976 |
|
|
|
4977 |
@Override
|
|
|
4978 |
public String toString() {
|
|
|
4979 |
StringBuilder sb = new StringBuilder("getEmptyAWB_args(");
|
|
|
4980 |
boolean first = true;
|
|
|
4981 |
|
| 648 |
chandransh |
4982 |
sb.append("providerId:");
|
|
|
4983 |
sb.append(this.providerId);
|
| 412 |
ashish |
4984 |
first = false;
|
| 5247 |
rajveer |
4985 |
if (!first) sb.append(", ");
|
|
|
4986 |
sb.append("type:");
|
|
|
4987 |
if (this.type == null) {
|
|
|
4988 |
sb.append("null");
|
|
|
4989 |
} else {
|
|
|
4990 |
sb.append(this.type);
|
|
|
4991 |
}
|
|
|
4992 |
first = false;
|
| 412 |
ashish |
4993 |
sb.append(")");
|
|
|
4994 |
return sb.toString();
|
|
|
4995 |
}
|
|
|
4996 |
|
| 3430 |
rajveer |
4997 |
public void validate() throws org.apache.thrift.TException {
|
| 412 |
ashish |
4998 |
// check for required fields
|
|
|
4999 |
}
|
|
|
5000 |
|
| 3430 |
rajveer |
5001 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
5002 |
try {
|
|
|
5003 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
5004 |
} catch (org.apache.thrift.TException te) {
|
|
|
5005 |
throw new java.io.IOException(te);
|
|
|
5006 |
}
|
|
|
5007 |
}
|
|
|
5008 |
|
|
|
5009 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
5010 |
try {
|
|
|
5011 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
5012 |
__isset_bit_vector = new BitSet(1);
|
|
|
5013 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
5014 |
} catch (org.apache.thrift.TException te) {
|
|
|
5015 |
throw new java.io.IOException(te);
|
|
|
5016 |
}
|
|
|
5017 |
}
|
|
|
5018 |
|
| 412 |
ashish |
5019 |
}
|
|
|
5020 |
|
| 3430 |
rajveer |
5021 |
public static class getEmptyAWB_result implements org.apache.thrift.TBase<getEmptyAWB_result, getEmptyAWB_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
5022 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_result");
|
| 412 |
ashish |
5023 |
|
| 3430 |
rajveer |
5024 |
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);
|
|
|
5025 |
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 |
5026 |
|
| 3430 |
rajveer |
5027 |
private String success; // required
|
|
|
5028 |
private LogisticsServiceException se; // required
|
| 412 |
ashish |
5029 |
|
|
|
5030 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
5031 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 648 |
chandransh |
5032 |
SUCCESS((short)0, "success"),
|
|
|
5033 |
SE((short)1, "se");
|
| 412 |
ashish |
5034 |
|
|
|
5035 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
5036 |
|
|
|
5037 |
static {
|
|
|
5038 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
5039 |
byName.put(field.getFieldName(), field);
|
|
|
5040 |
}
|
|
|
5041 |
}
|
|
|
5042 |
|
|
|
5043 |
/**
|
|
|
5044 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
5045 |
*/
|
|
|
5046 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
5047 |
switch(fieldId) {
|
|
|
5048 |
case 0: // SUCCESS
|
|
|
5049 |
return SUCCESS;
|
|
|
5050 |
case 1: // SE
|
|
|
5051 |
return SE;
|
|
|
5052 |
default:
|
|
|
5053 |
return null;
|
|
|
5054 |
}
|
| 412 |
ashish |
5055 |
}
|
|
|
5056 |
|
|
|
5057 |
/**
|
|
|
5058 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
5059 |
* if it is not found.
|
|
|
5060 |
*/
|
|
|
5061 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
5062 |
_Fields fields = findByThriftId(fieldId);
|
|
|
5063 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
5064 |
return fields;
|
|
|
5065 |
}
|
|
|
5066 |
|
|
|
5067 |
/**
|
|
|
5068 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
5069 |
*/
|
|
|
5070 |
public static _Fields findByName(String name) {
|
|
|
5071 |
return byName.get(name);
|
|
|
5072 |
}
|
|
|
5073 |
|
|
|
5074 |
private final short _thriftId;
|
|
|
5075 |
private final String _fieldName;
|
|
|
5076 |
|
|
|
5077 |
_Fields(short thriftId, String fieldName) {
|
|
|
5078 |
_thriftId = thriftId;
|
|
|
5079 |
_fieldName = fieldName;
|
|
|
5080 |
}
|
|
|
5081 |
|
|
|
5082 |
public short getThriftFieldId() {
|
|
|
5083 |
return _thriftId;
|
|
|
5084 |
}
|
|
|
5085 |
|
|
|
5086 |
public String getFieldName() {
|
|
|
5087 |
return _fieldName;
|
|
|
5088 |
}
|
|
|
5089 |
}
|
|
|
5090 |
|
|
|
5091 |
// isset id assignments
|
|
|
5092 |
|
| 3430 |
rajveer |
5093 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 412 |
ashish |
5094 |
static {
|
| 3430 |
rajveer |
5095 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
5096 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5097 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
5098 |
tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5099 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
5100 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
5101 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_result.class, metaDataMap);
|
| 412 |
ashish |
5102 |
}
|
|
|
5103 |
|
|
|
5104 |
public getEmptyAWB_result() {
|
|
|
5105 |
}
|
|
|
5106 |
|
|
|
5107 |
public getEmptyAWB_result(
|
| 648 |
chandransh |
5108 |
String success,
|
|
|
5109 |
LogisticsServiceException se)
|
| 412 |
ashish |
5110 |
{
|
|
|
5111 |
this();
|
|
|
5112 |
this.success = success;
|
| 648 |
chandransh |
5113 |
this.se = se;
|
| 412 |
ashish |
5114 |
}
|
|
|
5115 |
|
|
|
5116 |
/**
|
|
|
5117 |
* Performs a deep copy on <i>other</i>.
|
|
|
5118 |
*/
|
|
|
5119 |
public getEmptyAWB_result(getEmptyAWB_result other) {
|
|
|
5120 |
if (other.isSetSuccess()) {
|
|
|
5121 |
this.success = other.success;
|
|
|
5122 |
}
|
| 648 |
chandransh |
5123 |
if (other.isSetSe()) {
|
|
|
5124 |
this.se = new LogisticsServiceException(other.se);
|
|
|
5125 |
}
|
| 412 |
ashish |
5126 |
}
|
|
|
5127 |
|
|
|
5128 |
public getEmptyAWB_result deepCopy() {
|
|
|
5129 |
return new getEmptyAWB_result(this);
|
|
|
5130 |
}
|
|
|
5131 |
|
| 3430 |
rajveer |
5132 |
@Override
|
|
|
5133 |
public void clear() {
|
|
|
5134 |
this.success = null;
|
|
|
5135 |
this.se = null;
|
| 412 |
ashish |
5136 |
}
|
|
|
5137 |
|
|
|
5138 |
public String getSuccess() {
|
|
|
5139 |
return this.success;
|
|
|
5140 |
}
|
|
|
5141 |
|
| 3430 |
rajveer |
5142 |
public void setSuccess(String success) {
|
| 412 |
ashish |
5143 |
this.success = success;
|
|
|
5144 |
}
|
|
|
5145 |
|
|
|
5146 |
public void unsetSuccess() {
|
|
|
5147 |
this.success = null;
|
|
|
5148 |
}
|
|
|
5149 |
|
| 3430 |
rajveer |
5150 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 412 |
ashish |
5151 |
public boolean isSetSuccess() {
|
|
|
5152 |
return this.success != null;
|
|
|
5153 |
}
|
|
|
5154 |
|
|
|
5155 |
public void setSuccessIsSet(boolean value) {
|
|
|
5156 |
if (!value) {
|
|
|
5157 |
this.success = null;
|
|
|
5158 |
}
|
|
|
5159 |
}
|
|
|
5160 |
|
| 648 |
chandransh |
5161 |
public LogisticsServiceException getSe() {
|
|
|
5162 |
return this.se;
|
| 412 |
ashish |
5163 |
}
|
|
|
5164 |
|
| 3430 |
rajveer |
5165 |
public void setSe(LogisticsServiceException se) {
|
| 648 |
chandransh |
5166 |
this.se = se;
|
| 412 |
ashish |
5167 |
}
|
|
|
5168 |
|
| 648 |
chandransh |
5169 |
public void unsetSe() {
|
|
|
5170 |
this.se = null;
|
| 412 |
ashish |
5171 |
}
|
|
|
5172 |
|
| 3430 |
rajveer |
5173 |
/** Returns true if field se is set (has been assigned a value) and false otherwise */
|
| 648 |
chandransh |
5174 |
public boolean isSetSe() {
|
|
|
5175 |
return this.se != null;
|
| 412 |
ashish |
5176 |
}
|
|
|
5177 |
|
| 648 |
chandransh |
5178 |
public void setSeIsSet(boolean value) {
|
| 412 |
ashish |
5179 |
if (!value) {
|
| 648 |
chandransh |
5180 |
this.se = null;
|
| 412 |
ashish |
5181 |
}
|
|
|
5182 |
}
|
|
|
5183 |
|
|
|
5184 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
5185 |
switch (field) {
|
|
|
5186 |
case SUCCESS:
|
|
|
5187 |
if (value == null) {
|
|
|
5188 |
unsetSuccess();
|
|
|
5189 |
} else {
|
| 648 |
chandransh |
5190 |
setSuccess((String)value);
|
| 412 |
ashish |
5191 |
}
|
|
|
5192 |
break;
|
|
|
5193 |
|
| 648 |
chandransh |
5194 |
case SE:
|
|
|
5195 |
if (value == null) {
|
|
|
5196 |
unsetSe();
|
|
|
5197 |
} else {
|
|
|
5198 |
setSe((LogisticsServiceException)value);
|
|
|
5199 |
}
|
|
|
5200 |
break;
|
|
|
5201 |
|
| 412 |
ashish |
5202 |
}
|
|
|
5203 |
}
|
|
|
5204 |
|
|
|
5205 |
public Object getFieldValue(_Fields field) {
|
|
|
5206 |
switch (field) {
|
|
|
5207 |
case SUCCESS:
|
|
|
5208 |
return getSuccess();
|
|
|
5209 |
|
| 648 |
chandransh |
5210 |
case SE:
|
|
|
5211 |
return getSe();
|
|
|
5212 |
|
| 412 |
ashish |
5213 |
}
|
|
|
5214 |
throw new IllegalStateException();
|
|
|
5215 |
}
|
|
|
5216 |
|
| 3430 |
rajveer |
5217 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
5218 |
public boolean isSet(_Fields field) {
|
|
|
5219 |
if (field == null) {
|
|
|
5220 |
throw new IllegalArgumentException();
|
|
|
5221 |
}
|
| 412 |
ashish |
5222 |
|
|
|
5223 |
switch (field) {
|
|
|
5224 |
case SUCCESS:
|
|
|
5225 |
return isSetSuccess();
|
| 648 |
chandransh |
5226 |
case SE:
|
|
|
5227 |
return isSetSe();
|
| 412 |
ashish |
5228 |
}
|
|
|
5229 |
throw new IllegalStateException();
|
|
|
5230 |
}
|
|
|
5231 |
|
|
|
5232 |
@Override
|
|
|
5233 |
public boolean equals(Object that) {
|
|
|
5234 |
if (that == null)
|
|
|
5235 |
return false;
|
| 648 |
chandransh |
5236 |
if (that instanceof getEmptyAWB_result)
|
|
|
5237 |
return this.equals((getEmptyAWB_result)that);
|
| 412 |
ashish |
5238 |
return false;
|
|
|
5239 |
}
|
|
|
5240 |
|
| 648 |
chandransh |
5241 |
public boolean equals(getEmptyAWB_result that) {
|
| 412 |
ashish |
5242 |
if (that == null)
|
|
|
5243 |
return false;
|
|
|
5244 |
|
|
|
5245 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
5246 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
5247 |
if (this_present_success || that_present_success) {
|
|
|
5248 |
if (!(this_present_success && that_present_success))
|
|
|
5249 |
return false;
|
|
|
5250 |
if (!this.success.equals(that.success))
|
|
|
5251 |
return false;
|
|
|
5252 |
}
|
|
|
5253 |
|
| 648 |
chandransh |
5254 |
boolean this_present_se = true && this.isSetSe();
|
|
|
5255 |
boolean that_present_se = true && that.isSetSe();
|
|
|
5256 |
if (this_present_se || that_present_se) {
|
|
|
5257 |
if (!(this_present_se && that_present_se))
|
|
|
5258 |
return false;
|
|
|
5259 |
if (!this.se.equals(that.se))
|
|
|
5260 |
return false;
|
|
|
5261 |
}
|
|
|
5262 |
|
| 412 |
ashish |
5263 |
return true;
|
|
|
5264 |
}
|
|
|
5265 |
|
|
|
5266 |
@Override
|
|
|
5267 |
public int hashCode() {
|
|
|
5268 |
return 0;
|
|
|
5269 |
}
|
|
|
5270 |
|
| 648 |
chandransh |
5271 |
public int compareTo(getEmptyAWB_result other) {
|
| 412 |
ashish |
5272 |
if (!getClass().equals(other.getClass())) {
|
|
|
5273 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
5274 |
}
|
|
|
5275 |
|
|
|
5276 |
int lastComparison = 0;
|
| 648 |
chandransh |
5277 |
getEmptyAWB_result typedOther = (getEmptyAWB_result)other;
|
| 412 |
ashish |
5278 |
|
| 3430 |
rajveer |
5279 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 412 |
ashish |
5280 |
if (lastComparison != 0) {
|
|
|
5281 |
return lastComparison;
|
|
|
5282 |
}
|
| 3430 |
rajveer |
5283 |
if (isSetSuccess()) {
|
|
|
5284 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
5285 |
if (lastComparison != 0) {
|
|
|
5286 |
return lastComparison;
|
|
|
5287 |
}
|
| 412 |
ashish |
5288 |
}
|
| 3430 |
rajveer |
5289 |
lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
|
| 412 |
ashish |
5290 |
if (lastComparison != 0) {
|
|
|
5291 |
return lastComparison;
|
|
|
5292 |
}
|
| 3430 |
rajveer |
5293 |
if (isSetSe()) {
|
|
|
5294 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
|
|
|
5295 |
if (lastComparison != 0) {
|
|
|
5296 |
return lastComparison;
|
|
|
5297 |
}
|
| 412 |
ashish |
5298 |
}
|
|
|
5299 |
return 0;
|
|
|
5300 |
}
|
|
|
5301 |
|
| 3430 |
rajveer |
5302 |
public _Fields fieldForId(int fieldId) {
|
|
|
5303 |
return _Fields.findByThriftId(fieldId);
|
|
|
5304 |
}
|
|
|
5305 |
|
|
|
5306 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
5307 |
org.apache.thrift.protocol.TField field;
|
| 412 |
ashish |
5308 |
iprot.readStructBegin();
|
|
|
5309 |
while (true)
|
|
|
5310 |
{
|
|
|
5311 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
5312 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 412 |
ashish |
5313 |
break;
|
|
|
5314 |
}
|
| 3430 |
rajveer |
5315 |
switch (field.id) {
|
|
|
5316 |
case 0: // SUCCESS
|
|
|
5317 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
5318 |
this.success = iprot.readString();
|
|
|
5319 |
} else {
|
|
|
5320 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5321 |
}
|
|
|
5322 |
break;
|
|
|
5323 |
case 1: // SE
|
|
|
5324 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
5325 |
this.se = new LogisticsServiceException();
|
|
|
5326 |
this.se.read(iprot);
|
|
|
5327 |
} else {
|
|
|
5328 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5329 |
}
|
|
|
5330 |
break;
|
|
|
5331 |
default:
|
|
|
5332 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 412 |
ashish |
5333 |
}
|
| 3430 |
rajveer |
5334 |
iprot.readFieldEnd();
|
| 412 |
ashish |
5335 |
}
|
|
|
5336 |
iprot.readStructEnd();
|
|
|
5337 |
validate();
|
|
|
5338 |
}
|
|
|
5339 |
|
| 3430 |
rajveer |
5340 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 412 |
ashish |
5341 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
5342 |
|
|
|
5343 |
if (this.isSetSuccess()) {
|
|
|
5344 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| 648 |
chandransh |
5345 |
oprot.writeString(this.success);
|
| 412 |
ashish |
5346 |
oprot.writeFieldEnd();
|
| 648 |
chandransh |
5347 |
} else if (this.isSetSe()) {
|
|
|
5348 |
oprot.writeFieldBegin(SE_FIELD_DESC);
|
|
|
5349 |
this.se.write(oprot);
|
|
|
5350 |
oprot.writeFieldEnd();
|
| 412 |
ashish |
5351 |
}
|
|
|
5352 |
oprot.writeFieldStop();
|
|
|
5353 |
oprot.writeStructEnd();
|
|
|
5354 |
}
|
|
|
5355 |
|
|
|
5356 |
@Override
|
|
|
5357 |
public String toString() {
|
| 648 |
chandransh |
5358 |
StringBuilder sb = new StringBuilder("getEmptyAWB_result(");
|
| 412 |
ashish |
5359 |
boolean first = true;
|
|
|
5360 |
|
|
|
5361 |
sb.append("success:");
|
|
|
5362 |
if (this.success == null) {
|
|
|
5363 |
sb.append("null");
|
|
|
5364 |
} else {
|
|
|
5365 |
sb.append(this.success);
|
|
|
5366 |
}
|
|
|
5367 |
first = false;
|
| 648 |
chandransh |
5368 |
if (!first) sb.append(", ");
|
|
|
5369 |
sb.append("se:");
|
|
|
5370 |
if (this.se == null) {
|
| 442 |
rajveer |
5371 |
sb.append("null");
|
|
|
5372 |
} else {
|
| 648 |
chandransh |
5373 |
sb.append(this.se);
|
| 442 |
rajveer |
5374 |
}
|
|
|
5375 |
first = false;
|
|
|
5376 |
sb.append(")");
|
|
|
5377 |
return sb.toString();
|
|
|
5378 |
}
|
|
|
5379 |
|
| 3430 |
rajveer |
5380 |
public void validate() throws org.apache.thrift.TException {
|
| 442 |
rajveer |
5381 |
// check for required fields
|
|
|
5382 |
}
|
|
|
5383 |
|
| 3430 |
rajveer |
5384 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
5385 |
try {
|
|
|
5386 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
5387 |
} catch (org.apache.thrift.TException te) {
|
|
|
5388 |
throw new java.io.IOException(te);
|
|
|
5389 |
}
|
|
|
5390 |
}
|
|
|
5391 |
|
|
|
5392 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
5393 |
try {
|
|
|
5394 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
5395 |
} catch (org.apache.thrift.TException te) {
|
|
|
5396 |
throw new java.io.IOException(te);
|
|
|
5397 |
}
|
|
|
5398 |
}
|
|
|
5399 |
|
| 442 |
rajveer |
5400 |
}
|
|
|
5401 |
|
| 3430 |
rajveer |
5402 |
public static class getShipmentInfo_args implements org.apache.thrift.TBase<getShipmentInfo_args, getShipmentInfo_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
5403 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_args");
|
| 442 |
rajveer |
5404 |
|
| 3430 |
rajveer |
5405 |
private static final org.apache.thrift.protocol.TField AWB_FIELD_DESC = new org.apache.thrift.protocol.TField("awb", org.apache.thrift.protocol.TType.STRING, (short)1);
|
|
|
5406 |
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 |
5407 |
|
| 3430 |
rajveer |
5408 |
private String awb; // required
|
|
|
5409 |
private long providerId; // required
|
| 442 |
rajveer |
5410 |
|
|
|
5411 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
5412 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 442 |
rajveer |
5413 |
AWB((short)1, "awb"),
|
| 648 |
chandransh |
5414 |
PROVIDER_ID((short)2, "providerId");
|
| 442 |
rajveer |
5415 |
|
|
|
5416 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
5417 |
|
|
|
5418 |
static {
|
|
|
5419 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
5420 |
byName.put(field.getFieldName(), field);
|
|
|
5421 |
}
|
|
|
5422 |
}
|
|
|
5423 |
|
|
|
5424 |
/**
|
|
|
5425 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
5426 |
*/
|
|
|
5427 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
5428 |
switch(fieldId) {
|
|
|
5429 |
case 1: // AWB
|
|
|
5430 |
return AWB;
|
|
|
5431 |
case 2: // PROVIDER_ID
|
|
|
5432 |
return PROVIDER_ID;
|
|
|
5433 |
default:
|
|
|
5434 |
return null;
|
|
|
5435 |
}
|
| 442 |
rajveer |
5436 |
}
|
|
|
5437 |
|
|
|
5438 |
/**
|
|
|
5439 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
5440 |
* if it is not found.
|
|
|
5441 |
*/
|
|
|
5442 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
5443 |
_Fields fields = findByThriftId(fieldId);
|
|
|
5444 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
5445 |
return fields;
|
|
|
5446 |
}
|
|
|
5447 |
|
|
|
5448 |
/**
|
|
|
5449 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
5450 |
*/
|
|
|
5451 |
public static _Fields findByName(String name) {
|
|
|
5452 |
return byName.get(name);
|
|
|
5453 |
}
|
|
|
5454 |
|
|
|
5455 |
private final short _thriftId;
|
|
|
5456 |
private final String _fieldName;
|
|
|
5457 |
|
|
|
5458 |
_Fields(short thriftId, String fieldName) {
|
|
|
5459 |
_thriftId = thriftId;
|
|
|
5460 |
_fieldName = fieldName;
|
|
|
5461 |
}
|
|
|
5462 |
|
|
|
5463 |
public short getThriftFieldId() {
|
|
|
5464 |
return _thriftId;
|
|
|
5465 |
}
|
|
|
5466 |
|
|
|
5467 |
public String getFieldName() {
|
|
|
5468 |
return _fieldName;
|
|
|
5469 |
}
|
|
|
5470 |
}
|
|
|
5471 |
|
|
|
5472 |
// isset id assignments
|
| 648 |
chandransh |
5473 |
private static final int __PROVIDERID_ISSET_ID = 0;
|
|
|
5474 |
private BitSet __isset_bit_vector = new BitSet(1);
|
| 442 |
rajveer |
5475 |
|
| 3430 |
rajveer |
5476 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 442 |
rajveer |
5477 |
static {
|
| 3430 |
rajveer |
5478 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
5479 |
tmpMap.put(_Fields.AWB, new org.apache.thrift.meta_data.FieldMetaData("awb", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5480 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
5481 |
tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5482 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
5483 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
5484 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_args.class, metaDataMap);
|
| 442 |
rajveer |
5485 |
}
|
|
|
5486 |
|
| 648 |
chandransh |
5487 |
public getShipmentInfo_args() {
|
| 442 |
rajveer |
5488 |
}
|
|
|
5489 |
|
| 648 |
chandransh |
5490 |
public getShipmentInfo_args(
|
| 442 |
rajveer |
5491 |
String awb,
|
| 648 |
chandransh |
5492 |
long providerId)
|
| 442 |
rajveer |
5493 |
{
|
|
|
5494 |
this();
|
|
|
5495 |
this.awb = awb;
|
| 648 |
chandransh |
5496 |
this.providerId = providerId;
|
|
|
5497 |
setProviderIdIsSet(true);
|
| 442 |
rajveer |
5498 |
}
|
|
|
5499 |
|
|
|
5500 |
/**
|
|
|
5501 |
* Performs a deep copy on <i>other</i>.
|
|
|
5502 |
*/
|
| 648 |
chandransh |
5503 |
public getShipmentInfo_args(getShipmentInfo_args other) {
|
|
|
5504 |
__isset_bit_vector.clear();
|
|
|
5505 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 442 |
rajveer |
5506 |
if (other.isSetAwb()) {
|
|
|
5507 |
this.awb = other.awb;
|
|
|
5508 |
}
|
| 648 |
chandransh |
5509 |
this.providerId = other.providerId;
|
| 442 |
rajveer |
5510 |
}
|
|
|
5511 |
|
| 648 |
chandransh |
5512 |
public getShipmentInfo_args deepCopy() {
|
|
|
5513 |
return new getShipmentInfo_args(this);
|
| 442 |
rajveer |
5514 |
}
|
|
|
5515 |
|
| 3430 |
rajveer |
5516 |
@Override
|
|
|
5517 |
public void clear() {
|
|
|
5518 |
this.awb = null;
|
|
|
5519 |
setProviderIdIsSet(false);
|
|
|
5520 |
this.providerId = 0;
|
| 442 |
rajveer |
5521 |
}
|
|
|
5522 |
|
|
|
5523 |
public String getAwb() {
|
|
|
5524 |
return this.awb;
|
|
|
5525 |
}
|
|
|
5526 |
|
| 3430 |
rajveer |
5527 |
public void setAwb(String awb) {
|
| 442 |
rajveer |
5528 |
this.awb = awb;
|
|
|
5529 |
}
|
|
|
5530 |
|
|
|
5531 |
public void unsetAwb() {
|
|
|
5532 |
this.awb = null;
|
|
|
5533 |
}
|
|
|
5534 |
|
| 3430 |
rajveer |
5535 |
/** Returns true if field awb is set (has been assigned a value) and false otherwise */
|
| 442 |
rajveer |
5536 |
public boolean isSetAwb() {
|
|
|
5537 |
return this.awb != null;
|
|
|
5538 |
}
|
|
|
5539 |
|
|
|
5540 |
public void setAwbIsSet(boolean value) {
|
|
|
5541 |
if (!value) {
|
|
|
5542 |
this.awb = null;
|
|
|
5543 |
}
|
|
|
5544 |
}
|
|
|
5545 |
|
| 648 |
chandransh |
5546 |
public long getProviderId() {
|
|
|
5547 |
return this.providerId;
|
| 442 |
rajveer |
5548 |
}
|
|
|
5549 |
|
| 3430 |
rajveer |
5550 |
public void setProviderId(long providerId) {
|
| 648 |
chandransh |
5551 |
this.providerId = providerId;
|
|
|
5552 |
setProviderIdIsSet(true);
|
| 442 |
rajveer |
5553 |
}
|
|
|
5554 |
|
| 648 |
chandransh |
5555 |
public void unsetProviderId() {
|
|
|
5556 |
__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
|
| 442 |
rajveer |
5557 |
}
|
|
|
5558 |
|
| 3430 |
rajveer |
5559 |
/** Returns true if field providerId is set (has been assigned a value) and false otherwise */
|
| 648 |
chandransh |
5560 |
public boolean isSetProviderId() {
|
|
|
5561 |
return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
|
| 442 |
rajveer |
5562 |
}
|
|
|
5563 |
|
| 648 |
chandransh |
5564 |
public void setProviderIdIsSet(boolean value) {
|
|
|
5565 |
__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
|
| 442 |
rajveer |
5566 |
}
|
|
|
5567 |
|
|
|
5568 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
5569 |
switch (field) {
|
|
|
5570 |
case AWB:
|
|
|
5571 |
if (value == null) {
|
|
|
5572 |
unsetAwb();
|
|
|
5573 |
} else {
|
|
|
5574 |
setAwb((String)value);
|
|
|
5575 |
}
|
|
|
5576 |
break;
|
|
|
5577 |
|
| 648 |
chandransh |
5578 |
case PROVIDER_ID:
|
| 442 |
rajveer |
5579 |
if (value == null) {
|
| 648 |
chandransh |
5580 |
unsetProviderId();
|
| 442 |
rajveer |
5581 |
} else {
|
| 648 |
chandransh |
5582 |
setProviderId((Long)value);
|
| 442 |
rajveer |
5583 |
}
|
|
|
5584 |
break;
|
|
|
5585 |
|
|
|
5586 |
}
|
|
|
5587 |
}
|
|
|
5588 |
|
|
|
5589 |
public Object getFieldValue(_Fields field) {
|
|
|
5590 |
switch (field) {
|
|
|
5591 |
case AWB:
|
|
|
5592 |
return getAwb();
|
|
|
5593 |
|
| 648 |
chandransh |
5594 |
case PROVIDER_ID:
|
| 3430 |
rajveer |
5595 |
return Long.valueOf(getProviderId());
|
| 442 |
rajveer |
5596 |
|
|
|
5597 |
}
|
|
|
5598 |
throw new IllegalStateException();
|
|
|
5599 |
}
|
|
|
5600 |
|
| 3430 |
rajveer |
5601 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
5602 |
public boolean isSet(_Fields field) {
|
|
|
5603 |
if (field == null) {
|
|
|
5604 |
throw new IllegalArgumentException();
|
|
|
5605 |
}
|
| 442 |
rajveer |
5606 |
|
|
|
5607 |
switch (field) {
|
|
|
5608 |
case AWB:
|
|
|
5609 |
return isSetAwb();
|
| 648 |
chandransh |
5610 |
case PROVIDER_ID:
|
|
|
5611 |
return isSetProviderId();
|
| 442 |
rajveer |
5612 |
}
|
|
|
5613 |
throw new IllegalStateException();
|
|
|
5614 |
}
|
|
|
5615 |
|
|
|
5616 |
@Override
|
|
|
5617 |
public boolean equals(Object that) {
|
|
|
5618 |
if (that == null)
|
|
|
5619 |
return false;
|
| 648 |
chandransh |
5620 |
if (that instanceof getShipmentInfo_args)
|
|
|
5621 |
return this.equals((getShipmentInfo_args)that);
|
| 442 |
rajveer |
5622 |
return false;
|
|
|
5623 |
}
|
|
|
5624 |
|
| 648 |
chandransh |
5625 |
public boolean equals(getShipmentInfo_args that) {
|
| 442 |
rajveer |
5626 |
if (that == null)
|
|
|
5627 |
return false;
|
|
|
5628 |
|
|
|
5629 |
boolean this_present_awb = true && this.isSetAwb();
|
|
|
5630 |
boolean that_present_awb = true && that.isSetAwb();
|
|
|
5631 |
if (this_present_awb || that_present_awb) {
|
|
|
5632 |
if (!(this_present_awb && that_present_awb))
|
|
|
5633 |
return false;
|
|
|
5634 |
if (!this.awb.equals(that.awb))
|
|
|
5635 |
return false;
|
|
|
5636 |
}
|
|
|
5637 |
|
| 648 |
chandransh |
5638 |
boolean this_present_providerId = true;
|
|
|
5639 |
boolean that_present_providerId = true;
|
|
|
5640 |
if (this_present_providerId || that_present_providerId) {
|
|
|
5641 |
if (!(this_present_providerId && that_present_providerId))
|
| 442 |
rajveer |
5642 |
return false;
|
| 648 |
chandransh |
5643 |
if (this.providerId != that.providerId)
|
| 442 |
rajveer |
5644 |
return false;
|
|
|
5645 |
}
|
|
|
5646 |
|
|
|
5647 |
return true;
|
|
|
5648 |
}
|
|
|
5649 |
|
|
|
5650 |
@Override
|
|
|
5651 |
public int hashCode() {
|
|
|
5652 |
return 0;
|
|
|
5653 |
}
|
|
|
5654 |
|
| 648 |
chandransh |
5655 |
public int compareTo(getShipmentInfo_args other) {
|
| 442 |
rajveer |
5656 |
if (!getClass().equals(other.getClass())) {
|
|
|
5657 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
5658 |
}
|
|
|
5659 |
|
|
|
5660 |
int lastComparison = 0;
|
| 648 |
chandransh |
5661 |
getShipmentInfo_args typedOther = (getShipmentInfo_args)other;
|
| 442 |
rajveer |
5662 |
|
| 3430 |
rajveer |
5663 |
lastComparison = Boolean.valueOf(isSetAwb()).compareTo(typedOther.isSetAwb());
|
| 442 |
rajveer |
5664 |
if (lastComparison != 0) {
|
|
|
5665 |
return lastComparison;
|
|
|
5666 |
}
|
| 3430 |
rajveer |
5667 |
if (isSetAwb()) {
|
|
|
5668 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awb, typedOther.awb);
|
|
|
5669 |
if (lastComparison != 0) {
|
|
|
5670 |
return lastComparison;
|
|
|
5671 |
}
|
| 442 |
rajveer |
5672 |
}
|
| 3430 |
rajveer |
5673 |
lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
|
| 442 |
rajveer |
5674 |
if (lastComparison != 0) {
|
|
|
5675 |
return lastComparison;
|
|
|
5676 |
}
|
| 3430 |
rajveer |
5677 |
if (isSetProviderId()) {
|
|
|
5678 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
|
|
|
5679 |
if (lastComparison != 0) {
|
|
|
5680 |
return lastComparison;
|
|
|
5681 |
}
|
| 442 |
rajveer |
5682 |
}
|
|
|
5683 |
return 0;
|
|
|
5684 |
}
|
|
|
5685 |
|
| 3430 |
rajveer |
5686 |
public _Fields fieldForId(int fieldId) {
|
|
|
5687 |
return _Fields.findByThriftId(fieldId);
|
|
|
5688 |
}
|
|
|
5689 |
|
|
|
5690 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
5691 |
org.apache.thrift.protocol.TField field;
|
| 442 |
rajveer |
5692 |
iprot.readStructBegin();
|
|
|
5693 |
while (true)
|
|
|
5694 |
{
|
|
|
5695 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
5696 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 442 |
rajveer |
5697 |
break;
|
|
|
5698 |
}
|
| 3430 |
rajveer |
5699 |
switch (field.id) {
|
|
|
5700 |
case 1: // AWB
|
|
|
5701 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
5702 |
this.awb = iprot.readString();
|
|
|
5703 |
} else {
|
|
|
5704 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5705 |
}
|
|
|
5706 |
break;
|
|
|
5707 |
case 2: // PROVIDER_ID
|
|
|
5708 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
5709 |
this.providerId = iprot.readI64();
|
|
|
5710 |
setProviderIdIsSet(true);
|
|
|
5711 |
} else {
|
|
|
5712 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5713 |
}
|
|
|
5714 |
break;
|
|
|
5715 |
default:
|
|
|
5716 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 442 |
rajveer |
5717 |
}
|
| 3430 |
rajveer |
5718 |
iprot.readFieldEnd();
|
| 442 |
rajveer |
5719 |
}
|
|
|
5720 |
iprot.readStructEnd();
|
|
|
5721 |
validate();
|
|
|
5722 |
}
|
|
|
5723 |
|
| 3430 |
rajveer |
5724 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 442 |
rajveer |
5725 |
validate();
|
|
|
5726 |
|
|
|
5727 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
5728 |
if (this.awb != null) {
|
|
|
5729 |
oprot.writeFieldBegin(AWB_FIELD_DESC);
|
|
|
5730 |
oprot.writeString(this.awb);
|
|
|
5731 |
oprot.writeFieldEnd();
|
|
|
5732 |
}
|
| 648 |
chandransh |
5733 |
oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
|
|
|
5734 |
oprot.writeI64(this.providerId);
|
|
|
5735 |
oprot.writeFieldEnd();
|
| 442 |
rajveer |
5736 |
oprot.writeFieldStop();
|
|
|
5737 |
oprot.writeStructEnd();
|
|
|
5738 |
}
|
|
|
5739 |
|
|
|
5740 |
@Override
|
|
|
5741 |
public String toString() {
|
| 648 |
chandransh |
5742 |
StringBuilder sb = new StringBuilder("getShipmentInfo_args(");
|
| 442 |
rajveer |
5743 |
boolean first = true;
|
|
|
5744 |
|
|
|
5745 |
sb.append("awb:");
|
|
|
5746 |
if (this.awb == null) {
|
|
|
5747 |
sb.append("null");
|
|
|
5748 |
} else {
|
|
|
5749 |
sb.append(this.awb);
|
|
|
5750 |
}
|
|
|
5751 |
first = false;
|
|
|
5752 |
if (!first) sb.append(", ");
|
| 648 |
chandransh |
5753 |
sb.append("providerId:");
|
|
|
5754 |
sb.append(this.providerId);
|
| 442 |
rajveer |
5755 |
first = false;
|
|
|
5756 |
sb.append(")");
|
|
|
5757 |
return sb.toString();
|
|
|
5758 |
}
|
|
|
5759 |
|
| 3430 |
rajveer |
5760 |
public void validate() throws org.apache.thrift.TException {
|
| 442 |
rajveer |
5761 |
// check for required fields
|
|
|
5762 |
}
|
|
|
5763 |
|
| 3430 |
rajveer |
5764 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
5765 |
try {
|
|
|
5766 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
5767 |
} catch (org.apache.thrift.TException te) {
|
|
|
5768 |
throw new java.io.IOException(te);
|
|
|
5769 |
}
|
|
|
5770 |
}
|
|
|
5771 |
|
|
|
5772 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
5773 |
try {
|
|
|
5774 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
5775 |
} catch (org.apache.thrift.TException te) {
|
|
|
5776 |
throw new java.io.IOException(te);
|
|
|
5777 |
}
|
|
|
5778 |
}
|
|
|
5779 |
|
| 442 |
rajveer |
5780 |
}
|
|
|
5781 |
|
| 3430 |
rajveer |
5782 |
public static class getShipmentInfo_result implements org.apache.thrift.TBase<getShipmentInfo_result, getShipmentInfo_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
5783 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_result");
|
| 412 |
ashish |
5784 |
|
| 3430 |
rajveer |
5785 |
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);
|
|
|
5786 |
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 |
5787 |
|
| 3430 |
rajveer |
5788 |
private List<AwbUpdate> success; // required
|
|
|
5789 |
private LogisticsServiceException se; // required
|
| 412 |
ashish |
5790 |
|
|
|
5791 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
5792 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 648 |
chandransh |
5793 |
SUCCESS((short)0, "success"),
|
|
|
5794 |
SE((short)1, "se");
|
| 412 |
ashish |
5795 |
|
|
|
5796 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
5797 |
|
|
|
5798 |
static {
|
|
|
5799 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
5800 |
byName.put(field.getFieldName(), field);
|
|
|
5801 |
}
|
|
|
5802 |
}
|
|
|
5803 |
|
|
|
5804 |
/**
|
|
|
5805 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
5806 |
*/
|
|
|
5807 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
5808 |
switch(fieldId) {
|
|
|
5809 |
case 0: // SUCCESS
|
|
|
5810 |
return SUCCESS;
|
|
|
5811 |
case 1: // SE
|
|
|
5812 |
return SE;
|
|
|
5813 |
default:
|
|
|
5814 |
return null;
|
|
|
5815 |
}
|
| 412 |
ashish |
5816 |
}
|
|
|
5817 |
|
|
|
5818 |
/**
|
|
|
5819 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
5820 |
* if it is not found.
|
|
|
5821 |
*/
|
|
|
5822 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
5823 |
_Fields fields = findByThriftId(fieldId);
|
|
|
5824 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
5825 |
return fields;
|
|
|
5826 |
}
|
|
|
5827 |
|
|
|
5828 |
/**
|
|
|
5829 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
5830 |
*/
|
|
|
5831 |
public static _Fields findByName(String name) {
|
|
|
5832 |
return byName.get(name);
|
|
|
5833 |
}
|
|
|
5834 |
|
|
|
5835 |
private final short _thriftId;
|
|
|
5836 |
private final String _fieldName;
|
|
|
5837 |
|
|
|
5838 |
_Fields(short thriftId, String fieldName) {
|
|
|
5839 |
_thriftId = thriftId;
|
|
|
5840 |
_fieldName = fieldName;
|
|
|
5841 |
}
|
|
|
5842 |
|
|
|
5843 |
public short getThriftFieldId() {
|
|
|
5844 |
return _thriftId;
|
|
|
5845 |
}
|
|
|
5846 |
|
|
|
5847 |
public String getFieldName() {
|
|
|
5848 |
return _fieldName;
|
|
|
5849 |
}
|
|
|
5850 |
}
|
|
|
5851 |
|
|
|
5852 |
// isset id assignments
|
|
|
5853 |
|
| 3430 |
rajveer |
5854 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 412 |
ashish |
5855 |
static {
|
| 3430 |
rajveer |
5856 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
5857 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5858 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
5859 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AwbUpdate.class))));
|
|
|
5860 |
tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5861 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
5862 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
5863 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_result.class, metaDataMap);
|
| 412 |
ashish |
5864 |
}
|
|
|
5865 |
|
|
|
5866 |
public getShipmentInfo_result() {
|
|
|
5867 |
}
|
|
|
5868 |
|
|
|
5869 |
public getShipmentInfo_result(
|
| 648 |
chandransh |
5870 |
List<AwbUpdate> success,
|
|
|
5871 |
LogisticsServiceException se)
|
| 412 |
ashish |
5872 |
{
|
|
|
5873 |
this();
|
|
|
5874 |
this.success = success;
|
| 648 |
chandransh |
5875 |
this.se = se;
|
| 412 |
ashish |
5876 |
}
|
|
|
5877 |
|
|
|
5878 |
/**
|
|
|
5879 |
* Performs a deep copy on <i>other</i>.
|
|
|
5880 |
*/
|
|
|
5881 |
public getShipmentInfo_result(getShipmentInfo_result other) {
|
|
|
5882 |
if (other.isSetSuccess()) {
|
| 648 |
chandransh |
5883 |
List<AwbUpdate> __this__success = new ArrayList<AwbUpdate>();
|
|
|
5884 |
for (AwbUpdate other_element : other.success) {
|
|
|
5885 |
__this__success.add(new AwbUpdate(other_element));
|
|
|
5886 |
}
|
|
|
5887 |
this.success = __this__success;
|
| 412 |
ashish |
5888 |
}
|
| 648 |
chandransh |
5889 |
if (other.isSetSe()) {
|
|
|
5890 |
this.se = new LogisticsServiceException(other.se);
|
|
|
5891 |
}
|
| 412 |
ashish |
5892 |
}
|
|
|
5893 |
|
|
|
5894 |
public getShipmentInfo_result deepCopy() {
|
|
|
5895 |
return new getShipmentInfo_result(this);
|
|
|
5896 |
}
|
|
|
5897 |
|
| 3430 |
rajveer |
5898 |
@Override
|
|
|
5899 |
public void clear() {
|
|
|
5900 |
this.success = null;
|
|
|
5901 |
this.se = null;
|
| 412 |
ashish |
5902 |
}
|
|
|
5903 |
|
|
|
5904 |
public int getSuccessSize() {
|
|
|
5905 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
5906 |
}
|
|
|
5907 |
|
| 648 |
chandransh |
5908 |
public java.util.Iterator<AwbUpdate> getSuccessIterator() {
|
| 412 |
ashish |
5909 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
5910 |
}
|
|
|
5911 |
|
| 648 |
chandransh |
5912 |
public void addToSuccess(AwbUpdate elem) {
|
| 412 |
ashish |
5913 |
if (this.success == null) {
|
| 648 |
chandransh |
5914 |
this.success = new ArrayList<AwbUpdate>();
|
| 412 |
ashish |
5915 |
}
|
|
|
5916 |
this.success.add(elem);
|
|
|
5917 |
}
|
|
|
5918 |
|
| 648 |
chandransh |
5919 |
public List<AwbUpdate> getSuccess() {
|
| 412 |
ashish |
5920 |
return this.success;
|
|
|
5921 |
}
|
|
|
5922 |
|
| 3430 |
rajveer |
5923 |
public void setSuccess(List<AwbUpdate> success) {
|
| 412 |
ashish |
5924 |
this.success = success;
|
|
|
5925 |
}
|
|
|
5926 |
|
|
|
5927 |
public void unsetSuccess() {
|
|
|
5928 |
this.success = null;
|
|
|
5929 |
}
|
|
|
5930 |
|
| 3430 |
rajveer |
5931 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 412 |
ashish |
5932 |
public boolean isSetSuccess() {
|
|
|
5933 |
return this.success != null;
|
|
|
5934 |
}
|
|
|
5935 |
|
|
|
5936 |
public void setSuccessIsSet(boolean value) {
|
|
|
5937 |
if (!value) {
|
|
|
5938 |
this.success = null;
|
|
|
5939 |
}
|
|
|
5940 |
}
|
|
|
5941 |
|
| 648 |
chandransh |
5942 |
public LogisticsServiceException getSe() {
|
|
|
5943 |
return this.se;
|
| 412 |
ashish |
5944 |
}
|
|
|
5945 |
|
| 3430 |
rajveer |
5946 |
public void setSe(LogisticsServiceException se) {
|
| 648 |
chandransh |
5947 |
this.se = se;
|
| 412 |
ashish |
5948 |
}
|
|
|
5949 |
|
| 648 |
chandransh |
5950 |
public void unsetSe() {
|
|
|
5951 |
this.se = null;
|
| 412 |
ashish |
5952 |
}
|
|
|
5953 |
|
| 3430 |
rajveer |
5954 |
/** Returns true if field se is set (has been assigned a value) and false otherwise */
|
| 648 |
chandransh |
5955 |
public boolean isSetSe() {
|
|
|
5956 |
return this.se != null;
|
| 412 |
ashish |
5957 |
}
|
|
|
5958 |
|
| 648 |
chandransh |
5959 |
public void setSeIsSet(boolean value) {
|
|
|
5960 |
if (!value) {
|
|
|
5961 |
this.se = null;
|
| 412 |
ashish |
5962 |
}
|
|
|
5963 |
}
|
|
|
5964 |
|
|
|
5965 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
5966 |
switch (field) {
|
| 648 |
chandransh |
5967 |
case SUCCESS:
|
| 412 |
ashish |
5968 |
if (value == null) {
|
| 648 |
chandransh |
5969 |
unsetSuccess();
|
| 412 |
ashish |
5970 |
} else {
|
| 648 |
chandransh |
5971 |
setSuccess((List<AwbUpdate>)value);
|
| 412 |
ashish |
5972 |
}
|
|
|
5973 |
break;
|
|
|
5974 |
|
| 648 |
chandransh |
5975 |
case SE:
|
| 412 |
ashish |
5976 |
if (value == null) {
|
| 648 |
chandransh |
5977 |
unsetSe();
|
| 412 |
ashish |
5978 |
} else {
|
| 648 |
chandransh |
5979 |
setSe((LogisticsServiceException)value);
|
| 412 |
ashish |
5980 |
}
|
|
|
5981 |
break;
|
|
|
5982 |
|
|
|
5983 |
}
|
|
|
5984 |
}
|
|
|
5985 |
|
|
|
5986 |
public Object getFieldValue(_Fields field) {
|
|
|
5987 |
switch (field) {
|
| 648 |
chandransh |
5988 |
case SUCCESS:
|
|
|
5989 |
return getSuccess();
|
| 412 |
ashish |
5990 |
|
| 648 |
chandransh |
5991 |
case SE:
|
|
|
5992 |
return getSe();
|
| 412 |
ashish |
5993 |
|
|
|
5994 |
}
|
|
|
5995 |
throw new IllegalStateException();
|
|
|
5996 |
}
|
|
|
5997 |
|
| 3430 |
rajveer |
5998 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
5999 |
public boolean isSet(_Fields field) {
|
|
|
6000 |
if (field == null) {
|
|
|
6001 |
throw new IllegalArgumentException();
|
|
|
6002 |
}
|
| 412 |
ashish |
6003 |
|
|
|
6004 |
switch (field) {
|
| 648 |
chandransh |
6005 |
case SUCCESS:
|
|
|
6006 |
return isSetSuccess();
|
|
|
6007 |
case SE:
|
|
|
6008 |
return isSetSe();
|
| 412 |
ashish |
6009 |
}
|
|
|
6010 |
throw new IllegalStateException();
|
|
|
6011 |
}
|
|
|
6012 |
|
|
|
6013 |
@Override
|
|
|
6014 |
public boolean equals(Object that) {
|
|
|
6015 |
if (that == null)
|
|
|
6016 |
return false;
|
| 648 |
chandransh |
6017 |
if (that instanceof getShipmentInfo_result)
|
|
|
6018 |
return this.equals((getShipmentInfo_result)that);
|
| 412 |
ashish |
6019 |
return false;
|
|
|
6020 |
}
|
|
|
6021 |
|
| 648 |
chandransh |
6022 |
public boolean equals(getShipmentInfo_result that) {
|
| 412 |
ashish |
6023 |
if (that == null)
|
|
|
6024 |
return false;
|
|
|
6025 |
|
| 648 |
chandransh |
6026 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
6027 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
6028 |
if (this_present_success || that_present_success) {
|
|
|
6029 |
if (!(this_present_success && that_present_success))
|
| 412 |
ashish |
6030 |
return false;
|
| 648 |
chandransh |
6031 |
if (!this.success.equals(that.success))
|
| 412 |
ashish |
6032 |
return false;
|
|
|
6033 |
}
|
|
|
6034 |
|
| 648 |
chandransh |
6035 |
boolean this_present_se = true && this.isSetSe();
|
|
|
6036 |
boolean that_present_se = true && that.isSetSe();
|
|
|
6037 |
if (this_present_se || that_present_se) {
|
|
|
6038 |
if (!(this_present_se && that_present_se))
|
| 412 |
ashish |
6039 |
return false;
|
| 648 |
chandransh |
6040 |
if (!this.se.equals(that.se))
|
| 412 |
ashish |
6041 |
return false;
|
|
|
6042 |
}
|
|
|
6043 |
|
|
|
6044 |
return true;
|
|
|
6045 |
}
|
|
|
6046 |
|
|
|
6047 |
@Override
|
|
|
6048 |
public int hashCode() {
|
|
|
6049 |
return 0;
|
|
|
6050 |
}
|
|
|
6051 |
|
| 648 |
chandransh |
6052 |
public int compareTo(getShipmentInfo_result other) {
|
| 412 |
ashish |
6053 |
if (!getClass().equals(other.getClass())) {
|
|
|
6054 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
6055 |
}
|
|
|
6056 |
|
|
|
6057 |
int lastComparison = 0;
|
| 648 |
chandransh |
6058 |
getShipmentInfo_result typedOther = (getShipmentInfo_result)other;
|
| 412 |
ashish |
6059 |
|
| 3430 |
rajveer |
6060 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 412 |
ashish |
6061 |
if (lastComparison != 0) {
|
|
|
6062 |
return lastComparison;
|
|
|
6063 |
}
|
| 3430 |
rajveer |
6064 |
if (isSetSuccess()) {
|
|
|
6065 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
6066 |
if (lastComparison != 0) {
|
|
|
6067 |
return lastComparison;
|
|
|
6068 |
}
|
| 412 |
ashish |
6069 |
}
|
| 3430 |
rajveer |
6070 |
lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
|
| 412 |
ashish |
6071 |
if (lastComparison != 0) {
|
|
|
6072 |
return lastComparison;
|
|
|
6073 |
}
|
| 3430 |
rajveer |
6074 |
if (isSetSe()) {
|
|
|
6075 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
|
|
|
6076 |
if (lastComparison != 0) {
|
|
|
6077 |
return lastComparison;
|
|
|
6078 |
}
|
| 412 |
ashish |
6079 |
}
|
|
|
6080 |
return 0;
|
|
|
6081 |
}
|
|
|
6082 |
|
| 3430 |
rajveer |
6083 |
public _Fields fieldForId(int fieldId) {
|
|
|
6084 |
return _Fields.findByThriftId(fieldId);
|
|
|
6085 |
}
|
|
|
6086 |
|
|
|
6087 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
6088 |
org.apache.thrift.protocol.TField field;
|
| 412 |
ashish |
6089 |
iprot.readStructBegin();
|
|
|
6090 |
while (true)
|
|
|
6091 |
{
|
|
|
6092 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
6093 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 412 |
ashish |
6094 |
break;
|
|
|
6095 |
}
|
| 3430 |
rajveer |
6096 |
switch (field.id) {
|
|
|
6097 |
case 0: // SUCCESS
|
|
|
6098 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
6099 |
{
|
|
|
6100 |
org.apache.thrift.protocol.TList _list9 = iprot.readListBegin();
|
|
|
6101 |
this.success = new ArrayList<AwbUpdate>(_list9.size);
|
|
|
6102 |
for (int _i10 = 0; _i10 < _list9.size; ++_i10)
|
| 412 |
ashish |
6103 |
{
|
| 3430 |
rajveer |
6104 |
AwbUpdate _elem11; // required
|
|
|
6105 |
_elem11 = new AwbUpdate();
|
|
|
6106 |
_elem11.read(iprot);
|
|
|
6107 |
this.success.add(_elem11);
|
| 412 |
ashish |
6108 |
}
|
| 3430 |
rajveer |
6109 |
iprot.readListEnd();
|
| 412 |
ashish |
6110 |
}
|
| 3430 |
rajveer |
6111 |
} else {
|
|
|
6112 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6113 |
}
|
|
|
6114 |
break;
|
|
|
6115 |
case 1: // SE
|
|
|
6116 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
6117 |
this.se = new LogisticsServiceException();
|
|
|
6118 |
this.se.read(iprot);
|
|
|
6119 |
} else {
|
|
|
6120 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6121 |
}
|
|
|
6122 |
break;
|
|
|
6123 |
default:
|
|
|
6124 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 412 |
ashish |
6125 |
}
|
| 3430 |
rajveer |
6126 |
iprot.readFieldEnd();
|
| 412 |
ashish |
6127 |
}
|
|
|
6128 |
iprot.readStructEnd();
|
|
|
6129 |
validate();
|
|
|
6130 |
}
|
|
|
6131 |
|
| 3430 |
rajveer |
6132 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 412 |
ashish |
6133 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
6134 |
|
|
|
6135 |
if (this.isSetSuccess()) {
|
|
|
6136 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
6137 |
{
|
| 3430 |
rajveer |
6138 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
| 3044 |
chandransh |
6139 |
for (AwbUpdate _iter12 : this.success)
|
| 412 |
ashish |
6140 |
{
|
| 3044 |
chandransh |
6141 |
_iter12.write(oprot);
|
| 412 |
ashish |
6142 |
}
|
|
|
6143 |
oprot.writeListEnd();
|
|
|
6144 |
}
|
|
|
6145 |
oprot.writeFieldEnd();
|
| 648 |
chandransh |
6146 |
} else if (this.isSetSe()) {
|
|
|
6147 |
oprot.writeFieldBegin(SE_FIELD_DESC);
|
|
|
6148 |
this.se.write(oprot);
|
|
|
6149 |
oprot.writeFieldEnd();
|
| 412 |
ashish |
6150 |
}
|
|
|
6151 |
oprot.writeFieldStop();
|
|
|
6152 |
oprot.writeStructEnd();
|
|
|
6153 |
}
|
|
|
6154 |
|
|
|
6155 |
@Override
|
|
|
6156 |
public String toString() {
|
| 648 |
chandransh |
6157 |
StringBuilder sb = new StringBuilder("getShipmentInfo_result(");
|
| 412 |
ashish |
6158 |
boolean first = true;
|
|
|
6159 |
|
|
|
6160 |
sb.append("success:");
|
|
|
6161 |
if (this.success == null) {
|
|
|
6162 |
sb.append("null");
|
|
|
6163 |
} else {
|
|
|
6164 |
sb.append(this.success);
|
|
|
6165 |
}
|
|
|
6166 |
first = false;
|
| 648 |
chandransh |
6167 |
if (!first) sb.append(", ");
|
|
|
6168 |
sb.append("se:");
|
|
|
6169 |
if (this.se == null) {
|
|
|
6170 |
sb.append("null");
|
|
|
6171 |
} else {
|
|
|
6172 |
sb.append(this.se);
|
|
|
6173 |
}
|
|
|
6174 |
first = false;
|
| 412 |
ashish |
6175 |
sb.append(")");
|
|
|
6176 |
return sb.toString();
|
|
|
6177 |
}
|
|
|
6178 |
|
| 3430 |
rajveer |
6179 |
public void validate() throws org.apache.thrift.TException {
|
| 412 |
ashish |
6180 |
// check for required fields
|
|
|
6181 |
}
|
|
|
6182 |
|
| 3430 |
rajveer |
6183 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
6184 |
try {
|
|
|
6185 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
6186 |
} catch (org.apache.thrift.TException te) {
|
|
|
6187 |
throw new java.io.IOException(te);
|
|
|
6188 |
}
|
|
|
6189 |
}
|
|
|
6190 |
|
|
|
6191 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
6192 |
try {
|
|
|
6193 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
6194 |
} catch (org.apache.thrift.TException te) {
|
|
|
6195 |
throw new java.io.IOException(te);
|
|
|
6196 |
}
|
|
|
6197 |
}
|
|
|
6198 |
|
| 412 |
ashish |
6199 |
}
|
|
|
6200 |
|
| 3430 |
rajveer |
6201 |
public static class getDestinationCode_args implements org.apache.thrift.TBase<getDestinationCode_args, getDestinationCode_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
6202 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_args");
|
| 730 |
chandransh |
6203 |
|
| 3430 |
rajveer |
6204 |
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);
|
|
|
6205 |
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 |
6206 |
|
| 3430 |
rajveer |
6207 |
private long providerId; // required
|
|
|
6208 |
private String pinCode; // required
|
| 730 |
chandransh |
6209 |
|
|
|
6210 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
6211 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 730 |
chandransh |
6212 |
PROVIDER_ID((short)1, "providerId"),
|
|
|
6213 |
PIN_CODE((short)2, "pinCode");
|
|
|
6214 |
|
|
|
6215 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
6216 |
|
|
|
6217 |
static {
|
|
|
6218 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
6219 |
byName.put(field.getFieldName(), field);
|
|
|
6220 |
}
|
|
|
6221 |
}
|
|
|
6222 |
|
|
|
6223 |
/**
|
|
|
6224 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
6225 |
*/
|
|
|
6226 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
6227 |
switch(fieldId) {
|
|
|
6228 |
case 1: // PROVIDER_ID
|
|
|
6229 |
return PROVIDER_ID;
|
|
|
6230 |
case 2: // PIN_CODE
|
|
|
6231 |
return PIN_CODE;
|
|
|
6232 |
default:
|
|
|
6233 |
return null;
|
|
|
6234 |
}
|
| 730 |
chandransh |
6235 |
}
|
|
|
6236 |
|
|
|
6237 |
/**
|
|
|
6238 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
6239 |
* if it is not found.
|
|
|
6240 |
*/
|
|
|
6241 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
6242 |
_Fields fields = findByThriftId(fieldId);
|
|
|
6243 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
6244 |
return fields;
|
|
|
6245 |
}
|
|
|
6246 |
|
|
|
6247 |
/**
|
|
|
6248 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
6249 |
*/
|
|
|
6250 |
public static _Fields findByName(String name) {
|
|
|
6251 |
return byName.get(name);
|
|
|
6252 |
}
|
|
|
6253 |
|
|
|
6254 |
private final short _thriftId;
|
|
|
6255 |
private final String _fieldName;
|
|
|
6256 |
|
|
|
6257 |
_Fields(short thriftId, String fieldName) {
|
|
|
6258 |
_thriftId = thriftId;
|
|
|
6259 |
_fieldName = fieldName;
|
|
|
6260 |
}
|
|
|
6261 |
|
|
|
6262 |
public short getThriftFieldId() {
|
|
|
6263 |
return _thriftId;
|
|
|
6264 |
}
|
|
|
6265 |
|
|
|
6266 |
public String getFieldName() {
|
|
|
6267 |
return _fieldName;
|
|
|
6268 |
}
|
|
|
6269 |
}
|
|
|
6270 |
|
|
|
6271 |
// isset id assignments
|
|
|
6272 |
private static final int __PROVIDERID_ISSET_ID = 0;
|
|
|
6273 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
6274 |
|
| 3430 |
rajveer |
6275 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 730 |
chandransh |
6276 |
static {
|
| 3430 |
rajveer |
6277 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
6278 |
tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6279 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
6280 |
tmpMap.put(_Fields.PIN_CODE, new org.apache.thrift.meta_data.FieldMetaData("pinCode", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6281 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
6282 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
6283 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_args.class, metaDataMap);
|
| 730 |
chandransh |
6284 |
}
|
|
|
6285 |
|
|
|
6286 |
public getDestinationCode_args() {
|
|
|
6287 |
}
|
|
|
6288 |
|
|
|
6289 |
public getDestinationCode_args(
|
|
|
6290 |
long providerId,
|
|
|
6291 |
String pinCode)
|
|
|
6292 |
{
|
|
|
6293 |
this();
|
|
|
6294 |
this.providerId = providerId;
|
|
|
6295 |
setProviderIdIsSet(true);
|
|
|
6296 |
this.pinCode = pinCode;
|
|
|
6297 |
}
|
|
|
6298 |
|
|
|
6299 |
/**
|
|
|
6300 |
* Performs a deep copy on <i>other</i>.
|
|
|
6301 |
*/
|
|
|
6302 |
public getDestinationCode_args(getDestinationCode_args other) {
|
|
|
6303 |
__isset_bit_vector.clear();
|
|
|
6304 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
6305 |
this.providerId = other.providerId;
|
|
|
6306 |
if (other.isSetPinCode()) {
|
|
|
6307 |
this.pinCode = other.pinCode;
|
|
|
6308 |
}
|
|
|
6309 |
}
|
|
|
6310 |
|
|
|
6311 |
public getDestinationCode_args deepCopy() {
|
|
|
6312 |
return new getDestinationCode_args(this);
|
|
|
6313 |
}
|
|
|
6314 |
|
| 3430 |
rajveer |
6315 |
@Override
|
|
|
6316 |
public void clear() {
|
|
|
6317 |
setProviderIdIsSet(false);
|
|
|
6318 |
this.providerId = 0;
|
|
|
6319 |
this.pinCode = null;
|
| 730 |
chandransh |
6320 |
}
|
|
|
6321 |
|
|
|
6322 |
public long getProviderId() {
|
|
|
6323 |
return this.providerId;
|
|
|
6324 |
}
|
|
|
6325 |
|
| 3430 |
rajveer |
6326 |
public void setProviderId(long providerId) {
|
| 730 |
chandransh |
6327 |
this.providerId = providerId;
|
|
|
6328 |
setProviderIdIsSet(true);
|
|
|
6329 |
}
|
|
|
6330 |
|
|
|
6331 |
public void unsetProviderId() {
|
|
|
6332 |
__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
|
|
|
6333 |
}
|
|
|
6334 |
|
| 3430 |
rajveer |
6335 |
/** Returns true if field providerId is set (has been assigned a value) and false otherwise */
|
| 730 |
chandransh |
6336 |
public boolean isSetProviderId() {
|
|
|
6337 |
return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
|
|
|
6338 |
}
|
|
|
6339 |
|
|
|
6340 |
public void setProviderIdIsSet(boolean value) {
|
|
|
6341 |
__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
|
|
|
6342 |
}
|
|
|
6343 |
|
|
|
6344 |
public String getPinCode() {
|
|
|
6345 |
return this.pinCode;
|
|
|
6346 |
}
|
|
|
6347 |
|
| 3430 |
rajveer |
6348 |
public void setPinCode(String pinCode) {
|
| 730 |
chandransh |
6349 |
this.pinCode = pinCode;
|
|
|
6350 |
}
|
|
|
6351 |
|
|
|
6352 |
public void unsetPinCode() {
|
|
|
6353 |
this.pinCode = null;
|
|
|
6354 |
}
|
|
|
6355 |
|
| 3430 |
rajveer |
6356 |
/** Returns true if field pinCode is set (has been assigned a value) and false otherwise */
|
| 730 |
chandransh |
6357 |
public boolean isSetPinCode() {
|
|
|
6358 |
return this.pinCode != null;
|
|
|
6359 |
}
|
|
|
6360 |
|
|
|
6361 |
public void setPinCodeIsSet(boolean value) {
|
|
|
6362 |
if (!value) {
|
|
|
6363 |
this.pinCode = null;
|
|
|
6364 |
}
|
|
|
6365 |
}
|
|
|
6366 |
|
|
|
6367 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
6368 |
switch (field) {
|
|
|
6369 |
case PROVIDER_ID:
|
|
|
6370 |
if (value == null) {
|
|
|
6371 |
unsetProviderId();
|
|
|
6372 |
} else {
|
|
|
6373 |
setProviderId((Long)value);
|
|
|
6374 |
}
|
|
|
6375 |
break;
|
|
|
6376 |
|
|
|
6377 |
case PIN_CODE:
|
|
|
6378 |
if (value == null) {
|
|
|
6379 |
unsetPinCode();
|
|
|
6380 |
} else {
|
|
|
6381 |
setPinCode((String)value);
|
|
|
6382 |
}
|
|
|
6383 |
break;
|
|
|
6384 |
|
|
|
6385 |
}
|
|
|
6386 |
}
|
|
|
6387 |
|
|
|
6388 |
public Object getFieldValue(_Fields field) {
|
|
|
6389 |
switch (field) {
|
|
|
6390 |
case PROVIDER_ID:
|
| 3430 |
rajveer |
6391 |
return Long.valueOf(getProviderId());
|
| 730 |
chandransh |
6392 |
|
|
|
6393 |
case PIN_CODE:
|
|
|
6394 |
return getPinCode();
|
|
|
6395 |
|
|
|
6396 |
}
|
|
|
6397 |
throw new IllegalStateException();
|
|
|
6398 |
}
|
|
|
6399 |
|
| 3430 |
rajveer |
6400 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
6401 |
public boolean isSet(_Fields field) {
|
|
|
6402 |
if (field == null) {
|
|
|
6403 |
throw new IllegalArgumentException();
|
|
|
6404 |
}
|
| 730 |
chandransh |
6405 |
|
|
|
6406 |
switch (field) {
|
|
|
6407 |
case PROVIDER_ID:
|
|
|
6408 |
return isSetProviderId();
|
|
|
6409 |
case PIN_CODE:
|
|
|
6410 |
return isSetPinCode();
|
|
|
6411 |
}
|
|
|
6412 |
throw new IllegalStateException();
|
|
|
6413 |
}
|
|
|
6414 |
|
|
|
6415 |
@Override
|
|
|
6416 |
public boolean equals(Object that) {
|
|
|
6417 |
if (that == null)
|
|
|
6418 |
return false;
|
|
|
6419 |
if (that instanceof getDestinationCode_args)
|
|
|
6420 |
return this.equals((getDestinationCode_args)that);
|
|
|
6421 |
return false;
|
|
|
6422 |
}
|
|
|
6423 |
|
|
|
6424 |
public boolean equals(getDestinationCode_args that) {
|
|
|
6425 |
if (that == null)
|
|
|
6426 |
return false;
|
|
|
6427 |
|
|
|
6428 |
boolean this_present_providerId = true;
|
|
|
6429 |
boolean that_present_providerId = true;
|
|
|
6430 |
if (this_present_providerId || that_present_providerId) {
|
|
|
6431 |
if (!(this_present_providerId && that_present_providerId))
|
|
|
6432 |
return false;
|
|
|
6433 |
if (this.providerId != that.providerId)
|
|
|
6434 |
return false;
|
|
|
6435 |
}
|
|
|
6436 |
|
|
|
6437 |
boolean this_present_pinCode = true && this.isSetPinCode();
|
|
|
6438 |
boolean that_present_pinCode = true && that.isSetPinCode();
|
|
|
6439 |
if (this_present_pinCode || that_present_pinCode) {
|
|
|
6440 |
if (!(this_present_pinCode && that_present_pinCode))
|
|
|
6441 |
return false;
|
|
|
6442 |
if (!this.pinCode.equals(that.pinCode))
|
|
|
6443 |
return false;
|
|
|
6444 |
}
|
|
|
6445 |
|
|
|
6446 |
return true;
|
|
|
6447 |
}
|
|
|
6448 |
|
|
|
6449 |
@Override
|
|
|
6450 |
public int hashCode() {
|
|
|
6451 |
return 0;
|
|
|
6452 |
}
|
|
|
6453 |
|
|
|
6454 |
public int compareTo(getDestinationCode_args other) {
|
|
|
6455 |
if (!getClass().equals(other.getClass())) {
|
|
|
6456 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
6457 |
}
|
|
|
6458 |
|
|
|
6459 |
int lastComparison = 0;
|
|
|
6460 |
getDestinationCode_args typedOther = (getDestinationCode_args)other;
|
|
|
6461 |
|
| 3430 |
rajveer |
6462 |
lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
|
| 730 |
chandransh |
6463 |
if (lastComparison != 0) {
|
|
|
6464 |
return lastComparison;
|
|
|
6465 |
}
|
| 3430 |
rajveer |
6466 |
if (isSetProviderId()) {
|
|
|
6467 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
|
|
|
6468 |
if (lastComparison != 0) {
|
|
|
6469 |
return lastComparison;
|
|
|
6470 |
}
|
| 730 |
chandransh |
6471 |
}
|
| 3430 |
rajveer |
6472 |
lastComparison = Boolean.valueOf(isSetPinCode()).compareTo(typedOther.isSetPinCode());
|
| 730 |
chandransh |
6473 |
if (lastComparison != 0) {
|
|
|
6474 |
return lastComparison;
|
|
|
6475 |
}
|
| 3430 |
rajveer |
6476 |
if (isSetPinCode()) {
|
|
|
6477 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pinCode, typedOther.pinCode);
|
|
|
6478 |
if (lastComparison != 0) {
|
|
|
6479 |
return lastComparison;
|
|
|
6480 |
}
|
| 730 |
chandransh |
6481 |
}
|
|
|
6482 |
return 0;
|
|
|
6483 |
}
|
|
|
6484 |
|
| 3430 |
rajveer |
6485 |
public _Fields fieldForId(int fieldId) {
|
|
|
6486 |
return _Fields.findByThriftId(fieldId);
|
|
|
6487 |
}
|
|
|
6488 |
|
|
|
6489 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
6490 |
org.apache.thrift.protocol.TField field;
|
| 730 |
chandransh |
6491 |
iprot.readStructBegin();
|
|
|
6492 |
while (true)
|
|
|
6493 |
{
|
|
|
6494 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
6495 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 730 |
chandransh |
6496 |
break;
|
|
|
6497 |
}
|
| 3430 |
rajveer |
6498 |
switch (field.id) {
|
|
|
6499 |
case 1: // PROVIDER_ID
|
|
|
6500 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
6501 |
this.providerId = iprot.readI64();
|
|
|
6502 |
setProviderIdIsSet(true);
|
|
|
6503 |
} else {
|
|
|
6504 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6505 |
}
|
|
|
6506 |
break;
|
|
|
6507 |
case 2: // PIN_CODE
|
|
|
6508 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
6509 |
this.pinCode = iprot.readString();
|
|
|
6510 |
} else {
|
|
|
6511 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6512 |
}
|
|
|
6513 |
break;
|
|
|
6514 |
default:
|
|
|
6515 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 730 |
chandransh |
6516 |
}
|
| 3430 |
rajveer |
6517 |
iprot.readFieldEnd();
|
| 730 |
chandransh |
6518 |
}
|
|
|
6519 |
iprot.readStructEnd();
|
|
|
6520 |
validate();
|
|
|
6521 |
}
|
|
|
6522 |
|
| 3430 |
rajveer |
6523 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 730 |
chandransh |
6524 |
validate();
|
|
|
6525 |
|
|
|
6526 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
6527 |
oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
|
|
|
6528 |
oprot.writeI64(this.providerId);
|
|
|
6529 |
oprot.writeFieldEnd();
|
|
|
6530 |
if (this.pinCode != null) {
|
|
|
6531 |
oprot.writeFieldBegin(PIN_CODE_FIELD_DESC);
|
|
|
6532 |
oprot.writeString(this.pinCode);
|
|
|
6533 |
oprot.writeFieldEnd();
|
|
|
6534 |
}
|
|
|
6535 |
oprot.writeFieldStop();
|
|
|
6536 |
oprot.writeStructEnd();
|
|
|
6537 |
}
|
|
|
6538 |
|
|
|
6539 |
@Override
|
|
|
6540 |
public String toString() {
|
|
|
6541 |
StringBuilder sb = new StringBuilder("getDestinationCode_args(");
|
|
|
6542 |
boolean first = true;
|
|
|
6543 |
|
|
|
6544 |
sb.append("providerId:");
|
|
|
6545 |
sb.append(this.providerId);
|
|
|
6546 |
first = false;
|
|
|
6547 |
if (!first) sb.append(", ");
|
|
|
6548 |
sb.append("pinCode:");
|
|
|
6549 |
if (this.pinCode == null) {
|
|
|
6550 |
sb.append("null");
|
|
|
6551 |
} else {
|
|
|
6552 |
sb.append(this.pinCode);
|
|
|
6553 |
}
|
|
|
6554 |
first = false;
|
|
|
6555 |
sb.append(")");
|
|
|
6556 |
return sb.toString();
|
|
|
6557 |
}
|
|
|
6558 |
|
| 3430 |
rajveer |
6559 |
public void validate() throws org.apache.thrift.TException {
|
| 730 |
chandransh |
6560 |
// check for required fields
|
|
|
6561 |
}
|
|
|
6562 |
|
| 3430 |
rajveer |
6563 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
6564 |
try {
|
|
|
6565 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
6566 |
} catch (org.apache.thrift.TException te) {
|
|
|
6567 |
throw new java.io.IOException(te);
|
|
|
6568 |
}
|
|
|
6569 |
}
|
|
|
6570 |
|
|
|
6571 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
6572 |
try {
|
|
|
6573 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
6574 |
} catch (org.apache.thrift.TException te) {
|
|
|
6575 |
throw new java.io.IOException(te);
|
|
|
6576 |
}
|
|
|
6577 |
}
|
|
|
6578 |
|
| 730 |
chandransh |
6579 |
}
|
|
|
6580 |
|
| 3430 |
rajveer |
6581 |
public static class getDestinationCode_result implements org.apache.thrift.TBase<getDestinationCode_result, getDestinationCode_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
6582 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_result");
|
| 730 |
chandransh |
6583 |
|
| 3430 |
rajveer |
6584 |
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);
|
|
|
6585 |
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 |
6586 |
|
| 3430 |
rajveer |
6587 |
private String success; // required
|
|
|
6588 |
private LogisticsServiceException se; // required
|
| 730 |
chandransh |
6589 |
|
|
|
6590 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
6591 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 730 |
chandransh |
6592 |
SUCCESS((short)0, "success"),
|
|
|
6593 |
SE((short)1, "se");
|
|
|
6594 |
|
|
|
6595 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
6596 |
|
|
|
6597 |
static {
|
|
|
6598 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
6599 |
byName.put(field.getFieldName(), field);
|
|
|
6600 |
}
|
|
|
6601 |
}
|
|
|
6602 |
|
|
|
6603 |
/**
|
|
|
6604 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
6605 |
*/
|
|
|
6606 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
6607 |
switch(fieldId) {
|
|
|
6608 |
case 0: // SUCCESS
|
|
|
6609 |
return SUCCESS;
|
|
|
6610 |
case 1: // SE
|
|
|
6611 |
return SE;
|
|
|
6612 |
default:
|
|
|
6613 |
return null;
|
|
|
6614 |
}
|
| 730 |
chandransh |
6615 |
}
|
|
|
6616 |
|
|
|
6617 |
/**
|
|
|
6618 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
6619 |
* if it is not found.
|
|
|
6620 |
*/
|
|
|
6621 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
6622 |
_Fields fields = findByThriftId(fieldId);
|
|
|
6623 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
6624 |
return fields;
|
|
|
6625 |
}
|
|
|
6626 |
|
|
|
6627 |
/**
|
|
|
6628 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
6629 |
*/
|
|
|
6630 |
public static _Fields findByName(String name) {
|
|
|
6631 |
return byName.get(name);
|
|
|
6632 |
}
|
|
|
6633 |
|
|
|
6634 |
private final short _thriftId;
|
|
|
6635 |
private final String _fieldName;
|
|
|
6636 |
|
|
|
6637 |
_Fields(short thriftId, String fieldName) {
|
|
|
6638 |
_thriftId = thriftId;
|
|
|
6639 |
_fieldName = fieldName;
|
|
|
6640 |
}
|
|
|
6641 |
|
|
|
6642 |
public short getThriftFieldId() {
|
|
|
6643 |
return _thriftId;
|
|
|
6644 |
}
|
|
|
6645 |
|
|
|
6646 |
public String getFieldName() {
|
|
|
6647 |
return _fieldName;
|
|
|
6648 |
}
|
|
|
6649 |
}
|
|
|
6650 |
|
|
|
6651 |
// isset id assignments
|
|
|
6652 |
|
| 3430 |
rajveer |
6653 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 730 |
chandransh |
6654 |
static {
|
| 3430 |
rajveer |
6655 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
6656 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6657 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
6658 |
tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6659 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
6660 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
6661 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_result.class, metaDataMap);
|
| 730 |
chandransh |
6662 |
}
|
|
|
6663 |
|
|
|
6664 |
public getDestinationCode_result() {
|
|
|
6665 |
}
|
|
|
6666 |
|
|
|
6667 |
public getDestinationCode_result(
|
|
|
6668 |
String success,
|
|
|
6669 |
LogisticsServiceException se)
|
|
|
6670 |
{
|
|
|
6671 |
this();
|
|
|
6672 |
this.success = success;
|
|
|
6673 |
this.se = se;
|
|
|
6674 |
}
|
|
|
6675 |
|
|
|
6676 |
/**
|
|
|
6677 |
* Performs a deep copy on <i>other</i>.
|
|
|
6678 |
*/
|
|
|
6679 |
public getDestinationCode_result(getDestinationCode_result other) {
|
|
|
6680 |
if (other.isSetSuccess()) {
|
|
|
6681 |
this.success = other.success;
|
|
|
6682 |
}
|
|
|
6683 |
if (other.isSetSe()) {
|
|
|
6684 |
this.se = new LogisticsServiceException(other.se);
|
|
|
6685 |
}
|
|
|
6686 |
}
|
|
|
6687 |
|
|
|
6688 |
public getDestinationCode_result deepCopy() {
|
|
|
6689 |
return new getDestinationCode_result(this);
|
|
|
6690 |
}
|
|
|
6691 |
|
| 3430 |
rajveer |
6692 |
@Override
|
|
|
6693 |
public void clear() {
|
|
|
6694 |
this.success = null;
|
|
|
6695 |
this.se = null;
|
| 730 |
chandransh |
6696 |
}
|
|
|
6697 |
|
|
|
6698 |
public String getSuccess() {
|
|
|
6699 |
return this.success;
|
|
|
6700 |
}
|
|
|
6701 |
|
| 3430 |
rajveer |
6702 |
public void setSuccess(String success) {
|
| 730 |
chandransh |
6703 |
this.success = success;
|
|
|
6704 |
}
|
|
|
6705 |
|
|
|
6706 |
public void unsetSuccess() {
|
|
|
6707 |
this.success = null;
|
|
|
6708 |
}
|
|
|
6709 |
|
| 3430 |
rajveer |
6710 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 730 |
chandransh |
6711 |
public boolean isSetSuccess() {
|
|
|
6712 |
return this.success != null;
|
|
|
6713 |
}
|
|
|
6714 |
|
|
|
6715 |
public void setSuccessIsSet(boolean value) {
|
|
|
6716 |
if (!value) {
|
|
|
6717 |
this.success = null;
|
|
|
6718 |
}
|
|
|
6719 |
}
|
|
|
6720 |
|
|
|
6721 |
public LogisticsServiceException getSe() {
|
|
|
6722 |
return this.se;
|
|
|
6723 |
}
|
|
|
6724 |
|
| 3430 |
rajveer |
6725 |
public void setSe(LogisticsServiceException se) {
|
| 730 |
chandransh |
6726 |
this.se = se;
|
|
|
6727 |
}
|
|
|
6728 |
|
|
|
6729 |
public void unsetSe() {
|
|
|
6730 |
this.se = null;
|
|
|
6731 |
}
|
|
|
6732 |
|
| 3430 |
rajveer |
6733 |
/** Returns true if field se is set (has been assigned a value) and false otherwise */
|
| 730 |
chandransh |
6734 |
public boolean isSetSe() {
|
|
|
6735 |
return this.se != null;
|
|
|
6736 |
}
|
|
|
6737 |
|
|
|
6738 |
public void setSeIsSet(boolean value) {
|
|
|
6739 |
if (!value) {
|
|
|
6740 |
this.se = null;
|
|
|
6741 |
}
|
|
|
6742 |
}
|
|
|
6743 |
|
|
|
6744 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
6745 |
switch (field) {
|
|
|
6746 |
case SUCCESS:
|
|
|
6747 |
if (value == null) {
|
|
|
6748 |
unsetSuccess();
|
|
|
6749 |
} else {
|
|
|
6750 |
setSuccess((String)value);
|
|
|
6751 |
}
|
|
|
6752 |
break;
|
|
|
6753 |
|
|
|
6754 |
case SE:
|
|
|
6755 |
if (value == null) {
|
|
|
6756 |
unsetSe();
|
|
|
6757 |
} else {
|
|
|
6758 |
setSe((LogisticsServiceException)value);
|
|
|
6759 |
}
|
|
|
6760 |
break;
|
|
|
6761 |
|
|
|
6762 |
}
|
|
|
6763 |
}
|
|
|
6764 |
|
|
|
6765 |
public Object getFieldValue(_Fields field) {
|
|
|
6766 |
switch (field) {
|
|
|
6767 |
case SUCCESS:
|
|
|
6768 |
return getSuccess();
|
|
|
6769 |
|
|
|
6770 |
case SE:
|
|
|
6771 |
return getSe();
|
|
|
6772 |
|
|
|
6773 |
}
|
|
|
6774 |
throw new IllegalStateException();
|
|
|
6775 |
}
|
|
|
6776 |
|
| 3430 |
rajveer |
6777 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
6778 |
public boolean isSet(_Fields field) {
|
|
|
6779 |
if (field == null) {
|
|
|
6780 |
throw new IllegalArgumentException();
|
|
|
6781 |
}
|
| 730 |
chandransh |
6782 |
|
|
|
6783 |
switch (field) {
|
|
|
6784 |
case SUCCESS:
|
|
|
6785 |
return isSetSuccess();
|
|
|
6786 |
case SE:
|
|
|
6787 |
return isSetSe();
|
|
|
6788 |
}
|
|
|
6789 |
throw new IllegalStateException();
|
|
|
6790 |
}
|
|
|
6791 |
|
|
|
6792 |
@Override
|
|
|
6793 |
public boolean equals(Object that) {
|
|
|
6794 |
if (that == null)
|
|
|
6795 |
return false;
|
|
|
6796 |
if (that instanceof getDestinationCode_result)
|
|
|
6797 |
return this.equals((getDestinationCode_result)that);
|
|
|
6798 |
return false;
|
|
|
6799 |
}
|
|
|
6800 |
|
|
|
6801 |
public boolean equals(getDestinationCode_result that) {
|
|
|
6802 |
if (that == null)
|
|
|
6803 |
return false;
|
|
|
6804 |
|
|
|
6805 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
6806 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
6807 |
if (this_present_success || that_present_success) {
|
|
|
6808 |
if (!(this_present_success && that_present_success))
|
|
|
6809 |
return false;
|
|
|
6810 |
if (!this.success.equals(that.success))
|
|
|
6811 |
return false;
|
|
|
6812 |
}
|
|
|
6813 |
|
|
|
6814 |
boolean this_present_se = true && this.isSetSe();
|
|
|
6815 |
boolean that_present_se = true && that.isSetSe();
|
|
|
6816 |
if (this_present_se || that_present_se) {
|
|
|
6817 |
if (!(this_present_se && that_present_se))
|
|
|
6818 |
return false;
|
|
|
6819 |
if (!this.se.equals(that.se))
|
|
|
6820 |
return false;
|
|
|
6821 |
}
|
|
|
6822 |
|
|
|
6823 |
return true;
|
|
|
6824 |
}
|
|
|
6825 |
|
|
|
6826 |
@Override
|
|
|
6827 |
public int hashCode() {
|
|
|
6828 |
return 0;
|
|
|
6829 |
}
|
|
|
6830 |
|
|
|
6831 |
public int compareTo(getDestinationCode_result other) {
|
|
|
6832 |
if (!getClass().equals(other.getClass())) {
|
|
|
6833 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
6834 |
}
|
|
|
6835 |
|
|
|
6836 |
int lastComparison = 0;
|
|
|
6837 |
getDestinationCode_result typedOther = (getDestinationCode_result)other;
|
|
|
6838 |
|
| 3430 |
rajveer |
6839 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 730 |
chandransh |
6840 |
if (lastComparison != 0) {
|
|
|
6841 |
return lastComparison;
|
|
|
6842 |
}
|
| 3430 |
rajveer |
6843 |
if (isSetSuccess()) {
|
|
|
6844 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
6845 |
if (lastComparison != 0) {
|
|
|
6846 |
return lastComparison;
|
|
|
6847 |
}
|
| 730 |
chandransh |
6848 |
}
|
| 3430 |
rajveer |
6849 |
lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
|
| 730 |
chandransh |
6850 |
if (lastComparison != 0) {
|
|
|
6851 |
return lastComparison;
|
|
|
6852 |
}
|
| 3430 |
rajveer |
6853 |
if (isSetSe()) {
|
|
|
6854 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
|
|
|
6855 |
if (lastComparison != 0) {
|
|
|
6856 |
return lastComparison;
|
|
|
6857 |
}
|
| 730 |
chandransh |
6858 |
}
|
|
|
6859 |
return 0;
|
|
|
6860 |
}
|
|
|
6861 |
|
| 3430 |
rajveer |
6862 |
public _Fields fieldForId(int fieldId) {
|
|
|
6863 |
return _Fields.findByThriftId(fieldId);
|
|
|
6864 |
}
|
|
|
6865 |
|
|
|
6866 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
6867 |
org.apache.thrift.protocol.TField field;
|
| 730 |
chandransh |
6868 |
iprot.readStructBegin();
|
|
|
6869 |
while (true)
|
|
|
6870 |
{
|
|
|
6871 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
6872 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 730 |
chandransh |
6873 |
break;
|
|
|
6874 |
}
|
| 3430 |
rajveer |
6875 |
switch (field.id) {
|
|
|
6876 |
case 0: // SUCCESS
|
|
|
6877 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
6878 |
this.success = iprot.readString();
|
|
|
6879 |
} else {
|
|
|
6880 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6881 |
}
|
|
|
6882 |
break;
|
|
|
6883 |
case 1: // SE
|
|
|
6884 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
6885 |
this.se = new LogisticsServiceException();
|
|
|
6886 |
this.se.read(iprot);
|
|
|
6887 |
} else {
|
|
|
6888 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6889 |
}
|
|
|
6890 |
break;
|
|
|
6891 |
default:
|
|
|
6892 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 730 |
chandransh |
6893 |
}
|
| 3430 |
rajveer |
6894 |
iprot.readFieldEnd();
|
| 730 |
chandransh |
6895 |
}
|
|
|
6896 |
iprot.readStructEnd();
|
|
|
6897 |
validate();
|
|
|
6898 |
}
|
|
|
6899 |
|
| 3430 |
rajveer |
6900 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 730 |
chandransh |
6901 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
6902 |
|
|
|
6903 |
if (this.isSetSuccess()) {
|
|
|
6904 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
6905 |
oprot.writeString(this.success);
|
|
|
6906 |
oprot.writeFieldEnd();
|
|
|
6907 |
} else if (this.isSetSe()) {
|
|
|
6908 |
oprot.writeFieldBegin(SE_FIELD_DESC);
|
|
|
6909 |
this.se.write(oprot);
|
|
|
6910 |
oprot.writeFieldEnd();
|
|
|
6911 |
}
|
|
|
6912 |
oprot.writeFieldStop();
|
|
|
6913 |
oprot.writeStructEnd();
|
|
|
6914 |
}
|
|
|
6915 |
|
|
|
6916 |
@Override
|
|
|
6917 |
public String toString() {
|
|
|
6918 |
StringBuilder sb = new StringBuilder("getDestinationCode_result(");
|
|
|
6919 |
boolean first = true;
|
|
|
6920 |
|
|
|
6921 |
sb.append("success:");
|
|
|
6922 |
if (this.success == null) {
|
|
|
6923 |
sb.append("null");
|
|
|
6924 |
} else {
|
|
|
6925 |
sb.append(this.success);
|
|
|
6926 |
}
|
|
|
6927 |
first = false;
|
|
|
6928 |
if (!first) sb.append(", ");
|
|
|
6929 |
sb.append("se:");
|
|
|
6930 |
if (this.se == null) {
|
|
|
6931 |
sb.append("null");
|
|
|
6932 |
} else {
|
|
|
6933 |
sb.append(this.se);
|
|
|
6934 |
}
|
|
|
6935 |
first = false;
|
|
|
6936 |
sb.append(")");
|
|
|
6937 |
return sb.toString();
|
|
|
6938 |
}
|
|
|
6939 |
|
| 3430 |
rajveer |
6940 |
public void validate() throws org.apache.thrift.TException {
|
| 730 |
chandransh |
6941 |
// check for required fields
|
|
|
6942 |
}
|
|
|
6943 |
|
| 3430 |
rajveer |
6944 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
6945 |
try {
|
|
|
6946 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
6947 |
} catch (org.apache.thrift.TException te) {
|
|
|
6948 |
throw new java.io.IOException(te);
|
|
|
6949 |
}
|
|
|
6950 |
}
|
|
|
6951 |
|
|
|
6952 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
6953 |
try {
|
|
|
6954 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
6955 |
} catch (org.apache.thrift.TException te) {
|
|
|
6956 |
throw new java.io.IOException(te);
|
|
|
6957 |
}
|
|
|
6958 |
}
|
|
|
6959 |
|
| 730 |
chandransh |
6960 |
}
|
|
|
6961 |
|
| 3430 |
rajveer |
6962 |
public static class getFreeAwbCount_args implements org.apache.thrift.TBase<getFreeAwbCount_args, getFreeAwbCount_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
6963 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_args");
|
| 1139 |
chandransh |
6964 |
|
| 3430 |
rajveer |
6965 |
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);
|
|
|
6966 |
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 |
6967 |
|
| 3430 |
rajveer |
6968 |
private long providerId; // required
|
|
|
6969 |
private String type; // required
|
| 1139 |
chandransh |
6970 |
|
|
|
6971 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
6972 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 3103 |
chandransh |
6973 |
PROVIDER_ID((short)1, "providerId"),
|
|
|
6974 |
TYPE((short)2, "type");
|
| 1139 |
chandransh |
6975 |
|
|
|
6976 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
6977 |
|
|
|
6978 |
static {
|
|
|
6979 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
6980 |
byName.put(field.getFieldName(), field);
|
|
|
6981 |
}
|
|
|
6982 |
}
|
|
|
6983 |
|
|
|
6984 |
/**
|
|
|
6985 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
6986 |
*/
|
|
|
6987 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
6988 |
switch(fieldId) {
|
|
|
6989 |
case 1: // PROVIDER_ID
|
|
|
6990 |
return PROVIDER_ID;
|
|
|
6991 |
case 2: // TYPE
|
|
|
6992 |
return TYPE;
|
|
|
6993 |
default:
|
|
|
6994 |
return null;
|
|
|
6995 |
}
|
| 1139 |
chandransh |
6996 |
}
|
|
|
6997 |
|
|
|
6998 |
/**
|
|
|
6999 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
7000 |
* if it is not found.
|
|
|
7001 |
*/
|
|
|
7002 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
7003 |
_Fields fields = findByThriftId(fieldId);
|
|
|
7004 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
7005 |
return fields;
|
|
|
7006 |
}
|
|
|
7007 |
|
|
|
7008 |
/**
|
|
|
7009 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
7010 |
*/
|
|
|
7011 |
public static _Fields findByName(String name) {
|
|
|
7012 |
return byName.get(name);
|
|
|
7013 |
}
|
|
|
7014 |
|
|
|
7015 |
private final short _thriftId;
|
|
|
7016 |
private final String _fieldName;
|
|
|
7017 |
|
|
|
7018 |
_Fields(short thriftId, String fieldName) {
|
|
|
7019 |
_thriftId = thriftId;
|
|
|
7020 |
_fieldName = fieldName;
|
|
|
7021 |
}
|
|
|
7022 |
|
|
|
7023 |
public short getThriftFieldId() {
|
|
|
7024 |
return _thriftId;
|
|
|
7025 |
}
|
|
|
7026 |
|
|
|
7027 |
public String getFieldName() {
|
|
|
7028 |
return _fieldName;
|
|
|
7029 |
}
|
|
|
7030 |
}
|
|
|
7031 |
|
|
|
7032 |
// isset id assignments
|
|
|
7033 |
private static final int __PROVIDERID_ISSET_ID = 0;
|
|
|
7034 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
7035 |
|
| 3430 |
rajveer |
7036 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 1139 |
chandransh |
7037 |
static {
|
| 3430 |
rajveer |
7038 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
7039 |
tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
7040 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
7041 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
7042 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
7043 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
7044 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_args.class, metaDataMap);
|
| 1139 |
chandransh |
7045 |
}
|
|
|
7046 |
|
|
|
7047 |
public getFreeAwbCount_args() {
|
|
|
7048 |
}
|
|
|
7049 |
|
|
|
7050 |
public getFreeAwbCount_args(
|
| 3103 |
chandransh |
7051 |
long providerId,
|
|
|
7052 |
String type)
|
| 1139 |
chandransh |
7053 |
{
|
|
|
7054 |
this();
|
|
|
7055 |
this.providerId = providerId;
|
|
|
7056 |
setProviderIdIsSet(true);
|
| 3103 |
chandransh |
7057 |
this.type = type;
|
| 1139 |
chandransh |
7058 |
}
|
|
|
7059 |
|
|
|
7060 |
/**
|
|
|
7061 |
* Performs a deep copy on <i>other</i>.
|
|
|
7062 |
*/
|
|
|
7063 |
public getFreeAwbCount_args(getFreeAwbCount_args other) {
|
|
|
7064 |
__isset_bit_vector.clear();
|
|
|
7065 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
7066 |
this.providerId = other.providerId;
|
| 3103 |
chandransh |
7067 |
if (other.isSetType()) {
|
|
|
7068 |
this.type = other.type;
|
|
|
7069 |
}
|
| 1139 |
chandransh |
7070 |
}
|
|
|
7071 |
|
|
|
7072 |
public getFreeAwbCount_args deepCopy() {
|
|
|
7073 |
return new getFreeAwbCount_args(this);
|
|
|
7074 |
}
|
|
|
7075 |
|
| 3430 |
rajveer |
7076 |
@Override
|
|
|
7077 |
public void clear() {
|
|
|
7078 |
setProviderIdIsSet(false);
|
|
|
7079 |
this.providerId = 0;
|
|
|
7080 |
this.type = null;
|
| 1139 |
chandransh |
7081 |
}
|
|
|
7082 |
|
|
|
7083 |
public long getProviderId() {
|
|
|
7084 |
return this.providerId;
|
|
|
7085 |
}
|
|
|
7086 |
|
| 3430 |
rajveer |
7087 |
public void setProviderId(long providerId) {
|
| 1139 |
chandransh |
7088 |
this.providerId = providerId;
|
|
|
7089 |
setProviderIdIsSet(true);
|
|
|
7090 |
}
|
|
|
7091 |
|
|
|
7092 |
public void unsetProviderId() {
|
|
|
7093 |
__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
|
|
|
7094 |
}
|
|
|
7095 |
|
| 3430 |
rajveer |
7096 |
/** Returns true if field providerId is set (has been assigned a value) and false otherwise */
|
| 1139 |
chandransh |
7097 |
public boolean isSetProviderId() {
|
|
|
7098 |
return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
|
|
|
7099 |
}
|
|
|
7100 |
|
|
|
7101 |
public void setProviderIdIsSet(boolean value) {
|
|
|
7102 |
__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
|
|
|
7103 |
}
|
|
|
7104 |
|
| 3103 |
chandransh |
7105 |
public String getType() {
|
|
|
7106 |
return this.type;
|
|
|
7107 |
}
|
|
|
7108 |
|
| 3430 |
rajveer |
7109 |
public void setType(String type) {
|
| 3103 |
chandransh |
7110 |
this.type = type;
|
|
|
7111 |
}
|
|
|
7112 |
|
|
|
7113 |
public void unsetType() {
|
|
|
7114 |
this.type = null;
|
|
|
7115 |
}
|
|
|
7116 |
|
| 3430 |
rajveer |
7117 |
/** Returns true if field type is set (has been assigned a value) and false otherwise */
|
| 3103 |
chandransh |
7118 |
public boolean isSetType() {
|
|
|
7119 |
return this.type != null;
|
|
|
7120 |
}
|
|
|
7121 |
|
|
|
7122 |
public void setTypeIsSet(boolean value) {
|
|
|
7123 |
if (!value) {
|
|
|
7124 |
this.type = null;
|
|
|
7125 |
}
|
|
|
7126 |
}
|
|
|
7127 |
|
| 1139 |
chandransh |
7128 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
7129 |
switch (field) {
|
|
|
7130 |
case PROVIDER_ID:
|
|
|
7131 |
if (value == null) {
|
|
|
7132 |
unsetProviderId();
|
|
|
7133 |
} else {
|
|
|
7134 |
setProviderId((Long)value);
|
|
|
7135 |
}
|
|
|
7136 |
break;
|
|
|
7137 |
|
| 3103 |
chandransh |
7138 |
case TYPE:
|
|
|
7139 |
if (value == null) {
|
|
|
7140 |
unsetType();
|
|
|
7141 |
} else {
|
|
|
7142 |
setType((String)value);
|
|
|
7143 |
}
|
|
|
7144 |
break;
|
|
|
7145 |
|
| 1139 |
chandransh |
7146 |
}
|
|
|
7147 |
}
|
|
|
7148 |
|
|
|
7149 |
public Object getFieldValue(_Fields field) {
|
|
|
7150 |
switch (field) {
|
|
|
7151 |
case PROVIDER_ID:
|
| 3430 |
rajveer |
7152 |
return Long.valueOf(getProviderId());
|
| 1139 |
chandransh |
7153 |
|
| 3103 |
chandransh |
7154 |
case TYPE:
|
|
|
7155 |
return getType();
|
|
|
7156 |
|
| 1139 |
chandransh |
7157 |
}
|
|
|
7158 |
throw new IllegalStateException();
|
|
|
7159 |
}
|
|
|
7160 |
|
| 3430 |
rajveer |
7161 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
7162 |
public boolean isSet(_Fields field) {
|
|
|
7163 |
if (field == null) {
|
|
|
7164 |
throw new IllegalArgumentException();
|
|
|
7165 |
}
|
| 1139 |
chandransh |
7166 |
|
|
|
7167 |
switch (field) {
|
|
|
7168 |
case PROVIDER_ID:
|
|
|
7169 |
return isSetProviderId();
|
| 3103 |
chandransh |
7170 |
case TYPE:
|
|
|
7171 |
return isSetType();
|
| 1139 |
chandransh |
7172 |
}
|
|
|
7173 |
throw new IllegalStateException();
|
|
|
7174 |
}
|
|
|
7175 |
|
|
|
7176 |
@Override
|
|
|
7177 |
public boolean equals(Object that) {
|
|
|
7178 |
if (that == null)
|
|
|
7179 |
return false;
|
|
|
7180 |
if (that instanceof getFreeAwbCount_args)
|
|
|
7181 |
return this.equals((getFreeAwbCount_args)that);
|
|
|
7182 |
return false;
|
|
|
7183 |
}
|
|
|
7184 |
|
|
|
7185 |
public boolean equals(getFreeAwbCount_args that) {
|
|
|
7186 |
if (that == null)
|
|
|
7187 |
return false;
|
|
|
7188 |
|
|
|
7189 |
boolean this_present_providerId = true;
|
|
|
7190 |
boolean that_present_providerId = true;
|
|
|
7191 |
if (this_present_providerId || that_present_providerId) {
|
|
|
7192 |
if (!(this_present_providerId && that_present_providerId))
|
|
|
7193 |
return false;
|
|
|
7194 |
if (this.providerId != that.providerId)
|
|
|
7195 |
return false;
|
|
|
7196 |
}
|
|
|
7197 |
|
| 3103 |
chandransh |
7198 |
boolean this_present_type = true && this.isSetType();
|
|
|
7199 |
boolean that_present_type = true && that.isSetType();
|
|
|
7200 |
if (this_present_type || that_present_type) {
|
|
|
7201 |
if (!(this_present_type && that_present_type))
|
|
|
7202 |
return false;
|
|
|
7203 |
if (!this.type.equals(that.type))
|
|
|
7204 |
return false;
|
|
|
7205 |
}
|
|
|
7206 |
|
| 1139 |
chandransh |
7207 |
return true;
|
|
|
7208 |
}
|
|
|
7209 |
|
|
|
7210 |
@Override
|
|
|
7211 |
public int hashCode() {
|
|
|
7212 |
return 0;
|
|
|
7213 |
}
|
|
|
7214 |
|
|
|
7215 |
public int compareTo(getFreeAwbCount_args other) {
|
|
|
7216 |
if (!getClass().equals(other.getClass())) {
|
|
|
7217 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
7218 |
}
|
|
|
7219 |
|
|
|
7220 |
int lastComparison = 0;
|
|
|
7221 |
getFreeAwbCount_args typedOther = (getFreeAwbCount_args)other;
|
|
|
7222 |
|
| 3430 |
rajveer |
7223 |
lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
|
| 1139 |
chandransh |
7224 |
if (lastComparison != 0) {
|
|
|
7225 |
return lastComparison;
|
|
|
7226 |
}
|
| 3430 |
rajveer |
7227 |
if (isSetProviderId()) {
|
|
|
7228 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
|
|
|
7229 |
if (lastComparison != 0) {
|
|
|
7230 |
return lastComparison;
|
|
|
7231 |
}
|
| 1139 |
chandransh |
7232 |
}
|
| 3430 |
rajveer |
7233 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
| 3103 |
chandransh |
7234 |
if (lastComparison != 0) {
|
|
|
7235 |
return lastComparison;
|
|
|
7236 |
}
|
| 3430 |
rajveer |
7237 |
if (isSetType()) {
|
|
|
7238 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
|
|
7239 |
if (lastComparison != 0) {
|
|
|
7240 |
return lastComparison;
|
|
|
7241 |
}
|
| 3103 |
chandransh |
7242 |
}
|
| 1139 |
chandransh |
7243 |
return 0;
|
|
|
7244 |
}
|
|
|
7245 |
|
| 3430 |
rajveer |
7246 |
public _Fields fieldForId(int fieldId) {
|
|
|
7247 |
return _Fields.findByThriftId(fieldId);
|
|
|
7248 |
}
|
|
|
7249 |
|
|
|
7250 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
7251 |
org.apache.thrift.protocol.TField field;
|
| 1139 |
chandransh |
7252 |
iprot.readStructBegin();
|
|
|
7253 |
while (true)
|
|
|
7254 |
{
|
|
|
7255 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
7256 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 1139 |
chandransh |
7257 |
break;
|
|
|
7258 |
}
|
| 3430 |
rajveer |
7259 |
switch (field.id) {
|
|
|
7260 |
case 1: // PROVIDER_ID
|
|
|
7261 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
7262 |
this.providerId = iprot.readI64();
|
|
|
7263 |
setProviderIdIsSet(true);
|
|
|
7264 |
} else {
|
|
|
7265 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7266 |
}
|
|
|
7267 |
break;
|
|
|
7268 |
case 2: // TYPE
|
|
|
7269 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
7270 |
this.type = iprot.readString();
|
|
|
7271 |
} else {
|
|
|
7272 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7273 |
}
|
|
|
7274 |
break;
|
|
|
7275 |
default:
|
|
|
7276 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 1139 |
chandransh |
7277 |
}
|
| 3430 |
rajveer |
7278 |
iprot.readFieldEnd();
|
| 1139 |
chandransh |
7279 |
}
|
|
|
7280 |
iprot.readStructEnd();
|
|
|
7281 |
validate();
|
|
|
7282 |
}
|
|
|
7283 |
|
| 3430 |
rajveer |
7284 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 1139 |
chandransh |
7285 |
validate();
|
|
|
7286 |
|
|
|
7287 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
7288 |
oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
|
|
|
7289 |
oprot.writeI64(this.providerId);
|
|
|
7290 |
oprot.writeFieldEnd();
|
| 3103 |
chandransh |
7291 |
if (this.type != null) {
|
|
|
7292 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
|
|
7293 |
oprot.writeString(this.type);
|
|
|
7294 |
oprot.writeFieldEnd();
|
|
|
7295 |
}
|
| 1139 |
chandransh |
7296 |
oprot.writeFieldStop();
|
|
|
7297 |
oprot.writeStructEnd();
|
|
|
7298 |
}
|
|
|
7299 |
|
|
|
7300 |
@Override
|
|
|
7301 |
public String toString() {
|
|
|
7302 |
StringBuilder sb = new StringBuilder("getFreeAwbCount_args(");
|
|
|
7303 |
boolean first = true;
|
|
|
7304 |
|
|
|
7305 |
sb.append("providerId:");
|
|
|
7306 |
sb.append(this.providerId);
|
|
|
7307 |
first = false;
|
| 3103 |
chandransh |
7308 |
if (!first) sb.append(", ");
|
|
|
7309 |
sb.append("type:");
|
|
|
7310 |
if (this.type == null) {
|
|
|
7311 |
sb.append("null");
|
|
|
7312 |
} else {
|
|
|
7313 |
sb.append(this.type);
|
|
|
7314 |
}
|
|
|
7315 |
first = false;
|
| 1139 |
chandransh |
7316 |
sb.append(")");
|
|
|
7317 |
return sb.toString();
|
|
|
7318 |
}
|
|
|
7319 |
|
| 3430 |
rajveer |
7320 |
public void validate() throws org.apache.thrift.TException {
|
| 1139 |
chandransh |
7321 |
// check for required fields
|
|
|
7322 |
}
|
|
|
7323 |
|
| 3430 |
rajveer |
7324 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
7325 |
try {
|
|
|
7326 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
7327 |
} catch (org.apache.thrift.TException te) {
|
|
|
7328 |
throw new java.io.IOException(te);
|
|
|
7329 |
}
|
|
|
7330 |
}
|
|
|
7331 |
|
|
|
7332 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
7333 |
try {
|
|
|
7334 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
7335 |
} catch (org.apache.thrift.TException te) {
|
|
|
7336 |
throw new java.io.IOException(te);
|
|
|
7337 |
}
|
|
|
7338 |
}
|
|
|
7339 |
|
| 1139 |
chandransh |
7340 |
}
|
|
|
7341 |
|
| 3430 |
rajveer |
7342 |
public static class getFreeAwbCount_result implements org.apache.thrift.TBase<getFreeAwbCount_result, getFreeAwbCount_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
7343 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_result");
|
| 1139 |
chandransh |
7344 |
|
| 3430 |
rajveer |
7345 |
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 |
7346 |
|
| 3430 |
rajveer |
7347 |
private long success; // required
|
| 1139 |
chandransh |
7348 |
|
|
|
7349 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
7350 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 1139 |
chandransh |
7351 |
SUCCESS((short)0, "success");
|
|
|
7352 |
|
|
|
7353 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
7354 |
|
|
|
7355 |
static {
|
|
|
7356 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
7357 |
byName.put(field.getFieldName(), field);
|
|
|
7358 |
}
|
|
|
7359 |
}
|
|
|
7360 |
|
|
|
7361 |
/**
|
|
|
7362 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
7363 |
*/
|
|
|
7364 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
7365 |
switch(fieldId) {
|
|
|
7366 |
case 0: // SUCCESS
|
|
|
7367 |
return SUCCESS;
|
|
|
7368 |
default:
|
|
|
7369 |
return null;
|
|
|
7370 |
}
|
| 1139 |
chandransh |
7371 |
}
|
|
|
7372 |
|
|
|
7373 |
/**
|
|
|
7374 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
7375 |
* if it is not found.
|
|
|
7376 |
*/
|
|
|
7377 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
7378 |
_Fields fields = findByThriftId(fieldId);
|
|
|
7379 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
7380 |
return fields;
|
|
|
7381 |
}
|
|
|
7382 |
|
|
|
7383 |
/**
|
|
|
7384 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
7385 |
*/
|
|
|
7386 |
public static _Fields findByName(String name) {
|
|
|
7387 |
return byName.get(name);
|
|
|
7388 |
}
|
|
|
7389 |
|
|
|
7390 |
private final short _thriftId;
|
|
|
7391 |
private final String _fieldName;
|
|
|
7392 |
|
|
|
7393 |
_Fields(short thriftId, String fieldName) {
|
|
|
7394 |
_thriftId = thriftId;
|
|
|
7395 |
_fieldName = fieldName;
|
|
|
7396 |
}
|
|
|
7397 |
|
|
|
7398 |
public short getThriftFieldId() {
|
|
|
7399 |
return _thriftId;
|
|
|
7400 |
}
|
|
|
7401 |
|
|
|
7402 |
public String getFieldName() {
|
|
|
7403 |
return _fieldName;
|
|
|
7404 |
}
|
|
|
7405 |
}
|
|
|
7406 |
|
|
|
7407 |
// isset id assignments
|
|
|
7408 |
private static final int __SUCCESS_ISSET_ID = 0;
|
|
|
7409 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
7410 |
|
| 3430 |
rajveer |
7411 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 1139 |
chandransh |
7412 |
static {
|
| 3430 |
rajveer |
7413 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
7414 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
7415 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
7416 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
7417 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_result.class, metaDataMap);
|
| 1139 |
chandransh |
7418 |
}
|
|
|
7419 |
|
|
|
7420 |
public getFreeAwbCount_result() {
|
|
|
7421 |
}
|
|
|
7422 |
|
|
|
7423 |
public getFreeAwbCount_result(
|
|
|
7424 |
long success)
|
|
|
7425 |
{
|
|
|
7426 |
this();
|
|
|
7427 |
this.success = success;
|
|
|
7428 |
setSuccessIsSet(true);
|
|
|
7429 |
}
|
|
|
7430 |
|
|
|
7431 |
/**
|
|
|
7432 |
* Performs a deep copy on <i>other</i>.
|
|
|
7433 |
*/
|
|
|
7434 |
public getFreeAwbCount_result(getFreeAwbCount_result other) {
|
|
|
7435 |
__isset_bit_vector.clear();
|
|
|
7436 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
7437 |
this.success = other.success;
|
|
|
7438 |
}
|
|
|
7439 |
|
|
|
7440 |
public getFreeAwbCount_result deepCopy() {
|
|
|
7441 |
return new getFreeAwbCount_result(this);
|
|
|
7442 |
}
|
|
|
7443 |
|
| 3430 |
rajveer |
7444 |
@Override
|
|
|
7445 |
public void clear() {
|
|
|
7446 |
setSuccessIsSet(false);
|
|
|
7447 |
this.success = 0;
|
| 1139 |
chandransh |
7448 |
}
|
|
|
7449 |
|
|
|
7450 |
public long getSuccess() {
|
|
|
7451 |
return this.success;
|
|
|
7452 |
}
|
|
|
7453 |
|
| 3430 |
rajveer |
7454 |
public void setSuccess(long success) {
|
| 1139 |
chandransh |
7455 |
this.success = success;
|
|
|
7456 |
setSuccessIsSet(true);
|
|
|
7457 |
}
|
|
|
7458 |
|
|
|
7459 |
public void unsetSuccess() {
|
|
|
7460 |
__isset_bit_vector.clear(__SUCCESS_ISSET_ID);
|
|
|
7461 |
}
|
|
|
7462 |
|
| 3430 |
rajveer |
7463 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 1139 |
chandransh |
7464 |
public boolean isSetSuccess() {
|
|
|
7465 |
return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
|
|
|
7466 |
}
|
|
|
7467 |
|
|
|
7468 |
public void setSuccessIsSet(boolean value) {
|
|
|
7469 |
__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
|
|
|
7470 |
}
|
|
|
7471 |
|
|
|
7472 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
7473 |
switch (field) {
|
|
|
7474 |
case SUCCESS:
|
|
|
7475 |
if (value == null) {
|
|
|
7476 |
unsetSuccess();
|
|
|
7477 |
} else {
|
|
|
7478 |
setSuccess((Long)value);
|
|
|
7479 |
}
|
|
|
7480 |
break;
|
|
|
7481 |
|
|
|
7482 |
}
|
|
|
7483 |
}
|
|
|
7484 |
|
|
|
7485 |
public Object getFieldValue(_Fields field) {
|
|
|
7486 |
switch (field) {
|
|
|
7487 |
case SUCCESS:
|
| 3430 |
rajveer |
7488 |
return Long.valueOf(getSuccess());
|
| 1139 |
chandransh |
7489 |
|
|
|
7490 |
}
|
|
|
7491 |
throw new IllegalStateException();
|
|
|
7492 |
}
|
|
|
7493 |
|
| 3430 |
rajveer |
7494 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
7495 |
public boolean isSet(_Fields field) {
|
|
|
7496 |
if (field == null) {
|
|
|
7497 |
throw new IllegalArgumentException();
|
|
|
7498 |
}
|
| 1139 |
chandransh |
7499 |
|
|
|
7500 |
switch (field) {
|
|
|
7501 |
case SUCCESS:
|
|
|
7502 |
return isSetSuccess();
|
|
|
7503 |
}
|
|
|
7504 |
throw new IllegalStateException();
|
|
|
7505 |
}
|
|
|
7506 |
|
|
|
7507 |
@Override
|
|
|
7508 |
public boolean equals(Object that) {
|
|
|
7509 |
if (that == null)
|
|
|
7510 |
return false;
|
|
|
7511 |
if (that instanceof getFreeAwbCount_result)
|
|
|
7512 |
return this.equals((getFreeAwbCount_result)that);
|
|
|
7513 |
return false;
|
|
|
7514 |
}
|
|
|
7515 |
|
|
|
7516 |
public boolean equals(getFreeAwbCount_result that) {
|
|
|
7517 |
if (that == null)
|
|
|
7518 |
return false;
|
|
|
7519 |
|
|
|
7520 |
boolean this_present_success = true;
|
|
|
7521 |
boolean that_present_success = true;
|
|
|
7522 |
if (this_present_success || that_present_success) {
|
|
|
7523 |
if (!(this_present_success && that_present_success))
|
|
|
7524 |
return false;
|
|
|
7525 |
if (this.success != that.success)
|
|
|
7526 |
return false;
|
|
|
7527 |
}
|
|
|
7528 |
|
|
|
7529 |
return true;
|
|
|
7530 |
}
|
|
|
7531 |
|
|
|
7532 |
@Override
|
|
|
7533 |
public int hashCode() {
|
|
|
7534 |
return 0;
|
|
|
7535 |
}
|
|
|
7536 |
|
|
|
7537 |
public int compareTo(getFreeAwbCount_result other) {
|
|
|
7538 |
if (!getClass().equals(other.getClass())) {
|
|
|
7539 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
7540 |
}
|
|
|
7541 |
|
|
|
7542 |
int lastComparison = 0;
|
|
|
7543 |
getFreeAwbCount_result typedOther = (getFreeAwbCount_result)other;
|
|
|
7544 |
|
| 3430 |
rajveer |
7545 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 1139 |
chandransh |
7546 |
if (lastComparison != 0) {
|
|
|
7547 |
return lastComparison;
|
|
|
7548 |
}
|
| 3430 |
rajveer |
7549 |
if (isSetSuccess()) {
|
|
|
7550 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
7551 |
if (lastComparison != 0) {
|
|
|
7552 |
return lastComparison;
|
|
|
7553 |
}
|
| 1139 |
chandransh |
7554 |
}
|
|
|
7555 |
return 0;
|
|
|
7556 |
}
|
|
|
7557 |
|
| 3430 |
rajveer |
7558 |
public _Fields fieldForId(int fieldId) {
|
|
|
7559 |
return _Fields.findByThriftId(fieldId);
|
|
|
7560 |
}
|
|
|
7561 |
|
|
|
7562 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
7563 |
org.apache.thrift.protocol.TField field;
|
| 1139 |
chandransh |
7564 |
iprot.readStructBegin();
|
|
|
7565 |
while (true)
|
|
|
7566 |
{
|
|
|
7567 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
7568 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 1139 |
chandransh |
7569 |
break;
|
|
|
7570 |
}
|
| 3430 |
rajveer |
7571 |
switch (field.id) {
|
|
|
7572 |
case 0: // SUCCESS
|
|
|
7573 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
7574 |
this.success = iprot.readI64();
|
|
|
7575 |
setSuccessIsSet(true);
|
|
|
7576 |
} else {
|
|
|
7577 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7578 |
}
|
|
|
7579 |
break;
|
|
|
7580 |
default:
|
|
|
7581 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 1139 |
chandransh |
7582 |
}
|
| 3430 |
rajveer |
7583 |
iprot.readFieldEnd();
|
| 1139 |
chandransh |
7584 |
}
|
|
|
7585 |
iprot.readStructEnd();
|
|
|
7586 |
validate();
|
|
|
7587 |
}
|
|
|
7588 |
|
| 3430 |
rajveer |
7589 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 1139 |
chandransh |
7590 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
7591 |
|
|
|
7592 |
if (this.isSetSuccess()) {
|
|
|
7593 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
7594 |
oprot.writeI64(this.success);
|
|
|
7595 |
oprot.writeFieldEnd();
|
|
|
7596 |
}
|
|
|
7597 |
oprot.writeFieldStop();
|
|
|
7598 |
oprot.writeStructEnd();
|
|
|
7599 |
}
|
|
|
7600 |
|
|
|
7601 |
@Override
|
|
|
7602 |
public String toString() {
|
|
|
7603 |
StringBuilder sb = new StringBuilder("getFreeAwbCount_result(");
|
|
|
7604 |
boolean first = true;
|
|
|
7605 |
|
|
|
7606 |
sb.append("success:");
|
|
|
7607 |
sb.append(this.success);
|
|
|
7608 |
first = false;
|
|
|
7609 |
sb.append(")");
|
|
|
7610 |
return sb.toString();
|
|
|
7611 |
}
|
|
|
7612 |
|
| 3430 |
rajveer |
7613 |
public void validate() throws org.apache.thrift.TException {
|
| 1139 |
chandransh |
7614 |
// check for required fields
|
|
|
7615 |
}
|
|
|
7616 |
|
| 3430 |
rajveer |
7617 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
7618 |
try {
|
|
|
7619 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
7620 |
} catch (org.apache.thrift.TException te) {
|
|
|
7621 |
throw new java.io.IOException(te);
|
|
|
7622 |
}
|
|
|
7623 |
}
|
|
|
7624 |
|
|
|
7625 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
7626 |
try {
|
|
|
7627 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
7628 |
} catch (org.apache.thrift.TException te) {
|
|
|
7629 |
throw new java.io.IOException(te);
|
|
|
7630 |
}
|
|
|
7631 |
}
|
|
|
7632 |
|
| 1139 |
chandransh |
7633 |
}
|
|
|
7634 |
|
| 3430 |
rajveer |
7635 |
public static class getHolidays_args implements org.apache.thrift.TBase<getHolidays_args, getHolidays_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
7636 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_args");
|
| 1730 |
ankur.sing |
7637 |
|
| 3430 |
rajveer |
7638 |
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);
|
|
|
7639 |
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 |
7640 |
|
| 3430 |
rajveer |
7641 |
private long fromDate; // required
|
|
|
7642 |
private long toDate; // required
|
| 1730 |
ankur.sing |
7643 |
|
|
|
7644 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
7645 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 1730 |
ankur.sing |
7646 |
FROM_DATE((short)1, "fromDate"),
|
|
|
7647 |
TO_DATE((short)2, "toDate");
|
|
|
7648 |
|
|
|
7649 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
7650 |
|
|
|
7651 |
static {
|
|
|
7652 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
7653 |
byName.put(field.getFieldName(), field);
|
|
|
7654 |
}
|
|
|
7655 |
}
|
|
|
7656 |
|
|
|
7657 |
/**
|
|
|
7658 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
7659 |
*/
|
|
|
7660 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
7661 |
switch(fieldId) {
|
|
|
7662 |
case 1: // FROM_DATE
|
|
|
7663 |
return FROM_DATE;
|
|
|
7664 |
case 2: // TO_DATE
|
|
|
7665 |
return TO_DATE;
|
|
|
7666 |
default:
|
|
|
7667 |
return null;
|
|
|
7668 |
}
|
| 1730 |
ankur.sing |
7669 |
}
|
|
|
7670 |
|
|
|
7671 |
/**
|
|
|
7672 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
7673 |
* if it is not found.
|
|
|
7674 |
*/
|
|
|
7675 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
7676 |
_Fields fields = findByThriftId(fieldId);
|
|
|
7677 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
7678 |
return fields;
|
|
|
7679 |
}
|
|
|
7680 |
|
|
|
7681 |
/**
|
|
|
7682 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
7683 |
*/
|
|
|
7684 |
public static _Fields findByName(String name) {
|
|
|
7685 |
return byName.get(name);
|
|
|
7686 |
}
|
|
|
7687 |
|
|
|
7688 |
private final short _thriftId;
|
|
|
7689 |
private final String _fieldName;
|
|
|
7690 |
|
|
|
7691 |
_Fields(short thriftId, String fieldName) {
|
|
|
7692 |
_thriftId = thriftId;
|
|
|
7693 |
_fieldName = fieldName;
|
|
|
7694 |
}
|
|
|
7695 |
|
|
|
7696 |
public short getThriftFieldId() {
|
|
|
7697 |
return _thriftId;
|
|
|
7698 |
}
|
|
|
7699 |
|
|
|
7700 |
public String getFieldName() {
|
|
|
7701 |
return _fieldName;
|
|
|
7702 |
}
|
|
|
7703 |
}
|
|
|
7704 |
|
|
|
7705 |
// isset id assignments
|
|
|
7706 |
private static final int __FROMDATE_ISSET_ID = 0;
|
|
|
7707 |
private static final int __TODATE_ISSET_ID = 1;
|
|
|
7708 |
private BitSet __isset_bit_vector = new BitSet(2);
|
|
|
7709 |
|
| 3430 |
rajveer |
7710 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 1730 |
ankur.sing |
7711 |
static {
|
| 3430 |
rajveer |
7712 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
7713 |
tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
7714 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
7715 |
tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
7716 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
7717 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
7718 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_args.class, metaDataMap);
|
| 1730 |
ankur.sing |
7719 |
}
|
|
|
7720 |
|
|
|
7721 |
public getHolidays_args() {
|
|
|
7722 |
}
|
|
|
7723 |
|
|
|
7724 |
public getHolidays_args(
|
|
|
7725 |
long fromDate,
|
|
|
7726 |
long toDate)
|
|
|
7727 |
{
|
|
|
7728 |
this();
|
|
|
7729 |
this.fromDate = fromDate;
|
|
|
7730 |
setFromDateIsSet(true);
|
|
|
7731 |
this.toDate = toDate;
|
|
|
7732 |
setToDateIsSet(true);
|
|
|
7733 |
}
|
|
|
7734 |
|
|
|
7735 |
/**
|
|
|
7736 |
* Performs a deep copy on <i>other</i>.
|
|
|
7737 |
*/
|
|
|
7738 |
public getHolidays_args(getHolidays_args other) {
|
|
|
7739 |
__isset_bit_vector.clear();
|
|
|
7740 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
7741 |
this.fromDate = other.fromDate;
|
|
|
7742 |
this.toDate = other.toDate;
|
|
|
7743 |
}
|
|
|
7744 |
|
|
|
7745 |
public getHolidays_args deepCopy() {
|
|
|
7746 |
return new getHolidays_args(this);
|
|
|
7747 |
}
|
|
|
7748 |
|
| 3430 |
rajveer |
7749 |
@Override
|
|
|
7750 |
public void clear() {
|
|
|
7751 |
setFromDateIsSet(false);
|
|
|
7752 |
this.fromDate = 0;
|
|
|
7753 |
setToDateIsSet(false);
|
|
|
7754 |
this.toDate = 0;
|
| 1730 |
ankur.sing |
7755 |
}
|
|
|
7756 |
|
|
|
7757 |
public long getFromDate() {
|
|
|
7758 |
return this.fromDate;
|
|
|
7759 |
}
|
|
|
7760 |
|
| 3430 |
rajveer |
7761 |
public void setFromDate(long fromDate) {
|
| 1730 |
ankur.sing |
7762 |
this.fromDate = fromDate;
|
|
|
7763 |
setFromDateIsSet(true);
|
|
|
7764 |
}
|
|
|
7765 |
|
|
|
7766 |
public void unsetFromDate() {
|
|
|
7767 |
__isset_bit_vector.clear(__FROMDATE_ISSET_ID);
|
|
|
7768 |
}
|
|
|
7769 |
|
| 3430 |
rajveer |
7770 |
/** Returns true if field fromDate is set (has been assigned a value) and false otherwise */
|
| 1730 |
ankur.sing |
7771 |
public boolean isSetFromDate() {
|
|
|
7772 |
return __isset_bit_vector.get(__FROMDATE_ISSET_ID);
|
|
|
7773 |
}
|
|
|
7774 |
|
|
|
7775 |
public void setFromDateIsSet(boolean value) {
|
|
|
7776 |
__isset_bit_vector.set(__FROMDATE_ISSET_ID, value);
|
|
|
7777 |
}
|
|
|
7778 |
|
|
|
7779 |
public long getToDate() {
|
|
|
7780 |
return this.toDate;
|
|
|
7781 |
}
|
|
|
7782 |
|
| 3430 |
rajveer |
7783 |
public void setToDate(long toDate) {
|
| 1730 |
ankur.sing |
7784 |
this.toDate = toDate;
|
|
|
7785 |
setToDateIsSet(true);
|
|
|
7786 |
}
|
|
|
7787 |
|
|
|
7788 |
public void unsetToDate() {
|
|
|
7789 |
__isset_bit_vector.clear(__TODATE_ISSET_ID);
|
|
|
7790 |
}
|
|
|
7791 |
|
| 3430 |
rajveer |
7792 |
/** Returns true if field toDate is set (has been assigned a value) and false otherwise */
|
| 1730 |
ankur.sing |
7793 |
public boolean isSetToDate() {
|
|
|
7794 |
return __isset_bit_vector.get(__TODATE_ISSET_ID);
|
|
|
7795 |
}
|
|
|
7796 |
|
|
|
7797 |
public void setToDateIsSet(boolean value) {
|
|
|
7798 |
__isset_bit_vector.set(__TODATE_ISSET_ID, value);
|
|
|
7799 |
}
|
|
|
7800 |
|
|
|
7801 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
7802 |
switch (field) {
|
|
|
7803 |
case FROM_DATE:
|
|
|
7804 |
if (value == null) {
|
|
|
7805 |
unsetFromDate();
|
|
|
7806 |
} else {
|
|
|
7807 |
setFromDate((Long)value);
|
|
|
7808 |
}
|
|
|
7809 |
break;
|
|
|
7810 |
|
|
|
7811 |
case TO_DATE:
|
|
|
7812 |
if (value == null) {
|
|
|
7813 |
unsetToDate();
|
|
|
7814 |
} else {
|
|
|
7815 |
setToDate((Long)value);
|
|
|
7816 |
}
|
|
|
7817 |
break;
|
|
|
7818 |
|
|
|
7819 |
}
|
|
|
7820 |
}
|
|
|
7821 |
|
|
|
7822 |
public Object getFieldValue(_Fields field) {
|
|
|
7823 |
switch (field) {
|
|
|
7824 |
case FROM_DATE:
|
| 3430 |
rajveer |
7825 |
return Long.valueOf(getFromDate());
|
| 1730 |
ankur.sing |
7826 |
|
|
|
7827 |
case TO_DATE:
|
| 3430 |
rajveer |
7828 |
return Long.valueOf(getToDate());
|
| 1730 |
ankur.sing |
7829 |
|
|
|
7830 |
}
|
|
|
7831 |
throw new IllegalStateException();
|
|
|
7832 |
}
|
|
|
7833 |
|
| 3430 |
rajveer |
7834 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
7835 |
public boolean isSet(_Fields field) {
|
|
|
7836 |
if (field == null) {
|
|
|
7837 |
throw new IllegalArgumentException();
|
|
|
7838 |
}
|
| 1730 |
ankur.sing |
7839 |
|
|
|
7840 |
switch (field) {
|
|
|
7841 |
case FROM_DATE:
|
|
|
7842 |
return isSetFromDate();
|
|
|
7843 |
case TO_DATE:
|
|
|
7844 |
return isSetToDate();
|
|
|
7845 |
}
|
|
|
7846 |
throw new IllegalStateException();
|
|
|
7847 |
}
|
|
|
7848 |
|
|
|
7849 |
@Override
|
|
|
7850 |
public boolean equals(Object that) {
|
|
|
7851 |
if (that == null)
|
|
|
7852 |
return false;
|
|
|
7853 |
if (that instanceof getHolidays_args)
|
|
|
7854 |
return this.equals((getHolidays_args)that);
|
|
|
7855 |
return false;
|
|
|
7856 |
}
|
|
|
7857 |
|
|
|
7858 |
public boolean equals(getHolidays_args that) {
|
|
|
7859 |
if (that == null)
|
|
|
7860 |
return false;
|
|
|
7861 |
|
|
|
7862 |
boolean this_present_fromDate = true;
|
|
|
7863 |
boolean that_present_fromDate = true;
|
|
|
7864 |
if (this_present_fromDate || that_present_fromDate) {
|
|
|
7865 |
if (!(this_present_fromDate && that_present_fromDate))
|
|
|
7866 |
return false;
|
|
|
7867 |
if (this.fromDate != that.fromDate)
|
|
|
7868 |
return false;
|
|
|
7869 |
}
|
|
|
7870 |
|
|
|
7871 |
boolean this_present_toDate = true;
|
|
|
7872 |
boolean that_present_toDate = true;
|
|
|
7873 |
if (this_present_toDate || that_present_toDate) {
|
|
|
7874 |
if (!(this_present_toDate && that_present_toDate))
|
|
|
7875 |
return false;
|
|
|
7876 |
if (this.toDate != that.toDate)
|
|
|
7877 |
return false;
|
|
|
7878 |
}
|
|
|
7879 |
|
|
|
7880 |
return true;
|
|
|
7881 |
}
|
|
|
7882 |
|
|
|
7883 |
@Override
|
|
|
7884 |
public int hashCode() {
|
|
|
7885 |
return 0;
|
|
|
7886 |
}
|
|
|
7887 |
|
|
|
7888 |
public int compareTo(getHolidays_args other) {
|
|
|
7889 |
if (!getClass().equals(other.getClass())) {
|
|
|
7890 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
7891 |
}
|
|
|
7892 |
|
|
|
7893 |
int lastComparison = 0;
|
|
|
7894 |
getHolidays_args typedOther = (getHolidays_args)other;
|
|
|
7895 |
|
| 3430 |
rajveer |
7896 |
lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());
|
| 1730 |
ankur.sing |
7897 |
if (lastComparison != 0) {
|
|
|
7898 |
return lastComparison;
|
|
|
7899 |
}
|
| 3430 |
rajveer |
7900 |
if (isSetFromDate()) {
|
|
|
7901 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);
|
|
|
7902 |
if (lastComparison != 0) {
|
|
|
7903 |
return lastComparison;
|
|
|
7904 |
}
|
| 1730 |
ankur.sing |
7905 |
}
|
| 3430 |
rajveer |
7906 |
lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());
|
| 1730 |
ankur.sing |
7907 |
if (lastComparison != 0) {
|
|
|
7908 |
return lastComparison;
|
|
|
7909 |
}
|
| 3430 |
rajveer |
7910 |
if (isSetToDate()) {
|
|
|
7911 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);
|
|
|
7912 |
if (lastComparison != 0) {
|
|
|
7913 |
return lastComparison;
|
|
|
7914 |
}
|
| 1730 |
ankur.sing |
7915 |
}
|
|
|
7916 |
return 0;
|
|
|
7917 |
}
|
|
|
7918 |
|
| 3430 |
rajveer |
7919 |
public _Fields fieldForId(int fieldId) {
|
|
|
7920 |
return _Fields.findByThriftId(fieldId);
|
|
|
7921 |
}
|
|
|
7922 |
|
|
|
7923 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
7924 |
org.apache.thrift.protocol.TField field;
|
| 1730 |
ankur.sing |
7925 |
iprot.readStructBegin();
|
|
|
7926 |
while (true)
|
|
|
7927 |
{
|
|
|
7928 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
7929 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 1730 |
ankur.sing |
7930 |
break;
|
|
|
7931 |
}
|
| 3430 |
rajveer |
7932 |
switch (field.id) {
|
|
|
7933 |
case 1: // FROM_DATE
|
|
|
7934 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
7935 |
this.fromDate = iprot.readI64();
|
|
|
7936 |
setFromDateIsSet(true);
|
|
|
7937 |
} else {
|
|
|
7938 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7939 |
}
|
|
|
7940 |
break;
|
|
|
7941 |
case 2: // TO_DATE
|
|
|
7942 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
7943 |
this.toDate = iprot.readI64();
|
|
|
7944 |
setToDateIsSet(true);
|
|
|
7945 |
} else {
|
|
|
7946 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7947 |
}
|
|
|
7948 |
break;
|
|
|
7949 |
default:
|
|
|
7950 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 1730 |
ankur.sing |
7951 |
}
|
| 3430 |
rajveer |
7952 |
iprot.readFieldEnd();
|
| 1730 |
ankur.sing |
7953 |
}
|
|
|
7954 |
iprot.readStructEnd();
|
|
|
7955 |
validate();
|
|
|
7956 |
}
|
|
|
7957 |
|
| 3430 |
rajveer |
7958 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 1730 |
ankur.sing |
7959 |
validate();
|
|
|
7960 |
|
|
|
7961 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
7962 |
oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
|
|
|
7963 |
oprot.writeI64(this.fromDate);
|
|
|
7964 |
oprot.writeFieldEnd();
|
|
|
7965 |
oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
|
|
|
7966 |
oprot.writeI64(this.toDate);
|
|
|
7967 |
oprot.writeFieldEnd();
|
|
|
7968 |
oprot.writeFieldStop();
|
|
|
7969 |
oprot.writeStructEnd();
|
|
|
7970 |
}
|
|
|
7971 |
|
|
|
7972 |
@Override
|
|
|
7973 |
public String toString() {
|
|
|
7974 |
StringBuilder sb = new StringBuilder("getHolidays_args(");
|
|
|
7975 |
boolean first = true;
|
|
|
7976 |
|
|
|
7977 |
sb.append("fromDate:");
|
|
|
7978 |
sb.append(this.fromDate);
|
|
|
7979 |
first = false;
|
|
|
7980 |
if (!first) sb.append(", ");
|
|
|
7981 |
sb.append("toDate:");
|
|
|
7982 |
sb.append(this.toDate);
|
|
|
7983 |
first = false;
|
|
|
7984 |
sb.append(")");
|
|
|
7985 |
return sb.toString();
|
|
|
7986 |
}
|
|
|
7987 |
|
| 3430 |
rajveer |
7988 |
public void validate() throws org.apache.thrift.TException {
|
| 1730 |
ankur.sing |
7989 |
// check for required fields
|
|
|
7990 |
}
|
|
|
7991 |
|
| 3430 |
rajveer |
7992 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
7993 |
try {
|
|
|
7994 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
7995 |
} catch (org.apache.thrift.TException te) {
|
|
|
7996 |
throw new java.io.IOException(te);
|
|
|
7997 |
}
|
|
|
7998 |
}
|
|
|
7999 |
|
|
|
8000 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
8001 |
try {
|
|
|
8002 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
8003 |
__isset_bit_vector = new BitSet(1);
|
|
|
8004 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
8005 |
} catch (org.apache.thrift.TException te) {
|
|
|
8006 |
throw new java.io.IOException(te);
|
|
|
8007 |
}
|
|
|
8008 |
}
|
|
|
8009 |
|
| 1730 |
ankur.sing |
8010 |
}
|
|
|
8011 |
|
| 3430 |
rajveer |
8012 |
public static class getHolidays_result implements org.apache.thrift.TBase<getHolidays_result, getHolidays_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
8013 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_result");
|
| 1730 |
ankur.sing |
8014 |
|
| 3430 |
rajveer |
8015 |
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 |
8016 |
|
| 3430 |
rajveer |
8017 |
private List<Long> success; // required
|
| 1730 |
ankur.sing |
8018 |
|
|
|
8019 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
8020 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 1730 |
ankur.sing |
8021 |
SUCCESS((short)0, "success");
|
|
|
8022 |
|
|
|
8023 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
8024 |
|
|
|
8025 |
static {
|
|
|
8026 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
8027 |
byName.put(field.getFieldName(), field);
|
|
|
8028 |
}
|
|
|
8029 |
}
|
|
|
8030 |
|
|
|
8031 |
/**
|
|
|
8032 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
8033 |
*/
|
|
|
8034 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
8035 |
switch(fieldId) {
|
|
|
8036 |
case 0: // SUCCESS
|
|
|
8037 |
return SUCCESS;
|
|
|
8038 |
default:
|
|
|
8039 |
return null;
|
|
|
8040 |
}
|
| 1730 |
ankur.sing |
8041 |
}
|
|
|
8042 |
|
|
|
8043 |
/**
|
|
|
8044 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
8045 |
* if it is not found.
|
|
|
8046 |
*/
|
|
|
8047 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
8048 |
_Fields fields = findByThriftId(fieldId);
|
|
|
8049 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
8050 |
return fields;
|
|
|
8051 |
}
|
|
|
8052 |
|
|
|
8053 |
/**
|
|
|
8054 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
8055 |
*/
|
|
|
8056 |
public static _Fields findByName(String name) {
|
|
|
8057 |
return byName.get(name);
|
|
|
8058 |
}
|
|
|
8059 |
|
|
|
8060 |
private final short _thriftId;
|
|
|
8061 |
private final String _fieldName;
|
|
|
8062 |
|
|
|
8063 |
_Fields(short thriftId, String fieldName) {
|
|
|
8064 |
_thriftId = thriftId;
|
|
|
8065 |
_fieldName = fieldName;
|
|
|
8066 |
}
|
|
|
8067 |
|
|
|
8068 |
public short getThriftFieldId() {
|
|
|
8069 |
return _thriftId;
|
|
|
8070 |
}
|
|
|
8071 |
|
|
|
8072 |
public String getFieldName() {
|
|
|
8073 |
return _fieldName;
|
|
|
8074 |
}
|
|
|
8075 |
}
|
|
|
8076 |
|
|
|
8077 |
// isset id assignments
|
|
|
8078 |
|
| 3430 |
rajveer |
8079 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 1730 |
ankur.sing |
8080 |
static {
|
| 3430 |
rajveer |
8081 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
8082 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8083 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
8084 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
|
|
|
8085 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
8086 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_result.class, metaDataMap);
|
| 1730 |
ankur.sing |
8087 |
}
|
|
|
8088 |
|
|
|
8089 |
public getHolidays_result() {
|
|
|
8090 |
}
|
|
|
8091 |
|
|
|
8092 |
public getHolidays_result(
|
|
|
8093 |
List<Long> success)
|
|
|
8094 |
{
|
|
|
8095 |
this();
|
|
|
8096 |
this.success = success;
|
|
|
8097 |
}
|
|
|
8098 |
|
|
|
8099 |
/**
|
|
|
8100 |
* Performs a deep copy on <i>other</i>.
|
|
|
8101 |
*/
|
|
|
8102 |
public getHolidays_result(getHolidays_result other) {
|
|
|
8103 |
if (other.isSetSuccess()) {
|
|
|
8104 |
List<Long> __this__success = new ArrayList<Long>();
|
|
|
8105 |
for (Long other_element : other.success) {
|
|
|
8106 |
__this__success.add(other_element);
|
|
|
8107 |
}
|
|
|
8108 |
this.success = __this__success;
|
|
|
8109 |
}
|
|
|
8110 |
}
|
|
|
8111 |
|
|
|
8112 |
public getHolidays_result deepCopy() {
|
|
|
8113 |
return new getHolidays_result(this);
|
|
|
8114 |
}
|
|
|
8115 |
|
| 3430 |
rajveer |
8116 |
@Override
|
|
|
8117 |
public void clear() {
|
|
|
8118 |
this.success = null;
|
| 1730 |
ankur.sing |
8119 |
}
|
|
|
8120 |
|
|
|
8121 |
public int getSuccessSize() {
|
|
|
8122 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
8123 |
}
|
|
|
8124 |
|
|
|
8125 |
public java.util.Iterator<Long> getSuccessIterator() {
|
|
|
8126 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
8127 |
}
|
|
|
8128 |
|
|
|
8129 |
public void addToSuccess(long elem) {
|
|
|
8130 |
if (this.success == null) {
|
|
|
8131 |
this.success = new ArrayList<Long>();
|
|
|
8132 |
}
|
|
|
8133 |
this.success.add(elem);
|
|
|
8134 |
}
|
|
|
8135 |
|
|
|
8136 |
public List<Long> getSuccess() {
|
|
|
8137 |
return this.success;
|
|
|
8138 |
}
|
|
|
8139 |
|
| 3430 |
rajveer |
8140 |
public void setSuccess(List<Long> success) {
|
| 1730 |
ankur.sing |
8141 |
this.success = success;
|
|
|
8142 |
}
|
|
|
8143 |
|
|
|
8144 |
public void unsetSuccess() {
|
|
|
8145 |
this.success = null;
|
|
|
8146 |
}
|
|
|
8147 |
|
| 3430 |
rajveer |
8148 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 1730 |
ankur.sing |
8149 |
public boolean isSetSuccess() {
|
|
|
8150 |
return this.success != null;
|
|
|
8151 |
}
|
|
|
8152 |
|
|
|
8153 |
public void setSuccessIsSet(boolean value) {
|
|
|
8154 |
if (!value) {
|
|
|
8155 |
this.success = null;
|
|
|
8156 |
}
|
|
|
8157 |
}
|
|
|
8158 |
|
|
|
8159 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
8160 |
switch (field) {
|
|
|
8161 |
case SUCCESS:
|
|
|
8162 |
if (value == null) {
|
|
|
8163 |
unsetSuccess();
|
|
|
8164 |
} else {
|
|
|
8165 |
setSuccess((List<Long>)value);
|
|
|
8166 |
}
|
|
|
8167 |
break;
|
|
|
8168 |
|
|
|
8169 |
}
|
|
|
8170 |
}
|
|
|
8171 |
|
|
|
8172 |
public Object getFieldValue(_Fields field) {
|
|
|
8173 |
switch (field) {
|
|
|
8174 |
case SUCCESS:
|
|
|
8175 |
return getSuccess();
|
|
|
8176 |
|
|
|
8177 |
}
|
|
|
8178 |
throw new IllegalStateException();
|
|
|
8179 |
}
|
|
|
8180 |
|
| 3430 |
rajveer |
8181 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
8182 |
public boolean isSet(_Fields field) {
|
|
|
8183 |
if (field == null) {
|
|
|
8184 |
throw new IllegalArgumentException();
|
|
|
8185 |
}
|
| 1730 |
ankur.sing |
8186 |
|
|
|
8187 |
switch (field) {
|
|
|
8188 |
case SUCCESS:
|
|
|
8189 |
return isSetSuccess();
|
|
|
8190 |
}
|
|
|
8191 |
throw new IllegalStateException();
|
|
|
8192 |
}
|
|
|
8193 |
|
|
|
8194 |
@Override
|
|
|
8195 |
public boolean equals(Object that) {
|
|
|
8196 |
if (that == null)
|
|
|
8197 |
return false;
|
|
|
8198 |
if (that instanceof getHolidays_result)
|
|
|
8199 |
return this.equals((getHolidays_result)that);
|
|
|
8200 |
return false;
|
|
|
8201 |
}
|
|
|
8202 |
|
|
|
8203 |
public boolean equals(getHolidays_result that) {
|
|
|
8204 |
if (that == null)
|
|
|
8205 |
return false;
|
|
|
8206 |
|
|
|
8207 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
8208 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
8209 |
if (this_present_success || that_present_success) {
|
|
|
8210 |
if (!(this_present_success && that_present_success))
|
|
|
8211 |
return false;
|
|
|
8212 |
if (!this.success.equals(that.success))
|
|
|
8213 |
return false;
|
|
|
8214 |
}
|
|
|
8215 |
|
|
|
8216 |
return true;
|
|
|
8217 |
}
|
|
|
8218 |
|
|
|
8219 |
@Override
|
|
|
8220 |
public int hashCode() {
|
|
|
8221 |
return 0;
|
|
|
8222 |
}
|
|
|
8223 |
|
|
|
8224 |
public int compareTo(getHolidays_result other) {
|
|
|
8225 |
if (!getClass().equals(other.getClass())) {
|
|
|
8226 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
8227 |
}
|
|
|
8228 |
|
|
|
8229 |
int lastComparison = 0;
|
|
|
8230 |
getHolidays_result typedOther = (getHolidays_result)other;
|
|
|
8231 |
|
| 3430 |
rajveer |
8232 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 1730 |
ankur.sing |
8233 |
if (lastComparison != 0) {
|
|
|
8234 |
return lastComparison;
|
|
|
8235 |
}
|
| 3430 |
rajveer |
8236 |
if (isSetSuccess()) {
|
|
|
8237 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
8238 |
if (lastComparison != 0) {
|
|
|
8239 |
return lastComparison;
|
|
|
8240 |
}
|
| 1730 |
ankur.sing |
8241 |
}
|
|
|
8242 |
return 0;
|
|
|
8243 |
}
|
|
|
8244 |
|
| 3430 |
rajveer |
8245 |
public _Fields fieldForId(int fieldId) {
|
|
|
8246 |
return _Fields.findByThriftId(fieldId);
|
|
|
8247 |
}
|
|
|
8248 |
|
|
|
8249 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
8250 |
org.apache.thrift.protocol.TField field;
|
| 1730 |
ankur.sing |
8251 |
iprot.readStructBegin();
|
|
|
8252 |
while (true)
|
|
|
8253 |
{
|
|
|
8254 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
8255 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 1730 |
ankur.sing |
8256 |
break;
|
|
|
8257 |
}
|
| 3430 |
rajveer |
8258 |
switch (field.id) {
|
|
|
8259 |
case 0: // SUCCESS
|
|
|
8260 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
8261 |
{
|
|
|
8262 |
org.apache.thrift.protocol.TList _list13 = iprot.readListBegin();
|
|
|
8263 |
this.success = new ArrayList<Long>(_list13.size);
|
|
|
8264 |
for (int _i14 = 0; _i14 < _list13.size; ++_i14)
|
| 1730 |
ankur.sing |
8265 |
{
|
| 3430 |
rajveer |
8266 |
long _elem15; // required
|
|
|
8267 |
_elem15 = iprot.readI64();
|
|
|
8268 |
this.success.add(_elem15);
|
| 1730 |
ankur.sing |
8269 |
}
|
| 3430 |
rajveer |
8270 |
iprot.readListEnd();
|
| 1730 |
ankur.sing |
8271 |
}
|
| 3430 |
rajveer |
8272 |
} else {
|
|
|
8273 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8274 |
}
|
|
|
8275 |
break;
|
|
|
8276 |
default:
|
|
|
8277 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 1730 |
ankur.sing |
8278 |
}
|
| 3430 |
rajveer |
8279 |
iprot.readFieldEnd();
|
| 1730 |
ankur.sing |
8280 |
}
|
|
|
8281 |
iprot.readStructEnd();
|
|
|
8282 |
validate();
|
|
|
8283 |
}
|
|
|
8284 |
|
| 3430 |
rajveer |
8285 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 1730 |
ankur.sing |
8286 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
8287 |
|
|
|
8288 |
if (this.isSetSuccess()) {
|
|
|
8289 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
8290 |
{
|
| 3430 |
rajveer |
8291 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
|
| 3044 |
chandransh |
8292 |
for (long _iter16 : this.success)
|
| 1730 |
ankur.sing |
8293 |
{
|
| 3044 |
chandransh |
8294 |
oprot.writeI64(_iter16);
|
| 1730 |
ankur.sing |
8295 |
}
|
|
|
8296 |
oprot.writeListEnd();
|
|
|
8297 |
}
|
|
|
8298 |
oprot.writeFieldEnd();
|
|
|
8299 |
}
|
|
|
8300 |
oprot.writeFieldStop();
|
|
|
8301 |
oprot.writeStructEnd();
|
|
|
8302 |
}
|
|
|
8303 |
|
|
|
8304 |
@Override
|
|
|
8305 |
public String toString() {
|
|
|
8306 |
StringBuilder sb = new StringBuilder("getHolidays_result(");
|
|
|
8307 |
boolean first = true;
|
|
|
8308 |
|
|
|
8309 |
sb.append("success:");
|
|
|
8310 |
if (this.success == null) {
|
|
|
8311 |
sb.append("null");
|
|
|
8312 |
} else {
|
|
|
8313 |
sb.append(this.success);
|
|
|
8314 |
}
|
|
|
8315 |
first = false;
|
|
|
8316 |
sb.append(")");
|
|
|
8317 |
return sb.toString();
|
|
|
8318 |
}
|
|
|
8319 |
|
| 3430 |
rajveer |
8320 |
public void validate() throws org.apache.thrift.TException {
|
| 1730 |
ankur.sing |
8321 |
// check for required fields
|
|
|
8322 |
}
|
|
|
8323 |
|
| 3430 |
rajveer |
8324 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
8325 |
try {
|
|
|
8326 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
8327 |
} catch (org.apache.thrift.TException te) {
|
|
|
8328 |
throw new java.io.IOException(te);
|
|
|
8329 |
}
|
|
|
8330 |
}
|
|
|
8331 |
|
|
|
8332 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
8333 |
try {
|
|
|
8334 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
8335 |
} catch (org.apache.thrift.TException te) {
|
|
|
8336 |
throw new java.io.IOException(te);
|
|
|
8337 |
}
|
|
|
8338 |
}
|
|
|
8339 |
|
| 1730 |
ankur.sing |
8340 |
}
|
|
|
8341 |
|
| 4934 |
amit.gupta |
8342 |
public static class getEntityLogisticsEstimation_args implements org.apache.thrift.TBase<getEntityLogisticsEstimation_args, getEntityLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
8343 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_args");
|
|
|
8344 |
|
|
|
8345 |
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);
|
|
|
8346 |
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);
|
|
|
8347 |
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);
|
|
|
8348 |
|
|
|
8349 |
private long catalogItemId; // required
|
|
|
8350 |
private String destination_pin; // required
|
|
|
8351 |
private DeliveryType type; // required
|
|
|
8352 |
|
|
|
8353 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
8354 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
8355 |
CATALOG_ITEM_ID((short)1, "catalogItemId"),
|
|
|
8356 |
DESTINATION_PIN((short)2, "destination_pin"),
|
|
|
8357 |
/**
|
|
|
8358 |
*
|
|
|
8359 |
* @see DeliveryType
|
|
|
8360 |
*/
|
|
|
8361 |
TYPE((short)3, "type");
|
|
|
8362 |
|
|
|
8363 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
8364 |
|
|
|
8365 |
static {
|
|
|
8366 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
8367 |
byName.put(field.getFieldName(), field);
|
|
|
8368 |
}
|
|
|
8369 |
}
|
|
|
8370 |
|
|
|
8371 |
/**
|
|
|
8372 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
8373 |
*/
|
|
|
8374 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
8375 |
switch(fieldId) {
|
|
|
8376 |
case 1: // CATALOG_ITEM_ID
|
|
|
8377 |
return CATALOG_ITEM_ID;
|
|
|
8378 |
case 2: // DESTINATION_PIN
|
|
|
8379 |
return DESTINATION_PIN;
|
|
|
8380 |
case 3: // TYPE
|
|
|
8381 |
return TYPE;
|
|
|
8382 |
default:
|
|
|
8383 |
return null;
|
|
|
8384 |
}
|
|
|
8385 |
}
|
|
|
8386 |
|
|
|
8387 |
/**
|
|
|
8388 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
8389 |
* if it is not found.
|
|
|
8390 |
*/
|
|
|
8391 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
8392 |
_Fields fields = findByThriftId(fieldId);
|
|
|
8393 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
8394 |
return fields;
|
|
|
8395 |
}
|
|
|
8396 |
|
|
|
8397 |
/**
|
|
|
8398 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
8399 |
*/
|
|
|
8400 |
public static _Fields findByName(String name) {
|
|
|
8401 |
return byName.get(name);
|
|
|
8402 |
}
|
|
|
8403 |
|
|
|
8404 |
private final short _thriftId;
|
|
|
8405 |
private final String _fieldName;
|
|
|
8406 |
|
|
|
8407 |
_Fields(short thriftId, String fieldName) {
|
|
|
8408 |
_thriftId = thriftId;
|
|
|
8409 |
_fieldName = fieldName;
|
|
|
8410 |
}
|
|
|
8411 |
|
|
|
8412 |
public short getThriftFieldId() {
|
|
|
8413 |
return _thriftId;
|
|
|
8414 |
}
|
|
|
8415 |
|
|
|
8416 |
public String getFieldName() {
|
|
|
8417 |
return _fieldName;
|
|
|
8418 |
}
|
|
|
8419 |
}
|
|
|
8420 |
|
|
|
8421 |
// isset id assignments
|
|
|
8422 |
private static final int __CATALOGITEMID_ISSET_ID = 0;
|
|
|
8423 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
8424 |
|
|
|
8425 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
8426 |
static {
|
|
|
8427 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
8428 |
tmpMap.put(_Fields.CATALOG_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("catalogItemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8429 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
8430 |
tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8431 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
8432 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8433 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
|
|
|
8434 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
8435 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_args.class, metaDataMap);
|
|
|
8436 |
}
|
|
|
8437 |
|
|
|
8438 |
public getEntityLogisticsEstimation_args() {
|
|
|
8439 |
}
|
|
|
8440 |
|
|
|
8441 |
public getEntityLogisticsEstimation_args(
|
|
|
8442 |
long catalogItemId,
|
|
|
8443 |
String destination_pin,
|
|
|
8444 |
DeliveryType type)
|
|
|
8445 |
{
|
|
|
8446 |
this();
|
|
|
8447 |
this.catalogItemId = catalogItemId;
|
|
|
8448 |
setCatalogItemIdIsSet(true);
|
|
|
8449 |
this.destination_pin = destination_pin;
|
|
|
8450 |
this.type = type;
|
|
|
8451 |
}
|
|
|
8452 |
|
|
|
8453 |
/**
|
|
|
8454 |
* Performs a deep copy on <i>other</i>.
|
|
|
8455 |
*/
|
|
|
8456 |
public getEntityLogisticsEstimation_args(getEntityLogisticsEstimation_args other) {
|
|
|
8457 |
__isset_bit_vector.clear();
|
|
|
8458 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
8459 |
this.catalogItemId = other.catalogItemId;
|
|
|
8460 |
if (other.isSetDestination_pin()) {
|
|
|
8461 |
this.destination_pin = other.destination_pin;
|
|
|
8462 |
}
|
|
|
8463 |
if (other.isSetType()) {
|
|
|
8464 |
this.type = other.type;
|
|
|
8465 |
}
|
|
|
8466 |
}
|
|
|
8467 |
|
|
|
8468 |
public getEntityLogisticsEstimation_args deepCopy() {
|
|
|
8469 |
return new getEntityLogisticsEstimation_args(this);
|
|
|
8470 |
}
|
|
|
8471 |
|
|
|
8472 |
@Override
|
|
|
8473 |
public void clear() {
|
|
|
8474 |
setCatalogItemIdIsSet(false);
|
|
|
8475 |
this.catalogItemId = 0;
|
|
|
8476 |
this.destination_pin = null;
|
|
|
8477 |
this.type = null;
|
|
|
8478 |
}
|
|
|
8479 |
|
|
|
8480 |
public long getCatalogItemId() {
|
|
|
8481 |
return this.catalogItemId;
|
|
|
8482 |
}
|
|
|
8483 |
|
|
|
8484 |
public void setCatalogItemId(long catalogItemId) {
|
|
|
8485 |
this.catalogItemId = catalogItemId;
|
|
|
8486 |
setCatalogItemIdIsSet(true);
|
|
|
8487 |
}
|
|
|
8488 |
|
|
|
8489 |
public void unsetCatalogItemId() {
|
|
|
8490 |
__isset_bit_vector.clear(__CATALOGITEMID_ISSET_ID);
|
|
|
8491 |
}
|
|
|
8492 |
|
|
|
8493 |
/** Returns true if field catalogItemId is set (has been assigned a value) and false otherwise */
|
|
|
8494 |
public boolean isSetCatalogItemId() {
|
|
|
8495 |
return __isset_bit_vector.get(__CATALOGITEMID_ISSET_ID);
|
|
|
8496 |
}
|
|
|
8497 |
|
|
|
8498 |
public void setCatalogItemIdIsSet(boolean value) {
|
|
|
8499 |
__isset_bit_vector.set(__CATALOGITEMID_ISSET_ID, value);
|
|
|
8500 |
}
|
|
|
8501 |
|
|
|
8502 |
public String getDestination_pin() {
|
|
|
8503 |
return this.destination_pin;
|
|
|
8504 |
}
|
|
|
8505 |
|
|
|
8506 |
public void setDestination_pin(String destination_pin) {
|
|
|
8507 |
this.destination_pin = destination_pin;
|
|
|
8508 |
}
|
|
|
8509 |
|
|
|
8510 |
public void unsetDestination_pin() {
|
|
|
8511 |
this.destination_pin = null;
|
|
|
8512 |
}
|
|
|
8513 |
|
|
|
8514 |
/** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
|
|
|
8515 |
public boolean isSetDestination_pin() {
|
|
|
8516 |
return this.destination_pin != null;
|
|
|
8517 |
}
|
|
|
8518 |
|
|
|
8519 |
public void setDestination_pinIsSet(boolean value) {
|
|
|
8520 |
if (!value) {
|
|
|
8521 |
this.destination_pin = null;
|
|
|
8522 |
}
|
|
|
8523 |
}
|
|
|
8524 |
|
|
|
8525 |
/**
|
|
|
8526 |
*
|
|
|
8527 |
* @see DeliveryType
|
|
|
8528 |
*/
|
|
|
8529 |
public DeliveryType getType() {
|
|
|
8530 |
return this.type;
|
|
|
8531 |
}
|
|
|
8532 |
|
|
|
8533 |
/**
|
|
|
8534 |
*
|
|
|
8535 |
* @see DeliveryType
|
|
|
8536 |
*/
|
|
|
8537 |
public void setType(DeliveryType type) {
|
|
|
8538 |
this.type = type;
|
|
|
8539 |
}
|
|
|
8540 |
|
|
|
8541 |
public void unsetType() {
|
|
|
8542 |
this.type = null;
|
|
|
8543 |
}
|
|
|
8544 |
|
|
|
8545 |
/** Returns true if field type is set (has been assigned a value) and false otherwise */
|
|
|
8546 |
public boolean isSetType() {
|
|
|
8547 |
return this.type != null;
|
|
|
8548 |
}
|
|
|
8549 |
|
|
|
8550 |
public void setTypeIsSet(boolean value) {
|
|
|
8551 |
if (!value) {
|
|
|
8552 |
this.type = null;
|
|
|
8553 |
}
|
|
|
8554 |
}
|
|
|
8555 |
|
|
|
8556 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
8557 |
switch (field) {
|
|
|
8558 |
case CATALOG_ITEM_ID:
|
|
|
8559 |
if (value == null) {
|
|
|
8560 |
unsetCatalogItemId();
|
|
|
8561 |
} else {
|
|
|
8562 |
setCatalogItemId((Long)value);
|
|
|
8563 |
}
|
|
|
8564 |
break;
|
|
|
8565 |
|
|
|
8566 |
case DESTINATION_PIN:
|
|
|
8567 |
if (value == null) {
|
|
|
8568 |
unsetDestination_pin();
|
|
|
8569 |
} else {
|
|
|
8570 |
setDestination_pin((String)value);
|
|
|
8571 |
}
|
|
|
8572 |
break;
|
|
|
8573 |
|
|
|
8574 |
case TYPE:
|
|
|
8575 |
if (value == null) {
|
|
|
8576 |
unsetType();
|
|
|
8577 |
} else {
|
|
|
8578 |
setType((DeliveryType)value);
|
|
|
8579 |
}
|
|
|
8580 |
break;
|
|
|
8581 |
|
|
|
8582 |
}
|
|
|
8583 |
}
|
|
|
8584 |
|
|
|
8585 |
public Object getFieldValue(_Fields field) {
|
|
|
8586 |
switch (field) {
|
|
|
8587 |
case CATALOG_ITEM_ID:
|
|
|
8588 |
return Long.valueOf(getCatalogItemId());
|
|
|
8589 |
|
|
|
8590 |
case DESTINATION_PIN:
|
|
|
8591 |
return getDestination_pin();
|
|
|
8592 |
|
|
|
8593 |
case TYPE:
|
|
|
8594 |
return getType();
|
|
|
8595 |
|
|
|
8596 |
}
|
|
|
8597 |
throw new IllegalStateException();
|
|
|
8598 |
}
|
|
|
8599 |
|
|
|
8600 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
8601 |
public boolean isSet(_Fields field) {
|
|
|
8602 |
if (field == null) {
|
|
|
8603 |
throw new IllegalArgumentException();
|
|
|
8604 |
}
|
|
|
8605 |
|
|
|
8606 |
switch (field) {
|
|
|
8607 |
case CATALOG_ITEM_ID:
|
|
|
8608 |
return isSetCatalogItemId();
|
|
|
8609 |
case DESTINATION_PIN:
|
|
|
8610 |
return isSetDestination_pin();
|
|
|
8611 |
case TYPE:
|
|
|
8612 |
return isSetType();
|
|
|
8613 |
}
|
|
|
8614 |
throw new IllegalStateException();
|
|
|
8615 |
}
|
|
|
8616 |
|
|
|
8617 |
@Override
|
|
|
8618 |
public boolean equals(Object that) {
|
|
|
8619 |
if (that == null)
|
|
|
8620 |
return false;
|
|
|
8621 |
if (that instanceof getEntityLogisticsEstimation_args)
|
|
|
8622 |
return this.equals((getEntityLogisticsEstimation_args)that);
|
|
|
8623 |
return false;
|
|
|
8624 |
}
|
|
|
8625 |
|
|
|
8626 |
public boolean equals(getEntityLogisticsEstimation_args that) {
|
|
|
8627 |
if (that == null)
|
|
|
8628 |
return false;
|
|
|
8629 |
|
|
|
8630 |
boolean this_present_catalogItemId = true;
|
|
|
8631 |
boolean that_present_catalogItemId = true;
|
|
|
8632 |
if (this_present_catalogItemId || that_present_catalogItemId) {
|
|
|
8633 |
if (!(this_present_catalogItemId && that_present_catalogItemId))
|
|
|
8634 |
return false;
|
|
|
8635 |
if (this.catalogItemId != that.catalogItemId)
|
|
|
8636 |
return false;
|
|
|
8637 |
}
|
|
|
8638 |
|
|
|
8639 |
boolean this_present_destination_pin = true && this.isSetDestination_pin();
|
|
|
8640 |
boolean that_present_destination_pin = true && that.isSetDestination_pin();
|
|
|
8641 |
if (this_present_destination_pin || that_present_destination_pin) {
|
|
|
8642 |
if (!(this_present_destination_pin && that_present_destination_pin))
|
|
|
8643 |
return false;
|
|
|
8644 |
if (!this.destination_pin.equals(that.destination_pin))
|
|
|
8645 |
return false;
|
|
|
8646 |
}
|
|
|
8647 |
|
|
|
8648 |
boolean this_present_type = true && this.isSetType();
|
|
|
8649 |
boolean that_present_type = true && that.isSetType();
|
|
|
8650 |
if (this_present_type || that_present_type) {
|
|
|
8651 |
if (!(this_present_type && that_present_type))
|
|
|
8652 |
return false;
|
|
|
8653 |
if (!this.type.equals(that.type))
|
|
|
8654 |
return false;
|
|
|
8655 |
}
|
|
|
8656 |
|
|
|
8657 |
return true;
|
|
|
8658 |
}
|
|
|
8659 |
|
|
|
8660 |
@Override
|
|
|
8661 |
public int hashCode() {
|
|
|
8662 |
return 0;
|
|
|
8663 |
}
|
|
|
8664 |
|
|
|
8665 |
public int compareTo(getEntityLogisticsEstimation_args other) {
|
|
|
8666 |
if (!getClass().equals(other.getClass())) {
|
|
|
8667 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
8668 |
}
|
|
|
8669 |
|
|
|
8670 |
int lastComparison = 0;
|
|
|
8671 |
getEntityLogisticsEstimation_args typedOther = (getEntityLogisticsEstimation_args)other;
|
|
|
8672 |
|
|
|
8673 |
lastComparison = Boolean.valueOf(isSetCatalogItemId()).compareTo(typedOther.isSetCatalogItemId());
|
|
|
8674 |
if (lastComparison != 0) {
|
|
|
8675 |
return lastComparison;
|
|
|
8676 |
}
|
|
|
8677 |
if (isSetCatalogItemId()) {
|
|
|
8678 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.catalogItemId, typedOther.catalogItemId);
|
|
|
8679 |
if (lastComparison != 0) {
|
|
|
8680 |
return lastComparison;
|
|
|
8681 |
}
|
|
|
8682 |
}
|
|
|
8683 |
lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
|
|
|
8684 |
if (lastComparison != 0) {
|
|
|
8685 |
return lastComparison;
|
|
|
8686 |
}
|
|
|
8687 |
if (isSetDestination_pin()) {
|
|
|
8688 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
|
|
|
8689 |
if (lastComparison != 0) {
|
|
|
8690 |
return lastComparison;
|
|
|
8691 |
}
|
|
|
8692 |
}
|
|
|
8693 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
|
|
8694 |
if (lastComparison != 0) {
|
|
|
8695 |
return lastComparison;
|
|
|
8696 |
}
|
|
|
8697 |
if (isSetType()) {
|
|
|
8698 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
|
|
8699 |
if (lastComparison != 0) {
|
|
|
8700 |
return lastComparison;
|
|
|
8701 |
}
|
|
|
8702 |
}
|
|
|
8703 |
return 0;
|
|
|
8704 |
}
|
|
|
8705 |
|
|
|
8706 |
public _Fields fieldForId(int fieldId) {
|
|
|
8707 |
return _Fields.findByThriftId(fieldId);
|
|
|
8708 |
}
|
|
|
8709 |
|
|
|
8710 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
8711 |
org.apache.thrift.protocol.TField field;
|
|
|
8712 |
iprot.readStructBegin();
|
|
|
8713 |
while (true)
|
|
|
8714 |
{
|
|
|
8715 |
field = iprot.readFieldBegin();
|
|
|
8716 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
8717 |
break;
|
|
|
8718 |
}
|
|
|
8719 |
switch (field.id) {
|
|
|
8720 |
case 1: // CATALOG_ITEM_ID
|
|
|
8721 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
8722 |
this.catalogItemId = iprot.readI64();
|
|
|
8723 |
setCatalogItemIdIsSet(true);
|
|
|
8724 |
} else {
|
|
|
8725 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8726 |
}
|
|
|
8727 |
break;
|
|
|
8728 |
case 2: // DESTINATION_PIN
|
|
|
8729 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
8730 |
this.destination_pin = iprot.readString();
|
|
|
8731 |
} else {
|
|
|
8732 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8733 |
}
|
|
|
8734 |
break;
|
|
|
8735 |
case 3: // TYPE
|
|
|
8736 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
8737 |
this.type = DeliveryType.findByValue(iprot.readI32());
|
|
|
8738 |
} else {
|
|
|
8739 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8740 |
}
|
|
|
8741 |
break;
|
|
|
8742 |
default:
|
|
|
8743 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
8744 |
}
|
|
|
8745 |
iprot.readFieldEnd();
|
|
|
8746 |
}
|
|
|
8747 |
iprot.readStructEnd();
|
|
|
8748 |
validate();
|
|
|
8749 |
}
|
|
|
8750 |
|
|
|
8751 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
8752 |
validate();
|
|
|
8753 |
|
|
|
8754 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
8755 |
oprot.writeFieldBegin(CATALOG_ITEM_ID_FIELD_DESC);
|
|
|
8756 |
oprot.writeI64(this.catalogItemId);
|
|
|
8757 |
oprot.writeFieldEnd();
|
|
|
8758 |
if (this.destination_pin != null) {
|
|
|
8759 |
oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
|
|
|
8760 |
oprot.writeString(this.destination_pin);
|
|
|
8761 |
oprot.writeFieldEnd();
|
|
|
8762 |
}
|
|
|
8763 |
if (this.type != null) {
|
|
|
8764 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
|
|
8765 |
oprot.writeI32(this.type.getValue());
|
|
|
8766 |
oprot.writeFieldEnd();
|
|
|
8767 |
}
|
|
|
8768 |
oprot.writeFieldStop();
|
|
|
8769 |
oprot.writeStructEnd();
|
|
|
8770 |
}
|
|
|
8771 |
|
|
|
8772 |
@Override
|
|
|
8773 |
public String toString() {
|
|
|
8774 |
StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_args(");
|
|
|
8775 |
boolean first = true;
|
|
|
8776 |
|
|
|
8777 |
sb.append("catalogItemId:");
|
|
|
8778 |
sb.append(this.catalogItemId);
|
|
|
8779 |
first = false;
|
|
|
8780 |
if (!first) sb.append(", ");
|
|
|
8781 |
sb.append("destination_pin:");
|
|
|
8782 |
if (this.destination_pin == null) {
|
|
|
8783 |
sb.append("null");
|
|
|
8784 |
} else {
|
|
|
8785 |
sb.append(this.destination_pin);
|
|
|
8786 |
}
|
|
|
8787 |
first = false;
|
|
|
8788 |
if (!first) sb.append(", ");
|
|
|
8789 |
sb.append("type:");
|
|
|
8790 |
if (this.type == null) {
|
|
|
8791 |
sb.append("null");
|
|
|
8792 |
} else {
|
|
|
8793 |
sb.append(this.type);
|
|
|
8794 |
}
|
|
|
8795 |
first = false;
|
|
|
8796 |
sb.append(")");
|
|
|
8797 |
return sb.toString();
|
|
|
8798 |
}
|
|
|
8799 |
|
|
|
8800 |
public void validate() throws org.apache.thrift.TException {
|
|
|
8801 |
// check for required fields
|
|
|
8802 |
}
|
|
|
8803 |
|
|
|
8804 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
8805 |
try {
|
|
|
8806 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
8807 |
} catch (org.apache.thrift.TException te) {
|
|
|
8808 |
throw new java.io.IOException(te);
|
|
|
8809 |
}
|
|
|
8810 |
}
|
|
|
8811 |
|
|
|
8812 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
8813 |
try {
|
|
|
8814 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
8815 |
} catch (org.apache.thrift.TException te) {
|
|
|
8816 |
throw new java.io.IOException(te);
|
|
|
8817 |
}
|
|
|
8818 |
}
|
|
|
8819 |
|
|
|
8820 |
}
|
|
|
8821 |
|
|
|
8822 |
public static class getEntityLogisticsEstimation_result implements org.apache.thrift.TBase<getEntityLogisticsEstimation_result, getEntityLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
8823 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEntityLogisticsEstimation_result");
|
|
|
8824 |
|
|
|
8825 |
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);
|
|
|
8826 |
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);
|
|
|
8827 |
|
|
|
8828 |
private List<Long> success; // required
|
|
|
8829 |
private LogisticsServiceException se; // required
|
|
|
8830 |
|
|
|
8831 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
8832 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
8833 |
SUCCESS((short)0, "success"),
|
|
|
8834 |
SE((short)1, "se");
|
|
|
8835 |
|
|
|
8836 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
8837 |
|
|
|
8838 |
static {
|
|
|
8839 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
8840 |
byName.put(field.getFieldName(), field);
|
|
|
8841 |
}
|
|
|
8842 |
}
|
|
|
8843 |
|
|
|
8844 |
/**
|
|
|
8845 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
8846 |
*/
|
|
|
8847 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
8848 |
switch(fieldId) {
|
|
|
8849 |
case 0: // SUCCESS
|
|
|
8850 |
return SUCCESS;
|
|
|
8851 |
case 1: // SE
|
|
|
8852 |
return SE;
|
|
|
8853 |
default:
|
|
|
8854 |
return null;
|
|
|
8855 |
}
|
|
|
8856 |
}
|
|
|
8857 |
|
|
|
8858 |
/**
|
|
|
8859 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
8860 |
* if it is not found.
|
|
|
8861 |
*/
|
|
|
8862 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
8863 |
_Fields fields = findByThriftId(fieldId);
|
|
|
8864 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
8865 |
return fields;
|
|
|
8866 |
}
|
|
|
8867 |
|
|
|
8868 |
/**
|
|
|
8869 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
8870 |
*/
|
|
|
8871 |
public static _Fields findByName(String name) {
|
|
|
8872 |
return byName.get(name);
|
|
|
8873 |
}
|
|
|
8874 |
|
|
|
8875 |
private final short _thriftId;
|
|
|
8876 |
private final String _fieldName;
|
|
|
8877 |
|
|
|
8878 |
_Fields(short thriftId, String fieldName) {
|
|
|
8879 |
_thriftId = thriftId;
|
|
|
8880 |
_fieldName = fieldName;
|
|
|
8881 |
}
|
|
|
8882 |
|
|
|
8883 |
public short getThriftFieldId() {
|
|
|
8884 |
return _thriftId;
|
|
|
8885 |
}
|
|
|
8886 |
|
|
|
8887 |
public String getFieldName() {
|
|
|
8888 |
return _fieldName;
|
|
|
8889 |
}
|
|
|
8890 |
}
|
|
|
8891 |
|
|
|
8892 |
// isset id assignments
|
|
|
8893 |
|
|
|
8894 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
8895 |
static {
|
|
|
8896 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
8897 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8898 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
8899 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
|
|
|
8900 |
tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
8901 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
8902 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
8903 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEntityLogisticsEstimation_result.class, metaDataMap);
|
|
|
8904 |
}
|
|
|
8905 |
|
|
|
8906 |
public getEntityLogisticsEstimation_result() {
|
|
|
8907 |
}
|
|
|
8908 |
|
|
|
8909 |
public getEntityLogisticsEstimation_result(
|
|
|
8910 |
List<Long> success,
|
|
|
8911 |
LogisticsServiceException se)
|
|
|
8912 |
{
|
|
|
8913 |
this();
|
|
|
8914 |
this.success = success;
|
|
|
8915 |
this.se = se;
|
|
|
8916 |
}
|
|
|
8917 |
|
|
|
8918 |
/**
|
|
|
8919 |
* Performs a deep copy on <i>other</i>.
|
|
|
8920 |
*/
|
|
|
8921 |
public getEntityLogisticsEstimation_result(getEntityLogisticsEstimation_result other) {
|
|
|
8922 |
if (other.isSetSuccess()) {
|
|
|
8923 |
List<Long> __this__success = new ArrayList<Long>();
|
|
|
8924 |
for (Long other_element : other.success) {
|
|
|
8925 |
__this__success.add(other_element);
|
|
|
8926 |
}
|
|
|
8927 |
this.success = __this__success;
|
|
|
8928 |
}
|
|
|
8929 |
if (other.isSetSe()) {
|
|
|
8930 |
this.se = new LogisticsServiceException(other.se);
|
|
|
8931 |
}
|
|
|
8932 |
}
|
|
|
8933 |
|
|
|
8934 |
public getEntityLogisticsEstimation_result deepCopy() {
|
|
|
8935 |
return new getEntityLogisticsEstimation_result(this);
|
|
|
8936 |
}
|
|
|
8937 |
|
|
|
8938 |
@Override
|
|
|
8939 |
public void clear() {
|
|
|
8940 |
this.success = null;
|
|
|
8941 |
this.se = null;
|
|
|
8942 |
}
|
|
|
8943 |
|
|
|
8944 |
public int getSuccessSize() {
|
|
|
8945 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
8946 |
}
|
|
|
8947 |
|
|
|
8948 |
public java.util.Iterator<Long> getSuccessIterator() {
|
|
|
8949 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
8950 |
}
|
|
|
8951 |
|
|
|
8952 |
public void addToSuccess(long elem) {
|
|
|
8953 |
if (this.success == null) {
|
|
|
8954 |
this.success = new ArrayList<Long>();
|
|
|
8955 |
}
|
|
|
8956 |
this.success.add(elem);
|
|
|
8957 |
}
|
|
|
8958 |
|
|
|
8959 |
public List<Long> getSuccess() {
|
|
|
8960 |
return this.success;
|
|
|
8961 |
}
|
|
|
8962 |
|
|
|
8963 |
public void setSuccess(List<Long> success) {
|
|
|
8964 |
this.success = success;
|
|
|
8965 |
}
|
|
|
8966 |
|
|
|
8967 |
public void unsetSuccess() {
|
|
|
8968 |
this.success = null;
|
|
|
8969 |
}
|
|
|
8970 |
|
|
|
8971 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
8972 |
public boolean isSetSuccess() {
|
|
|
8973 |
return this.success != null;
|
|
|
8974 |
}
|
|
|
8975 |
|
|
|
8976 |
public void setSuccessIsSet(boolean value) {
|
|
|
8977 |
if (!value) {
|
|
|
8978 |
this.success = null;
|
|
|
8979 |
}
|
|
|
8980 |
}
|
|
|
8981 |
|
|
|
8982 |
public LogisticsServiceException getSe() {
|
|
|
8983 |
return this.se;
|
|
|
8984 |
}
|
|
|
8985 |
|
|
|
8986 |
public void setSe(LogisticsServiceException se) {
|
|
|
8987 |
this.se = se;
|
|
|
8988 |
}
|
|
|
8989 |
|
|
|
8990 |
public void unsetSe() {
|
|
|
8991 |
this.se = null;
|
|
|
8992 |
}
|
|
|
8993 |
|
|
|
8994 |
/** Returns true if field se is set (has been assigned a value) and false otherwise */
|
|
|
8995 |
public boolean isSetSe() {
|
|
|
8996 |
return this.se != null;
|
|
|
8997 |
}
|
|
|
8998 |
|
|
|
8999 |
public void setSeIsSet(boolean value) {
|
|
|
9000 |
if (!value) {
|
|
|
9001 |
this.se = null;
|
|
|
9002 |
}
|
|
|
9003 |
}
|
|
|
9004 |
|
|
|
9005 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
9006 |
switch (field) {
|
|
|
9007 |
case SUCCESS:
|
|
|
9008 |
if (value == null) {
|
|
|
9009 |
unsetSuccess();
|
|
|
9010 |
} else {
|
|
|
9011 |
setSuccess((List<Long>)value);
|
|
|
9012 |
}
|
|
|
9013 |
break;
|
|
|
9014 |
|
|
|
9015 |
case SE:
|
|
|
9016 |
if (value == null) {
|
|
|
9017 |
unsetSe();
|
|
|
9018 |
} else {
|
|
|
9019 |
setSe((LogisticsServiceException)value);
|
|
|
9020 |
}
|
|
|
9021 |
break;
|
|
|
9022 |
|
|
|
9023 |
}
|
|
|
9024 |
}
|
|
|
9025 |
|
|
|
9026 |
public Object getFieldValue(_Fields field) {
|
|
|
9027 |
switch (field) {
|
|
|
9028 |
case SUCCESS:
|
|
|
9029 |
return getSuccess();
|
|
|
9030 |
|
|
|
9031 |
case SE:
|
|
|
9032 |
return getSe();
|
|
|
9033 |
|
|
|
9034 |
}
|
|
|
9035 |
throw new IllegalStateException();
|
|
|
9036 |
}
|
|
|
9037 |
|
|
|
9038 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
9039 |
public boolean isSet(_Fields field) {
|
|
|
9040 |
if (field == null) {
|
|
|
9041 |
throw new IllegalArgumentException();
|
|
|
9042 |
}
|
|
|
9043 |
|
|
|
9044 |
switch (field) {
|
|
|
9045 |
case SUCCESS:
|
|
|
9046 |
return isSetSuccess();
|
|
|
9047 |
case SE:
|
|
|
9048 |
return isSetSe();
|
|
|
9049 |
}
|
|
|
9050 |
throw new IllegalStateException();
|
|
|
9051 |
}
|
|
|
9052 |
|
|
|
9053 |
@Override
|
|
|
9054 |
public boolean equals(Object that) {
|
|
|
9055 |
if (that == null)
|
|
|
9056 |
return false;
|
|
|
9057 |
if (that instanceof getEntityLogisticsEstimation_result)
|
|
|
9058 |
return this.equals((getEntityLogisticsEstimation_result)that);
|
|
|
9059 |
return false;
|
|
|
9060 |
}
|
|
|
9061 |
|
|
|
9062 |
public boolean equals(getEntityLogisticsEstimation_result that) {
|
|
|
9063 |
if (that == null)
|
|
|
9064 |
return false;
|
|
|
9065 |
|
|
|
9066 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
9067 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
9068 |
if (this_present_success || that_present_success) {
|
|
|
9069 |
if (!(this_present_success && that_present_success))
|
|
|
9070 |
return false;
|
|
|
9071 |
if (!this.success.equals(that.success))
|
|
|
9072 |
return false;
|
|
|
9073 |
}
|
|
|
9074 |
|
|
|
9075 |
boolean this_present_se = true && this.isSetSe();
|
|
|
9076 |
boolean that_present_se = true && that.isSetSe();
|
|
|
9077 |
if (this_present_se || that_present_se) {
|
|
|
9078 |
if (!(this_present_se && that_present_se))
|
|
|
9079 |
return false;
|
|
|
9080 |
if (!this.se.equals(that.se))
|
|
|
9081 |
return false;
|
|
|
9082 |
}
|
|
|
9083 |
|
|
|
9084 |
return true;
|
|
|
9085 |
}
|
|
|
9086 |
|
|
|
9087 |
@Override
|
|
|
9088 |
public int hashCode() {
|
|
|
9089 |
return 0;
|
|
|
9090 |
}
|
|
|
9091 |
|
|
|
9092 |
public int compareTo(getEntityLogisticsEstimation_result other) {
|
|
|
9093 |
if (!getClass().equals(other.getClass())) {
|
|
|
9094 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
9095 |
}
|
|
|
9096 |
|
|
|
9097 |
int lastComparison = 0;
|
|
|
9098 |
getEntityLogisticsEstimation_result typedOther = (getEntityLogisticsEstimation_result)other;
|
|
|
9099 |
|
|
|
9100 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
9101 |
if (lastComparison != 0) {
|
|
|
9102 |
return lastComparison;
|
|
|
9103 |
}
|
|
|
9104 |
if (isSetSuccess()) {
|
|
|
9105 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
9106 |
if (lastComparison != 0) {
|
|
|
9107 |
return lastComparison;
|
|
|
9108 |
}
|
|
|
9109 |
}
|
|
|
9110 |
lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
|
|
|
9111 |
if (lastComparison != 0) {
|
|
|
9112 |
return lastComparison;
|
|
|
9113 |
}
|
|
|
9114 |
if (isSetSe()) {
|
|
|
9115 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
|
|
|
9116 |
if (lastComparison != 0) {
|
|
|
9117 |
return lastComparison;
|
|
|
9118 |
}
|
|
|
9119 |
}
|
|
|
9120 |
return 0;
|
|
|
9121 |
}
|
|
|
9122 |
|
|
|
9123 |
public _Fields fieldForId(int fieldId) {
|
|
|
9124 |
return _Fields.findByThriftId(fieldId);
|
|
|
9125 |
}
|
|
|
9126 |
|
|
|
9127 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
9128 |
org.apache.thrift.protocol.TField field;
|
|
|
9129 |
iprot.readStructBegin();
|
|
|
9130 |
while (true)
|
|
|
9131 |
{
|
|
|
9132 |
field = iprot.readFieldBegin();
|
|
|
9133 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
9134 |
break;
|
|
|
9135 |
}
|
|
|
9136 |
switch (field.id) {
|
|
|
9137 |
case 0: // SUCCESS
|
|
|
9138 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
9139 |
{
|
|
|
9140 |
org.apache.thrift.protocol.TList _list17 = iprot.readListBegin();
|
|
|
9141 |
this.success = new ArrayList<Long>(_list17.size);
|
|
|
9142 |
for (int _i18 = 0; _i18 < _list17.size; ++_i18)
|
|
|
9143 |
{
|
|
|
9144 |
long _elem19; // required
|
|
|
9145 |
_elem19 = iprot.readI64();
|
|
|
9146 |
this.success.add(_elem19);
|
|
|
9147 |
}
|
|
|
9148 |
iprot.readListEnd();
|
|
|
9149 |
}
|
|
|
9150 |
} else {
|
|
|
9151 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9152 |
}
|
|
|
9153 |
break;
|
|
|
9154 |
case 1: // SE
|
|
|
9155 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
9156 |
this.se = new LogisticsServiceException();
|
|
|
9157 |
this.se.read(iprot);
|
|
|
9158 |
} else {
|
|
|
9159 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9160 |
}
|
|
|
9161 |
break;
|
|
|
9162 |
default:
|
|
|
9163 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9164 |
}
|
|
|
9165 |
iprot.readFieldEnd();
|
|
|
9166 |
}
|
|
|
9167 |
iprot.readStructEnd();
|
|
|
9168 |
validate();
|
|
|
9169 |
}
|
|
|
9170 |
|
|
|
9171 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
9172 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
9173 |
|
|
|
9174 |
if (this.isSetSuccess()) {
|
|
|
9175 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
9176 |
{
|
|
|
9177 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
|
|
|
9178 |
for (long _iter20 : this.success)
|
|
|
9179 |
{
|
|
|
9180 |
oprot.writeI64(_iter20);
|
|
|
9181 |
}
|
|
|
9182 |
oprot.writeListEnd();
|
|
|
9183 |
}
|
|
|
9184 |
oprot.writeFieldEnd();
|
|
|
9185 |
} else if (this.isSetSe()) {
|
|
|
9186 |
oprot.writeFieldBegin(SE_FIELD_DESC);
|
|
|
9187 |
this.se.write(oprot);
|
|
|
9188 |
oprot.writeFieldEnd();
|
|
|
9189 |
}
|
|
|
9190 |
oprot.writeFieldStop();
|
|
|
9191 |
oprot.writeStructEnd();
|
|
|
9192 |
}
|
|
|
9193 |
|
|
|
9194 |
@Override
|
|
|
9195 |
public String toString() {
|
|
|
9196 |
StringBuilder sb = new StringBuilder("getEntityLogisticsEstimation_result(");
|
|
|
9197 |
boolean first = true;
|
|
|
9198 |
|
|
|
9199 |
sb.append("success:");
|
|
|
9200 |
if (this.success == null) {
|
|
|
9201 |
sb.append("null");
|
|
|
9202 |
} else {
|
|
|
9203 |
sb.append(this.success);
|
|
|
9204 |
}
|
|
|
9205 |
first = false;
|
|
|
9206 |
if (!first) sb.append(", ");
|
|
|
9207 |
sb.append("se:");
|
|
|
9208 |
if (this.se == null) {
|
|
|
9209 |
sb.append("null");
|
|
|
9210 |
} else {
|
|
|
9211 |
sb.append(this.se);
|
|
|
9212 |
}
|
|
|
9213 |
first = false;
|
|
|
9214 |
sb.append(")");
|
|
|
9215 |
return sb.toString();
|
|
|
9216 |
}
|
|
|
9217 |
|
|
|
9218 |
public void validate() throws org.apache.thrift.TException {
|
|
|
9219 |
// check for required fields
|
|
|
9220 |
}
|
|
|
9221 |
|
|
|
9222 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
9223 |
try {
|
|
|
9224 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
9225 |
} catch (org.apache.thrift.TException te) {
|
|
|
9226 |
throw new java.io.IOException(te);
|
|
|
9227 |
}
|
|
|
9228 |
}
|
|
|
9229 |
|
|
|
9230 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
9231 |
try {
|
|
|
9232 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
9233 |
} catch (org.apache.thrift.TException te) {
|
|
|
9234 |
throw new java.io.IOException(te);
|
|
|
9235 |
}
|
|
|
9236 |
}
|
|
|
9237 |
|
|
|
9238 |
}
|
|
|
9239 |
|
| 5527 |
anupam.sin |
9240 |
public static class getProviderForPickupType_args implements org.apache.thrift.TBase<getProviderForPickupType_args, getProviderForPickupType_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
9241 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderForPickupType_args");
|
|
|
9242 |
|
|
|
9243 |
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);
|
|
|
9244 |
|
|
|
9245 |
private long pickUp; // required
|
|
|
9246 |
|
|
|
9247 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
9248 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
9249 |
PICK_UP((short)1, "pickUp");
|
|
|
9250 |
|
|
|
9251 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
9252 |
|
|
|
9253 |
static {
|
|
|
9254 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
9255 |
byName.put(field.getFieldName(), field);
|
|
|
9256 |
}
|
|
|
9257 |
}
|
|
|
9258 |
|
|
|
9259 |
/**
|
|
|
9260 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
9261 |
*/
|
|
|
9262 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
9263 |
switch(fieldId) {
|
|
|
9264 |
case 1: // PICK_UP
|
|
|
9265 |
return PICK_UP;
|
|
|
9266 |
default:
|
|
|
9267 |
return null;
|
|
|
9268 |
}
|
|
|
9269 |
}
|
|
|
9270 |
|
|
|
9271 |
/**
|
|
|
9272 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
9273 |
* if it is not found.
|
|
|
9274 |
*/
|
|
|
9275 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
9276 |
_Fields fields = findByThriftId(fieldId);
|
|
|
9277 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
9278 |
return fields;
|
|
|
9279 |
}
|
|
|
9280 |
|
|
|
9281 |
/**
|
|
|
9282 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
9283 |
*/
|
|
|
9284 |
public static _Fields findByName(String name) {
|
|
|
9285 |
return byName.get(name);
|
|
|
9286 |
}
|
|
|
9287 |
|
|
|
9288 |
private final short _thriftId;
|
|
|
9289 |
private final String _fieldName;
|
|
|
9290 |
|
|
|
9291 |
_Fields(short thriftId, String fieldName) {
|
|
|
9292 |
_thriftId = thriftId;
|
|
|
9293 |
_fieldName = fieldName;
|
|
|
9294 |
}
|
|
|
9295 |
|
|
|
9296 |
public short getThriftFieldId() {
|
|
|
9297 |
return _thriftId;
|
|
|
9298 |
}
|
|
|
9299 |
|
|
|
9300 |
public String getFieldName() {
|
|
|
9301 |
return _fieldName;
|
|
|
9302 |
}
|
|
|
9303 |
}
|
|
|
9304 |
|
|
|
9305 |
// isset id assignments
|
|
|
9306 |
private static final int __PICKUP_ISSET_ID = 0;
|
|
|
9307 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
9308 |
|
|
|
9309 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
9310 |
static {
|
|
|
9311 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
9312 |
tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9313 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
9314 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
9315 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderForPickupType_args.class, metaDataMap);
|
|
|
9316 |
}
|
|
|
9317 |
|
|
|
9318 |
public getProviderForPickupType_args() {
|
|
|
9319 |
}
|
|
|
9320 |
|
|
|
9321 |
public getProviderForPickupType_args(
|
|
|
9322 |
long pickUp)
|
|
|
9323 |
{
|
|
|
9324 |
this();
|
|
|
9325 |
this.pickUp = pickUp;
|
|
|
9326 |
setPickUpIsSet(true);
|
|
|
9327 |
}
|
|
|
9328 |
|
|
|
9329 |
/**
|
|
|
9330 |
* Performs a deep copy on <i>other</i>.
|
|
|
9331 |
*/
|
|
|
9332 |
public getProviderForPickupType_args(getProviderForPickupType_args other) {
|
|
|
9333 |
__isset_bit_vector.clear();
|
|
|
9334 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
9335 |
this.pickUp = other.pickUp;
|
|
|
9336 |
}
|
|
|
9337 |
|
|
|
9338 |
public getProviderForPickupType_args deepCopy() {
|
|
|
9339 |
return new getProviderForPickupType_args(this);
|
|
|
9340 |
}
|
|
|
9341 |
|
|
|
9342 |
@Override
|
|
|
9343 |
public void clear() {
|
|
|
9344 |
setPickUpIsSet(false);
|
|
|
9345 |
this.pickUp = 0;
|
|
|
9346 |
}
|
|
|
9347 |
|
|
|
9348 |
public long getPickUp() {
|
|
|
9349 |
return this.pickUp;
|
|
|
9350 |
}
|
|
|
9351 |
|
|
|
9352 |
public void setPickUp(long pickUp) {
|
|
|
9353 |
this.pickUp = pickUp;
|
|
|
9354 |
setPickUpIsSet(true);
|
|
|
9355 |
}
|
|
|
9356 |
|
|
|
9357 |
public void unsetPickUp() {
|
|
|
9358 |
__isset_bit_vector.clear(__PICKUP_ISSET_ID);
|
|
|
9359 |
}
|
|
|
9360 |
|
|
|
9361 |
/** Returns true if field pickUp is set (has been assigned a value) and false otherwise */
|
|
|
9362 |
public boolean isSetPickUp() {
|
|
|
9363 |
return __isset_bit_vector.get(__PICKUP_ISSET_ID);
|
|
|
9364 |
}
|
|
|
9365 |
|
|
|
9366 |
public void setPickUpIsSet(boolean value) {
|
|
|
9367 |
__isset_bit_vector.set(__PICKUP_ISSET_ID, value);
|
|
|
9368 |
}
|
|
|
9369 |
|
|
|
9370 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
9371 |
switch (field) {
|
|
|
9372 |
case PICK_UP:
|
|
|
9373 |
if (value == null) {
|
|
|
9374 |
unsetPickUp();
|
|
|
9375 |
} else {
|
|
|
9376 |
setPickUp((Long)value);
|
|
|
9377 |
}
|
|
|
9378 |
break;
|
|
|
9379 |
|
|
|
9380 |
}
|
|
|
9381 |
}
|
|
|
9382 |
|
|
|
9383 |
public Object getFieldValue(_Fields field) {
|
|
|
9384 |
switch (field) {
|
|
|
9385 |
case PICK_UP:
|
|
|
9386 |
return Long.valueOf(getPickUp());
|
|
|
9387 |
|
|
|
9388 |
}
|
|
|
9389 |
throw new IllegalStateException();
|
|
|
9390 |
}
|
|
|
9391 |
|
|
|
9392 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
9393 |
public boolean isSet(_Fields field) {
|
|
|
9394 |
if (field == null) {
|
|
|
9395 |
throw new IllegalArgumentException();
|
|
|
9396 |
}
|
|
|
9397 |
|
|
|
9398 |
switch (field) {
|
|
|
9399 |
case PICK_UP:
|
|
|
9400 |
return isSetPickUp();
|
|
|
9401 |
}
|
|
|
9402 |
throw new IllegalStateException();
|
|
|
9403 |
}
|
|
|
9404 |
|
|
|
9405 |
@Override
|
|
|
9406 |
public boolean equals(Object that) {
|
|
|
9407 |
if (that == null)
|
|
|
9408 |
return false;
|
|
|
9409 |
if (that instanceof getProviderForPickupType_args)
|
|
|
9410 |
return this.equals((getProviderForPickupType_args)that);
|
|
|
9411 |
return false;
|
|
|
9412 |
}
|
|
|
9413 |
|
|
|
9414 |
public boolean equals(getProviderForPickupType_args that) {
|
|
|
9415 |
if (that == null)
|
|
|
9416 |
return false;
|
|
|
9417 |
|
|
|
9418 |
boolean this_present_pickUp = true;
|
|
|
9419 |
boolean that_present_pickUp = true;
|
|
|
9420 |
if (this_present_pickUp || that_present_pickUp) {
|
|
|
9421 |
if (!(this_present_pickUp && that_present_pickUp))
|
|
|
9422 |
return false;
|
|
|
9423 |
if (this.pickUp != that.pickUp)
|
|
|
9424 |
return false;
|
|
|
9425 |
}
|
|
|
9426 |
|
|
|
9427 |
return true;
|
|
|
9428 |
}
|
|
|
9429 |
|
|
|
9430 |
@Override
|
|
|
9431 |
public int hashCode() {
|
|
|
9432 |
return 0;
|
|
|
9433 |
}
|
|
|
9434 |
|
|
|
9435 |
public int compareTo(getProviderForPickupType_args other) {
|
|
|
9436 |
if (!getClass().equals(other.getClass())) {
|
|
|
9437 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
9438 |
}
|
|
|
9439 |
|
|
|
9440 |
int lastComparison = 0;
|
|
|
9441 |
getProviderForPickupType_args typedOther = (getProviderForPickupType_args)other;
|
|
|
9442 |
|
|
|
9443 |
lastComparison = Boolean.valueOf(isSetPickUp()).compareTo(typedOther.isSetPickUp());
|
|
|
9444 |
if (lastComparison != 0) {
|
|
|
9445 |
return lastComparison;
|
|
|
9446 |
}
|
|
|
9447 |
if (isSetPickUp()) {
|
|
|
9448 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
|
|
|
9449 |
if (lastComparison != 0) {
|
|
|
9450 |
return lastComparison;
|
|
|
9451 |
}
|
|
|
9452 |
}
|
|
|
9453 |
return 0;
|
|
|
9454 |
}
|
|
|
9455 |
|
|
|
9456 |
public _Fields fieldForId(int fieldId) {
|
|
|
9457 |
return _Fields.findByThriftId(fieldId);
|
|
|
9458 |
}
|
|
|
9459 |
|
|
|
9460 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
9461 |
org.apache.thrift.protocol.TField field;
|
|
|
9462 |
iprot.readStructBegin();
|
|
|
9463 |
while (true)
|
|
|
9464 |
{
|
|
|
9465 |
field = iprot.readFieldBegin();
|
|
|
9466 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
9467 |
break;
|
|
|
9468 |
}
|
|
|
9469 |
switch (field.id) {
|
|
|
9470 |
case 1: // PICK_UP
|
|
|
9471 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
9472 |
this.pickUp = iprot.readI64();
|
|
|
9473 |
setPickUpIsSet(true);
|
|
|
9474 |
} else {
|
|
|
9475 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9476 |
}
|
|
|
9477 |
break;
|
|
|
9478 |
default:
|
|
|
9479 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9480 |
}
|
|
|
9481 |
iprot.readFieldEnd();
|
|
|
9482 |
}
|
|
|
9483 |
iprot.readStructEnd();
|
|
|
9484 |
validate();
|
|
|
9485 |
}
|
|
|
9486 |
|
|
|
9487 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
9488 |
validate();
|
|
|
9489 |
|
|
|
9490 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
9491 |
oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
|
|
|
9492 |
oprot.writeI64(this.pickUp);
|
|
|
9493 |
oprot.writeFieldEnd();
|
|
|
9494 |
oprot.writeFieldStop();
|
|
|
9495 |
oprot.writeStructEnd();
|
|
|
9496 |
}
|
|
|
9497 |
|
|
|
9498 |
@Override
|
|
|
9499 |
public String toString() {
|
|
|
9500 |
StringBuilder sb = new StringBuilder("getProviderForPickupType_args(");
|
|
|
9501 |
boolean first = true;
|
|
|
9502 |
|
|
|
9503 |
sb.append("pickUp:");
|
|
|
9504 |
sb.append(this.pickUp);
|
|
|
9505 |
first = false;
|
|
|
9506 |
sb.append(")");
|
|
|
9507 |
return sb.toString();
|
|
|
9508 |
}
|
|
|
9509 |
|
|
|
9510 |
public void validate() throws org.apache.thrift.TException {
|
|
|
9511 |
// check for required fields
|
|
|
9512 |
}
|
|
|
9513 |
|
|
|
9514 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
9515 |
try {
|
|
|
9516 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
9517 |
} catch (org.apache.thrift.TException te) {
|
|
|
9518 |
throw new java.io.IOException(te);
|
|
|
9519 |
}
|
|
|
9520 |
}
|
|
|
9521 |
|
|
|
9522 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
9523 |
try {
|
|
|
9524 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
9525 |
__isset_bit_vector = new BitSet(1);
|
|
|
9526 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
9527 |
} catch (org.apache.thrift.TException te) {
|
|
|
9528 |
throw new java.io.IOException(te);
|
|
|
9529 |
}
|
|
|
9530 |
}
|
|
|
9531 |
|
|
|
9532 |
}
|
|
|
9533 |
|
|
|
9534 |
public static class getProviderForPickupType_result implements org.apache.thrift.TBase<getProviderForPickupType_result, getProviderForPickupType_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
9535 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProviderForPickupType_result");
|
|
|
9536 |
|
|
|
9537 |
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);
|
|
|
9538 |
|
|
|
9539 |
private long success; // required
|
|
|
9540 |
|
|
|
9541 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
9542 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
9543 |
SUCCESS((short)0, "success");
|
|
|
9544 |
|
|
|
9545 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
9546 |
|
|
|
9547 |
static {
|
|
|
9548 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
9549 |
byName.put(field.getFieldName(), field);
|
|
|
9550 |
}
|
|
|
9551 |
}
|
|
|
9552 |
|
|
|
9553 |
/**
|
|
|
9554 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
9555 |
*/
|
|
|
9556 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
9557 |
switch(fieldId) {
|
|
|
9558 |
case 0: // SUCCESS
|
|
|
9559 |
return SUCCESS;
|
|
|
9560 |
default:
|
|
|
9561 |
return null;
|
|
|
9562 |
}
|
|
|
9563 |
}
|
|
|
9564 |
|
|
|
9565 |
/**
|
|
|
9566 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
9567 |
* if it is not found.
|
|
|
9568 |
*/
|
|
|
9569 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
9570 |
_Fields fields = findByThriftId(fieldId);
|
|
|
9571 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
9572 |
return fields;
|
|
|
9573 |
}
|
|
|
9574 |
|
|
|
9575 |
/**
|
|
|
9576 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
9577 |
*/
|
|
|
9578 |
public static _Fields findByName(String name) {
|
|
|
9579 |
return byName.get(name);
|
|
|
9580 |
}
|
|
|
9581 |
|
|
|
9582 |
private final short _thriftId;
|
|
|
9583 |
private final String _fieldName;
|
|
|
9584 |
|
|
|
9585 |
_Fields(short thriftId, String fieldName) {
|
|
|
9586 |
_thriftId = thriftId;
|
|
|
9587 |
_fieldName = fieldName;
|
|
|
9588 |
}
|
|
|
9589 |
|
|
|
9590 |
public short getThriftFieldId() {
|
|
|
9591 |
return _thriftId;
|
|
|
9592 |
}
|
|
|
9593 |
|
|
|
9594 |
public String getFieldName() {
|
|
|
9595 |
return _fieldName;
|
|
|
9596 |
}
|
|
|
9597 |
}
|
|
|
9598 |
|
|
|
9599 |
// isset id assignments
|
|
|
9600 |
private static final int __SUCCESS_ISSET_ID = 0;
|
|
|
9601 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
9602 |
|
|
|
9603 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
9604 |
static {
|
|
|
9605 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
9606 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
9607 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
9608 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
9609 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProviderForPickupType_result.class, metaDataMap);
|
|
|
9610 |
}
|
|
|
9611 |
|
|
|
9612 |
public getProviderForPickupType_result() {
|
|
|
9613 |
}
|
|
|
9614 |
|
|
|
9615 |
public getProviderForPickupType_result(
|
|
|
9616 |
long success)
|
|
|
9617 |
{
|
|
|
9618 |
this();
|
|
|
9619 |
this.success = success;
|
|
|
9620 |
setSuccessIsSet(true);
|
|
|
9621 |
}
|
|
|
9622 |
|
|
|
9623 |
/**
|
|
|
9624 |
* Performs a deep copy on <i>other</i>.
|
|
|
9625 |
*/
|
|
|
9626 |
public getProviderForPickupType_result(getProviderForPickupType_result other) {
|
|
|
9627 |
__isset_bit_vector.clear();
|
|
|
9628 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
9629 |
this.success = other.success;
|
|
|
9630 |
}
|
|
|
9631 |
|
|
|
9632 |
public getProviderForPickupType_result deepCopy() {
|
|
|
9633 |
return new getProviderForPickupType_result(this);
|
|
|
9634 |
}
|
|
|
9635 |
|
|
|
9636 |
@Override
|
|
|
9637 |
public void clear() {
|
|
|
9638 |
setSuccessIsSet(false);
|
|
|
9639 |
this.success = 0;
|
|
|
9640 |
}
|
|
|
9641 |
|
|
|
9642 |
public long getSuccess() {
|
|
|
9643 |
return this.success;
|
|
|
9644 |
}
|
|
|
9645 |
|
|
|
9646 |
public void setSuccess(long success) {
|
|
|
9647 |
this.success = success;
|
|
|
9648 |
setSuccessIsSet(true);
|
|
|
9649 |
}
|
|
|
9650 |
|
|
|
9651 |
public void unsetSuccess() {
|
|
|
9652 |
__isset_bit_vector.clear(__SUCCESS_ISSET_ID);
|
|
|
9653 |
}
|
|
|
9654 |
|
|
|
9655 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
9656 |
public boolean isSetSuccess() {
|
|
|
9657 |
return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
|
|
|
9658 |
}
|
|
|
9659 |
|
|
|
9660 |
public void setSuccessIsSet(boolean value) {
|
|
|
9661 |
__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
|
|
|
9662 |
}
|
|
|
9663 |
|
|
|
9664 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
9665 |
switch (field) {
|
|
|
9666 |
case SUCCESS:
|
|
|
9667 |
if (value == null) {
|
|
|
9668 |
unsetSuccess();
|
|
|
9669 |
} else {
|
|
|
9670 |
setSuccess((Long)value);
|
|
|
9671 |
}
|
|
|
9672 |
break;
|
|
|
9673 |
|
|
|
9674 |
}
|
|
|
9675 |
}
|
|
|
9676 |
|
|
|
9677 |
public Object getFieldValue(_Fields field) {
|
|
|
9678 |
switch (field) {
|
|
|
9679 |
case SUCCESS:
|
|
|
9680 |
return Long.valueOf(getSuccess());
|
|
|
9681 |
|
|
|
9682 |
}
|
|
|
9683 |
throw new IllegalStateException();
|
|
|
9684 |
}
|
|
|
9685 |
|
|
|
9686 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
9687 |
public boolean isSet(_Fields field) {
|
|
|
9688 |
if (field == null) {
|
|
|
9689 |
throw new IllegalArgumentException();
|
|
|
9690 |
}
|
|
|
9691 |
|
|
|
9692 |
switch (field) {
|
|
|
9693 |
case SUCCESS:
|
|
|
9694 |
return isSetSuccess();
|
|
|
9695 |
}
|
|
|
9696 |
throw new IllegalStateException();
|
|
|
9697 |
}
|
|
|
9698 |
|
|
|
9699 |
@Override
|
|
|
9700 |
public boolean equals(Object that) {
|
|
|
9701 |
if (that == null)
|
|
|
9702 |
return false;
|
|
|
9703 |
if (that instanceof getProviderForPickupType_result)
|
|
|
9704 |
return this.equals((getProviderForPickupType_result)that);
|
|
|
9705 |
return false;
|
|
|
9706 |
}
|
|
|
9707 |
|
|
|
9708 |
public boolean equals(getProviderForPickupType_result that) {
|
|
|
9709 |
if (that == null)
|
|
|
9710 |
return false;
|
|
|
9711 |
|
|
|
9712 |
boolean this_present_success = true;
|
|
|
9713 |
boolean that_present_success = true;
|
|
|
9714 |
if (this_present_success || that_present_success) {
|
|
|
9715 |
if (!(this_present_success && that_present_success))
|
|
|
9716 |
return false;
|
|
|
9717 |
if (this.success != that.success)
|
|
|
9718 |
return false;
|
|
|
9719 |
}
|
|
|
9720 |
|
|
|
9721 |
return true;
|
|
|
9722 |
}
|
|
|
9723 |
|
|
|
9724 |
@Override
|
|
|
9725 |
public int hashCode() {
|
|
|
9726 |
return 0;
|
|
|
9727 |
}
|
|
|
9728 |
|
|
|
9729 |
public int compareTo(getProviderForPickupType_result other) {
|
|
|
9730 |
if (!getClass().equals(other.getClass())) {
|
|
|
9731 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
9732 |
}
|
|
|
9733 |
|
|
|
9734 |
int lastComparison = 0;
|
|
|
9735 |
getProviderForPickupType_result typedOther = (getProviderForPickupType_result)other;
|
|
|
9736 |
|
|
|
9737 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
9738 |
if (lastComparison != 0) {
|
|
|
9739 |
return lastComparison;
|
|
|
9740 |
}
|
|
|
9741 |
if (isSetSuccess()) {
|
|
|
9742 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
9743 |
if (lastComparison != 0) {
|
|
|
9744 |
return lastComparison;
|
|
|
9745 |
}
|
|
|
9746 |
}
|
|
|
9747 |
return 0;
|
|
|
9748 |
}
|
|
|
9749 |
|
|
|
9750 |
public _Fields fieldForId(int fieldId) {
|
|
|
9751 |
return _Fields.findByThriftId(fieldId);
|
|
|
9752 |
}
|
|
|
9753 |
|
|
|
9754 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
9755 |
org.apache.thrift.protocol.TField field;
|
|
|
9756 |
iprot.readStructBegin();
|
|
|
9757 |
while (true)
|
|
|
9758 |
{
|
|
|
9759 |
field = iprot.readFieldBegin();
|
|
|
9760 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
9761 |
break;
|
|
|
9762 |
}
|
|
|
9763 |
switch (field.id) {
|
|
|
9764 |
case 0: // SUCCESS
|
|
|
9765 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
9766 |
this.success = iprot.readI64();
|
|
|
9767 |
setSuccessIsSet(true);
|
|
|
9768 |
} else {
|
|
|
9769 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9770 |
}
|
|
|
9771 |
break;
|
|
|
9772 |
default:
|
|
|
9773 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9774 |
}
|
|
|
9775 |
iprot.readFieldEnd();
|
|
|
9776 |
}
|
|
|
9777 |
iprot.readStructEnd();
|
|
|
9778 |
validate();
|
|
|
9779 |
}
|
|
|
9780 |
|
|
|
9781 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
9782 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
9783 |
|
|
|
9784 |
if (this.isSetSuccess()) {
|
|
|
9785 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
9786 |
oprot.writeI64(this.success);
|
|
|
9787 |
oprot.writeFieldEnd();
|
|
|
9788 |
}
|
|
|
9789 |
oprot.writeFieldStop();
|
|
|
9790 |
oprot.writeStructEnd();
|
|
|
9791 |
}
|
|
|
9792 |
|
|
|
9793 |
@Override
|
|
|
9794 |
public String toString() {
|
|
|
9795 |
StringBuilder sb = new StringBuilder("getProviderForPickupType_result(");
|
|
|
9796 |
boolean first = true;
|
|
|
9797 |
|
|
|
9798 |
sb.append("success:");
|
|
|
9799 |
sb.append(this.success);
|
|
|
9800 |
first = false;
|
|
|
9801 |
sb.append(")");
|
|
|
9802 |
return sb.toString();
|
|
|
9803 |
}
|
|
|
9804 |
|
|
|
9805 |
public void validate() throws org.apache.thrift.TException {
|
|
|
9806 |
// check for required fields
|
|
|
9807 |
}
|
|
|
9808 |
|
|
|
9809 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
9810 |
try {
|
|
|
9811 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
9812 |
} catch (org.apache.thrift.TException te) {
|
|
|
9813 |
throw new java.io.IOException(te);
|
|
|
9814 |
}
|
|
|
9815 |
}
|
|
|
9816 |
|
|
|
9817 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
9818 |
try {
|
|
|
9819 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
9820 |
} catch (org.apache.thrift.TException te) {
|
|
|
9821 |
throw new java.io.IOException(te);
|
|
|
9822 |
}
|
|
|
9823 |
}
|
|
|
9824 |
|
|
|
9825 |
}
|
|
|
9826 |
|
| 5553 |
rajveer |
9827 |
public static class getAllPickupStores_args implements org.apache.thrift.TBase<getAllPickupStores_args, getAllPickupStores_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
9828 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPickupStores_args");
|
|
|
9829 |
|
|
|
9830 |
|
|
|
9831 |
|
|
|
9832 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
9833 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
9834 |
;
|
|
|
9835 |
|
|
|
9836 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
9837 |
|
|
|
9838 |
static {
|
|
|
9839 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
9840 |
byName.put(field.getFieldName(), field);
|
|
|
9841 |
}
|
|
|
9842 |
}
|
|
|
9843 |
|
|
|
9844 |
/**
|
|
|
9845 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
9846 |
*/
|
|
|
9847 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
9848 |
switch(fieldId) {
|
|
|
9849 |
default:
|
|
|
9850 |
return null;
|
|
|
9851 |
}
|
|
|
9852 |
}
|
|
|
9853 |
|
|
|
9854 |
/**
|
|
|
9855 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
9856 |
* if it is not found.
|
|
|
9857 |
*/
|
|
|
9858 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
9859 |
_Fields fields = findByThriftId(fieldId);
|
|
|
9860 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
9861 |
return fields;
|
|
|
9862 |
}
|
|
|
9863 |
|
|
|
9864 |
/**
|
|
|
9865 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
9866 |
*/
|
|
|
9867 |
public static _Fields findByName(String name) {
|
|
|
9868 |
return byName.get(name);
|
|
|
9869 |
}
|
|
|
9870 |
|
|
|
9871 |
private final short _thriftId;
|
|
|
9872 |
private final String _fieldName;
|
|
|
9873 |
|
|
|
9874 |
_Fields(short thriftId, String fieldName) {
|
|
|
9875 |
_thriftId = thriftId;
|
|
|
9876 |
_fieldName = fieldName;
|
|
|
9877 |
}
|
|
|
9878 |
|
|
|
9879 |
public short getThriftFieldId() {
|
|
|
9880 |
return _thriftId;
|
|
|
9881 |
}
|
|
|
9882 |
|
|
|
9883 |
public String getFieldName() {
|
|
|
9884 |
return _fieldName;
|
|
|
9885 |
}
|
|
|
9886 |
}
|
|
|
9887 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
9888 |
static {
|
|
|
9889 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
9890 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
9891 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPickupStores_args.class, metaDataMap);
|
|
|
9892 |
}
|
|
|
9893 |
|
|
|
9894 |
public getAllPickupStores_args() {
|
|
|
9895 |
}
|
|
|
9896 |
|
|
|
9897 |
/**
|
|
|
9898 |
* Performs a deep copy on <i>other</i>.
|
|
|
9899 |
*/
|
|
|
9900 |
public getAllPickupStores_args(getAllPickupStores_args other) {
|
|
|
9901 |
}
|
|
|
9902 |
|
|
|
9903 |
public getAllPickupStores_args deepCopy() {
|
|
|
9904 |
return new getAllPickupStores_args(this);
|
|
|
9905 |
}
|
|
|
9906 |
|
|
|
9907 |
@Override
|
|
|
9908 |
public void clear() {
|
|
|
9909 |
}
|
|
|
9910 |
|
|
|
9911 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
9912 |
switch (field) {
|
|
|
9913 |
}
|
|
|
9914 |
}
|
|
|
9915 |
|
|
|
9916 |
public Object getFieldValue(_Fields field) {
|
|
|
9917 |
switch (field) {
|
|
|
9918 |
}
|
|
|
9919 |
throw new IllegalStateException();
|
|
|
9920 |
}
|
|
|
9921 |
|
|
|
9922 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
9923 |
public boolean isSet(_Fields field) {
|
|
|
9924 |
if (field == null) {
|
|
|
9925 |
throw new IllegalArgumentException();
|
|
|
9926 |
}
|
|
|
9927 |
|
|
|
9928 |
switch (field) {
|
|
|
9929 |
}
|
|
|
9930 |
throw new IllegalStateException();
|
|
|
9931 |
}
|
|
|
9932 |
|
|
|
9933 |
@Override
|
|
|
9934 |
public boolean equals(Object that) {
|
|
|
9935 |
if (that == null)
|
|
|
9936 |
return false;
|
|
|
9937 |
if (that instanceof getAllPickupStores_args)
|
|
|
9938 |
return this.equals((getAllPickupStores_args)that);
|
|
|
9939 |
return false;
|
|
|
9940 |
}
|
|
|
9941 |
|
|
|
9942 |
public boolean equals(getAllPickupStores_args that) {
|
|
|
9943 |
if (that == null)
|
|
|
9944 |
return false;
|
|
|
9945 |
|
|
|
9946 |
return true;
|
|
|
9947 |
}
|
|
|
9948 |
|
|
|
9949 |
@Override
|
|
|
9950 |
public int hashCode() {
|
|
|
9951 |
return 0;
|
|
|
9952 |
}
|
|
|
9953 |
|
|
|
9954 |
public int compareTo(getAllPickupStores_args other) {
|
|
|
9955 |
if (!getClass().equals(other.getClass())) {
|
|
|
9956 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
9957 |
}
|
|
|
9958 |
|
|
|
9959 |
int lastComparison = 0;
|
|
|
9960 |
getAllPickupStores_args typedOther = (getAllPickupStores_args)other;
|
|
|
9961 |
|
|
|
9962 |
return 0;
|
|
|
9963 |
}
|
|
|
9964 |
|
|
|
9965 |
public _Fields fieldForId(int fieldId) {
|
|
|
9966 |
return _Fields.findByThriftId(fieldId);
|
|
|
9967 |
}
|
|
|
9968 |
|
|
|
9969 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
9970 |
org.apache.thrift.protocol.TField field;
|
|
|
9971 |
iprot.readStructBegin();
|
|
|
9972 |
while (true)
|
|
|
9973 |
{
|
|
|
9974 |
field = iprot.readFieldBegin();
|
|
|
9975 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
9976 |
break;
|
|
|
9977 |
}
|
|
|
9978 |
switch (field.id) {
|
|
|
9979 |
default:
|
|
|
9980 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
9981 |
}
|
|
|
9982 |
iprot.readFieldEnd();
|
|
|
9983 |
}
|
|
|
9984 |
iprot.readStructEnd();
|
|
|
9985 |
validate();
|
|
|
9986 |
}
|
|
|
9987 |
|
|
|
9988 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
9989 |
validate();
|
|
|
9990 |
|
|
|
9991 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
9992 |
oprot.writeFieldStop();
|
|
|
9993 |
oprot.writeStructEnd();
|
|
|
9994 |
}
|
|
|
9995 |
|
|
|
9996 |
@Override
|
|
|
9997 |
public String toString() {
|
|
|
9998 |
StringBuilder sb = new StringBuilder("getAllPickupStores_args(");
|
|
|
9999 |
boolean first = true;
|
|
|
10000 |
|
|
|
10001 |
sb.append(")");
|
|
|
10002 |
return sb.toString();
|
|
|
10003 |
}
|
|
|
10004 |
|
|
|
10005 |
public void validate() throws org.apache.thrift.TException {
|
|
|
10006 |
// check for required fields
|
|
|
10007 |
}
|
|
|
10008 |
|
|
|
10009 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
10010 |
try {
|
|
|
10011 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
10012 |
} catch (org.apache.thrift.TException te) {
|
|
|
10013 |
throw new java.io.IOException(te);
|
|
|
10014 |
}
|
|
|
10015 |
}
|
|
|
10016 |
|
|
|
10017 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
10018 |
try {
|
|
|
10019 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
10020 |
} catch (org.apache.thrift.TException te) {
|
|
|
10021 |
throw new java.io.IOException(te);
|
|
|
10022 |
}
|
|
|
10023 |
}
|
|
|
10024 |
|
|
|
10025 |
}
|
|
|
10026 |
|
|
|
10027 |
public static class getAllPickupStores_result implements org.apache.thrift.TBase<getAllPickupStores_result, getAllPickupStores_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
10028 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllPickupStores_result");
|
|
|
10029 |
|
|
|
10030 |
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);
|
|
|
10031 |
|
|
|
10032 |
private List<PickupStore> success; // required
|
|
|
10033 |
|
|
|
10034 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
10035 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
10036 |
SUCCESS((short)0, "success");
|
|
|
10037 |
|
|
|
10038 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
10039 |
|
|
|
10040 |
static {
|
|
|
10041 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
10042 |
byName.put(field.getFieldName(), field);
|
|
|
10043 |
}
|
|
|
10044 |
}
|
|
|
10045 |
|
|
|
10046 |
/**
|
|
|
10047 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
10048 |
*/
|
|
|
10049 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
10050 |
switch(fieldId) {
|
|
|
10051 |
case 0: // SUCCESS
|
|
|
10052 |
return SUCCESS;
|
|
|
10053 |
default:
|
|
|
10054 |
return null;
|
|
|
10055 |
}
|
|
|
10056 |
}
|
|
|
10057 |
|
|
|
10058 |
/**
|
|
|
10059 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
10060 |
* if it is not found.
|
|
|
10061 |
*/
|
|
|
10062 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
10063 |
_Fields fields = findByThriftId(fieldId);
|
|
|
10064 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
10065 |
return fields;
|
|
|
10066 |
}
|
|
|
10067 |
|
|
|
10068 |
/**
|
|
|
10069 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
10070 |
*/
|
|
|
10071 |
public static _Fields findByName(String name) {
|
|
|
10072 |
return byName.get(name);
|
|
|
10073 |
}
|
|
|
10074 |
|
|
|
10075 |
private final short _thriftId;
|
|
|
10076 |
private final String _fieldName;
|
|
|
10077 |
|
|
|
10078 |
_Fields(short thriftId, String fieldName) {
|
|
|
10079 |
_thriftId = thriftId;
|
|
|
10080 |
_fieldName = fieldName;
|
|
|
10081 |
}
|
|
|
10082 |
|
|
|
10083 |
public short getThriftFieldId() {
|
|
|
10084 |
return _thriftId;
|
|
|
10085 |
}
|
|
|
10086 |
|
|
|
10087 |
public String getFieldName() {
|
|
|
10088 |
return _fieldName;
|
|
|
10089 |
}
|
|
|
10090 |
}
|
|
|
10091 |
|
|
|
10092 |
// isset id assignments
|
|
|
10093 |
|
|
|
10094 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
10095 |
static {
|
|
|
10096 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
10097 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
10098 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
10099 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class))));
|
|
|
10100 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
10101 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllPickupStores_result.class, metaDataMap);
|
|
|
10102 |
}
|
|
|
10103 |
|
|
|
10104 |
public getAllPickupStores_result() {
|
|
|
10105 |
}
|
|
|
10106 |
|
|
|
10107 |
public getAllPickupStores_result(
|
|
|
10108 |
List<PickupStore> success)
|
|
|
10109 |
{
|
|
|
10110 |
this();
|
|
|
10111 |
this.success = success;
|
|
|
10112 |
}
|
|
|
10113 |
|
|
|
10114 |
/**
|
|
|
10115 |
* Performs a deep copy on <i>other</i>.
|
|
|
10116 |
*/
|
|
|
10117 |
public getAllPickupStores_result(getAllPickupStores_result other) {
|
|
|
10118 |
if (other.isSetSuccess()) {
|
|
|
10119 |
List<PickupStore> __this__success = new ArrayList<PickupStore>();
|
|
|
10120 |
for (PickupStore other_element : other.success) {
|
|
|
10121 |
__this__success.add(new PickupStore(other_element));
|
|
|
10122 |
}
|
|
|
10123 |
this.success = __this__success;
|
|
|
10124 |
}
|
|
|
10125 |
}
|
|
|
10126 |
|
|
|
10127 |
public getAllPickupStores_result deepCopy() {
|
|
|
10128 |
return new getAllPickupStores_result(this);
|
|
|
10129 |
}
|
|
|
10130 |
|
|
|
10131 |
@Override
|
|
|
10132 |
public void clear() {
|
|
|
10133 |
this.success = null;
|
|
|
10134 |
}
|
|
|
10135 |
|
|
|
10136 |
public int getSuccessSize() {
|
|
|
10137 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
10138 |
}
|
|
|
10139 |
|
|
|
10140 |
public java.util.Iterator<PickupStore> getSuccessIterator() {
|
|
|
10141 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
10142 |
}
|
|
|
10143 |
|
|
|
10144 |
public void addToSuccess(PickupStore elem) {
|
|
|
10145 |
if (this.success == null) {
|
|
|
10146 |
this.success = new ArrayList<PickupStore>();
|
|
|
10147 |
}
|
|
|
10148 |
this.success.add(elem);
|
|
|
10149 |
}
|
|
|
10150 |
|
|
|
10151 |
public List<PickupStore> getSuccess() {
|
|
|
10152 |
return this.success;
|
|
|
10153 |
}
|
|
|
10154 |
|
|
|
10155 |
public void setSuccess(List<PickupStore> success) {
|
|
|
10156 |
this.success = success;
|
|
|
10157 |
}
|
|
|
10158 |
|
|
|
10159 |
public void unsetSuccess() {
|
|
|
10160 |
this.success = null;
|
|
|
10161 |
}
|
|
|
10162 |
|
|
|
10163 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
10164 |
public boolean isSetSuccess() {
|
|
|
10165 |
return this.success != null;
|
|
|
10166 |
}
|
|
|
10167 |
|
|
|
10168 |
public void setSuccessIsSet(boolean value) {
|
|
|
10169 |
if (!value) {
|
|
|
10170 |
this.success = null;
|
|
|
10171 |
}
|
|
|
10172 |
}
|
|
|
10173 |
|
|
|
10174 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
10175 |
switch (field) {
|
|
|
10176 |
case SUCCESS:
|
|
|
10177 |
if (value == null) {
|
|
|
10178 |
unsetSuccess();
|
|
|
10179 |
} else {
|
|
|
10180 |
setSuccess((List<PickupStore>)value);
|
|
|
10181 |
}
|
|
|
10182 |
break;
|
|
|
10183 |
|
|
|
10184 |
}
|
|
|
10185 |
}
|
|
|
10186 |
|
|
|
10187 |
public Object getFieldValue(_Fields field) {
|
|
|
10188 |
switch (field) {
|
|
|
10189 |
case SUCCESS:
|
|
|
10190 |
return getSuccess();
|
|
|
10191 |
|
|
|
10192 |
}
|
|
|
10193 |
throw new IllegalStateException();
|
|
|
10194 |
}
|
|
|
10195 |
|
|
|
10196 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
10197 |
public boolean isSet(_Fields field) {
|
|
|
10198 |
if (field == null) {
|
|
|
10199 |
throw new IllegalArgumentException();
|
|
|
10200 |
}
|
|
|
10201 |
|
|
|
10202 |
switch (field) {
|
|
|
10203 |
case SUCCESS:
|
|
|
10204 |
return isSetSuccess();
|
|
|
10205 |
}
|
|
|
10206 |
throw new IllegalStateException();
|
|
|
10207 |
}
|
|
|
10208 |
|
|
|
10209 |
@Override
|
|
|
10210 |
public boolean equals(Object that) {
|
|
|
10211 |
if (that == null)
|
|
|
10212 |
return false;
|
|
|
10213 |
if (that instanceof getAllPickupStores_result)
|
|
|
10214 |
return this.equals((getAllPickupStores_result)that);
|
|
|
10215 |
return false;
|
|
|
10216 |
}
|
|
|
10217 |
|
|
|
10218 |
public boolean equals(getAllPickupStores_result that) {
|
|
|
10219 |
if (that == null)
|
|
|
10220 |
return false;
|
|
|
10221 |
|
|
|
10222 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
10223 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
10224 |
if (this_present_success || that_present_success) {
|
|
|
10225 |
if (!(this_present_success && that_present_success))
|
|
|
10226 |
return false;
|
|
|
10227 |
if (!this.success.equals(that.success))
|
|
|
10228 |
return false;
|
|
|
10229 |
}
|
|
|
10230 |
|
|
|
10231 |
return true;
|
|
|
10232 |
}
|
|
|
10233 |
|
|
|
10234 |
@Override
|
|
|
10235 |
public int hashCode() {
|
|
|
10236 |
return 0;
|
|
|
10237 |
}
|
|
|
10238 |
|
|
|
10239 |
public int compareTo(getAllPickupStores_result other) {
|
|
|
10240 |
if (!getClass().equals(other.getClass())) {
|
|
|
10241 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
10242 |
}
|
|
|
10243 |
|
|
|
10244 |
int lastComparison = 0;
|
|
|
10245 |
getAllPickupStores_result typedOther = (getAllPickupStores_result)other;
|
|
|
10246 |
|
|
|
10247 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
10248 |
if (lastComparison != 0) {
|
|
|
10249 |
return lastComparison;
|
|
|
10250 |
}
|
|
|
10251 |
if (isSetSuccess()) {
|
|
|
10252 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
10253 |
if (lastComparison != 0) {
|
|
|
10254 |
return lastComparison;
|
|
|
10255 |
}
|
|
|
10256 |
}
|
|
|
10257 |
return 0;
|
|
|
10258 |
}
|
|
|
10259 |
|
|
|
10260 |
public _Fields fieldForId(int fieldId) {
|
|
|
10261 |
return _Fields.findByThriftId(fieldId);
|
|
|
10262 |
}
|
|
|
10263 |
|
|
|
10264 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
10265 |
org.apache.thrift.protocol.TField field;
|
|
|
10266 |
iprot.readStructBegin();
|
|
|
10267 |
while (true)
|
|
|
10268 |
{
|
|
|
10269 |
field = iprot.readFieldBegin();
|
|
|
10270 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
10271 |
break;
|
|
|
10272 |
}
|
|
|
10273 |
switch (field.id) {
|
|
|
10274 |
case 0: // SUCCESS
|
|
|
10275 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
10276 |
{
|
|
|
10277 |
org.apache.thrift.protocol.TList _list21 = iprot.readListBegin();
|
|
|
10278 |
this.success = new ArrayList<PickupStore>(_list21.size);
|
|
|
10279 |
for (int _i22 = 0; _i22 < _list21.size; ++_i22)
|
|
|
10280 |
{
|
|
|
10281 |
PickupStore _elem23; // required
|
|
|
10282 |
_elem23 = new PickupStore();
|
|
|
10283 |
_elem23.read(iprot);
|
|
|
10284 |
this.success.add(_elem23);
|
|
|
10285 |
}
|
|
|
10286 |
iprot.readListEnd();
|
|
|
10287 |
}
|
|
|
10288 |
} else {
|
|
|
10289 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10290 |
}
|
|
|
10291 |
break;
|
|
|
10292 |
default:
|
|
|
10293 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10294 |
}
|
|
|
10295 |
iprot.readFieldEnd();
|
|
|
10296 |
}
|
|
|
10297 |
iprot.readStructEnd();
|
|
|
10298 |
validate();
|
|
|
10299 |
}
|
|
|
10300 |
|
|
|
10301 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
10302 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
10303 |
|
|
|
10304 |
if (this.isSetSuccess()) {
|
|
|
10305 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
10306 |
{
|
|
|
10307 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
|
|
10308 |
for (PickupStore _iter24 : this.success)
|
|
|
10309 |
{
|
|
|
10310 |
_iter24.write(oprot);
|
|
|
10311 |
}
|
|
|
10312 |
oprot.writeListEnd();
|
|
|
10313 |
}
|
|
|
10314 |
oprot.writeFieldEnd();
|
|
|
10315 |
}
|
|
|
10316 |
oprot.writeFieldStop();
|
|
|
10317 |
oprot.writeStructEnd();
|
|
|
10318 |
}
|
|
|
10319 |
|
|
|
10320 |
@Override
|
|
|
10321 |
public String toString() {
|
|
|
10322 |
StringBuilder sb = new StringBuilder("getAllPickupStores_result(");
|
|
|
10323 |
boolean first = true;
|
|
|
10324 |
|
|
|
10325 |
sb.append("success:");
|
|
|
10326 |
if (this.success == null) {
|
|
|
10327 |
sb.append("null");
|
|
|
10328 |
} else {
|
|
|
10329 |
sb.append(this.success);
|
|
|
10330 |
}
|
|
|
10331 |
first = false;
|
|
|
10332 |
sb.append(")");
|
|
|
10333 |
return sb.toString();
|
|
|
10334 |
}
|
|
|
10335 |
|
|
|
10336 |
public void validate() throws org.apache.thrift.TException {
|
|
|
10337 |
// check for required fields
|
|
|
10338 |
}
|
|
|
10339 |
|
|
|
10340 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
10341 |
try {
|
|
|
10342 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
10343 |
} catch (org.apache.thrift.TException te) {
|
|
|
10344 |
throw new java.io.IOException(te);
|
|
|
10345 |
}
|
|
|
10346 |
}
|
|
|
10347 |
|
|
|
10348 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
10349 |
try {
|
|
|
10350 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
10351 |
} catch (org.apache.thrift.TException te) {
|
|
|
10352 |
throw new java.io.IOException(te);
|
|
|
10353 |
}
|
|
|
10354 |
}
|
|
|
10355 |
|
|
|
10356 |
}
|
|
|
10357 |
|
|
|
10358 |
public static class getPickupStore_args implements org.apache.thrift.TBase<getPickupStore_args, getPickupStore_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
10359 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStore_args");
|
|
|
10360 |
|
|
|
10361 |
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);
|
|
|
10362 |
|
|
|
10363 |
private long storeId; // required
|
|
|
10364 |
|
|
|
10365 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
10366 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
10367 |
STORE_ID((short)1, "storeId");
|
|
|
10368 |
|
|
|
10369 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
10370 |
|
|
|
10371 |
static {
|
|
|
10372 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
10373 |
byName.put(field.getFieldName(), field);
|
|
|
10374 |
}
|
|
|
10375 |
}
|
|
|
10376 |
|
|
|
10377 |
/**
|
|
|
10378 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
10379 |
*/
|
|
|
10380 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
10381 |
switch(fieldId) {
|
|
|
10382 |
case 1: // STORE_ID
|
|
|
10383 |
return STORE_ID;
|
|
|
10384 |
default:
|
|
|
10385 |
return null;
|
|
|
10386 |
}
|
|
|
10387 |
}
|
|
|
10388 |
|
|
|
10389 |
/**
|
|
|
10390 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
10391 |
* if it is not found.
|
|
|
10392 |
*/
|
|
|
10393 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
10394 |
_Fields fields = findByThriftId(fieldId);
|
|
|
10395 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
10396 |
return fields;
|
|
|
10397 |
}
|
|
|
10398 |
|
|
|
10399 |
/**
|
|
|
10400 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
10401 |
*/
|
|
|
10402 |
public static _Fields findByName(String name) {
|
|
|
10403 |
return byName.get(name);
|
|
|
10404 |
}
|
|
|
10405 |
|
|
|
10406 |
private final short _thriftId;
|
|
|
10407 |
private final String _fieldName;
|
|
|
10408 |
|
|
|
10409 |
_Fields(short thriftId, String fieldName) {
|
|
|
10410 |
_thriftId = thriftId;
|
|
|
10411 |
_fieldName = fieldName;
|
|
|
10412 |
}
|
|
|
10413 |
|
|
|
10414 |
public short getThriftFieldId() {
|
|
|
10415 |
return _thriftId;
|
|
|
10416 |
}
|
|
|
10417 |
|
|
|
10418 |
public String getFieldName() {
|
|
|
10419 |
return _fieldName;
|
|
|
10420 |
}
|
|
|
10421 |
}
|
|
|
10422 |
|
|
|
10423 |
// isset id assignments
|
|
|
10424 |
private static final int __STOREID_ISSET_ID = 0;
|
|
|
10425 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
10426 |
|
|
|
10427 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
10428 |
static {
|
|
|
10429 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
10430 |
tmpMap.put(_Fields.STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("storeId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
10431 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
10432 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
10433 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStore_args.class, metaDataMap);
|
|
|
10434 |
}
|
|
|
10435 |
|
|
|
10436 |
public getPickupStore_args() {
|
|
|
10437 |
}
|
|
|
10438 |
|
|
|
10439 |
public getPickupStore_args(
|
|
|
10440 |
long storeId)
|
|
|
10441 |
{
|
|
|
10442 |
this();
|
|
|
10443 |
this.storeId = storeId;
|
|
|
10444 |
setStoreIdIsSet(true);
|
|
|
10445 |
}
|
|
|
10446 |
|
|
|
10447 |
/**
|
|
|
10448 |
* Performs a deep copy on <i>other</i>.
|
|
|
10449 |
*/
|
|
|
10450 |
public getPickupStore_args(getPickupStore_args other) {
|
|
|
10451 |
__isset_bit_vector.clear();
|
|
|
10452 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
10453 |
this.storeId = other.storeId;
|
|
|
10454 |
}
|
|
|
10455 |
|
|
|
10456 |
public getPickupStore_args deepCopy() {
|
|
|
10457 |
return new getPickupStore_args(this);
|
|
|
10458 |
}
|
|
|
10459 |
|
|
|
10460 |
@Override
|
|
|
10461 |
public void clear() {
|
|
|
10462 |
setStoreIdIsSet(false);
|
|
|
10463 |
this.storeId = 0;
|
|
|
10464 |
}
|
|
|
10465 |
|
|
|
10466 |
public long getStoreId() {
|
|
|
10467 |
return this.storeId;
|
|
|
10468 |
}
|
|
|
10469 |
|
|
|
10470 |
public void setStoreId(long storeId) {
|
|
|
10471 |
this.storeId = storeId;
|
|
|
10472 |
setStoreIdIsSet(true);
|
|
|
10473 |
}
|
|
|
10474 |
|
|
|
10475 |
public void unsetStoreId() {
|
|
|
10476 |
__isset_bit_vector.clear(__STOREID_ISSET_ID);
|
|
|
10477 |
}
|
|
|
10478 |
|
|
|
10479 |
/** Returns true if field storeId is set (has been assigned a value) and false otherwise */
|
|
|
10480 |
public boolean isSetStoreId() {
|
|
|
10481 |
return __isset_bit_vector.get(__STOREID_ISSET_ID);
|
|
|
10482 |
}
|
|
|
10483 |
|
|
|
10484 |
public void setStoreIdIsSet(boolean value) {
|
|
|
10485 |
__isset_bit_vector.set(__STOREID_ISSET_ID, value);
|
|
|
10486 |
}
|
|
|
10487 |
|
|
|
10488 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
10489 |
switch (field) {
|
|
|
10490 |
case STORE_ID:
|
|
|
10491 |
if (value == null) {
|
|
|
10492 |
unsetStoreId();
|
|
|
10493 |
} else {
|
|
|
10494 |
setStoreId((Long)value);
|
|
|
10495 |
}
|
|
|
10496 |
break;
|
|
|
10497 |
|
|
|
10498 |
}
|
|
|
10499 |
}
|
|
|
10500 |
|
|
|
10501 |
public Object getFieldValue(_Fields field) {
|
|
|
10502 |
switch (field) {
|
|
|
10503 |
case STORE_ID:
|
|
|
10504 |
return Long.valueOf(getStoreId());
|
|
|
10505 |
|
|
|
10506 |
}
|
|
|
10507 |
throw new IllegalStateException();
|
|
|
10508 |
}
|
|
|
10509 |
|
|
|
10510 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
10511 |
public boolean isSet(_Fields field) {
|
|
|
10512 |
if (field == null) {
|
|
|
10513 |
throw new IllegalArgumentException();
|
|
|
10514 |
}
|
|
|
10515 |
|
|
|
10516 |
switch (field) {
|
|
|
10517 |
case STORE_ID:
|
|
|
10518 |
return isSetStoreId();
|
|
|
10519 |
}
|
|
|
10520 |
throw new IllegalStateException();
|
|
|
10521 |
}
|
|
|
10522 |
|
|
|
10523 |
@Override
|
|
|
10524 |
public boolean equals(Object that) {
|
|
|
10525 |
if (that == null)
|
|
|
10526 |
return false;
|
|
|
10527 |
if (that instanceof getPickupStore_args)
|
|
|
10528 |
return this.equals((getPickupStore_args)that);
|
|
|
10529 |
return false;
|
|
|
10530 |
}
|
|
|
10531 |
|
|
|
10532 |
public boolean equals(getPickupStore_args that) {
|
|
|
10533 |
if (that == null)
|
|
|
10534 |
return false;
|
|
|
10535 |
|
|
|
10536 |
boolean this_present_storeId = true;
|
|
|
10537 |
boolean that_present_storeId = true;
|
|
|
10538 |
if (this_present_storeId || that_present_storeId) {
|
|
|
10539 |
if (!(this_present_storeId && that_present_storeId))
|
|
|
10540 |
return false;
|
|
|
10541 |
if (this.storeId != that.storeId)
|
|
|
10542 |
return false;
|
|
|
10543 |
}
|
|
|
10544 |
|
|
|
10545 |
return true;
|
|
|
10546 |
}
|
|
|
10547 |
|
|
|
10548 |
@Override
|
|
|
10549 |
public int hashCode() {
|
|
|
10550 |
return 0;
|
|
|
10551 |
}
|
|
|
10552 |
|
|
|
10553 |
public int compareTo(getPickupStore_args other) {
|
|
|
10554 |
if (!getClass().equals(other.getClass())) {
|
|
|
10555 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
10556 |
}
|
|
|
10557 |
|
|
|
10558 |
int lastComparison = 0;
|
|
|
10559 |
getPickupStore_args typedOther = (getPickupStore_args)other;
|
|
|
10560 |
|
|
|
10561 |
lastComparison = Boolean.valueOf(isSetStoreId()).compareTo(typedOther.isSetStoreId());
|
|
|
10562 |
if (lastComparison != 0) {
|
|
|
10563 |
return lastComparison;
|
|
|
10564 |
}
|
|
|
10565 |
if (isSetStoreId()) {
|
|
|
10566 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storeId, typedOther.storeId);
|
|
|
10567 |
if (lastComparison != 0) {
|
|
|
10568 |
return lastComparison;
|
|
|
10569 |
}
|
|
|
10570 |
}
|
|
|
10571 |
return 0;
|
|
|
10572 |
}
|
|
|
10573 |
|
|
|
10574 |
public _Fields fieldForId(int fieldId) {
|
|
|
10575 |
return _Fields.findByThriftId(fieldId);
|
|
|
10576 |
}
|
|
|
10577 |
|
|
|
10578 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
10579 |
org.apache.thrift.protocol.TField field;
|
|
|
10580 |
iprot.readStructBegin();
|
|
|
10581 |
while (true)
|
|
|
10582 |
{
|
|
|
10583 |
field = iprot.readFieldBegin();
|
|
|
10584 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
10585 |
break;
|
|
|
10586 |
}
|
|
|
10587 |
switch (field.id) {
|
|
|
10588 |
case 1: // STORE_ID
|
|
|
10589 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
10590 |
this.storeId = iprot.readI64();
|
|
|
10591 |
setStoreIdIsSet(true);
|
|
|
10592 |
} else {
|
|
|
10593 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10594 |
}
|
|
|
10595 |
break;
|
|
|
10596 |
default:
|
|
|
10597 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10598 |
}
|
|
|
10599 |
iprot.readFieldEnd();
|
|
|
10600 |
}
|
|
|
10601 |
iprot.readStructEnd();
|
|
|
10602 |
validate();
|
|
|
10603 |
}
|
|
|
10604 |
|
|
|
10605 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
10606 |
validate();
|
|
|
10607 |
|
|
|
10608 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
10609 |
oprot.writeFieldBegin(STORE_ID_FIELD_DESC);
|
|
|
10610 |
oprot.writeI64(this.storeId);
|
|
|
10611 |
oprot.writeFieldEnd();
|
|
|
10612 |
oprot.writeFieldStop();
|
|
|
10613 |
oprot.writeStructEnd();
|
|
|
10614 |
}
|
|
|
10615 |
|
|
|
10616 |
@Override
|
|
|
10617 |
public String toString() {
|
|
|
10618 |
StringBuilder sb = new StringBuilder("getPickupStore_args(");
|
|
|
10619 |
boolean first = true;
|
|
|
10620 |
|
|
|
10621 |
sb.append("storeId:");
|
|
|
10622 |
sb.append(this.storeId);
|
|
|
10623 |
first = false;
|
|
|
10624 |
sb.append(")");
|
|
|
10625 |
return sb.toString();
|
|
|
10626 |
}
|
|
|
10627 |
|
|
|
10628 |
public void validate() throws org.apache.thrift.TException {
|
|
|
10629 |
// check for required fields
|
|
|
10630 |
}
|
|
|
10631 |
|
|
|
10632 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
10633 |
try {
|
|
|
10634 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
10635 |
} catch (org.apache.thrift.TException te) {
|
|
|
10636 |
throw new java.io.IOException(te);
|
|
|
10637 |
}
|
|
|
10638 |
}
|
|
|
10639 |
|
|
|
10640 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
10641 |
try {
|
|
|
10642 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
10643 |
__isset_bit_vector = new BitSet(1);
|
|
|
10644 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
10645 |
} catch (org.apache.thrift.TException te) {
|
|
|
10646 |
throw new java.io.IOException(te);
|
|
|
10647 |
}
|
|
|
10648 |
}
|
|
|
10649 |
|
|
|
10650 |
}
|
|
|
10651 |
|
|
|
10652 |
public static class getPickupStore_result implements org.apache.thrift.TBase<getPickupStore_result, getPickupStore_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
10653 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStore_result");
|
|
|
10654 |
|
|
|
10655 |
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);
|
|
|
10656 |
|
|
|
10657 |
private PickupStore success; // required
|
|
|
10658 |
|
|
|
10659 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
10660 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
10661 |
SUCCESS((short)0, "success");
|
|
|
10662 |
|
|
|
10663 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
10664 |
|
|
|
10665 |
static {
|
|
|
10666 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
10667 |
byName.put(field.getFieldName(), field);
|
|
|
10668 |
}
|
|
|
10669 |
}
|
|
|
10670 |
|
|
|
10671 |
/**
|
|
|
10672 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
10673 |
*/
|
|
|
10674 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
10675 |
switch(fieldId) {
|
|
|
10676 |
case 0: // SUCCESS
|
|
|
10677 |
return SUCCESS;
|
|
|
10678 |
default:
|
|
|
10679 |
return null;
|
|
|
10680 |
}
|
|
|
10681 |
}
|
|
|
10682 |
|
|
|
10683 |
/**
|
|
|
10684 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
10685 |
* if it is not found.
|
|
|
10686 |
*/
|
|
|
10687 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
10688 |
_Fields fields = findByThriftId(fieldId);
|
|
|
10689 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
10690 |
return fields;
|
|
|
10691 |
}
|
|
|
10692 |
|
|
|
10693 |
/**
|
|
|
10694 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
10695 |
*/
|
|
|
10696 |
public static _Fields findByName(String name) {
|
|
|
10697 |
return byName.get(name);
|
|
|
10698 |
}
|
|
|
10699 |
|
|
|
10700 |
private final short _thriftId;
|
|
|
10701 |
private final String _fieldName;
|
|
|
10702 |
|
|
|
10703 |
_Fields(short thriftId, String fieldName) {
|
|
|
10704 |
_thriftId = thriftId;
|
|
|
10705 |
_fieldName = fieldName;
|
|
|
10706 |
}
|
|
|
10707 |
|
|
|
10708 |
public short getThriftFieldId() {
|
|
|
10709 |
return _thriftId;
|
|
|
10710 |
}
|
|
|
10711 |
|
|
|
10712 |
public String getFieldName() {
|
|
|
10713 |
return _fieldName;
|
|
|
10714 |
}
|
|
|
10715 |
}
|
|
|
10716 |
|
|
|
10717 |
// isset id assignments
|
|
|
10718 |
|
|
|
10719 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
10720 |
static {
|
|
|
10721 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
10722 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
10723 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class)));
|
|
|
10724 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
10725 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStore_result.class, metaDataMap);
|
|
|
10726 |
}
|
|
|
10727 |
|
|
|
10728 |
public getPickupStore_result() {
|
|
|
10729 |
}
|
|
|
10730 |
|
|
|
10731 |
public getPickupStore_result(
|
|
|
10732 |
PickupStore success)
|
|
|
10733 |
{
|
|
|
10734 |
this();
|
|
|
10735 |
this.success = success;
|
|
|
10736 |
}
|
|
|
10737 |
|
|
|
10738 |
/**
|
|
|
10739 |
* Performs a deep copy on <i>other</i>.
|
|
|
10740 |
*/
|
|
|
10741 |
public getPickupStore_result(getPickupStore_result other) {
|
|
|
10742 |
if (other.isSetSuccess()) {
|
|
|
10743 |
this.success = new PickupStore(other.success);
|
|
|
10744 |
}
|
|
|
10745 |
}
|
|
|
10746 |
|
|
|
10747 |
public getPickupStore_result deepCopy() {
|
|
|
10748 |
return new getPickupStore_result(this);
|
|
|
10749 |
}
|
|
|
10750 |
|
|
|
10751 |
@Override
|
|
|
10752 |
public void clear() {
|
|
|
10753 |
this.success = null;
|
|
|
10754 |
}
|
|
|
10755 |
|
|
|
10756 |
public PickupStore getSuccess() {
|
|
|
10757 |
return this.success;
|
|
|
10758 |
}
|
|
|
10759 |
|
|
|
10760 |
public void setSuccess(PickupStore success) {
|
|
|
10761 |
this.success = success;
|
|
|
10762 |
}
|
|
|
10763 |
|
|
|
10764 |
public void unsetSuccess() {
|
|
|
10765 |
this.success = null;
|
|
|
10766 |
}
|
|
|
10767 |
|
|
|
10768 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
10769 |
public boolean isSetSuccess() {
|
|
|
10770 |
return this.success != null;
|
|
|
10771 |
}
|
|
|
10772 |
|
|
|
10773 |
public void setSuccessIsSet(boolean value) {
|
|
|
10774 |
if (!value) {
|
|
|
10775 |
this.success = null;
|
|
|
10776 |
}
|
|
|
10777 |
}
|
|
|
10778 |
|
|
|
10779 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
10780 |
switch (field) {
|
|
|
10781 |
case SUCCESS:
|
|
|
10782 |
if (value == null) {
|
|
|
10783 |
unsetSuccess();
|
|
|
10784 |
} else {
|
|
|
10785 |
setSuccess((PickupStore)value);
|
|
|
10786 |
}
|
|
|
10787 |
break;
|
|
|
10788 |
|
|
|
10789 |
}
|
|
|
10790 |
}
|
|
|
10791 |
|
|
|
10792 |
public Object getFieldValue(_Fields field) {
|
|
|
10793 |
switch (field) {
|
|
|
10794 |
case SUCCESS:
|
|
|
10795 |
return getSuccess();
|
|
|
10796 |
|
|
|
10797 |
}
|
|
|
10798 |
throw new IllegalStateException();
|
|
|
10799 |
}
|
|
|
10800 |
|
|
|
10801 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
10802 |
public boolean isSet(_Fields field) {
|
|
|
10803 |
if (field == null) {
|
|
|
10804 |
throw new IllegalArgumentException();
|
|
|
10805 |
}
|
|
|
10806 |
|
|
|
10807 |
switch (field) {
|
|
|
10808 |
case SUCCESS:
|
|
|
10809 |
return isSetSuccess();
|
|
|
10810 |
}
|
|
|
10811 |
throw new IllegalStateException();
|
|
|
10812 |
}
|
|
|
10813 |
|
|
|
10814 |
@Override
|
|
|
10815 |
public boolean equals(Object that) {
|
|
|
10816 |
if (that == null)
|
|
|
10817 |
return false;
|
|
|
10818 |
if (that instanceof getPickupStore_result)
|
|
|
10819 |
return this.equals((getPickupStore_result)that);
|
|
|
10820 |
return false;
|
|
|
10821 |
}
|
|
|
10822 |
|
|
|
10823 |
public boolean equals(getPickupStore_result that) {
|
|
|
10824 |
if (that == null)
|
|
|
10825 |
return false;
|
|
|
10826 |
|
|
|
10827 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
10828 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
10829 |
if (this_present_success || that_present_success) {
|
|
|
10830 |
if (!(this_present_success && that_present_success))
|
|
|
10831 |
return false;
|
|
|
10832 |
if (!this.success.equals(that.success))
|
|
|
10833 |
return false;
|
|
|
10834 |
}
|
|
|
10835 |
|
|
|
10836 |
return true;
|
|
|
10837 |
}
|
|
|
10838 |
|
|
|
10839 |
@Override
|
|
|
10840 |
public int hashCode() {
|
|
|
10841 |
return 0;
|
|
|
10842 |
}
|
|
|
10843 |
|
|
|
10844 |
public int compareTo(getPickupStore_result other) {
|
|
|
10845 |
if (!getClass().equals(other.getClass())) {
|
|
|
10846 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
10847 |
}
|
|
|
10848 |
|
|
|
10849 |
int lastComparison = 0;
|
|
|
10850 |
getPickupStore_result typedOther = (getPickupStore_result)other;
|
|
|
10851 |
|
|
|
10852 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
10853 |
if (lastComparison != 0) {
|
|
|
10854 |
return lastComparison;
|
|
|
10855 |
}
|
|
|
10856 |
if (isSetSuccess()) {
|
|
|
10857 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
10858 |
if (lastComparison != 0) {
|
|
|
10859 |
return lastComparison;
|
|
|
10860 |
}
|
|
|
10861 |
}
|
|
|
10862 |
return 0;
|
|
|
10863 |
}
|
|
|
10864 |
|
|
|
10865 |
public _Fields fieldForId(int fieldId) {
|
|
|
10866 |
return _Fields.findByThriftId(fieldId);
|
|
|
10867 |
}
|
|
|
10868 |
|
|
|
10869 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
10870 |
org.apache.thrift.protocol.TField field;
|
|
|
10871 |
iprot.readStructBegin();
|
|
|
10872 |
while (true)
|
|
|
10873 |
{
|
|
|
10874 |
field = iprot.readFieldBegin();
|
|
|
10875 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
10876 |
break;
|
|
|
10877 |
}
|
|
|
10878 |
switch (field.id) {
|
|
|
10879 |
case 0: // SUCCESS
|
|
|
10880 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
10881 |
this.success = new PickupStore();
|
|
|
10882 |
this.success.read(iprot);
|
|
|
10883 |
} else {
|
|
|
10884 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10885 |
}
|
|
|
10886 |
break;
|
|
|
10887 |
default:
|
|
|
10888 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
10889 |
}
|
|
|
10890 |
iprot.readFieldEnd();
|
|
|
10891 |
}
|
|
|
10892 |
iprot.readStructEnd();
|
|
|
10893 |
validate();
|
|
|
10894 |
}
|
|
|
10895 |
|
|
|
10896 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
10897 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
10898 |
|
|
|
10899 |
if (this.isSetSuccess()) {
|
|
|
10900 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
10901 |
this.success.write(oprot);
|
|
|
10902 |
oprot.writeFieldEnd();
|
|
|
10903 |
}
|
|
|
10904 |
oprot.writeFieldStop();
|
|
|
10905 |
oprot.writeStructEnd();
|
|
|
10906 |
}
|
|
|
10907 |
|
|
|
10908 |
@Override
|
|
|
10909 |
public String toString() {
|
|
|
10910 |
StringBuilder sb = new StringBuilder("getPickupStore_result(");
|
|
|
10911 |
boolean first = true;
|
|
|
10912 |
|
|
|
10913 |
sb.append("success:");
|
|
|
10914 |
if (this.success == null) {
|
|
|
10915 |
sb.append("null");
|
|
|
10916 |
} else {
|
|
|
10917 |
sb.append(this.success);
|
|
|
10918 |
}
|
|
|
10919 |
first = false;
|
|
|
10920 |
sb.append(")");
|
|
|
10921 |
return sb.toString();
|
|
|
10922 |
}
|
|
|
10923 |
|
|
|
10924 |
public void validate() throws org.apache.thrift.TException {
|
|
|
10925 |
// check for required fields
|
|
|
10926 |
}
|
|
|
10927 |
|
|
|
10928 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
10929 |
try {
|
|
|
10930 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
10931 |
} catch (org.apache.thrift.TException te) {
|
|
|
10932 |
throw new java.io.IOException(te);
|
|
|
10933 |
}
|
|
|
10934 |
}
|
|
|
10935 |
|
|
|
10936 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
10937 |
try {
|
|
|
10938 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
10939 |
} catch (org.apache.thrift.TException te) {
|
|
|
10940 |
throw new java.io.IOException(te);
|
|
|
10941 |
}
|
|
|
10942 |
}
|
|
|
10943 |
|
|
|
10944 |
}
|
|
|
10945 |
|
| 5719 |
rajveer |
10946 |
public static class getPickupStoreByHotspotId_args implements org.apache.thrift.TBase<getPickupStoreByHotspotId_args, getPickupStoreByHotspotId_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
10947 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStoreByHotspotId_args");
|
|
|
10948 |
|
|
|
10949 |
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);
|
|
|
10950 |
|
|
|
10951 |
private String hotspotId; // required
|
|
|
10952 |
|
|
|
10953 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
10954 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
10955 |
HOTSPOT_ID((short)1, "hotspotId");
|
|
|
10956 |
|
|
|
10957 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
10958 |
|
|
|
10959 |
static {
|
|
|
10960 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
10961 |
byName.put(field.getFieldName(), field);
|
|
|
10962 |
}
|
|
|
10963 |
}
|
|
|
10964 |
|
|
|
10965 |
/**
|
|
|
10966 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
10967 |
*/
|
|
|
10968 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
10969 |
switch(fieldId) {
|
|
|
10970 |
case 1: // HOTSPOT_ID
|
|
|
10971 |
return HOTSPOT_ID;
|
|
|
10972 |
default:
|
|
|
10973 |
return null;
|
|
|
10974 |
}
|
|
|
10975 |
}
|
|
|
10976 |
|
|
|
10977 |
/**
|
|
|
10978 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
10979 |
* if it is not found.
|
|
|
10980 |
*/
|
|
|
10981 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
10982 |
_Fields fields = findByThriftId(fieldId);
|
|
|
10983 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
10984 |
return fields;
|
|
|
10985 |
}
|
|
|
10986 |
|
|
|
10987 |
/**
|
|
|
10988 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
10989 |
*/
|
|
|
10990 |
public static _Fields findByName(String name) {
|
|
|
10991 |
return byName.get(name);
|
|
|
10992 |
}
|
|
|
10993 |
|
|
|
10994 |
private final short _thriftId;
|
|
|
10995 |
private final String _fieldName;
|
|
|
10996 |
|
|
|
10997 |
_Fields(short thriftId, String fieldName) {
|
|
|
10998 |
_thriftId = thriftId;
|
|
|
10999 |
_fieldName = fieldName;
|
|
|
11000 |
}
|
|
|
11001 |
|
|
|
11002 |
public short getThriftFieldId() {
|
|
|
11003 |
return _thriftId;
|
|
|
11004 |
}
|
|
|
11005 |
|
|
|
11006 |
public String getFieldName() {
|
|
|
11007 |
return _fieldName;
|
|
|
11008 |
}
|
|
|
11009 |
}
|
|
|
11010 |
|
|
|
11011 |
// isset id assignments
|
|
|
11012 |
|
|
|
11013 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
11014 |
static {
|
|
|
11015 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
11016 |
tmpMap.put(_Fields.HOTSPOT_ID, new org.apache.thrift.meta_data.FieldMetaData("hotspotId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
11017 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
11018 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
11019 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStoreByHotspotId_args.class, metaDataMap);
|
|
|
11020 |
}
|
|
|
11021 |
|
|
|
11022 |
public getPickupStoreByHotspotId_args() {
|
|
|
11023 |
}
|
|
|
11024 |
|
|
|
11025 |
public getPickupStoreByHotspotId_args(
|
|
|
11026 |
String hotspotId)
|
|
|
11027 |
{
|
|
|
11028 |
this();
|
|
|
11029 |
this.hotspotId = hotspotId;
|
|
|
11030 |
}
|
|
|
11031 |
|
|
|
11032 |
/**
|
|
|
11033 |
* Performs a deep copy on <i>other</i>.
|
|
|
11034 |
*/
|
|
|
11035 |
public getPickupStoreByHotspotId_args(getPickupStoreByHotspotId_args other) {
|
|
|
11036 |
if (other.isSetHotspotId()) {
|
|
|
11037 |
this.hotspotId = other.hotspotId;
|
|
|
11038 |
}
|
|
|
11039 |
}
|
|
|
11040 |
|
|
|
11041 |
public getPickupStoreByHotspotId_args deepCopy() {
|
|
|
11042 |
return new getPickupStoreByHotspotId_args(this);
|
|
|
11043 |
}
|
|
|
11044 |
|
|
|
11045 |
@Override
|
|
|
11046 |
public void clear() {
|
|
|
11047 |
this.hotspotId = null;
|
|
|
11048 |
}
|
|
|
11049 |
|
|
|
11050 |
public String getHotspotId() {
|
|
|
11051 |
return this.hotspotId;
|
|
|
11052 |
}
|
|
|
11053 |
|
|
|
11054 |
public void setHotspotId(String hotspotId) {
|
|
|
11055 |
this.hotspotId = hotspotId;
|
|
|
11056 |
}
|
|
|
11057 |
|
|
|
11058 |
public void unsetHotspotId() {
|
|
|
11059 |
this.hotspotId = null;
|
|
|
11060 |
}
|
|
|
11061 |
|
|
|
11062 |
/** Returns true if field hotspotId is set (has been assigned a value) and false otherwise */
|
|
|
11063 |
public boolean isSetHotspotId() {
|
|
|
11064 |
return this.hotspotId != null;
|
|
|
11065 |
}
|
|
|
11066 |
|
|
|
11067 |
public void setHotspotIdIsSet(boolean value) {
|
|
|
11068 |
if (!value) {
|
|
|
11069 |
this.hotspotId = null;
|
|
|
11070 |
}
|
|
|
11071 |
}
|
|
|
11072 |
|
|
|
11073 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
11074 |
switch (field) {
|
|
|
11075 |
case HOTSPOT_ID:
|
|
|
11076 |
if (value == null) {
|
|
|
11077 |
unsetHotspotId();
|
|
|
11078 |
} else {
|
|
|
11079 |
setHotspotId((String)value);
|
|
|
11080 |
}
|
|
|
11081 |
break;
|
|
|
11082 |
|
|
|
11083 |
}
|
|
|
11084 |
}
|
|
|
11085 |
|
|
|
11086 |
public Object getFieldValue(_Fields field) {
|
|
|
11087 |
switch (field) {
|
|
|
11088 |
case HOTSPOT_ID:
|
|
|
11089 |
return getHotspotId();
|
|
|
11090 |
|
|
|
11091 |
}
|
|
|
11092 |
throw new IllegalStateException();
|
|
|
11093 |
}
|
|
|
11094 |
|
|
|
11095 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
11096 |
public boolean isSet(_Fields field) {
|
|
|
11097 |
if (field == null) {
|
|
|
11098 |
throw new IllegalArgumentException();
|
|
|
11099 |
}
|
|
|
11100 |
|
|
|
11101 |
switch (field) {
|
|
|
11102 |
case HOTSPOT_ID:
|
|
|
11103 |
return isSetHotspotId();
|
|
|
11104 |
}
|
|
|
11105 |
throw new IllegalStateException();
|
|
|
11106 |
}
|
|
|
11107 |
|
|
|
11108 |
@Override
|
|
|
11109 |
public boolean equals(Object that) {
|
|
|
11110 |
if (that == null)
|
|
|
11111 |
return false;
|
|
|
11112 |
if (that instanceof getPickupStoreByHotspotId_args)
|
|
|
11113 |
return this.equals((getPickupStoreByHotspotId_args)that);
|
|
|
11114 |
return false;
|
|
|
11115 |
}
|
|
|
11116 |
|
|
|
11117 |
public boolean equals(getPickupStoreByHotspotId_args that) {
|
|
|
11118 |
if (that == null)
|
|
|
11119 |
return false;
|
|
|
11120 |
|
|
|
11121 |
boolean this_present_hotspotId = true && this.isSetHotspotId();
|
|
|
11122 |
boolean that_present_hotspotId = true && that.isSetHotspotId();
|
|
|
11123 |
if (this_present_hotspotId || that_present_hotspotId) {
|
|
|
11124 |
if (!(this_present_hotspotId && that_present_hotspotId))
|
|
|
11125 |
return false;
|
|
|
11126 |
if (!this.hotspotId.equals(that.hotspotId))
|
|
|
11127 |
return false;
|
|
|
11128 |
}
|
|
|
11129 |
|
|
|
11130 |
return true;
|
|
|
11131 |
}
|
|
|
11132 |
|
|
|
11133 |
@Override
|
|
|
11134 |
public int hashCode() {
|
|
|
11135 |
return 0;
|
|
|
11136 |
}
|
|
|
11137 |
|
|
|
11138 |
public int compareTo(getPickupStoreByHotspotId_args other) {
|
|
|
11139 |
if (!getClass().equals(other.getClass())) {
|
|
|
11140 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
11141 |
}
|
|
|
11142 |
|
|
|
11143 |
int lastComparison = 0;
|
|
|
11144 |
getPickupStoreByHotspotId_args typedOther = (getPickupStoreByHotspotId_args)other;
|
|
|
11145 |
|
|
|
11146 |
lastComparison = Boolean.valueOf(isSetHotspotId()).compareTo(typedOther.isSetHotspotId());
|
|
|
11147 |
if (lastComparison != 0) {
|
|
|
11148 |
return lastComparison;
|
|
|
11149 |
}
|
|
|
11150 |
if (isSetHotspotId()) {
|
|
|
11151 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hotspotId, typedOther.hotspotId);
|
|
|
11152 |
if (lastComparison != 0) {
|
|
|
11153 |
return lastComparison;
|
|
|
11154 |
}
|
|
|
11155 |
}
|
|
|
11156 |
return 0;
|
|
|
11157 |
}
|
|
|
11158 |
|
|
|
11159 |
public _Fields fieldForId(int fieldId) {
|
|
|
11160 |
return _Fields.findByThriftId(fieldId);
|
|
|
11161 |
}
|
|
|
11162 |
|
|
|
11163 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
11164 |
org.apache.thrift.protocol.TField field;
|
|
|
11165 |
iprot.readStructBegin();
|
|
|
11166 |
while (true)
|
|
|
11167 |
{
|
|
|
11168 |
field = iprot.readFieldBegin();
|
|
|
11169 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
11170 |
break;
|
|
|
11171 |
}
|
|
|
11172 |
switch (field.id) {
|
|
|
11173 |
case 1: // HOTSPOT_ID
|
|
|
11174 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
11175 |
this.hotspotId = iprot.readString();
|
|
|
11176 |
} else {
|
|
|
11177 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11178 |
}
|
|
|
11179 |
break;
|
|
|
11180 |
default:
|
|
|
11181 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11182 |
}
|
|
|
11183 |
iprot.readFieldEnd();
|
|
|
11184 |
}
|
|
|
11185 |
iprot.readStructEnd();
|
|
|
11186 |
validate();
|
|
|
11187 |
}
|
|
|
11188 |
|
|
|
11189 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
11190 |
validate();
|
|
|
11191 |
|
|
|
11192 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
11193 |
if (this.hotspotId != null) {
|
|
|
11194 |
oprot.writeFieldBegin(HOTSPOT_ID_FIELD_DESC);
|
|
|
11195 |
oprot.writeString(this.hotspotId);
|
|
|
11196 |
oprot.writeFieldEnd();
|
|
|
11197 |
}
|
|
|
11198 |
oprot.writeFieldStop();
|
|
|
11199 |
oprot.writeStructEnd();
|
|
|
11200 |
}
|
|
|
11201 |
|
|
|
11202 |
@Override
|
|
|
11203 |
public String toString() {
|
|
|
11204 |
StringBuilder sb = new StringBuilder("getPickupStoreByHotspotId_args(");
|
|
|
11205 |
boolean first = true;
|
|
|
11206 |
|
|
|
11207 |
sb.append("hotspotId:");
|
|
|
11208 |
if (this.hotspotId == null) {
|
|
|
11209 |
sb.append("null");
|
|
|
11210 |
} else {
|
|
|
11211 |
sb.append(this.hotspotId);
|
|
|
11212 |
}
|
|
|
11213 |
first = false;
|
|
|
11214 |
sb.append(")");
|
|
|
11215 |
return sb.toString();
|
|
|
11216 |
}
|
|
|
11217 |
|
|
|
11218 |
public void validate() throws org.apache.thrift.TException {
|
|
|
11219 |
// check for required fields
|
|
|
11220 |
}
|
|
|
11221 |
|
|
|
11222 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
11223 |
try {
|
|
|
11224 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
11225 |
} catch (org.apache.thrift.TException te) {
|
|
|
11226 |
throw new java.io.IOException(te);
|
|
|
11227 |
}
|
|
|
11228 |
}
|
|
|
11229 |
|
|
|
11230 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
11231 |
try {
|
|
|
11232 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
11233 |
} catch (org.apache.thrift.TException te) {
|
|
|
11234 |
throw new java.io.IOException(te);
|
|
|
11235 |
}
|
|
|
11236 |
}
|
|
|
11237 |
|
|
|
11238 |
}
|
|
|
11239 |
|
|
|
11240 |
public static class getPickupStoreByHotspotId_result implements org.apache.thrift.TBase<getPickupStoreByHotspotId_result, getPickupStoreByHotspotId_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
11241 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPickupStoreByHotspotId_result");
|
|
|
11242 |
|
|
|
11243 |
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);
|
|
|
11244 |
|
|
|
11245 |
private PickupStore success; // required
|
|
|
11246 |
|
|
|
11247 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
11248 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
11249 |
SUCCESS((short)0, "success");
|
|
|
11250 |
|
|
|
11251 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
11252 |
|
|
|
11253 |
static {
|
|
|
11254 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
11255 |
byName.put(field.getFieldName(), field);
|
|
|
11256 |
}
|
|
|
11257 |
}
|
|
|
11258 |
|
|
|
11259 |
/**
|
|
|
11260 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
11261 |
*/
|
|
|
11262 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
11263 |
switch(fieldId) {
|
|
|
11264 |
case 0: // SUCCESS
|
|
|
11265 |
return SUCCESS;
|
|
|
11266 |
default:
|
|
|
11267 |
return null;
|
|
|
11268 |
}
|
|
|
11269 |
}
|
|
|
11270 |
|
|
|
11271 |
/**
|
|
|
11272 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
11273 |
* if it is not found.
|
|
|
11274 |
*/
|
|
|
11275 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
11276 |
_Fields fields = findByThriftId(fieldId);
|
|
|
11277 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
11278 |
return fields;
|
|
|
11279 |
}
|
|
|
11280 |
|
|
|
11281 |
/**
|
|
|
11282 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
11283 |
*/
|
|
|
11284 |
public static _Fields findByName(String name) {
|
|
|
11285 |
return byName.get(name);
|
|
|
11286 |
}
|
|
|
11287 |
|
|
|
11288 |
private final short _thriftId;
|
|
|
11289 |
private final String _fieldName;
|
|
|
11290 |
|
|
|
11291 |
_Fields(short thriftId, String fieldName) {
|
|
|
11292 |
_thriftId = thriftId;
|
|
|
11293 |
_fieldName = fieldName;
|
|
|
11294 |
}
|
|
|
11295 |
|
|
|
11296 |
public short getThriftFieldId() {
|
|
|
11297 |
return _thriftId;
|
|
|
11298 |
}
|
|
|
11299 |
|
|
|
11300 |
public String getFieldName() {
|
|
|
11301 |
return _fieldName;
|
|
|
11302 |
}
|
|
|
11303 |
}
|
|
|
11304 |
|
|
|
11305 |
// isset id assignments
|
|
|
11306 |
|
|
|
11307 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
11308 |
static {
|
|
|
11309 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
11310 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
11311 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PickupStore.class)));
|
|
|
11312 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
11313 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPickupStoreByHotspotId_result.class, metaDataMap);
|
|
|
11314 |
}
|
|
|
11315 |
|
|
|
11316 |
public getPickupStoreByHotspotId_result() {
|
|
|
11317 |
}
|
|
|
11318 |
|
|
|
11319 |
public getPickupStoreByHotspotId_result(
|
|
|
11320 |
PickupStore success)
|
|
|
11321 |
{
|
|
|
11322 |
this();
|
|
|
11323 |
this.success = success;
|
|
|
11324 |
}
|
|
|
11325 |
|
|
|
11326 |
/**
|
|
|
11327 |
* Performs a deep copy on <i>other</i>.
|
|
|
11328 |
*/
|
|
|
11329 |
public getPickupStoreByHotspotId_result(getPickupStoreByHotspotId_result other) {
|
|
|
11330 |
if (other.isSetSuccess()) {
|
|
|
11331 |
this.success = new PickupStore(other.success);
|
|
|
11332 |
}
|
|
|
11333 |
}
|
|
|
11334 |
|
|
|
11335 |
public getPickupStoreByHotspotId_result deepCopy() {
|
|
|
11336 |
return new getPickupStoreByHotspotId_result(this);
|
|
|
11337 |
}
|
|
|
11338 |
|
|
|
11339 |
@Override
|
|
|
11340 |
public void clear() {
|
|
|
11341 |
this.success = null;
|
|
|
11342 |
}
|
|
|
11343 |
|
|
|
11344 |
public PickupStore getSuccess() {
|
|
|
11345 |
return this.success;
|
|
|
11346 |
}
|
|
|
11347 |
|
|
|
11348 |
public void setSuccess(PickupStore success) {
|
|
|
11349 |
this.success = success;
|
|
|
11350 |
}
|
|
|
11351 |
|
|
|
11352 |
public void unsetSuccess() {
|
|
|
11353 |
this.success = null;
|
|
|
11354 |
}
|
|
|
11355 |
|
|
|
11356 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
11357 |
public boolean isSetSuccess() {
|
|
|
11358 |
return this.success != null;
|
|
|
11359 |
}
|
|
|
11360 |
|
|
|
11361 |
public void setSuccessIsSet(boolean value) {
|
|
|
11362 |
if (!value) {
|
|
|
11363 |
this.success = null;
|
|
|
11364 |
}
|
|
|
11365 |
}
|
|
|
11366 |
|
|
|
11367 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
11368 |
switch (field) {
|
|
|
11369 |
case SUCCESS:
|
|
|
11370 |
if (value == null) {
|
|
|
11371 |
unsetSuccess();
|
|
|
11372 |
} else {
|
|
|
11373 |
setSuccess((PickupStore)value);
|
|
|
11374 |
}
|
|
|
11375 |
break;
|
|
|
11376 |
|
|
|
11377 |
}
|
|
|
11378 |
}
|
|
|
11379 |
|
|
|
11380 |
public Object getFieldValue(_Fields field) {
|
|
|
11381 |
switch (field) {
|
|
|
11382 |
case SUCCESS:
|
|
|
11383 |
return getSuccess();
|
|
|
11384 |
|
|
|
11385 |
}
|
|
|
11386 |
throw new IllegalStateException();
|
|
|
11387 |
}
|
|
|
11388 |
|
|
|
11389 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
11390 |
public boolean isSet(_Fields field) {
|
|
|
11391 |
if (field == null) {
|
|
|
11392 |
throw new IllegalArgumentException();
|
|
|
11393 |
}
|
|
|
11394 |
|
|
|
11395 |
switch (field) {
|
|
|
11396 |
case SUCCESS:
|
|
|
11397 |
return isSetSuccess();
|
|
|
11398 |
}
|
|
|
11399 |
throw new IllegalStateException();
|
|
|
11400 |
}
|
|
|
11401 |
|
|
|
11402 |
@Override
|
|
|
11403 |
public boolean equals(Object that) {
|
|
|
11404 |
if (that == null)
|
|
|
11405 |
return false;
|
|
|
11406 |
if (that instanceof getPickupStoreByHotspotId_result)
|
|
|
11407 |
return this.equals((getPickupStoreByHotspotId_result)that);
|
|
|
11408 |
return false;
|
|
|
11409 |
}
|
|
|
11410 |
|
|
|
11411 |
public boolean equals(getPickupStoreByHotspotId_result that) {
|
|
|
11412 |
if (that == null)
|
|
|
11413 |
return false;
|
|
|
11414 |
|
|
|
11415 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
11416 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
11417 |
if (this_present_success || that_present_success) {
|
|
|
11418 |
if (!(this_present_success && that_present_success))
|
|
|
11419 |
return false;
|
|
|
11420 |
if (!this.success.equals(that.success))
|
|
|
11421 |
return false;
|
|
|
11422 |
}
|
|
|
11423 |
|
|
|
11424 |
return true;
|
|
|
11425 |
}
|
|
|
11426 |
|
|
|
11427 |
@Override
|
|
|
11428 |
public int hashCode() {
|
|
|
11429 |
return 0;
|
|
|
11430 |
}
|
|
|
11431 |
|
|
|
11432 |
public int compareTo(getPickupStoreByHotspotId_result other) {
|
|
|
11433 |
if (!getClass().equals(other.getClass())) {
|
|
|
11434 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
11435 |
}
|
|
|
11436 |
|
|
|
11437 |
int lastComparison = 0;
|
|
|
11438 |
getPickupStoreByHotspotId_result typedOther = (getPickupStoreByHotspotId_result)other;
|
|
|
11439 |
|
|
|
11440 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
11441 |
if (lastComparison != 0) {
|
|
|
11442 |
return lastComparison;
|
|
|
11443 |
}
|
|
|
11444 |
if (isSetSuccess()) {
|
|
|
11445 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
11446 |
if (lastComparison != 0) {
|
|
|
11447 |
return lastComparison;
|
|
|
11448 |
}
|
|
|
11449 |
}
|
|
|
11450 |
return 0;
|
|
|
11451 |
}
|
|
|
11452 |
|
|
|
11453 |
public _Fields fieldForId(int fieldId) {
|
|
|
11454 |
return _Fields.findByThriftId(fieldId);
|
|
|
11455 |
}
|
|
|
11456 |
|
|
|
11457 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
11458 |
org.apache.thrift.protocol.TField field;
|
|
|
11459 |
iprot.readStructBegin();
|
|
|
11460 |
while (true)
|
|
|
11461 |
{
|
|
|
11462 |
field = iprot.readFieldBegin();
|
|
|
11463 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
11464 |
break;
|
|
|
11465 |
}
|
|
|
11466 |
switch (field.id) {
|
|
|
11467 |
case 0: // SUCCESS
|
|
|
11468 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
11469 |
this.success = new PickupStore();
|
|
|
11470 |
this.success.read(iprot);
|
|
|
11471 |
} else {
|
|
|
11472 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11473 |
}
|
|
|
11474 |
break;
|
|
|
11475 |
default:
|
|
|
11476 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
11477 |
}
|
|
|
11478 |
iprot.readFieldEnd();
|
|
|
11479 |
}
|
|
|
11480 |
iprot.readStructEnd();
|
|
|
11481 |
validate();
|
|
|
11482 |
}
|
|
|
11483 |
|
|
|
11484 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
11485 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
11486 |
|
|
|
11487 |
if (this.isSetSuccess()) {
|
|
|
11488 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
11489 |
this.success.write(oprot);
|
|
|
11490 |
oprot.writeFieldEnd();
|
|
|
11491 |
}
|
|
|
11492 |
oprot.writeFieldStop();
|
|
|
11493 |
oprot.writeStructEnd();
|
|
|
11494 |
}
|
|
|
11495 |
|
|
|
11496 |
@Override
|
|
|
11497 |
public String toString() {
|
|
|
11498 |
StringBuilder sb = new StringBuilder("getPickupStoreByHotspotId_result(");
|
|
|
11499 |
boolean first = true;
|
|
|
11500 |
|
|
|
11501 |
sb.append("success:");
|
|
|
11502 |
if (this.success == null) {
|
|
|
11503 |
sb.append("null");
|
|
|
11504 |
} else {
|
|
|
11505 |
sb.append(this.success);
|
|
|
11506 |
}
|
|
|
11507 |
first = false;
|
|
|
11508 |
sb.append(")");
|
|
|
11509 |
return sb.toString();
|
|
|
11510 |
}
|
|
|
11511 |
|
|
|
11512 |
public void validate() throws org.apache.thrift.TException {
|
|
|
11513 |
// check for required fields
|
|
|
11514 |
}
|
|
|
11515 |
|
|
|
11516 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
11517 |
try {
|
|
|
11518 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
11519 |
} catch (org.apache.thrift.TException te) {
|
|
|
11520 |
throw new java.io.IOException(te);
|
|
|
11521 |
}
|
|
|
11522 |
}
|
|
|
11523 |
|
|
|
11524 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
11525 |
try {
|
|
|
11526 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
11527 |
} catch (org.apache.thrift.TException te) {
|
|
|
11528 |
throw new java.io.IOException(te);
|
|
|
11529 |
}
|
|
|
11530 |
}
|
|
|
11531 |
|
|
|
11532 |
}
|
|
|
11533 |
|
| 6322 |
amar.kumar |
11534 |
public static class addPincode_args implements org.apache.thrift.TBase<addPincode_args, addPincode_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
11535 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPincode_args");
|
|
|
11536 |
|
|
|
11537 |
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);
|
|
|
11538 |
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);
|
|
|
11539 |
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);
|
|
|
11540 |
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);
|
|
|
11541 |
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);
|
|
|
11542 |
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 |
11543 |
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 |
11544 |
|
|
|
11545 |
private long providerId; // required
|
|
|
11546 |
private String pincode; // required
|
|
|
11547 |
private String destCode; // required
|
|
|
11548 |
private boolean exp; // required
|
|
|
11549 |
private boolean cod; // required
|
|
|
11550 |
private int stationType; // required
|
| 6524 |
rajveer |
11551 |
private boolean otgAvailable; // required
|
| 6322 |
amar.kumar |
11552 |
|
|
|
11553 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
11554 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
11555 |
PROVIDER_ID((short)1, "providerId"),
|
|
|
11556 |
PINCODE((short)2, "pincode"),
|
|
|
11557 |
DEST_CODE((short)3, "destCode"),
|
|
|
11558 |
EXP((short)4, "exp"),
|
|
|
11559 |
COD((short)5, "cod"),
|
| 6524 |
rajveer |
11560 |
STATION_TYPE((short)6, "stationType"),
|
|
|
11561 |
OTG_AVAILABLE((short)7, "otgAvailable");
|
| 6322 |
amar.kumar |
11562 |
|
|
|
11563 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
11564 |
|
|
|
11565 |
static {
|
|
|
11566 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
11567 |
byName.put(field.getFieldName(), field);
|
|
|
11568 |
}
|
|
|
11569 |
}
|
|
|
11570 |
|
|
|
11571 |
/**
|
|
|
11572 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
11573 |
*/
|
|
|
11574 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
11575 |
switch(fieldId) {
|
|
|
11576 |
case 1: // PROVIDER_ID
|
|
|
11577 |
return PROVIDER_ID;
|
|
|
11578 |
case 2: // PINCODE
|
|
|
11579 |
return PINCODE;
|
|
|
11580 |
case 3: // DEST_CODE
|
|
|
11581 |
return DEST_CODE;
|
|
|
11582 |
case 4: // EXP
|
|
|
11583 |
return EXP;
|
|
|
11584 |
case 5: // COD
|
|
|
11585 |
return COD;
|
|
|
11586 |
case 6: // STATION_TYPE
|
|
|
11587 |
return STATION_TYPE;
|
| 6524 |
rajveer |
11588 |
case 7: // OTG_AVAILABLE
|
|
|
11589 |
return OTG_AVAILABLE;
|
| 6322 |
amar.kumar |
11590 |
default:
|
|
|
11591 |
return null;
|
|
|
11592 |
}
|
|
|
11593 |
}
|
|
|
11594 |
|
|
|
11595 |
/**
|
|
|
11596 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
11597 |
* if it is not found.
|
|
|
11598 |
*/
|
|
|
11599 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
11600 |
_Fields fields = findByThriftId(fieldId);
|
|
|
11601 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
11602 |
return fields;
|
|
|
11603 |
}
|
|
|
11604 |
|
|
|
11605 |
/**
|
|
|
11606 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
11607 |
*/
|
|
|
11608 |
public static _Fields findByName(String name) {
|
|
|
11609 |
return byName.get(name);
|
|
|
11610 |
}
|
|
|
11611 |
|
|
|
11612 |
private final short _thriftId;
|
|
|
11613 |
private final String _fieldName;
|
|
|
11614 |
|
|
|
11615 |
_Fields(short thriftId, String fieldName) {
|
|
|
11616 |
_thriftId = thriftId;
|
|
|
11617 |
_fieldName = fieldName;
|
|
|
11618 |
}
|
|
|
11619 |
|
|
|
11620 |
public short getThriftFieldId() {
|
|
|
11621 |
return _thriftId;
|
|
|
11622 |
}
|
|
|
11623 |
|
|
|
11624 |
public String getFieldName() {
|
|
|
11625 |
return _fieldName;
|
|
|
11626 |
}
|
|
|
11627 |
}
|
|
|
11628 |
|
|
|
11629 |
// isset id assignments
|
|
|
11630 |
private static final int __PROVIDERID_ISSET_ID = 0;
|
|
|
11631 |
private static final int __EXP_ISSET_ID = 1;
|
|
|
11632 |
private static final int __COD_ISSET_ID = 2;
|
|
|
11633 |
private static final int __STATIONTYPE_ISSET_ID = 3;
|
| 6524 |
rajveer |
11634 |
private static final int __OTGAVAILABLE_ISSET_ID = 4;
|
|
|
11635 |
private BitSet __isset_bit_vector = new BitSet(5);
|
| 6322 |
amar.kumar |
11636 |
|
|
|
11637 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
11638 |
static {
|
|
|
11639 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
11640 |
tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
11641 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
11642 |
tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
11643 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
11644 |
tmpMap.put(_Fields.DEST_CODE, new org.apache.thrift.meta_data.FieldMetaData("destCode", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
11645 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
11646 |
tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
11647 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
|
|
11648 |
tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
11649 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
|
|
11650 |
tmpMap.put(_Fields.STATION_TYPE, new org.apache.thrift.meta_data.FieldMetaData("stationType", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
11651 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
|
| 6524 |
rajveer |
11652 |
tmpMap.put(_Fields.OTG_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("otgAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
11653 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
| 6322 |
amar.kumar |
11654 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
11655 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_args.class, metaDataMap);
|
|
|
11656 |
}
|
|
|
11657 |
|
|
|
11658 |
public addPincode_args() {
|
|
|
11659 |
}
|
|
|
11660 |
|
|
|
11661 |
public addPincode_args(
|
|
|
11662 |
long providerId,
|
|
|
11663 |
String pincode,
|
|
|
11664 |
String destCode,
|
|
|
11665 |
boolean exp,
|
|
|
11666 |
boolean cod,
|
| 6524 |
rajveer |
11667 |
int stationType,
|
|
|
11668 |
boolean otgAvailable)
|
| 6322 |
amar.kumar |
11669 |
{
|
|
|
11670 |
this();
|
|
|
11671 |
this.providerId = providerId;
|
|
|
11672 |
setProviderIdIsSet(true);
|
|
|
11673 |
this.pincode = pincode;
|
|
|
11674 |
this.destCode = destCode;
|
|
|
11675 |
this.exp = exp;
|
|
|
11676 |
setExpIsSet(true);
|
|
|
11677 |
this.cod = cod;
|
|
|
11678 |
setCodIsSet(true);
|
|
|
11679 |
this.stationType = stationType;
|
|
|
11680 |
setStationTypeIsSet(true);
|
| 6524 |
rajveer |
11681 |
this.otgAvailable = otgAvailable;
|
|
|
11682 |
setOtgAvailableIsSet(true);
|
| 6322 |
amar.kumar |
11683 |
}
|
|
|
11684 |
|
|
|
11685 |
/**
|
|
|
11686 |
* Performs a deep copy on <i>other</i>.
|
|
|
11687 |
*/
|
|
|
11688 |
public addPincode_args(addPincode_args other) {
|
|
|
11689 |
__isset_bit_vector.clear();
|
|
|
11690 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
11691 |
this.providerId = other.providerId;
|
|
|
11692 |
if (other.isSetPincode()) {
|
|
|
11693 |
this.pincode = other.pincode;
|
|
|
11694 |
}
|
|
|
11695 |
if (other.isSetDestCode()) {
|
|
|
11696 |
this.destCode = other.destCode;
|
|
|
11697 |
}
|
|
|
11698 |
this.exp = other.exp;
|
|
|
11699 |
this.cod = other.cod;
|
|
|
11700 |
this.stationType = other.stationType;
|
| 6524 |
rajveer |
11701 |
this.otgAvailable = other.otgAvailable;
|
| 6322 |
amar.kumar |
11702 |
}
|
|
|
11703 |
|
|
|
11704 |
public addPincode_args deepCopy() {
|
|
|
11705 |
return new addPincode_args(this);
|
|
|
11706 |
}
|
|
|
11707 |
|
|
|
11708 |
@Override
|
|
|
11709 |
public void clear() {
|
|
|
11710 |
setProviderIdIsSet(false);
|
|
|
11711 |
this.providerId = 0;
|
|
|
11712 |
this.pincode = null;
|
|
|
11713 |
this.destCode = null;
|
|
|
11714 |
setExpIsSet(false);
|
|
|
11715 |
this.exp = false;
|
|
|
11716 |
setCodIsSet(false);
|
|
|
11717 |
this.cod = false;
|
|
|
11718 |
setStationTypeIsSet(false);
|
|
|
11719 |
this.stationType = 0;
|
| 6524 |
rajveer |
11720 |
setOtgAvailableIsSet(false);
|
|
|
11721 |
this.otgAvailable = false;
|
| 6322 |
amar.kumar |
11722 |
}
|
|
|
11723 |
|
|
|
11724 |
public long getProviderId() {
|
|
|
11725 |
return this.providerId;
|
|
|
11726 |
}
|
|
|
11727 |
|
|
|
11728 |
public void setProviderId(long providerId) {
|
|
|
11729 |
this.providerId = providerId;
|
|
|
11730 |
setProviderIdIsSet(true);
|
|
|
11731 |
}
|
|
|
11732 |
|
|
|
11733 |
public void unsetProviderId() {
|
|
|
11734 |
__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
|
|
|
11735 |
}
|
|
|
11736 |
|
|
|
11737 |
/** Returns true if field providerId is set (has been assigned a value) and false otherwise */
|
|
|
11738 |
public boolean isSetProviderId() {
|
|
|
11739 |
return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
|
|
|
11740 |
}
|
|
|
11741 |
|
|
|
11742 |
public void setProviderIdIsSet(boolean value) {
|
|
|
11743 |
__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
|
|
|
11744 |
}
|
|
|
11745 |
|
|
|
11746 |
public String getPincode() {
|
|
|
11747 |
return this.pincode;
|
|
|
11748 |
}
|
|
|
11749 |
|
|
|
11750 |
public void setPincode(String pincode) {
|
|
|
11751 |
this.pincode = pincode;
|
|
|
11752 |
}
|
|
|
11753 |
|
|
|
11754 |
public void unsetPincode() {
|
|
|
11755 |
this.pincode = null;
|
|
|
11756 |
}
|
|
|
11757 |
|
|
|
11758 |
/** Returns true if field pincode is set (has been assigned a value) and false otherwise */
|
|
|
11759 |
public boolean isSetPincode() {
|
|
|
11760 |
return this.pincode != null;
|
|
|
11761 |
}
|
|
|
11762 |
|
|
|
11763 |
public void setPincodeIsSet(boolean value) {
|
|
|
11764 |
if (!value) {
|
|
|
11765 |
this.pincode = null;
|
|
|
11766 |
}
|
|
|
11767 |
}
|
|
|
11768 |
|
|
|
11769 |
public String getDestCode() {
|
|
|
11770 |
return this.destCode;
|
|
|
11771 |
}
|
|
|
11772 |
|
|
|
11773 |
public void setDestCode(String destCode) {
|
|
|
11774 |
this.destCode = destCode;
|
|
|
11775 |
}
|
|
|
11776 |
|
|
|
11777 |
public void unsetDestCode() {
|
|
|
11778 |
this.destCode = null;
|
|
|
11779 |
}
|
|
|
11780 |
|
|
|
11781 |
/** Returns true if field destCode is set (has been assigned a value) and false otherwise */
|
|
|
11782 |
public boolean isSetDestCode() {
|
|
|
11783 |
return this.destCode != null;
|
|
|
11784 |
}
|
|
|
11785 |
|
|
|
11786 |
public void setDestCodeIsSet(boolean value) {
|
|
|
11787 |
if (!value) {
|
|
|
11788 |
this.destCode = null;
|
|
|
11789 |
}
|
|
|
11790 |
}
|
|
|
11791 |
|
|
|
11792 |
public boolean isExp() {
|
|
|
11793 |
return this.exp;
|
|
|
11794 |
}
|
|
|
11795 |
|
|
|
11796 |
public void setExp(boolean exp) {
|
|
|
11797 |
this.exp = exp;
|
|
|
11798 |
setExpIsSet(true);
|
|
|
11799 |
}
|
|
|
11800 |
|
|
|
11801 |
public void unsetExp() {
|
|
|
11802 |
__isset_bit_vector.clear(__EXP_ISSET_ID);
|
|
|
11803 |
}
|
|
|
11804 |
|
|
|
11805 |
/** Returns true if field exp is set (has been assigned a value) and false otherwise */
|
|
|
11806 |
public boolean isSetExp() {
|
|
|
11807 |
return __isset_bit_vector.get(__EXP_ISSET_ID);
|
|
|
11808 |
}
|
|
|
11809 |
|
|
|
11810 |
public void setExpIsSet(boolean value) {
|
|
|
11811 |
__isset_bit_vector.set(__EXP_ISSET_ID, value);
|
|
|
11812 |
}
|
|
|
11813 |
|
|
|
11814 |
public boolean isCod() {
|
|
|
11815 |
return this.cod;
|
|
|
11816 |
}
|
|
|
11817 |
|
|
|
11818 |
public void setCod(boolean cod) {
|
|
|
11819 |
this.cod = cod;
|
|
|
11820 |
setCodIsSet(true);
|
|
|
11821 |
}
|
|
|
11822 |
|
|
|
11823 |
public void unsetCod() {
|
|
|
11824 |
__isset_bit_vector.clear(__COD_ISSET_ID);
|
|
|
11825 |
}
|
|
|
11826 |
|
|
|
11827 |
/** Returns true if field cod is set (has been assigned a value) and false otherwise */
|
|
|
11828 |
public boolean isSetCod() {
|
|
|
11829 |
return __isset_bit_vector.get(__COD_ISSET_ID);
|
|
|
11830 |
}
|
|
|
11831 |
|
|
|
11832 |
public void setCodIsSet(boolean value) {
|
|
|
11833 |
__isset_bit_vector.set(__COD_ISSET_ID, value);
|
|
|
11834 |
}
|
|
|
11835 |
|
|
|
11836 |
public int getStationType() {
|
|
|
11837 |
return this.stationType;
|
|
|
11838 |
}
|
|
|
11839 |
|
|
|
11840 |
public void setStationType(int stationType) {
|
|
|
11841 |
this.stationType = stationType;
|
|
|
11842 |
setStationTypeIsSet(true);
|
|
|
11843 |
}
|
|
|
11844 |
|
|
|
11845 |
public void unsetStationType() {
|
|
|
11846 |
__isset_bit_vector.clear(__STATIONTYPE_ISSET_ID);
|
|
|
11847 |
}
|
|
|
11848 |
|
|
|
11849 |
/** Returns true if field stationType is set (has been assigned a value) and false otherwise */
|
|
|
11850 |
public boolean isSetStationType() {
|
|
|
11851 |
return __isset_bit_vector.get(__STATIONTYPE_ISSET_ID);
|
|
|
11852 |
}
|
|
|
11853 |
|
|
|
11854 |
public void setStationTypeIsSet(boolean value) {
|
|
|
11855 |
__isset_bit_vector.set(__STATIONTYPE_ISSET_ID, value);
|
|
|
11856 |
}
|
|
|
11857 |
|
| 6524 |
rajveer |
11858 |
public boolean isOtgAvailable() {
|
|
|
11859 |
return this.otgAvailable;
|
|
|
11860 |
}
|
|
|
11861 |
|
|
|
11862 |
public void setOtgAvailable(boolean otgAvailable) {
|
|
|
11863 |
this.otgAvailable = otgAvailable;
|
|
|
11864 |
setOtgAvailableIsSet(true);
|
|
|
11865 |
}
|
|
|
11866 |
|
|
|
11867 |
public void unsetOtgAvailable() {
|
|
|
11868 |
__isset_bit_vector.clear(__OTGAVAILABLE_ISSET_ID);
|
|
|
11869 |
}
|
|
|
11870 |
|
|
|
11871 |
/** Returns true if field otgAvailable is set (has been assigned a value) and false otherwise */
|
|
|
11872 |
public boolean isSetOtgAvailable() {
|
|
|
11873 |
return __isset_bit_vector.get(__OTGAVAILABLE_ISSET_ID);
|
|
|
11874 |
}
|
|
|
11875 |
|
|
|
11876 |
public void setOtgAvailableIsSet(boolean value) {
|
|
|
11877 |
__isset_bit_vector.set(__OTGAVAILABLE_ISSET_ID, value);
|
|
|
11878 |
}
|
|
|
11879 |
|
| 6322 |
amar.kumar |
11880 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
11881 |
switch (field) {
|
|
|
11882 |
case PROVIDER_ID:
|
|
|
11883 |
if (value == null) {
|
|
|
11884 |
unsetProviderId();
|
|
|
11885 |
} else {
|
|
|
11886 |
setProviderId((Long)value);
|
|
|
11887 |
}
|
|
|
11888 |
break;
|
|
|
11889 |
|
|
|
11890 |
case PINCODE:
|
|
|
11891 |
if (value == null) {
|
|
|
11892 |
unsetPincode();
|
|
|
11893 |
} else {
|
|
|
11894 |
setPincode((String)value);
|
|
|
11895 |
}
|
|
|
11896 |
break;
|
|
|
11897 |
|
|
|
11898 |
case DEST_CODE:
|
|
|
11899 |
if (value == null) {
|
|
|
11900 |
unsetDestCode();
|
|
|
11901 |
} else {
|
|
|
11902 |
setDestCode((String)value);
|
|
|
11903 |
}
|
|
|
11904 |
break;
|
|
|
11905 |
|
|
|
11906 |
case EXP:
|
|
|
11907 |
if (value == null) {
|
|
|
11908 |
unsetExp();
|
|
|
11909 |
} else {
|
|
|
11910 |
setExp((Boolean)value);
|
|
|
11911 |
}
|
|
|
11912 |
break;
|
|
|
11913 |
|
|
|
11914 |
case COD:
|
|
|
11915 |
if (value == null) {
|
|
|
11916 |
unsetCod();
|
|
|
11917 |
} else {
|
|
|
11918 |
setCod((Boolean)value);
|
|
|
11919 |
}
|
|
|
11920 |
break;
|
|
|
11921 |
|
|
|
11922 |
case STATION_TYPE:
|
|
|
11923 |
if (value == null) {
|
|
|
11924 |
unsetStationType();
|
|
|
11925 |
} else {
|
|
|
11926 |
setStationType((Integer)value);
|
|
|
11927 |
}
|
|
|
11928 |
break;
|
|
|
11929 |
|
| 6524 |
rajveer |
11930 |
case OTG_AVAILABLE:
|
|
|
11931 |
if (value == null) {
|
|
|
11932 |
unsetOtgAvailable();
|
|
|
11933 |
} else {
|
|
|
11934 |
setOtgAvailable((Boolean)value);
|
|
|
11935 |
}
|
|
|
11936 |
break;
|
|
|
11937 |
|
| 6322 |
amar.kumar |
11938 |
}
|
|
|
11939 |
}
|
|
|
11940 |
|
|
|
11941 |
public Object getFieldValue(_Fields field) {
|
|
|
11942 |
switch (field) {
|
|
|
11943 |
case PROVIDER_ID:
|
|
|
11944 |
return Long.valueOf(getProviderId());
|
|
|
11945 |
|
|
|
11946 |
case PINCODE:
|
|
|
11947 |
return getPincode();
|
|
|
11948 |
|
|
|
11949 |
case DEST_CODE:
|
|
|
11950 |
return getDestCode();
|
|
|
11951 |
|
|
|
11952 |
case EXP:
|
|
|
11953 |
return Boolean.valueOf(isExp());
|
|
|
11954 |
|
|
|
11955 |
case COD:
|
|
|
11956 |
return Boolean.valueOf(isCod());
|
|
|
11957 |
|
|
|
11958 |
case STATION_TYPE:
|
|
|
11959 |
return Integer.valueOf(getStationType());
|
|
|
11960 |
|
| 6524 |
rajveer |
11961 |
case OTG_AVAILABLE:
|
|
|
11962 |
return Boolean.valueOf(isOtgAvailable());
|
|
|
11963 |
|
| 6322 |
amar.kumar |
11964 |
}
|
|
|
11965 |
throw new IllegalStateException();
|
|
|
11966 |
}
|
|
|
11967 |
|
|
|
11968 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
11969 |
public boolean isSet(_Fields field) {
|
|
|
11970 |
if (field == null) {
|
|
|
11971 |
throw new IllegalArgumentException();
|
|
|
11972 |
}
|
|
|
11973 |
|
|
|
11974 |
switch (field) {
|
|
|
11975 |
case PROVIDER_ID:
|
|
|
11976 |
return isSetProviderId();
|
|
|
11977 |
case PINCODE:
|
|
|
11978 |
return isSetPincode();
|
|
|
11979 |
case DEST_CODE:
|
|
|
11980 |
return isSetDestCode();
|
|
|
11981 |
case EXP:
|
|
|
11982 |
return isSetExp();
|
|
|
11983 |
case COD:
|
|
|
11984 |
return isSetCod();
|
|
|
11985 |
case STATION_TYPE:
|
|
|
11986 |
return isSetStationType();
|
| 6524 |
rajveer |
11987 |
case OTG_AVAILABLE:
|
|
|
11988 |
return isSetOtgAvailable();
|
| 6322 |
amar.kumar |
11989 |
}
|
|
|
11990 |
throw new IllegalStateException();
|
|
|
11991 |
}
|
|
|
11992 |
|
|
|
11993 |
@Override
|
|
|
11994 |
public boolean equals(Object that) {
|
|
|
11995 |
if (that == null)
|
|
|
11996 |
return false;
|
|
|
11997 |
if (that instanceof addPincode_args)
|
|
|
11998 |
return this.equals((addPincode_args)that);
|
|
|
11999 |
return false;
|
|
|
12000 |
}
|
|
|
12001 |
|
|
|
12002 |
public boolean equals(addPincode_args that) {
|
|
|
12003 |
if (that == null)
|
|
|
12004 |
return false;
|
|
|
12005 |
|
|
|
12006 |
boolean this_present_providerId = true;
|
|
|
12007 |
boolean that_present_providerId = true;
|
|
|
12008 |
if (this_present_providerId || that_present_providerId) {
|
|
|
12009 |
if (!(this_present_providerId && that_present_providerId))
|
|
|
12010 |
return false;
|
|
|
12011 |
if (this.providerId != that.providerId)
|
|
|
12012 |
return false;
|
|
|
12013 |
}
|
|
|
12014 |
|
|
|
12015 |
boolean this_present_pincode = true && this.isSetPincode();
|
|
|
12016 |
boolean that_present_pincode = true && that.isSetPincode();
|
|
|
12017 |
if (this_present_pincode || that_present_pincode) {
|
|
|
12018 |
if (!(this_present_pincode && that_present_pincode))
|
|
|
12019 |
return false;
|
|
|
12020 |
if (!this.pincode.equals(that.pincode))
|
|
|
12021 |
return false;
|
|
|
12022 |
}
|
|
|
12023 |
|
|
|
12024 |
boolean this_present_destCode = true && this.isSetDestCode();
|
|
|
12025 |
boolean that_present_destCode = true && that.isSetDestCode();
|
|
|
12026 |
if (this_present_destCode || that_present_destCode) {
|
|
|
12027 |
if (!(this_present_destCode && that_present_destCode))
|
|
|
12028 |
return false;
|
|
|
12029 |
if (!this.destCode.equals(that.destCode))
|
|
|
12030 |
return false;
|
|
|
12031 |
}
|
|
|
12032 |
|
|
|
12033 |
boolean this_present_exp = true;
|
|
|
12034 |
boolean that_present_exp = true;
|
|
|
12035 |
if (this_present_exp || that_present_exp) {
|
|
|
12036 |
if (!(this_present_exp && that_present_exp))
|
|
|
12037 |
return false;
|
|
|
12038 |
if (this.exp != that.exp)
|
|
|
12039 |
return false;
|
|
|
12040 |
}
|
|
|
12041 |
|
|
|
12042 |
boolean this_present_cod = true;
|
|
|
12043 |
boolean that_present_cod = true;
|
|
|
12044 |
if (this_present_cod || that_present_cod) {
|
|
|
12045 |
if (!(this_present_cod && that_present_cod))
|
|
|
12046 |
return false;
|
|
|
12047 |
if (this.cod != that.cod)
|
|
|
12048 |
return false;
|
|
|
12049 |
}
|
|
|
12050 |
|
|
|
12051 |
boolean this_present_stationType = true;
|
|
|
12052 |
boolean that_present_stationType = true;
|
|
|
12053 |
if (this_present_stationType || that_present_stationType) {
|
|
|
12054 |
if (!(this_present_stationType && that_present_stationType))
|
|
|
12055 |
return false;
|
|
|
12056 |
if (this.stationType != that.stationType)
|
|
|
12057 |
return false;
|
|
|
12058 |
}
|
|
|
12059 |
|
| 6524 |
rajveer |
12060 |
boolean this_present_otgAvailable = true;
|
|
|
12061 |
boolean that_present_otgAvailable = true;
|
|
|
12062 |
if (this_present_otgAvailable || that_present_otgAvailable) {
|
|
|
12063 |
if (!(this_present_otgAvailable && that_present_otgAvailable))
|
|
|
12064 |
return false;
|
|
|
12065 |
if (this.otgAvailable != that.otgAvailable)
|
|
|
12066 |
return false;
|
|
|
12067 |
}
|
|
|
12068 |
|
| 6322 |
amar.kumar |
12069 |
return true;
|
|
|
12070 |
}
|
|
|
12071 |
|
|
|
12072 |
@Override
|
|
|
12073 |
public int hashCode() {
|
|
|
12074 |
return 0;
|
|
|
12075 |
}
|
|
|
12076 |
|
|
|
12077 |
public int compareTo(addPincode_args other) {
|
|
|
12078 |
if (!getClass().equals(other.getClass())) {
|
|
|
12079 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
12080 |
}
|
|
|
12081 |
|
|
|
12082 |
int lastComparison = 0;
|
|
|
12083 |
addPincode_args typedOther = (addPincode_args)other;
|
|
|
12084 |
|
|
|
12085 |
lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
|
|
|
12086 |
if (lastComparison != 0) {
|
|
|
12087 |
return lastComparison;
|
|
|
12088 |
}
|
|
|
12089 |
if (isSetProviderId()) {
|
|
|
12090 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
|
|
|
12091 |
if (lastComparison != 0) {
|
|
|
12092 |
return lastComparison;
|
|
|
12093 |
}
|
|
|
12094 |
}
|
|
|
12095 |
lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
|
|
|
12096 |
if (lastComparison != 0) {
|
|
|
12097 |
return lastComparison;
|
|
|
12098 |
}
|
|
|
12099 |
if (isSetPincode()) {
|
|
|
12100 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
|
|
|
12101 |
if (lastComparison != 0) {
|
|
|
12102 |
return lastComparison;
|
|
|
12103 |
}
|
|
|
12104 |
}
|
|
|
12105 |
lastComparison = Boolean.valueOf(isSetDestCode()).compareTo(typedOther.isSetDestCode());
|
|
|
12106 |
if (lastComparison != 0) {
|
|
|
12107 |
return lastComparison;
|
|
|
12108 |
}
|
|
|
12109 |
if (isSetDestCode()) {
|
|
|
12110 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destCode, typedOther.destCode);
|
|
|
12111 |
if (lastComparison != 0) {
|
|
|
12112 |
return lastComparison;
|
|
|
12113 |
}
|
|
|
12114 |
}
|
|
|
12115 |
lastComparison = Boolean.valueOf(isSetExp()).compareTo(typedOther.isSetExp());
|
|
|
12116 |
if (lastComparison != 0) {
|
|
|
12117 |
return lastComparison;
|
|
|
12118 |
}
|
|
|
12119 |
if (isSetExp()) {
|
|
|
12120 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exp, typedOther.exp);
|
|
|
12121 |
if (lastComparison != 0) {
|
|
|
12122 |
return lastComparison;
|
|
|
12123 |
}
|
|
|
12124 |
}
|
|
|
12125 |
lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
|
|
|
12126 |
if (lastComparison != 0) {
|
|
|
12127 |
return lastComparison;
|
|
|
12128 |
}
|
|
|
12129 |
if (isSetCod()) {
|
|
|
12130 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
|
|
|
12131 |
if (lastComparison != 0) {
|
|
|
12132 |
return lastComparison;
|
|
|
12133 |
}
|
|
|
12134 |
}
|
|
|
12135 |
lastComparison = Boolean.valueOf(isSetStationType()).compareTo(typedOther.isSetStationType());
|
|
|
12136 |
if (lastComparison != 0) {
|
|
|
12137 |
return lastComparison;
|
|
|
12138 |
}
|
|
|
12139 |
if (isSetStationType()) {
|
|
|
12140 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stationType, typedOther.stationType);
|
|
|
12141 |
if (lastComparison != 0) {
|
|
|
12142 |
return lastComparison;
|
|
|
12143 |
}
|
|
|
12144 |
}
|
| 6524 |
rajveer |
12145 |
lastComparison = Boolean.valueOf(isSetOtgAvailable()).compareTo(typedOther.isSetOtgAvailable());
|
|
|
12146 |
if (lastComparison != 0) {
|
|
|
12147 |
return lastComparison;
|
|
|
12148 |
}
|
|
|
12149 |
if (isSetOtgAvailable()) {
|
|
|
12150 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otgAvailable, typedOther.otgAvailable);
|
|
|
12151 |
if (lastComparison != 0) {
|
|
|
12152 |
return lastComparison;
|
|
|
12153 |
}
|
|
|
12154 |
}
|
| 6322 |
amar.kumar |
12155 |
return 0;
|
|
|
12156 |
}
|
|
|
12157 |
|
|
|
12158 |
public _Fields fieldForId(int fieldId) {
|
|
|
12159 |
return _Fields.findByThriftId(fieldId);
|
|
|
12160 |
}
|
|
|
12161 |
|
|
|
12162 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
12163 |
org.apache.thrift.protocol.TField field;
|
|
|
12164 |
iprot.readStructBegin();
|
|
|
12165 |
while (true)
|
|
|
12166 |
{
|
|
|
12167 |
field = iprot.readFieldBegin();
|
|
|
12168 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
12169 |
break;
|
|
|
12170 |
}
|
|
|
12171 |
switch (field.id) {
|
|
|
12172 |
case 1: // PROVIDER_ID
|
|
|
12173 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
12174 |
this.providerId = iprot.readI64();
|
|
|
12175 |
setProviderIdIsSet(true);
|
|
|
12176 |
} else {
|
|
|
12177 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12178 |
}
|
|
|
12179 |
break;
|
|
|
12180 |
case 2: // PINCODE
|
|
|
12181 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
12182 |
this.pincode = iprot.readString();
|
|
|
12183 |
} else {
|
|
|
12184 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12185 |
}
|
|
|
12186 |
break;
|
|
|
12187 |
case 3: // DEST_CODE
|
|
|
12188 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
12189 |
this.destCode = iprot.readString();
|
|
|
12190 |
} else {
|
|
|
12191 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12192 |
}
|
|
|
12193 |
break;
|
|
|
12194 |
case 4: // EXP
|
|
|
12195 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
12196 |
this.exp = iprot.readBool();
|
|
|
12197 |
setExpIsSet(true);
|
|
|
12198 |
} else {
|
|
|
12199 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12200 |
}
|
|
|
12201 |
break;
|
|
|
12202 |
case 5: // COD
|
|
|
12203 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
12204 |
this.cod = iprot.readBool();
|
|
|
12205 |
setCodIsSet(true);
|
|
|
12206 |
} else {
|
|
|
12207 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12208 |
}
|
|
|
12209 |
break;
|
|
|
12210 |
case 6: // STATION_TYPE
|
|
|
12211 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
12212 |
this.stationType = iprot.readI32();
|
|
|
12213 |
setStationTypeIsSet(true);
|
|
|
12214 |
} else {
|
|
|
12215 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12216 |
}
|
|
|
12217 |
break;
|
| 6524 |
rajveer |
12218 |
case 7: // OTG_AVAILABLE
|
|
|
12219 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
12220 |
this.otgAvailable = iprot.readBool();
|
|
|
12221 |
setOtgAvailableIsSet(true);
|
|
|
12222 |
} else {
|
|
|
12223 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12224 |
}
|
|
|
12225 |
break;
|
| 6322 |
amar.kumar |
12226 |
default:
|
|
|
12227 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12228 |
}
|
|
|
12229 |
iprot.readFieldEnd();
|
|
|
12230 |
}
|
|
|
12231 |
iprot.readStructEnd();
|
|
|
12232 |
validate();
|
|
|
12233 |
}
|
|
|
12234 |
|
|
|
12235 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
12236 |
validate();
|
|
|
12237 |
|
|
|
12238 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
12239 |
oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
|
|
|
12240 |
oprot.writeI64(this.providerId);
|
|
|
12241 |
oprot.writeFieldEnd();
|
|
|
12242 |
if (this.pincode != null) {
|
|
|
12243 |
oprot.writeFieldBegin(PINCODE_FIELD_DESC);
|
|
|
12244 |
oprot.writeString(this.pincode);
|
|
|
12245 |
oprot.writeFieldEnd();
|
|
|
12246 |
}
|
|
|
12247 |
if (this.destCode != null) {
|
|
|
12248 |
oprot.writeFieldBegin(DEST_CODE_FIELD_DESC);
|
|
|
12249 |
oprot.writeString(this.destCode);
|
|
|
12250 |
oprot.writeFieldEnd();
|
|
|
12251 |
}
|
|
|
12252 |
oprot.writeFieldBegin(EXP_FIELD_DESC);
|
|
|
12253 |
oprot.writeBool(this.exp);
|
|
|
12254 |
oprot.writeFieldEnd();
|
|
|
12255 |
oprot.writeFieldBegin(COD_FIELD_DESC);
|
|
|
12256 |
oprot.writeBool(this.cod);
|
|
|
12257 |
oprot.writeFieldEnd();
|
|
|
12258 |
oprot.writeFieldBegin(STATION_TYPE_FIELD_DESC);
|
|
|
12259 |
oprot.writeI32(this.stationType);
|
|
|
12260 |
oprot.writeFieldEnd();
|
| 6524 |
rajveer |
12261 |
oprot.writeFieldBegin(OTG_AVAILABLE_FIELD_DESC);
|
|
|
12262 |
oprot.writeBool(this.otgAvailable);
|
|
|
12263 |
oprot.writeFieldEnd();
|
| 6322 |
amar.kumar |
12264 |
oprot.writeFieldStop();
|
|
|
12265 |
oprot.writeStructEnd();
|
|
|
12266 |
}
|
|
|
12267 |
|
|
|
12268 |
@Override
|
|
|
12269 |
public String toString() {
|
|
|
12270 |
StringBuilder sb = new StringBuilder("addPincode_args(");
|
|
|
12271 |
boolean first = true;
|
|
|
12272 |
|
|
|
12273 |
sb.append("providerId:");
|
|
|
12274 |
sb.append(this.providerId);
|
|
|
12275 |
first = false;
|
|
|
12276 |
if (!first) sb.append(", ");
|
|
|
12277 |
sb.append("pincode:");
|
|
|
12278 |
if (this.pincode == null) {
|
|
|
12279 |
sb.append("null");
|
|
|
12280 |
} else {
|
|
|
12281 |
sb.append(this.pincode);
|
|
|
12282 |
}
|
|
|
12283 |
first = false;
|
|
|
12284 |
if (!first) sb.append(", ");
|
|
|
12285 |
sb.append("destCode:");
|
|
|
12286 |
if (this.destCode == null) {
|
|
|
12287 |
sb.append("null");
|
|
|
12288 |
} else {
|
|
|
12289 |
sb.append(this.destCode);
|
|
|
12290 |
}
|
|
|
12291 |
first = false;
|
|
|
12292 |
if (!first) sb.append(", ");
|
|
|
12293 |
sb.append("exp:");
|
|
|
12294 |
sb.append(this.exp);
|
|
|
12295 |
first = false;
|
|
|
12296 |
if (!first) sb.append(", ");
|
|
|
12297 |
sb.append("cod:");
|
|
|
12298 |
sb.append(this.cod);
|
|
|
12299 |
first = false;
|
|
|
12300 |
if (!first) sb.append(", ");
|
|
|
12301 |
sb.append("stationType:");
|
|
|
12302 |
sb.append(this.stationType);
|
|
|
12303 |
first = false;
|
| 6524 |
rajveer |
12304 |
if (!first) sb.append(", ");
|
|
|
12305 |
sb.append("otgAvailable:");
|
|
|
12306 |
sb.append(this.otgAvailable);
|
|
|
12307 |
first = false;
|
| 6322 |
amar.kumar |
12308 |
sb.append(")");
|
|
|
12309 |
return sb.toString();
|
|
|
12310 |
}
|
|
|
12311 |
|
|
|
12312 |
public void validate() throws org.apache.thrift.TException {
|
|
|
12313 |
// check for required fields
|
|
|
12314 |
}
|
|
|
12315 |
|
|
|
12316 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
12317 |
try {
|
|
|
12318 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
12319 |
} catch (org.apache.thrift.TException te) {
|
|
|
12320 |
throw new java.io.IOException(te);
|
|
|
12321 |
}
|
|
|
12322 |
}
|
|
|
12323 |
|
|
|
12324 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
12325 |
try {
|
|
|
12326 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
12327 |
__isset_bit_vector = new BitSet(1);
|
|
|
12328 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
12329 |
} catch (org.apache.thrift.TException te) {
|
|
|
12330 |
throw new java.io.IOException(te);
|
|
|
12331 |
}
|
|
|
12332 |
}
|
|
|
12333 |
|
|
|
12334 |
}
|
|
|
12335 |
|
|
|
12336 |
public static class addPincode_result implements org.apache.thrift.TBase<addPincode_result, addPincode_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
12337 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addPincode_result");
|
|
|
12338 |
|
|
|
12339 |
|
|
|
12340 |
|
|
|
12341 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
12342 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
12343 |
;
|
|
|
12344 |
|
|
|
12345 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
12346 |
|
|
|
12347 |
static {
|
|
|
12348 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
12349 |
byName.put(field.getFieldName(), field);
|
|
|
12350 |
}
|
|
|
12351 |
}
|
|
|
12352 |
|
|
|
12353 |
/**
|
|
|
12354 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
12355 |
*/
|
|
|
12356 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
12357 |
switch(fieldId) {
|
|
|
12358 |
default:
|
|
|
12359 |
return null;
|
|
|
12360 |
}
|
|
|
12361 |
}
|
|
|
12362 |
|
|
|
12363 |
/**
|
|
|
12364 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
12365 |
* if it is not found.
|
|
|
12366 |
*/
|
|
|
12367 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
12368 |
_Fields fields = findByThriftId(fieldId);
|
|
|
12369 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
12370 |
return fields;
|
|
|
12371 |
}
|
|
|
12372 |
|
|
|
12373 |
/**
|
|
|
12374 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
12375 |
*/
|
|
|
12376 |
public static _Fields findByName(String name) {
|
|
|
12377 |
return byName.get(name);
|
|
|
12378 |
}
|
|
|
12379 |
|
|
|
12380 |
private final short _thriftId;
|
|
|
12381 |
private final String _fieldName;
|
|
|
12382 |
|
|
|
12383 |
_Fields(short thriftId, String fieldName) {
|
|
|
12384 |
_thriftId = thriftId;
|
|
|
12385 |
_fieldName = fieldName;
|
|
|
12386 |
}
|
|
|
12387 |
|
|
|
12388 |
public short getThriftFieldId() {
|
|
|
12389 |
return _thriftId;
|
|
|
12390 |
}
|
|
|
12391 |
|
|
|
12392 |
public String getFieldName() {
|
|
|
12393 |
return _fieldName;
|
|
|
12394 |
}
|
|
|
12395 |
}
|
|
|
12396 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
12397 |
static {
|
|
|
12398 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
12399 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
12400 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addPincode_result.class, metaDataMap);
|
|
|
12401 |
}
|
|
|
12402 |
|
|
|
12403 |
public addPincode_result() {
|
|
|
12404 |
}
|
|
|
12405 |
|
|
|
12406 |
/**
|
|
|
12407 |
* Performs a deep copy on <i>other</i>.
|
|
|
12408 |
*/
|
|
|
12409 |
public addPincode_result(addPincode_result other) {
|
|
|
12410 |
}
|
|
|
12411 |
|
|
|
12412 |
public addPincode_result deepCopy() {
|
|
|
12413 |
return new addPincode_result(this);
|
|
|
12414 |
}
|
|
|
12415 |
|
|
|
12416 |
@Override
|
|
|
12417 |
public void clear() {
|
|
|
12418 |
}
|
|
|
12419 |
|
|
|
12420 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
12421 |
switch (field) {
|
|
|
12422 |
}
|
|
|
12423 |
}
|
|
|
12424 |
|
|
|
12425 |
public Object getFieldValue(_Fields field) {
|
|
|
12426 |
switch (field) {
|
|
|
12427 |
}
|
|
|
12428 |
throw new IllegalStateException();
|
|
|
12429 |
}
|
|
|
12430 |
|
|
|
12431 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
12432 |
public boolean isSet(_Fields field) {
|
|
|
12433 |
if (field == null) {
|
|
|
12434 |
throw new IllegalArgumentException();
|
|
|
12435 |
}
|
|
|
12436 |
|
|
|
12437 |
switch (field) {
|
|
|
12438 |
}
|
|
|
12439 |
throw new IllegalStateException();
|
|
|
12440 |
}
|
|
|
12441 |
|
|
|
12442 |
@Override
|
|
|
12443 |
public boolean equals(Object that) {
|
|
|
12444 |
if (that == null)
|
|
|
12445 |
return false;
|
|
|
12446 |
if (that instanceof addPincode_result)
|
|
|
12447 |
return this.equals((addPincode_result)that);
|
|
|
12448 |
return false;
|
|
|
12449 |
}
|
|
|
12450 |
|
|
|
12451 |
public boolean equals(addPincode_result that) {
|
|
|
12452 |
if (that == null)
|
|
|
12453 |
return false;
|
|
|
12454 |
|
|
|
12455 |
return true;
|
|
|
12456 |
}
|
|
|
12457 |
|
|
|
12458 |
@Override
|
|
|
12459 |
public int hashCode() {
|
|
|
12460 |
return 0;
|
|
|
12461 |
}
|
|
|
12462 |
|
|
|
12463 |
public int compareTo(addPincode_result other) {
|
|
|
12464 |
if (!getClass().equals(other.getClass())) {
|
|
|
12465 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
12466 |
}
|
|
|
12467 |
|
|
|
12468 |
int lastComparison = 0;
|
|
|
12469 |
addPincode_result typedOther = (addPincode_result)other;
|
|
|
12470 |
|
|
|
12471 |
return 0;
|
|
|
12472 |
}
|
|
|
12473 |
|
|
|
12474 |
public _Fields fieldForId(int fieldId) {
|
|
|
12475 |
return _Fields.findByThriftId(fieldId);
|
|
|
12476 |
}
|
|
|
12477 |
|
|
|
12478 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
12479 |
org.apache.thrift.protocol.TField field;
|
|
|
12480 |
iprot.readStructBegin();
|
|
|
12481 |
while (true)
|
|
|
12482 |
{
|
|
|
12483 |
field = iprot.readFieldBegin();
|
|
|
12484 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
12485 |
break;
|
|
|
12486 |
}
|
|
|
12487 |
switch (field.id) {
|
|
|
12488 |
default:
|
|
|
12489 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
12490 |
}
|
|
|
12491 |
iprot.readFieldEnd();
|
|
|
12492 |
}
|
|
|
12493 |
iprot.readStructEnd();
|
|
|
12494 |
validate();
|
|
|
12495 |
}
|
|
|
12496 |
|
|
|
12497 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
12498 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
12499 |
|
|
|
12500 |
oprot.writeFieldStop();
|
|
|
12501 |
oprot.writeStructEnd();
|
|
|
12502 |
}
|
|
|
12503 |
|
|
|
12504 |
@Override
|
|
|
12505 |
public String toString() {
|
|
|
12506 |
StringBuilder sb = new StringBuilder("addPincode_result(");
|
|
|
12507 |
boolean first = true;
|
|
|
12508 |
|
|
|
12509 |
sb.append(")");
|
|
|
12510 |
return sb.toString();
|
|
|
12511 |
}
|
|
|
12512 |
|
|
|
12513 |
public void validate() throws org.apache.thrift.TException {
|
|
|
12514 |
// check for required fields
|
|
|
12515 |
}
|
|
|
12516 |
|
|
|
12517 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
12518 |
try {
|
|
|
12519 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
12520 |
} catch (org.apache.thrift.TException te) {
|
|
|
12521 |
throw new java.io.IOException(te);
|
|
|
12522 |
}
|
|
|
12523 |
}
|
|
|
12524 |
|
|
|
12525 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
12526 |
try {
|
|
|
12527 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
12528 |
} catch (org.apache.thrift.TException te) {
|
|
|
12529 |
throw new java.io.IOException(te);
|
|
|
12530 |
}
|
|
|
12531 |
}
|
|
|
12532 |
|
|
|
12533 |
}
|
|
|
12534 |
|
|
|
12535 |
public static class updatePincode_args implements org.apache.thrift.TBase<updatePincode_args, updatePincode_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
12536 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePincode_args");
|
|
|
12537 |
|
|
|
12538 |
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);
|
|
|
12539 |
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);
|
|
|
12540 |
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);
|
|
|
12541 |
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 |
12542 |
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 |
12543 |
|
|
|
12544 |
private long providerId; // required
|
|
|
12545 |
private String pincode; // required
|
|
|
12546 |
private boolean exp; // required
|
|
|
12547 |
private boolean cod; // required
|
| 6524 |
rajveer |
12548 |
private boolean otgAvailable; // required
|
| 6322 |
amar.kumar |
12549 |
|
|
|
12550 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
12551 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
12552 |
PROVIDER_ID((short)1, "providerId"),
|
|
|
12553 |
PINCODE((short)2, "pincode"),
|
|
|
12554 |
EXP((short)3, "exp"),
|
| 6524 |
rajveer |
12555 |
COD((short)4, "cod"),
|
|
|
12556 |
OTG_AVAILABLE((short)5, "otgAvailable");
|
| 6322 |
amar.kumar |
12557 |
|
|
|
12558 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
12559 |
|
|
|
12560 |
static {
|
|
|
12561 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
12562 |
byName.put(field.getFieldName(), field);
|
|
|
12563 |
}
|
|
|
12564 |
}
|
|
|
12565 |
|
|
|
12566 |
/**
|
|
|
12567 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
12568 |
*/
|
|
|
12569 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
12570 |
switch(fieldId) {
|
|
|
12571 |
case 1: // PROVIDER_ID
|
|
|
12572 |
return PROVIDER_ID;
|
|
|
12573 |
case 2: // PINCODE
|
|
|
12574 |
return PINCODE;
|
|
|
12575 |
case 3: // EXP
|
|
|
12576 |
return EXP;
|
|
|
12577 |
case 4: // COD
|
|
|
12578 |
return COD;
|
| 6524 |
rajveer |
12579 |
case 5: // OTG_AVAILABLE
|
|
|
12580 |
return OTG_AVAILABLE;
|
| 6322 |
amar.kumar |
12581 |
default:
|
|
|
12582 |
return null;
|
|
|
12583 |
}
|
|
|
12584 |
}
|
|
|
12585 |
|
|
|
12586 |
/**
|
|
|
12587 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
12588 |
* if it is not found.
|
|
|
12589 |
*/
|
|
|
12590 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
12591 |
_Fields fields = findByThriftId(fieldId);
|
|
|
12592 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
12593 |
return fields;
|
|
|
12594 |
}
|
|
|
12595 |
|
|
|
12596 |
/**
|
|
|
12597 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
12598 |
*/
|
|
|
12599 |
public static _Fields findByName(String name) {
|
|
|
12600 |
return byName.get(name);
|
|
|
12601 |
}
|
|
|
12602 |
|
|
|
12603 |
private final short _thriftId;
|
|
|
12604 |
private final String _fieldName;
|
|
|
12605 |
|
|
|
12606 |
_Fields(short thriftId, String fieldName) {
|
|
|
12607 |
_thriftId = thriftId;
|
|
|
12608 |
_fieldName = fieldName;
|
|
|
12609 |
}
|
|
|
12610 |
|
|
|
12611 |
public short getThriftFieldId() {
|
|
|
12612 |
return _thriftId;
|
|
|
12613 |
}
|
|
|
12614 |
|
|
|
12615 |
public String getFieldName() {
|
|
|
12616 |
return _fieldName;
|
|
|
12617 |
}
|
|
|
12618 |
}
|
|
|
12619 |
|
|
|
12620 |
// isset id assignments
|
|
|
12621 |
private static final int __PROVIDERID_ISSET_ID = 0;
|
|
|
12622 |
private static final int __EXP_ISSET_ID = 1;
|
|
|
12623 |
private static final int __COD_ISSET_ID = 2;
|
| 6524 |
rajveer |
12624 |
private static final int __OTGAVAILABLE_ISSET_ID = 3;
|
|
|
12625 |
private BitSet __isset_bit_vector = new BitSet(4);
|
| 6322 |
amar.kumar |
12626 |
|
|
|
12627 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
12628 |
static {
|
|
|
12629 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
12630 |
tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
12631 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
12632 |
tmpMap.put(_Fields.PINCODE, new org.apache.thrift.meta_data.FieldMetaData("pincode", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
12633 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
12634 |
tmpMap.put(_Fields.EXP, new org.apache.thrift.meta_data.FieldMetaData("exp", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
12635 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
|
|
12636 |
tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
12637 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
| 6524 |
rajveer |
12638 |
tmpMap.put(_Fields.OTG_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("otgAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
12639 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
| 6322 |
amar.kumar |
12640 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
12641 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_args.class, metaDataMap);
|
|
|
12642 |
}
|
|
|
12643 |
|
|
|
12644 |
public updatePincode_args() {
|
|
|
12645 |
}
|
|
|
12646 |
|
|
|
12647 |
public updatePincode_args(
|
|
|
12648 |
long providerId,
|
|
|
12649 |
String pincode,
|
|
|
12650 |
boolean exp,
|
| 6524 |
rajveer |
12651 |
boolean cod,
|
|
|
12652 |
boolean otgAvailable)
|
| 6322 |
amar.kumar |
12653 |
{
|
|
|
12654 |
this();
|
|
|
12655 |
this.providerId = providerId;
|
|
|
12656 |
setProviderIdIsSet(true);
|
|
|
12657 |
this.pincode = pincode;
|
|
|
12658 |
this.exp = exp;
|
|
|
12659 |
setExpIsSet(true);
|
|
|
12660 |
this.cod = cod;
|
|
|
12661 |
setCodIsSet(true);
|
| 6524 |
rajveer |
12662 |
this.otgAvailable = otgAvailable;
|
|
|
12663 |
setOtgAvailableIsSet(true);
|
| 6322 |
amar.kumar |
12664 |
}
|
|
|
12665 |
|
|
|
12666 |
/**
|
|
|
12667 |
* Performs a deep copy on <i>other</i>.
|
|
|
12668 |
*/
|
|
|
12669 |
public updatePincode_args(updatePincode_args other) {
|
|
|
12670 |
__isset_bit_vector.clear();
|
|
|
12671 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
12672 |
this.providerId = other.providerId;
|
|
|
12673 |
if (other.isSetPincode()) {
|
|
|
12674 |
this.pincode = other.pincode;
|
|
|
12675 |
}
|
|
|
12676 |
this.exp = other.exp;
|
|
|
12677 |
this.cod = other.cod;
|
| 6524 |
rajveer |
12678 |
this.otgAvailable = other.otgAvailable;
|
| 6322 |
amar.kumar |
12679 |
}
|
|
|
12680 |
|
|
|
12681 |
public updatePincode_args deepCopy() {
|
|
|
12682 |
return new updatePincode_args(this);
|
|
|
12683 |
}
|
|
|
12684 |
|
|
|
12685 |
@Override
|
|
|
12686 |
public void clear() {
|
|
|
12687 |
setProviderIdIsSet(false);
|
|
|
12688 |
this.providerId = 0;
|
|
|
12689 |
this.pincode = null;
|
|
|
12690 |
setExpIsSet(false);
|
|
|
12691 |
this.exp = false;
|
|
|
12692 |
setCodIsSet(false);
|
|
|
12693 |
this.cod = false;
|
| 6524 |
rajveer |
12694 |
setOtgAvailableIsSet(false);
|
|
|
12695 |
this.otgAvailable = false;
|
| 6322 |
amar.kumar |
12696 |
}
|
|
|
12697 |
|
|
|
12698 |
public long getProviderId() {
|
|
|
12699 |
return this.providerId;
|
|
|
12700 |
}
|
|
|
12701 |
|
|
|
12702 |
public void setProviderId(long providerId) {
|
|
|
12703 |
this.providerId = providerId;
|
|
|
12704 |
setProviderIdIsSet(true);
|
|
|
12705 |
}
|
|
|
12706 |
|
|
|
12707 |
public void unsetProviderId() {
|
|
|
12708 |
__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
|
|
|
12709 |
}
|
|
|
12710 |
|
|
|
12711 |
/** Returns true if field providerId is set (has been assigned a value) and false otherwise */
|
|
|
12712 |
public boolean isSetProviderId() {
|
|
|
12713 |
return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
|
|
|
12714 |
}
|
|
|
12715 |
|
|
|
12716 |
public void setProviderIdIsSet(boolean value) {
|
|
|
12717 |
__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
|
|
|
12718 |
}
|
|
|
12719 |
|
|
|
12720 |
public String getPincode() {
|
|
|
12721 |
return this.pincode;
|
|
|
12722 |
}
|
|
|
12723 |
|
|
|
12724 |
public void setPincode(String pincode) {
|
|
|
12725 |
this.pincode = pincode;
|
|
|
12726 |
}
|
|
|
12727 |
|
|
|
12728 |
public void unsetPincode() {
|
|
|
12729 |
this.pincode = null;
|
|
|
12730 |
}
|
|
|
12731 |
|
|
|
12732 |
/** Returns true if field pincode is set (has been assigned a value) and false otherwise */
|
|
|
12733 |
public boolean isSetPincode() {
|
|
|
12734 |
return this.pincode != null;
|
|
|
12735 |
}
|
|
|
12736 |
|
|
|
12737 |
public void setPincodeIsSet(boolean value) {
|
|
|
12738 |
if (!value) {
|
|
|
12739 |
this.pincode = null;
|
|
|
12740 |
}
|
|
|
12741 |
}
|
|
|
12742 |
|
|
|
12743 |
public boolean isExp() {
|
|
|
12744 |
return this.exp;
|
|
|
12745 |
}
|
|
|
12746 |
|
|
|
12747 |
public void setExp(boolean exp) {
|
|
|
12748 |
this.exp = exp;
|
|
|
12749 |
setExpIsSet(true);
|
|
|
12750 |
}
|
|
|
12751 |
|
|
|
12752 |
public void unsetExp() {
|
|
|
12753 |
__isset_bit_vector.clear(__EXP_ISSET_ID);
|
|
|
12754 |
}
|
|
|
12755 |
|
|
|
12756 |
/** Returns true if field exp is set (has been assigned a value) and false otherwise */
|
|
|
12757 |
public boolean isSetExp() {
|
|
|
12758 |
return __isset_bit_vector.get(__EXP_ISSET_ID);
|
|
|
12759 |
}
|
|
|
12760 |
|
|
|
12761 |
public void setExpIsSet(boolean value) {
|
|
|
12762 |
__isset_bit_vector.set(__EXP_ISSET_ID, value);
|
|
|
12763 |
}
|
|
|
12764 |
|
|
|
12765 |
public boolean isCod() {
|
|
|
12766 |
return this.cod;
|
|
|
12767 |
}
|
|
|
12768 |
|
|
|
12769 |
public void setCod(boolean cod) {
|
|
|
12770 |
this.cod = cod;
|
|
|
12771 |
setCodIsSet(true);
|
|
|
12772 |
}
|
|
|
12773 |
|
|
|
12774 |
public void unsetCod() {
|
|
|
12775 |
__isset_bit_vector.clear(__COD_ISSET_ID);
|
|
|
12776 |
}
|
|
|
12777 |
|
|
|
12778 |
/** Returns true if field cod is set (has been assigned a value) and false otherwise */
|
|
|
12779 |
public boolean isSetCod() {
|
|
|
12780 |
return __isset_bit_vector.get(__COD_ISSET_ID);
|
|
|
12781 |
}
|
|
|
12782 |
|
|
|
12783 |
public void setCodIsSet(boolean value) {
|
|
|
12784 |
__isset_bit_vector.set(__COD_ISSET_ID, value);
|
|
|
12785 |
}
|
|
|
12786 |
|
| 6524 |
rajveer |
12787 |
public boolean isOtgAvailable() {
|
|
|
12788 |
return this.otgAvailable;
|
|
|
12789 |
}
|
|
|
12790 |
|
|
|
12791 |
public void setOtgAvailable(boolean otgAvailable) {
|
|
|
12792 |
this.otgAvailable = otgAvailable;
|
|
|
12793 |
setOtgAvailableIsSet(true);
|
|
|
12794 |
}
|
|
|
12795 |
|
|
|
12796 |
public void unsetOtgAvailable() {
|
|
|
12797 |
__isset_bit_vector.clear(__OTGAVAILABLE_ISSET_ID);
|
|
|
12798 |
}
|
|
|
12799 |
|
|
|
12800 |
/** Returns true if field otgAvailable is set (has been assigned a value) and false otherwise */
|
|
|
12801 |
public boolean isSetOtgAvailable() {
|
|
|
12802 |
return __isset_bit_vector.get(__OTGAVAILABLE_ISSET_ID);
|
|
|
12803 |
}
|
|
|
12804 |
|
|
|
12805 |
public void setOtgAvailableIsSet(boolean value) {
|
|
|
12806 |
__isset_bit_vector.set(__OTGAVAILABLE_ISSET_ID, value);
|
|
|
12807 |
}
|
|
|
12808 |
|
| 6322 |
amar.kumar |
12809 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
12810 |
switch (field) {
|
|
|
12811 |
case PROVIDER_ID:
|
|
|
12812 |
if (value == null) {
|
|
|
12813 |
unsetProviderId();
|
|
|
12814 |
} else {
|
|
|
12815 |
setProviderId((Long)value);
|
|
|
12816 |
}
|
|
|
12817 |
break;
|
|
|
12818 |
|
|
|
12819 |
case PINCODE:
|
|
|
12820 |
if (value == null) {
|
|
|
12821 |
unsetPincode();
|
|
|
12822 |
} else {
|
|
|
12823 |
setPincode((String)value);
|
|
|
12824 |
}
|
|
|
12825 |
break;
|
|
|
12826 |
|
|
|
12827 |
case EXP:
|
|
|
12828 |
if (value == null) {
|
|
|
12829 |
unsetExp();
|
|
|
12830 |
} else {
|
|
|
12831 |
setExp((Boolean)value);
|
|
|
12832 |
}
|
|
|
12833 |
break;
|
|
|
12834 |
|
|
|
12835 |
case COD:
|
|
|
12836 |
if (value == null) {
|
|
|
12837 |
unsetCod();
|
|
|
12838 |
} else {
|
|
|
12839 |
setCod((Boolean)value);
|
|
|
12840 |
}
|
|
|
12841 |
break;
|
|
|
12842 |
|
| 6524 |
rajveer |
12843 |
case OTG_AVAILABLE:
|
|
|
12844 |
if (value == null) {
|
|
|
12845 |
unsetOtgAvailable();
|
|
|
12846 |
} else {
|
|
|
12847 |
setOtgAvailable((Boolean)value);
|
|
|
12848 |
}
|
|
|
12849 |
break;
|
|
|
12850 |
|
| 6322 |
amar.kumar |
12851 |
}
|
|
|
12852 |
}
|
|
|
12853 |
|
|
|
12854 |
public Object getFieldValue(_Fields field) {
|
|
|
12855 |
switch (field) {
|
|
|
12856 |
case PROVIDER_ID:
|
|
|
12857 |
return Long.valueOf(getProviderId());
|
|
|
12858 |
|
|
|
12859 |
case PINCODE:
|
|
|
12860 |
return getPincode();
|
|
|
12861 |
|
|
|
12862 |
case EXP:
|
|
|
12863 |
return Boolean.valueOf(isExp());
|
|
|
12864 |
|
|
|
12865 |
case COD:
|
|
|
12866 |
return Boolean.valueOf(isCod());
|
|
|
12867 |
|
| 6524 |
rajveer |
12868 |
case OTG_AVAILABLE:
|
|
|
12869 |
return Boolean.valueOf(isOtgAvailable());
|
|
|
12870 |
|
| 6322 |
amar.kumar |
12871 |
}
|
|
|
12872 |
throw new IllegalStateException();
|
|
|
12873 |
}
|
|
|
12874 |
|
|
|
12875 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
12876 |
public boolean isSet(_Fields field) {
|
|
|
12877 |
if (field == null) {
|
|
|
12878 |
throw new IllegalArgumentException();
|
|
|
12879 |
}
|
|
|
12880 |
|
|
|
12881 |
switch (field) {
|
|
|
12882 |
case PROVIDER_ID:
|
|
|
12883 |
return isSetProviderId();
|
|
|
12884 |
case PINCODE:
|
|
|
12885 |
return isSetPincode();
|
|
|
12886 |
case EXP:
|
|
|
12887 |
return isSetExp();
|
|
|
12888 |
case COD:
|
|
|
12889 |
return isSetCod();
|
| 6524 |
rajveer |
12890 |
case OTG_AVAILABLE:
|
|
|
12891 |
return isSetOtgAvailable();
|
| 6322 |
amar.kumar |
12892 |
}
|
|
|
12893 |
throw new IllegalStateException();
|
|
|
12894 |
}
|
|
|
12895 |
|
|
|
12896 |
@Override
|
|
|
12897 |
public boolean equals(Object that) {
|
|
|
12898 |
if (that == null)
|
|
|
12899 |
return false;
|
|
|
12900 |
if (that instanceof updatePincode_args)
|
|
|
12901 |
return this.equals((updatePincode_args)that);
|
|
|
12902 |
return false;
|
|
|
12903 |
}
|
|
|
12904 |
|
|
|
12905 |
public boolean equals(updatePincode_args that) {
|
|
|
12906 |
if (that == null)
|
|
|
12907 |
return false;
|
|
|
12908 |
|
|
|
12909 |
boolean this_present_providerId = true;
|
|
|
12910 |
boolean that_present_providerId = true;
|
|
|
12911 |
if (this_present_providerId || that_present_providerId) {
|
|
|
12912 |
if (!(this_present_providerId && that_present_providerId))
|
|
|
12913 |
return false;
|
|
|
12914 |
if (this.providerId != that.providerId)
|
|
|
12915 |
return false;
|
|
|
12916 |
}
|
|
|
12917 |
|
|
|
12918 |
boolean this_present_pincode = true && this.isSetPincode();
|
|
|
12919 |
boolean that_present_pincode = true && that.isSetPincode();
|
|
|
12920 |
if (this_present_pincode || that_present_pincode) {
|
|
|
12921 |
if (!(this_present_pincode && that_present_pincode))
|
|
|
12922 |
return false;
|
|
|
12923 |
if (!this.pincode.equals(that.pincode))
|
|
|
12924 |
return false;
|
|
|
12925 |
}
|
|
|
12926 |
|
|
|
12927 |
boolean this_present_exp = true;
|
|
|
12928 |
boolean that_present_exp = true;
|
|
|
12929 |
if (this_present_exp || that_present_exp) {
|
|
|
12930 |
if (!(this_present_exp && that_present_exp))
|
|
|
12931 |
return false;
|
|
|
12932 |
if (this.exp != that.exp)
|
|
|
12933 |
return false;
|
|
|
12934 |
}
|
|
|
12935 |
|
|
|
12936 |
boolean this_present_cod = true;
|
|
|
12937 |
boolean that_present_cod = true;
|
|
|
12938 |
if (this_present_cod || that_present_cod) {
|
|
|
12939 |
if (!(this_present_cod && that_present_cod))
|
|
|
12940 |
return false;
|
|
|
12941 |
if (this.cod != that.cod)
|
|
|
12942 |
return false;
|
|
|
12943 |
}
|
|
|
12944 |
|
| 6524 |
rajveer |
12945 |
boolean this_present_otgAvailable = true;
|
|
|
12946 |
boolean that_present_otgAvailable = true;
|
|
|
12947 |
if (this_present_otgAvailable || that_present_otgAvailable) {
|
|
|
12948 |
if (!(this_present_otgAvailable && that_present_otgAvailable))
|
|
|
12949 |
return false;
|
|
|
12950 |
if (this.otgAvailable != that.otgAvailable)
|
|
|
12951 |
return false;
|
|
|
12952 |
}
|
|
|
12953 |
|
| 6322 |
amar.kumar |
12954 |
return true;
|
|
|
12955 |
}
|
|
|
12956 |
|
|
|
12957 |
@Override
|
|
|
12958 |
public int hashCode() {
|
|
|
12959 |
return 0;
|
|
|
12960 |
}
|
|
|
12961 |
|
|
|
12962 |
public int compareTo(updatePincode_args other) {
|
|
|
12963 |
if (!getClass().equals(other.getClass())) {
|
|
|
12964 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
12965 |
}
|
|
|
12966 |
|
|
|
12967 |
int lastComparison = 0;
|
|
|
12968 |
updatePincode_args typedOther = (updatePincode_args)other;
|
|
|
12969 |
|
|
|
12970 |
lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
|
|
|
12971 |
if (lastComparison != 0) {
|
|
|
12972 |
return lastComparison;
|
|
|
12973 |
}
|
|
|
12974 |
if (isSetProviderId()) {
|
|
|
12975 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
|
|
|
12976 |
if (lastComparison != 0) {
|
|
|
12977 |
return lastComparison;
|
|
|
12978 |
}
|
|
|
12979 |
}
|
|
|
12980 |
lastComparison = Boolean.valueOf(isSetPincode()).compareTo(typedOther.isSetPincode());
|
|
|
12981 |
if (lastComparison != 0) {
|
|
|
12982 |
return lastComparison;
|
|
|
12983 |
}
|
|
|
12984 |
if (isSetPincode()) {
|
|
|
12985 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pincode, typedOther.pincode);
|
|
|
12986 |
if (lastComparison != 0) {
|
|
|
12987 |
return lastComparison;
|
|
|
12988 |
}
|
|
|
12989 |
}
|
|
|
12990 |
lastComparison = Boolean.valueOf(isSetExp()).compareTo(typedOther.isSetExp());
|
|
|
12991 |
if (lastComparison != 0) {
|
|
|
12992 |
return lastComparison;
|
|
|
12993 |
}
|
|
|
12994 |
if (isSetExp()) {
|
|
|
12995 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.exp, typedOther.exp);
|
|
|
12996 |
if (lastComparison != 0) {
|
|
|
12997 |
return lastComparison;
|
|
|
12998 |
}
|
|
|
12999 |
}
|
|
|
13000 |
lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
|
|
|
13001 |
if (lastComparison != 0) {
|
|
|
13002 |
return lastComparison;
|
|
|
13003 |
}
|
|
|
13004 |
if (isSetCod()) {
|
|
|
13005 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
|
|
|
13006 |
if (lastComparison != 0) {
|
|
|
13007 |
return lastComparison;
|
|
|
13008 |
}
|
|
|
13009 |
}
|
| 6524 |
rajveer |
13010 |
lastComparison = Boolean.valueOf(isSetOtgAvailable()).compareTo(typedOther.isSetOtgAvailable());
|
|
|
13011 |
if (lastComparison != 0) {
|
|
|
13012 |
return lastComparison;
|
|
|
13013 |
}
|
|
|
13014 |
if (isSetOtgAvailable()) {
|
|
|
13015 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otgAvailable, typedOther.otgAvailable);
|
|
|
13016 |
if (lastComparison != 0) {
|
|
|
13017 |
return lastComparison;
|
|
|
13018 |
}
|
|
|
13019 |
}
|
| 6322 |
amar.kumar |
13020 |
return 0;
|
|
|
13021 |
}
|
|
|
13022 |
|
|
|
13023 |
public _Fields fieldForId(int fieldId) {
|
|
|
13024 |
return _Fields.findByThriftId(fieldId);
|
|
|
13025 |
}
|
|
|
13026 |
|
|
|
13027 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
13028 |
org.apache.thrift.protocol.TField field;
|
|
|
13029 |
iprot.readStructBegin();
|
|
|
13030 |
while (true)
|
|
|
13031 |
{
|
|
|
13032 |
field = iprot.readFieldBegin();
|
|
|
13033 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
13034 |
break;
|
|
|
13035 |
}
|
|
|
13036 |
switch (field.id) {
|
|
|
13037 |
case 1: // PROVIDER_ID
|
|
|
13038 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
13039 |
this.providerId = iprot.readI64();
|
|
|
13040 |
setProviderIdIsSet(true);
|
|
|
13041 |
} else {
|
|
|
13042 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13043 |
}
|
|
|
13044 |
break;
|
|
|
13045 |
case 2: // PINCODE
|
|
|
13046 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
13047 |
this.pincode = iprot.readString();
|
|
|
13048 |
} else {
|
|
|
13049 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13050 |
}
|
|
|
13051 |
break;
|
|
|
13052 |
case 3: // EXP
|
|
|
13053 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
13054 |
this.exp = iprot.readBool();
|
|
|
13055 |
setExpIsSet(true);
|
|
|
13056 |
} else {
|
|
|
13057 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13058 |
}
|
|
|
13059 |
break;
|
|
|
13060 |
case 4: // COD
|
|
|
13061 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
13062 |
this.cod = iprot.readBool();
|
|
|
13063 |
setCodIsSet(true);
|
|
|
13064 |
} else {
|
|
|
13065 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13066 |
}
|
|
|
13067 |
break;
|
| 6524 |
rajveer |
13068 |
case 5: // OTG_AVAILABLE
|
|
|
13069 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
13070 |
this.otgAvailable = iprot.readBool();
|
|
|
13071 |
setOtgAvailableIsSet(true);
|
|
|
13072 |
} else {
|
|
|
13073 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13074 |
}
|
|
|
13075 |
break;
|
| 6322 |
amar.kumar |
13076 |
default:
|
|
|
13077 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13078 |
}
|
|
|
13079 |
iprot.readFieldEnd();
|
|
|
13080 |
}
|
|
|
13081 |
iprot.readStructEnd();
|
|
|
13082 |
validate();
|
|
|
13083 |
}
|
|
|
13084 |
|
|
|
13085 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
13086 |
validate();
|
|
|
13087 |
|
|
|
13088 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
13089 |
oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
|
|
|
13090 |
oprot.writeI64(this.providerId);
|
|
|
13091 |
oprot.writeFieldEnd();
|
|
|
13092 |
if (this.pincode != null) {
|
|
|
13093 |
oprot.writeFieldBegin(PINCODE_FIELD_DESC);
|
|
|
13094 |
oprot.writeString(this.pincode);
|
|
|
13095 |
oprot.writeFieldEnd();
|
|
|
13096 |
}
|
|
|
13097 |
oprot.writeFieldBegin(EXP_FIELD_DESC);
|
|
|
13098 |
oprot.writeBool(this.exp);
|
|
|
13099 |
oprot.writeFieldEnd();
|
|
|
13100 |
oprot.writeFieldBegin(COD_FIELD_DESC);
|
|
|
13101 |
oprot.writeBool(this.cod);
|
|
|
13102 |
oprot.writeFieldEnd();
|
| 6524 |
rajveer |
13103 |
oprot.writeFieldBegin(OTG_AVAILABLE_FIELD_DESC);
|
|
|
13104 |
oprot.writeBool(this.otgAvailable);
|
|
|
13105 |
oprot.writeFieldEnd();
|
| 6322 |
amar.kumar |
13106 |
oprot.writeFieldStop();
|
|
|
13107 |
oprot.writeStructEnd();
|
|
|
13108 |
}
|
|
|
13109 |
|
|
|
13110 |
@Override
|
|
|
13111 |
public String toString() {
|
|
|
13112 |
StringBuilder sb = new StringBuilder("updatePincode_args(");
|
|
|
13113 |
boolean first = true;
|
|
|
13114 |
|
|
|
13115 |
sb.append("providerId:");
|
|
|
13116 |
sb.append(this.providerId);
|
|
|
13117 |
first = false;
|
|
|
13118 |
if (!first) sb.append(", ");
|
|
|
13119 |
sb.append("pincode:");
|
|
|
13120 |
if (this.pincode == null) {
|
|
|
13121 |
sb.append("null");
|
|
|
13122 |
} else {
|
|
|
13123 |
sb.append(this.pincode);
|
|
|
13124 |
}
|
|
|
13125 |
first = false;
|
|
|
13126 |
if (!first) sb.append(", ");
|
|
|
13127 |
sb.append("exp:");
|
|
|
13128 |
sb.append(this.exp);
|
|
|
13129 |
first = false;
|
|
|
13130 |
if (!first) sb.append(", ");
|
|
|
13131 |
sb.append("cod:");
|
|
|
13132 |
sb.append(this.cod);
|
|
|
13133 |
first = false;
|
| 6524 |
rajveer |
13134 |
if (!first) sb.append(", ");
|
|
|
13135 |
sb.append("otgAvailable:");
|
|
|
13136 |
sb.append(this.otgAvailable);
|
|
|
13137 |
first = false;
|
| 6322 |
amar.kumar |
13138 |
sb.append(")");
|
|
|
13139 |
return sb.toString();
|
|
|
13140 |
}
|
|
|
13141 |
|
|
|
13142 |
public void validate() throws org.apache.thrift.TException {
|
|
|
13143 |
// check for required fields
|
|
|
13144 |
}
|
|
|
13145 |
|
|
|
13146 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
13147 |
try {
|
|
|
13148 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
13149 |
} catch (org.apache.thrift.TException te) {
|
|
|
13150 |
throw new java.io.IOException(te);
|
|
|
13151 |
}
|
|
|
13152 |
}
|
|
|
13153 |
|
|
|
13154 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
13155 |
try {
|
|
|
13156 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
13157 |
__isset_bit_vector = new BitSet(1);
|
|
|
13158 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
13159 |
} catch (org.apache.thrift.TException te) {
|
|
|
13160 |
throw new java.io.IOException(te);
|
|
|
13161 |
}
|
|
|
13162 |
}
|
|
|
13163 |
|
|
|
13164 |
}
|
|
|
13165 |
|
|
|
13166 |
public static class updatePincode_result implements org.apache.thrift.TBase<updatePincode_result, updatePincode_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
13167 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePincode_result");
|
|
|
13168 |
|
|
|
13169 |
|
|
|
13170 |
|
|
|
13171 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
13172 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
13173 |
;
|
|
|
13174 |
|
|
|
13175 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
13176 |
|
|
|
13177 |
static {
|
|
|
13178 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
13179 |
byName.put(field.getFieldName(), field);
|
|
|
13180 |
}
|
|
|
13181 |
}
|
|
|
13182 |
|
|
|
13183 |
/**
|
|
|
13184 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
13185 |
*/
|
|
|
13186 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
13187 |
switch(fieldId) {
|
|
|
13188 |
default:
|
|
|
13189 |
return null;
|
|
|
13190 |
}
|
|
|
13191 |
}
|
|
|
13192 |
|
|
|
13193 |
/**
|
|
|
13194 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
13195 |
* if it is not found.
|
|
|
13196 |
*/
|
|
|
13197 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
13198 |
_Fields fields = findByThriftId(fieldId);
|
|
|
13199 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
13200 |
return fields;
|
|
|
13201 |
}
|
|
|
13202 |
|
|
|
13203 |
/**
|
|
|
13204 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
13205 |
*/
|
|
|
13206 |
public static _Fields findByName(String name) {
|
|
|
13207 |
return byName.get(name);
|
|
|
13208 |
}
|
|
|
13209 |
|
|
|
13210 |
private final short _thriftId;
|
|
|
13211 |
private final String _fieldName;
|
|
|
13212 |
|
|
|
13213 |
_Fields(short thriftId, String fieldName) {
|
|
|
13214 |
_thriftId = thriftId;
|
|
|
13215 |
_fieldName = fieldName;
|
|
|
13216 |
}
|
|
|
13217 |
|
|
|
13218 |
public short getThriftFieldId() {
|
|
|
13219 |
return _thriftId;
|
|
|
13220 |
}
|
|
|
13221 |
|
|
|
13222 |
public String getFieldName() {
|
|
|
13223 |
return _fieldName;
|
|
|
13224 |
}
|
|
|
13225 |
}
|
|
|
13226 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
13227 |
static {
|
|
|
13228 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
13229 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
13230 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePincode_result.class, metaDataMap);
|
|
|
13231 |
}
|
|
|
13232 |
|
|
|
13233 |
public updatePincode_result() {
|
|
|
13234 |
}
|
|
|
13235 |
|
|
|
13236 |
/**
|
|
|
13237 |
* Performs a deep copy on <i>other</i>.
|
|
|
13238 |
*/
|
|
|
13239 |
public updatePincode_result(updatePincode_result other) {
|
|
|
13240 |
}
|
|
|
13241 |
|
|
|
13242 |
public updatePincode_result deepCopy() {
|
|
|
13243 |
return new updatePincode_result(this);
|
|
|
13244 |
}
|
|
|
13245 |
|
|
|
13246 |
@Override
|
|
|
13247 |
public void clear() {
|
|
|
13248 |
}
|
|
|
13249 |
|
|
|
13250 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
13251 |
switch (field) {
|
|
|
13252 |
}
|
|
|
13253 |
}
|
|
|
13254 |
|
|
|
13255 |
public Object getFieldValue(_Fields field) {
|
|
|
13256 |
switch (field) {
|
|
|
13257 |
}
|
|
|
13258 |
throw new IllegalStateException();
|
|
|
13259 |
}
|
|
|
13260 |
|
|
|
13261 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
13262 |
public boolean isSet(_Fields field) {
|
|
|
13263 |
if (field == null) {
|
|
|
13264 |
throw new IllegalArgumentException();
|
|
|
13265 |
}
|
|
|
13266 |
|
|
|
13267 |
switch (field) {
|
|
|
13268 |
}
|
|
|
13269 |
throw new IllegalStateException();
|
|
|
13270 |
}
|
|
|
13271 |
|
|
|
13272 |
@Override
|
|
|
13273 |
public boolean equals(Object that) {
|
|
|
13274 |
if (that == null)
|
|
|
13275 |
return false;
|
|
|
13276 |
if (that instanceof updatePincode_result)
|
|
|
13277 |
return this.equals((updatePincode_result)that);
|
|
|
13278 |
return false;
|
|
|
13279 |
}
|
|
|
13280 |
|
|
|
13281 |
public boolean equals(updatePincode_result that) {
|
|
|
13282 |
if (that == null)
|
|
|
13283 |
return false;
|
|
|
13284 |
|
|
|
13285 |
return true;
|
|
|
13286 |
}
|
|
|
13287 |
|
|
|
13288 |
@Override
|
|
|
13289 |
public int hashCode() {
|
|
|
13290 |
return 0;
|
|
|
13291 |
}
|
|
|
13292 |
|
|
|
13293 |
public int compareTo(updatePincode_result other) {
|
|
|
13294 |
if (!getClass().equals(other.getClass())) {
|
|
|
13295 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
13296 |
}
|
|
|
13297 |
|
|
|
13298 |
int lastComparison = 0;
|
|
|
13299 |
updatePincode_result typedOther = (updatePincode_result)other;
|
|
|
13300 |
|
|
|
13301 |
return 0;
|
|
|
13302 |
}
|
|
|
13303 |
|
|
|
13304 |
public _Fields fieldForId(int fieldId) {
|
|
|
13305 |
return _Fields.findByThriftId(fieldId);
|
|
|
13306 |
}
|
|
|
13307 |
|
|
|
13308 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
13309 |
org.apache.thrift.protocol.TField field;
|
|
|
13310 |
iprot.readStructBegin();
|
|
|
13311 |
while (true)
|
|
|
13312 |
{
|
|
|
13313 |
field = iprot.readFieldBegin();
|
|
|
13314 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
13315 |
break;
|
|
|
13316 |
}
|
|
|
13317 |
switch (field.id) {
|
|
|
13318 |
default:
|
|
|
13319 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
13320 |
}
|
|
|
13321 |
iprot.readFieldEnd();
|
|
|
13322 |
}
|
|
|
13323 |
iprot.readStructEnd();
|
|
|
13324 |
validate();
|
|
|
13325 |
}
|
|
|
13326 |
|
|
|
13327 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
13328 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
13329 |
|
|
|
13330 |
oprot.writeFieldStop();
|
|
|
13331 |
oprot.writeStructEnd();
|
|
|
13332 |
}
|
|
|
13333 |
|
|
|
13334 |
@Override
|
|
|
13335 |
public String toString() {
|
|
|
13336 |
StringBuilder sb = new StringBuilder("updatePincode_result(");
|
|
|
13337 |
boolean first = true;
|
|
|
13338 |
|
|
|
13339 |
sb.append(")");
|
|
|
13340 |
return sb.toString();
|
|
|
13341 |
}
|
|
|
13342 |
|
|
|
13343 |
public void validate() throws org.apache.thrift.TException {
|
|
|
13344 |
// check for required fields
|
|
|
13345 |
}
|
|
|
13346 |
|
|
|
13347 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
13348 |
try {
|
|
|
13349 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
13350 |
} catch (org.apache.thrift.TException te) {
|
|
|
13351 |
throw new java.io.IOException(te);
|
|
|
13352 |
}
|
|
|
13353 |
}
|
|
|
13354 |
|
|
|
13355 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
13356 |
try {
|
|
|
13357 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
13358 |
} catch (org.apache.thrift.TException te) {
|
|
|
13359 |
throw new java.io.IOException(te);
|
|
|
13360 |
}
|
|
|
13361 |
}
|
|
|
13362 |
|
|
|
13363 |
}
|
|
|
13364 |
|
| 412 |
ashish |
13365 |
}
|