Subversion Repositories SmartDukaan

Rev

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

Rev 6467 Rev 6484
Line 279... Line 279...
279
 
279
 
280
    public void clearItemAvailabilityCacheForItem(long item_id) throws org.apache.thrift.TException;
280
    public void clearItemAvailabilityCacheForItem(long item_id) throws org.apache.thrift.TException;
281
 
281
 
282
    public long getOurWarehouseIdForVendor(long vendorId) throws org.apache.thrift.TException;
282
    public long getOurWarehouseIdForVendor(long vendorId) throws org.apache.thrift.TException;
283
 
283
 
-
 
284
    public Map<Long,Long> getItemAvailabilitiesAtOurWarehouses(List<Long> item_ids) throws org.apache.thrift.TException;
-
 
285
 
284
  }
286
  }
285
 
287
 
286
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
288
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
287
 
289
 
288
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
290
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
Line 357... Line 359...
357
 
359
 
358
    public void clearItemAvailabilityCacheForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.clearItemAvailabilityCacheForItem_call> resultHandler) throws org.apache.thrift.TException;
360
    public void clearItemAvailabilityCacheForItem(long item_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.clearItemAvailabilityCacheForItem_call> resultHandler) throws org.apache.thrift.TException;
359
 
361
 
360
    public void getOurWarehouseIdForVendor(long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOurWarehouseIdForVendor_call> resultHandler) throws org.apache.thrift.TException;
362
    public void getOurWarehouseIdForVendor(long vendorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOurWarehouseIdForVendor_call> resultHandler) throws org.apache.thrift.TException;
361
 
363
 
-
 
364
    public void getItemAvailabilitiesAtOurWarehouses(List<Long> item_ids, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getItemAvailabilitiesAtOurWarehouses_call> resultHandler) throws org.apache.thrift.TException;
-
 
365
 
362
  }
366
  }
363
 
367
 
364
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
368
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
365
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
369
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
366
      public Factory() {}
370
      public Factory() {}
Line 1286... Line 1290...
1286
        return result.success;
1290
        return result.success;
1287
      }
1291
      }
1288
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOurWarehouseIdForVendor failed: unknown result");
1292
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOurWarehouseIdForVendor failed: unknown result");
1289
    }
1293
    }
1290
 
1294
 
-
 
1295
    public Map<Long,Long> getItemAvailabilitiesAtOurWarehouses(List<Long> item_ids) throws org.apache.thrift.TException
-
 
1296
    {
-
 
1297
      send_getItemAvailabilitiesAtOurWarehouses(item_ids);
-
 
1298
      return recv_getItemAvailabilitiesAtOurWarehouses();
-
 
1299
    }
-
 
1300
 
-
 
1301
    public void send_getItemAvailabilitiesAtOurWarehouses(List<Long> item_ids) throws org.apache.thrift.TException
-
 
1302
    {
-
 
1303
      getItemAvailabilitiesAtOurWarehouses_args args = new getItemAvailabilitiesAtOurWarehouses_args();
-
 
1304
      args.setItem_ids(item_ids);
-
 
1305
      sendBase("getItemAvailabilitiesAtOurWarehouses", args);
-
 
1306
    }
-
 
1307
 
-
 
1308
    public Map<Long,Long> recv_getItemAvailabilitiesAtOurWarehouses() throws org.apache.thrift.TException
-
 
1309
    {
-
 
1310
      getItemAvailabilitiesAtOurWarehouses_result result = new getItemAvailabilitiesAtOurWarehouses_result();
-
 
1311
      receiveBase(result, "getItemAvailabilitiesAtOurWarehouses");
-
 
1312
      if (result.isSetSuccess()) {
-
 
1313
        return result.success;
-
 
1314
      }
-
 
1315
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getItemAvailabilitiesAtOurWarehouses failed: unknown result");
-
 
1316
    }
-
 
1317
 
1291
  }
1318
  }
1292
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1319
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1293
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1320
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1294
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1321
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1295
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1322
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 2575... Line 2602...
2575
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2602
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2576
        return (new Client(prot)).recv_getOurWarehouseIdForVendor();
2603
        return (new Client(prot)).recv_getOurWarehouseIdForVendor();
2577
      }
2604
      }
2578
    }
2605
    }
2579
 
2606
 
-
 
2607
    public void getItemAvailabilitiesAtOurWarehouses(List<Long> item_ids, org.apache.thrift.async.AsyncMethodCallback<getItemAvailabilitiesAtOurWarehouses_call> resultHandler) throws org.apache.thrift.TException {
-
 
2608
      checkReady();
-
 
2609
      getItemAvailabilitiesAtOurWarehouses_call method_call = new getItemAvailabilitiesAtOurWarehouses_call(item_ids, resultHandler, this, ___protocolFactory, ___transport);
-
 
2610
      this.___currentMethod = method_call;
-
 
2611
      ___manager.call(method_call);
-
 
2612
    }
-
 
2613
 
-
 
2614
    public static class getItemAvailabilitiesAtOurWarehouses_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
2615
      private List<Long> item_ids;
-
 
2616
      public getItemAvailabilitiesAtOurWarehouses_call(List<Long> item_ids, org.apache.thrift.async.AsyncMethodCallback<getItemAvailabilitiesAtOurWarehouses_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 {
-
 
2617
        super(client, protocolFactory, transport, resultHandler, false);
-
 
2618
        this.item_ids = item_ids;
-
 
2619
      }
-
 
2620
 
-
 
2621
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
2622
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getItemAvailabilitiesAtOurWarehouses", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
2623
        getItemAvailabilitiesAtOurWarehouses_args args = new getItemAvailabilitiesAtOurWarehouses_args();
-
 
2624
        args.setItem_ids(item_ids);
-
 
2625
        args.write(prot);
-
 
2626
        prot.writeMessageEnd();
-
 
2627
      }
-
 
2628
 
-
 
2629
      public Map<Long,Long> getResult() throws org.apache.thrift.TException {
-
 
2630
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
2631
          throw new IllegalStateException("Method call not finished!");
-
 
2632
        }
-
 
2633
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
2634
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
2635
        return (new Client(prot)).recv_getItemAvailabilitiesAtOurWarehouses();
-
 
2636
      }
-
 
2637
    }
-
 
2638
 
2580
  }
2639
  }
2581
 
2640
 
2582
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
2641
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
2583
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2642
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2584
    public Processor(I iface) {
2643
    public Processor(I iface) {
Line 2625... Line 2684...
2625
      processMap.put("getInventorySnapshot", new getInventorySnapshot());
2684
      processMap.put("getInventorySnapshot", new getInventorySnapshot());
2626
      processMap.put("clearItemAvailabilityCache", new clearItemAvailabilityCache());
2685
      processMap.put("clearItemAvailabilityCache", new clearItemAvailabilityCache());
2627
      processMap.put("updateVendorString", new updateVendorString());
2686
      processMap.put("updateVendorString", new updateVendorString());
2628
      processMap.put("clearItemAvailabilityCacheForItem", new clearItemAvailabilityCacheForItem());
2687
      processMap.put("clearItemAvailabilityCacheForItem", new clearItemAvailabilityCacheForItem());
2629
      processMap.put("getOurWarehouseIdForVendor", new getOurWarehouseIdForVendor());
2688
      processMap.put("getOurWarehouseIdForVendor", new getOurWarehouseIdForVendor());
-
 
2689
      processMap.put("getItemAvailabilitiesAtOurWarehouses", new getItemAvailabilitiesAtOurWarehouses());
2630
      return processMap;
2690
      return processMap;
2631
    }
2691
    }
2632
 
2692
 
2633
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
2693
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
2634
      public addWarehouse() {
2694
      public addWarehouse() {
Line 3315... Line 3375...
3315
        result.setSuccessIsSet(true);
3375
        result.setSuccessIsSet(true);
3316
        return result;
3376
        return result;
3317
      }
3377
      }
3318
    }
3378
    }
3319
 
3379
 
-
 
3380
    private static class getItemAvailabilitiesAtOurWarehouses<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getItemAvailabilitiesAtOurWarehouses_args> {
-
 
3381
      public getItemAvailabilitiesAtOurWarehouses() {
-
 
3382
        super("getItemAvailabilitiesAtOurWarehouses");
-
 
3383
      }
-
 
3384
 
-
 
3385
      protected getItemAvailabilitiesAtOurWarehouses_args getEmptyArgsInstance() {
-
 
3386
        return new getItemAvailabilitiesAtOurWarehouses_args();
-
 
3387
      }
-
 
3388
 
-
 
3389
      protected getItemAvailabilitiesAtOurWarehouses_result getResult(I iface, getItemAvailabilitiesAtOurWarehouses_args args) throws org.apache.thrift.TException {
-
 
3390
        getItemAvailabilitiesAtOurWarehouses_result result = new getItemAvailabilitiesAtOurWarehouses_result();
-
 
3391
        result.success = iface.getItemAvailabilitiesAtOurWarehouses(args.item_ids);
-
 
3392
        return result;
-
 
3393
      }
-
 
3394
    }
-
 
3395
 
3320
  }
3396
  }
3321
 
3397
 
3322
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
3398
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
3323
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
3399
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
3324
 
3400
 
Line 28830... Line 28906...
28830
      first = false;
28906
      first = false;
28831
      sb.append(")");
28907
      sb.append(")");
28832
      return sb.toString();
28908
      return sb.toString();
28833
    }
28909
    }
28834
 
28910
 
-
 
28911
    public void validate() throws org.apache.thrift.TException {
-
 
28912
      // check for required fields
-
 
28913
    }
-
 
28914
 
-
 
28915
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
28916
      try {
-
 
28917
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
28918
      } catch (org.apache.thrift.TException te) {
-
 
28919
        throw new java.io.IOException(te);
-
 
28920
      }
-
 
28921
    }
-
 
28922
 
-
 
28923
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
28924
      try {
-
 
28925
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
28926
      } catch (org.apache.thrift.TException te) {
-
 
28927
        throw new java.io.IOException(te);
-
 
28928
      }
-
 
28929
    }
-
 
28930
 
-
 
28931
  }
-
 
28932
 
-
 
28933
  public static class getItemAvailabilitiesAtOurWarehouses_args implements org.apache.thrift.TBase<getItemAvailabilitiesAtOurWarehouses_args, getItemAvailabilitiesAtOurWarehouses_args._Fields>, java.io.Serializable, Cloneable   {
-
 
28934
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailabilitiesAtOurWarehouses_args");
-
 
28935
 
-
 
28936
    private static final org.apache.thrift.protocol.TField ITEM_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("item_ids", org.apache.thrift.protocol.TType.LIST, (short)1);
-
 
28937
 
-
 
28938
    private List<Long> item_ids; // required
-
 
28939
 
-
 
28940
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
28941
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
28942
      ITEM_IDS((short)1, "item_ids");
-
 
28943
 
-
 
28944
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
28945
 
-
 
28946
      static {
-
 
28947
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
28948
          byName.put(field.getFieldName(), field);
-
 
28949
        }
-
 
28950
      }
-
 
28951
 
-
 
28952
      /**
-
 
28953
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
28954
       */
-
 
28955
      public static _Fields findByThriftId(int fieldId) {
-
 
28956
        switch(fieldId) {
-
 
28957
          case 1: // ITEM_IDS
-
 
28958
            return ITEM_IDS;
-
 
28959
          default:
-
 
28960
            return null;
-
 
28961
        }
-
 
28962
      }
-
 
28963
 
-
 
28964
      /**
-
 
28965
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
28966
       * if it is not found.
-
 
28967
       */
-
 
28968
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
28969
        _Fields fields = findByThriftId(fieldId);
-
 
28970
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
28971
        return fields;
-
 
28972
      }
-
 
28973
 
-
 
28974
      /**
-
 
28975
       * Find the _Fields constant that matches name, or null if its not found.
-
 
28976
       */
-
 
28977
      public static _Fields findByName(String name) {
-
 
28978
        return byName.get(name);
-
 
28979
      }
-
 
28980
 
-
 
28981
      private final short _thriftId;
-
 
28982
      private final String _fieldName;
-
 
28983
 
-
 
28984
      _Fields(short thriftId, String fieldName) {
-
 
28985
        _thriftId = thriftId;
-
 
28986
        _fieldName = fieldName;
-
 
28987
      }
-
 
28988
 
-
 
28989
      public short getThriftFieldId() {
-
 
28990
        return _thriftId;
-
 
28991
      }
-
 
28992
 
-
 
28993
      public String getFieldName() {
-
 
28994
        return _fieldName;
-
 
28995
      }
-
 
28996
    }
-
 
28997
 
-
 
28998
    // isset id assignments
-
 
28999
 
-
 
29000
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
29001
    static {
-
 
29002
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
29003
      tmpMap.put(_Fields.ITEM_IDS, new org.apache.thrift.meta_data.FieldMetaData("item_ids", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
29004
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
29005
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
29006
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
29007
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailabilitiesAtOurWarehouses_args.class, metaDataMap);
-
 
29008
    }
-
 
29009
 
-
 
29010
    public getItemAvailabilitiesAtOurWarehouses_args() {
-
 
29011
    }
-
 
29012
 
-
 
29013
    public getItemAvailabilitiesAtOurWarehouses_args(
-
 
29014
      List<Long> item_ids)
-
 
29015
    {
-
 
29016
      this();
-
 
29017
      this.item_ids = item_ids;
-
 
29018
    }
-
 
29019
 
-
 
29020
    /**
-
 
29021
     * Performs a deep copy on <i>other</i>.
-
 
29022
     */
-
 
29023
    public getItemAvailabilitiesAtOurWarehouses_args(getItemAvailabilitiesAtOurWarehouses_args other) {
-
 
29024
      if (other.isSetItem_ids()) {
-
 
29025
        List<Long> __this__item_ids = new ArrayList<Long>();
-
 
29026
        for (Long other_element : other.item_ids) {
-
 
29027
          __this__item_ids.add(other_element);
-
 
29028
        }
-
 
29029
        this.item_ids = __this__item_ids;
-
 
29030
      }
-
 
29031
    }
-
 
29032
 
-
 
29033
    public getItemAvailabilitiesAtOurWarehouses_args deepCopy() {
-
 
29034
      return new getItemAvailabilitiesAtOurWarehouses_args(this);
-
 
29035
    }
-
 
29036
 
-
 
29037
    @Override
-
 
29038
    public void clear() {
-
 
29039
      this.item_ids = null;
-
 
29040
    }
-
 
29041
 
-
 
29042
    public int getItem_idsSize() {
-
 
29043
      return (this.item_ids == null) ? 0 : this.item_ids.size();
-
 
29044
    }
-
 
29045
 
-
 
29046
    public java.util.Iterator<Long> getItem_idsIterator() {
-
 
29047
      return (this.item_ids == null) ? null : this.item_ids.iterator();
-
 
29048
    }
-
 
29049
 
-
 
29050
    public void addToItem_ids(long elem) {
-
 
29051
      if (this.item_ids == null) {
-
 
29052
        this.item_ids = new ArrayList<Long>();
-
 
29053
      }
-
 
29054
      this.item_ids.add(elem);
-
 
29055
    }
-
 
29056
 
-
 
29057
    public List<Long> getItem_ids() {
-
 
29058
      return this.item_ids;
-
 
29059
    }
-
 
29060
 
-
 
29061
    public void setItem_ids(List<Long> item_ids) {
-
 
29062
      this.item_ids = item_ids;
-
 
29063
    }
-
 
29064
 
-
 
29065
    public void unsetItem_ids() {
-
 
29066
      this.item_ids = null;
-
 
29067
    }
-
 
29068
 
-
 
29069
    /** Returns true if field item_ids is set (has been assigned a value) and false otherwise */
-
 
29070
    public boolean isSetItem_ids() {
-
 
29071
      return this.item_ids != null;
-
 
29072
    }
-
 
29073
 
-
 
29074
    public void setItem_idsIsSet(boolean value) {
-
 
29075
      if (!value) {
-
 
29076
        this.item_ids = null;
-
 
29077
      }
-
 
29078
    }
-
 
29079
 
-
 
29080
    public void setFieldValue(_Fields field, Object value) {
-
 
29081
      switch (field) {
-
 
29082
      case ITEM_IDS:
-
 
29083
        if (value == null) {
-
 
29084
          unsetItem_ids();
-
 
29085
        } else {
-
 
29086
          setItem_ids((List<Long>)value);
-
 
29087
        }
-
 
29088
        break;
-
 
29089
 
-
 
29090
      }
-
 
29091
    }
-
 
29092
 
-
 
29093
    public Object getFieldValue(_Fields field) {
-
 
29094
      switch (field) {
-
 
29095
      case ITEM_IDS:
-
 
29096
        return getItem_ids();
-
 
29097
 
-
 
29098
      }
-
 
29099
      throw new IllegalStateException();
-
 
29100
    }
-
 
29101
 
-
 
29102
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
29103
    public boolean isSet(_Fields field) {
-
 
29104
      if (field == null) {
-
 
29105
        throw new IllegalArgumentException();
-
 
29106
      }
-
 
29107
 
-
 
29108
      switch (field) {
-
 
29109
      case ITEM_IDS:
-
 
29110
        return isSetItem_ids();
-
 
29111
      }
-
 
29112
      throw new IllegalStateException();
-
 
29113
    }
-
 
29114
 
-
 
29115
    @Override
-
 
29116
    public boolean equals(Object that) {
-
 
29117
      if (that == null)
-
 
29118
        return false;
-
 
29119
      if (that instanceof getItemAvailabilitiesAtOurWarehouses_args)
-
 
29120
        return this.equals((getItemAvailabilitiesAtOurWarehouses_args)that);
-
 
29121
      return false;
-
 
29122
    }
-
 
29123
 
-
 
29124
    public boolean equals(getItemAvailabilitiesAtOurWarehouses_args that) {
-
 
29125
      if (that == null)
-
 
29126
        return false;
-
 
29127
 
-
 
29128
      boolean this_present_item_ids = true && this.isSetItem_ids();
-
 
29129
      boolean that_present_item_ids = true && that.isSetItem_ids();
-
 
29130
      if (this_present_item_ids || that_present_item_ids) {
-
 
29131
        if (!(this_present_item_ids && that_present_item_ids))
-
 
29132
          return false;
-
 
29133
        if (!this.item_ids.equals(that.item_ids))
-
 
29134
          return false;
-
 
29135
      }
-
 
29136
 
-
 
29137
      return true;
-
 
29138
    }
-
 
29139
 
-
 
29140
    @Override
-
 
29141
    public int hashCode() {
-
 
29142
      return 0;
-
 
29143
    }
-
 
29144
 
-
 
29145
    public int compareTo(getItemAvailabilitiesAtOurWarehouses_args other) {
-
 
29146
      if (!getClass().equals(other.getClass())) {
-
 
29147
        return getClass().getName().compareTo(other.getClass().getName());
-
 
29148
      }
-
 
29149
 
-
 
29150
      int lastComparison = 0;
-
 
29151
      getItemAvailabilitiesAtOurWarehouses_args typedOther = (getItemAvailabilitiesAtOurWarehouses_args)other;
-
 
29152
 
-
 
29153
      lastComparison = Boolean.valueOf(isSetItem_ids()).compareTo(typedOther.isSetItem_ids());
-
 
29154
      if (lastComparison != 0) {
-
 
29155
        return lastComparison;
-
 
29156
      }
-
 
29157
      if (isSetItem_ids()) {
-
 
29158
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_ids, typedOther.item_ids);
-
 
29159
        if (lastComparison != 0) {
-
 
29160
          return lastComparison;
-
 
29161
        }
-
 
29162
      }
-
 
29163
      return 0;
-
 
29164
    }
-
 
29165
 
-
 
29166
    public _Fields fieldForId(int fieldId) {
-
 
29167
      return _Fields.findByThriftId(fieldId);
-
 
29168
    }
-
 
29169
 
-
 
29170
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
29171
      org.apache.thrift.protocol.TField field;
-
 
29172
      iprot.readStructBegin();
-
 
29173
      while (true)
-
 
29174
      {
-
 
29175
        field = iprot.readFieldBegin();
-
 
29176
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
29177
          break;
-
 
29178
        }
-
 
29179
        switch (field.id) {
-
 
29180
          case 1: // ITEM_IDS
-
 
29181
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
29182
              {
-
 
29183
                org.apache.thrift.protocol.TList _list79 = iprot.readListBegin();
-
 
29184
                this.item_ids = new ArrayList<Long>(_list79.size);
-
 
29185
                for (int _i80 = 0; _i80 < _list79.size; ++_i80)
-
 
29186
                {
-
 
29187
                  long _elem81; // required
-
 
29188
                  _elem81 = iprot.readI64();
-
 
29189
                  this.item_ids.add(_elem81);
-
 
29190
                }
-
 
29191
                iprot.readListEnd();
-
 
29192
              }
-
 
29193
            } else { 
-
 
29194
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
29195
            }
-
 
29196
            break;
-
 
29197
          default:
-
 
29198
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
29199
        }
-
 
29200
        iprot.readFieldEnd();
-
 
29201
      }
-
 
29202
      iprot.readStructEnd();
-
 
29203
      validate();
-
 
29204
    }
-
 
29205
 
-
 
29206
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
29207
      validate();
-
 
29208
 
-
 
29209
      oprot.writeStructBegin(STRUCT_DESC);
-
 
29210
      if (this.item_ids != null) {
-
 
29211
        oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);
-
 
29212
        {
-
 
29213
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.item_ids.size()));
-
 
29214
          for (long _iter82 : this.item_ids)
-
 
29215
          {
-
 
29216
            oprot.writeI64(_iter82);
-
 
29217
          }
-
 
29218
          oprot.writeListEnd();
-
 
29219
        }
-
 
29220
        oprot.writeFieldEnd();
-
 
29221
      }
-
 
29222
      oprot.writeFieldStop();
-
 
29223
      oprot.writeStructEnd();
-
 
29224
    }
-
 
29225
 
-
 
29226
    @Override
-
 
29227
    public String toString() {
-
 
29228
      StringBuilder sb = new StringBuilder("getItemAvailabilitiesAtOurWarehouses_args(");
-
 
29229
      boolean first = true;
-
 
29230
 
-
 
29231
      sb.append("item_ids:");
-
 
29232
      if (this.item_ids == null) {
-
 
29233
        sb.append("null");
-
 
29234
      } else {
-
 
29235
        sb.append(this.item_ids);
-
 
29236
      }
-
 
29237
      first = false;
-
 
29238
      sb.append(")");
-
 
29239
      return sb.toString();
-
 
29240
    }
-
 
29241
 
-
 
29242
    public void validate() throws org.apache.thrift.TException {
-
 
29243
      // check for required fields
-
 
29244
    }
-
 
29245
 
-
 
29246
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
29247
      try {
-
 
29248
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
29249
      } catch (org.apache.thrift.TException te) {
-
 
29250
        throw new java.io.IOException(te);
-
 
29251
      }
-
 
29252
    }
-
 
29253
 
-
 
29254
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
29255
      try {
-
 
29256
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
29257
      } catch (org.apache.thrift.TException te) {
-
 
29258
        throw new java.io.IOException(te);
-
 
29259
      }
-
 
29260
    }
-
 
29261
 
-
 
29262
  }
-
 
29263
 
-
 
29264
  public static class getItemAvailabilitiesAtOurWarehouses_result implements org.apache.thrift.TBase<getItemAvailabilitiesAtOurWarehouses_result, getItemAvailabilitiesAtOurWarehouses_result._Fields>, java.io.Serializable, Cloneable   {
-
 
29265
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getItemAvailabilitiesAtOurWarehouses_result");
-
 
29266
 
-
 
29267
    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);
-
 
29268
 
-
 
29269
    private Map<Long,Long> success; // required
-
 
29270
 
-
 
29271
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
29272
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
29273
      SUCCESS((short)0, "success");
-
 
29274
 
-
 
29275
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
29276
 
-
 
29277
      static {
-
 
29278
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
29279
          byName.put(field.getFieldName(), field);
-
 
29280
        }
-
 
29281
      }
-
 
29282
 
-
 
29283
      /**
-
 
29284
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
29285
       */
-
 
29286
      public static _Fields findByThriftId(int fieldId) {
-
 
29287
        switch(fieldId) {
-
 
29288
          case 0: // SUCCESS
-
 
29289
            return SUCCESS;
-
 
29290
          default:
-
 
29291
            return null;
-
 
29292
        }
-
 
29293
      }
-
 
29294
 
-
 
29295
      /**
-
 
29296
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
29297
       * if it is not found.
-
 
29298
       */
-
 
29299
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
29300
        _Fields fields = findByThriftId(fieldId);
-
 
29301
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
29302
        return fields;
-
 
29303
      }
-
 
29304
 
-
 
29305
      /**
-
 
29306
       * Find the _Fields constant that matches name, or null if its not found.
-
 
29307
       */
-
 
29308
      public static _Fields findByName(String name) {
-
 
29309
        return byName.get(name);
-
 
29310
      }
-
 
29311
 
-
 
29312
      private final short _thriftId;
-
 
29313
      private final String _fieldName;
-
 
29314
 
-
 
29315
      _Fields(short thriftId, String fieldName) {
-
 
29316
        _thriftId = thriftId;
-
 
29317
        _fieldName = fieldName;
-
 
29318
      }
-
 
29319
 
-
 
29320
      public short getThriftFieldId() {
-
 
29321
        return _thriftId;
-
 
29322
      }
-
 
29323
 
-
 
29324
      public String getFieldName() {
-
 
29325
        return _fieldName;
-
 
29326
      }
-
 
29327
    }
-
 
29328
 
-
 
29329
    // isset id assignments
-
 
29330
 
-
 
29331
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
29332
    static {
-
 
29333
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
29334
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
29335
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
29336
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64), 
-
 
29337
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
29338
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
29339
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getItemAvailabilitiesAtOurWarehouses_result.class, metaDataMap);
-
 
29340
    }
-
 
29341
 
-
 
29342
    public getItemAvailabilitiesAtOurWarehouses_result() {
-
 
29343
    }
-
 
29344
 
-
 
29345
    public getItemAvailabilitiesAtOurWarehouses_result(
-
 
29346
      Map<Long,Long> success)
-
 
29347
    {
-
 
29348
      this();
-
 
29349
      this.success = success;
-
 
29350
    }
-
 
29351
 
-
 
29352
    /**
-
 
29353
     * Performs a deep copy on <i>other</i>.
-
 
29354
     */
-
 
29355
    public getItemAvailabilitiesAtOurWarehouses_result(getItemAvailabilitiesAtOurWarehouses_result other) {
-
 
29356
      if (other.isSetSuccess()) {
-
 
29357
        Map<Long,Long> __this__success = new HashMap<Long,Long>();
-
 
29358
        for (Map.Entry<Long, Long> other_element : other.success.entrySet()) {
-
 
29359
 
-
 
29360
          Long other_element_key = other_element.getKey();
-
 
29361
          Long other_element_value = other_element.getValue();
-
 
29362
 
-
 
29363
          Long __this__success_copy_key = other_element_key;
-
 
29364
 
-
 
29365
          Long __this__success_copy_value = other_element_value;
-
 
29366
 
-
 
29367
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
-
 
29368
        }
-
 
29369
        this.success = __this__success;
-
 
29370
      }
-
 
29371
    }
-
 
29372
 
-
 
29373
    public getItemAvailabilitiesAtOurWarehouses_result deepCopy() {
-
 
29374
      return new getItemAvailabilitiesAtOurWarehouses_result(this);
-
 
29375
    }
-
 
29376
 
-
 
29377
    @Override
-
 
29378
    public void clear() {
-
 
29379
      this.success = null;
-
 
29380
    }
-
 
29381
 
-
 
29382
    public int getSuccessSize() {
-
 
29383
      return (this.success == null) ? 0 : this.success.size();
-
 
29384
    }
-
 
29385
 
-
 
29386
    public void putToSuccess(long key, long val) {
-
 
29387
      if (this.success == null) {
-
 
29388
        this.success = new HashMap<Long,Long>();
-
 
29389
      }
-
 
29390
      this.success.put(key, val);
-
 
29391
    }
-
 
29392
 
-
 
29393
    public Map<Long,Long> getSuccess() {
-
 
29394
      return this.success;
-
 
29395
    }
-
 
29396
 
-
 
29397
    public void setSuccess(Map<Long,Long> success) {
-
 
29398
      this.success = success;
-
 
29399
    }
-
 
29400
 
-
 
29401
    public void unsetSuccess() {
-
 
29402
      this.success = null;
-
 
29403
    }
-
 
29404
 
-
 
29405
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
29406
    public boolean isSetSuccess() {
-
 
29407
      return this.success != null;
-
 
29408
    }
-
 
29409
 
-
 
29410
    public void setSuccessIsSet(boolean value) {
-
 
29411
      if (!value) {
-
 
29412
        this.success = null;
-
 
29413
      }
-
 
29414
    }
-
 
29415
 
-
 
29416
    public void setFieldValue(_Fields field, Object value) {
-
 
29417
      switch (field) {
-
 
29418
      case SUCCESS:
-
 
29419
        if (value == null) {
-
 
29420
          unsetSuccess();
-
 
29421
        } else {
-
 
29422
          setSuccess((Map<Long,Long>)value);
-
 
29423
        }
-
 
29424
        break;
-
 
29425
 
-
 
29426
      }
-
 
29427
    }
-
 
29428
 
-
 
29429
    public Object getFieldValue(_Fields field) {
-
 
29430
      switch (field) {
-
 
29431
      case SUCCESS:
-
 
29432
        return getSuccess();
-
 
29433
 
-
 
29434
      }
-
 
29435
      throw new IllegalStateException();
-
 
29436
    }
-
 
29437
 
-
 
29438
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
29439
    public boolean isSet(_Fields field) {
-
 
29440
      if (field == null) {
-
 
29441
        throw new IllegalArgumentException();
-
 
29442
      }
-
 
29443
 
-
 
29444
      switch (field) {
-
 
29445
      case SUCCESS:
-
 
29446
        return isSetSuccess();
-
 
29447
      }
-
 
29448
      throw new IllegalStateException();
-
 
29449
    }
-
 
29450
 
-
 
29451
    @Override
-
 
29452
    public boolean equals(Object that) {
-
 
29453
      if (that == null)
-
 
29454
        return false;
-
 
29455
      if (that instanceof getItemAvailabilitiesAtOurWarehouses_result)
-
 
29456
        return this.equals((getItemAvailabilitiesAtOurWarehouses_result)that);
-
 
29457
      return false;
-
 
29458
    }
-
 
29459
 
-
 
29460
    public boolean equals(getItemAvailabilitiesAtOurWarehouses_result that) {
-
 
29461
      if (that == null)
-
 
29462
        return false;
-
 
29463
 
-
 
29464
      boolean this_present_success = true && this.isSetSuccess();
-
 
29465
      boolean that_present_success = true && that.isSetSuccess();
-
 
29466
      if (this_present_success || that_present_success) {
-
 
29467
        if (!(this_present_success && that_present_success))
-
 
29468
          return false;
-
 
29469
        if (!this.success.equals(that.success))
-
 
29470
          return false;
-
 
29471
      }
-
 
29472
 
-
 
29473
      return true;
-
 
29474
    }
-
 
29475
 
-
 
29476
    @Override
-
 
29477
    public int hashCode() {
-
 
29478
      return 0;
-
 
29479
    }
-
 
29480
 
-
 
29481
    public int compareTo(getItemAvailabilitiesAtOurWarehouses_result other) {
-
 
29482
      if (!getClass().equals(other.getClass())) {
-
 
29483
        return getClass().getName().compareTo(other.getClass().getName());
-
 
29484
      }
-
 
29485
 
-
 
29486
      int lastComparison = 0;
-
 
29487
      getItemAvailabilitiesAtOurWarehouses_result typedOther = (getItemAvailabilitiesAtOurWarehouses_result)other;
-
 
29488
 
-
 
29489
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
29490
      if (lastComparison != 0) {
-
 
29491
        return lastComparison;
-
 
29492
      }
-
 
29493
      if (isSetSuccess()) {
-
 
29494
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
29495
        if (lastComparison != 0) {
-
 
29496
          return lastComparison;
-
 
29497
        }
-
 
29498
      }
-
 
29499
      return 0;
-
 
29500
    }
-
 
29501
 
-
 
29502
    public _Fields fieldForId(int fieldId) {
-
 
29503
      return _Fields.findByThriftId(fieldId);
-
 
29504
    }
-
 
29505
 
-
 
29506
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
29507
      org.apache.thrift.protocol.TField field;
-
 
29508
      iprot.readStructBegin();
-
 
29509
      while (true)
-
 
29510
      {
-
 
29511
        field = iprot.readFieldBegin();
-
 
29512
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
29513
          break;
-
 
29514
        }
-
 
29515
        switch (field.id) {
-
 
29516
          case 0: // SUCCESS
-
 
29517
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
-
 
29518
              {
-
 
29519
                org.apache.thrift.protocol.TMap _map83 = iprot.readMapBegin();
-
 
29520
                this.success = new HashMap<Long,Long>(2*_map83.size);
-
 
29521
                for (int _i84 = 0; _i84 < _map83.size; ++_i84)
-
 
29522
                {
-
 
29523
                  long _key85; // required
-
 
29524
                  long _val86; // required
-
 
29525
                  _key85 = iprot.readI64();
-
 
29526
                  _val86 = iprot.readI64();
-
 
29527
                  this.success.put(_key85, _val86);
-
 
29528
                }
-
 
29529
                iprot.readMapEnd();
-
 
29530
              }
-
 
29531
            } else { 
-
 
29532
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
29533
            }
-
 
29534
            break;
-
 
29535
          default:
-
 
29536
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
29537
        }
-
 
29538
        iprot.readFieldEnd();
-
 
29539
      }
-
 
29540
      iprot.readStructEnd();
-
 
29541
      validate();
-
 
29542
    }
-
 
29543
 
-
 
29544
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
29545
      oprot.writeStructBegin(STRUCT_DESC);
-
 
29546
 
-
 
29547
      if (this.isSetSuccess()) {
-
 
29548
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
29549
        {
-
 
29550
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.I64, this.success.size()));
-
 
29551
          for (Map.Entry<Long, Long> _iter87 : this.success.entrySet())
-
 
29552
          {
-
 
29553
            oprot.writeI64(_iter87.getKey());
-
 
29554
            oprot.writeI64(_iter87.getValue());
-
 
29555
          }
-
 
29556
          oprot.writeMapEnd();
-
 
29557
        }
-
 
29558
        oprot.writeFieldEnd();
-
 
29559
      }
-
 
29560
      oprot.writeFieldStop();
-
 
29561
      oprot.writeStructEnd();
-
 
29562
    }
-
 
29563
 
-
 
29564
    @Override
-
 
29565
    public String toString() {
-
 
29566
      StringBuilder sb = new StringBuilder("getItemAvailabilitiesAtOurWarehouses_result(");
-
 
29567
      boolean first = true;
-
 
29568
 
-
 
29569
      sb.append("success:");
-
 
29570
      if (this.success == null) {
-
 
29571
        sb.append("null");
-
 
29572
      } else {
-
 
29573
        sb.append(this.success);
-
 
29574
      }
-
 
29575
      first = false;
-
 
29576
      sb.append(")");
-
 
29577
      return sb.toString();
-
 
29578
    }
-
 
29579
 
28835
    public void validate() throws org.apache.thrift.TException {
29580
    public void validate() throws org.apache.thrift.TException {
28836
      // check for required fields
29581
      // check for required fields
28837
    }
29582
    }
28838
 
29583
 
28839
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29584
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {