| Line 51... |
Line 51... |
| 51 |
* 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.
|
| 52 |
*
|
52 |
*
|
| 53 |
* @param destination_pincode
|
53 |
* @param destination_pincode
|
| 54 |
* @param item_id
|
54 |
* @param item_id
|
| 55 |
* @param type
|
55 |
* @param type
|
| - |
|
56 |
* @param pickUp
|
| 56 |
*/
|
57 |
*/
|
| 57 |
public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
|
58 |
public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws LogisticsServiceException, org.apache.thrift.TException;
|
| 58 |
|
59 |
|
| 59 |
/**
|
60 |
/**
|
| 60 |
* Returns an unused AWB number for the given provider.
|
61 |
* Returns an unused AWB number for the given provider.
|
| 61 |
*
|
62 |
*
|
| 62 |
* @param providerId
|
63 |
* @param providerId
|
| Line 132... |
Line 133... |
| 132 |
|
133 |
|
| 133 |
public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllProviders_call> resultHandler) throws org.apache.thrift.TException;
|
134 |
public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllProviders_call> resultHandler) throws org.apache.thrift.TException;
|
| 134 |
|
135 |
|
| 135 |
public void getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException;
|
136 |
public void getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException;
|
| 136 |
|
137 |
|
| 137 |
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;
|
138 |
public void getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsInfo_call> resultHandler) throws org.apache.thrift.TException;
|
| 138 |
|
139 |
|
| 139 |
public void getEmptyAWB(long providerId, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException;
|
140 |
public void getEmptyAWB(long providerId, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException;
|
| 140 |
|
141 |
|
| 141 |
public void getShipmentInfo(String awb, long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
|
142 |
public void getShipmentInfo(String awb, long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
|
| 142 |
|
143 |
|
| Line 255... |
Line 256... |
| 255 |
throw result.se;
|
256 |
throw result.se;
|
| 256 |
}
|
257 |
}
|
| 257 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsEstimation failed: unknown result");
|
258 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsEstimation failed: unknown result");
|
| 258 |
}
|
259 |
}
|
| 259 |
|
260 |
|
| 260 |
public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
|
261 |
public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws LogisticsServiceException, org.apache.thrift.TException
|
| 261 |
{
|
262 |
{
|
| 262 |
send_getLogisticsInfo(destination_pincode, item_id, type);
|
263 |
send_getLogisticsInfo(destination_pincode, item_id, type, pickUp);
|
| 263 |
return recv_getLogisticsInfo();
|
264 |
return recv_getLogisticsInfo();
|
| 264 |
}
|
265 |
}
|
| 265 |
|
266 |
|
| 266 |
public void send_getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type) throws org.apache.thrift.TException
|
267 |
public void send_getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws org.apache.thrift.TException
|
| 267 |
{
|
268 |
{
|
| 268 |
getLogisticsInfo_args args = new getLogisticsInfo_args();
|
269 |
getLogisticsInfo_args args = new getLogisticsInfo_args();
|
| 269 |
args.setDestination_pincode(destination_pincode);
|
270 |
args.setDestination_pincode(destination_pincode);
|
| 270 |
args.setItem_id(item_id);
|
271 |
args.setItem_id(item_id);
|
| 271 |
args.setType(type);
|
272 |
args.setType(type);
|
| - |
|
273 |
args.setPickUp(pickUp);
|
| 272 |
sendBase("getLogisticsInfo", args);
|
274 |
sendBase("getLogisticsInfo", args);
|
| 273 |
}
|
275 |
}
|
| 274 |
|
276 |
|
| 275 |
public LogisticsInfo recv_getLogisticsInfo() throws LogisticsServiceException, org.apache.thrift.TException
|
277 |
public LogisticsInfo recv_getLogisticsInfo() throws LogisticsServiceException, org.apache.thrift.TException
|
| 276 |
{
|
278 |
{
|
| Line 648... |
Line 650... |
| 648 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
650 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 649 |
return (new Client(prot)).recv_getLogisticsEstimation();
|
651 |
return (new Client(prot)).recv_getLogisticsEstimation();
|
| 650 |
}
|
652 |
}
|
| 651 |
}
|
653 |
}
|
| 652 |
|
654 |
|
| 653 |
public void getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getLogisticsInfo_call> resultHandler) throws org.apache.thrift.TException {
|
655 |
public void getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp, org.apache.thrift.async.AsyncMethodCallback<getLogisticsInfo_call> resultHandler) throws org.apache.thrift.TException {
|
| 654 |
checkReady();
|
656 |
checkReady();
|
| 655 |
getLogisticsInfo_call method_call = new getLogisticsInfo_call(destination_pincode, item_id, type, resultHandler, this, ___protocolFactory, ___transport);
|
657 |
getLogisticsInfo_call method_call = new getLogisticsInfo_call(destination_pincode, item_id, type, pickUp, resultHandler, this, ___protocolFactory, ___transport);
|
| 656 |
this.___currentMethod = method_call;
|
658 |
this.___currentMethod = method_call;
|
| 657 |
___manager.call(method_call);
|
659 |
___manager.call(method_call);
|
| 658 |
}
|
660 |
}
|
| 659 |
|
661 |
|
| 660 |
public static class getLogisticsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
|
662 |
public static class getLogisticsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| 661 |
private String destination_pincode;
|
663 |
private String destination_pincode;
|
| 662 |
private long item_id;
|
664 |
private long item_id;
|
| 663 |
private DeliveryType type;
|
665 |
private DeliveryType type;
|
| - |
|
666 |
private PickUpType pickUp;
|
| 664 |
public getLogisticsInfo_call(String destination_pincode, long item_id, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getLogisticsInfo_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
667 |
public getLogisticsInfo_call(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp, org.apache.thrift.async.AsyncMethodCallback<getLogisticsInfo_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
| 665 |
super(client, protocolFactory, transport, resultHandler, false);
|
668 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 666 |
this.destination_pincode = destination_pincode;
|
669 |
this.destination_pincode = destination_pincode;
|
| 667 |
this.item_id = item_id;
|
670 |
this.item_id = item_id;
|
| 668 |
this.type = type;
|
671 |
this.type = type;
|
| - |
|
672 |
this.pickUp = pickUp;
|
| 669 |
}
|
673 |
}
|
| 670 |
|
674 |
|
| 671 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
675 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 672 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
676 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
| 673 |
getLogisticsInfo_args args = new getLogisticsInfo_args();
|
677 |
getLogisticsInfo_args args = new getLogisticsInfo_args();
|
| 674 |
args.setDestination_pincode(destination_pincode);
|
678 |
args.setDestination_pincode(destination_pincode);
|
| 675 |
args.setItem_id(item_id);
|
679 |
args.setItem_id(item_id);
|
| 676 |
args.setType(type);
|
680 |
args.setType(type);
|
| - |
|
681 |
args.setPickUp(pickUp);
|
| 677 |
args.write(prot);
|
682 |
args.write(prot);
|
| 678 |
prot.writeMessageEnd();
|
683 |
prot.writeMessageEnd();
|
| 679 |
}
|
684 |
}
|
| 680 |
|
685 |
|
| 681 |
public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
|
686 |
public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
|
| Line 1126... |
Line 1131... |
| 1126 |
}
|
1131 |
}
|
| 1127 |
|
1132 |
|
| 1128 |
protected getLogisticsInfo_result getResult(I iface, getLogisticsInfo_args args) throws org.apache.thrift.TException {
|
1133 |
protected getLogisticsInfo_result getResult(I iface, getLogisticsInfo_args args) throws org.apache.thrift.TException {
|
| 1129 |
getLogisticsInfo_result result = new getLogisticsInfo_result();
|
1134 |
getLogisticsInfo_result result = new getLogisticsInfo_result();
|
| 1130 |
try {
|
1135 |
try {
|
| 1131 |
result.success = iface.getLogisticsInfo(args.destination_pincode, args.item_id, args.type);
|
1136 |
result.success = iface.getLogisticsInfo(args.destination_pincode, args.item_id, args.type, args.pickUp);
|
| 1132 |
} catch (LogisticsServiceException se) {
|
1137 |
} catch (LogisticsServiceException se) {
|
| 1133 |
result.se = se;
|
1138 |
result.se = se;
|
| 1134 |
}
|
1139 |
}
|
| 1135 |
return result;
|
1140 |
return result;
|
| 1136 |
}
|
1141 |
}
|
| Line 3475... |
Line 3480... |
| 3475 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_args");
|
3480 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_args");
|
| 3476 |
|
3481 |
|
| 3477 |
private static final org.apache.thrift.protocol.TField DESTINATION_PINCODE_FIELD_DESC = new org.apache.thrift.protocol.TField("destination_pincode", org.apache.thrift.protocol.TType.STRING, (short)1);
|
3482 |
private static final org.apache.thrift.protocol.TField DESTINATION_PINCODE_FIELD_DESC = new org.apache.thrift.protocol.TField("destination_pincode", org.apache.thrift.protocol.TType.STRING, (short)1);
|
| 3478 |
private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)2);
|
3483 |
private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)2);
|
| 3479 |
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);
|
3484 |
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);
|
| - |
|
3485 |
private static final org.apache.thrift.protocol.TField PICK_UP_FIELD_DESC = new org.apache.thrift.protocol.TField("pickUp", org.apache.thrift.protocol.TType.I32, (short)4);
|
| 3480 |
|
3486 |
|
| 3481 |
private String destination_pincode; // required
|
3487 |
private String destination_pincode; // required
|
| 3482 |
private long item_id; // required
|
3488 |
private long item_id; // required
|
| 3483 |
private DeliveryType type; // required
|
3489 |
private DeliveryType type; // required
|
| - |
|
3490 |
private PickUpType pickUp; // required
|
| 3484 |
|
3491 |
|
| 3485 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
3492 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3486 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
3493 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 3487 |
DESTINATION_PINCODE((short)1, "destination_pincode"),
|
3494 |
DESTINATION_PINCODE((short)1, "destination_pincode"),
|
| 3488 |
ITEM_ID((short)2, "item_id"),
|
3495 |
ITEM_ID((short)2, "item_id"),
|
| 3489 |
/**
|
3496 |
/**
|
| 3490 |
*
|
3497 |
*
|
| 3491 |
* @see DeliveryType
|
3498 |
* @see DeliveryType
|
| 3492 |
*/
|
3499 |
*/
|
| 3493 |
TYPE((short)3, "type");
|
3500 |
TYPE((short)3, "type"),
|
| - |
|
3501 |
/**
|
| - |
|
3502 |
*
|
| - |
|
3503 |
* @see PickUpType
|
| - |
|
3504 |
*/
|
| - |
|
3505 |
PICK_UP((short)4, "pickUp");
|
| 3494 |
|
3506 |
|
| 3495 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
3507 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| 3496 |
|
3508 |
|
| 3497 |
static {
|
3509 |
static {
|
| 3498 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
3510 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| Line 3509... |
Line 3521... |
| 3509 |
return DESTINATION_PINCODE;
|
3521 |
return DESTINATION_PINCODE;
|
| 3510 |
case 2: // ITEM_ID
|
3522 |
case 2: // ITEM_ID
|
| 3511 |
return ITEM_ID;
|
3523 |
return ITEM_ID;
|
| 3512 |
case 3: // TYPE
|
3524 |
case 3: // TYPE
|
| 3513 |
return TYPE;
|
3525 |
return TYPE;
|
| - |
|
3526 |
case 4: // PICK_UP
|
| - |
|
3527 |
return PICK_UP;
|
| 3514 |
default:
|
3528 |
default:
|
| 3515 |
return null;
|
3529 |
return null;
|
| 3516 |
}
|
3530 |
}
|
| 3517 |
}
|
3531 |
}
|
| 3518 |
|
3532 |
|
| Line 3561... |
Line 3575... |
| 3561 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
3575 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 3562 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
3576 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 3563 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
3577 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 3564 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
3578 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 3565 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
|
3579 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
|
| - |
|
3580 |
tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
3581 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PickUpType.class)));
|
| 3566 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
3582 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 3567 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_args.class, metaDataMap);
|
3583 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_args.class, metaDataMap);
|
| 3568 |
}
|
3584 |
}
|
| 3569 |
|
3585 |
|
| 3570 |
public getLogisticsInfo_args() {
|
3586 |
public getLogisticsInfo_args() {
|
| 3571 |
}
|
3587 |
}
|
| 3572 |
|
3588 |
|
| 3573 |
public getLogisticsInfo_args(
|
3589 |
public getLogisticsInfo_args(
|
| 3574 |
String destination_pincode,
|
3590 |
String destination_pincode,
|
| 3575 |
long item_id,
|
3591 |
long item_id,
|
| 3576 |
DeliveryType type)
|
3592 |
DeliveryType type,
|
| - |
|
3593 |
PickUpType pickUp)
|
| 3577 |
{
|
3594 |
{
|
| 3578 |
this();
|
3595 |
this();
|
| 3579 |
this.destination_pincode = destination_pincode;
|
3596 |
this.destination_pincode = destination_pincode;
|
| 3580 |
this.item_id = item_id;
|
3597 |
this.item_id = item_id;
|
| 3581 |
setItem_idIsSet(true);
|
3598 |
setItem_idIsSet(true);
|
| 3582 |
this.type = type;
|
3599 |
this.type = type;
|
| - |
|
3600 |
this.pickUp = pickUp;
|
| 3583 |
}
|
3601 |
}
|
| 3584 |
|
3602 |
|
| 3585 |
/**
|
3603 |
/**
|
| 3586 |
* Performs a deep copy on <i>other</i>.
|
3604 |
* Performs a deep copy on <i>other</i>.
|
| 3587 |
*/
|
3605 |
*/
|
| Line 3593... |
Line 3611... |
| 3593 |
}
|
3611 |
}
|
| 3594 |
this.item_id = other.item_id;
|
3612 |
this.item_id = other.item_id;
|
| 3595 |
if (other.isSetType()) {
|
3613 |
if (other.isSetType()) {
|
| 3596 |
this.type = other.type;
|
3614 |
this.type = other.type;
|
| 3597 |
}
|
3615 |
}
|
| - |
|
3616 |
if (other.isSetPickUp()) {
|
| - |
|
3617 |
this.pickUp = other.pickUp;
|
| - |
|
3618 |
}
|
| 3598 |
}
|
3619 |
}
|
| 3599 |
|
3620 |
|
| 3600 |
public getLogisticsInfo_args deepCopy() {
|
3621 |
public getLogisticsInfo_args deepCopy() {
|
| 3601 |
return new getLogisticsInfo_args(this);
|
3622 |
return new getLogisticsInfo_args(this);
|
| 3602 |
}
|
3623 |
}
|
| Line 3605... |
Line 3626... |
| 3605 |
public void clear() {
|
3626 |
public void clear() {
|
| 3606 |
this.destination_pincode = null;
|
3627 |
this.destination_pincode = null;
|
| 3607 |
setItem_idIsSet(false);
|
3628 |
setItem_idIsSet(false);
|
| 3608 |
this.item_id = 0;
|
3629 |
this.item_id = 0;
|
| 3609 |
this.type = null;
|
3630 |
this.type = null;
|
| - |
|
3631 |
this.pickUp = null;
|
| 3610 |
}
|
3632 |
}
|
| 3611 |
|
3633 |
|
| 3612 |
public String getDestination_pincode() {
|
3634 |
public String getDestination_pincode() {
|
| 3613 |
return this.destination_pincode;
|
3635 |
return this.destination_pincode;
|
| 3614 |
}
|
3636 |
}
|
| Line 3683... |
Line 3705... |
| 3683 |
if (!value) {
|
3705 |
if (!value) {
|
| 3684 |
this.type = null;
|
3706 |
this.type = null;
|
| 3685 |
}
|
3707 |
}
|
| 3686 |
}
|
3708 |
}
|
| 3687 |
|
3709 |
|
| - |
|
3710 |
/**
|
| - |
|
3711 |
*
|
| - |
|
3712 |
* @see PickUpType
|
| - |
|
3713 |
*/
|
| - |
|
3714 |
public PickUpType getPickUp() {
|
| - |
|
3715 |
return this.pickUp;
|
| - |
|
3716 |
}
|
| - |
|
3717 |
|
| - |
|
3718 |
/**
|
| - |
|
3719 |
*
|
| - |
|
3720 |
* @see PickUpType
|
| - |
|
3721 |
*/
|
| - |
|
3722 |
public void setPickUp(PickUpType pickUp) {
|
| - |
|
3723 |
this.pickUp = pickUp;
|
| - |
|
3724 |
}
|
| - |
|
3725 |
|
| - |
|
3726 |
public void unsetPickUp() {
|
| - |
|
3727 |
this.pickUp = null;
|
| - |
|
3728 |
}
|
| - |
|
3729 |
|
| - |
|
3730 |
/** Returns true if field pickUp is set (has been assigned a value) and false otherwise */
|
| - |
|
3731 |
public boolean isSetPickUp() {
|
| - |
|
3732 |
return this.pickUp != null;
|
| - |
|
3733 |
}
|
| - |
|
3734 |
|
| - |
|
3735 |
public void setPickUpIsSet(boolean value) {
|
| - |
|
3736 |
if (!value) {
|
| - |
|
3737 |
this.pickUp = null;
|
| - |
|
3738 |
}
|
| - |
|
3739 |
}
|
| - |
|
3740 |
|
| 3688 |
public void setFieldValue(_Fields field, Object value) {
|
3741 |
public void setFieldValue(_Fields field, Object value) {
|
| 3689 |
switch (field) {
|
3742 |
switch (field) {
|
| 3690 |
case DESTINATION_PINCODE:
|
3743 |
case DESTINATION_PINCODE:
|
| 3691 |
if (value == null) {
|
3744 |
if (value == null) {
|
| 3692 |
unsetDestination_pincode();
|
3745 |
unsetDestination_pincode();
|
| Line 3709... |
Line 3762... |
| 3709 |
} else {
|
3762 |
} else {
|
| 3710 |
setType((DeliveryType)value);
|
3763 |
setType((DeliveryType)value);
|
| 3711 |
}
|
3764 |
}
|
| 3712 |
break;
|
3765 |
break;
|
| 3713 |
|
3766 |
|
| - |
|
3767 |
case PICK_UP:
|
| - |
|
3768 |
if (value == null) {
|
| - |
|
3769 |
unsetPickUp();
|
| - |
|
3770 |
} else {
|
| - |
|
3771 |
setPickUp((PickUpType)value);
|
| - |
|
3772 |
}
|
| - |
|
3773 |
break;
|
| - |
|
3774 |
|
| 3714 |
}
|
3775 |
}
|
| 3715 |
}
|
3776 |
}
|
| 3716 |
|
3777 |
|
| 3717 |
public Object getFieldValue(_Fields field) {
|
3778 |
public Object getFieldValue(_Fields field) {
|
| 3718 |
switch (field) {
|
3779 |
switch (field) {
|
| Line 3723... |
Line 3784... |
| 3723 |
return Long.valueOf(getItem_id());
|
3784 |
return Long.valueOf(getItem_id());
|
| 3724 |
|
3785 |
|
| 3725 |
case TYPE:
|
3786 |
case TYPE:
|
| 3726 |
return getType();
|
3787 |
return getType();
|
| 3727 |
|
3788 |
|
| - |
|
3789 |
case PICK_UP:
|
| - |
|
3790 |
return getPickUp();
|
| - |
|
3791 |
|
| 3728 |
}
|
3792 |
}
|
| 3729 |
throw new IllegalStateException();
|
3793 |
throw new IllegalStateException();
|
| 3730 |
}
|
3794 |
}
|
| 3731 |
|
3795 |
|
| 3732 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
3796 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| Line 3740... |
Line 3804... |
| 3740 |
return isSetDestination_pincode();
|
3804 |
return isSetDestination_pincode();
|
| 3741 |
case ITEM_ID:
|
3805 |
case ITEM_ID:
|
| 3742 |
return isSetItem_id();
|
3806 |
return isSetItem_id();
|
| 3743 |
case TYPE:
|
3807 |
case TYPE:
|
| 3744 |
return isSetType();
|
3808 |
return isSetType();
|
| - |
|
3809 |
case PICK_UP:
|
| - |
|
3810 |
return isSetPickUp();
|
| 3745 |
}
|
3811 |
}
|
| 3746 |
throw new IllegalStateException();
|
3812 |
throw new IllegalStateException();
|
| 3747 |
}
|
3813 |
}
|
| 3748 |
|
3814 |
|
| 3749 |
@Override
|
3815 |
@Override
|
| Line 3784... |
Line 3850... |
| 3784 |
return false;
|
3850 |
return false;
|
| 3785 |
if (!this.type.equals(that.type))
|
3851 |
if (!this.type.equals(that.type))
|
| 3786 |
return false;
|
3852 |
return false;
|
| 3787 |
}
|
3853 |
}
|
| 3788 |
|
3854 |
|
| - |
|
3855 |
boolean this_present_pickUp = true && this.isSetPickUp();
|
| - |
|
3856 |
boolean that_present_pickUp = true && that.isSetPickUp();
|
| - |
|
3857 |
if (this_present_pickUp || that_present_pickUp) {
|
| - |
|
3858 |
if (!(this_present_pickUp && that_present_pickUp))
|
| - |
|
3859 |
return false;
|
| - |
|
3860 |
if (!this.pickUp.equals(that.pickUp))
|
| - |
|
3861 |
return false;
|
| - |
|
3862 |
}
|
| - |
|
3863 |
|
| 3789 |
return true;
|
3864 |
return true;
|
| 3790 |
}
|
3865 |
}
|
| 3791 |
|
3866 |
|
| 3792 |
@Override
|
3867 |
@Override
|
| 3793 |
public int hashCode() {
|
3868 |
public int hashCode() {
|
| Line 3830... |
Line 3905... |
| 3830 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
3905 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
| 3831 |
if (lastComparison != 0) {
|
3906 |
if (lastComparison != 0) {
|
| 3832 |
return lastComparison;
|
3907 |
return lastComparison;
|
| 3833 |
}
|
3908 |
}
|
| 3834 |
}
|
3909 |
}
|
| - |
|
3910 |
lastComparison = Boolean.valueOf(isSetPickUp()).compareTo(typedOther.isSetPickUp());
|
| - |
|
3911 |
if (lastComparison != 0) {
|
| - |
|
3912 |
return lastComparison;
|
| - |
|
3913 |
}
|
| - |
|
3914 |
if (isSetPickUp()) {
|
| - |
|
3915 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
|
| - |
|
3916 |
if (lastComparison != 0) {
|
| - |
|
3917 |
return lastComparison;
|
| - |
|
3918 |
}
|
| - |
|
3919 |
}
|
| 3835 |
return 0;
|
3920 |
return 0;
|
| 3836 |
}
|
3921 |
}
|
| 3837 |
|
3922 |
|
| 3838 |
public _Fields fieldForId(int fieldId) {
|
3923 |
public _Fields fieldForId(int fieldId) {
|
| 3839 |
return _Fields.findByThriftId(fieldId);
|
3924 |
return _Fields.findByThriftId(fieldId);
|
| Line 3869... |
Line 3954... |
| 3869 |
this.type = DeliveryType.findByValue(iprot.readI32());
|
3954 |
this.type = DeliveryType.findByValue(iprot.readI32());
|
| 3870 |
} else {
|
3955 |
} else {
|
| 3871 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
3956 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 3872 |
}
|
3957 |
}
|
| 3873 |
break;
|
3958 |
break;
|
| - |
|
3959 |
case 4: // PICK_UP
|
| - |
|
3960 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
| - |
|
3961 |
this.pickUp = PickUpType.findByValue(iprot.readI32());
|
| - |
|
3962 |
} else {
|
| - |
|
3963 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
3964 |
}
|
| - |
|
3965 |
break;
|
| 3874 |
default:
|
3966 |
default:
|
| 3875 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
3967 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 3876 |
}
|
3968 |
}
|
| 3877 |
iprot.readFieldEnd();
|
3969 |
iprot.readFieldEnd();
|
| 3878 |
}
|
3970 |
}
|
| Line 3895... |
Line 3987... |
| 3895 |
if (this.type != null) {
|
3987 |
if (this.type != null) {
|
| 3896 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
3988 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
| 3897 |
oprot.writeI32(this.type.getValue());
|
3989 |
oprot.writeI32(this.type.getValue());
|
| 3898 |
oprot.writeFieldEnd();
|
3990 |
oprot.writeFieldEnd();
|
| 3899 |
}
|
3991 |
}
|
| - |
|
3992 |
if (this.pickUp != null) {
|
| - |
|
3993 |
oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
|
| - |
|
3994 |
oprot.writeI32(this.pickUp.getValue());
|
| - |
|
3995 |
oprot.writeFieldEnd();
|
| - |
|
3996 |
}
|
| 3900 |
oprot.writeFieldStop();
|
3997 |
oprot.writeFieldStop();
|
| 3901 |
oprot.writeStructEnd();
|
3998 |
oprot.writeStructEnd();
|
| 3902 |
}
|
3999 |
}
|
| 3903 |
|
4000 |
|
| 3904 |
@Override
|
4001 |
@Override
|
| Line 3923... |
Line 4020... |
| 3923 |
sb.append("null");
|
4020 |
sb.append("null");
|
| 3924 |
} else {
|
4021 |
} else {
|
| 3925 |
sb.append(this.type);
|
4022 |
sb.append(this.type);
|
| 3926 |
}
|
4023 |
}
|
| 3927 |
first = false;
|
4024 |
first = false;
|
| - |
|
4025 |
if (!first) sb.append(", ");
|
| - |
|
4026 |
sb.append("pickUp:");
|
| - |
|
4027 |
if (this.pickUp == null) {
|
| - |
|
4028 |
sb.append("null");
|
| - |
|
4029 |
} else {
|
| - |
|
4030 |
sb.append(this.pickUp);
|
| - |
|
4031 |
}
|
| - |
|
4032 |
first = false;
|
| 3928 |
sb.append(")");
|
4033 |
sb.append(")");
|
| 3929 |
return sb.toString();
|
4034 |
return sb.toString();
|
| 3930 |
}
|
4035 |
}
|
| 3931 |
|
4036 |
|
| 3932 |
public void validate() throws org.apache.thrift.TException {
|
4037 |
public void validate() throws org.apache.thrift.TException {
|