Subversion Repositories SmartDukaan

Rev

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

Rev 5978 Rev 6096
Line 275... Line 275...
275
     */
275
     */
276
    public void clearItemAvailabilityCache() throws org.apache.thrift.TException;
276
    public void clearItemAvailabilityCache() throws org.apache.thrift.TException;
277
 
277
 
278
    public void updateVendorString(long warehouseId, String vendorString) throws org.apache.thrift.TException;
278
    public void updateVendorString(long warehouseId, String vendorString) throws org.apache.thrift.TException;
279
 
279
 
-
 
280
    public void clearItemAvailabilityCacheForItem(long item_id) throws org.apache.thrift.TException;
-
 
281
 
280
  }
282
  }
281
 
283
 
282
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
284
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
283
 
285
 
284
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
286
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
Line 349... Line 351...
349
 
351
 
350
    public void clearItemAvailabilityCache(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.clearItemAvailabilityCache_call> resultHandler) throws org.apache.thrift.TException;
352
    public void clearItemAvailabilityCache(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.clearItemAvailabilityCache_call> resultHandler) throws org.apache.thrift.TException;
351
 
353
 
352
    public void updateVendorString(long warehouseId, String vendorString, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateVendorString_call> resultHandler) throws org.apache.thrift.TException;
354
    public void updateVendorString(long warehouseId, String vendorString, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateVendorString_call> resultHandler) throws org.apache.thrift.TException;
353
 
355
 
-
 
356
    public void clearItemAvailabilityCacheForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.clearItemAvailabilityCacheForItem_call> resultHandler) throws org.apache.thrift.TException;
-
 
357
 
354
  }
358
  }
355
 
359
 
356
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
360
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
357
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
361
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
358
      public Factory() {}
362
      public Factory() {}
Line 1235... Line 1239...
1235
      updateVendorString_result result = new updateVendorString_result();
1239
      updateVendorString_result result = new updateVendorString_result();
1236
      receiveBase(result, "updateVendorString");
1240
      receiveBase(result, "updateVendorString");
1237
      return;
1241
      return;
1238
    }
1242
    }
1239
 
1243
 
-
 
1244
    public void clearItemAvailabilityCacheForItem(long item_id) throws org.apache.thrift.TException
-
 
1245
    {
-
 
1246
      send_clearItemAvailabilityCacheForItem(item_id);
-
 
1247
      recv_clearItemAvailabilityCacheForItem();
-
 
1248
    }
-
 
1249
 
-
 
1250
    public void send_clearItemAvailabilityCacheForItem(long item_id) throws org.apache.thrift.TException
-
 
1251
    {
-
 
1252
      clearItemAvailabilityCacheForItem_args args = new clearItemAvailabilityCacheForItem_args();
-
 
1253
      args.setItem_id(item_id);
-
 
1254
      sendBase("clearItemAvailabilityCacheForItem", args);
-
 
1255
    }
-
 
1256
 
-
 
1257
    public void recv_clearItemAvailabilityCacheForItem() throws org.apache.thrift.TException
-
 
1258
    {
-
 
1259
      clearItemAvailabilityCacheForItem_result result = new clearItemAvailabilityCacheForItem_result();
-
 
1260
      receiveBase(result, "clearItemAvailabilityCacheForItem");
-
 
1261
      return;
-
 
1262
    }
-
 
1263
 
1240
  }
1264
  }
1241
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1265
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1242
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1266
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1243
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1267
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1244
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1268
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 2460... Line 2484...
2460
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2484
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2461
        (new Client(prot)).recv_updateVendorString();
2485
        (new Client(prot)).recv_updateVendorString();
2462
      }
2486
      }
2463
    }
2487
    }
2464
 
2488
 
-
 
2489
    public void clearItemAvailabilityCacheForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<clearItemAvailabilityCacheForItem_call> resultHandler) throws org.apache.thrift.TException {
-
 
2490
      checkReady();
-
 
2491
      clearItemAvailabilityCacheForItem_call method_call = new clearItemAvailabilityCacheForItem_call(item_id, resultHandler, this, ___protocolFactory, ___transport);
-
 
2492
      this.___currentMethod = method_call;
-
 
2493
      ___manager.call(method_call);
-
 
2494
    }
-
 
2495
 
-
 
2496
    public static class clearItemAvailabilityCacheForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2497
      private long item_id;
-
 
2498
      public clearItemAvailabilityCacheForItem_call(long item_id, org.apache.thrift.async.AsyncMethodCallback<clearItemAvailabilityCacheForItem_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 {
-
 
2499
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2500
        this.item_id = item_id;
-
 
2501
      }
-
 
2502
 
-
 
2503
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2504
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("clearItemAvailabilityCacheForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2505
        clearItemAvailabilityCacheForItem_args args = new clearItemAvailabilityCacheForItem_args();
-
 
2506
        args.setItem_id(item_id);
-
 
2507
        args.write(prot);
-
 
2508
        prot.writeMessageEnd();
-
 
2509
      }
-
 
2510
 
-
 
2511
      public void getResult() throws org.apache.thrift.TException {
-
 
2512
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2513
          throw new IllegalStateException("Method call not finished!");
-
 
2514
        }
-
 
2515
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2516
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2517
        (new Client(prot)).recv_clearItemAvailabilityCacheForItem();
-
 
2518
      }
-
 
2519
    }
-
 
2520
 
2465
  }
2521
  }
2466
 
2522
 
2467
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
2523
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
2468
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2524
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2469
    public Processor(I iface) {
2525
    public Processor(I iface) {
Line 2508... Line 2564...
2508
      processMap.put("getShippingLocations", new getShippingLocations());
2564
      processMap.put("getShippingLocations", new getShippingLocations());
2509
      processMap.put("getAllVendorItemMappings", new getAllVendorItemMappings());
2565
      processMap.put("getAllVendorItemMappings", new getAllVendorItemMappings());
2510
      processMap.put("getInventorySnapshot", new getInventorySnapshot());
2566
      processMap.put("getInventorySnapshot", new getInventorySnapshot());
2511
      processMap.put("clearItemAvailabilityCache", new clearItemAvailabilityCache());
2567
      processMap.put("clearItemAvailabilityCache", new clearItemAvailabilityCache());
2512
      processMap.put("updateVendorString", new updateVendorString());
2568
      processMap.put("updateVendorString", new updateVendorString());
-
 
2569
      processMap.put("clearItemAvailabilityCacheForItem", new clearItemAvailabilityCacheForItem());
2513
      return processMap;
2570
      return processMap;
2514
    }
2571
    }
2515
 
2572
 
2516
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
2573
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
2517
      public addWarehouse() {
2574
      public addWarehouse() {
Line 3165... Line 3222...
3165
        iface.updateVendorString(args.warehouseId, args.vendorString);
3222
        iface.updateVendorString(args.warehouseId, args.vendorString);
3166
        return result;
3223
        return result;
3167
      }
3224
      }
3168
    }
3225
    }
3169
 
3226
 
-
 
3227
    private static class clearItemAvailabilityCacheForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, clearItemAvailabilityCacheForItem_args> {
-
 
3228
      public clearItemAvailabilityCacheForItem() {
-
 
3229
        super("clearItemAvailabilityCacheForItem");
-
 
3230
      }
-
 
3231
 
-
 
3232
      protected clearItemAvailabilityCacheForItem_args getEmptyArgsInstance() {
-
 
3233
        return new clearItemAvailabilityCacheForItem_args();
-
 
3234
      }
-
 
3235
 
-
 
3236
      protected clearItemAvailabilityCacheForItem_result getResult(I iface, clearItemAvailabilityCacheForItem_args args) throws org.apache.thrift.TException {
-
 
3237
        clearItemAvailabilityCacheForItem_result result = new clearItemAvailabilityCacheForItem_result();
-
 
3238
        iface.clearItemAvailabilityCacheForItem(args.item_id);
-
 
3239
        return result;
-
 
3240
      }
-
 
3241
    }
-
 
3242
 
3170
  }
3243
  }
3171
 
3244
 
3172
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
3245
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
3173
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
3246
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
3174
 
3247
 
Line 27603... Line 27676...
27603
      boolean first = true;
27676
      boolean first = true;
27604
 
27677
 
27605
      sb.append(")");
27678
      sb.append(")");
27606
      return sb.toString();
27679
      return sb.toString();
27607
    }
27680
    }
-
 
27681
 
-
 
27682
    public void validate() throws org.apache.thrift.TException {
-
 
27683
      // check for required fields
-
 
27684
    }
-
 
27685
 
-
 
27686
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
27687
      try {
-
 
27688
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
27689
      } catch (org.apache.thrift.TException te) {
-
 
27690
        throw new java.io.IOException(te);
-
 
27691
      }
-
 
27692
    }
-
 
27693
 
-
 
27694
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
27695
      try {
-
 
27696
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
27697
      } catch (org.apache.thrift.TException te) {
-
 
27698
        throw new java.io.IOException(te);
-
 
27699
      }
-
 
27700
    }
-
 
27701
 
-
 
27702
  }
-
 
27703
 
-
 
27704
  public static class clearItemAvailabilityCacheForItem_args implements org.apache.thrift.TBase<clearItemAvailabilityCacheForItem_args, clearItemAvailabilityCacheForItem_args._Fields>, java.io.Serializable, Cloneable   {
-
 
27705
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clearItemAvailabilityCacheForItem_args");
-
 
27706
 
-
 
27707
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
27708
 
-
 
27709
    private long item_id; // required
-
 
27710
 
-
 
27711
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
27712
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
27713
      ITEM_ID((short)1, "item_id");
-
 
27714
 
-
 
27715
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
27716
 
-
 
27717
      static {
-
 
27718
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
27719
          byName.put(field.getFieldName(), field);
-
 
27720
        }
-
 
27721
      }
-
 
27722
 
-
 
27723
      /**
-
 
27724
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
27725
       */
-
 
27726
      public static _Fields findByThriftId(int fieldId) {
-
 
27727
        switch(fieldId) {
-
 
27728
          case 1: // ITEM_ID
-
 
27729
            return ITEM_ID;
-
 
27730
          default:
-
 
27731
            return null;
-
 
27732
        }
-
 
27733
      }
-
 
27734
 
-
 
27735
      /**
-
 
27736
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
27737
       * if it is not found.
-
 
27738
       */
-
 
27739
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
27740
        _Fields fields = findByThriftId(fieldId);
-
 
27741
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
27742
        return fields;
-
 
27743
      }
-
 
27744
 
-
 
27745
      /**
-
 
27746
       * Find the _Fields constant that matches name, or null if its not found.
-
 
27747
       */
-
 
27748
      public static _Fields findByName(String name) {
-
 
27749
        return byName.get(name);
-
 
27750
      }
-
 
27751
 
-
 
27752
      private final short _thriftId;
-
 
27753
      private final String _fieldName;
-
 
27754
 
-
 
27755
      _Fields(short thriftId, String fieldName) {
-
 
27756
        _thriftId = thriftId;
-
 
27757
        _fieldName = fieldName;
-
 
27758
      }
-
 
27759
 
-
 
27760
      public short getThriftFieldId() {
-
 
27761
        return _thriftId;
-
 
27762
      }
-
 
27763
 
-
 
27764
      public String getFieldName() {
-
 
27765
        return _fieldName;
-
 
27766
      }
-
 
27767
    }
-
 
27768
 
-
 
27769
    // isset id assignments
-
 
27770
    private static final int __ITEM_ID_ISSET_ID = 0;
-
 
27771
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
27772
 
-
 
27773
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
27774
    static {
-
 
27775
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
27776
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
27777
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
27778
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
27779
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearItemAvailabilityCacheForItem_args.class, metaDataMap);
-
 
27780
    }
-
 
27781
 
-
 
27782
    public clearItemAvailabilityCacheForItem_args() {
-
 
27783
    }
-
 
27784
 
-
 
27785
    public clearItemAvailabilityCacheForItem_args(
-
 
27786
      long item_id)
-
 
27787
    {
-
 
27788
      this();
-
 
27789
      this.item_id = item_id;
-
 
27790
      setItem_idIsSet(true);
-
 
27791
    }
-
 
27792
 
-
 
27793
    /**
-
 
27794
     * Performs a deep copy on <i>other</i>.
-
 
27795
     */
-
 
27796
    public clearItemAvailabilityCacheForItem_args(clearItemAvailabilityCacheForItem_args other) {
-
 
27797
      __isset_bit_vector.clear();
-
 
27798
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
27799
      this.item_id = other.item_id;
-
 
27800
    }
-
 
27801
 
-
 
27802
    public clearItemAvailabilityCacheForItem_args deepCopy() {
-
 
27803
      return new clearItemAvailabilityCacheForItem_args(this);
-
 
27804
    }
-
 
27805
 
-
 
27806
    @Override
-
 
27807
    public void clear() {
-
 
27808
      setItem_idIsSet(false);
-
 
27809
      this.item_id = 0;
-
 
27810
    }
-
 
27811
 
-
 
27812
    public long getItem_id() {
-
 
27813
      return this.item_id;
-
 
27814
    }
-
 
27815
 
-
 
27816
    public void setItem_id(long item_id) {
-
 
27817
      this.item_id = item_id;
-
 
27818
      setItem_idIsSet(true);
-
 
27819
    }
-
 
27820
 
-
 
27821
    public void unsetItem_id() {
-
 
27822
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
-
 
27823
    }
-
 
27824
 
-
 
27825
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
-
 
27826
    public boolean isSetItem_id() {
-
 
27827
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
-
 
27828
    }
-
 
27829
 
-
 
27830
    public void setItem_idIsSet(boolean value) {
-
 
27831
      __isset_bit_vector.set(__ITEM_ID_ISSET_ID, value);
-
 
27832
    }
-
 
27833
 
-
 
27834
    public void setFieldValue(_Fields field, Object value) {
-
 
27835
      switch (field) {
-
 
27836
      case ITEM_ID:
-
 
27837
        if (value == null) {
-
 
27838
          unsetItem_id();
-
 
27839
        } else {
-
 
27840
          setItem_id((Long)value);
-
 
27841
        }
-
 
27842
        break;
-
 
27843
 
-
 
27844
      }
-
 
27845
    }
-
 
27846
 
-
 
27847
    public Object getFieldValue(_Fields field) {
-
 
27848
      switch (field) {
-
 
27849
      case ITEM_ID:
-
 
27850
        return Long.valueOf(getItem_id());
-
 
27851
 
-
 
27852
      }
-
 
27853
      throw new IllegalStateException();
-
 
27854
    }
-
 
27855
 
-
 
27856
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
27857
    public boolean isSet(_Fields field) {
-
 
27858
      if (field == null) {
-
 
27859
        throw new IllegalArgumentException();
-
 
27860
      }
-
 
27861
 
-
 
27862
      switch (field) {
-
 
27863
      case ITEM_ID:
-
 
27864
        return isSetItem_id();
-
 
27865
      }
-
 
27866
      throw new IllegalStateException();
-
 
27867
    }
-
 
27868
 
-
 
27869
    @Override
-
 
27870
    public boolean equals(Object that) {
-
 
27871
      if (that == null)
-
 
27872
        return false;
-
 
27873
      if (that instanceof clearItemAvailabilityCacheForItem_args)
-
 
27874
        return this.equals((clearItemAvailabilityCacheForItem_args)that);
-
 
27875
      return false;
-
 
27876
    }
-
 
27877
 
-
 
27878
    public boolean equals(clearItemAvailabilityCacheForItem_args that) {
-
 
27879
      if (that == null)
-
 
27880
        return false;
-
 
27881
 
-
 
27882
      boolean this_present_item_id = true;
-
 
27883
      boolean that_present_item_id = true;
-
 
27884
      if (this_present_item_id || that_present_item_id) {
-
 
27885
        if (!(this_present_item_id && that_present_item_id))
-
 
27886
          return false;
-
 
27887
        if (this.item_id != that.item_id)
-
 
27888
          return false;
-
 
27889
      }
-
 
27890
 
-
 
27891
      return true;
-
 
27892
    }
-
 
27893
 
-
 
27894
    @Override
-
 
27895
    public int hashCode() {
-
 
27896
      return 0;
-
 
27897
    }
-
 
27898
 
-
 
27899
    public int compareTo(clearItemAvailabilityCacheForItem_args other) {
-
 
27900
      if (!getClass().equals(other.getClass())) {
-
 
27901
        return getClass().getName().compareTo(other.getClass().getName());
-
 
27902
      }
-
 
27903
 
-
 
27904
      int lastComparison = 0;
-
 
27905
      clearItemAvailabilityCacheForItem_args typedOther = (clearItemAvailabilityCacheForItem_args)other;
-
 
27906
 
-
 
27907
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
-
 
27908
      if (lastComparison != 0) {
-
 
27909
        return lastComparison;
-
 
27910
      }
-
 
27911
      if (isSetItem_id()) {
-
 
27912
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
-
 
27913
        if (lastComparison != 0) {
-
 
27914
          return lastComparison;
-
 
27915
        }
-
 
27916
      }
-
 
27917
      return 0;
-
 
27918
    }
-
 
27919
 
-
 
27920
    public _Fields fieldForId(int fieldId) {
-
 
27921
      return _Fields.findByThriftId(fieldId);
-
 
27922
    }
-
 
27923
 
-
 
27924
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
27925
      org.apache.thrift.protocol.TField field;
-
 
27926
      iprot.readStructBegin();
-
 
27927
      while (true)
-
 
27928
      {
-
 
27929
        field = iprot.readFieldBegin();
-
 
27930
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
27931
          break;
-
 
27932
        }
-
 
27933
        switch (field.id) {
-
 
27934
          case 1: // ITEM_ID
-
 
27935
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
27936
              this.item_id = iprot.readI64();
-
 
27937
              setItem_idIsSet(true);
-
 
27938
            } else { 
-
 
27939
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
27940
            }
-
 
27941
            break;
-
 
27942
          default:
-
 
27943
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
27944
        }
-
 
27945
        iprot.readFieldEnd();
-
 
27946
      }
-
 
27947
      iprot.readStructEnd();
-
 
27948
      validate();
-
 
27949
    }
-
 
27950
 
-
 
27951
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
27952
      validate();
-
 
27953
 
-
 
27954
      oprot.writeStructBegin(STRUCT_DESC);
-
 
27955
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
-
 
27956
      oprot.writeI64(this.item_id);
-
 
27957
      oprot.writeFieldEnd();
-
 
27958
      oprot.writeFieldStop();
-
 
27959
      oprot.writeStructEnd();
-
 
27960
    }
-
 
27961
 
-
 
27962
    @Override
-
 
27963
    public String toString() {
-
 
27964
      StringBuilder sb = new StringBuilder("clearItemAvailabilityCacheForItem_args(");
-
 
27965
      boolean first = true;
-
 
27966
 
-
 
27967
      sb.append("item_id:");
-
 
27968
      sb.append(this.item_id);
-
 
27969
      first = false;
-
 
27970
      sb.append(")");
-
 
27971
      return sb.toString();
-
 
27972
    }
-
 
27973
 
-
 
27974
    public void validate() throws org.apache.thrift.TException {
-
 
27975
      // check for required fields
-
 
27976
    }
-
 
27977
 
-
 
27978
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
27979
      try {
-
 
27980
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
27981
      } catch (org.apache.thrift.TException te) {
-
 
27982
        throw new java.io.IOException(te);
-
 
27983
      }
-
 
27984
    }
-
 
27985
 
-
 
27986
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
27987
      try {
-
 
27988
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
27989
        __isset_bit_vector = new BitSet(1);
-
 
27990
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
27991
      } catch (org.apache.thrift.TException te) {
-
 
27992
        throw new java.io.IOException(te);
-
 
27993
      }
-
 
27994
    }
-
 
27995
 
-
 
27996
  }
-
 
27997
 
-
 
27998
  public static class clearItemAvailabilityCacheForItem_result implements org.apache.thrift.TBase<clearItemAvailabilityCacheForItem_result, clearItemAvailabilityCacheForItem_result._Fields>, java.io.Serializable, Cloneable   {
-
 
27999
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("clearItemAvailabilityCacheForItem_result");
-
 
28000
 
-
 
28001
 
-
 
28002
 
-
 
28003
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
28004
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
28005
;
-
 
28006
 
-
 
28007
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
28008
 
-
 
28009
      static {
-
 
28010
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
28011
          byName.put(field.getFieldName(), field);
-
 
28012
        }
-
 
28013
      }
-
 
28014
 
-
 
28015
      /**
-
 
28016
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
28017
       */
-
 
28018
      public static _Fields findByThriftId(int fieldId) {
-
 
28019
        switch(fieldId) {
-
 
28020
          default:
-
 
28021
            return null;
-
 
28022
        }
-
 
28023
      }
-
 
28024
 
-
 
28025
      /**
-
 
28026
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
28027
       * if it is not found.
-
 
28028
       */
-
 
28029
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
28030
        _Fields fields = findByThriftId(fieldId);
-
 
28031
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
28032
        return fields;
-
 
28033
      }
-
 
28034
 
-
 
28035
      /**
-
 
28036
       * Find the _Fields constant that matches name, or null if its not found.
-
 
28037
       */
-
 
28038
      public static _Fields findByName(String name) {
-
 
28039
        return byName.get(name);
-
 
28040
      }
-
 
28041
 
-
 
28042
      private final short _thriftId;
-
 
28043
      private final String _fieldName;
-
 
28044
 
-
 
28045
      _Fields(short thriftId, String fieldName) {
-
 
28046
        _thriftId = thriftId;
-
 
28047
        _fieldName = fieldName;
-
 
28048
      }
-
 
28049
 
-
 
28050
      public short getThriftFieldId() {
-
 
28051
        return _thriftId;
-
 
28052
      }
-
 
28053
 
-
 
28054
      public String getFieldName() {
-
 
28055
        return _fieldName;
-
 
28056
      }
-
 
28057
    }
-
 
28058
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
28059
    static {
-
 
28060
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
28061
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
28062
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(clearItemAvailabilityCacheForItem_result.class, metaDataMap);
-
 
28063
    }
-
 
28064
 
-
 
28065
    public clearItemAvailabilityCacheForItem_result() {
-
 
28066
    }
-
 
28067
 
-
 
28068
    /**
-
 
28069
     * Performs a deep copy on <i>other</i>.
-
 
28070
     */
-
 
28071
    public clearItemAvailabilityCacheForItem_result(clearItemAvailabilityCacheForItem_result other) {
-
 
28072
    }
-
 
28073
 
-
 
28074
    public clearItemAvailabilityCacheForItem_result deepCopy() {
-
 
28075
      return new clearItemAvailabilityCacheForItem_result(this);
-
 
28076
    }
-
 
28077
 
-
 
28078
    @Override
-
 
28079
    public void clear() {
-
 
28080
    }
-
 
28081
 
-
 
28082
    public void setFieldValue(_Fields field, Object value) {
-
 
28083
      switch (field) {
-
 
28084
      }
-
 
28085
    }
-
 
28086
 
-
 
28087
    public Object getFieldValue(_Fields field) {
-
 
28088
      switch (field) {
-
 
28089
      }
-
 
28090
      throw new IllegalStateException();
-
 
28091
    }
-
 
28092
 
-
 
28093
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
28094
    public boolean isSet(_Fields field) {
-
 
28095
      if (field == null) {
-
 
28096
        throw new IllegalArgumentException();
-
 
28097
      }
-
 
28098
 
-
 
28099
      switch (field) {
-
 
28100
      }
-
 
28101
      throw new IllegalStateException();
-
 
28102
    }
-
 
28103
 
-
 
28104
    @Override
-
 
28105
    public boolean equals(Object that) {
-
 
28106
      if (that == null)
-
 
28107
        return false;
-
 
28108
      if (that instanceof clearItemAvailabilityCacheForItem_result)
-
 
28109
        return this.equals((clearItemAvailabilityCacheForItem_result)that);
-
 
28110
      return false;
-
 
28111
    }
-
 
28112
 
-
 
28113
    public boolean equals(clearItemAvailabilityCacheForItem_result that) {
-
 
28114
      if (that == null)
-
 
28115
        return false;
-
 
28116
 
-
 
28117
      return true;
-
 
28118
    }
-
 
28119
 
-
 
28120
    @Override
-
 
28121
    public int hashCode() {
-
 
28122
      return 0;
-
 
28123
    }
-
 
28124
 
-
 
28125
    public int compareTo(clearItemAvailabilityCacheForItem_result other) {
-
 
28126
      if (!getClass().equals(other.getClass())) {
-
 
28127
        return getClass().getName().compareTo(other.getClass().getName());
-
 
28128
      }
-
 
28129
 
-
 
28130
      int lastComparison = 0;
-
 
28131
      clearItemAvailabilityCacheForItem_result typedOther = (clearItemAvailabilityCacheForItem_result)other;
-
 
28132
 
-
 
28133
      return 0;
-
 
28134
    }
-
 
28135
 
-
 
28136
    public _Fields fieldForId(int fieldId) {
-
 
28137
      return _Fields.findByThriftId(fieldId);
-
 
28138
    }
-
 
28139
 
-
 
28140
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
28141
      org.apache.thrift.protocol.TField field;
-
 
28142
      iprot.readStructBegin();
-
 
28143
      while (true)
-
 
28144
      {
-
 
28145
        field = iprot.readFieldBegin();
-
 
28146
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
28147
          break;
-
 
28148
        }
-
 
28149
        switch (field.id) {
-
 
28150
          default:
-
 
28151
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
28152
        }
-
 
28153
        iprot.readFieldEnd();
-
 
28154
      }
-
 
28155
      iprot.readStructEnd();
-
 
28156
      validate();
-
 
28157
    }
-
 
28158
 
-
 
28159
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
28160
      oprot.writeStructBegin(STRUCT_DESC);
-
 
28161
 
-
 
28162
      oprot.writeFieldStop();
-
 
28163
      oprot.writeStructEnd();
-
 
28164
    }
-
 
28165
 
-
 
28166
    @Override
-
 
28167
    public String toString() {
-
 
28168
      StringBuilder sb = new StringBuilder("clearItemAvailabilityCacheForItem_result(");
-
 
28169
      boolean first = true;
-
 
28170
 
-
 
28171
      sb.append(")");
-
 
28172
      return sb.toString();
-
 
28173
    }
27608
 
28174
 
27609
    public void validate() throws org.apache.thrift.TException {
28175
    public void validate() throws org.apache.thrift.TException {
27610
      // check for required fields
28176
      // check for required fields
27611
    }
28177
    }
27612
 
28178