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