| 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
|
| 648 |
chandransh |
56 |
*/
|
| 3430 |
rajveer |
57 |
public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
|
| 471 |
rajveer |
58 |
|
| 648 |
chandransh |
59 |
/**
|
|
|
60 |
* Returns an unused AWB number for the given provider.
|
|
|
61 |
*
|
|
|
62 |
* @param providerId
|
|
|
63 |
*/
|
| 3430 |
rajveer |
64 |
public String getEmptyAWB(long providerId) throws LogisticsServiceException, org.apache.thrift.TException;
|
| 471 |
rajveer |
65 |
|
| 648 |
chandransh |
66 |
/**
|
|
|
67 |
* Returns the list of updates for the given AWB number and provider id. The list is empty if there are no updates yet.
|
|
|
68 |
*
|
|
|
69 |
* @param awb
|
|
|
70 |
* @param providerId
|
|
|
71 |
*/
|
| 3430 |
rajveer |
72 |
public List<AwbUpdate> getShipmentInfo(String awb, long providerId) throws LogisticsServiceException, org.apache.thrift.TException;
|
| 477 |
rajveer |
73 |
|
| 730 |
chandransh |
74 |
/**
|
|
|
75 |
* Returns the short three letter code of a pincode for the given provider.
|
|
|
76 |
* Raises an exception if the pin code is not serviced by the given provider.
|
|
|
77 |
*
|
|
|
78 |
* @param providerId
|
|
|
79 |
* @param pinCode
|
|
|
80 |
*/
|
| 3430 |
rajveer |
81 |
public String getDestinationCode(long providerId, String pinCode) throws LogisticsServiceException, org.apache.thrift.TException;
|
| 730 |
chandransh |
82 |
|
| 1139 |
chandransh |
83 |
/**
|
| 3103 |
chandransh |
84 |
* Returns the number of unused AWB numbers for the given provider of the given type
|
| 1139 |
chandransh |
85 |
*
|
|
|
86 |
* @param providerId
|
| 3103 |
chandransh |
87 |
* @param type
|
| 1139 |
chandransh |
88 |
*/
|
| 3430 |
rajveer |
89 |
public long getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException;
|
| 1139 |
chandransh |
90 |
|
| 1730 |
ankur.sing |
91 |
/**
|
|
|
92 |
* Returns list of Holiday dates between fromDate and toDate (both inclusive)
|
|
|
93 |
* fromDate should be passed as milliseconds corresponding to the start of the day.
|
|
|
94 |
* If fromDate is passed as -1, fromDate is not considered for filtering
|
|
|
95 |
* If toDate is passed as -1, toDate is not considered for filtering
|
|
|
96 |
*
|
|
|
97 |
* @param fromDate
|
|
|
98 |
* @param toDate
|
|
|
99 |
*/
|
| 3430 |
rajveer |
100 |
public List<Long> getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException;
|
| 1730 |
ankur.sing |
101 |
|
| 412 |
ashish |
102 |
}
|
|
|
103 |
|
| 3430 |
rajveer |
104 |
public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
|
|
|
105 |
|
|
|
106 |
public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
107 |
|
|
|
108 |
public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllProviders_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
109 |
|
| 4630 |
mandeep.dh |
110 |
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 |
111 |
|
|
|
112 |
public void getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsInfo_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
113 |
|
|
|
114 |
public void getEmptyAWB(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
115 |
|
|
|
116 |
public void getShipmentInfo(String awb, long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
117 |
|
|
|
118 |
public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getDestinationCode_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
119 |
|
|
|
120 |
public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
121 |
|
|
|
122 |
public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHolidays_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
123 |
|
|
|
124 |
}
|
|
|
125 |
|
| 3374 |
rajveer |
126 |
public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
|
| 3430 |
rajveer |
127 |
public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
|
|
|
128 |
public Factory() {}
|
|
|
129 |
public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
|
|
|
130 |
return new Client(prot);
|
|
|
131 |
}
|
|
|
132 |
public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
|
|
|
133 |
return new Client(iprot, oprot);
|
|
|
134 |
}
|
|
|
135 |
}
|
|
|
136 |
|
|
|
137 |
public Client(org.apache.thrift.protocol.TProtocol prot)
|
| 412 |
ashish |
138 |
{
|
| 3430 |
rajveer |
139 |
super(prot, prot);
|
| 412 |
ashish |
140 |
}
|
|
|
141 |
|
| 3430 |
rajveer |
142 |
public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
|
| 3374 |
rajveer |
143 |
super(iprot, oprot);
|
| 412 |
ashish |
144 |
}
|
|
|
145 |
|
| 3430 |
rajveer |
146 |
public Provider getProvider(long providerId) throws LogisticsServiceException, org.apache.thrift.TException
|
| 668 |
chandransh |
147 |
{
|
|
|
148 |
send_getProvider(providerId);
|
|
|
149 |
return recv_getProvider();
|
|
|
150 |
}
|
|
|
151 |
|
| 3430 |
rajveer |
152 |
public void send_getProvider(long providerId) throws org.apache.thrift.TException
|
| 668 |
chandransh |
153 |
{
|
|
|
154 |
getProvider_args args = new getProvider_args();
|
| 3430 |
rajveer |
155 |
args.setProviderId(providerId);
|
|
|
156 |
sendBase("getProvider", args);
|
| 668 |
chandransh |
157 |
}
|
|
|
158 |
|
| 3430 |
rajveer |
159 |
public Provider recv_getProvider() throws LogisticsServiceException, org.apache.thrift.TException
|
| 668 |
chandransh |
160 |
{
|
|
|
161 |
getProvider_result result = new getProvider_result();
|
| 3430 |
rajveer |
162 |
receiveBase(result, "getProvider");
|
| 668 |
chandransh |
163 |
if (result.isSetSuccess()) {
|
|
|
164 |
return result.success;
|
|
|
165 |
}
|
|
|
166 |
if (result.lse != null) {
|
|
|
167 |
throw result.lse;
|
|
|
168 |
}
|
| 3430 |
rajveer |
169 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProvider failed: unknown result");
|
| 668 |
chandransh |
170 |
}
|
|
|
171 |
|
| 3430 |
rajveer |
172 |
public List<Provider> getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException
|
| 674 |
chandransh |
173 |
{
|
|
|
174 |
send_getAllProviders();
|
|
|
175 |
return recv_getAllProviders();
|
|
|
176 |
}
|
|
|
177 |
|
| 3430 |
rajveer |
178 |
public void send_getAllProviders() throws org.apache.thrift.TException
|
| 674 |
chandransh |
179 |
{
|
|
|
180 |
getAllProviders_args args = new getAllProviders_args();
|
| 3430 |
rajveer |
181 |
sendBase("getAllProviders", args);
|
| 674 |
chandransh |
182 |
}
|
|
|
183 |
|
| 3430 |
rajveer |
184 |
public List<Provider> recv_getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException
|
| 674 |
chandransh |
185 |
{
|
|
|
186 |
getAllProviders_result result = new getAllProviders_result();
|
| 3430 |
rajveer |
187 |
receiveBase(result, "getAllProviders");
|
| 674 |
chandransh |
188 |
if (result.isSetSuccess()) {
|
|
|
189 |
return result.success;
|
|
|
190 |
}
|
|
|
191 |
if (result.lse != null) {
|
|
|
192 |
throw result.lse;
|
|
|
193 |
}
|
| 3430 |
rajveer |
194 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllProviders failed: unknown result");
|
| 674 |
chandransh |
195 |
}
|
|
|
196 |
|
| 4630 |
mandeep.dh |
197 |
public LogisticsInfo getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
|
| 483 |
rajveer |
198 |
{
|
| 4630 |
mandeep.dh |
199 |
send_getLogisticsEstimation(itemId, destination_pin, type);
|
| 471 |
rajveer |
200 |
return recv_getLogisticsEstimation();
|
|
|
201 |
}
|
|
|
202 |
|
| 4630 |
mandeep.dh |
203 |
public void send_getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
|
| 471 |
rajveer |
204 |
{
|
|
|
205 |
getLogisticsEstimation_args args = new getLogisticsEstimation_args();
|
| 3430 |
rajveer |
206 |
args.setItemId(itemId);
|
|
|
207 |
args.setDestination_pin(destination_pin);
|
| 4630 |
mandeep.dh |
208 |
args.setType(type);
|
| 3430 |
rajveer |
209 |
sendBase("getLogisticsEstimation", args);
|
| 471 |
rajveer |
210 |
}
|
|
|
211 |
|
| 3430 |
rajveer |
212 |
public LogisticsInfo recv_getLogisticsEstimation() throws LogisticsServiceException, org.apache.thrift.TException
|
| 471 |
rajveer |
213 |
{
|
|
|
214 |
getLogisticsEstimation_result result = new getLogisticsEstimation_result();
|
| 3430 |
rajveer |
215 |
receiveBase(result, "getLogisticsEstimation");
|
| 471 |
rajveer |
216 |
if (result.isSetSuccess()) {
|
|
|
217 |
return result.success;
|
|
|
218 |
}
|
|
|
219 |
if (result.se != null) {
|
|
|
220 |
throw result.se;
|
|
|
221 |
}
|
| 3430 |
rajveer |
222 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsEstimation failed: unknown result");
|
| 471 |
rajveer |
223 |
}
|
|
|
224 |
|
| 3430 |
rajveer |
225 |
public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
|
| 471 |
rajveer |
226 |
{
|
| 3044 |
chandransh |
227 |
send_getLogisticsInfo(destination_pincode, item_id, type);
|
| 648 |
chandransh |
228 |
return recv_getLogisticsInfo();
|
| 471 |
rajveer |
229 |
}
|
|
|
230 |
|
| 3430 |
rajveer |
231 |
public void send_getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type) throws org.apache.thrift.TException
|
| 471 |
rajveer |
232 |
{
|
| 648 |
chandransh |
233 |
getLogisticsInfo_args args = new getLogisticsInfo_args();
|
| 3430 |
rajveer |
234 |
args.setDestination_pincode(destination_pincode);
|
|
|
235 |
args.setItem_id(item_id);
|
|
|
236 |
args.setType(type);
|
|
|
237 |
sendBase("getLogisticsInfo", args);
|
| 471 |
rajveer |
238 |
}
|
|
|
239 |
|
| 3430 |
rajveer |
240 |
public LogisticsInfo recv_getLogisticsInfo() throws LogisticsServiceException, org.apache.thrift.TException
|
| 471 |
rajveer |
241 |
{
|
| 648 |
chandransh |
242 |
getLogisticsInfo_result result = new getLogisticsInfo_result();
|
| 3430 |
rajveer |
243 |
receiveBase(result, "getLogisticsInfo");
|
| 648 |
chandransh |
244 |
if (result.isSetSuccess()) {
|
|
|
245 |
return result.success;
|
| 477 |
rajveer |
246 |
}
|
| 648 |
chandransh |
247 |
if (result.se != null) {
|
|
|
248 |
throw result.se;
|
| 412 |
ashish |
249 |
}
|
| 3430 |
rajveer |
250 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsInfo failed: unknown result");
|
| 412 |
ashish |
251 |
}
|
|
|
252 |
|
| 3430 |
rajveer |
253 |
public String getEmptyAWB(long providerId) throws LogisticsServiceException, org.apache.thrift.TException
|
| 412 |
ashish |
254 |
{
|
| 648 |
chandransh |
255 |
send_getEmptyAWB(providerId);
|
| 412 |
ashish |
256 |
return recv_getEmptyAWB();
|
|
|
257 |
}
|
|
|
258 |
|
| 3430 |
rajveer |
259 |
public void send_getEmptyAWB(long providerId) throws org.apache.thrift.TException
|
| 412 |
ashish |
260 |
{
|
|
|
261 |
getEmptyAWB_args args = new getEmptyAWB_args();
|
| 3430 |
rajveer |
262 |
args.setProviderId(providerId);
|
|
|
263 |
sendBase("getEmptyAWB", args);
|
| 412 |
ashish |
264 |
}
|
|
|
265 |
|
| 3430 |
rajveer |
266 |
public String recv_getEmptyAWB() throws LogisticsServiceException, org.apache.thrift.TException
|
| 412 |
ashish |
267 |
{
|
|
|
268 |
getEmptyAWB_result result = new getEmptyAWB_result();
|
| 3430 |
rajveer |
269 |
receiveBase(result, "getEmptyAWB");
|
| 412 |
ashish |
270 |
if (result.isSetSuccess()) {
|
|
|
271 |
return result.success;
|
|
|
272 |
}
|
| 648 |
chandransh |
273 |
if (result.se != null) {
|
|
|
274 |
throw result.se;
|
|
|
275 |
}
|
| 3430 |
rajveer |
276 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmptyAWB failed: unknown result");
|
| 412 |
ashish |
277 |
}
|
|
|
278 |
|
| 3430 |
rajveer |
279 |
public List<AwbUpdate> getShipmentInfo(String awb, long providerId) throws LogisticsServiceException, org.apache.thrift.TException
|
| 412 |
ashish |
280 |
{
|
| 648 |
chandransh |
281 |
send_getShipmentInfo(awb, providerId);
|
| 412 |
ashish |
282 |
return recv_getShipmentInfo();
|
|
|
283 |
}
|
|
|
284 |
|
| 3430 |
rajveer |
285 |
public void send_getShipmentInfo(String awb, long providerId) throws org.apache.thrift.TException
|
| 412 |
ashish |
286 |
{
|
|
|
287 |
getShipmentInfo_args args = new getShipmentInfo_args();
|
| 3430 |
rajveer |
288 |
args.setAwb(awb);
|
|
|
289 |
args.setProviderId(providerId);
|
|
|
290 |
sendBase("getShipmentInfo", args);
|
| 412 |
ashish |
291 |
}
|
|
|
292 |
|
| 3430 |
rajveer |
293 |
public List<AwbUpdate> recv_getShipmentInfo() throws LogisticsServiceException, org.apache.thrift.TException
|
| 412 |
ashish |
294 |
{
|
|
|
295 |
getShipmentInfo_result result = new getShipmentInfo_result();
|
| 3430 |
rajveer |
296 |
receiveBase(result, "getShipmentInfo");
|
| 412 |
ashish |
297 |
if (result.isSetSuccess()) {
|
|
|
298 |
return result.success;
|
|
|
299 |
}
|
| 648 |
chandransh |
300 |
if (result.se != null) {
|
|
|
301 |
throw result.se;
|
|
|
302 |
}
|
| 3430 |
rajveer |
303 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getShipmentInfo failed: unknown result");
|
| 412 |
ashish |
304 |
}
|
|
|
305 |
|
| 3430 |
rajveer |
306 |
public String getDestinationCode(long providerId, String pinCode) throws LogisticsServiceException, org.apache.thrift.TException
|
| 730 |
chandransh |
307 |
{
|
|
|
308 |
send_getDestinationCode(providerId, pinCode);
|
|
|
309 |
return recv_getDestinationCode();
|
|
|
310 |
}
|
|
|
311 |
|
| 3430 |
rajveer |
312 |
public void send_getDestinationCode(long providerId, String pinCode) throws org.apache.thrift.TException
|
| 730 |
chandransh |
313 |
{
|
|
|
314 |
getDestinationCode_args args = new getDestinationCode_args();
|
| 3430 |
rajveer |
315 |
args.setProviderId(providerId);
|
|
|
316 |
args.setPinCode(pinCode);
|
|
|
317 |
sendBase("getDestinationCode", args);
|
| 730 |
chandransh |
318 |
}
|
|
|
319 |
|
| 3430 |
rajveer |
320 |
public String recv_getDestinationCode() throws LogisticsServiceException, org.apache.thrift.TException
|
| 730 |
chandransh |
321 |
{
|
|
|
322 |
getDestinationCode_result result = new getDestinationCode_result();
|
| 3430 |
rajveer |
323 |
receiveBase(result, "getDestinationCode");
|
| 730 |
chandransh |
324 |
if (result.isSetSuccess()) {
|
|
|
325 |
return result.success;
|
|
|
326 |
}
|
|
|
327 |
if (result.se != null) {
|
|
|
328 |
throw result.se;
|
|
|
329 |
}
|
| 3430 |
rajveer |
330 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getDestinationCode failed: unknown result");
|
| 730 |
chandransh |
331 |
}
|
|
|
332 |
|
| 3430 |
rajveer |
333 |
public long getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException
|
| 1139 |
chandransh |
334 |
{
|
| 3103 |
chandransh |
335 |
send_getFreeAwbCount(providerId, type);
|
| 1139 |
chandransh |
336 |
return recv_getFreeAwbCount();
|
|
|
337 |
}
|
|
|
338 |
|
| 3430 |
rajveer |
339 |
public void send_getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException
|
| 1139 |
chandransh |
340 |
{
|
|
|
341 |
getFreeAwbCount_args args = new getFreeAwbCount_args();
|
| 3430 |
rajveer |
342 |
args.setProviderId(providerId);
|
|
|
343 |
args.setType(type);
|
|
|
344 |
sendBase("getFreeAwbCount", args);
|
| 1139 |
chandransh |
345 |
}
|
|
|
346 |
|
| 3430 |
rajveer |
347 |
public long recv_getFreeAwbCount() throws org.apache.thrift.TException
|
| 1139 |
chandransh |
348 |
{
|
|
|
349 |
getFreeAwbCount_result result = new getFreeAwbCount_result();
|
| 3430 |
rajveer |
350 |
receiveBase(result, "getFreeAwbCount");
|
| 1139 |
chandransh |
351 |
if (result.isSetSuccess()) {
|
|
|
352 |
return result.success;
|
|
|
353 |
}
|
| 3430 |
rajveer |
354 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFreeAwbCount failed: unknown result");
|
| 1139 |
chandransh |
355 |
}
|
|
|
356 |
|
| 3430 |
rajveer |
357 |
public List<Long> getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException
|
| 1730 |
ankur.sing |
358 |
{
|
|
|
359 |
send_getHolidays(fromDate, toDate);
|
|
|
360 |
return recv_getHolidays();
|
|
|
361 |
}
|
|
|
362 |
|
| 3430 |
rajveer |
363 |
public void send_getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException
|
| 1730 |
ankur.sing |
364 |
{
|
|
|
365 |
getHolidays_args args = new getHolidays_args();
|
| 3430 |
rajveer |
366 |
args.setFromDate(fromDate);
|
|
|
367 |
args.setToDate(toDate);
|
|
|
368 |
sendBase("getHolidays", args);
|
| 1730 |
ankur.sing |
369 |
}
|
|
|
370 |
|
| 3430 |
rajveer |
371 |
public List<Long> recv_getHolidays() throws org.apache.thrift.TException
|
| 1730 |
ankur.sing |
372 |
{
|
|
|
373 |
getHolidays_result result = new getHolidays_result();
|
| 3430 |
rajveer |
374 |
receiveBase(result, "getHolidays");
|
| 1730 |
ankur.sing |
375 |
if (result.isSetSuccess()) {
|
|
|
376 |
return result.success;
|
|
|
377 |
}
|
| 3430 |
rajveer |
378 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHolidays failed: unknown result");
|
| 1730 |
ankur.sing |
379 |
}
|
|
|
380 |
|
| 412 |
ashish |
381 |
}
|
| 3430 |
rajveer |
382 |
public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
|
|
|
383 |
public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
|
|
|
384 |
private org.apache.thrift.async.TAsyncClientManager clientManager;
|
|
|
385 |
private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
|
|
|
386 |
public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
|
|
|
387 |
this.clientManager = clientManager;
|
|
|
388 |
this.protocolFactory = protocolFactory;
|
|
|
389 |
}
|
|
|
390 |
public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
|
|
|
391 |
return new AsyncClient(protocolFactory, clientManager, transport);
|
|
|
392 |
}
|
| 412 |
ashish |
393 |
}
|
|
|
394 |
|
| 3430 |
rajveer |
395 |
public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
|
|
|
396 |
super(protocolFactory, clientManager, transport);
|
|
|
397 |
}
|
| 412 |
ashish |
398 |
|
| 3430 |
rajveer |
399 |
public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<getProvider_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
400 |
checkReady();
|
|
|
401 |
getProvider_call method_call = new getProvider_call(providerId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
402 |
this.___currentMethod = method_call;
|
|
|
403 |
___manager.call(method_call);
|
|
|
404 |
}
|
|
|
405 |
|
|
|
406 |
public static class getProvider_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
407 |
private long providerId;
|
|
|
408 |
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 {
|
|
|
409 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
410 |
this.providerId = providerId;
|
| 412 |
ashish |
411 |
}
|
| 3430 |
rajveer |
412 |
|
|
|
413 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
414 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProvider", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
415 |
getProvider_args args = new getProvider_args();
|
|
|
416 |
args.setProviderId(providerId);
|
|
|
417 |
args.write(prot);
|
|
|
418 |
prot.writeMessageEnd();
|
|
|
419 |
}
|
|
|
420 |
|
|
|
421 |
public Provider getResult() throws LogisticsServiceException, org.apache.thrift.TException {
|
|
|
422 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
423 |
throw new IllegalStateException("Method call not finished!");
|
|
|
424 |
}
|
|
|
425 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
426 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
427 |
return (new Client(prot)).recv_getProvider();
|
|
|
428 |
}
|
| 412 |
ashish |
429 |
}
|
|
|
430 |
|
| 3430 |
rajveer |
431 |
public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<getAllProviders_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
432 |
checkReady();
|
|
|
433 |
getAllProviders_call method_call = new getAllProviders_call(resultHandler, this, ___protocolFactory, ___transport);
|
|
|
434 |
this.___currentMethod = method_call;
|
|
|
435 |
___manager.call(method_call);
|
|
|
436 |
}
|
|
|
437 |
|
|
|
438 |
public static class getAllProviders_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
439 |
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 {
|
|
|
440 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
441 |
}
|
|
|
442 |
|
|
|
443 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
444 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllProviders", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
445 |
getAllProviders_args args = new getAllProviders_args();
|
|
|
446 |
args.write(prot);
|
|
|
447 |
prot.writeMessageEnd();
|
|
|
448 |
}
|
|
|
449 |
|
|
|
450 |
public List<Provider> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
|
|
|
451 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
452 |
throw new IllegalStateException("Method call not finished!");
|
|
|
453 |
}
|
|
|
454 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
455 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
456 |
return (new Client(prot)).recv_getAllProviders();
|
|
|
457 |
}
|
|
|
458 |
}
|
|
|
459 |
|
| 4630 |
mandeep.dh |
460 |
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 |
461 |
checkReady();
|
| 4630 |
mandeep.dh |
462 |
getLogisticsEstimation_call method_call = new getLogisticsEstimation_call(itemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
|
| 3430 |
rajveer |
463 |
this.___currentMethod = method_call;
|
|
|
464 |
___manager.call(method_call);
|
|
|
465 |
}
|
|
|
466 |
|
|
|
467 |
public static class getLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
468 |
private long itemId;
|
|
|
469 |
private String destination_pin;
|
| 4630 |
mandeep.dh |
470 |
private DeliveryType type;
|
|
|
471 |
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 |
472 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
473 |
this.itemId = itemId;
|
|
|
474 |
this.destination_pin = destination_pin;
|
| 4630 |
mandeep.dh |
475 |
this.type = type;
|
| 3430 |
rajveer |
476 |
}
|
|
|
477 |
|
|
|
478 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
479 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
480 |
getLogisticsEstimation_args args = new getLogisticsEstimation_args();
|
|
|
481 |
args.setItemId(itemId);
|
|
|
482 |
args.setDestination_pin(destination_pin);
|
| 4630 |
mandeep.dh |
483 |
args.setType(type);
|
| 3430 |
rajveer |
484 |
args.write(prot);
|
|
|
485 |
prot.writeMessageEnd();
|
|
|
486 |
}
|
|
|
487 |
|
|
|
488 |
public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
|
|
|
489 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
490 |
throw new IllegalStateException("Method call not finished!");
|
|
|
491 |
}
|
|
|
492 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
493 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
494 |
return (new Client(prot)).recv_getLogisticsEstimation();
|
|
|
495 |
}
|
|
|
496 |
}
|
|
|
497 |
|
|
|
498 |
public void getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getLogisticsInfo_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
499 |
checkReady();
|
|
|
500 |
getLogisticsInfo_call method_call = new getLogisticsInfo_call(destination_pincode, item_id, type, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
501 |
this.___currentMethod = method_call;
|
|
|
502 |
___manager.call(method_call);
|
|
|
503 |
}
|
|
|
504 |
|
|
|
505 |
public static class getLogisticsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
506 |
private String destination_pincode;
|
|
|
507 |
private long item_id;
|
|
|
508 |
private DeliveryType type;
|
|
|
509 |
public getLogisticsInfo_call(String destination_pincode, long item_id, DeliveryType type, 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 {
|
|
|
510 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
511 |
this.destination_pincode = destination_pincode;
|
|
|
512 |
this.item_id = item_id;
|
|
|
513 |
this.type = type;
|
|
|
514 |
}
|
|
|
515 |
|
|
|
516 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
517 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
518 |
getLogisticsInfo_args args = new getLogisticsInfo_args();
|
|
|
519 |
args.setDestination_pincode(destination_pincode);
|
|
|
520 |
args.setItem_id(item_id);
|
|
|
521 |
args.setType(type);
|
|
|
522 |
args.write(prot);
|
|
|
523 |
prot.writeMessageEnd();
|
|
|
524 |
}
|
|
|
525 |
|
|
|
526 |
public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
|
|
|
527 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
528 |
throw new IllegalStateException("Method call not finished!");
|
|
|
529 |
}
|
|
|
530 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
531 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
532 |
return (new Client(prot)).recv_getLogisticsInfo();
|
|
|
533 |
}
|
|
|
534 |
}
|
|
|
535 |
|
|
|
536 |
public void getEmptyAWB(long providerId, org.apache.thrift.async.AsyncMethodCallback<getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
537 |
checkReady();
|
|
|
538 |
getEmptyAWB_call method_call = new getEmptyAWB_call(providerId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
539 |
this.___currentMethod = method_call;
|
|
|
540 |
___manager.call(method_call);
|
|
|
541 |
}
|
|
|
542 |
|
|
|
543 |
public static class getEmptyAWB_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
544 |
private long providerId;
|
|
|
545 |
public getEmptyAWB_call(long providerId, 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 {
|
|
|
546 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
547 |
this.providerId = providerId;
|
|
|
548 |
}
|
|
|
549 |
|
|
|
550 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
551 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmptyAWB", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
552 |
getEmptyAWB_args args = new getEmptyAWB_args();
|
|
|
553 |
args.setProviderId(providerId);
|
|
|
554 |
args.write(prot);
|
|
|
555 |
prot.writeMessageEnd();
|
|
|
556 |
}
|
|
|
557 |
|
|
|
558 |
public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
|
|
|
559 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
560 |
throw new IllegalStateException("Method call not finished!");
|
|
|
561 |
}
|
|
|
562 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
563 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
564 |
return (new Client(prot)).recv_getEmptyAWB();
|
|
|
565 |
}
|
|
|
566 |
}
|
|
|
567 |
|
|
|
568 |
public void getShipmentInfo(String awb, long providerId, org.apache.thrift.async.AsyncMethodCallback<getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
569 |
checkReady();
|
|
|
570 |
getShipmentInfo_call method_call = new getShipmentInfo_call(awb, providerId, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
571 |
this.___currentMethod = method_call;
|
|
|
572 |
___manager.call(method_call);
|
|
|
573 |
}
|
|
|
574 |
|
|
|
575 |
public static class getShipmentInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
576 |
private String awb;
|
|
|
577 |
private long providerId;
|
|
|
578 |
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 {
|
|
|
579 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
580 |
this.awb = awb;
|
|
|
581 |
this.providerId = providerId;
|
|
|
582 |
}
|
|
|
583 |
|
|
|
584 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
585 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getShipmentInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
586 |
getShipmentInfo_args args = new getShipmentInfo_args();
|
|
|
587 |
args.setAwb(awb);
|
|
|
588 |
args.setProviderId(providerId);
|
|
|
589 |
args.write(prot);
|
|
|
590 |
prot.writeMessageEnd();
|
|
|
591 |
}
|
|
|
592 |
|
|
|
593 |
public List<AwbUpdate> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
|
|
|
594 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
595 |
throw new IllegalStateException("Method call not finished!");
|
|
|
596 |
}
|
|
|
597 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
598 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
599 |
return (new Client(prot)).recv_getShipmentInfo();
|
|
|
600 |
}
|
|
|
601 |
}
|
|
|
602 |
|
|
|
603 |
public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<getDestinationCode_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
604 |
checkReady();
|
|
|
605 |
getDestinationCode_call method_call = new getDestinationCode_call(providerId, pinCode, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
606 |
this.___currentMethod = method_call;
|
|
|
607 |
___manager.call(method_call);
|
|
|
608 |
}
|
|
|
609 |
|
|
|
610 |
public static class getDestinationCode_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
611 |
private long providerId;
|
|
|
612 |
private String pinCode;
|
|
|
613 |
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 {
|
|
|
614 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
615 |
this.providerId = providerId;
|
|
|
616 |
this.pinCode = pinCode;
|
|
|
617 |
}
|
|
|
618 |
|
|
|
619 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
620 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getDestinationCode", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
621 |
getDestinationCode_args args = new getDestinationCode_args();
|
|
|
622 |
args.setProviderId(providerId);
|
|
|
623 |
args.setPinCode(pinCode);
|
|
|
624 |
args.write(prot);
|
|
|
625 |
prot.writeMessageEnd();
|
|
|
626 |
}
|
|
|
627 |
|
|
|
628 |
public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
|
|
|
629 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
630 |
throw new IllegalStateException("Method call not finished!");
|
|
|
631 |
}
|
|
|
632 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
633 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
634 |
return (new Client(prot)).recv_getDestinationCode();
|
|
|
635 |
}
|
|
|
636 |
}
|
|
|
637 |
|
|
|
638 |
public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
639 |
checkReady();
|
|
|
640 |
getFreeAwbCount_call method_call = new getFreeAwbCount_call(providerId, type, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
641 |
this.___currentMethod = method_call;
|
|
|
642 |
___manager.call(method_call);
|
|
|
643 |
}
|
|
|
644 |
|
|
|
645 |
public static class getFreeAwbCount_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
646 |
private long providerId;
|
|
|
647 |
private String type;
|
|
|
648 |
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 {
|
|
|
649 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
650 |
this.providerId = providerId;
|
|
|
651 |
this.type = type;
|
|
|
652 |
}
|
|
|
653 |
|
|
|
654 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
655 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFreeAwbCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
656 |
getFreeAwbCount_args args = new getFreeAwbCount_args();
|
|
|
657 |
args.setProviderId(providerId);
|
|
|
658 |
args.setType(type);
|
|
|
659 |
args.write(prot);
|
|
|
660 |
prot.writeMessageEnd();
|
|
|
661 |
}
|
|
|
662 |
|
|
|
663 |
public long getResult() throws org.apache.thrift.TException {
|
|
|
664 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
665 |
throw new IllegalStateException("Method call not finished!");
|
|
|
666 |
}
|
|
|
667 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
668 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
669 |
return (new Client(prot)).recv_getFreeAwbCount();
|
|
|
670 |
}
|
|
|
671 |
}
|
|
|
672 |
|
|
|
673 |
public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getHolidays_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
674 |
checkReady();
|
|
|
675 |
getHolidays_call method_call = new getHolidays_call(fromDate, toDate, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
676 |
this.___currentMethod = method_call;
|
|
|
677 |
___manager.call(method_call);
|
|
|
678 |
}
|
|
|
679 |
|
|
|
680 |
public static class getHolidays_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
681 |
private long fromDate;
|
|
|
682 |
private long toDate;
|
|
|
683 |
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 {
|
|
|
684 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
685 |
this.fromDate = fromDate;
|
|
|
686 |
this.toDate = toDate;
|
|
|
687 |
}
|
|
|
688 |
|
|
|
689 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
690 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHolidays", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
691 |
getHolidays_args args = new getHolidays_args();
|
|
|
692 |
args.setFromDate(fromDate);
|
|
|
693 |
args.setToDate(toDate);
|
|
|
694 |
args.write(prot);
|
|
|
695 |
prot.writeMessageEnd();
|
|
|
696 |
}
|
|
|
697 |
|
|
|
698 |
public List<Long> getResult() throws org.apache.thrift.TException {
|
|
|
699 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
700 |
throw new IllegalStateException("Method call not finished!");
|
|
|
701 |
}
|
|
|
702 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
703 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
704 |
return (new Client(prot)).recv_getHolidays();
|
|
|
705 |
}
|
|
|
706 |
}
|
|
|
707 |
|
|
|
708 |
}
|
|
|
709 |
|
|
|
710 |
public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
|
|
|
711 |
private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
|
|
|
712 |
public Processor(I iface) {
|
|
|
713 |
super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
|
|
|
714 |
}
|
|
|
715 |
|
|
|
716 |
protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
|
|
|
717 |
super(iface, getProcessMap(processMap));
|
|
|
718 |
}
|
|
|
719 |
|
|
|
720 |
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) {
|
|
|
721 |
processMap.put("getProvider", new getProvider());
|
|
|
722 |
processMap.put("getAllProviders", new getAllProviders());
|
|
|
723 |
processMap.put("getLogisticsEstimation", new getLogisticsEstimation());
|
|
|
724 |
processMap.put("getLogisticsInfo", new getLogisticsInfo());
|
|
|
725 |
processMap.put("getEmptyAWB", new getEmptyAWB());
|
|
|
726 |
processMap.put("getShipmentInfo", new getShipmentInfo());
|
|
|
727 |
processMap.put("getDestinationCode", new getDestinationCode());
|
|
|
728 |
processMap.put("getFreeAwbCount", new getFreeAwbCount());
|
|
|
729 |
processMap.put("getHolidays", new getHolidays());
|
|
|
730 |
return processMap;
|
|
|
731 |
}
|
|
|
732 |
|
|
|
733 |
private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
|
|
|
734 |
public getProvider() {
|
|
|
735 |
super("getProvider");
|
|
|
736 |
}
|
|
|
737 |
|
|
|
738 |
protected getProvider_args getEmptyArgsInstance() {
|
|
|
739 |
return new getProvider_args();
|
|
|
740 |
}
|
|
|
741 |
|
|
|
742 |
protected getProvider_result getResult(I iface, getProvider_args args) throws org.apache.thrift.TException {
|
| 668 |
chandransh |
743 |
getProvider_result result = new getProvider_result();
|
|
|
744 |
try {
|
| 3430 |
rajveer |
745 |
result.success = iface.getProvider(args.providerId);
|
| 668 |
chandransh |
746 |
} catch (LogisticsServiceException lse) {
|
|
|
747 |
result.lse = lse;
|
|
|
748 |
}
|
| 3430 |
rajveer |
749 |
return result;
|
| 668 |
chandransh |
750 |
}
|
|
|
751 |
}
|
|
|
752 |
|
| 3430 |
rajveer |
753 |
private static class getAllProviders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllProviders_args> {
|
|
|
754 |
public getAllProviders() {
|
|
|
755 |
super("getAllProviders");
|
|
|
756 |
}
|
|
|
757 |
|
|
|
758 |
protected getAllProviders_args getEmptyArgsInstance() {
|
|
|
759 |
return new getAllProviders_args();
|
|
|
760 |
}
|
|
|
761 |
|
|
|
762 |
protected getAllProviders_result getResult(I iface, getAllProviders_args args) throws org.apache.thrift.TException {
|
| 674 |
chandransh |
763 |
getAllProviders_result result = new getAllProviders_result();
|
|
|
764 |
try {
|
| 3430 |
rajveer |
765 |
result.success = iface.getAllProviders();
|
| 674 |
chandransh |
766 |
} catch (LogisticsServiceException lse) {
|
|
|
767 |
result.lse = lse;
|
|
|
768 |
}
|
| 3430 |
rajveer |
769 |
return result;
|
| 674 |
chandransh |
770 |
}
|
|
|
771 |
}
|
|
|
772 |
|
| 3430 |
rajveer |
773 |
private static class getLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsEstimation_args> {
|
|
|
774 |
public getLogisticsEstimation() {
|
|
|
775 |
super("getLogisticsEstimation");
|
|
|
776 |
}
|
|
|
777 |
|
|
|
778 |
protected getLogisticsEstimation_args getEmptyArgsInstance() {
|
|
|
779 |
return new getLogisticsEstimation_args();
|
|
|
780 |
}
|
|
|
781 |
|
|
|
782 |
protected getLogisticsEstimation_result getResult(I iface, getLogisticsEstimation_args args) throws org.apache.thrift.TException {
|
| 648 |
chandransh |
783 |
getLogisticsEstimation_result result = new getLogisticsEstimation_result();
|
| 483 |
rajveer |
784 |
try {
|
| 4630 |
mandeep.dh |
785 |
result.success = iface.getLogisticsEstimation(args.itemId, args.destination_pin, args.type);
|
| 483 |
rajveer |
786 |
} catch (LogisticsServiceException se) {
|
|
|
787 |
result.se = se;
|
|
|
788 |
}
|
| 3430 |
rajveer |
789 |
return result;
|
| 483 |
rajveer |
790 |
}
|
|
|
791 |
}
|
|
|
792 |
|
| 3430 |
rajveer |
793 |
private static class getLogisticsInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsInfo_args> {
|
|
|
794 |
public getLogisticsInfo() {
|
|
|
795 |
super("getLogisticsInfo");
|
|
|
796 |
}
|
|
|
797 |
|
|
|
798 |
protected getLogisticsInfo_args getEmptyArgsInstance() {
|
|
|
799 |
return new getLogisticsInfo_args();
|
|
|
800 |
}
|
|
|
801 |
|
|
|
802 |
protected getLogisticsInfo_result getResult(I iface, getLogisticsInfo_args args) throws org.apache.thrift.TException {
|
| 648 |
chandransh |
803 |
getLogisticsInfo_result result = new getLogisticsInfo_result();
|
| 471 |
rajveer |
804 |
try {
|
| 3430 |
rajveer |
805 |
result.success = iface.getLogisticsInfo(args.destination_pincode, args.item_id, args.type);
|
| 471 |
rajveer |
806 |
} catch (LogisticsServiceException se) {
|
|
|
807 |
result.se = se;
|
|
|
808 |
}
|
| 3430 |
rajveer |
809 |
return result;
|
| 471 |
rajveer |
810 |
}
|
|
|
811 |
}
|
|
|
812 |
|
| 3430 |
rajveer |
813 |
private static class getEmptyAWB<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmptyAWB_args> {
|
|
|
814 |
public getEmptyAWB() {
|
|
|
815 |
super("getEmptyAWB");
|
|
|
816 |
}
|
|
|
817 |
|
|
|
818 |
protected getEmptyAWB_args getEmptyArgsInstance() {
|
|
|
819 |
return new getEmptyAWB_args();
|
|
|
820 |
}
|
|
|
821 |
|
|
|
822 |
protected getEmptyAWB_result getResult(I iface, getEmptyAWB_args args) throws org.apache.thrift.TException {
|
| 412 |
ashish |
823 |
getEmptyAWB_result result = new getEmptyAWB_result();
|
| 648 |
chandransh |
824 |
try {
|
| 3430 |
rajveer |
825 |
result.success = iface.getEmptyAWB(args.providerId);
|
| 648 |
chandransh |
826 |
} catch (LogisticsServiceException se) {
|
|
|
827 |
result.se = se;
|
|
|
828 |
}
|
| 3430 |
rajveer |
829 |
return result;
|
| 412 |
ashish |
830 |
}
|
|
|
831 |
}
|
|
|
832 |
|
| 3430 |
rajveer |
833 |
private static class getShipmentInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getShipmentInfo_args> {
|
|
|
834 |
public getShipmentInfo() {
|
|
|
835 |
super("getShipmentInfo");
|
|
|
836 |
}
|
|
|
837 |
|
|
|
838 |
protected getShipmentInfo_args getEmptyArgsInstance() {
|
|
|
839 |
return new getShipmentInfo_args();
|
|
|
840 |
}
|
|
|
841 |
|
|
|
842 |
protected getShipmentInfo_result getResult(I iface, getShipmentInfo_args args) throws org.apache.thrift.TException {
|
| 412 |
ashish |
843 |
getShipmentInfo_result result = new getShipmentInfo_result();
|
| 648 |
chandransh |
844 |
try {
|
| 3430 |
rajveer |
845 |
result.success = iface.getShipmentInfo(args.awb, args.providerId);
|
| 648 |
chandransh |
846 |
} catch (LogisticsServiceException se) {
|
|
|
847 |
result.se = se;
|
|
|
848 |
}
|
| 3430 |
rajveer |
849 |
return result;
|
| 412 |
ashish |
850 |
}
|
|
|
851 |
}
|
|
|
852 |
|
| 3430 |
rajveer |
853 |
private static class getDestinationCode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getDestinationCode_args> {
|
|
|
854 |
public getDestinationCode() {
|
|
|
855 |
super("getDestinationCode");
|
|
|
856 |
}
|
|
|
857 |
|
|
|
858 |
protected getDestinationCode_args getEmptyArgsInstance() {
|
|
|
859 |
return new getDestinationCode_args();
|
|
|
860 |
}
|
|
|
861 |
|
|
|
862 |
protected getDestinationCode_result getResult(I iface, getDestinationCode_args args) throws org.apache.thrift.TException {
|
| 730 |
chandransh |
863 |
getDestinationCode_result result = new getDestinationCode_result();
|
|
|
864 |
try {
|
| 3430 |
rajveer |
865 |
result.success = iface.getDestinationCode(args.providerId, args.pinCode);
|
| 730 |
chandransh |
866 |
} catch (LogisticsServiceException se) {
|
|
|
867 |
result.se = se;
|
|
|
868 |
}
|
| 3430 |
rajveer |
869 |
return result;
|
| 730 |
chandransh |
870 |
}
|
|
|
871 |
}
|
|
|
872 |
|
| 3430 |
rajveer |
873 |
private static class getFreeAwbCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFreeAwbCount_args> {
|
|
|
874 |
public getFreeAwbCount() {
|
|
|
875 |
super("getFreeAwbCount");
|
|
|
876 |
}
|
|
|
877 |
|
|
|
878 |
protected getFreeAwbCount_args getEmptyArgsInstance() {
|
|
|
879 |
return new getFreeAwbCount_args();
|
|
|
880 |
}
|
|
|
881 |
|
|
|
882 |
protected getFreeAwbCount_result getResult(I iface, getFreeAwbCount_args args) throws org.apache.thrift.TException {
|
| 1139 |
chandransh |
883 |
getFreeAwbCount_result result = new getFreeAwbCount_result();
|
| 3430 |
rajveer |
884 |
result.success = iface.getFreeAwbCount(args.providerId, args.type);
|
| 1139 |
chandransh |
885 |
result.setSuccessIsSet(true);
|
| 3430 |
rajveer |
886 |
return result;
|
| 1139 |
chandransh |
887 |
}
|
|
|
888 |
}
|
|
|
889 |
|
| 3430 |
rajveer |
890 |
private static class getHolidays<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHolidays_args> {
|
|
|
891 |
public getHolidays() {
|
|
|
892 |
super("getHolidays");
|
|
|
893 |
}
|
|
|
894 |
|
|
|
895 |
protected getHolidays_args getEmptyArgsInstance() {
|
|
|
896 |
return new getHolidays_args();
|
|
|
897 |
}
|
|
|
898 |
|
|
|
899 |
protected getHolidays_result getResult(I iface, getHolidays_args args) throws org.apache.thrift.TException {
|
| 1730 |
ankur.sing |
900 |
getHolidays_result result = new getHolidays_result();
|
| 3430 |
rajveer |
901 |
result.success = iface.getHolidays(args.fromDate, args.toDate);
|
|
|
902 |
return result;
|
| 1730 |
ankur.sing |
903 |
}
|
|
|
904 |
}
|
|
|
905 |
|
| 412 |
ashish |
906 |
}
|
|
|
907 |
|
| 3430 |
rajveer |
908 |
public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
909 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
|
| 668 |
chandransh |
910 |
|
| 3430 |
rajveer |
911 |
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 |
912 |
|
| 3430 |
rajveer |
913 |
private long providerId; // required
|
| 668 |
chandransh |
914 |
|
|
|
915 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
916 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 668 |
chandransh |
917 |
PROVIDER_ID((short)1, "providerId");
|
|
|
918 |
|
|
|
919 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
920 |
|
|
|
921 |
static {
|
|
|
922 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
923 |
byName.put(field.getFieldName(), field);
|
|
|
924 |
}
|
|
|
925 |
}
|
|
|
926 |
|
|
|
927 |
/**
|
|
|
928 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
929 |
*/
|
|
|
930 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
931 |
switch(fieldId) {
|
|
|
932 |
case 1: // PROVIDER_ID
|
|
|
933 |
return PROVIDER_ID;
|
|
|
934 |
default:
|
|
|
935 |
return null;
|
|
|
936 |
}
|
| 668 |
chandransh |
937 |
}
|
|
|
938 |
|
|
|
939 |
/**
|
|
|
940 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
941 |
* if it is not found.
|
|
|
942 |
*/
|
|
|
943 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
944 |
_Fields fields = findByThriftId(fieldId);
|
|
|
945 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
946 |
return fields;
|
|
|
947 |
}
|
|
|
948 |
|
|
|
949 |
/**
|
|
|
950 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
951 |
*/
|
|
|
952 |
public static _Fields findByName(String name) {
|
|
|
953 |
return byName.get(name);
|
|
|
954 |
}
|
|
|
955 |
|
|
|
956 |
private final short _thriftId;
|
|
|
957 |
private final String _fieldName;
|
|
|
958 |
|
|
|
959 |
_Fields(short thriftId, String fieldName) {
|
|
|
960 |
_thriftId = thriftId;
|
|
|
961 |
_fieldName = fieldName;
|
|
|
962 |
}
|
|
|
963 |
|
|
|
964 |
public short getThriftFieldId() {
|
|
|
965 |
return _thriftId;
|
|
|
966 |
}
|
|
|
967 |
|
|
|
968 |
public String getFieldName() {
|
|
|
969 |
return _fieldName;
|
|
|
970 |
}
|
|
|
971 |
}
|
|
|
972 |
|
|
|
973 |
// isset id assignments
|
|
|
974 |
private static final int __PROVIDERID_ISSET_ID = 0;
|
|
|
975 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
976 |
|
| 3430 |
rajveer |
977 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 668 |
chandransh |
978 |
static {
|
| 3430 |
rajveer |
979 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
980 |
tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
981 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
982 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
983 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_args.class, metaDataMap);
|
| 668 |
chandransh |
984 |
}
|
|
|
985 |
|
|
|
986 |
public getProvider_args() {
|
|
|
987 |
}
|
|
|
988 |
|
|
|
989 |
public getProvider_args(
|
|
|
990 |
long providerId)
|
|
|
991 |
{
|
|
|
992 |
this();
|
|
|
993 |
this.providerId = providerId;
|
|
|
994 |
setProviderIdIsSet(true);
|
|
|
995 |
}
|
|
|
996 |
|
|
|
997 |
/**
|
|
|
998 |
* Performs a deep copy on <i>other</i>.
|
|
|
999 |
*/
|
|
|
1000 |
public getProvider_args(getProvider_args other) {
|
|
|
1001 |
__isset_bit_vector.clear();
|
|
|
1002 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
1003 |
this.providerId = other.providerId;
|
|
|
1004 |
}
|
|
|
1005 |
|
|
|
1006 |
public getProvider_args deepCopy() {
|
|
|
1007 |
return new getProvider_args(this);
|
|
|
1008 |
}
|
|
|
1009 |
|
| 3430 |
rajveer |
1010 |
@Override
|
|
|
1011 |
public void clear() {
|
|
|
1012 |
setProviderIdIsSet(false);
|
|
|
1013 |
this.providerId = 0;
|
| 668 |
chandransh |
1014 |
}
|
|
|
1015 |
|
|
|
1016 |
public long getProviderId() {
|
|
|
1017 |
return this.providerId;
|
|
|
1018 |
}
|
|
|
1019 |
|
| 3430 |
rajveer |
1020 |
public void setProviderId(long providerId) {
|
| 668 |
chandransh |
1021 |
this.providerId = providerId;
|
|
|
1022 |
setProviderIdIsSet(true);
|
|
|
1023 |
}
|
|
|
1024 |
|
|
|
1025 |
public void unsetProviderId() {
|
|
|
1026 |
__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
|
|
|
1027 |
}
|
|
|
1028 |
|
| 3430 |
rajveer |
1029 |
/** Returns true if field providerId is set (has been assigned a value) and false otherwise */
|
| 668 |
chandransh |
1030 |
public boolean isSetProviderId() {
|
|
|
1031 |
return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
|
|
|
1032 |
}
|
|
|
1033 |
|
|
|
1034 |
public void setProviderIdIsSet(boolean value) {
|
|
|
1035 |
__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
|
|
|
1036 |
}
|
|
|
1037 |
|
|
|
1038 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
1039 |
switch (field) {
|
|
|
1040 |
case PROVIDER_ID:
|
|
|
1041 |
if (value == null) {
|
|
|
1042 |
unsetProviderId();
|
|
|
1043 |
} else {
|
|
|
1044 |
setProviderId((Long)value);
|
|
|
1045 |
}
|
|
|
1046 |
break;
|
|
|
1047 |
|
|
|
1048 |
}
|
|
|
1049 |
}
|
|
|
1050 |
|
|
|
1051 |
public Object getFieldValue(_Fields field) {
|
|
|
1052 |
switch (field) {
|
|
|
1053 |
case PROVIDER_ID:
|
| 3430 |
rajveer |
1054 |
return Long.valueOf(getProviderId());
|
| 668 |
chandransh |
1055 |
|
|
|
1056 |
}
|
|
|
1057 |
throw new IllegalStateException();
|
|
|
1058 |
}
|
|
|
1059 |
|
| 3430 |
rajveer |
1060 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
1061 |
public boolean isSet(_Fields field) {
|
|
|
1062 |
if (field == null) {
|
|
|
1063 |
throw new IllegalArgumentException();
|
|
|
1064 |
}
|
| 668 |
chandransh |
1065 |
|
|
|
1066 |
switch (field) {
|
|
|
1067 |
case PROVIDER_ID:
|
|
|
1068 |
return isSetProviderId();
|
|
|
1069 |
}
|
|
|
1070 |
throw new IllegalStateException();
|
|
|
1071 |
}
|
|
|
1072 |
|
|
|
1073 |
@Override
|
|
|
1074 |
public boolean equals(Object that) {
|
|
|
1075 |
if (that == null)
|
|
|
1076 |
return false;
|
|
|
1077 |
if (that instanceof getProvider_args)
|
|
|
1078 |
return this.equals((getProvider_args)that);
|
|
|
1079 |
return false;
|
|
|
1080 |
}
|
|
|
1081 |
|
|
|
1082 |
public boolean equals(getProvider_args that) {
|
|
|
1083 |
if (that == null)
|
|
|
1084 |
return false;
|
|
|
1085 |
|
|
|
1086 |
boolean this_present_providerId = true;
|
|
|
1087 |
boolean that_present_providerId = true;
|
|
|
1088 |
if (this_present_providerId || that_present_providerId) {
|
|
|
1089 |
if (!(this_present_providerId && that_present_providerId))
|
|
|
1090 |
return false;
|
|
|
1091 |
if (this.providerId != that.providerId)
|
|
|
1092 |
return false;
|
|
|
1093 |
}
|
|
|
1094 |
|
|
|
1095 |
return true;
|
|
|
1096 |
}
|
|
|
1097 |
|
|
|
1098 |
@Override
|
|
|
1099 |
public int hashCode() {
|
|
|
1100 |
return 0;
|
|
|
1101 |
}
|
|
|
1102 |
|
|
|
1103 |
public int compareTo(getProvider_args other) {
|
|
|
1104 |
if (!getClass().equals(other.getClass())) {
|
|
|
1105 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
1106 |
}
|
|
|
1107 |
|
|
|
1108 |
int lastComparison = 0;
|
|
|
1109 |
getProvider_args typedOther = (getProvider_args)other;
|
|
|
1110 |
|
| 3430 |
rajveer |
1111 |
lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
|
| 668 |
chandransh |
1112 |
if (lastComparison != 0) {
|
|
|
1113 |
return lastComparison;
|
|
|
1114 |
}
|
| 3430 |
rajveer |
1115 |
if (isSetProviderId()) {
|
|
|
1116 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
|
|
|
1117 |
if (lastComparison != 0) {
|
|
|
1118 |
return lastComparison;
|
|
|
1119 |
}
|
| 668 |
chandransh |
1120 |
}
|
|
|
1121 |
return 0;
|
|
|
1122 |
}
|
|
|
1123 |
|
| 3430 |
rajveer |
1124 |
public _Fields fieldForId(int fieldId) {
|
|
|
1125 |
return _Fields.findByThriftId(fieldId);
|
|
|
1126 |
}
|
|
|
1127 |
|
|
|
1128 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
1129 |
org.apache.thrift.protocol.TField field;
|
| 668 |
chandransh |
1130 |
iprot.readStructBegin();
|
|
|
1131 |
while (true)
|
|
|
1132 |
{
|
|
|
1133 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
1134 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 668 |
chandransh |
1135 |
break;
|
|
|
1136 |
}
|
| 3430 |
rajveer |
1137 |
switch (field.id) {
|
|
|
1138 |
case 1: // PROVIDER_ID
|
|
|
1139 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1140 |
this.providerId = iprot.readI64();
|
|
|
1141 |
setProviderIdIsSet(true);
|
|
|
1142 |
} else {
|
|
|
1143 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1144 |
}
|
|
|
1145 |
break;
|
|
|
1146 |
default:
|
|
|
1147 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 668 |
chandransh |
1148 |
}
|
| 3430 |
rajveer |
1149 |
iprot.readFieldEnd();
|
| 668 |
chandransh |
1150 |
}
|
|
|
1151 |
iprot.readStructEnd();
|
|
|
1152 |
validate();
|
|
|
1153 |
}
|
|
|
1154 |
|
| 3430 |
rajveer |
1155 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 668 |
chandransh |
1156 |
validate();
|
|
|
1157 |
|
|
|
1158 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
1159 |
oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
|
|
|
1160 |
oprot.writeI64(this.providerId);
|
|
|
1161 |
oprot.writeFieldEnd();
|
|
|
1162 |
oprot.writeFieldStop();
|
|
|
1163 |
oprot.writeStructEnd();
|
|
|
1164 |
}
|
|
|
1165 |
|
|
|
1166 |
@Override
|
|
|
1167 |
public String toString() {
|
|
|
1168 |
StringBuilder sb = new StringBuilder("getProvider_args(");
|
|
|
1169 |
boolean first = true;
|
|
|
1170 |
|
|
|
1171 |
sb.append("providerId:");
|
|
|
1172 |
sb.append(this.providerId);
|
|
|
1173 |
first = false;
|
|
|
1174 |
sb.append(")");
|
|
|
1175 |
return sb.toString();
|
|
|
1176 |
}
|
|
|
1177 |
|
| 3430 |
rajveer |
1178 |
public void validate() throws org.apache.thrift.TException {
|
| 668 |
chandransh |
1179 |
// check for required fields
|
|
|
1180 |
}
|
|
|
1181 |
|
| 3430 |
rajveer |
1182 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
1183 |
try {
|
|
|
1184 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
1185 |
} catch (org.apache.thrift.TException te) {
|
|
|
1186 |
throw new java.io.IOException(te);
|
|
|
1187 |
}
|
|
|
1188 |
}
|
|
|
1189 |
|
|
|
1190 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
1191 |
try {
|
|
|
1192 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
1193 |
} catch (org.apache.thrift.TException te) {
|
|
|
1194 |
throw new java.io.IOException(te);
|
|
|
1195 |
}
|
|
|
1196 |
}
|
|
|
1197 |
|
| 668 |
chandransh |
1198 |
}
|
|
|
1199 |
|
| 3430 |
rajveer |
1200 |
public static class getProvider_result implements org.apache.thrift.TBase<getProvider_result, getProvider_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
1201 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_result");
|
| 668 |
chandransh |
1202 |
|
| 3430 |
rajveer |
1203 |
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);
|
|
|
1204 |
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 |
1205 |
|
| 3430 |
rajveer |
1206 |
private Provider success; // required
|
|
|
1207 |
private LogisticsServiceException lse; // required
|
| 668 |
chandransh |
1208 |
|
|
|
1209 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
1210 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 668 |
chandransh |
1211 |
SUCCESS((short)0, "success"),
|
|
|
1212 |
LSE((short)1, "lse");
|
|
|
1213 |
|
|
|
1214 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
1215 |
|
|
|
1216 |
static {
|
|
|
1217 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
1218 |
byName.put(field.getFieldName(), field);
|
|
|
1219 |
}
|
|
|
1220 |
}
|
|
|
1221 |
|
|
|
1222 |
/**
|
|
|
1223 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
1224 |
*/
|
|
|
1225 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
1226 |
switch(fieldId) {
|
|
|
1227 |
case 0: // SUCCESS
|
|
|
1228 |
return SUCCESS;
|
|
|
1229 |
case 1: // LSE
|
|
|
1230 |
return LSE;
|
|
|
1231 |
default:
|
|
|
1232 |
return null;
|
|
|
1233 |
}
|
| 668 |
chandransh |
1234 |
}
|
|
|
1235 |
|
|
|
1236 |
/**
|
|
|
1237 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
1238 |
* if it is not found.
|
|
|
1239 |
*/
|
|
|
1240 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
1241 |
_Fields fields = findByThriftId(fieldId);
|
|
|
1242 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
1243 |
return fields;
|
|
|
1244 |
}
|
|
|
1245 |
|
|
|
1246 |
/**
|
|
|
1247 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
1248 |
*/
|
|
|
1249 |
public static _Fields findByName(String name) {
|
|
|
1250 |
return byName.get(name);
|
|
|
1251 |
}
|
|
|
1252 |
|
|
|
1253 |
private final short _thriftId;
|
|
|
1254 |
private final String _fieldName;
|
|
|
1255 |
|
|
|
1256 |
_Fields(short thriftId, String fieldName) {
|
|
|
1257 |
_thriftId = thriftId;
|
|
|
1258 |
_fieldName = fieldName;
|
|
|
1259 |
}
|
|
|
1260 |
|
|
|
1261 |
public short getThriftFieldId() {
|
|
|
1262 |
return _thriftId;
|
|
|
1263 |
}
|
|
|
1264 |
|
|
|
1265 |
public String getFieldName() {
|
|
|
1266 |
return _fieldName;
|
|
|
1267 |
}
|
|
|
1268 |
}
|
|
|
1269 |
|
|
|
1270 |
// isset id assignments
|
|
|
1271 |
|
| 3430 |
rajveer |
1272 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 668 |
chandransh |
1273 |
static {
|
| 3430 |
rajveer |
1274 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
1275 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
1276 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class)));
|
|
|
1277 |
tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
1278 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
1279 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
1280 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_result.class, metaDataMap);
|
| 668 |
chandransh |
1281 |
}
|
|
|
1282 |
|
|
|
1283 |
public getProvider_result() {
|
|
|
1284 |
}
|
|
|
1285 |
|
|
|
1286 |
public getProvider_result(
|
|
|
1287 |
Provider success,
|
|
|
1288 |
LogisticsServiceException lse)
|
|
|
1289 |
{
|
|
|
1290 |
this();
|
|
|
1291 |
this.success = success;
|
|
|
1292 |
this.lse = lse;
|
|
|
1293 |
}
|
|
|
1294 |
|
|
|
1295 |
/**
|
|
|
1296 |
* Performs a deep copy on <i>other</i>.
|
|
|
1297 |
*/
|
|
|
1298 |
public getProvider_result(getProvider_result other) {
|
|
|
1299 |
if (other.isSetSuccess()) {
|
|
|
1300 |
this.success = new Provider(other.success);
|
|
|
1301 |
}
|
|
|
1302 |
if (other.isSetLse()) {
|
|
|
1303 |
this.lse = new LogisticsServiceException(other.lse);
|
|
|
1304 |
}
|
|
|
1305 |
}
|
|
|
1306 |
|
|
|
1307 |
public getProvider_result deepCopy() {
|
|
|
1308 |
return new getProvider_result(this);
|
|
|
1309 |
}
|
|
|
1310 |
|
| 3430 |
rajveer |
1311 |
@Override
|
|
|
1312 |
public void clear() {
|
|
|
1313 |
this.success = null;
|
|
|
1314 |
this.lse = null;
|
| 668 |
chandransh |
1315 |
}
|
|
|
1316 |
|
|
|
1317 |
public Provider getSuccess() {
|
|
|
1318 |
return this.success;
|
|
|
1319 |
}
|
|
|
1320 |
|
| 3430 |
rajveer |
1321 |
public void setSuccess(Provider success) {
|
| 668 |
chandransh |
1322 |
this.success = success;
|
|
|
1323 |
}
|
|
|
1324 |
|
|
|
1325 |
public void unsetSuccess() {
|
|
|
1326 |
this.success = null;
|
|
|
1327 |
}
|
|
|
1328 |
|
| 3430 |
rajveer |
1329 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 668 |
chandransh |
1330 |
public boolean isSetSuccess() {
|
|
|
1331 |
return this.success != null;
|
|
|
1332 |
}
|
|
|
1333 |
|
|
|
1334 |
public void setSuccessIsSet(boolean value) {
|
|
|
1335 |
if (!value) {
|
|
|
1336 |
this.success = null;
|
|
|
1337 |
}
|
|
|
1338 |
}
|
|
|
1339 |
|
|
|
1340 |
public LogisticsServiceException getLse() {
|
|
|
1341 |
return this.lse;
|
|
|
1342 |
}
|
|
|
1343 |
|
| 3430 |
rajveer |
1344 |
public void setLse(LogisticsServiceException lse) {
|
| 668 |
chandransh |
1345 |
this.lse = lse;
|
|
|
1346 |
}
|
|
|
1347 |
|
|
|
1348 |
public void unsetLse() {
|
|
|
1349 |
this.lse = null;
|
|
|
1350 |
}
|
|
|
1351 |
|
| 3430 |
rajveer |
1352 |
/** Returns true if field lse is set (has been assigned a value) and false otherwise */
|
| 668 |
chandransh |
1353 |
public boolean isSetLse() {
|
|
|
1354 |
return this.lse != null;
|
|
|
1355 |
}
|
|
|
1356 |
|
|
|
1357 |
public void setLseIsSet(boolean value) {
|
|
|
1358 |
if (!value) {
|
|
|
1359 |
this.lse = null;
|
|
|
1360 |
}
|
|
|
1361 |
}
|
|
|
1362 |
|
|
|
1363 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
1364 |
switch (field) {
|
|
|
1365 |
case SUCCESS:
|
|
|
1366 |
if (value == null) {
|
|
|
1367 |
unsetSuccess();
|
|
|
1368 |
} else {
|
|
|
1369 |
setSuccess((Provider)value);
|
|
|
1370 |
}
|
|
|
1371 |
break;
|
|
|
1372 |
|
|
|
1373 |
case LSE:
|
|
|
1374 |
if (value == null) {
|
|
|
1375 |
unsetLse();
|
|
|
1376 |
} else {
|
|
|
1377 |
setLse((LogisticsServiceException)value);
|
|
|
1378 |
}
|
|
|
1379 |
break;
|
|
|
1380 |
|
|
|
1381 |
}
|
|
|
1382 |
}
|
|
|
1383 |
|
|
|
1384 |
public Object getFieldValue(_Fields field) {
|
|
|
1385 |
switch (field) {
|
|
|
1386 |
case SUCCESS:
|
|
|
1387 |
return getSuccess();
|
|
|
1388 |
|
|
|
1389 |
case LSE:
|
|
|
1390 |
return getLse();
|
|
|
1391 |
|
|
|
1392 |
}
|
|
|
1393 |
throw new IllegalStateException();
|
|
|
1394 |
}
|
|
|
1395 |
|
| 3430 |
rajveer |
1396 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
1397 |
public boolean isSet(_Fields field) {
|
|
|
1398 |
if (field == null) {
|
|
|
1399 |
throw new IllegalArgumentException();
|
|
|
1400 |
}
|
| 668 |
chandransh |
1401 |
|
|
|
1402 |
switch (field) {
|
|
|
1403 |
case SUCCESS:
|
|
|
1404 |
return isSetSuccess();
|
|
|
1405 |
case LSE:
|
|
|
1406 |
return isSetLse();
|
|
|
1407 |
}
|
|
|
1408 |
throw new IllegalStateException();
|
|
|
1409 |
}
|
|
|
1410 |
|
|
|
1411 |
@Override
|
|
|
1412 |
public boolean equals(Object that) {
|
|
|
1413 |
if (that == null)
|
|
|
1414 |
return false;
|
|
|
1415 |
if (that instanceof getProvider_result)
|
|
|
1416 |
return this.equals((getProvider_result)that);
|
|
|
1417 |
return false;
|
|
|
1418 |
}
|
|
|
1419 |
|
|
|
1420 |
public boolean equals(getProvider_result that) {
|
|
|
1421 |
if (that == null)
|
|
|
1422 |
return false;
|
|
|
1423 |
|
|
|
1424 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
1425 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
1426 |
if (this_present_success || that_present_success) {
|
|
|
1427 |
if (!(this_present_success && that_present_success))
|
|
|
1428 |
return false;
|
|
|
1429 |
if (!this.success.equals(that.success))
|
|
|
1430 |
return false;
|
|
|
1431 |
}
|
|
|
1432 |
|
|
|
1433 |
boolean this_present_lse = true && this.isSetLse();
|
|
|
1434 |
boolean that_present_lse = true && that.isSetLse();
|
|
|
1435 |
if (this_present_lse || that_present_lse) {
|
|
|
1436 |
if (!(this_present_lse && that_present_lse))
|
|
|
1437 |
return false;
|
|
|
1438 |
if (!this.lse.equals(that.lse))
|
|
|
1439 |
return false;
|
|
|
1440 |
}
|
|
|
1441 |
|
|
|
1442 |
return true;
|
|
|
1443 |
}
|
|
|
1444 |
|
|
|
1445 |
@Override
|
|
|
1446 |
public int hashCode() {
|
|
|
1447 |
return 0;
|
|
|
1448 |
}
|
|
|
1449 |
|
| 3430 |
rajveer |
1450 |
public int compareTo(getProvider_result other) {
|
|
|
1451 |
if (!getClass().equals(other.getClass())) {
|
|
|
1452 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
1453 |
}
|
|
|
1454 |
|
|
|
1455 |
int lastComparison = 0;
|
|
|
1456 |
getProvider_result typedOther = (getProvider_result)other;
|
|
|
1457 |
|
|
|
1458 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
1459 |
if (lastComparison != 0) {
|
|
|
1460 |
return lastComparison;
|
|
|
1461 |
}
|
|
|
1462 |
if (isSetSuccess()) {
|
|
|
1463 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
1464 |
if (lastComparison != 0) {
|
|
|
1465 |
return lastComparison;
|
|
|
1466 |
}
|
|
|
1467 |
}
|
|
|
1468 |
lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
|
|
|
1469 |
if (lastComparison != 0) {
|
|
|
1470 |
return lastComparison;
|
|
|
1471 |
}
|
|
|
1472 |
if (isSetLse()) {
|
|
|
1473 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
|
|
|
1474 |
if (lastComparison != 0) {
|
|
|
1475 |
return lastComparison;
|
|
|
1476 |
}
|
|
|
1477 |
}
|
|
|
1478 |
return 0;
|
|
|
1479 |
}
|
|
|
1480 |
|
|
|
1481 |
public _Fields fieldForId(int fieldId) {
|
|
|
1482 |
return _Fields.findByThriftId(fieldId);
|
|
|
1483 |
}
|
|
|
1484 |
|
|
|
1485 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
1486 |
org.apache.thrift.protocol.TField field;
|
| 668 |
chandransh |
1487 |
iprot.readStructBegin();
|
|
|
1488 |
while (true)
|
|
|
1489 |
{
|
|
|
1490 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
1491 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 668 |
chandransh |
1492 |
break;
|
|
|
1493 |
}
|
| 3430 |
rajveer |
1494 |
switch (field.id) {
|
|
|
1495 |
case 0: // SUCCESS
|
|
|
1496 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
1497 |
this.success = new Provider();
|
|
|
1498 |
this.success.read(iprot);
|
|
|
1499 |
} else {
|
|
|
1500 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1501 |
}
|
|
|
1502 |
break;
|
|
|
1503 |
case 1: // LSE
|
|
|
1504 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
1505 |
this.lse = new LogisticsServiceException();
|
|
|
1506 |
this.lse.read(iprot);
|
|
|
1507 |
} else {
|
|
|
1508 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1509 |
}
|
|
|
1510 |
break;
|
|
|
1511 |
default:
|
|
|
1512 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 668 |
chandransh |
1513 |
}
|
| 3430 |
rajveer |
1514 |
iprot.readFieldEnd();
|
| 668 |
chandransh |
1515 |
}
|
|
|
1516 |
iprot.readStructEnd();
|
|
|
1517 |
validate();
|
|
|
1518 |
}
|
|
|
1519 |
|
| 3430 |
rajveer |
1520 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 668 |
chandransh |
1521 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
1522 |
|
|
|
1523 |
if (this.isSetSuccess()) {
|
|
|
1524 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
1525 |
this.success.write(oprot);
|
|
|
1526 |
oprot.writeFieldEnd();
|
|
|
1527 |
} else if (this.isSetLse()) {
|
|
|
1528 |
oprot.writeFieldBegin(LSE_FIELD_DESC);
|
|
|
1529 |
this.lse.write(oprot);
|
|
|
1530 |
oprot.writeFieldEnd();
|
|
|
1531 |
}
|
|
|
1532 |
oprot.writeFieldStop();
|
|
|
1533 |
oprot.writeStructEnd();
|
|
|
1534 |
}
|
|
|
1535 |
|
|
|
1536 |
@Override
|
|
|
1537 |
public String toString() {
|
|
|
1538 |
StringBuilder sb = new StringBuilder("getProvider_result(");
|
|
|
1539 |
boolean first = true;
|
|
|
1540 |
|
|
|
1541 |
sb.append("success:");
|
|
|
1542 |
if (this.success == null) {
|
|
|
1543 |
sb.append("null");
|
|
|
1544 |
} else {
|
|
|
1545 |
sb.append(this.success);
|
|
|
1546 |
}
|
|
|
1547 |
first = false;
|
|
|
1548 |
if (!first) sb.append(", ");
|
|
|
1549 |
sb.append("lse:");
|
|
|
1550 |
if (this.lse == null) {
|
|
|
1551 |
sb.append("null");
|
|
|
1552 |
} else {
|
|
|
1553 |
sb.append(this.lse);
|
|
|
1554 |
}
|
|
|
1555 |
first = false;
|
|
|
1556 |
sb.append(")");
|
|
|
1557 |
return sb.toString();
|
|
|
1558 |
}
|
|
|
1559 |
|
| 3430 |
rajveer |
1560 |
public void validate() throws org.apache.thrift.TException {
|
| 668 |
chandransh |
1561 |
// check for required fields
|
|
|
1562 |
}
|
|
|
1563 |
|
| 3430 |
rajveer |
1564 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
1565 |
try {
|
|
|
1566 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
1567 |
} catch (org.apache.thrift.TException te) {
|
|
|
1568 |
throw new java.io.IOException(te);
|
|
|
1569 |
}
|
|
|
1570 |
}
|
|
|
1571 |
|
|
|
1572 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
1573 |
try {
|
|
|
1574 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
1575 |
} catch (org.apache.thrift.TException te) {
|
|
|
1576 |
throw new java.io.IOException(te);
|
|
|
1577 |
}
|
|
|
1578 |
}
|
|
|
1579 |
|
| 668 |
chandransh |
1580 |
}
|
|
|
1581 |
|
| 3430 |
rajveer |
1582 |
public static class getAllProviders_args implements org.apache.thrift.TBase<getAllProviders_args, getAllProviders_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
1583 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_args");
|
| 674 |
chandransh |
1584 |
|
|
|
1585 |
|
|
|
1586 |
|
|
|
1587 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
1588 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 674 |
chandransh |
1589 |
;
|
|
|
1590 |
|
|
|
1591 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
1592 |
|
|
|
1593 |
static {
|
|
|
1594 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
1595 |
byName.put(field.getFieldName(), field);
|
|
|
1596 |
}
|
|
|
1597 |
}
|
|
|
1598 |
|
|
|
1599 |
/**
|
|
|
1600 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
1601 |
*/
|
|
|
1602 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
1603 |
switch(fieldId) {
|
|
|
1604 |
default:
|
|
|
1605 |
return null;
|
|
|
1606 |
}
|
| 674 |
chandransh |
1607 |
}
|
|
|
1608 |
|
|
|
1609 |
/**
|
|
|
1610 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
1611 |
* if it is not found.
|
|
|
1612 |
*/
|
|
|
1613 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
1614 |
_Fields fields = findByThriftId(fieldId);
|
|
|
1615 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
1616 |
return fields;
|
|
|
1617 |
}
|
|
|
1618 |
|
|
|
1619 |
/**
|
|
|
1620 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
1621 |
*/
|
|
|
1622 |
public static _Fields findByName(String name) {
|
|
|
1623 |
return byName.get(name);
|
|
|
1624 |
}
|
|
|
1625 |
|
|
|
1626 |
private final short _thriftId;
|
|
|
1627 |
private final String _fieldName;
|
|
|
1628 |
|
|
|
1629 |
_Fields(short thriftId, String fieldName) {
|
|
|
1630 |
_thriftId = thriftId;
|
|
|
1631 |
_fieldName = fieldName;
|
|
|
1632 |
}
|
|
|
1633 |
|
|
|
1634 |
public short getThriftFieldId() {
|
|
|
1635 |
return _thriftId;
|
|
|
1636 |
}
|
|
|
1637 |
|
|
|
1638 |
public String getFieldName() {
|
|
|
1639 |
return _fieldName;
|
|
|
1640 |
}
|
|
|
1641 |
}
|
| 3430 |
rajveer |
1642 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 674 |
chandransh |
1643 |
static {
|
| 3430 |
rajveer |
1644 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
1645 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
1646 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_args.class, metaDataMap);
|
| 674 |
chandransh |
1647 |
}
|
|
|
1648 |
|
|
|
1649 |
public getAllProviders_args() {
|
|
|
1650 |
}
|
|
|
1651 |
|
|
|
1652 |
/**
|
|
|
1653 |
* Performs a deep copy on <i>other</i>.
|
|
|
1654 |
*/
|
|
|
1655 |
public getAllProviders_args(getAllProviders_args other) {
|
|
|
1656 |
}
|
|
|
1657 |
|
|
|
1658 |
public getAllProviders_args deepCopy() {
|
|
|
1659 |
return new getAllProviders_args(this);
|
|
|
1660 |
}
|
|
|
1661 |
|
| 3430 |
rajveer |
1662 |
@Override
|
|
|
1663 |
public void clear() {
|
| 674 |
chandransh |
1664 |
}
|
|
|
1665 |
|
|
|
1666 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
1667 |
switch (field) {
|
|
|
1668 |
}
|
|
|
1669 |
}
|
|
|
1670 |
|
|
|
1671 |
public Object getFieldValue(_Fields field) {
|
|
|
1672 |
switch (field) {
|
|
|
1673 |
}
|
|
|
1674 |
throw new IllegalStateException();
|
|
|
1675 |
}
|
|
|
1676 |
|
| 3430 |
rajveer |
1677 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
1678 |
public boolean isSet(_Fields field) {
|
|
|
1679 |
if (field == null) {
|
|
|
1680 |
throw new IllegalArgumentException();
|
|
|
1681 |
}
|
| 674 |
chandransh |
1682 |
|
|
|
1683 |
switch (field) {
|
|
|
1684 |
}
|
|
|
1685 |
throw new IllegalStateException();
|
|
|
1686 |
}
|
|
|
1687 |
|
|
|
1688 |
@Override
|
|
|
1689 |
public boolean equals(Object that) {
|
|
|
1690 |
if (that == null)
|
|
|
1691 |
return false;
|
|
|
1692 |
if (that instanceof getAllProviders_args)
|
|
|
1693 |
return this.equals((getAllProviders_args)that);
|
|
|
1694 |
return false;
|
|
|
1695 |
}
|
|
|
1696 |
|
|
|
1697 |
public boolean equals(getAllProviders_args that) {
|
|
|
1698 |
if (that == null)
|
|
|
1699 |
return false;
|
|
|
1700 |
|
|
|
1701 |
return true;
|
|
|
1702 |
}
|
|
|
1703 |
|
|
|
1704 |
@Override
|
|
|
1705 |
public int hashCode() {
|
|
|
1706 |
return 0;
|
|
|
1707 |
}
|
|
|
1708 |
|
|
|
1709 |
public int compareTo(getAllProviders_args other) {
|
|
|
1710 |
if (!getClass().equals(other.getClass())) {
|
|
|
1711 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
1712 |
}
|
|
|
1713 |
|
|
|
1714 |
int lastComparison = 0;
|
|
|
1715 |
getAllProviders_args typedOther = (getAllProviders_args)other;
|
|
|
1716 |
|
|
|
1717 |
return 0;
|
|
|
1718 |
}
|
|
|
1719 |
|
| 3430 |
rajveer |
1720 |
public _Fields fieldForId(int fieldId) {
|
|
|
1721 |
return _Fields.findByThriftId(fieldId);
|
|
|
1722 |
}
|
|
|
1723 |
|
|
|
1724 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
1725 |
org.apache.thrift.protocol.TField field;
|
| 674 |
chandransh |
1726 |
iprot.readStructBegin();
|
|
|
1727 |
while (true)
|
|
|
1728 |
{
|
|
|
1729 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
1730 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 674 |
chandransh |
1731 |
break;
|
|
|
1732 |
}
|
| 3430 |
rajveer |
1733 |
switch (field.id) {
|
|
|
1734 |
default:
|
|
|
1735 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 674 |
chandransh |
1736 |
}
|
| 3430 |
rajveer |
1737 |
iprot.readFieldEnd();
|
| 674 |
chandransh |
1738 |
}
|
|
|
1739 |
iprot.readStructEnd();
|
|
|
1740 |
validate();
|
|
|
1741 |
}
|
|
|
1742 |
|
| 3430 |
rajveer |
1743 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 674 |
chandransh |
1744 |
validate();
|
|
|
1745 |
|
|
|
1746 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
1747 |
oprot.writeFieldStop();
|
|
|
1748 |
oprot.writeStructEnd();
|
|
|
1749 |
}
|
|
|
1750 |
|
|
|
1751 |
@Override
|
|
|
1752 |
public String toString() {
|
|
|
1753 |
StringBuilder sb = new StringBuilder("getAllProviders_args(");
|
|
|
1754 |
boolean first = true;
|
|
|
1755 |
|
|
|
1756 |
sb.append(")");
|
|
|
1757 |
return sb.toString();
|
|
|
1758 |
}
|
|
|
1759 |
|
| 3430 |
rajveer |
1760 |
public void validate() throws org.apache.thrift.TException {
|
| 674 |
chandransh |
1761 |
// check for required fields
|
|
|
1762 |
}
|
|
|
1763 |
|
| 3430 |
rajveer |
1764 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
1765 |
try {
|
|
|
1766 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
1767 |
} catch (org.apache.thrift.TException te) {
|
|
|
1768 |
throw new java.io.IOException(te);
|
|
|
1769 |
}
|
|
|
1770 |
}
|
|
|
1771 |
|
|
|
1772 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
1773 |
try {
|
|
|
1774 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
1775 |
} catch (org.apache.thrift.TException te) {
|
|
|
1776 |
throw new java.io.IOException(te);
|
|
|
1777 |
}
|
|
|
1778 |
}
|
|
|
1779 |
|
| 674 |
chandransh |
1780 |
}
|
|
|
1781 |
|
| 3430 |
rajveer |
1782 |
public static class getAllProviders_result implements org.apache.thrift.TBase<getAllProviders_result, getAllProviders_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
1783 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_result");
|
| 674 |
chandransh |
1784 |
|
| 3430 |
rajveer |
1785 |
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);
|
|
|
1786 |
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 |
1787 |
|
| 3430 |
rajveer |
1788 |
private List<Provider> success; // required
|
|
|
1789 |
private LogisticsServiceException lse; // required
|
| 674 |
chandransh |
1790 |
|
|
|
1791 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
1792 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 674 |
chandransh |
1793 |
SUCCESS((short)0, "success"),
|
|
|
1794 |
LSE((short)1, "lse");
|
|
|
1795 |
|
|
|
1796 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
1797 |
|
|
|
1798 |
static {
|
|
|
1799 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
1800 |
byName.put(field.getFieldName(), field);
|
|
|
1801 |
}
|
|
|
1802 |
}
|
|
|
1803 |
|
|
|
1804 |
/**
|
|
|
1805 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
1806 |
*/
|
|
|
1807 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
1808 |
switch(fieldId) {
|
|
|
1809 |
case 0: // SUCCESS
|
|
|
1810 |
return SUCCESS;
|
|
|
1811 |
case 1: // LSE
|
|
|
1812 |
return LSE;
|
|
|
1813 |
default:
|
|
|
1814 |
return null;
|
|
|
1815 |
}
|
| 674 |
chandransh |
1816 |
}
|
|
|
1817 |
|
|
|
1818 |
/**
|
|
|
1819 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
1820 |
* if it is not found.
|
|
|
1821 |
*/
|
|
|
1822 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
1823 |
_Fields fields = findByThriftId(fieldId);
|
|
|
1824 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
1825 |
return fields;
|
|
|
1826 |
}
|
|
|
1827 |
|
|
|
1828 |
/**
|
|
|
1829 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
1830 |
*/
|
|
|
1831 |
public static _Fields findByName(String name) {
|
|
|
1832 |
return byName.get(name);
|
|
|
1833 |
}
|
|
|
1834 |
|
|
|
1835 |
private final short _thriftId;
|
|
|
1836 |
private final String _fieldName;
|
|
|
1837 |
|
|
|
1838 |
_Fields(short thriftId, String fieldName) {
|
|
|
1839 |
_thriftId = thriftId;
|
|
|
1840 |
_fieldName = fieldName;
|
|
|
1841 |
}
|
|
|
1842 |
|
|
|
1843 |
public short getThriftFieldId() {
|
|
|
1844 |
return _thriftId;
|
|
|
1845 |
}
|
|
|
1846 |
|
|
|
1847 |
public String getFieldName() {
|
|
|
1848 |
return _fieldName;
|
|
|
1849 |
}
|
|
|
1850 |
}
|
|
|
1851 |
|
|
|
1852 |
// isset id assignments
|
|
|
1853 |
|
| 3430 |
rajveer |
1854 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 674 |
chandransh |
1855 |
static {
|
| 3430 |
rajveer |
1856 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
1857 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
1858 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
1859 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class))));
|
|
|
1860 |
tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
1861 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
1862 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
1863 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_result.class, metaDataMap);
|
| 674 |
chandransh |
1864 |
}
|
|
|
1865 |
|
|
|
1866 |
public getAllProviders_result() {
|
|
|
1867 |
}
|
|
|
1868 |
|
|
|
1869 |
public getAllProviders_result(
|
|
|
1870 |
List<Provider> success,
|
|
|
1871 |
LogisticsServiceException lse)
|
|
|
1872 |
{
|
|
|
1873 |
this();
|
|
|
1874 |
this.success = success;
|
|
|
1875 |
this.lse = lse;
|
|
|
1876 |
}
|
|
|
1877 |
|
|
|
1878 |
/**
|
|
|
1879 |
* Performs a deep copy on <i>other</i>.
|
|
|
1880 |
*/
|
|
|
1881 |
public getAllProviders_result(getAllProviders_result other) {
|
|
|
1882 |
if (other.isSetSuccess()) {
|
|
|
1883 |
List<Provider> __this__success = new ArrayList<Provider>();
|
|
|
1884 |
for (Provider other_element : other.success) {
|
|
|
1885 |
__this__success.add(new Provider(other_element));
|
|
|
1886 |
}
|
|
|
1887 |
this.success = __this__success;
|
|
|
1888 |
}
|
|
|
1889 |
if (other.isSetLse()) {
|
|
|
1890 |
this.lse = new LogisticsServiceException(other.lse);
|
|
|
1891 |
}
|
|
|
1892 |
}
|
|
|
1893 |
|
|
|
1894 |
public getAllProviders_result deepCopy() {
|
|
|
1895 |
return new getAllProviders_result(this);
|
|
|
1896 |
}
|
|
|
1897 |
|
| 3430 |
rajveer |
1898 |
@Override
|
|
|
1899 |
public void clear() {
|
|
|
1900 |
this.success = null;
|
|
|
1901 |
this.lse = null;
|
| 674 |
chandransh |
1902 |
}
|
|
|
1903 |
|
|
|
1904 |
public int getSuccessSize() {
|
|
|
1905 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
1906 |
}
|
|
|
1907 |
|
|
|
1908 |
public java.util.Iterator<Provider> getSuccessIterator() {
|
|
|
1909 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
1910 |
}
|
|
|
1911 |
|
|
|
1912 |
public void addToSuccess(Provider elem) {
|
|
|
1913 |
if (this.success == null) {
|
|
|
1914 |
this.success = new ArrayList<Provider>();
|
|
|
1915 |
}
|
|
|
1916 |
this.success.add(elem);
|
|
|
1917 |
}
|
|
|
1918 |
|
|
|
1919 |
public List<Provider> getSuccess() {
|
|
|
1920 |
return this.success;
|
|
|
1921 |
}
|
|
|
1922 |
|
| 3430 |
rajveer |
1923 |
public void setSuccess(List<Provider> success) {
|
| 674 |
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 */
|
| 674 |
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) {
|
| 674 |
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 */
|
| 674 |
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((List<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 |
}
|
| 674 |
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 getAllProviders_result)
|
|
|
2018 |
return this.equals((getAllProviders_result)that);
|
|
|
2019 |
return false;
|
|
|
2020 |
}
|
|
|
2021 |
|
|
|
2022 |
public boolean equals(getAllProviders_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(getAllProviders_result other) {
|
|
|
2053 |
if (!getClass().equals(other.getClass())) {
|
|
|
2054 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
2055 |
}
|
|
|
2056 |
|
|
|
2057 |
int lastComparison = 0;
|
|
|
2058 |
getAllProviders_result typedOther = (getAllProviders_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;
|
| 674 |
chandransh |
2089 |
iprot.readStructBegin();
|
|
|
2090 |
while (true)
|
|
|
2091 |
{
|
|
|
2092 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
2093 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 674 |
chandransh |
2094 |
break;
|
|
|
2095 |
}
|
| 3430 |
rajveer |
2096 |
switch (field.id) {
|
|
|
2097 |
case 0: // SUCCESS
|
|
|
2098 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
2099 |
{
|
|
|
2100 |
org.apache.thrift.protocol.TList _list5 = iprot.readListBegin();
|
|
|
2101 |
this.success = new ArrayList<Provider>(_list5.size);
|
|
|
2102 |
for (int _i6 = 0; _i6 < _list5.size; ++_i6)
|
| 674 |
chandransh |
2103 |
{
|
| 3430 |
rajveer |
2104 |
Provider _elem7; // required
|
|
|
2105 |
_elem7 = new Provider();
|
|
|
2106 |
_elem7.read(iprot);
|
|
|
2107 |
this.success.add(_elem7);
|
| 674 |
chandransh |
2108 |
}
|
| 3430 |
rajveer |
2109 |
iprot.readListEnd();
|
| 674 |
chandransh |
2110 |
}
|
| 3430 |
rajveer |
2111 |
} else {
|
|
|
2112 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2113 |
}
|
|
|
2114 |
break;
|
|
|
2115 |
case 1: // LSE
|
|
|
2116 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
2117 |
this.lse = new LogisticsServiceException();
|
|
|
2118 |
this.lse.read(iprot);
|
|
|
2119 |
} else {
|
|
|
2120 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2121 |
}
|
|
|
2122 |
break;
|
|
|
2123 |
default:
|
|
|
2124 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 674 |
chandransh |
2125 |
}
|
| 3430 |
rajveer |
2126 |
iprot.readFieldEnd();
|
| 674 |
chandransh |
2127 |
}
|
|
|
2128 |
iprot.readStructEnd();
|
|
|
2129 |
validate();
|
|
|
2130 |
}
|
|
|
2131 |
|
| 3430 |
rajveer |
2132 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 674 |
chandransh |
2133 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
2134 |
|
|
|
2135 |
if (this.isSetSuccess()) {
|
|
|
2136 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
2137 |
{
|
| 3430 |
rajveer |
2138 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
| 3044 |
chandransh |
2139 |
for (Provider _iter8 : this.success)
|
| 674 |
chandransh |
2140 |
{
|
| 3044 |
chandransh |
2141 |
_iter8.write(oprot);
|
| 674 |
chandransh |
2142 |
}
|
|
|
2143 |
oprot.writeListEnd();
|
|
|
2144 |
}
|
|
|
2145 |
oprot.writeFieldEnd();
|
|
|
2146 |
} else if (this.isSetLse()) {
|
|
|
2147 |
oprot.writeFieldBegin(LSE_FIELD_DESC);
|
|
|
2148 |
this.lse.write(oprot);
|
|
|
2149 |
oprot.writeFieldEnd();
|
|
|
2150 |
}
|
|
|
2151 |
oprot.writeFieldStop();
|
|
|
2152 |
oprot.writeStructEnd();
|
|
|
2153 |
}
|
|
|
2154 |
|
|
|
2155 |
@Override
|
|
|
2156 |
public String toString() {
|
|
|
2157 |
StringBuilder sb = new StringBuilder("getAllProviders_result(");
|
|
|
2158 |
boolean first = true;
|
|
|
2159 |
|
|
|
2160 |
sb.append("success:");
|
|
|
2161 |
if (this.success == null) {
|
|
|
2162 |
sb.append("null");
|
|
|
2163 |
} else {
|
|
|
2164 |
sb.append(this.success);
|
|
|
2165 |
}
|
|
|
2166 |
first = false;
|
|
|
2167 |
if (!first) sb.append(", ");
|
|
|
2168 |
sb.append("lse:");
|
|
|
2169 |
if (this.lse == null) {
|
|
|
2170 |
sb.append("null");
|
|
|
2171 |
} else {
|
|
|
2172 |
sb.append(this.lse);
|
|
|
2173 |
}
|
|
|
2174 |
first = false;
|
|
|
2175 |
sb.append(")");
|
|
|
2176 |
return sb.toString();
|
|
|
2177 |
}
|
|
|
2178 |
|
| 3430 |
rajveer |
2179 |
public void validate() throws org.apache.thrift.TException {
|
| 674 |
chandransh |
2180 |
// check for required fields
|
|
|
2181 |
}
|
|
|
2182 |
|
| 3430 |
rajveer |
2183 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
2184 |
try {
|
|
|
2185 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
2186 |
} catch (org.apache.thrift.TException te) {
|
|
|
2187 |
throw new java.io.IOException(te);
|
|
|
2188 |
}
|
|
|
2189 |
}
|
|
|
2190 |
|
|
|
2191 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
2192 |
try {
|
|
|
2193 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
2194 |
} catch (org.apache.thrift.TException te) {
|
|
|
2195 |
throw new java.io.IOException(te);
|
|
|
2196 |
}
|
|
|
2197 |
}
|
|
|
2198 |
|
| 674 |
chandransh |
2199 |
}
|
|
|
2200 |
|
| 3430 |
rajveer |
2201 |
public static class getLogisticsEstimation_args implements org.apache.thrift.TBase<getLogisticsEstimation_args, getLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
2202 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_args");
|
| 471 |
rajveer |
2203 |
|
| 3430 |
rajveer |
2204 |
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);
|
|
|
2205 |
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 |
2206 |
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 |
2207 |
|
| 3430 |
rajveer |
2208 |
private long itemId; // required
|
|
|
2209 |
private String destination_pin; // required
|
| 4630 |
mandeep.dh |
2210 |
private DeliveryType type; // required
|
| 471 |
rajveer |
2211 |
|
|
|
2212 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
2213 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 471 |
rajveer |
2214 |
ITEM_ID((short)1, "itemId"),
|
| 4630 |
mandeep.dh |
2215 |
DESTINATION_PIN((short)2, "destination_pin"),
|
|
|
2216 |
/**
|
|
|
2217 |
*
|
|
|
2218 |
* @see DeliveryType
|
|
|
2219 |
*/
|
|
|
2220 |
TYPE((short)3, "type");
|
| 471 |
rajveer |
2221 |
|
|
|
2222 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
2223 |
|
|
|
2224 |
static {
|
|
|
2225 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
2226 |
byName.put(field.getFieldName(), field);
|
|
|
2227 |
}
|
|
|
2228 |
}
|
|
|
2229 |
|
|
|
2230 |
/**
|
|
|
2231 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
2232 |
*/
|
|
|
2233 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
2234 |
switch(fieldId) {
|
|
|
2235 |
case 1: // ITEM_ID
|
|
|
2236 |
return ITEM_ID;
|
|
|
2237 |
case 2: // DESTINATION_PIN
|
|
|
2238 |
return DESTINATION_PIN;
|
| 4630 |
mandeep.dh |
2239 |
case 3: // TYPE
|
|
|
2240 |
return TYPE;
|
| 3430 |
rajveer |
2241 |
default:
|
|
|
2242 |
return null;
|
|
|
2243 |
}
|
| 471 |
rajveer |
2244 |
}
|
|
|
2245 |
|
|
|
2246 |
/**
|
|
|
2247 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
2248 |
* if it is not found.
|
|
|
2249 |
*/
|
|
|
2250 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
2251 |
_Fields fields = findByThriftId(fieldId);
|
|
|
2252 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
2253 |
return fields;
|
|
|
2254 |
}
|
|
|
2255 |
|
|
|
2256 |
/**
|
|
|
2257 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
2258 |
*/
|
|
|
2259 |
public static _Fields findByName(String name) {
|
|
|
2260 |
return byName.get(name);
|
|
|
2261 |
}
|
|
|
2262 |
|
|
|
2263 |
private final short _thriftId;
|
|
|
2264 |
private final String _fieldName;
|
|
|
2265 |
|
|
|
2266 |
_Fields(short thriftId, String fieldName) {
|
|
|
2267 |
_thriftId = thriftId;
|
|
|
2268 |
_fieldName = fieldName;
|
|
|
2269 |
}
|
|
|
2270 |
|
|
|
2271 |
public short getThriftFieldId() {
|
|
|
2272 |
return _thriftId;
|
|
|
2273 |
}
|
|
|
2274 |
|
|
|
2275 |
public String getFieldName() {
|
|
|
2276 |
return _fieldName;
|
|
|
2277 |
}
|
|
|
2278 |
}
|
|
|
2279 |
|
|
|
2280 |
// isset id assignments
|
|
|
2281 |
private static final int __ITEMID_ISSET_ID = 0;
|
| 648 |
chandransh |
2282 |
private BitSet __isset_bit_vector = new BitSet(1);
|
| 471 |
rajveer |
2283 |
|
| 3430 |
rajveer |
2284 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 471 |
rajveer |
2285 |
static {
|
| 3430 |
rajveer |
2286 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
2287 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2288 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
2289 |
tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2290 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 4630 |
mandeep.dh |
2291 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2292 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
|
| 3430 |
rajveer |
2293 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
2294 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_args.class, metaDataMap);
|
| 471 |
rajveer |
2295 |
}
|
|
|
2296 |
|
|
|
2297 |
public getLogisticsEstimation_args() {
|
|
|
2298 |
}
|
|
|
2299 |
|
|
|
2300 |
public getLogisticsEstimation_args(
|
|
|
2301 |
long itemId,
|
| 4630 |
mandeep.dh |
2302 |
String destination_pin,
|
|
|
2303 |
DeliveryType type)
|
| 471 |
rajveer |
2304 |
{
|
|
|
2305 |
this();
|
|
|
2306 |
this.itemId = itemId;
|
|
|
2307 |
setItemIdIsSet(true);
|
|
|
2308 |
this.destination_pin = destination_pin;
|
| 4630 |
mandeep.dh |
2309 |
this.type = type;
|
| 471 |
rajveer |
2310 |
}
|
|
|
2311 |
|
|
|
2312 |
/**
|
|
|
2313 |
* Performs a deep copy on <i>other</i>.
|
|
|
2314 |
*/
|
|
|
2315 |
public getLogisticsEstimation_args(getLogisticsEstimation_args other) {
|
|
|
2316 |
__isset_bit_vector.clear();
|
|
|
2317 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
2318 |
this.itemId = other.itemId;
|
|
|
2319 |
if (other.isSetDestination_pin()) {
|
|
|
2320 |
this.destination_pin = other.destination_pin;
|
|
|
2321 |
}
|
| 4630 |
mandeep.dh |
2322 |
if (other.isSetType()) {
|
|
|
2323 |
this.type = other.type;
|
|
|
2324 |
}
|
| 471 |
rajveer |
2325 |
}
|
|
|
2326 |
|
|
|
2327 |
public getLogisticsEstimation_args deepCopy() {
|
|
|
2328 |
return new getLogisticsEstimation_args(this);
|
|
|
2329 |
}
|
|
|
2330 |
|
| 3430 |
rajveer |
2331 |
@Override
|
|
|
2332 |
public void clear() {
|
|
|
2333 |
setItemIdIsSet(false);
|
|
|
2334 |
this.itemId = 0;
|
|
|
2335 |
this.destination_pin = null;
|
| 4630 |
mandeep.dh |
2336 |
this.type = null;
|
| 471 |
rajveer |
2337 |
}
|
|
|
2338 |
|
|
|
2339 |
public long getItemId() {
|
|
|
2340 |
return this.itemId;
|
|
|
2341 |
}
|
|
|
2342 |
|
| 3430 |
rajveer |
2343 |
public void setItemId(long itemId) {
|
| 471 |
rajveer |
2344 |
this.itemId = itemId;
|
|
|
2345 |
setItemIdIsSet(true);
|
|
|
2346 |
}
|
|
|
2347 |
|
|
|
2348 |
public void unsetItemId() {
|
|
|
2349 |
__isset_bit_vector.clear(__ITEMID_ISSET_ID);
|
|
|
2350 |
}
|
|
|
2351 |
|
| 3430 |
rajveer |
2352 |
/** Returns true if field itemId is set (has been assigned a value) and false otherwise */
|
| 471 |
rajveer |
2353 |
public boolean isSetItemId() {
|
|
|
2354 |
return __isset_bit_vector.get(__ITEMID_ISSET_ID);
|
|
|
2355 |
}
|
|
|
2356 |
|
|
|
2357 |
public void setItemIdIsSet(boolean value) {
|
|
|
2358 |
__isset_bit_vector.set(__ITEMID_ISSET_ID, value);
|
|
|
2359 |
}
|
|
|
2360 |
|
|
|
2361 |
public String getDestination_pin() {
|
|
|
2362 |
return this.destination_pin;
|
|
|
2363 |
}
|
|
|
2364 |
|
| 3430 |
rajveer |
2365 |
public void setDestination_pin(String destination_pin) {
|
| 471 |
rajveer |
2366 |
this.destination_pin = destination_pin;
|
|
|
2367 |
}
|
|
|
2368 |
|
|
|
2369 |
public void unsetDestination_pin() {
|
|
|
2370 |
this.destination_pin = null;
|
|
|
2371 |
}
|
|
|
2372 |
|
| 3430 |
rajveer |
2373 |
/** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
|
| 471 |
rajveer |
2374 |
public boolean isSetDestination_pin() {
|
|
|
2375 |
return this.destination_pin != null;
|
|
|
2376 |
}
|
|
|
2377 |
|
|
|
2378 |
public void setDestination_pinIsSet(boolean value) {
|
|
|
2379 |
if (!value) {
|
|
|
2380 |
this.destination_pin = null;
|
|
|
2381 |
}
|
|
|
2382 |
}
|
|
|
2383 |
|
| 4630 |
mandeep.dh |
2384 |
/**
|
|
|
2385 |
*
|
|
|
2386 |
* @see DeliveryType
|
|
|
2387 |
*/
|
|
|
2388 |
public DeliveryType getType() {
|
|
|
2389 |
return this.type;
|
|
|
2390 |
}
|
|
|
2391 |
|
|
|
2392 |
/**
|
|
|
2393 |
*
|
|
|
2394 |
* @see DeliveryType
|
|
|
2395 |
*/
|
|
|
2396 |
public void setType(DeliveryType type) {
|
|
|
2397 |
this.type = type;
|
|
|
2398 |
}
|
|
|
2399 |
|
|
|
2400 |
public void unsetType() {
|
|
|
2401 |
this.type = null;
|
|
|
2402 |
}
|
|
|
2403 |
|
|
|
2404 |
/** Returns true if field type is set (has been assigned a value) and false otherwise */
|
|
|
2405 |
public boolean isSetType() {
|
|
|
2406 |
return this.type != null;
|
|
|
2407 |
}
|
|
|
2408 |
|
|
|
2409 |
public void setTypeIsSet(boolean value) {
|
|
|
2410 |
if (!value) {
|
|
|
2411 |
this.type = null;
|
|
|
2412 |
}
|
|
|
2413 |
}
|
|
|
2414 |
|
| 471 |
rajveer |
2415 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
2416 |
switch (field) {
|
|
|
2417 |
case ITEM_ID:
|
|
|
2418 |
if (value == null) {
|
|
|
2419 |
unsetItemId();
|
|
|
2420 |
} else {
|
|
|
2421 |
setItemId((Long)value);
|
|
|
2422 |
}
|
|
|
2423 |
break;
|
|
|
2424 |
|
|
|
2425 |
case DESTINATION_PIN:
|
|
|
2426 |
if (value == null) {
|
|
|
2427 |
unsetDestination_pin();
|
|
|
2428 |
} else {
|
|
|
2429 |
setDestination_pin((String)value);
|
|
|
2430 |
}
|
|
|
2431 |
break;
|
|
|
2432 |
|
| 4630 |
mandeep.dh |
2433 |
case TYPE:
|
|
|
2434 |
if (value == null) {
|
|
|
2435 |
unsetType();
|
|
|
2436 |
} else {
|
|
|
2437 |
setType((DeliveryType)value);
|
|
|
2438 |
}
|
|
|
2439 |
break;
|
|
|
2440 |
|
| 471 |
rajveer |
2441 |
}
|
|
|
2442 |
}
|
|
|
2443 |
|
|
|
2444 |
public Object getFieldValue(_Fields field) {
|
|
|
2445 |
switch (field) {
|
|
|
2446 |
case ITEM_ID:
|
| 3430 |
rajveer |
2447 |
return Long.valueOf(getItemId());
|
| 471 |
rajveer |
2448 |
|
|
|
2449 |
case DESTINATION_PIN:
|
|
|
2450 |
return getDestination_pin();
|
|
|
2451 |
|
| 4630 |
mandeep.dh |
2452 |
case TYPE:
|
|
|
2453 |
return getType();
|
|
|
2454 |
|
| 471 |
rajveer |
2455 |
}
|
|
|
2456 |
throw new IllegalStateException();
|
|
|
2457 |
}
|
|
|
2458 |
|
| 3430 |
rajveer |
2459 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
2460 |
public boolean isSet(_Fields field) {
|
|
|
2461 |
if (field == null) {
|
|
|
2462 |
throw new IllegalArgumentException();
|
|
|
2463 |
}
|
| 471 |
rajveer |
2464 |
|
|
|
2465 |
switch (field) {
|
|
|
2466 |
case ITEM_ID:
|
|
|
2467 |
return isSetItemId();
|
|
|
2468 |
case DESTINATION_PIN:
|
|
|
2469 |
return isSetDestination_pin();
|
| 4630 |
mandeep.dh |
2470 |
case TYPE:
|
|
|
2471 |
return isSetType();
|
| 471 |
rajveer |
2472 |
}
|
|
|
2473 |
throw new IllegalStateException();
|
|
|
2474 |
}
|
|
|
2475 |
|
|
|
2476 |
@Override
|
|
|
2477 |
public boolean equals(Object that) {
|
|
|
2478 |
if (that == null)
|
|
|
2479 |
return false;
|
|
|
2480 |
if (that instanceof getLogisticsEstimation_args)
|
|
|
2481 |
return this.equals((getLogisticsEstimation_args)that);
|
|
|
2482 |
return false;
|
|
|
2483 |
}
|
|
|
2484 |
|
|
|
2485 |
public boolean equals(getLogisticsEstimation_args that) {
|
|
|
2486 |
if (that == null)
|
|
|
2487 |
return false;
|
|
|
2488 |
|
|
|
2489 |
boolean this_present_itemId = true;
|
|
|
2490 |
boolean that_present_itemId = true;
|
|
|
2491 |
if (this_present_itemId || that_present_itemId) {
|
|
|
2492 |
if (!(this_present_itemId && that_present_itemId))
|
|
|
2493 |
return false;
|
|
|
2494 |
if (this.itemId != that.itemId)
|
|
|
2495 |
return false;
|
|
|
2496 |
}
|
|
|
2497 |
|
|
|
2498 |
boolean this_present_destination_pin = true && this.isSetDestination_pin();
|
|
|
2499 |
boolean that_present_destination_pin = true && that.isSetDestination_pin();
|
|
|
2500 |
if (this_present_destination_pin || that_present_destination_pin) {
|
|
|
2501 |
if (!(this_present_destination_pin && that_present_destination_pin))
|
|
|
2502 |
return false;
|
|
|
2503 |
if (!this.destination_pin.equals(that.destination_pin))
|
|
|
2504 |
return false;
|
|
|
2505 |
}
|
|
|
2506 |
|
| 4630 |
mandeep.dh |
2507 |
boolean this_present_type = true && this.isSetType();
|
|
|
2508 |
boolean that_present_type = true && that.isSetType();
|
|
|
2509 |
if (this_present_type || that_present_type) {
|
|
|
2510 |
if (!(this_present_type && that_present_type))
|
|
|
2511 |
return false;
|
|
|
2512 |
if (!this.type.equals(that.type))
|
|
|
2513 |
return false;
|
|
|
2514 |
}
|
|
|
2515 |
|
| 471 |
rajveer |
2516 |
return true;
|
|
|
2517 |
}
|
|
|
2518 |
|
|
|
2519 |
@Override
|
|
|
2520 |
public int hashCode() {
|
|
|
2521 |
return 0;
|
|
|
2522 |
}
|
|
|
2523 |
|
|
|
2524 |
public int compareTo(getLogisticsEstimation_args other) {
|
|
|
2525 |
if (!getClass().equals(other.getClass())) {
|
|
|
2526 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
2527 |
}
|
|
|
2528 |
|
|
|
2529 |
int lastComparison = 0;
|
|
|
2530 |
getLogisticsEstimation_args typedOther = (getLogisticsEstimation_args)other;
|
|
|
2531 |
|
| 3430 |
rajveer |
2532 |
lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
|
| 471 |
rajveer |
2533 |
if (lastComparison != 0) {
|
|
|
2534 |
return lastComparison;
|
|
|
2535 |
}
|
| 3430 |
rajveer |
2536 |
if (isSetItemId()) {
|
|
|
2537 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
|
|
|
2538 |
if (lastComparison != 0) {
|
|
|
2539 |
return lastComparison;
|
|
|
2540 |
}
|
| 471 |
rajveer |
2541 |
}
|
| 3430 |
rajveer |
2542 |
lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
|
| 471 |
rajveer |
2543 |
if (lastComparison != 0) {
|
|
|
2544 |
return lastComparison;
|
|
|
2545 |
}
|
| 3430 |
rajveer |
2546 |
if (isSetDestination_pin()) {
|
|
|
2547 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
|
|
|
2548 |
if (lastComparison != 0) {
|
|
|
2549 |
return lastComparison;
|
|
|
2550 |
}
|
| 471 |
rajveer |
2551 |
}
|
| 4630 |
mandeep.dh |
2552 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
|
|
2553 |
if (lastComparison != 0) {
|
|
|
2554 |
return lastComparison;
|
|
|
2555 |
}
|
|
|
2556 |
if (isSetType()) {
|
|
|
2557 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
|
|
2558 |
if (lastComparison != 0) {
|
|
|
2559 |
return lastComparison;
|
|
|
2560 |
}
|
|
|
2561 |
}
|
| 471 |
rajveer |
2562 |
return 0;
|
|
|
2563 |
}
|
|
|
2564 |
|
| 3430 |
rajveer |
2565 |
public _Fields fieldForId(int fieldId) {
|
|
|
2566 |
return _Fields.findByThriftId(fieldId);
|
|
|
2567 |
}
|
|
|
2568 |
|
|
|
2569 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
2570 |
org.apache.thrift.protocol.TField field;
|
| 471 |
rajveer |
2571 |
iprot.readStructBegin();
|
|
|
2572 |
while (true)
|
|
|
2573 |
{
|
|
|
2574 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
2575 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 471 |
rajveer |
2576 |
break;
|
|
|
2577 |
}
|
| 3430 |
rajveer |
2578 |
switch (field.id) {
|
|
|
2579 |
case 1: // ITEM_ID
|
|
|
2580 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
2581 |
this.itemId = iprot.readI64();
|
|
|
2582 |
setItemIdIsSet(true);
|
|
|
2583 |
} else {
|
|
|
2584 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2585 |
}
|
|
|
2586 |
break;
|
|
|
2587 |
case 2: // DESTINATION_PIN
|
|
|
2588 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
2589 |
this.destination_pin = iprot.readString();
|
|
|
2590 |
} else {
|
|
|
2591 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2592 |
}
|
|
|
2593 |
break;
|
| 4630 |
mandeep.dh |
2594 |
case 3: // TYPE
|
|
|
2595 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
2596 |
this.type = DeliveryType.findByValue(iprot.readI32());
|
|
|
2597 |
} else {
|
|
|
2598 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2599 |
}
|
|
|
2600 |
break;
|
| 3430 |
rajveer |
2601 |
default:
|
|
|
2602 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 471 |
rajveer |
2603 |
}
|
| 3430 |
rajveer |
2604 |
iprot.readFieldEnd();
|
| 471 |
rajveer |
2605 |
}
|
|
|
2606 |
iprot.readStructEnd();
|
|
|
2607 |
validate();
|
|
|
2608 |
}
|
|
|
2609 |
|
| 3430 |
rajveer |
2610 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 471 |
rajveer |
2611 |
validate();
|
|
|
2612 |
|
|
|
2613 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
2614 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
2615 |
oprot.writeI64(this.itemId);
|
|
|
2616 |
oprot.writeFieldEnd();
|
|
|
2617 |
if (this.destination_pin != null) {
|
|
|
2618 |
oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
|
|
|
2619 |
oprot.writeString(this.destination_pin);
|
|
|
2620 |
oprot.writeFieldEnd();
|
|
|
2621 |
}
|
| 4630 |
mandeep.dh |
2622 |
if (this.type != null) {
|
|
|
2623 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
|
|
2624 |
oprot.writeI32(this.type.getValue());
|
|
|
2625 |
oprot.writeFieldEnd();
|
|
|
2626 |
}
|
| 471 |
rajveer |
2627 |
oprot.writeFieldStop();
|
|
|
2628 |
oprot.writeStructEnd();
|
|
|
2629 |
}
|
|
|
2630 |
|
|
|
2631 |
@Override
|
|
|
2632 |
public String toString() {
|
|
|
2633 |
StringBuilder sb = new StringBuilder("getLogisticsEstimation_args(");
|
|
|
2634 |
boolean first = true;
|
|
|
2635 |
|
|
|
2636 |
sb.append("itemId:");
|
|
|
2637 |
sb.append(this.itemId);
|
|
|
2638 |
first = false;
|
|
|
2639 |
if (!first) sb.append(", ");
|
|
|
2640 |
sb.append("destination_pin:");
|
|
|
2641 |
if (this.destination_pin == null) {
|
|
|
2642 |
sb.append("null");
|
|
|
2643 |
} else {
|
|
|
2644 |
sb.append(this.destination_pin);
|
|
|
2645 |
}
|
|
|
2646 |
first = false;
|
| 4630 |
mandeep.dh |
2647 |
if (!first) sb.append(", ");
|
|
|
2648 |
sb.append("type:");
|
|
|
2649 |
if (this.type == null) {
|
|
|
2650 |
sb.append("null");
|
|
|
2651 |
} else {
|
|
|
2652 |
sb.append(this.type);
|
|
|
2653 |
}
|
|
|
2654 |
first = false;
|
| 471 |
rajveer |
2655 |
sb.append(")");
|
|
|
2656 |
return sb.toString();
|
|
|
2657 |
}
|
|
|
2658 |
|
| 3430 |
rajveer |
2659 |
public void validate() throws org.apache.thrift.TException {
|
| 471 |
rajveer |
2660 |
// check for required fields
|
|
|
2661 |
}
|
|
|
2662 |
|
| 3430 |
rajveer |
2663 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
2664 |
try {
|
|
|
2665 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
2666 |
} catch (org.apache.thrift.TException te) {
|
|
|
2667 |
throw new java.io.IOException(te);
|
|
|
2668 |
}
|
|
|
2669 |
}
|
|
|
2670 |
|
|
|
2671 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
2672 |
try {
|
|
|
2673 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
2674 |
} catch (org.apache.thrift.TException te) {
|
|
|
2675 |
throw new java.io.IOException(te);
|
|
|
2676 |
}
|
|
|
2677 |
}
|
|
|
2678 |
|
| 471 |
rajveer |
2679 |
}
|
|
|
2680 |
|
| 3430 |
rajveer |
2681 |
public static class getLogisticsEstimation_result implements org.apache.thrift.TBase<getLogisticsEstimation_result, getLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
2682 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_result");
|
| 471 |
rajveer |
2683 |
|
| 3430 |
rajveer |
2684 |
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);
|
|
|
2685 |
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 |
2686 |
|
| 3430 |
rajveer |
2687 |
private LogisticsInfo success; // required
|
|
|
2688 |
private LogisticsServiceException se; // required
|
| 471 |
rajveer |
2689 |
|
|
|
2690 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
2691 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 471 |
rajveer |
2692 |
SUCCESS((short)0, "success"),
|
|
|
2693 |
SE((short)1, "se");
|
|
|
2694 |
|
|
|
2695 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
2696 |
|
|
|
2697 |
static {
|
|
|
2698 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
2699 |
byName.put(field.getFieldName(), field);
|
|
|
2700 |
}
|
|
|
2701 |
}
|
|
|
2702 |
|
|
|
2703 |
/**
|
|
|
2704 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
2705 |
*/
|
|
|
2706 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
2707 |
switch(fieldId) {
|
|
|
2708 |
case 0: // SUCCESS
|
|
|
2709 |
return SUCCESS;
|
|
|
2710 |
case 1: // SE
|
|
|
2711 |
return SE;
|
|
|
2712 |
default:
|
|
|
2713 |
return null;
|
|
|
2714 |
}
|
| 471 |
rajveer |
2715 |
}
|
|
|
2716 |
|
|
|
2717 |
/**
|
|
|
2718 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
2719 |
* if it is not found.
|
|
|
2720 |
*/
|
|
|
2721 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
2722 |
_Fields fields = findByThriftId(fieldId);
|
|
|
2723 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
2724 |
return fields;
|
|
|
2725 |
}
|
|
|
2726 |
|
|
|
2727 |
/**
|
|
|
2728 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
2729 |
*/
|
|
|
2730 |
public static _Fields findByName(String name) {
|
|
|
2731 |
return byName.get(name);
|
|
|
2732 |
}
|
|
|
2733 |
|
|
|
2734 |
private final short _thriftId;
|
|
|
2735 |
private final String _fieldName;
|
|
|
2736 |
|
|
|
2737 |
_Fields(short thriftId, String fieldName) {
|
|
|
2738 |
_thriftId = thriftId;
|
|
|
2739 |
_fieldName = fieldName;
|
|
|
2740 |
}
|
|
|
2741 |
|
|
|
2742 |
public short getThriftFieldId() {
|
|
|
2743 |
return _thriftId;
|
|
|
2744 |
}
|
|
|
2745 |
|
|
|
2746 |
public String getFieldName() {
|
|
|
2747 |
return _fieldName;
|
|
|
2748 |
}
|
|
|
2749 |
}
|
|
|
2750 |
|
|
|
2751 |
// isset id assignments
|
|
|
2752 |
|
| 3430 |
rajveer |
2753 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 471 |
rajveer |
2754 |
static {
|
| 3430 |
rajveer |
2755 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
2756 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2757 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
|
|
|
2758 |
tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
2759 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
2760 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
2761 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_result.class, metaDataMap);
|
| 471 |
rajveer |
2762 |
}
|
|
|
2763 |
|
|
|
2764 |
public getLogisticsEstimation_result() {
|
|
|
2765 |
}
|
|
|
2766 |
|
|
|
2767 |
public getLogisticsEstimation_result(
|
| 648 |
chandransh |
2768 |
LogisticsInfo success,
|
| 471 |
rajveer |
2769 |
LogisticsServiceException se)
|
|
|
2770 |
{
|
|
|
2771 |
this();
|
|
|
2772 |
this.success = success;
|
|
|
2773 |
this.se = se;
|
|
|
2774 |
}
|
|
|
2775 |
|
|
|
2776 |
/**
|
|
|
2777 |
* Performs a deep copy on <i>other</i>.
|
|
|
2778 |
*/
|
|
|
2779 |
public getLogisticsEstimation_result(getLogisticsEstimation_result other) {
|
|
|
2780 |
if (other.isSetSuccess()) {
|
| 648 |
chandransh |
2781 |
this.success = new LogisticsInfo(other.success);
|
| 471 |
rajveer |
2782 |
}
|
|
|
2783 |
if (other.isSetSe()) {
|
|
|
2784 |
this.se = new LogisticsServiceException(other.se);
|
|
|
2785 |
}
|
|
|
2786 |
}
|
|
|
2787 |
|
|
|
2788 |
public getLogisticsEstimation_result deepCopy() {
|
|
|
2789 |
return new getLogisticsEstimation_result(this);
|
|
|
2790 |
}
|
|
|
2791 |
|
| 3430 |
rajveer |
2792 |
@Override
|
|
|
2793 |
public void clear() {
|
|
|
2794 |
this.success = null;
|
|
|
2795 |
this.se = null;
|
| 471 |
rajveer |
2796 |
}
|
|
|
2797 |
|
| 648 |
chandransh |
2798 |
public LogisticsInfo getSuccess() {
|
| 471 |
rajveer |
2799 |
return this.success;
|
|
|
2800 |
}
|
|
|
2801 |
|
| 3430 |
rajveer |
2802 |
public void setSuccess(LogisticsInfo success) {
|
| 471 |
rajveer |
2803 |
this.success = success;
|
|
|
2804 |
}
|
|
|
2805 |
|
|
|
2806 |
public void unsetSuccess() {
|
|
|
2807 |
this.success = null;
|
|
|
2808 |
}
|
|
|
2809 |
|
| 3430 |
rajveer |
2810 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 471 |
rajveer |
2811 |
public boolean isSetSuccess() {
|
|
|
2812 |
return this.success != null;
|
|
|
2813 |
}
|
|
|
2814 |
|
|
|
2815 |
public void setSuccessIsSet(boolean value) {
|
|
|
2816 |
if (!value) {
|
|
|
2817 |
this.success = null;
|
|
|
2818 |
}
|
|
|
2819 |
}
|
|
|
2820 |
|
|
|
2821 |
public LogisticsServiceException getSe() {
|
|
|
2822 |
return this.se;
|
|
|
2823 |
}
|
|
|
2824 |
|
| 3430 |
rajveer |
2825 |
public void setSe(LogisticsServiceException se) {
|
| 471 |
rajveer |
2826 |
this.se = se;
|
|
|
2827 |
}
|
|
|
2828 |
|
|
|
2829 |
public void unsetSe() {
|
|
|
2830 |
this.se = null;
|
|
|
2831 |
}
|
|
|
2832 |
|
| 3430 |
rajveer |
2833 |
/** Returns true if field se is set (has been assigned a value) and false otherwise */
|
| 471 |
rajveer |
2834 |
public boolean isSetSe() {
|
|
|
2835 |
return this.se != null;
|
|
|
2836 |
}
|
|
|
2837 |
|
|
|
2838 |
public void setSeIsSet(boolean value) {
|
|
|
2839 |
if (!value) {
|
|
|
2840 |
this.se = null;
|
|
|
2841 |
}
|
|
|
2842 |
}
|
|
|
2843 |
|
|
|
2844 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
2845 |
switch (field) {
|
|
|
2846 |
case SUCCESS:
|
|
|
2847 |
if (value == null) {
|
|
|
2848 |
unsetSuccess();
|
|
|
2849 |
} else {
|
| 648 |
chandransh |
2850 |
setSuccess((LogisticsInfo)value);
|
| 471 |
rajveer |
2851 |
}
|
|
|
2852 |
break;
|
|
|
2853 |
|
|
|
2854 |
case SE:
|
|
|
2855 |
if (value == null) {
|
|
|
2856 |
unsetSe();
|
|
|
2857 |
} else {
|
|
|
2858 |
setSe((LogisticsServiceException)value);
|
|
|
2859 |
}
|
|
|
2860 |
break;
|
|
|
2861 |
|
|
|
2862 |
}
|
|
|
2863 |
}
|
|
|
2864 |
|
|
|
2865 |
public Object getFieldValue(_Fields field) {
|
|
|
2866 |
switch (field) {
|
|
|
2867 |
case SUCCESS:
|
|
|
2868 |
return getSuccess();
|
|
|
2869 |
|
|
|
2870 |
case SE:
|
|
|
2871 |
return getSe();
|
|
|
2872 |
|
|
|
2873 |
}
|
|
|
2874 |
throw new IllegalStateException();
|
|
|
2875 |
}
|
|
|
2876 |
|
| 3430 |
rajveer |
2877 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
2878 |
public boolean isSet(_Fields field) {
|
|
|
2879 |
if (field == null) {
|
|
|
2880 |
throw new IllegalArgumentException();
|
|
|
2881 |
}
|
| 471 |
rajveer |
2882 |
|
|
|
2883 |
switch (field) {
|
|
|
2884 |
case SUCCESS:
|
|
|
2885 |
return isSetSuccess();
|
|
|
2886 |
case SE:
|
|
|
2887 |
return isSetSe();
|
|
|
2888 |
}
|
|
|
2889 |
throw new IllegalStateException();
|
|
|
2890 |
}
|
|
|
2891 |
|
|
|
2892 |
@Override
|
|
|
2893 |
public boolean equals(Object that) {
|
|
|
2894 |
if (that == null)
|
|
|
2895 |
return false;
|
|
|
2896 |
if (that instanceof getLogisticsEstimation_result)
|
|
|
2897 |
return this.equals((getLogisticsEstimation_result)that);
|
|
|
2898 |
return false;
|
|
|
2899 |
}
|
|
|
2900 |
|
|
|
2901 |
public boolean equals(getLogisticsEstimation_result that) {
|
|
|
2902 |
if (that == null)
|
|
|
2903 |
return false;
|
|
|
2904 |
|
|
|
2905 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
2906 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
2907 |
if (this_present_success || that_present_success) {
|
|
|
2908 |
if (!(this_present_success && that_present_success))
|
|
|
2909 |
return false;
|
|
|
2910 |
if (!this.success.equals(that.success))
|
|
|
2911 |
return false;
|
|
|
2912 |
}
|
|
|
2913 |
|
|
|
2914 |
boolean this_present_se = true && this.isSetSe();
|
|
|
2915 |
boolean that_present_se = true && that.isSetSe();
|
|
|
2916 |
if (this_present_se || that_present_se) {
|
|
|
2917 |
if (!(this_present_se && that_present_se))
|
|
|
2918 |
return false;
|
|
|
2919 |
if (!this.se.equals(that.se))
|
|
|
2920 |
return false;
|
|
|
2921 |
}
|
|
|
2922 |
|
|
|
2923 |
return true;
|
|
|
2924 |
}
|
|
|
2925 |
|
|
|
2926 |
@Override
|
|
|
2927 |
public int hashCode() {
|
|
|
2928 |
return 0;
|
|
|
2929 |
}
|
|
|
2930 |
|
|
|
2931 |
public int compareTo(getLogisticsEstimation_result other) {
|
|
|
2932 |
if (!getClass().equals(other.getClass())) {
|
|
|
2933 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
2934 |
}
|
|
|
2935 |
|
|
|
2936 |
int lastComparison = 0;
|
|
|
2937 |
getLogisticsEstimation_result typedOther = (getLogisticsEstimation_result)other;
|
|
|
2938 |
|
| 3430 |
rajveer |
2939 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 471 |
rajveer |
2940 |
if (lastComparison != 0) {
|
|
|
2941 |
return lastComparison;
|
|
|
2942 |
}
|
| 3430 |
rajveer |
2943 |
if (isSetSuccess()) {
|
|
|
2944 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
2945 |
if (lastComparison != 0) {
|
|
|
2946 |
return lastComparison;
|
|
|
2947 |
}
|
| 471 |
rajveer |
2948 |
}
|
| 3430 |
rajveer |
2949 |
lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
|
| 471 |
rajveer |
2950 |
if (lastComparison != 0) {
|
|
|
2951 |
return lastComparison;
|
|
|
2952 |
}
|
| 3430 |
rajveer |
2953 |
if (isSetSe()) {
|
|
|
2954 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
|
|
|
2955 |
if (lastComparison != 0) {
|
|
|
2956 |
return lastComparison;
|
|
|
2957 |
}
|
| 471 |
rajveer |
2958 |
}
|
|
|
2959 |
return 0;
|
|
|
2960 |
}
|
|
|
2961 |
|
| 3430 |
rajveer |
2962 |
public _Fields fieldForId(int fieldId) {
|
|
|
2963 |
return _Fields.findByThriftId(fieldId);
|
|
|
2964 |
}
|
|
|
2965 |
|
|
|
2966 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
2967 |
org.apache.thrift.protocol.TField field;
|
| 471 |
rajveer |
2968 |
iprot.readStructBegin();
|
|
|
2969 |
while (true)
|
|
|
2970 |
{
|
|
|
2971 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
2972 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 471 |
rajveer |
2973 |
break;
|
|
|
2974 |
}
|
| 3430 |
rajveer |
2975 |
switch (field.id) {
|
|
|
2976 |
case 0: // SUCCESS
|
|
|
2977 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
2978 |
this.success = new LogisticsInfo();
|
|
|
2979 |
this.success.read(iprot);
|
|
|
2980 |
} else {
|
|
|
2981 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2982 |
}
|
|
|
2983 |
break;
|
|
|
2984 |
case 1: // SE
|
|
|
2985 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
2986 |
this.se = new LogisticsServiceException();
|
|
|
2987 |
this.se.read(iprot);
|
|
|
2988 |
} else {
|
|
|
2989 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
2990 |
}
|
|
|
2991 |
break;
|
|
|
2992 |
default:
|
|
|
2993 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 471 |
rajveer |
2994 |
}
|
| 3430 |
rajveer |
2995 |
iprot.readFieldEnd();
|
| 471 |
rajveer |
2996 |
}
|
|
|
2997 |
iprot.readStructEnd();
|
|
|
2998 |
validate();
|
|
|
2999 |
}
|
|
|
3000 |
|
| 3430 |
rajveer |
3001 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 471 |
rajveer |
3002 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
3003 |
|
|
|
3004 |
if (this.isSetSuccess()) {
|
|
|
3005 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
3006 |
this.success.write(oprot);
|
|
|
3007 |
oprot.writeFieldEnd();
|
|
|
3008 |
} else if (this.isSetSe()) {
|
|
|
3009 |
oprot.writeFieldBegin(SE_FIELD_DESC);
|
|
|
3010 |
this.se.write(oprot);
|
|
|
3011 |
oprot.writeFieldEnd();
|
|
|
3012 |
}
|
|
|
3013 |
oprot.writeFieldStop();
|
|
|
3014 |
oprot.writeStructEnd();
|
|
|
3015 |
}
|
|
|
3016 |
|
|
|
3017 |
@Override
|
|
|
3018 |
public String toString() {
|
|
|
3019 |
StringBuilder sb = new StringBuilder("getLogisticsEstimation_result(");
|
|
|
3020 |
boolean first = true;
|
|
|
3021 |
|
|
|
3022 |
sb.append("success:");
|
|
|
3023 |
if (this.success == null) {
|
|
|
3024 |
sb.append("null");
|
|
|
3025 |
} else {
|
|
|
3026 |
sb.append(this.success);
|
|
|
3027 |
}
|
|
|
3028 |
first = false;
|
|
|
3029 |
if (!first) sb.append(", ");
|
|
|
3030 |
sb.append("se:");
|
|
|
3031 |
if (this.se == null) {
|
|
|
3032 |
sb.append("null");
|
|
|
3033 |
} else {
|
|
|
3034 |
sb.append(this.se);
|
|
|
3035 |
}
|
|
|
3036 |
first = false;
|
|
|
3037 |
sb.append(")");
|
|
|
3038 |
return sb.toString();
|
|
|
3039 |
}
|
|
|
3040 |
|
| 3430 |
rajveer |
3041 |
public void validate() throws org.apache.thrift.TException {
|
| 471 |
rajveer |
3042 |
// check for required fields
|
|
|
3043 |
}
|
|
|
3044 |
|
| 3430 |
rajveer |
3045 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
3046 |
try {
|
|
|
3047 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
3048 |
} catch (org.apache.thrift.TException te) {
|
|
|
3049 |
throw new java.io.IOException(te);
|
|
|
3050 |
}
|
|
|
3051 |
}
|
|
|
3052 |
|
|
|
3053 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
3054 |
try {
|
|
|
3055 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
3056 |
} catch (org.apache.thrift.TException te) {
|
|
|
3057 |
throw new java.io.IOException(te);
|
|
|
3058 |
}
|
|
|
3059 |
}
|
|
|
3060 |
|
| 471 |
rajveer |
3061 |
}
|
|
|
3062 |
|
| 3430 |
rajveer |
3063 |
public static class getLogisticsInfo_args implements org.apache.thrift.TBase<getLogisticsInfo_args, getLogisticsInfo_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
3064 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_args");
|
| 471 |
rajveer |
3065 |
|
| 3430 |
rajveer |
3066 |
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);
|
|
|
3067 |
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);
|
|
|
3068 |
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 |
3069 |
|
| 3430 |
rajveer |
3070 |
private String destination_pincode; // required
|
|
|
3071 |
private long item_id; // required
|
|
|
3072 |
private DeliveryType type; // required
|
| 471 |
rajveer |
3073 |
|
|
|
3074 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
3075 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 648 |
chandransh |
3076 |
DESTINATION_PINCODE((short)1, "destination_pincode"),
|
| 3044 |
chandransh |
3077 |
ITEM_ID((short)2, "item_id"),
|
|
|
3078 |
/**
|
|
|
3079 |
*
|
|
|
3080 |
* @see DeliveryType
|
|
|
3081 |
*/
|
|
|
3082 |
TYPE((short)3, "type");
|
| 471 |
rajveer |
3083 |
|
|
|
3084 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
3085 |
|
|
|
3086 |
static {
|
|
|
3087 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
3088 |
byName.put(field.getFieldName(), field);
|
|
|
3089 |
}
|
|
|
3090 |
}
|
|
|
3091 |
|
|
|
3092 |
/**
|
|
|
3093 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
3094 |
*/
|
|
|
3095 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
3096 |
switch(fieldId) {
|
|
|
3097 |
case 1: // DESTINATION_PINCODE
|
|
|
3098 |
return DESTINATION_PINCODE;
|
|
|
3099 |
case 2: // ITEM_ID
|
|
|
3100 |
return ITEM_ID;
|
|
|
3101 |
case 3: // TYPE
|
|
|
3102 |
return TYPE;
|
|
|
3103 |
default:
|
|
|
3104 |
return null;
|
|
|
3105 |
}
|
| 471 |
rajveer |
3106 |
}
|
|
|
3107 |
|
|
|
3108 |
/**
|
|
|
3109 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
3110 |
* if it is not found.
|
|
|
3111 |
*/
|
|
|
3112 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
3113 |
_Fields fields = findByThriftId(fieldId);
|
|
|
3114 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
3115 |
return fields;
|
|
|
3116 |
}
|
|
|
3117 |
|
|
|
3118 |
/**
|
|
|
3119 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
3120 |
*/
|
|
|
3121 |
public static _Fields findByName(String name) {
|
|
|
3122 |
return byName.get(name);
|
|
|
3123 |
}
|
|
|
3124 |
|
|
|
3125 |
private final short _thriftId;
|
|
|
3126 |
private final String _fieldName;
|
|
|
3127 |
|
|
|
3128 |
_Fields(short thriftId, String fieldName) {
|
|
|
3129 |
_thriftId = thriftId;
|
|
|
3130 |
_fieldName = fieldName;
|
|
|
3131 |
}
|
|
|
3132 |
|
|
|
3133 |
public short getThriftFieldId() {
|
|
|
3134 |
return _thriftId;
|
|
|
3135 |
}
|
|
|
3136 |
|
|
|
3137 |
public String getFieldName() {
|
|
|
3138 |
return _fieldName;
|
|
|
3139 |
}
|
|
|
3140 |
}
|
|
|
3141 |
|
|
|
3142 |
// isset id assignments
|
| 715 |
rajveer |
3143 |
private static final int __ITEM_ID_ISSET_ID = 0;
|
|
|
3144 |
private BitSet __isset_bit_vector = new BitSet(1);
|
| 471 |
rajveer |
3145 |
|
| 3430 |
rajveer |
3146 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 477 |
rajveer |
3147 |
static {
|
| 3430 |
rajveer |
3148 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
3149 |
tmpMap.put(_Fields.DESTINATION_PINCODE, new org.apache.thrift.meta_data.FieldMetaData("destination_pincode", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3150 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
3151 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3152 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
3153 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3154 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
|
|
|
3155 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
3156 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_args.class, metaDataMap);
|
| 477 |
rajveer |
3157 |
}
|
|
|
3158 |
|
| 648 |
chandransh |
3159 |
public getLogisticsInfo_args() {
|
| 477 |
rajveer |
3160 |
}
|
|
|
3161 |
|
| 648 |
chandransh |
3162 |
public getLogisticsInfo_args(
|
|
|
3163 |
String destination_pincode,
|
| 3044 |
chandransh |
3164 |
long item_id,
|
|
|
3165 |
DeliveryType type)
|
| 477 |
rajveer |
3166 |
{
|
|
|
3167 |
this();
|
| 648 |
chandransh |
3168 |
this.destination_pincode = destination_pincode;
|
|
|
3169 |
this.item_id = item_id;
|
| 715 |
rajveer |
3170 |
setItem_idIsSet(true);
|
| 3044 |
chandransh |
3171 |
this.type = type;
|
| 477 |
rajveer |
3172 |
}
|
|
|
3173 |
|
|
|
3174 |
/**
|
|
|
3175 |
* Performs a deep copy on <i>other</i>.
|
|
|
3176 |
*/
|
| 648 |
chandransh |
3177 |
public getLogisticsInfo_args(getLogisticsInfo_args other) {
|
| 715 |
rajveer |
3178 |
__isset_bit_vector.clear();
|
|
|
3179 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 648 |
chandransh |
3180 |
if (other.isSetDestination_pincode()) {
|
|
|
3181 |
this.destination_pincode = other.destination_pincode;
|
| 477 |
rajveer |
3182 |
}
|
| 715 |
rajveer |
3183 |
this.item_id = other.item_id;
|
| 3044 |
chandransh |
3184 |
if (other.isSetType()) {
|
|
|
3185 |
this.type = other.type;
|
|
|
3186 |
}
|
| 477 |
rajveer |
3187 |
}
|
|
|
3188 |
|
| 648 |
chandransh |
3189 |
public getLogisticsInfo_args deepCopy() {
|
|
|
3190 |
return new getLogisticsInfo_args(this);
|
| 477 |
rajveer |
3191 |
}
|
|
|
3192 |
|
| 3430 |
rajveer |
3193 |
@Override
|
|
|
3194 |
public void clear() {
|
|
|
3195 |
this.destination_pincode = null;
|
|
|
3196 |
setItem_idIsSet(false);
|
|
|
3197 |
this.item_id = 0;
|
|
|
3198 |
this.type = null;
|
| 477 |
rajveer |
3199 |
}
|
|
|
3200 |
|
| 648 |
chandransh |
3201 |
public String getDestination_pincode() {
|
|
|
3202 |
return this.destination_pincode;
|
| 477 |
rajveer |
3203 |
}
|
|
|
3204 |
|
| 3430 |
rajveer |
3205 |
public void setDestination_pincode(String destination_pincode) {
|
| 648 |
chandransh |
3206 |
this.destination_pincode = destination_pincode;
|
| 477 |
rajveer |
3207 |
}
|
|
|
3208 |
|
| 648 |
chandransh |
3209 |
public void unsetDestination_pincode() {
|
|
|
3210 |
this.destination_pincode = null;
|
| 477 |
rajveer |
3211 |
}
|
|
|
3212 |
|
| 3430 |
rajveer |
3213 |
/** Returns true if field destination_pincode is set (has been assigned a value) and false otherwise */
|
| 648 |
chandransh |
3214 |
public boolean isSetDestination_pincode() {
|
|
|
3215 |
return this.destination_pincode != null;
|
| 477 |
rajveer |
3216 |
}
|
|
|
3217 |
|
| 648 |
chandransh |
3218 |
public void setDestination_pincodeIsSet(boolean value) {
|
| 477 |
rajveer |
3219 |
if (!value) {
|
| 648 |
chandransh |
3220 |
this.destination_pincode = null;
|
| 477 |
rajveer |
3221 |
}
|
|
|
3222 |
}
|
|
|
3223 |
|
| 715 |
rajveer |
3224 |
public long getItem_id() {
|
| 648 |
chandransh |
3225 |
return this.item_id;
|
| 477 |
rajveer |
3226 |
}
|
|
|
3227 |
|
| 3430 |
rajveer |
3228 |
public void setItem_id(long item_id) {
|
| 648 |
chandransh |
3229 |
this.item_id = item_id;
|
| 715 |
rajveer |
3230 |
setItem_idIsSet(true);
|
| 477 |
rajveer |
3231 |
}
|
|
|
3232 |
|
| 648 |
chandransh |
3233 |
public void unsetItem_id() {
|
| 715 |
rajveer |
3234 |
__isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
|
| 477 |
rajveer |
3235 |
}
|
|
|
3236 |
|
| 3430 |
rajveer |
3237 |
/** Returns true if field item_id is set (has been assigned a value) and false otherwise */
|
| 648 |
chandransh |
3238 |
public boolean isSetItem_id() {
|
| 715 |
rajveer |
3239 |
return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
|
| 477 |
rajveer |
3240 |
}
|
|
|
3241 |
|
| 648 |
chandransh |
3242 |
public void setItem_idIsSet(boolean value) {
|
| 715 |
rajveer |
3243 |
__isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
|
| 477 |
rajveer |
3244 |
}
|
|
|
3245 |
|
| 3044 |
chandransh |
3246 |
/**
|
|
|
3247 |
*
|
|
|
3248 |
* @see DeliveryType
|
|
|
3249 |
*/
|
|
|
3250 |
public DeliveryType getType() {
|
|
|
3251 |
return this.type;
|
|
|
3252 |
}
|
|
|
3253 |
|
|
|
3254 |
/**
|
|
|
3255 |
*
|
|
|
3256 |
* @see DeliveryType
|
|
|
3257 |
*/
|
| 3430 |
rajveer |
3258 |
public void setType(DeliveryType type) {
|
| 3044 |
chandransh |
3259 |
this.type = type;
|
|
|
3260 |
}
|
|
|
3261 |
|
|
|
3262 |
public void unsetType() {
|
|
|
3263 |
this.type = null;
|
|
|
3264 |
}
|
|
|
3265 |
|
| 3430 |
rajveer |
3266 |
/** Returns true if field type is set (has been assigned a value) and false otherwise */
|
| 3044 |
chandransh |
3267 |
public boolean isSetType() {
|
|
|
3268 |
return this.type != null;
|
|
|
3269 |
}
|
|
|
3270 |
|
|
|
3271 |
public void setTypeIsSet(boolean value) {
|
|
|
3272 |
if (!value) {
|
|
|
3273 |
this.type = null;
|
|
|
3274 |
}
|
|
|
3275 |
}
|
|
|
3276 |
|
| 477 |
rajveer |
3277 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
3278 |
switch (field) {
|
| 648 |
chandransh |
3279 |
case DESTINATION_PINCODE:
|
| 477 |
rajveer |
3280 |
if (value == null) {
|
| 648 |
chandransh |
3281 |
unsetDestination_pincode();
|
| 477 |
rajveer |
3282 |
} else {
|
| 648 |
chandransh |
3283 |
setDestination_pincode((String)value);
|
| 477 |
rajveer |
3284 |
}
|
|
|
3285 |
break;
|
|
|
3286 |
|
| 648 |
chandransh |
3287 |
case ITEM_ID:
|
| 477 |
rajveer |
3288 |
if (value == null) {
|
| 648 |
chandransh |
3289 |
unsetItem_id();
|
| 477 |
rajveer |
3290 |
} else {
|
| 715 |
rajveer |
3291 |
setItem_id((Long)value);
|
| 477 |
rajveer |
3292 |
}
|
|
|
3293 |
break;
|
|
|
3294 |
|
| 3044 |
chandransh |
3295 |
case TYPE:
|
|
|
3296 |
if (value == null) {
|
|
|
3297 |
unsetType();
|
|
|
3298 |
} else {
|
|
|
3299 |
setType((DeliveryType)value);
|
|
|
3300 |
}
|
|
|
3301 |
break;
|
|
|
3302 |
|
| 477 |
rajveer |
3303 |
}
|
|
|
3304 |
}
|
|
|
3305 |
|
|
|
3306 |
public Object getFieldValue(_Fields field) {
|
|
|
3307 |
switch (field) {
|
| 648 |
chandransh |
3308 |
case DESTINATION_PINCODE:
|
|
|
3309 |
return getDestination_pincode();
|
| 477 |
rajveer |
3310 |
|
| 648 |
chandransh |
3311 |
case ITEM_ID:
|
| 3430 |
rajveer |
3312 |
return Long.valueOf(getItem_id());
|
| 477 |
rajveer |
3313 |
|
| 3044 |
chandransh |
3314 |
case TYPE:
|
|
|
3315 |
return getType();
|
|
|
3316 |
|
| 477 |
rajveer |
3317 |
}
|
|
|
3318 |
throw new IllegalStateException();
|
|
|
3319 |
}
|
|
|
3320 |
|
| 3430 |
rajveer |
3321 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
3322 |
public boolean isSet(_Fields field) {
|
|
|
3323 |
if (field == null) {
|
|
|
3324 |
throw new IllegalArgumentException();
|
|
|
3325 |
}
|
| 477 |
rajveer |
3326 |
|
|
|
3327 |
switch (field) {
|
| 648 |
chandransh |
3328 |
case DESTINATION_PINCODE:
|
|
|
3329 |
return isSetDestination_pincode();
|
|
|
3330 |
case ITEM_ID:
|
|
|
3331 |
return isSetItem_id();
|
| 3044 |
chandransh |
3332 |
case TYPE:
|
|
|
3333 |
return isSetType();
|
| 477 |
rajveer |
3334 |
}
|
|
|
3335 |
throw new IllegalStateException();
|
|
|
3336 |
}
|
|
|
3337 |
|
|
|
3338 |
@Override
|
|
|
3339 |
public boolean equals(Object that) {
|
|
|
3340 |
if (that == null)
|
|
|
3341 |
return false;
|
| 648 |
chandransh |
3342 |
if (that instanceof getLogisticsInfo_args)
|
|
|
3343 |
return this.equals((getLogisticsInfo_args)that);
|
| 477 |
rajveer |
3344 |
return false;
|
|
|
3345 |
}
|
|
|
3346 |
|
| 648 |
chandransh |
3347 |
public boolean equals(getLogisticsInfo_args that) {
|
| 477 |
rajveer |
3348 |
if (that == null)
|
|
|
3349 |
return false;
|
|
|
3350 |
|
| 648 |
chandransh |
3351 |
boolean this_present_destination_pincode = true && this.isSetDestination_pincode();
|
|
|
3352 |
boolean that_present_destination_pincode = true && that.isSetDestination_pincode();
|
|
|
3353 |
if (this_present_destination_pincode || that_present_destination_pincode) {
|
|
|
3354 |
if (!(this_present_destination_pincode && that_present_destination_pincode))
|
| 477 |
rajveer |
3355 |
return false;
|
| 648 |
chandransh |
3356 |
if (!this.destination_pincode.equals(that.destination_pincode))
|
| 477 |
rajveer |
3357 |
return false;
|
|
|
3358 |
}
|
|
|
3359 |
|
| 715 |
rajveer |
3360 |
boolean this_present_item_id = true;
|
|
|
3361 |
boolean that_present_item_id = true;
|
| 648 |
chandransh |
3362 |
if (this_present_item_id || that_present_item_id) {
|
|
|
3363 |
if (!(this_present_item_id && that_present_item_id))
|
| 477 |
rajveer |
3364 |
return false;
|
| 715 |
rajveer |
3365 |
if (this.item_id != that.item_id)
|
| 477 |
rajveer |
3366 |
return false;
|
|
|
3367 |
}
|
|
|
3368 |
|
| 3044 |
chandransh |
3369 |
boolean this_present_type = true && this.isSetType();
|
|
|
3370 |
boolean that_present_type = true && that.isSetType();
|
|
|
3371 |
if (this_present_type || that_present_type) {
|
|
|
3372 |
if (!(this_present_type && that_present_type))
|
|
|
3373 |
return false;
|
|
|
3374 |
if (!this.type.equals(that.type))
|
|
|
3375 |
return false;
|
|
|
3376 |
}
|
|
|
3377 |
|
| 477 |
rajveer |
3378 |
return true;
|
|
|
3379 |
}
|
|
|
3380 |
|
|
|
3381 |
@Override
|
|
|
3382 |
public int hashCode() {
|
|
|
3383 |
return 0;
|
|
|
3384 |
}
|
|
|
3385 |
|
| 648 |
chandransh |
3386 |
public int compareTo(getLogisticsInfo_args other) {
|
| 477 |
rajveer |
3387 |
if (!getClass().equals(other.getClass())) {
|
|
|
3388 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
3389 |
}
|
|
|
3390 |
|
|
|
3391 |
int lastComparison = 0;
|
| 648 |
chandransh |
3392 |
getLogisticsInfo_args typedOther = (getLogisticsInfo_args)other;
|
| 477 |
rajveer |
3393 |
|
| 3430 |
rajveer |
3394 |
lastComparison = Boolean.valueOf(isSetDestination_pincode()).compareTo(typedOther.isSetDestination_pincode());
|
| 477 |
rajveer |
3395 |
if (lastComparison != 0) {
|
|
|
3396 |
return lastComparison;
|
|
|
3397 |
}
|
| 3430 |
rajveer |
3398 |
if (isSetDestination_pincode()) {
|
|
|
3399 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pincode, typedOther.destination_pincode);
|
|
|
3400 |
if (lastComparison != 0) {
|
|
|
3401 |
return lastComparison;
|
|
|
3402 |
}
|
| 477 |
rajveer |
3403 |
}
|
| 3430 |
rajveer |
3404 |
lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
|
| 477 |
rajveer |
3405 |
if (lastComparison != 0) {
|
|
|
3406 |
return lastComparison;
|
|
|
3407 |
}
|
| 3430 |
rajveer |
3408 |
if (isSetItem_id()) {
|
|
|
3409 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
|
|
|
3410 |
if (lastComparison != 0) {
|
|
|
3411 |
return lastComparison;
|
|
|
3412 |
}
|
| 477 |
rajveer |
3413 |
}
|
| 3430 |
rajveer |
3414 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
| 3044 |
chandransh |
3415 |
if (lastComparison != 0) {
|
|
|
3416 |
return lastComparison;
|
|
|
3417 |
}
|
| 3430 |
rajveer |
3418 |
if (isSetType()) {
|
|
|
3419 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
|
|
3420 |
if (lastComparison != 0) {
|
|
|
3421 |
return lastComparison;
|
|
|
3422 |
}
|
| 3044 |
chandransh |
3423 |
}
|
| 477 |
rajveer |
3424 |
return 0;
|
|
|
3425 |
}
|
|
|
3426 |
|
| 3430 |
rajveer |
3427 |
public _Fields fieldForId(int fieldId) {
|
|
|
3428 |
return _Fields.findByThriftId(fieldId);
|
|
|
3429 |
}
|
|
|
3430 |
|
|
|
3431 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
3432 |
org.apache.thrift.protocol.TField field;
|
| 477 |
rajveer |
3433 |
iprot.readStructBegin();
|
|
|
3434 |
while (true)
|
|
|
3435 |
{
|
|
|
3436 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
3437 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 477 |
rajveer |
3438 |
break;
|
|
|
3439 |
}
|
| 3430 |
rajveer |
3440 |
switch (field.id) {
|
|
|
3441 |
case 1: // DESTINATION_PINCODE
|
|
|
3442 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
3443 |
this.destination_pincode = iprot.readString();
|
|
|
3444 |
} else {
|
|
|
3445 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3446 |
}
|
|
|
3447 |
break;
|
|
|
3448 |
case 2: // ITEM_ID
|
|
|
3449 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
3450 |
this.item_id = iprot.readI64();
|
|
|
3451 |
setItem_idIsSet(true);
|
|
|
3452 |
} else {
|
|
|
3453 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3454 |
}
|
|
|
3455 |
break;
|
|
|
3456 |
case 3: // TYPE
|
|
|
3457 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
3458 |
this.type = DeliveryType.findByValue(iprot.readI32());
|
|
|
3459 |
} else {
|
|
|
3460 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3461 |
}
|
|
|
3462 |
break;
|
|
|
3463 |
default:
|
|
|
3464 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 477 |
rajveer |
3465 |
}
|
| 3430 |
rajveer |
3466 |
iprot.readFieldEnd();
|
| 477 |
rajveer |
3467 |
}
|
|
|
3468 |
iprot.readStructEnd();
|
|
|
3469 |
validate();
|
|
|
3470 |
}
|
|
|
3471 |
|
| 3430 |
rajveer |
3472 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 477 |
rajveer |
3473 |
validate();
|
|
|
3474 |
|
|
|
3475 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 648 |
chandransh |
3476 |
if (this.destination_pincode != null) {
|
|
|
3477 |
oprot.writeFieldBegin(DESTINATION_PINCODE_FIELD_DESC);
|
|
|
3478 |
oprot.writeString(this.destination_pincode);
|
| 477 |
rajveer |
3479 |
oprot.writeFieldEnd();
|
|
|
3480 |
}
|
| 715 |
rajveer |
3481 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
|
|
3482 |
oprot.writeI64(this.item_id);
|
|
|
3483 |
oprot.writeFieldEnd();
|
| 3044 |
chandransh |
3484 |
if (this.type != null) {
|
|
|
3485 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
|
|
3486 |
oprot.writeI32(this.type.getValue());
|
|
|
3487 |
oprot.writeFieldEnd();
|
|
|
3488 |
}
|
| 477 |
rajveer |
3489 |
oprot.writeFieldStop();
|
|
|
3490 |
oprot.writeStructEnd();
|
|
|
3491 |
}
|
|
|
3492 |
|
|
|
3493 |
@Override
|
|
|
3494 |
public String toString() {
|
| 648 |
chandransh |
3495 |
StringBuilder sb = new StringBuilder("getLogisticsInfo_args(");
|
| 477 |
rajveer |
3496 |
boolean first = true;
|
|
|
3497 |
|
| 648 |
chandransh |
3498 |
sb.append("destination_pincode:");
|
|
|
3499 |
if (this.destination_pincode == null) {
|
| 477 |
rajveer |
3500 |
sb.append("null");
|
|
|
3501 |
} else {
|
| 648 |
chandransh |
3502 |
sb.append(this.destination_pincode);
|
| 477 |
rajveer |
3503 |
}
|
|
|
3504 |
first = false;
|
|
|
3505 |
if (!first) sb.append(", ");
|
| 648 |
chandransh |
3506 |
sb.append("item_id:");
|
| 715 |
rajveer |
3507 |
sb.append(this.item_id);
|
| 477 |
rajveer |
3508 |
first = false;
|
| 3044 |
chandransh |
3509 |
if (!first) sb.append(", ");
|
|
|
3510 |
sb.append("type:");
|
|
|
3511 |
if (this.type == null) {
|
|
|
3512 |
sb.append("null");
|
|
|
3513 |
} else {
|
|
|
3514 |
sb.append(this.type);
|
|
|
3515 |
}
|
|
|
3516 |
first = false;
|
| 477 |
rajveer |
3517 |
sb.append(")");
|
|
|
3518 |
return sb.toString();
|
|
|
3519 |
}
|
|
|
3520 |
|
| 3430 |
rajveer |
3521 |
public void validate() throws org.apache.thrift.TException {
|
| 477 |
rajveer |
3522 |
// check for required fields
|
|
|
3523 |
}
|
|
|
3524 |
|
| 3430 |
rajveer |
3525 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
3526 |
try {
|
|
|
3527 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
3528 |
} catch (org.apache.thrift.TException te) {
|
|
|
3529 |
throw new java.io.IOException(te);
|
|
|
3530 |
}
|
|
|
3531 |
}
|
|
|
3532 |
|
|
|
3533 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
3534 |
try {
|
|
|
3535 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
3536 |
} catch (org.apache.thrift.TException te) {
|
|
|
3537 |
throw new java.io.IOException(te);
|
|
|
3538 |
}
|
|
|
3539 |
}
|
|
|
3540 |
|
| 477 |
rajveer |
3541 |
}
|
|
|
3542 |
|
| 3430 |
rajveer |
3543 |
public static class getLogisticsInfo_result implements org.apache.thrift.TBase<getLogisticsInfo_result, getLogisticsInfo_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
3544 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_result");
|
| 477 |
rajveer |
3545 |
|
| 3430 |
rajveer |
3546 |
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);
|
|
|
3547 |
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 |
3548 |
|
| 3430 |
rajveer |
3549 |
private LogisticsInfo success; // required
|
|
|
3550 |
private LogisticsServiceException se; // required
|
| 477 |
rajveer |
3551 |
|
|
|
3552 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
3553 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 648 |
chandransh |
3554 |
SUCCESS((short)0, "success"),
|
|
|
3555 |
SE((short)1, "se");
|
| 477 |
rajveer |
3556 |
|
|
|
3557 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
3558 |
|
|
|
3559 |
static {
|
|
|
3560 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
3561 |
byName.put(field.getFieldName(), field);
|
|
|
3562 |
}
|
|
|
3563 |
}
|
|
|
3564 |
|
|
|
3565 |
/**
|
|
|
3566 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
3567 |
*/
|
|
|
3568 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
3569 |
switch(fieldId) {
|
|
|
3570 |
case 0: // SUCCESS
|
|
|
3571 |
return SUCCESS;
|
|
|
3572 |
case 1: // SE
|
|
|
3573 |
return SE;
|
|
|
3574 |
default:
|
|
|
3575 |
return null;
|
|
|
3576 |
}
|
| 477 |
rajveer |
3577 |
}
|
|
|
3578 |
|
|
|
3579 |
/**
|
|
|
3580 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
3581 |
* if it is not found.
|
|
|
3582 |
*/
|
|
|
3583 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
3584 |
_Fields fields = findByThriftId(fieldId);
|
|
|
3585 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
3586 |
return fields;
|
|
|
3587 |
}
|
|
|
3588 |
|
|
|
3589 |
/**
|
|
|
3590 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
3591 |
*/
|
|
|
3592 |
public static _Fields findByName(String name) {
|
|
|
3593 |
return byName.get(name);
|
|
|
3594 |
}
|
|
|
3595 |
|
|
|
3596 |
private final short _thriftId;
|
|
|
3597 |
private final String _fieldName;
|
|
|
3598 |
|
|
|
3599 |
_Fields(short thriftId, String fieldName) {
|
|
|
3600 |
_thriftId = thriftId;
|
|
|
3601 |
_fieldName = fieldName;
|
|
|
3602 |
}
|
|
|
3603 |
|
|
|
3604 |
public short getThriftFieldId() {
|
|
|
3605 |
return _thriftId;
|
|
|
3606 |
}
|
|
|
3607 |
|
|
|
3608 |
public String getFieldName() {
|
|
|
3609 |
return _fieldName;
|
|
|
3610 |
}
|
|
|
3611 |
}
|
|
|
3612 |
|
| 412 |
ashish |
3613 |
// isset id assignments
|
|
|
3614 |
|
| 3430 |
rajveer |
3615 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 412 |
ashish |
3616 |
static {
|
| 3430 |
rajveer |
3617 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
3618 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3619 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
|
|
|
3620 |
tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3621 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
3622 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
3623 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_result.class, metaDataMap);
|
| 412 |
ashish |
3624 |
}
|
|
|
3625 |
|
| 648 |
chandransh |
3626 |
public getLogisticsInfo_result() {
|
| 412 |
ashish |
3627 |
}
|
|
|
3628 |
|
| 648 |
chandransh |
3629 |
public getLogisticsInfo_result(
|
|
|
3630 |
LogisticsInfo success,
|
|
|
3631 |
LogisticsServiceException se)
|
| 412 |
ashish |
3632 |
{
|
|
|
3633 |
this();
|
| 648 |
chandransh |
3634 |
this.success = success;
|
|
|
3635 |
this.se = se;
|
| 412 |
ashish |
3636 |
}
|
|
|
3637 |
|
|
|
3638 |
/**
|
|
|
3639 |
* Performs a deep copy on <i>other</i>.
|
|
|
3640 |
*/
|
| 648 |
chandransh |
3641 |
public getLogisticsInfo_result(getLogisticsInfo_result other) {
|
|
|
3642 |
if (other.isSetSuccess()) {
|
|
|
3643 |
this.success = new LogisticsInfo(other.success);
|
| 412 |
ashish |
3644 |
}
|
| 648 |
chandransh |
3645 |
if (other.isSetSe()) {
|
|
|
3646 |
this.se = new LogisticsServiceException(other.se);
|
|
|
3647 |
}
|
| 412 |
ashish |
3648 |
}
|
|
|
3649 |
|
| 648 |
chandransh |
3650 |
public getLogisticsInfo_result deepCopy() {
|
|
|
3651 |
return new getLogisticsInfo_result(this);
|
| 412 |
ashish |
3652 |
}
|
|
|
3653 |
|
| 3430 |
rajveer |
3654 |
@Override
|
|
|
3655 |
public void clear() {
|
|
|
3656 |
this.success = null;
|
|
|
3657 |
this.se = null;
|
| 412 |
ashish |
3658 |
}
|
|
|
3659 |
|
| 648 |
chandransh |
3660 |
public LogisticsInfo getSuccess() {
|
|
|
3661 |
return this.success;
|
| 412 |
ashish |
3662 |
}
|
|
|
3663 |
|
| 3430 |
rajveer |
3664 |
public void setSuccess(LogisticsInfo success) {
|
| 648 |
chandransh |
3665 |
this.success = success;
|
| 412 |
ashish |
3666 |
}
|
|
|
3667 |
|
| 648 |
chandransh |
3668 |
public void unsetSuccess() {
|
|
|
3669 |
this.success = null;
|
| 412 |
ashish |
3670 |
}
|
|
|
3671 |
|
| 3430 |
rajveer |
3672 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 648 |
chandransh |
3673 |
public boolean isSetSuccess() {
|
|
|
3674 |
return this.success != null;
|
| 412 |
ashish |
3675 |
}
|
|
|
3676 |
|
| 648 |
chandransh |
3677 |
public void setSuccessIsSet(boolean value) {
|
| 412 |
ashish |
3678 |
if (!value) {
|
| 648 |
chandransh |
3679 |
this.success = null;
|
| 412 |
ashish |
3680 |
}
|
|
|
3681 |
}
|
|
|
3682 |
|
| 648 |
chandransh |
3683 |
public LogisticsServiceException getSe() {
|
|
|
3684 |
return this.se;
|
| 412 |
ashish |
3685 |
}
|
|
|
3686 |
|
| 3430 |
rajveer |
3687 |
public void setSe(LogisticsServiceException se) {
|
| 648 |
chandransh |
3688 |
this.se = se;
|
| 412 |
ashish |
3689 |
}
|
|
|
3690 |
|
| 648 |
chandransh |
3691 |
public void unsetSe() {
|
|
|
3692 |
this.se = null;
|
| 412 |
ashish |
3693 |
}
|
|
|
3694 |
|
| 3430 |
rajveer |
3695 |
/** Returns true if field se is set (has been assigned a value) and false otherwise */
|
| 648 |
chandransh |
3696 |
public boolean isSetSe() {
|
|
|
3697 |
return this.se != null;
|
| 412 |
ashish |
3698 |
}
|
|
|
3699 |
|
| 648 |
chandransh |
3700 |
public void setSeIsSet(boolean value) {
|
|
|
3701 |
if (!value) {
|
|
|
3702 |
this.se = null;
|
|
|
3703 |
}
|
| 412 |
ashish |
3704 |
}
|
|
|
3705 |
|
|
|
3706 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
3707 |
switch (field) {
|
| 648 |
chandransh |
3708 |
case SUCCESS:
|
| 412 |
ashish |
3709 |
if (value == null) {
|
| 648 |
chandransh |
3710 |
unsetSuccess();
|
| 412 |
ashish |
3711 |
} else {
|
| 648 |
chandransh |
3712 |
setSuccess((LogisticsInfo)value);
|
| 412 |
ashish |
3713 |
}
|
|
|
3714 |
break;
|
|
|
3715 |
|
| 648 |
chandransh |
3716 |
case SE:
|
| 412 |
ashish |
3717 |
if (value == null) {
|
| 648 |
chandransh |
3718 |
unsetSe();
|
| 412 |
ashish |
3719 |
} else {
|
| 648 |
chandransh |
3720 |
setSe((LogisticsServiceException)value);
|
| 412 |
ashish |
3721 |
}
|
|
|
3722 |
break;
|
|
|
3723 |
|
|
|
3724 |
}
|
|
|
3725 |
}
|
|
|
3726 |
|
|
|
3727 |
public Object getFieldValue(_Fields field) {
|
|
|
3728 |
switch (field) {
|
| 648 |
chandransh |
3729 |
case SUCCESS:
|
|
|
3730 |
return getSuccess();
|
| 412 |
ashish |
3731 |
|
| 648 |
chandransh |
3732 |
case SE:
|
|
|
3733 |
return getSe();
|
| 412 |
ashish |
3734 |
|
|
|
3735 |
}
|
|
|
3736 |
throw new IllegalStateException();
|
|
|
3737 |
}
|
|
|
3738 |
|
| 3430 |
rajveer |
3739 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
3740 |
public boolean isSet(_Fields field) {
|
|
|
3741 |
if (field == null) {
|
|
|
3742 |
throw new IllegalArgumentException();
|
|
|
3743 |
}
|
| 412 |
ashish |
3744 |
|
|
|
3745 |
switch (field) {
|
| 648 |
chandransh |
3746 |
case SUCCESS:
|
|
|
3747 |
return isSetSuccess();
|
|
|
3748 |
case SE:
|
|
|
3749 |
return isSetSe();
|
| 412 |
ashish |
3750 |
}
|
|
|
3751 |
throw new IllegalStateException();
|
|
|
3752 |
}
|
|
|
3753 |
|
|
|
3754 |
@Override
|
|
|
3755 |
public boolean equals(Object that) {
|
|
|
3756 |
if (that == null)
|
|
|
3757 |
return false;
|
| 648 |
chandransh |
3758 |
if (that instanceof getLogisticsInfo_result)
|
|
|
3759 |
return this.equals((getLogisticsInfo_result)that);
|
| 412 |
ashish |
3760 |
return false;
|
|
|
3761 |
}
|
|
|
3762 |
|
| 648 |
chandransh |
3763 |
public boolean equals(getLogisticsInfo_result that) {
|
| 412 |
ashish |
3764 |
if (that == null)
|
|
|
3765 |
return false;
|
|
|
3766 |
|
| 648 |
chandransh |
3767 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
3768 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
3769 |
if (this_present_success || that_present_success) {
|
|
|
3770 |
if (!(this_present_success && that_present_success))
|
| 412 |
ashish |
3771 |
return false;
|
| 648 |
chandransh |
3772 |
if (!this.success.equals(that.success))
|
| 412 |
ashish |
3773 |
return false;
|
|
|
3774 |
}
|
|
|
3775 |
|
| 648 |
chandransh |
3776 |
boolean this_present_se = true && this.isSetSe();
|
|
|
3777 |
boolean that_present_se = true && that.isSetSe();
|
|
|
3778 |
if (this_present_se || that_present_se) {
|
|
|
3779 |
if (!(this_present_se && that_present_se))
|
| 412 |
ashish |
3780 |
return false;
|
| 648 |
chandransh |
3781 |
if (!this.se.equals(that.se))
|
| 412 |
ashish |
3782 |
return false;
|
|
|
3783 |
}
|
|
|
3784 |
|
|
|
3785 |
return true;
|
|
|
3786 |
}
|
|
|
3787 |
|
|
|
3788 |
@Override
|
|
|
3789 |
public int hashCode() {
|
|
|
3790 |
return 0;
|
|
|
3791 |
}
|
|
|
3792 |
|
| 648 |
chandransh |
3793 |
public int compareTo(getLogisticsInfo_result other) {
|
| 412 |
ashish |
3794 |
if (!getClass().equals(other.getClass())) {
|
|
|
3795 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
3796 |
}
|
|
|
3797 |
|
|
|
3798 |
int lastComparison = 0;
|
| 648 |
chandransh |
3799 |
getLogisticsInfo_result typedOther = (getLogisticsInfo_result)other;
|
| 412 |
ashish |
3800 |
|
| 3430 |
rajveer |
3801 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 412 |
ashish |
3802 |
if (lastComparison != 0) {
|
|
|
3803 |
return lastComparison;
|
|
|
3804 |
}
|
| 3430 |
rajveer |
3805 |
if (isSetSuccess()) {
|
|
|
3806 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
3807 |
if (lastComparison != 0) {
|
|
|
3808 |
return lastComparison;
|
|
|
3809 |
}
|
| 412 |
ashish |
3810 |
}
|
| 3430 |
rajveer |
3811 |
lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
|
| 412 |
ashish |
3812 |
if (lastComparison != 0) {
|
|
|
3813 |
return lastComparison;
|
|
|
3814 |
}
|
| 3430 |
rajveer |
3815 |
if (isSetSe()) {
|
|
|
3816 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
|
|
|
3817 |
if (lastComparison != 0) {
|
|
|
3818 |
return lastComparison;
|
|
|
3819 |
}
|
| 412 |
ashish |
3820 |
}
|
|
|
3821 |
return 0;
|
|
|
3822 |
}
|
|
|
3823 |
|
| 3430 |
rajveer |
3824 |
public _Fields fieldForId(int fieldId) {
|
|
|
3825 |
return _Fields.findByThriftId(fieldId);
|
|
|
3826 |
}
|
|
|
3827 |
|
|
|
3828 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
3829 |
org.apache.thrift.protocol.TField field;
|
| 412 |
ashish |
3830 |
iprot.readStructBegin();
|
|
|
3831 |
while (true)
|
|
|
3832 |
{
|
|
|
3833 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
3834 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 412 |
ashish |
3835 |
break;
|
|
|
3836 |
}
|
| 3430 |
rajveer |
3837 |
switch (field.id) {
|
|
|
3838 |
case 0: // SUCCESS
|
|
|
3839 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
3840 |
this.success = new LogisticsInfo();
|
|
|
3841 |
this.success.read(iprot);
|
|
|
3842 |
} else {
|
|
|
3843 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3844 |
}
|
|
|
3845 |
break;
|
|
|
3846 |
case 1: // SE
|
|
|
3847 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
3848 |
this.se = new LogisticsServiceException();
|
|
|
3849 |
this.se.read(iprot);
|
|
|
3850 |
} else {
|
|
|
3851 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
3852 |
}
|
|
|
3853 |
break;
|
|
|
3854 |
default:
|
|
|
3855 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 412 |
ashish |
3856 |
}
|
| 3430 |
rajveer |
3857 |
iprot.readFieldEnd();
|
| 412 |
ashish |
3858 |
}
|
|
|
3859 |
iprot.readStructEnd();
|
|
|
3860 |
validate();
|
|
|
3861 |
}
|
|
|
3862 |
|
| 3430 |
rajveer |
3863 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 648 |
chandransh |
3864 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 412 |
ashish |
3865 |
|
| 648 |
chandransh |
3866 |
if (this.isSetSuccess()) {
|
|
|
3867 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
3868 |
this.success.write(oprot);
|
| 412 |
ashish |
3869 |
oprot.writeFieldEnd();
|
| 648 |
chandransh |
3870 |
} else if (this.isSetSe()) {
|
|
|
3871 |
oprot.writeFieldBegin(SE_FIELD_DESC);
|
|
|
3872 |
this.se.write(oprot);
|
|
|
3873 |
oprot.writeFieldEnd();
|
| 412 |
ashish |
3874 |
}
|
|
|
3875 |
oprot.writeFieldStop();
|
|
|
3876 |
oprot.writeStructEnd();
|
|
|
3877 |
}
|
|
|
3878 |
|
|
|
3879 |
@Override
|
|
|
3880 |
public String toString() {
|
| 648 |
chandransh |
3881 |
StringBuilder sb = new StringBuilder("getLogisticsInfo_result(");
|
| 412 |
ashish |
3882 |
boolean first = true;
|
|
|
3883 |
|
| 648 |
chandransh |
3884 |
sb.append("success:");
|
|
|
3885 |
if (this.success == null) {
|
| 412 |
ashish |
3886 |
sb.append("null");
|
|
|
3887 |
} else {
|
| 648 |
chandransh |
3888 |
sb.append(this.success);
|
| 412 |
ashish |
3889 |
}
|
|
|
3890 |
first = false;
|
|
|
3891 |
if (!first) sb.append(", ");
|
| 648 |
chandransh |
3892 |
sb.append("se:");
|
|
|
3893 |
if (this.se == null) {
|
|
|
3894 |
sb.append("null");
|
|
|
3895 |
} else {
|
|
|
3896 |
sb.append(this.se);
|
|
|
3897 |
}
|
| 412 |
ashish |
3898 |
first = false;
|
|
|
3899 |
sb.append(")");
|
|
|
3900 |
return sb.toString();
|
|
|
3901 |
}
|
|
|
3902 |
|
| 3430 |
rajveer |
3903 |
public void validate() throws org.apache.thrift.TException {
|
| 412 |
ashish |
3904 |
// check for required fields
|
|
|
3905 |
}
|
|
|
3906 |
|
| 3430 |
rajveer |
3907 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
3908 |
try {
|
|
|
3909 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
3910 |
} catch (org.apache.thrift.TException te) {
|
|
|
3911 |
throw new java.io.IOException(te);
|
|
|
3912 |
}
|
|
|
3913 |
}
|
|
|
3914 |
|
|
|
3915 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
3916 |
try {
|
|
|
3917 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
3918 |
} catch (org.apache.thrift.TException te) {
|
|
|
3919 |
throw new java.io.IOException(te);
|
|
|
3920 |
}
|
|
|
3921 |
}
|
|
|
3922 |
|
| 412 |
ashish |
3923 |
}
|
|
|
3924 |
|
| 3430 |
rajveer |
3925 |
public static class getEmptyAWB_args implements org.apache.thrift.TBase<getEmptyAWB_args, getEmptyAWB_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
3926 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_args");
|
| 412 |
ashish |
3927 |
|
| 3430 |
rajveer |
3928 |
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);
|
| 412 |
ashish |
3929 |
|
| 3430 |
rajveer |
3930 |
private long providerId; // required
|
| 412 |
ashish |
3931 |
|
|
|
3932 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
3933 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 648 |
chandransh |
3934 |
PROVIDER_ID((short)1, "providerId");
|
| 412 |
ashish |
3935 |
|
|
|
3936 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
3937 |
|
|
|
3938 |
static {
|
|
|
3939 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
3940 |
byName.put(field.getFieldName(), field);
|
|
|
3941 |
}
|
|
|
3942 |
}
|
|
|
3943 |
|
|
|
3944 |
/**
|
|
|
3945 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
3946 |
*/
|
|
|
3947 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
3948 |
switch(fieldId) {
|
|
|
3949 |
case 1: // PROVIDER_ID
|
|
|
3950 |
return PROVIDER_ID;
|
|
|
3951 |
default:
|
|
|
3952 |
return null;
|
|
|
3953 |
}
|
| 412 |
ashish |
3954 |
}
|
|
|
3955 |
|
|
|
3956 |
/**
|
|
|
3957 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
3958 |
* if it is not found.
|
|
|
3959 |
*/
|
|
|
3960 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
3961 |
_Fields fields = findByThriftId(fieldId);
|
|
|
3962 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
3963 |
return fields;
|
|
|
3964 |
}
|
|
|
3965 |
|
|
|
3966 |
/**
|
|
|
3967 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
3968 |
*/
|
|
|
3969 |
public static _Fields findByName(String name) {
|
|
|
3970 |
return byName.get(name);
|
|
|
3971 |
}
|
|
|
3972 |
|
|
|
3973 |
private final short _thriftId;
|
|
|
3974 |
private final String _fieldName;
|
|
|
3975 |
|
|
|
3976 |
_Fields(short thriftId, String fieldName) {
|
|
|
3977 |
_thriftId = thriftId;
|
|
|
3978 |
_fieldName = fieldName;
|
|
|
3979 |
}
|
|
|
3980 |
|
|
|
3981 |
public short getThriftFieldId() {
|
|
|
3982 |
return _thriftId;
|
|
|
3983 |
}
|
|
|
3984 |
|
|
|
3985 |
public String getFieldName() {
|
|
|
3986 |
return _fieldName;
|
|
|
3987 |
}
|
|
|
3988 |
}
|
|
|
3989 |
|
|
|
3990 |
// isset id assignments
|
| 648 |
chandransh |
3991 |
private static final int __PROVIDERID_ISSET_ID = 0;
|
| 412 |
ashish |
3992 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
3993 |
|
| 3430 |
rajveer |
3994 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 412 |
ashish |
3995 |
static {
|
| 3430 |
rajveer |
3996 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
3997 |
tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
3998 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
3999 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
4000 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_args.class, metaDataMap);
|
| 412 |
ashish |
4001 |
}
|
|
|
4002 |
|
|
|
4003 |
public getEmptyAWB_args() {
|
|
|
4004 |
}
|
|
|
4005 |
|
|
|
4006 |
public getEmptyAWB_args(
|
| 648 |
chandransh |
4007 |
long providerId)
|
| 412 |
ashish |
4008 |
{
|
|
|
4009 |
this();
|
| 648 |
chandransh |
4010 |
this.providerId = providerId;
|
|
|
4011 |
setProviderIdIsSet(true);
|
| 412 |
ashish |
4012 |
}
|
|
|
4013 |
|
|
|
4014 |
/**
|
|
|
4015 |
* Performs a deep copy on <i>other</i>.
|
|
|
4016 |
*/
|
|
|
4017 |
public getEmptyAWB_args(getEmptyAWB_args other) {
|
|
|
4018 |
__isset_bit_vector.clear();
|
|
|
4019 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 648 |
chandransh |
4020 |
this.providerId = other.providerId;
|
| 412 |
ashish |
4021 |
}
|
|
|
4022 |
|
|
|
4023 |
public getEmptyAWB_args deepCopy() {
|
|
|
4024 |
return new getEmptyAWB_args(this);
|
|
|
4025 |
}
|
|
|
4026 |
|
| 3430 |
rajveer |
4027 |
@Override
|
|
|
4028 |
public void clear() {
|
|
|
4029 |
setProviderIdIsSet(false);
|
|
|
4030 |
this.providerId = 0;
|
| 412 |
ashish |
4031 |
}
|
|
|
4032 |
|
| 648 |
chandransh |
4033 |
public long getProviderId() {
|
|
|
4034 |
return this.providerId;
|
| 412 |
ashish |
4035 |
}
|
|
|
4036 |
|
| 3430 |
rajveer |
4037 |
public void setProviderId(long providerId) {
|
| 648 |
chandransh |
4038 |
this.providerId = providerId;
|
|
|
4039 |
setProviderIdIsSet(true);
|
| 412 |
ashish |
4040 |
}
|
|
|
4041 |
|
| 648 |
chandransh |
4042 |
public void unsetProviderId() {
|
|
|
4043 |
__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
|
| 412 |
ashish |
4044 |
}
|
|
|
4045 |
|
| 3430 |
rajveer |
4046 |
/** Returns true if field providerId is set (has been assigned a value) and false otherwise */
|
| 648 |
chandransh |
4047 |
public boolean isSetProviderId() {
|
|
|
4048 |
return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
|
| 412 |
ashish |
4049 |
}
|
|
|
4050 |
|
| 648 |
chandransh |
4051 |
public void setProviderIdIsSet(boolean value) {
|
|
|
4052 |
__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
|
| 412 |
ashish |
4053 |
}
|
|
|
4054 |
|
|
|
4055 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
4056 |
switch (field) {
|
|
|
4057 |
case PROVIDER_ID:
|
|
|
4058 |
if (value == null) {
|
| 648 |
chandransh |
4059 |
unsetProviderId();
|
| 412 |
ashish |
4060 |
} else {
|
| 648 |
chandransh |
4061 |
setProviderId((Long)value);
|
| 412 |
ashish |
4062 |
}
|
|
|
4063 |
break;
|
|
|
4064 |
|
|
|
4065 |
}
|
|
|
4066 |
}
|
|
|
4067 |
|
|
|
4068 |
public Object getFieldValue(_Fields field) {
|
|
|
4069 |
switch (field) {
|
|
|
4070 |
case PROVIDER_ID:
|
| 3430 |
rajveer |
4071 |
return Long.valueOf(getProviderId());
|
| 412 |
ashish |
4072 |
|
|
|
4073 |
}
|
|
|
4074 |
throw new IllegalStateException();
|
|
|
4075 |
}
|
|
|
4076 |
|
| 3430 |
rajveer |
4077 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
4078 |
public boolean isSet(_Fields field) {
|
|
|
4079 |
if (field == null) {
|
|
|
4080 |
throw new IllegalArgumentException();
|
|
|
4081 |
}
|
| 412 |
ashish |
4082 |
|
|
|
4083 |
switch (field) {
|
|
|
4084 |
case PROVIDER_ID:
|
| 648 |
chandransh |
4085 |
return isSetProviderId();
|
| 412 |
ashish |
4086 |
}
|
|
|
4087 |
throw new IllegalStateException();
|
|
|
4088 |
}
|
|
|
4089 |
|
|
|
4090 |
@Override
|
|
|
4091 |
public boolean equals(Object that) {
|
|
|
4092 |
if (that == null)
|
|
|
4093 |
return false;
|
|
|
4094 |
if (that instanceof getEmptyAWB_args)
|
|
|
4095 |
return this.equals((getEmptyAWB_args)that);
|
|
|
4096 |
return false;
|
|
|
4097 |
}
|
|
|
4098 |
|
|
|
4099 |
public boolean equals(getEmptyAWB_args that) {
|
|
|
4100 |
if (that == null)
|
|
|
4101 |
return false;
|
|
|
4102 |
|
| 648 |
chandransh |
4103 |
boolean this_present_providerId = true;
|
|
|
4104 |
boolean that_present_providerId = true;
|
|
|
4105 |
if (this_present_providerId || that_present_providerId) {
|
|
|
4106 |
if (!(this_present_providerId && that_present_providerId))
|
| 412 |
ashish |
4107 |
return false;
|
| 648 |
chandransh |
4108 |
if (this.providerId != that.providerId)
|
| 412 |
ashish |
4109 |
return false;
|
|
|
4110 |
}
|
|
|
4111 |
|
|
|
4112 |
return true;
|
|
|
4113 |
}
|
|
|
4114 |
|
|
|
4115 |
@Override
|
|
|
4116 |
public int hashCode() {
|
|
|
4117 |
return 0;
|
|
|
4118 |
}
|
|
|
4119 |
|
|
|
4120 |
public int compareTo(getEmptyAWB_args other) {
|
|
|
4121 |
if (!getClass().equals(other.getClass())) {
|
|
|
4122 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
4123 |
}
|
|
|
4124 |
|
|
|
4125 |
int lastComparison = 0;
|
|
|
4126 |
getEmptyAWB_args typedOther = (getEmptyAWB_args)other;
|
|
|
4127 |
|
| 3430 |
rajveer |
4128 |
lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
|
| 412 |
ashish |
4129 |
if (lastComparison != 0) {
|
|
|
4130 |
return lastComparison;
|
|
|
4131 |
}
|
| 3430 |
rajveer |
4132 |
if (isSetProviderId()) {
|
|
|
4133 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
|
|
|
4134 |
if (lastComparison != 0) {
|
|
|
4135 |
return lastComparison;
|
|
|
4136 |
}
|
| 412 |
ashish |
4137 |
}
|
|
|
4138 |
return 0;
|
|
|
4139 |
}
|
|
|
4140 |
|
| 3430 |
rajveer |
4141 |
public _Fields fieldForId(int fieldId) {
|
|
|
4142 |
return _Fields.findByThriftId(fieldId);
|
|
|
4143 |
}
|
|
|
4144 |
|
|
|
4145 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
4146 |
org.apache.thrift.protocol.TField field;
|
| 412 |
ashish |
4147 |
iprot.readStructBegin();
|
|
|
4148 |
while (true)
|
|
|
4149 |
{
|
|
|
4150 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
4151 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 412 |
ashish |
4152 |
break;
|
|
|
4153 |
}
|
| 3430 |
rajveer |
4154 |
switch (field.id) {
|
|
|
4155 |
case 1: // PROVIDER_ID
|
|
|
4156 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
4157 |
this.providerId = iprot.readI64();
|
|
|
4158 |
setProviderIdIsSet(true);
|
|
|
4159 |
} else {
|
|
|
4160 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4161 |
}
|
|
|
4162 |
break;
|
|
|
4163 |
default:
|
|
|
4164 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 412 |
ashish |
4165 |
}
|
| 3430 |
rajveer |
4166 |
iprot.readFieldEnd();
|
| 412 |
ashish |
4167 |
}
|
|
|
4168 |
iprot.readStructEnd();
|
|
|
4169 |
validate();
|
|
|
4170 |
}
|
|
|
4171 |
|
| 3430 |
rajveer |
4172 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 412 |
ashish |
4173 |
validate();
|
|
|
4174 |
|
|
|
4175 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
4176 |
oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
|
| 648 |
chandransh |
4177 |
oprot.writeI64(this.providerId);
|
| 412 |
ashish |
4178 |
oprot.writeFieldEnd();
|
|
|
4179 |
oprot.writeFieldStop();
|
|
|
4180 |
oprot.writeStructEnd();
|
|
|
4181 |
}
|
|
|
4182 |
|
|
|
4183 |
@Override
|
|
|
4184 |
public String toString() {
|
|
|
4185 |
StringBuilder sb = new StringBuilder("getEmptyAWB_args(");
|
|
|
4186 |
boolean first = true;
|
|
|
4187 |
|
| 648 |
chandransh |
4188 |
sb.append("providerId:");
|
|
|
4189 |
sb.append(this.providerId);
|
| 412 |
ashish |
4190 |
first = false;
|
|
|
4191 |
sb.append(")");
|
|
|
4192 |
return sb.toString();
|
|
|
4193 |
}
|
|
|
4194 |
|
| 3430 |
rajveer |
4195 |
public void validate() throws org.apache.thrift.TException {
|
| 412 |
ashish |
4196 |
// check for required fields
|
|
|
4197 |
}
|
|
|
4198 |
|
| 3430 |
rajveer |
4199 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
4200 |
try {
|
|
|
4201 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
4202 |
} catch (org.apache.thrift.TException te) {
|
|
|
4203 |
throw new java.io.IOException(te);
|
|
|
4204 |
}
|
|
|
4205 |
}
|
|
|
4206 |
|
|
|
4207 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
4208 |
try {
|
|
|
4209 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
4210 |
__isset_bit_vector = new BitSet(1);
|
|
|
4211 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
4212 |
} catch (org.apache.thrift.TException te) {
|
|
|
4213 |
throw new java.io.IOException(te);
|
|
|
4214 |
}
|
|
|
4215 |
}
|
|
|
4216 |
|
| 412 |
ashish |
4217 |
}
|
|
|
4218 |
|
| 3430 |
rajveer |
4219 |
public static class getEmptyAWB_result implements org.apache.thrift.TBase<getEmptyAWB_result, getEmptyAWB_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
4220 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_result");
|
| 412 |
ashish |
4221 |
|
| 3430 |
rajveer |
4222 |
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);
|
|
|
4223 |
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 |
4224 |
|
| 3430 |
rajveer |
4225 |
private String success; // required
|
|
|
4226 |
private LogisticsServiceException se; // required
|
| 412 |
ashish |
4227 |
|
|
|
4228 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
4229 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 648 |
chandransh |
4230 |
SUCCESS((short)0, "success"),
|
|
|
4231 |
SE((short)1, "se");
|
| 412 |
ashish |
4232 |
|
|
|
4233 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
4234 |
|
|
|
4235 |
static {
|
|
|
4236 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
4237 |
byName.put(field.getFieldName(), field);
|
|
|
4238 |
}
|
|
|
4239 |
}
|
|
|
4240 |
|
|
|
4241 |
/**
|
|
|
4242 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
4243 |
*/
|
|
|
4244 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
4245 |
switch(fieldId) {
|
|
|
4246 |
case 0: // SUCCESS
|
|
|
4247 |
return SUCCESS;
|
|
|
4248 |
case 1: // SE
|
|
|
4249 |
return SE;
|
|
|
4250 |
default:
|
|
|
4251 |
return null;
|
|
|
4252 |
}
|
| 412 |
ashish |
4253 |
}
|
|
|
4254 |
|
|
|
4255 |
/**
|
|
|
4256 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
4257 |
* if it is not found.
|
|
|
4258 |
*/
|
|
|
4259 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
4260 |
_Fields fields = findByThriftId(fieldId);
|
|
|
4261 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
4262 |
return fields;
|
|
|
4263 |
}
|
|
|
4264 |
|
|
|
4265 |
/**
|
|
|
4266 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
4267 |
*/
|
|
|
4268 |
public static _Fields findByName(String name) {
|
|
|
4269 |
return byName.get(name);
|
|
|
4270 |
}
|
|
|
4271 |
|
|
|
4272 |
private final short _thriftId;
|
|
|
4273 |
private final String _fieldName;
|
|
|
4274 |
|
|
|
4275 |
_Fields(short thriftId, String fieldName) {
|
|
|
4276 |
_thriftId = thriftId;
|
|
|
4277 |
_fieldName = fieldName;
|
|
|
4278 |
}
|
|
|
4279 |
|
|
|
4280 |
public short getThriftFieldId() {
|
|
|
4281 |
return _thriftId;
|
|
|
4282 |
}
|
|
|
4283 |
|
|
|
4284 |
public String getFieldName() {
|
|
|
4285 |
return _fieldName;
|
|
|
4286 |
}
|
|
|
4287 |
}
|
|
|
4288 |
|
|
|
4289 |
// isset id assignments
|
|
|
4290 |
|
| 3430 |
rajveer |
4291 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 412 |
ashish |
4292 |
static {
|
| 3430 |
rajveer |
4293 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
4294 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4295 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
4296 |
tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4297 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
4298 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
4299 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_result.class, metaDataMap);
|
| 412 |
ashish |
4300 |
}
|
|
|
4301 |
|
|
|
4302 |
public getEmptyAWB_result() {
|
|
|
4303 |
}
|
|
|
4304 |
|
|
|
4305 |
public getEmptyAWB_result(
|
| 648 |
chandransh |
4306 |
String success,
|
|
|
4307 |
LogisticsServiceException se)
|
| 412 |
ashish |
4308 |
{
|
|
|
4309 |
this();
|
|
|
4310 |
this.success = success;
|
| 648 |
chandransh |
4311 |
this.se = se;
|
| 412 |
ashish |
4312 |
}
|
|
|
4313 |
|
|
|
4314 |
/**
|
|
|
4315 |
* Performs a deep copy on <i>other</i>.
|
|
|
4316 |
*/
|
|
|
4317 |
public getEmptyAWB_result(getEmptyAWB_result other) {
|
|
|
4318 |
if (other.isSetSuccess()) {
|
|
|
4319 |
this.success = other.success;
|
|
|
4320 |
}
|
| 648 |
chandransh |
4321 |
if (other.isSetSe()) {
|
|
|
4322 |
this.se = new LogisticsServiceException(other.se);
|
|
|
4323 |
}
|
| 412 |
ashish |
4324 |
}
|
|
|
4325 |
|
|
|
4326 |
public getEmptyAWB_result deepCopy() {
|
|
|
4327 |
return new getEmptyAWB_result(this);
|
|
|
4328 |
}
|
|
|
4329 |
|
| 3430 |
rajveer |
4330 |
@Override
|
|
|
4331 |
public void clear() {
|
|
|
4332 |
this.success = null;
|
|
|
4333 |
this.se = null;
|
| 412 |
ashish |
4334 |
}
|
|
|
4335 |
|
|
|
4336 |
public String getSuccess() {
|
|
|
4337 |
return this.success;
|
|
|
4338 |
}
|
|
|
4339 |
|
| 3430 |
rajveer |
4340 |
public void setSuccess(String success) {
|
| 412 |
ashish |
4341 |
this.success = success;
|
|
|
4342 |
}
|
|
|
4343 |
|
|
|
4344 |
public void unsetSuccess() {
|
|
|
4345 |
this.success = null;
|
|
|
4346 |
}
|
|
|
4347 |
|
| 3430 |
rajveer |
4348 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 412 |
ashish |
4349 |
public boolean isSetSuccess() {
|
|
|
4350 |
return this.success != null;
|
|
|
4351 |
}
|
|
|
4352 |
|
|
|
4353 |
public void setSuccessIsSet(boolean value) {
|
|
|
4354 |
if (!value) {
|
|
|
4355 |
this.success = null;
|
|
|
4356 |
}
|
|
|
4357 |
}
|
|
|
4358 |
|
| 648 |
chandransh |
4359 |
public LogisticsServiceException getSe() {
|
|
|
4360 |
return this.se;
|
| 412 |
ashish |
4361 |
}
|
|
|
4362 |
|
| 3430 |
rajveer |
4363 |
public void setSe(LogisticsServiceException se) {
|
| 648 |
chandransh |
4364 |
this.se = se;
|
| 412 |
ashish |
4365 |
}
|
|
|
4366 |
|
| 648 |
chandransh |
4367 |
public void unsetSe() {
|
|
|
4368 |
this.se = null;
|
| 412 |
ashish |
4369 |
}
|
|
|
4370 |
|
| 3430 |
rajveer |
4371 |
/** Returns true if field se is set (has been assigned a value) and false otherwise */
|
| 648 |
chandransh |
4372 |
public boolean isSetSe() {
|
|
|
4373 |
return this.se != null;
|
| 412 |
ashish |
4374 |
}
|
|
|
4375 |
|
| 648 |
chandransh |
4376 |
public void setSeIsSet(boolean value) {
|
| 412 |
ashish |
4377 |
if (!value) {
|
| 648 |
chandransh |
4378 |
this.se = null;
|
| 412 |
ashish |
4379 |
}
|
|
|
4380 |
}
|
|
|
4381 |
|
|
|
4382 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
4383 |
switch (field) {
|
|
|
4384 |
case SUCCESS:
|
|
|
4385 |
if (value == null) {
|
|
|
4386 |
unsetSuccess();
|
|
|
4387 |
} else {
|
| 648 |
chandransh |
4388 |
setSuccess((String)value);
|
| 412 |
ashish |
4389 |
}
|
|
|
4390 |
break;
|
|
|
4391 |
|
| 648 |
chandransh |
4392 |
case SE:
|
|
|
4393 |
if (value == null) {
|
|
|
4394 |
unsetSe();
|
|
|
4395 |
} else {
|
|
|
4396 |
setSe((LogisticsServiceException)value);
|
|
|
4397 |
}
|
|
|
4398 |
break;
|
|
|
4399 |
|
| 412 |
ashish |
4400 |
}
|
|
|
4401 |
}
|
|
|
4402 |
|
|
|
4403 |
public Object getFieldValue(_Fields field) {
|
|
|
4404 |
switch (field) {
|
|
|
4405 |
case SUCCESS:
|
|
|
4406 |
return getSuccess();
|
|
|
4407 |
|
| 648 |
chandransh |
4408 |
case SE:
|
|
|
4409 |
return getSe();
|
|
|
4410 |
|
| 412 |
ashish |
4411 |
}
|
|
|
4412 |
throw new IllegalStateException();
|
|
|
4413 |
}
|
|
|
4414 |
|
| 3430 |
rajveer |
4415 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
4416 |
public boolean isSet(_Fields field) {
|
|
|
4417 |
if (field == null) {
|
|
|
4418 |
throw new IllegalArgumentException();
|
|
|
4419 |
}
|
| 412 |
ashish |
4420 |
|
|
|
4421 |
switch (field) {
|
|
|
4422 |
case SUCCESS:
|
|
|
4423 |
return isSetSuccess();
|
| 648 |
chandransh |
4424 |
case SE:
|
|
|
4425 |
return isSetSe();
|
| 412 |
ashish |
4426 |
}
|
|
|
4427 |
throw new IllegalStateException();
|
|
|
4428 |
}
|
|
|
4429 |
|
|
|
4430 |
@Override
|
|
|
4431 |
public boolean equals(Object that) {
|
|
|
4432 |
if (that == null)
|
|
|
4433 |
return false;
|
| 648 |
chandransh |
4434 |
if (that instanceof getEmptyAWB_result)
|
|
|
4435 |
return this.equals((getEmptyAWB_result)that);
|
| 412 |
ashish |
4436 |
return false;
|
|
|
4437 |
}
|
|
|
4438 |
|
| 648 |
chandransh |
4439 |
public boolean equals(getEmptyAWB_result that) {
|
| 412 |
ashish |
4440 |
if (that == null)
|
|
|
4441 |
return false;
|
|
|
4442 |
|
|
|
4443 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
4444 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
4445 |
if (this_present_success || that_present_success) {
|
|
|
4446 |
if (!(this_present_success && that_present_success))
|
|
|
4447 |
return false;
|
|
|
4448 |
if (!this.success.equals(that.success))
|
|
|
4449 |
return false;
|
|
|
4450 |
}
|
|
|
4451 |
|
| 648 |
chandransh |
4452 |
boolean this_present_se = true && this.isSetSe();
|
|
|
4453 |
boolean that_present_se = true && that.isSetSe();
|
|
|
4454 |
if (this_present_se || that_present_se) {
|
|
|
4455 |
if (!(this_present_se && that_present_se))
|
|
|
4456 |
return false;
|
|
|
4457 |
if (!this.se.equals(that.se))
|
|
|
4458 |
return false;
|
|
|
4459 |
}
|
|
|
4460 |
|
| 412 |
ashish |
4461 |
return true;
|
|
|
4462 |
}
|
|
|
4463 |
|
|
|
4464 |
@Override
|
|
|
4465 |
public int hashCode() {
|
|
|
4466 |
return 0;
|
|
|
4467 |
}
|
|
|
4468 |
|
| 648 |
chandransh |
4469 |
public int compareTo(getEmptyAWB_result other) {
|
| 412 |
ashish |
4470 |
if (!getClass().equals(other.getClass())) {
|
|
|
4471 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
4472 |
}
|
|
|
4473 |
|
|
|
4474 |
int lastComparison = 0;
|
| 648 |
chandransh |
4475 |
getEmptyAWB_result typedOther = (getEmptyAWB_result)other;
|
| 412 |
ashish |
4476 |
|
| 3430 |
rajveer |
4477 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 412 |
ashish |
4478 |
if (lastComparison != 0) {
|
|
|
4479 |
return lastComparison;
|
|
|
4480 |
}
|
| 3430 |
rajveer |
4481 |
if (isSetSuccess()) {
|
|
|
4482 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
4483 |
if (lastComparison != 0) {
|
|
|
4484 |
return lastComparison;
|
|
|
4485 |
}
|
| 412 |
ashish |
4486 |
}
|
| 3430 |
rajveer |
4487 |
lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
|
| 412 |
ashish |
4488 |
if (lastComparison != 0) {
|
|
|
4489 |
return lastComparison;
|
|
|
4490 |
}
|
| 3430 |
rajveer |
4491 |
if (isSetSe()) {
|
|
|
4492 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
|
|
|
4493 |
if (lastComparison != 0) {
|
|
|
4494 |
return lastComparison;
|
|
|
4495 |
}
|
| 412 |
ashish |
4496 |
}
|
|
|
4497 |
return 0;
|
|
|
4498 |
}
|
|
|
4499 |
|
| 3430 |
rajveer |
4500 |
public _Fields fieldForId(int fieldId) {
|
|
|
4501 |
return _Fields.findByThriftId(fieldId);
|
|
|
4502 |
}
|
|
|
4503 |
|
|
|
4504 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
4505 |
org.apache.thrift.protocol.TField field;
|
| 412 |
ashish |
4506 |
iprot.readStructBegin();
|
|
|
4507 |
while (true)
|
|
|
4508 |
{
|
|
|
4509 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
4510 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 412 |
ashish |
4511 |
break;
|
|
|
4512 |
}
|
| 3430 |
rajveer |
4513 |
switch (field.id) {
|
|
|
4514 |
case 0: // SUCCESS
|
|
|
4515 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
4516 |
this.success = iprot.readString();
|
|
|
4517 |
} else {
|
|
|
4518 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4519 |
}
|
|
|
4520 |
break;
|
|
|
4521 |
case 1: // SE
|
|
|
4522 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
4523 |
this.se = new LogisticsServiceException();
|
|
|
4524 |
this.se.read(iprot);
|
|
|
4525 |
} else {
|
|
|
4526 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4527 |
}
|
|
|
4528 |
break;
|
|
|
4529 |
default:
|
|
|
4530 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 412 |
ashish |
4531 |
}
|
| 3430 |
rajveer |
4532 |
iprot.readFieldEnd();
|
| 412 |
ashish |
4533 |
}
|
|
|
4534 |
iprot.readStructEnd();
|
|
|
4535 |
validate();
|
|
|
4536 |
}
|
|
|
4537 |
|
| 3430 |
rajveer |
4538 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 412 |
ashish |
4539 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
4540 |
|
|
|
4541 |
if (this.isSetSuccess()) {
|
|
|
4542 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| 648 |
chandransh |
4543 |
oprot.writeString(this.success);
|
| 412 |
ashish |
4544 |
oprot.writeFieldEnd();
|
| 648 |
chandransh |
4545 |
} else if (this.isSetSe()) {
|
|
|
4546 |
oprot.writeFieldBegin(SE_FIELD_DESC);
|
|
|
4547 |
this.se.write(oprot);
|
|
|
4548 |
oprot.writeFieldEnd();
|
| 412 |
ashish |
4549 |
}
|
|
|
4550 |
oprot.writeFieldStop();
|
|
|
4551 |
oprot.writeStructEnd();
|
|
|
4552 |
}
|
|
|
4553 |
|
|
|
4554 |
@Override
|
|
|
4555 |
public String toString() {
|
| 648 |
chandransh |
4556 |
StringBuilder sb = new StringBuilder("getEmptyAWB_result(");
|
| 412 |
ashish |
4557 |
boolean first = true;
|
|
|
4558 |
|
|
|
4559 |
sb.append("success:");
|
|
|
4560 |
if (this.success == null) {
|
|
|
4561 |
sb.append("null");
|
|
|
4562 |
} else {
|
|
|
4563 |
sb.append(this.success);
|
|
|
4564 |
}
|
|
|
4565 |
first = false;
|
| 648 |
chandransh |
4566 |
if (!first) sb.append(", ");
|
|
|
4567 |
sb.append("se:");
|
|
|
4568 |
if (this.se == null) {
|
| 442 |
rajveer |
4569 |
sb.append("null");
|
|
|
4570 |
} else {
|
| 648 |
chandransh |
4571 |
sb.append(this.se);
|
| 442 |
rajveer |
4572 |
}
|
|
|
4573 |
first = false;
|
|
|
4574 |
sb.append(")");
|
|
|
4575 |
return sb.toString();
|
|
|
4576 |
}
|
|
|
4577 |
|
| 3430 |
rajveer |
4578 |
public void validate() throws org.apache.thrift.TException {
|
| 442 |
rajveer |
4579 |
// check for required fields
|
|
|
4580 |
}
|
|
|
4581 |
|
| 3430 |
rajveer |
4582 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
4583 |
try {
|
|
|
4584 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
4585 |
} catch (org.apache.thrift.TException te) {
|
|
|
4586 |
throw new java.io.IOException(te);
|
|
|
4587 |
}
|
|
|
4588 |
}
|
|
|
4589 |
|
|
|
4590 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
4591 |
try {
|
|
|
4592 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
4593 |
} catch (org.apache.thrift.TException te) {
|
|
|
4594 |
throw new java.io.IOException(te);
|
|
|
4595 |
}
|
|
|
4596 |
}
|
|
|
4597 |
|
| 442 |
rajveer |
4598 |
}
|
|
|
4599 |
|
| 3430 |
rajveer |
4600 |
public static class getShipmentInfo_args implements org.apache.thrift.TBase<getShipmentInfo_args, getShipmentInfo_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
4601 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_args");
|
| 442 |
rajveer |
4602 |
|
| 3430 |
rajveer |
4603 |
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);
|
|
|
4604 |
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 |
4605 |
|
| 3430 |
rajveer |
4606 |
private String awb; // required
|
|
|
4607 |
private long providerId; // required
|
| 442 |
rajveer |
4608 |
|
|
|
4609 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
4610 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 442 |
rajveer |
4611 |
AWB((short)1, "awb"),
|
| 648 |
chandransh |
4612 |
PROVIDER_ID((short)2, "providerId");
|
| 442 |
rajveer |
4613 |
|
|
|
4614 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
4615 |
|
|
|
4616 |
static {
|
|
|
4617 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
4618 |
byName.put(field.getFieldName(), field);
|
|
|
4619 |
}
|
|
|
4620 |
}
|
|
|
4621 |
|
|
|
4622 |
/**
|
|
|
4623 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
4624 |
*/
|
|
|
4625 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
4626 |
switch(fieldId) {
|
|
|
4627 |
case 1: // AWB
|
|
|
4628 |
return AWB;
|
|
|
4629 |
case 2: // PROVIDER_ID
|
|
|
4630 |
return PROVIDER_ID;
|
|
|
4631 |
default:
|
|
|
4632 |
return null;
|
|
|
4633 |
}
|
| 442 |
rajveer |
4634 |
}
|
|
|
4635 |
|
|
|
4636 |
/**
|
|
|
4637 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
4638 |
* if it is not found.
|
|
|
4639 |
*/
|
|
|
4640 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
4641 |
_Fields fields = findByThriftId(fieldId);
|
|
|
4642 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
4643 |
return fields;
|
|
|
4644 |
}
|
|
|
4645 |
|
|
|
4646 |
/**
|
|
|
4647 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
4648 |
*/
|
|
|
4649 |
public static _Fields findByName(String name) {
|
|
|
4650 |
return byName.get(name);
|
|
|
4651 |
}
|
|
|
4652 |
|
|
|
4653 |
private final short _thriftId;
|
|
|
4654 |
private final String _fieldName;
|
|
|
4655 |
|
|
|
4656 |
_Fields(short thriftId, String fieldName) {
|
|
|
4657 |
_thriftId = thriftId;
|
|
|
4658 |
_fieldName = fieldName;
|
|
|
4659 |
}
|
|
|
4660 |
|
|
|
4661 |
public short getThriftFieldId() {
|
|
|
4662 |
return _thriftId;
|
|
|
4663 |
}
|
|
|
4664 |
|
|
|
4665 |
public String getFieldName() {
|
|
|
4666 |
return _fieldName;
|
|
|
4667 |
}
|
|
|
4668 |
}
|
|
|
4669 |
|
|
|
4670 |
// isset id assignments
|
| 648 |
chandransh |
4671 |
private static final int __PROVIDERID_ISSET_ID = 0;
|
|
|
4672 |
private BitSet __isset_bit_vector = new BitSet(1);
|
| 442 |
rajveer |
4673 |
|
| 3430 |
rajveer |
4674 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 442 |
rajveer |
4675 |
static {
|
| 3430 |
rajveer |
4676 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
4677 |
tmpMap.put(_Fields.AWB, new org.apache.thrift.meta_data.FieldMetaData("awb", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4678 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
4679 |
tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
4680 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
4681 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
4682 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_args.class, metaDataMap);
|
| 442 |
rajveer |
4683 |
}
|
|
|
4684 |
|
| 648 |
chandransh |
4685 |
public getShipmentInfo_args() {
|
| 442 |
rajveer |
4686 |
}
|
|
|
4687 |
|
| 648 |
chandransh |
4688 |
public getShipmentInfo_args(
|
| 442 |
rajveer |
4689 |
String awb,
|
| 648 |
chandransh |
4690 |
long providerId)
|
| 442 |
rajveer |
4691 |
{
|
|
|
4692 |
this();
|
|
|
4693 |
this.awb = awb;
|
| 648 |
chandransh |
4694 |
this.providerId = providerId;
|
|
|
4695 |
setProviderIdIsSet(true);
|
| 442 |
rajveer |
4696 |
}
|
|
|
4697 |
|
|
|
4698 |
/**
|
|
|
4699 |
* Performs a deep copy on <i>other</i>.
|
|
|
4700 |
*/
|
| 648 |
chandransh |
4701 |
public getShipmentInfo_args(getShipmentInfo_args other) {
|
|
|
4702 |
__isset_bit_vector.clear();
|
|
|
4703 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 442 |
rajveer |
4704 |
if (other.isSetAwb()) {
|
|
|
4705 |
this.awb = other.awb;
|
|
|
4706 |
}
|
| 648 |
chandransh |
4707 |
this.providerId = other.providerId;
|
| 442 |
rajveer |
4708 |
}
|
|
|
4709 |
|
| 648 |
chandransh |
4710 |
public getShipmentInfo_args deepCopy() {
|
|
|
4711 |
return new getShipmentInfo_args(this);
|
| 442 |
rajveer |
4712 |
}
|
|
|
4713 |
|
| 3430 |
rajveer |
4714 |
@Override
|
|
|
4715 |
public void clear() {
|
|
|
4716 |
this.awb = null;
|
|
|
4717 |
setProviderIdIsSet(false);
|
|
|
4718 |
this.providerId = 0;
|
| 442 |
rajveer |
4719 |
}
|
|
|
4720 |
|
|
|
4721 |
public String getAwb() {
|
|
|
4722 |
return this.awb;
|
|
|
4723 |
}
|
|
|
4724 |
|
| 3430 |
rajveer |
4725 |
public void setAwb(String awb) {
|
| 442 |
rajveer |
4726 |
this.awb = awb;
|
|
|
4727 |
}
|
|
|
4728 |
|
|
|
4729 |
public void unsetAwb() {
|
|
|
4730 |
this.awb = null;
|
|
|
4731 |
}
|
|
|
4732 |
|
| 3430 |
rajveer |
4733 |
/** Returns true if field awb is set (has been assigned a value) and false otherwise */
|
| 442 |
rajveer |
4734 |
public boolean isSetAwb() {
|
|
|
4735 |
return this.awb != null;
|
|
|
4736 |
}
|
|
|
4737 |
|
|
|
4738 |
public void setAwbIsSet(boolean value) {
|
|
|
4739 |
if (!value) {
|
|
|
4740 |
this.awb = null;
|
|
|
4741 |
}
|
|
|
4742 |
}
|
|
|
4743 |
|
| 648 |
chandransh |
4744 |
public long getProviderId() {
|
|
|
4745 |
return this.providerId;
|
| 442 |
rajveer |
4746 |
}
|
|
|
4747 |
|
| 3430 |
rajveer |
4748 |
public void setProviderId(long providerId) {
|
| 648 |
chandransh |
4749 |
this.providerId = providerId;
|
|
|
4750 |
setProviderIdIsSet(true);
|
| 442 |
rajveer |
4751 |
}
|
|
|
4752 |
|
| 648 |
chandransh |
4753 |
public void unsetProviderId() {
|
|
|
4754 |
__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
|
| 442 |
rajveer |
4755 |
}
|
|
|
4756 |
|
| 3430 |
rajveer |
4757 |
/** Returns true if field providerId is set (has been assigned a value) and false otherwise */
|
| 648 |
chandransh |
4758 |
public boolean isSetProviderId() {
|
|
|
4759 |
return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
|
| 442 |
rajveer |
4760 |
}
|
|
|
4761 |
|
| 648 |
chandransh |
4762 |
public void setProviderIdIsSet(boolean value) {
|
|
|
4763 |
__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
|
| 442 |
rajveer |
4764 |
}
|
|
|
4765 |
|
|
|
4766 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
4767 |
switch (field) {
|
|
|
4768 |
case AWB:
|
|
|
4769 |
if (value == null) {
|
|
|
4770 |
unsetAwb();
|
|
|
4771 |
} else {
|
|
|
4772 |
setAwb((String)value);
|
|
|
4773 |
}
|
|
|
4774 |
break;
|
|
|
4775 |
|
| 648 |
chandransh |
4776 |
case PROVIDER_ID:
|
| 442 |
rajveer |
4777 |
if (value == null) {
|
| 648 |
chandransh |
4778 |
unsetProviderId();
|
| 442 |
rajveer |
4779 |
} else {
|
| 648 |
chandransh |
4780 |
setProviderId((Long)value);
|
| 442 |
rajveer |
4781 |
}
|
|
|
4782 |
break;
|
|
|
4783 |
|
|
|
4784 |
}
|
|
|
4785 |
}
|
|
|
4786 |
|
|
|
4787 |
public Object getFieldValue(_Fields field) {
|
|
|
4788 |
switch (field) {
|
|
|
4789 |
case AWB:
|
|
|
4790 |
return getAwb();
|
|
|
4791 |
|
| 648 |
chandransh |
4792 |
case PROVIDER_ID:
|
| 3430 |
rajveer |
4793 |
return Long.valueOf(getProviderId());
|
| 442 |
rajveer |
4794 |
|
|
|
4795 |
}
|
|
|
4796 |
throw new IllegalStateException();
|
|
|
4797 |
}
|
|
|
4798 |
|
| 3430 |
rajveer |
4799 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
4800 |
public boolean isSet(_Fields field) {
|
|
|
4801 |
if (field == null) {
|
|
|
4802 |
throw new IllegalArgumentException();
|
|
|
4803 |
}
|
| 442 |
rajveer |
4804 |
|
|
|
4805 |
switch (field) {
|
|
|
4806 |
case AWB:
|
|
|
4807 |
return isSetAwb();
|
| 648 |
chandransh |
4808 |
case PROVIDER_ID:
|
|
|
4809 |
return isSetProviderId();
|
| 442 |
rajveer |
4810 |
}
|
|
|
4811 |
throw new IllegalStateException();
|
|
|
4812 |
}
|
|
|
4813 |
|
|
|
4814 |
@Override
|
|
|
4815 |
public boolean equals(Object that) {
|
|
|
4816 |
if (that == null)
|
|
|
4817 |
return false;
|
| 648 |
chandransh |
4818 |
if (that instanceof getShipmentInfo_args)
|
|
|
4819 |
return this.equals((getShipmentInfo_args)that);
|
| 442 |
rajveer |
4820 |
return false;
|
|
|
4821 |
}
|
|
|
4822 |
|
| 648 |
chandransh |
4823 |
public boolean equals(getShipmentInfo_args that) {
|
| 442 |
rajveer |
4824 |
if (that == null)
|
|
|
4825 |
return false;
|
|
|
4826 |
|
|
|
4827 |
boolean this_present_awb = true && this.isSetAwb();
|
|
|
4828 |
boolean that_present_awb = true && that.isSetAwb();
|
|
|
4829 |
if (this_present_awb || that_present_awb) {
|
|
|
4830 |
if (!(this_present_awb && that_present_awb))
|
|
|
4831 |
return false;
|
|
|
4832 |
if (!this.awb.equals(that.awb))
|
|
|
4833 |
return false;
|
|
|
4834 |
}
|
|
|
4835 |
|
| 648 |
chandransh |
4836 |
boolean this_present_providerId = true;
|
|
|
4837 |
boolean that_present_providerId = true;
|
|
|
4838 |
if (this_present_providerId || that_present_providerId) {
|
|
|
4839 |
if (!(this_present_providerId && that_present_providerId))
|
| 442 |
rajveer |
4840 |
return false;
|
| 648 |
chandransh |
4841 |
if (this.providerId != that.providerId)
|
| 442 |
rajveer |
4842 |
return false;
|
|
|
4843 |
}
|
|
|
4844 |
|
|
|
4845 |
return true;
|
|
|
4846 |
}
|
|
|
4847 |
|
|
|
4848 |
@Override
|
|
|
4849 |
public int hashCode() {
|
|
|
4850 |
return 0;
|
|
|
4851 |
}
|
|
|
4852 |
|
| 648 |
chandransh |
4853 |
public int compareTo(getShipmentInfo_args other) {
|
| 442 |
rajveer |
4854 |
if (!getClass().equals(other.getClass())) {
|
|
|
4855 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
4856 |
}
|
|
|
4857 |
|
|
|
4858 |
int lastComparison = 0;
|
| 648 |
chandransh |
4859 |
getShipmentInfo_args typedOther = (getShipmentInfo_args)other;
|
| 442 |
rajveer |
4860 |
|
| 3430 |
rajveer |
4861 |
lastComparison = Boolean.valueOf(isSetAwb()).compareTo(typedOther.isSetAwb());
|
| 442 |
rajveer |
4862 |
if (lastComparison != 0) {
|
|
|
4863 |
return lastComparison;
|
|
|
4864 |
}
|
| 3430 |
rajveer |
4865 |
if (isSetAwb()) {
|
|
|
4866 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awb, typedOther.awb);
|
|
|
4867 |
if (lastComparison != 0) {
|
|
|
4868 |
return lastComparison;
|
|
|
4869 |
}
|
| 442 |
rajveer |
4870 |
}
|
| 3430 |
rajveer |
4871 |
lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
|
| 442 |
rajveer |
4872 |
if (lastComparison != 0) {
|
|
|
4873 |
return lastComparison;
|
|
|
4874 |
}
|
| 3430 |
rajveer |
4875 |
if (isSetProviderId()) {
|
|
|
4876 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
|
|
|
4877 |
if (lastComparison != 0) {
|
|
|
4878 |
return lastComparison;
|
|
|
4879 |
}
|
| 442 |
rajveer |
4880 |
}
|
|
|
4881 |
return 0;
|
|
|
4882 |
}
|
|
|
4883 |
|
| 3430 |
rajveer |
4884 |
public _Fields fieldForId(int fieldId) {
|
|
|
4885 |
return _Fields.findByThriftId(fieldId);
|
|
|
4886 |
}
|
|
|
4887 |
|
|
|
4888 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
4889 |
org.apache.thrift.protocol.TField field;
|
| 442 |
rajveer |
4890 |
iprot.readStructBegin();
|
|
|
4891 |
while (true)
|
|
|
4892 |
{
|
|
|
4893 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
4894 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 442 |
rajveer |
4895 |
break;
|
|
|
4896 |
}
|
| 3430 |
rajveer |
4897 |
switch (field.id) {
|
|
|
4898 |
case 1: // AWB
|
|
|
4899 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
4900 |
this.awb = iprot.readString();
|
|
|
4901 |
} else {
|
|
|
4902 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4903 |
}
|
|
|
4904 |
break;
|
|
|
4905 |
case 2: // PROVIDER_ID
|
|
|
4906 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
4907 |
this.providerId = iprot.readI64();
|
|
|
4908 |
setProviderIdIsSet(true);
|
|
|
4909 |
} else {
|
|
|
4910 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
4911 |
}
|
|
|
4912 |
break;
|
|
|
4913 |
default:
|
|
|
4914 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 442 |
rajveer |
4915 |
}
|
| 3430 |
rajveer |
4916 |
iprot.readFieldEnd();
|
| 442 |
rajveer |
4917 |
}
|
|
|
4918 |
iprot.readStructEnd();
|
|
|
4919 |
validate();
|
|
|
4920 |
}
|
|
|
4921 |
|
| 3430 |
rajveer |
4922 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 442 |
rajveer |
4923 |
validate();
|
|
|
4924 |
|
|
|
4925 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
4926 |
if (this.awb != null) {
|
|
|
4927 |
oprot.writeFieldBegin(AWB_FIELD_DESC);
|
|
|
4928 |
oprot.writeString(this.awb);
|
|
|
4929 |
oprot.writeFieldEnd();
|
|
|
4930 |
}
|
| 648 |
chandransh |
4931 |
oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
|
|
|
4932 |
oprot.writeI64(this.providerId);
|
|
|
4933 |
oprot.writeFieldEnd();
|
| 442 |
rajveer |
4934 |
oprot.writeFieldStop();
|
|
|
4935 |
oprot.writeStructEnd();
|
|
|
4936 |
}
|
|
|
4937 |
|
|
|
4938 |
@Override
|
|
|
4939 |
public String toString() {
|
| 648 |
chandransh |
4940 |
StringBuilder sb = new StringBuilder("getShipmentInfo_args(");
|
| 442 |
rajveer |
4941 |
boolean first = true;
|
|
|
4942 |
|
|
|
4943 |
sb.append("awb:");
|
|
|
4944 |
if (this.awb == null) {
|
|
|
4945 |
sb.append("null");
|
|
|
4946 |
} else {
|
|
|
4947 |
sb.append(this.awb);
|
|
|
4948 |
}
|
|
|
4949 |
first = false;
|
|
|
4950 |
if (!first) sb.append(", ");
|
| 648 |
chandransh |
4951 |
sb.append("providerId:");
|
|
|
4952 |
sb.append(this.providerId);
|
| 442 |
rajveer |
4953 |
first = false;
|
|
|
4954 |
sb.append(")");
|
|
|
4955 |
return sb.toString();
|
|
|
4956 |
}
|
|
|
4957 |
|
| 3430 |
rajveer |
4958 |
public void validate() throws org.apache.thrift.TException {
|
| 442 |
rajveer |
4959 |
// check for required fields
|
|
|
4960 |
}
|
|
|
4961 |
|
| 3430 |
rajveer |
4962 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
4963 |
try {
|
|
|
4964 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
4965 |
} catch (org.apache.thrift.TException te) {
|
|
|
4966 |
throw new java.io.IOException(te);
|
|
|
4967 |
}
|
|
|
4968 |
}
|
|
|
4969 |
|
|
|
4970 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
4971 |
try {
|
|
|
4972 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
4973 |
} catch (org.apache.thrift.TException te) {
|
|
|
4974 |
throw new java.io.IOException(te);
|
|
|
4975 |
}
|
|
|
4976 |
}
|
|
|
4977 |
|
| 442 |
rajveer |
4978 |
}
|
|
|
4979 |
|
| 3430 |
rajveer |
4980 |
public static class getShipmentInfo_result implements org.apache.thrift.TBase<getShipmentInfo_result, getShipmentInfo_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
4981 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_result");
|
| 412 |
ashish |
4982 |
|
| 3430 |
rajveer |
4983 |
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);
|
|
|
4984 |
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 |
4985 |
|
| 3430 |
rajveer |
4986 |
private List<AwbUpdate> success; // required
|
|
|
4987 |
private LogisticsServiceException se; // required
|
| 412 |
ashish |
4988 |
|
|
|
4989 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
4990 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 648 |
chandransh |
4991 |
SUCCESS((short)0, "success"),
|
|
|
4992 |
SE((short)1, "se");
|
| 412 |
ashish |
4993 |
|
|
|
4994 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
4995 |
|
|
|
4996 |
static {
|
|
|
4997 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
4998 |
byName.put(field.getFieldName(), field);
|
|
|
4999 |
}
|
|
|
5000 |
}
|
|
|
5001 |
|
|
|
5002 |
/**
|
|
|
5003 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
5004 |
*/
|
|
|
5005 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
5006 |
switch(fieldId) {
|
|
|
5007 |
case 0: // SUCCESS
|
|
|
5008 |
return SUCCESS;
|
|
|
5009 |
case 1: // SE
|
|
|
5010 |
return SE;
|
|
|
5011 |
default:
|
|
|
5012 |
return null;
|
|
|
5013 |
}
|
| 412 |
ashish |
5014 |
}
|
|
|
5015 |
|
|
|
5016 |
/**
|
|
|
5017 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
5018 |
* if it is not found.
|
|
|
5019 |
*/
|
|
|
5020 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
5021 |
_Fields fields = findByThriftId(fieldId);
|
|
|
5022 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
5023 |
return fields;
|
|
|
5024 |
}
|
|
|
5025 |
|
|
|
5026 |
/**
|
|
|
5027 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
5028 |
*/
|
|
|
5029 |
public static _Fields findByName(String name) {
|
|
|
5030 |
return byName.get(name);
|
|
|
5031 |
}
|
|
|
5032 |
|
|
|
5033 |
private final short _thriftId;
|
|
|
5034 |
private final String _fieldName;
|
|
|
5035 |
|
|
|
5036 |
_Fields(short thriftId, String fieldName) {
|
|
|
5037 |
_thriftId = thriftId;
|
|
|
5038 |
_fieldName = fieldName;
|
|
|
5039 |
}
|
|
|
5040 |
|
|
|
5041 |
public short getThriftFieldId() {
|
|
|
5042 |
return _thriftId;
|
|
|
5043 |
}
|
|
|
5044 |
|
|
|
5045 |
public String getFieldName() {
|
|
|
5046 |
return _fieldName;
|
|
|
5047 |
}
|
|
|
5048 |
}
|
|
|
5049 |
|
|
|
5050 |
// isset id assignments
|
|
|
5051 |
|
| 3430 |
rajveer |
5052 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 412 |
ashish |
5053 |
static {
|
| 3430 |
rajveer |
5054 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
5055 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5056 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
5057 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AwbUpdate.class))));
|
|
|
5058 |
tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5059 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
5060 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
5061 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_result.class, metaDataMap);
|
| 412 |
ashish |
5062 |
}
|
|
|
5063 |
|
|
|
5064 |
public getShipmentInfo_result() {
|
|
|
5065 |
}
|
|
|
5066 |
|
|
|
5067 |
public getShipmentInfo_result(
|
| 648 |
chandransh |
5068 |
List<AwbUpdate> success,
|
|
|
5069 |
LogisticsServiceException se)
|
| 412 |
ashish |
5070 |
{
|
|
|
5071 |
this();
|
|
|
5072 |
this.success = success;
|
| 648 |
chandransh |
5073 |
this.se = se;
|
| 412 |
ashish |
5074 |
}
|
|
|
5075 |
|
|
|
5076 |
/**
|
|
|
5077 |
* Performs a deep copy on <i>other</i>.
|
|
|
5078 |
*/
|
|
|
5079 |
public getShipmentInfo_result(getShipmentInfo_result other) {
|
|
|
5080 |
if (other.isSetSuccess()) {
|
| 648 |
chandransh |
5081 |
List<AwbUpdate> __this__success = new ArrayList<AwbUpdate>();
|
|
|
5082 |
for (AwbUpdate other_element : other.success) {
|
|
|
5083 |
__this__success.add(new AwbUpdate(other_element));
|
|
|
5084 |
}
|
|
|
5085 |
this.success = __this__success;
|
| 412 |
ashish |
5086 |
}
|
| 648 |
chandransh |
5087 |
if (other.isSetSe()) {
|
|
|
5088 |
this.se = new LogisticsServiceException(other.se);
|
|
|
5089 |
}
|
| 412 |
ashish |
5090 |
}
|
|
|
5091 |
|
|
|
5092 |
public getShipmentInfo_result deepCopy() {
|
|
|
5093 |
return new getShipmentInfo_result(this);
|
|
|
5094 |
}
|
|
|
5095 |
|
| 3430 |
rajveer |
5096 |
@Override
|
|
|
5097 |
public void clear() {
|
|
|
5098 |
this.success = null;
|
|
|
5099 |
this.se = null;
|
| 412 |
ashish |
5100 |
}
|
|
|
5101 |
|
|
|
5102 |
public int getSuccessSize() {
|
|
|
5103 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
5104 |
}
|
|
|
5105 |
|
| 648 |
chandransh |
5106 |
public java.util.Iterator<AwbUpdate> getSuccessIterator() {
|
| 412 |
ashish |
5107 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
5108 |
}
|
|
|
5109 |
|
| 648 |
chandransh |
5110 |
public void addToSuccess(AwbUpdate elem) {
|
| 412 |
ashish |
5111 |
if (this.success == null) {
|
| 648 |
chandransh |
5112 |
this.success = new ArrayList<AwbUpdate>();
|
| 412 |
ashish |
5113 |
}
|
|
|
5114 |
this.success.add(elem);
|
|
|
5115 |
}
|
|
|
5116 |
|
| 648 |
chandransh |
5117 |
public List<AwbUpdate> getSuccess() {
|
| 412 |
ashish |
5118 |
return this.success;
|
|
|
5119 |
}
|
|
|
5120 |
|
| 3430 |
rajveer |
5121 |
public void setSuccess(List<AwbUpdate> success) {
|
| 412 |
ashish |
5122 |
this.success = success;
|
|
|
5123 |
}
|
|
|
5124 |
|
|
|
5125 |
public void unsetSuccess() {
|
|
|
5126 |
this.success = null;
|
|
|
5127 |
}
|
|
|
5128 |
|
| 3430 |
rajveer |
5129 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 412 |
ashish |
5130 |
public boolean isSetSuccess() {
|
|
|
5131 |
return this.success != null;
|
|
|
5132 |
}
|
|
|
5133 |
|
|
|
5134 |
public void setSuccessIsSet(boolean value) {
|
|
|
5135 |
if (!value) {
|
|
|
5136 |
this.success = null;
|
|
|
5137 |
}
|
|
|
5138 |
}
|
|
|
5139 |
|
| 648 |
chandransh |
5140 |
public LogisticsServiceException getSe() {
|
|
|
5141 |
return this.se;
|
| 412 |
ashish |
5142 |
}
|
|
|
5143 |
|
| 3430 |
rajveer |
5144 |
public void setSe(LogisticsServiceException se) {
|
| 648 |
chandransh |
5145 |
this.se = se;
|
| 412 |
ashish |
5146 |
}
|
|
|
5147 |
|
| 648 |
chandransh |
5148 |
public void unsetSe() {
|
|
|
5149 |
this.se = null;
|
| 412 |
ashish |
5150 |
}
|
|
|
5151 |
|
| 3430 |
rajveer |
5152 |
/** Returns true if field se is set (has been assigned a value) and false otherwise */
|
| 648 |
chandransh |
5153 |
public boolean isSetSe() {
|
|
|
5154 |
return this.se != null;
|
| 412 |
ashish |
5155 |
}
|
|
|
5156 |
|
| 648 |
chandransh |
5157 |
public void setSeIsSet(boolean value) {
|
|
|
5158 |
if (!value) {
|
|
|
5159 |
this.se = null;
|
| 412 |
ashish |
5160 |
}
|
|
|
5161 |
}
|
|
|
5162 |
|
|
|
5163 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
5164 |
switch (field) {
|
| 648 |
chandransh |
5165 |
case SUCCESS:
|
| 412 |
ashish |
5166 |
if (value == null) {
|
| 648 |
chandransh |
5167 |
unsetSuccess();
|
| 412 |
ashish |
5168 |
} else {
|
| 648 |
chandransh |
5169 |
setSuccess((List<AwbUpdate>)value);
|
| 412 |
ashish |
5170 |
}
|
|
|
5171 |
break;
|
|
|
5172 |
|
| 648 |
chandransh |
5173 |
case SE:
|
| 412 |
ashish |
5174 |
if (value == null) {
|
| 648 |
chandransh |
5175 |
unsetSe();
|
| 412 |
ashish |
5176 |
} else {
|
| 648 |
chandransh |
5177 |
setSe((LogisticsServiceException)value);
|
| 412 |
ashish |
5178 |
}
|
|
|
5179 |
break;
|
|
|
5180 |
|
|
|
5181 |
}
|
|
|
5182 |
}
|
|
|
5183 |
|
|
|
5184 |
public Object getFieldValue(_Fields field) {
|
|
|
5185 |
switch (field) {
|
| 648 |
chandransh |
5186 |
case SUCCESS:
|
|
|
5187 |
return getSuccess();
|
| 412 |
ashish |
5188 |
|
| 648 |
chandransh |
5189 |
case SE:
|
|
|
5190 |
return getSe();
|
| 412 |
ashish |
5191 |
|
|
|
5192 |
}
|
|
|
5193 |
throw new IllegalStateException();
|
|
|
5194 |
}
|
|
|
5195 |
|
| 3430 |
rajveer |
5196 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
5197 |
public boolean isSet(_Fields field) {
|
|
|
5198 |
if (field == null) {
|
|
|
5199 |
throw new IllegalArgumentException();
|
|
|
5200 |
}
|
| 412 |
ashish |
5201 |
|
|
|
5202 |
switch (field) {
|
| 648 |
chandransh |
5203 |
case SUCCESS:
|
|
|
5204 |
return isSetSuccess();
|
|
|
5205 |
case SE:
|
|
|
5206 |
return isSetSe();
|
| 412 |
ashish |
5207 |
}
|
|
|
5208 |
throw new IllegalStateException();
|
|
|
5209 |
}
|
|
|
5210 |
|
|
|
5211 |
@Override
|
|
|
5212 |
public boolean equals(Object that) {
|
|
|
5213 |
if (that == null)
|
|
|
5214 |
return false;
|
| 648 |
chandransh |
5215 |
if (that instanceof getShipmentInfo_result)
|
|
|
5216 |
return this.equals((getShipmentInfo_result)that);
|
| 412 |
ashish |
5217 |
return false;
|
|
|
5218 |
}
|
|
|
5219 |
|
| 648 |
chandransh |
5220 |
public boolean equals(getShipmentInfo_result that) {
|
| 412 |
ashish |
5221 |
if (that == null)
|
|
|
5222 |
return false;
|
|
|
5223 |
|
| 648 |
chandransh |
5224 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
5225 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
5226 |
if (this_present_success || that_present_success) {
|
|
|
5227 |
if (!(this_present_success && that_present_success))
|
| 412 |
ashish |
5228 |
return false;
|
| 648 |
chandransh |
5229 |
if (!this.success.equals(that.success))
|
| 412 |
ashish |
5230 |
return false;
|
|
|
5231 |
}
|
|
|
5232 |
|
| 648 |
chandransh |
5233 |
boolean this_present_se = true && this.isSetSe();
|
|
|
5234 |
boolean that_present_se = true && that.isSetSe();
|
|
|
5235 |
if (this_present_se || that_present_se) {
|
|
|
5236 |
if (!(this_present_se && that_present_se))
|
| 412 |
ashish |
5237 |
return false;
|
| 648 |
chandransh |
5238 |
if (!this.se.equals(that.se))
|
| 412 |
ashish |
5239 |
return false;
|
|
|
5240 |
}
|
|
|
5241 |
|
|
|
5242 |
return true;
|
|
|
5243 |
}
|
|
|
5244 |
|
|
|
5245 |
@Override
|
|
|
5246 |
public int hashCode() {
|
|
|
5247 |
return 0;
|
|
|
5248 |
}
|
|
|
5249 |
|
| 648 |
chandransh |
5250 |
public int compareTo(getShipmentInfo_result other) {
|
| 412 |
ashish |
5251 |
if (!getClass().equals(other.getClass())) {
|
|
|
5252 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
5253 |
}
|
|
|
5254 |
|
|
|
5255 |
int lastComparison = 0;
|
| 648 |
chandransh |
5256 |
getShipmentInfo_result typedOther = (getShipmentInfo_result)other;
|
| 412 |
ashish |
5257 |
|
| 3430 |
rajveer |
5258 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 412 |
ashish |
5259 |
if (lastComparison != 0) {
|
|
|
5260 |
return lastComparison;
|
|
|
5261 |
}
|
| 3430 |
rajveer |
5262 |
if (isSetSuccess()) {
|
|
|
5263 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
5264 |
if (lastComparison != 0) {
|
|
|
5265 |
return lastComparison;
|
|
|
5266 |
}
|
| 412 |
ashish |
5267 |
}
|
| 3430 |
rajveer |
5268 |
lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
|
| 412 |
ashish |
5269 |
if (lastComparison != 0) {
|
|
|
5270 |
return lastComparison;
|
|
|
5271 |
}
|
| 3430 |
rajveer |
5272 |
if (isSetSe()) {
|
|
|
5273 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
|
|
|
5274 |
if (lastComparison != 0) {
|
|
|
5275 |
return lastComparison;
|
|
|
5276 |
}
|
| 412 |
ashish |
5277 |
}
|
|
|
5278 |
return 0;
|
|
|
5279 |
}
|
|
|
5280 |
|
| 3430 |
rajveer |
5281 |
public _Fields fieldForId(int fieldId) {
|
|
|
5282 |
return _Fields.findByThriftId(fieldId);
|
|
|
5283 |
}
|
|
|
5284 |
|
|
|
5285 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
5286 |
org.apache.thrift.protocol.TField field;
|
| 412 |
ashish |
5287 |
iprot.readStructBegin();
|
|
|
5288 |
while (true)
|
|
|
5289 |
{
|
|
|
5290 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
5291 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 412 |
ashish |
5292 |
break;
|
|
|
5293 |
}
|
| 3430 |
rajveer |
5294 |
switch (field.id) {
|
|
|
5295 |
case 0: // SUCCESS
|
|
|
5296 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
5297 |
{
|
|
|
5298 |
org.apache.thrift.protocol.TList _list9 = iprot.readListBegin();
|
|
|
5299 |
this.success = new ArrayList<AwbUpdate>(_list9.size);
|
|
|
5300 |
for (int _i10 = 0; _i10 < _list9.size; ++_i10)
|
| 412 |
ashish |
5301 |
{
|
| 3430 |
rajveer |
5302 |
AwbUpdate _elem11; // required
|
|
|
5303 |
_elem11 = new AwbUpdate();
|
|
|
5304 |
_elem11.read(iprot);
|
|
|
5305 |
this.success.add(_elem11);
|
| 412 |
ashish |
5306 |
}
|
| 3430 |
rajveer |
5307 |
iprot.readListEnd();
|
| 412 |
ashish |
5308 |
}
|
| 3430 |
rajveer |
5309 |
} else {
|
|
|
5310 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5311 |
}
|
|
|
5312 |
break;
|
|
|
5313 |
case 1: // SE
|
|
|
5314 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
5315 |
this.se = new LogisticsServiceException();
|
|
|
5316 |
this.se.read(iprot);
|
|
|
5317 |
} else {
|
|
|
5318 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5319 |
}
|
|
|
5320 |
break;
|
|
|
5321 |
default:
|
|
|
5322 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 412 |
ashish |
5323 |
}
|
| 3430 |
rajveer |
5324 |
iprot.readFieldEnd();
|
| 412 |
ashish |
5325 |
}
|
|
|
5326 |
iprot.readStructEnd();
|
|
|
5327 |
validate();
|
|
|
5328 |
}
|
|
|
5329 |
|
| 3430 |
rajveer |
5330 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 412 |
ashish |
5331 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
5332 |
|
|
|
5333 |
if (this.isSetSuccess()) {
|
|
|
5334 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
5335 |
{
|
| 3430 |
rajveer |
5336 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
| 3044 |
chandransh |
5337 |
for (AwbUpdate _iter12 : this.success)
|
| 412 |
ashish |
5338 |
{
|
| 3044 |
chandransh |
5339 |
_iter12.write(oprot);
|
| 412 |
ashish |
5340 |
}
|
|
|
5341 |
oprot.writeListEnd();
|
|
|
5342 |
}
|
|
|
5343 |
oprot.writeFieldEnd();
|
| 648 |
chandransh |
5344 |
} else if (this.isSetSe()) {
|
|
|
5345 |
oprot.writeFieldBegin(SE_FIELD_DESC);
|
|
|
5346 |
this.se.write(oprot);
|
|
|
5347 |
oprot.writeFieldEnd();
|
| 412 |
ashish |
5348 |
}
|
|
|
5349 |
oprot.writeFieldStop();
|
|
|
5350 |
oprot.writeStructEnd();
|
|
|
5351 |
}
|
|
|
5352 |
|
|
|
5353 |
@Override
|
|
|
5354 |
public String toString() {
|
| 648 |
chandransh |
5355 |
StringBuilder sb = new StringBuilder("getShipmentInfo_result(");
|
| 412 |
ashish |
5356 |
boolean first = true;
|
|
|
5357 |
|
|
|
5358 |
sb.append("success:");
|
|
|
5359 |
if (this.success == null) {
|
|
|
5360 |
sb.append("null");
|
|
|
5361 |
} else {
|
|
|
5362 |
sb.append(this.success);
|
|
|
5363 |
}
|
|
|
5364 |
first = false;
|
| 648 |
chandransh |
5365 |
if (!first) sb.append(", ");
|
|
|
5366 |
sb.append("se:");
|
|
|
5367 |
if (this.se == null) {
|
|
|
5368 |
sb.append("null");
|
|
|
5369 |
} else {
|
|
|
5370 |
sb.append(this.se);
|
|
|
5371 |
}
|
|
|
5372 |
first = false;
|
| 412 |
ashish |
5373 |
sb.append(")");
|
|
|
5374 |
return sb.toString();
|
|
|
5375 |
}
|
|
|
5376 |
|
| 3430 |
rajveer |
5377 |
public void validate() throws org.apache.thrift.TException {
|
| 412 |
ashish |
5378 |
// check for required fields
|
|
|
5379 |
}
|
|
|
5380 |
|
| 3430 |
rajveer |
5381 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
5382 |
try {
|
|
|
5383 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
5384 |
} catch (org.apache.thrift.TException te) {
|
|
|
5385 |
throw new java.io.IOException(te);
|
|
|
5386 |
}
|
|
|
5387 |
}
|
|
|
5388 |
|
|
|
5389 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
5390 |
try {
|
|
|
5391 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
5392 |
} catch (org.apache.thrift.TException te) {
|
|
|
5393 |
throw new java.io.IOException(te);
|
|
|
5394 |
}
|
|
|
5395 |
}
|
|
|
5396 |
|
| 412 |
ashish |
5397 |
}
|
|
|
5398 |
|
| 3430 |
rajveer |
5399 |
public static class getDestinationCode_args implements org.apache.thrift.TBase<getDestinationCode_args, getDestinationCode_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
5400 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_args");
|
| 730 |
chandransh |
5401 |
|
| 3430 |
rajveer |
5402 |
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);
|
|
|
5403 |
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 |
5404 |
|
| 3430 |
rajveer |
5405 |
private long providerId; // required
|
|
|
5406 |
private String pinCode; // required
|
| 730 |
chandransh |
5407 |
|
|
|
5408 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
5409 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 730 |
chandransh |
5410 |
PROVIDER_ID((short)1, "providerId"),
|
|
|
5411 |
PIN_CODE((short)2, "pinCode");
|
|
|
5412 |
|
|
|
5413 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
5414 |
|
|
|
5415 |
static {
|
|
|
5416 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
5417 |
byName.put(field.getFieldName(), field);
|
|
|
5418 |
}
|
|
|
5419 |
}
|
|
|
5420 |
|
|
|
5421 |
/**
|
|
|
5422 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
5423 |
*/
|
|
|
5424 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
5425 |
switch(fieldId) {
|
|
|
5426 |
case 1: // PROVIDER_ID
|
|
|
5427 |
return PROVIDER_ID;
|
|
|
5428 |
case 2: // PIN_CODE
|
|
|
5429 |
return PIN_CODE;
|
|
|
5430 |
default:
|
|
|
5431 |
return null;
|
|
|
5432 |
}
|
| 730 |
chandransh |
5433 |
}
|
|
|
5434 |
|
|
|
5435 |
/**
|
|
|
5436 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
5437 |
* if it is not found.
|
|
|
5438 |
*/
|
|
|
5439 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
5440 |
_Fields fields = findByThriftId(fieldId);
|
|
|
5441 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
5442 |
return fields;
|
|
|
5443 |
}
|
|
|
5444 |
|
|
|
5445 |
/**
|
|
|
5446 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
5447 |
*/
|
|
|
5448 |
public static _Fields findByName(String name) {
|
|
|
5449 |
return byName.get(name);
|
|
|
5450 |
}
|
|
|
5451 |
|
|
|
5452 |
private final short _thriftId;
|
|
|
5453 |
private final String _fieldName;
|
|
|
5454 |
|
|
|
5455 |
_Fields(short thriftId, String fieldName) {
|
|
|
5456 |
_thriftId = thriftId;
|
|
|
5457 |
_fieldName = fieldName;
|
|
|
5458 |
}
|
|
|
5459 |
|
|
|
5460 |
public short getThriftFieldId() {
|
|
|
5461 |
return _thriftId;
|
|
|
5462 |
}
|
|
|
5463 |
|
|
|
5464 |
public String getFieldName() {
|
|
|
5465 |
return _fieldName;
|
|
|
5466 |
}
|
|
|
5467 |
}
|
|
|
5468 |
|
|
|
5469 |
// isset id assignments
|
|
|
5470 |
private static final int __PROVIDERID_ISSET_ID = 0;
|
|
|
5471 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
5472 |
|
| 3430 |
rajveer |
5473 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 730 |
chandransh |
5474 |
static {
|
| 3430 |
rajveer |
5475 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
5476 |
tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5477 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
5478 |
tmpMap.put(_Fields.PIN_CODE, new org.apache.thrift.meta_data.FieldMetaData("pinCode", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5479 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
5480 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
5481 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_args.class, metaDataMap);
|
| 730 |
chandransh |
5482 |
}
|
|
|
5483 |
|
|
|
5484 |
public getDestinationCode_args() {
|
|
|
5485 |
}
|
|
|
5486 |
|
|
|
5487 |
public getDestinationCode_args(
|
|
|
5488 |
long providerId,
|
|
|
5489 |
String pinCode)
|
|
|
5490 |
{
|
|
|
5491 |
this();
|
|
|
5492 |
this.providerId = providerId;
|
|
|
5493 |
setProviderIdIsSet(true);
|
|
|
5494 |
this.pinCode = pinCode;
|
|
|
5495 |
}
|
|
|
5496 |
|
|
|
5497 |
/**
|
|
|
5498 |
* Performs a deep copy on <i>other</i>.
|
|
|
5499 |
*/
|
|
|
5500 |
public getDestinationCode_args(getDestinationCode_args other) {
|
|
|
5501 |
__isset_bit_vector.clear();
|
|
|
5502 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
5503 |
this.providerId = other.providerId;
|
|
|
5504 |
if (other.isSetPinCode()) {
|
|
|
5505 |
this.pinCode = other.pinCode;
|
|
|
5506 |
}
|
|
|
5507 |
}
|
|
|
5508 |
|
|
|
5509 |
public getDestinationCode_args deepCopy() {
|
|
|
5510 |
return new getDestinationCode_args(this);
|
|
|
5511 |
}
|
|
|
5512 |
|
| 3430 |
rajveer |
5513 |
@Override
|
|
|
5514 |
public void clear() {
|
|
|
5515 |
setProviderIdIsSet(false);
|
|
|
5516 |
this.providerId = 0;
|
|
|
5517 |
this.pinCode = null;
|
| 730 |
chandransh |
5518 |
}
|
|
|
5519 |
|
|
|
5520 |
public long getProviderId() {
|
|
|
5521 |
return this.providerId;
|
|
|
5522 |
}
|
|
|
5523 |
|
| 3430 |
rajveer |
5524 |
public void setProviderId(long providerId) {
|
| 730 |
chandransh |
5525 |
this.providerId = providerId;
|
|
|
5526 |
setProviderIdIsSet(true);
|
|
|
5527 |
}
|
|
|
5528 |
|
|
|
5529 |
public void unsetProviderId() {
|
|
|
5530 |
__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
|
|
|
5531 |
}
|
|
|
5532 |
|
| 3430 |
rajveer |
5533 |
/** Returns true if field providerId is set (has been assigned a value) and false otherwise */
|
| 730 |
chandransh |
5534 |
public boolean isSetProviderId() {
|
|
|
5535 |
return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
|
|
|
5536 |
}
|
|
|
5537 |
|
|
|
5538 |
public void setProviderIdIsSet(boolean value) {
|
|
|
5539 |
__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
|
|
|
5540 |
}
|
|
|
5541 |
|
|
|
5542 |
public String getPinCode() {
|
|
|
5543 |
return this.pinCode;
|
|
|
5544 |
}
|
|
|
5545 |
|
| 3430 |
rajveer |
5546 |
public void setPinCode(String pinCode) {
|
| 730 |
chandransh |
5547 |
this.pinCode = pinCode;
|
|
|
5548 |
}
|
|
|
5549 |
|
|
|
5550 |
public void unsetPinCode() {
|
|
|
5551 |
this.pinCode = null;
|
|
|
5552 |
}
|
|
|
5553 |
|
| 3430 |
rajveer |
5554 |
/** Returns true if field pinCode is set (has been assigned a value) and false otherwise */
|
| 730 |
chandransh |
5555 |
public boolean isSetPinCode() {
|
|
|
5556 |
return this.pinCode != null;
|
|
|
5557 |
}
|
|
|
5558 |
|
|
|
5559 |
public void setPinCodeIsSet(boolean value) {
|
|
|
5560 |
if (!value) {
|
|
|
5561 |
this.pinCode = null;
|
|
|
5562 |
}
|
|
|
5563 |
}
|
|
|
5564 |
|
|
|
5565 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
5566 |
switch (field) {
|
|
|
5567 |
case PROVIDER_ID:
|
|
|
5568 |
if (value == null) {
|
|
|
5569 |
unsetProviderId();
|
|
|
5570 |
} else {
|
|
|
5571 |
setProviderId((Long)value);
|
|
|
5572 |
}
|
|
|
5573 |
break;
|
|
|
5574 |
|
|
|
5575 |
case PIN_CODE:
|
|
|
5576 |
if (value == null) {
|
|
|
5577 |
unsetPinCode();
|
|
|
5578 |
} else {
|
|
|
5579 |
setPinCode((String)value);
|
|
|
5580 |
}
|
|
|
5581 |
break;
|
|
|
5582 |
|
|
|
5583 |
}
|
|
|
5584 |
}
|
|
|
5585 |
|
|
|
5586 |
public Object getFieldValue(_Fields field) {
|
|
|
5587 |
switch (field) {
|
|
|
5588 |
case PROVIDER_ID:
|
| 3430 |
rajveer |
5589 |
return Long.valueOf(getProviderId());
|
| 730 |
chandransh |
5590 |
|
|
|
5591 |
case PIN_CODE:
|
|
|
5592 |
return getPinCode();
|
|
|
5593 |
|
|
|
5594 |
}
|
|
|
5595 |
throw new IllegalStateException();
|
|
|
5596 |
}
|
|
|
5597 |
|
| 3430 |
rajveer |
5598 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
5599 |
public boolean isSet(_Fields field) {
|
|
|
5600 |
if (field == null) {
|
|
|
5601 |
throw new IllegalArgumentException();
|
|
|
5602 |
}
|
| 730 |
chandransh |
5603 |
|
|
|
5604 |
switch (field) {
|
|
|
5605 |
case PROVIDER_ID:
|
|
|
5606 |
return isSetProviderId();
|
|
|
5607 |
case PIN_CODE:
|
|
|
5608 |
return isSetPinCode();
|
|
|
5609 |
}
|
|
|
5610 |
throw new IllegalStateException();
|
|
|
5611 |
}
|
|
|
5612 |
|
|
|
5613 |
@Override
|
|
|
5614 |
public boolean equals(Object that) {
|
|
|
5615 |
if (that == null)
|
|
|
5616 |
return false;
|
|
|
5617 |
if (that instanceof getDestinationCode_args)
|
|
|
5618 |
return this.equals((getDestinationCode_args)that);
|
|
|
5619 |
return false;
|
|
|
5620 |
}
|
|
|
5621 |
|
|
|
5622 |
public boolean equals(getDestinationCode_args that) {
|
|
|
5623 |
if (that == null)
|
|
|
5624 |
return false;
|
|
|
5625 |
|
|
|
5626 |
boolean this_present_providerId = true;
|
|
|
5627 |
boolean that_present_providerId = true;
|
|
|
5628 |
if (this_present_providerId || that_present_providerId) {
|
|
|
5629 |
if (!(this_present_providerId && that_present_providerId))
|
|
|
5630 |
return false;
|
|
|
5631 |
if (this.providerId != that.providerId)
|
|
|
5632 |
return false;
|
|
|
5633 |
}
|
|
|
5634 |
|
|
|
5635 |
boolean this_present_pinCode = true && this.isSetPinCode();
|
|
|
5636 |
boolean that_present_pinCode = true && that.isSetPinCode();
|
|
|
5637 |
if (this_present_pinCode || that_present_pinCode) {
|
|
|
5638 |
if (!(this_present_pinCode && that_present_pinCode))
|
|
|
5639 |
return false;
|
|
|
5640 |
if (!this.pinCode.equals(that.pinCode))
|
|
|
5641 |
return false;
|
|
|
5642 |
}
|
|
|
5643 |
|
|
|
5644 |
return true;
|
|
|
5645 |
}
|
|
|
5646 |
|
|
|
5647 |
@Override
|
|
|
5648 |
public int hashCode() {
|
|
|
5649 |
return 0;
|
|
|
5650 |
}
|
|
|
5651 |
|
|
|
5652 |
public int compareTo(getDestinationCode_args other) {
|
|
|
5653 |
if (!getClass().equals(other.getClass())) {
|
|
|
5654 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
5655 |
}
|
|
|
5656 |
|
|
|
5657 |
int lastComparison = 0;
|
|
|
5658 |
getDestinationCode_args typedOther = (getDestinationCode_args)other;
|
|
|
5659 |
|
| 3430 |
rajveer |
5660 |
lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
|
| 730 |
chandransh |
5661 |
if (lastComparison != 0) {
|
|
|
5662 |
return lastComparison;
|
|
|
5663 |
}
|
| 3430 |
rajveer |
5664 |
if (isSetProviderId()) {
|
|
|
5665 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
|
|
|
5666 |
if (lastComparison != 0) {
|
|
|
5667 |
return lastComparison;
|
|
|
5668 |
}
|
| 730 |
chandransh |
5669 |
}
|
| 3430 |
rajveer |
5670 |
lastComparison = Boolean.valueOf(isSetPinCode()).compareTo(typedOther.isSetPinCode());
|
| 730 |
chandransh |
5671 |
if (lastComparison != 0) {
|
|
|
5672 |
return lastComparison;
|
|
|
5673 |
}
|
| 3430 |
rajveer |
5674 |
if (isSetPinCode()) {
|
|
|
5675 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pinCode, typedOther.pinCode);
|
|
|
5676 |
if (lastComparison != 0) {
|
|
|
5677 |
return lastComparison;
|
|
|
5678 |
}
|
| 730 |
chandransh |
5679 |
}
|
|
|
5680 |
return 0;
|
|
|
5681 |
}
|
|
|
5682 |
|
| 3430 |
rajveer |
5683 |
public _Fields fieldForId(int fieldId) {
|
|
|
5684 |
return _Fields.findByThriftId(fieldId);
|
|
|
5685 |
}
|
|
|
5686 |
|
|
|
5687 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
5688 |
org.apache.thrift.protocol.TField field;
|
| 730 |
chandransh |
5689 |
iprot.readStructBegin();
|
|
|
5690 |
while (true)
|
|
|
5691 |
{
|
|
|
5692 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
5693 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 730 |
chandransh |
5694 |
break;
|
|
|
5695 |
}
|
| 3430 |
rajveer |
5696 |
switch (field.id) {
|
|
|
5697 |
case 1: // PROVIDER_ID
|
|
|
5698 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
5699 |
this.providerId = iprot.readI64();
|
|
|
5700 |
setProviderIdIsSet(true);
|
|
|
5701 |
} else {
|
|
|
5702 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5703 |
}
|
|
|
5704 |
break;
|
|
|
5705 |
case 2: // PIN_CODE
|
|
|
5706 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
5707 |
this.pinCode = iprot.readString();
|
|
|
5708 |
} else {
|
|
|
5709 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
5710 |
}
|
|
|
5711 |
break;
|
|
|
5712 |
default:
|
|
|
5713 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 730 |
chandransh |
5714 |
}
|
| 3430 |
rajveer |
5715 |
iprot.readFieldEnd();
|
| 730 |
chandransh |
5716 |
}
|
|
|
5717 |
iprot.readStructEnd();
|
|
|
5718 |
validate();
|
|
|
5719 |
}
|
|
|
5720 |
|
| 3430 |
rajveer |
5721 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 730 |
chandransh |
5722 |
validate();
|
|
|
5723 |
|
|
|
5724 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
5725 |
oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
|
|
|
5726 |
oprot.writeI64(this.providerId);
|
|
|
5727 |
oprot.writeFieldEnd();
|
|
|
5728 |
if (this.pinCode != null) {
|
|
|
5729 |
oprot.writeFieldBegin(PIN_CODE_FIELD_DESC);
|
|
|
5730 |
oprot.writeString(this.pinCode);
|
|
|
5731 |
oprot.writeFieldEnd();
|
|
|
5732 |
}
|
|
|
5733 |
oprot.writeFieldStop();
|
|
|
5734 |
oprot.writeStructEnd();
|
|
|
5735 |
}
|
|
|
5736 |
|
|
|
5737 |
@Override
|
|
|
5738 |
public String toString() {
|
|
|
5739 |
StringBuilder sb = new StringBuilder("getDestinationCode_args(");
|
|
|
5740 |
boolean first = true;
|
|
|
5741 |
|
|
|
5742 |
sb.append("providerId:");
|
|
|
5743 |
sb.append(this.providerId);
|
|
|
5744 |
first = false;
|
|
|
5745 |
if (!first) sb.append(", ");
|
|
|
5746 |
sb.append("pinCode:");
|
|
|
5747 |
if (this.pinCode == null) {
|
|
|
5748 |
sb.append("null");
|
|
|
5749 |
} else {
|
|
|
5750 |
sb.append(this.pinCode);
|
|
|
5751 |
}
|
|
|
5752 |
first = false;
|
|
|
5753 |
sb.append(")");
|
|
|
5754 |
return sb.toString();
|
|
|
5755 |
}
|
|
|
5756 |
|
| 3430 |
rajveer |
5757 |
public void validate() throws org.apache.thrift.TException {
|
| 730 |
chandransh |
5758 |
// check for required fields
|
|
|
5759 |
}
|
|
|
5760 |
|
| 3430 |
rajveer |
5761 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
5762 |
try {
|
|
|
5763 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
5764 |
} catch (org.apache.thrift.TException te) {
|
|
|
5765 |
throw new java.io.IOException(te);
|
|
|
5766 |
}
|
|
|
5767 |
}
|
|
|
5768 |
|
|
|
5769 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
5770 |
try {
|
|
|
5771 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
5772 |
} catch (org.apache.thrift.TException te) {
|
|
|
5773 |
throw new java.io.IOException(te);
|
|
|
5774 |
}
|
|
|
5775 |
}
|
|
|
5776 |
|
| 730 |
chandransh |
5777 |
}
|
|
|
5778 |
|
| 3430 |
rajveer |
5779 |
public static class getDestinationCode_result implements org.apache.thrift.TBase<getDestinationCode_result, getDestinationCode_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
5780 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_result");
|
| 730 |
chandransh |
5781 |
|
| 3430 |
rajveer |
5782 |
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);
|
|
|
5783 |
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 |
5784 |
|
| 3430 |
rajveer |
5785 |
private String success; // required
|
|
|
5786 |
private LogisticsServiceException se; // required
|
| 730 |
chandransh |
5787 |
|
|
|
5788 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
5789 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 730 |
chandransh |
5790 |
SUCCESS((short)0, "success"),
|
|
|
5791 |
SE((short)1, "se");
|
|
|
5792 |
|
|
|
5793 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
5794 |
|
|
|
5795 |
static {
|
|
|
5796 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
5797 |
byName.put(field.getFieldName(), field);
|
|
|
5798 |
}
|
|
|
5799 |
}
|
|
|
5800 |
|
|
|
5801 |
/**
|
|
|
5802 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
5803 |
*/
|
|
|
5804 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
5805 |
switch(fieldId) {
|
|
|
5806 |
case 0: // SUCCESS
|
|
|
5807 |
return SUCCESS;
|
|
|
5808 |
case 1: // SE
|
|
|
5809 |
return SE;
|
|
|
5810 |
default:
|
|
|
5811 |
return null;
|
|
|
5812 |
}
|
| 730 |
chandransh |
5813 |
}
|
|
|
5814 |
|
|
|
5815 |
/**
|
|
|
5816 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
5817 |
* if it is not found.
|
|
|
5818 |
*/
|
|
|
5819 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
5820 |
_Fields fields = findByThriftId(fieldId);
|
|
|
5821 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
5822 |
return fields;
|
|
|
5823 |
}
|
|
|
5824 |
|
|
|
5825 |
/**
|
|
|
5826 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
5827 |
*/
|
|
|
5828 |
public static _Fields findByName(String name) {
|
|
|
5829 |
return byName.get(name);
|
|
|
5830 |
}
|
|
|
5831 |
|
|
|
5832 |
private final short _thriftId;
|
|
|
5833 |
private final String _fieldName;
|
|
|
5834 |
|
|
|
5835 |
_Fields(short thriftId, String fieldName) {
|
|
|
5836 |
_thriftId = thriftId;
|
|
|
5837 |
_fieldName = fieldName;
|
|
|
5838 |
}
|
|
|
5839 |
|
|
|
5840 |
public short getThriftFieldId() {
|
|
|
5841 |
return _thriftId;
|
|
|
5842 |
}
|
|
|
5843 |
|
|
|
5844 |
public String getFieldName() {
|
|
|
5845 |
return _fieldName;
|
|
|
5846 |
}
|
|
|
5847 |
}
|
|
|
5848 |
|
|
|
5849 |
// isset id assignments
|
|
|
5850 |
|
| 3430 |
rajveer |
5851 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 730 |
chandransh |
5852 |
static {
|
| 3430 |
rajveer |
5853 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
5854 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5855 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
5856 |
tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
5857 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
|
|
|
5858 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
5859 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_result.class, metaDataMap);
|
| 730 |
chandransh |
5860 |
}
|
|
|
5861 |
|
|
|
5862 |
public getDestinationCode_result() {
|
|
|
5863 |
}
|
|
|
5864 |
|
|
|
5865 |
public getDestinationCode_result(
|
|
|
5866 |
String success,
|
|
|
5867 |
LogisticsServiceException se)
|
|
|
5868 |
{
|
|
|
5869 |
this();
|
|
|
5870 |
this.success = success;
|
|
|
5871 |
this.se = se;
|
|
|
5872 |
}
|
|
|
5873 |
|
|
|
5874 |
/**
|
|
|
5875 |
* Performs a deep copy on <i>other</i>.
|
|
|
5876 |
*/
|
|
|
5877 |
public getDestinationCode_result(getDestinationCode_result other) {
|
|
|
5878 |
if (other.isSetSuccess()) {
|
|
|
5879 |
this.success = other.success;
|
|
|
5880 |
}
|
|
|
5881 |
if (other.isSetSe()) {
|
|
|
5882 |
this.se = new LogisticsServiceException(other.se);
|
|
|
5883 |
}
|
|
|
5884 |
}
|
|
|
5885 |
|
|
|
5886 |
public getDestinationCode_result deepCopy() {
|
|
|
5887 |
return new getDestinationCode_result(this);
|
|
|
5888 |
}
|
|
|
5889 |
|
| 3430 |
rajveer |
5890 |
@Override
|
|
|
5891 |
public void clear() {
|
|
|
5892 |
this.success = null;
|
|
|
5893 |
this.se = null;
|
| 730 |
chandransh |
5894 |
}
|
|
|
5895 |
|
|
|
5896 |
public String getSuccess() {
|
|
|
5897 |
return this.success;
|
|
|
5898 |
}
|
|
|
5899 |
|
| 3430 |
rajveer |
5900 |
public void setSuccess(String success) {
|
| 730 |
chandransh |
5901 |
this.success = success;
|
|
|
5902 |
}
|
|
|
5903 |
|
|
|
5904 |
public void unsetSuccess() {
|
|
|
5905 |
this.success = null;
|
|
|
5906 |
}
|
|
|
5907 |
|
| 3430 |
rajveer |
5908 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 730 |
chandransh |
5909 |
public boolean isSetSuccess() {
|
|
|
5910 |
return this.success != null;
|
|
|
5911 |
}
|
|
|
5912 |
|
|
|
5913 |
public void setSuccessIsSet(boolean value) {
|
|
|
5914 |
if (!value) {
|
|
|
5915 |
this.success = null;
|
|
|
5916 |
}
|
|
|
5917 |
}
|
|
|
5918 |
|
|
|
5919 |
public LogisticsServiceException getSe() {
|
|
|
5920 |
return this.se;
|
|
|
5921 |
}
|
|
|
5922 |
|
| 3430 |
rajveer |
5923 |
public void setSe(LogisticsServiceException se) {
|
| 730 |
chandransh |
5924 |
this.se = se;
|
|
|
5925 |
}
|
|
|
5926 |
|
|
|
5927 |
public void unsetSe() {
|
|
|
5928 |
this.se = null;
|
|
|
5929 |
}
|
|
|
5930 |
|
| 3430 |
rajveer |
5931 |
/** Returns true if field se is set (has been assigned a value) and false otherwise */
|
| 730 |
chandransh |
5932 |
public boolean isSetSe() {
|
|
|
5933 |
return this.se != null;
|
|
|
5934 |
}
|
|
|
5935 |
|
|
|
5936 |
public void setSeIsSet(boolean value) {
|
|
|
5937 |
if (!value) {
|
|
|
5938 |
this.se = null;
|
|
|
5939 |
}
|
|
|
5940 |
}
|
|
|
5941 |
|
|
|
5942 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
5943 |
switch (field) {
|
|
|
5944 |
case SUCCESS:
|
|
|
5945 |
if (value == null) {
|
|
|
5946 |
unsetSuccess();
|
|
|
5947 |
} else {
|
|
|
5948 |
setSuccess((String)value);
|
|
|
5949 |
}
|
|
|
5950 |
break;
|
|
|
5951 |
|
|
|
5952 |
case SE:
|
|
|
5953 |
if (value == null) {
|
|
|
5954 |
unsetSe();
|
|
|
5955 |
} else {
|
|
|
5956 |
setSe((LogisticsServiceException)value);
|
|
|
5957 |
}
|
|
|
5958 |
break;
|
|
|
5959 |
|
|
|
5960 |
}
|
|
|
5961 |
}
|
|
|
5962 |
|
|
|
5963 |
public Object getFieldValue(_Fields field) {
|
|
|
5964 |
switch (field) {
|
|
|
5965 |
case SUCCESS:
|
|
|
5966 |
return getSuccess();
|
|
|
5967 |
|
|
|
5968 |
case SE:
|
|
|
5969 |
return getSe();
|
|
|
5970 |
|
|
|
5971 |
}
|
|
|
5972 |
throw new IllegalStateException();
|
|
|
5973 |
}
|
|
|
5974 |
|
| 3430 |
rajveer |
5975 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
5976 |
public boolean isSet(_Fields field) {
|
|
|
5977 |
if (field == null) {
|
|
|
5978 |
throw new IllegalArgumentException();
|
|
|
5979 |
}
|
| 730 |
chandransh |
5980 |
|
|
|
5981 |
switch (field) {
|
|
|
5982 |
case SUCCESS:
|
|
|
5983 |
return isSetSuccess();
|
|
|
5984 |
case SE:
|
|
|
5985 |
return isSetSe();
|
|
|
5986 |
}
|
|
|
5987 |
throw new IllegalStateException();
|
|
|
5988 |
}
|
|
|
5989 |
|
|
|
5990 |
@Override
|
|
|
5991 |
public boolean equals(Object that) {
|
|
|
5992 |
if (that == null)
|
|
|
5993 |
return false;
|
|
|
5994 |
if (that instanceof getDestinationCode_result)
|
|
|
5995 |
return this.equals((getDestinationCode_result)that);
|
|
|
5996 |
return false;
|
|
|
5997 |
}
|
|
|
5998 |
|
|
|
5999 |
public boolean equals(getDestinationCode_result that) {
|
|
|
6000 |
if (that == null)
|
|
|
6001 |
return false;
|
|
|
6002 |
|
|
|
6003 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
6004 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
6005 |
if (this_present_success || that_present_success) {
|
|
|
6006 |
if (!(this_present_success && that_present_success))
|
|
|
6007 |
return false;
|
|
|
6008 |
if (!this.success.equals(that.success))
|
|
|
6009 |
return false;
|
|
|
6010 |
}
|
|
|
6011 |
|
|
|
6012 |
boolean this_present_se = true && this.isSetSe();
|
|
|
6013 |
boolean that_present_se = true && that.isSetSe();
|
|
|
6014 |
if (this_present_se || that_present_se) {
|
|
|
6015 |
if (!(this_present_se && that_present_se))
|
|
|
6016 |
return false;
|
|
|
6017 |
if (!this.se.equals(that.se))
|
|
|
6018 |
return false;
|
|
|
6019 |
}
|
|
|
6020 |
|
|
|
6021 |
return true;
|
|
|
6022 |
}
|
|
|
6023 |
|
|
|
6024 |
@Override
|
|
|
6025 |
public int hashCode() {
|
|
|
6026 |
return 0;
|
|
|
6027 |
}
|
|
|
6028 |
|
|
|
6029 |
public int compareTo(getDestinationCode_result other) {
|
|
|
6030 |
if (!getClass().equals(other.getClass())) {
|
|
|
6031 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
6032 |
}
|
|
|
6033 |
|
|
|
6034 |
int lastComparison = 0;
|
|
|
6035 |
getDestinationCode_result typedOther = (getDestinationCode_result)other;
|
|
|
6036 |
|
| 3430 |
rajveer |
6037 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 730 |
chandransh |
6038 |
if (lastComparison != 0) {
|
|
|
6039 |
return lastComparison;
|
|
|
6040 |
}
|
| 3430 |
rajveer |
6041 |
if (isSetSuccess()) {
|
|
|
6042 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
6043 |
if (lastComparison != 0) {
|
|
|
6044 |
return lastComparison;
|
|
|
6045 |
}
|
| 730 |
chandransh |
6046 |
}
|
| 3430 |
rajveer |
6047 |
lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
|
| 730 |
chandransh |
6048 |
if (lastComparison != 0) {
|
|
|
6049 |
return lastComparison;
|
|
|
6050 |
}
|
| 3430 |
rajveer |
6051 |
if (isSetSe()) {
|
|
|
6052 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
|
|
|
6053 |
if (lastComparison != 0) {
|
|
|
6054 |
return lastComparison;
|
|
|
6055 |
}
|
| 730 |
chandransh |
6056 |
}
|
|
|
6057 |
return 0;
|
|
|
6058 |
}
|
|
|
6059 |
|
| 3430 |
rajveer |
6060 |
public _Fields fieldForId(int fieldId) {
|
|
|
6061 |
return _Fields.findByThriftId(fieldId);
|
|
|
6062 |
}
|
|
|
6063 |
|
|
|
6064 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
6065 |
org.apache.thrift.protocol.TField field;
|
| 730 |
chandransh |
6066 |
iprot.readStructBegin();
|
|
|
6067 |
while (true)
|
|
|
6068 |
{
|
|
|
6069 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
6070 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 730 |
chandransh |
6071 |
break;
|
|
|
6072 |
}
|
| 3430 |
rajveer |
6073 |
switch (field.id) {
|
|
|
6074 |
case 0: // SUCCESS
|
|
|
6075 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
6076 |
this.success = iprot.readString();
|
|
|
6077 |
} else {
|
|
|
6078 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6079 |
}
|
|
|
6080 |
break;
|
|
|
6081 |
case 1: // SE
|
|
|
6082 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
|
|
6083 |
this.se = new LogisticsServiceException();
|
|
|
6084 |
this.se.read(iprot);
|
|
|
6085 |
} else {
|
|
|
6086 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6087 |
}
|
|
|
6088 |
break;
|
|
|
6089 |
default:
|
|
|
6090 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 730 |
chandransh |
6091 |
}
|
| 3430 |
rajveer |
6092 |
iprot.readFieldEnd();
|
| 730 |
chandransh |
6093 |
}
|
|
|
6094 |
iprot.readStructEnd();
|
|
|
6095 |
validate();
|
|
|
6096 |
}
|
|
|
6097 |
|
| 3430 |
rajveer |
6098 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 730 |
chandransh |
6099 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
6100 |
|
|
|
6101 |
if (this.isSetSuccess()) {
|
|
|
6102 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
6103 |
oprot.writeString(this.success);
|
|
|
6104 |
oprot.writeFieldEnd();
|
|
|
6105 |
} else if (this.isSetSe()) {
|
|
|
6106 |
oprot.writeFieldBegin(SE_FIELD_DESC);
|
|
|
6107 |
this.se.write(oprot);
|
|
|
6108 |
oprot.writeFieldEnd();
|
|
|
6109 |
}
|
|
|
6110 |
oprot.writeFieldStop();
|
|
|
6111 |
oprot.writeStructEnd();
|
|
|
6112 |
}
|
|
|
6113 |
|
|
|
6114 |
@Override
|
|
|
6115 |
public String toString() {
|
|
|
6116 |
StringBuilder sb = new StringBuilder("getDestinationCode_result(");
|
|
|
6117 |
boolean first = true;
|
|
|
6118 |
|
|
|
6119 |
sb.append("success:");
|
|
|
6120 |
if (this.success == null) {
|
|
|
6121 |
sb.append("null");
|
|
|
6122 |
} else {
|
|
|
6123 |
sb.append(this.success);
|
|
|
6124 |
}
|
|
|
6125 |
first = false;
|
|
|
6126 |
if (!first) sb.append(", ");
|
|
|
6127 |
sb.append("se:");
|
|
|
6128 |
if (this.se == null) {
|
|
|
6129 |
sb.append("null");
|
|
|
6130 |
} else {
|
|
|
6131 |
sb.append(this.se);
|
|
|
6132 |
}
|
|
|
6133 |
first = false;
|
|
|
6134 |
sb.append(")");
|
|
|
6135 |
return sb.toString();
|
|
|
6136 |
}
|
|
|
6137 |
|
| 3430 |
rajveer |
6138 |
public void validate() throws org.apache.thrift.TException {
|
| 730 |
chandransh |
6139 |
// check for required fields
|
|
|
6140 |
}
|
|
|
6141 |
|
| 3430 |
rajveer |
6142 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
6143 |
try {
|
|
|
6144 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
6145 |
} catch (org.apache.thrift.TException te) {
|
|
|
6146 |
throw new java.io.IOException(te);
|
|
|
6147 |
}
|
|
|
6148 |
}
|
|
|
6149 |
|
|
|
6150 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
6151 |
try {
|
|
|
6152 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
6153 |
} catch (org.apache.thrift.TException te) {
|
|
|
6154 |
throw new java.io.IOException(te);
|
|
|
6155 |
}
|
|
|
6156 |
}
|
|
|
6157 |
|
| 730 |
chandransh |
6158 |
}
|
|
|
6159 |
|
| 3430 |
rajveer |
6160 |
public static class getFreeAwbCount_args implements org.apache.thrift.TBase<getFreeAwbCount_args, getFreeAwbCount_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
6161 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_args");
|
| 1139 |
chandransh |
6162 |
|
| 3430 |
rajveer |
6163 |
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);
|
|
|
6164 |
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 |
6165 |
|
| 3430 |
rajveer |
6166 |
private long providerId; // required
|
|
|
6167 |
private String type; // required
|
| 1139 |
chandransh |
6168 |
|
|
|
6169 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
6170 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 3103 |
chandransh |
6171 |
PROVIDER_ID((short)1, "providerId"),
|
|
|
6172 |
TYPE((short)2, "type");
|
| 1139 |
chandransh |
6173 |
|
|
|
6174 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
6175 |
|
|
|
6176 |
static {
|
|
|
6177 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
6178 |
byName.put(field.getFieldName(), field);
|
|
|
6179 |
}
|
|
|
6180 |
}
|
|
|
6181 |
|
|
|
6182 |
/**
|
|
|
6183 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
6184 |
*/
|
|
|
6185 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
6186 |
switch(fieldId) {
|
|
|
6187 |
case 1: // PROVIDER_ID
|
|
|
6188 |
return PROVIDER_ID;
|
|
|
6189 |
case 2: // TYPE
|
|
|
6190 |
return TYPE;
|
|
|
6191 |
default:
|
|
|
6192 |
return null;
|
|
|
6193 |
}
|
| 1139 |
chandransh |
6194 |
}
|
|
|
6195 |
|
|
|
6196 |
/**
|
|
|
6197 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
6198 |
* if it is not found.
|
|
|
6199 |
*/
|
|
|
6200 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
6201 |
_Fields fields = findByThriftId(fieldId);
|
|
|
6202 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
6203 |
return fields;
|
|
|
6204 |
}
|
|
|
6205 |
|
|
|
6206 |
/**
|
|
|
6207 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
6208 |
*/
|
|
|
6209 |
public static _Fields findByName(String name) {
|
|
|
6210 |
return byName.get(name);
|
|
|
6211 |
}
|
|
|
6212 |
|
|
|
6213 |
private final short _thriftId;
|
|
|
6214 |
private final String _fieldName;
|
|
|
6215 |
|
|
|
6216 |
_Fields(short thriftId, String fieldName) {
|
|
|
6217 |
_thriftId = thriftId;
|
|
|
6218 |
_fieldName = fieldName;
|
|
|
6219 |
}
|
|
|
6220 |
|
|
|
6221 |
public short getThriftFieldId() {
|
|
|
6222 |
return _thriftId;
|
|
|
6223 |
}
|
|
|
6224 |
|
|
|
6225 |
public String getFieldName() {
|
|
|
6226 |
return _fieldName;
|
|
|
6227 |
}
|
|
|
6228 |
}
|
|
|
6229 |
|
|
|
6230 |
// isset id assignments
|
|
|
6231 |
private static final int __PROVIDERID_ISSET_ID = 0;
|
|
|
6232 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
6233 |
|
| 3430 |
rajveer |
6234 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 1139 |
chandransh |
6235 |
static {
|
| 3430 |
rajveer |
6236 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
6237 |
tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6238 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
6239 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6240 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
6241 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
6242 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_args.class, metaDataMap);
|
| 1139 |
chandransh |
6243 |
}
|
|
|
6244 |
|
|
|
6245 |
public getFreeAwbCount_args() {
|
|
|
6246 |
}
|
|
|
6247 |
|
|
|
6248 |
public getFreeAwbCount_args(
|
| 3103 |
chandransh |
6249 |
long providerId,
|
|
|
6250 |
String type)
|
| 1139 |
chandransh |
6251 |
{
|
|
|
6252 |
this();
|
|
|
6253 |
this.providerId = providerId;
|
|
|
6254 |
setProviderIdIsSet(true);
|
| 3103 |
chandransh |
6255 |
this.type = type;
|
| 1139 |
chandransh |
6256 |
}
|
|
|
6257 |
|
|
|
6258 |
/**
|
|
|
6259 |
* Performs a deep copy on <i>other</i>.
|
|
|
6260 |
*/
|
|
|
6261 |
public getFreeAwbCount_args(getFreeAwbCount_args other) {
|
|
|
6262 |
__isset_bit_vector.clear();
|
|
|
6263 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
6264 |
this.providerId = other.providerId;
|
| 3103 |
chandransh |
6265 |
if (other.isSetType()) {
|
|
|
6266 |
this.type = other.type;
|
|
|
6267 |
}
|
| 1139 |
chandransh |
6268 |
}
|
|
|
6269 |
|
|
|
6270 |
public getFreeAwbCount_args deepCopy() {
|
|
|
6271 |
return new getFreeAwbCount_args(this);
|
|
|
6272 |
}
|
|
|
6273 |
|
| 3430 |
rajveer |
6274 |
@Override
|
|
|
6275 |
public void clear() {
|
|
|
6276 |
setProviderIdIsSet(false);
|
|
|
6277 |
this.providerId = 0;
|
|
|
6278 |
this.type = null;
|
| 1139 |
chandransh |
6279 |
}
|
|
|
6280 |
|
|
|
6281 |
public long getProviderId() {
|
|
|
6282 |
return this.providerId;
|
|
|
6283 |
}
|
|
|
6284 |
|
| 3430 |
rajveer |
6285 |
public void setProviderId(long providerId) {
|
| 1139 |
chandransh |
6286 |
this.providerId = providerId;
|
|
|
6287 |
setProviderIdIsSet(true);
|
|
|
6288 |
}
|
|
|
6289 |
|
|
|
6290 |
public void unsetProviderId() {
|
|
|
6291 |
__isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
|
|
|
6292 |
}
|
|
|
6293 |
|
| 3430 |
rajveer |
6294 |
/** Returns true if field providerId is set (has been assigned a value) and false otherwise */
|
| 1139 |
chandransh |
6295 |
public boolean isSetProviderId() {
|
|
|
6296 |
return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
|
|
|
6297 |
}
|
|
|
6298 |
|
|
|
6299 |
public void setProviderIdIsSet(boolean value) {
|
|
|
6300 |
__isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
|
|
|
6301 |
}
|
|
|
6302 |
|
| 3103 |
chandransh |
6303 |
public String getType() {
|
|
|
6304 |
return this.type;
|
|
|
6305 |
}
|
|
|
6306 |
|
| 3430 |
rajveer |
6307 |
public void setType(String type) {
|
| 3103 |
chandransh |
6308 |
this.type = type;
|
|
|
6309 |
}
|
|
|
6310 |
|
|
|
6311 |
public void unsetType() {
|
|
|
6312 |
this.type = null;
|
|
|
6313 |
}
|
|
|
6314 |
|
| 3430 |
rajveer |
6315 |
/** Returns true if field type is set (has been assigned a value) and false otherwise */
|
| 3103 |
chandransh |
6316 |
public boolean isSetType() {
|
|
|
6317 |
return this.type != null;
|
|
|
6318 |
}
|
|
|
6319 |
|
|
|
6320 |
public void setTypeIsSet(boolean value) {
|
|
|
6321 |
if (!value) {
|
|
|
6322 |
this.type = null;
|
|
|
6323 |
}
|
|
|
6324 |
}
|
|
|
6325 |
|
| 1139 |
chandransh |
6326 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
6327 |
switch (field) {
|
|
|
6328 |
case PROVIDER_ID:
|
|
|
6329 |
if (value == null) {
|
|
|
6330 |
unsetProviderId();
|
|
|
6331 |
} else {
|
|
|
6332 |
setProviderId((Long)value);
|
|
|
6333 |
}
|
|
|
6334 |
break;
|
|
|
6335 |
|
| 3103 |
chandransh |
6336 |
case TYPE:
|
|
|
6337 |
if (value == null) {
|
|
|
6338 |
unsetType();
|
|
|
6339 |
} else {
|
|
|
6340 |
setType((String)value);
|
|
|
6341 |
}
|
|
|
6342 |
break;
|
|
|
6343 |
|
| 1139 |
chandransh |
6344 |
}
|
|
|
6345 |
}
|
|
|
6346 |
|
|
|
6347 |
public Object getFieldValue(_Fields field) {
|
|
|
6348 |
switch (field) {
|
|
|
6349 |
case PROVIDER_ID:
|
| 3430 |
rajveer |
6350 |
return Long.valueOf(getProviderId());
|
| 1139 |
chandransh |
6351 |
|
| 3103 |
chandransh |
6352 |
case TYPE:
|
|
|
6353 |
return getType();
|
|
|
6354 |
|
| 1139 |
chandransh |
6355 |
}
|
|
|
6356 |
throw new IllegalStateException();
|
|
|
6357 |
}
|
|
|
6358 |
|
| 3430 |
rajveer |
6359 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
6360 |
public boolean isSet(_Fields field) {
|
|
|
6361 |
if (field == null) {
|
|
|
6362 |
throw new IllegalArgumentException();
|
|
|
6363 |
}
|
| 1139 |
chandransh |
6364 |
|
|
|
6365 |
switch (field) {
|
|
|
6366 |
case PROVIDER_ID:
|
|
|
6367 |
return isSetProviderId();
|
| 3103 |
chandransh |
6368 |
case TYPE:
|
|
|
6369 |
return isSetType();
|
| 1139 |
chandransh |
6370 |
}
|
|
|
6371 |
throw new IllegalStateException();
|
|
|
6372 |
}
|
|
|
6373 |
|
|
|
6374 |
@Override
|
|
|
6375 |
public boolean equals(Object that) {
|
|
|
6376 |
if (that == null)
|
|
|
6377 |
return false;
|
|
|
6378 |
if (that instanceof getFreeAwbCount_args)
|
|
|
6379 |
return this.equals((getFreeAwbCount_args)that);
|
|
|
6380 |
return false;
|
|
|
6381 |
}
|
|
|
6382 |
|
|
|
6383 |
public boolean equals(getFreeAwbCount_args that) {
|
|
|
6384 |
if (that == null)
|
|
|
6385 |
return false;
|
|
|
6386 |
|
|
|
6387 |
boolean this_present_providerId = true;
|
|
|
6388 |
boolean that_present_providerId = true;
|
|
|
6389 |
if (this_present_providerId || that_present_providerId) {
|
|
|
6390 |
if (!(this_present_providerId && that_present_providerId))
|
|
|
6391 |
return false;
|
|
|
6392 |
if (this.providerId != that.providerId)
|
|
|
6393 |
return false;
|
|
|
6394 |
}
|
|
|
6395 |
|
| 3103 |
chandransh |
6396 |
boolean this_present_type = true && this.isSetType();
|
|
|
6397 |
boolean that_present_type = true && that.isSetType();
|
|
|
6398 |
if (this_present_type || that_present_type) {
|
|
|
6399 |
if (!(this_present_type && that_present_type))
|
|
|
6400 |
return false;
|
|
|
6401 |
if (!this.type.equals(that.type))
|
|
|
6402 |
return false;
|
|
|
6403 |
}
|
|
|
6404 |
|
| 1139 |
chandransh |
6405 |
return true;
|
|
|
6406 |
}
|
|
|
6407 |
|
|
|
6408 |
@Override
|
|
|
6409 |
public int hashCode() {
|
|
|
6410 |
return 0;
|
|
|
6411 |
}
|
|
|
6412 |
|
|
|
6413 |
public int compareTo(getFreeAwbCount_args other) {
|
|
|
6414 |
if (!getClass().equals(other.getClass())) {
|
|
|
6415 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
6416 |
}
|
|
|
6417 |
|
|
|
6418 |
int lastComparison = 0;
|
|
|
6419 |
getFreeAwbCount_args typedOther = (getFreeAwbCount_args)other;
|
|
|
6420 |
|
| 3430 |
rajveer |
6421 |
lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
|
| 1139 |
chandransh |
6422 |
if (lastComparison != 0) {
|
|
|
6423 |
return lastComparison;
|
|
|
6424 |
}
|
| 3430 |
rajveer |
6425 |
if (isSetProviderId()) {
|
|
|
6426 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
|
|
|
6427 |
if (lastComparison != 0) {
|
|
|
6428 |
return lastComparison;
|
|
|
6429 |
}
|
| 1139 |
chandransh |
6430 |
}
|
| 3430 |
rajveer |
6431 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
| 3103 |
chandransh |
6432 |
if (lastComparison != 0) {
|
|
|
6433 |
return lastComparison;
|
|
|
6434 |
}
|
| 3430 |
rajveer |
6435 |
if (isSetType()) {
|
|
|
6436 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
|
|
6437 |
if (lastComparison != 0) {
|
|
|
6438 |
return lastComparison;
|
|
|
6439 |
}
|
| 3103 |
chandransh |
6440 |
}
|
| 1139 |
chandransh |
6441 |
return 0;
|
|
|
6442 |
}
|
|
|
6443 |
|
| 3430 |
rajveer |
6444 |
public _Fields fieldForId(int fieldId) {
|
|
|
6445 |
return _Fields.findByThriftId(fieldId);
|
|
|
6446 |
}
|
|
|
6447 |
|
|
|
6448 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
6449 |
org.apache.thrift.protocol.TField field;
|
| 1139 |
chandransh |
6450 |
iprot.readStructBegin();
|
|
|
6451 |
while (true)
|
|
|
6452 |
{
|
|
|
6453 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
6454 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 1139 |
chandransh |
6455 |
break;
|
|
|
6456 |
}
|
| 3430 |
rajveer |
6457 |
switch (field.id) {
|
|
|
6458 |
case 1: // PROVIDER_ID
|
|
|
6459 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
6460 |
this.providerId = iprot.readI64();
|
|
|
6461 |
setProviderIdIsSet(true);
|
|
|
6462 |
} else {
|
|
|
6463 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6464 |
}
|
|
|
6465 |
break;
|
|
|
6466 |
case 2: // TYPE
|
|
|
6467 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
6468 |
this.type = iprot.readString();
|
|
|
6469 |
} else {
|
|
|
6470 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6471 |
}
|
|
|
6472 |
break;
|
|
|
6473 |
default:
|
|
|
6474 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 1139 |
chandransh |
6475 |
}
|
| 3430 |
rajveer |
6476 |
iprot.readFieldEnd();
|
| 1139 |
chandransh |
6477 |
}
|
|
|
6478 |
iprot.readStructEnd();
|
|
|
6479 |
validate();
|
|
|
6480 |
}
|
|
|
6481 |
|
| 3430 |
rajveer |
6482 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 1139 |
chandransh |
6483 |
validate();
|
|
|
6484 |
|
|
|
6485 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
6486 |
oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
|
|
|
6487 |
oprot.writeI64(this.providerId);
|
|
|
6488 |
oprot.writeFieldEnd();
|
| 3103 |
chandransh |
6489 |
if (this.type != null) {
|
|
|
6490 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
|
|
6491 |
oprot.writeString(this.type);
|
|
|
6492 |
oprot.writeFieldEnd();
|
|
|
6493 |
}
|
| 1139 |
chandransh |
6494 |
oprot.writeFieldStop();
|
|
|
6495 |
oprot.writeStructEnd();
|
|
|
6496 |
}
|
|
|
6497 |
|
|
|
6498 |
@Override
|
|
|
6499 |
public String toString() {
|
|
|
6500 |
StringBuilder sb = new StringBuilder("getFreeAwbCount_args(");
|
|
|
6501 |
boolean first = true;
|
|
|
6502 |
|
|
|
6503 |
sb.append("providerId:");
|
|
|
6504 |
sb.append(this.providerId);
|
|
|
6505 |
first = false;
|
| 3103 |
chandransh |
6506 |
if (!first) sb.append(", ");
|
|
|
6507 |
sb.append("type:");
|
|
|
6508 |
if (this.type == null) {
|
|
|
6509 |
sb.append("null");
|
|
|
6510 |
} else {
|
|
|
6511 |
sb.append(this.type);
|
|
|
6512 |
}
|
|
|
6513 |
first = false;
|
| 1139 |
chandransh |
6514 |
sb.append(")");
|
|
|
6515 |
return sb.toString();
|
|
|
6516 |
}
|
|
|
6517 |
|
| 3430 |
rajveer |
6518 |
public void validate() throws org.apache.thrift.TException {
|
| 1139 |
chandransh |
6519 |
// check for required fields
|
|
|
6520 |
}
|
|
|
6521 |
|
| 3430 |
rajveer |
6522 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
6523 |
try {
|
|
|
6524 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
6525 |
} catch (org.apache.thrift.TException te) {
|
|
|
6526 |
throw new java.io.IOException(te);
|
|
|
6527 |
}
|
|
|
6528 |
}
|
|
|
6529 |
|
|
|
6530 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
6531 |
try {
|
|
|
6532 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
6533 |
} catch (org.apache.thrift.TException te) {
|
|
|
6534 |
throw new java.io.IOException(te);
|
|
|
6535 |
}
|
|
|
6536 |
}
|
|
|
6537 |
|
| 1139 |
chandransh |
6538 |
}
|
|
|
6539 |
|
| 3430 |
rajveer |
6540 |
public static class getFreeAwbCount_result implements org.apache.thrift.TBase<getFreeAwbCount_result, getFreeAwbCount_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
6541 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_result");
|
| 1139 |
chandransh |
6542 |
|
| 3430 |
rajveer |
6543 |
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 |
6544 |
|
| 3430 |
rajveer |
6545 |
private long success; // required
|
| 1139 |
chandransh |
6546 |
|
|
|
6547 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
6548 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 1139 |
chandransh |
6549 |
SUCCESS((short)0, "success");
|
|
|
6550 |
|
|
|
6551 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
6552 |
|
|
|
6553 |
static {
|
|
|
6554 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
6555 |
byName.put(field.getFieldName(), field);
|
|
|
6556 |
}
|
|
|
6557 |
}
|
|
|
6558 |
|
|
|
6559 |
/**
|
|
|
6560 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
6561 |
*/
|
|
|
6562 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
6563 |
switch(fieldId) {
|
|
|
6564 |
case 0: // SUCCESS
|
|
|
6565 |
return SUCCESS;
|
|
|
6566 |
default:
|
|
|
6567 |
return null;
|
|
|
6568 |
}
|
| 1139 |
chandransh |
6569 |
}
|
|
|
6570 |
|
|
|
6571 |
/**
|
|
|
6572 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
6573 |
* if it is not found.
|
|
|
6574 |
*/
|
|
|
6575 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
6576 |
_Fields fields = findByThriftId(fieldId);
|
|
|
6577 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
6578 |
return fields;
|
|
|
6579 |
}
|
|
|
6580 |
|
|
|
6581 |
/**
|
|
|
6582 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
6583 |
*/
|
|
|
6584 |
public static _Fields findByName(String name) {
|
|
|
6585 |
return byName.get(name);
|
|
|
6586 |
}
|
|
|
6587 |
|
|
|
6588 |
private final short _thriftId;
|
|
|
6589 |
private final String _fieldName;
|
|
|
6590 |
|
|
|
6591 |
_Fields(short thriftId, String fieldName) {
|
|
|
6592 |
_thriftId = thriftId;
|
|
|
6593 |
_fieldName = fieldName;
|
|
|
6594 |
}
|
|
|
6595 |
|
|
|
6596 |
public short getThriftFieldId() {
|
|
|
6597 |
return _thriftId;
|
|
|
6598 |
}
|
|
|
6599 |
|
|
|
6600 |
public String getFieldName() {
|
|
|
6601 |
return _fieldName;
|
|
|
6602 |
}
|
|
|
6603 |
}
|
|
|
6604 |
|
|
|
6605 |
// isset id assignments
|
|
|
6606 |
private static final int __SUCCESS_ISSET_ID = 0;
|
|
|
6607 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
6608 |
|
| 3430 |
rajveer |
6609 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 1139 |
chandransh |
6610 |
static {
|
| 3430 |
rajveer |
6611 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
6612 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6613 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
6614 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
6615 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_result.class, metaDataMap);
|
| 1139 |
chandransh |
6616 |
}
|
|
|
6617 |
|
|
|
6618 |
public getFreeAwbCount_result() {
|
|
|
6619 |
}
|
|
|
6620 |
|
|
|
6621 |
public getFreeAwbCount_result(
|
|
|
6622 |
long success)
|
|
|
6623 |
{
|
|
|
6624 |
this();
|
|
|
6625 |
this.success = success;
|
|
|
6626 |
setSuccessIsSet(true);
|
|
|
6627 |
}
|
|
|
6628 |
|
|
|
6629 |
/**
|
|
|
6630 |
* Performs a deep copy on <i>other</i>.
|
|
|
6631 |
*/
|
|
|
6632 |
public getFreeAwbCount_result(getFreeAwbCount_result other) {
|
|
|
6633 |
__isset_bit_vector.clear();
|
|
|
6634 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
6635 |
this.success = other.success;
|
|
|
6636 |
}
|
|
|
6637 |
|
|
|
6638 |
public getFreeAwbCount_result deepCopy() {
|
|
|
6639 |
return new getFreeAwbCount_result(this);
|
|
|
6640 |
}
|
|
|
6641 |
|
| 3430 |
rajveer |
6642 |
@Override
|
|
|
6643 |
public void clear() {
|
|
|
6644 |
setSuccessIsSet(false);
|
|
|
6645 |
this.success = 0;
|
| 1139 |
chandransh |
6646 |
}
|
|
|
6647 |
|
|
|
6648 |
public long getSuccess() {
|
|
|
6649 |
return this.success;
|
|
|
6650 |
}
|
|
|
6651 |
|
| 3430 |
rajveer |
6652 |
public void setSuccess(long success) {
|
| 1139 |
chandransh |
6653 |
this.success = success;
|
|
|
6654 |
setSuccessIsSet(true);
|
|
|
6655 |
}
|
|
|
6656 |
|
|
|
6657 |
public void unsetSuccess() {
|
|
|
6658 |
__isset_bit_vector.clear(__SUCCESS_ISSET_ID);
|
|
|
6659 |
}
|
|
|
6660 |
|
| 3430 |
rajveer |
6661 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 1139 |
chandransh |
6662 |
public boolean isSetSuccess() {
|
|
|
6663 |
return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
|
|
|
6664 |
}
|
|
|
6665 |
|
|
|
6666 |
public void setSuccessIsSet(boolean value) {
|
|
|
6667 |
__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
|
|
|
6668 |
}
|
|
|
6669 |
|
|
|
6670 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
6671 |
switch (field) {
|
|
|
6672 |
case SUCCESS:
|
|
|
6673 |
if (value == null) {
|
|
|
6674 |
unsetSuccess();
|
|
|
6675 |
} else {
|
|
|
6676 |
setSuccess((Long)value);
|
|
|
6677 |
}
|
|
|
6678 |
break;
|
|
|
6679 |
|
|
|
6680 |
}
|
|
|
6681 |
}
|
|
|
6682 |
|
|
|
6683 |
public Object getFieldValue(_Fields field) {
|
|
|
6684 |
switch (field) {
|
|
|
6685 |
case SUCCESS:
|
| 3430 |
rajveer |
6686 |
return Long.valueOf(getSuccess());
|
| 1139 |
chandransh |
6687 |
|
|
|
6688 |
}
|
|
|
6689 |
throw new IllegalStateException();
|
|
|
6690 |
}
|
|
|
6691 |
|
| 3430 |
rajveer |
6692 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
6693 |
public boolean isSet(_Fields field) {
|
|
|
6694 |
if (field == null) {
|
|
|
6695 |
throw new IllegalArgumentException();
|
|
|
6696 |
}
|
| 1139 |
chandransh |
6697 |
|
|
|
6698 |
switch (field) {
|
|
|
6699 |
case SUCCESS:
|
|
|
6700 |
return isSetSuccess();
|
|
|
6701 |
}
|
|
|
6702 |
throw new IllegalStateException();
|
|
|
6703 |
}
|
|
|
6704 |
|
|
|
6705 |
@Override
|
|
|
6706 |
public boolean equals(Object that) {
|
|
|
6707 |
if (that == null)
|
|
|
6708 |
return false;
|
|
|
6709 |
if (that instanceof getFreeAwbCount_result)
|
|
|
6710 |
return this.equals((getFreeAwbCount_result)that);
|
|
|
6711 |
return false;
|
|
|
6712 |
}
|
|
|
6713 |
|
|
|
6714 |
public boolean equals(getFreeAwbCount_result that) {
|
|
|
6715 |
if (that == null)
|
|
|
6716 |
return false;
|
|
|
6717 |
|
|
|
6718 |
boolean this_present_success = true;
|
|
|
6719 |
boolean that_present_success = true;
|
|
|
6720 |
if (this_present_success || that_present_success) {
|
|
|
6721 |
if (!(this_present_success && that_present_success))
|
|
|
6722 |
return false;
|
|
|
6723 |
if (this.success != that.success)
|
|
|
6724 |
return false;
|
|
|
6725 |
}
|
|
|
6726 |
|
|
|
6727 |
return true;
|
|
|
6728 |
}
|
|
|
6729 |
|
|
|
6730 |
@Override
|
|
|
6731 |
public int hashCode() {
|
|
|
6732 |
return 0;
|
|
|
6733 |
}
|
|
|
6734 |
|
|
|
6735 |
public int compareTo(getFreeAwbCount_result other) {
|
|
|
6736 |
if (!getClass().equals(other.getClass())) {
|
|
|
6737 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
6738 |
}
|
|
|
6739 |
|
|
|
6740 |
int lastComparison = 0;
|
|
|
6741 |
getFreeAwbCount_result typedOther = (getFreeAwbCount_result)other;
|
|
|
6742 |
|
| 3430 |
rajveer |
6743 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 1139 |
chandransh |
6744 |
if (lastComparison != 0) {
|
|
|
6745 |
return lastComparison;
|
|
|
6746 |
}
|
| 3430 |
rajveer |
6747 |
if (isSetSuccess()) {
|
|
|
6748 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
6749 |
if (lastComparison != 0) {
|
|
|
6750 |
return lastComparison;
|
|
|
6751 |
}
|
| 1139 |
chandransh |
6752 |
}
|
|
|
6753 |
return 0;
|
|
|
6754 |
}
|
|
|
6755 |
|
| 3430 |
rajveer |
6756 |
public _Fields fieldForId(int fieldId) {
|
|
|
6757 |
return _Fields.findByThriftId(fieldId);
|
|
|
6758 |
}
|
|
|
6759 |
|
|
|
6760 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
6761 |
org.apache.thrift.protocol.TField field;
|
| 1139 |
chandransh |
6762 |
iprot.readStructBegin();
|
|
|
6763 |
while (true)
|
|
|
6764 |
{
|
|
|
6765 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
6766 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 1139 |
chandransh |
6767 |
break;
|
|
|
6768 |
}
|
| 3430 |
rajveer |
6769 |
switch (field.id) {
|
|
|
6770 |
case 0: // SUCCESS
|
|
|
6771 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
6772 |
this.success = iprot.readI64();
|
|
|
6773 |
setSuccessIsSet(true);
|
|
|
6774 |
} else {
|
|
|
6775 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
6776 |
}
|
|
|
6777 |
break;
|
|
|
6778 |
default:
|
|
|
6779 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 1139 |
chandransh |
6780 |
}
|
| 3430 |
rajveer |
6781 |
iprot.readFieldEnd();
|
| 1139 |
chandransh |
6782 |
}
|
|
|
6783 |
iprot.readStructEnd();
|
|
|
6784 |
validate();
|
|
|
6785 |
}
|
|
|
6786 |
|
| 3430 |
rajveer |
6787 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 1139 |
chandransh |
6788 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
6789 |
|
|
|
6790 |
if (this.isSetSuccess()) {
|
|
|
6791 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
6792 |
oprot.writeI64(this.success);
|
|
|
6793 |
oprot.writeFieldEnd();
|
|
|
6794 |
}
|
|
|
6795 |
oprot.writeFieldStop();
|
|
|
6796 |
oprot.writeStructEnd();
|
|
|
6797 |
}
|
|
|
6798 |
|
|
|
6799 |
@Override
|
|
|
6800 |
public String toString() {
|
|
|
6801 |
StringBuilder sb = new StringBuilder("getFreeAwbCount_result(");
|
|
|
6802 |
boolean first = true;
|
|
|
6803 |
|
|
|
6804 |
sb.append("success:");
|
|
|
6805 |
sb.append(this.success);
|
|
|
6806 |
first = false;
|
|
|
6807 |
sb.append(")");
|
|
|
6808 |
return sb.toString();
|
|
|
6809 |
}
|
|
|
6810 |
|
| 3430 |
rajveer |
6811 |
public void validate() throws org.apache.thrift.TException {
|
| 1139 |
chandransh |
6812 |
// check for required fields
|
|
|
6813 |
}
|
|
|
6814 |
|
| 3430 |
rajveer |
6815 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
6816 |
try {
|
|
|
6817 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
6818 |
} catch (org.apache.thrift.TException te) {
|
|
|
6819 |
throw new java.io.IOException(te);
|
|
|
6820 |
}
|
|
|
6821 |
}
|
|
|
6822 |
|
|
|
6823 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
6824 |
try {
|
|
|
6825 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
6826 |
} catch (org.apache.thrift.TException te) {
|
|
|
6827 |
throw new java.io.IOException(te);
|
|
|
6828 |
}
|
|
|
6829 |
}
|
|
|
6830 |
|
| 1139 |
chandransh |
6831 |
}
|
|
|
6832 |
|
| 3430 |
rajveer |
6833 |
public static class getHolidays_args implements org.apache.thrift.TBase<getHolidays_args, getHolidays_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
6834 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_args");
|
| 1730 |
ankur.sing |
6835 |
|
| 3430 |
rajveer |
6836 |
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);
|
|
|
6837 |
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 |
6838 |
|
| 3430 |
rajveer |
6839 |
private long fromDate; // required
|
|
|
6840 |
private long toDate; // required
|
| 1730 |
ankur.sing |
6841 |
|
|
|
6842 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
6843 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 1730 |
ankur.sing |
6844 |
FROM_DATE((short)1, "fromDate"),
|
|
|
6845 |
TO_DATE((short)2, "toDate");
|
|
|
6846 |
|
|
|
6847 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
6848 |
|
|
|
6849 |
static {
|
|
|
6850 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
6851 |
byName.put(field.getFieldName(), field);
|
|
|
6852 |
}
|
|
|
6853 |
}
|
|
|
6854 |
|
|
|
6855 |
/**
|
|
|
6856 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
6857 |
*/
|
|
|
6858 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
6859 |
switch(fieldId) {
|
|
|
6860 |
case 1: // FROM_DATE
|
|
|
6861 |
return FROM_DATE;
|
|
|
6862 |
case 2: // TO_DATE
|
|
|
6863 |
return TO_DATE;
|
|
|
6864 |
default:
|
|
|
6865 |
return null;
|
|
|
6866 |
}
|
| 1730 |
ankur.sing |
6867 |
}
|
|
|
6868 |
|
|
|
6869 |
/**
|
|
|
6870 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
6871 |
* if it is not found.
|
|
|
6872 |
*/
|
|
|
6873 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
6874 |
_Fields fields = findByThriftId(fieldId);
|
|
|
6875 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
6876 |
return fields;
|
|
|
6877 |
}
|
|
|
6878 |
|
|
|
6879 |
/**
|
|
|
6880 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
6881 |
*/
|
|
|
6882 |
public static _Fields findByName(String name) {
|
|
|
6883 |
return byName.get(name);
|
|
|
6884 |
}
|
|
|
6885 |
|
|
|
6886 |
private final short _thriftId;
|
|
|
6887 |
private final String _fieldName;
|
|
|
6888 |
|
|
|
6889 |
_Fields(short thriftId, String fieldName) {
|
|
|
6890 |
_thriftId = thriftId;
|
|
|
6891 |
_fieldName = fieldName;
|
|
|
6892 |
}
|
|
|
6893 |
|
|
|
6894 |
public short getThriftFieldId() {
|
|
|
6895 |
return _thriftId;
|
|
|
6896 |
}
|
|
|
6897 |
|
|
|
6898 |
public String getFieldName() {
|
|
|
6899 |
return _fieldName;
|
|
|
6900 |
}
|
|
|
6901 |
}
|
|
|
6902 |
|
|
|
6903 |
// isset id assignments
|
|
|
6904 |
private static final int __FROMDATE_ISSET_ID = 0;
|
|
|
6905 |
private static final int __TODATE_ISSET_ID = 1;
|
|
|
6906 |
private BitSet __isset_bit_vector = new BitSet(2);
|
|
|
6907 |
|
| 3430 |
rajveer |
6908 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 1730 |
ankur.sing |
6909 |
static {
|
| 3430 |
rajveer |
6910 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
6911 |
tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6912 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
6913 |
tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
6914 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
6915 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
6916 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_args.class, metaDataMap);
|
| 1730 |
ankur.sing |
6917 |
}
|
|
|
6918 |
|
|
|
6919 |
public getHolidays_args() {
|
|
|
6920 |
}
|
|
|
6921 |
|
|
|
6922 |
public getHolidays_args(
|
|
|
6923 |
long fromDate,
|
|
|
6924 |
long toDate)
|
|
|
6925 |
{
|
|
|
6926 |
this();
|
|
|
6927 |
this.fromDate = fromDate;
|
|
|
6928 |
setFromDateIsSet(true);
|
|
|
6929 |
this.toDate = toDate;
|
|
|
6930 |
setToDateIsSet(true);
|
|
|
6931 |
}
|
|
|
6932 |
|
|
|
6933 |
/**
|
|
|
6934 |
* Performs a deep copy on <i>other</i>.
|
|
|
6935 |
*/
|
|
|
6936 |
public getHolidays_args(getHolidays_args other) {
|
|
|
6937 |
__isset_bit_vector.clear();
|
|
|
6938 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
6939 |
this.fromDate = other.fromDate;
|
|
|
6940 |
this.toDate = other.toDate;
|
|
|
6941 |
}
|
|
|
6942 |
|
|
|
6943 |
public getHolidays_args deepCopy() {
|
|
|
6944 |
return new getHolidays_args(this);
|
|
|
6945 |
}
|
|
|
6946 |
|
| 3430 |
rajveer |
6947 |
@Override
|
|
|
6948 |
public void clear() {
|
|
|
6949 |
setFromDateIsSet(false);
|
|
|
6950 |
this.fromDate = 0;
|
|
|
6951 |
setToDateIsSet(false);
|
|
|
6952 |
this.toDate = 0;
|
| 1730 |
ankur.sing |
6953 |
}
|
|
|
6954 |
|
|
|
6955 |
public long getFromDate() {
|
|
|
6956 |
return this.fromDate;
|
|
|
6957 |
}
|
|
|
6958 |
|
| 3430 |
rajveer |
6959 |
public void setFromDate(long fromDate) {
|
| 1730 |
ankur.sing |
6960 |
this.fromDate = fromDate;
|
|
|
6961 |
setFromDateIsSet(true);
|
|
|
6962 |
}
|
|
|
6963 |
|
|
|
6964 |
public void unsetFromDate() {
|
|
|
6965 |
__isset_bit_vector.clear(__FROMDATE_ISSET_ID);
|
|
|
6966 |
}
|
|
|
6967 |
|
| 3430 |
rajveer |
6968 |
/** Returns true if field fromDate is set (has been assigned a value) and false otherwise */
|
| 1730 |
ankur.sing |
6969 |
public boolean isSetFromDate() {
|
|
|
6970 |
return __isset_bit_vector.get(__FROMDATE_ISSET_ID);
|
|
|
6971 |
}
|
|
|
6972 |
|
|
|
6973 |
public void setFromDateIsSet(boolean value) {
|
|
|
6974 |
__isset_bit_vector.set(__FROMDATE_ISSET_ID, value);
|
|
|
6975 |
}
|
|
|
6976 |
|
|
|
6977 |
public long getToDate() {
|
|
|
6978 |
return this.toDate;
|
|
|
6979 |
}
|
|
|
6980 |
|
| 3430 |
rajveer |
6981 |
public void setToDate(long toDate) {
|
| 1730 |
ankur.sing |
6982 |
this.toDate = toDate;
|
|
|
6983 |
setToDateIsSet(true);
|
|
|
6984 |
}
|
|
|
6985 |
|
|
|
6986 |
public void unsetToDate() {
|
|
|
6987 |
__isset_bit_vector.clear(__TODATE_ISSET_ID);
|
|
|
6988 |
}
|
|
|
6989 |
|
| 3430 |
rajveer |
6990 |
/** Returns true if field toDate is set (has been assigned a value) and false otherwise */
|
| 1730 |
ankur.sing |
6991 |
public boolean isSetToDate() {
|
|
|
6992 |
return __isset_bit_vector.get(__TODATE_ISSET_ID);
|
|
|
6993 |
}
|
|
|
6994 |
|
|
|
6995 |
public void setToDateIsSet(boolean value) {
|
|
|
6996 |
__isset_bit_vector.set(__TODATE_ISSET_ID, value);
|
|
|
6997 |
}
|
|
|
6998 |
|
|
|
6999 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
7000 |
switch (field) {
|
|
|
7001 |
case FROM_DATE:
|
|
|
7002 |
if (value == null) {
|
|
|
7003 |
unsetFromDate();
|
|
|
7004 |
} else {
|
|
|
7005 |
setFromDate((Long)value);
|
|
|
7006 |
}
|
|
|
7007 |
break;
|
|
|
7008 |
|
|
|
7009 |
case TO_DATE:
|
|
|
7010 |
if (value == null) {
|
|
|
7011 |
unsetToDate();
|
|
|
7012 |
} else {
|
|
|
7013 |
setToDate((Long)value);
|
|
|
7014 |
}
|
|
|
7015 |
break;
|
|
|
7016 |
|
|
|
7017 |
}
|
|
|
7018 |
}
|
|
|
7019 |
|
|
|
7020 |
public Object getFieldValue(_Fields field) {
|
|
|
7021 |
switch (field) {
|
|
|
7022 |
case FROM_DATE:
|
| 3430 |
rajveer |
7023 |
return Long.valueOf(getFromDate());
|
| 1730 |
ankur.sing |
7024 |
|
|
|
7025 |
case TO_DATE:
|
| 3430 |
rajveer |
7026 |
return Long.valueOf(getToDate());
|
| 1730 |
ankur.sing |
7027 |
|
|
|
7028 |
}
|
|
|
7029 |
throw new IllegalStateException();
|
|
|
7030 |
}
|
|
|
7031 |
|
| 3430 |
rajveer |
7032 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
7033 |
public boolean isSet(_Fields field) {
|
|
|
7034 |
if (field == null) {
|
|
|
7035 |
throw new IllegalArgumentException();
|
|
|
7036 |
}
|
| 1730 |
ankur.sing |
7037 |
|
|
|
7038 |
switch (field) {
|
|
|
7039 |
case FROM_DATE:
|
|
|
7040 |
return isSetFromDate();
|
|
|
7041 |
case TO_DATE:
|
|
|
7042 |
return isSetToDate();
|
|
|
7043 |
}
|
|
|
7044 |
throw new IllegalStateException();
|
|
|
7045 |
}
|
|
|
7046 |
|
|
|
7047 |
@Override
|
|
|
7048 |
public boolean equals(Object that) {
|
|
|
7049 |
if (that == null)
|
|
|
7050 |
return false;
|
|
|
7051 |
if (that instanceof getHolidays_args)
|
|
|
7052 |
return this.equals((getHolidays_args)that);
|
|
|
7053 |
return false;
|
|
|
7054 |
}
|
|
|
7055 |
|
|
|
7056 |
public boolean equals(getHolidays_args that) {
|
|
|
7057 |
if (that == null)
|
|
|
7058 |
return false;
|
|
|
7059 |
|
|
|
7060 |
boolean this_present_fromDate = true;
|
|
|
7061 |
boolean that_present_fromDate = true;
|
|
|
7062 |
if (this_present_fromDate || that_present_fromDate) {
|
|
|
7063 |
if (!(this_present_fromDate && that_present_fromDate))
|
|
|
7064 |
return false;
|
|
|
7065 |
if (this.fromDate != that.fromDate)
|
|
|
7066 |
return false;
|
|
|
7067 |
}
|
|
|
7068 |
|
|
|
7069 |
boolean this_present_toDate = true;
|
|
|
7070 |
boolean that_present_toDate = true;
|
|
|
7071 |
if (this_present_toDate || that_present_toDate) {
|
|
|
7072 |
if (!(this_present_toDate && that_present_toDate))
|
|
|
7073 |
return false;
|
|
|
7074 |
if (this.toDate != that.toDate)
|
|
|
7075 |
return false;
|
|
|
7076 |
}
|
|
|
7077 |
|
|
|
7078 |
return true;
|
|
|
7079 |
}
|
|
|
7080 |
|
|
|
7081 |
@Override
|
|
|
7082 |
public int hashCode() {
|
|
|
7083 |
return 0;
|
|
|
7084 |
}
|
|
|
7085 |
|
|
|
7086 |
public int compareTo(getHolidays_args other) {
|
|
|
7087 |
if (!getClass().equals(other.getClass())) {
|
|
|
7088 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
7089 |
}
|
|
|
7090 |
|
|
|
7091 |
int lastComparison = 0;
|
|
|
7092 |
getHolidays_args typedOther = (getHolidays_args)other;
|
|
|
7093 |
|
| 3430 |
rajveer |
7094 |
lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());
|
| 1730 |
ankur.sing |
7095 |
if (lastComparison != 0) {
|
|
|
7096 |
return lastComparison;
|
|
|
7097 |
}
|
| 3430 |
rajveer |
7098 |
if (isSetFromDate()) {
|
|
|
7099 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);
|
|
|
7100 |
if (lastComparison != 0) {
|
|
|
7101 |
return lastComparison;
|
|
|
7102 |
}
|
| 1730 |
ankur.sing |
7103 |
}
|
| 3430 |
rajveer |
7104 |
lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());
|
| 1730 |
ankur.sing |
7105 |
if (lastComparison != 0) {
|
|
|
7106 |
return lastComparison;
|
|
|
7107 |
}
|
| 3430 |
rajveer |
7108 |
if (isSetToDate()) {
|
|
|
7109 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);
|
|
|
7110 |
if (lastComparison != 0) {
|
|
|
7111 |
return lastComparison;
|
|
|
7112 |
}
|
| 1730 |
ankur.sing |
7113 |
}
|
|
|
7114 |
return 0;
|
|
|
7115 |
}
|
|
|
7116 |
|
| 3430 |
rajveer |
7117 |
public _Fields fieldForId(int fieldId) {
|
|
|
7118 |
return _Fields.findByThriftId(fieldId);
|
|
|
7119 |
}
|
|
|
7120 |
|
|
|
7121 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
7122 |
org.apache.thrift.protocol.TField field;
|
| 1730 |
ankur.sing |
7123 |
iprot.readStructBegin();
|
|
|
7124 |
while (true)
|
|
|
7125 |
{
|
|
|
7126 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
7127 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 1730 |
ankur.sing |
7128 |
break;
|
|
|
7129 |
}
|
| 3430 |
rajveer |
7130 |
switch (field.id) {
|
|
|
7131 |
case 1: // FROM_DATE
|
|
|
7132 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
7133 |
this.fromDate = iprot.readI64();
|
|
|
7134 |
setFromDateIsSet(true);
|
|
|
7135 |
} else {
|
|
|
7136 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7137 |
}
|
|
|
7138 |
break;
|
|
|
7139 |
case 2: // TO_DATE
|
|
|
7140 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
7141 |
this.toDate = iprot.readI64();
|
|
|
7142 |
setToDateIsSet(true);
|
|
|
7143 |
} else {
|
|
|
7144 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7145 |
}
|
|
|
7146 |
break;
|
|
|
7147 |
default:
|
|
|
7148 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 1730 |
ankur.sing |
7149 |
}
|
| 3430 |
rajveer |
7150 |
iprot.readFieldEnd();
|
| 1730 |
ankur.sing |
7151 |
}
|
|
|
7152 |
iprot.readStructEnd();
|
|
|
7153 |
validate();
|
|
|
7154 |
}
|
|
|
7155 |
|
| 3430 |
rajveer |
7156 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 1730 |
ankur.sing |
7157 |
validate();
|
|
|
7158 |
|
|
|
7159 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
7160 |
oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
|
|
|
7161 |
oprot.writeI64(this.fromDate);
|
|
|
7162 |
oprot.writeFieldEnd();
|
|
|
7163 |
oprot.writeFieldBegin(TO_DATE_FIELD_DESC);
|
|
|
7164 |
oprot.writeI64(this.toDate);
|
|
|
7165 |
oprot.writeFieldEnd();
|
|
|
7166 |
oprot.writeFieldStop();
|
|
|
7167 |
oprot.writeStructEnd();
|
|
|
7168 |
}
|
|
|
7169 |
|
|
|
7170 |
@Override
|
|
|
7171 |
public String toString() {
|
|
|
7172 |
StringBuilder sb = new StringBuilder("getHolidays_args(");
|
|
|
7173 |
boolean first = true;
|
|
|
7174 |
|
|
|
7175 |
sb.append("fromDate:");
|
|
|
7176 |
sb.append(this.fromDate);
|
|
|
7177 |
first = false;
|
|
|
7178 |
if (!first) sb.append(", ");
|
|
|
7179 |
sb.append("toDate:");
|
|
|
7180 |
sb.append(this.toDate);
|
|
|
7181 |
first = false;
|
|
|
7182 |
sb.append(")");
|
|
|
7183 |
return sb.toString();
|
|
|
7184 |
}
|
|
|
7185 |
|
| 3430 |
rajveer |
7186 |
public void validate() throws org.apache.thrift.TException {
|
| 1730 |
ankur.sing |
7187 |
// check for required fields
|
|
|
7188 |
}
|
|
|
7189 |
|
| 3430 |
rajveer |
7190 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
7191 |
try {
|
|
|
7192 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
7193 |
} catch (org.apache.thrift.TException te) {
|
|
|
7194 |
throw new java.io.IOException(te);
|
|
|
7195 |
}
|
|
|
7196 |
}
|
|
|
7197 |
|
|
|
7198 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
7199 |
try {
|
|
|
7200 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
7201 |
__isset_bit_vector = new BitSet(1);
|
|
|
7202 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
7203 |
} catch (org.apache.thrift.TException te) {
|
|
|
7204 |
throw new java.io.IOException(te);
|
|
|
7205 |
}
|
|
|
7206 |
}
|
|
|
7207 |
|
| 1730 |
ankur.sing |
7208 |
}
|
|
|
7209 |
|
| 3430 |
rajveer |
7210 |
public static class getHolidays_result implements org.apache.thrift.TBase<getHolidays_result, getHolidays_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
7211 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_result");
|
| 1730 |
ankur.sing |
7212 |
|
| 3430 |
rajveer |
7213 |
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 |
7214 |
|
| 3430 |
rajveer |
7215 |
private List<Long> success; // required
|
| 1730 |
ankur.sing |
7216 |
|
|
|
7217 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
7218 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 1730 |
ankur.sing |
7219 |
SUCCESS((short)0, "success");
|
|
|
7220 |
|
|
|
7221 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
7222 |
|
|
|
7223 |
static {
|
|
|
7224 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
7225 |
byName.put(field.getFieldName(), field);
|
|
|
7226 |
}
|
|
|
7227 |
}
|
|
|
7228 |
|
|
|
7229 |
/**
|
|
|
7230 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
7231 |
*/
|
|
|
7232 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
7233 |
switch(fieldId) {
|
|
|
7234 |
case 0: // SUCCESS
|
|
|
7235 |
return SUCCESS;
|
|
|
7236 |
default:
|
|
|
7237 |
return null;
|
|
|
7238 |
}
|
| 1730 |
ankur.sing |
7239 |
}
|
|
|
7240 |
|
|
|
7241 |
/**
|
|
|
7242 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
7243 |
* if it is not found.
|
|
|
7244 |
*/
|
|
|
7245 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
7246 |
_Fields fields = findByThriftId(fieldId);
|
|
|
7247 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
7248 |
return fields;
|
|
|
7249 |
}
|
|
|
7250 |
|
|
|
7251 |
/**
|
|
|
7252 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
7253 |
*/
|
|
|
7254 |
public static _Fields findByName(String name) {
|
|
|
7255 |
return byName.get(name);
|
|
|
7256 |
}
|
|
|
7257 |
|
|
|
7258 |
private final short _thriftId;
|
|
|
7259 |
private final String _fieldName;
|
|
|
7260 |
|
|
|
7261 |
_Fields(short thriftId, String fieldName) {
|
|
|
7262 |
_thriftId = thriftId;
|
|
|
7263 |
_fieldName = fieldName;
|
|
|
7264 |
}
|
|
|
7265 |
|
|
|
7266 |
public short getThriftFieldId() {
|
|
|
7267 |
return _thriftId;
|
|
|
7268 |
}
|
|
|
7269 |
|
|
|
7270 |
public String getFieldName() {
|
|
|
7271 |
return _fieldName;
|
|
|
7272 |
}
|
|
|
7273 |
}
|
|
|
7274 |
|
|
|
7275 |
// isset id assignments
|
|
|
7276 |
|
| 3430 |
rajveer |
7277 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 1730 |
ankur.sing |
7278 |
static {
|
| 3430 |
rajveer |
7279 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
7280 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
7281 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
7282 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
|
|
|
7283 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
7284 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_result.class, metaDataMap);
|
| 1730 |
ankur.sing |
7285 |
}
|
|
|
7286 |
|
|
|
7287 |
public getHolidays_result() {
|
|
|
7288 |
}
|
|
|
7289 |
|
|
|
7290 |
public getHolidays_result(
|
|
|
7291 |
List<Long> success)
|
|
|
7292 |
{
|
|
|
7293 |
this();
|
|
|
7294 |
this.success = success;
|
|
|
7295 |
}
|
|
|
7296 |
|
|
|
7297 |
/**
|
|
|
7298 |
* Performs a deep copy on <i>other</i>.
|
|
|
7299 |
*/
|
|
|
7300 |
public getHolidays_result(getHolidays_result other) {
|
|
|
7301 |
if (other.isSetSuccess()) {
|
|
|
7302 |
List<Long> __this__success = new ArrayList<Long>();
|
|
|
7303 |
for (Long other_element : other.success) {
|
|
|
7304 |
__this__success.add(other_element);
|
|
|
7305 |
}
|
|
|
7306 |
this.success = __this__success;
|
|
|
7307 |
}
|
|
|
7308 |
}
|
|
|
7309 |
|
|
|
7310 |
public getHolidays_result deepCopy() {
|
|
|
7311 |
return new getHolidays_result(this);
|
|
|
7312 |
}
|
|
|
7313 |
|
| 3430 |
rajveer |
7314 |
@Override
|
|
|
7315 |
public void clear() {
|
|
|
7316 |
this.success = null;
|
| 1730 |
ankur.sing |
7317 |
}
|
|
|
7318 |
|
|
|
7319 |
public int getSuccessSize() {
|
|
|
7320 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
7321 |
}
|
|
|
7322 |
|
|
|
7323 |
public java.util.Iterator<Long> getSuccessIterator() {
|
|
|
7324 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
7325 |
}
|
|
|
7326 |
|
|
|
7327 |
public void addToSuccess(long elem) {
|
|
|
7328 |
if (this.success == null) {
|
|
|
7329 |
this.success = new ArrayList<Long>();
|
|
|
7330 |
}
|
|
|
7331 |
this.success.add(elem);
|
|
|
7332 |
}
|
|
|
7333 |
|
|
|
7334 |
public List<Long> getSuccess() {
|
|
|
7335 |
return this.success;
|
|
|
7336 |
}
|
|
|
7337 |
|
| 3430 |
rajveer |
7338 |
public void setSuccess(List<Long> success) {
|
| 1730 |
ankur.sing |
7339 |
this.success = success;
|
|
|
7340 |
}
|
|
|
7341 |
|
|
|
7342 |
public void unsetSuccess() {
|
|
|
7343 |
this.success = null;
|
|
|
7344 |
}
|
|
|
7345 |
|
| 3430 |
rajveer |
7346 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| 1730 |
ankur.sing |
7347 |
public boolean isSetSuccess() {
|
|
|
7348 |
return this.success != null;
|
|
|
7349 |
}
|
|
|
7350 |
|
|
|
7351 |
public void setSuccessIsSet(boolean value) {
|
|
|
7352 |
if (!value) {
|
|
|
7353 |
this.success = null;
|
|
|
7354 |
}
|
|
|
7355 |
}
|
|
|
7356 |
|
|
|
7357 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
7358 |
switch (field) {
|
|
|
7359 |
case SUCCESS:
|
|
|
7360 |
if (value == null) {
|
|
|
7361 |
unsetSuccess();
|
|
|
7362 |
} else {
|
|
|
7363 |
setSuccess((List<Long>)value);
|
|
|
7364 |
}
|
|
|
7365 |
break;
|
|
|
7366 |
|
|
|
7367 |
}
|
|
|
7368 |
}
|
|
|
7369 |
|
|
|
7370 |
public Object getFieldValue(_Fields field) {
|
|
|
7371 |
switch (field) {
|
|
|
7372 |
case SUCCESS:
|
|
|
7373 |
return getSuccess();
|
|
|
7374 |
|
|
|
7375 |
}
|
|
|
7376 |
throw new IllegalStateException();
|
|
|
7377 |
}
|
|
|
7378 |
|
| 3430 |
rajveer |
7379 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
7380 |
public boolean isSet(_Fields field) {
|
|
|
7381 |
if (field == null) {
|
|
|
7382 |
throw new IllegalArgumentException();
|
|
|
7383 |
}
|
| 1730 |
ankur.sing |
7384 |
|
|
|
7385 |
switch (field) {
|
|
|
7386 |
case SUCCESS:
|
|
|
7387 |
return isSetSuccess();
|
|
|
7388 |
}
|
|
|
7389 |
throw new IllegalStateException();
|
|
|
7390 |
}
|
|
|
7391 |
|
|
|
7392 |
@Override
|
|
|
7393 |
public boolean equals(Object that) {
|
|
|
7394 |
if (that == null)
|
|
|
7395 |
return false;
|
|
|
7396 |
if (that instanceof getHolidays_result)
|
|
|
7397 |
return this.equals((getHolidays_result)that);
|
|
|
7398 |
return false;
|
|
|
7399 |
}
|
|
|
7400 |
|
|
|
7401 |
public boolean equals(getHolidays_result that) {
|
|
|
7402 |
if (that == null)
|
|
|
7403 |
return false;
|
|
|
7404 |
|
|
|
7405 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
7406 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
7407 |
if (this_present_success || that_present_success) {
|
|
|
7408 |
if (!(this_present_success && that_present_success))
|
|
|
7409 |
return false;
|
|
|
7410 |
if (!this.success.equals(that.success))
|
|
|
7411 |
return false;
|
|
|
7412 |
}
|
|
|
7413 |
|
|
|
7414 |
return true;
|
|
|
7415 |
}
|
|
|
7416 |
|
|
|
7417 |
@Override
|
|
|
7418 |
public int hashCode() {
|
|
|
7419 |
return 0;
|
|
|
7420 |
}
|
|
|
7421 |
|
|
|
7422 |
public int compareTo(getHolidays_result other) {
|
|
|
7423 |
if (!getClass().equals(other.getClass())) {
|
|
|
7424 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
7425 |
}
|
|
|
7426 |
|
|
|
7427 |
int lastComparison = 0;
|
|
|
7428 |
getHolidays_result typedOther = (getHolidays_result)other;
|
|
|
7429 |
|
| 3430 |
rajveer |
7430 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| 1730 |
ankur.sing |
7431 |
if (lastComparison != 0) {
|
|
|
7432 |
return lastComparison;
|
|
|
7433 |
}
|
| 3430 |
rajveer |
7434 |
if (isSetSuccess()) {
|
|
|
7435 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
7436 |
if (lastComparison != 0) {
|
|
|
7437 |
return lastComparison;
|
|
|
7438 |
}
|
| 1730 |
ankur.sing |
7439 |
}
|
|
|
7440 |
return 0;
|
|
|
7441 |
}
|
|
|
7442 |
|
| 3430 |
rajveer |
7443 |
public _Fields fieldForId(int fieldId) {
|
|
|
7444 |
return _Fields.findByThriftId(fieldId);
|
|
|
7445 |
}
|
|
|
7446 |
|
|
|
7447 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
7448 |
org.apache.thrift.protocol.TField field;
|
| 1730 |
ankur.sing |
7449 |
iprot.readStructBegin();
|
|
|
7450 |
while (true)
|
|
|
7451 |
{
|
|
|
7452 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
7453 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 1730 |
ankur.sing |
7454 |
break;
|
|
|
7455 |
}
|
| 3430 |
rajveer |
7456 |
switch (field.id) {
|
|
|
7457 |
case 0: // SUCCESS
|
|
|
7458 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
7459 |
{
|
|
|
7460 |
org.apache.thrift.protocol.TList _list13 = iprot.readListBegin();
|
|
|
7461 |
this.success = new ArrayList<Long>(_list13.size);
|
|
|
7462 |
for (int _i14 = 0; _i14 < _list13.size; ++_i14)
|
| 1730 |
ankur.sing |
7463 |
{
|
| 3430 |
rajveer |
7464 |
long _elem15; // required
|
|
|
7465 |
_elem15 = iprot.readI64();
|
|
|
7466 |
this.success.add(_elem15);
|
| 1730 |
ankur.sing |
7467 |
}
|
| 3430 |
rajveer |
7468 |
iprot.readListEnd();
|
| 1730 |
ankur.sing |
7469 |
}
|
| 3430 |
rajveer |
7470 |
} else {
|
|
|
7471 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
7472 |
}
|
|
|
7473 |
break;
|
|
|
7474 |
default:
|
|
|
7475 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 1730 |
ankur.sing |
7476 |
}
|
| 3430 |
rajveer |
7477 |
iprot.readFieldEnd();
|
| 1730 |
ankur.sing |
7478 |
}
|
|
|
7479 |
iprot.readStructEnd();
|
|
|
7480 |
validate();
|
|
|
7481 |
}
|
|
|
7482 |
|
| 3430 |
rajveer |
7483 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 1730 |
ankur.sing |
7484 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
7485 |
|
|
|
7486 |
if (this.isSetSuccess()) {
|
|
|
7487 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
7488 |
{
|
| 3430 |
rajveer |
7489 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
|
| 3044 |
chandransh |
7490 |
for (long _iter16 : this.success)
|
| 1730 |
ankur.sing |
7491 |
{
|
| 3044 |
chandransh |
7492 |
oprot.writeI64(_iter16);
|
| 1730 |
ankur.sing |
7493 |
}
|
|
|
7494 |
oprot.writeListEnd();
|
|
|
7495 |
}
|
|
|
7496 |
oprot.writeFieldEnd();
|
|
|
7497 |
}
|
|
|
7498 |
oprot.writeFieldStop();
|
|
|
7499 |
oprot.writeStructEnd();
|
|
|
7500 |
}
|
|
|
7501 |
|
|
|
7502 |
@Override
|
|
|
7503 |
public String toString() {
|
|
|
7504 |
StringBuilder sb = new StringBuilder("getHolidays_result(");
|
|
|
7505 |
boolean first = true;
|
|
|
7506 |
|
|
|
7507 |
sb.append("success:");
|
|
|
7508 |
if (this.success == null) {
|
|
|
7509 |
sb.append("null");
|
|
|
7510 |
} else {
|
|
|
7511 |
sb.append(this.success);
|
|
|
7512 |
}
|
|
|
7513 |
first = false;
|
|
|
7514 |
sb.append(")");
|
|
|
7515 |
return sb.toString();
|
|
|
7516 |
}
|
|
|
7517 |
|
| 3430 |
rajveer |
7518 |
public void validate() throws org.apache.thrift.TException {
|
| 1730 |
ankur.sing |
7519 |
// check for required fields
|
|
|
7520 |
}
|
|
|
7521 |
|
| 3430 |
rajveer |
7522 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
7523 |
try {
|
|
|
7524 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
7525 |
} catch (org.apache.thrift.TException te) {
|
|
|
7526 |
throw new java.io.IOException(te);
|
|
|
7527 |
}
|
|
|
7528 |
}
|
|
|
7529 |
|
|
|
7530 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
7531 |
try {
|
|
|
7532 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
7533 |
} catch (org.apache.thrift.TException te) {
|
|
|
7534 |
throw new java.io.IOException(te);
|
|
|
7535 |
}
|
|
|
7536 |
}
|
|
|
7537 |
|
| 1730 |
ankur.sing |
7538 |
}
|
|
|
7539 |
|
| 412 |
ashish |
7540 |
}
|