| Line 41... |
Line 41... |
| 41 |
* Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
|
41 |
* Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
|
| 42 |
* is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
|
42 |
* is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
|
| 43 |
*
|
43 |
*
|
| 44 |
* @param itemId
|
44 |
* @param itemId
|
| 45 |
* @param destination_pin
|
45 |
* @param destination_pin
|
| - |
|
46 |
* @param type
|
| 46 |
*/
|
47 |
*/
|
| 47 |
public LogisticsInfo getLogisticsEstimation(long itemId, String destination_pin) throws LogisticsServiceException, org.apache.thrift.TException;
|
48 |
public LogisticsInfo getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
|
| 48 |
|
49 |
|
| 49 |
/**
|
50 |
/**
|
| 50 |
* Same as above excpet that an airway bill number is also allocated and returned.
|
51 |
* Same as above excpet that an airway bill number is also allocated and returned.
|
| 51 |
*
|
52 |
*
|
| 52 |
* @param destination_pincode
|
53 |
* @param destination_pincode
|
| Line 111... |
Line 112... |
| 111 |
|
112 |
|
| 112 |
public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
|
113 |
public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
|
| 113 |
|
114 |
|
| 114 |
public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllProviders_call> resultHandler) throws org.apache.thrift.TException;
|
115 |
public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllProviders_call> resultHandler) throws org.apache.thrift.TException;
|
| 115 |
|
116 |
|
| 116 |
public void getLogisticsEstimation(long itemId, String destination_pin, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException;
|
117 |
public void getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException;
|
| 117 |
|
118 |
|
| 118 |
public void getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsInfo_call> resultHandler) throws org.apache.thrift.TException;
|
119 |
public void getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsInfo_call> resultHandler) throws org.apache.thrift.TException;
|
| 119 |
|
120 |
|
| 120 |
public void getEmptyAWB(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException;
|
121 |
public void getEmptyAWB(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException;
|
| 121 |
|
122 |
|
| Line 200... |
Line 201... |
| 200 |
throw result.lse;
|
201 |
throw result.lse;
|
| 201 |
}
|
202 |
}
|
| 202 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllProviders failed: unknown result");
|
203 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllProviders failed: unknown result");
|
| 203 |
}
|
204 |
}
|
| 204 |
|
205 |
|
| 205 |
public LogisticsInfo getLogisticsEstimation(long itemId, String destination_pin) throws LogisticsServiceException, org.apache.thrift.TException
|
206 |
public LogisticsInfo getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
|
| 206 |
{
|
207 |
{
|
| 207 |
send_getLogisticsEstimation(itemId, destination_pin);
|
208 |
send_getLogisticsEstimation(itemId, destination_pin, type);
|
| 208 |
return recv_getLogisticsEstimation();
|
209 |
return recv_getLogisticsEstimation();
|
| 209 |
}
|
210 |
}
|
| 210 |
|
211 |
|
| 211 |
public void send_getLogisticsEstimation(long itemId, String destination_pin) throws org.apache.thrift.TException
|
212 |
public void send_getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type) throws org.apache.thrift.TException
|
| 212 |
{
|
213 |
{
|
| 213 |
getLogisticsEstimation_args args = new getLogisticsEstimation_args();
|
214 |
getLogisticsEstimation_args args = new getLogisticsEstimation_args();
|
| 214 |
args.setItemId(itemId);
|
215 |
args.setItemId(itemId);
|
| 215 |
args.setDestination_pin(destination_pin);
|
216 |
args.setDestination_pin(destination_pin);
|
| - |
|
217 |
args.setType(type);
|
| 216 |
sendBase("getLogisticsEstimation", args);
|
218 |
sendBase("getLogisticsEstimation", args);
|
| 217 |
}
|
219 |
}
|
| 218 |
|
220 |
|
| 219 |
public LogisticsInfo recv_getLogisticsEstimation() throws LogisticsServiceException, org.apache.thrift.TException
|
221 |
public LogisticsInfo recv_getLogisticsEstimation() throws LogisticsServiceException, org.apache.thrift.TException
|
| 220 |
{
|
222 |
{
|
| Line 485... |
Line 487... |
| 485 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
487 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 486 |
return (new Client(prot)).recv_getAllProviders();
|
488 |
return (new Client(prot)).recv_getAllProviders();
|
| 487 |
}
|
489 |
}
|
| 488 |
}
|
490 |
}
|
| 489 |
|
491 |
|
| 490 |
public void getLogisticsEstimation(long itemId, String destination_pin, org.apache.thrift.async.AsyncMethodCallback<getLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException {
|
492 |
public void getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException {
|
| 491 |
checkReady();
|
493 |
checkReady();
|
| 492 |
getLogisticsEstimation_call method_call = new getLogisticsEstimation_call(itemId, destination_pin, resultHandler, this, ___protocolFactory, ___transport);
|
494 |
getLogisticsEstimation_call method_call = new getLogisticsEstimation_call(itemId, destination_pin, type, resultHandler, this, ___protocolFactory, ___transport);
|
| 493 |
this.___currentMethod = method_call;
|
495 |
this.___currentMethod = method_call;
|
| 494 |
___manager.call(method_call);
|
496 |
___manager.call(method_call);
|
| 495 |
}
|
497 |
}
|
| 496 |
|
498 |
|
| 497 |
public static class getLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
|
499 |
public static class getLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| 498 |
private long itemId;
|
500 |
private long itemId;
|
| 499 |
private String destination_pin;
|
501 |
private String destination_pin;
|
| - |
|
502 |
private DeliveryType type;
|
| 500 |
public getLogisticsEstimation_call(long itemId, String destination_pin, org.apache.thrift.async.AsyncMethodCallback<getLogisticsEstimation_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
503 |
public getLogisticsEstimation_call(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getLogisticsEstimation_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
| 501 |
super(client, protocolFactory, transport, resultHandler, false);
|
504 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 502 |
this.itemId = itemId;
|
505 |
this.itemId = itemId;
|
| 503 |
this.destination_pin = destination_pin;
|
506 |
this.destination_pin = destination_pin;
|
| - |
|
507 |
this.type = type;
|
| 504 |
}
|
508 |
}
|
| 505 |
|
509 |
|
| 506 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
510 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 507 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
511 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
| 508 |
getLogisticsEstimation_args args = new getLogisticsEstimation_args();
|
512 |
getLogisticsEstimation_args args = new getLogisticsEstimation_args();
|
| 509 |
args.setItemId(itemId);
|
513 |
args.setItemId(itemId);
|
| 510 |
args.setDestination_pin(destination_pin);
|
514 |
args.setDestination_pin(destination_pin);
|
| - |
|
515 |
args.setType(type);
|
| 511 |
args.write(prot);
|
516 |
args.write(prot);
|
| 512 |
prot.writeMessageEnd();
|
517 |
prot.writeMessageEnd();
|
| 513 |
}
|
518 |
}
|
| 514 |
|
519 |
|
| 515 |
public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
|
520 |
public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
|
| Line 840... |
Line 845... |
| 840 |
}
|
845 |
}
|
| 841 |
|
846 |
|
| 842 |
protected getLogisticsEstimation_result getResult(I iface, getLogisticsEstimation_args args) throws org.apache.thrift.TException {
|
847 |
protected getLogisticsEstimation_result getResult(I iface, getLogisticsEstimation_args args) throws org.apache.thrift.TException {
|
| 843 |
getLogisticsEstimation_result result = new getLogisticsEstimation_result();
|
848 |
getLogisticsEstimation_result result = new getLogisticsEstimation_result();
|
| 844 |
try {
|
849 |
try {
|
| 845 |
result.success = iface.getLogisticsEstimation(args.itemId, args.destination_pin);
|
850 |
result.success = iface.getLogisticsEstimation(args.itemId, args.destination_pin, args.type);
|
| 846 |
} catch (LogisticsServiceException se) {
|
851 |
} catch (LogisticsServiceException se) {
|
| 847 |
result.se = se;
|
852 |
result.se = se;
|
| 848 |
}
|
853 |
}
|
| 849 |
return result;
|
854 |
return result;
|
| 850 |
}
|
855 |
}
|
| Line 2278... |
Line 2283... |
| 2278 |
public static class getLogisticsEstimation_args implements org.apache.thrift.TBase<getLogisticsEstimation_args, getLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable {
|
2283 |
public static class getLogisticsEstimation_args implements org.apache.thrift.TBase<getLogisticsEstimation_args, getLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable {
|
| 2279 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_args");
|
2284 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_args");
|
| 2280 |
|
2285 |
|
| 2281 |
private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
|
2286 |
private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
|
| 2282 |
private static final org.apache.thrift.protocol.TField DESTINATION_PIN_FIELD_DESC = new org.apache.thrift.protocol.TField("destination_pin", org.apache.thrift.protocol.TType.STRING, (short)2);
|
2287 |
private static final org.apache.thrift.protocol.TField DESTINATION_PIN_FIELD_DESC = new org.apache.thrift.protocol.TField("destination_pin", org.apache.thrift.protocol.TType.STRING, (short)2);
|
| - |
|
2288 |
private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)3);
|
| 2283 |
|
2289 |
|
| 2284 |
private long itemId; // required
|
2290 |
private long itemId; // required
|
| 2285 |
private String destination_pin; // required
|
2291 |
private String destination_pin; // required
|
| - |
|
2292 |
private DeliveryType type; // required
|
| 2286 |
|
2293 |
|
| 2287 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
2294 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 2288 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
2295 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 2289 |
ITEM_ID((short)1, "itemId"),
|
2296 |
ITEM_ID((short)1, "itemId"),
|
| 2290 |
DESTINATION_PIN((short)2, "destination_pin");
|
2297 |
DESTINATION_PIN((short)2, "destination_pin"),
|
| - |
|
2298 |
/**
|
| - |
|
2299 |
*
|
| - |
|
2300 |
* @see DeliveryType
|
| - |
|
2301 |
*/
|
| - |
|
2302 |
TYPE((short)3, "type");
|
| 2291 |
|
2303 |
|
| 2292 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
2304 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| 2293 |
|
2305 |
|
| 2294 |
static {
|
2306 |
static {
|
| 2295 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
2307 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| Line 2304... |
Line 2316... |
| 2304 |
switch(fieldId) {
|
2316 |
switch(fieldId) {
|
| 2305 |
case 1: // ITEM_ID
|
2317 |
case 1: // ITEM_ID
|
| 2306 |
return ITEM_ID;
|
2318 |
return ITEM_ID;
|
| 2307 |
case 2: // DESTINATION_PIN
|
2319 |
case 2: // DESTINATION_PIN
|
| 2308 |
return DESTINATION_PIN;
|
2320 |
return DESTINATION_PIN;
|
| - |
|
2321 |
case 3: // TYPE
|
| - |
|
2322 |
return TYPE;
|
| 2309 |
default:
|
2323 |
default:
|
| 2310 |
return null;
|
2324 |
return null;
|
| 2311 |
}
|
2325 |
}
|
| 2312 |
}
|
2326 |
}
|
| 2313 |
|
2327 |
|
| Line 2354... |
Line 2368... |
| 2354 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
2368 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 2355 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
2369 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 2356 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
2370 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 2357 |
tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
2371 |
tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 2358 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
2372 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| - |
|
2373 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
2374 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
|
| 2359 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
2375 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 2360 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_args.class, metaDataMap);
|
2376 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_args.class, metaDataMap);
|
| 2361 |
}
|
2377 |
}
|
| 2362 |
|
2378 |
|
| 2363 |
public getLogisticsEstimation_args() {
|
2379 |
public getLogisticsEstimation_args() {
|
| 2364 |
}
|
2380 |
}
|
| 2365 |
|
2381 |
|
| 2366 |
public getLogisticsEstimation_args(
|
2382 |
public getLogisticsEstimation_args(
|
| 2367 |
long itemId,
|
2383 |
long itemId,
|
| 2368 |
String destination_pin)
|
2384 |
String destination_pin,
|
| - |
|
2385 |
DeliveryType type)
|
| 2369 |
{
|
2386 |
{
|
| 2370 |
this();
|
2387 |
this();
|
| 2371 |
this.itemId = itemId;
|
2388 |
this.itemId = itemId;
|
| 2372 |
setItemIdIsSet(true);
|
2389 |
setItemIdIsSet(true);
|
| 2373 |
this.destination_pin = destination_pin;
|
2390 |
this.destination_pin = destination_pin;
|
| - |
|
2391 |
this.type = type;
|
| 2374 |
}
|
2392 |
}
|
| 2375 |
|
2393 |
|
| 2376 |
/**
|
2394 |
/**
|
| 2377 |
* Performs a deep copy on <i>other</i>.
|
2395 |
* Performs a deep copy on <i>other</i>.
|
| 2378 |
*/
|
2396 |
*/
|
| Line 2381... |
Line 2399... |
| 2381 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
2399 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 2382 |
this.itemId = other.itemId;
|
2400 |
this.itemId = other.itemId;
|
| 2383 |
if (other.isSetDestination_pin()) {
|
2401 |
if (other.isSetDestination_pin()) {
|
| 2384 |
this.destination_pin = other.destination_pin;
|
2402 |
this.destination_pin = other.destination_pin;
|
| 2385 |
}
|
2403 |
}
|
| - |
|
2404 |
if (other.isSetType()) {
|
| - |
|
2405 |
this.type = other.type;
|
| - |
|
2406 |
}
|
| 2386 |
}
|
2407 |
}
|
| 2387 |
|
2408 |
|
| 2388 |
public getLogisticsEstimation_args deepCopy() {
|
2409 |
public getLogisticsEstimation_args deepCopy() {
|
| 2389 |
return new getLogisticsEstimation_args(this);
|
2410 |
return new getLogisticsEstimation_args(this);
|
| 2390 |
}
|
2411 |
}
|
| Line 2392... |
Line 2413... |
| 2392 |
@Override
|
2413 |
@Override
|
| 2393 |
public void clear() {
|
2414 |
public void clear() {
|
| 2394 |
setItemIdIsSet(false);
|
2415 |
setItemIdIsSet(false);
|
| 2395 |
this.itemId = 0;
|
2416 |
this.itemId = 0;
|
| 2396 |
this.destination_pin = null;
|
2417 |
this.destination_pin = null;
|
| - |
|
2418 |
this.type = null;
|
| 2397 |
}
|
2419 |
}
|
| 2398 |
|
2420 |
|
| 2399 |
public long getItemId() {
|
2421 |
public long getItemId() {
|
| 2400 |
return this.itemId;
|
2422 |
return this.itemId;
|
| 2401 |
}
|
2423 |
}
|
| Line 2439... |
Line 2461... |
| 2439 |
if (!value) {
|
2461 |
if (!value) {
|
| 2440 |
this.destination_pin = null;
|
2462 |
this.destination_pin = null;
|
| 2441 |
}
|
2463 |
}
|
| 2442 |
}
|
2464 |
}
|
| 2443 |
|
2465 |
|
| - |
|
2466 |
/**
|
| - |
|
2467 |
*
|
| - |
|
2468 |
* @see DeliveryType
|
| - |
|
2469 |
*/
|
| - |
|
2470 |
public DeliveryType getType() {
|
| - |
|
2471 |
return this.type;
|
| - |
|
2472 |
}
|
| - |
|
2473 |
|
| - |
|
2474 |
/**
|
| - |
|
2475 |
*
|
| - |
|
2476 |
* @see DeliveryType
|
| - |
|
2477 |
*/
|
| - |
|
2478 |
public void setType(DeliveryType type) {
|
| - |
|
2479 |
this.type = type;
|
| - |
|
2480 |
}
|
| - |
|
2481 |
|
| - |
|
2482 |
public void unsetType() {
|
| - |
|
2483 |
this.type = null;
|
| - |
|
2484 |
}
|
| - |
|
2485 |
|
| - |
|
2486 |
/** Returns true if field type is set (has been assigned a value) and false otherwise */
|
| - |
|
2487 |
public boolean isSetType() {
|
| - |
|
2488 |
return this.type != null;
|
| - |
|
2489 |
}
|
| - |
|
2490 |
|
| - |
|
2491 |
public void setTypeIsSet(boolean value) {
|
| - |
|
2492 |
if (!value) {
|
| - |
|
2493 |
this.type = null;
|
| - |
|
2494 |
}
|
| - |
|
2495 |
}
|
| - |
|
2496 |
|
| 2444 |
public void setFieldValue(_Fields field, Object value) {
|
2497 |
public void setFieldValue(_Fields field, Object value) {
|
| 2445 |
switch (field) {
|
2498 |
switch (field) {
|
| 2446 |
case ITEM_ID:
|
2499 |
case ITEM_ID:
|
| 2447 |
if (value == null) {
|
2500 |
if (value == null) {
|
| 2448 |
unsetItemId();
|
2501 |
unsetItemId();
|
| Line 2457... |
Line 2510... |
| 2457 |
} else {
|
2510 |
} else {
|
| 2458 |
setDestination_pin((String)value);
|
2511 |
setDestination_pin((String)value);
|
| 2459 |
}
|
2512 |
}
|
| 2460 |
break;
|
2513 |
break;
|
| 2461 |
|
2514 |
|
| - |
|
2515 |
case TYPE:
|
| - |
|
2516 |
if (value == null) {
|
| - |
|
2517 |
unsetType();
|
| - |
|
2518 |
} else {
|
| - |
|
2519 |
setType((DeliveryType)value);
|
| - |
|
2520 |
}
|
| - |
|
2521 |
break;
|
| - |
|
2522 |
|
| 2462 |
}
|
2523 |
}
|
| 2463 |
}
|
2524 |
}
|
| 2464 |
|
2525 |
|
| 2465 |
public Object getFieldValue(_Fields field) {
|
2526 |
public Object getFieldValue(_Fields field) {
|
| 2466 |
switch (field) {
|
2527 |
switch (field) {
|
| Line 2468... |
Line 2529... |
| 2468 |
return Long.valueOf(getItemId());
|
2529 |
return Long.valueOf(getItemId());
|
| 2469 |
|
2530 |
|
| 2470 |
case DESTINATION_PIN:
|
2531 |
case DESTINATION_PIN:
|
| 2471 |
return getDestination_pin();
|
2532 |
return getDestination_pin();
|
| 2472 |
|
2533 |
|
| - |
|
2534 |
case TYPE:
|
| - |
|
2535 |
return getType();
|
| - |
|
2536 |
|
| 2473 |
}
|
2537 |
}
|
| 2474 |
throw new IllegalStateException();
|
2538 |
throw new IllegalStateException();
|
| 2475 |
}
|
2539 |
}
|
| 2476 |
|
2540 |
|
| 2477 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
2541 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| Line 2483... |
Line 2547... |
| 2483 |
switch (field) {
|
2547 |
switch (field) {
|
| 2484 |
case ITEM_ID:
|
2548 |
case ITEM_ID:
|
| 2485 |
return isSetItemId();
|
2549 |
return isSetItemId();
|
| 2486 |
case DESTINATION_PIN:
|
2550 |
case DESTINATION_PIN:
|
| 2487 |
return isSetDestination_pin();
|
2551 |
return isSetDestination_pin();
|
| - |
|
2552 |
case TYPE:
|
| - |
|
2553 |
return isSetType();
|
| 2488 |
}
|
2554 |
}
|
| 2489 |
throw new IllegalStateException();
|
2555 |
throw new IllegalStateException();
|
| 2490 |
}
|
2556 |
}
|
| 2491 |
|
2557 |
|
| 2492 |
@Override
|
2558 |
@Override
|
| Line 2518... |
Line 2584... |
| 2518 |
return false;
|
2584 |
return false;
|
| 2519 |
if (!this.destination_pin.equals(that.destination_pin))
|
2585 |
if (!this.destination_pin.equals(that.destination_pin))
|
| 2520 |
return false;
|
2586 |
return false;
|
| 2521 |
}
|
2587 |
}
|
| 2522 |
|
2588 |
|
| - |
|
2589 |
boolean this_present_type = true && this.isSetType();
|
| - |
|
2590 |
boolean that_present_type = true && that.isSetType();
|
| - |
|
2591 |
if (this_present_type || that_present_type) {
|
| - |
|
2592 |
if (!(this_present_type && that_present_type))
|
| - |
|
2593 |
return false;
|
| - |
|
2594 |
if (!this.type.equals(that.type))
|
| - |
|
2595 |
return false;
|
| - |
|
2596 |
}
|
| - |
|
2597 |
|
| 2523 |
return true;
|
2598 |
return true;
|
| 2524 |
}
|
2599 |
}
|
| 2525 |
|
2600 |
|
| 2526 |
@Override
|
2601 |
@Override
|
| 2527 |
public int hashCode() {
|
2602 |
public int hashCode() {
|
| Line 2554... |
Line 2629... |
| 2554 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
|
2629 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
|
| 2555 |
if (lastComparison != 0) {
|
2630 |
if (lastComparison != 0) {
|
| 2556 |
return lastComparison;
|
2631 |
return lastComparison;
|
| 2557 |
}
|
2632 |
}
|
| 2558 |
}
|
2633 |
}
|
| - |
|
2634 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
| - |
|
2635 |
if (lastComparison != 0) {
|
| - |
|
2636 |
return lastComparison;
|
| - |
|
2637 |
}
|
| - |
|
2638 |
if (isSetType()) {
|
| - |
|
2639 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
| - |
|
2640 |
if (lastComparison != 0) {
|
| - |
|
2641 |
return lastComparison;
|
| - |
|
2642 |
}
|
| - |
|
2643 |
}
|
| 2559 |
return 0;
|
2644 |
return 0;
|
| 2560 |
}
|
2645 |
}
|
| 2561 |
|
2646 |
|
| 2562 |
public _Fields fieldForId(int fieldId) {
|
2647 |
public _Fields fieldForId(int fieldId) {
|
| 2563 |
return _Fields.findByThriftId(fieldId);
|
2648 |
return _Fields.findByThriftId(fieldId);
|
| Line 2586... |
Line 2671... |
| 2586 |
this.destination_pin = iprot.readString();
|
2671 |
this.destination_pin = iprot.readString();
|
| 2587 |
} else {
|
2672 |
} else {
|
| 2588 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
2673 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2589 |
}
|
2674 |
}
|
| 2590 |
break;
|
2675 |
break;
|
| - |
|
2676 |
case 3: // TYPE
|
| - |
|
2677 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
| - |
|
2678 |
this.type = DeliveryType.findByValue(iprot.readI32());
|
| - |
|
2679 |
} else {
|
| - |
|
2680 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
2681 |
}
|
| - |
|
2682 |
break;
|
| 2591 |
default:
|
2683 |
default:
|
| 2592 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
2684 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 2593 |
}
|
2685 |
}
|
| 2594 |
iprot.readFieldEnd();
|
2686 |
iprot.readFieldEnd();
|
| 2595 |
}
|
2687 |
}
|
| Line 2607... |
Line 2699... |
| 2607 |
if (this.destination_pin != null) {
|
2699 |
if (this.destination_pin != null) {
|
| 2608 |
oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
|
2700 |
oprot.writeFieldBegin(DESTINATION_PIN_FIELD_DESC);
|
| 2609 |
oprot.writeString(this.destination_pin);
|
2701 |
oprot.writeString(this.destination_pin);
|
| 2610 |
oprot.writeFieldEnd();
|
2702 |
oprot.writeFieldEnd();
|
| 2611 |
}
|
2703 |
}
|
| - |
|
2704 |
if (this.type != null) {
|
| - |
|
2705 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
| - |
|
2706 |
oprot.writeI32(this.type.getValue());
|
| - |
|
2707 |
oprot.writeFieldEnd();
|
| - |
|
2708 |
}
|
| 2612 |
oprot.writeFieldStop();
|
2709 |
oprot.writeFieldStop();
|
| 2613 |
oprot.writeStructEnd();
|
2710 |
oprot.writeStructEnd();
|
| 2614 |
}
|
2711 |
}
|
| 2615 |
|
2712 |
|
| 2616 |
@Override
|
2713 |
@Override
|
| Line 2627... |
Line 2724... |
| 2627 |
sb.append("null");
|
2724 |
sb.append("null");
|
| 2628 |
} else {
|
2725 |
} else {
|
| 2629 |
sb.append(this.destination_pin);
|
2726 |
sb.append(this.destination_pin);
|
| 2630 |
}
|
2727 |
}
|
| 2631 |
first = false;
|
2728 |
first = false;
|
| - |
|
2729 |
if (!first) sb.append(", ");
|
| - |
|
2730 |
sb.append("type:");
|
| - |
|
2731 |
if (this.type == null) {
|
| - |
|
2732 |
sb.append("null");
|
| - |
|
2733 |
} else {
|
| - |
|
2734 |
sb.append(this.type);
|
| - |
|
2735 |
}
|
| - |
|
2736 |
first = false;
|
| 2632 |
sb.append(")");
|
2737 |
sb.append(")");
|
| 2633 |
return sb.toString();
|
2738 |
return sb.toString();
|
| 2634 |
}
|
2739 |
}
|
| 2635 |
|
2740 |
|
| 2636 |
public void validate() throws org.apache.thrift.TException {
|
2741 |
public void validate() throws org.apache.thrift.TException {
|