Subversion Repositories SmartDukaan

Rev

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

Rev 12783 Rev 17990
Line 379... Line 379...
379
 
379
 
380
    public double getWanNlcForSource(long item_id, long source) throws org.apache.thrift.TException;
380
    public double getWanNlcForSource(long item_id, long source) throws org.apache.thrift.TException;
381
 
381
 
382
    public List<AmazonFbaInventorySnapshot> getAllAvailableAmazonFbaItemInventory() throws org.apache.thrift.TException;
382
    public List<AmazonFbaInventorySnapshot> getAllAvailableAmazonFbaItemInventory() throws org.apache.thrift.TException;
383
 
383
 
-
 
384
    public boolean updateItemAvailabilityForItemIds(List<Long> itemIds) throws org.apache.thrift.TException;
-
 
385
 
384
  }
386
  }
385
 
387
 
386
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
388
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
387
 
389
 
388
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
390
    public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
Line 543... Line 545...
543
 
545
 
544
    public void getWanNlcForSource(long item_id, long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWanNlcForSource_call> resultHandler) throws org.apache.thrift.TException;
546
    public void getWanNlcForSource(long item_id, long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWanNlcForSource_call> resultHandler) throws org.apache.thrift.TException;
545
 
547
 
546
    public void getAllAvailableAmazonFbaItemInventory(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllAvailableAmazonFbaItemInventory_call> resultHandler) throws org.apache.thrift.TException;
548
    public void getAllAvailableAmazonFbaItemInventory(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllAvailableAmazonFbaItemInventory_call> resultHandler) throws org.apache.thrift.TException;
547
 
549
 
-
 
550
    public void updateItemAvailabilityForItemIds(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateItemAvailabilityForItemIds_call> resultHandler) throws org.apache.thrift.TException;
-
 
551
 
548
  }
552
  }
549
 
553
 
550
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
554
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
551
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
555
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
552
      public Factory() {}
556
      public Factory() {}
Line 2454... Line 2458...
2454
        return result.success;
2458
        return result.success;
2455
      }
2459
      }
2456
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllAvailableAmazonFbaItemInventory failed: unknown result");
2460
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllAvailableAmazonFbaItemInventory failed: unknown result");
2457
    }
2461
    }
2458
 
2462
 
-
 
2463
    public boolean updateItemAvailabilityForItemIds(List<Long> itemIds) throws org.apache.thrift.TException
-
 
2464
    {
-
 
2465
      send_updateItemAvailabilityForItemIds(itemIds);
-
 
2466
      return recv_updateItemAvailabilityForItemIds();
-
 
2467
    }
-
 
2468
 
-
 
2469
    public void send_updateItemAvailabilityForItemIds(List<Long> itemIds) throws org.apache.thrift.TException
-
 
2470
    {
-
 
2471
      updateItemAvailabilityForItemIds_args args = new updateItemAvailabilityForItemIds_args();
-
 
2472
      args.setItemIds(itemIds);
-
 
2473
      sendBase("updateItemAvailabilityForItemIds", args);
-
 
2474
    }
-
 
2475
 
-
 
2476
    public boolean recv_updateItemAvailabilityForItemIds() throws org.apache.thrift.TException
-
 
2477
    {
-
 
2478
      updateItemAvailabilityForItemIds_result result = new updateItemAvailabilityForItemIds_result();
-
 
2479
      receiveBase(result, "updateItemAvailabilityForItemIds");
-
 
2480
      if (result.isSetSuccess()) {
-
 
2481
        return result.success;
-
 
2482
      }
-
 
2483
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateItemAvailabilityForItemIds failed: unknown result");
-
 
2484
    }
-
 
2485
 
2459
  }
2486
  }
2460
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2487
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
2461
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2488
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
2462
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2489
      private org.apache.thrift.async.TAsyncClientManager clientManager;
2463
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
2490
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 5179... Line 5206...
5179
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5206
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
5180
        return (new Client(prot)).recv_getAllAvailableAmazonFbaItemInventory();
5207
        return (new Client(prot)).recv_getAllAvailableAmazonFbaItemInventory();
5181
      }
5208
      }
5182
    }
5209
    }
5183
 
5210
 
-
 
5211
    public void updateItemAvailabilityForItemIds(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<updateItemAvailabilityForItemIds_call> resultHandler) throws org.apache.thrift.TException {
-
 
5212
      checkReady();
-
 
5213
      updateItemAvailabilityForItemIds_call method_call = new updateItemAvailabilityForItemIds_call(itemIds, resultHandler, this, ___protocolFactory, ___transport);
-
 
5214
      this.___currentMethod = method_call;
-
 
5215
      ___manager.call(method_call);
-
 
5216
    }
-
 
5217
 
-
 
5218
    public static class updateItemAvailabilityForItemIds_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
5219
      private List<Long> itemIds;
-
 
5220
      public updateItemAvailabilityForItemIds_call(List<Long> itemIds, org.apache.thrift.async.AsyncMethodCallback<updateItemAvailabilityForItemIds_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 {
-
 
5221
        super(client, protocolFactory, transport, resultHandler, false);
-
 
5222
        this.itemIds = itemIds;
-
 
5223
      }
-
 
5224
 
-
 
5225
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
5226
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateItemAvailabilityForItemIds", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
5227
        updateItemAvailabilityForItemIds_args args = new updateItemAvailabilityForItemIds_args();
-
 
5228
        args.setItemIds(itemIds);
-
 
5229
        args.write(prot);
-
 
5230
        prot.writeMessageEnd();
-
 
5231
      }
-
 
5232
 
-
 
5233
      public boolean getResult() throws org.apache.thrift.TException {
-
 
5234
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
5235
          throw new IllegalStateException("Method call not finished!");
-
 
5236
        }
-
 
5237
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
5238
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
5239
        return (new Client(prot)).recv_updateItemAvailabilityForItemIds();
-
 
5240
      }
-
 
5241
    }
-
 
5242
 
5184
  }
5243
  }
5185
 
5244
 
5186
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5245
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
5187
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5246
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
5188
    public Processor(I iface) {
5247
    public Processor(I iface) {
Line 5272... Line 5331...
5272
      processMap.put("getStateMaster", new getStateMaster());
5331
      processMap.put("getStateMaster", new getStateMaster());
5273
      processMap.put("updateSnapdealStockAtEOD", new updateSnapdealStockAtEOD());
5332
      processMap.put("updateSnapdealStockAtEOD", new updateSnapdealStockAtEOD());
5274
      processMap.put("updateFlipkartStockAtEOD", new updateFlipkartStockAtEOD());
5333
      processMap.put("updateFlipkartStockAtEOD", new updateFlipkartStockAtEOD());
5275
      processMap.put("getWanNlcForSource", new getWanNlcForSource());
5334
      processMap.put("getWanNlcForSource", new getWanNlcForSource());
5276
      processMap.put("getAllAvailableAmazonFbaItemInventory", new getAllAvailableAmazonFbaItemInventory());
5335
      processMap.put("getAllAvailableAmazonFbaItemInventory", new getAllAvailableAmazonFbaItemInventory());
-
 
5336
      processMap.put("updateItemAvailabilityForItemIds", new updateItemAvailabilityForItemIds());
5277
      return processMap;
5337
      return processMap;
5278
    }
5338
    }
5279
 
5339
 
5280
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
5340
    private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
5281
      public addWarehouse() {
5341
      public addWarehouse() {
Line 6665... Line 6725...
6665
        result.success = iface.getAllAvailableAmazonFbaItemInventory();
6725
        result.success = iface.getAllAvailableAmazonFbaItemInventory();
6666
        return result;
6726
        return result;
6667
      }
6727
      }
6668
    }
6728
    }
6669
 
6729
 
-
 
6730
    private static class updateItemAvailabilityForItemIds<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateItemAvailabilityForItemIds_args> {
-
 
6731
      public updateItemAvailabilityForItemIds() {
-
 
6732
        super("updateItemAvailabilityForItemIds");
-
 
6733
      }
-
 
6734
 
-
 
6735
      protected updateItemAvailabilityForItemIds_args getEmptyArgsInstance() {
-
 
6736
        return new updateItemAvailabilityForItemIds_args();
-
 
6737
      }
-
 
6738
 
-
 
6739
      protected updateItemAvailabilityForItemIds_result getResult(I iface, updateItemAvailabilityForItemIds_args args) throws org.apache.thrift.TException {
-
 
6740
        updateItemAvailabilityForItemIds_result result = new updateItemAvailabilityForItemIds_result();
-
 
6741
        result.success = iface.updateItemAvailabilityForItemIds(args.itemIds);
-
 
6742
        result.setSuccessIsSet(true);
-
 
6743
        return result;
-
 
6744
      }
-
 
6745
    }
-
 
6746
 
6670
  }
6747
  }
6671
 
6748
 
6672
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
6749
  public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable   {
6673
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
6750
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
6674
 
6751
 
Line 59192... Line 59269...
59192
      first = false;
59269
      first = false;
59193
      sb.append(")");
59270
      sb.append(")");
59194
      return sb.toString();
59271
      return sb.toString();
59195
    }
59272
    }
59196
 
59273
 
-
 
59274
    public void validate() throws org.apache.thrift.TException {
-
 
59275
      // check for required fields
-
 
59276
    }
-
 
59277
 
-
 
59278
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
59279
      try {
-
 
59280
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
59281
      } catch (org.apache.thrift.TException te) {
-
 
59282
        throw new java.io.IOException(te);
-
 
59283
      }
-
 
59284
    }
-
 
59285
 
-
 
59286
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
59287
      try {
-
 
59288
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
59289
      } catch (org.apache.thrift.TException te) {
-
 
59290
        throw new java.io.IOException(te);
-
 
59291
      }
-
 
59292
    }
-
 
59293
 
-
 
59294
  }
-
 
59295
 
-
 
59296
  public static class updateItemAvailabilityForItemIds_args implements org.apache.thrift.TBase<updateItemAvailabilityForItemIds_args, updateItemAvailabilityForItemIds_args._Fields>, java.io.Serializable, Cloneable   {
-
 
59297
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateItemAvailabilityForItemIds_args");
-
 
59298
 
-
 
59299
    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);
-
 
59300
 
-
 
59301
    private List<Long> itemIds; // required
-
 
59302
 
-
 
59303
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
59304
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
59305
      ITEM_IDS((short)1, "itemIds");
-
 
59306
 
-
 
59307
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
59308
 
-
 
59309
      static {
-
 
59310
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
59311
          byName.put(field.getFieldName(), field);
-
 
59312
        }
-
 
59313
      }
-
 
59314
 
-
 
59315
      /**
-
 
59316
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
59317
       */
-
 
59318
      public static _Fields findByThriftId(int fieldId) {
-
 
59319
        switch(fieldId) {
-
 
59320
          case 1: // ITEM_IDS
-
 
59321
            return ITEM_IDS;
-
 
59322
          default:
-
 
59323
            return null;
-
 
59324
        }
-
 
59325
      }
-
 
59326
 
-
 
59327
      /**
-
 
59328
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
59329
       * if it is not found.
-
 
59330
       */
-
 
59331
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
59332
        _Fields fields = findByThriftId(fieldId);
-
 
59333
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
59334
        return fields;
-
 
59335
      }
-
 
59336
 
-
 
59337
      /**
-
 
59338
       * Find the _Fields constant that matches name, or null if its not found.
-
 
59339
       */
-
 
59340
      public static _Fields findByName(String name) {
-
 
59341
        return byName.get(name);
-
 
59342
      }
-
 
59343
 
-
 
59344
      private final short _thriftId;
-
 
59345
      private final String _fieldName;
-
 
59346
 
-
 
59347
      _Fields(short thriftId, String fieldName) {
-
 
59348
        _thriftId = thriftId;
-
 
59349
        _fieldName = fieldName;
-
 
59350
      }
-
 
59351
 
-
 
59352
      public short getThriftFieldId() {
-
 
59353
        return _thriftId;
-
 
59354
      }
-
 
59355
 
-
 
59356
      public String getFieldName() {
-
 
59357
        return _fieldName;
-
 
59358
      }
-
 
59359
    }
-
 
59360
 
-
 
59361
    // isset id assignments
-
 
59362
 
-
 
59363
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
59364
    static {
-
 
59365
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
59366
      tmpMap.put(_Fields.ITEM_IDS, new org.apache.thrift.meta_data.FieldMetaData("itemIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
59367
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
59368
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
59369
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
59370
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateItemAvailabilityForItemIds_args.class, metaDataMap);
-
 
59371
    }
-
 
59372
 
-
 
59373
    public updateItemAvailabilityForItemIds_args() {
-
 
59374
    }
-
 
59375
 
-
 
59376
    public updateItemAvailabilityForItemIds_args(
-
 
59377
      List<Long> itemIds)
-
 
59378
    {
-
 
59379
      this();
-
 
59380
      this.itemIds = itemIds;
-
 
59381
    }
-
 
59382
 
-
 
59383
    /**
-
 
59384
     * Performs a deep copy on <i>other</i>.
-
 
59385
     */
-
 
59386
    public updateItemAvailabilityForItemIds_args(updateItemAvailabilityForItemIds_args other) {
-
 
59387
      if (other.isSetItemIds()) {
-
 
59388
        List<Long> __this__itemIds = new ArrayList<Long>();
-
 
59389
        for (Long other_element : other.itemIds) {
-
 
59390
          __this__itemIds.add(other_element);
-
 
59391
        }
-
 
59392
        this.itemIds = __this__itemIds;
-
 
59393
      }
-
 
59394
    }
-
 
59395
 
-
 
59396
    public updateItemAvailabilityForItemIds_args deepCopy() {
-
 
59397
      return new updateItemAvailabilityForItemIds_args(this);
-
 
59398
    }
-
 
59399
 
-
 
59400
    @Override
-
 
59401
    public void clear() {
-
 
59402
      this.itemIds = null;
-
 
59403
    }
-
 
59404
 
-
 
59405
    public int getItemIdsSize() {
-
 
59406
      return (this.itemIds == null) ? 0 : this.itemIds.size();
-
 
59407
    }
-
 
59408
 
-
 
59409
    public java.util.Iterator<Long> getItemIdsIterator() {
-
 
59410
      return (this.itemIds == null) ? null : this.itemIds.iterator();
-
 
59411
    }
-
 
59412
 
-
 
59413
    public void addToItemIds(long elem) {
-
 
59414
      if (this.itemIds == null) {
-
 
59415
        this.itemIds = new ArrayList<Long>();
-
 
59416
      }
-
 
59417
      this.itemIds.add(elem);
-
 
59418
    }
-
 
59419
 
-
 
59420
    public List<Long> getItemIds() {
-
 
59421
      return this.itemIds;
-
 
59422
    }
-
 
59423
 
-
 
59424
    public void setItemIds(List<Long> itemIds) {
-
 
59425
      this.itemIds = itemIds;
-
 
59426
    }
-
 
59427
 
-
 
59428
    public void unsetItemIds() {
-
 
59429
      this.itemIds = null;
-
 
59430
    }
-
 
59431
 
-
 
59432
    /** Returns true if field itemIds is set (has been assigned a value) and false otherwise */
-
 
59433
    public boolean isSetItemIds() {
-
 
59434
      return this.itemIds != null;
-
 
59435
    }
-
 
59436
 
-
 
59437
    public void setItemIdsIsSet(boolean value) {
-
 
59438
      if (!value) {
-
 
59439
        this.itemIds = null;
-
 
59440
      }
-
 
59441
    }
-
 
59442
 
-
 
59443
    public void setFieldValue(_Fields field, Object value) {
-
 
59444
      switch (field) {
-
 
59445
      case ITEM_IDS:
-
 
59446
        if (value == null) {
-
 
59447
          unsetItemIds();
-
 
59448
        } else {
-
 
59449
          setItemIds((List<Long>)value);
-
 
59450
        }
-
 
59451
        break;
-
 
59452
 
-
 
59453
      }
-
 
59454
    }
-
 
59455
 
-
 
59456
    public Object getFieldValue(_Fields field) {
-
 
59457
      switch (field) {
-
 
59458
      case ITEM_IDS:
-
 
59459
        return getItemIds();
-
 
59460
 
-
 
59461
      }
-
 
59462
      throw new IllegalStateException();
-
 
59463
    }
-
 
59464
 
-
 
59465
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
59466
    public boolean isSet(_Fields field) {
-
 
59467
      if (field == null) {
-
 
59468
        throw new IllegalArgumentException();
-
 
59469
      }
-
 
59470
 
-
 
59471
      switch (field) {
-
 
59472
      case ITEM_IDS:
-
 
59473
        return isSetItemIds();
-
 
59474
      }
-
 
59475
      throw new IllegalStateException();
-
 
59476
    }
-
 
59477
 
-
 
59478
    @Override
-
 
59479
    public boolean equals(Object that) {
-
 
59480
      if (that == null)
-
 
59481
        return false;
-
 
59482
      if (that instanceof updateItemAvailabilityForItemIds_args)
-
 
59483
        return this.equals((updateItemAvailabilityForItemIds_args)that);
-
 
59484
      return false;
-
 
59485
    }
-
 
59486
 
-
 
59487
    public boolean equals(updateItemAvailabilityForItemIds_args that) {
-
 
59488
      if (that == null)
-
 
59489
        return false;
-
 
59490
 
-
 
59491
      boolean this_present_itemIds = true && this.isSetItemIds();
-
 
59492
      boolean that_present_itemIds = true && that.isSetItemIds();
-
 
59493
      if (this_present_itemIds || that_present_itemIds) {
-
 
59494
        if (!(this_present_itemIds && that_present_itemIds))
-
 
59495
          return false;
-
 
59496
        if (!this.itemIds.equals(that.itemIds))
-
 
59497
          return false;
-
 
59498
      }
-
 
59499
 
-
 
59500
      return true;
-
 
59501
    }
-
 
59502
 
-
 
59503
    @Override
-
 
59504
    public int hashCode() {
-
 
59505
      return 0;
-
 
59506
    }
-
 
59507
 
-
 
59508
    public int compareTo(updateItemAvailabilityForItemIds_args other) {
-
 
59509
      if (!getClass().equals(other.getClass())) {
-
 
59510
        return getClass().getName().compareTo(other.getClass().getName());
-
 
59511
      }
-
 
59512
 
-
 
59513
      int lastComparison = 0;
-
 
59514
      updateItemAvailabilityForItemIds_args typedOther = (updateItemAvailabilityForItemIds_args)other;
-
 
59515
 
-
 
59516
      lastComparison = Boolean.valueOf(isSetItemIds()).compareTo(typedOther.isSetItemIds());
-
 
59517
      if (lastComparison != 0) {
-
 
59518
        return lastComparison;
-
 
59519
      }
-
 
59520
      if (isSetItemIds()) {
-
 
59521
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemIds, typedOther.itemIds);
-
 
59522
        if (lastComparison != 0) {
-
 
59523
          return lastComparison;
-
 
59524
        }
-
 
59525
      }
-
 
59526
      return 0;
-
 
59527
    }
-
 
59528
 
-
 
59529
    public _Fields fieldForId(int fieldId) {
-
 
59530
      return _Fields.findByThriftId(fieldId);
-
 
59531
    }
-
 
59532
 
-
 
59533
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
59534
      org.apache.thrift.protocol.TField field;
-
 
59535
      iprot.readStructBegin();
-
 
59536
      while (true)
-
 
59537
      {
-
 
59538
        field = iprot.readFieldBegin();
-
 
59539
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
59540
          break;
-
 
59541
        }
-
 
59542
        switch (field.id) {
-
 
59543
          case 1: // ITEM_IDS
-
 
59544
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
59545
              {
-
 
59546
                org.apache.thrift.protocol.TList _list196 = iprot.readListBegin();
-
 
59547
                this.itemIds = new ArrayList<Long>(_list196.size);
-
 
59548
                for (int _i197 = 0; _i197 < _list196.size; ++_i197)
-
 
59549
                {
-
 
59550
                  long _elem198; // required
-
 
59551
                  _elem198 = iprot.readI64();
-
 
59552
                  this.itemIds.add(_elem198);
-
 
59553
                }
-
 
59554
                iprot.readListEnd();
-
 
59555
              }
-
 
59556
            } else { 
-
 
59557
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
59558
            }
-
 
59559
            break;
-
 
59560
          default:
-
 
59561
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
59562
        }
-
 
59563
        iprot.readFieldEnd();
-
 
59564
      }
-
 
59565
      iprot.readStructEnd();
-
 
59566
      validate();
-
 
59567
    }
-
 
59568
 
-
 
59569
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
59570
      validate();
-
 
59571
 
-
 
59572
      oprot.writeStructBegin(STRUCT_DESC);
-
 
59573
      if (this.itemIds != null) {
-
 
59574
        oprot.writeFieldBegin(ITEM_IDS_FIELD_DESC);
-
 
59575
        {
-
 
59576
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.itemIds.size()));
-
 
59577
          for (long _iter199 : this.itemIds)
-
 
59578
          {
-
 
59579
            oprot.writeI64(_iter199);
-
 
59580
          }
-
 
59581
          oprot.writeListEnd();
-
 
59582
        }
-
 
59583
        oprot.writeFieldEnd();
-
 
59584
      }
-
 
59585
      oprot.writeFieldStop();
-
 
59586
      oprot.writeStructEnd();
-
 
59587
    }
-
 
59588
 
-
 
59589
    @Override
-
 
59590
    public String toString() {
-
 
59591
      StringBuilder sb = new StringBuilder("updateItemAvailabilityForItemIds_args(");
-
 
59592
      boolean first = true;
-
 
59593
 
-
 
59594
      sb.append("itemIds:");
-
 
59595
      if (this.itemIds == null) {
-
 
59596
        sb.append("null");
-
 
59597
      } else {
-
 
59598
        sb.append(this.itemIds);
-
 
59599
      }
-
 
59600
      first = false;
-
 
59601
      sb.append(")");
-
 
59602
      return sb.toString();
-
 
59603
    }
-
 
59604
 
-
 
59605
    public void validate() throws org.apache.thrift.TException {
-
 
59606
      // check for required fields
-
 
59607
    }
-
 
59608
 
-
 
59609
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
59610
      try {
-
 
59611
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
59612
      } catch (org.apache.thrift.TException te) {
-
 
59613
        throw new java.io.IOException(te);
-
 
59614
      }
-
 
59615
    }
-
 
59616
 
-
 
59617
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
59618
      try {
-
 
59619
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
59620
      } catch (org.apache.thrift.TException te) {
-
 
59621
        throw new java.io.IOException(te);
-
 
59622
      }
-
 
59623
    }
-
 
59624
 
-
 
59625
  }
-
 
59626
 
-
 
59627
  public static class updateItemAvailabilityForItemIds_result implements org.apache.thrift.TBase<updateItemAvailabilityForItemIds_result, updateItemAvailabilityForItemIds_result._Fields>, java.io.Serializable, Cloneable   {
-
 
59628
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateItemAvailabilityForItemIds_result");
-
 
59629
 
-
 
59630
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
-
 
59631
 
-
 
59632
    private boolean success; // required
-
 
59633
 
-
 
59634
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
59635
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
59636
      SUCCESS((short)0, "success");
-
 
59637
 
-
 
59638
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
59639
 
-
 
59640
      static {
-
 
59641
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
59642
          byName.put(field.getFieldName(), field);
-
 
59643
        }
-
 
59644
      }
-
 
59645
 
-
 
59646
      /**
-
 
59647
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
59648
       */
-
 
59649
      public static _Fields findByThriftId(int fieldId) {
-
 
59650
        switch(fieldId) {
-
 
59651
          case 0: // SUCCESS
-
 
59652
            return SUCCESS;
-
 
59653
          default:
-
 
59654
            return null;
-
 
59655
        }
-
 
59656
      }
-
 
59657
 
-
 
59658
      /**
-
 
59659
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
59660
       * if it is not found.
-
 
59661
       */
-
 
59662
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
59663
        _Fields fields = findByThriftId(fieldId);
-
 
59664
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
59665
        return fields;
-
 
59666
      }
-
 
59667
 
-
 
59668
      /**
-
 
59669
       * Find the _Fields constant that matches name, or null if its not found.
-
 
59670
       */
-
 
59671
      public static _Fields findByName(String name) {
-
 
59672
        return byName.get(name);
-
 
59673
      }
-
 
59674
 
-
 
59675
      private final short _thriftId;
-
 
59676
      private final String _fieldName;
-
 
59677
 
-
 
59678
      _Fields(short thriftId, String fieldName) {
-
 
59679
        _thriftId = thriftId;
-
 
59680
        _fieldName = fieldName;
-
 
59681
      }
-
 
59682
 
-
 
59683
      public short getThriftFieldId() {
-
 
59684
        return _thriftId;
-
 
59685
      }
-
 
59686
 
-
 
59687
      public String getFieldName() {
-
 
59688
        return _fieldName;
-
 
59689
      }
-
 
59690
    }
-
 
59691
 
-
 
59692
    // isset id assignments
-
 
59693
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
59694
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
59695
 
-
 
59696
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
59697
    static {
-
 
59698
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
59699
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
59700
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
59701
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
59702
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateItemAvailabilityForItemIds_result.class, metaDataMap);
-
 
59703
    }
-
 
59704
 
-
 
59705
    public updateItemAvailabilityForItemIds_result() {
-
 
59706
    }
-
 
59707
 
-
 
59708
    public updateItemAvailabilityForItemIds_result(
-
 
59709
      boolean success)
-
 
59710
    {
-
 
59711
      this();
-
 
59712
      this.success = success;
-
 
59713
      setSuccessIsSet(true);
-
 
59714
    }
-
 
59715
 
-
 
59716
    /**
-
 
59717
     * Performs a deep copy on <i>other</i>.
-
 
59718
     */
-
 
59719
    public updateItemAvailabilityForItemIds_result(updateItemAvailabilityForItemIds_result other) {
-
 
59720
      __isset_bit_vector.clear();
-
 
59721
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
59722
      this.success = other.success;
-
 
59723
    }
-
 
59724
 
-
 
59725
    public updateItemAvailabilityForItemIds_result deepCopy() {
-
 
59726
      return new updateItemAvailabilityForItemIds_result(this);
-
 
59727
    }
-
 
59728
 
-
 
59729
    @Override
-
 
59730
    public void clear() {
-
 
59731
      setSuccessIsSet(false);
-
 
59732
      this.success = false;
-
 
59733
    }
-
 
59734
 
-
 
59735
    public boolean isSuccess() {
-
 
59736
      return this.success;
-
 
59737
    }
-
 
59738
 
-
 
59739
    public void setSuccess(boolean success) {
-
 
59740
      this.success = success;
-
 
59741
      setSuccessIsSet(true);
-
 
59742
    }
-
 
59743
 
-
 
59744
    public void unsetSuccess() {
-
 
59745
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
59746
    }
-
 
59747
 
-
 
59748
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
59749
    public boolean isSetSuccess() {
-
 
59750
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
59751
    }
-
 
59752
 
-
 
59753
    public void setSuccessIsSet(boolean value) {
-
 
59754
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
59755
    }
-
 
59756
 
-
 
59757
    public void setFieldValue(_Fields field, Object value) {
-
 
59758
      switch (field) {
-
 
59759
      case SUCCESS:
-
 
59760
        if (value == null) {
-
 
59761
          unsetSuccess();
-
 
59762
        } else {
-
 
59763
          setSuccess((Boolean)value);
-
 
59764
        }
-
 
59765
        break;
-
 
59766
 
-
 
59767
      }
-
 
59768
    }
-
 
59769
 
-
 
59770
    public Object getFieldValue(_Fields field) {
-
 
59771
      switch (field) {
-
 
59772
      case SUCCESS:
-
 
59773
        return Boolean.valueOf(isSuccess());
-
 
59774
 
-
 
59775
      }
-
 
59776
      throw new IllegalStateException();
-
 
59777
    }
-
 
59778
 
-
 
59779
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
59780
    public boolean isSet(_Fields field) {
-
 
59781
      if (field == null) {
-
 
59782
        throw new IllegalArgumentException();
-
 
59783
      }
-
 
59784
 
-
 
59785
      switch (field) {
-
 
59786
      case SUCCESS:
-
 
59787
        return isSetSuccess();
-
 
59788
      }
-
 
59789
      throw new IllegalStateException();
-
 
59790
    }
-
 
59791
 
-
 
59792
    @Override
-
 
59793
    public boolean equals(Object that) {
-
 
59794
      if (that == null)
-
 
59795
        return false;
-
 
59796
      if (that instanceof updateItemAvailabilityForItemIds_result)
-
 
59797
        return this.equals((updateItemAvailabilityForItemIds_result)that);
-
 
59798
      return false;
-
 
59799
    }
-
 
59800
 
-
 
59801
    public boolean equals(updateItemAvailabilityForItemIds_result that) {
-
 
59802
      if (that == null)
-
 
59803
        return false;
-
 
59804
 
-
 
59805
      boolean this_present_success = true;
-
 
59806
      boolean that_present_success = true;
-
 
59807
      if (this_present_success || that_present_success) {
-
 
59808
        if (!(this_present_success && that_present_success))
-
 
59809
          return false;
-
 
59810
        if (this.success != that.success)
-
 
59811
          return false;
-
 
59812
      }
-
 
59813
 
-
 
59814
      return true;
-
 
59815
    }
-
 
59816
 
-
 
59817
    @Override
-
 
59818
    public int hashCode() {
-
 
59819
      return 0;
-
 
59820
    }
-
 
59821
 
-
 
59822
    public int compareTo(updateItemAvailabilityForItemIds_result other) {
-
 
59823
      if (!getClass().equals(other.getClass())) {
-
 
59824
        return getClass().getName().compareTo(other.getClass().getName());
-
 
59825
      }
-
 
59826
 
-
 
59827
      int lastComparison = 0;
-
 
59828
      updateItemAvailabilityForItemIds_result typedOther = (updateItemAvailabilityForItemIds_result)other;
-
 
59829
 
-
 
59830
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
59831
      if (lastComparison != 0) {
-
 
59832
        return lastComparison;
-
 
59833
      }
-
 
59834
      if (isSetSuccess()) {
-
 
59835
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
59836
        if (lastComparison != 0) {
-
 
59837
          return lastComparison;
-
 
59838
        }
-
 
59839
      }
-
 
59840
      return 0;
-
 
59841
    }
-
 
59842
 
-
 
59843
    public _Fields fieldForId(int fieldId) {
-
 
59844
      return _Fields.findByThriftId(fieldId);
-
 
59845
    }
-
 
59846
 
-
 
59847
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
59848
      org.apache.thrift.protocol.TField field;
-
 
59849
      iprot.readStructBegin();
-
 
59850
      while (true)
-
 
59851
      {
-
 
59852
        field = iprot.readFieldBegin();
-
 
59853
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
59854
          break;
-
 
59855
        }
-
 
59856
        switch (field.id) {
-
 
59857
          case 0: // SUCCESS
-
 
59858
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
59859
              this.success = iprot.readBool();
-
 
59860
              setSuccessIsSet(true);
-
 
59861
            } else { 
-
 
59862
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
59863
            }
-
 
59864
            break;
-
 
59865
          default:
-
 
59866
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
59867
        }
-
 
59868
        iprot.readFieldEnd();
-
 
59869
      }
-
 
59870
      iprot.readStructEnd();
-
 
59871
      validate();
-
 
59872
    }
-
 
59873
 
-
 
59874
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
59875
      oprot.writeStructBegin(STRUCT_DESC);
-
 
59876
 
-
 
59877
      if (this.isSetSuccess()) {
-
 
59878
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
59879
        oprot.writeBool(this.success);
-
 
59880
        oprot.writeFieldEnd();
-
 
59881
      }
-
 
59882
      oprot.writeFieldStop();
-
 
59883
      oprot.writeStructEnd();
-
 
59884
    }
-
 
59885
 
-
 
59886
    @Override
-
 
59887
    public String toString() {
-
 
59888
      StringBuilder sb = new StringBuilder("updateItemAvailabilityForItemIds_result(");
-
 
59889
      boolean first = true;
-
 
59890
 
-
 
59891
      sb.append("success:");
-
 
59892
      sb.append(this.success);
-
 
59893
      first = false;
-
 
59894
      sb.append(")");
-
 
59895
      return sb.toString();
-
 
59896
    }
-
 
59897
 
59197
    public void validate() throws org.apache.thrift.TException {
59898
    public void validate() throws org.apache.thrift.TException {
59198
      // check for required fields
59899
      // check for required fields
59199
    }
59900
    }
59200
 
59901
 
59201
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
59902
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {