| Line 359... |
Line 359... |
| 359 |
|
359 |
|
| 360 |
public List<SnapdealInventoryItem> getSnapdealInventorySnapshot() throws org.apache.thrift.TException;
|
360 |
public List<SnapdealInventoryItem> getSnapdealInventorySnapshot() throws org.apache.thrift.TException;
|
| 361 |
|
361 |
|
| 362 |
public List<HoldInventoryDetail> getHoldInventoryDetails(long itemId, long warehouseId, long source) throws org.apache.thrift.TException;
|
362 |
public List<HoldInventoryDetail> getHoldInventoryDetails(long itemId, long warehouseId, long source) throws org.apache.thrift.TException;
|
| 363 |
|
363 |
|
| - |
|
364 |
public void addOrUpdateFlipkartInventorySnapshot(List<FlipkartInventorySnapshot> flipkartInventorySnapshot) throws org.apache.thrift.TException;
|
| - |
|
365 |
|
| - |
|
366 |
public List<FlipkartInventorySnapshot> getFlipkartInventorySnapshot() throws org.apache.thrift.TException;
|
| - |
|
367 |
|
| 364 |
}
|
368 |
}
|
| 365 |
|
369 |
|
| 366 |
public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
|
370 |
public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
|
| 367 |
|
371 |
|
| 368 |
public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
|
372 |
public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
|
| Line 503... |
Line 507... |
| 503 |
|
507 |
|
| 504 |
public void getSnapdealInventorySnapshot(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSnapdealInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException;
|
508 |
public void getSnapdealInventorySnapshot(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSnapdealInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException;
|
| 505 |
|
509 |
|
| 506 |
public void getHoldInventoryDetails(long itemId, long warehouseId, long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHoldInventoryDetails_call> resultHandler) throws org.apache.thrift.TException;
|
510 |
public void getHoldInventoryDetails(long itemId, long warehouseId, long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHoldInventoryDetails_call> resultHandler) throws org.apache.thrift.TException;
|
| 507 |
|
511 |
|
| - |
|
512 |
public void addOrUpdateFlipkartInventorySnapshot(List<FlipkartInventorySnapshot> flipkartInventorySnapshot, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateFlipkartInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException;
|
| - |
|
513 |
|
| - |
|
514 |
public void getFlipkartInventorySnapshot(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFlipkartInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException;
|
| - |
|
515 |
|
| 508 |
}
|
516 |
}
|
| 509 |
|
517 |
|
| 510 |
public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
|
518 |
public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
|
| 511 |
public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
|
519 |
public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
|
| 512 |
public Factory() {}
|
520 |
public Factory() {}
|
| Line 2191... |
Line 2199... |
| 2191 |
return result.success;
|
2199 |
return result.success;
|
| 2192 |
}
|
2200 |
}
|
| 2193 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHoldInventoryDetails failed: unknown result");
|
2201 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHoldInventoryDetails failed: unknown result");
|
| 2194 |
}
|
2202 |
}
|
| 2195 |
|
2203 |
|
| - |
|
2204 |
public void addOrUpdateFlipkartInventorySnapshot(List<FlipkartInventorySnapshot> flipkartInventorySnapshot) throws org.apache.thrift.TException
|
| - |
|
2205 |
{
|
| - |
|
2206 |
send_addOrUpdateFlipkartInventorySnapshot(flipkartInventorySnapshot);
|
| - |
|
2207 |
recv_addOrUpdateFlipkartInventorySnapshot();
|
| - |
|
2208 |
}
|
| - |
|
2209 |
|
| - |
|
2210 |
public void send_addOrUpdateFlipkartInventorySnapshot(List<FlipkartInventorySnapshot> flipkartInventorySnapshot) throws org.apache.thrift.TException
|
| - |
|
2211 |
{
|
| - |
|
2212 |
addOrUpdateFlipkartInventorySnapshot_args args = new addOrUpdateFlipkartInventorySnapshot_args();
|
| - |
|
2213 |
args.setFlipkartInventorySnapshot(flipkartInventorySnapshot);
|
| - |
|
2214 |
sendBase("addOrUpdateFlipkartInventorySnapshot", args);
|
| - |
|
2215 |
}
|
| - |
|
2216 |
|
| - |
|
2217 |
public void recv_addOrUpdateFlipkartInventorySnapshot() throws org.apache.thrift.TException
|
| - |
|
2218 |
{
|
| - |
|
2219 |
addOrUpdateFlipkartInventorySnapshot_result result = new addOrUpdateFlipkartInventorySnapshot_result();
|
| - |
|
2220 |
receiveBase(result, "addOrUpdateFlipkartInventorySnapshot");
|
| - |
|
2221 |
return;
|
| - |
|
2222 |
}
|
| - |
|
2223 |
|
| - |
|
2224 |
public List<FlipkartInventorySnapshot> getFlipkartInventorySnapshot() throws org.apache.thrift.TException
|
| - |
|
2225 |
{
|
| - |
|
2226 |
send_getFlipkartInventorySnapshot();
|
| - |
|
2227 |
return recv_getFlipkartInventorySnapshot();
|
| - |
|
2228 |
}
|
| - |
|
2229 |
|
| - |
|
2230 |
public void send_getFlipkartInventorySnapshot() throws org.apache.thrift.TException
|
| - |
|
2231 |
{
|
| - |
|
2232 |
getFlipkartInventorySnapshot_args args = new getFlipkartInventorySnapshot_args();
|
| - |
|
2233 |
sendBase("getFlipkartInventorySnapshot", args);
|
| - |
|
2234 |
}
|
| - |
|
2235 |
|
| - |
|
2236 |
public List<FlipkartInventorySnapshot> recv_getFlipkartInventorySnapshot() throws org.apache.thrift.TException
|
| - |
|
2237 |
{
|
| - |
|
2238 |
getFlipkartInventorySnapshot_result result = new getFlipkartInventorySnapshot_result();
|
| - |
|
2239 |
receiveBase(result, "getFlipkartInventorySnapshot");
|
| - |
|
2240 |
if (result.isSetSuccess()) {
|
| - |
|
2241 |
return result.success;
|
| - |
|
2242 |
}
|
| - |
|
2243 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFlipkartInventorySnapshot failed: unknown result");
|
| - |
|
2244 |
}
|
| - |
|
2245 |
|
| 2196 |
}
|
2246 |
}
|
| 2197 |
public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
|
2247 |
public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
|
| 2198 |
public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
|
2248 |
public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
|
| 2199 |
private org.apache.thrift.async.TAsyncClientManager clientManager;
|
2249 |
private org.apache.thrift.async.TAsyncClientManager clientManager;
|
| 2200 |
private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
|
2250 |
private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
|
| Line 4590... |
Line 4640... |
| 4590 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
4640 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 4591 |
return (new Client(prot)).recv_getHoldInventoryDetails();
|
4641 |
return (new Client(prot)).recv_getHoldInventoryDetails();
|
| 4592 |
}
|
4642 |
}
|
| 4593 |
}
|
4643 |
}
|
| 4594 |
|
4644 |
|
| - |
|
4645 |
public void addOrUpdateFlipkartInventorySnapshot(List<FlipkartInventorySnapshot> flipkartInventorySnapshot, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateFlipkartInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException {
|
| - |
|
4646 |
checkReady();
|
| - |
|
4647 |
addOrUpdateFlipkartInventorySnapshot_call method_call = new addOrUpdateFlipkartInventorySnapshot_call(flipkartInventorySnapshot, resultHandler, this, ___protocolFactory, ___transport);
|
| - |
|
4648 |
this.___currentMethod = method_call;
|
| - |
|
4649 |
___manager.call(method_call);
|
| - |
|
4650 |
}
|
| - |
|
4651 |
|
| - |
|
4652 |
public static class addOrUpdateFlipkartInventorySnapshot_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| - |
|
4653 |
private List<FlipkartInventorySnapshot> flipkartInventorySnapshot;
|
| - |
|
4654 |
public addOrUpdateFlipkartInventorySnapshot_call(List<FlipkartInventorySnapshot> flipkartInventorySnapshot, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateFlipkartInventorySnapshot_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 {
|
| - |
|
4655 |
super(client, protocolFactory, transport, resultHandler, false);
|
| - |
|
4656 |
this.flipkartInventorySnapshot = flipkartInventorySnapshot;
|
| - |
|
4657 |
}
|
| - |
|
4658 |
|
| - |
|
4659 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| - |
|
4660 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addOrUpdateFlipkartInventorySnapshot", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
| - |
|
4661 |
addOrUpdateFlipkartInventorySnapshot_args args = new addOrUpdateFlipkartInventorySnapshot_args();
|
| - |
|
4662 |
args.setFlipkartInventorySnapshot(flipkartInventorySnapshot);
|
| - |
|
4663 |
args.write(prot);
|
| - |
|
4664 |
prot.writeMessageEnd();
|
| - |
|
4665 |
}
|
| - |
|
4666 |
|
| - |
|
4667 |
public void getResult() throws org.apache.thrift.TException {
|
| - |
|
4668 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
| - |
|
4669 |
throw new IllegalStateException("Method call not finished!");
|
| - |
|
4670 |
}
|
| - |
|
4671 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
| - |
|
4672 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| - |
|
4673 |
(new Client(prot)).recv_addOrUpdateFlipkartInventorySnapshot();
|
| - |
|
4674 |
}
|
| - |
|
4675 |
}
|
| - |
|
4676 |
|
| - |
|
4677 |
public void getFlipkartInventorySnapshot(org.apache.thrift.async.AsyncMethodCallback<getFlipkartInventorySnapshot_call> resultHandler) throws org.apache.thrift.TException {
|
| - |
|
4678 |
checkReady();
|
| - |
|
4679 |
getFlipkartInventorySnapshot_call method_call = new getFlipkartInventorySnapshot_call(resultHandler, this, ___protocolFactory, ___transport);
|
| - |
|
4680 |
this.___currentMethod = method_call;
|
| - |
|
4681 |
___manager.call(method_call);
|
| - |
|
4682 |
}
|
| - |
|
4683 |
|
| - |
|
4684 |
public static class getFlipkartInventorySnapshot_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| - |
|
4685 |
public getFlipkartInventorySnapshot_call(org.apache.thrift.async.AsyncMethodCallback<getFlipkartInventorySnapshot_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 {
|
| - |
|
4686 |
super(client, protocolFactory, transport, resultHandler, false);
|
| - |
|
4687 |
}
|
| - |
|
4688 |
|
| - |
|
4689 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| - |
|
4690 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFlipkartInventorySnapshot", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
| - |
|
4691 |
getFlipkartInventorySnapshot_args args = new getFlipkartInventorySnapshot_args();
|
| - |
|
4692 |
args.write(prot);
|
| - |
|
4693 |
prot.writeMessageEnd();
|
| - |
|
4694 |
}
|
| - |
|
4695 |
|
| - |
|
4696 |
public List<FlipkartInventorySnapshot> getResult() throws org.apache.thrift.TException {
|
| - |
|
4697 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
| - |
|
4698 |
throw new IllegalStateException("Method call not finished!");
|
| - |
|
4699 |
}
|
| - |
|
4700 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
| - |
|
4701 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| - |
|
4702 |
return (new Client(prot)).recv_getFlipkartInventorySnapshot();
|
| - |
|
4703 |
}
|
| - |
|
4704 |
}
|
| - |
|
4705 |
|
| 4595 |
}
|
4706 |
}
|
| 4596 |
|
4707 |
|
| 4597 |
public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
|
4708 |
public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
|
| 4598 |
private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
|
4709 |
private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
|
| 4599 |
public Processor(I iface) {
|
4710 |
public Processor(I iface) {
|
| Line 4673... |
Line 4784... |
| 4673 |
processMap.put("getHeldInventoryMapForItem", new getHeldInventoryMapForItem());
|
4784 |
processMap.put("getHeldInventoryMapForItem", new getHeldInventoryMapForItem());
|
| 4674 |
processMap.put("addOrUpdateAllAmazonFbaInventory", new addOrUpdateAllAmazonFbaInventory());
|
4785 |
processMap.put("addOrUpdateAllAmazonFbaInventory", new addOrUpdateAllAmazonFbaInventory());
|
| 4675 |
processMap.put("addOrUpdateAllSnapdealInventory", new addOrUpdateAllSnapdealInventory());
|
4786 |
processMap.put("addOrUpdateAllSnapdealInventory", new addOrUpdateAllSnapdealInventory());
|
| 4676 |
processMap.put("getSnapdealInventorySnapshot", new getSnapdealInventorySnapshot());
|
4787 |
processMap.put("getSnapdealInventorySnapshot", new getSnapdealInventorySnapshot());
|
| 4677 |
processMap.put("getHoldInventoryDetails", new getHoldInventoryDetails());
|
4788 |
processMap.put("getHoldInventoryDetails", new getHoldInventoryDetails());
|
| - |
|
4789 |
processMap.put("addOrUpdateFlipkartInventorySnapshot", new addOrUpdateFlipkartInventorySnapshot());
|
| - |
|
4790 |
processMap.put("getFlipkartInventorySnapshot", new getFlipkartInventorySnapshot());
|
| 4678 |
return processMap;
|
4791 |
return processMap;
|
| 4679 |
}
|
4792 |
}
|
| 4680 |
|
4793 |
|
| 4681 |
private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
|
4794 |
private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
|
| 4682 |
public addWarehouse() {
|
4795 |
public addWarehouse() {
|
| Line 5906... |
Line 6019... |
| 5906 |
result.success = iface.getHoldInventoryDetails(args.itemId, args.warehouseId, args.source);
|
6019 |
result.success = iface.getHoldInventoryDetails(args.itemId, args.warehouseId, args.source);
|
| 5907 |
return result;
|
6020 |
return result;
|
| 5908 |
}
|
6021 |
}
|
| 5909 |
}
|
6022 |
}
|
| 5910 |
|
6023 |
|
| - |
|
6024 |
private static class addOrUpdateFlipkartInventorySnapshot<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOrUpdateFlipkartInventorySnapshot_args> {
|
| - |
|
6025 |
public addOrUpdateFlipkartInventorySnapshot() {
|
| - |
|
6026 |
super("addOrUpdateFlipkartInventorySnapshot");
|
| - |
|
6027 |
}
|
| - |
|
6028 |
|
| - |
|
6029 |
protected addOrUpdateFlipkartInventorySnapshot_args getEmptyArgsInstance() {
|
| - |
|
6030 |
return new addOrUpdateFlipkartInventorySnapshot_args();
|
| - |
|
6031 |
}
|
| - |
|
6032 |
|
| - |
|
6033 |
protected addOrUpdateFlipkartInventorySnapshot_result getResult(I iface, addOrUpdateFlipkartInventorySnapshot_args args) throws org.apache.thrift.TException {
|
| - |
|
6034 |
addOrUpdateFlipkartInventorySnapshot_result result = new addOrUpdateFlipkartInventorySnapshot_result();
|
| - |
|
6035 |
iface.addOrUpdateFlipkartInventorySnapshot(args.flipkartInventorySnapshot);
|
| - |
|
6036 |
return result;
|
| - |
|
6037 |
}
|
| - |
|
6038 |
}
|
| - |
|
6039 |
|
| - |
|
6040 |
private static class getFlipkartInventorySnapshot<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFlipkartInventorySnapshot_args> {
|
| - |
|
6041 |
public getFlipkartInventorySnapshot() {
|
| - |
|
6042 |
super("getFlipkartInventorySnapshot");
|
| - |
|
6043 |
}
|
| - |
|
6044 |
|
| - |
|
6045 |
protected getFlipkartInventorySnapshot_args getEmptyArgsInstance() {
|
| - |
|
6046 |
return new getFlipkartInventorySnapshot_args();
|
| - |
|
6047 |
}
|
| - |
|
6048 |
|
| - |
|
6049 |
protected getFlipkartInventorySnapshot_result getResult(I iface, getFlipkartInventorySnapshot_args args) throws org.apache.thrift.TException {
|
| - |
|
6050 |
getFlipkartInventorySnapshot_result result = new getFlipkartInventorySnapshot_result();
|
| - |
|
6051 |
result.success = iface.getFlipkartInventorySnapshot();
|
| - |
|
6052 |
return result;
|
| - |
|
6053 |
}
|
| - |
|
6054 |
}
|
| - |
|
6055 |
|
| 5911 |
}
|
6056 |
}
|
| 5912 |
|
6057 |
|
| 5913 |
public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable {
|
6058 |
public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable {
|
| 5914 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
|
6059 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
|
| 5915 |
|
6060 |
|
| Line 52341... |
Line 52486... |
| 52341 |
boolean first = true;
|
52486 |
boolean first = true;
|
| 52342 |
|
52487 |
|
| 52343 |
sb.append("success:");
|
52488 |
sb.append("success:");
|
| 52344 |
if (this.success == null) {
|
52489 |
if (this.success == null) {
|
| 52345 |
sb.append("null");
|
52490 |
sb.append("null");
|
| - |
|
52491 |
} else {
|
| - |
|
52492 |
sb.append(this.success);
|
| - |
|
52493 |
}
|
| - |
|
52494 |
first = false;
|
| - |
|
52495 |
sb.append(")");
|
| - |
|
52496 |
return sb.toString();
|
| - |
|
52497 |
}
|
| - |
|
52498 |
|
| - |
|
52499 |
public void validate() throws org.apache.thrift.TException {
|
| - |
|
52500 |
// check for required fields
|
| - |
|
52501 |
}
|
| - |
|
52502 |
|
| - |
|
52503 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
| - |
|
52504 |
try {
|
| - |
|
52505 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
| - |
|
52506 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
52507 |
throw new java.io.IOException(te);
|
| - |
|
52508 |
}
|
| - |
|
52509 |
}
|
| - |
|
52510 |
|
| - |
|
52511 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
| - |
|
52512 |
try {
|
| - |
|
52513 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
| - |
|
52514 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
52515 |
throw new java.io.IOException(te);
|
| - |
|
52516 |
}
|
| - |
|
52517 |
}
|
| - |
|
52518 |
|
| - |
|
52519 |
}
|
| - |
|
52520 |
|
| - |
|
52521 |
public static class addOrUpdateFlipkartInventorySnapshot_args implements org.apache.thrift.TBase<addOrUpdateFlipkartInventorySnapshot_args, addOrUpdateFlipkartInventorySnapshot_args._Fields>, java.io.Serializable, Cloneable {
|
| - |
|
52522 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateFlipkartInventorySnapshot_args");
|
| - |
|
52523 |
|
| - |
|
52524 |
private static final org.apache.thrift.protocol.TField FLIPKART_INVENTORY_SNAPSHOT_FIELD_DESC = new org.apache.thrift.protocol.TField("flipkartInventorySnapshot", org.apache.thrift.protocol.TType.LIST, (short)-1);
|
| - |
|
52525 |
|
| - |
|
52526 |
private List<FlipkartInventorySnapshot> flipkartInventorySnapshot; // required
|
| - |
|
52527 |
|
| - |
|
52528 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| - |
|
52529 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| - |
|
52530 |
FLIPKART_INVENTORY_SNAPSHOT((short)-1, "flipkartInventorySnapshot");
|
| - |
|
52531 |
|
| - |
|
52532 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| - |
|
52533 |
|
| - |
|
52534 |
static {
|
| - |
|
52535 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| - |
|
52536 |
byName.put(field.getFieldName(), field);
|
| - |
|
52537 |
}
|
| - |
|
52538 |
}
|
| - |
|
52539 |
|
| - |
|
52540 |
/**
|
| - |
|
52541 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
| - |
|
52542 |
*/
|
| - |
|
52543 |
public static _Fields findByThriftId(int fieldId) {
|
| - |
|
52544 |
switch(fieldId) {
|
| - |
|
52545 |
case -1: // FLIPKART_INVENTORY_SNAPSHOT
|
| - |
|
52546 |
return FLIPKART_INVENTORY_SNAPSHOT;
|
| - |
|
52547 |
default:
|
| - |
|
52548 |
return null;
|
| - |
|
52549 |
}
|
| - |
|
52550 |
}
|
| - |
|
52551 |
|
| - |
|
52552 |
/**
|
| - |
|
52553 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
| - |
|
52554 |
* if it is not found.
|
| - |
|
52555 |
*/
|
| - |
|
52556 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
| - |
|
52557 |
_Fields fields = findByThriftId(fieldId);
|
| - |
|
52558 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
| - |
|
52559 |
return fields;
|
| - |
|
52560 |
}
|
| - |
|
52561 |
|
| - |
|
52562 |
/**
|
| - |
|
52563 |
* Find the _Fields constant that matches name, or null if its not found.
|
| - |
|
52564 |
*/
|
| - |
|
52565 |
public static _Fields findByName(String name) {
|
| - |
|
52566 |
return byName.get(name);
|
| - |
|
52567 |
}
|
| - |
|
52568 |
|
| - |
|
52569 |
private final short _thriftId;
|
| - |
|
52570 |
private final String _fieldName;
|
| - |
|
52571 |
|
| - |
|
52572 |
_Fields(short thriftId, String fieldName) {
|
| - |
|
52573 |
_thriftId = thriftId;
|
| - |
|
52574 |
_fieldName = fieldName;
|
| - |
|
52575 |
}
|
| - |
|
52576 |
|
| - |
|
52577 |
public short getThriftFieldId() {
|
| - |
|
52578 |
return _thriftId;
|
| - |
|
52579 |
}
|
| - |
|
52580 |
|
| - |
|
52581 |
public String getFieldName() {
|
| - |
|
52582 |
return _fieldName;
|
| - |
|
52583 |
}
|
| - |
|
52584 |
}
|
| - |
|
52585 |
|
| - |
|
52586 |
// isset id assignments
|
| - |
|
52587 |
|
| - |
|
52588 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| - |
|
52589 |
static {
|
| - |
|
52590 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| - |
|
52591 |
tmpMap.put(_Fields.FLIPKART_INVENTORY_SNAPSHOT, new org.apache.thrift.meta_data.FieldMetaData("flipkartInventorySnapshot", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
52592 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
| - |
|
52593 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FlipkartInventorySnapshot.class))));
|
| - |
|
52594 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| - |
|
52595 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateFlipkartInventorySnapshot_args.class, metaDataMap);
|
| - |
|
52596 |
}
|
| - |
|
52597 |
|
| - |
|
52598 |
public addOrUpdateFlipkartInventorySnapshot_args() {
|
| - |
|
52599 |
}
|
| - |
|
52600 |
|
| - |
|
52601 |
public addOrUpdateFlipkartInventorySnapshot_args(
|
| - |
|
52602 |
List<FlipkartInventorySnapshot> flipkartInventorySnapshot)
|
| - |
|
52603 |
{
|
| - |
|
52604 |
this();
|
| - |
|
52605 |
this.flipkartInventorySnapshot = flipkartInventorySnapshot;
|
| - |
|
52606 |
}
|
| - |
|
52607 |
|
| - |
|
52608 |
/**
|
| - |
|
52609 |
* Performs a deep copy on <i>other</i>.
|
| - |
|
52610 |
*/
|
| - |
|
52611 |
public addOrUpdateFlipkartInventorySnapshot_args(addOrUpdateFlipkartInventorySnapshot_args other) {
|
| - |
|
52612 |
if (other.isSetFlipkartInventorySnapshot()) {
|
| - |
|
52613 |
List<FlipkartInventorySnapshot> __this__flipkartInventorySnapshot = new ArrayList<FlipkartInventorySnapshot>();
|
| - |
|
52614 |
for (FlipkartInventorySnapshot other_element : other.flipkartInventorySnapshot) {
|
| - |
|
52615 |
__this__flipkartInventorySnapshot.add(new FlipkartInventorySnapshot(other_element));
|
| - |
|
52616 |
}
|
| - |
|
52617 |
this.flipkartInventorySnapshot = __this__flipkartInventorySnapshot;
|
| - |
|
52618 |
}
|
| - |
|
52619 |
}
|
| - |
|
52620 |
|
| - |
|
52621 |
public addOrUpdateFlipkartInventorySnapshot_args deepCopy() {
|
| - |
|
52622 |
return new addOrUpdateFlipkartInventorySnapshot_args(this);
|
| - |
|
52623 |
}
|
| - |
|
52624 |
|
| - |
|
52625 |
@Override
|
| - |
|
52626 |
public void clear() {
|
| - |
|
52627 |
this.flipkartInventorySnapshot = null;
|
| - |
|
52628 |
}
|
| - |
|
52629 |
|
| - |
|
52630 |
public int getFlipkartInventorySnapshotSize() {
|
| - |
|
52631 |
return (this.flipkartInventorySnapshot == null) ? 0 : this.flipkartInventorySnapshot.size();
|
| - |
|
52632 |
}
|
| - |
|
52633 |
|
| - |
|
52634 |
public java.util.Iterator<FlipkartInventorySnapshot> getFlipkartInventorySnapshotIterator() {
|
| - |
|
52635 |
return (this.flipkartInventorySnapshot == null) ? null : this.flipkartInventorySnapshot.iterator();
|
| - |
|
52636 |
}
|
| - |
|
52637 |
|
| - |
|
52638 |
public void addToFlipkartInventorySnapshot(FlipkartInventorySnapshot elem) {
|
| - |
|
52639 |
if (this.flipkartInventorySnapshot == null) {
|
| - |
|
52640 |
this.flipkartInventorySnapshot = new ArrayList<FlipkartInventorySnapshot>();
|
| - |
|
52641 |
}
|
| - |
|
52642 |
this.flipkartInventorySnapshot.add(elem);
|
| - |
|
52643 |
}
|
| - |
|
52644 |
|
| - |
|
52645 |
public List<FlipkartInventorySnapshot> getFlipkartInventorySnapshot() {
|
| - |
|
52646 |
return this.flipkartInventorySnapshot;
|
| - |
|
52647 |
}
|
| - |
|
52648 |
|
| - |
|
52649 |
public void setFlipkartInventorySnapshot(List<FlipkartInventorySnapshot> flipkartInventorySnapshot) {
|
| - |
|
52650 |
this.flipkartInventorySnapshot = flipkartInventorySnapshot;
|
| - |
|
52651 |
}
|
| - |
|
52652 |
|
| - |
|
52653 |
public void unsetFlipkartInventorySnapshot() {
|
| - |
|
52654 |
this.flipkartInventorySnapshot = null;
|
| - |
|
52655 |
}
|
| - |
|
52656 |
|
| - |
|
52657 |
/** Returns true if field flipkartInventorySnapshot is set (has been assigned a value) and false otherwise */
|
| - |
|
52658 |
public boolean isSetFlipkartInventorySnapshot() {
|
| - |
|
52659 |
return this.flipkartInventorySnapshot != null;
|
| - |
|
52660 |
}
|
| - |
|
52661 |
|
| - |
|
52662 |
public void setFlipkartInventorySnapshotIsSet(boolean value) {
|
| - |
|
52663 |
if (!value) {
|
| - |
|
52664 |
this.flipkartInventorySnapshot = null;
|
| - |
|
52665 |
}
|
| - |
|
52666 |
}
|
| - |
|
52667 |
|
| - |
|
52668 |
public void setFieldValue(_Fields field, Object value) {
|
| - |
|
52669 |
switch (field) {
|
| - |
|
52670 |
case FLIPKART_INVENTORY_SNAPSHOT:
|
| - |
|
52671 |
if (value == null) {
|
| - |
|
52672 |
unsetFlipkartInventorySnapshot();
|
| - |
|
52673 |
} else {
|
| - |
|
52674 |
setFlipkartInventorySnapshot((List<FlipkartInventorySnapshot>)value);
|
| - |
|
52675 |
}
|
| - |
|
52676 |
break;
|
| - |
|
52677 |
|
| - |
|
52678 |
}
|
| - |
|
52679 |
}
|
| - |
|
52680 |
|
| - |
|
52681 |
public Object getFieldValue(_Fields field) {
|
| - |
|
52682 |
switch (field) {
|
| - |
|
52683 |
case FLIPKART_INVENTORY_SNAPSHOT:
|
| - |
|
52684 |
return getFlipkartInventorySnapshot();
|
| - |
|
52685 |
|
| - |
|
52686 |
}
|
| - |
|
52687 |
throw new IllegalStateException();
|
| - |
|
52688 |
}
|
| - |
|
52689 |
|
| - |
|
52690 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| - |
|
52691 |
public boolean isSet(_Fields field) {
|
| - |
|
52692 |
if (field == null) {
|
| - |
|
52693 |
throw new IllegalArgumentException();
|
| - |
|
52694 |
}
|
| - |
|
52695 |
|
| - |
|
52696 |
switch (field) {
|
| - |
|
52697 |
case FLIPKART_INVENTORY_SNAPSHOT:
|
| - |
|
52698 |
return isSetFlipkartInventorySnapshot();
|
| - |
|
52699 |
}
|
| - |
|
52700 |
throw new IllegalStateException();
|
| - |
|
52701 |
}
|
| - |
|
52702 |
|
| - |
|
52703 |
@Override
|
| - |
|
52704 |
public boolean equals(Object that) {
|
| - |
|
52705 |
if (that == null)
|
| - |
|
52706 |
return false;
|
| - |
|
52707 |
if (that instanceof addOrUpdateFlipkartInventorySnapshot_args)
|
| - |
|
52708 |
return this.equals((addOrUpdateFlipkartInventorySnapshot_args)that);
|
| - |
|
52709 |
return false;
|
| - |
|
52710 |
}
|
| - |
|
52711 |
|
| - |
|
52712 |
public boolean equals(addOrUpdateFlipkartInventorySnapshot_args that) {
|
| - |
|
52713 |
if (that == null)
|
| - |
|
52714 |
return false;
|
| - |
|
52715 |
|
| - |
|
52716 |
boolean this_present_flipkartInventorySnapshot = true && this.isSetFlipkartInventorySnapshot();
|
| - |
|
52717 |
boolean that_present_flipkartInventorySnapshot = true && that.isSetFlipkartInventorySnapshot();
|
| - |
|
52718 |
if (this_present_flipkartInventorySnapshot || that_present_flipkartInventorySnapshot) {
|
| - |
|
52719 |
if (!(this_present_flipkartInventorySnapshot && that_present_flipkartInventorySnapshot))
|
| - |
|
52720 |
return false;
|
| - |
|
52721 |
if (!this.flipkartInventorySnapshot.equals(that.flipkartInventorySnapshot))
|
| - |
|
52722 |
return false;
|
| - |
|
52723 |
}
|
| - |
|
52724 |
|
| - |
|
52725 |
return true;
|
| - |
|
52726 |
}
|
| - |
|
52727 |
|
| - |
|
52728 |
@Override
|
| - |
|
52729 |
public int hashCode() {
|
| - |
|
52730 |
return 0;
|
| - |
|
52731 |
}
|
| - |
|
52732 |
|
| - |
|
52733 |
public int compareTo(addOrUpdateFlipkartInventorySnapshot_args other) {
|
| - |
|
52734 |
if (!getClass().equals(other.getClass())) {
|
| - |
|
52735 |
return getClass().getName().compareTo(other.getClass().getName());
|
| - |
|
52736 |
}
|
| - |
|
52737 |
|
| - |
|
52738 |
int lastComparison = 0;
|
| - |
|
52739 |
addOrUpdateFlipkartInventorySnapshot_args typedOther = (addOrUpdateFlipkartInventorySnapshot_args)other;
|
| - |
|
52740 |
|
| - |
|
52741 |
lastComparison = Boolean.valueOf(isSetFlipkartInventorySnapshot()).compareTo(typedOther.isSetFlipkartInventorySnapshot());
|
| - |
|
52742 |
if (lastComparison != 0) {
|
| - |
|
52743 |
return lastComparison;
|
| - |
|
52744 |
}
|
| - |
|
52745 |
if (isSetFlipkartInventorySnapshot()) {
|
| - |
|
52746 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.flipkartInventorySnapshot, typedOther.flipkartInventorySnapshot);
|
| - |
|
52747 |
if (lastComparison != 0) {
|
| - |
|
52748 |
return lastComparison;
|
| - |
|
52749 |
}
|
| - |
|
52750 |
}
|
| - |
|
52751 |
return 0;
|
| - |
|
52752 |
}
|
| - |
|
52753 |
|
| - |
|
52754 |
public _Fields fieldForId(int fieldId) {
|
| - |
|
52755 |
return _Fields.findByThriftId(fieldId);
|
| - |
|
52756 |
}
|
| - |
|
52757 |
|
| - |
|
52758 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
| - |
|
52759 |
org.apache.thrift.protocol.TField field;
|
| - |
|
52760 |
iprot.readStructBegin();
|
| - |
|
52761 |
while (true)
|
| - |
|
52762 |
{
|
| - |
|
52763 |
field = iprot.readFieldBegin();
|
| - |
|
52764 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| - |
|
52765 |
break;
|
| - |
|
52766 |
}
|
| - |
|
52767 |
switch (field.id) {
|
| - |
|
52768 |
case -1: // FLIPKART_INVENTORY_SNAPSHOT
|
| - |
|
52769 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
| - |
|
52770 |
{
|
| - |
|
52771 |
org.apache.thrift.protocol.TList _list159 = iprot.readListBegin();
|
| - |
|
52772 |
this.flipkartInventorySnapshot = new ArrayList<FlipkartInventorySnapshot>(_list159.size);
|
| - |
|
52773 |
for (int _i160 = 0; _i160 < _list159.size; ++_i160)
|
| - |
|
52774 |
{
|
| - |
|
52775 |
FlipkartInventorySnapshot _elem161; // required
|
| - |
|
52776 |
_elem161 = new FlipkartInventorySnapshot();
|
| - |
|
52777 |
_elem161.read(iprot);
|
| - |
|
52778 |
this.flipkartInventorySnapshot.add(_elem161);
|
| - |
|
52779 |
}
|
| - |
|
52780 |
iprot.readListEnd();
|
| - |
|
52781 |
}
|
| - |
|
52782 |
} else {
|
| - |
|
52783 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
52784 |
}
|
| - |
|
52785 |
break;
|
| - |
|
52786 |
default:
|
| - |
|
52787 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
52788 |
}
|
| - |
|
52789 |
iprot.readFieldEnd();
|
| - |
|
52790 |
}
|
| - |
|
52791 |
iprot.readStructEnd();
|
| - |
|
52792 |
validate();
|
| - |
|
52793 |
}
|
| - |
|
52794 |
|
| - |
|
52795 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| - |
|
52796 |
validate();
|
| - |
|
52797 |
|
| - |
|
52798 |
oprot.writeStructBegin(STRUCT_DESC);
|
| - |
|
52799 |
if (this.flipkartInventorySnapshot != null) {
|
| - |
|
52800 |
oprot.writeFieldBegin(FLIPKART_INVENTORY_SNAPSHOT_FIELD_DESC);
|
| - |
|
52801 |
{
|
| - |
|
52802 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.flipkartInventorySnapshot.size()));
|
| - |
|
52803 |
for (FlipkartInventorySnapshot _iter162 : this.flipkartInventorySnapshot)
|
| - |
|
52804 |
{
|
| - |
|
52805 |
_iter162.write(oprot);
|
| - |
|
52806 |
}
|
| - |
|
52807 |
oprot.writeListEnd();
|
| - |
|
52808 |
}
|
| - |
|
52809 |
oprot.writeFieldEnd();
|
| - |
|
52810 |
}
|
| - |
|
52811 |
oprot.writeFieldStop();
|
| - |
|
52812 |
oprot.writeStructEnd();
|
| - |
|
52813 |
}
|
| - |
|
52814 |
|
| - |
|
52815 |
@Override
|
| - |
|
52816 |
public String toString() {
|
| - |
|
52817 |
StringBuilder sb = new StringBuilder("addOrUpdateFlipkartInventorySnapshot_args(");
|
| - |
|
52818 |
boolean first = true;
|
| - |
|
52819 |
|
| - |
|
52820 |
sb.append("flipkartInventorySnapshot:");
|
| - |
|
52821 |
if (this.flipkartInventorySnapshot == null) {
|
| - |
|
52822 |
sb.append("null");
|
| - |
|
52823 |
} else {
|
| - |
|
52824 |
sb.append(this.flipkartInventorySnapshot);
|
| - |
|
52825 |
}
|
| - |
|
52826 |
first = false;
|
| - |
|
52827 |
sb.append(")");
|
| - |
|
52828 |
return sb.toString();
|
| - |
|
52829 |
}
|
| - |
|
52830 |
|
| - |
|
52831 |
public void validate() throws org.apache.thrift.TException {
|
| - |
|
52832 |
// check for required fields
|
| - |
|
52833 |
}
|
| - |
|
52834 |
|
| - |
|
52835 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
| - |
|
52836 |
try {
|
| - |
|
52837 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
| - |
|
52838 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
52839 |
throw new java.io.IOException(te);
|
| - |
|
52840 |
}
|
| - |
|
52841 |
}
|
| - |
|
52842 |
|
| - |
|
52843 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
| - |
|
52844 |
try {
|
| - |
|
52845 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
| - |
|
52846 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
52847 |
throw new java.io.IOException(te);
|
| - |
|
52848 |
}
|
| - |
|
52849 |
}
|
| - |
|
52850 |
|
| - |
|
52851 |
}
|
| - |
|
52852 |
|
| - |
|
52853 |
public static class addOrUpdateFlipkartInventorySnapshot_result implements org.apache.thrift.TBase<addOrUpdateFlipkartInventorySnapshot_result, addOrUpdateFlipkartInventorySnapshot_result._Fields>, java.io.Serializable, Cloneable {
|
| - |
|
52854 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateFlipkartInventorySnapshot_result");
|
| - |
|
52855 |
|
| - |
|
52856 |
|
| - |
|
52857 |
|
| - |
|
52858 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| - |
|
52859 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| - |
|
52860 |
;
|
| - |
|
52861 |
|
| - |
|
52862 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| - |
|
52863 |
|
| - |
|
52864 |
static {
|
| - |
|
52865 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| - |
|
52866 |
byName.put(field.getFieldName(), field);
|
| - |
|
52867 |
}
|
| - |
|
52868 |
}
|
| - |
|
52869 |
|
| - |
|
52870 |
/**
|
| - |
|
52871 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
| - |
|
52872 |
*/
|
| - |
|
52873 |
public static _Fields findByThriftId(int fieldId) {
|
| - |
|
52874 |
switch(fieldId) {
|
| - |
|
52875 |
default:
|
| - |
|
52876 |
return null;
|
| - |
|
52877 |
}
|
| - |
|
52878 |
}
|
| - |
|
52879 |
|
| - |
|
52880 |
/**
|
| - |
|
52881 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
| - |
|
52882 |
* if it is not found.
|
| - |
|
52883 |
*/
|
| - |
|
52884 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
| - |
|
52885 |
_Fields fields = findByThriftId(fieldId);
|
| - |
|
52886 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
| - |
|
52887 |
return fields;
|
| - |
|
52888 |
}
|
| - |
|
52889 |
|
| - |
|
52890 |
/**
|
| - |
|
52891 |
* Find the _Fields constant that matches name, or null if its not found.
|
| - |
|
52892 |
*/
|
| - |
|
52893 |
public static _Fields findByName(String name) {
|
| - |
|
52894 |
return byName.get(name);
|
| - |
|
52895 |
}
|
| - |
|
52896 |
|
| - |
|
52897 |
private final short _thriftId;
|
| - |
|
52898 |
private final String _fieldName;
|
| - |
|
52899 |
|
| - |
|
52900 |
_Fields(short thriftId, String fieldName) {
|
| - |
|
52901 |
_thriftId = thriftId;
|
| - |
|
52902 |
_fieldName = fieldName;
|
| - |
|
52903 |
}
|
| - |
|
52904 |
|
| - |
|
52905 |
public short getThriftFieldId() {
|
| - |
|
52906 |
return _thriftId;
|
| - |
|
52907 |
}
|
| - |
|
52908 |
|
| - |
|
52909 |
public String getFieldName() {
|
| - |
|
52910 |
return _fieldName;
|
| - |
|
52911 |
}
|
| - |
|
52912 |
}
|
| - |
|
52913 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| - |
|
52914 |
static {
|
| - |
|
52915 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| - |
|
52916 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| - |
|
52917 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateFlipkartInventorySnapshot_result.class, metaDataMap);
|
| - |
|
52918 |
}
|
| - |
|
52919 |
|
| - |
|
52920 |
public addOrUpdateFlipkartInventorySnapshot_result() {
|
| - |
|
52921 |
}
|
| - |
|
52922 |
|
| - |
|
52923 |
/**
|
| - |
|
52924 |
* Performs a deep copy on <i>other</i>.
|
| - |
|
52925 |
*/
|
| - |
|
52926 |
public addOrUpdateFlipkartInventorySnapshot_result(addOrUpdateFlipkartInventorySnapshot_result other) {
|
| - |
|
52927 |
}
|
| - |
|
52928 |
|
| - |
|
52929 |
public addOrUpdateFlipkartInventorySnapshot_result deepCopy() {
|
| - |
|
52930 |
return new addOrUpdateFlipkartInventorySnapshot_result(this);
|
| - |
|
52931 |
}
|
| - |
|
52932 |
|
| - |
|
52933 |
@Override
|
| - |
|
52934 |
public void clear() {
|
| - |
|
52935 |
}
|
| - |
|
52936 |
|
| - |
|
52937 |
public void setFieldValue(_Fields field, Object value) {
|
| - |
|
52938 |
switch (field) {
|
| - |
|
52939 |
}
|
| - |
|
52940 |
}
|
| - |
|
52941 |
|
| - |
|
52942 |
public Object getFieldValue(_Fields field) {
|
| - |
|
52943 |
switch (field) {
|
| - |
|
52944 |
}
|
| - |
|
52945 |
throw new IllegalStateException();
|
| - |
|
52946 |
}
|
| - |
|
52947 |
|
| - |
|
52948 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| - |
|
52949 |
public boolean isSet(_Fields field) {
|
| - |
|
52950 |
if (field == null) {
|
| - |
|
52951 |
throw new IllegalArgumentException();
|
| - |
|
52952 |
}
|
| - |
|
52953 |
|
| - |
|
52954 |
switch (field) {
|
| - |
|
52955 |
}
|
| - |
|
52956 |
throw new IllegalStateException();
|
| - |
|
52957 |
}
|
| - |
|
52958 |
|
| - |
|
52959 |
@Override
|
| - |
|
52960 |
public boolean equals(Object that) {
|
| - |
|
52961 |
if (that == null)
|
| - |
|
52962 |
return false;
|
| - |
|
52963 |
if (that instanceof addOrUpdateFlipkartInventorySnapshot_result)
|
| - |
|
52964 |
return this.equals((addOrUpdateFlipkartInventorySnapshot_result)that);
|
| - |
|
52965 |
return false;
|
| - |
|
52966 |
}
|
| - |
|
52967 |
|
| - |
|
52968 |
public boolean equals(addOrUpdateFlipkartInventorySnapshot_result that) {
|
| - |
|
52969 |
if (that == null)
|
| - |
|
52970 |
return false;
|
| - |
|
52971 |
|
| - |
|
52972 |
return true;
|
| - |
|
52973 |
}
|
| - |
|
52974 |
|
| - |
|
52975 |
@Override
|
| - |
|
52976 |
public int hashCode() {
|
| - |
|
52977 |
return 0;
|
| - |
|
52978 |
}
|
| - |
|
52979 |
|
| - |
|
52980 |
public int compareTo(addOrUpdateFlipkartInventorySnapshot_result other) {
|
| - |
|
52981 |
if (!getClass().equals(other.getClass())) {
|
| - |
|
52982 |
return getClass().getName().compareTo(other.getClass().getName());
|
| - |
|
52983 |
}
|
| - |
|
52984 |
|
| - |
|
52985 |
int lastComparison = 0;
|
| - |
|
52986 |
addOrUpdateFlipkartInventorySnapshot_result typedOther = (addOrUpdateFlipkartInventorySnapshot_result)other;
|
| - |
|
52987 |
|
| - |
|
52988 |
return 0;
|
| - |
|
52989 |
}
|
| - |
|
52990 |
|
| - |
|
52991 |
public _Fields fieldForId(int fieldId) {
|
| - |
|
52992 |
return _Fields.findByThriftId(fieldId);
|
| - |
|
52993 |
}
|
| - |
|
52994 |
|
| - |
|
52995 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
| - |
|
52996 |
org.apache.thrift.protocol.TField field;
|
| - |
|
52997 |
iprot.readStructBegin();
|
| - |
|
52998 |
while (true)
|
| - |
|
52999 |
{
|
| - |
|
53000 |
field = iprot.readFieldBegin();
|
| - |
|
53001 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| - |
|
53002 |
break;
|
| - |
|
53003 |
}
|
| - |
|
53004 |
switch (field.id) {
|
| - |
|
53005 |
default:
|
| - |
|
53006 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
53007 |
}
|
| - |
|
53008 |
iprot.readFieldEnd();
|
| - |
|
53009 |
}
|
| - |
|
53010 |
iprot.readStructEnd();
|
| - |
|
53011 |
validate();
|
| - |
|
53012 |
}
|
| - |
|
53013 |
|
| - |
|
53014 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| - |
|
53015 |
oprot.writeStructBegin(STRUCT_DESC);
|
| - |
|
53016 |
|
| - |
|
53017 |
oprot.writeFieldStop();
|
| - |
|
53018 |
oprot.writeStructEnd();
|
| - |
|
53019 |
}
|
| - |
|
53020 |
|
| - |
|
53021 |
@Override
|
| - |
|
53022 |
public String toString() {
|
| - |
|
53023 |
StringBuilder sb = new StringBuilder("addOrUpdateFlipkartInventorySnapshot_result(");
|
| - |
|
53024 |
boolean first = true;
|
| - |
|
53025 |
|
| - |
|
53026 |
sb.append(")");
|
| - |
|
53027 |
return sb.toString();
|
| - |
|
53028 |
}
|
| - |
|
53029 |
|
| - |
|
53030 |
public void validate() throws org.apache.thrift.TException {
|
| - |
|
53031 |
// check for required fields
|
| - |
|
53032 |
}
|
| - |
|
53033 |
|
| - |
|
53034 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
| - |
|
53035 |
try {
|
| - |
|
53036 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
| - |
|
53037 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
53038 |
throw new java.io.IOException(te);
|
| - |
|
53039 |
}
|
| - |
|
53040 |
}
|
| - |
|
53041 |
|
| - |
|
53042 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
| - |
|
53043 |
try {
|
| - |
|
53044 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
| - |
|
53045 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
53046 |
throw new java.io.IOException(te);
|
| - |
|
53047 |
}
|
| - |
|
53048 |
}
|
| - |
|
53049 |
|
| - |
|
53050 |
}
|
| - |
|
53051 |
|
| - |
|
53052 |
public static class getFlipkartInventorySnapshot_args implements org.apache.thrift.TBase<getFlipkartInventorySnapshot_args, getFlipkartInventorySnapshot_args._Fields>, java.io.Serializable, Cloneable {
|
| - |
|
53053 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFlipkartInventorySnapshot_args");
|
| - |
|
53054 |
|
| - |
|
53055 |
|
| - |
|
53056 |
|
| - |
|
53057 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| - |
|
53058 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| - |
|
53059 |
;
|
| - |
|
53060 |
|
| - |
|
53061 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| - |
|
53062 |
|
| - |
|
53063 |
static {
|
| - |
|
53064 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| - |
|
53065 |
byName.put(field.getFieldName(), field);
|
| - |
|
53066 |
}
|
| - |
|
53067 |
}
|
| - |
|
53068 |
|
| - |
|
53069 |
/**
|
| - |
|
53070 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
| - |
|
53071 |
*/
|
| - |
|
53072 |
public static _Fields findByThriftId(int fieldId) {
|
| - |
|
53073 |
switch(fieldId) {
|
| - |
|
53074 |
default:
|
| - |
|
53075 |
return null;
|
| - |
|
53076 |
}
|
| - |
|
53077 |
}
|
| - |
|
53078 |
|
| - |
|
53079 |
/**
|
| - |
|
53080 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
| - |
|
53081 |
* if it is not found.
|
| - |
|
53082 |
*/
|
| - |
|
53083 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
| - |
|
53084 |
_Fields fields = findByThriftId(fieldId);
|
| - |
|
53085 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
| - |
|
53086 |
return fields;
|
| - |
|
53087 |
}
|
| - |
|
53088 |
|
| - |
|
53089 |
/**
|
| - |
|
53090 |
* Find the _Fields constant that matches name, or null if its not found.
|
| - |
|
53091 |
*/
|
| - |
|
53092 |
public static _Fields findByName(String name) {
|
| - |
|
53093 |
return byName.get(name);
|
| - |
|
53094 |
}
|
| - |
|
53095 |
|
| - |
|
53096 |
private final short _thriftId;
|
| - |
|
53097 |
private final String _fieldName;
|
| - |
|
53098 |
|
| - |
|
53099 |
_Fields(short thriftId, String fieldName) {
|
| - |
|
53100 |
_thriftId = thriftId;
|
| - |
|
53101 |
_fieldName = fieldName;
|
| - |
|
53102 |
}
|
| - |
|
53103 |
|
| - |
|
53104 |
public short getThriftFieldId() {
|
| - |
|
53105 |
return _thriftId;
|
| - |
|
53106 |
}
|
| - |
|
53107 |
|
| - |
|
53108 |
public String getFieldName() {
|
| - |
|
53109 |
return _fieldName;
|
| - |
|
53110 |
}
|
| - |
|
53111 |
}
|
| - |
|
53112 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| - |
|
53113 |
static {
|
| - |
|
53114 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| - |
|
53115 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| - |
|
53116 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFlipkartInventorySnapshot_args.class, metaDataMap);
|
| - |
|
53117 |
}
|
| - |
|
53118 |
|
| - |
|
53119 |
public getFlipkartInventorySnapshot_args() {
|
| - |
|
53120 |
}
|
| - |
|
53121 |
|
| - |
|
53122 |
/**
|
| - |
|
53123 |
* Performs a deep copy on <i>other</i>.
|
| - |
|
53124 |
*/
|
| - |
|
53125 |
public getFlipkartInventorySnapshot_args(getFlipkartInventorySnapshot_args other) {
|
| - |
|
53126 |
}
|
| - |
|
53127 |
|
| - |
|
53128 |
public getFlipkartInventorySnapshot_args deepCopy() {
|
| - |
|
53129 |
return new getFlipkartInventorySnapshot_args(this);
|
| - |
|
53130 |
}
|
| - |
|
53131 |
|
| - |
|
53132 |
@Override
|
| - |
|
53133 |
public void clear() {
|
| - |
|
53134 |
}
|
| - |
|
53135 |
|
| - |
|
53136 |
public void setFieldValue(_Fields field, Object value) {
|
| - |
|
53137 |
switch (field) {
|
| - |
|
53138 |
}
|
| - |
|
53139 |
}
|
| - |
|
53140 |
|
| - |
|
53141 |
public Object getFieldValue(_Fields field) {
|
| - |
|
53142 |
switch (field) {
|
| - |
|
53143 |
}
|
| - |
|
53144 |
throw new IllegalStateException();
|
| - |
|
53145 |
}
|
| - |
|
53146 |
|
| - |
|
53147 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| - |
|
53148 |
public boolean isSet(_Fields field) {
|
| - |
|
53149 |
if (field == null) {
|
| - |
|
53150 |
throw new IllegalArgumentException();
|
| - |
|
53151 |
}
|
| - |
|
53152 |
|
| - |
|
53153 |
switch (field) {
|
| - |
|
53154 |
}
|
| - |
|
53155 |
throw new IllegalStateException();
|
| - |
|
53156 |
}
|
| - |
|
53157 |
|
| - |
|
53158 |
@Override
|
| - |
|
53159 |
public boolean equals(Object that) {
|
| - |
|
53160 |
if (that == null)
|
| - |
|
53161 |
return false;
|
| - |
|
53162 |
if (that instanceof getFlipkartInventorySnapshot_args)
|
| - |
|
53163 |
return this.equals((getFlipkartInventorySnapshot_args)that);
|
| - |
|
53164 |
return false;
|
| - |
|
53165 |
}
|
| - |
|
53166 |
|
| - |
|
53167 |
public boolean equals(getFlipkartInventorySnapshot_args that) {
|
| - |
|
53168 |
if (that == null)
|
| - |
|
53169 |
return false;
|
| - |
|
53170 |
|
| - |
|
53171 |
return true;
|
| - |
|
53172 |
}
|
| - |
|
53173 |
|
| - |
|
53174 |
@Override
|
| - |
|
53175 |
public int hashCode() {
|
| - |
|
53176 |
return 0;
|
| - |
|
53177 |
}
|
| - |
|
53178 |
|
| - |
|
53179 |
public int compareTo(getFlipkartInventorySnapshot_args other) {
|
| - |
|
53180 |
if (!getClass().equals(other.getClass())) {
|
| - |
|
53181 |
return getClass().getName().compareTo(other.getClass().getName());
|
| - |
|
53182 |
}
|
| - |
|
53183 |
|
| - |
|
53184 |
int lastComparison = 0;
|
| - |
|
53185 |
getFlipkartInventorySnapshot_args typedOther = (getFlipkartInventorySnapshot_args)other;
|
| - |
|
53186 |
|
| - |
|
53187 |
return 0;
|
| - |
|
53188 |
}
|
| - |
|
53189 |
|
| - |
|
53190 |
public _Fields fieldForId(int fieldId) {
|
| - |
|
53191 |
return _Fields.findByThriftId(fieldId);
|
| - |
|
53192 |
}
|
| - |
|
53193 |
|
| - |
|
53194 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
| - |
|
53195 |
org.apache.thrift.protocol.TField field;
|
| - |
|
53196 |
iprot.readStructBegin();
|
| - |
|
53197 |
while (true)
|
| - |
|
53198 |
{
|
| - |
|
53199 |
field = iprot.readFieldBegin();
|
| - |
|
53200 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| - |
|
53201 |
break;
|
| - |
|
53202 |
}
|
| - |
|
53203 |
switch (field.id) {
|
| - |
|
53204 |
default:
|
| - |
|
53205 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
53206 |
}
|
| - |
|
53207 |
iprot.readFieldEnd();
|
| - |
|
53208 |
}
|
| - |
|
53209 |
iprot.readStructEnd();
|
| - |
|
53210 |
validate();
|
| - |
|
53211 |
}
|
| - |
|
53212 |
|
| - |
|
53213 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| - |
|
53214 |
validate();
|
| - |
|
53215 |
|
| - |
|
53216 |
oprot.writeStructBegin(STRUCT_DESC);
|
| - |
|
53217 |
oprot.writeFieldStop();
|
| - |
|
53218 |
oprot.writeStructEnd();
|
| - |
|
53219 |
}
|
| - |
|
53220 |
|
| - |
|
53221 |
@Override
|
| - |
|
53222 |
public String toString() {
|
| - |
|
53223 |
StringBuilder sb = new StringBuilder("getFlipkartInventorySnapshot_args(");
|
| - |
|
53224 |
boolean first = true;
|
| - |
|
53225 |
|
| - |
|
53226 |
sb.append(")");
|
| - |
|
53227 |
return sb.toString();
|
| - |
|
53228 |
}
|
| - |
|
53229 |
|
| - |
|
53230 |
public void validate() throws org.apache.thrift.TException {
|
| - |
|
53231 |
// check for required fields
|
| - |
|
53232 |
}
|
| - |
|
53233 |
|
| - |
|
53234 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
| - |
|
53235 |
try {
|
| - |
|
53236 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
| - |
|
53237 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
53238 |
throw new java.io.IOException(te);
|
| - |
|
53239 |
}
|
| - |
|
53240 |
}
|
| - |
|
53241 |
|
| - |
|
53242 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
| - |
|
53243 |
try {
|
| - |
|
53244 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
| - |
|
53245 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
53246 |
throw new java.io.IOException(te);
|
| - |
|
53247 |
}
|
| - |
|
53248 |
}
|
| - |
|
53249 |
|
| - |
|
53250 |
}
|
| - |
|
53251 |
|
| - |
|
53252 |
public static class getFlipkartInventorySnapshot_result implements org.apache.thrift.TBase<getFlipkartInventorySnapshot_result, getFlipkartInventorySnapshot_result._Fields>, java.io.Serializable, Cloneable {
|
| - |
|
53253 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFlipkartInventorySnapshot_result");
|
| - |
|
53254 |
|
| - |
|
53255 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
|
| - |
|
53256 |
|
| - |
|
53257 |
private List<FlipkartInventorySnapshot> success; // required
|
| - |
|
53258 |
|
| - |
|
53259 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| - |
|
53260 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| - |
|
53261 |
SUCCESS((short)0, "success");
|
| - |
|
53262 |
|
| - |
|
53263 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| - |
|
53264 |
|
| - |
|
53265 |
static {
|
| - |
|
53266 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| - |
|
53267 |
byName.put(field.getFieldName(), field);
|
| - |
|
53268 |
}
|
| - |
|
53269 |
}
|
| - |
|
53270 |
|
| - |
|
53271 |
/**
|
| - |
|
53272 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
| - |
|
53273 |
*/
|
| - |
|
53274 |
public static _Fields findByThriftId(int fieldId) {
|
| - |
|
53275 |
switch(fieldId) {
|
| - |
|
53276 |
case 0: // SUCCESS
|
| - |
|
53277 |
return SUCCESS;
|
| - |
|
53278 |
default:
|
| - |
|
53279 |
return null;
|
| - |
|
53280 |
}
|
| - |
|
53281 |
}
|
| - |
|
53282 |
|
| - |
|
53283 |
/**
|
| - |
|
53284 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
| - |
|
53285 |
* if it is not found.
|
| - |
|
53286 |
*/
|
| - |
|
53287 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
| - |
|
53288 |
_Fields fields = findByThriftId(fieldId);
|
| - |
|
53289 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
| - |
|
53290 |
return fields;
|
| - |
|
53291 |
}
|
| - |
|
53292 |
|
| - |
|
53293 |
/**
|
| - |
|
53294 |
* Find the _Fields constant that matches name, or null if its not found.
|
| - |
|
53295 |
*/
|
| - |
|
53296 |
public static _Fields findByName(String name) {
|
| - |
|
53297 |
return byName.get(name);
|
| - |
|
53298 |
}
|
| - |
|
53299 |
|
| - |
|
53300 |
private final short _thriftId;
|
| - |
|
53301 |
private final String _fieldName;
|
| - |
|
53302 |
|
| - |
|
53303 |
_Fields(short thriftId, String fieldName) {
|
| - |
|
53304 |
_thriftId = thriftId;
|
| - |
|
53305 |
_fieldName = fieldName;
|
| - |
|
53306 |
}
|
| - |
|
53307 |
|
| - |
|
53308 |
public short getThriftFieldId() {
|
| - |
|
53309 |
return _thriftId;
|
| - |
|
53310 |
}
|
| - |
|
53311 |
|
| - |
|
53312 |
public String getFieldName() {
|
| - |
|
53313 |
return _fieldName;
|
| - |
|
53314 |
}
|
| - |
|
53315 |
}
|
| - |
|
53316 |
|
| - |
|
53317 |
// isset id assignments
|
| - |
|
53318 |
|
| - |
|
53319 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| - |
|
53320 |
static {
|
| - |
|
53321 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| - |
|
53322 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
53323 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
| - |
|
53324 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FlipkartInventorySnapshot.class))));
|
| - |
|
53325 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| - |
|
53326 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFlipkartInventorySnapshot_result.class, metaDataMap);
|
| - |
|
53327 |
}
|
| - |
|
53328 |
|
| - |
|
53329 |
public getFlipkartInventorySnapshot_result() {
|
| - |
|
53330 |
}
|
| - |
|
53331 |
|
| - |
|
53332 |
public getFlipkartInventorySnapshot_result(
|
| - |
|
53333 |
List<FlipkartInventorySnapshot> success)
|
| - |
|
53334 |
{
|
| - |
|
53335 |
this();
|
| - |
|
53336 |
this.success = success;
|
| - |
|
53337 |
}
|
| - |
|
53338 |
|
| - |
|
53339 |
/**
|
| - |
|
53340 |
* Performs a deep copy on <i>other</i>.
|
| - |
|
53341 |
*/
|
| - |
|
53342 |
public getFlipkartInventorySnapshot_result(getFlipkartInventorySnapshot_result other) {
|
| - |
|
53343 |
if (other.isSetSuccess()) {
|
| - |
|
53344 |
List<FlipkartInventorySnapshot> __this__success = new ArrayList<FlipkartInventorySnapshot>();
|
| - |
|
53345 |
for (FlipkartInventorySnapshot other_element : other.success) {
|
| - |
|
53346 |
__this__success.add(new FlipkartInventorySnapshot(other_element));
|
| - |
|
53347 |
}
|
| - |
|
53348 |
this.success = __this__success;
|
| - |
|
53349 |
}
|
| - |
|
53350 |
}
|
| - |
|
53351 |
|
| - |
|
53352 |
public getFlipkartInventorySnapshot_result deepCopy() {
|
| - |
|
53353 |
return new getFlipkartInventorySnapshot_result(this);
|
| - |
|
53354 |
}
|
| - |
|
53355 |
|
| - |
|
53356 |
@Override
|
| - |
|
53357 |
public void clear() {
|
| - |
|
53358 |
this.success = null;
|
| - |
|
53359 |
}
|
| - |
|
53360 |
|
| - |
|
53361 |
public int getSuccessSize() {
|
| - |
|
53362 |
return (this.success == null) ? 0 : this.success.size();
|
| - |
|
53363 |
}
|
| - |
|
53364 |
|
| - |
|
53365 |
public java.util.Iterator<FlipkartInventorySnapshot> getSuccessIterator() {
|
| - |
|
53366 |
return (this.success == null) ? null : this.success.iterator();
|
| - |
|
53367 |
}
|
| - |
|
53368 |
|
| - |
|
53369 |
public void addToSuccess(FlipkartInventorySnapshot elem) {
|
| - |
|
53370 |
if (this.success == null) {
|
| - |
|
53371 |
this.success = new ArrayList<FlipkartInventorySnapshot>();
|
| - |
|
53372 |
}
|
| - |
|
53373 |
this.success.add(elem);
|
| - |
|
53374 |
}
|
| - |
|
53375 |
|
| - |
|
53376 |
public List<FlipkartInventorySnapshot> getSuccess() {
|
| - |
|
53377 |
return this.success;
|
| - |
|
53378 |
}
|
| - |
|
53379 |
|
| - |
|
53380 |
public void setSuccess(List<FlipkartInventorySnapshot> success) {
|
| - |
|
53381 |
this.success = success;
|
| - |
|
53382 |
}
|
| - |
|
53383 |
|
| - |
|
53384 |
public void unsetSuccess() {
|
| - |
|
53385 |
this.success = null;
|
| - |
|
53386 |
}
|
| - |
|
53387 |
|
| - |
|
53388 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| - |
|
53389 |
public boolean isSetSuccess() {
|
| - |
|
53390 |
return this.success != null;
|
| - |
|
53391 |
}
|
| - |
|
53392 |
|
| - |
|
53393 |
public void setSuccessIsSet(boolean value) {
|
| - |
|
53394 |
if (!value) {
|
| - |
|
53395 |
this.success = null;
|
| - |
|
53396 |
}
|
| - |
|
53397 |
}
|
| - |
|
53398 |
|
| - |
|
53399 |
public void setFieldValue(_Fields field, Object value) {
|
| - |
|
53400 |
switch (field) {
|
| - |
|
53401 |
case SUCCESS:
|
| - |
|
53402 |
if (value == null) {
|
| - |
|
53403 |
unsetSuccess();
|
| - |
|
53404 |
} else {
|
| - |
|
53405 |
setSuccess((List<FlipkartInventorySnapshot>)value);
|
| - |
|
53406 |
}
|
| - |
|
53407 |
break;
|
| - |
|
53408 |
|
| - |
|
53409 |
}
|
| - |
|
53410 |
}
|
| - |
|
53411 |
|
| - |
|
53412 |
public Object getFieldValue(_Fields field) {
|
| - |
|
53413 |
switch (field) {
|
| - |
|
53414 |
case SUCCESS:
|
| - |
|
53415 |
return getSuccess();
|
| - |
|
53416 |
|
| - |
|
53417 |
}
|
| - |
|
53418 |
throw new IllegalStateException();
|
| - |
|
53419 |
}
|
| - |
|
53420 |
|
| - |
|
53421 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| - |
|
53422 |
public boolean isSet(_Fields field) {
|
| - |
|
53423 |
if (field == null) {
|
| - |
|
53424 |
throw new IllegalArgumentException();
|
| - |
|
53425 |
}
|
| - |
|
53426 |
|
| - |
|
53427 |
switch (field) {
|
| - |
|
53428 |
case SUCCESS:
|
| - |
|
53429 |
return isSetSuccess();
|
| - |
|
53430 |
}
|
| - |
|
53431 |
throw new IllegalStateException();
|
| - |
|
53432 |
}
|
| - |
|
53433 |
|
| - |
|
53434 |
@Override
|
| - |
|
53435 |
public boolean equals(Object that) {
|
| - |
|
53436 |
if (that == null)
|
| - |
|
53437 |
return false;
|
| - |
|
53438 |
if (that instanceof getFlipkartInventorySnapshot_result)
|
| - |
|
53439 |
return this.equals((getFlipkartInventorySnapshot_result)that);
|
| - |
|
53440 |
return false;
|
| - |
|
53441 |
}
|
| - |
|
53442 |
|
| - |
|
53443 |
public boolean equals(getFlipkartInventorySnapshot_result that) {
|
| - |
|
53444 |
if (that == null)
|
| - |
|
53445 |
return false;
|
| - |
|
53446 |
|
| - |
|
53447 |
boolean this_present_success = true && this.isSetSuccess();
|
| - |
|
53448 |
boolean that_present_success = true && that.isSetSuccess();
|
| - |
|
53449 |
if (this_present_success || that_present_success) {
|
| - |
|
53450 |
if (!(this_present_success && that_present_success))
|
| - |
|
53451 |
return false;
|
| - |
|
53452 |
if (!this.success.equals(that.success))
|
| - |
|
53453 |
return false;
|
| - |
|
53454 |
}
|
| - |
|
53455 |
|
| - |
|
53456 |
return true;
|
| - |
|
53457 |
}
|
| - |
|
53458 |
|
| - |
|
53459 |
@Override
|
| - |
|
53460 |
public int hashCode() {
|
| - |
|
53461 |
return 0;
|
| - |
|
53462 |
}
|
| - |
|
53463 |
|
| - |
|
53464 |
public int compareTo(getFlipkartInventorySnapshot_result other) {
|
| - |
|
53465 |
if (!getClass().equals(other.getClass())) {
|
| - |
|
53466 |
return getClass().getName().compareTo(other.getClass().getName());
|
| - |
|
53467 |
}
|
| - |
|
53468 |
|
| - |
|
53469 |
int lastComparison = 0;
|
| - |
|
53470 |
getFlipkartInventorySnapshot_result typedOther = (getFlipkartInventorySnapshot_result)other;
|
| - |
|
53471 |
|
| - |
|
53472 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| - |
|
53473 |
if (lastComparison != 0) {
|
| - |
|
53474 |
return lastComparison;
|
| - |
|
53475 |
}
|
| - |
|
53476 |
if (isSetSuccess()) {
|
| - |
|
53477 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
| - |
|
53478 |
if (lastComparison != 0) {
|
| - |
|
53479 |
return lastComparison;
|
| - |
|
53480 |
}
|
| - |
|
53481 |
}
|
| - |
|
53482 |
return 0;
|
| - |
|
53483 |
}
|
| - |
|
53484 |
|
| - |
|
53485 |
public _Fields fieldForId(int fieldId) {
|
| - |
|
53486 |
return _Fields.findByThriftId(fieldId);
|
| - |
|
53487 |
}
|
| - |
|
53488 |
|
| - |
|
53489 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
| - |
|
53490 |
org.apache.thrift.protocol.TField field;
|
| - |
|
53491 |
iprot.readStructBegin();
|
| - |
|
53492 |
while (true)
|
| - |
|
53493 |
{
|
| - |
|
53494 |
field = iprot.readFieldBegin();
|
| - |
|
53495 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| - |
|
53496 |
break;
|
| - |
|
53497 |
}
|
| - |
|
53498 |
switch (field.id) {
|
| - |
|
53499 |
case 0: // SUCCESS
|
| - |
|
53500 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
| - |
|
53501 |
{
|
| - |
|
53502 |
org.apache.thrift.protocol.TList _list163 = iprot.readListBegin();
|
| - |
|
53503 |
this.success = new ArrayList<FlipkartInventorySnapshot>(_list163.size);
|
| - |
|
53504 |
for (int _i164 = 0; _i164 < _list163.size; ++_i164)
|
| - |
|
53505 |
{
|
| - |
|
53506 |
FlipkartInventorySnapshot _elem165; // required
|
| - |
|
53507 |
_elem165 = new FlipkartInventorySnapshot();
|
| - |
|
53508 |
_elem165.read(iprot);
|
| - |
|
53509 |
this.success.add(_elem165);
|
| - |
|
53510 |
}
|
| - |
|
53511 |
iprot.readListEnd();
|
| - |
|
53512 |
}
|
| - |
|
53513 |
} else {
|
| - |
|
53514 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
53515 |
}
|
| - |
|
53516 |
break;
|
| - |
|
53517 |
default:
|
| - |
|
53518 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
53519 |
}
|
| - |
|
53520 |
iprot.readFieldEnd();
|
| - |
|
53521 |
}
|
| - |
|
53522 |
iprot.readStructEnd();
|
| - |
|
53523 |
validate();
|
| - |
|
53524 |
}
|
| - |
|
53525 |
|
| - |
|
53526 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| - |
|
53527 |
oprot.writeStructBegin(STRUCT_DESC);
|
| - |
|
53528 |
|
| - |
|
53529 |
if (this.isSetSuccess()) {
|
| - |
|
53530 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| - |
|
53531 |
{
|
| - |
|
53532 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
| - |
|
53533 |
for (FlipkartInventorySnapshot _iter166 : this.success)
|
| - |
|
53534 |
{
|
| - |
|
53535 |
_iter166.write(oprot);
|
| - |
|
53536 |
}
|
| - |
|
53537 |
oprot.writeListEnd();
|
| - |
|
53538 |
}
|
| - |
|
53539 |
oprot.writeFieldEnd();
|
| - |
|
53540 |
}
|
| - |
|
53541 |
oprot.writeFieldStop();
|
| - |
|
53542 |
oprot.writeStructEnd();
|
| - |
|
53543 |
}
|
| - |
|
53544 |
|
| - |
|
53545 |
@Override
|
| - |
|
53546 |
public String toString() {
|
| - |
|
53547 |
StringBuilder sb = new StringBuilder("getFlipkartInventorySnapshot_result(");
|
| - |
|
53548 |
boolean first = true;
|
| - |
|
53549 |
|
| - |
|
53550 |
sb.append("success:");
|
| - |
|
53551 |
if (this.success == null) {
|
| - |
|
53552 |
sb.append("null");
|
| 52346 |
} else {
|
53553 |
} else {
|
| 52347 |
sb.append(this.success);
|
53554 |
sb.append(this.success);
|
| 52348 |
}
|
53555 |
}
|
| 52349 |
first = false;
|
53556 |
first = false;
|
| 52350 |
sb.append(")");
|
53557 |
sb.append(")");
|