Subversion Repositories SmartDukaan

Rev

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

Rev 21838 Rev 22717
Line 385... Line 385...
385
 
385
 
386
    public List<Long> addVendorItemPricingInBulk(List<VendorItemPricing> vendorItemPricingList) throws org.apache.thrift.TException;
386
    public List<Long> addVendorItemPricingInBulk(List<VendorItemPricing> vendorItemPricingList) throws org.apache.thrift.TException;
387
 
387
 
388
    public void addInventoryInBulk(List<BulkAddInventory> bulkInventoryList) throws InventoryServiceException, org.apache.thrift.TException;
388
    public void addInventoryInBulk(List<BulkAddInventory> bulkInventoryList) throws InventoryServiceException, org.apache.thrift.TException;
389
 
389
 
-
 
390
    public Map<Long,Long> getFofoAvailability(List<Long> itemIds) throws org.apache.thrift.TException;
-
 
391
 
390
    public List<ItemLocationAvailability> getItemLocationAvailabilityCache(List<ItemLocationAvailability> itemLocations) throws org.apache.thrift.TException;
392
    public List<ItemLocationAvailability> getItemLocationAvailabilityCache(List<ItemLocationAvailability> itemLocations) throws org.apache.thrift.TException;
391
 
393
 
392
    public List<ItemLocationAvailability> getItemLocationAvailabilityCacheByItemId(List<Long> itemIds) throws org.apache.thrift.TException;
394
    public List<ItemLocationAvailability> getItemLocationAvailabilityCacheByItemId(List<Long> itemIds) throws org.apache.thrift.TException;
393
 
395
 
394
    public String getItemPincodeAvailability(Map<Long,Long> itempricing, String pincode) throws org.apache.thrift.TException;
396
    public String getItemPincodeAvailability(Map<Long,Long> itempricing, String pincode) throws org.apache.thrift.TException;
Line 561... Line 563...
561
 
563
 
562
    public void addVendorItemPricingInBulk(List<VendorItemPricing> vendorItemPricingList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addVendorItemPricingInBulk_call> resultHandler) throws org.apache.thrift.TException;
564
    public void addVendorItemPricingInBulk(List<VendorItemPricing> vendorItemPricingList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addVendorItemPricingInBulk_call> resultHandler) throws org.apache.thrift.TException;
563
 
565
 
564
    public void addInventoryInBulk(List<BulkAddInventory> bulkInventoryList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addInventoryInBulk_call> resultHandler) throws org.apache.thrift.TException;
566
    public void addInventoryInBulk(List<BulkAddInventory> bulkInventoryList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addInventoryInBulk_call> resultHandler) throws org.apache.thrift.TException;
565
 
567
 
-
 
568
    public void getFofoAvailability(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFofoAvailability_call> resultHandler) throws org.apache.thrift.TException;
-
 
569
 
566
    public void getItemLocationAvailabilityCache(List<ItemLocationAvailability> itemLocations, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemLocationAvailabilityCache_call> resultHandler) throws org.apache.thrift.TException;
570
    public void getItemLocationAvailabilityCache(List<ItemLocationAvailability> itemLocations, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemLocationAvailabilityCache_call> resultHandler) throws org.apache.thrift.TException;
567
 
571
 
568
    public void getItemLocationAvailabilityCacheByItemId(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemLocationAvailabilityCacheByItemId_call> resultHandler) throws org.apache.thrift.TException;
572
    public void getItemLocationAvailabilityCacheByItemId(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemLocationAvailabilityCacheByItemId_call> resultHandler) throws org.apache.thrift.TException;
569
 
573
 
570
    public void getItemPincodeAvailability(Map<Long,Long> itempricing, String pincode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemPincodeAvailability_call> resultHandler) throws org.apache.thrift.TException;
574
    public void getItemPincodeAvailability(Map<Long,Long> itempricing, String pincode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemPincodeAvailability_call> resultHandler) throws org.apache.thrift.TException;
Line 2547... Line 2551...
2547
        throw result.cex;
2551
        throw result.cex;
2548
      }
2552
      }
2549
      return;
2553
      return;
2550
    }
2554
    }
2551
 
2555
 
-
 
2556
    public Map<Long,Long> getFofoAvailability(List<Long> itemIds) throws org.apache.thrift.TException
-
 
2557
    {
-
 
2558
      send_getFofoAvailability(itemIds);
-
 
2559
      return recv_getFofoAvailability();
-
 
2560
    }
-
 
2561
 
-
 
2562
    public void send_getFofoAvailability(List<Long> itemIds) throws org.apache.thrift.TException
-
 
2563
    {
-
 
2564
      getFofoAvailability_args args = new getFofoAvailability_args();
-
 
2565
      args.setItemIds(itemIds);
-
 
2566
      sendBase("getFofoAvailability", args);
-
 
2567
    }
-
 
2568
 
-
 
2569
    public Map<Long,Long> recv_getFofoAvailability() throws org.apache.thrift.TException
-
 
2570
    {
-
 
2571
      getFofoAvailability_result result = new getFofoAvailability_result();
-
 
2572
      receiveBase(result, "getFofoAvailability");
-
 
2573
      if (result.isSetSuccess()) {
-
 
2574
        return result.success;
-
 
2575
      }
-
 
2576
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFofoAvailability failed: unknown result");
-
 
2577
    }
-
 
2578
 
2552
    public List<ItemLocationAvailability> getItemLocationAvailabilityCache(List<ItemLocationAvailability> itemLocations) throws org.apache.thrift.TException
2579
    public List<ItemLocationAvailability> getItemLocationAvailabilityCache(List<ItemLocationAvailability> itemLocations) throws org.apache.thrift.TException
2553
    {
2580
    {
2554
      send_getItemLocationAvailabilityCache(itemLocations);
2581
      send_getItemLocationAvailabilityCache(itemLocations);
2555
      return recv_getItemLocationAvailabilityCache();
2582
      return recv_getItemLocationAvailabilityCache();
2556
    }
2583
    }
Line 5438... Line 5465...
5438
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5465
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5439
        (new Client(prot)).recv_addInventoryInBulk();
5466
        (new Client(prot)).recv_addInventoryInBulk();
5440
      }
5467
      }
5441
    }
5468
    }
5442
 
5469
 
-
 
5470
    public void getFofoAvailability(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<getFofoAvailability_call> resultHandler) throws org.apache.thrift.TException {
-
 
5471
      checkReady();
-
 
5472
      getFofoAvailability_call method_call = new getFofoAvailability_call(itemIds, resultHandler, this, ___protocolFactory, ___transport);
-
 
5473
      this.___currentMethod = method_call;
-
 
5474
      ___manager.call(method_call);
-
 
5475
    }
-
 
5476
 
-
 
5477
    public static class getFofoAvailability_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5478
      private List<Long> itemIds;
-
 
5479
      public getFofoAvailability_call(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<getFofoAvailability_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 {
-
 
5480
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5481
        this.itemIds = itemIds;
-
 
5482
      }
-
 
5483
 
-
 
5484
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5485
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFofoAvailability", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5486
        getFofoAvailability_args args = new getFofoAvailability_args();
-
 
5487
        args.setItemIds(itemIds);
-
 
5488
        args.write(prot);
-
 
5489
        prot.writeMessageEnd();
-
 
5490
      }
-
 
5491
 
-
 
5492
      public Map<Long,Long> getResult() throws org.apache.thrift.TException {
-
 
5493
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5494
          throw new IllegalStateException("Method call not finished!");
-
 
5495
        }
-
 
5496
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5497
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5498
        return (new Client(prot)).recv_getFofoAvailability();
-
 
5499
      }
-
 
5500
    }
-
 
5501
 
5443
    public void getItemLocationAvailabilityCache(List<ItemLocationAvailability> itemLocations, org.apache.thrift.async.AsyncMethodCallback<getItemLocationAvailabilityCache_call> resultHandler) throws org.apache.thrift.TException {
5502
    public void getItemLocationAvailabilityCache(List<ItemLocationAvailability> itemLocations, org.apache.thrift.async.AsyncMethodCallback<getItemLocationAvailabilityCache_call> resultHandler) throws org.apache.thrift.TException {
5444
      checkReady();
5503
      checkReady();
5445
      getItemLocationAvailabilityCache_call method_call = new getItemLocationAvailabilityCache_call(itemLocations, resultHandler, this, ___protocolFactory, ___transport);
5504
      getItemLocationAvailabilityCache_call method_call = new getItemLocationAvailabilityCache_call(itemLocations, resultHandler, this, ___protocolFactory, ___transport);
5446
      this.___currentMethod = method_call;
5505
      this.___currentMethod = method_call;
5447
      ___manager.call(method_call);
5506
      ___manager.call(method_call);
Line 5633... Line 5692...
5633
      processMap.put("getWanNlcForSource", new getWanNlcForSource());
5692
      processMap.put("getWanNlcForSource", new getWanNlcForSource());
5634
      processMap.put("getAllAvailableAmazonFbaItemInventory", new getAllAvailableAmazonFbaItemInventory());
5693
      processMap.put("getAllAvailableAmazonFbaItemInventory", new getAllAvailableAmazonFbaItemInventory());
5635
      processMap.put("updateItemAvailabilityForItemIds", new updateItemAvailabilityForItemIds());
5694
      processMap.put("updateItemAvailabilityForItemIds", new updateItemAvailabilityForItemIds());
5636
      processMap.put("addVendorItemPricingInBulk", new addVendorItemPricingInBulk());
5695
      processMap.put("addVendorItemPricingInBulk", new addVendorItemPricingInBulk());
5637
      processMap.put("addInventoryInBulk", new addInventoryInBulk());
5696
      processMap.put("addInventoryInBulk", new addInventoryInBulk());
-
 
5697
      processMap.put("getFofoAvailability", new getFofoAvailability());
5638
      processMap.put("getItemLocationAvailabilityCache", new getItemLocationAvailabilityCache());
5698
      processMap.put("getItemLocationAvailabilityCache", new getItemLocationAvailabilityCache());
5639
      processMap.put("getItemLocationAvailabilityCacheByItemId", new getItemLocationAvailabilityCacheByItemId());
5699
      processMap.put("getItemLocationAvailabilityCacheByItemId", new getItemLocationAvailabilityCacheByItemId());
5640
      processMap.put("getItemPincodeAvailability", new getItemPincodeAvailability());
5700
      processMap.put("getItemPincodeAvailability", new getItemPincodeAvailability());
5641
      return processMap;
5701
      return processMap;
5642
    }
5702
    }
Line 7082... Line 7142...
7082
        }
7142
        }
7083
        return result;
7143
        return result;
7084
      }
7144
      }
7085
    }
7145
    }
7086
 
7146
 
-
 
7147
    private static class getFofoAvailability<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFofoAvailability_args> {
-
 
7148
      public getFofoAvailability() {
-
 
7149
        super("getFofoAvailability");
-
 
7150
      }
-
 
7151
 
-
 
7152
      protected getFofoAvailability_args getEmptyArgsInstance() {
-
 
7153
        return new getFofoAvailability_args();
-
 
7154
      }
-
 
7155
 
-
 
7156
      protected getFofoAvailability_result getResult(I iface, getFofoAvailability_args args) throws org.apache.thrift.TException {
-
 
7157
        getFofoAvailability_result result = new getFofoAvailability_result();
-
 
7158
        result.success = iface.getFofoAvailability(args.itemIds);
-
 
7159
        return result;
-
 
7160
      }
-
 
7161
    }
-
 
7162
 
7087
    private static class getItemLocationAvailabilityCache<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemLocationAvailabilityCache_args> {
7163
    private static class getItemLocationAvailabilityCache<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemLocationAvailabilityCache_args> {
7088
      public getItemLocationAvailabilityCache() {
7164
      public getItemLocationAvailabilityCache() {
7089
        super("getItemLocationAvailabilityCache");
7165
        super("getItemLocationAvailabilityCache");
7090
      }
7166
      }
7091
 
7167
 
Line 61591... Line 61667...
61591
      }
61667
      }
61592
    }
61668
    }
61593
 
61669
 
61594
  }
61670
  }
61595
 
61671
 
-
 
61672
  public static class getFofoAvailability_args implements org.apache.thrift.TBase<getFofoAvailability_args, getFofoAvailability_args._Fields>, java.io.Serializable, Cloneable   {
-
 
61673
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFofoAvailability_args");
-
 
61674
 
-
 
61675
    private static final org.apache.thrift.protocol.TField ITEM_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("itemIds", org.apache.thrift.protocol.TType.LIST, (short)1);
-
 
61676
 
-
 
61677
    private List<Long> itemIds; // required
-
 
61678
 
-
 
61679
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
61680
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
61681
      ITEM_IDS((short)1, "itemIds");
-
 
61682
 
-
 
61683
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
61684
 
-
 
61685
      static {
-
 
61686
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
61687
          byName.put(field.getFieldName(), field);
-
 
61688
        }
-
 
61689
      }
-
 
61690
 
-
 
61691
      /**
-
 
61692
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
61693
       */
-
 
61694
      public static _Fields findByThriftId(int fieldId) {
-
 
61695
        switch(fieldId) {
-
 
61696
          case 1: // ITEM_IDS
-
 
61697
            return ITEM_IDS;
-
 
61698
          default:
-
 
61699
            return null;
-
 
61700
        }
-
 
61701
      }
-
 
61702
 
-
 
61703
      /**
-
 
61704
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
61705
       * if it is not found.
-
 
61706
       */
-
 
61707
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
61708
        _Fields fields = findByThriftId(fieldId);
-
 
61709
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
61710
        return fields;
-
 
61711
      }
-
 
61712
 
-
 
61713
      /**
-
 
61714
       * Find the _Fields constant that matches name, or null if its not found.
-
 
61715
       */
-
 
61716
      public static _Fields findByName(String name) {
-
 
61717
        return byName.get(name);
-
 
61718
      }
-
 
61719
 
-
 
61720
      private final short _thriftId;
-
 
61721
      private final String _fieldName;
-
 
61722
 
-
 
61723
      _Fields(short thriftId, String fieldName) {
-
 
61724
        _thriftId = thriftId;
-
 
61725
        _fieldName = fieldName;
-
 
61726
      }
-
 
61727
 
-
 
61728
      public short getThriftFieldId() {
-
 
61729
        return _thriftId;
-
 
61730
      }
-
 
61731
 
-
 
61732
      public String getFieldName() {
-
 
61733
        return _fieldName;
-
 
61734
      }
-
 
61735
    }
-
 
61736
 
-
 
61737
    // isset id assignments
-
 
61738
 
-
 
61739
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
61740
    static {
-
 
61741
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
61742
      tmpMap.put(_Fields.ITEM_IDS, new org.apache.thrift.meta_data.FieldMetaData("itemIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
61743
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
61744
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
61745
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
61746
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFofoAvailability_args.class, metaDataMap);
-
 
61747
    }
-
 
61748
 
-
 
61749
    public getFofoAvailability_args() {
-
 
61750
    }
-
 
61751
 
-
 
61752
    public getFofoAvailability_args(
-
 
61753
      List<Long> itemIds)
-
 
61754
    {
-
 
61755
      this();
-
 
61756
      this.itemIds = itemIds;
-
 
61757
    }
-
 
61758
 
-
 
61759
    /**
-
 
61760
     * Performs a deep copy on <i>other</i>.
-
 
61761
     */
-
 
61762
    public getFofoAvailability_args(getFofoAvailability_args other) {
-
 
61763
      if (other.isSetItemIds()) {
-
 
61764
        List<Long> __this__itemIds = new ArrayList<Long>();
-
 
61765
        for (Long other_element : other.itemIds) {
-
 
61766
          __this__itemIds.add(other_element);
-
 
61767
        }
-
 
61768
        this.itemIds = __this__itemIds;
-
 
61769
      }
-
 
61770
    }
-
 
61771
 
-
 
61772
    public getFofoAvailability_args deepCopy() {
-
 
61773
      return new getFofoAvailability_args(this);
-
 
61774
    }
-
 
61775
 
-
 
61776
    @Override
-
 
61777
    public void clear() {
-
 
61778
      this.itemIds = null;
-
 
61779
    }
-
 
61780
 
-
 
61781
    public int getItemIdsSize() {
-
 
61782
      return (this.itemIds == null) ? 0 : this.itemIds.size();
-
 
61783
    }
-
 
61784
 
-
 
61785
    public java.util.Iterator<Long> getItemIdsIterator() {
-
 
61786
      return (this.itemIds == null) ? null : this.itemIds.iterator();
-
 
61787
    }
-
 
61788
 
-
 
61789
    public void addToItemIds(long elem) {
-
 
61790
      if (this.itemIds == null) {
-
 
61791
        this.itemIds = new ArrayList<Long>();
-
 
61792
      }
-
 
61793
      this.itemIds.add(elem);
-
 
61794
    }
-
 
61795
 
-
 
61796
    public List<Long> getItemIds() {
-
 
61797
      return this.itemIds;
-
 
61798
    }
-
 
61799
 
-
 
61800
    public void setItemIds(List<Long> itemIds) {
-
 
61801
      this.itemIds = itemIds;
-
 
61802
    }
-
 
61803
 
-
 
61804
    public void unsetItemIds() {
-
 
61805
      this.itemIds = null;
-
 
61806
    }
-
 
61807
 
-
 
61808
    /** Returns true if field itemIds is set (has been assigned a value) and false otherwise */
-
 
61809
    public boolean isSetItemIds() {
-
 
61810
      return this.itemIds != null;
-
 
61811
    }
-
 
61812
 
-
 
61813
    public void setItemIdsIsSet(boolean value) {
-
 
61814
      if (!value) {
-
 
61815
        this.itemIds = null;
-
 
61816
      }
-
 
61817
    }
-
 
61818
 
-
 
61819
    public void setFieldValue(_Fields field, Object value) {
-
 
61820
      switch (field) {
-
 
61821
      case ITEM_IDS:
-
 
61822
        if (value == null) {
-
 
61823
          unsetItemIds();
-
 
61824
        } else {
-
 
61825
          setItemIds((List<Long>)value);
-
 
61826
        }
-
 
61827
        break;
-
 
61828
 
-
 
61829
      }
-
 
61830
    }
-
 
61831
 
-
 
61832
    public Object getFieldValue(_Fields field) {
-
 
61833
      switch (field) {
-
 
61834
      case ITEM_IDS:
-
 
61835
        return getItemIds();
-
 
61836
 
-
 
61837
      }
-
 
61838
      throw new IllegalStateException();
-
 
61839
    }
-
 
61840
 
-
 
61841
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
61842
    public boolean isSet(_Fields field) {
-
 
61843
      if (field == null) {
-
 
61844
        throw new IllegalArgumentException();
-
 
61845
      }
-
 
61846
 
-
 
61847
      switch (field) {
-
 
61848
      case ITEM_IDS:
-
 
61849
        return isSetItemIds();
-
 
61850
      }
-
 
61851
      throw new IllegalStateException();
-
 
61852
    }
-
 
61853
 
-
 
61854
    @Override
-
 
61855
    public boolean equals(Object that) {
-
 
61856
      if (that == null)
-
 
61857
        return false;
-
 
61858
      if (that instanceof getFofoAvailability_args)
-
 
61859
        return this.equals((getFofoAvailability_args)that);
-
 
61860
      return false;
-
 
61861
    }
-
 
61862
 
-
 
61863
    public boolean equals(getFofoAvailability_args that) {
-
 
61864
      if (that == null)
-
 
61865
        return false;
-
 
61866
 
-
 
61867
      boolean this_present_itemIds = true && this.isSetItemIds();
-
 
61868
      boolean that_present_itemIds = true && that.isSetItemIds();
-
 
61869
      if (this_present_itemIds || that_present_itemIds) {
-
 
61870
        if (!(this_present_itemIds && that_present_itemIds))
-
 
61871
          return false;
-
 
61872
        if (!this.itemIds.equals(that.itemIds))
-
 
61873
          return false;
-
 
61874
      }
-
 
61875
 
-
 
61876
      return true;
-
 
61877
    }
-
 
61878
 
-
 
61879
    @Override
-
 
61880
    public int hashCode() {
-
 
61881
      return 0;
-
 
61882
    }
-
 
61883
 
-
 
61884
    public int compareTo(getFofoAvailability_args other) {
-
 
61885
      if (!getClass().equals(other.getClass())) {
-
 
61886
        return getClass().getName().compareTo(other.getClass().getName());
-
 
61887
      }
-
 
61888
 
-
 
61889
      int lastComparison = 0;
-
 
61890
      getFofoAvailability_args typedOther = (getFofoAvailability_args)other;
-
 
61891
 
-
 
61892
      lastComparison = Boolean.valueOf(isSetItemIds()).compareTo(typedOther.isSetItemIds());
-
 
61893
      if (lastComparison != 0) {
-
 
61894
        return lastComparison;
-
 
61895
      }
-
 
61896
      if (isSetItemIds()) {
-
 
61897
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemIds, typedOther.itemIds);
-
 
61898
        if (lastComparison != 0) {
-
 
61899
          return lastComparison;
-
 
61900
        }
-
 
61901
      }
-
 
61902
      return 0;
-
 
61903
    }
-
 
61904
 
-
 
61905
    public _Fields fieldForId(int fieldId) {
-
 
61906
      return _Fields.findByThriftId(fieldId);
-
 
61907
    }
-
 
61908
 
-
 
61909
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
61910
      org.apache.thrift.protocol.TField field;
-
 
61911
      iprot.readStructBegin();
-
 
61912
      while (true)
-
 
61913
      {
-
 
61914
        field = iprot.readFieldBegin();
-
 
61915
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
61916
          break;
-
 
61917
        }
-
 
61918
        switch (field.id) {
-
 
61919
          case 1: // ITEM_IDS
-
 
61920
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
61921
              {
-
 
61922
                org.apache.thrift.protocol.TList _list212 = iprot.readListBegin();
-
 
61923
                this.itemIds = new ArrayList<Long>(_list212.size);
-
 
61924
                for (int _i213 = 0; _i213 < _list212.size; ++_i213)
-
 
61925
                {
-
 
61926
                  long _elem214; // required
-
 
61927
                  _elem214 = iprot.readI64();
-
 
61928
                  this.itemIds.add(_elem214);
-
 
61929
                }
-
 
61930
                iprot.readListEnd();
-
 
61931
              }
-
 
61932
            } else { 
-
 
61933
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
61934
            }
-
 
61935
            break;
-
 
61936
          default:
-
 
61937
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
61938
        }
-
 
61939
        iprot.readFieldEnd();
-
 
61940
      }
-
 
61941
      iprot.readStructEnd();
-
 
61942
      validate();
-
 
61943
    }
-
 
61944
 
-
 
61945
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
61946
      validate();
-
 
61947
 
-
 
61948
      oprot.writeStructBegin(STRUCT_DESC);
-
 
61949
      if (this.itemIds != null) {
-
 
61950
        oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);
-
 
61951
        {
-
 
61952
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.itemIds.size()));
-
 
61953
          for (long _iter215 : this.itemIds)
-
 
61954
          {
-
 
61955
            oprot.writeI64(_iter215);
-
 
61956
          }
-
 
61957
          oprot.writeListEnd();
-
 
61958
        }
-
 
61959
        oprot.writeFieldEnd();
-
 
61960
      }
-
 
61961
      oprot.writeFieldStop();
-
 
61962
      oprot.writeStructEnd();
-
 
61963
    }
-
 
61964
 
-
 
61965
    @Override
-
 
61966
    public String toString() {
-
 
61967
      StringBuilder sb = new StringBuilder("getFofoAvailability_args(");
-
 
61968
      boolean first = true;
-
 
61969
 
-
 
61970
      sb.append("itemIds:");
-
 
61971
      if (this.itemIds == null) {
-
 
61972
        sb.append("null");
-
 
61973
      } else {
-
 
61974
        sb.append(this.itemIds);
-
 
61975
      }
-
 
61976
      first = false;
-
 
61977
      sb.append(")");
-
 
61978
      return sb.toString();
-
 
61979
    }
-
 
61980
 
-
 
61981
    public void validate() throws org.apache.thrift.TException {
-
 
61982
      // check for required fields
-
 
61983
    }
-
 
61984
 
-
 
61985
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
61986
      try {
-
 
61987
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
61988
      } catch (org.apache.thrift.TException te) {
-
 
61989
        throw new java.io.IOException(te);
-
 
61990
      }
-
 
61991
    }
-
 
61992
 
-
 
61993
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
61994
      try {
-
 
61995
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
61996
      } catch (org.apache.thrift.TException te) {
-
 
61997
        throw new java.io.IOException(te);
-
 
61998
      }
-
 
61999
    }
-
 
62000
 
-
 
62001
  }
-
 
62002
 
-
 
62003
  public static class getFofoAvailability_result implements org.apache.thrift.TBase<getFofoAvailability_result, getFofoAvailability_result._Fields>, java.io.Serializable, Cloneable   {
-
 
62004
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFofoAvailability_result");
-
 
62005
 
-
 
62006
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);
-
 
62007
 
-
 
62008
    private Map<Long,Long> success; // required
-
 
62009
 
-
 
62010
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
62011
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
62012
      SUCCESS((short)0, "success");
-
 
62013
 
-
 
62014
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
62015
 
-
 
62016
      static {
-
 
62017
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
62018
          byName.put(field.getFieldName(), field);
-
 
62019
        }
-
 
62020
      }
-
 
62021
 
-
 
62022
      /**
-
 
62023
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
62024
       */
-
 
62025
      public static _Fields findByThriftId(int fieldId) {
-
 
62026
        switch(fieldId) {
-
 
62027
          case 0: // SUCCESS
-
 
62028
            return SUCCESS;
-
 
62029
          default:
-
 
62030
            return null;
-
 
62031
        }
-
 
62032
      }
-
 
62033
 
-
 
62034
      /**
-
 
62035
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
62036
       * if it is not found.
-
 
62037
       */
-
 
62038
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
62039
        _Fields fields = findByThriftId(fieldId);
-
 
62040
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
62041
        return fields;
-
 
62042
      }
-
 
62043
 
-
 
62044
      /**
-
 
62045
       * Find the _Fields constant that matches name, or null if its not found.
-
 
62046
       */
-
 
62047
      public static _Fields findByName(String name) {
-
 
62048
        return byName.get(name);
-
 
62049
      }
-
 
62050
 
-
 
62051
      private final short _thriftId;
-
 
62052
      private final String _fieldName;
-
 
62053
 
-
 
62054
      _Fields(short thriftId, String fieldName) {
-
 
62055
        _thriftId = thriftId;
-
 
62056
        _fieldName = fieldName;
-
 
62057
      }
-
 
62058
 
-
 
62059
      public short getThriftFieldId() {
-
 
62060
        return _thriftId;
-
 
62061
      }
-
 
62062
 
-
 
62063
      public String getFieldName() {
-
 
62064
        return _fieldName;
-
 
62065
      }
-
 
62066
    }
-
 
62067
 
-
 
62068
    // isset id assignments
-
 
62069
 
-
 
62070
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
62071
    static {
-
 
62072
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
62073
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
62074
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
62075
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
-
 
62076
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
62077
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
62078
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFofoAvailability_result.class, metaDataMap);
-
 
62079
    }
-
 
62080
 
-
 
62081
    public getFofoAvailability_result() {
-
 
62082
    }
-
 
62083
 
-
 
62084
    public getFofoAvailability_result(
-
 
62085
      Map<Long,Long> success)
-
 
62086
    {
-
 
62087
      this();
-
 
62088
      this.success = success;
-
 
62089
    }
-
 
62090
 
-
 
62091
    /**
-
 
62092
     * Performs a deep copy on <i>other</i>.
-
 
62093
     */
-
 
62094
    public getFofoAvailability_result(getFofoAvailability_result other) {
-
 
62095
      if (other.isSetSuccess()) {
-
 
62096
        Map<Long,Long> __this__success = new HashMap<Long,Long>();
-
 
62097
        for (Map.Entry<Long, Long> other_element : other.success.entrySet()) {
-
 
62098
 
-
 
62099
          Long other_element_key = other_element.getKey();
-
 
62100
          Long other_element_value = other_element.getValue();
-
 
62101
 
-
 
62102
          Long __this__success_copy_key = other_element_key;
-
 
62103
 
-
 
62104
          Long __this__success_copy_value = other_element_value;
-
 
62105
 
-
 
62106
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
-
 
62107
        }
-
 
62108
        this.success = __this__success;
-
 
62109
      }
-
 
62110
    }
-
 
62111
 
-
 
62112
    public getFofoAvailability_result deepCopy() {
-
 
62113
      return new getFofoAvailability_result(this);
-
 
62114
    }
-
 
62115
 
-
 
62116
    @Override
-
 
62117
    public void clear() {
-
 
62118
      this.success = null;
-
 
62119
    }
-
 
62120
 
-
 
62121
    public int getSuccessSize() {
-
 
62122
      return (this.success == null) ? 0 : this.success.size();
-
 
62123
    }
-
 
62124
 
-
 
62125
    public void putToSuccess(long key, long val) {
-
 
62126
      if (this.success == null) {
-
 
62127
        this.success = new HashMap<Long,Long>();
-
 
62128
      }
-
 
62129
      this.success.put(key, val);
-
 
62130
    }
-
 
62131
 
-
 
62132
    public Map<Long,Long> getSuccess() {
-
 
62133
      return this.success;
-
 
62134
    }
-
 
62135
 
-
 
62136
    public void setSuccess(Map<Long,Long> success) {
-
 
62137
      this.success = success;
-
 
62138
    }
-
 
62139
 
-
 
62140
    public void unsetSuccess() {
-
 
62141
      this.success = null;
-
 
62142
    }
-
 
62143
 
-
 
62144
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
62145
    public boolean isSetSuccess() {
-
 
62146
      return this.success != null;
-
 
62147
    }
-
 
62148
 
-
 
62149
    public void setSuccessIsSet(boolean value) {
-
 
62150
      if (!value) {
-
 
62151
        this.success = null;
-
 
62152
      }
-
 
62153
    }
-
 
62154
 
-
 
62155
    public void setFieldValue(_Fields field, Object value) {
-
 
62156
      switch (field) {
-
 
62157
      case SUCCESS:
-
 
62158
        if (value == null) {
-
 
62159
          unsetSuccess();
-
 
62160
        } else {
-
 
62161
          setSuccess((Map<Long,Long>)value);
-
 
62162
        }
-
 
62163
        break;
-
 
62164
 
-
 
62165
      }
-
 
62166
    }
-
 
62167
 
-
 
62168
    public Object getFieldValue(_Fields field) {
-
 
62169
      switch (field) {
-
 
62170
      case SUCCESS:
-
 
62171
        return getSuccess();
-
 
62172
 
-
 
62173
      }
-
 
62174
      throw new IllegalStateException();
-
 
62175
    }
-
 
62176
 
-
 
62177
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
62178
    public boolean isSet(_Fields field) {
-
 
62179
      if (field == null) {
-
 
62180
        throw new IllegalArgumentException();
-
 
62181
      }
-
 
62182
 
-
 
62183
      switch (field) {
-
 
62184
      case SUCCESS:
-
 
62185
        return isSetSuccess();
-
 
62186
      }
-
 
62187
      throw new IllegalStateException();
-
 
62188
    }
-
 
62189
 
-
 
62190
    @Override
-
 
62191
    public boolean equals(Object that) {
-
 
62192
      if (that == null)
-
 
62193
        return false;
-
 
62194
      if (that instanceof getFofoAvailability_result)
-
 
62195
        return this.equals((getFofoAvailability_result)that);
-
 
62196
      return false;
-
 
62197
    }
-
 
62198
 
-
 
62199
    public boolean equals(getFofoAvailability_result that) {
-
 
62200
      if (that == null)
-
 
62201
        return false;
-
 
62202
 
-
 
62203
      boolean this_present_success = true && this.isSetSuccess();
-
 
62204
      boolean that_present_success = true && that.isSetSuccess();
-
 
62205
      if (this_present_success || that_present_success) {
-
 
62206
        if (!(this_present_success && that_present_success))
-
 
62207
          return false;
-
 
62208
        if (!this.success.equals(that.success))
-
 
62209
          return false;
-
 
62210
      }
-
 
62211
 
-
 
62212
      return true;
-
 
62213
    }
-
 
62214
 
-
 
62215
    @Override
-
 
62216
    public int hashCode() {
-
 
62217
      return 0;
-
 
62218
    }
-
 
62219
 
-
 
62220
    public int compareTo(getFofoAvailability_result other) {
-
 
62221
      if (!getClass().equals(other.getClass())) {
-
 
62222
        return getClass().getName().compareTo(other.getClass().getName());
-
 
62223
      }
-
 
62224
 
-
 
62225
      int lastComparison = 0;
-
 
62226
      getFofoAvailability_result typedOther = (getFofoAvailability_result)other;
-
 
62227
 
-
 
62228
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
62229
      if (lastComparison != 0) {
-
 
62230
        return lastComparison;
-
 
62231
      }
-
 
62232
      if (isSetSuccess()) {
-
 
62233
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
62234
        if (lastComparison != 0) {
-
 
62235
          return lastComparison;
-
 
62236
        }
-
 
62237
      }
-
 
62238
      return 0;
-
 
62239
    }
-
 
62240
 
-
 
62241
    public _Fields fieldForId(int fieldId) {
-
 
62242
      return _Fields.findByThriftId(fieldId);
-
 
62243
    }
-
 
62244
 
-
 
62245
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
62246
      org.apache.thrift.protocol.TField field;
-
 
62247
      iprot.readStructBegin();
-
 
62248
      while (true)
-
 
62249
      {
-
 
62250
        field = iprot.readFieldBegin();
-
 
62251
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
62252
          break;
-
 
62253
        }
-
 
62254
        switch (field.id) {
-
 
62255
          case 0: // SUCCESS
-
 
62256
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
-
 
62257
              {
-
 
62258
                org.apache.thrift.protocol.TMap _map216 = iprot.readMapBegin();
-
 
62259
                this.success = new HashMap<Long,Long>(2*_map216.size);
-
 
62260
                for (int _i217 = 0; _i217 < _map216.size; ++_i217)
-
 
62261
                {
-
 
62262
                  long _key218; // required
-
 
62263
                  long _val219; // required
-
 
62264
                  _key218 = iprot.readI64();
-
 
62265
                  _val219 = iprot.readI64();
-
 
62266
                  this.success.put(_key218, _val219);
-
 
62267
                }
-
 
62268
                iprot.readMapEnd();
-
 
62269
              }
-
 
62270
            } else { 
-
 
62271
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
62272
            }
-
 
62273
            break;
-
 
62274
          default:
-
 
62275
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
62276
        }
-
 
62277
        iprot.readFieldEnd();
-
 
62278
      }
-
 
62279
      iprot.readStructEnd();
-
 
62280
      validate();
-
 
62281
    }
-
 
62282
 
-
 
62283
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
62284
      oprot.writeStructBegin(STRUCT_DESC);
-
 
62285
 
-
 
62286
      if (this.isSetSuccess()) {
-
 
62287
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
62288
        {
-
 
62289
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.success.size()));
-
 
62290
          for (Map.Entry<Long, Long> _iter220 : this.success.entrySet())
-
 
62291
          {
-
 
62292
            oprot.writeI64(_iter220.getKey());
-
 
62293
            oprot.writeI64(_iter220.getValue());
-
 
62294
          }
-
 
62295
          oprot.writeMapEnd();
-
 
62296
        }
-
 
62297
        oprot.writeFieldEnd();
-
 
62298
      }
-
 
62299
      oprot.writeFieldStop();
-
 
62300
      oprot.writeStructEnd();
-
 
62301
    }
-
 
62302
 
-
 
62303
    @Override
-
 
62304
    public String toString() {
-
 
62305
      StringBuilder sb = new StringBuilder("getFofoAvailability_result(");
-
 
62306
      boolean first = true;
-
 
62307
 
-
 
62308
      sb.append("success:");
-
 
62309
      if (this.success == null) {
-
 
62310
        sb.append("null");
-
 
62311
      } else {
-
 
62312
        sb.append(this.success);
-
 
62313
      }
-
 
62314
      first = false;
-
 
62315
      sb.append(")");
-
 
62316
      return sb.toString();
-
 
62317
    }
-
 
62318
 
-
 
62319
    public void validate() throws org.apache.thrift.TException {
-
 
62320
      // check for required fields
-
 
62321
    }
-
 
62322
 
-
 
62323
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
62324
      try {
-
 
62325
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
62326
      } catch (org.apache.thrift.TException te) {
-
 
62327
        throw new java.io.IOException(te);
-
 
62328
      }
-
 
62329
    }
-
 
62330
 
-
 
62331
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
62332
      try {
-
 
62333
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
62334
      } catch (org.apache.thrift.TException te) {
-
 
62335
        throw new java.io.IOException(te);
-
 
62336
      }
-
 
62337
    }
-
 
62338
 
-
 
62339
  }
-
 
62340
 
61596
  public static class getItemLocationAvailabilityCache_args implements org.apache.thrift.TBase<getItemLocationAvailabilityCache_args, getItemLocationAvailabilityCache_args._Fields>, java.io.Serializable, Cloneable   {
62341
  public static class getItemLocationAvailabilityCache_args implements org.apache.thrift.TBase<getItemLocationAvailabilityCache_args, getItemLocationAvailabilityCache_args._Fields>, java.io.Serializable, Cloneable   {
61597
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemLocationAvailabilityCache_args");
62342
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemLocationAvailabilityCache_args");
61598
 
62343
 
61599
    private static final org.apache.thrift.protocol.TField ITEM_LOCATIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("itemLocations", org.apache.thrift.protocol.TType.LIST, (short)1);
62344
    private static final org.apache.thrift.protocol.TField ITEM_LOCATIONS_FIELD_DESC = new org.apache.thrift.protocol.TField("itemLocations", org.apache.thrift.protocol.TType.LIST, (short)1);
61600
 
62345
 
Line 61841... Line 62586...
61841
        }
62586
        }
61842
        switch (field.id) {
62587
        switch (field.id) {
61843
          case 1: // ITEM_LOCATIONS
62588
          case 1: // ITEM_LOCATIONS
61844
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
62589
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
61845
              {
62590
              {
61846
                org.apache.thrift.protocol.TList _list212 = iprot.readListBegin();
62591
                org.apache.thrift.protocol.TList _list221 = iprot.readListBegin();
61847
                this.itemLocations = new ArrayList<ItemLocationAvailability>(_list212.size);
62592
                this.itemLocations = new ArrayList<ItemLocationAvailability>(_list221.size);
61848
                for (int _i213 = 0; _i213 < _list212.size; ++_i213)
62593
                for (int _i222 = 0; _i222 < _list221.size; ++_i222)
61849
                {
62594
                {
61850
                  ItemLocationAvailability _elem214; // required
62595
                  ItemLocationAvailability _elem223; // required
61851
                  _elem214 = new ItemLocationAvailability();
62596
                  _elem223 = new ItemLocationAvailability();
61852
                  _elem214.read(iprot);
62597
                  _elem223.read(iprot);
61853
                  this.itemLocations.add(_elem214);
62598
                  this.itemLocations.add(_elem223);
61854
                }
62599
                }
61855
                iprot.readListEnd();
62600
                iprot.readListEnd();
61856
              }
62601
              }
61857
            } else { 
62602
            } else { 
61858
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
62603
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 61873... Line 62618...
61873
      oprot.writeStructBegin(STRUCT_DESC);
62618
      oprot.writeStructBegin(STRUCT_DESC);
61874
      if (this.itemLocations != null) {
62619
      if (this.itemLocations != null) {
61875
        oprot.writeFieldBegin(ITEM_LOCATIONS_FIELD_DESC);
62620
        oprot.writeFieldBegin(ITEM_LOCATIONS_FIELD_DESC);
61876
        {
62621
        {
61877
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.itemLocations.size()));
62622
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.itemLocations.size()));
61878
          for (ItemLocationAvailability _iter215 : this.itemLocations)
62623
          for (ItemLocationAvailability _iter224 : this.itemLocations)
61879
          {
62624
          {
61880
            _iter215.write(oprot);
62625
            _iter224.write(oprot);
61881
          }
62626
          }
61882
          oprot.writeListEnd();
62627
          oprot.writeListEnd();
61883
        }
62628
        }
61884
        oprot.writeFieldEnd();
62629
        oprot.writeFieldEnd();
61885
      }
62630
      }
Line 62173... Line 62918...
62173
        }
62918
        }
62174
        switch (field.id) {
62919
        switch (field.id) {
62175
          case 0: // SUCCESS
62920
          case 0: // SUCCESS
62176
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
62921
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
62177
              {
62922
              {
62178
                org.apache.thrift.protocol.TList _list216 = iprot.readListBegin();
62923
                org.apache.thrift.protocol.TList _list225 = iprot.readListBegin();
62179
                this.success = new ArrayList<ItemLocationAvailability>(_list216.size);
62924
                this.success = new ArrayList<ItemLocationAvailability>(_list225.size);
62180
                for (int _i217 = 0; _i217 < _list216.size; ++_i217)
62925
                for (int _i226 = 0; _i226 < _list225.size; ++_i226)
62181
                {
62926
                {
62182
                  ItemLocationAvailability _elem218; // required
62927
                  ItemLocationAvailability _elem227; // required
62183
                  _elem218 = new ItemLocationAvailability();
62928
                  _elem227 = new ItemLocationAvailability();
62184
                  _elem218.read(iprot);
62929
                  _elem227.read(iprot);
62185
                  this.success.add(_elem218);
62930
                  this.success.add(_elem227);
62186
                }
62931
                }
62187
                iprot.readListEnd();
62932
                iprot.readListEnd();
62188
              }
62933
              }
62189
            } else { 
62934
            } else { 
62190
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
62935
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 62204... Line 62949...
62204
 
62949
 
62205
      if (this.isSetSuccess()) {
62950
      if (this.isSetSuccess()) {
62206
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
62951
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
62207
        {
62952
        {
62208
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
62953
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
62209
          for (ItemLocationAvailability _iter219 : this.success)
62954
          for (ItemLocationAvailability _iter228 : this.success)
62210
          {
62955
          {
62211
            _iter219.write(oprot);
62956
            _iter228.write(oprot);
62212
          }
62957
          }
62213
          oprot.writeListEnd();
62958
          oprot.writeListEnd();
62214
        }
62959
        }
62215
        oprot.writeFieldEnd();
62960
        oprot.writeFieldEnd();
62216
      }
62961
      }
Line 62504... Line 63249...
62504
        }
63249
        }
62505
        switch (field.id) {
63250
        switch (field.id) {
62506
          case 1: // ITEM_IDS
63251
          case 1: // ITEM_IDS
62507
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
63252
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
62508
              {
63253
              {
62509
                org.apache.thrift.protocol.TList _list220 = iprot.readListBegin();
63254
                org.apache.thrift.protocol.TList _list229 = iprot.readListBegin();
62510
                this.itemIds = new ArrayList<Long>(_list220.size);
63255
                this.itemIds = new ArrayList<Long>(_list229.size);
62511
                for (int _i221 = 0; _i221 < _list220.size; ++_i221)
63256
                for (int _i230 = 0; _i230 < _list229.size; ++_i230)
62512
                {
63257
                {
62513
                  long _elem222; // required
63258
                  long _elem231; // required
62514
                  _elem222 = iprot.readI64();
63259
                  _elem231 = iprot.readI64();
62515
                  this.itemIds.add(_elem222);
63260
                  this.itemIds.add(_elem231);
62516
                }
63261
                }
62517
                iprot.readListEnd();
63262
                iprot.readListEnd();
62518
              }
63263
              }
62519
            } else { 
63264
            } else { 
62520
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
63265
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 62535... Line 63280...
62535
      oprot.writeStructBegin(STRUCT_DESC);
63280
      oprot.writeStructBegin(STRUCT_DESC);
62536
      if (this.itemIds != null) {
63281
      if (this.itemIds != null) {
62537
        oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);
63282
        oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);
62538
        {
63283
        {
62539
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.itemIds.size()));
63284
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.itemIds.size()));
62540
          for (long _iter223 : this.itemIds)
63285
          for (long _iter232 : this.itemIds)
62541
          {
63286
          {
62542
            oprot.writeI64(_iter223);
63287
            oprot.writeI64(_iter232);
62543
          }
63288
          }
62544
          oprot.writeListEnd();
63289
          oprot.writeListEnd();
62545
        }
63290
        }
62546
        oprot.writeFieldEnd();
63291
        oprot.writeFieldEnd();
62547
      }
63292
      }
Line 62835... Line 63580...
62835
        }
63580
        }
62836
        switch (field.id) {
63581
        switch (field.id) {
62837
          case 0: // SUCCESS
63582
          case 0: // SUCCESS
62838
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
63583
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
62839
              {
63584
              {
62840
                org.apache.thrift.protocol.TList _list224 = iprot.readListBegin();
63585
                org.apache.thrift.protocol.TList _list233 = iprot.readListBegin();
62841
                this.success = new ArrayList<ItemLocationAvailability>(_list224.size);
63586
                this.success = new ArrayList<ItemLocationAvailability>(_list233.size);
62842
                for (int _i225 = 0; _i225 < _list224.size; ++_i225)
63587
                for (int _i234 = 0; _i234 < _list233.size; ++_i234)
62843
                {
63588
                {
62844
                  ItemLocationAvailability _elem226; // required
63589
                  ItemLocationAvailability _elem235; // required
62845
                  _elem226 = new ItemLocationAvailability();
63590
                  _elem235 = new ItemLocationAvailability();
62846
                  _elem226.read(iprot);
63591
                  _elem235.read(iprot);
62847
                  this.success.add(_elem226);
63592
                  this.success.add(_elem235);
62848
                }
63593
                }
62849
                iprot.readListEnd();
63594
                iprot.readListEnd();
62850
              }
63595
              }
62851
            } else { 
63596
            } else { 
62852
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
63597
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 62866... Line 63611...
62866
 
63611
 
62867
      if (this.isSetSuccess()) {
63612
      if (this.isSetSuccess()) {
62868
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
63613
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
62869
        {
63614
        {
62870
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
63615
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
62871
          for (ItemLocationAvailability _iter227 : this.success)
63616
          for (ItemLocationAvailability _iter236 : this.success)
62872
          {
63617
          {
62873
            _iter227.write(oprot);
63618
            _iter236.write(oprot);
62874
          }
63619
          }
62875
          oprot.writeListEnd();
63620
          oprot.writeListEnd();
62876
        }
63621
        }
62877
        oprot.writeFieldEnd();
63622
        oprot.writeFieldEnd();
62878
      }
63623
      }
Line 63239... Line 63984...
63239
        }
63984
        }
63240
        switch (field.id) {
63985
        switch (field.id) {
63241
          case 1: // ITEMPRICING
63986
          case 1: // ITEMPRICING
63242
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
63987
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
63243
              {
63988
              {
63244
                org.apache.thrift.protocol.TMap _map228 = iprot.readMapBegin();
63989
                org.apache.thrift.protocol.TMap _map237 = iprot.readMapBegin();
63245
                this.itempricing = new HashMap<Long,Long>(2*_map228.size);
63990
                this.itempricing = new HashMap<Long,Long>(2*_map237.size);
63246
                for (int _i229 = 0; _i229 < _map228.size; ++_i229)
63991
                for (int _i238 = 0; _i238 < _map237.size; ++_i238)
63247
                {
63992
                {
63248
                  long _key230; // required
63993
                  long _key239; // required
63249
                  long _val231; // required
63994
                  long _val240; // required
63250
                  _key230 = iprot.readI64();
63995
                  _key239 = iprot.readI64();
63251
                  _val231 = iprot.readI64();
63996
                  _val240 = iprot.readI64();
63252
                  this.itempricing.put(_key230, _val231);
63997
                  this.itempricing.put(_key239, _val240);
63253
                }
63998
                }
63254
                iprot.readMapEnd();
63999
                iprot.readMapEnd();
63255
              }
64000
              }
63256
            } else { 
64001
            } else { 
63257
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
64002
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 63279... Line 64024...
63279
      oprot.writeStructBegin(STRUCT_DESC);
64024
      oprot.writeStructBegin(STRUCT_DESC);
63280
      if (this.itempricing != null) {
64025
      if (this.itempricing != null) {
63281
        oprot.writeFieldBegin(ITEMPRICING_FIELD_DESC);
64026
        oprot.writeFieldBegin(ITEMPRICING_FIELD_DESC);
63282
        {
64027
        {
63283
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.itempricing.size()));
64028
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.itempricing.size()));
63284
          for (Map.Entry<Long, Long> _iter232 : this.itempricing.entrySet())
64029
          for (Map.Entry<Long, Long> _iter241 : this.itempricing.entrySet())
63285
          {
64030
          {
63286
            oprot.writeI64(_iter232.getKey());
64031
            oprot.writeI64(_iter241.getKey());
63287
            oprot.writeI64(_iter232.getValue());
64032
            oprot.writeI64(_iter241.getValue());
63288
          }
64033
          }
63289
          oprot.writeMapEnd();
64034
          oprot.writeMapEnd();
63290
        }
64035
        }
63291
        oprot.writeFieldEnd();
64036
        oprot.writeFieldEnd();
63292
      }
64037
      }