| Line 54... |
Line 54... |
| 54 |
*
|
54 |
*
|
| 55 |
* @param destination_pincode
|
55 |
* @param destination_pincode
|
| 56 |
* @param item_id
|
56 |
* @param item_id
|
| 57 |
* @param type
|
57 |
* @param type
|
| 58 |
* @param pickUp
|
58 |
* @param pickUp
|
| - |
|
59 |
* @param stateId
|
| 59 |
*/
|
60 |
*/
|
| 60 |
public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws LogisticsServiceException, org.apache.thrift.TException;
|
61 |
public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp, long stateId) throws LogisticsServiceException, org.apache.thrift.TException;
|
| 61 |
|
62 |
|
| 62 |
/**
|
63 |
/**
|
| 63 |
* Returns an unused AWB number for the given provider.
|
64 |
* Returns an unused AWB number for the given provider.
|
| 64 |
*
|
65 |
*
|
| 65 |
* @param providerId
|
66 |
* @param providerId
|
| Line 174... |
Line 175... |
| 174 |
|
175 |
|
| 175 |
public void getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException;
|
176 |
public void getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException;
|
| 176 |
|
177 |
|
| 177 |
public void getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsEstimationForStore_call> resultHandler) throws org.apache.thrift.TException;
|
178 |
public void getLogisticsEstimationForStore(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsEstimationForStore_call> resultHandler) throws org.apache.thrift.TException;
|
| 178 |
|
179 |
|
| 179 |
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;
|
180 |
public void getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp, long stateId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsInfo_call> resultHandler) throws org.apache.thrift.TException;
|
| 180 |
|
181 |
|
| 181 |
public void getEmptyAWB(long providerId, String logisticsTransactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException;
|
182 |
public void getEmptyAWB(long providerId, String logisticsTransactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException;
|
| 182 |
|
183 |
|
| 183 |
public void getShipmentInfo(String awbNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
|
184 |
public void getShipmentInfo(String awbNumber, long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
|
| 184 |
|
185 |
|
| Line 351... |
Line 352... |
| 351 |
throw result.se;
|
352 |
throw result.se;
|
| 352 |
}
|
353 |
}
|
| 353 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsEstimationForStore failed: unknown result");
|
354 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsEstimationForStore failed: unknown result");
|
| 354 |
}
|
355 |
}
|
| 355 |
|
356 |
|
| 356 |
public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws LogisticsServiceException, org.apache.thrift.TException
|
357 |
public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp, long stateId) throws LogisticsServiceException, org.apache.thrift.TException
|
| 357 |
{
|
358 |
{
|
| 358 |
send_getLogisticsInfo(destination_pincode, item_id, type, pickUp);
|
359 |
send_getLogisticsInfo(destination_pincode, item_id, type, pickUp, stateId);
|
| 359 |
return recv_getLogisticsInfo();
|
360 |
return recv_getLogisticsInfo();
|
| 360 |
}
|
361 |
}
|
| 361 |
|
362 |
|
| 362 |
public void send_getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp) throws org.apache.thrift.TException
|
363 |
public void send_getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp, long stateId) throws org.apache.thrift.TException
|
| 363 |
{
|
364 |
{
|
| 364 |
getLogisticsInfo_args args = new getLogisticsInfo_args();
|
365 |
getLogisticsInfo_args args = new getLogisticsInfo_args();
|
| 365 |
args.setDestination_pincode(destination_pincode);
|
366 |
args.setDestination_pincode(destination_pincode);
|
| 366 |
args.setItem_id(item_id);
|
367 |
args.setItem_id(item_id);
|
| 367 |
args.setType(type);
|
368 |
args.setType(type);
|
| 368 |
args.setPickUp(pickUp);
|
369 |
args.setPickUp(pickUp);
|
| - |
|
370 |
args.setStateId(stateId);
|
| 369 |
sendBase("getLogisticsInfo", args);
|
371 |
sendBase("getLogisticsInfo", args);
|
| 370 |
}
|
372 |
}
|
| 371 |
|
373 |
|
| 372 |
public LogisticsInfo recv_getLogisticsInfo() throws LogisticsServiceException, org.apache.thrift.TException
|
374 |
public LogisticsInfo recv_getLogisticsInfo() throws LogisticsServiceException, org.apache.thrift.TException
|
| 373 |
{
|
375 |
{
|
| Line 1112... |
Line 1114... |
| 1112 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
1114 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 1113 |
return (new Client(prot)).recv_getLogisticsEstimationForStore();
|
1115 |
return (new Client(prot)).recv_getLogisticsEstimationForStore();
|
| 1114 |
}
|
1116 |
}
|
| 1115 |
}
|
1117 |
}
|
| 1116 |
|
1118 |
|
| 1117 |
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 {
|
1119 |
public void getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp, long stateId, org.apache.thrift.async.AsyncMethodCallback<getLogisticsInfo_call> resultHandler) throws org.apache.thrift.TException {
|
| 1118 |
checkReady();
|
1120 |
checkReady();
|
| 1119 |
getLogisticsInfo_call method_call = new getLogisticsInfo_call(destination_pincode, item_id, type, pickUp, resultHandler, this, ___protocolFactory, ___transport);
|
1121 |
getLogisticsInfo_call method_call = new getLogisticsInfo_call(destination_pincode, item_id, type, pickUp, stateId, resultHandler, this, ___protocolFactory, ___transport);
|
| 1120 |
this.___currentMethod = method_call;
|
1122 |
this.___currentMethod = method_call;
|
| 1121 |
___manager.call(method_call);
|
1123 |
___manager.call(method_call);
|
| 1122 |
}
|
1124 |
}
|
| 1123 |
|
1125 |
|
| 1124 |
public static class getLogisticsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
|
1126 |
public static class getLogisticsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| 1125 |
private String destination_pincode;
|
1127 |
private String destination_pincode;
|
| 1126 |
private long item_id;
|
1128 |
private long item_id;
|
| 1127 |
private DeliveryType type;
|
1129 |
private DeliveryType type;
|
| 1128 |
private PickUpType pickUp;
|
1130 |
private PickUpType pickUp;
|
| - |
|
1131 |
private long stateId;
|
| 1129 |
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 {
|
1132 |
public getLogisticsInfo_call(String destination_pincode, long item_id, DeliveryType type, PickUpType pickUp, long stateId, 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 {
|
| 1130 |
super(client, protocolFactory, transport, resultHandler, false);
|
1133 |
super(client, protocolFactory, transport, resultHandler, false);
|
| 1131 |
this.destination_pincode = destination_pincode;
|
1134 |
this.destination_pincode = destination_pincode;
|
| 1132 |
this.item_id = item_id;
|
1135 |
this.item_id = item_id;
|
| 1133 |
this.type = type;
|
1136 |
this.type = type;
|
| 1134 |
this.pickUp = pickUp;
|
1137 |
this.pickUp = pickUp;
|
| - |
|
1138 |
this.stateId = stateId;
|
| 1135 |
}
|
1139 |
}
|
| 1136 |
|
1140 |
|
| 1137 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
1141 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| 1138 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
1142 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
| 1139 |
getLogisticsInfo_args args = new getLogisticsInfo_args();
|
1143 |
getLogisticsInfo_args args = new getLogisticsInfo_args();
|
| 1140 |
args.setDestination_pincode(destination_pincode);
|
1144 |
args.setDestination_pincode(destination_pincode);
|
| 1141 |
args.setItem_id(item_id);
|
1145 |
args.setItem_id(item_id);
|
| 1142 |
args.setType(type);
|
1146 |
args.setType(type);
|
| 1143 |
args.setPickUp(pickUp);
|
1147 |
args.setPickUp(pickUp);
|
| - |
|
1148 |
args.setStateId(stateId);
|
| 1144 |
args.write(prot);
|
1149 |
args.write(prot);
|
| 1145 |
prot.writeMessageEnd();
|
1150 |
prot.writeMessageEnd();
|
| 1146 |
}
|
1151 |
}
|
| 1147 |
|
1152 |
|
| 1148 |
public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
|
1153 |
public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
|
| Line 2124... |
Line 2129... |
| 2124 |
}
|
2129 |
}
|
| 2125 |
|
2130 |
|
| 2126 |
protected getLogisticsInfo_result getResult(I iface, getLogisticsInfo_args args) throws org.apache.thrift.TException {
|
2131 |
protected getLogisticsInfo_result getResult(I iface, getLogisticsInfo_args args) throws org.apache.thrift.TException {
|
| 2127 |
getLogisticsInfo_result result = new getLogisticsInfo_result();
|
2132 |
getLogisticsInfo_result result = new getLogisticsInfo_result();
|
| 2128 |
try {
|
2133 |
try {
|
| 2129 |
result.success = iface.getLogisticsInfo(args.destination_pincode, args.item_id, args.type, args.pickUp);
|
2134 |
result.success = iface.getLogisticsInfo(args.destination_pincode, args.item_id, args.type, args.pickUp, args.stateId);
|
| 2130 |
} catch (LogisticsServiceException se) {
|
2135 |
} catch (LogisticsServiceException se) {
|
| 2131 |
result.se = se;
|
2136 |
result.se = se;
|
| 2132 |
}
|
2137 |
}
|
| 2133 |
return result;
|
2138 |
return result;
|
| 2134 |
}
|
2139 |
}
|
| Line 5570... |
Line 5575... |
| 5570 |
|
5575 |
|
| 5571 |
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);
|
5576 |
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);
|
| 5572 |
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);
|
5577 |
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);
|
| 5573 |
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);
|
5578 |
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);
|
| 5574 |
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);
|
5579 |
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);
|
| - |
|
5580 |
private static final org.apache.thrift.protocol.TField STATE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("stateId", org.apache.thrift.protocol.TType.I64, (short)5);
|
| 5575 |
|
5581 |
|
| 5576 |
private String destination_pincode; // required
|
5582 |
private String destination_pincode; // required
|
| 5577 |
private long item_id; // required
|
5583 |
private long item_id; // required
|
| 5578 |
private DeliveryType type; // required
|
5584 |
private DeliveryType type; // required
|
| 5579 |
private PickUpType pickUp; // required
|
5585 |
private PickUpType pickUp; // required
|
| - |
|
5586 |
private long stateId; // required
|
| 5580 |
|
5587 |
|
| 5581 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
5588 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 5582 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
5589 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 5583 |
DESTINATION_PINCODE((short)1, "destination_pincode"),
|
5590 |
DESTINATION_PINCODE((short)1, "destination_pincode"),
|
| 5584 |
ITEM_ID((short)2, "item_id"),
|
5591 |
ITEM_ID((short)2, "item_id"),
|
| Line 5589... |
Line 5596... |
| 5589 |
TYPE((short)3, "type"),
|
5596 |
TYPE((short)3, "type"),
|
| 5590 |
/**
|
5597 |
/**
|
| 5591 |
*
|
5598 |
*
|
| 5592 |
* @see PickUpType
|
5599 |
* @see PickUpType
|
| 5593 |
*/
|
5600 |
*/
|
| 5594 |
PICK_UP((short)4, "pickUp");
|
5601 |
PICK_UP((short)4, "pickUp"),
|
| - |
|
5602 |
STATE_ID((short)5, "stateId");
|
| 5595 |
|
5603 |
|
| 5596 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
5604 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| 5597 |
|
5605 |
|
| 5598 |
static {
|
5606 |
static {
|
| 5599 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
5607 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| Line 5612... |
Line 5620... |
| 5612 |
return ITEM_ID;
|
5620 |
return ITEM_ID;
|
| 5613 |
case 3: // TYPE
|
5621 |
case 3: // TYPE
|
| 5614 |
return TYPE;
|
5622 |
return TYPE;
|
| 5615 |
case 4: // PICK_UP
|
5623 |
case 4: // PICK_UP
|
| 5616 |
return PICK_UP;
|
5624 |
return PICK_UP;
|
| - |
|
5625 |
case 5: // STATE_ID
|
| - |
|
5626 |
return STATE_ID;
|
| 5617 |
default:
|
5627 |
default:
|
| 5618 |
return null;
|
5628 |
return null;
|
| 5619 |
}
|
5629 |
}
|
| 5620 |
}
|
5630 |
}
|
| 5621 |
|
5631 |
|
| Line 5653... |
Line 5663... |
| 5653 |
}
|
5663 |
}
|
| 5654 |
}
|
5664 |
}
|
| 5655 |
|
5665 |
|
| 5656 |
// isset id assignments
|
5666 |
// isset id assignments
|
| 5657 |
private static final int __ITEM_ID_ISSET_ID = 0;
|
5667 |
private static final int __ITEM_ID_ISSET_ID = 0;
|
| - |
|
5668 |
private static final int __STATEID_ISSET_ID = 1;
|
| 5658 |
private BitSet __isset_bit_vector = new BitSet(1);
|
5669 |
private BitSet __isset_bit_vector = new BitSet(2);
|
| 5659 |
|
5670 |
|
| 5660 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
5671 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 5661 |
static {
|
5672 |
static {
|
| 5662 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
5673 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 5663 |
tmpMap.put(_Fields.DESTINATION_PINCODE, new org.apache.thrift.meta_data.FieldMetaData("destination_pincode", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
5674 |
tmpMap.put(_Fields.DESTINATION_PINCODE, new org.apache.thrift.meta_data.FieldMetaData("destination_pincode", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| Line 5666... |
Line 5677... |
| 5666 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
5677 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 5667 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
5678 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 5668 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
|
5679 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
|
| 5669 |
tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
5680 |
tmpMap.put(_Fields.PICK_UP, new org.apache.thrift.meta_data.FieldMetaData("pickUp", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 5670 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PickUpType.class)));
|
5681 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PickUpType.class)));
|
| - |
|
5682 |
tmpMap.put(_Fields.STATE_ID, new org.apache.thrift.meta_data.FieldMetaData("stateId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
5683 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 5671 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
5684 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 5672 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_args.class, metaDataMap);
|
5685 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_args.class, metaDataMap);
|
| 5673 |
}
|
5686 |
}
|
| 5674 |
|
5687 |
|
| 5675 |
public getLogisticsInfo_args() {
|
5688 |
public getLogisticsInfo_args() {
|
| Line 5677... |
Line 5690... |
| 5677 |
|
5690 |
|
| 5678 |
public getLogisticsInfo_args(
|
5691 |
public getLogisticsInfo_args(
|
| 5679 |
String destination_pincode,
|
5692 |
String destination_pincode,
|
| 5680 |
long item_id,
|
5693 |
long item_id,
|
| 5681 |
DeliveryType type,
|
5694 |
DeliveryType type,
|
| 5682 |
PickUpType pickUp)
|
5695 |
PickUpType pickUp,
|
| - |
|
5696 |
long stateId)
|
| 5683 |
{
|
5697 |
{
|
| 5684 |
this();
|
5698 |
this();
|
| 5685 |
this.destination_pincode = destination_pincode;
|
5699 |
this.destination_pincode = destination_pincode;
|
| 5686 |
this.item_id = item_id;
|
5700 |
this.item_id = item_id;
|
| 5687 |
setItem_idIsSet(true);
|
5701 |
setItem_idIsSet(true);
|
| 5688 |
this.type = type;
|
5702 |
this.type = type;
|
| 5689 |
this.pickUp = pickUp;
|
5703 |
this.pickUp = pickUp;
|
| - |
|
5704 |
this.stateId = stateId;
|
| - |
|
5705 |
setStateIdIsSet(true);
|
| 5690 |
}
|
5706 |
}
|
| 5691 |
|
5707 |
|
| 5692 |
/**
|
5708 |
/**
|
| 5693 |
* Performs a deep copy on <i>other</i>.
|
5709 |
* Performs a deep copy on <i>other</i>.
|
| 5694 |
*/
|
5710 |
*/
|
| Line 5703... |
Line 5719... |
| 5703 |
this.type = other.type;
|
5719 |
this.type = other.type;
|
| 5704 |
}
|
5720 |
}
|
| 5705 |
if (other.isSetPickUp()) {
|
5721 |
if (other.isSetPickUp()) {
|
| 5706 |
this.pickUp = other.pickUp;
|
5722 |
this.pickUp = other.pickUp;
|
| 5707 |
}
|
5723 |
}
|
| - |
|
5724 |
this.stateId = other.stateId;
|
| 5708 |
}
|
5725 |
}
|
| 5709 |
|
5726 |
|
| 5710 |
public getLogisticsInfo_args deepCopy() {
|
5727 |
public getLogisticsInfo_args deepCopy() {
|
| 5711 |
return new getLogisticsInfo_args(this);
|
5728 |
return new getLogisticsInfo_args(this);
|
| 5712 |
}
|
5729 |
}
|
| Line 5716... |
Line 5733... |
| 5716 |
this.destination_pincode = null;
|
5733 |
this.destination_pincode = null;
|
| 5717 |
setItem_idIsSet(false);
|
5734 |
setItem_idIsSet(false);
|
| 5718 |
this.item_id = 0;
|
5735 |
this.item_id = 0;
|
| 5719 |
this.type = null;
|
5736 |
this.type = null;
|
| 5720 |
this.pickUp = null;
|
5737 |
this.pickUp = null;
|
| - |
|
5738 |
setStateIdIsSet(false);
|
| - |
|
5739 |
this.stateId = 0;
|
| 5721 |
}
|
5740 |
}
|
| 5722 |
|
5741 |
|
| 5723 |
public String getDestination_pincode() {
|
5742 |
public String getDestination_pincode() {
|
| 5724 |
return this.destination_pincode;
|
5743 |
return this.destination_pincode;
|
| 5725 |
}
|
5744 |
}
|
| Line 5825... |
Line 5844... |
| 5825 |
if (!value) {
|
5844 |
if (!value) {
|
| 5826 |
this.pickUp = null;
|
5845 |
this.pickUp = null;
|
| 5827 |
}
|
5846 |
}
|
| 5828 |
}
|
5847 |
}
|
| 5829 |
|
5848 |
|
| - |
|
5849 |
public long getStateId() {
|
| - |
|
5850 |
return this.stateId;
|
| - |
|
5851 |
}
|
| - |
|
5852 |
|
| - |
|
5853 |
public void setStateId(long stateId) {
|
| - |
|
5854 |
this.stateId = stateId;
|
| - |
|
5855 |
setStateIdIsSet(true);
|
| - |
|
5856 |
}
|
| - |
|
5857 |
|
| - |
|
5858 |
public void unsetStateId() {
|
| - |
|
5859 |
__isset_bit_vector.clear(__STATEID_ISSET_ID);
|
| - |
|
5860 |
}
|
| - |
|
5861 |
|
| - |
|
5862 |
/** Returns true if field stateId is set (has been assigned a value) and false otherwise */
|
| - |
|
5863 |
public boolean isSetStateId() {
|
| - |
|
5864 |
return __isset_bit_vector.get(__STATEID_ISSET_ID);
|
| - |
|
5865 |
}
|
| - |
|
5866 |
|
| - |
|
5867 |
public void setStateIdIsSet(boolean value) {
|
| - |
|
5868 |
__isset_bit_vector.set(__STATEID_ISSET_ID, value);
|
| - |
|
5869 |
}
|
| - |
|
5870 |
|
| 5830 |
public void setFieldValue(_Fields field, Object value) {
|
5871 |
public void setFieldValue(_Fields field, Object value) {
|
| 5831 |
switch (field) {
|
5872 |
switch (field) {
|
| 5832 |
case DESTINATION_PINCODE:
|
5873 |
case DESTINATION_PINCODE:
|
| 5833 |
if (value == null) {
|
5874 |
if (value == null) {
|
| 5834 |
unsetDestination_pincode();
|
5875 |
unsetDestination_pincode();
|
| Line 5859... |
Line 5900... |
| 5859 |
} else {
|
5900 |
} else {
|
| 5860 |
setPickUp((PickUpType)value);
|
5901 |
setPickUp((PickUpType)value);
|
| 5861 |
}
|
5902 |
}
|
| 5862 |
break;
|
5903 |
break;
|
| 5863 |
|
5904 |
|
| - |
|
5905 |
case STATE_ID:
|
| - |
|
5906 |
if (value == null) {
|
| - |
|
5907 |
unsetStateId();
|
| - |
|
5908 |
} else {
|
| - |
|
5909 |
setStateId((Long)value);
|
| - |
|
5910 |
}
|
| - |
|
5911 |
break;
|
| - |
|
5912 |
|
| 5864 |
}
|
5913 |
}
|
| 5865 |
}
|
5914 |
}
|
| 5866 |
|
5915 |
|
| 5867 |
public Object getFieldValue(_Fields field) {
|
5916 |
public Object getFieldValue(_Fields field) {
|
| 5868 |
switch (field) {
|
5917 |
switch (field) {
|
| Line 5876... |
Line 5925... |
| 5876 |
return getType();
|
5925 |
return getType();
|
| 5877 |
|
5926 |
|
| 5878 |
case PICK_UP:
|
5927 |
case PICK_UP:
|
| 5879 |
return getPickUp();
|
5928 |
return getPickUp();
|
| 5880 |
|
5929 |
|
| - |
|
5930 |
case STATE_ID:
|
| - |
|
5931 |
return Long.valueOf(getStateId());
|
| - |
|
5932 |
|
| 5881 |
}
|
5933 |
}
|
| 5882 |
throw new IllegalStateException();
|
5934 |
throw new IllegalStateException();
|
| 5883 |
}
|
5935 |
}
|
| 5884 |
|
5936 |
|
| 5885 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
5937 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| Line 5895... |
Line 5947... |
| 5895 |
return isSetItem_id();
|
5947 |
return isSetItem_id();
|
| 5896 |
case TYPE:
|
5948 |
case TYPE:
|
| 5897 |
return isSetType();
|
5949 |
return isSetType();
|
| 5898 |
case PICK_UP:
|
5950 |
case PICK_UP:
|
| 5899 |
return isSetPickUp();
|
5951 |
return isSetPickUp();
|
| - |
|
5952 |
case STATE_ID:
|
| - |
|
5953 |
return isSetStateId();
|
| 5900 |
}
|
5954 |
}
|
| 5901 |
throw new IllegalStateException();
|
5955 |
throw new IllegalStateException();
|
| 5902 |
}
|
5956 |
}
|
| 5903 |
|
5957 |
|
| 5904 |
@Override
|
5958 |
@Override
|
| Line 5948... |
Line 6002... |
| 5948 |
return false;
|
6002 |
return false;
|
| 5949 |
if (!this.pickUp.equals(that.pickUp))
|
6003 |
if (!this.pickUp.equals(that.pickUp))
|
| 5950 |
return false;
|
6004 |
return false;
|
| 5951 |
}
|
6005 |
}
|
| 5952 |
|
6006 |
|
| - |
|
6007 |
boolean this_present_stateId = true;
|
| - |
|
6008 |
boolean that_present_stateId = true;
|
| - |
|
6009 |
if (this_present_stateId || that_present_stateId) {
|
| - |
|
6010 |
if (!(this_present_stateId && that_present_stateId))
|
| - |
|
6011 |
return false;
|
| - |
|
6012 |
if (this.stateId != that.stateId)
|
| - |
|
6013 |
return false;
|
| - |
|
6014 |
}
|
| - |
|
6015 |
|
| 5953 |
return true;
|
6016 |
return true;
|
| 5954 |
}
|
6017 |
}
|
| 5955 |
|
6018 |
|
| 5956 |
@Override
|
6019 |
@Override
|
| 5957 |
public int hashCode() {
|
6020 |
public int hashCode() {
|
| Line 6004... |
Line 6067... |
| 6004 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
|
6067 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickUp, typedOther.pickUp);
|
| 6005 |
if (lastComparison != 0) {
|
6068 |
if (lastComparison != 0) {
|
| 6006 |
return lastComparison;
|
6069 |
return lastComparison;
|
| 6007 |
}
|
6070 |
}
|
| 6008 |
}
|
6071 |
}
|
| - |
|
6072 |
lastComparison = Boolean.valueOf(isSetStateId()).compareTo(typedOther.isSetStateId());
|
| - |
|
6073 |
if (lastComparison != 0) {
|
| - |
|
6074 |
return lastComparison;
|
| - |
|
6075 |
}
|
| - |
|
6076 |
if (isSetStateId()) {
|
| - |
|
6077 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stateId, typedOther.stateId);
|
| - |
|
6078 |
if (lastComparison != 0) {
|
| - |
|
6079 |
return lastComparison;
|
| - |
|
6080 |
}
|
| - |
|
6081 |
}
|
| 6009 |
return 0;
|
6082 |
return 0;
|
| 6010 |
}
|
6083 |
}
|
| 6011 |
|
6084 |
|
| 6012 |
public _Fields fieldForId(int fieldId) {
|
6085 |
public _Fields fieldForId(int fieldId) {
|
| 6013 |
return _Fields.findByThriftId(fieldId);
|
6086 |
return _Fields.findByThriftId(fieldId);
|
| Line 6050... |
Line 6123... |
| 6050 |
this.pickUp = PickUpType.findByValue(iprot.readI32());
|
6123 |
this.pickUp = PickUpType.findByValue(iprot.readI32());
|
| 6051 |
} else {
|
6124 |
} else {
|
| 6052 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
6125 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 6053 |
}
|
6126 |
}
|
| 6054 |
break;
|
6127 |
break;
|
| - |
|
6128 |
case 5: // STATE_ID
|
| - |
|
6129 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
6130 |
this.stateId = iprot.readI64();
|
| - |
|
6131 |
setStateIdIsSet(true);
|
| - |
|
6132 |
} else {
|
| - |
|
6133 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
6134 |
}
|
| - |
|
6135 |
break;
|
| 6055 |
default:
|
6136 |
default:
|
| 6056 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
6137 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 6057 |
}
|
6138 |
}
|
| 6058 |
iprot.readFieldEnd();
|
6139 |
iprot.readFieldEnd();
|
| 6059 |
}
|
6140 |
}
|
| Line 6081... |
Line 6162... |
| 6081 |
if (this.pickUp != null) {
|
6162 |
if (this.pickUp != null) {
|
| 6082 |
oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
|
6163 |
oprot.writeFieldBegin(PICK_UP_FIELD_DESC);
|
| 6083 |
oprot.writeI32(this.pickUp.getValue());
|
6164 |
oprot.writeI32(this.pickUp.getValue());
|
| 6084 |
oprot.writeFieldEnd();
|
6165 |
oprot.writeFieldEnd();
|
| 6085 |
}
|
6166 |
}
|
| - |
|
6167 |
oprot.writeFieldBegin(STATE_ID_FIELD_DESC);
|
| - |
|
6168 |
oprot.writeI64(this.stateId);
|
| - |
|
6169 |
oprot.writeFieldEnd();
|
| 6086 |
oprot.writeFieldStop();
|
6170 |
oprot.writeFieldStop();
|
| 6087 |
oprot.writeStructEnd();
|
6171 |
oprot.writeStructEnd();
|
| 6088 |
}
|
6172 |
}
|
| 6089 |
|
6173 |
|
| 6090 |
@Override
|
6174 |
@Override
|
| Line 6117... |
Line 6201... |
| 6117 |
sb.append("null");
|
6201 |
sb.append("null");
|
| 6118 |
} else {
|
6202 |
} else {
|
| 6119 |
sb.append(this.pickUp);
|
6203 |
sb.append(this.pickUp);
|
| 6120 |
}
|
6204 |
}
|
| 6121 |
first = false;
|
6205 |
first = false;
|
| - |
|
6206 |
if (!first) sb.append(", ");
|
| - |
|
6207 |
sb.append("stateId:");
|
| - |
|
6208 |
sb.append(this.stateId);
|
| - |
|
6209 |
first = false;
|
| 6122 |
sb.append(")");
|
6210 |
sb.append(")");
|
| 6123 |
return sb.toString();
|
6211 |
return sb.toString();
|
| 6124 |
}
|
6212 |
}
|
| 6125 |
|
6213 |
|
| 6126 |
public void validate() throws org.apache.thrift.TException {
|
6214 |
public void validate() throws org.apache.thrift.TException {
|