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