Subversion Repositories SmartDukaan

Rev

Rev 10485 | Rev 11173 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 10485 Rev 10546
Line 371... Line 371...
371
 
371
 
372
    public FlipkartInventorySnapshot getFlipkartlInventoryForItem(long item_id) throws org.apache.thrift.TException;
372
    public FlipkartInventorySnapshot getFlipkartlInventoryForItem(long item_id) throws org.apache.thrift.TException;
373
 
373
 
374
    public Map<Long,String> getStateMaster() throws org.apache.thrift.TException;
374
    public Map<Long,String> getStateMaster() throws org.apache.thrift.TException;
375
 
375
 
-
 
376
    public void updateSnapdealStockAtEOD(List<SnapdealStockAtEOD> allsnapdealstock) throws org.apache.thrift.TException;
-
 
377
 
-
 
378
    public void updateFlipkartStockAtEOD(List<FlipkartStockAtEOD> allflipkartstock) throws org.apache.thrift.TException;
-
 
379
 
376
  }
380
  }
377
 
381
 
378
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
382
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
379
 
383
 
380
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
384
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
Line 527... Line 531...
527
 
531
 
528
    public void getFlipkartlInventoryForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFlipkartlInventoryForItem_call> resultHandler) throws org.apache.thrift.TException;
532
    public void getFlipkartlInventoryForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFlipkartlInventoryForItem_call> resultHandler) throws org.apache.thrift.TException;
529
 
533
 
530
    public void getStateMaster(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getStateMaster_call> resultHandler) throws org.apache.thrift.TException;
534
    public void getStateMaster(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getStateMaster_call> resultHandler) throws org.apache.thrift.TException;
531
 
535
 
-
 
536
    public void updateSnapdealStockAtEOD(List<SnapdealStockAtEOD> allsnapdealstock, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateSnapdealStockAtEOD_call> resultHandler) throws org.apache.thrift.TException;
-
 
537
 
-
 
538
    public void updateFlipkartStockAtEOD(List<FlipkartStockAtEOD> allflipkartstock, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateFlipkartStockAtEOD_call> resultHandler) throws org.apache.thrift.TException;
-
 
539
 
532
  }
540
  }
533
 
541
 
534
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
542
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
535
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
543
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
536
      public Factory() {}
544
      public Factory() {}
Line 2352... Line 2360...
2352
        return result.success;
2360
        return result.success;
2353
      }
2361
      }
2354
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getStateMaster failed: unknown result");
2362
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getStateMaster failed: unknown result");
2355
    }
2363
    }
2356
 
2364
 
-
 
2365
    public void updateSnapdealStockAtEOD(List<SnapdealStockAtEOD> allsnapdealstock) throws org.apache.thrift.TException
-
 
2366
    {
-
 
2367
      send_updateSnapdealStockAtEOD(allsnapdealstock);
-
 
2368
      recv_updateSnapdealStockAtEOD();
-
 
2369
    }
-
 
2370
 
-
 
2371
    public void send_updateSnapdealStockAtEOD(List<SnapdealStockAtEOD> allsnapdealstock) throws org.apache.thrift.TException
-
 
2372
    {
-
 
2373
      updateSnapdealStockAtEOD_args args = new updateSnapdealStockAtEOD_args();
-
 
2374
      args.setAllsnapdealstock(allsnapdealstock);
-
 
2375
      sendBase("updateSnapdealStockAtEOD", args);
-
 
2376
    }
-
 
2377
 
-
 
2378
    public void recv_updateSnapdealStockAtEOD() throws org.apache.thrift.TException
-
 
2379
    {
-
 
2380
      updateSnapdealStockAtEOD_result result = new updateSnapdealStockAtEOD_result();
-
 
2381
      receiveBase(result, "updateSnapdealStockAtEOD");
-
 
2382
      return;
-
 
2383
    }
-
 
2384
 
-
 
2385
    public void updateFlipkartStockAtEOD(List<FlipkartStockAtEOD> allflipkartstock) throws org.apache.thrift.TException
-
 
2386
    {
-
 
2387
      send_updateFlipkartStockAtEOD(allflipkartstock);
-
 
2388
      recv_updateFlipkartStockAtEOD();
-
 
2389
    }
-
 
2390
 
-
 
2391
    public void send_updateFlipkartStockAtEOD(List<FlipkartStockAtEOD> allflipkartstock) throws org.apache.thrift.TException
-
 
2392
    {
-
 
2393
      updateFlipkartStockAtEOD_args args = new updateFlipkartStockAtEOD_args();
-
 
2394
      args.setAllflipkartstock(allflipkartstock);
-
 
2395
      sendBase("updateFlipkartStockAtEOD", args);
-
 
2396
    }
-
 
2397
 
-
 
2398
    public void recv_updateFlipkartStockAtEOD() throws org.apache.thrift.TException
-
 
2399
    {
-
 
2400
      updateFlipkartStockAtEOD_result result = new updateFlipkartStockAtEOD_result();
-
 
2401
      receiveBase(result, "updateFlipkartStockAtEOD");
-
 
2402
      return;
-
 
2403
    }
-
 
2404
 
2357
  }
2405
  }
2358
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2406
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2359
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2407
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2360
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2408
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2361
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2409
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 4949... Line 4997...
4949
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4997
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
4950
        return (new Client(prot)).recv_getStateMaster();
4998
        return (new Client(prot)).recv_getStateMaster();
4951
      }
4999
      }
4952
    }
5000
    }
4953
 
5001
 
-
 
5002
    public void updateSnapdealStockAtEOD(List<SnapdealStockAtEOD> allsnapdealstock, org.apache.thrift.async.AsyncMethodCallback<updateSnapdealStockAtEOD_call> resultHandler) throws org.apache.thrift.TException {
-
 
5003
      checkReady();
-
 
5004
      updateSnapdealStockAtEOD_call method_call = new updateSnapdealStockAtEOD_call(allsnapdealstock, resultHandler, this, ___protocolFactory, ___transport);
-
 
5005
      this.___currentMethod = method_call;
-
 
5006
      ___manager.call(method_call);
-
 
5007
    }
-
 
5008
 
-
 
5009
    public static class updateSnapdealStockAtEOD_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5010
      private List<SnapdealStockAtEOD> allsnapdealstock;
-
 
5011
      public updateSnapdealStockAtEOD_call(List<SnapdealStockAtEOD> allsnapdealstock, org.apache.thrift.async.AsyncMethodCallback<updateSnapdealStockAtEOD_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 {
-
 
5012
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5013
        this.allsnapdealstock = allsnapdealstock;
-
 
5014
      }
-
 
5015
 
-
 
5016
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5017
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateSnapdealStockAtEOD", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5018
        updateSnapdealStockAtEOD_args args = new updateSnapdealStockAtEOD_args();
-
 
5019
        args.setAllsnapdealstock(allsnapdealstock);
-
 
5020
        args.write(prot);
-
 
5021
        prot.writeMessageEnd();
-
 
5022
      }
-
 
5023
 
-
 
5024
      public void getResult() throws org.apache.thrift.TException {
-
 
5025
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5026
          throw new IllegalStateException("Method call not finished!");
-
 
5027
        }
-
 
5028
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5029
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5030
        (new Client(prot)).recv_updateSnapdealStockAtEOD();
-
 
5031
      }
-
 
5032
    }
-
 
5033
 
-
 
5034
    public void updateFlipkartStockAtEOD(List<FlipkartStockAtEOD> allflipkartstock, org.apache.thrift.async.AsyncMethodCallback<updateFlipkartStockAtEOD_call> resultHandler) throws org.apache.thrift.TException {
-
 
5035
      checkReady();
-
 
5036
      updateFlipkartStockAtEOD_call method_call = new updateFlipkartStockAtEOD_call(allflipkartstock, resultHandler, this, ___protocolFactory, ___transport);
-
 
5037
      this.___currentMethod = method_call;
-
 
5038
      ___manager.call(method_call);
-
 
5039
    }
-
 
5040
 
-
 
5041
    public static class updateFlipkartStockAtEOD_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5042
      private List<FlipkartStockAtEOD> allflipkartstock;
-
 
5043
      public updateFlipkartStockAtEOD_call(List<FlipkartStockAtEOD> allflipkartstock, org.apache.thrift.async.AsyncMethodCallback<updateFlipkartStockAtEOD_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 {
-
 
5044
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5045
        this.allflipkartstock = allflipkartstock;
-
 
5046
      }
-
 
5047
 
-
 
5048
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5049
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateFlipkartStockAtEOD", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5050
        updateFlipkartStockAtEOD_args args = new updateFlipkartStockAtEOD_args();
-
 
5051
        args.setAllflipkartstock(allflipkartstock);
-
 
5052
        args.write(prot);
-
 
5053
        prot.writeMessageEnd();
-
 
5054
      }
-
 
5055
 
-
 
5056
      public void getResult() throws org.apache.thrift.TException {
-
 
5057
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5058
          throw new IllegalStateException("Method call not finished!");
-
 
5059
        }
-
 
5060
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5061
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5062
        (new Client(prot)).recv_updateFlipkartStockAtEOD();
-
 
5063
      }
-
 
5064
    }
-
 
5065
 
4954
  }
5066
  }
4955
 
5067
 
4956
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5068
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
4957
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5069
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
4958
    public Processor(I iface) {
5070
    public Processor(I iface) {
Line 5038... Line 5150...
5038
      processMap.put("getHoldInventoryDetails", new getHoldInventoryDetails());
5150
      processMap.put("getHoldInventoryDetails", new getHoldInventoryDetails());
5039
      processMap.put("addOrUpdateFlipkartInventorySnapshot", new addOrUpdateFlipkartInventorySnapshot());
5151
      processMap.put("addOrUpdateFlipkartInventorySnapshot", new addOrUpdateFlipkartInventorySnapshot());
5040
      processMap.put("getFlipkartInventorySnapshot", new getFlipkartInventorySnapshot());
5152
      processMap.put("getFlipkartInventorySnapshot", new getFlipkartInventorySnapshot());
5041
      processMap.put("getFlipkartlInventoryForItem", new getFlipkartlInventoryForItem());
5153
      processMap.put("getFlipkartlInventoryForItem", new getFlipkartlInventoryForItem());
5042
      processMap.put("getStateMaster", new getStateMaster());
5154
      processMap.put("getStateMaster", new getStateMaster());
-
 
5155
      processMap.put("updateSnapdealStockAtEOD", new updateSnapdealStockAtEOD());
-
 
5156
      processMap.put("updateFlipkartStockAtEOD", new updateFlipkartStockAtEOD());
5043
      return processMap;
5157
      return processMap;
5044
    }
5158
    }
5045
 
5159
 
5046
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
5160
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
5047
      public addWarehouse() {
5161
      public addWarehouse() {
Line 6367... Line 6481...
6367
        result.success = iface.getStateMaster();
6481
        result.success = iface.getStateMaster();
6368
        return result;
6482
        return result;
6369
      }
6483
      }
6370
    }
6484
    }
6371
 
6485
 
-
 
6486
    private static class updateSnapdealStockAtEOD<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateSnapdealStockAtEOD_args> {
-
 
6487
      public updateSnapdealStockAtEOD() {
-
 
6488
        super("updateSnapdealStockAtEOD");
-
 
6489
      }
-
 
6490
 
-
 
6491
      protected updateSnapdealStockAtEOD_args getEmptyArgsInstance() {
-
 
6492
        return new updateSnapdealStockAtEOD_args();
-
 
6493
      }
-
 
6494
 
-
 
6495
      protected updateSnapdealStockAtEOD_result getResult(I iface, updateSnapdealStockAtEOD_args args) throws org.apache.thrift.TException {
-
 
6496
        updateSnapdealStockAtEOD_result result = new updateSnapdealStockAtEOD_result();
-
 
6497
        iface.updateSnapdealStockAtEOD(args.allsnapdealstock);
-
 
6498
        return result;
-
 
6499
      }
-
 
6500
    }
-
 
6501
 
-
 
6502
    private static class updateFlipkartStockAtEOD<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateFlipkartStockAtEOD_args> {
-
 
6503
      public updateFlipkartStockAtEOD() {
-
 
6504
        super("updateFlipkartStockAtEOD");
-
 
6505
      }
-
 
6506
 
-
 
6507
      protected updateFlipkartStockAtEOD_args getEmptyArgsInstance() {
-
 
6508
        return new updateFlipkartStockAtEOD_args();
-
 
6509
      }
-
 
6510
 
-
 
6511
      protected updateFlipkartStockAtEOD_result getResult(I iface, updateFlipkartStockAtEOD_args args) throws org.apache.thrift.TException {
-
 
6512
        updateFlipkartStockAtEOD_result result = new updateFlipkartStockAtEOD_result();
-
 
6513
        iface.updateFlipkartStockAtEOD(args.allflipkartstock);
-
 
6514
        return result;
-
 
6515
      }
-
 
6516
    }
-
 
6517
 
6372
  }
6518
  }
6373
 
6519
 
6374
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
6520
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
6375
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
6521
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
6376
 
6522
 
Line 56593... Line 56739...
56593
      sb.append(")");
56739
      sb.append(")");
56594
      return sb.toString();
56740
      return sb.toString();
56595
    }
56741
    }
56596
 
56742
 
56597
    public void validate() throws org.apache.thrift.TException {
56743
    public void validate() throws org.apache.thrift.TException {
-
 
56744
      // check for required fields
-
 
56745
    }
-
 
56746
 
-
 
56747
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
56748
      try {
-
 
56749
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
56750
      } catch (org.apache.thrift.TException te) {
-
 
56751
        throw new java.io.IOException(te);
-
 
56752
      }
-
 
56753
    }
-
 
56754
 
-
 
56755
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
56756
      try {
-
 
56757
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
56758
      } catch (org.apache.thrift.TException te) {
-
 
56759
        throw new java.io.IOException(te);
-
 
56760
      }
-
 
56761
    }
-
 
56762
 
-
 
56763
  }
-
 
56764
 
-
 
56765
  public static class updateSnapdealStockAtEOD_args implements org.apache.thrift.TBase<updateSnapdealStockAtEOD_args, updateSnapdealStockAtEOD_args._Fields>, java.io.Serializable, Cloneable   {
-
 
56766
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateSnapdealStockAtEOD_args");
-
 
56767
 
-
 
56768
    private static final org.apache.thrift.protocol.TField ALLSNAPDEALSTOCK_FIELD_DESC = new org.apache.thrift.protocol.TField("allsnapdealstock", org.apache.thrift.protocol.TType.LIST, (short)-1);
-
 
56769
 
-
 
56770
    private List<SnapdealStockAtEOD> allsnapdealstock; // required
-
 
56771
 
-
 
56772
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
56773
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
56774
      ALLSNAPDEALSTOCK((short)-1, "allsnapdealstock");
-
 
56775
 
-
 
56776
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
56777
 
-
 
56778
      static {
-
 
56779
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
56780
          byName.put(field.getFieldName(), field);
-
 
56781
        }
-
 
56782
      }
-
 
56783
 
-
 
56784
      /**
-
 
56785
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
56786
       */
-
 
56787
      public static _Fields findByThriftId(int fieldId) {
-
 
56788
        switch(fieldId) {
-
 
56789
          case -1: // ALLSNAPDEALSTOCK
-
 
56790
            return ALLSNAPDEALSTOCK;
-
 
56791
          default:
-
 
56792
            return null;
-
 
56793
        }
-
 
56794
      }
-
 
56795
 
-
 
56796
      /**
-
 
56797
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
56798
       * if it is not found.
-
 
56799
       */
-
 
56800
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
56801
        _Fields fields = findByThriftId(fieldId);
-
 
56802
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
56803
        return fields;
-
 
56804
      }
-
 
56805
 
-
 
56806
      /**
-
 
56807
       * Find the _Fields constant that matches name, or null if its not found.
-
 
56808
       */
-
 
56809
      public static _Fields findByName(String name) {
-
 
56810
        return byName.get(name);
-
 
56811
      }
-
 
56812
 
-
 
56813
      private final short _thriftId;
-
 
56814
      private final String _fieldName;
-
 
56815
 
-
 
56816
      _Fields(short thriftId, String fieldName) {
-
 
56817
        _thriftId = thriftId;
-
 
56818
        _fieldName = fieldName;
-
 
56819
      }
-
 
56820
 
-
 
56821
      public short getThriftFieldId() {
-
 
56822
        return _thriftId;
-
 
56823
      }
-
 
56824
 
-
 
56825
      public String getFieldName() {
-
 
56826
        return _fieldName;
-
 
56827
      }
-
 
56828
    }
-
 
56829
 
-
 
56830
    // isset id assignments
-
 
56831
 
-
 
56832
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
56833
    static {
-
 
56834
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
56835
      tmpMap.put(_Fields.ALLSNAPDEALSTOCK, new org.apache.thrift.meta_data.FieldMetaData("allsnapdealstock", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
56836
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
56837
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SnapdealStockAtEOD.class))));
-
 
56838
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
56839
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateSnapdealStockAtEOD_args.class, metaDataMap);
-
 
56840
    }
-
 
56841
 
-
 
56842
    public updateSnapdealStockAtEOD_args() {
-
 
56843
    }
-
 
56844
 
-
 
56845
    public updateSnapdealStockAtEOD_args(
-
 
56846
      List<SnapdealStockAtEOD> allsnapdealstock)
-
 
56847
    {
-
 
56848
      this();
-
 
56849
      this.allsnapdealstock = allsnapdealstock;
-
 
56850
    }
-
 
56851
 
-
 
56852
    /**
-
 
56853
     * Performs a deep copy on <i>other</i>.
-
 
56854
     */
-
 
56855
    public updateSnapdealStockAtEOD_args(updateSnapdealStockAtEOD_args other) {
-
 
56856
      if (other.isSetAllsnapdealstock()) {
-
 
56857
        List<SnapdealStockAtEOD> __this__allsnapdealstock = new ArrayList<SnapdealStockAtEOD>();
-
 
56858
        for (SnapdealStockAtEOD other_element : other.allsnapdealstock) {
-
 
56859
          __this__allsnapdealstock.add(new SnapdealStockAtEOD(other_element));
-
 
56860
        }
-
 
56861
        this.allsnapdealstock = __this__allsnapdealstock;
-
 
56862
      }
-
 
56863
    }
-
 
56864
 
-
 
56865
    public updateSnapdealStockAtEOD_args deepCopy() {
-
 
56866
      return new updateSnapdealStockAtEOD_args(this);
-
 
56867
    }
-
 
56868
 
-
 
56869
    @Override
-
 
56870
    public void clear() {
-
 
56871
      this.allsnapdealstock = null;
-
 
56872
    }
-
 
56873
 
-
 
56874
    public int getAllsnapdealstockSize() {
-
 
56875
      return (this.allsnapdealstock == null) ? 0 : this.allsnapdealstock.size();
-
 
56876
    }
-
 
56877
 
-
 
56878
    public java.util.Iterator<SnapdealStockAtEOD> getAllsnapdealstockIterator() {
-
 
56879
      return (this.allsnapdealstock == null) ? null : this.allsnapdealstock.iterator();
-
 
56880
    }
-
 
56881
 
-
 
56882
    public void addToAllsnapdealstock(SnapdealStockAtEOD elem) {
-
 
56883
      if (this.allsnapdealstock == null) {
-
 
56884
        this.allsnapdealstock = new ArrayList<SnapdealStockAtEOD>();
-
 
56885
      }
-
 
56886
      this.allsnapdealstock.add(elem);
-
 
56887
    }
-
 
56888
 
-
 
56889
    public List<SnapdealStockAtEOD> getAllsnapdealstock() {
-
 
56890
      return this.allsnapdealstock;
-
 
56891
    }
-
 
56892
 
-
 
56893
    public void setAllsnapdealstock(List<SnapdealStockAtEOD> allsnapdealstock) {
-
 
56894
      this.allsnapdealstock = allsnapdealstock;
-
 
56895
    }
-
 
56896
 
-
 
56897
    public void unsetAllsnapdealstock() {
-
 
56898
      this.allsnapdealstock = null;
-
 
56899
    }
-
 
56900
 
-
 
56901
    /** Returns true if field allsnapdealstock is set (has been assigned a value) and false otherwise */
-
 
56902
    public boolean isSetAllsnapdealstock() {
-
 
56903
      return this.allsnapdealstock != null;
-
 
56904
    }
-
 
56905
 
-
 
56906
    public void setAllsnapdealstockIsSet(boolean value) {
-
 
56907
      if (!value) {
-
 
56908
        this.allsnapdealstock = null;
-
 
56909
      }
-
 
56910
    }
-
 
56911
 
-
 
56912
    public void setFieldValue(_Fields field, Object value) {
-
 
56913
      switch (field) {
-
 
56914
      case ALLSNAPDEALSTOCK:
-
 
56915
        if (value == null) {
-
 
56916
          unsetAllsnapdealstock();
-
 
56917
        } else {
-
 
56918
          setAllsnapdealstock((List<SnapdealStockAtEOD>)value);
-
 
56919
        }
-
 
56920
        break;
-
 
56921
 
-
 
56922
      }
-
 
56923
    }
-
 
56924
 
-
 
56925
    public Object getFieldValue(_Fields field) {
-
 
56926
      switch (field) {
-
 
56927
      case ALLSNAPDEALSTOCK:
-
 
56928
        return getAllsnapdealstock();
-
 
56929
 
-
 
56930
      }
-
 
56931
      throw new IllegalStateException();
-
 
56932
    }
-
 
56933
 
-
 
56934
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
56935
    public boolean isSet(_Fields field) {
-
 
56936
      if (field == null) {
-
 
56937
        throw new IllegalArgumentException();
-
 
56938
      }
-
 
56939
 
-
 
56940
      switch (field) {
-
 
56941
      case ALLSNAPDEALSTOCK:
-
 
56942
        return isSetAllsnapdealstock();
-
 
56943
      }
-
 
56944
      throw new IllegalStateException();
-
 
56945
    }
-
 
56946
 
-
 
56947
    @Override
-
 
56948
    public boolean equals(Object that) {
-
 
56949
      if (that == null)
-
 
56950
        return false;
-
 
56951
      if (that instanceof updateSnapdealStockAtEOD_args)
-
 
56952
        return this.equals((updateSnapdealStockAtEOD_args)that);
-
 
56953
      return false;
-
 
56954
    }
-
 
56955
 
-
 
56956
    public boolean equals(updateSnapdealStockAtEOD_args that) {
-
 
56957
      if (that == null)
-
 
56958
        return false;
-
 
56959
 
-
 
56960
      boolean this_present_allsnapdealstock = true && this.isSetAllsnapdealstock();
-
 
56961
      boolean that_present_allsnapdealstock = true && that.isSetAllsnapdealstock();
-
 
56962
      if (this_present_allsnapdealstock || that_present_allsnapdealstock) {
-
 
56963
        if (!(this_present_allsnapdealstock && that_present_allsnapdealstock))
-
 
56964
          return false;
-
 
56965
        if (!this.allsnapdealstock.equals(that.allsnapdealstock))
-
 
56966
          return false;
-
 
56967
      }
-
 
56968
 
-
 
56969
      return true;
-
 
56970
    }
-
 
56971
 
-
 
56972
    @Override
-
 
56973
    public int hashCode() {
-
 
56974
      return 0;
-
 
56975
    }
-
 
56976
 
-
 
56977
    public int compareTo(updateSnapdealStockAtEOD_args other) {
-
 
56978
      if (!getClass().equals(other.getClass())) {
-
 
56979
        return getClass().getName().compareTo(other.getClass().getName());
-
 
56980
      }
-
 
56981
 
-
 
56982
      int lastComparison = 0;
-
 
56983
      updateSnapdealStockAtEOD_args typedOther = (updateSnapdealStockAtEOD_args)other;
-
 
56984
 
-
 
56985
      lastComparison = Boolean.valueOf(isSetAllsnapdealstock()).compareTo(typedOther.isSetAllsnapdealstock());
-
 
56986
      if (lastComparison != 0) {
-
 
56987
        return lastComparison;
-
 
56988
      }
-
 
56989
      if (isSetAllsnapdealstock()) {
-
 
56990
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.allsnapdealstock, typedOther.allsnapdealstock);
-
 
56991
        if (lastComparison != 0) {
-
 
56992
          return lastComparison;
-
 
56993
        }
-
 
56994
      }
-
 
56995
      return 0;
-
 
56996
    }
-
 
56997
 
-
 
56998
    public _Fields fieldForId(int fieldId) {
-
 
56999
      return _Fields.findByThriftId(fieldId);
-
 
57000
    }
-
 
57001
 
-
 
57002
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
57003
      org.apache.thrift.protocol.TField field;
-
 
57004
      iprot.readStructBegin();
-
 
57005
      while (true)
-
 
57006
      {
-
 
57007
        field = iprot.readFieldBegin();
-
 
57008
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
57009
          break;
-
 
57010
        }
-
 
57011
        switch (field.id) {
-
 
57012
          case -1: // ALLSNAPDEALSTOCK
-
 
57013
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
57014
              {
-
 
57015
                org.apache.thrift.protocol.TList _list180 = iprot.readListBegin();
-
 
57016
                this.allsnapdealstock = new ArrayList<SnapdealStockAtEOD>(_list180.size);
-
 
57017
                for (int _i181 = 0; _i181 < _list180.size; ++_i181)
-
 
57018
                {
-
 
57019
                  SnapdealStockAtEOD _elem182; // required
-
 
57020
                  _elem182 = new SnapdealStockAtEOD();
-
 
57021
                  _elem182.read(iprot);
-
 
57022
                  this.allsnapdealstock.add(_elem182);
-
 
57023
                }
-
 
57024
                iprot.readListEnd();
-
 
57025
              }
-
 
57026
            } else { 
-
 
57027
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
57028
            }
-
 
57029
            break;
-
 
57030
          default:
-
 
57031
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
57032
        }
-
 
57033
        iprot.readFieldEnd();
-
 
57034
      }
-
 
57035
      iprot.readStructEnd();
-
 
57036
      validate();
-
 
57037
    }
-
 
57038
 
-
 
57039
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
57040
      validate();
-
 
57041
 
-
 
57042
      oprot.writeStructBegin(STRUCT_DESC);
-
 
57043
      if (this.allsnapdealstock != null) {
-
 
57044
        oprot.writeFieldBegin(ALLSNAPDEALSTOCK_FIELD_DESC);
-
 
57045
        {
-
 
57046
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.allsnapdealstock.size()));
-
 
57047
          for (SnapdealStockAtEOD _iter183 : this.allsnapdealstock)
-
 
57048
          {
-
 
57049
            _iter183.write(oprot);
-
 
57050
          }
-
 
57051
          oprot.writeListEnd();
-
 
57052
        }
-
 
57053
        oprot.writeFieldEnd();
-
 
57054
      }
-
 
57055
      oprot.writeFieldStop();
-
 
57056
      oprot.writeStructEnd();
-
 
57057
    }
-
 
57058
 
-
 
57059
    @Override
-
 
57060
    public String toString() {
-
 
57061
      StringBuilder sb = new StringBuilder("updateSnapdealStockAtEOD_args(");
-
 
57062
      boolean first = true;
-
 
57063
 
-
 
57064
      sb.append("allsnapdealstock:");
-
 
57065
      if (this.allsnapdealstock == null) {
-
 
57066
        sb.append("null");
-
 
57067
      } else {
-
 
57068
        sb.append(this.allsnapdealstock);
-
 
57069
      }
-
 
57070
      first = false;
-
 
57071
      sb.append(")");
-
 
57072
      return sb.toString();
-
 
57073
    }
-
 
57074
 
-
 
57075
    public void validate() throws org.apache.thrift.TException {
-
 
57076
      // check for required fields
-
 
57077
    }
-
 
57078
 
-
 
57079
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
57080
      try {
-
 
57081
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
57082
      } catch (org.apache.thrift.TException te) {
-
 
57083
        throw new java.io.IOException(te);
-
 
57084
      }
-
 
57085
    }
-
 
57086
 
-
 
57087
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
57088
      try {
-
 
57089
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
57090
      } catch (org.apache.thrift.TException te) {
-
 
57091
        throw new java.io.IOException(te);
-
 
57092
      }
-
 
57093
    }
-
 
57094
 
-
 
57095
  }
-
 
57096
 
-
 
57097
  public static class updateSnapdealStockAtEOD_result implements org.apache.thrift.TBase<updateSnapdealStockAtEOD_result, updateSnapdealStockAtEOD_result._Fields>, java.io.Serializable, Cloneable   {
-
 
57098
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateSnapdealStockAtEOD_result");
-
 
57099
 
-
 
57100
 
-
 
57101
 
-
 
57102
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
57103
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
57104
;
-
 
57105
 
-
 
57106
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
57107
 
-
 
57108
      static {
-
 
57109
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
57110
          byName.put(field.getFieldName(), field);
-
 
57111
        }
-
 
57112
      }
-
 
57113
 
-
 
57114
      /**
-
 
57115
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
57116
       */
-
 
57117
      public static _Fields findByThriftId(int fieldId) {
-
 
57118
        switch(fieldId) {
-
 
57119
          default:
-
 
57120
            return null;
-
 
57121
        }
-
 
57122
      }
-
 
57123
 
-
 
57124
      /**
-
 
57125
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
57126
       * if it is not found.
-
 
57127
       */
-
 
57128
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
57129
        _Fields fields = findByThriftId(fieldId);
-
 
57130
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
57131
        return fields;
-
 
57132
      }
-
 
57133
 
-
 
57134
      /**
-
 
57135
       * Find the _Fields constant that matches name, or null if its not found.
-
 
57136
       */
-
 
57137
      public static _Fields findByName(String name) {
-
 
57138
        return byName.get(name);
-
 
57139
      }
-
 
57140
 
-
 
57141
      private final short _thriftId;
-
 
57142
      private final String _fieldName;
-
 
57143
 
-
 
57144
      _Fields(short thriftId, String fieldName) {
-
 
57145
        _thriftId = thriftId;
-
 
57146
        _fieldName = fieldName;
-
 
57147
      }
-
 
57148
 
-
 
57149
      public short getThriftFieldId() {
-
 
57150
        return _thriftId;
-
 
57151
      }
-
 
57152
 
-
 
57153
      public String getFieldName() {
-
 
57154
        return _fieldName;
-
 
57155
      }
-
 
57156
    }
-
 
57157
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
57158
    static {
-
 
57159
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
57160
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
57161
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateSnapdealStockAtEOD_result.class, metaDataMap);
-
 
57162
    }
-
 
57163
 
-
 
57164
    public updateSnapdealStockAtEOD_result() {
-
 
57165
    }
-
 
57166
 
-
 
57167
    /**
-
 
57168
     * Performs a deep copy on <i>other</i>.
-
 
57169
     */
-
 
57170
    public updateSnapdealStockAtEOD_result(updateSnapdealStockAtEOD_result other) {
-
 
57171
    }
-
 
57172
 
-
 
57173
    public updateSnapdealStockAtEOD_result deepCopy() {
-
 
57174
      return new updateSnapdealStockAtEOD_result(this);
-
 
57175
    }
-
 
57176
 
-
 
57177
    @Override
-
 
57178
    public void clear() {
-
 
57179
    }
-
 
57180
 
-
 
57181
    public void setFieldValue(_Fields field, Object value) {
-
 
57182
      switch (field) {
-
 
57183
      }
-
 
57184
    }
-
 
57185
 
-
 
57186
    public Object getFieldValue(_Fields field) {
-
 
57187
      switch (field) {
-
 
57188
      }
-
 
57189
      throw new IllegalStateException();
-
 
57190
    }
-
 
57191
 
-
 
57192
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
57193
    public boolean isSet(_Fields field) {
-
 
57194
      if (field == null) {
-
 
57195
        throw new IllegalArgumentException();
-
 
57196
      }
-
 
57197
 
-
 
57198
      switch (field) {
-
 
57199
      }
-
 
57200
      throw new IllegalStateException();
-
 
57201
    }
-
 
57202
 
-
 
57203
    @Override
-
 
57204
    public boolean equals(Object that) {
-
 
57205
      if (that == null)
-
 
57206
        return false;
-
 
57207
      if (that instanceof updateSnapdealStockAtEOD_result)
-
 
57208
        return this.equals((updateSnapdealStockAtEOD_result)that);
-
 
57209
      return false;
-
 
57210
    }
-
 
57211
 
-
 
57212
    public boolean equals(updateSnapdealStockAtEOD_result that) {
-
 
57213
      if (that == null)
-
 
57214
        return false;
-
 
57215
 
-
 
57216
      return true;
-
 
57217
    }
-
 
57218
 
-
 
57219
    @Override
-
 
57220
    public int hashCode() {
-
 
57221
      return 0;
-
 
57222
    }
-
 
57223
 
-
 
57224
    public int compareTo(updateSnapdealStockAtEOD_result other) {
-
 
57225
      if (!getClass().equals(other.getClass())) {
-
 
57226
        return getClass().getName().compareTo(other.getClass().getName());
-
 
57227
      }
-
 
57228
 
-
 
57229
      int lastComparison = 0;
-
 
57230
      updateSnapdealStockAtEOD_result typedOther = (updateSnapdealStockAtEOD_result)other;
-
 
57231
 
-
 
57232
      return 0;
-
 
57233
    }
-
 
57234
 
-
 
57235
    public _Fields fieldForId(int fieldId) {
-
 
57236
      return _Fields.findByThriftId(fieldId);
-
 
57237
    }
-
 
57238
 
-
 
57239
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
57240
      org.apache.thrift.protocol.TField field;
-
 
57241
      iprot.readStructBegin();
-
 
57242
      while (true)
-
 
57243
      {
-
 
57244
        field = iprot.readFieldBegin();
-
 
57245
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
57246
          break;
-
 
57247
        }
-
 
57248
        switch (field.id) {
-
 
57249
          default:
-
 
57250
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
57251
        }
-
 
57252
        iprot.readFieldEnd();
-
 
57253
      }
-
 
57254
      iprot.readStructEnd();
-
 
57255
      validate();
-
 
57256
    }
-
 
57257
 
-
 
57258
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
57259
      oprot.writeStructBegin(STRUCT_DESC);
-
 
57260
 
-
 
57261
      oprot.writeFieldStop();
-
 
57262
      oprot.writeStructEnd();
-
 
57263
    }
-
 
57264
 
-
 
57265
    @Override
-
 
57266
    public String toString() {
-
 
57267
      StringBuilder sb = new StringBuilder("updateSnapdealStockAtEOD_result(");
-
 
57268
      boolean first = true;
-
 
57269
 
-
 
57270
      sb.append(")");
-
 
57271
      return sb.toString();
-
 
57272
    }
-
 
57273
 
-
 
57274
    public void validate() throws org.apache.thrift.TException {
-
 
57275
      // check for required fields
-
 
57276
    }
-
 
57277
 
-
 
57278
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
57279
      try {
-
 
57280
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
57281
      } catch (org.apache.thrift.TException te) {
-
 
57282
        throw new java.io.IOException(te);
-
 
57283
      }
-
 
57284
    }
-
 
57285
 
-
 
57286
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
57287
      try {
-
 
57288
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
57289
      } catch (org.apache.thrift.TException te) {
-
 
57290
        throw new java.io.IOException(te);
-
 
57291
      }
-
 
57292
    }
-
 
57293
 
-
 
57294
  }
-
 
57295
 
-
 
57296
  public static class updateFlipkartStockAtEOD_args implements org.apache.thrift.TBase<updateFlipkartStockAtEOD_args, updateFlipkartStockAtEOD_args._Fields>, java.io.Serializable, Cloneable   {
-
 
57297
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateFlipkartStockAtEOD_args");
-
 
57298
 
-
 
57299
    private static final org.apache.thrift.protocol.TField ALLFLIPKARTSTOCK_FIELD_DESC = new org.apache.thrift.protocol.TField("allflipkartstock", org.apache.thrift.protocol.TType.LIST, (short)-1);
-
 
57300
 
-
 
57301
    private List<FlipkartStockAtEOD> allflipkartstock; // required
-
 
57302
 
-
 
57303
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
57304
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
57305
      ALLFLIPKARTSTOCK((short)-1, "allflipkartstock");
-
 
57306
 
-
 
57307
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
57308
 
-
 
57309
      static {
-
 
57310
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
57311
          byName.put(field.getFieldName(), field);
-
 
57312
        }
-
 
57313
      }
-
 
57314
 
-
 
57315
      /**
-
 
57316
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
57317
       */
-
 
57318
      public static _Fields findByThriftId(int fieldId) {
-
 
57319
        switch(fieldId) {
-
 
57320
          case -1: // ALLFLIPKARTSTOCK
-
 
57321
            return ALLFLIPKARTSTOCK;
-
 
57322
          default:
-
 
57323
            return null;
-
 
57324
        }
-
 
57325
      }
-
 
57326
 
-
 
57327
      /**
-
 
57328
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
57329
       * if it is not found.
-
 
57330
       */
-
 
57331
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
57332
        _Fields fields = findByThriftId(fieldId);
-
 
57333
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
57334
        return fields;
-
 
57335
      }
-
 
57336
 
-
 
57337
      /**
-
 
57338
       * Find the _Fields constant that matches name, or null if its not found.
-
 
57339
       */
-
 
57340
      public static _Fields findByName(String name) {
-
 
57341
        return byName.get(name);
-
 
57342
      }
-
 
57343
 
-
 
57344
      private final short _thriftId;
-
 
57345
      private final String _fieldName;
-
 
57346
 
-
 
57347
      _Fields(short thriftId, String fieldName) {
-
 
57348
        _thriftId = thriftId;
-
 
57349
        _fieldName = fieldName;
-
 
57350
      }
-
 
57351
 
-
 
57352
      public short getThriftFieldId() {
-
 
57353
        return _thriftId;
-
 
57354
      }
-
 
57355
 
-
 
57356
      public String getFieldName() {
-
 
57357
        return _fieldName;
-
 
57358
      }
-
 
57359
    }
-
 
57360
 
-
 
57361
    // isset id assignments
-
 
57362
 
-
 
57363
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
57364
    static {
-
 
57365
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
57366
      tmpMap.put(_Fields.ALLFLIPKARTSTOCK, new org.apache.thrift.meta_data.FieldMetaData("allflipkartstock", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
57367
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
57368
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, FlipkartStockAtEOD.class))));
-
 
57369
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
57370
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateFlipkartStockAtEOD_args.class, metaDataMap);
-
 
57371
    }
-
 
57372
 
-
 
57373
    public updateFlipkartStockAtEOD_args() {
-
 
57374
    }
-
 
57375
 
-
 
57376
    public updateFlipkartStockAtEOD_args(
-
 
57377
      List<FlipkartStockAtEOD> allflipkartstock)
-
 
57378
    {
-
 
57379
      this();
-
 
57380
      this.allflipkartstock = allflipkartstock;
-
 
57381
    }
-
 
57382
 
-
 
57383
    /**
-
 
57384
     * Performs a deep copy on <i>other</i>.
-
 
57385
     */
-
 
57386
    public updateFlipkartStockAtEOD_args(updateFlipkartStockAtEOD_args other) {
-
 
57387
      if (other.isSetAllflipkartstock()) {
-
 
57388
        List<FlipkartStockAtEOD> __this__allflipkartstock = new ArrayList<FlipkartStockAtEOD>();
-
 
57389
        for (FlipkartStockAtEOD other_element : other.allflipkartstock) {
-
 
57390
          __this__allflipkartstock.add(new FlipkartStockAtEOD(other_element));
-
 
57391
        }
-
 
57392
        this.allflipkartstock = __this__allflipkartstock;
-
 
57393
      }
-
 
57394
    }
-
 
57395
 
-
 
57396
    public updateFlipkartStockAtEOD_args deepCopy() {
-
 
57397
      return new updateFlipkartStockAtEOD_args(this);
-
 
57398
    }
-
 
57399
 
-
 
57400
    @Override
-
 
57401
    public void clear() {
-
 
57402
      this.allflipkartstock = null;
-
 
57403
    }
-
 
57404
 
-
 
57405
    public int getAllflipkartstockSize() {
-
 
57406
      return (this.allflipkartstock == null) ? 0 : this.allflipkartstock.size();
-
 
57407
    }
-
 
57408
 
-
 
57409
    public java.util.Iterator<FlipkartStockAtEOD> getAllflipkartstockIterator() {
-
 
57410
      return (this.allflipkartstock == null) ? null : this.allflipkartstock.iterator();
-
 
57411
    }
-
 
57412
 
-
 
57413
    public void addToAllflipkartstock(FlipkartStockAtEOD elem) {
-
 
57414
      if (this.allflipkartstock == null) {
-
 
57415
        this.allflipkartstock = new ArrayList<FlipkartStockAtEOD>();
-
 
57416
      }
-
 
57417
      this.allflipkartstock.add(elem);
-
 
57418
    }
-
 
57419
 
-
 
57420
    public List<FlipkartStockAtEOD> getAllflipkartstock() {
-
 
57421
      return this.allflipkartstock;
-
 
57422
    }
-
 
57423
 
-
 
57424
    public void setAllflipkartstock(List<FlipkartStockAtEOD> allflipkartstock) {
-
 
57425
      this.allflipkartstock = allflipkartstock;
-
 
57426
    }
-
 
57427
 
-
 
57428
    public void unsetAllflipkartstock() {
-
 
57429
      this.allflipkartstock = null;
-
 
57430
    }
-
 
57431
 
-
 
57432
    /** Returns true if field allflipkartstock is set (has been assigned a value) and false otherwise */
-
 
57433
    public boolean isSetAllflipkartstock() {
-
 
57434
      return this.allflipkartstock != null;
-
 
57435
    }
-
 
57436
 
-
 
57437
    public void setAllflipkartstockIsSet(boolean value) {
-
 
57438
      if (!value) {
-
 
57439
        this.allflipkartstock = null;
-
 
57440
      }
-
 
57441
    }
-
 
57442
 
-
 
57443
    public void setFieldValue(_Fields field, Object value) {
-
 
57444
      switch (field) {
-
 
57445
      case ALLFLIPKARTSTOCK:
-
 
57446
        if (value == null) {
-
 
57447
          unsetAllflipkartstock();
-
 
57448
        } else {
-
 
57449
          setAllflipkartstock((List<FlipkartStockAtEOD>)value);
-
 
57450
        }
-
 
57451
        break;
-
 
57452
 
-
 
57453
      }
-
 
57454
    }
-
 
57455
 
-
 
57456
    public Object getFieldValue(_Fields field) {
-
 
57457
      switch (field) {
-
 
57458
      case ALLFLIPKARTSTOCK:
-
 
57459
        return getAllflipkartstock();
-
 
57460
 
-
 
57461
      }
-
 
57462
      throw new IllegalStateException();
-
 
57463
    }
-
 
57464
 
-
 
57465
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
57466
    public boolean isSet(_Fields field) {
-
 
57467
      if (field == null) {
-
 
57468
        throw new IllegalArgumentException();
-
 
57469
      }
-
 
57470
 
-
 
57471
      switch (field) {
-
 
57472
      case ALLFLIPKARTSTOCK:
-
 
57473
        return isSetAllflipkartstock();
-
 
57474
      }
-
 
57475
      throw new IllegalStateException();
-
 
57476
    }
-
 
57477
 
-
 
57478
    @Override
-
 
57479
    public boolean equals(Object that) {
-
 
57480
      if (that == null)
-
 
57481
        return false;
-
 
57482
      if (that instanceof updateFlipkartStockAtEOD_args)
-
 
57483
        return this.equals((updateFlipkartStockAtEOD_args)that);
-
 
57484
      return false;
-
 
57485
    }
-
 
57486
 
-
 
57487
    public boolean equals(updateFlipkartStockAtEOD_args that) {
-
 
57488
      if (that == null)
-
 
57489
        return false;
-
 
57490
 
-
 
57491
      boolean this_present_allflipkartstock = true && this.isSetAllflipkartstock();
-
 
57492
      boolean that_present_allflipkartstock = true && that.isSetAllflipkartstock();
-
 
57493
      if (this_present_allflipkartstock || that_present_allflipkartstock) {
-
 
57494
        if (!(this_present_allflipkartstock && that_present_allflipkartstock))
-
 
57495
          return false;
-
 
57496
        if (!this.allflipkartstock.equals(that.allflipkartstock))
-
 
57497
          return false;
-
 
57498
      }
-
 
57499
 
-
 
57500
      return true;
-
 
57501
    }
-
 
57502
 
-
 
57503
    @Override
-
 
57504
    public int hashCode() {
-
 
57505
      return 0;
-
 
57506
    }
-
 
57507
 
-
 
57508
    public int compareTo(updateFlipkartStockAtEOD_args other) {
-
 
57509
      if (!getClass().equals(other.getClass())) {
-
 
57510
        return getClass().getName().compareTo(other.getClass().getName());
-
 
57511
      }
-
 
57512
 
-
 
57513
      int lastComparison = 0;
-
 
57514
      updateFlipkartStockAtEOD_args typedOther = (updateFlipkartStockAtEOD_args)other;
-
 
57515
 
-
 
57516
      lastComparison = Boolean.valueOf(isSetAllflipkartstock()).compareTo(typedOther.isSetAllflipkartstock());
-
 
57517
      if (lastComparison != 0) {
-
 
57518
        return lastComparison;
-
 
57519
      }
-
 
57520
      if (isSetAllflipkartstock()) {
-
 
57521
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.allflipkartstock, typedOther.allflipkartstock);
-
 
57522
        if (lastComparison != 0) {
-
 
57523
          return lastComparison;
-
 
57524
        }
-
 
57525
      }
-
 
57526
      return 0;
-
 
57527
    }
-
 
57528
 
-
 
57529
    public _Fields fieldForId(int fieldId) {
-
 
57530
      return _Fields.findByThriftId(fieldId);
-
 
57531
    }
-
 
57532
 
-
 
57533
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
57534
      org.apache.thrift.protocol.TField field;
-
 
57535
      iprot.readStructBegin();
-
 
57536
      while (true)
-
 
57537
      {
-
 
57538
        field = iprot.readFieldBegin();
-
 
57539
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
57540
          break;
-
 
57541
        }
-
 
57542
        switch (field.id) {
-
 
57543
          case -1: // ALLFLIPKARTSTOCK
-
 
57544
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
57545
              {
-
 
57546
                org.apache.thrift.protocol.TList _list184 = iprot.readListBegin();
-
 
57547
                this.allflipkartstock = new ArrayList<FlipkartStockAtEOD>(_list184.size);
-
 
57548
                for (int _i185 = 0; _i185 < _list184.size; ++_i185)
-
 
57549
                {
-
 
57550
                  FlipkartStockAtEOD _elem186; // required
-
 
57551
                  _elem186 = new FlipkartStockAtEOD();
-
 
57552
                  _elem186.read(iprot);
-
 
57553
                  this.allflipkartstock.add(_elem186);
-
 
57554
                }
-
 
57555
                iprot.readListEnd();
-
 
57556
              }
-
 
57557
            } else { 
-
 
57558
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
57559
            }
-
 
57560
            break;
-
 
57561
          default:
-
 
57562
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
57563
        }
-
 
57564
        iprot.readFieldEnd();
-
 
57565
      }
-
 
57566
      iprot.readStructEnd();
-
 
57567
      validate();
-
 
57568
    }
-
 
57569
 
-
 
57570
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
57571
      validate();
-
 
57572
 
-
 
57573
      oprot.writeStructBegin(STRUCT_DESC);
-
 
57574
      if (this.allflipkartstock != null) {
-
 
57575
        oprot.writeFieldBegin(ALLFLIPKARTSTOCK_FIELD_DESC);
-
 
57576
        {
-
 
57577
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.allflipkartstock.size()));
-
 
57578
          for (FlipkartStockAtEOD _iter187 : this.allflipkartstock)
-
 
57579
          {
-
 
57580
            _iter187.write(oprot);
-
 
57581
          }
-
 
57582
          oprot.writeListEnd();
-
 
57583
        }
-
 
57584
        oprot.writeFieldEnd();
-
 
57585
      }
-
 
57586
      oprot.writeFieldStop();
-
 
57587
      oprot.writeStructEnd();
-
 
57588
    }
-
 
57589
 
-
 
57590
    @Override
-
 
57591
    public String toString() {
-
 
57592
      StringBuilder sb = new StringBuilder("updateFlipkartStockAtEOD_args(");
-
 
57593
      boolean first = true;
-
 
57594
 
-
 
57595
      sb.append("allflipkartstock:");
-
 
57596
      if (this.allflipkartstock == null) {
-
 
57597
        sb.append("null");
-
 
57598
      } else {
-
 
57599
        sb.append(this.allflipkartstock);
-
 
57600
      }
-
 
57601
      first = false;
-
 
57602
      sb.append(")");
-
 
57603
      return sb.toString();
-
 
57604
    }
-
 
57605
 
-
 
57606
    public void validate() throws org.apache.thrift.TException {
-
 
57607
      // check for required fields
-
 
57608
    }
-
 
57609
 
-
 
57610
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
57611
      try {
-
 
57612
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
57613
      } catch (org.apache.thrift.TException te) {
-
 
57614
        throw new java.io.IOException(te);
-
 
57615
      }
-
 
57616
    }
-
 
57617
 
-
 
57618
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
57619
      try {
-
 
57620
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
57621
      } catch (org.apache.thrift.TException te) {
-
 
57622
        throw new java.io.IOException(te);
-
 
57623
      }
-
 
57624
    }
-
 
57625
 
-
 
57626
  }
-
 
57627
 
-
 
57628
  public static class updateFlipkartStockAtEOD_result implements org.apache.thrift.TBase<updateFlipkartStockAtEOD_result, updateFlipkartStockAtEOD_result._Fields>, java.io.Serializable, Cloneable   {
-
 
57629
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateFlipkartStockAtEOD_result");
-
 
57630
 
-
 
57631
 
-
 
57632
 
-
 
57633
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
57634
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
57635
;
-
 
57636
 
-
 
57637
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
57638
 
-
 
57639
      static {
-
 
57640
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
57641
          byName.put(field.getFieldName(), field);
-
 
57642
        }
-
 
57643
      }
-
 
57644
 
-
 
57645
      /**
-
 
57646
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
57647
       */
-
 
57648
      public static _Fields findByThriftId(int fieldId) {
-
 
57649
        switch(fieldId) {
-
 
57650
          default:
-
 
57651
            return null;
-
 
57652
        }
-
 
57653
      }
-
 
57654
 
-
 
57655
      /**
-
 
57656
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
57657
       * if it is not found.
-
 
57658
       */
-
 
57659
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
57660
        _Fields fields = findByThriftId(fieldId);
-
 
57661
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
57662
        return fields;
-
 
57663
      }
-
 
57664
 
-
 
57665
      /**
-
 
57666
       * Find the _Fields constant that matches name, or null if its not found.
-
 
57667
       */
-
 
57668
      public static _Fields findByName(String name) {
-
 
57669
        return byName.get(name);
-
 
57670
      }
-
 
57671
 
-
 
57672
      private final short _thriftId;
-
 
57673
      private final String _fieldName;
-
 
57674
 
-
 
57675
      _Fields(short thriftId, String fieldName) {
-
 
57676
        _thriftId = thriftId;
-
 
57677
        _fieldName = fieldName;
-
 
57678
      }
-
 
57679
 
-
 
57680
      public short getThriftFieldId() {
-
 
57681
        return _thriftId;
-
 
57682
      }
-
 
57683
 
-
 
57684
      public String getFieldName() {
-
 
57685
        return _fieldName;
-
 
57686
      }
-
 
57687
    }
-
 
57688
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
57689
    static {
-
 
57690
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
57691
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
57692
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateFlipkartStockAtEOD_result.class, metaDataMap);
-
 
57693
    }
-
 
57694
 
-
 
57695
    public updateFlipkartStockAtEOD_result() {
-
 
57696
    }
-
 
57697
 
-
 
57698
    /**
-
 
57699
     * Performs a deep copy on <i>other</i>.
-
 
57700
     */
-
 
57701
    public updateFlipkartStockAtEOD_result(updateFlipkartStockAtEOD_result other) {
-
 
57702
    }
-
 
57703
 
-
 
57704
    public updateFlipkartStockAtEOD_result deepCopy() {
-
 
57705
      return new updateFlipkartStockAtEOD_result(this);
-
 
57706
    }
-
 
57707
 
-
 
57708
    @Override
-
 
57709
    public void clear() {
-
 
57710
    }
-
 
57711
 
-
 
57712
    public void setFieldValue(_Fields field, Object value) {
-
 
57713
      switch (field) {
-
 
57714
      }
-
 
57715
    }
-
 
57716
 
-
 
57717
    public Object getFieldValue(_Fields field) {
-
 
57718
      switch (field) {
-
 
57719
      }
-
 
57720
      throw new IllegalStateException();
-
 
57721
    }
-
 
57722
 
-
 
57723
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
57724
    public boolean isSet(_Fields field) {
-
 
57725
      if (field == null) {
-
 
57726
        throw new IllegalArgumentException();
-
 
57727
      }
-
 
57728
 
-
 
57729
      switch (field) {
-
 
57730
      }
-
 
57731
      throw new IllegalStateException();
-
 
57732
    }
-
 
57733
 
-
 
57734
    @Override
-
 
57735
    public boolean equals(Object that) {
-
 
57736
      if (that == null)
-
 
57737
        return false;
-
 
57738
      if (that instanceof updateFlipkartStockAtEOD_result)
-
 
57739
        return this.equals((updateFlipkartStockAtEOD_result)that);
-
 
57740
      return false;
-
 
57741
    }
-
 
57742
 
-
 
57743
    public boolean equals(updateFlipkartStockAtEOD_result that) {
-
 
57744
      if (that == null)
-
 
57745
        return false;
-
 
57746
 
-
 
57747
      return true;
-
 
57748
    }
-
 
57749
 
-
 
57750
    @Override
-
 
57751
    public int hashCode() {
-
 
57752
      return 0;
-
 
57753
    }
-
 
57754
 
-
 
57755
    public int compareTo(updateFlipkartStockAtEOD_result other) {
-
 
57756
      if (!getClass().equals(other.getClass())) {
-
 
57757
        return getClass().getName().compareTo(other.getClass().getName());
-
 
57758
      }
-
 
57759
 
-
 
57760
      int lastComparison = 0;
-
 
57761
      updateFlipkartStockAtEOD_result typedOther = (updateFlipkartStockAtEOD_result)other;
-
 
57762
 
-
 
57763
      return 0;
-
 
57764
    }
-
 
57765
 
-
 
57766
    public _Fields fieldForId(int fieldId) {
-
 
57767
      return _Fields.findByThriftId(fieldId);
-
 
57768
    }
-
 
57769
 
-
 
57770
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
57771
      org.apache.thrift.protocol.TField field;
-
 
57772
      iprot.readStructBegin();
-
 
57773
      while (true)
-
 
57774
      {
-
 
57775
        field = iprot.readFieldBegin();
-
 
57776
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
57777
          break;
-
 
57778
        }
-
 
57779
        switch (field.id) {
-
 
57780
          default:
-
 
57781
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
57782
        }
-
 
57783
        iprot.readFieldEnd();
-
 
57784
      }
-
 
57785
      iprot.readStructEnd();
-
 
57786
      validate();
-
 
57787
    }
-
 
57788
 
-
 
57789
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
57790
      oprot.writeStructBegin(STRUCT_DESC);
-
 
57791
 
-
 
57792
      oprot.writeFieldStop();
-
 
57793
      oprot.writeStructEnd();
-
 
57794
    }
-
 
57795
 
-
 
57796
    @Override
-
 
57797
    public String toString() {
-
 
57798
      StringBuilder sb = new StringBuilder("updateFlipkartStockAtEOD_result(");
-
 
57799
      boolean first = true;
-
 
57800
 
-
 
57801
      sb.append(")");
-
 
57802
      return sb.toString();
-
 
57803
    }
-
 
57804
 
-
 
57805
    public void validate() throws org.apache.thrift.TException {
56598
      // check for required fields
57806
      // check for required fields
56599
    }
57807
    }
56600
 
57808
 
56601
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
57809
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
56602
      try {
57810
      try {